@novu/api 0.0.1-alpha.179 → 0.0.1-alpha.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -3
- package/docs/sdks/notifications/README.md +4 -4
- package/docs/sdks/novu/README.md +2 -2
- package/funcs/adminTestingControllerIdempotency.d.ts.map +1 -1
- package/funcs/adminTestingControllerIdempotency.js +3 -2
- package/funcs/adminTestingControllerIdempotency.js.map +1 -1
- package/funcs/adminTestingControllerIdempotencyGet.d.ts.map +1 -1
- package/funcs/adminTestingControllerIdempotencyGet.js +3 -2
- package/funcs/adminTestingControllerIdempotencyGet.js.map +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +3 -2
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +3 -2
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +3 -2
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +3 -2
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +3 -2
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +3 -2
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +3 -2
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +3 -2
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +3 -2
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +3 -2
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +3 -2
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +3 -2
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +3 -2
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +3 -2
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +3 -2
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +3 -2
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +3 -2
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +3 -2
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +3 -2
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +3 -2
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +3 -2
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +3 -2
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +3 -2
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +3 -2
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +3 -2
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +3 -2
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +3 -2
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +3 -2
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +3 -2
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +3 -2
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +3 -2
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +3 -2
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +3 -2
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +3 -2
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +3 -2
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +3 -2
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +3 -2
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +3 -2
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +3 -2
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js.map +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +3 -2
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +3 -2
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +3 -2
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +3 -2
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +3 -2
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +3 -2
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +3 -2
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +3 -2
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +3 -2
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +3 -2
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +3 -2
- package/funcs/triggerBulk.js.map +1 -1
- package/hooks/novu-custom-hook.js +1 -1
- package/hooks/novu-custom-hook.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +74 -48
- package/lib/encodings.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +11 -1
- package/lib/primitives.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +4 -1
- package/lib/sdks.js.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +5 -0
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +2 -0
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +5 -0
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +2 -0
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/adminTestingControllerIdempotency.ts +3 -2
- package/src/funcs/adminTestingControllerIdempotencyGet.ts +3 -2
- package/src/funcs/cancel.ts +3 -2
- package/src/funcs/integrationsCreate.ts +3 -2
- package/src/funcs/integrationsDelete.ts +3 -2
- package/src/funcs/integrationsList.ts +3 -2
- package/src/funcs/integrationsListActive.ts +3 -2
- package/src/funcs/integrationsSetAsPrimary.ts +3 -2
- package/src/funcs/integrationsUpdate.ts +3 -2
- package/src/funcs/integrationsWebhooksRetrieve.ts +3 -2
- package/src/funcs/messagesDelete.ts +3 -2
- package/src/funcs/messagesDeleteByTransactionId.ts +3 -2
- package/src/funcs/messagesRetrieve.ts +3 -2
- package/src/funcs/notificationsList.ts +3 -2
- package/src/funcs/notificationsRetrieve.ts +3 -2
- package/src/funcs/notificationsStatsGraph.ts +3 -2
- package/src/funcs/notificationsStatsRetrieve.ts +3 -2
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +3 -2
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +3 -2
- package/src/funcs/subscribersCreate.ts +3 -2
- package/src/funcs/subscribersCreateBulk.ts +3 -2
- package/src/funcs/subscribersCredentialsAppend.ts +3 -2
- package/src/funcs/subscribersCredentialsDelete.ts +3 -2
- package/src/funcs/subscribersCredentialsUpdate.ts +3 -2
- package/src/funcs/subscribersDelete.ts +3 -2
- package/src/funcs/subscribersList.ts +3 -2
- package/src/funcs/subscribersMessagesMarkAll.ts +3 -2
- package/src/funcs/subscribersMessagesMarkAllAs.ts +3 -2
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +3 -2
- package/src/funcs/subscribersNotificationsFeed.ts +3 -2
- package/src/funcs/subscribersNotificationsUnseenCount.ts +3 -2
- package/src/funcs/subscribersPreferencesList.ts +3 -2
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +3 -2
- package/src/funcs/subscribersPreferencesUpdate.ts +3 -2
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +3 -2
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +3 -2
- package/src/funcs/subscribersRetrieve.ts +3 -2
- package/src/funcs/subscribersUpdate.ts +3 -2
- package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +3 -2
- package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +3 -2
- package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +3 -2
- package/src/funcs/topicsCreate.ts +3 -2
- package/src/funcs/topicsDelete.ts +3 -2
- package/src/funcs/topicsList.ts +3 -2
- package/src/funcs/topicsRename.ts +3 -2
- package/src/funcs/topicsRetrieve.ts +3 -2
- package/src/funcs/topicsSubscribersAssign.ts +3 -2
- package/src/funcs/topicsSubscribersRemove.ts +3 -2
- package/src/funcs/topicsSubscribersRetrieve.ts +3 -2
- package/src/funcs/trigger.ts +3 -2
- package/src/funcs/triggerBroadcast.ts +3 -2
- package/src/funcs/triggerBulk.ts +3 -2
- package/src/hooks/novu-custom-hook.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +95 -61
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +4 -1
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +7 -0
- package/src/models/components/activitynotificationjobresponsedto.ts +7 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -74,14 +75,14 @@ export async function subscribersDelete(
|
|
|
74
75
|
|
|
75
76
|
const path = pathToFunc("/v1/subscribers/{subscriberId}")(pathParams);
|
|
76
77
|
|
|
77
|
-
const headers = new Headers({
|
|
78
|
+
const headers = new Headers(compactMap({
|
|
78
79
|
Accept: "application/json",
|
|
79
80
|
"Idempotency-Key": encodeSimple(
|
|
80
81
|
"Idempotency-Key",
|
|
81
82
|
payload["Idempotency-Key"],
|
|
82
83
|
{ explode: false, charEncoding: "none" },
|
|
83
84
|
),
|
|
84
|
-
});
|
|
85
|
+
}));
|
|
85
86
|
|
|
86
87
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
87
88
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -6,6 +6,7 @@ import { NovuCore } from "../core.js";
|
|
|
6
6
|
import { dlv } from "../lib/dlv.js";
|
|
7
7
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
10
|
import { safeParse } from "../lib/schemas.js";
|
|
10
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -84,14 +85,14 @@ export async function subscribersList(
|
|
|
84
85
|
"page": payload.page,
|
|
85
86
|
});
|
|
86
87
|
|
|
87
|
-
const headers = new Headers({
|
|
88
|
+
const headers = new Headers(compactMap({
|
|
88
89
|
Accept: "application/json",
|
|
89
90
|
"Idempotency-Key": encodeSimple(
|
|
90
91
|
"Idempotency-Key",
|
|
91
92
|
payload["Idempotency-Key"],
|
|
92
93
|
{ explode: false, charEncoding: "none" },
|
|
93
94
|
),
|
|
94
|
-
});
|
|
95
|
+
}));
|
|
95
96
|
|
|
96
97
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
97
98
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -78,7 +79,7 @@ export async function subscribersMessagesMarkAll(
|
|
|
78
79
|
pathParams,
|
|
79
80
|
);
|
|
80
81
|
|
|
81
|
-
const headers = new Headers({
|
|
82
|
+
const headers = new Headers(compactMap({
|
|
82
83
|
"Content-Type": "application/json",
|
|
83
84
|
Accept: "application/json",
|
|
84
85
|
"Idempotency-Key": encodeSimple(
|
|
@@ -86,7 +87,7 @@ export async function subscribersMessagesMarkAll(
|
|
|
86
87
|
payload["Idempotency-Key"],
|
|
87
88
|
{ explode: false, charEncoding: "none" },
|
|
88
89
|
),
|
|
89
|
-
});
|
|
90
|
+
}));
|
|
90
91
|
|
|
91
92
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
92
93
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -78,7 +79,7 @@ export async function subscribersMessagesMarkAllAs(
|
|
|
78
79
|
pathParams,
|
|
79
80
|
);
|
|
80
81
|
|
|
81
|
-
const headers = new Headers({
|
|
82
|
+
const headers = new Headers(compactMap({
|
|
82
83
|
"Content-Type": "application/json",
|
|
83
84
|
Accept: "application/json",
|
|
84
85
|
"Idempotency-Key": encodeSimple(
|
|
@@ -86,7 +87,7 @@ export async function subscribersMessagesMarkAllAs(
|
|
|
86
87
|
payload["Idempotency-Key"],
|
|
87
88
|
{ explode: false, charEncoding: "none" },
|
|
88
89
|
),
|
|
89
|
-
});
|
|
90
|
+
}));
|
|
90
91
|
|
|
91
92
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
92
93
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -77,7 +78,7 @@ export async function subscribersMessagesUpdateAsSeen(
|
|
|
77
78
|
"/v1/subscribers/{subscriberId}/messages/{messageId}/actions/{type}",
|
|
78
79
|
)(pathParams);
|
|
79
80
|
|
|
80
|
-
const headers = new Headers({
|
|
81
|
+
const headers = new Headers(compactMap({
|
|
81
82
|
"Content-Type": "application/json",
|
|
82
83
|
Accept: "application/json",
|
|
83
84
|
"Idempotency-Key": encodeSimple(
|
|
@@ -85,7 +86,7 @@ export async function subscribersMessagesUpdateAsSeen(
|
|
|
85
86
|
payload["Idempotency-Key"],
|
|
86
87
|
{ explode: false, charEncoding: "none" },
|
|
87
88
|
),
|
|
88
|
-
});
|
|
89
|
+
}));
|
|
89
90
|
|
|
90
91
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
91
92
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -75,14 +76,14 @@ export async function subscribersNotificationsFeed(
|
|
|
75
76
|
"seen": payload.seen,
|
|
76
77
|
});
|
|
77
78
|
|
|
78
|
-
const headers = new Headers({
|
|
79
|
+
const headers = new Headers(compactMap({
|
|
79
80
|
Accept: "application/json",
|
|
80
81
|
"Idempotency-Key": encodeSimple(
|
|
81
82
|
"Idempotency-Key",
|
|
82
83
|
payload["Idempotency-Key"],
|
|
83
84
|
{ explode: false, charEncoding: "none" },
|
|
84
85
|
),
|
|
85
|
-
});
|
|
86
|
+
}));
|
|
86
87
|
|
|
87
88
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
88
89
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -72,14 +73,14 @@ export async function subscribersNotificationsUnseenCount(
|
|
|
72
73
|
"seen": payload.seen,
|
|
73
74
|
});
|
|
74
75
|
|
|
75
|
-
const headers = new Headers({
|
|
76
|
+
const headers = new Headers(compactMap({
|
|
76
77
|
Accept: "application/json",
|
|
77
78
|
"Idempotency-Key": encodeSimple(
|
|
78
79
|
"Idempotency-Key",
|
|
79
80
|
payload["Idempotency-Key"],
|
|
80
81
|
{ explode: false, charEncoding: "none" },
|
|
81
82
|
),
|
|
82
|
-
});
|
|
83
|
+
}));
|
|
83
84
|
|
|
84
85
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
85
86
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -81,14 +82,14 @@ export async function subscribersPreferencesList(
|
|
|
81
82
|
"includeInactiveChannels": payload.includeInactiveChannels,
|
|
82
83
|
});
|
|
83
84
|
|
|
84
|
-
const headers = new Headers({
|
|
85
|
+
const headers = new Headers(compactMap({
|
|
85
86
|
Accept: "application/json",
|
|
86
87
|
"Idempotency-Key": encodeSimple(
|
|
87
88
|
"Idempotency-Key",
|
|
88
89
|
payload["Idempotency-Key"],
|
|
89
90
|
{ explode: false, charEncoding: "none" },
|
|
90
91
|
),
|
|
91
|
-
});
|
|
92
|
+
}));
|
|
92
93
|
|
|
93
94
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
94
95
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -77,14 +78,14 @@ export async function subscribersPreferencesRetrieveByLevel(
|
|
|
77
78
|
"includeInactiveChannels": payload.includeInactiveChannels,
|
|
78
79
|
});
|
|
79
80
|
|
|
80
|
-
const headers = new Headers({
|
|
81
|
+
const headers = new Headers(compactMap({
|
|
81
82
|
Accept: "application/json",
|
|
82
83
|
"Idempotency-Key": encodeSimple(
|
|
83
84
|
"Idempotency-Key",
|
|
84
85
|
payload["Idempotency-Key"],
|
|
85
86
|
{ explode: false, charEncoding: "none" },
|
|
86
87
|
),
|
|
87
|
-
});
|
|
88
|
+
}));
|
|
88
89
|
|
|
89
90
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
90
91
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -76,7 +77,7 @@ export async function subscribersPreferencesUpdate(
|
|
|
76
77
|
"/v1/subscribers/{subscriberId}/preferences/{parameter}",
|
|
77
78
|
)(pathParams);
|
|
78
79
|
|
|
79
|
-
const headers = new Headers({
|
|
80
|
+
const headers = new Headers(compactMap({
|
|
80
81
|
"Content-Type": "application/json",
|
|
81
82
|
Accept: "application/json",
|
|
82
83
|
"Idempotency-Key": encodeSimple(
|
|
@@ -84,7 +85,7 @@ export async function subscribersPreferencesUpdate(
|
|
|
84
85
|
payload["Idempotency-Key"],
|
|
85
86
|
{ explode: false, charEncoding: "none" },
|
|
86
87
|
),
|
|
87
|
-
});
|
|
88
|
+
}));
|
|
88
89
|
|
|
89
90
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
90
91
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -84,7 +85,7 @@ export async function subscribersPreferencesUpdateGlobal(
|
|
|
84
85
|
pathParams,
|
|
85
86
|
);
|
|
86
87
|
|
|
87
|
-
const headers = new Headers({
|
|
88
|
+
const headers = new Headers(compactMap({
|
|
88
89
|
"Content-Type": "application/json",
|
|
89
90
|
Accept: "application/json",
|
|
90
91
|
"Idempotency-Key": encodeSimple(
|
|
@@ -92,7 +93,7 @@ export async function subscribersPreferencesUpdateGlobal(
|
|
|
92
93
|
payload["Idempotency-Key"],
|
|
93
94
|
{ explode: false, charEncoding: "none" },
|
|
94
95
|
),
|
|
95
|
-
});
|
|
96
|
+
}));
|
|
96
97
|
|
|
97
98
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
98
99
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -87,7 +88,7 @@ export async function subscribersPropertiesUpdateOnlineFlag(
|
|
|
87
88
|
pathParams,
|
|
88
89
|
);
|
|
89
90
|
|
|
90
|
-
const headers = new Headers({
|
|
91
|
+
const headers = new Headers(compactMap({
|
|
91
92
|
"Content-Type": "application/json",
|
|
92
93
|
Accept: "application/json",
|
|
93
94
|
"Idempotency-Key": encodeSimple(
|
|
@@ -95,7 +96,7 @@ export async function subscribersPropertiesUpdateOnlineFlag(
|
|
|
95
96
|
payload["Idempotency-Key"],
|
|
96
97
|
{ explode: false, charEncoding: "none" },
|
|
97
98
|
),
|
|
98
|
-
});
|
|
99
|
+
}));
|
|
99
100
|
|
|
100
101
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
101
102
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -81,14 +82,14 @@ export async function subscribersRetrieve(
|
|
|
81
82
|
"includeTopics": payload.includeTopics,
|
|
82
83
|
});
|
|
83
84
|
|
|
84
|
-
const headers = new Headers({
|
|
85
|
+
const headers = new Headers(compactMap({
|
|
85
86
|
Accept: "application/json",
|
|
86
87
|
"Idempotency-Key": encodeSimple(
|
|
87
88
|
"Idempotency-Key",
|
|
88
89
|
payload["Idempotency-Key"],
|
|
89
90
|
{ explode: false, charEncoding: "none" },
|
|
90
91
|
),
|
|
91
|
-
});
|
|
92
|
+
}));
|
|
92
93
|
|
|
93
94
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
94
95
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -79,7 +80,7 @@ export async function subscribersUpdate(
|
|
|
79
80
|
|
|
80
81
|
const path = pathToFunc("/v1/subscribers/{subscriberId}")(pathParams);
|
|
81
82
|
|
|
82
|
-
const headers = new Headers({
|
|
83
|
+
const headers = new Headers(compactMap({
|
|
83
84
|
"Content-Type": "application/json",
|
|
84
85
|
Accept: "application/json",
|
|
85
86
|
"Idempotency-Key": encodeSimple(
|
|
@@ -87,7 +88,7 @@ export async function subscribersUpdate(
|
|
|
87
88
|
payload["Idempotency-Key"],
|
|
88
89
|
{ explode: false, charEncoding: "none" },
|
|
89
90
|
),
|
|
90
|
-
});
|
|
91
|
+
}));
|
|
91
92
|
|
|
92
93
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
93
94
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { NovuCore } from "../core.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
9
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
11
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -38,9 +39,9 @@ export async function testApiRateLimitBulkControllerGlobalCategoryNoCostOverride
|
|
|
38
39
|
"/v1/rate-limiting-trigger-bulk/global-category-no-cost-override",
|
|
39
40
|
)();
|
|
40
41
|
|
|
41
|
-
const headers = new Headers({
|
|
42
|
+
const headers = new Headers(compactMap({
|
|
42
43
|
Accept: "application/json",
|
|
43
|
-
});
|
|
44
|
+
}));
|
|
44
45
|
|
|
45
46
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
46
47
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { NovuCore } from "../core.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
9
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
11
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -38,9 +39,9 @@ export async function testApiRateLimitBulkControllerNoCategoryNoCostOverride(
|
|
|
38
39
|
"/v1/rate-limiting-trigger-bulk/no-category-no-cost-override",
|
|
39
40
|
)();
|
|
40
41
|
|
|
41
|
-
const headers = new Headers({
|
|
42
|
+
const headers = new Headers(compactMap({
|
|
42
43
|
Accept: "application/json",
|
|
43
|
-
});
|
|
44
|
+
}));
|
|
44
45
|
|
|
45
46
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
46
47
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { NovuCore } from "../core.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { RequestOptions } from "../lib/sdks.js";
|
|
9
10
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
10
11
|
import { pathToFunc } from "../lib/url.js";
|
|
@@ -38,9 +39,9 @@ export async function testApiRateLimitBulkControllerNoCategorySingleCostOverride
|
|
|
38
39
|
"/v1/rate-limiting-trigger-bulk/no-category-single-cost-override",
|
|
39
40
|
)();
|
|
40
41
|
|
|
41
|
-
const headers = new Headers({
|
|
42
|
+
const headers = new Headers(compactMap({
|
|
42
43
|
Accept: "application/json",
|
|
43
|
-
});
|
|
44
|
+
}));
|
|
44
45
|
|
|
45
46
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
46
47
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -69,7 +70,7 @@ export async function topicsCreate(
|
|
|
69
70
|
|
|
70
71
|
const path = pathToFunc("/v1/topics")();
|
|
71
72
|
|
|
72
|
-
const headers = new Headers({
|
|
73
|
+
const headers = new Headers(compactMap({
|
|
73
74
|
"Content-Type": "application/json",
|
|
74
75
|
Accept: "application/json",
|
|
75
76
|
"Idempotency-Key": encodeSimple(
|
|
@@ -77,7 +78,7 @@ export async function topicsCreate(
|
|
|
77
78
|
payload["Idempotency-Key"],
|
|
78
79
|
{ explode: false, charEncoding: "none" },
|
|
79
80
|
),
|
|
80
|
-
});
|
|
81
|
+
}));
|
|
81
82
|
|
|
82
83
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
83
84
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -73,14 +74,14 @@ export async function topicsDelete(
|
|
|
73
74
|
|
|
74
75
|
const path = pathToFunc("/v1/topics/{topicKey}")(pathParams);
|
|
75
76
|
|
|
76
|
-
const headers = new Headers({
|
|
77
|
+
const headers = new Headers(compactMap({
|
|
77
78
|
Accept: "application/json",
|
|
78
79
|
"Idempotency-Key": encodeSimple(
|
|
79
80
|
"Idempotency-Key",
|
|
80
81
|
payload["Idempotency-Key"],
|
|
81
82
|
{ explode: false, charEncoding: "none" },
|
|
82
83
|
),
|
|
83
|
-
});
|
|
84
|
+
}));
|
|
84
85
|
|
|
85
86
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
86
87
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
package/src/funcs/topicsList.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -66,14 +67,14 @@ export async function topicsList(
|
|
|
66
67
|
"pageSize": payload.pageSize,
|
|
67
68
|
});
|
|
68
69
|
|
|
69
|
-
const headers = new Headers({
|
|
70
|
+
const headers = new Headers(compactMap({
|
|
70
71
|
Accept: "application/json",
|
|
71
72
|
"Idempotency-Key": encodeSimple(
|
|
72
73
|
"Idempotency-Key",
|
|
73
74
|
payload["Idempotency-Key"],
|
|
74
75
|
{ explode: false, charEncoding: "none" },
|
|
75
76
|
),
|
|
76
|
-
});
|
|
77
|
+
}));
|
|
77
78
|
|
|
78
79
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
79
80
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -78,7 +79,7 @@ export async function topicsRename(
|
|
|
78
79
|
|
|
79
80
|
const path = pathToFunc("/v1/topics/{topicKey}")(pathParams);
|
|
80
81
|
|
|
81
|
-
const headers = new Headers({
|
|
82
|
+
const headers = new Headers(compactMap({
|
|
82
83
|
"Content-Type": "application/json",
|
|
83
84
|
Accept: "application/json",
|
|
84
85
|
"Idempotency-Key": encodeSimple(
|
|
@@ -86,7 +87,7 @@ export async function topicsRename(
|
|
|
86
87
|
payload["Idempotency-Key"],
|
|
87
88
|
{ explode: false, charEncoding: "none" },
|
|
88
89
|
),
|
|
89
|
-
});
|
|
90
|
+
}));
|
|
90
91
|
|
|
91
92
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
92
93
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -73,14 +74,14 @@ export async function topicsRetrieve(
|
|
|
73
74
|
|
|
74
75
|
const path = pathToFunc("/v1/topics/{topicKey}")(pathParams);
|
|
75
76
|
|
|
76
|
-
const headers = new Headers({
|
|
77
|
+
const headers = new Headers(compactMap({
|
|
77
78
|
Accept: "application/json",
|
|
78
79
|
"Idempotency-Key": encodeSimple(
|
|
79
80
|
"Idempotency-Key",
|
|
80
81
|
payload["Idempotency-Key"],
|
|
81
82
|
{ explode: false, charEncoding: "none" },
|
|
82
83
|
),
|
|
83
|
-
});
|
|
84
|
+
}));
|
|
84
85
|
|
|
85
86
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
86
87
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -78,7 +79,7 @@ export async function topicsSubscribersAssign(
|
|
|
78
79
|
|
|
79
80
|
const path = pathToFunc("/v1/topics/{topicKey}/subscribers")(pathParams);
|
|
80
81
|
|
|
81
|
-
const headers = new Headers({
|
|
82
|
+
const headers = new Headers(compactMap({
|
|
82
83
|
"Content-Type": "application/json",
|
|
83
84
|
Accept: "application/json",
|
|
84
85
|
"Idempotency-Key": encodeSimple(
|
|
@@ -86,7 +87,7 @@ export async function topicsSubscribersAssign(
|
|
|
86
87
|
payload["Idempotency-Key"],
|
|
87
88
|
{ explode: false, charEncoding: "none" },
|
|
88
89
|
),
|
|
89
|
-
});
|
|
90
|
+
}));
|
|
90
91
|
|
|
91
92
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
92
93
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -82,7 +83,7 @@ export async function topicsSubscribersRemove(
|
|
|
82
83
|
pathParams,
|
|
83
84
|
);
|
|
84
85
|
|
|
85
|
-
const headers = new Headers({
|
|
86
|
+
const headers = new Headers(compactMap({
|
|
86
87
|
"Content-Type": "application/json",
|
|
87
88
|
Accept: "application/json",
|
|
88
89
|
"Idempotency-Key": encodeSimple(
|
|
@@ -90,7 +91,7 @@ export async function topicsSubscribersRemove(
|
|
|
90
91
|
payload["Idempotency-Key"],
|
|
91
92
|
{ explode: false, charEncoding: "none" },
|
|
92
93
|
),
|
|
93
|
-
});
|
|
94
|
+
}));
|
|
94
95
|
|
|
95
96
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
96
97
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -84,14 +85,14 @@ export async function topicsSubscribersRetrieve(
|
|
|
84
85
|
"/v1/topics/{topicKey}/subscribers/{externalSubscriberId}",
|
|
85
86
|
)(pathParams);
|
|
86
87
|
|
|
87
|
-
const headers = new Headers({
|
|
88
|
+
const headers = new Headers(compactMap({
|
|
88
89
|
Accept: "application/json",
|
|
89
90
|
"Idempotency-Key": encodeSimple(
|
|
90
91
|
"Idempotency-Key",
|
|
91
92
|
payload["Idempotency-Key"],
|
|
92
93
|
{ explode: false, charEncoding: "none" },
|
|
93
94
|
),
|
|
94
|
-
});
|
|
95
|
+
}));
|
|
95
96
|
|
|
96
97
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
97
98
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
package/src/funcs/trigger.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { NovuCore } from "../core.js";
|
|
6
6
|
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
8
9
|
import { safeParse } from "../lib/schemas.js";
|
|
9
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
10
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
@@ -72,7 +73,7 @@ export async function trigger(
|
|
|
72
73
|
|
|
73
74
|
const path = pathToFunc("/v1/events/trigger")();
|
|
74
75
|
|
|
75
|
-
const headers = new Headers({
|
|
76
|
+
const headers = new Headers(compactMap({
|
|
76
77
|
"Content-Type": "application/json",
|
|
77
78
|
Accept: "application/json",
|
|
78
79
|
"Idempotency-Key": encodeSimple(
|
|
@@ -80,7 +81,7 @@ export async function trigger(
|
|
|
80
81
|
payload["Idempotency-Key"],
|
|
81
82
|
{ explode: false, charEncoding: "none" },
|
|
82
83
|
),
|
|
83
|
-
});
|
|
84
|
+
}));
|
|
84
85
|
|
|
85
86
|
const secConfig = await extractSecurity(client._options.apiKey);
|
|
86
87
|
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|