@trycourier/courier 7.9.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 +9 -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/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 -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 +301 -8
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +301 -8
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js +71 -8
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs +71 -8
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/routing-strategies.d.mts +30 -1
- package/resources/routing-strategies.d.mts.map +1 -1
- package/resources/routing-strategies.d.ts +30 -1
- package/resources/routing-strategies.d.ts.map +1 -1
- package/resources/routing-strategies.js +13 -0
- package/resources/routing-strategies.js.map +1 -1
- package/resources/routing-strategies.mjs +13 -0
- package/resources/routing-strategies.mjs.map +1 -1
- package/src/client.ts +28 -0
- package/src/resources/index.ts +14 -0
- package/src/resources/notifications/index.ts +12 -1
- package/src/resources/notifications/notifications.ts +386 -10
- package/src/resources/routing-strategies.ts +42 -0
- 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 -15
- package/resources/notifications/draft.d.mts.map +0 -1
- package/resources/notifications/draft.d.ts +0 -15
- package/resources/notifications/draft.d.ts.map +0 -1
- package/resources/notifications/draft.js +0 -20
- package/resources/notifications/draft.js.map +0 -1
- package/resources/notifications/draft.mjs +0 -16
- package/resources/notifications/draft.mjs.map +0 -1
- package/src/resources/notifications/draft.ts +0 -20
|
@@ -1,16 +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
|
-
/**
|
|
6
|
-
* @example
|
|
7
|
-
* ```ts
|
|
8
|
-
* const notificationGetContent =
|
|
9
|
-
* await client.notifications.draft.retrieveContent('id');
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
retrieveContent(id, options) {
|
|
13
|
-
return this._client.get(path `/notifications/${id}/draft/content`, options);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
//# 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;;;;;;OAMG;IACH,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,20 +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
|
-
/**
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const notificationGetContent =
|
|
14
|
-
* await client.notifications.draft.retrieveContent('id');
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
retrieveContent(id: string, options?: RequestOptions): APIPromise<NotificationsAPI.NotificationGetContent> {
|
|
18
|
-
return this._client.get(path`/notifications/${id}/draft/content`, options);
|
|
19
|
-
}
|
|
20
|
-
}
|