@trycourier/courier 7.20.0 → 7.22.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 +24 -0
- package/client.d.mts +57 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +57 -3
- package/client.d.ts.map +1 -1
- package/client.js +57 -3
- package/client.js.map +1 -1
- package/client.mjs +57 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audiences.d.mts +13 -5
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +13 -5
- package/resources/audiences.d.ts.map +1 -1
- package/resources/audiences.js +13 -5
- package/resources/audiences.js.map +1 -1
- package/resources/audiences.mjs +13 -5
- package/resources/audiences.mjs.map +1 -1
- package/resources/audit-events.d.mts +7 -2
- package/resources/audit-events.d.mts.map +1 -1
- package/resources/audit-events.d.ts +7 -2
- package/resources/audit-events.d.ts.map +1 -1
- package/resources/audit-events.js +7 -2
- package/resources/audit-events.js.map +1 -1
- package/resources/audit-events.mjs +7 -2
- package/resources/audit-events.mjs.map +1 -1
- package/resources/auth.d.mts +5 -1
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts +5 -1
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.js +5 -1
- package/resources/auth.js.map +1 -1
- package/resources/auth.mjs +5 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/automations/automations.d.mts +5 -1
- package/resources/automations/automations.d.mts.map +1 -1
- package/resources/automations/automations.d.ts +5 -1
- package/resources/automations/automations.d.ts.map +1 -1
- package/resources/automations/automations.js +5 -1
- package/resources/automations/automations.js.map +1 -1
- package/resources/automations/automations.mjs +5 -1
- package/resources/automations/automations.mjs.map +1 -1
- package/resources/automations/invoke.d.mts +74 -7
- package/resources/automations/invoke.d.mts.map +1 -1
- package/resources/automations/invoke.d.ts +74 -7
- package/resources/automations/invoke.d.ts.map +1 -1
- package/resources/automations/invoke.js +38 -9
- package/resources/automations/invoke.js.map +1 -1
- package/resources/automations/invoke.mjs +38 -9
- package/resources/automations/invoke.mjs.map +1 -1
- package/resources/brands.d.mts +42 -7
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +42 -7
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js +28 -8
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs +28 -8
- package/resources/brands.mjs.map +1 -1
- package/resources/digests/schedules.d.mts +5 -3
- package/resources/digests/schedules.d.mts.map +1 -1
- package/resources/digests/schedules.d.ts +5 -3
- package/resources/digests/schedules.d.ts.map +1 -1
- package/resources/digests/schedules.js +5 -3
- package/resources/digests/schedules.js.map +1 -1
- package/resources/digests/schedules.mjs +5 -3
- package/resources/digests/schedules.mjs.map +1 -1
- package/resources/inbound.d.mts +5 -1
- package/resources/inbound.d.mts.map +1 -1
- package/resources/inbound.d.ts +5 -1
- package/resources/inbound.d.ts.map +1 -1
- package/resources/inbound.js +5 -1
- package/resources/inbound.js.map +1 -1
- package/resources/inbound.mjs +5 -1
- package/resources/inbound.mjs.map +1 -1
- package/resources/inbox/inbox.d.mts +10 -0
- package/resources/inbox/inbox.d.mts.map +1 -0
- package/resources/inbox/inbox.d.ts +10 -0
- package/resources/inbox/inbox.d.ts.map +1 -0
- package/resources/inbox/inbox.js +17 -0
- package/resources/inbox/inbox.js.map +1 -0
- package/resources/inbox/inbox.mjs +12 -0
- package/resources/inbox/inbox.mjs.map +1 -0
- package/resources/inbox/index.d.mts +3 -0
- package/resources/inbox/index.d.mts.map +1 -0
- package/resources/inbox/index.d.ts +3 -0
- package/resources/inbox/index.d.ts.map +1 -0
- package/resources/inbox/index.js +9 -0
- package/resources/inbox/index.js.map +1 -0
- package/resources/inbox/index.mjs +4 -0
- package/resources/inbox/index.mjs.map +1 -0
- package/resources/inbox/messages.d.mts +23 -0
- package/resources/inbox/messages.d.mts.map +1 -0
- package/resources/inbox/messages.d.ts +23 -0
- package/resources/inbox/messages.d.ts.map +1 -0
- package/resources/inbox/messages.js +34 -0
- package/resources/inbox/messages.js.map +1 -0
- package/resources/inbox/messages.mjs +30 -0
- package/resources/inbox/messages.mjs.map +1 -0
- package/resources/inbox.d.mts +2 -0
- package/resources/inbox.d.mts.map +1 -0
- package/resources/inbox.d.ts +2 -0
- package/resources/inbox.d.ts.map +1 -0
- package/resources/inbox.js +6 -0
- package/resources/inbox.js.map +1 -0
- package/resources/inbox.mjs +3 -0
- package/resources/inbox.mjs.map +1 -0
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/journeys/journeys.d.mts +130 -39
- package/resources/journeys/journeys.d.mts.map +1 -1
- package/resources/journeys/journeys.d.ts +130 -39
- package/resources/journeys/journeys.d.ts.map +1 -1
- package/resources/journeys/journeys.js +79 -34
- package/resources/journeys/journeys.js.map +1 -1
- package/resources/journeys/journeys.mjs +79 -34
- package/resources/journeys/journeys.mjs.map +1 -1
- package/resources/journeys/templates.d.mts +60 -17
- package/resources/journeys/templates.d.mts.map +1 -1
- package/resources/journeys/templates.d.ts +60 -17
- package/resources/journeys/templates.d.ts.map +1 -1
- package/resources/journeys/templates.js +41 -20
- package/resources/journeys/templates.js.map +1 -1
- package/resources/journeys/templates.mjs +41 -20
- package/resources/journeys/templates.mjs.map +1 -1
- package/resources/lists/lists.d.mts +40 -5
- package/resources/lists/lists.d.mts.map +1 -1
- package/resources/lists/lists.d.ts +40 -5
- package/resources/lists/lists.d.ts.map +1 -1
- package/resources/lists/lists.js +40 -5
- package/resources/lists/lists.js.map +1 -1
- package/resources/lists/lists.mjs +40 -5
- package/resources/lists/lists.mjs.map +1 -1
- package/resources/lists/subscriptions.d.mts +65 -5
- package/resources/lists/subscriptions.d.mts.map +1 -1
- package/resources/lists/subscriptions.d.ts +65 -5
- package/resources/lists/subscriptions.d.ts.map +1 -1
- package/resources/lists/subscriptions.js +57 -6
- package/resources/lists/subscriptions.js.map +1 -1
- package/resources/lists/subscriptions.mjs +57 -6
- package/resources/lists/subscriptions.mjs.map +1 -1
- package/resources/messages.d.mts +15 -14
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +15 -14
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +15 -14
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +15 -14
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications/checks.d.mts +9 -3
- package/resources/notifications/checks.d.mts.map +1 -1
- package/resources/notifications/checks.d.ts +9 -3
- package/resources/notifications/checks.d.ts.map +1 -1
- package/resources/notifications/checks.js +9 -3
- package/resources/notifications/checks.js.map +1 -1
- package/resources/notifications/checks.mjs +9 -3
- package/resources/notifications/checks.mjs.map +1 -1
- package/resources/notifications/notifications.d.mts +62 -29
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +62 -29
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js +49 -26
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs +49 -26
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/profiles/lists.d.mts +49 -5
- package/resources/profiles/lists.d.mts.map +1 -1
- package/resources/profiles/lists.d.ts +49 -5
- package/resources/profiles/lists.d.ts.map +1 -1
- package/resources/profiles/lists.js +45 -6
- package/resources/profiles/lists.js.map +1 -1
- package/resources/profiles/lists.mjs +45 -6
- package/resources/profiles/lists.mjs.map +1 -1
- package/resources/profiles/profiles.d.mts +70 -11
- package/resources/profiles/profiles.d.mts.map +1 -1
- package/resources/profiles/profiles.d.ts +70 -11
- package/resources/profiles/profiles.d.ts.map +1 -1
- package/resources/profiles/profiles.js +65 -12
- package/resources/profiles/profiles.js.map +1 -1
- package/resources/profiles/profiles.mjs +65 -12
- package/resources/profiles/profiles.mjs.map +1 -1
- package/resources/providers/catalog.d.mts +10 -4
- package/resources/providers/catalog.d.mts.map +1 -1
- package/resources/providers/catalog.d.ts +10 -4
- package/resources/providers/catalog.d.ts.map +1 -1
- package/resources/providers/catalog.js +10 -4
- package/resources/providers/catalog.js.map +1 -1
- package/resources/providers/catalog.mjs +10 -4
- package/resources/providers/catalog.mjs.map +1 -1
- package/resources/providers/providers.d.mts +68 -22
- package/resources/providers/providers.d.mts.map +1 -1
- package/resources/providers/providers.d.ts +68 -22
- package/resources/providers/providers.d.ts.map +1 -1
- package/resources/providers/providers.js +57 -14
- package/resources/providers/providers.js.map +1 -1
- package/resources/providers/providers.mjs +57 -14
- package/resources/providers/providers.mjs.map +1 -1
- package/resources/requests.d.mts +5 -1
- package/resources/requests.d.mts.map +1 -1
- package/resources/requests.d.ts +5 -1
- package/resources/requests.d.ts.map +1 -1
- package/resources/requests.js +5 -1
- package/resources/requests.js.map +1 -1
- package/resources/requests.mjs +5 -1
- package/resources/requests.mjs.map +1 -1
- package/resources/routing-strategies.d.mts +30 -11
- package/resources/routing-strategies.d.mts.map +1 -1
- package/resources/routing-strategies.d.ts +30 -11
- package/resources/routing-strategies.d.ts.map +1 -1
- package/resources/routing-strategies.js +22 -6
- package/resources/routing-strategies.js.map +1 -1
- package/resources/routing-strategies.mjs +22 -6
- package/resources/routing-strategies.mjs.map +1 -1
- package/resources/send.d.mts +24 -4
- package/resources/send.d.mts.map +1 -1
- package/resources/send.d.ts +24 -4
- package/resources/send.d.ts.map +1 -1
- package/resources/send.js +21 -3
- package/resources/send.js.map +1 -1
- package/resources/send.mjs +21 -3
- package/resources/send.mjs.map +1 -1
- package/resources/tenants/preferences/items.d.mts +7 -2
- package/resources/tenants/preferences/items.d.mts.map +1 -1
- package/resources/tenants/preferences/items.d.ts +7 -2
- package/resources/tenants/preferences/items.d.ts.map +1 -1
- package/resources/tenants/preferences/items.js +7 -2
- package/resources/tenants/preferences/items.js.map +1 -1
- package/resources/tenants/preferences/items.mjs +7 -2
- package/resources/tenants/preferences/items.mjs.map +1 -1
- package/resources/tenants/templates/templates.d.mts +13 -19
- package/resources/tenants/templates/templates.d.mts.map +1 -1
- package/resources/tenants/templates/templates.d.ts +13 -19
- package/resources/tenants/templates/templates.d.ts.map +1 -1
- package/resources/tenants/templates/templates.js +13 -19
- package/resources/tenants/templates/templates.js.map +1 -1
- package/resources/tenants/templates/templates.mjs +13 -19
- package/resources/tenants/templates/templates.mjs.map +1 -1
- package/resources/tenants/templates/versions.d.mts +5 -7
- package/resources/tenants/templates/versions.d.mts.map +1 -1
- package/resources/tenants/templates/versions.d.ts +5 -7
- package/resources/tenants/templates/versions.d.ts.map +1 -1
- package/resources/tenants/templates/versions.js +5 -7
- package/resources/tenants/templates/versions.js.map +1 -1
- package/resources/tenants/templates/versions.mjs +5 -7
- package/resources/tenants/templates/versions.mjs.map +1 -1
- package/resources/tenants/tenants.d.mts +13 -5
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +13 -5
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +13 -5
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +13 -5
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/translations.d.mts +7 -2
- package/resources/translations.d.mts.map +1 -1
- package/resources/translations.d.ts +7 -2
- package/resources/translations.d.ts.map +1 -1
- package/resources/translations.js +7 -2
- package/resources/translations.js.map +1 -1
- package/resources/translations.mjs +7 -2
- package/resources/translations.mjs.map +1 -1
- package/resources/users/preferences.d.mts +64 -42
- package/resources/users/preferences.d.mts.map +1 -1
- package/resources/users/preferences.d.ts +64 -42
- package/resources/users/preferences.d.ts.map +1 -1
- package/resources/users/preferences.js +30 -42
- package/resources/users/preferences.js.map +1 -1
- package/resources/users/preferences.mjs +30 -42
- package/resources/users/preferences.mjs.map +1 -1
- package/resources/users/tenants.d.mts +13 -10
- package/resources/users/tenants.d.mts.map +1 -1
- package/resources/users/tenants.d.ts +13 -10
- package/resources/users/tenants.d.ts.map +1 -1
- package/resources/users/tenants.js +13 -10
- package/resources/users/tenants.js.map +1 -1
- package/resources/users/tenants.mjs +13 -10
- package/resources/users/tenants.mjs.map +1 -1
- package/resources/users/tokens.d.mts +15 -6
- package/resources/users/tokens.d.mts.map +1 -1
- package/resources/users/tokens.d.ts +15 -6
- package/resources/users/tokens.d.ts.map +1 -1
- package/resources/users/tokens.js +15 -6
- package/resources/users/tokens.js.map +1 -1
- package/resources/users/tokens.mjs +15 -6
- package/resources/users/tokens.mjs.map +1 -1
- package/resources/workspace-preferences/topics.d.mts +40 -18
- package/resources/workspace-preferences/topics.d.mts.map +1 -1
- package/resources/workspace-preferences/topics.d.ts +40 -18
- package/resources/workspace-preferences/topics.d.ts.map +1 -1
- package/resources/workspace-preferences/topics.js +26 -11
- package/resources/workspace-preferences/topics.js.map +1 -1
- package/resources/workspace-preferences/topics.mjs +26 -11
- package/resources/workspace-preferences/topics.mjs.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.d.mts +56 -19
- package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.d.ts +56 -19
- package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.js +41 -13
- package/resources/workspace-preferences/workspace-preferences.js.map +1 -1
- package/resources/workspace-preferences/workspace-preferences.mjs +41 -13
- package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -1
- package/src/client.ts +59 -25
- package/src/resources/audiences.ts +13 -5
- package/src/resources/audit-events.ts +7 -2
- package/src/resources/auth.ts +5 -1
- package/src/resources/automations/automations.ts +5 -1
- package/src/resources/automations/invoke.ts +115 -9
- package/src/resources/brands.ts +62 -8
- package/src/resources/digests/schedules.ts +5 -3
- package/src/resources/inbound.ts +5 -1
- package/src/resources/inbox/inbox.ts +15 -0
- package/src/resources/inbox/index.ts +4 -0
- package/src/resources/inbox/messages.ts +40 -0
- package/src/resources/inbox.ts +3 -0
- package/src/resources/index.ts +1 -11
- package/src/resources/journeys/journeys.ts +212 -43
- package/src/resources/journeys/templates.ts +98 -20
- package/src/resources/lists/lists.ts +40 -5
- package/src/resources/lists/subscriptions.ts +82 -6
- package/src/resources/messages.ts +15 -14
- package/src/resources/notifications/checks.ts +9 -3
- package/src/resources/notifications/notifications.ts +102 -31
- package/src/resources/profiles/lists.ts +70 -6
- package/src/resources/profiles/profiles.ts +90 -12
- package/src/resources/providers/catalog.ts +10 -4
- package/src/resources/providers/providers.ts +86 -21
- package/src/resources/requests.ts +5 -1
- package/src/resources/routing-strategies.ts +50 -12
- package/src/resources/send.ts +45 -5
- package/src/resources/tenants/preferences/items.ts +7 -2
- package/src/resources/tenants/templates/templates.ts +13 -19
- package/src/resources/tenants/templates/versions.ts +5 -7
- package/src/resources/tenants/tenants.ts +13 -5
- package/src/resources/translations.ts +7 -2
- package/src/resources/users/preferences.ts +86 -44
- package/src/resources/users/tenants.ts +13 -10
- package/src/resources/users/tokens.ts +15 -6
- package/src/resources/workspace-preferences/topics.ts +60 -19
- package/src/resources/workspace-preferences/workspace-preferences.ts +96 -21
- 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
- package/resources/bulk.d.mts +0 -155
- package/resources/bulk.d.mts.map +0 -1
- package/resources/bulk.d.ts +0 -155
- package/resources/bulk.d.ts.map +0 -1
- package/resources/bulk.js +0 -58
- package/resources/bulk.js.map +0 -1
- package/resources/bulk.mjs +0 -54
- package/resources/bulk.mjs.map +0 -1
- package/src/resources/bulk.ts +0 -210
package/resources/messages.d.mts
CHANGED
|
@@ -2,37 +2,38 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import * as Shared from "./shared.mjs";
|
|
3
3
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Look up the messages Courier has accepted, inspect their delivery history and rendered output, and cancel, resend, or archive them.
|
|
7
|
+
*/
|
|
5
8
|
export declare class Messages extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Returns a sent message's status, recipient, event, and per-provider delivery
|
|
11
|
+
* detail, with timestamps for enqueued, sent, delivered, opened, and clicked.
|
|
8
12
|
*/
|
|
9
13
|
retrieve(messageID: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Returns previously sent messages, most recent first, each carrying its status,
|
|
16
|
+
* recipient, channel, and provider. Paged by cursor.
|
|
12
17
|
*/
|
|
13
18
|
list(query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
|
|
14
19
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* status code for a successful cancellation or `409` status code for an
|
|
18
|
-
* unsuccessful cancellation. Both cases will include the actual message record in
|
|
19
|
-
* the response body (see details below).
|
|
20
|
+
* Cancels a message that is still in the delivery pipeline and returns the message
|
|
21
|
+
* record with its resulting canceled or failed status.
|
|
20
22
|
*/
|
|
21
23
|
cancel(messageID: string, options?: RequestOptions): APIPromise<MessageDetails>;
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Returns the rendered content Courier delivered for a message, broken out per
|
|
26
|
+
* channel, to confirm what the recipient received.
|
|
24
27
|
*/
|
|
25
28
|
content(messageID: string, options?: RequestOptions): APIPromise<MessageContentResponse>;
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
30
|
+
* Returns the ordered event history for a sent message, one entry per status
|
|
31
|
+
* transition with its timestamp.
|
|
28
32
|
*/
|
|
29
33
|
history(messageID: string, query?: MessageHistoryParams | null | undefined, options?: RequestOptions): APIPromise<MessageHistoryResponse>;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* producing a **new** `messageId` — the original message is not modified.
|
|
34
|
-
* Throttled by a per-message rate limit; a repeat inside the limit window returns
|
|
35
|
-
* `429 Too Many Requests`.
|
|
35
|
+
* Resends a previously sent message to the same recipient and content, returning a
|
|
36
|
+
* new messageId. The original send request is not modified.
|
|
36
37
|
*/
|
|
37
38
|
resend(messageID: string, options?: RequestOptions): APIPromise<MessageResendResponse>;
|
|
38
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"messages.d.mts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,MAAM,qBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAI1F;;;OAGG;IACH,IAAI,CACF,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;OAGG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI/E;;;OAGG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;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AAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/messages.d.ts
CHANGED
|
@@ -2,37 +2,38 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import * as Shared from "./shared.js";
|
|
3
3
|
import { APIPromise } from "../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Look up the messages Courier has accepted, inspect their delivery history and rendered output, and cancel, resend, or archive them.
|
|
7
|
+
*/
|
|
5
8
|
export declare class Messages extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Returns a sent message's status, recipient, event, and per-provider delivery
|
|
11
|
+
* detail, with timestamps for enqueued, sent, delivered, opened, and clicked.
|
|
8
12
|
*/
|
|
9
13
|
retrieve(messageID: string, options?: RequestOptions): APIPromise<MessageRetrieveResponse>;
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Returns previously sent messages, most recent first, each carrying its status,
|
|
16
|
+
* recipient, channel, and provider. Paged by cursor.
|
|
12
17
|
*/
|
|
13
18
|
list(query?: MessageListParams | null | undefined, options?: RequestOptions): APIPromise<MessageListResponse>;
|
|
14
19
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* status code for a successful cancellation or `409` status code for an
|
|
18
|
-
* unsuccessful cancellation. Both cases will include the actual message record in
|
|
19
|
-
* the response body (see details below).
|
|
20
|
+
* Cancels a message that is still in the delivery pipeline and returns the message
|
|
21
|
+
* record with its resulting canceled or failed status.
|
|
20
22
|
*/
|
|
21
23
|
cancel(messageID: string, options?: RequestOptions): APIPromise<MessageDetails>;
|
|
22
24
|
/**
|
|
23
|
-
*
|
|
25
|
+
* Returns the rendered content Courier delivered for a message, broken out per
|
|
26
|
+
* channel, to confirm what the recipient received.
|
|
24
27
|
*/
|
|
25
28
|
content(messageID: string, options?: RequestOptions): APIPromise<MessageContentResponse>;
|
|
26
29
|
/**
|
|
27
|
-
*
|
|
30
|
+
* Returns the ordered event history for a sent message, one entry per status
|
|
31
|
+
* transition with its timestamp.
|
|
28
32
|
*/
|
|
29
33
|
history(messageID: string, query?: MessageHistoryParams | null | undefined, options?: RequestOptions): APIPromise<MessageHistoryResponse>;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
* producing a **new** `messageId` — the original message is not modified.
|
|
34
|
-
* Throttled by a per-message rate limit; a repeat inside the limit window returns
|
|
35
|
-
* `429 Too Many Requests`.
|
|
35
|
+
* Resends a previously sent message to the same recipient and content, returning a
|
|
36
|
+
* new messageId. The original send request is not modified.
|
|
36
37
|
*/
|
|
37
38
|
resend(messageID: string, options?: RequestOptions): APIPromise<MessageResendResponse>;
|
|
38
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,KAAK,MAAM,oBAAiB;AACnC,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uB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IAAI,CAAC;IAE1B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
package/resources/messages.js
CHANGED
|
@@ -4,47 +4,48 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Messages = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Look up the messages Courier has accepted, inspect their delivery history and rendered output, and cancel, resend, or archive them.
|
|
9
|
+
*/
|
|
7
10
|
class Messages extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
|
-
*
|
|
12
|
+
* Returns a sent message's status, recipient, event, and per-provider delivery
|
|
13
|
+
* detail, with timestamps for enqueued, sent, delivered, opened, and clicked.
|
|
10
14
|
*/
|
|
11
15
|
retrieve(messageID, options) {
|
|
12
16
|
return this._client.get((0, path_1.path) `/messages/${messageID}`, options);
|
|
13
17
|
}
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Returns previously sent messages, most recent first, each carrying its status,
|
|
20
|
+
* recipient, channel, and provider. Paged by cursor.
|
|
16
21
|
*/
|
|
17
22
|
list(query = {}, options) {
|
|
18
23
|
return this._client.get('/messages', { query, ...options });
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* status code for a successful cancellation or `409` status code for an
|
|
24
|
-
* unsuccessful cancellation. Both cases will include the actual message record in
|
|
25
|
-
* the response body (see details below).
|
|
26
|
+
* Cancels a message that is still in the delivery pipeline and returns the message
|
|
27
|
+
* record with its resulting canceled or failed status.
|
|
26
28
|
*/
|
|
27
29
|
cancel(messageID, options) {
|
|
28
30
|
return this._client.post((0, path_1.path) `/messages/${messageID}/cancel`, options);
|
|
29
31
|
}
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* Returns the rendered content Courier delivered for a message, broken out per
|
|
34
|
+
* channel, to confirm what the recipient received.
|
|
32
35
|
*/
|
|
33
36
|
content(messageID, options) {
|
|
34
37
|
return this._client.get((0, path_1.path) `/messages/${messageID}/output`, options);
|
|
35
38
|
}
|
|
36
39
|
/**
|
|
37
|
-
*
|
|
40
|
+
* Returns the ordered event history for a sent message, one entry per status
|
|
41
|
+
* transition with its timestamp.
|
|
38
42
|
*/
|
|
39
43
|
history(messageID, query = {}, options) {
|
|
40
44
|
return this._client.get((0, path_1.path) `/messages/${messageID}/history`, { query, ...options });
|
|
41
45
|
}
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
* producing a **new** `messageId` — the original message is not modified.
|
|
46
|
-
* Throttled by a per-message rate limit; a repeat inside the limit window returns
|
|
47
|
-
* `429 Too Many Requests`.
|
|
47
|
+
* Resends a previously sent message to the same recipient and content, returning a
|
|
48
|
+
* new messageId. The original send request is not modified.
|
|
48
49
|
*/
|
|
49
50
|
resend(messageID, options) {
|
|
50
51
|
return this._client.post((0, path_1.path) `/messages/${messageID}/resend`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.js","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C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Aa,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AAvDD,4BAuDC"}
|
package/resources/messages.mjs
CHANGED
|
@@ -1,47 +1,48 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { path } from "../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Look up the messages Courier has accepted, inspect their delivery history and rendered output, and cancel, resend, or archive them.
|
|
6
|
+
*/
|
|
4
7
|
export class Messages extends APIResource {
|
|
5
8
|
/**
|
|
6
|
-
*
|
|
9
|
+
* Returns a sent message's status, recipient, event, and per-provider delivery
|
|
10
|
+
* detail, with timestamps for enqueued, sent, delivered, opened, and clicked.
|
|
7
11
|
*/
|
|
8
12
|
retrieve(messageID, options) {
|
|
9
13
|
return this._client.get(path `/messages/${messageID}`, options);
|
|
10
14
|
}
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
16
|
+
* Returns previously sent messages, most recent first, each carrying its status,
|
|
17
|
+
* recipient, channel, and provider. Paged by cursor.
|
|
13
18
|
*/
|
|
14
19
|
list(query = {}, options) {
|
|
15
20
|
return this._client.get('/messages', { query, ...options });
|
|
16
21
|
}
|
|
17
22
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* status code for a successful cancellation or `409` status code for an
|
|
21
|
-
* unsuccessful cancellation. Both cases will include the actual message record in
|
|
22
|
-
* the response body (see details below).
|
|
23
|
+
* Cancels a message that is still in the delivery pipeline and returns the message
|
|
24
|
+
* record with its resulting canceled or failed status.
|
|
23
25
|
*/
|
|
24
26
|
cancel(messageID, options) {
|
|
25
27
|
return this._client.post(path `/messages/${messageID}/cancel`, options);
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* Returns the rendered content Courier delivered for a message, broken out per
|
|
31
|
+
* channel, to confirm what the recipient received.
|
|
29
32
|
*/
|
|
30
33
|
content(messageID, options) {
|
|
31
34
|
return this._client.get(path `/messages/${messageID}/output`, options);
|
|
32
35
|
}
|
|
33
36
|
/**
|
|
34
|
-
*
|
|
37
|
+
* Returns the ordered event history for a sent message, one entry per status
|
|
38
|
+
* transition with its timestamp.
|
|
35
39
|
*/
|
|
36
40
|
history(messageID, query = {}, options) {
|
|
37
41
|
return this._client.get(path `/messages/${messageID}/history`, { query, ...options });
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
* producing a **new** `messageId` — the original message is not modified.
|
|
43
|
-
* Throttled by a per-message rate limit; a repeat inside the limit window returns
|
|
44
|
-
* `429 Too Many Requests`.
|
|
44
|
+
* Resends a previously sent message to the same recipient and content, returning a
|
|
45
|
+
* new messageId. The original send request is not modified.
|
|
45
46
|
*/
|
|
46
47
|
resend(messageID, options) {
|
|
47
48
|
return this._client.post(path `/messages/${messageID}/resend`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC
|
|
1
|
+
{"version":3,"file":"messages.mjs","sourceRoot":"","sources":["../src/resources/messages.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,EAAE,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;OAGG;IACH,IAAI,CACF,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,SAAiB,EAAE,OAAwB;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;;OAGG;IACH,OAAO,CACL,SAAiB,EACjB,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,aAAa,SAAS,SAAS,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -2,9 +2,13 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
2
2
|
import * as NotificationsAPI from "./notifications.mjs";
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Create, update, version, publish, and localize notification templates and their content.
|
|
7
|
+
*/
|
|
5
8
|
export declare class Checks extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Replaces the approval checks on a template submission with the complete set
|
|
11
|
+
* supplied in the request body.
|
|
8
12
|
*
|
|
9
13
|
* @example
|
|
10
14
|
* ```ts
|
|
@@ -25,7 +29,8 @@ export declare class Checks extends APIResource {
|
|
|
25
29
|
*/
|
|
26
30
|
update(submissionID: string, params: CheckUpdateParams, options?: RequestOptions): APIPromise<CheckUpdateResponse>;
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* Returns the approval checks recorded for a template submission, each with its
|
|
33
|
+
* pass or fail result.
|
|
29
34
|
*
|
|
30
35
|
* @example
|
|
31
36
|
* ```ts
|
|
@@ -37,7 +42,8 @@ export declare class Checks extends APIResource {
|
|
|
37
42
|
*/
|
|
38
43
|
list(submissionID: string, params: CheckListParams, options?: RequestOptions): APIPromise<CheckListResponse>;
|
|
39
44
|
/**
|
|
40
|
-
*
|
|
45
|
+
* Cancels a pending template submission, withdrawing it from the approval
|
|
46
|
+
* workflow. The template stays in draft and can be resubmitted later.
|
|
41
47
|
*
|
|
42
48
|
* @example
|
|
43
49
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checks.d.mts","sourceRoot":"","sources":["../../src/resources/notifications/checks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"checks.d.mts","sourceRoot":"","sources":["../../src/resources/notifications/checks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;;;;;;;;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I from "./notifications.js";
|
|
3
3
|
import { APIPromise } from "../../core/api-promise.js";
|
|
4
4
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Create, update, version, publish, and localize notification templates and their content.
|
|
7
|
+
*/
|
|
5
8
|
export declare class Checks extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Replaces the approval checks on a template submission with the complete set
|
|
11
|
+
* supplied in the request body.
|
|
8
12
|
*
|
|
9
13
|
* @example
|
|
10
14
|
* ```ts
|
|
@@ -25,7 +29,8 @@ export declare class Checks extends APIResource {
|
|
|
25
29
|
*/
|
|
26
30
|
update(submissionID: string, params: CheckUpdateParams, options?: RequestOptions): APIPromise<CheckUpdateResponse>;
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* Returns the approval checks recorded for a template submission, each with its
|
|
33
|
+
* pass or fail result.
|
|
29
34
|
*
|
|
30
35
|
* @example
|
|
31
36
|
* ```ts
|
|
@@ -37,7 +42,8 @@ export declare class Checks extends APIResource {
|
|
|
37
42
|
*/
|
|
38
43
|
list(submissionID: string, params: CheckListParams, options?: RequestOptions): APIPromise<CheckListResponse>;
|
|
39
44
|
/**
|
|
40
|
-
*
|
|
45
|
+
* Cancels a pending template submission, withdrawing it from the approval
|
|
46
|
+
* workflow. The template stays in draft and can be resubmitted later.
|
|
41
47
|
*
|
|
42
48
|
* @example
|
|
43
49
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../src/resources/notifications/checks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,gBAAgB,2BAAwB;AACpD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"checks.d.ts","sourceRoot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AO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -5,9 +5,13 @@ exports.Checks = void 0;
|
|
|
5
5
|
const resource_1 = require("../../core/resource.js");
|
|
6
6
|
const headers_1 = require("../../internal/headers.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Create, update, version, publish, and localize notification templates and their content.
|
|
10
|
+
*/
|
|
8
11
|
class Checks extends resource_1.APIResource {
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
13
|
+
* Replaces the approval checks on a template submission with the complete set
|
|
14
|
+
* supplied in the request body.
|
|
11
15
|
*
|
|
12
16
|
* @example
|
|
13
17
|
* ```ts
|
|
@@ -31,7 +35,8 @@ class Checks extends resource_1.APIResource {
|
|
|
31
35
|
return this._client.put((0, path_1.path) `/notifications/${id}/${submissionID}/checks`, { body, ...options });
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
|
-
*
|
|
38
|
+
* Returns the approval checks recorded for a template submission, each with its
|
|
39
|
+
* pass or fail result.
|
|
35
40
|
*
|
|
36
41
|
* @example
|
|
37
42
|
* ```ts
|
|
@@ -46,7 +51,8 @@ class Checks extends resource_1.APIResource {
|
|
|
46
51
|
return this._client.get((0, path_1.path) `/notifications/${id}/${submissionID}/checks`, options);
|
|
47
52
|
}
|
|
48
53
|
/**
|
|
49
|
-
*
|
|
54
|
+
* Cancels a pending template submission, withdrawing it from the approval
|
|
55
|
+
* workflow. The template stays in draft and can be resubmitted later.
|
|
50
56
|
*
|
|
51
57
|
* @example
|
|
52
58
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checks.js","sourceRoot":"","sources":["../../src/resources/notifications/checks.ts"],"names":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AC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtED,wBAsEC"}
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Create, update, version, publish, and localize notification templates and their content.
|
|
7
|
+
*/
|
|
5
8
|
export class Checks extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Replaces the approval checks on a template submission with the complete set
|
|
11
|
+
* supplied in the request body.
|
|
8
12
|
*
|
|
9
13
|
* @example
|
|
10
14
|
* ```ts
|
|
@@ -28,7 +32,8 @@ export class Checks extends APIResource {
|
|
|
28
32
|
return this._client.put(path `/notifications/${id}/${submissionID}/checks`, { body, ...options });
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* Returns the approval checks recorded for a template submission, each with its
|
|
36
|
+
* pass or fail result.
|
|
32
37
|
*
|
|
33
38
|
* @example
|
|
34
39
|
* ```ts
|
|
@@ -43,7 +48,8 @@ export class Checks extends APIResource {
|
|
|
43
48
|
return this._client.get(path `/notifications/${id}/${submissionID}/checks`, options);
|
|
44
49
|
}
|
|
45
50
|
/**
|
|
46
|
-
*
|
|
51
|
+
* Cancels a pending template submission, withdrawing it from the approval
|
|
52
|
+
* workflow. The template stays in draft and can be resubmitted later.
|
|
47
53
|
*
|
|
48
54
|
* @example
|
|
49
55
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checks.mjs","sourceRoot":"","sources":["../../src/resources/notifications/checks.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,MAAO,SAAQ,WAAW;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