-
Couldn't load subscription status.
- Fork 26
feat: add notification (un-)registration endpoints #128
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
Conversation
ESLint Summary View Full Report
Report generated by eslint-plus-action |
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.
Looks good 👍
src/types/api.ts
Outdated
| path?: { [key: string]: Primitive } | ||
| } | ||
|
|
||
| interface GetParams extends DeleteParams { |
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.
This feels a little weird. I would define a common type that both GetParams and DeleteParams extend.
src/types/api.ts
Outdated
|
|
||
| interface PathRegistry { | ||
| [key: string]: GetEndpoint | PostEndpoint | (GetEndpoint & PostEndpoint) | ||
| [key: string]: DeleteEndpoint | GetEndpoint | PostEndpoint | (GetEndpoint & PostEndpoint) |
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.
Could you add it to the end of the list, not the beginning?
This adds the device/Safe notification (un-)registration endpoints as per safe-global/safe-client-gateway#636:
/v1/register/notifications/v1/chains/{chainId}/notifications/devices/{uuid}/safes/{safe_address}/v1/chains/{chainId}/notifications/devices/{uuid}