-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
|
Thanks @MattGould1 for making the contribution |
| /** | ||
| * 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; |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
| /** | ||
| * 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; | ||
| }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Hey,
Couple of bits here (some might not be improvements based on whether this package is being used currently).
TellerOptionsPaginationto use the same param keys as the Teller IO document, see https://teller.io/docs/api/account/transactions#list-transactionslisttransactions and allow optionalcountor optionalfrom_idAlso, 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