Skip to content

Small Improvements? #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Small Improvements? #1

wants to merge 5 commits into from

Conversation

MattGould1
Copy link

Hey,

Couple of bits here (some might not be improvements based on whether this package is being used currently).

  1. I switched TellerOptionsPagination to use the same param keys as the Teller IO document, see https://teller.io/docs/api/account/transactions#list-transactions
  2. I made some improvements on how we pass params to list transactions and allow optional count or optional from_id

Also, I actually published this package to NPM because I needed it for a different task. If you want to publish it from maxint, i'll go ahead and remove my NPM package

@KingkorAtMaxint
Copy link
Contributor

Thanks @MattGould1 for making the contribution

Comment on lines +8 to +18
/**
* The maximum number of transactions to return in the API response.
*/
count?: number;
/**
* The transaction from where to start the page.
* The first transaction in the API response will be the one immediately before the transaction in the ledger with this id.
*
* example: txn_oiluj93igokseo0i3a005
*/
from_id?: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc comments are nice but there's no need for a renaming of the options here. cursor and limit are just generalized term for count and from_id understood by everyone. We don't want unnecessary changes here.
So please revert the name changes everywhere in the PR

But the doc comments are a nice addition.

"name": "teller",
"version": "0.1.0",
"name": "node-teller",
"version": "0.1.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it require a version change? Also even if so, it should be 0.1.1 why 0.1.5?

Comment on lines +9 to +20
* The maximum number of transactions to return in the API response.
*/
count?: number;
/**
* The transaction from where to start the page.
* The first transaction in the API response will be the one immediately before the transaction in the ledger with this id.
*
* example: txn_oiluj93igokseo0i3a005
*/
from_id?: string;
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants