@novu/api 0.0.1-alpha.100 → 0.0.1-alpha.105
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 +31 -19
- package/docs/sdks/authentication/README.md +10 -8
- package/docs/sdks/credentials/README.md +15 -12
- package/docs/sdks/integrations/README.md +30 -24
- package/docs/sdks/messages/README.md +15 -12
- package/docs/sdks/notifications/README.md +10 -8
- package/docs/sdks/novu/README.md +20 -16
- package/docs/sdks/novumessages/README.md +15 -12
- package/docs/sdks/novunotifications/README.md +10 -8
- package/docs/sdks/novusubscribers/README.md +15 -12
- package/docs/sdks/preferences/README.md +20 -16
- package/docs/sdks/properties/README.md +5 -4
- package/docs/sdks/stats/README.md +10 -8
- package/docs/sdks/subscribers/README.md +30 -24
- package/docs/sdks/topics/README.md +25 -20
- package/docs/sdks/webhooks/README.md +5 -4
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +3 -5
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +2 -2
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +4 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +2 -2
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +2 -2
- 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 +2 -2
- 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 +3 -5
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +2 -2
- 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 +3 -5
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +2 -2
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +2 -2
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +2 -2
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +2 -2
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +2 -2
- 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 +2 -2
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +2 -2
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +2 -2
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +2 -2
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +2 -2
- 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 +2 -2
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +2 -2
- 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 +3 -6
- 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 +2 -2
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +2 -2
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +2 -2
- 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 +2 -2
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +2 -2
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +3 -4
- 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 +2 -2
- 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 +3 -6
- 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 +2 -2
- 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 +3 -6
- package/funcs/triggerBulk.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/{components → errors}/validationerrordto.d.ts +53 -19
- package/models/errors/validationerrordto.d.ts.map +1 -0
- package/models/{components → errors}/validationerrordto.js +47 -30
- package/models/errors/validationerrordto.js.map +1 -0
- package/models/operations/eventscontrollertrigger.d.ts +2 -23
- package/models/operations/eventscontrollertrigger.d.ts.map +1 -1
- package/models/operations/eventscontrollertrigger.js +3 -38
- package/models/operations/eventscontrollertrigger.js.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.d.ts +2 -23
- package/models/operations/eventscontrollertriggerbulk.d.ts.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.js +3 -38
- package/models/operations/eventscontrollertriggerbulk.js.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.d.ts +2 -23
- package/models/operations/integrationscontrollercreateintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.js +3 -38
- package/models/operations/integrationscontrollercreateintegration.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +0 -3
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +0 -5
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +4 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +4 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +0 -3
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +0 -5
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +2 -23
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +3 -38
- package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -3
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -5
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +2 -23
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +3 -38
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +2 -23
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -27
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +2 -23
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +3 -38
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
- package/models/operations/topicscontrollercreatetopic.d.ts +2 -23
- package/models/operations/topicscontrollercreatetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollercreatetopic.js +3 -38
- package/models/operations/topicscontrollercreatetopic.js.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.d.ts +0 -3
- package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +0 -5
- package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.d.ts +0 -2
- package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +0 -4
- package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/cancel.ts +4 -1
- package/src/funcs/integrationsCreate.ts +4 -6
- package/src/funcs/integrationsDelete.ts +4 -1
- package/src/funcs/integrationsList.ts +4 -1
- package/src/funcs/integrationsListActive.ts +4 -1
- package/src/funcs/integrationsSetAsPrimary.ts +4 -1
- package/src/funcs/integrationsUpdate.ts +4 -1
- package/src/funcs/integrationsWebhooksRetrieve.ts +4 -1
- package/src/funcs/messagesDelete.ts +4 -1
- package/src/funcs/messagesDeleteByTransactionId.ts +4 -8
- package/src/funcs/messagesRetrieve.ts +4 -1
- package/src/funcs/notificationsList.ts +6 -1
- package/src/funcs/notificationsRetrieve.ts +4 -1
- package/src/funcs/notificationsStatsGraph.ts +4 -1
- package/src/funcs/notificationsStatsRetrieve.ts +4 -1
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +4 -1
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +4 -1
- package/src/funcs/subscribersCreate.ts +4 -6
- package/src/funcs/subscribersCreateBulk.ts +4 -8
- package/src/funcs/subscribersCredentialsAppend.ts +4 -1
- package/src/funcs/subscribersCredentialsDelete.ts +4 -8
- package/src/funcs/subscribersCredentialsUpdate.ts +4 -1
- package/src/funcs/subscribersDelete.ts +4 -1
- package/src/funcs/subscribersList.ts +5 -1
- package/src/funcs/subscribersMessagesMarkAll.ts +4 -6
- package/src/funcs/subscribersMessagesMarkAllAs.ts +4 -6
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +4 -6
- package/src/funcs/subscribersNotificationsFeed.ts +4 -1
- package/src/funcs/subscribersNotificationsUnseenCount.ts +4 -1
- package/src/funcs/subscribersPreferencesList.ts +4 -1
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +4 -1
- package/src/funcs/subscribersPreferencesUpdate.ts +4 -1
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +4 -1
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +4 -1
- package/src/funcs/subscribersRetrieve.ts +4 -1
- package/src/funcs/subscribersUpdate.ts +4 -1
- package/src/funcs/topicsCreate.ts +4 -5
- package/src/funcs/topicsDelete.ts +4 -6
- package/src/funcs/topicsList.ts +4 -1
- package/src/funcs/topicsRename.ts +4 -1
- package/src/funcs/topicsRetrieve.ts +4 -1
- package/src/funcs/topicsSubscribersAssign.ts +4 -1
- package/src/funcs/topicsSubscribersRemove.ts +4 -7
- package/src/funcs/topicsSubscribersRetrieve.ts +4 -1
- package/src/funcs/trigger.ts +4 -5
- package/src/funcs/triggerBroadcast.ts +4 -1
- package/src/funcs/triggerBulk.ts +4 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +0 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/{components → errors}/validationerrordto.ts +110 -80
- package/src/models/operations/eventscontrollertrigger.ts +4 -77
- package/src/models/operations/eventscontrollertriggerbulk.ts +4 -86
- package/src/models/operations/integrationscontrollercreateintegration.ts +4 -86
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +0 -7
- package/src/models/operations/notificationscontrollerlistnotifications.ts +8 -0
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +0 -7
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -86
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -7
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -86
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -71
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -86
- package/src/models/operations/topicscontrollercreatetopic.ts +4 -84
- package/src/models/operations/topicscontrollerdeletetopic.ts +0 -7
- package/src/models/operations/topicscontrollerremovesubscribers.ts +0 -6
- package/models/components/validationerrordto.d.ts.map +0 -1
- package/models/components/validationerrordto.js.map +0 -1
package/README.md
CHANGED
|
@@ -415,28 +415,23 @@ run();
|
|
|
415
415
|
<!-- Start Error Handling [errors] -->
|
|
416
416
|
## Error Handling
|
|
417
417
|
|
|
418
|
-
All
|
|
418
|
+
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `trigger` method may throw the following errors:
|
|
419
419
|
|
|
420
|
-
|
|
420
|
+
| Error Type | Status Code | Content Type |
|
|
421
|
+
| ------------------------- | ------------- | ---------------- |
|
|
422
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
423
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
424
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
421
425
|
|
|
422
|
-
|
|
423
|
-
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
424
|
-
| RequestAbortedError | HTTP request was aborted by the client |
|
|
425
|
-
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
426
|
-
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
427
|
-
| InvalidRequestError | Any input used to create a request is invalid |
|
|
428
|
-
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
429
|
-
|
|
430
|
-
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `trigger` method may throw the following errors:
|
|
431
|
-
|
|
432
|
-
| Error Type | Status Code | Content Type |
|
|
433
|
-
| --------------- | ------------- | ---------------- |
|
|
434
|
-
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
435
|
-
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
426
|
+
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
|
|
436
427
|
|
|
437
428
|
```typescript
|
|
438
429
|
import { Novu } from "@novu/api";
|
|
439
|
-
import {
|
|
430
|
+
import {
|
|
431
|
+
ErrorDto,
|
|
432
|
+
SDKValidationError,
|
|
433
|
+
ValidationErrorDto,
|
|
434
|
+
} from "@novu/api/models/errors";
|
|
440
435
|
|
|
441
436
|
const novu = new Novu({
|
|
442
437
|
apiKey: "<YOUR_API_KEY_HERE>",
|
|
@@ -463,8 +458,9 @@ async function run() {
|
|
|
463
458
|
console.log(result);
|
|
464
459
|
} catch (err) {
|
|
465
460
|
switch (true) {
|
|
461
|
+
// The server response does not match the expected SDK schema
|
|
466
462
|
case (err instanceof SDKValidationError): {
|
|
467
|
-
//
|
|
463
|
+
// Pretty-print will provide a human-readable multi-line error message
|
|
468
464
|
console.error(err.pretty());
|
|
469
465
|
// Raw value may also be inspected
|
|
470
466
|
console.error(err.rawValue);
|
|
@@ -475,7 +471,13 @@ async function run() {
|
|
|
475
471
|
console.error(err);
|
|
476
472
|
return;
|
|
477
473
|
}
|
|
474
|
+
case (err instanceof ValidationErrorDto): {
|
|
475
|
+
// Handle err.data$: ValidationErrorDtoData
|
|
476
|
+
console.error(err);
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
478
479
|
default: {
|
|
480
|
+
// Other errors such as network errors, see HTTPClientErrors for more details
|
|
479
481
|
throw err;
|
|
480
482
|
}
|
|
481
483
|
}
|
|
@@ -486,7 +488,17 @@ run();
|
|
|
486
488
|
|
|
487
489
|
```
|
|
488
490
|
|
|
489
|
-
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
491
|
+
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
492
|
+
|
|
493
|
+
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
|
|
494
|
+
|
|
495
|
+
| HTTP Client Error | Description |
|
|
496
|
+
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
497
|
+
| RequestAbortedError | HTTP request was aborted by the client |
|
|
498
|
+
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
499
|
+
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
500
|
+
| InvalidRequestError | Any input used to create a request is invalid |
|
|
501
|
+
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
490
502
|
<!-- End Error Handling [errors] -->
|
|
491
503
|
|
|
492
504
|
<!-- Start Server Selection [server] -->
|
|
@@ -88,10 +88,11 @@ run();
|
|
|
88
88
|
|
|
89
89
|
### Errors
|
|
90
90
|
|
|
91
|
-
| Error Type
|
|
92
|
-
|
|
|
93
|
-
| errors.ErrorDto
|
|
94
|
-
| errors.
|
|
91
|
+
| Error Type | Status Code | Content Type |
|
|
92
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
93
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
94
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
95
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
95
96
|
|
|
96
97
|
## chatAccessOauth
|
|
97
98
|
|
|
@@ -171,7 +172,8 @@ run();
|
|
|
171
172
|
|
|
172
173
|
### Errors
|
|
173
174
|
|
|
174
|
-
| Error Type
|
|
175
|
-
|
|
|
176
|
-
| errors.ErrorDto
|
|
177
|
-
| errors.
|
|
175
|
+
| Error Type | Status Code | Content Type |
|
|
176
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
177
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
178
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
179
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -88,10 +88,11 @@ run();
|
|
|
88
88
|
|
|
89
89
|
### Errors
|
|
90
90
|
|
|
91
|
-
| Error Type
|
|
92
|
-
|
|
|
93
|
-
| errors.ErrorDto
|
|
94
|
-
| errors.
|
|
91
|
+
| Error Type | Status Code | Content Type |
|
|
92
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
93
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
94
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
95
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
95
96
|
|
|
96
97
|
## append
|
|
97
98
|
|
|
@@ -174,10 +175,11 @@ run();
|
|
|
174
175
|
|
|
175
176
|
### Errors
|
|
176
177
|
|
|
177
|
-
| Error Type
|
|
178
|
-
|
|
|
179
|
-
| errors.ErrorDto
|
|
180
|
-
| errors.
|
|
178
|
+
| Error Type | Status Code | Content Type |
|
|
179
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
180
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
181
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
182
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
181
183
|
|
|
182
184
|
## delete
|
|
183
185
|
|
|
@@ -248,7 +250,8 @@ run();
|
|
|
248
250
|
|
|
249
251
|
### Errors
|
|
250
252
|
|
|
251
|
-
| Error Type
|
|
252
|
-
|
|
|
253
|
-
| errors.ErrorDto
|
|
254
|
-
| errors.
|
|
253
|
+
| Error Type | Status Code | Content Type |
|
|
254
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
255
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
256
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
257
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -82,10 +82,11 @@ run();
|
|
|
82
82
|
|
|
83
83
|
### Errors
|
|
84
84
|
|
|
85
|
-
| Error Type
|
|
86
|
-
|
|
|
87
|
-
| errors.ErrorDto
|
|
88
|
-
| errors.
|
|
85
|
+
| Error Type | Status Code | Content Type |
|
|
86
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
87
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
88
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
89
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
89
90
|
|
|
90
91
|
## create
|
|
91
92
|
|
|
@@ -161,10 +162,11 @@ run();
|
|
|
161
162
|
|
|
162
163
|
### Errors
|
|
163
164
|
|
|
164
|
-
| Error Type
|
|
165
|
-
|
|
|
166
|
-
| errors.ErrorDto
|
|
167
|
-
| errors.
|
|
165
|
+
| Error Type | Status Code | Content Type |
|
|
166
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
167
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
168
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
169
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
168
170
|
|
|
169
171
|
## listActive
|
|
170
172
|
|
|
@@ -233,10 +235,11 @@ run();
|
|
|
233
235
|
|
|
234
236
|
### Errors
|
|
235
237
|
|
|
236
|
-
| Error Type
|
|
237
|
-
|
|
|
238
|
-
| errors.ErrorDto
|
|
239
|
-
| errors.
|
|
238
|
+
| Error Type | Status Code | Content Type |
|
|
239
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
240
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
241
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
242
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
240
243
|
|
|
241
244
|
## update
|
|
242
245
|
|
|
@@ -307,10 +310,11 @@ run();
|
|
|
307
310
|
|
|
308
311
|
### Errors
|
|
309
312
|
|
|
310
|
-
| Error Type
|
|
311
|
-
|
|
|
312
|
-
| errors.ErrorDto
|
|
313
|
-
| errors.
|
|
313
|
+
| Error Type | Status Code | Content Type |
|
|
314
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
315
|
+
| errors.ErrorDto | 400, 409 | application/json |
|
|
316
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
317
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
314
318
|
|
|
315
319
|
## delete
|
|
316
320
|
|
|
@@ -380,10 +384,11 @@ run();
|
|
|
380
384
|
|
|
381
385
|
### Errors
|
|
382
386
|
|
|
383
|
-
| Error Type
|
|
384
|
-
|
|
|
385
|
-
| errors.ErrorDto
|
|
386
|
-
| errors.
|
|
387
|
+
| Error Type | Status Code | Content Type |
|
|
388
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
389
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
390
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
391
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
387
392
|
|
|
388
393
|
## setAsPrimary
|
|
389
394
|
|
|
@@ -453,7 +458,8 @@ run();
|
|
|
453
458
|
|
|
454
459
|
### Errors
|
|
455
460
|
|
|
456
|
-
| Error Type
|
|
457
|
-
|
|
|
458
|
-
| errors.ErrorDto
|
|
459
|
-
| errors.
|
|
461
|
+
| Error Type | Status Code | Content Type |
|
|
462
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
463
|
+
| errors.ErrorDto | 400, 409 | application/json |
|
|
464
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
465
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -80,10 +80,11 @@ run();
|
|
|
80
80
|
|
|
81
81
|
### Errors
|
|
82
82
|
|
|
83
|
-
| Error Type
|
|
84
|
-
|
|
|
85
|
-
| errors.ErrorDto
|
|
86
|
-
| errors.
|
|
83
|
+
| Error Type | Status Code | Content Type |
|
|
84
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
85
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
86
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
87
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
87
88
|
|
|
88
89
|
## delete
|
|
89
90
|
|
|
@@ -153,10 +154,11 @@ run();
|
|
|
153
154
|
|
|
154
155
|
### Errors
|
|
155
156
|
|
|
156
|
-
| Error Type
|
|
157
|
-
|
|
|
158
|
-
| errors.ErrorDto
|
|
159
|
-
| errors.
|
|
157
|
+
| Error Type | Status Code | Content Type |
|
|
158
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
159
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
160
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
161
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
160
162
|
|
|
161
163
|
## deleteByTransactionId
|
|
162
164
|
|
|
@@ -227,7 +229,8 @@ run();
|
|
|
227
229
|
|
|
228
230
|
### Errors
|
|
229
231
|
|
|
230
|
-
| Error Type
|
|
231
|
-
|
|
|
232
|
-
| errors.ErrorDto
|
|
233
|
-
| errors.
|
|
232
|
+
| Error Type | Status Code | Content Type |
|
|
233
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
234
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
235
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
236
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -110,10 +110,11 @@ run();
|
|
|
110
110
|
|
|
111
111
|
### Errors
|
|
112
112
|
|
|
113
|
-
| Error Type
|
|
114
|
-
|
|
|
115
|
-
| errors.ErrorDto
|
|
116
|
-
| errors.
|
|
113
|
+
| Error Type | Status Code | Content Type |
|
|
114
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
115
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
116
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
117
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
117
118
|
|
|
118
119
|
## retrieve
|
|
119
120
|
|
|
@@ -183,7 +184,8 @@ run();
|
|
|
183
184
|
|
|
184
185
|
### Errors
|
|
185
186
|
|
|
186
|
-
| Error Type
|
|
187
|
-
|
|
|
188
|
-
| errors.ErrorDto
|
|
189
|
-
| errors.
|
|
187
|
+
| Error Type | Status Code | Content Type |
|
|
188
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
189
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
190
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
191
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
package/docs/sdks/novu/README.md
CHANGED
|
@@ -110,10 +110,11 @@ run();
|
|
|
110
110
|
|
|
111
111
|
### Errors
|
|
112
112
|
|
|
113
|
-
| Error Type
|
|
114
|
-
|
|
|
115
|
-
| errors.ErrorDto
|
|
116
|
-
| errors.
|
|
113
|
+
| Error Type | Status Code | Content Type |
|
|
114
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
115
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
116
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
117
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
117
118
|
|
|
118
119
|
## triggerBulk
|
|
119
120
|
|
|
@@ -254,10 +255,11 @@ run();
|
|
|
254
255
|
|
|
255
256
|
### Errors
|
|
256
257
|
|
|
257
|
-
| Error Type
|
|
258
|
-
|
|
|
259
|
-
| errors.ErrorDto
|
|
260
|
-
| errors.
|
|
258
|
+
| Error Type | Status Code | Content Type |
|
|
259
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
260
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
261
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
262
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
261
263
|
|
|
262
264
|
## triggerBroadcast
|
|
263
265
|
|
|
@@ -345,10 +347,11 @@ run();
|
|
|
345
347
|
|
|
346
348
|
### Errors
|
|
347
349
|
|
|
348
|
-
| Error Type
|
|
349
|
-
|
|
|
350
|
-
| errors.ErrorDto
|
|
351
|
-
| errors.
|
|
350
|
+
| Error Type | Status Code | Content Type |
|
|
351
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
352
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
353
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
354
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
352
355
|
|
|
353
356
|
## cancel
|
|
354
357
|
|
|
@@ -421,7 +424,8 @@ run();
|
|
|
421
424
|
|
|
422
425
|
### Errors
|
|
423
426
|
|
|
424
|
-
| Error Type
|
|
425
|
-
|
|
|
426
|
-
| errors.ErrorDto
|
|
427
|
-
| errors.
|
|
427
|
+
| Error Type | Status Code | Content Type |
|
|
428
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
429
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
430
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
431
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -84,10 +84,11 @@ run();
|
|
|
84
84
|
|
|
85
85
|
### Errors
|
|
86
86
|
|
|
87
|
-
| Error Type
|
|
88
|
-
|
|
|
89
|
-
| errors.ErrorDto
|
|
90
|
-
| errors.
|
|
87
|
+
| Error Type | Status Code | Content Type |
|
|
88
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
89
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
90
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
91
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
91
92
|
|
|
92
93
|
## markAll
|
|
93
94
|
|
|
@@ -162,10 +163,11 @@ run();
|
|
|
162
163
|
|
|
163
164
|
### Errors
|
|
164
165
|
|
|
165
|
-
| Error Type
|
|
166
|
-
|
|
|
167
|
-
| errors.ErrorDto
|
|
168
|
-
| errors.
|
|
166
|
+
| Error Type | Status Code | Content Type |
|
|
167
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
168
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
169
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
170
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
169
171
|
|
|
170
172
|
## updateAsSeen
|
|
171
173
|
|
|
@@ -249,7 +251,8 @@ run();
|
|
|
249
251
|
|
|
250
252
|
### Errors
|
|
251
253
|
|
|
252
|
-
| Error Type
|
|
253
|
-
|
|
|
254
|
-
| errors.ErrorDto
|
|
255
|
-
| errors.
|
|
254
|
+
| Error Type | Status Code | Content Type |
|
|
255
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
256
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
257
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
258
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -82,10 +82,11 @@ run();
|
|
|
82
82
|
|
|
83
83
|
### Errors
|
|
84
84
|
|
|
85
|
-
| Error Type
|
|
86
|
-
|
|
|
87
|
-
| errors.ErrorDto
|
|
88
|
-
| errors.
|
|
85
|
+
| Error Type | Status Code | Content Type |
|
|
86
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
87
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
88
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
89
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
89
90
|
|
|
90
91
|
## unseenCount
|
|
91
92
|
|
|
@@ -163,7 +164,8 @@ run();
|
|
|
163
164
|
|
|
164
165
|
### Errors
|
|
165
166
|
|
|
166
|
-
| Error Type
|
|
167
|
-
|
|
|
168
|
-
| errors.ErrorDto
|
|
169
|
-
| errors.
|
|
167
|
+
| Error Type | Status Code | Content Type |
|
|
168
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
169
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
170
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
171
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -90,10 +90,11 @@ run();
|
|
|
90
90
|
|
|
91
91
|
### Errors
|
|
92
92
|
|
|
93
|
-
| Error Type
|
|
94
|
-
|
|
|
95
|
-
| errors.ErrorDto
|
|
96
|
-
| errors.
|
|
93
|
+
| Error Type | Status Code | Content Type |
|
|
94
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
95
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
96
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
97
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
97
98
|
|
|
98
99
|
## retrieve
|
|
99
100
|
|
|
@@ -164,10 +165,11 @@ run();
|
|
|
164
165
|
|
|
165
166
|
### Errors
|
|
166
167
|
|
|
167
|
-
| Error Type
|
|
168
|
-
|
|
|
169
|
-
| errors.ErrorDto
|
|
170
|
-
| errors.
|
|
168
|
+
| Error Type | Status Code | Content Type |
|
|
169
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
170
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
171
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
172
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
171
173
|
|
|
172
174
|
## remove
|
|
173
175
|
|
|
@@ -248,7 +250,8 @@ run();
|
|
|
248
250
|
|
|
249
251
|
### Errors
|
|
250
252
|
|
|
251
|
-
| Error Type
|
|
252
|
-
|
|
|
253
|
-
| errors.ErrorDto
|
|
254
|
-
| errors.
|
|
253
|
+
| Error Type | Status Code | Content Type |
|
|
254
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
255
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
256
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
257
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -79,10 +79,11 @@ run();
|
|
|
79
79
|
|
|
80
80
|
### Errors
|
|
81
81
|
|
|
82
|
-
| Error Type
|
|
83
|
-
|
|
|
84
|
-
| errors.ErrorDto
|
|
85
|
-
| errors.
|
|
82
|
+
| Error Type | Status Code | Content Type |
|
|
83
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
84
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
85
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
86
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
86
87
|
|
|
87
88
|
## updateGlobal
|
|
88
89
|
|
|
@@ -153,10 +154,11 @@ run();
|
|
|
153
154
|
|
|
154
155
|
### Errors
|
|
155
156
|
|
|
156
|
-
| Error Type
|
|
157
|
-
|
|
|
158
|
-
| errors.ErrorDto
|
|
159
|
-
| errors.
|
|
157
|
+
| Error Type | Status Code | Content Type |
|
|
158
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
159
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
160
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
161
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
160
162
|
|
|
161
163
|
## retrieveByLevel
|
|
162
164
|
|
|
@@ -232,10 +234,11 @@ run();
|
|
|
232
234
|
|
|
233
235
|
### Errors
|
|
234
236
|
|
|
235
|
-
| Error Type
|
|
236
|
-
|
|
|
237
|
-
| errors.ErrorDto
|
|
238
|
-
| errors.
|
|
237
|
+
| Error Type | Status Code | Content Type |
|
|
238
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
239
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
240
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
241
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
239
242
|
|
|
240
243
|
## update
|
|
241
244
|
|
|
@@ -313,7 +316,8 @@ run();
|
|
|
313
316
|
|
|
314
317
|
### Errors
|
|
315
318
|
|
|
316
|
-
| Error Type
|
|
317
|
-
|
|
|
318
|
-
| errors.ErrorDto
|
|
319
|
-
| errors.
|
|
319
|
+
| Error Type | Status Code | Content Type |
|
|
320
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
321
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
322
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
323
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -80,7 +80,8 @@ run();
|
|
|
80
80
|
|
|
81
81
|
### Errors
|
|
82
82
|
|
|
83
|
-
| Error Type
|
|
84
|
-
|
|
|
85
|
-
| errors.ErrorDto
|
|
86
|
-
| errors.
|
|
83
|
+
| Error Type | Status Code | Content Type |
|
|
84
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
85
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
86
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
87
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
@@ -75,10 +75,11 @@ run();
|
|
|
75
75
|
|
|
76
76
|
### Errors
|
|
77
77
|
|
|
78
|
-
| Error Type
|
|
79
|
-
|
|
|
80
|
-
| errors.ErrorDto
|
|
81
|
-
| errors.
|
|
78
|
+
| Error Type | Status Code | Content Type |
|
|
79
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
80
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
81
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
82
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
82
83
|
|
|
83
84
|
## graph
|
|
84
85
|
|
|
@@ -148,7 +149,8 @@ run();
|
|
|
148
149
|
|
|
149
150
|
### Errors
|
|
150
151
|
|
|
151
|
-
| Error Type
|
|
152
|
-
|
|
|
153
|
-
| errors.ErrorDto
|
|
154
|
-
| errors.
|
|
152
|
+
| Error Type | Status Code | Content Type |
|
|
153
|
+
| ------------------------- | ------------------------- | ------------------------- |
|
|
154
|
+
| errors.ErrorDto | 400, 404, 409 | application/json |
|
|
155
|
+
| errors.ValidationErrorDto | 422 | application/json |
|
|
156
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|