-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: customer app endpoints, types and errors #18
Conversation
algoflows
commented
Mar 1, 2022
•
edited
Loading
edited
- [meta]: customer app - add types #19
- [meta]: customer app - add errors #21
Overall looks in an OK state (with above comments). Few things missing
/api/customer/v2/password-reset/verify can return a 200 or a 404. In the 404 response it returns a payload such as
This should be translated into a specific Error type in lib/Error.js |
Remaining type work
|
types/Customer/Customers.d.ts
Outdated
options?: RequestOptions | ||
): Promise<Aifi.Response<Aifi.Models.Customer | Aifi.Models.Error>>; | ||
|
||
// TODO ask question regarding response!? |
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.
remove this comment
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.
removed
list( | ||
params: Aifi.Models.PaginatedParams, | ||
options?: RequestOptions | ||
): Promise<Aifi.Response<PaginatedListResponse>>; |
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.
lets remove paginated responses + types from this PR for now
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.
removed
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.
Added back temporarily as build was failing