@novu/api 3.17.0 → 3.17.1
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 +20 -14
- package/funcs/integrationsCreate.d.ts +1 -1
- package/funcs/integrationsCreate.js +1 -1
- package/funcs/integrationsCreateMobileLink.d.ts +19 -0
- package/funcs/integrationsCreateMobileLink.d.ts.map +1 -0
- package/funcs/integrationsCreateMobileLink.js +141 -0
- package/funcs/integrationsCreateMobileLink.js.map +1 -0
- package/funcs/integrationsDelete.d.ts +1 -1
- package/funcs/integrationsDelete.js +1 -1
- package/funcs/integrationsIntegrationsControllerAutoConfigureIntegration.d.ts +1 -1
- package/funcs/integrationsIntegrationsControllerAutoConfigureIntegration.js +1 -1
- package/funcs/integrationsIntegrationsControllerConfigureIntegrationWebhook.d.ts +18 -0
- package/funcs/integrationsIntegrationsControllerConfigureIntegrationWebhook.d.ts.map +1 -0
- package/funcs/integrationsIntegrationsControllerConfigureIntegrationWebhook.js +139 -0
- package/funcs/integrationsIntegrationsControllerConfigureIntegrationWebhook.js.map +1 -0
- package/funcs/integrationsLinkChannelEndpoint.d.ts +19 -0
- package/funcs/integrationsLinkChannelEndpoint.d.ts.map +1 -0
- package/funcs/integrationsLinkChannelEndpoint.js +138 -0
- package/funcs/integrationsLinkChannelEndpoint.js.map +1 -0
- package/funcs/integrationsList.d.ts +1 -1
- package/funcs/integrationsList.js +1 -1
- package/funcs/integrationsListActive.d.ts +1 -1
- package/funcs/integrationsListActive.js +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts +1 -0
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +1 -0
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -1
- package/funcs/integrationsUpdate.js +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +3 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +3 -1
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +4 -2
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +4 -2
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +3 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +3 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +3 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +3 -1
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +3 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +3 -1
- package/funcs/subscribersNotificationsUnseenCount.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 +4 -4
- package/lib/config.js +4 -4
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/models/components/configuretelegramwebhookresponsedto.d.ts +21 -0
- package/models/components/configuretelegramwebhookresponsedto.d.ts.map +1 -0
- package/models/components/configuretelegramwebhookresponsedto.js +52 -0
- package/models/components/configuretelegramwebhookresponsedto.js.map +1 -0
- package/models/components/credentialsdto.d.ts +2 -0
- package/models/components/credentialsdto.d.ts.map +1 -1
- package/models/components/credentialsdto.js +2 -0
- package/models/components/credentialsdto.js.map +1 -1
- package/models/components/index.d.ts +5 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -0
- package/models/components/index.js.map +1 -1
- package/models/components/issueintegrationmobilelinkrequestdto.d.ts +15 -0
- package/models/components/issueintegrationmobilelinkrequestdto.d.ts.map +1 -0
- package/models/components/issueintegrationmobilelinkrequestdto.js +49 -0
- package/models/components/issueintegrationmobilelinkrequestdto.js.map +1 -0
- package/models/components/issuetelegrammobilelinkresponsedto.d.ts +21 -0
- package/models/components/issuetelegrammobilelinkresponsedto.d.ts.map +1 -0
- package/models/components/issuetelegrammobilelinkresponsedto.js +52 -0
- package/models/components/issuetelegrammobilelinkresponsedto.js.map +1 -0
- package/models/components/linkchannelendpointrequestdto.d.ts +20 -0
- package/models/components/linkchannelendpointrequestdto.d.ts.map +1 -0
- package/models/components/linkchannelendpointrequestdto.js +50 -0
- package/models/components/linkchannelendpointrequestdto.js.map +1 -0
- package/models/components/linkchannelendpointresponsedto.d.ts +19 -0
- package/models/components/linkchannelendpointresponsedto.d.ts.map +1 -0
- package/models/components/linkchannelendpointresponsedto.js +51 -0
- package/models/components/linkchannelendpointresponsedto.js.map +1 -0
- package/models/components/previewpayloaddto.d.ts +5 -0
- package/models/components/previewpayloaddto.d.ts.map +1 -1
- package/models/components/previewpayloaddto.js +2 -0
- package/models/components/previewpayloaddto.js.map +1 -1
- package/models/components/updateworkflowdto.d.ts +5 -4
- package/models/components/updateworkflowdto.d.ts.map +1 -1
- package/models/components/updateworkflowdto.js +3 -0
- package/models/components/updateworkflowdto.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/integrationscontrollerconfigureintegrationwebhook.d.ts +29 -0
- package/models/operations/integrationscontrollerconfigureintegrationwebhook.d.ts.map +1 -0
- package/models/operations/integrationscontrollerconfigureintegrationwebhook.js +73 -0
- package/models/operations/integrationscontrollerconfigureintegrationwebhook.js.map +1 -0
- package/models/operations/integrationscontrollercreateintegrationmobilelink.d.ts +31 -0
- package/models/operations/integrationscontrollercreateintegrationmobilelink.d.ts.map +1 -0
- package/models/operations/integrationscontrollercreateintegrationmobilelink.js +75 -0
- package/models/operations/integrationscontrollercreateintegrationmobilelink.js.map +1 -0
- package/models/operations/integrationscontrollerlinkchannelendpoint.d.ts +29 -0
- package/models/operations/integrationscontrollerlinkchannelendpoint.d.ts.map +1 -0
- package/models/operations/integrationscontrollerlinkchannelendpoint.js +72 -0
- package/models/operations/integrationscontrollerlinkchannelendpoint.js.map +1 -0
- package/package.json +1 -1
- package/sdk/integrations.d.ts +28 -6
- package/sdk/integrations.d.ts.map +1 -1
- package/sdk/integrations.js +37 -6
- package/sdk/integrations.js.map +1 -1
- package/sdk/novumessages.d.ts +10 -4
- package/sdk/novumessages.d.ts.map +1 -1
- package/sdk/novumessages.js +10 -4
- package/sdk/novumessages.js.map +1 -1
- package/sdk/novunotifications.d.ts +6 -2
- package/sdk/novunotifications.d.ts.map +1 -1
- package/sdk/novunotifications.js +6 -2
- package/sdk/novunotifications.js.map +1 -1
- package/src/funcs/integrationsCreate.ts +1 -1
- package/src/funcs/integrationsCreateMobileLink.ts +236 -0
- package/src/funcs/integrationsDelete.ts +1 -1
- package/src/funcs/integrationsIntegrationsControllerAutoConfigureIntegration.ts +1 -1
- package/src/funcs/integrationsIntegrationsControllerConfigureIntegrationWebhook.ts +223 -0
- package/src/funcs/integrationsLinkChannelEndpoint.ts +216 -0
- package/src/funcs/integrationsList.ts +1 -1
- package/src/funcs/integrationsListActive.ts +1 -1
- package/src/funcs/integrationsSetAsPrimary.ts +1 -0
- package/src/funcs/integrationsUpdate.ts +1 -1
- package/src/funcs/subscribersMessagesMarkAll.ts +3 -1
- package/src/funcs/subscribersMessagesMarkAllAs.ts +4 -2
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +3 -1
- package/src/funcs/subscribersNotificationsFeed.ts +3 -1
- package/src/funcs/subscribersNotificationsUnseenCount.ts +3 -1
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +1 -1
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/models/components/configuretelegramwebhookresponsedto.ts +45 -0
- package/src/models/components/credentialsdto.ts +4 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/components/issueintegrationmobilelinkrequestdto.ts +36 -0
- package/src/models/components/issuetelegrammobilelinkresponsedto.ts +45 -0
- package/src/models/components/linkchannelendpointrequestdto.ts +42 -0
- package/src/models/components/linkchannelendpointresponsedto.ts +39 -0
- package/src/models/components/previewpayloaddto.ts +7 -0
- package/src/models/components/updateworkflowdto.ts +11 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/integrationscontrollerconfigureintegrationwebhook.ts +86 -0
- package/src/models/operations/integrationscontrollercreateintegrationmobilelink.ts +94 -0
- package/src/models/operations/integrationscontrollerlinkchannelendpoint.ts +90 -0
- package/src/sdk/integrations.ts +76 -6
- package/src/sdk/novumessages.ts +10 -4
- package/src/sdk/novunotifications.ts +6 -2
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
package/sdk/integrations.js
CHANGED
|
@@ -5,11 +5,14 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Integrations = void 0;
|
|
7
7
|
const integrationsCreate_js_1 = require("../funcs/integrationsCreate.js");
|
|
8
|
+
const integrationsCreateMobileLink_js_1 = require("../funcs/integrationsCreateMobileLink.js");
|
|
8
9
|
const integrationsDelete_js_1 = require("../funcs/integrationsDelete.js");
|
|
9
10
|
const integrationsGenerateChatOAuthUrl_js_1 = require("../funcs/integrationsGenerateChatOAuthUrl.js");
|
|
10
11
|
const integrationsGenerateConnectOAuthUrl_js_1 = require("../funcs/integrationsGenerateConnectOAuthUrl.js");
|
|
11
12
|
const integrationsGenerateLinkUserOAuthUrl_js_1 = require("../funcs/integrationsGenerateLinkUserOAuthUrl.js");
|
|
12
13
|
const integrationsIntegrationsControllerAutoConfigureIntegration_js_1 = require("../funcs/integrationsIntegrationsControllerAutoConfigureIntegration.js");
|
|
14
|
+
const integrationsIntegrationsControllerConfigureIntegrationWebhook_js_1 = require("../funcs/integrationsIntegrationsControllerConfigureIntegrationWebhook.js");
|
|
15
|
+
const integrationsLinkChannelEndpoint_js_1 = require("../funcs/integrationsLinkChannelEndpoint.js");
|
|
13
16
|
const integrationsList_js_1 = require("../funcs/integrationsList.js");
|
|
14
17
|
const integrationsListActive_js_1 = require("../funcs/integrationsListActive.js");
|
|
15
18
|
const integrationsSetAsPrimary_js_1 = require("../funcs/integrationsSetAsPrimary.js");
|
|
@@ -21,7 +24,7 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
21
24
|
* List all integrations
|
|
22
25
|
*
|
|
23
26
|
* @remarks
|
|
24
|
-
* List all the channels integrations created in the organization
|
|
27
|
+
* List all the channels integrations created in the organization. Only integration metadata is returned, credentials field is returned as an empty object.
|
|
25
28
|
*/
|
|
26
29
|
async list(idempotencyKey, options) {
|
|
27
30
|
return (0, fp_js_1.unwrapAsync)((0, integrationsList_js_1.integrationsList)(this, idempotencyKey, options));
|
|
@@ -31,7 +34,7 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
31
34
|
*
|
|
32
35
|
* @remarks
|
|
33
36
|
* Create an integration for the current environment the user is based on the API key provided.
|
|
34
|
-
* Each provider supports different credentials, check the provider documentation for more details.
|
|
37
|
+
* Each provider supports different credentials, check the provider documentation for more details. Only integration metadata is returned, credentials field is returned as an empty object.
|
|
35
38
|
*/
|
|
36
39
|
async create(createIntegrationRequestDto, idempotencyKey, options) {
|
|
37
40
|
return (0, fp_js_1.unwrapAsync)((0, integrationsCreate_js_1.integrationsCreate)(this, createIntegrationRequestDto, idempotencyKey, options));
|
|
@@ -41,7 +44,7 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
41
44
|
*
|
|
42
45
|
* @remarks
|
|
43
46
|
* Update an integration by its unique key identifier **integrationId**.
|
|
44
|
-
* Each provider supports different credentials, check the provider documentation for more details.
|
|
47
|
+
* Each provider supports different credentials, check the provider documentation for more details. Only integration metadata is returned, credentials field is returned as an empty object.
|
|
45
48
|
*/
|
|
46
49
|
async update(updateIntegrationRequestDto, integrationId, idempotencyKey, options) {
|
|
47
50
|
return (0, fp_js_1.unwrapAsync)((0, integrationsUpdate_js_1.integrationsUpdate)(this, updateIntegrationRequestDto, integrationId, idempotencyKey, options));
|
|
@@ -51,7 +54,7 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
51
54
|
*
|
|
52
55
|
* @remarks
|
|
53
56
|
* Delete an integration by its unique key identifier **integrationId**.
|
|
54
|
-
* This action is irreversible.
|
|
57
|
+
* This action is irreversible. Only integration metadata is returned, credentials field is returned as empty object.
|
|
55
58
|
*/
|
|
56
59
|
async delete(integrationId, idempotencyKey, options) {
|
|
57
60
|
return (0, fp_js_1.unwrapAsync)((0, integrationsDelete_js_1.integrationsDelete)(this, integrationId, idempotencyKey, options));
|
|
@@ -61,7 +64,7 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
61
64
|
*
|
|
62
65
|
* @remarks
|
|
63
66
|
* Auto-configure an integration by its unique key identifier **integrationId** for inbound webhook support.
|
|
64
|
-
* This will automatically generate required webhook signing keys and configure webhook endpoints.
|
|
67
|
+
* This will automatically generate required webhook signing keys and configure webhook endpoints. Only integration metadata is returned, credentials field is returned as an empty object.
|
|
65
68
|
*/
|
|
66
69
|
async integrationsControllerAutoConfigureIntegration(integrationId, idempotencyKey, options) {
|
|
67
70
|
return (0, fp_js_1.unwrapAsync)((0, integrationsIntegrationsControllerAutoConfigureIntegration_js_1.integrationsIntegrationsControllerAutoConfigureIntegration)(this, integrationId, idempotencyKey, options));
|
|
@@ -73,15 +76,34 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
73
76
|
* Update an integration as **primary** by its unique key identifier **integrationId**.
|
|
74
77
|
* This API will set the integration as primary for that channel in the current environment.
|
|
75
78
|
* Primary integration is used to deliver notification for sms and email channels in the workflow.
|
|
79
|
+
* Only integration metadata is returned, credentials field is returned as an empty object.
|
|
76
80
|
*/
|
|
77
81
|
async setAsPrimary(integrationId, idempotencyKey, options) {
|
|
78
82
|
return (0, fp_js_1.unwrapAsync)((0, integrationsSetAsPrimary_js_1.integrationsSetAsPrimary)(this, integrationId, idempotencyKey, options));
|
|
79
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Issue a short-lived mobile setup link for an existing integration
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Returns an opaque, single-use setup token plus a mobile URL for configuring an existing chat integration. Telegram is the only supported provider initially.
|
|
89
|
+
*/
|
|
90
|
+
async createMobileLink(issueIntegrationMobileLinkRequestDto, integrationIdentifier, idempotencyKey, options) {
|
|
91
|
+
return (0, fp_js_1.unwrapAsync)((0, integrationsCreateMobileLink_js_1.integrationsCreateMobileLink)(this, issueIntegrationMobileLinkRequestDto, integrationIdentifier, idempotencyKey, options));
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Configure a chat integration webhook
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* Registers the Novu webhook URL with the chat provider for the specified integration. Telegram is the only supported provider initially.
|
|
98
|
+
*/
|
|
99
|
+
async integrationsControllerConfigureIntegrationWebhook(integrationIdentifier, idempotencyKey, options) {
|
|
100
|
+
return (0, fp_js_1.unwrapAsync)((0, integrationsIntegrationsControllerConfigureIntegrationWebhook_js_1.integrationsIntegrationsControllerConfigureIntegrationWebhook)(this, integrationIdentifier, idempotencyKey, options));
|
|
101
|
+
}
|
|
80
102
|
/**
|
|
81
103
|
* List active integrations
|
|
82
104
|
*
|
|
83
105
|
* @remarks
|
|
84
|
-
* List all the active integrations created in the organization
|
|
106
|
+
* List all the active integrations created in the organization. Only integration metadata is returned, credentials field is returned as an empty object.
|
|
85
107
|
*/
|
|
86
108
|
async listActive(idempotencyKey, options) {
|
|
87
109
|
return (0, fp_js_1.unwrapAsync)((0, integrationsListActive_js_1.integrationsListActive)(this, idempotencyKey, options));
|
|
@@ -96,6 +118,15 @@ class Integrations extends sdks_js_1.ClientSDK {
|
|
|
96
118
|
async generateConnectOAuthUrl(generateConnectOauthUrlRequestDto, idempotencyKey, options) {
|
|
97
119
|
return (0, fp_js_1.unwrapAsync)((0, integrationsGenerateConnectOAuthUrl_js_1.integrationsGenerateConnectOAuthUrl)(this, generateConnectOauthUrlRequestDto, idempotencyKey, options));
|
|
98
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* Issue a URL to link a subscriber chat identity
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* Returns a provider-specific URL the subscriber opens to link their chat identity. The integration provider is resolved from integrationIdentifier; Telegram returns a deep link.
|
|
126
|
+
*/
|
|
127
|
+
async linkChannelEndpoint(linkChannelEndpointRequestDto, idempotencyKey, options) {
|
|
128
|
+
return (0, fp_js_1.unwrapAsync)((0, integrationsLinkChannelEndpoint_js_1.integrationsLinkChannelEndpoint)(this, linkChannelEndpointRequestDto, idempotencyKey, options));
|
|
129
|
+
}
|
|
99
130
|
/**
|
|
100
131
|
* Generate OAuth URL to link a subscriber user identity
|
|
101
132
|
*
|
package/sdk/integrations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.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ACb,cAAc,EACd,OAAO,CACR,CACF,CAAC;IACJ,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../src/sdk/integrations.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0EAAoE;AACpE,8FAAwF;AACxF,0EAAoE;AACpE,sGAAgG;AAChG,4GAAsG;AACtG,8GAAwG;AACxG,0JAAoJ;AACpJ,gKAA0J;AAC1J,oGAA8F;AAC9F,sEAAgE;AAChE,kFAA4E;AAC5E,sFAAgF;AAChF,0EAAoE;AACpE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,YAAa,SAAQ,mBAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sCAAgB,EACjC,IAAI,EACJ,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,2BAAmE,EACnE,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,2BAA2B,EAC3B,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,2BAAmE,EACnE,aAAqB,EACrB,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,2BAA2B,EAC3B,aAAa,EACb,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CACV,aAAqB,EACrB,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,aAAa,EACb,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK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,mBAAmB,CACvB,6BAAuE,EACvE,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,6BAA6B,EAC7B,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,wBAAwB,CAC5B,kCAC+C,EAC/C,cAAmC,EACnC,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,8EAAoC,EACrD,IAAI,EACJ,kCAAkC,EAClC,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,oBAAoB,CACxB,8BAAyE,EACzE,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sEAAgC,EACjD,IAAI,EACJ,8BAA8B,EAC9B,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AApRD,oCAoRC"}
|
package/sdk/novumessages.d.ts
CHANGED
|
@@ -6,23 +6,29 @@ export declare class NovuMessages extends ClientSDK {
|
|
|
6
6
|
* Update notification action status
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* Update in-app
|
|
9
|
+
* This API is deprecated, use v2 API instead. Update in-app notification's action status by its unique key identifier **messageId** and type field **type**.
|
|
10
10
|
* **type** field can be **primary** or **secondary**
|
|
11
|
+
*
|
|
12
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
11
13
|
*/
|
|
12
14
|
updateAsSeen(request: operations.SubscribersV1ControllerMarkActionAsSeenRequest, options?: RequestOptions): Promise<operations.SubscribersV1ControllerMarkActionAsSeenResponse>;
|
|
13
15
|
/**
|
|
14
16
|
* Update all notifications state
|
|
15
17
|
*
|
|
16
18
|
* @remarks
|
|
17
|
-
* Update all subscriber in-app
|
|
19
|
+
* This API is deprecated, use v2 API instead. Update all subscriber in-app notifications state such as read, unread, seen or unseen by **subscriberId**.
|
|
20
|
+
*
|
|
21
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
22
|
*/
|
|
19
23
|
markAll(markAllMessageAsRequestDto: components.MarkAllMessageAsRequestDto, subscriberId: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.SubscribersV1ControllerMarkAllUnreadAsReadResponse>;
|
|
20
24
|
/**
|
|
21
25
|
* Update notifications state
|
|
22
26
|
*
|
|
23
27
|
* @remarks
|
|
24
|
-
* Update subscriber's multiple in-app
|
|
25
|
-
* **messageId** is of type mongodbId of notifications
|
|
28
|
+
* This API is deprecated, use v2 API instead. Update subscriber's multiple in-app notifications state such as seen, read, unseen or unread by **subscriberId**.
|
|
29
|
+
* **messageId** is of type mongodbId of notifications.
|
|
30
|
+
*
|
|
31
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
26
32
|
*/
|
|
27
33
|
markAllAs(messageMarkAsRequestDto: components.MessageMarkAsRequestDto, subscriberId: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.SubscribersV1ControllerMarkMessagesAsResponse>;
|
|
28
34
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"novumessages.d.ts","sourceRoot":"","sources":["../src/sdk/novumessages.ts"],"names":[],"mappings":"AAOA,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;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC
|
|
1
|
+
{"version":3,"file":"novumessages.d.ts","sourceRoot":"","sources":["../src/sdk/novumessages.ts"],"names":[],"mappings":"AAOA,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;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;;;;OAQG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,8CAA8C,EAClE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+CAA+C,CAAC;IAQtE;;;;;;;OAOG;IACG,OAAO,CACX,0BAA0B,EAAE,UAAU,CAAC,0BAA0B,EACjE,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kDAAkD,CAAC;IAUzE;;;;;;;;OAQG;IACG,SAAS,CACb,uBAAuB,EAAE,UAAU,CAAC,uBAAuB,EAC3D,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6CAA6C,CAAC;CASrE"}
|
package/sdk/novumessages.js
CHANGED
|
@@ -14,8 +14,10 @@ class NovuMessages extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
* Update notification action status
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Update in-app
|
|
17
|
+
* This API is deprecated, use v2 API instead. Update in-app notification's action status by its unique key identifier **messageId** and type field **type**.
|
|
18
18
|
* **type** field can be **primary** or **secondary**
|
|
19
|
+
*
|
|
20
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
19
21
|
*/
|
|
20
22
|
async updateAsSeen(request, options) {
|
|
21
23
|
return (0, fp_js_1.unwrapAsync)((0, subscribersMessagesUpdateAsSeen_js_1.subscribersMessagesUpdateAsSeen)(this, request, options));
|
|
@@ -24,7 +26,9 @@ class NovuMessages extends sdks_js_1.ClientSDK {
|
|
|
24
26
|
* Update all notifications state
|
|
25
27
|
*
|
|
26
28
|
* @remarks
|
|
27
|
-
* Update all subscriber in-app
|
|
29
|
+
* This API is deprecated, use v2 API instead. Update all subscriber in-app notifications state such as read, unread, seen or unseen by **subscriberId**.
|
|
30
|
+
*
|
|
31
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
28
32
|
*/
|
|
29
33
|
async markAll(markAllMessageAsRequestDto, subscriberId, idempotencyKey, options) {
|
|
30
34
|
return (0, fp_js_1.unwrapAsync)((0, subscribersMessagesMarkAll_js_1.subscribersMessagesMarkAll)(this, markAllMessageAsRequestDto, subscriberId, idempotencyKey, options));
|
|
@@ -33,8 +37,10 @@ class NovuMessages extends sdks_js_1.ClientSDK {
|
|
|
33
37
|
* Update notifications state
|
|
34
38
|
*
|
|
35
39
|
* @remarks
|
|
36
|
-
* Update subscriber's multiple in-app
|
|
37
|
-
* **messageId** is of type mongodbId of notifications
|
|
40
|
+
* This API is deprecated, use v2 API instead. Update subscriber's multiple in-app notifications state such as seen, read, unseen or unread by **subscriberId**.
|
|
41
|
+
* **messageId** is of type mongodbId of notifications.
|
|
42
|
+
*
|
|
43
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
44
|
*/
|
|
39
45
|
async markAllAs(messageMarkAsRequestDto, subscriberId, idempotencyKey, options) {
|
|
40
46
|
return (0, fp_js_1.unwrapAsync)((0, subscribersMessagesMarkAllAs_js_1.subscribersMessagesMarkAllAs)(this, messageMarkAsRequestDto, subscriberId, idempotencyKey, options));
|
package/sdk/novumessages.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"novumessages.js","sourceRoot":"","sources":["../src/sdk/novumessages.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,8FAAwF;AACxF,oGAA8F;AAC9F,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,YAAa,SAAQ,mBAAS;IACzC
|
|
1
|
+
{"version":3,"file":"novumessages.js","sourceRoot":"","sources":["../src/sdk/novumessages.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,0FAAoF;AACpF,8FAAwF;AACxF,oGAA8F;AAC9F,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,YAAa,SAAQ,mBAAS;IACzC;;;;;;;;OAQG;IACH,KAAK,CAAC,YAAY,CAChB,OAAkE,EAClE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,OAAO,CACX,0BAAiE,EACjE,YAAoB,EACpB,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0DAA0B,EAC3C,IAAI,EACJ,0BAA0B,EAC1B,YAAY,EACZ,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,SAAS,CACb,uBAA2D,EAC3D,YAAoB,EACpB,cAAmC,EACnC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,uBAAuB,EACvB,YAAY,EACZ,cAAc,EACd,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAnED,oCAmEC"}
|
|
@@ -120,14 +120,18 @@ export declare class NovuNotifications extends ClientSDK {
|
|
|
120
120
|
* Retrieve subscriber notifications
|
|
121
121
|
*
|
|
122
122
|
* @remarks
|
|
123
|
-
* Retrieve subscriber in-app
|
|
123
|
+
* This API is deprecated, use v2 API instead. Retrieve subscriber in-app notifications by its unique key identifier **subscriberId**.
|
|
124
|
+
*
|
|
125
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
124
126
|
*/
|
|
125
127
|
feed(request: operations.SubscribersV1ControllerGetNotificationsFeedRequest, options?: RequestOptions): Promise<operations.SubscribersV1ControllerGetNotificationsFeedResponse>;
|
|
126
128
|
/**
|
|
127
129
|
* Retrieve unseen notifications count
|
|
128
130
|
*
|
|
129
131
|
* @remarks
|
|
130
|
-
* Retrieve unseen in-app
|
|
132
|
+
* This API is deprecated, use v2 API instead. Retrieve unseen in-app notifications count for a subscriber by its unique key identifier **subscriberId**.
|
|
133
|
+
*
|
|
134
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
131
135
|
*/
|
|
132
136
|
unseenCount(request: operations.SubscribersV1ControllerGetUnseenCountRequest, options?: RequestOptions): Promise<operations.SubscribersV1ControllerGetUnseenCountResponse>;
|
|
133
137
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"novunotifications.d.ts","sourceRoot":"","sources":["../src/sdk/novunotifications.ts"],"names":[],"mappings":"AAsBA,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;AAG5D,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C;;;;;;OAMG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,sDAAsD,EAC1E,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,uDAAuD,CACnE;IAQD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,8CAA8C,EAClE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,+CAA+C,GAAG,SAAS,CACvE;IAQD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,sDAAsD,EAC1E,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,uDAAuD,CACnE;IAQD;;;;;OAKG;IACG,YAAY,CAChB,OAAO,EAAE,UAAU,CAAC,oDAAoD,EACxE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qDAAqD,CAAC;IAQ5E;;;;;OAKG;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AA4D,CACxE;IAUD;;;;;OAKG;IACG,SAAS,CACb,mCAAmC,EACjC,UAAU,CAAC,mCAAmC,EAChD,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,mDAAmD,GAAG,SAAS,CAC3E;IAUD;;;;;OAKG;IACG,aAAa,CACjB,mCAAmC,EACjC,UAAU,CAAC,mCAAmC,EAChD,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACN,UAAU,CAAC,uDAAuD,GAClE,SAAS,CACZ;IAUD;;;;;OAKG;IACG,cAAc,CAClB,mCAAmC,EACjC,UAAU,CAAC,mCAAmC,EAChD,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACN,UAAU,CAAC,wDAAwD,GACnE,SAAS,CACZ;IAUD;;;;;OAKG;IACG,UAAU,CACd,oCAAoC,EAClC,UAAU,CAAC,oCAAoC,EACjD,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,oDAAoD,GAAG,SAAS,CAC5E;IAUD
|
|
1
|
+
{"version":3,"file":"novunotifications.d.ts","sourceRoot":"","sources":["../src/sdk/novunotifications.ts"],"names":[],"mappings":"AAsBA,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;AAG5D,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C;;;;;;OAMG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CA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UAAU,CACd,oCAAoC,EAClC,UAAU,CAAC,oCAAoC,EACjD,YAAY,EAAE,MAAM,EACpB,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,UAAU,CAAC,oDAAoD,GAAG,SAAS,CAC5E;IAUD;;;;;;;OAOG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,kDAAkD,EACtE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mDAAmD,CAAC;IAQ1E;;;;;;;OAOG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,4CAA4C,EAChE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6CAA6C,CAAC;CAOrE"}
|
package/sdk/novunotifications.js
CHANGED
|
@@ -175,7 +175,9 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
175
175
|
* Retrieve subscriber notifications
|
|
176
176
|
*
|
|
177
177
|
* @remarks
|
|
178
|
-
* Retrieve subscriber in-app
|
|
178
|
+
* This API is deprecated, use v2 API instead. Retrieve subscriber in-app notifications by its unique key identifier **subscriberId**.
|
|
179
|
+
*
|
|
180
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
179
181
|
*/
|
|
180
182
|
async feed(request, options) {
|
|
181
183
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsFeed_js_1.subscribersNotificationsFeed)(this, request, options));
|
|
@@ -184,7 +186,9 @@ class NovuNotifications extends sdks_js_1.ClientSDK {
|
|
|
184
186
|
* Retrieve unseen notifications count
|
|
185
187
|
*
|
|
186
188
|
* @remarks
|
|
187
|
-
* Retrieve unseen in-app
|
|
189
|
+
* This API is deprecated, use v2 API instead. Retrieve unseen in-app notifications count for a subscriber by its unique key identifier **subscriberId**.
|
|
190
|
+
*
|
|
191
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
188
192
|
*/
|
|
189
193
|
async unseenCount(request, options) {
|
|
190
194
|
return (0, fp_js_1.unwrapAsync)((0, subscribersNotificationsUnseenCount_js_1.subscribersNotificationsUnseenCount)(this, request, options));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"novunotifications.js","sourceRoot":"","sources":["../src/sdk/novunotifications.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oGAA8F;AAC9F,0GAAoG;AACpG,kHAA4G;AAC5G,kHAA4G;AAC5G,gGAA0F;AAC1F,kGAA4F;AAC5F,wGAAkG;AAClG,8FAAwF;AACxF,8FAAwF;AACxF,gHAA0G;AAC1G,0GAAoG;AACpG,0GAAoG;AACpG,8GAAwG;AACxG,8GAAwG;AACxG,kGAA4F;AAC5F,wGAAkG;AAClG,4GAAsG;AACtG,sGAAgG;AAChG,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,iBAAkB,SAAQ,mBAAS;IAC9C;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,CACR,OAA0E,EAC1E,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkE,EAClE,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAA0E,EAC1E,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAwE,EACxE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8EAAoC,EACrD,IAAI,E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3,"file":"novunotifications.js","sourceRoot":"","sources":["../src/sdk/novunotifications.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oGAA8F;AAC9F,0GAAoG;AACpG,kHAA4G;AAC5G,kHAA4G;AAC5G,gGAA0F;AAC1F,kGAA4F;AAC5F,wGAAkG;AAClG,8FAAwF;AACxF,8FAAwF;AACxF,gHAA0G;AAC1G,0GAAoG;AACpG,0GAAoG;AACpG,8GAAwG;AACxG,8GAAwG;AACxG,kGAA4F;AAC5F,wGAAkG;AAClG,4GAAsG;AACtG,sGAAgG;AAChG,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,iBAAkB,SAAQ,mBAAS;IAC9C;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,CACR,OAA0E,EAC1E,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,8DAA4B,EAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAkE,EAClE,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,kEAA8B,EAC/C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAA0E,EAC1E,OAAwB;QAIxB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,YAAY,CAChB,OAAwE,EACxE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8EAAoC,EACrD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,OAAmE,EACnE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oEAA+B,EACh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;;;OAOG;IACH,KAAK,CAAC,WAAW,CACf,OAAgE,EAChE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4EAAmC,EACpD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAzWD,8CAyWC"}
|
|
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
34
|
* Create an integration for the current environment the user is based on the API key provided.
|
|
35
|
-
* Each provider supports different credentials, check the provider documentation for more details.
|
|
35
|
+
* Each provider supports different credentials, check the provider documentation for more details. Only integration metadata is returned, credentials field is returned as an empty object.
|
|
36
36
|
*/
|
|
37
37
|
export function integrationsCreate(
|
|
38
38
|
client: NovuCore,
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { NovuCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { NovuError } from "../models/errors/novuerror.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import * as operations from "../models/operations/index.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Issue a short-lived mobile setup link for an existing integration
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Returns an opaque, single-use setup token plus a mobile URL for configuring an existing chat integration. Telegram is the only supported provider initially.
|
|
35
|
+
*/
|
|
36
|
+
export function integrationsCreateMobileLink(
|
|
37
|
+
client: NovuCore,
|
|
38
|
+
issueIntegrationMobileLinkRequestDto:
|
|
39
|
+
components.IssueIntegrationMobileLinkRequestDto,
|
|
40
|
+
integrationIdentifier: string,
|
|
41
|
+
idempotencyKey?: string | undefined,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<
|
|
44
|
+
Result<
|
|
45
|
+
operations.IntegrationsControllerCreateIntegrationMobileLinkResponse,
|
|
46
|
+
| errors.ErrorDto
|
|
47
|
+
| errors.ValidationErrorDto
|
|
48
|
+
| NovuError
|
|
49
|
+
| ResponseValidationError
|
|
50
|
+
| ConnectionError
|
|
51
|
+
| RequestAbortedError
|
|
52
|
+
| RequestTimeoutError
|
|
53
|
+
| InvalidRequestError
|
|
54
|
+
| UnexpectedClientError
|
|
55
|
+
| SDKValidationError
|
|
56
|
+
>
|
|
57
|
+
> {
|
|
58
|
+
return new APIPromise($do(
|
|
59
|
+
client,
|
|
60
|
+
issueIntegrationMobileLinkRequestDto,
|
|
61
|
+
integrationIdentifier,
|
|
62
|
+
idempotencyKey,
|
|
63
|
+
options,
|
|
64
|
+
));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
async function $do(
|
|
68
|
+
client: NovuCore,
|
|
69
|
+
issueIntegrationMobileLinkRequestDto:
|
|
70
|
+
components.IssueIntegrationMobileLinkRequestDto,
|
|
71
|
+
integrationIdentifier: string,
|
|
72
|
+
idempotencyKey?: string | undefined,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): Promise<
|
|
75
|
+
[
|
|
76
|
+
Result<
|
|
77
|
+
operations.IntegrationsControllerCreateIntegrationMobileLinkResponse,
|
|
78
|
+
| errors.ErrorDto
|
|
79
|
+
| errors.ValidationErrorDto
|
|
80
|
+
| NovuError
|
|
81
|
+
| ResponseValidationError
|
|
82
|
+
| ConnectionError
|
|
83
|
+
| RequestAbortedError
|
|
84
|
+
| RequestTimeoutError
|
|
85
|
+
| InvalidRequestError
|
|
86
|
+
| UnexpectedClientError
|
|
87
|
+
| SDKValidationError
|
|
88
|
+
>,
|
|
89
|
+
APICall,
|
|
90
|
+
]
|
|
91
|
+
> {
|
|
92
|
+
const input:
|
|
93
|
+
operations.IntegrationsControllerCreateIntegrationMobileLinkRequest = {
|
|
94
|
+
issueIntegrationMobileLinkRequestDto:
|
|
95
|
+
issueIntegrationMobileLinkRequestDto,
|
|
96
|
+
integrationIdentifier: integrationIdentifier,
|
|
97
|
+
idempotencyKey: idempotencyKey,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const parsed = safeParse(
|
|
101
|
+
input,
|
|
102
|
+
(value) =>
|
|
103
|
+
operations
|
|
104
|
+
.IntegrationsControllerCreateIntegrationMobileLinkRequest$outboundSchema
|
|
105
|
+
.parse(value),
|
|
106
|
+
"Input validation failed",
|
|
107
|
+
);
|
|
108
|
+
if (!parsed.ok) {
|
|
109
|
+
return [parsed, { status: "invalid" }];
|
|
110
|
+
}
|
|
111
|
+
const payload = parsed.value;
|
|
112
|
+
const body = encodeJSON(
|
|
113
|
+
"body",
|
|
114
|
+
payload.IssueIntegrationMobileLinkRequestDto,
|
|
115
|
+
{ explode: true },
|
|
116
|
+
);
|
|
117
|
+
|
|
118
|
+
const pathParams = {
|
|
119
|
+
integrationIdentifier: encodeSimple(
|
|
120
|
+
"integrationIdentifier",
|
|
121
|
+
payload.integrationIdentifier,
|
|
122
|
+
{ explode: false, charEncoding: "percent" },
|
|
123
|
+
),
|
|
124
|
+
};
|
|
125
|
+
const path = pathToFunc(
|
|
126
|
+
"/v1/integrations/{integrationIdentifier}/mobile-link",
|
|
127
|
+
)(pathParams);
|
|
128
|
+
|
|
129
|
+
const headers = new Headers(compactMap({
|
|
130
|
+
"Content-Type": "application/json",
|
|
131
|
+
Accept: "application/json",
|
|
132
|
+
"idempotency-key": encodeSimple(
|
|
133
|
+
"idempotency-key",
|
|
134
|
+
payload["idempotency-key"],
|
|
135
|
+
{ explode: false, charEncoding: "none" },
|
|
136
|
+
),
|
|
137
|
+
}));
|
|
138
|
+
|
|
139
|
+
const secConfig = await extractSecurity(client._options.secretKey);
|
|
140
|
+
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
141
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
142
|
+
|
|
143
|
+
const context = {
|
|
144
|
+
options: client._options,
|
|
145
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
146
|
+
operationID: "IntegrationsController_createIntegrationMobileLink",
|
|
147
|
+
oAuth2Scopes: null,
|
|
148
|
+
|
|
149
|
+
resolvedSecurity: requestSecurity,
|
|
150
|
+
|
|
151
|
+
securitySource: client._options.secretKey,
|
|
152
|
+
retryConfig: options?.retries
|
|
153
|
+
|| client._options.retryConfig
|
|
154
|
+
|| {
|
|
155
|
+
strategy: "backoff",
|
|
156
|
+
backoff: {
|
|
157
|
+
initialInterval: 1000,
|
|
158
|
+
maxInterval: 30000,
|
|
159
|
+
exponent: 1.5,
|
|
160
|
+
maxElapsedTime: 3600000,
|
|
161
|
+
},
|
|
162
|
+
retryConnectionErrors: true,
|
|
163
|
+
}
|
|
164
|
+
|| { strategy: "none" },
|
|
165
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"],
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
const requestRes = client._createRequest(context, {
|
|
169
|
+
security: requestSecurity,
|
|
170
|
+
method: "POST",
|
|
171
|
+
baseURL: options?.serverURL,
|
|
172
|
+
path: path,
|
|
173
|
+
headers: headers,
|
|
174
|
+
body: body,
|
|
175
|
+
userAgent: client._options.userAgent,
|
|
176
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
177
|
+
}, options);
|
|
178
|
+
if (!requestRes.ok) {
|
|
179
|
+
return [requestRes, { status: "invalid" }];
|
|
180
|
+
}
|
|
181
|
+
const req = requestRes.value;
|
|
182
|
+
|
|
183
|
+
const doResult = await client._do(req, {
|
|
184
|
+
context,
|
|
185
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
186
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
187
|
+
retryConfig: context.retryConfig,
|
|
188
|
+
retryCodes: context.retryCodes,
|
|
189
|
+
});
|
|
190
|
+
if (!doResult.ok) {
|
|
191
|
+
return [doResult, { status: "request-error", request: req }];
|
|
192
|
+
}
|
|
193
|
+
const response = doResult.value;
|
|
194
|
+
|
|
195
|
+
const responseFields = {
|
|
196
|
+
HttpMeta: { Response: response, Request: req },
|
|
197
|
+
};
|
|
198
|
+
|
|
199
|
+
const [result] = await M.match<
|
|
200
|
+
operations.IntegrationsControllerCreateIntegrationMobileLinkResponse,
|
|
201
|
+
| errors.ErrorDto
|
|
202
|
+
| errors.ValidationErrorDto
|
|
203
|
+
| NovuError
|
|
204
|
+
| ResponseValidationError
|
|
205
|
+
| ConnectionError
|
|
206
|
+
| RequestAbortedError
|
|
207
|
+
| RequestTimeoutError
|
|
208
|
+
| InvalidRequestError
|
|
209
|
+
| UnexpectedClientError
|
|
210
|
+
| SDKValidationError
|
|
211
|
+
>(
|
|
212
|
+
M.json(
|
|
213
|
+
200,
|
|
214
|
+
operations
|
|
215
|
+
.IntegrationsControllerCreateIntegrationMobileLinkResponse$inboundSchema,
|
|
216
|
+
{ hdrs: true, key: "Result" },
|
|
217
|
+
),
|
|
218
|
+
M.jsonErr(414, errors.ErrorDto$inboundSchema),
|
|
219
|
+
M.jsonErr(
|
|
220
|
+
[400, 401, 403, 404, 405, 409, 413, 415],
|
|
221
|
+
errors.ErrorDto$inboundSchema,
|
|
222
|
+
{ hdrs: true },
|
|
223
|
+
),
|
|
224
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
225
|
+
M.fail(429),
|
|
226
|
+
M.jsonErr(500, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
227
|
+
M.fail(503),
|
|
228
|
+
M.fail("4XX"),
|
|
229
|
+
M.fail("5XX"),
|
|
230
|
+
)(response, req, { extraFields: responseFields });
|
|
231
|
+
if (!result.ok) {
|
|
232
|
+
return [result, { status: "complete", request: req, response }];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
return [result, { status: "complete", request: req, response }];
|
|
236
|
+
}
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Delete an integration by its unique key identifier **integrationId**.
|
|
34
|
-
* This action is irreversible.
|
|
34
|
+
* This action is irreversible. Only integration metadata is returned, credentials field is returned as empty object.
|
|
35
35
|
*/
|
|
36
36
|
export function integrationsDelete(
|
|
37
37
|
client: NovuCore,
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
33
|
* Auto-configure an integration by its unique key identifier **integrationId** for inbound webhook support.
|
|
34
|
-
* This will automatically generate required webhook signing keys and configure webhook endpoints.
|
|
34
|
+
* This will automatically generate required webhook signing keys and configure webhook endpoints. Only integration metadata is returned, credentials field is returned as an empty object.
|
|
35
35
|
*/
|
|
36
36
|
export function integrationsIntegrationsControllerAutoConfigureIntegration(
|
|
37
37
|
client: NovuCore,
|