Skip to content

Conversation

@iamacook
Copy link
Contributor

@iamacook iamacook commented Aug 17, 2023

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}

@iamacook iamacook self-assigned this Aug 17, 2023
@iamacook iamacook linked an issue Aug 17, 2023 that may be closed by this pull request
@github-actions
Copy link

github-actions bot commented Aug 17, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

@iamacook iamacook marked this pull request as ready for review August 17, 2023 12:35
@iamacook iamacook requested a review from usame-algan August 17, 2023 12:35
Copy link
Contributor

@usame-algan usame-algan left a 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 {
Copy link
Member

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)
Copy link
Member

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?

@iamacook iamacook requested a review from katspaugh August 22, 2023 09:29
@iamacook iamacook merged commit 381e16d into main Aug 22, 2023
@iamacook iamacook deleted the notifications branch August 22, 2023 09:52
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.

[Epic] Push notification

4 participants