@trycourier/courier 7.8.0 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/client.d.mts +16 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -2
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +3 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/notifications/checks.d.mts +35 -0
- package/resources/notifications/checks.d.mts.map +1 -1
- package/resources/notifications/checks.d.ts +35 -0
- package/resources/notifications/checks.d.ts.map +1 -1
- package/resources/notifications/checks.js +35 -0
- package/resources/notifications/checks.js.map +1 -1
- package/resources/notifications/checks.mjs +35 -0
- package/resources/notifications/checks.mjs.map +1 -1
- package/resources/notifications/index.d.mts +1 -2
- package/resources/notifications/index.d.mts.map +1 -1
- package/resources/notifications/index.d.ts +1 -2
- package/resources/notifications/index.d.ts.map +1 -1
- package/resources/notifications/index.js +1 -3
- package/resources/notifications/index.js.map +1 -1
- package/resources/notifications/index.mjs +0 -1
- package/resources/notifications/index.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +667 -11
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +667 -11
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js +191 -6
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs +191 -6
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/providers/catalog.d.mts +40 -0
- package/resources/providers/catalog.d.mts.map +1 -0
- package/resources/providers/catalog.d.ts +40 -0
- package/resources/providers/catalog.d.ts.map +1 -0
- package/resources/providers/catalog.js +18 -0
- package/resources/providers/catalog.js.map +1 -0
- package/resources/providers/catalog.mjs +14 -0
- package/resources/providers/catalog.mjs.map +1 -0
- package/resources/providers/index.d.mts +3 -0
- package/resources/providers/index.d.mts.map +1 -0
- package/resources/providers/index.d.ts +3 -0
- package/resources/providers/index.d.ts.map +1 -0
- package/resources/providers/index.js +9 -0
- package/resources/providers/index.js.map +1 -0
- package/resources/providers/index.mjs +4 -0
- package/resources/providers/index.mjs.map +1 -0
- package/resources/providers/providers.d.mts +182 -0
- package/resources/providers/providers.d.mts.map +1 -0
- package/resources/providers/providers.d.ts +182 -0
- package/resources/providers/providers.d.ts.map +1 -0
- package/resources/providers/providers.js +57 -0
- package/resources/providers/providers.js.map +1 -0
- package/resources/providers/providers.mjs +52 -0
- package/resources/providers/providers.mjs.map +1 -0
- package/resources/providers.d.mts +2 -0
- package/resources/providers.d.mts.map +1 -0
- package/resources/providers.d.ts +2 -0
- package/resources/providers.d.ts.map +1 -0
- package/resources/providers.js +6 -0
- package/resources/providers.js.map +1 -0
- package/resources/providers.mjs +3 -0
- package/resources/providers.mjs.map +1 -0
- package/resources/routing-strategies.d.mts +333 -0
- package/resources/routing-strategies.d.mts.map +1 -0
- package/resources/routing-strategies.d.ts +333 -0
- package/resources/routing-strategies.d.ts.map +1 -0
- package/resources/routing-strategies.js +107 -0
- package/resources/routing-strategies.js.map +1 -0
- package/resources/routing-strategies.mjs +103 -0
- package/resources/routing-strategies.mjs.map +1 -0
- package/resources/send.d.mts +2 -60
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +2 -60
- package/resources/send.d.ts.map +1 -1
- package/resources/shared.d.mts +60 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +60 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/tenants/tenants.d.mts +2 -62
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +2 -62
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs.map +1 -1
- package/src/client.ts +112 -0
- package/src/resources/index.ts +49 -0
- package/src/resources/notifications/checks.ts +35 -0
- package/src/resources/notifications/index.ts +26 -1
- package/src/resources/notifications/notifications.ts +858 -13
- package/src/resources/providers/catalog.ts +53 -0
- package/src/resources/providers/index.ts +12 -0
- package/src/resources/providers/providers.ts +240 -0
- package/src/resources/providers.ts +3 -0
- package/src/resources/routing-strategies.ts +436 -0
- package/src/resources/send.ts +2 -67
- package/src/resources/shared.ts +71 -1
- package/src/resources/tenants/tenants.ts +2 -69
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/notifications/draft.d.mts +0 -8
- package/resources/notifications/draft.d.mts.map +0 -1
- package/resources/notifications/draft.d.ts +0 -8
- package/resources/notifications/draft.d.ts.map +0 -1
- package/resources/notifications/draft.js +0 -13
- package/resources/notifications/draft.js.map +0 -1
- package/resources/notifications/draft.mjs +0 -9
- package/resources/notifications/draft.mjs.map +0 -1
- package/src/resources/notifications/draft.ts +0 -13
|
@@ -293,13 +293,13 @@ export interface TenantTemplateInput {
|
|
|
293
293
|
/**
|
|
294
294
|
* Channel-specific delivery configuration (email, SMS, push, etc.)
|
|
295
295
|
*/
|
|
296
|
-
channels?:
|
|
296
|
+
channels?: Shared.MessageChannels;
|
|
297
297
|
|
|
298
298
|
/**
|
|
299
299
|
* Provider-specific delivery configuration for routing to specific email/SMS
|
|
300
300
|
* providers
|
|
301
301
|
*/
|
|
302
|
-
providers?:
|
|
302
|
+
providers?: Shared.MessageProviders;
|
|
303
303
|
|
|
304
304
|
/**
|
|
305
305
|
* Message routing configuration for multi-channel delivery strategies
|
|
@@ -307,73 +307,6 @@ export interface TenantTemplateInput {
|
|
|
307
307
|
routing?: Shared.MessageRouting;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export namespace TenantTemplateInput {
|
|
311
|
-
export interface Channels {
|
|
312
|
-
/**
|
|
313
|
-
* Brand id used for rendering.
|
|
314
|
-
*/
|
|
315
|
-
brand_id?: string | null;
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* JS conditional with access to data/profile.
|
|
319
|
-
*/
|
|
320
|
-
if?: string | null;
|
|
321
|
-
|
|
322
|
-
metadata?: Channels.Metadata | null;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* Channel specific overrides.
|
|
326
|
-
*/
|
|
327
|
-
override?: { [key: string]: unknown } | null;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Providers enabled for this channel.
|
|
331
|
-
*/
|
|
332
|
-
providers?: Array<string> | null;
|
|
333
|
-
|
|
334
|
-
/**
|
|
335
|
-
* Defaults to `single`.
|
|
336
|
-
*/
|
|
337
|
-
routing_method?: 'all' | 'single' | null;
|
|
338
|
-
|
|
339
|
-
timeouts?: Channels.Timeouts | null;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export namespace Channels {
|
|
343
|
-
export interface Metadata {
|
|
344
|
-
utm?: Shared.Utm | null;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export interface Timeouts {
|
|
348
|
-
channel?: number | null;
|
|
349
|
-
|
|
350
|
-
provider?: number | null;
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
export interface Providers {
|
|
355
|
-
/**
|
|
356
|
-
* JS conditional with access to data/profile.
|
|
357
|
-
*/
|
|
358
|
-
if?: string | null;
|
|
359
|
-
|
|
360
|
-
metadata?: Providers.Metadata | null;
|
|
361
|
-
|
|
362
|
-
/**
|
|
363
|
-
* Provider-specific overrides.
|
|
364
|
-
*/
|
|
365
|
-
override?: { [key: string]: unknown } | null;
|
|
366
|
-
|
|
367
|
-
timeouts?: number | null;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export namespace Providers {
|
|
371
|
-
export interface Metadata {
|
|
372
|
-
utm?: Shared.Utm | null;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
|
|
377
310
|
export interface TenantListResponse {
|
|
378
311
|
/**
|
|
379
312
|
* Set to true when there are more pages that can be retrieved.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '7.
|
|
1
|
+
export const VERSION = '7.10.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "7.
|
|
1
|
+
export declare const VERSION = "7.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '7.
|
|
1
|
+
export const VERSION = '7.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as NotificationsAPI from "./notifications.mjs";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
-
export declare class Draft extends APIResource {
|
|
6
|
-
retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=draft.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.mts","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC,sBAAsB,CAAC;CAG3G"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import * as NotificationsAPI from "./notifications.js";
|
|
3
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
-
export declare class Draft extends APIResource {
|
|
6
|
-
retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=draft.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft.d.ts","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,gBAAgB;OACrB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC,sBAAsB,CAAC;CAG3G"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Draft = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
-
class Draft extends resource_1.APIResource {
|
|
8
|
-
retrieveContent(id, options) {
|
|
9
|
-
return this._client.get((0, path_1.path) `/notifications/${id}/draft/content`, options);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.Draft = Draft;
|
|
13
|
-
//# sourceMappingURL=draft.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft.js","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC,eAAe,CAAC,EAAU,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF;AAJD,sBAIC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
-
export class Draft extends APIResource {
|
|
5
|
-
retrieveContent(id, options) {
|
|
6
|
-
return this._client.get(path `/notifications/${id}/draft/content`, options);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=draft.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"draft.mjs","sourceRoot":"","sources":["../../src/resources/notifications/draft.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC,eAAe,CAAC,EAAU,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;CACF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as NotificationsAPI from './notifications';
|
|
5
|
-
import { APIPromise } from '../../core/api-promise';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
import { path } from '../../internal/utils/path';
|
|
8
|
-
|
|
9
|
-
export class Draft extends APIResource {
|
|
10
|
-
retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent> {
|
|
11
|
-
return this._client.get(path`/notifications/${id}/draft/content`, options);
|
|
12
|
-
}
|
|
13
|
-
}
|