@novu/api 0.0.1-alpha.149 → 0.0.1-alpha.155
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 +1 -1
- package/RUNTIMES.md +27 -1
- package/docs/sdks/credentials/README.md +39 -24
- package/docs/sdks/integrations/README.md +15 -5
- package/docs/sdks/messages/README.md +8 -4
- package/docs/sdks/notifications/README.md +1 -0
- package/docs/sdks/novu/README.md +7 -3
- package/docs/sdks/novumessages/README.md +24 -14
- package/docs/sdks/novusubscribers/README.md +45 -30
- package/docs/sdks/preferences/README.md +16 -8
- package/docs/sdks/properties/README.md +11 -6
- package/docs/sdks/stats/README.md +2 -0
- package/docs/sdks/subscribers/README.md +52 -42
- package/docs/sdks/topics/README.md +15 -7
- package/docs/sdks/webhooks/README.md +1 -0
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +8 -6
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +16 -9
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +8 -6
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +20 -6
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +21 -6
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +8 -6
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -2
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +8 -11
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +8 -6
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +8 -6
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +8 -11
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +6 -5
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +6 -5
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +8 -6
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +8 -6
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +20 -6
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +6 -5
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +7 -6
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +16 -9
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +16 -9
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -2
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +8 -11
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +8 -11
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -2
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +8 -11
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +8 -6
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +16 -16
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -2
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +8 -11
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -2
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +8 -11
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +6 -5
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +6 -5
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +6 -5
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +8 -11
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +6 -5
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +6 -5
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -2
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +8 -11
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -2
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +8 -11
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +8 -11
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts +1 -2
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +8 -11
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/topicsCreate.d.ts +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +15 -9
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +8 -6
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +6 -5
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts +1 -2
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +8 -11
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +8 -6
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts +1 -2
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +8 -11
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts +1 -2
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +8 -11
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +8 -11
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +15 -9
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +16 -9
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +15 -9
- package/funcs/triggerBulk.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +4 -5
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +18 -19
- package/lib/encodings.js.map +1 -1
- package/lib/http.js +1 -2
- package/lib/http.js.map +1 -1
- package/lib/matchers.js +5 -6
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.js +1 -1
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +3 -4
- package/lib/retries.js.map +1 -1
- package/lib/sdks.js +15 -16
- package/lib/sdks.js.map +1 -1
- package/lib/security.js +1 -1
- package/lib/security.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +0 -5
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +0 -4
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +49 -19
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +29 -23
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/builderfieldtype.d.ts +46 -0
- package/models/components/builderfieldtype.d.ts.map +1 -0
- package/models/components/builderfieldtype.js +56 -0
- package/models/components/builderfieldtype.js.map +1 -0
- package/models/components/createintegrationrequestdto.d.ts +3 -3
- package/models/components/createintegrationrequestdto.d.ts.map +1 -1
- package/models/components/createintegrationrequestdto.js +3 -3
- package/models/components/createintegrationrequestdto.js.map +1 -1
- package/models/components/digestregularmetadata.d.ts +8 -8
- package/models/components/digestregularmetadata.d.ts.map +1 -1
- package/models/components/digestregularmetadata.js +13 -13
- package/models/components/digestregularmetadata.js.map +1 -1
- package/models/components/digestwitheventsdto.d.ts +95 -0
- package/models/components/digestwitheventsdto.d.ts.map +1 -0
- package/models/components/digestwitheventsdto.js +91 -0
- package/models/components/digestwitheventsdto.js.map +1 -0
- package/models/components/fieldfilterpartdto.d.ts +122 -0
- package/models/components/fieldfilterpartdto.d.ts.map +1 -0
- package/models/components/fieldfilterpartdto.js +116 -0
- package/models/components/fieldfilterpartdto.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +3 -3
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +3 -3
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/notificationstep.d.ts +3 -3
- package/models/components/notificationstep.d.ts.map +1 -1
- package/models/components/notificationstep.js +3 -3
- package/models/components/notificationstep.js.map +1 -1
- package/models/components/notificationstepvariant.d.ts +3 -3
- package/models/components/notificationstepvariant.d.ts.map +1 -1
- package/models/components/notificationstepvariant.js +3 -3
- package/models/components/notificationstepvariant.js.map +1 -1
- package/models/components/notificationtriggervariableresponse.d.ts +15 -15
- package/models/components/notificationtriggervariableresponse.d.ts.map +1 -1
- package/models/components/notificationtriggervariableresponse.js +20 -19
- package/models/components/notificationtriggervariableresponse.js.map +1 -1
- package/models/components/stepfilterdto.d.ts +63 -0
- package/models/components/stepfilterdto.d.ts.map +1 -0
- package/models/components/stepfilterdto.js +86 -0
- package/models/components/stepfilterdto.js.map +1 -0
- package/models/components/updateintegrationrequestdto.d.ts +3 -3
- package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
- package/models/components/updateintegrationrequestdto.js +3 -3
- package/models/components/updateintegrationrequestdto.js.map +1 -1
- package/models/errors/httpclienterrors.js +2 -2
- package/models/errors/httpclienterrors.js.map +1 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.d.ts +30 -0
- package/models/operations/eventscontrollerbroadcasteventtoall.d.ts.map +1 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.js +40 -1
- package/models/operations/eventscontrollerbroadcasteventtoall.js.map +1 -1
- package/models/operations/eventscontrollercancel.d.ts +5 -0
- package/models/operations/eventscontrollercancel.d.ts.map +1 -1
- package/models/operations/eventscontrollercancel.js +10 -0
- package/models/operations/eventscontrollercancel.js.map +1 -1
- package/models/operations/eventscontrollertrigger.d.ts +30 -0
- package/models/operations/eventscontrollertrigger.d.ts.map +1 -1
- package/models/operations/eventscontrollertrigger.js +40 -1
- package/models/operations/eventscontrollertrigger.js.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.d.ts +30 -0
- package/models/operations/eventscontrollertriggerbulk.d.ts.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.js +40 -1
- package/models/operations/eventscontrollertriggerbulk.js.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.d.ts +30 -0
- package/models/operations/integrationscontrollercreateintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.js +40 -1
- package/models/operations/integrationscontrollercreateintegration.js.map +1 -1
- package/models/operations/integrationscontrollergetactiveintegrations.d.ts +28 -0
- package/models/operations/integrationscontrollergetactiveintegrations.d.ts.map +1 -1
- package/models/operations/integrationscontrollergetactiveintegrations.js +36 -1
- package/models/operations/integrationscontrollergetactiveintegrations.js.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +5 -0
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js +10 -0
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js.map +1 -1
- package/models/operations/integrationscontrollerlistintegrations.d.ts +28 -0
- package/models/operations/integrationscontrollerlistintegrations.d.ts.map +1 -1
- package/models/operations/integrationscontrollerlistintegrations.js +36 -1
- package/models/operations/integrationscontrollerlistintegrations.js.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.d.ts +5 -0
- package/models/operations/integrationscontrollerremoveintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.js +10 -0
- package/models/operations/integrationscontrollerremoveintegration.js.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +5 -0
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.js +10 -0
- package/models/operations/integrationscontrollersetintegrationasprimary.js.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +5 -0
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.js +4 -0
- package/models/operations/integrationscontrollerupdateintegrationbyid.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.d.ts +5 -0
- package/models/operations/messagescontrollerdeletemessage.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.js +10 -0
- package/models/operations/messagescontrollerdeletemessage.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +5 -0
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +10 -0
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +5 -0
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js +10 -0
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +5 -0
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.js +10 -0
- package/models/operations/notificationscontrollergetactivitygraphstats.js.map +1 -1
- package/models/operations/notificationscontrollergetactivitystats.d.ts +28 -0
- package/models/operations/notificationscontrollergetactivitystats.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetactivitystats.js +36 -1
- package/models/operations/notificationscontrollergetactivitystats.js.map +1 -1
- package/models/operations/notificationscontrollergetnotification.d.ts +5 -0
- package/models/operations/notificationscontrollergetnotification.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetnotification.js +10 -0
- package/models/operations/notificationscontrollergetnotification.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +10 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +30 -0
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +40 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +5 -0
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +10 -0
- package/models/operations/subscriberscontrollerchataccessoauth.js.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +5 -0
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +10 -0
- package/models/operations/subscriberscontrollerchatoauthcallback.js.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +30 -0
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +40 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +5 -0
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +10 -0
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +5 -0
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +10 -0
- package/models/operations/subscriberscontrollergetnotificationsfeed.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +5 -0
- package/models/operations/subscriberscontrollergetsubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +10 -0
- package/models/operations/subscriberscontrollergetsubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +5 -0
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +10 -0
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.d.ts +5 -0
- package/models/operations/subscriberscontrollergetunseencount.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.js +10 -0
- package/models/operations/subscriberscontrollergetunseencount.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +5 -0
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +10 -0
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +5 -0
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +10 -0
- package/models/operations/subscriberscontrollerlistsubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +5 -0
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +4 -0
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +5 -0
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +4 -0
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +5 -0
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +4 -0
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +5 -0
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +4 -0
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +5 -0
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.js +10 -0
- package/models/operations/subscriberscontrollerremovesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +5 -0
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +4 -0
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js.map +1 -1
- package/models/operations/topicscontrollerassign.d.ts +5 -0
- package/models/operations/topicscontrollerassign.d.ts.map +1 -1
- package/models/operations/topicscontrollerassign.js +4 -0
- package/models/operations/topicscontrollerassign.js.map +1 -1
- package/models/operations/topicscontrollercreatetopic.d.ts +30 -0
- package/models/operations/topicscontrollercreatetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollercreatetopic.js +40 -1
- package/models/operations/topicscontrollercreatetopic.js.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.d.ts +5 -0
- package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +10 -0
- package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
- package/models/operations/topicscontrollergettopic.d.ts +5 -0
- package/models/operations/topicscontrollergettopic.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopic.js +10 -0
- package/models/operations/topicscontrollergettopic.js.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.d.ts +5 -0
- package/models/operations/topicscontrollergettopicsubscriber.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.js +10 -0
- package/models/operations/topicscontrollergettopicsubscriber.js.map +1 -1
- package/models/operations/topicscontrollerlisttopics.d.ts +5 -0
- package/models/operations/topicscontrollerlisttopics.d.ts.map +1 -1
- package/models/operations/topicscontrollerlisttopics.js +10 -0
- package/models/operations/topicscontrollerlisttopics.js.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.d.ts +5 -0
- package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +4 -0
- package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
- package/models/operations/topicscontrollerrenametopic.d.ts +5 -0
- package/models/operations/topicscontrollerrenametopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerrenametopic.js +4 -0
- package/models/operations/topicscontrollerrenametopic.js.map +1 -1
- package/package.json +1 -1
- package/sdk/credentials.d.ts +3 -4
- package/sdk/credentials.d.ts.map +1 -1
- package/sdk/credentials.js +6 -6
- package/sdk/credentials.js.map +1 -1
- package/sdk/integrations.d.ts +6 -6
- package/sdk/integrations.d.ts.map +1 -1
- package/sdk/integrations.js +13 -14
- package/sdk/integrations.js.map +1 -1
- package/sdk/messages.d.ts +2 -2
- package/sdk/messages.d.ts.map +1 -1
- package/sdk/messages.js +4 -4
- package/sdk/messages.js.map +1 -1
- package/sdk/notifications.d.ts +1 -1
- package/sdk/notifications.d.ts.map +1 -1
- package/sdk/notifications.js +3 -4
- package/sdk/notifications.js.map +1 -1
- package/sdk/novumessages.d.ts +2 -3
- package/sdk/novumessages.d.ts.map +1 -1
- package/sdk/novumessages.js +4 -4
- package/sdk/novumessages.js.map +1 -1
- package/sdk/novusubscribers.d.ts +3 -4
- package/sdk/novusubscribers.d.ts.map +1 -1
- package/sdk/novusubscribers.js +6 -6
- package/sdk/novusubscribers.js.map +1 -1
- package/sdk/preferences.d.ts +2 -3
- package/sdk/preferences.d.ts.map +1 -1
- package/sdk/preferences.js +4 -4
- package/sdk/preferences.js.map +1 -1
- package/sdk/properties.d.ts +1 -2
- package/sdk/properties.d.ts.map +1 -1
- package/sdk/properties.js +2 -2
- package/sdk/properties.js.map +1 -1
- package/sdk/sdk.d.ts +4 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +13 -18
- package/sdk/sdk.js.map +1 -1
- package/sdk/stats.d.ts +2 -2
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +4 -4
- package/sdk/stats.js.map +1 -1
- package/sdk/subscribers.d.ts +6 -6
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +18 -24
- package/sdk/subscribers.js.map +1 -1
- package/sdk/topics.d.ts +4 -4
- package/sdk/topics.d.ts.map +1 -1
- package/sdk/topics.js +9 -10
- package/sdk/topics.js.map +1 -1
- package/sdk/webhooks.d.ts +1 -1
- package/sdk/webhooks.d.ts.map +1 -1
- package/sdk/webhooks.js +2 -2
- package/sdk/webhooks.js.map +1 -1
- package/src/funcs/cancel.ts +9 -2
- package/src/funcs/integrationsCreate.ts +21 -7
- package/src/funcs/integrationsDelete.ts +9 -2
- package/src/funcs/integrationsList.ts +28 -2
- package/src/funcs/integrationsListActive.ts +29 -2
- package/src/funcs/integrationsSetAsPrimary.ts +9 -2
- package/src/funcs/integrationsUpdate.ts +9 -11
- package/src/funcs/integrationsWebhooksRetrieve.ts +9 -2
- package/src/funcs/messagesDelete.ts +9 -2
- package/src/funcs/messagesDeleteByTransactionId.ts +9 -11
- package/src/funcs/messagesRetrieve.ts +8 -3
- package/src/funcs/notificationsList.ts +8 -3
- package/src/funcs/notificationsRetrieve.ts +9 -2
- package/src/funcs/notificationsStatsGraph.ts +10 -3
- package/src/funcs/notificationsStatsRetrieve.ts +28 -2
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +7 -2
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +7 -2
- package/src/funcs/subscribersCreate.ts +21 -7
- package/src/funcs/subscribersCreateBulk.ts +24 -7
- package/src/funcs/subscribersCredentialsAppend.ts +9 -13
- package/src/funcs/subscribersCredentialsDelete.ts +9 -11
- package/src/funcs/subscribersCredentialsUpdate.ts +9 -13
- package/src/funcs/subscribersDelete.ts +9 -2
- package/src/funcs/subscribersList.ts +18 -17
- package/src/funcs/subscribersMessagesMarkAll.ts +9 -11
- package/src/funcs/subscribersMessagesMarkAllAs.ts +9 -11
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +7 -2
- package/src/funcs/subscribersNotificationsFeed.ts +7 -2
- package/src/funcs/subscribersNotificationsUnseenCount.ts +7 -2
- package/src/funcs/subscribersPreferencesList.ts +9 -11
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +7 -2
- package/src/funcs/subscribersPreferencesUpdate.ts +7 -2
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +10 -14
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +9 -14
- package/src/funcs/subscribersRetrieve.ts +9 -10
- package/src/funcs/subscribersUpdate.ts +9 -11
- package/src/funcs/topicsCreate.ts +21 -7
- package/src/funcs/topicsDelete.ts +9 -2
- package/src/funcs/topicsList.ts +8 -3
- package/src/funcs/topicsRename.ts +9 -11
- package/src/funcs/topicsRetrieve.ts +9 -2
- package/src/funcs/topicsSubscribersAssign.ts +9 -11
- package/src/funcs/topicsSubscribersRemove.ts +9 -11
- package/src/funcs/topicsSubscribersRetrieve.ts +9 -10
- package/src/funcs/trigger.ts +21 -7
- package/src/funcs/triggerBroadcast.ts +21 -7
- package/src/funcs/triggerBulk.ts +21 -7
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +0 -9
- package/src/models/components/activitynotificationjobresponsedto.ts +47 -41
- package/src/models/components/builderfieldtype.ts +39 -0
- package/src/models/components/createintegrationrequestdto.ts +9 -9
- package/src/models/components/digestregularmetadata.ts +18 -15
- package/src/models/components/digestwitheventsdto.ts +127 -0
- package/src/models/components/fieldfilterpartdto.ts +139 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/integrationresponsedto.ts +9 -9
- package/src/models/components/notificationstep.ts +9 -9
- package/src/models/components/notificationstepvariant.ts +9 -9
- package/src/models/components/notificationtriggervariableresponse.ts +44 -24
- package/src/models/components/stepfilterdto.ts +112 -0
- package/src/models/components/updateintegrationrequestdto.ts +9 -9
- package/src/models/operations/eventscontrollerbroadcasteventtoall.ts +87 -0
- package/src/models/operations/eventscontrollercancel.ts +15 -0
- package/src/models/operations/eventscontrollertrigger.ts +77 -0
- package/src/models/operations/eventscontrollertriggerbulk.ts +79 -0
- package/src/models/operations/integrationscontrollercreateintegration.ts +91 -0
- package/src/models/operations/integrationscontrollergetactiveintegrations.ts +83 -0
- package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +15 -0
- package/src/models/operations/integrationscontrollerlistintegrations.ts +82 -0
- package/src/models/operations/integrationscontrollerremoveintegration.ts +15 -0
- package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +15 -0
- package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +9 -0
- package/src/models/operations/messagescontrollerdeletemessage.ts +15 -0
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +15 -0
- package/src/models/operations/messagescontrollergetmessages.ts +15 -0
- package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +15 -0
- package/src/models/operations/notificationscontrollergetactivitystats.ts +83 -0
- package/src/models/operations/notificationscontrollergetnotification.ts +15 -0
- package/src/models/operations/notificationscontrollerlistnotifications.ts +15 -0
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +89 -0
- package/src/models/operations/subscriberscontrollerchataccessoauth.ts +15 -0
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +15 -0
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +90 -0
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +15 -0
- package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +15 -0
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +15 -0
- package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +15 -0
- package/src/models/operations/subscriberscontrollergetunseencount.ts +15 -0
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +15 -0
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +15 -0
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +9 -0
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +9 -0
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +9 -0
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +9 -0
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +15 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +9 -0
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +9 -0
- package/src/models/operations/topicscontrollerassign.ts +9 -0
- package/src/models/operations/topicscontrollercreatetopic.ts +79 -0
- package/src/models/operations/topicscontrollerdeletetopic.ts +15 -0
- package/src/models/operations/topicscontrollergettopic.ts +15 -0
- package/src/models/operations/topicscontrollergettopicsubscriber.ts +15 -0
- package/src/models/operations/topicscontrollerlisttopics.ts +15 -0
- package/src/models/operations/topicscontrollerremovesubscribers.ts +9 -0
- package/src/models/operations/topicscontrollerrenametopic.ts +9 -0
- package/src/sdk/credentials.ts +6 -15
- package/src/sdk/integrations.ts +14 -6
- package/src/sdk/messages.ts +4 -4
- package/src/sdk/notifications.ts +2 -0
- package/src/sdk/novumessages.ts +4 -9
- package/src/sdk/novusubscribers.ts +6 -13
- package/src/sdk/preferences.ts +5 -10
- package/src/sdk/properties.ts +2 -6
- package/src/sdk/sdk.ts +14 -6
- package/src/sdk/stats.ts +4 -0
- package/src/sdk/subscribers.ts +16 -16
- package/src/sdk/topics.ts +10 -6
- package/src/sdk/webhooks.ts +2 -0
package/sdk/subscribers.js
CHANGED
|
@@ -21,28 +21,22 @@ const preferences_js_1 = require("./preferences.js");
|
|
|
21
21
|
const properties_js_1 = require("./properties.js");
|
|
22
22
|
class Subscribers extends sdks_js_1.ClientSDK {
|
|
23
23
|
get credentials() {
|
|
24
|
-
|
|
25
|
-
return ((_a = this._credentials) !== null && _a !== void 0 ? _a : (this._credentials = new credentials_js_1.Credentials(this._options)));
|
|
24
|
+
return (this._credentials ?? (this._credentials = new credentials_js_1.Credentials(this._options)));
|
|
26
25
|
}
|
|
27
26
|
get properties() {
|
|
28
|
-
|
|
29
|
-
return ((_a = this._properties) !== null && _a !== void 0 ? _a : (this._properties = new properties_js_1.Properties(this._options)));
|
|
27
|
+
return (this._properties ?? (this._properties = new properties_js_1.Properties(this._options)));
|
|
30
28
|
}
|
|
31
29
|
get preferences() {
|
|
32
|
-
|
|
33
|
-
return ((_a = this._preferences) !== null && _a !== void 0 ? _a : (this._preferences = new preferences_js_1.Preferences(this._options)));
|
|
30
|
+
return (this._preferences ?? (this._preferences = new preferences_js_1.Preferences(this._options)));
|
|
34
31
|
}
|
|
35
32
|
get notifications() {
|
|
36
|
-
|
|
37
|
-
return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new novunotifications_js_1.NovuNotifications(this._options)));
|
|
33
|
+
return (this._notifications ?? (this._notifications = new novunotifications_js_1.NovuNotifications(this._options)));
|
|
38
34
|
}
|
|
39
35
|
get messages() {
|
|
40
|
-
|
|
41
|
-
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new novumessages_js_1.NovuMessages(this._options)));
|
|
36
|
+
return (this._messages ?? (this._messages = new novumessages_js_1.NovuMessages(this._options)));
|
|
42
37
|
}
|
|
43
38
|
get authentication() {
|
|
44
|
-
|
|
45
|
-
return ((_a = this._authentication) !== null && _a !== void 0 ? _a : (this._authentication = new authentication_js_1.Authentication(this._options)));
|
|
39
|
+
return (this._authentication ?? (this._authentication = new authentication_js_1.Authentication(this._options)));
|
|
46
40
|
}
|
|
47
41
|
/**
|
|
48
42
|
* Get subscribers
|
|
@@ -50,8 +44,8 @@ class Subscribers extends sdks_js_1.ClientSDK {
|
|
|
50
44
|
* @remarks
|
|
51
45
|
* Returns a list of subscribers, could paginated using the `page` and `limit` query parameter
|
|
52
46
|
*/
|
|
53
|
-
async list(
|
|
54
|
-
return (0, operations_js_1.unwrapResultIterator)((0, subscribersList_js_1.subscribersList)(this,
|
|
47
|
+
async list(request, options) {
|
|
48
|
+
return (0, operations_js_1.unwrapResultIterator)((0, subscribersList_js_1.subscribersList)(this, request, options));
|
|
55
49
|
}
|
|
56
50
|
/**
|
|
57
51
|
* Create subscriber
|
|
@@ -59,8 +53,8 @@ class Subscribers extends sdks_js_1.ClientSDK {
|
|
|
59
53
|
* @remarks
|
|
60
54
|
* Creates a subscriber entity, in the Novu platform. The subscriber will be later used to receive notifications, and access notification feeds. Communication credentials such as email, phone number, and 3 rd party credentials i.e slack tokens could be later associated to this entity.
|
|
61
55
|
*/
|
|
62
|
-
async create(
|
|
63
|
-
return (0, fp_js_1.unwrapAsync)((0, subscribersCreate_js_1.subscribersCreate)(this,
|
|
56
|
+
async create(createSubscriberRequestDto, idempotencyKey, options) {
|
|
57
|
+
return (0, fp_js_1.unwrapAsync)((0, subscribersCreate_js_1.subscribersCreate)(this, createSubscriberRequestDto, idempotencyKey, options));
|
|
64
58
|
}
|
|
65
59
|
/**
|
|
66
60
|
* Get subscriber
|
|
@@ -68,8 +62,8 @@ class Subscribers extends sdks_js_1.ClientSDK {
|
|
|
68
62
|
* @remarks
|
|
69
63
|
* Get subscriber by your internal id used to identify the subscriber
|
|
70
64
|
*/
|
|
71
|
-
async retrieve(
|
|
72
|
-
return (0, fp_js_1.unwrapAsync)((0, subscribersRetrieve_js_1.subscribersRetrieve)(this,
|
|
65
|
+
async retrieve(request, options) {
|
|
66
|
+
return (0, fp_js_1.unwrapAsync)((0, subscribersRetrieve_js_1.subscribersRetrieve)(this, request, options));
|
|
73
67
|
}
|
|
74
68
|
/**
|
|
75
69
|
* Update subscriber
|
|
@@ -77,8 +71,8 @@ class Subscribers extends sdks_js_1.ClientSDK {
|
|
|
77
71
|
* @remarks
|
|
78
72
|
* Used to update the subscriber entity with new information
|
|
79
73
|
*/
|
|
80
|
-
async update(
|
|
81
|
-
return (0, fp_js_1.unwrapAsync)((0, subscribersUpdate_js_1.subscribersUpdate)(this,
|
|
74
|
+
async update(request, options) {
|
|
75
|
+
return (0, fp_js_1.unwrapAsync)((0, subscribersUpdate_js_1.subscribersUpdate)(this, request, options));
|
|
82
76
|
}
|
|
83
77
|
/**
|
|
84
78
|
* Delete subscriber
|
|
@@ -86,8 +80,8 @@ class Subscribers extends sdks_js_1.ClientSDK {
|
|
|
86
80
|
* @remarks
|
|
87
81
|
* Deletes a subscriber entity from the Novu platform
|
|
88
82
|
*/
|
|
89
|
-
async delete(subscriberId, options) {
|
|
90
|
-
return (0, fp_js_1.unwrapAsync)((0, subscribersDelete_js_1.subscribersDelete)(this, subscriberId, options));
|
|
83
|
+
async delete(subscriberId, idempotencyKey, options) {
|
|
84
|
+
return (0, fp_js_1.unwrapAsync)((0, subscribersDelete_js_1.subscribersDelete)(this, subscriberId, idempotencyKey, options));
|
|
91
85
|
}
|
|
92
86
|
/**
|
|
93
87
|
* Bulk create subscribers
|
|
@@ -97,8 +91,8 @@ class Subscribers extends sdks_js_1.ClientSDK {
|
|
|
97
91
|
* Using this endpoint you can create multiple subscribers at once, to avoid multiple calls to the API.
|
|
98
92
|
* The bulk API is limited to 500 subscribers per request.
|
|
99
93
|
*/
|
|
100
|
-
async createBulk(
|
|
101
|
-
return (0, fp_js_1.unwrapAsync)((0, subscribersCreateBulk_js_1.subscribersCreateBulk)(this,
|
|
94
|
+
async createBulk(bulkSubscriberCreateDto, idempotencyKey, options) {
|
|
95
|
+
return (0, fp_js_1.unwrapAsync)((0, subscribersCreateBulk_js_1.subscribersCreateBulk)(this, bulkSubscriberCreateDto, idempotencyKey, options));
|
|
102
96
|
}
|
|
103
97
|
}
|
|
104
98
|
exports.Subscribers = Subscribers;
|
package/sdk/subscribers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscribers.js","sourceRoot":"","sources":["../src/sdk/subscribers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wEAAkE;AAClE,gFAA0E;AAC1E,wEAAkE;AAClE,oEAA8D;AAC9D,4EAAsE;AACtE,wEAAkE;AAClE,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAC5E,2DAAqD;AACrD,qDAA+C;AAC/C,uDAAiD;AACjD,iEAA2D;AAC3D,qDAA+C;AAC/C,mDAA6C;AAE7C,MAAa,WAAY,SAAQ,mBAAS;IAExC,IAAI,WAAW
|
|
1
|
+
{"version":3,"file":"subscribers.js","sourceRoot":"","sources":["../src/sdk/subscribers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wEAAkE;AAClE,gFAA0E;AAC1E,wEAAkE;AAClE,oEAA8D;AAC9D,4EAAsE;AACtE,wEAAkE;AAClE,4CAA2D;AAG3D,0CAA6C;AAC7C,0DAA4E;AAC5E,2DAAqD;AACrD,qDAA+C;AAC/C,uDAAiD;AACjD,iEAA2D;AAC3D,qDAA+C;AAC/C,mDAA6C;AAE7C,MAAa,WAAY,SAAQ,mBAAS;IAExC,IAAI,WAAW;QACb,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,4BAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAGD,IAAI,UAAU;QACZ,OAAO,CAAC,IAAI,CAAC,WAAW,KAAhB,IAAI,CAAC,WAAW,GAAK,IAAI,0BAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,WAAW;QACb,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,4BAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAChE,CAAC;IAGD,IAAI,aAAa;QACf,OAAO,CAAC,IAAI,CAAC,cAAc,KAAnB,IAAI,CAAC,cAAc,GAAK,IAAI,wCAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACxE,CAAC;IAGD,IAAI,QAAQ;QACV,OAAO,CAAC,IAAI,CAAC,SAAS,KAAd,IAAI,CAAC,SAAS,GAAK,IAAI,8BAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IAC9D,CAAC;IAGD,IAAI,cAAc;QAChB,OAAO,CAAC,IAAI,CAAC,eAAe,KAApB,IAAI,CAAC,eAAe,GAAK,IAAI,kCAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACtE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA+D,EAC/D,OAAwB;QAOxB,OAAO,IAAA,oCAAoB,EAAC,IAAA,oCAAe,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,0BAAiE,EACjE,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,0BAA0B,EAC1B,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,OAA6D,EAC7D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAgE,EAChE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,YAAoB,EACpB,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,YAAY,EACZ,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,UAAU,CACd,uBAA2D,EAC3D,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,uBAAuB,EACvB,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjJD,kCAiJC"}
|
package/sdk/topics.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare class Topics extends ClientSDK {
|
|
|
11
11
|
* @remarks
|
|
12
12
|
* Create a topic
|
|
13
13
|
*/
|
|
14
|
-
create(
|
|
14
|
+
create(createTopicRequestDto: components.CreateTopicRequestDto, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.TopicsControllerCreateTopicResponse>;
|
|
15
15
|
/**
|
|
16
16
|
* Get topic list filtered
|
|
17
17
|
*
|
|
@@ -25,20 +25,20 @@ export declare class Topics extends ClientSDK {
|
|
|
25
25
|
* @remarks
|
|
26
26
|
* Delete a topic by its topic key if it has no subscribers
|
|
27
27
|
*/
|
|
28
|
-
delete(topicKey: string, options?: RequestOptions): Promise<operations.TopicsControllerDeleteTopicResponse | undefined>;
|
|
28
|
+
delete(topicKey: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.TopicsControllerDeleteTopicResponse | undefined>;
|
|
29
29
|
/**
|
|
30
30
|
* Get topic
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Get a topic by its topic key
|
|
34
34
|
*/
|
|
35
|
-
retrieve(topicKey: string, options?: RequestOptions): Promise<operations.TopicsControllerGetTopicResponse>;
|
|
35
|
+
retrieve(topicKey: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.TopicsControllerGetTopicResponse>;
|
|
36
36
|
/**
|
|
37
37
|
* Rename a topic
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
40
|
* Rename a topic by providing a new name
|
|
41
41
|
*/
|
|
42
|
-
rename(
|
|
42
|
+
rename(request: operations.TopicsControllerRenameTopicRequest, options?: RequestOptions): Promise<operations.TopicsControllerRenameTopicResponse>;
|
|
43
43
|
}
|
|
44
44
|
//# sourceMappingURL=topics.d.ts.map
|
package/sdk/topics.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["../src/sdk/topics.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBAAa,MAAO,SAAQ,SAAS;IACnC,OAAO,CAAC,YAAY,CAAC,CAAkB;IACvC,IAAI,WAAW,IAAI,eAAe,CAEjC;IAED;;;;;OAKG;IACG,MAAM,CACV,
|
|
1
|
+
{"version":3,"file":"topics.d.ts","sourceRoot":"","sources":["../src/sdk/topics.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,qBAAa,MAAO,SAAQ,SAAS;IACnC,OAAO,CAAC,YAAY,CAAC,CAAkB;IACvC,IAAI,WAAW,IAAI,eAAe,CAEjC;IAED;;;;;OAKG;IACG,MAAM,CACV,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,EACvD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;IAS1D;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,iCAAiC,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,MAAM,CACV,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,GAAG,SAAS,CAAC;IAStE;;;;;OAKG;IACG,QAAQ,CACZ,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IASvD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,kCAAkC,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mCAAmC,CAAC;CAO3D"}
|
package/sdk/topics.js
CHANGED
|
@@ -14,8 +14,7 @@ const fp_js_1 = require("../types/fp.js");
|
|
|
14
14
|
const novusubscribers_js_1 = require("./novusubscribers.js");
|
|
15
15
|
class Topics extends sdks_js_1.ClientSDK {
|
|
16
16
|
get subscribers() {
|
|
17
|
-
|
|
18
|
-
return ((_a = this._subscribers) !== null && _a !== void 0 ? _a : (this._subscribers = new novusubscribers_js_1.NovuSubscribers(this._options)));
|
|
17
|
+
return (this._subscribers ?? (this._subscribers = new novusubscribers_js_1.NovuSubscribers(this._options)));
|
|
19
18
|
}
|
|
20
19
|
/**
|
|
21
20
|
* Topic creation
|
|
@@ -23,8 +22,8 @@ class Topics extends sdks_js_1.ClientSDK {
|
|
|
23
22
|
* @remarks
|
|
24
23
|
* Create a topic
|
|
25
24
|
*/
|
|
26
|
-
async create(
|
|
27
|
-
return (0, fp_js_1.unwrapAsync)((0, topicsCreate_js_1.topicsCreate)(this,
|
|
25
|
+
async create(createTopicRequestDto, idempotencyKey, options) {
|
|
26
|
+
return (0, fp_js_1.unwrapAsync)((0, topicsCreate_js_1.topicsCreate)(this, createTopicRequestDto, idempotencyKey, options));
|
|
28
27
|
}
|
|
29
28
|
/**
|
|
30
29
|
* Get topic list filtered
|
|
@@ -41,8 +40,8 @@ class Topics extends sdks_js_1.ClientSDK {
|
|
|
41
40
|
* @remarks
|
|
42
41
|
* Delete a topic by its topic key if it has no subscribers
|
|
43
42
|
*/
|
|
44
|
-
async delete(topicKey, options) {
|
|
45
|
-
return (0, fp_js_1.unwrapAsync)((0, topicsDelete_js_1.topicsDelete)(this, topicKey, options));
|
|
43
|
+
async delete(topicKey, idempotencyKey, options) {
|
|
44
|
+
return (0, fp_js_1.unwrapAsync)((0, topicsDelete_js_1.topicsDelete)(this, topicKey, idempotencyKey, options));
|
|
46
45
|
}
|
|
47
46
|
/**
|
|
48
47
|
* Get topic
|
|
@@ -50,8 +49,8 @@ class Topics extends sdks_js_1.ClientSDK {
|
|
|
50
49
|
* @remarks
|
|
51
50
|
* Get a topic by its topic key
|
|
52
51
|
*/
|
|
53
|
-
async retrieve(topicKey, options) {
|
|
54
|
-
return (0, fp_js_1.unwrapAsync)((0, topicsRetrieve_js_1.topicsRetrieve)(this, topicKey, options));
|
|
52
|
+
async retrieve(topicKey, idempotencyKey, options) {
|
|
53
|
+
return (0, fp_js_1.unwrapAsync)((0, topicsRetrieve_js_1.topicsRetrieve)(this, topicKey, idempotencyKey, options));
|
|
55
54
|
}
|
|
56
55
|
/**
|
|
57
56
|
* Rename a topic
|
|
@@ -59,8 +58,8 @@ class Topics extends sdks_js_1.ClientSDK {
|
|
|
59
58
|
* @remarks
|
|
60
59
|
* Rename a topic by providing a new name
|
|
61
60
|
*/
|
|
62
|
-
async rename(
|
|
63
|
-
return (0, fp_js_1.unwrapAsync)((0, topicsRename_js_1.topicsRename)(this,
|
|
61
|
+
async rename(request, options) {
|
|
62
|
+
return (0, fp_js_1.unwrapAsync)((0, topicsRename_js_1.topicsRename)(this, request, options));
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
exports.Topics = Topics;
|
package/sdk/topics.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topics.js","sourceRoot":"","sources":["../src/sdk/topics.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8DAAwD;AACxD,8DAAwD;AACxD,0DAAoD;AACpD,8DAAwD;AACxD,kEAA4D;AAC5D,4CAA2D;AAG3D,0CAA6C;AAC7C,6DAAuD;AAEvD,MAAa,MAAO,SAAQ,mBAAS;IAEnC,IAAI,WAAW
|
|
1
|
+
{"version":3,"file":"topics.js","sourceRoot":"","sources":["../src/sdk/topics.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8DAAwD;AACxD,8DAAwD;AACxD,0DAAoD;AACpD,8DAAwD;AACxD,kEAA4D;AAC5D,4CAA2D;AAG3D,0CAA6C;AAC7C,6DAAuD;AAEvD,MAAa,MAAO,SAAQ,mBAAS;IAEnC,IAAI,WAAW;QACb,OAAO,CAAC,IAAI,CAAC,YAAY,KAAjB,IAAI,CAAC,YAAY,GAAK,IAAI,oCAAe,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAC,CAAC;IACpE,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,qBAAuD,EACvD,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,qBAAqB,EACrB,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAqD,EACrD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0BAAU,EAC3B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,QAAgB,EAChB,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,QAAgB,EAChB,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,QAAQ,EACR,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAsD,EACtD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAhGD,wBAgGC"}
|
package/sdk/webhooks.d.ts
CHANGED
|
@@ -7,6 +7,6 @@ export declare class Webhooks extends ClientSDK {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value
|
|
9
9
|
*/
|
|
10
|
-
retrieve(providerOrIntegrationId: string, options?: RequestOptions): Promise<operations.IntegrationsControllerGetWebhookSupportStatusResponse>;
|
|
10
|
+
retrieve(providerOrIntegrationId: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.IntegrationsControllerGetWebhookSupportStatusResponse>;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=webhooks.d.ts.map
|
package/sdk/webhooks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,QAAQ,CACZ,uBAAuB,EAAE,MAAM,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,QAAQ,CACZ,uBAAuB,EAAE,MAAM,EAC/B,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qDAAqD,CAAC;CAQ7E"}
|
package/sdk/webhooks.js
CHANGED
|
@@ -14,8 +14,8 @@ class Webhooks extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value
|
|
16
16
|
*/
|
|
17
|
-
async retrieve(providerOrIntegrationId, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, integrationsWebhooksRetrieve_js_1.integrationsWebhooksRetrieve)(this, providerOrIntegrationId, options));
|
|
17
|
+
async retrieve(providerOrIntegrationId, idempotencyKey, options) {
|
|
18
|
+
return (0, fp_js_1.unwrapAsync)((0, integrationsWebhooksRetrieve_js_1.integrationsWebhooksRetrieve)(this, providerOrIntegrationId, idempotencyKey, options));
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
exports.Webhooks = Webhooks;
|
package/sdk/webhooks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8FAAwF;AACxF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,uBAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,uBAAuB,EACvB,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../src/sdk/webhooks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8FAAwF;AACxF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,QAAQ,CACZ,uBAA+B,EAC/B,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,uBAAuB,EACvB,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,4BAmBC"}
|
package/src/funcs/cancel.ts
CHANGED
|
@@ -33,6 +33,7 @@ import { Result } from "../types/fp.js";
|
|
|
33
33
|
export async function cancel(
|
|
34
34
|
client: NovuCore,
|
|
35
35
|
transactionId: string,
|
|
36
|
+
idempotencyKey?: string | undefined,
|
|
36
37
|
options?: RequestOptions,
|
|
37
38
|
): Promise<
|
|
38
39
|
Result<
|
|
@@ -50,6 +51,7 @@ export async function cancel(
|
|
|
50
51
|
> {
|
|
51
52
|
const input: operations.EventsControllerCancelRequest = {
|
|
52
53
|
transactionId: transactionId,
|
|
54
|
+
idempotencyKey: idempotencyKey,
|
|
53
55
|
};
|
|
54
56
|
|
|
55
57
|
const parsed = safeParse(
|
|
@@ -75,6 +77,11 @@ export async function cancel(
|
|
|
75
77
|
|
|
76
78
|
const headers = new Headers({
|
|
77
79
|
Accept: "application/json",
|
|
80
|
+
"Idempotency-Key": encodeSimple(
|
|
81
|
+
"Idempotency-Key",
|
|
82
|
+
payload["Idempotency-Key"],
|
|
83
|
+
{ explode: false, charEncoding: "none" },
|
|
84
|
+
),
|
|
78
85
|
});
|
|
79
86
|
|
|
80
87
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -93,7 +100,7 @@ export async function cancel(
|
|
|
93
100
|
|| {
|
|
94
101
|
strategy: "backoff",
|
|
95
102
|
backoff: {
|
|
96
|
-
initialInterval:
|
|
103
|
+
initialInterval: 1000,
|
|
97
104
|
maxInterval: 30000,
|
|
98
105
|
exponent: 1.5,
|
|
99
106
|
maxElapsedTime: 3600000,
|
|
@@ -101,7 +108,7 @@ export async function cancel(
|
|
|
101
108
|
retryConnectionErrors: true,
|
|
102
109
|
}
|
|
103
110
|
|| { strategy: "none" },
|
|
104
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
111
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
105
112
|
};
|
|
106
113
|
|
|
107
114
|
const requestRes = client._createRequest(context, {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { safeParse } from "../lib/schemas.js";
|
|
9
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
@@ -31,7 +31,8 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*/
|
|
32
32
|
export async function integrationsCreate(
|
|
33
33
|
client: NovuCore,
|
|
34
|
-
|
|
34
|
+
createIntegrationRequestDto: components.CreateIntegrationRequestDto,
|
|
35
|
+
idempotencyKey?: string | undefined,
|
|
35
36
|
options?: RequestOptions,
|
|
36
37
|
): Promise<
|
|
37
38
|
Result<
|
|
@@ -47,23 +48,36 @@ export async function integrationsCreate(
|
|
|
47
48
|
| ConnectionError
|
|
48
49
|
>
|
|
49
50
|
> {
|
|
51
|
+
const input: operations.IntegrationsControllerCreateIntegrationRequest = {
|
|
52
|
+
createIntegrationRequestDto: createIntegrationRequestDto,
|
|
53
|
+
idempotencyKey: idempotencyKey,
|
|
54
|
+
};
|
|
55
|
+
|
|
50
56
|
const parsed = safeParse(
|
|
51
|
-
|
|
57
|
+
input,
|
|
52
58
|
(value) =>
|
|
53
|
-
|
|
59
|
+
operations.IntegrationsControllerCreateIntegrationRequest$outboundSchema
|
|
60
|
+
.parse(value),
|
|
54
61
|
"Input validation failed",
|
|
55
62
|
);
|
|
56
63
|
if (!parsed.ok) {
|
|
57
64
|
return parsed;
|
|
58
65
|
}
|
|
59
66
|
const payload = parsed.value;
|
|
60
|
-
const body = encodeJSON("body", payload, {
|
|
67
|
+
const body = encodeJSON("body", payload.CreateIntegrationRequestDto, {
|
|
68
|
+
explode: true,
|
|
69
|
+
});
|
|
61
70
|
|
|
62
71
|
const path = pathToFunc("/v1/integrations")();
|
|
63
72
|
|
|
64
73
|
const headers = new Headers({
|
|
65
74
|
"Content-Type": "application/json",
|
|
66
75
|
Accept: "application/json",
|
|
76
|
+
"Idempotency-Key": encodeSimple(
|
|
77
|
+
"Idempotency-Key",
|
|
78
|
+
payload["Idempotency-Key"],
|
|
79
|
+
{ explode: false, charEncoding: "none" },
|
|
80
|
+
),
|
|
67
81
|
});
|
|
68
82
|
|
|
69
83
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -82,7 +96,7 @@ export async function integrationsCreate(
|
|
|
82
96
|
|| {
|
|
83
97
|
strategy: "backoff",
|
|
84
98
|
backoff: {
|
|
85
|
-
initialInterval:
|
|
99
|
+
initialInterval: 1000,
|
|
86
100
|
maxInterval: 30000,
|
|
87
101
|
exponent: 1.5,
|
|
88
102
|
maxElapsedTime: 3600000,
|
|
@@ -90,7 +104,7 @@ export async function integrationsCreate(
|
|
|
90
104
|
retryConnectionErrors: true,
|
|
91
105
|
}
|
|
92
106
|
|| { strategy: "none" },
|
|
93
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
107
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
94
108
|
};
|
|
95
109
|
|
|
96
110
|
const requestRes = client._createRequest(context, {
|
|
@@ -28,6 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
export async function integrationsDelete(
|
|
29
29
|
client: NovuCore,
|
|
30
30
|
integrationId: string,
|
|
31
|
+
idempotencyKey?: string | undefined,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): Promise<
|
|
33
34
|
Result<
|
|
@@ -45,6 +46,7 @@ export async function integrationsDelete(
|
|
|
45
46
|
> {
|
|
46
47
|
const input: operations.IntegrationsControllerRemoveIntegrationRequest = {
|
|
47
48
|
integrationId: integrationId,
|
|
49
|
+
idempotencyKey: idempotencyKey,
|
|
48
50
|
};
|
|
49
51
|
|
|
50
52
|
const parsed = safeParse(
|
|
@@ -71,6 +73,11 @@ export async function integrationsDelete(
|
|
|
71
73
|
|
|
72
74
|
const headers = new Headers({
|
|
73
75
|
Accept: "application/json",
|
|
76
|
+
"Idempotency-Key": encodeSimple(
|
|
77
|
+
"Idempotency-Key",
|
|
78
|
+
payload["Idempotency-Key"],
|
|
79
|
+
{ explode: false, charEncoding: "none" },
|
|
80
|
+
),
|
|
74
81
|
});
|
|
75
82
|
|
|
76
83
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -89,7 +96,7 @@ export async function integrationsDelete(
|
|
|
89
96
|
|| {
|
|
90
97
|
strategy: "backoff",
|
|
91
98
|
backoff: {
|
|
92
|
-
initialInterval:
|
|
99
|
+
initialInterval: 1000,
|
|
93
100
|
maxInterval: 30000,
|
|
94
101
|
exponent: 1.5,
|
|
95
102
|
maxElapsedTime: 3600000,
|
|
@@ -97,7 +104,7 @@ export async function integrationsDelete(
|
|
|
97
104
|
retryConnectionErrors: true,
|
|
98
105
|
}
|
|
99
106
|
|| { strategy: "none" },
|
|
100
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
107
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
101
108
|
};
|
|
102
109
|
|
|
103
110
|
const requestRes = client._createRequest(context, {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
6
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
8
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
11
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -28,6 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
30
|
*/
|
|
29
31
|
export async function integrationsList(
|
|
30
32
|
client: NovuCore,
|
|
33
|
+
idempotencyKey?: string | undefined,
|
|
31
34
|
options?: RequestOptions,
|
|
32
35
|
): Promise<
|
|
33
36
|
Result<
|
|
@@ -43,10 +46,32 @@ export async function integrationsList(
|
|
|
43
46
|
| ConnectionError
|
|
44
47
|
>
|
|
45
48
|
> {
|
|
49
|
+
const input: operations.IntegrationsControllerListIntegrationsRequest = {
|
|
50
|
+
idempotencyKey: idempotencyKey,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const parsed = safeParse(
|
|
54
|
+
input,
|
|
55
|
+
(value) =>
|
|
56
|
+
operations.IntegrationsControllerListIntegrationsRequest$outboundSchema
|
|
57
|
+
.parse(value),
|
|
58
|
+
"Input validation failed",
|
|
59
|
+
);
|
|
60
|
+
if (!parsed.ok) {
|
|
61
|
+
return parsed;
|
|
62
|
+
}
|
|
63
|
+
const payload = parsed.value;
|
|
64
|
+
const body = null;
|
|
65
|
+
|
|
46
66
|
const path = pathToFunc("/v1/integrations")();
|
|
47
67
|
|
|
48
68
|
const headers = new Headers({
|
|
49
69
|
Accept: "application/json",
|
|
70
|
+
"Idempotency-Key": encodeSimple(
|
|
71
|
+
"Idempotency-Key",
|
|
72
|
+
payload["Idempotency-Key"],
|
|
73
|
+
{ explode: false, charEncoding: "none" },
|
|
74
|
+
),
|
|
50
75
|
});
|
|
51
76
|
|
|
52
77
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -65,7 +90,7 @@ export async function integrationsList(
|
|
|
65
90
|
|| {
|
|
66
91
|
strategy: "backoff",
|
|
67
92
|
backoff: {
|
|
68
|
-
initialInterval:
|
|
93
|
+
initialInterval: 1000,
|
|
69
94
|
maxInterval: 30000,
|
|
70
95
|
exponent: 1.5,
|
|
71
96
|
maxElapsedTime: 3600000,
|
|
@@ -73,7 +98,7 @@ export async function integrationsList(
|
|
|
73
98
|
retryConnectionErrors: true,
|
|
74
99
|
}
|
|
75
100
|
|| { strategy: "none" },
|
|
76
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
101
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
77
102
|
};
|
|
78
103
|
|
|
79
104
|
const requestRes = client._createRequest(context, {
|
|
@@ -82,6 +107,7 @@ export async function integrationsList(
|
|
|
82
107
|
baseURL: options?.serverURL,
|
|
83
108
|
path: path,
|
|
84
109
|
headers: headers,
|
|
110
|
+
body: body,
|
|
85
111
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
86
112
|
}, options);
|
|
87
113
|
if (!requestRes.ok) {
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
6
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
8
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
9
11
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -28,6 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
30
|
*/
|
|
29
31
|
export async function integrationsListActive(
|
|
30
32
|
client: NovuCore,
|
|
33
|
+
idempotencyKey?: string | undefined,
|
|
31
34
|
options?: RequestOptions,
|
|
32
35
|
): Promise<
|
|
33
36
|
Result<
|
|
@@ -43,10 +46,33 @@ export async function integrationsListActive(
|
|
|
43
46
|
| ConnectionError
|
|
44
47
|
>
|
|
45
48
|
> {
|
|
49
|
+
const input: operations.IntegrationsControllerGetActiveIntegrationsRequest = {
|
|
50
|
+
idempotencyKey: idempotencyKey,
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
const parsed = safeParse(
|
|
54
|
+
input,
|
|
55
|
+
(value) =>
|
|
56
|
+
operations
|
|
57
|
+
.IntegrationsControllerGetActiveIntegrationsRequest$outboundSchema
|
|
58
|
+
.parse(value),
|
|
59
|
+
"Input validation failed",
|
|
60
|
+
);
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return parsed;
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = null;
|
|
66
|
+
|
|
46
67
|
const path = pathToFunc("/v1/integrations/active")();
|
|
47
68
|
|
|
48
69
|
const headers = new Headers({
|
|
49
70
|
Accept: "application/json",
|
|
71
|
+
"Idempotency-Key": encodeSimple(
|
|
72
|
+
"Idempotency-Key",
|
|
73
|
+
payload["Idempotency-Key"],
|
|
74
|
+
{ explode: false, charEncoding: "none" },
|
|
75
|
+
),
|
|
50
76
|
});
|
|
51
77
|
|
|
52
78
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -65,7 +91,7 @@ export async function integrationsListActive(
|
|
|
65
91
|
|| {
|
|
66
92
|
strategy: "backoff",
|
|
67
93
|
backoff: {
|
|
68
|
-
initialInterval:
|
|
94
|
+
initialInterval: 1000,
|
|
69
95
|
maxInterval: 30000,
|
|
70
96
|
exponent: 1.5,
|
|
71
97
|
maxElapsedTime: 3600000,
|
|
@@ -73,7 +99,7 @@ export async function integrationsListActive(
|
|
|
73
99
|
retryConnectionErrors: true,
|
|
74
100
|
}
|
|
75
101
|
|| { strategy: "none" },
|
|
76
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
102
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
77
103
|
};
|
|
78
104
|
|
|
79
105
|
const requestRes = client._createRequest(context, {
|
|
@@ -82,6 +108,7 @@ export async function integrationsListActive(
|
|
|
82
108
|
baseURL: options?.serverURL,
|
|
83
109
|
path: path,
|
|
84
110
|
headers: headers,
|
|
111
|
+
body: body,
|
|
85
112
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
86
113
|
}, options);
|
|
87
114
|
if (!requestRes.ok) {
|
|
@@ -28,6 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
export async function integrationsSetAsPrimary(
|
|
29
29
|
client: NovuCore,
|
|
30
30
|
integrationId: string,
|
|
31
|
+
idempotencyKey?: string | undefined,
|
|
31
32
|
options?: RequestOptions,
|
|
32
33
|
): Promise<
|
|
33
34
|
Result<
|
|
@@ -46,6 +47,7 @@ export async function integrationsSetAsPrimary(
|
|
|
46
47
|
const input: operations.IntegrationsControllerSetIntegrationAsPrimaryRequest =
|
|
47
48
|
{
|
|
48
49
|
integrationId: integrationId,
|
|
50
|
+
idempotencyKey: idempotencyKey,
|
|
49
51
|
};
|
|
50
52
|
|
|
51
53
|
const parsed = safeParse(
|
|
@@ -75,6 +77,11 @@ export async function integrationsSetAsPrimary(
|
|
|
75
77
|
|
|
76
78
|
const headers = new Headers({
|
|
77
79
|
Accept: "application/json",
|
|
80
|
+
"Idempotency-Key": encodeSimple(
|
|
81
|
+
"Idempotency-Key",
|
|
82
|
+
payload["Idempotency-Key"],
|
|
83
|
+
{ explode: false, charEncoding: "none" },
|
|
84
|
+
),
|
|
78
85
|
});
|
|
79
86
|
|
|
80
87
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
@@ -93,7 +100,7 @@ export async function integrationsSetAsPrimary(
|
|
|
93
100
|
|| {
|
|
94
101
|
strategy: "backoff",
|
|
95
102
|
backoff: {
|
|
96
|
-
initialInterval:
|
|
103
|
+
initialInterval: 1000,
|
|
97
104
|
maxInterval: 30000,
|
|
98
105
|
exponent: 1.5,
|
|
99
106
|
maxElapsedTime: 3600000,
|
|
@@ -101,7 +108,7 @@ export async function integrationsSetAsPrimary(
|
|
|
101
108
|
retryConnectionErrors: true,
|
|
102
109
|
}
|
|
103
110
|
|| { strategy: "none" },
|
|
104
|
-
retryCodes: options?.retryCodes || ["408", "
|
|
111
|
+
retryCodes: options?.retryCodes || ["408", "422", "429", "5XX"],
|
|
105
112
|
};
|
|
106
113
|
|
|
107
114
|
const requestRes = client._createRequest(context, {
|