@novu/api 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/funcs/cancel.d.ts +2 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +12 -7
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts +2 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +12 -7
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts +2 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +12 -7
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts +2 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +12 -7
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts +2 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +12 -7
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts +2 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +12 -7
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +2 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +12 -7
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts +2 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +12 -7
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts +2 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +12 -7
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts +2 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +12 -7
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts +2 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +12 -7
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts +2 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +13 -7
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts +2 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +12 -7
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts +2 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +12 -7
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts +2 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +12 -7
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +2 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +12 -7
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +2 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +12 -7
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +2 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +13 -8
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +2 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +12 -7
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +2 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +12 -7
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts +2 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +12 -7
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +2 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +12 -7
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts +2 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +12 -7
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts +2 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +20 -7
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +2 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +12 -7
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +2 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +12 -7
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +2 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +12 -7
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +2 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +12 -7
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +2 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +12 -7
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPatch.d.ts +2 -1
- package/funcs/subscribersPatch.d.ts.map +1 -1
- package/funcs/subscribersPatch.js +12 -7
- package/funcs/subscribersPatch.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +2 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +12 -7
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +2 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +12 -7
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +2 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +12 -7
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +2 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +12 -7
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersSearch.d.ts +2 -1
- package/funcs/subscribersSearch.d.ts.map +1 -1
- package/funcs/subscribersSearch.js +12 -7
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/topicsCreate.d.ts +2 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +12 -7
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts +2 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +12 -7
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts +2 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +12 -7
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts +2 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +12 -7
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts +2 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +12 -7
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts +2 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +12 -7
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts +2 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +12 -7
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts +2 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +12 -7
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts +2 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +12 -7
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts +2 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +12 -7
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts +2 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +12 -7
- package/funcs/triggerBulk.js.map +1 -1
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +6 -0
- package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.js +3 -0
- package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
- package/models/components/createsubscriberrequestdto.d.ts +28 -50
- package/models/components/createsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/createsubscriberrequestdto.js +17 -41
- package/models/components/createsubscriberrequestdto.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/patchsubscriberrequestdto.d.ts +0 -5
- package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/patchsubscriberrequestdto.js +0 -2
- package/models/components/patchsubscriberrequestdto.js.map +1 -1
- package/models/components/subscriberpayloaddto.d.ts +5 -0
- package/models/components/subscriberpayloaddto.d.ts.map +1 -1
- package/models/components/subscriberpayloaddto.js +2 -0
- package/models/components/subscriberpayloaddto.js.map +1 -1
- package/models/components/triggereventresponsedto.d.ts +3 -0
- package/models/components/triggereventresponsedto.d.ts.map +1 -1
- package/models/components/triggereventresponsedto.js +1 -0
- package/models/components/triggereventresponsedto.js.map +1 -1
- package/models/components/workfloworiginenum.d.ts +37 -0
- package/models/components/workfloworiginenum.d.ts.map +1 -0
- package/models/components/workfloworiginenum.js +54 -0
- package/models/components/workfloworiginenum.js.map +1 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/package.json +1 -1
- package/sources/json-development.json +57 -45
- package/src/funcs/cancel.ts +41 -7
- package/src/funcs/integrationsCreate.ts +41 -7
- package/src/funcs/integrationsDelete.ts +41 -7
- package/src/funcs/integrationsList.ts +39 -7
- package/src/funcs/integrationsListActive.ts +39 -7
- package/src/funcs/integrationsSetAsPrimary.ts +41 -7
- package/src/funcs/integrationsUpdate.ts +43 -7
- package/src/funcs/integrationsWebhooksRetrieve.ts +41 -7
- package/src/funcs/messagesDelete.ts +41 -7
- package/src/funcs/messagesDeleteByTransactionId.ts +44 -7
- package/src/funcs/messagesRetrieve.ts +39 -7
- package/src/funcs/notificationsList.ts +40 -7
- package/src/funcs/notificationsRetrieve.ts +41 -7
- package/src/funcs/notificationsStatsGraph.ts +41 -7
- package/src/funcs/notificationsStatsRetrieve.ts +39 -7
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +39 -7
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +41 -7
- package/src/funcs/subscribersCreate.ts +42 -8
- package/src/funcs/subscribersCreateBulk.ts +41 -7
- package/src/funcs/subscribersCredentialsAppend.ts +44 -7
- package/src/funcs/subscribersCredentialsDelete.ts +44 -7
- package/src/funcs/subscribersCredentialsUpdate.ts +44 -7
- package/src/funcs/subscribersDelete.ts +41 -7
- package/src/funcs/subscribersList.ts +54 -7
- package/src/funcs/subscribersMessagesMarkAll.ts +43 -7
- package/src/funcs/subscribersMessagesMarkAllAs.ts +43 -7
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +39 -7
- package/src/funcs/subscribersNotificationsFeed.ts +39 -7
- package/src/funcs/subscribersNotificationsUnseenCount.ts +39 -7
- package/src/funcs/subscribersPatch.ts +43 -7
- package/src/funcs/subscribersPreferencesList.ts +41 -7
- package/src/funcs/subscribersPreferencesUpdate.ts +43 -7
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +44 -7
- package/src/funcs/subscribersRetrieve.ts +41 -7
- package/src/funcs/subscribersSearch.ts +39 -7
- package/src/funcs/topicsCreate.ts +41 -7
- package/src/funcs/topicsDelete.ts +41 -7
- package/src/funcs/topicsList.ts +39 -7
- package/src/funcs/topicsRename.ts +43 -7
- package/src/funcs/topicsRetrieve.ts +41 -7
- package/src/funcs/topicsSubscribersAssign.ts +43 -7
- package/src/funcs/topicsSubscribersRemove.ts +43 -7
- package/src/funcs/topicsSubscribersRetrieve.ts +43 -7
- package/src/funcs/trigger.ts +41 -7
- package/src/funcs/triggerBroadcast.ts +41 -7
- package/src/funcs/triggerBulk.ts +41 -7
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +0 -1
- package/src/models/components/activitynotificationtemplateresponsedto.ts +12 -0
- package/src/models/components/createsubscriberrequestdto.ts +41 -111
- package/src/models/components/index.ts +1 -0
- package/src/models/components/patchsubscriberrequestdto.ts +0 -7
- package/src/models/components/subscriberpayloaddto.ts +7 -0
- package/src/models/components/triggereventresponsedto.ts +1 -0
- package/src/models/components/workfloworiginenum.ts +40 -0
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
- package/src/types/async.ts +68 -0
- package/types/async.d.ts +23 -0
- package/types/async.d.ts.map +1 -0
- package/types/async.js +44 -0
- package/types/async.js.map +1 -0
|
@@ -39,6 +39,7 @@ exports.NotificationsControllerListNotificationsRequest$inboundSchema = z.object
|
|
|
39
39
|
search: z.string().optional(),
|
|
40
40
|
subscriberIds: z.array(z.string()).optional(),
|
|
41
41
|
page: z.number().default(0),
|
|
42
|
+
limit: z.number().default(10),
|
|
42
43
|
transactionId: z.string().optional(),
|
|
43
44
|
after: z.string().optional(),
|
|
44
45
|
before: z.string().optional(),
|
|
@@ -56,6 +57,7 @@ exports.NotificationsControllerListNotificationsRequest$outboundSchema = z.objec
|
|
|
56
57
|
search: z.string().optional(),
|
|
57
58
|
subscriberIds: z.array(z.string()).optional(),
|
|
58
59
|
page: z.number().default(0),
|
|
60
|
+
limit: z.number().default(10),
|
|
59
61
|
transactionId: z.string().optional(),
|
|
60
62
|
after: z.string().optional(),
|
|
61
63
|
before: z.string().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationscontrollerlistnotifications.js","sourceRoot":"","sources":["../../src/models/operations/notificationscontrollerlistnotifications.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;
|
|
1
|
+
{"version":3,"file":"notificationscontrollerlistnotifications.js","sourceRoot":"","sources":["../../src/models/operations/notificationscontrollerlistnotifications.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -2064,10 +2064,23 @@
|
|
|
2064
2064
|
"in": "query",
|
|
2065
2065
|
"description": "Page number for pagination",
|
|
2066
2066
|
"schema": {
|
|
2067
|
+
"minimum": 0,
|
|
2067
2068
|
"default": 0,
|
|
2068
2069
|
"type": "number"
|
|
2069
2070
|
}
|
|
2070
2071
|
},
|
|
2072
|
+
{
|
|
2073
|
+
"name": "limit",
|
|
2074
|
+
"required": false,
|
|
2075
|
+
"in": "query",
|
|
2076
|
+
"description": "Limit for pagination",
|
|
2077
|
+
"schema": {
|
|
2078
|
+
"minimum": 1,
|
|
2079
|
+
"maximum": 50,
|
|
2080
|
+
"default": 10,
|
|
2081
|
+
"type": "number"
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2071
2084
|
{
|
|
2072
2085
|
"name": "transactionId",
|
|
2073
2086
|
"required": false,
|
|
@@ -14519,8 +14532,8 @@
|
|
|
14519
14532
|
}
|
|
14520
14533
|
},
|
|
14521
14534
|
"responses": {
|
|
14522
|
-
"
|
|
14523
|
-
"description": "
|
|
14535
|
+
"201": {
|
|
14536
|
+
"description": "Created",
|
|
14524
14537
|
"headers": {
|
|
14525
14538
|
"Content-Type": {
|
|
14526
14539
|
"$ref": "#/components/headers/Content-Type"
|
|
@@ -23185,7 +23198,8 @@
|
|
|
23185
23198
|
"no_workflow_active_steps_defined",
|
|
23186
23199
|
"no_workflow_steps_defined",
|
|
23187
23200
|
"processed",
|
|
23188
|
-
"no_tenant_found"
|
|
23201
|
+
"no_tenant_found",
|
|
23202
|
+
"invalid_recipients"
|
|
23189
23203
|
],
|
|
23190
23204
|
"type": "string",
|
|
23191
23205
|
"description": "Status of the trigger"
|
|
@@ -23327,6 +23341,10 @@
|
|
|
23327
23341
|
"items": {
|
|
23328
23342
|
"$ref": "#/components/schemas/SubscriberChannelDto"
|
|
23329
23343
|
}
|
|
23344
|
+
},
|
|
23345
|
+
"timezone": {
|
|
23346
|
+
"type": "string",
|
|
23347
|
+
"description": "The timezone of the subscriber."
|
|
23330
23348
|
}
|
|
23331
23349
|
},
|
|
23332
23350
|
"required": [
|
|
@@ -23619,6 +23637,15 @@
|
|
|
23619
23637
|
"_id"
|
|
23620
23638
|
]
|
|
23621
23639
|
},
|
|
23640
|
+
"WorkflowOriginEnum": {
|
|
23641
|
+
"type": "string",
|
|
23642
|
+
"description": "Origin of the workflow",
|
|
23643
|
+
"enum": [
|
|
23644
|
+
"novu-cloud",
|
|
23645
|
+
"novu-cloud-v1",
|
|
23646
|
+
"external"
|
|
23647
|
+
]
|
|
23648
|
+
},
|
|
23622
23649
|
"NotificationTriggerVariable": {
|
|
23623
23650
|
"type": "object",
|
|
23624
23651
|
"properties": {
|
|
@@ -23677,6 +23704,9 @@
|
|
|
23677
23704
|
"type": "string",
|
|
23678
23705
|
"description": "Name of the template"
|
|
23679
23706
|
},
|
|
23707
|
+
"origin": {
|
|
23708
|
+
"$ref": "#/components/schemas/WorkflowOriginEnum"
|
|
23709
|
+
},
|
|
23680
23710
|
"triggers": {
|
|
23681
23711
|
"description": "Triggers of the template",
|
|
23682
23712
|
"type": "array",
|
|
@@ -25024,61 +25054,48 @@
|
|
|
25024
25054
|
"properties": {
|
|
25025
25055
|
"subscriberId": {
|
|
25026
25056
|
"type": "string",
|
|
25027
|
-
"description": "
|
|
25028
|
-
},
|
|
25029
|
-
"email": {
|
|
25030
|
-
"type": "string",
|
|
25031
|
-
"description": "The email address of the subscriber."
|
|
25057
|
+
"description": "Unique identifier of the subscriber"
|
|
25032
25058
|
},
|
|
25033
25059
|
"firstName": {
|
|
25034
25060
|
"type": "string",
|
|
25035
|
-
"
|
|
25061
|
+
"nullable": true,
|
|
25062
|
+
"description": "First name of the subscriber"
|
|
25036
25063
|
},
|
|
25037
25064
|
"lastName": {
|
|
25038
25065
|
"type": "string",
|
|
25039
|
-
"
|
|
25066
|
+
"nullable": true,
|
|
25067
|
+
"description": "Last name of the subscriber"
|
|
25068
|
+
},
|
|
25069
|
+
"email": {
|
|
25070
|
+
"type": "string",
|
|
25071
|
+
"nullable": true,
|
|
25072
|
+
"description": "Email address of the subscriber"
|
|
25040
25073
|
},
|
|
25041
25074
|
"phone": {
|
|
25042
25075
|
"type": "string",
|
|
25043
|
-
"
|
|
25076
|
+
"nullable": true,
|
|
25077
|
+
"description": "Phone number of the subscriber"
|
|
25044
25078
|
},
|
|
25045
25079
|
"avatar": {
|
|
25046
25080
|
"type": "string",
|
|
25047
|
-
"
|
|
25081
|
+
"nullable": true,
|
|
25082
|
+
"description": "Avatar URL or identifier"
|
|
25083
|
+
},
|
|
25084
|
+
"timezone": {
|
|
25085
|
+
"type": "string",
|
|
25086
|
+
"nullable": true,
|
|
25087
|
+
"description": "Timezone of the subscriber"
|
|
25048
25088
|
},
|
|
25049
25089
|
"locale": {
|
|
25050
25090
|
"type": "string",
|
|
25051
|
-
"
|
|
25091
|
+
"nullable": true,
|
|
25092
|
+
"description": "Locale of the subscriber"
|
|
25052
25093
|
},
|
|
25053
25094
|
"data": {
|
|
25054
25095
|
"type": "object",
|
|
25055
|
-
"
|
|
25056
|
-
"
|
|
25057
|
-
|
|
25058
|
-
{
|
|
25059
|
-
"type": "string"
|
|
25060
|
-
},
|
|
25061
|
-
{
|
|
25062
|
-
"type": "array",
|
|
25063
|
-
"items": {
|
|
25064
|
-
"type": "string"
|
|
25065
|
-
}
|
|
25066
|
-
},
|
|
25067
|
-
{
|
|
25068
|
-
"type": "boolean"
|
|
25069
|
-
},
|
|
25070
|
-
{
|
|
25071
|
-
"type": "number"
|
|
25072
|
-
}
|
|
25073
|
-
]
|
|
25074
|
-
}
|
|
25075
|
-
},
|
|
25076
|
-
"channels": {
|
|
25077
|
-
"description": "An optional array of subscriber channels.",
|
|
25078
|
-
"type": "array",
|
|
25079
|
-
"items": {
|
|
25080
|
-
"$ref": "#/components/schemas/SubscriberChannelDto"
|
|
25081
|
-
}
|
|
25096
|
+
"nullable": true,
|
|
25097
|
+
"description": "Additional custom data for the subscriber",
|
|
25098
|
+
"additionalProperties": true
|
|
25082
25099
|
}
|
|
25083
25100
|
},
|
|
25084
25101
|
"required": [
|
|
@@ -26452,11 +26469,6 @@
|
|
|
26452
26469
|
"PatchSubscriberRequestDto": {
|
|
26453
26470
|
"type": "object",
|
|
26454
26471
|
"properties": {
|
|
26455
|
-
"subscriberId": {
|
|
26456
|
-
"type": "string",
|
|
26457
|
-
"nullable": true,
|
|
26458
|
-
"description": "Unique identifier of the subscriber"
|
|
26459
|
-
},
|
|
26460
26472
|
"firstName": {
|
|
26461
26473
|
"type": "string",
|
|
26462
26474
|
"nullable": true,
|
package/src/funcs/cancel.ts
CHANGED
|
@@ -21,6 +21,7 @@ import * as errors from "../models/errors/index.js";
|
|
|
21
21
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
25
|
import { Result } from "../types/fp.js";
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -31,12 +32,12 @@ import { Result } from "../types/fp.js";
|
|
|
31
32
|
* Using a previously generated transactionId during the event trigger,
|
|
32
33
|
* will cancel any active or pending workflows. This is useful to cancel active digests, delays etc...
|
|
33
34
|
*/
|
|
34
|
-
export
|
|
35
|
+
export function cancel(
|
|
35
36
|
client: NovuCore,
|
|
36
37
|
transactionId: string,
|
|
37
38
|
idempotencyKey?: string | undefined,
|
|
38
39
|
options?: RequestOptions,
|
|
39
|
-
):
|
|
40
|
+
): APIPromise<
|
|
40
41
|
Result<
|
|
41
42
|
operations.EventsControllerCancelResponse,
|
|
42
43
|
| errors.ErrorDto
|
|
@@ -51,6 +52,38 @@ export async function cancel(
|
|
|
51
52
|
| RequestTimeoutError
|
|
52
53
|
| ConnectionError
|
|
53
54
|
>
|
|
55
|
+
> {
|
|
56
|
+
return new APIPromise($do(
|
|
57
|
+
client,
|
|
58
|
+
transactionId,
|
|
59
|
+
idempotencyKey,
|
|
60
|
+
options,
|
|
61
|
+
));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
async function $do(
|
|
65
|
+
client: NovuCore,
|
|
66
|
+
transactionId: string,
|
|
67
|
+
idempotencyKey?: string | undefined,
|
|
68
|
+
options?: RequestOptions,
|
|
69
|
+
): Promise<
|
|
70
|
+
[
|
|
71
|
+
Result<
|
|
72
|
+
operations.EventsControllerCancelResponse,
|
|
73
|
+
| errors.ErrorDto
|
|
74
|
+
| errors.ErrorDto
|
|
75
|
+
| errors.ValidationErrorDto
|
|
76
|
+
| errors.ErrorDto
|
|
77
|
+
| SDKError
|
|
78
|
+
| SDKValidationError
|
|
79
|
+
| UnexpectedClientError
|
|
80
|
+
| InvalidRequestError
|
|
81
|
+
| RequestAbortedError
|
|
82
|
+
| RequestTimeoutError
|
|
83
|
+
| ConnectionError
|
|
84
|
+
>,
|
|
85
|
+
APICall,
|
|
86
|
+
]
|
|
54
87
|
> {
|
|
55
88
|
const input: operations.EventsControllerCancelRequest = {
|
|
56
89
|
transactionId: transactionId,
|
|
@@ -64,7 +97,7 @@ export async function cancel(
|
|
|
64
97
|
"Input validation failed",
|
|
65
98
|
);
|
|
66
99
|
if (!parsed.ok) {
|
|
67
|
-
return parsed;
|
|
100
|
+
return [parsed, { status: "invalid" }];
|
|
68
101
|
}
|
|
69
102
|
const payload = parsed.value;
|
|
70
103
|
const body = null;
|
|
@@ -92,6 +125,7 @@ export async function cancel(
|
|
|
92
125
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
93
126
|
|
|
94
127
|
const context = {
|
|
128
|
+
baseURL: options?.serverURL ?? "",
|
|
95
129
|
operationID: "EventsController_cancel",
|
|
96
130
|
oAuth2Scopes: [],
|
|
97
131
|
|
|
@@ -124,7 +158,7 @@ export async function cancel(
|
|
|
124
158
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
125
159
|
}, options);
|
|
126
160
|
if (!requestRes.ok) {
|
|
127
|
-
return requestRes;
|
|
161
|
+
return [requestRes, { status: "invalid" }];
|
|
128
162
|
}
|
|
129
163
|
const req = requestRes.value;
|
|
130
164
|
|
|
@@ -151,7 +185,7 @@ export async function cancel(
|
|
|
151
185
|
retryCodes: context.retryCodes,
|
|
152
186
|
});
|
|
153
187
|
if (!doResult.ok) {
|
|
154
|
-
return doResult;
|
|
188
|
+
return [doResult, { status: "request-error", request: req }];
|
|
155
189
|
}
|
|
156
190
|
const response = doResult.value;
|
|
157
191
|
|
|
@@ -191,8 +225,8 @@ export async function cancel(
|
|
|
191
225
|
M.fail("5XX"),
|
|
192
226
|
)(response, { extraFields: responseFields });
|
|
193
227
|
if (!result.ok) {
|
|
194
|
-
return result;
|
|
228
|
+
return [result, { status: "complete", request: req, response }];
|
|
195
229
|
}
|
|
196
230
|
|
|
197
|
-
return result;
|
|
231
|
+
return [result, { status: "complete", request: req, response }];
|
|
198
232
|
}
|
|
@@ -22,6 +22,7 @@ import * as errors from "../models/errors/index.js";
|
|
|
22
22
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
23
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
24
|
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
25
26
|
import { Result } from "../types/fp.js";
|
|
26
27
|
|
|
27
28
|
/**
|
|
@@ -30,12 +31,12 @@ import { Result } from "../types/fp.js";
|
|
|
30
31
|
* @remarks
|
|
31
32
|
* Create an integration for the current environment the user is based on the API key provided
|
|
32
33
|
*/
|
|
33
|
-
export
|
|
34
|
+
export function integrationsCreate(
|
|
34
35
|
client: NovuCore,
|
|
35
36
|
createIntegrationRequestDto: components.CreateIntegrationRequestDto,
|
|
36
37
|
idempotencyKey?: string | undefined,
|
|
37
38
|
options?: RequestOptions,
|
|
38
|
-
):
|
|
39
|
+
): APIPromise<
|
|
39
40
|
Result<
|
|
40
41
|
operations.IntegrationsControllerCreateIntegrationResponse,
|
|
41
42
|
| errors.ErrorDto
|
|
@@ -50,6 +51,38 @@ export async function integrationsCreate(
|
|
|
50
51
|
| RequestTimeoutError
|
|
51
52
|
| ConnectionError
|
|
52
53
|
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
createIntegrationRequestDto,
|
|
58
|
+
idempotencyKey,
|
|
59
|
+
options,
|
|
60
|
+
));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async function $do(
|
|
64
|
+
client: NovuCore,
|
|
65
|
+
createIntegrationRequestDto: components.CreateIntegrationRequestDto,
|
|
66
|
+
idempotencyKey?: string | undefined,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): Promise<
|
|
69
|
+
[
|
|
70
|
+
Result<
|
|
71
|
+
operations.IntegrationsControllerCreateIntegrationResponse,
|
|
72
|
+
| errors.ErrorDto
|
|
73
|
+
| errors.ErrorDto
|
|
74
|
+
| errors.ValidationErrorDto
|
|
75
|
+
| errors.ErrorDto
|
|
76
|
+
| SDKError
|
|
77
|
+
| SDKValidationError
|
|
78
|
+
| UnexpectedClientError
|
|
79
|
+
| InvalidRequestError
|
|
80
|
+
| RequestAbortedError
|
|
81
|
+
| RequestTimeoutError
|
|
82
|
+
| ConnectionError
|
|
83
|
+
>,
|
|
84
|
+
APICall,
|
|
85
|
+
]
|
|
53
86
|
> {
|
|
54
87
|
const input: operations.IntegrationsControllerCreateIntegrationRequest = {
|
|
55
88
|
createIntegrationRequestDto: createIntegrationRequestDto,
|
|
@@ -64,7 +97,7 @@ export async function integrationsCreate(
|
|
|
64
97
|
"Input validation failed",
|
|
65
98
|
);
|
|
66
99
|
if (!parsed.ok) {
|
|
67
|
-
return parsed;
|
|
100
|
+
return [parsed, { status: "invalid" }];
|
|
68
101
|
}
|
|
69
102
|
const payload = parsed.value;
|
|
70
103
|
const body = encodeJSON("body", payload.CreateIntegrationRequestDto, {
|
|
@@ -88,6 +121,7 @@ export async function integrationsCreate(
|
|
|
88
121
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
89
122
|
|
|
90
123
|
const context = {
|
|
124
|
+
baseURL: options?.serverURL ?? "",
|
|
91
125
|
operationID: "IntegrationsController_createIntegration",
|
|
92
126
|
oAuth2Scopes: [],
|
|
93
127
|
|
|
@@ -120,7 +154,7 @@ export async function integrationsCreate(
|
|
|
120
154
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
121
155
|
}, options);
|
|
122
156
|
if (!requestRes.ok) {
|
|
123
|
-
return requestRes;
|
|
157
|
+
return [requestRes, { status: "invalid" }];
|
|
124
158
|
}
|
|
125
159
|
const req = requestRes.value;
|
|
126
160
|
|
|
@@ -147,7 +181,7 @@ export async function integrationsCreate(
|
|
|
147
181
|
retryCodes: context.retryCodes,
|
|
148
182
|
});
|
|
149
183
|
if (!doResult.ok) {
|
|
150
|
-
return doResult;
|
|
184
|
+
return [doResult, { status: "request-error", request: req }];
|
|
151
185
|
}
|
|
152
186
|
const response = doResult.value;
|
|
153
187
|
|
|
@@ -188,8 +222,8 @@ export async function integrationsCreate(
|
|
|
188
222
|
M.fail("5XX"),
|
|
189
223
|
)(response, { extraFields: responseFields });
|
|
190
224
|
if (!result.ok) {
|
|
191
|
-
return result;
|
|
225
|
+
return [result, { status: "complete", request: req, response }];
|
|
192
226
|
}
|
|
193
227
|
|
|
194
|
-
return result;
|
|
228
|
+
return [result, { status: "complete", request: req, response }];
|
|
195
229
|
}
|
|
@@ -21,17 +21,18 @@ import * as errors from "../models/errors/index.js";
|
|
|
21
21
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
25
|
import { Result } from "../types/fp.js";
|
|
25
26
|
|
|
26
27
|
/**
|
|
27
28
|
* Delete integration
|
|
28
29
|
*/
|
|
29
|
-
export
|
|
30
|
+
export function integrationsDelete(
|
|
30
31
|
client: NovuCore,
|
|
31
32
|
integrationId: string,
|
|
32
33
|
idempotencyKey?: string | undefined,
|
|
33
34
|
options?: RequestOptions,
|
|
34
|
-
):
|
|
35
|
+
): APIPromise<
|
|
35
36
|
Result<
|
|
36
37
|
operations.IntegrationsControllerRemoveIntegrationResponse,
|
|
37
38
|
| errors.ErrorDto
|
|
@@ -46,6 +47,38 @@ export async function integrationsDelete(
|
|
|
46
47
|
| RequestTimeoutError
|
|
47
48
|
| ConnectionError
|
|
48
49
|
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
integrationId,
|
|
54
|
+
idempotencyKey,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: NovuCore,
|
|
61
|
+
integrationId: string,
|
|
62
|
+
idempotencyKey?: string | undefined,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
operations.IntegrationsControllerRemoveIntegrationResponse,
|
|
68
|
+
| errors.ErrorDto
|
|
69
|
+
| errors.ErrorDto
|
|
70
|
+
| errors.ValidationErrorDto
|
|
71
|
+
| errors.ErrorDto
|
|
72
|
+
| SDKError
|
|
73
|
+
| SDKValidationError
|
|
74
|
+
| UnexpectedClientError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| RequestAbortedError
|
|
77
|
+
| RequestTimeoutError
|
|
78
|
+
| ConnectionError
|
|
79
|
+
>,
|
|
80
|
+
APICall,
|
|
81
|
+
]
|
|
49
82
|
> {
|
|
50
83
|
const input: operations.IntegrationsControllerRemoveIntegrationRequest = {
|
|
51
84
|
integrationId: integrationId,
|
|
@@ -60,7 +93,7 @@ export async function integrationsDelete(
|
|
|
60
93
|
"Input validation failed",
|
|
61
94
|
);
|
|
62
95
|
if (!parsed.ok) {
|
|
63
|
-
return parsed;
|
|
96
|
+
return [parsed, { status: "invalid" }];
|
|
64
97
|
}
|
|
65
98
|
const payload = parsed.value;
|
|
66
99
|
const body = null;
|
|
@@ -88,6 +121,7 @@ export async function integrationsDelete(
|
|
|
88
121
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
89
122
|
|
|
90
123
|
const context = {
|
|
124
|
+
baseURL: options?.serverURL ?? "",
|
|
91
125
|
operationID: "IntegrationsController_removeIntegration",
|
|
92
126
|
oAuth2Scopes: [],
|
|
93
127
|
|
|
@@ -120,7 +154,7 @@ export async function integrationsDelete(
|
|
|
120
154
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
121
155
|
}, options);
|
|
122
156
|
if (!requestRes.ok) {
|
|
123
|
-
return requestRes;
|
|
157
|
+
return [requestRes, { status: "invalid" }];
|
|
124
158
|
}
|
|
125
159
|
const req = requestRes.value;
|
|
126
160
|
|
|
@@ -147,7 +181,7 @@ export async function integrationsDelete(
|
|
|
147
181
|
retryCodes: context.retryCodes,
|
|
148
182
|
});
|
|
149
183
|
if (!doResult.ok) {
|
|
150
|
-
return doResult;
|
|
184
|
+
return [doResult, { status: "request-error", request: req }];
|
|
151
185
|
}
|
|
152
186
|
const response = doResult.value;
|
|
153
187
|
|
|
@@ -188,8 +222,8 @@ export async function integrationsDelete(
|
|
|
188
222
|
M.fail("5XX"),
|
|
189
223
|
)(response, { extraFields: responseFields });
|
|
190
224
|
if (!result.ok) {
|
|
191
|
-
return result;
|
|
225
|
+
return [result, { status: "complete", request: req, response }];
|
|
192
226
|
}
|
|
193
227
|
|
|
194
|
-
return result;
|
|
228
|
+
return [result, { status: "complete", request: req, response }];
|
|
195
229
|
}
|
|
@@ -21,6 +21,7 @@ import * as errors from "../models/errors/index.js";
|
|
|
21
21
|
import { SDKError } from "../models/errors/sdkerror.js";
|
|
22
22
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
23
|
import * as operations from "../models/operations/index.js";
|
|
24
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
25
|
import { Result } from "../types/fp.js";
|
|
25
26
|
|
|
26
27
|
/**
|
|
@@ -29,11 +30,11 @@ import { Result } from "../types/fp.js";
|
|
|
29
30
|
* @remarks
|
|
30
31
|
* Return all the integrations the user has created for that organization. Review v.0.17.0 changelog for a breaking change
|
|
31
32
|
*/
|
|
32
|
-
export
|
|
33
|
+
export function integrationsList(
|
|
33
34
|
client: NovuCore,
|
|
34
35
|
idempotencyKey?: string | undefined,
|
|
35
36
|
options?: RequestOptions,
|
|
36
|
-
):
|
|
37
|
+
): APIPromise<
|
|
37
38
|
Result<
|
|
38
39
|
operations.IntegrationsControllerListIntegrationsResponse,
|
|
39
40
|
| errors.ErrorDto
|
|
@@ -48,6 +49,36 @@ export async function integrationsList(
|
|
|
48
49
|
| RequestTimeoutError
|
|
49
50
|
| ConnectionError
|
|
50
51
|
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
idempotencyKey,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: NovuCore,
|
|
62
|
+
idempotencyKey?: string | undefined,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
operations.IntegrationsControllerListIntegrationsResponse,
|
|
68
|
+
| errors.ErrorDto
|
|
69
|
+
| errors.ErrorDto
|
|
70
|
+
| errors.ValidationErrorDto
|
|
71
|
+
| errors.ErrorDto
|
|
72
|
+
| SDKError
|
|
73
|
+
| SDKValidationError
|
|
74
|
+
| UnexpectedClientError
|
|
75
|
+
| InvalidRequestError
|
|
76
|
+
| RequestAbortedError
|
|
77
|
+
| RequestTimeoutError
|
|
78
|
+
| ConnectionError
|
|
79
|
+
>,
|
|
80
|
+
APICall,
|
|
81
|
+
]
|
|
51
82
|
> {
|
|
52
83
|
const input: operations.IntegrationsControllerListIntegrationsRequest = {
|
|
53
84
|
idempotencyKey: idempotencyKey,
|
|
@@ -61,7 +92,7 @@ export async function integrationsList(
|
|
|
61
92
|
"Input validation failed",
|
|
62
93
|
);
|
|
63
94
|
if (!parsed.ok) {
|
|
64
|
-
return parsed;
|
|
95
|
+
return [parsed, { status: "invalid" }];
|
|
65
96
|
}
|
|
66
97
|
const payload = parsed.value;
|
|
67
98
|
const body = null;
|
|
@@ -82,6 +113,7 @@ export async function integrationsList(
|
|
|
82
113
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
83
114
|
|
|
84
115
|
const context = {
|
|
116
|
+
baseURL: options?.serverURL ?? "",
|
|
85
117
|
operationID: "IntegrationsController_listIntegrations",
|
|
86
118
|
oAuth2Scopes: [],
|
|
87
119
|
|
|
@@ -114,7 +146,7 @@ export async function integrationsList(
|
|
|
114
146
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
115
147
|
}, options);
|
|
116
148
|
if (!requestRes.ok) {
|
|
117
|
-
return requestRes;
|
|
149
|
+
return [requestRes, { status: "invalid" }];
|
|
118
150
|
}
|
|
119
151
|
const req = requestRes.value;
|
|
120
152
|
|
|
@@ -141,7 +173,7 @@ export async function integrationsList(
|
|
|
141
173
|
retryCodes: context.retryCodes,
|
|
142
174
|
});
|
|
143
175
|
if (!doResult.ok) {
|
|
144
|
-
return doResult;
|
|
176
|
+
return [doResult, { status: "request-error", request: req }];
|
|
145
177
|
}
|
|
146
178
|
const response = doResult.value;
|
|
147
179
|
|
|
@@ -182,8 +214,8 @@ export async function integrationsList(
|
|
|
182
214
|
M.fail("5XX"),
|
|
183
215
|
)(response, { extraFields: responseFields });
|
|
184
216
|
if (!result.ok) {
|
|
185
|
-
return result;
|
|
217
|
+
return [result, { status: "complete", request: req, response }];
|
|
186
218
|
}
|
|
187
219
|
|
|
188
|
-
return result;
|
|
220
|
+
return [result, { status: "complete", request: req, response }];
|
|
189
221
|
}
|