@trycourier/courier 7.10.0 → 7.10.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/CHANGELOG.md +14 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/notifications/index.d.mts +1 -1
- package/resources/notifications/index.d.mts.map +1 -1
- package/resources/notifications/index.d.ts +1 -1
- package/resources/notifications/index.d.ts.map +1 -1
- package/resources/notifications/index.js.map +1 -1
- package/resources/notifications/index.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +5 -23
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +5 -23
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js +2 -2
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs +2 -2
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/providers/providers.d.mts +7 -4
- package/resources/providers/providers.d.mts.map +1 -1
- package/resources/providers/providers.d.ts +7 -4
- package/resources/providers/providers.d.ts.map +1 -1
- package/resources/providers/providers.js +6 -4
- package/resources/providers/providers.js.map +1 -1
- package/resources/providers/providers.mjs +6 -4
- package/resources/providers/providers.mjs.map +1 -1
- package/resources/routing-strategies.d.mts +5 -14
- package/resources/routing-strategies.d.mts.map +1 -1
- package/resources/routing-strategies.d.ts +5 -14
- package/resources/routing-strategies.d.ts.map +1 -1
- package/resources/routing-strategies.js +2 -2
- package/resources/routing-strategies.mjs +2 -2
- package/src/client.ts +0 -4
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/index.ts +0 -2
- package/src/resources/notifications/index.ts +0 -1
- package/src/resources/notifications/notifications.ts +4 -26
- package/src/resources/providers/providers.ts +8 -5
- package/src/resources/routing-strategies.ts +4 -15
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing-strategies.d.mts","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"routing-strategies.d.mts","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAItF;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACx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AEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -10,7 +10,7 @@ export declare class RoutingStrategies extends APIResource {
|
|
|
10
10
|
*
|
|
11
11
|
* @example
|
|
12
12
|
* ```ts
|
|
13
|
-
* const
|
|
13
|
+
* const routingStrategyGetResponse =
|
|
14
14
|
* await client.routingStrategies.create({
|
|
15
15
|
* name: 'Email via SendGrid',
|
|
16
16
|
* routing: { method: 'single', channels: ['email'] },
|
|
@@ -22,7 +22,7 @@ export declare class RoutingStrategies extends APIResource {
|
|
|
22
22
|
* });
|
|
23
23
|
* ```
|
|
24
24
|
*/
|
|
25
|
-
create(body: RoutingStrategyCreateParams, options?: RequestOptions): APIPromise<
|
|
25
|
+
create(body: RoutingStrategyCreateParams, options?: RequestOptions): APIPromise<RoutingStrategyGetResponse>;
|
|
26
26
|
/**
|
|
27
27
|
* Retrieve a routing strategy by ID. Returns the full entity including routing
|
|
28
28
|
* content and metadata.
|
|
@@ -73,7 +73,7 @@ export declare class RoutingStrategies extends APIResource {
|
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* ```ts
|
|
76
|
-
* const
|
|
76
|
+
* const routingStrategyGetResponse =
|
|
77
77
|
* await client.routingStrategies.replace('id', {
|
|
78
78
|
* name: 'Email via SendGrid v2',
|
|
79
79
|
* routing: { method: 'single', channels: ['email'] },
|
|
@@ -84,7 +84,7 @@ export declare class RoutingStrategies extends APIResource {
|
|
|
84
84
|
* });
|
|
85
85
|
* ```
|
|
86
86
|
*/
|
|
87
|
-
replace(id: string, body: RoutingStrategyReplaceParams, options?: RequestOptions): APIPromise<
|
|
87
|
+
replace(id: string, body: RoutingStrategyReplaceParams, options?: RequestOptions): APIPromise<RoutingStrategyGetResponse>;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Paginated list of notification templates associated with a routing strategy.
|
|
@@ -178,15 +178,6 @@ export interface RoutingStrategyListResponse {
|
|
|
178
178
|
paging: Shared.Paging;
|
|
179
179
|
results: Array<RoutingStrategySummary>;
|
|
180
180
|
}
|
|
181
|
-
/**
|
|
182
|
-
* Response returned by create and replace operations.
|
|
183
|
-
*/
|
|
184
|
-
export interface RoutingStrategyMutationResponse {
|
|
185
|
-
/**
|
|
186
|
-
* The routing strategy ID (rs\_ prefix).
|
|
187
|
-
*/
|
|
188
|
-
id: string;
|
|
189
|
-
}
|
|
190
181
|
/**
|
|
191
182
|
* Request body for replacing a routing strategy. Full document replacement;
|
|
192
183
|
* missing optional fields are cleared.
|
|
@@ -328,6 +319,6 @@ export interface RoutingStrategyReplaceParams {
|
|
|
328
319
|
tags?: Array<string> | null;
|
|
329
320
|
}
|
|
330
321
|
export declare namespace RoutingStrategies {
|
|
331
|
-
export { type AssociatedNotificationListResponse as AssociatedNotificationListResponse, type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest, type RoutingStrategyGetResponse as RoutingStrategyGetResponse, type RoutingStrategyListResponse as RoutingStrategyListResponse, type
|
|
322
|
+
export { type AssociatedNotificationListResponse as AssociatedNotificationListResponse, type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest, type RoutingStrategyGetResponse as RoutingStrategyGetResponse, type RoutingStrategyListResponse as RoutingStrategyListResponse, type RoutingStrategyReplaceRequest as RoutingStrategyReplaceRequest, type RoutingStrategySummary as RoutingStrategySummary, type RoutingStrategyCreateParams as RoutingStrategyCreateParams, type RoutingStrategyListParams as RoutingStrategyListParams, type RoutingStrategyListNotificationsParams as RoutingStrategyListNotificationsParams, type RoutingStrategyReplaceParams as RoutingStrategyReplaceParams, };
|
|
332
323
|
}
|
|
333
324
|
//# sourceMappingURL=routing-strategies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing-strategies.d.ts","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"routing-strategies.d.ts","sourceRoot":"","sources":["../src/resources/routing-strategies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,iBAAkB,SAAQ,WAAW;IAChD;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,0BAA0B,CAAC;IAIzC;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,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AAC,cAAc,CAAC;IAE/B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,eAAe,GAAG,IAAI,CAAC;IAEzC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAE3C;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,iBAAiB,CAAC;IACzC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,sCAAsC,IAAI,sCAAsC,EACrF,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;CACH"}
|
|
@@ -12,7 +12,7 @@ class RoutingStrategies extends resource_1.APIResource {
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* const
|
|
15
|
+
* const routingStrategyGetResponse =
|
|
16
16
|
* await client.routingStrategies.create({
|
|
17
17
|
* name: 'Email via SendGrid',
|
|
18
18
|
* routing: { method: 'single', channels: ['email'] },
|
|
@@ -88,7 +88,7 @@ class RoutingStrategies extends resource_1.APIResource {
|
|
|
88
88
|
*
|
|
89
89
|
* @example
|
|
90
90
|
* ```ts
|
|
91
|
-
* const
|
|
91
|
+
* const routingStrategyGetResponse =
|
|
92
92
|
* await client.routingStrategies.replace('id', {
|
|
93
93
|
* name: 'Email via SendGrid v2',
|
|
94
94
|
* routing: { method: 'single', channels: ['email'] },
|
|
@@ -9,7 +9,7 @@ export class RoutingStrategies extends APIResource {
|
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```ts
|
|
12
|
-
* const
|
|
12
|
+
* const routingStrategyGetResponse =
|
|
13
13
|
* await client.routingStrategies.create({
|
|
14
14
|
* name: 'Email via SendGrid',
|
|
15
15
|
* routing: { method: 'single', channels: ['email'] },
|
|
@@ -85,7 +85,7 @@ export class RoutingStrategies extends APIResource {
|
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* ```ts
|
|
88
|
-
* const
|
|
88
|
+
* const routingStrategyGetResponse =
|
|
89
89
|
* await client.routingStrategies.replace('id', {
|
|
90
90
|
* name: 'Email via SendGrid v2',
|
|
91
91
|
* routing: { method: 'single', channels: ['email'] },
|
package/src/client.ts
CHANGED
|
@@ -96,7 +96,6 @@ import {
|
|
|
96
96
|
RoutingStrategyListNotificationsParams,
|
|
97
97
|
RoutingStrategyListParams,
|
|
98
98
|
RoutingStrategyListResponse,
|
|
99
|
-
RoutingStrategyMutationResponse,
|
|
100
99
|
RoutingStrategyReplaceParams,
|
|
101
100
|
RoutingStrategyReplaceRequest,
|
|
102
101
|
RoutingStrategySummary,
|
|
@@ -148,7 +147,6 @@ import {
|
|
|
148
147
|
NotificationRetrieveParams,
|
|
149
148
|
NotificationTemplateCreateRequest,
|
|
150
149
|
NotificationTemplateGetResponse,
|
|
151
|
-
NotificationTemplateMutationResponse,
|
|
152
150
|
NotificationTemplatePayload,
|
|
153
151
|
NotificationTemplatePublishRequest,
|
|
154
152
|
NotificationTemplateState,
|
|
@@ -1071,7 +1069,6 @@ export declare namespace Courier {
|
|
|
1071
1069
|
type NotificationLocalePutRequest as NotificationLocalePutRequest,
|
|
1072
1070
|
type NotificationTemplateCreateRequest as NotificationTemplateCreateRequest,
|
|
1073
1071
|
type NotificationTemplateGetResponse as NotificationTemplateGetResponse,
|
|
1074
|
-
type NotificationTemplateMutationResponse as NotificationTemplateMutationResponse,
|
|
1075
1072
|
type NotificationTemplatePayload as NotificationTemplatePayload,
|
|
1076
1073
|
type NotificationTemplatePublishRequest as NotificationTemplatePublishRequest,
|
|
1077
1074
|
type NotificationTemplateState as NotificationTemplateState,
|
|
@@ -1099,7 +1096,6 @@ export declare namespace Courier {
|
|
|
1099
1096
|
type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest,
|
|
1100
1097
|
type RoutingStrategyGetResponse as RoutingStrategyGetResponse,
|
|
1101
1098
|
type RoutingStrategyListResponse as RoutingStrategyListResponse,
|
|
1102
|
-
type RoutingStrategyMutationResponse as RoutingStrategyMutationResponse,
|
|
1103
1099
|
type RoutingStrategyReplaceRequest as RoutingStrategyReplaceRequest,
|
|
1104
1100
|
type RoutingStrategySummary as RoutingStrategySummary,
|
|
1105
1101
|
type RoutingStrategyCreateParams as RoutingStrategyCreateParams,
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export const readEnv = (env: string): string | undefined => {
|
|
11
11
|
if (typeof (globalThis as any).process !== 'undefined') {
|
|
12
|
-
return (globalThis as any).process.env?.[env]?.trim()
|
|
12
|
+
return (globalThis as any).process.env?.[env]?.trim() || undefined;
|
|
13
13
|
}
|
|
14
14
|
if (typeof (globalThis as any).Deno !== 'undefined') {
|
|
15
|
-
return (globalThis as any).Deno.env?.get?.(env)?.trim();
|
|
15
|
+
return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
|
|
16
16
|
}
|
|
17
17
|
return undefined;
|
|
18
18
|
};
|
package/src/resources/index.ts
CHANGED
|
@@ -99,7 +99,6 @@ export {
|
|
|
99
99
|
type NotificationLocalePutRequest,
|
|
100
100
|
type NotificationTemplateCreateRequest,
|
|
101
101
|
type NotificationTemplateGetResponse,
|
|
102
|
-
type NotificationTemplateMutationResponse,
|
|
103
102
|
type NotificationTemplatePayload,
|
|
104
103
|
type NotificationTemplatePublishRequest,
|
|
105
104
|
type NotificationTemplateState,
|
|
@@ -146,7 +145,6 @@ export {
|
|
|
146
145
|
type RoutingStrategyCreateRequest,
|
|
147
146
|
type RoutingStrategyGetResponse,
|
|
148
147
|
type RoutingStrategyListResponse,
|
|
149
|
-
type RoutingStrategyMutationResponse,
|
|
150
148
|
type RoutingStrategyReplaceRequest,
|
|
151
149
|
type RoutingStrategySummary,
|
|
152
150
|
type RoutingStrategyCreateParams,
|
|
@@ -21,7 +21,6 @@ export {
|
|
|
21
21
|
type NotificationLocalePutRequest,
|
|
22
22
|
type NotificationTemplateCreateRequest,
|
|
23
23
|
type NotificationTemplateGetResponse,
|
|
24
|
-
type NotificationTemplateMutationResponse,
|
|
25
24
|
type NotificationTemplatePayload,
|
|
26
25
|
type NotificationTemplatePublishRequest,
|
|
27
26
|
type NotificationTemplateState,
|
|
@@ -26,7 +26,7 @@ export class Notifications extends APIResource {
|
|
|
26
26
|
*
|
|
27
27
|
* @example
|
|
28
28
|
* ```ts
|
|
29
|
-
* const
|
|
29
|
+
* const notificationTemplateGetResponse =
|
|
30
30
|
* await client.notifications.create({
|
|
31
31
|
* notification: {
|
|
32
32
|
* name: 'Welcome Email',
|
|
@@ -46,7 +46,7 @@ export class Notifications extends APIResource {
|
|
|
46
46
|
create(
|
|
47
47
|
body: NotificationCreateParams,
|
|
48
48
|
options?: RequestOptions,
|
|
49
|
-
): APIPromise<
|
|
49
|
+
): APIPromise<NotificationTemplateGetResponse> {
|
|
50
50
|
return this._client.post('/notifications', { body, ...options });
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -217,7 +217,7 @@ export class Notifications extends APIResource {
|
|
|
217
217
|
*
|
|
218
218
|
* @example
|
|
219
219
|
* ```ts
|
|
220
|
-
* const
|
|
220
|
+
* const notificationTemplateGetResponse =
|
|
221
221
|
* await client.notifications.replace('id', {
|
|
222
222
|
* notification: {
|
|
223
223
|
* name: 'Updated Name',
|
|
@@ -238,7 +238,7 @@ export class Notifications extends APIResource {
|
|
|
238
238
|
id: string,
|
|
239
239
|
body: NotificationReplaceParams,
|
|
240
240
|
options?: RequestOptions,
|
|
241
|
-
): APIPromise<
|
|
241
|
+
): APIPromise<NotificationTemplateGetResponse> {
|
|
242
242
|
return this._client.put(path`/notifications/${id}`, { body, ...options });
|
|
243
243
|
}
|
|
244
244
|
|
|
@@ -575,27 +575,6 @@ export namespace NotificationTemplateGetResponse {
|
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
|
|
578
|
-
/**
|
|
579
|
-
* Response returned by POST and PUT operations.
|
|
580
|
-
*/
|
|
581
|
-
export interface NotificationTemplateMutationResponse {
|
|
582
|
-
notification: NotificationTemplateMutationResponse.Notification;
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* The template state after the operation. Always uppercase.
|
|
586
|
-
*/
|
|
587
|
-
state: 'DRAFT' | 'PUBLISHED';
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
export namespace NotificationTemplateMutationResponse {
|
|
591
|
-
export interface Notification {
|
|
592
|
-
/**
|
|
593
|
-
* The ID of the created or updated template.
|
|
594
|
-
*/
|
|
595
|
-
id: string;
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
|
|
599
578
|
/**
|
|
600
579
|
* Full document shape used in POST and PUT request bodies, and returned inside the
|
|
601
580
|
* GET response envelope.
|
|
@@ -1002,7 +981,6 @@ export declare namespace Notifications {
|
|
|
1002
981
|
type NotificationLocalePutRequest as NotificationLocalePutRequest,
|
|
1003
982
|
type NotificationTemplateCreateRequest as NotificationTemplateCreateRequest,
|
|
1004
983
|
type NotificationTemplateGetResponse as NotificationTemplateGetResponse,
|
|
1005
|
-
type NotificationTemplateMutationResponse as NotificationTemplateMutationResponse,
|
|
1006
984
|
type NotificationTemplatePayload as NotificationTemplatePayload,
|
|
1007
985
|
type NotificationTemplatePublishRequest as NotificationTemplatePublishRequest,
|
|
1008
986
|
type NotificationTemplateState as NotificationTemplateState,
|
|
@@ -28,12 +28,14 @@ export class Providers extends APIResource {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
31
|
+
* Replace an existing provider configuration. The `provider` key is required and
|
|
32
|
+
* determines which provider-specific settings schema is applied. All other fields
|
|
33
|
+
* are optional — omitted fields are cleared from the stored configuration (this is
|
|
34
|
+
* a full replacement, not a partial merge). Changing the provider type for an
|
|
35
|
+
* existing configuration is not supported.
|
|
34
36
|
*/
|
|
35
37
|
update(id: string, body: ProviderUpdateParams, options?: RequestOptions): APIPromise<Provider> {
|
|
36
|
-
return this._client.
|
|
38
|
+
return this._client.put(path`/providers/${id}`, { body, ...options });
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
/**
|
|
@@ -191,7 +193,8 @@ export interface ProviderCreateParams {
|
|
|
191
193
|
|
|
192
194
|
export interface ProviderUpdateParams {
|
|
193
195
|
/**
|
|
194
|
-
* The provider key identifying the type.
|
|
196
|
+
* The provider key identifying the type. Required on every request because it
|
|
197
|
+
* selects the provider-specific settings schema for validation.
|
|
195
198
|
*/
|
|
196
199
|
provider: string;
|
|
197
200
|
|
|
@@ -15,7 +15,7 @@ export class RoutingStrategies extends APIResource {
|
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```ts
|
|
18
|
-
* const
|
|
18
|
+
* const routingStrategyGetResponse =
|
|
19
19
|
* await client.routingStrategies.create({
|
|
20
20
|
* name: 'Email via SendGrid',
|
|
21
21
|
* routing: { method: 'single', channels: ['email'] },
|
|
@@ -30,7 +30,7 @@ export class RoutingStrategies extends APIResource {
|
|
|
30
30
|
create(
|
|
31
31
|
body: RoutingStrategyCreateParams,
|
|
32
32
|
options?: RequestOptions,
|
|
33
|
-
): APIPromise<
|
|
33
|
+
): APIPromise<RoutingStrategyGetResponse> {
|
|
34
34
|
return this._client.post('/routing-strategies', { body, ...options });
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -106,7 +106,7 @@ export class RoutingStrategies extends APIResource {
|
|
|
106
106
|
*
|
|
107
107
|
* @example
|
|
108
108
|
* ```ts
|
|
109
|
-
* const
|
|
109
|
+
* const routingStrategyGetResponse =
|
|
110
110
|
* await client.routingStrategies.replace('id', {
|
|
111
111
|
* name: 'Email via SendGrid v2',
|
|
112
112
|
* routing: { method: 'single', channels: ['email'] },
|
|
@@ -121,7 +121,7 @@ export class RoutingStrategies extends APIResource {
|
|
|
121
121
|
id: string,
|
|
122
122
|
body: RoutingStrategyReplaceParams,
|
|
123
123
|
options?: RequestOptions,
|
|
124
|
-
): APIPromise<
|
|
124
|
+
): APIPromise<RoutingStrategyGetResponse> {
|
|
125
125
|
return this._client.put(path`/routing-strategies/${id}`, { body, ...options });
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -239,16 +239,6 @@ export interface RoutingStrategyListResponse {
|
|
|
239
239
|
results: Array<RoutingStrategySummary>;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
/**
|
|
243
|
-
* Response returned by create and replace operations.
|
|
244
|
-
*/
|
|
245
|
-
export interface RoutingStrategyMutationResponse {
|
|
246
|
-
/**
|
|
247
|
-
* The routing strategy ID (rs\_ prefix).
|
|
248
|
-
*/
|
|
249
|
-
id: string;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
242
|
/**
|
|
253
243
|
* Request body for replacing a routing strategy. Full document replacement;
|
|
254
244
|
* missing optional fields are cleared.
|
|
@@ -425,7 +415,6 @@ export declare namespace RoutingStrategies {
|
|
|
425
415
|
type RoutingStrategyCreateRequest as RoutingStrategyCreateRequest,
|
|
426
416
|
type RoutingStrategyGetResponse as RoutingStrategyGetResponse,
|
|
427
417
|
type RoutingStrategyListResponse as RoutingStrategyListResponse,
|
|
428
|
-
type RoutingStrategyMutationResponse as RoutingStrategyMutationResponse,
|
|
429
418
|
type RoutingStrategyReplaceRequest as RoutingStrategyReplaceRequest,
|
|
430
419
|
type RoutingStrategySummary as RoutingStrategySummary,
|
|
431
420
|
type RoutingStrategyCreateParams as RoutingStrategyCreateParams,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.10.
|
|
1
|
+
export const VERSION = '7.10.1'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.10.
|
|
1
|
+
export declare const VERSION = "7.10.1";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.10.
|
|
1
|
+
export declare const VERSION = "7.10.1";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '7.10.
|
|
1
|
+
export const VERSION = '7.10.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|