magicbell-js 0.0.4 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -22
- package/dist/commonjs/project-client/http/errors/throwable-error.d.ts +7 -0
- package/dist/commonjs/project-client/http/errors/throwable-error.d.ts.map +1 -0
- package/dist/commonjs/project-client/http/errors/throwable-error.js +25 -0
- package/dist/commonjs/project-client/http/errors/throwable-error.js.map +1 -0
- package/dist/commonjs/project-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/commonjs/project-client/http/handlers/hook-handler.js +2 -2
- package/dist/commonjs/project-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/commonjs/project-client/http/transport/types.d.ts +2 -1
- package/dist/commonjs/project-client/http/transport/types.d.ts.map +1 -1
- package/dist/commonjs/project-client/index.d.ts +0 -6
- package/dist/commonjs/project-client/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/index.js +2 -28
- package/dist/commonjs/project-client/index.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.js +1 -1
- package/dist/commonjs/project-client/services/broadcasts/broadcasts-service.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js +7 -6
- package/dist/commonjs/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/email.d.ts +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/in-app.d.ts +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts +0 -2
- package/dist/commonjs/project-client/services/broadcasts/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/index.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js +0 -12
- package/dist/commonjs/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts +200 -441
- package/dist/commonjs/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts +102 -60
- package/dist/commonjs/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/providers.js +35 -20
- package/dist/commonjs/project-client/services/broadcasts/models/providers.js.map +1 -1
- package/dist/commonjs/project-client/services/broadcasts/models/sms.d.ts +3 -3
- package/dist/commonjs/project-client/services/channels/channels-service.d.ts +48 -48
- package/dist/commonjs/project-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/channels/channels-service.js +59 -59
- package/dist/commonjs/project-client/services/channels/channels-service.js.map +1 -1
- package/dist/commonjs/project-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/commonjs/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/commonjs/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/commonjs/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/commonjs/project-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/commonjs/project-client/services/channels/request-params.d.ts +7 -10
- package/dist/commonjs/project-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/common/index.d.ts +1 -0
- package/dist/commonjs/project-client/services/common/index.d.ts.map +1 -1
- package/dist/{esm/project-client/services/users/models → commonjs/project-client/services/common}/user.d.ts +24 -24
- package/dist/commonjs/project-client/services/common/user.d.ts.map +1 -0
- package/dist/commonjs/project-client/services/common/user.js.map +1 -0
- package/dist/commonjs/project-client/services/events/events-service.d.ts +3 -3
- package/dist/commonjs/project-client/services/events/events-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/events/events-service.js +6 -6
- package/dist/commonjs/project-client/services/events/events-service.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts +97 -193
- package/dist/commonjs/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/integrations/integrations-service.js +128 -528
- package/dist/commonjs/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
- package/dist/commonjs/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/commonjs/project-client/services/integrations/models/inbox-config.d.ts +140 -140
- package/dist/commonjs/project-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts +48 -0
- package/dist/commonjs/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/users/models/index.d.ts +0 -1
- package/dist/commonjs/project-client/services/users/models/index.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/users/models/user-collection.d.ts +42 -42
- package/dist/commonjs/project-client/services/users/models/user-collection.js +1 -1
- package/dist/commonjs/project-client/services/users/models/user-collection.js.map +1 -1
- package/dist/commonjs/project-client/services/users/users-service.d.ts +6 -6
- package/dist/commonjs/project-client/services/users/users-service.d.ts.map +1 -1
- package/dist/commonjs/project-client/services/users/users-service.js +8 -8
- package/dist/commonjs/project-client/services/users/users-service.js.map +1 -1
- package/dist/commonjs/user-client/http/errors/throwable-error.d.ts +7 -0
- package/dist/commonjs/user-client/http/errors/throwable-error.d.ts.map +1 -0
- package/dist/commonjs/user-client/http/errors/throwable-error.js +25 -0
- package/dist/commonjs/user-client/http/errors/throwable-error.js.map +1 -0
- package/dist/commonjs/user-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/commonjs/user-client/http/handlers/hook-handler.js +2 -2
- package/dist/commonjs/user-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/commonjs/user-client/http/transport/types.d.ts +2 -1
- package/dist/commonjs/user-client/http/transport/types.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/channels-service.d.ts +61 -61
- package/dist/commonjs/user-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/channels/channels-service.js +74 -74
- package/dist/commonjs/user-client/services/channels/channels-service.js.map +1 -1
- package/dist/commonjs/user-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/commonjs/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/commonjs/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/commonjs/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/commonjs/user-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/commonjs/user-client/services/channels/request-params.d.ts +7 -7
- package/dist/commonjs/user-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts +12 -12
- package/dist/commonjs/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/integrations/integrations-service.js +20 -20
- package/dist/commonjs/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/commonjs/user-client/services/integrations/models/authed-user.d.ts +8 -8
- package/dist/commonjs/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/commonjs/user-client/services/integrations/models/slack-installation.d.ts +57 -57
- package/dist/commonjs/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
- package/dist/commonjs/user-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/commonjs/user-client/services/notifications/models/notification-collection.d.ts +56 -56
- package/dist/commonjs/user-client/services/notifications/models/notification.d.ts +32 -32
- package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts +27 -2
- package/dist/commonjs/user-client/services/notifications/notifications-service.d.ts.map +1 -1
- package/dist/commonjs/user-client/services/notifications/notifications-service.js +107 -1
- package/dist/commonjs/user-client/services/notifications/notifications-service.js.map +1 -1
- package/dist/commonjs/user-client/services/notifications/request-params.d.ts +9 -0
- package/dist/commonjs/user-client/services/notifications/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/http/errors/throwable-error.d.ts +7 -0
- package/dist/esm/project-client/http/errors/throwable-error.d.ts.map +1 -0
- package/dist/esm/project-client/http/errors/throwable-error.js +21 -0
- package/dist/esm/project-client/http/errors/throwable-error.js.map +1 -0
- package/dist/esm/project-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/esm/project-client/http/handlers/hook-handler.js +2 -2
- package/dist/esm/project-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/esm/project-client/http/transport/types.d.ts +2 -1
- package/dist/esm/project-client/http/transport/types.d.ts.map +1 -1
- package/dist/esm/project-client/index.d.ts +0 -6
- package/dist/esm/project-client/index.d.ts.map +1 -1
- package/dist/esm/project-client/index.js +0 -26
- package/dist/esm/project-client/index.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.d.ts +1 -1
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.js +1 -1
- package/dist/esm/project-client/services/broadcasts/broadcasts-service.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts +924 -942
- package/dist/esm/project-client/services/broadcasts/models/broadcast-collection.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts +639 -697
- package/dist/esm/project-client/services/broadcasts/models/broadcast.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js +7 -6
- package/dist/esm/project-client/services/broadcasts/models/broadcast.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/email.d.ts +3 -3
- package/dist/esm/project-client/services/broadcasts/models/in-app.d.ts +3 -3
- package/dist/esm/project-client/services/broadcasts/models/index.d.ts +0 -2
- package/dist/esm/project-client/services/broadcasts/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/index.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/mobile-push.d.ts +3 -3
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts +17 -229
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js +0 -12
- package/dist/esm/project-client/services/broadcasts/models/overrides-channels.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts +200 -441
- package/dist/esm/project-client/services/broadcasts/models/overrides.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/providers.d.ts +102 -60
- package/dist/esm/project-client/services/broadcasts/models/providers.d.ts.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/providers.js +35 -20
- package/dist/esm/project-client/services/broadcasts/models/providers.js.map +1 -1
- package/dist/esm/project-client/services/broadcasts/models/sms.d.ts +3 -3
- package/dist/esm/project-client/services/channels/channels-service.d.ts +48 -48
- package/dist/esm/project-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/channels/channels-service.js +59 -59
- package/dist/esm/project-client/services/channels/channels-service.js.map +1 -1
- package/dist/esm/project-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/esm/project-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/esm/project-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/esm/project-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/esm/project-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/esm/project-client/services/channels/request-params.d.ts +7 -10
- package/dist/esm/project-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/services/common/index.d.ts +1 -0
- package/dist/esm/project-client/services/common/index.d.ts.map +1 -1
- package/dist/{commonjs/project-client/services/users/models → esm/project-client/services/common}/user.d.ts +24 -24
- package/dist/esm/project-client/services/common/user.d.ts.map +1 -0
- package/dist/esm/project-client/services/common/user.js.map +1 -0
- package/dist/esm/project-client/services/events/events-service.d.ts +3 -3
- package/dist/esm/project-client/services/events/events-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/events/events-service.js +6 -6
- package/dist/esm/project-client/services/events/events-service.js.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts +97 -193
- package/dist/esm/project-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/integrations/integrations-service.js +128 -528
- package/dist/esm/project-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/project-client/services/integrations/models/inbox-config-collection.d.ts +182 -182
- package/dist/esm/project-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/esm/project-client/services/integrations/models/inbox-config.d.ts +140 -140
- package/dist/esm/project-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/esm/project-client/services/integrations/request-params.d.ts +48 -0
- package/dist/esm/project-client/services/integrations/request-params.d.ts.map +1 -1
- package/dist/esm/project-client/services/users/models/index.d.ts +0 -1
- package/dist/esm/project-client/services/users/models/index.d.ts.map +1 -1
- package/dist/esm/project-client/services/users/models/user-collection.d.ts +42 -42
- package/dist/esm/project-client/services/users/models/user-collection.js +1 -1
- package/dist/esm/project-client/services/users/models/user-collection.js.map +1 -1
- package/dist/esm/project-client/services/users/users-service.d.ts +6 -6
- package/dist/esm/project-client/services/users/users-service.d.ts.map +1 -1
- package/dist/esm/project-client/services/users/users-service.js +8 -8
- package/dist/esm/project-client/services/users/users-service.js.map +1 -1
- package/dist/esm/user-client/http/errors/throwable-error.d.ts +7 -0
- package/dist/esm/user-client/http/errors/throwable-error.d.ts.map +1 -0
- package/dist/esm/user-client/http/errors/throwable-error.js +21 -0
- package/dist/esm/user-client/http/errors/throwable-error.js.map +1 -0
- package/dist/esm/user-client/http/handlers/hook-handler.d.ts.map +1 -1
- package/dist/esm/user-client/http/handlers/hook-handler.js +2 -2
- package/dist/esm/user-client/http/handlers/hook-handler.js.map +1 -1
- package/dist/esm/user-client/http/transport/types.d.ts +2 -1
- package/dist/esm/user-client/http/transport/types.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/channels-service.d.ts +61 -61
- package/dist/esm/user-client/services/channels/channels-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/channels/channels-service.js +74 -74
- package/dist/esm/user-client/services/channels/channels-service.js.map +1 -1
- package/dist/esm/user-client/services/channels/models/discard-result.d.ts +8 -8
- package/dist/esm/user-client/services/channels/models/inbox-token-response-collection.d.ts +14 -14
- package/dist/esm/user-client/services/channels/models/inbox-token-response.d.ts +8 -8
- package/dist/esm/user-client/services/channels/models/slack-token-collection.d.ts +14 -14
- package/dist/esm/user-client/services/channels/models/slack-token.d.ts +8 -8
- package/dist/esm/user-client/services/channels/request-params.d.ts +7 -7
- package/dist/esm/user-client/services/channels/request-params.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts +12 -12
- package/dist/esm/user-client/services/integrations/integrations-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/integrations/integrations-service.js +20 -20
- package/dist/esm/user-client/services/integrations/integrations-service.js.map +1 -1
- package/dist/esm/user-client/services/integrations/models/authed-user.d.ts +8 -8
- package/dist/esm/user-client/services/integrations/models/inbox-config-payload.d.ts +98 -98
- package/dist/esm/user-client/services/integrations/models/slack-installation.d.ts +57 -57
- package/dist/esm/user-client/services/integrations/models/slack-start-install.d.ts +8 -8
- package/dist/esm/user-client/services/integrations/models/theme.d.ts +56 -56
- package/dist/esm/user-client/services/notifications/models/notification-collection.d.ts +56 -56
- package/dist/esm/user-client/services/notifications/models/notification.d.ts +32 -32
- package/dist/esm/user-client/services/notifications/notifications-service.d.ts +27 -2
- package/dist/esm/user-client/services/notifications/notifications-service.d.ts.map +1 -1
- package/dist/esm/user-client/services/notifications/notifications-service.js +107 -1
- package/dist/esm/user-client/services/notifications/notifications-service.js.map +1 -1
- package/dist/esm/user-client/services/notifications/request-params.d.ts +9 -0
- package/dist/esm/user-client/services/notifications/request-params.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/project-client/http/errors/throwable-error.ts +9 -0
- package/src/project-client/http/handlers/hook-handler.ts +5 -3
- package/src/project-client/http/transport/types.ts +2 -1
- package/src/project-client/index.ts +0 -20
- package/src/project-client/services/broadcasts/broadcasts-service.ts +2 -1
- package/src/project-client/services/broadcasts/models/broadcast.ts +8 -7
- package/src/project-client/services/broadcasts/models/index.ts +0 -2
- package/src/project-client/services/broadcasts/models/overrides-channels.ts +0 -14
- package/src/project-client/services/broadcasts/models/providers.ts +38 -20
- package/src/project-client/services/channels/channels-service.ts +75 -78
- package/src/project-client/services/channels/request-params.ts +7 -11
- package/src/project-client/services/common/index.ts +1 -0
- package/src/project-client/services/events/events-service.ts +7 -6
- package/src/project-client/services/integrations/integrations-service.ts +196 -545
- package/src/project-client/services/integrations/request-params.ts +64 -0
- package/src/project-client/services/users/models/index.ts +0 -1
- package/src/project-client/services/users/models/user-collection.ts +1 -1
- package/src/project-client/services/users/users-service.ts +9 -8
- package/src/user-client/http/errors/throwable-error.ts +9 -0
- package/src/user-client/http/handlers/hook-handler.ts +5 -3
- package/src/user-client/http/transport/types.ts +2 -1
- package/src/user-client/services/channels/channels-service.ts +89 -106
- package/src/user-client/services/channels/request-params.ts +7 -7
- package/src/user-client/services/integrations/integrations-service.ts +21 -20
- package/src/user-client/services/notifications/notifications-service.ts +122 -2
- package/src/user-client/services/notifications/request-params.ts +11 -0
- package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts +0 -76
- package/dist/commonjs/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/broadcasts/models/slack.js +0 -49
- package/dist/commonjs/project-client/services/broadcasts/models/slack.js.map +0 -1
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts +0 -76
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.js +0 -49
- package/dist/commonjs/project-client/services/broadcasts/models/web-push.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/index.d.ts +0 -3
- package/dist/commonjs/project-client/services/jwt/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/index.js +0 -8
- package/dist/commonjs/project-client/services/jwt/index.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts +0 -56
- package/dist/commonjs/project-client/services/jwt/jwt-service.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/jwt-service.js +0 -216
- package/dist/commonjs/project-client/services/jwt/jwt-service.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js +0 -46
- package/dist/commonjs/project-client/services/jwt/models/access-token-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts +0 -104
- package/dist/commonjs/project-client/services/jwt/models/access-token.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/access-token.js +0 -59
- package/dist/commonjs/project-client/services/jwt/models/access-token.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js +0 -44
- package/dist/commonjs/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts +0 -90
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.js +0 -54
- package/dist/commonjs/project-client/services/jwt/models/create-token-response.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.d.ts +0 -90
- package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.js +0 -54
- package/dist/commonjs/project-client/services/jwt/models/create-user-token-request.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js +0 -44
- package/dist/commonjs/project-client/services/jwt/models/discard-token-response.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/index.d.ts +0 -7
- package/dist/commonjs/project-client/services/jwt/models/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/models/index.js +0 -3
- package/dist/commonjs/project-client/services/jwt/models/index.js.map +0 -1
- package/dist/commonjs/project-client/services/jwt/request-params.d.ts +0 -11
- package/dist/commonjs/project-client/services/jwt/request-params.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/jwt/request-params.js +0 -3
- package/dist/commonjs/project-client/services/jwt/request-params.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/index.d.ts +0 -3
- package/dist/commonjs/project-client/services/notifications/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/index.js +0 -8
- package/dist/commonjs/project-client/services/notifications/index.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js +0 -46
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js +0 -79
- package/dist/commonjs/project-client/services/notifications/models/delivery-plan.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/index.d.ts +0 -3
- package/dist/commonjs/project-client/services/notifications/models/index.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/models/index.js +0 -3
- package/dist/commonjs/project-client/services/notifications/models/index.js.map +0 -1
- package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts +0 -13
- package/dist/commonjs/project-client/services/notifications/notifications-service.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/notifications/notifications-service.js +0 -43
- package/dist/commonjs/project-client/services/notifications/notifications-service.js.map +0 -1
- package/dist/commonjs/project-client/services/users/models/user.d.ts.map +0 -1
- package/dist/commonjs/project-client/services/users/models/user.js.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/slack.d.ts +0 -76
- package/dist/esm/project-client/services/broadcasts/models/slack.d.ts.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/slack.js +0 -46
- package/dist/esm/project-client/services/broadcasts/models/slack.js.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts +0 -76
- package/dist/esm/project-client/services/broadcasts/models/web-push.d.ts.map +0 -1
- package/dist/esm/project-client/services/broadcasts/models/web-push.js +0 -46
- package/dist/esm/project-client/services/broadcasts/models/web-push.js.map +0 -1
- package/dist/esm/project-client/services/jwt/index.d.ts +0 -3
- package/dist/esm/project-client/services/jwt/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/index.js +0 -3
- package/dist/esm/project-client/services/jwt/index.js.map +0 -1
- package/dist/esm/project-client/services/jwt/jwt-service.d.ts +0 -56
- package/dist/esm/project-client/services/jwt/jwt-service.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/jwt-service.js +0 -212
- package/dist/esm/project-client/services/jwt/jwt-service.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts +0 -292
- package/dist/esm/project-client/services/jwt/models/access-token-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token-collection.js +0 -43
- package/dist/esm/project-client/services/jwt/models/access-token-collection.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token.d.ts +0 -104
- package/dist/esm/project-client/services/jwt/models/access-token.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/access-token.js +0 -56
- package/dist/esm/project-client/services/jwt/models/access-token.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts +0 -62
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.js +0 -41
- package/dist/esm/project-client/services/jwt/models/create-project-token-request.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts +0 -90
- package/dist/esm/project-client/services/jwt/models/create-token-response.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-token-response.js +0 -51
- package/dist/esm/project-client/services/jwt/models/create-token-response.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-user-token-request.d.ts +0 -90
- package/dist/esm/project-client/services/jwt/models/create-user-token-request.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/create-user-token-request.js +0 -51
- package/dist/esm/project-client/services/jwt/models/create-user-token-request.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts +0 -62
- package/dist/esm/project-client/services/jwt/models/discard-token-response.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/discard-token-response.js +0 -41
- package/dist/esm/project-client/services/jwt/models/discard-token-response.js.map +0 -1
- package/dist/esm/project-client/services/jwt/models/index.d.ts +0 -7
- package/dist/esm/project-client/services/jwt/models/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/models/index.js +0 -2
- package/dist/esm/project-client/services/jwt/models/index.js.map +0 -1
- package/dist/esm/project-client/services/jwt/request-params.d.ts +0 -11
- package/dist/esm/project-client/services/jwt/request-params.d.ts.map +0 -1
- package/dist/esm/project-client/services/jwt/request-params.js +0 -2
- package/dist/esm/project-client/services/jwt/request-params.js.map +0 -1
- package/dist/esm/project-client/services/notifications/index.d.ts +0 -3
- package/dist/esm/project-client/services/notifications/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/index.js +0 -3
- package/dist/esm/project-client/services/notifications/index.js.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts +0 -384
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js +0 -43
- package/dist/esm/project-client/services/notifications/models/delivery-plan-collection.js.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts +0 -160
- package/dist/esm/project-client/services/notifications/models/delivery-plan.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/models/delivery-plan.js +0 -76
- package/dist/esm/project-client/services/notifications/models/delivery-plan.js.map +0 -1
- package/dist/esm/project-client/services/notifications/models/index.d.ts +0 -3
- package/dist/esm/project-client/services/notifications/models/index.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/models/index.js +0 -2
- package/dist/esm/project-client/services/notifications/models/index.js.map +0 -1
- package/dist/esm/project-client/services/notifications/notifications-service.d.ts +0 -13
- package/dist/esm/project-client/services/notifications/notifications-service.d.ts.map +0 -1
- package/dist/esm/project-client/services/notifications/notifications-service.js +0 -39
- package/dist/esm/project-client/services/notifications/notifications-service.js.map +0 -1
- package/dist/esm/project-client/services/users/models/user.d.ts.map +0 -1
- package/dist/esm/project-client/services/users/models/user.js.map +0 -1
- package/src/project-client/services/broadcasts/models/slack.ts +0 -57
- package/src/project-client/services/broadcasts/models/web-push.ts +0 -57
- package/src/project-client/services/jwt/index.ts +0 -2
- package/src/project-client/services/jwt/jwt-service.ts +0 -233
- package/src/project-client/services/jwt/models/access-token-collection.ts +0 -54
- package/src/project-client/services/jwt/models/access-token.ts +0 -69
- package/src/project-client/services/jwt/models/create-project-token-request.ts +0 -51
- package/src/project-client/services/jwt/models/create-token-response.ts +0 -63
- package/src/project-client/services/jwt/models/create-user-token-request.ts +0 -63
- package/src/project-client/services/jwt/models/discard-token-response.ts +0 -51
- package/src/project-client/services/jwt/models/index.ts +0 -6
- package/src/project-client/services/jwt/request-params.ts +0 -11
- package/src/project-client/services/notifications/index.ts +0 -2
- package/src/project-client/services/notifications/models/delivery-plan-collection.ts +0 -54
- package/src/project-client/services/notifications/models/delivery-plan.ts +0 -93
- package/src/project-client/services/notifications/models/index.ts +0 -2
- package/src/project-client/services/notifications/notifications-service.ts +0 -44
- /package/dist/commonjs/project-client/services/{users/models → common}/user.js +0 -0
- /package/dist/esm/project-client/services/{users/models → common}/user.js +0 -0
- /package/src/project-client/services/{users/models → common}/user.ts +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
import { Environment } from '../../http/environment.js';
|
|
4
|
+
import { ThrowableError } from '../../http/errors/throwable-error.js';
|
|
4
5
|
import { SerializationStyle } from '../../http/serialization/base-serializer.js';
|
|
5
6
|
import { RequestBuilder } from '../../http/transport/request-builder.js';
|
|
6
7
|
import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
|
|
@@ -37,9 +38,9 @@ import {
|
|
|
37
38
|
|
|
38
39
|
export class IntegrationsService extends BaseService {
|
|
39
40
|
/**
|
|
40
|
-
* Creates a new installation of a
|
|
41
|
+
* Creates a new installation of a Inbox integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
|
|
41
42
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
42
|
-
* @returns {Promise<HttpResponse<InboxConfigPayload>>}
|
|
43
|
+
* @returns {Promise<HttpResponse<InboxConfigPayload>>} OK
|
|
43
44
|
*/
|
|
44
45
|
async saveInboxInstallation(
|
|
45
46
|
body: InboxConfigPayload,
|
|
@@ -48,7 +49,7 @@ export class IntegrationsService extends BaseService {
|
|
|
48
49
|
const request = new RequestBuilder()
|
|
49
50
|
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
50
51
|
.setConfig(this.config)
|
|
51
|
-
.setMethod('
|
|
52
|
+
.setMethod('PUT')
|
|
52
53
|
.setPath('/integrations/inbox/installations')
|
|
53
54
|
.setRequestSchema(inboxConfigPayloadRequest)
|
|
54
55
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
@@ -56,7 +57,7 @@ export class IntegrationsService extends BaseService {
|
|
|
56
57
|
.addResponse({
|
|
57
58
|
schema: inboxConfigPayloadResponse,
|
|
58
59
|
contentType: ContentType.Json,
|
|
59
|
-
status:
|
|
60
|
+
status: 200,
|
|
60
61
|
})
|
|
61
62
|
.setRetryAttempts(this.config, requestConfig)
|
|
62
63
|
.setRetryDelayMs(this.config, requestConfig)
|
|
@@ -68,7 +69,7 @@ export class IntegrationsService extends BaseService {
|
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
/**
|
|
71
|
-
* Initiates the installation flow for
|
|
72
|
+
* Initiates the installation flow for an Inbox integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
|
|
72
73
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
73
74
|
* @returns {Promise<HttpResponse<InboxConfigPayload>>} Created
|
|
74
75
|
*/
|
|
@@ -94,9 +95,9 @@ export class IntegrationsService extends BaseService {
|
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
/**
|
|
97
|
-
* Creates a new installation of a
|
|
98
|
+
* Creates a new installation of a Slack integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
|
|
98
99
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
99
|
-
* @returns {Promise<HttpResponse<SlackInstallation>>}
|
|
100
|
+
* @returns {Promise<HttpResponse<SlackInstallation>>} OK
|
|
100
101
|
*/
|
|
101
102
|
async saveSlackInstallation(
|
|
102
103
|
body: SlackInstallation,
|
|
@@ -105,7 +106,7 @@ export class IntegrationsService extends BaseService {
|
|
|
105
106
|
const request = new RequestBuilder()
|
|
106
107
|
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
107
108
|
.setConfig(this.config)
|
|
108
|
-
.setMethod('
|
|
109
|
+
.setMethod('PUT')
|
|
109
110
|
.setPath('/integrations/slack/installations')
|
|
110
111
|
.setRequestSchema(slackInstallationRequest)
|
|
111
112
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
@@ -113,7 +114,7 @@ export class IntegrationsService extends BaseService {
|
|
|
113
114
|
.addResponse({
|
|
114
115
|
schema: slackInstallationResponse,
|
|
115
116
|
contentType: ContentType.Json,
|
|
116
|
-
status:
|
|
117
|
+
status: 200,
|
|
117
118
|
})
|
|
118
119
|
.setRetryAttempts(this.config, requestConfig)
|
|
119
120
|
.setRetryDelayMs(this.config, requestConfig)
|
|
@@ -125,7 +126,7 @@ export class IntegrationsService extends BaseService {
|
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
/**
|
|
128
|
-
* Completes the installation flow for
|
|
129
|
+
* Completes the installation flow for the Slack integration. This endpoint is typically called after the user has completed any required authorization steps with Slack.
|
|
129
130
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
130
131
|
* @returns {Promise<HttpResponse<SlackInstallation>>} Created
|
|
131
132
|
*/
|
|
@@ -156,7 +157,7 @@ export class IntegrationsService extends BaseService {
|
|
|
156
157
|
}
|
|
157
158
|
|
|
158
159
|
/**
|
|
159
|
-
* Initiates the installation flow for a
|
|
160
|
+
* Initiates the installation flow for a Slack integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
|
|
160
161
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
161
162
|
* @returns {Promise<HttpResponse<SlackStartInstallResponseContent>>} Created
|
|
162
163
|
*/
|
|
@@ -187,9 +188,9 @@ export class IntegrationsService extends BaseService {
|
|
|
187
188
|
}
|
|
188
189
|
|
|
189
190
|
/**
|
|
190
|
-
* Creates a new installation of a
|
|
191
|
+
* Creates a new installation of a Templates integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
|
|
191
192
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
192
|
-
* @returns {Promise<HttpResponse<TemplatesInstallation>>}
|
|
193
|
+
* @returns {Promise<HttpResponse<TemplatesInstallation>>} OK
|
|
193
194
|
*/
|
|
194
195
|
async saveTemplatesInstallation(
|
|
195
196
|
body: TemplatesInstallation,
|
|
@@ -198,7 +199,7 @@ export class IntegrationsService extends BaseService {
|
|
|
198
199
|
const request = new RequestBuilder()
|
|
199
200
|
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
200
201
|
.setConfig(this.config)
|
|
201
|
-
.setMethod('
|
|
202
|
+
.setMethod('PUT')
|
|
202
203
|
.setPath('/integrations/templates/installations')
|
|
203
204
|
.setRequestSchema(templatesInstallationRequest)
|
|
204
205
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
@@ -206,7 +207,7 @@ export class IntegrationsService extends BaseService {
|
|
|
206
207
|
.addResponse({
|
|
207
208
|
schema: templatesInstallationResponse,
|
|
208
209
|
contentType: ContentType.Json,
|
|
209
|
-
status:
|
|
210
|
+
status: 200,
|
|
210
211
|
})
|
|
211
212
|
.setRetryAttempts(this.config, requestConfig)
|
|
212
213
|
.setRetryDelayMs(this.config, requestConfig)
|
|
@@ -218,9 +219,9 @@ export class IntegrationsService extends BaseService {
|
|
|
218
219
|
}
|
|
219
220
|
|
|
220
221
|
/**
|
|
221
|
-
* Creates a new installation of a
|
|
222
|
+
* Creates a new installation of a Web Push integration for a user. This endpoint is used when an integration needs to be set up with user-specific credentials or configuration.
|
|
222
223
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
223
|
-
* @returns {Promise<HttpResponse<WebPushTokenPayload>>}
|
|
224
|
+
* @returns {Promise<HttpResponse<WebPushTokenPayload>>} OK
|
|
224
225
|
*/
|
|
225
226
|
async saveWebPushInstallation(
|
|
226
227
|
body: WebPushTokenPayload,
|
|
@@ -229,7 +230,7 @@ export class IntegrationsService extends BaseService {
|
|
|
229
230
|
const request = new RequestBuilder()
|
|
230
231
|
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
231
232
|
.setConfig(this.config)
|
|
232
|
-
.setMethod('
|
|
233
|
+
.setMethod('PUT')
|
|
233
234
|
.setPath('/integrations/web_push/installations')
|
|
234
235
|
.setRequestSchema(webPushTokenPayloadRequest)
|
|
235
236
|
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
@@ -237,7 +238,7 @@ export class IntegrationsService extends BaseService {
|
|
|
237
238
|
.addResponse({
|
|
238
239
|
schema: webPushTokenPayloadResponse,
|
|
239
240
|
contentType: ContentType.Json,
|
|
240
|
-
status:
|
|
241
|
+
status: 200,
|
|
241
242
|
})
|
|
242
243
|
.setRetryAttempts(this.config, requestConfig)
|
|
243
244
|
.setRetryDelayMs(this.config, requestConfig)
|
|
@@ -249,7 +250,7 @@ export class IntegrationsService extends BaseService {
|
|
|
249
250
|
}
|
|
250
251
|
|
|
251
252
|
/**
|
|
252
|
-
* Initiates the installation flow for a
|
|
253
|
+
* Initiates the installation flow for a Web Push integration. This is the first step in a multi-step installation process where user authorization or external service configuration may be required.
|
|
253
254
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
254
255
|
* @returns {Promise<HttpResponse<WebPushStartInstallationResponse>>} Created
|
|
255
256
|
*/
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
import { Environment } from '../../http/environment.js';
|
|
4
|
+
import { ThrowableError } from '../../http/errors/throwable-error.js';
|
|
4
5
|
import { SerializationStyle } from '../../http/serialization/base-serializer.js';
|
|
5
6
|
import { RequestBuilder } from '../../http/transport/request-builder.js';
|
|
6
7
|
import { ContentType, HttpResponse, RequestConfig } from '../../http/types.js';
|
|
7
8
|
import { BaseService } from '../base-service.js';
|
|
9
|
+
import { Notification, notificationResponse } from './models/notification.js';
|
|
8
10
|
import { NotificationCollection, notificationCollectionResponse } from './models/notification-collection.js';
|
|
9
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
ArchiveAllNotificationsParams,
|
|
13
|
+
ListNotificationsParams,
|
|
14
|
+
MarkAllNotificationsReadParams,
|
|
15
|
+
} from './request-params.js';
|
|
10
16
|
|
|
11
17
|
export class NotificationsService extends BaseService {
|
|
12
18
|
/**
|
|
@@ -15,6 +21,7 @@ export class NotificationsService extends BaseService {
|
|
|
15
21
|
* @param {string} [params.startingAfter] -
|
|
16
22
|
* @param {string} [params.endingBefore] -
|
|
17
23
|
* @param {string} [params.status] -
|
|
24
|
+
* @param {string} [params.category] -
|
|
18
25
|
* @param {string} [params.topic] -
|
|
19
26
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
20
27
|
* @returns {Promise<HttpResponse<NotificationCollection>>} OK
|
|
@@ -55,6 +62,10 @@ export class NotificationsService extends BaseService {
|
|
|
55
62
|
key: 'status',
|
|
56
63
|
value: params?.status,
|
|
57
64
|
})
|
|
65
|
+
.addQueryParam({
|
|
66
|
+
key: 'category',
|
|
67
|
+
value: params?.category,
|
|
68
|
+
})
|
|
58
69
|
.addQueryParam({
|
|
59
70
|
key: 'topic',
|
|
60
71
|
value: params?.topic,
|
|
@@ -64,7 +75,116 @@ export class NotificationsService extends BaseService {
|
|
|
64
75
|
}
|
|
65
76
|
|
|
66
77
|
/**
|
|
67
|
-
*
|
|
78
|
+
* Archive all notifications.
|
|
79
|
+
* @param {string} [params.category] -
|
|
80
|
+
* @param {string} [params.topic] -
|
|
81
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
82
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
83
|
+
*/
|
|
84
|
+
async archiveAllNotifications(
|
|
85
|
+
params?: ArchiveAllNotificationsParams,
|
|
86
|
+
requestConfig?: RequestConfig,
|
|
87
|
+
): Promise<HttpResponse<void>> {
|
|
88
|
+
const request = new RequestBuilder()
|
|
89
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
90
|
+
.setConfig(this.config)
|
|
91
|
+
.setMethod('POST')
|
|
92
|
+
.setPath('/notifications/archive')
|
|
93
|
+
.setRequestSchema(z.any())
|
|
94
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
95
|
+
.setRequestContentType(ContentType.Json)
|
|
96
|
+
.addResponse({
|
|
97
|
+
schema: z.undefined(),
|
|
98
|
+
contentType: ContentType.NoContent,
|
|
99
|
+
status: 204,
|
|
100
|
+
})
|
|
101
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
102
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
103
|
+
.setResponseValidation(this.config, requestConfig)
|
|
104
|
+
.addQueryParam({
|
|
105
|
+
key: 'category',
|
|
106
|
+
value: params?.category,
|
|
107
|
+
})
|
|
108
|
+
.addQueryParam({
|
|
109
|
+
key: 'topic',
|
|
110
|
+
value: params?.topic,
|
|
111
|
+
})
|
|
112
|
+
.build();
|
|
113
|
+
return this.client.call<void>(request);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Marks all notifications as read.
|
|
118
|
+
* @param {string} [params.category] -
|
|
119
|
+
* @param {string} [params.topic] -
|
|
120
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
121
|
+
* @returns {Promise<HttpResponse<any>>} No Content
|
|
122
|
+
*/
|
|
123
|
+
async markAllNotificationsRead(
|
|
124
|
+
params?: MarkAllNotificationsReadParams,
|
|
125
|
+
requestConfig?: RequestConfig,
|
|
126
|
+
): Promise<HttpResponse<void>> {
|
|
127
|
+
const request = new RequestBuilder()
|
|
128
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
129
|
+
.setConfig(this.config)
|
|
130
|
+
.setMethod('POST')
|
|
131
|
+
.setPath('/notifications/read')
|
|
132
|
+
.setRequestSchema(z.any())
|
|
133
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
134
|
+
.setRequestContentType(ContentType.Json)
|
|
135
|
+
.addResponse({
|
|
136
|
+
schema: z.undefined(),
|
|
137
|
+
contentType: ContentType.NoContent,
|
|
138
|
+
status: 204,
|
|
139
|
+
})
|
|
140
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
141
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
142
|
+
.setResponseValidation(this.config, requestConfig)
|
|
143
|
+
.addQueryParam({
|
|
144
|
+
key: 'category',
|
|
145
|
+
value: params?.category,
|
|
146
|
+
})
|
|
147
|
+
.addQueryParam({
|
|
148
|
+
key: 'topic',
|
|
149
|
+
value: params?.topic,
|
|
150
|
+
})
|
|
151
|
+
.build();
|
|
152
|
+
return this.client.call<void>(request);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Gets a notification by ID.
|
|
157
|
+
* @param {string} notificationId -
|
|
158
|
+
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
159
|
+
* @returns {Promise<HttpResponse<Notification>>} OK
|
|
160
|
+
*/
|
|
161
|
+
async fetchNotification(notificationId: string, requestConfig?: RequestConfig): Promise<HttpResponse<Notification>> {
|
|
162
|
+
const request = new RequestBuilder()
|
|
163
|
+
.setBaseUrl(requestConfig?.baseUrl || this.config.baseUrl || this.config.environment || Environment.DEFAULT)
|
|
164
|
+
.setConfig(this.config)
|
|
165
|
+
.setMethod('GET')
|
|
166
|
+
.setPath('/notifications/{notification_id}')
|
|
167
|
+
.setRequestSchema(z.any())
|
|
168
|
+
.addAccessTokenAuth(this.config.token, 'Bearer')
|
|
169
|
+
.setRequestContentType(ContentType.Json)
|
|
170
|
+
.addResponse({
|
|
171
|
+
schema: notificationResponse,
|
|
172
|
+
contentType: ContentType.Json,
|
|
173
|
+
status: 200,
|
|
174
|
+
})
|
|
175
|
+
.setRetryAttempts(this.config, requestConfig)
|
|
176
|
+
.setRetryDelayMs(this.config, requestConfig)
|
|
177
|
+
.setResponseValidation(this.config, requestConfig)
|
|
178
|
+
.addPathParam({
|
|
179
|
+
key: 'notification_id',
|
|
180
|
+
value: notificationId,
|
|
181
|
+
})
|
|
182
|
+
.build();
|
|
183
|
+
return this.client.call<Notification>(request);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Archive a notification.
|
|
68
188
|
* @param {string} notificationId -
|
|
69
189
|
* @param {RequestConfig} requestConfig - (Optional) The request configuration for retry and validation.
|
|
70
190
|
* @returns {Promise<HttpResponse<any>>} No Content
|
|
@@ -3,5 +3,16 @@ export interface ListNotificationsParams {
|
|
|
3
3
|
startingAfter?: string;
|
|
4
4
|
endingBefore?: string;
|
|
5
5
|
status?: string;
|
|
6
|
+
category?: string;
|
|
7
|
+
topic?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ArchiveAllNotificationsParams {
|
|
11
|
+
category?: string;
|
|
12
|
+
topic?: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface MarkAllNotificationsReadParams {
|
|
16
|
+
category?: string;
|
|
6
17
|
topic?: string;
|
|
7
18
|
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The shape of the model inside the application code - what the users use
|
|
4
|
-
*/
|
|
5
|
-
export declare const slack: z.ZodLazy<z.ZodObject<{
|
|
6
|
-
actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
content: z.ZodOptional<z.ZodString>;
|
|
8
|
-
title: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
actionUrl?: string | null | undefined;
|
|
11
|
-
content?: string | undefined;
|
|
12
|
-
title?: string | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
actionUrl?: string | null | undefined;
|
|
15
|
-
content?: string | undefined;
|
|
16
|
-
title?: string | undefined;
|
|
17
|
-
}>>;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @typedef {Slack} slack
|
|
21
|
-
* @property {string}
|
|
22
|
-
* @property {string}
|
|
23
|
-
* @property {string}
|
|
24
|
-
*/
|
|
25
|
-
export type Slack = z.infer<typeof slack>;
|
|
26
|
-
/**
|
|
27
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
28
|
-
* Is equal to application shape if all property names match the api schema
|
|
29
|
-
*/
|
|
30
|
-
export declare const slackResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
|
31
|
-
action_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
-
content: z.ZodOptional<z.ZodString>;
|
|
33
|
-
title: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
content?: string | undefined;
|
|
36
|
-
title?: string | undefined;
|
|
37
|
-
action_url?: string | null | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
content?: string | undefined;
|
|
40
|
-
title?: string | undefined;
|
|
41
|
-
action_url?: string | null | undefined;
|
|
42
|
-
}>, {
|
|
43
|
-
actionUrl: string | null | undefined;
|
|
44
|
-
content: string | undefined;
|
|
45
|
-
title: string | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
content?: string | undefined;
|
|
48
|
-
title?: string | undefined;
|
|
49
|
-
action_url?: string | null | undefined;
|
|
50
|
-
}>>;
|
|
51
|
-
/**
|
|
52
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
53
|
-
* Is equal to application shape if all property names match the api schema
|
|
54
|
-
*/
|
|
55
|
-
export declare const slackRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
|
56
|
-
actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
|
-
content: z.ZodOptional<z.ZodString>;
|
|
58
|
-
title: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
actionUrl?: string | null | undefined;
|
|
61
|
-
content?: string | undefined;
|
|
62
|
-
title?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
actionUrl?: string | null | undefined;
|
|
65
|
-
content?: string | undefined;
|
|
66
|
-
title?: string | undefined;
|
|
67
|
-
}>, {
|
|
68
|
-
action_url: string | null | undefined;
|
|
69
|
-
content: string | undefined;
|
|
70
|
-
title: string | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
actionUrl?: string | null | undefined;
|
|
73
|
-
content?: string | undefined;
|
|
74
|
-
title?: string | undefined;
|
|
75
|
-
}>>;
|
|
76
|
-
//# sourceMappingURL=slack.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slack.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/slack.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;GAMhB,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;GAYxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;GAYvB,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.slackRequest = exports.slackResponse = exports.slack = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
/**
|
|
6
|
-
* The shape of the model inside the application code - what the users use
|
|
7
|
-
*/
|
|
8
|
-
exports.slack = zod_1.z.lazy(() => {
|
|
9
|
-
return zod_1.z.object({
|
|
10
|
-
actionUrl: zod_1.z.string().max(2048).optional().nullable(),
|
|
11
|
-
content: zod_1.z.string().max(1048576).optional(),
|
|
12
|
-
title: zod_1.z.string().min(1).max(255).optional(),
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
/**
|
|
16
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
17
|
-
* Is equal to application shape if all property names match the api schema
|
|
18
|
-
*/
|
|
19
|
-
exports.slackResponse = zod_1.z.lazy(() => {
|
|
20
|
-
return zod_1.z
|
|
21
|
-
.object({
|
|
22
|
-
action_url: zod_1.z.string().max(2048).optional().nullable(),
|
|
23
|
-
content: zod_1.z.string().max(1048576).optional(),
|
|
24
|
-
title: zod_1.z.string().min(1).max(255).optional(),
|
|
25
|
-
})
|
|
26
|
-
.transform((data) => ({
|
|
27
|
-
actionUrl: data['action_url'],
|
|
28
|
-
content: data['content'],
|
|
29
|
-
title: data['title'],
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
34
|
-
* Is equal to application shape if all property names match the api schema
|
|
35
|
-
*/
|
|
36
|
-
exports.slackRequest = zod_1.z.lazy(() => {
|
|
37
|
-
return zod_1.z
|
|
38
|
-
.object({
|
|
39
|
-
actionUrl: zod_1.z.string().max(2048).optional().nullable(),
|
|
40
|
-
content: zod_1.z.string().max(1048576).optional(),
|
|
41
|
-
title: zod_1.z.string().min(1).max(255).optional(),
|
|
42
|
-
})
|
|
43
|
-
.transform((data) => ({
|
|
44
|
-
action_url: data['actionUrl'],
|
|
45
|
-
content: data['content'],
|
|
46
|
-
title: data['title'],
|
|
47
|
-
}));
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=slack.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slack.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/slack.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,KAAK,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IAC/B,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWH;;;GAGG;AACU,QAAA,aAAa,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACvC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,YAAY,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACtC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* The shape of the model inside the application code - what the users use
|
|
4
|
-
*/
|
|
5
|
-
export declare const webPush: z.ZodLazy<z.ZodObject<{
|
|
6
|
-
actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
-
content: z.ZodOptional<z.ZodString>;
|
|
8
|
-
title: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
actionUrl?: string | null | undefined;
|
|
11
|
-
content?: string | undefined;
|
|
12
|
-
title?: string | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
actionUrl?: string | null | undefined;
|
|
15
|
-
content?: string | undefined;
|
|
16
|
-
title?: string | undefined;
|
|
17
|
-
}>>;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @typedef {WebPush} webPush
|
|
21
|
-
* @property {string}
|
|
22
|
-
* @property {string}
|
|
23
|
-
* @property {string}
|
|
24
|
-
*/
|
|
25
|
-
export type WebPush = z.infer<typeof webPush>;
|
|
26
|
-
/**
|
|
27
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
28
|
-
* Is equal to application shape if all property names match the api schema
|
|
29
|
-
*/
|
|
30
|
-
export declare const webPushResponse: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
|
31
|
-
action_url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
32
|
-
content: z.ZodOptional<z.ZodString>;
|
|
33
|
-
title: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
content?: string | undefined;
|
|
36
|
-
title?: string | undefined;
|
|
37
|
-
action_url?: string | null | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
content?: string | undefined;
|
|
40
|
-
title?: string | undefined;
|
|
41
|
-
action_url?: string | null | undefined;
|
|
42
|
-
}>, {
|
|
43
|
-
actionUrl: string | null | undefined;
|
|
44
|
-
content: string | undefined;
|
|
45
|
-
title: string | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
content?: string | undefined;
|
|
48
|
-
title?: string | undefined;
|
|
49
|
-
action_url?: string | null | undefined;
|
|
50
|
-
}>>;
|
|
51
|
-
/**
|
|
52
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
53
|
-
* Is equal to application shape if all property names match the api schema
|
|
54
|
-
*/
|
|
55
|
-
export declare const webPushRequest: z.ZodLazy<z.ZodEffects<z.ZodObject<{
|
|
56
|
-
actionUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
57
|
-
content: z.ZodOptional<z.ZodString>;
|
|
58
|
-
title: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
actionUrl?: string | null | undefined;
|
|
61
|
-
content?: string | undefined;
|
|
62
|
-
title?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
actionUrl?: string | null | undefined;
|
|
65
|
-
content?: string | undefined;
|
|
66
|
-
title?: string | undefined;
|
|
67
|
-
}>, {
|
|
68
|
-
action_url: string | null | undefined;
|
|
69
|
-
content: string | undefined;
|
|
70
|
-
title: string | undefined;
|
|
71
|
-
}, {
|
|
72
|
-
actionUrl?: string | null | undefined;
|
|
73
|
-
content?: string | undefined;
|
|
74
|
-
title?: string | undefined;
|
|
75
|
-
}>>;
|
|
76
|
-
//# sourceMappingURL=web-push.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web-push.d.ts","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/web-push.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;GAMlB,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE9C;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;GAY1B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;GAYzB,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webPushRequest = exports.webPushResponse = exports.webPush = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
/**
|
|
6
|
-
* The shape of the model inside the application code - what the users use
|
|
7
|
-
*/
|
|
8
|
-
exports.webPush = zod_1.z.lazy(() => {
|
|
9
|
-
return zod_1.z.object({
|
|
10
|
-
actionUrl: zod_1.z.string().max(2048).optional().nullable(),
|
|
11
|
-
content: zod_1.z.string().max(1048576).optional(),
|
|
12
|
-
title: zod_1.z.string().min(1).max(255).optional(),
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
/**
|
|
16
|
-
* The shape of the model mapping from the api schema into the application shape.
|
|
17
|
-
* Is equal to application shape if all property names match the api schema
|
|
18
|
-
*/
|
|
19
|
-
exports.webPushResponse = zod_1.z.lazy(() => {
|
|
20
|
-
return zod_1.z
|
|
21
|
-
.object({
|
|
22
|
-
action_url: zod_1.z.string().max(2048).optional().nullable(),
|
|
23
|
-
content: zod_1.z.string().max(1048576).optional(),
|
|
24
|
-
title: zod_1.z.string().min(1).max(255).optional(),
|
|
25
|
-
})
|
|
26
|
-
.transform((data) => ({
|
|
27
|
-
actionUrl: data['action_url'],
|
|
28
|
-
content: data['content'],
|
|
29
|
-
title: data['title'],
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* The shape of the model mapping from the application shape into the api schema.
|
|
34
|
-
* Is equal to application shape if all property names match the api schema
|
|
35
|
-
*/
|
|
36
|
-
exports.webPushRequest = zod_1.z.lazy(() => {
|
|
37
|
-
return zod_1.z
|
|
38
|
-
.object({
|
|
39
|
-
actionUrl: zod_1.z.string().max(2048).optional().nullable(),
|
|
40
|
-
content: zod_1.z.string().max(1048576).optional(),
|
|
41
|
-
title: zod_1.z.string().min(1).max(255).optional(),
|
|
42
|
-
})
|
|
43
|
-
.transform((data) => ({
|
|
44
|
-
action_url: data['actionUrl'],
|
|
45
|
-
content: data['content'],
|
|
46
|
-
title: data['title'],
|
|
47
|
-
}));
|
|
48
|
-
});
|
|
49
|
-
//# sourceMappingURL=web-push.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"web-push.js","sourceRoot":"","sources":["../../../../../../src/project-client/services/broadcasts/models/web-push.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;GAEG;AACU,QAAA,OAAO,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACjC,OAAO,OAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAWH;;;GAGG;AACU,QAAA,eAAe,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACzC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACtD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,YAAY,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACU,QAAA,cAAc,GAAG,OAAC,CAAC,IAAI,CAAC,GAAG,EAAE;IACxC,OAAO,OAAC;SACL,MAAM,CAAC;QACN,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACrD,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;QAC3C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;KAC7C,CAAC;SACD,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpB,UAAU,EAAE,IAAI,CAAC,WAAW,CAAC;QAC7B,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;QACxB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;KACrB,CAAC,CAAC,CAAC;AACR,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/project-client/services/jwt/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JwtService = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
var jwt_service_js_1 = require("./jwt-service.js");
|
|
6
|
-
Object.defineProperty(exports, "JwtService", { enumerable: true, get: function () { return jwt_service_js_1.JwtService; } });
|
|
7
|
-
tslib_1.__exportStar(require("./models/index.js"), exports);
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/project-client/services/jwt/index.ts"],"names":[],"mappings":";;;;AAAA,mDAA8C;AAArC,4GAAA,UAAU,OAAA;AACnB,4DAAkC"}
|