@trycourier/courier 7.21.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 +16 -0
- package/client.d.mts +57 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +57 -0
- package/client.d.ts.map +1 -1
- package/client.js +57 -0
- package/client.js.map +1 -1
- package/client.mjs +57 -0
- 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 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- 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 -0
- 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 -0
- 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/lists/lists.js
CHANGED
|
@@ -8,19 +8,36 @@ const SubscriptionsAPI = tslib_1.__importStar(require("./subscriptions.js"));
|
|
|
8
8
|
const subscriptions_1 = require("./subscriptions.js");
|
|
9
9
|
const headers_1 = require("../../internal/headers.js");
|
|
10
10
|
const path_1 = require("../../internal/utils/path.js");
|
|
11
|
+
/**
|
|
12
|
+
* Manage static groups of users that you subscribe explicitly, and send to them by list id or list pattern.
|
|
13
|
+
*/
|
|
11
14
|
class Lists extends resource_1.APIResource {
|
|
12
15
|
constructor() {
|
|
13
16
|
super(...arguments);
|
|
14
17
|
this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
15
18
|
}
|
|
16
19
|
/**
|
|
17
|
-
* Returns
|
|
20
|
+
* Returns one list by id with its name and created and updated timestamps. Fetch
|
|
21
|
+
* its subscribers separately with the subscriptions endpoint.
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const subscriptionList = await client.lists.retrieve(
|
|
26
|
+
* 'list_id',
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
18
29
|
*/
|
|
19
30
|
retrieve(listID, options) {
|
|
20
31
|
return this._client.get((0, path_1.path) `/lists/${listID}`, options);
|
|
21
32
|
}
|
|
22
33
|
/**
|
|
23
|
-
*
|
|
34
|
+
* Creates or replaces a list from a name and preferences. Subscribers are managed
|
|
35
|
+
* through the separate subscriptions endpoints.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* await client.lists.update('list_id', { name: 'name' });
|
|
40
|
+
* ```
|
|
24
41
|
*/
|
|
25
42
|
update(listID, body, options) {
|
|
26
43
|
return this._client.put((0, path_1.path) `/lists/${listID}`, {
|
|
@@ -30,13 +47,25 @@ class Lists extends resource_1.APIResource {
|
|
|
30
47
|
});
|
|
31
48
|
}
|
|
32
49
|
/**
|
|
33
|
-
* Returns
|
|
50
|
+
* Returns the workspace's lists, filterable by a pattern to fetch a subset such as
|
|
51
|
+
* every regional list. Paged by cursor.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const lists = await client.lists.list();
|
|
56
|
+
* ```
|
|
34
57
|
*/
|
|
35
58
|
list(query = {}, options) {
|
|
36
59
|
return this._client.get('/lists', { query, ...options });
|
|
37
60
|
}
|
|
38
61
|
/**
|
|
39
|
-
*
|
|
62
|
+
* Deletes a list, halting sends that target it. A previously deleted list can be
|
|
63
|
+
* brought back with the companion restore endpoint.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* await client.lists.delete('list_id');
|
|
68
|
+
* ```
|
|
40
69
|
*/
|
|
41
70
|
delete(listID, options) {
|
|
42
71
|
return this._client.delete((0, path_1.path) `/lists/${listID}`, {
|
|
@@ -45,7 +74,13 @@ class Lists extends resource_1.APIResource {
|
|
|
45
74
|
});
|
|
46
75
|
}
|
|
47
76
|
/**
|
|
48
|
-
*
|
|
77
|
+
* Restores a previously deleted list along with its subscribers, so a list removed
|
|
78
|
+
* by mistake can be brought back rather than rebuilt.
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* await client.lists.restore('list_id');
|
|
83
|
+
* ```
|
|
49
84
|
*/
|
|
50
85
|
restore(listID, body, options) {
|
|
51
86
|
return this._client.put((0, path_1.path) `/lists/${listID}/restore`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6EAAoD;AACpD,sDAQyB;AAEzB,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"lists.js","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAElD,6EAAoD;AACpD,sDAQyB;AAEzB,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkFnG,CAAC;IAhFC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,EAAE,EAAE,O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,CAAC"}
|
|
@@ -4,19 +4,36 @@ import * as SubscriptionsAPI from "./subscriptions.mjs";
|
|
|
4
4
|
import { Subscriptions, } from "./subscriptions.mjs";
|
|
5
5
|
import { buildHeaders } from "../../internal/headers.mjs";
|
|
6
6
|
import { path } from "../../internal/utils/path.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Manage static groups of users that you subscribe explicitly, and send to them by list id or list pattern.
|
|
9
|
+
*/
|
|
7
10
|
export class Lists extends APIResource {
|
|
8
11
|
constructor() {
|
|
9
12
|
super(...arguments);
|
|
10
13
|
this.subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
|
-
* Returns
|
|
16
|
+
* Returns one list by id with its name and created and updated timestamps. Fetch
|
|
17
|
+
* its subscribers separately with the subscriptions endpoint.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const subscriptionList = await client.lists.retrieve(
|
|
22
|
+
* 'list_id',
|
|
23
|
+
* );
|
|
24
|
+
* ```
|
|
14
25
|
*/
|
|
15
26
|
retrieve(listID, options) {
|
|
16
27
|
return this._client.get(path `/lists/${listID}`, options);
|
|
17
28
|
}
|
|
18
29
|
/**
|
|
19
|
-
*
|
|
30
|
+
* Creates or replaces a list from a name and preferences. Subscribers are managed
|
|
31
|
+
* through the separate subscriptions endpoints.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* await client.lists.update('list_id', { name: 'name' });
|
|
36
|
+
* ```
|
|
20
37
|
*/
|
|
21
38
|
update(listID, body, options) {
|
|
22
39
|
return this._client.put(path `/lists/${listID}`, {
|
|
@@ -26,13 +43,25 @@ export class Lists extends APIResource {
|
|
|
26
43
|
});
|
|
27
44
|
}
|
|
28
45
|
/**
|
|
29
|
-
* Returns
|
|
46
|
+
* Returns the workspace's lists, filterable by a pattern to fetch a subset such as
|
|
47
|
+
* every regional list. Paged by cursor.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const lists = await client.lists.list();
|
|
52
|
+
* ```
|
|
30
53
|
*/
|
|
31
54
|
list(query = {}, options) {
|
|
32
55
|
return this._client.get('/lists', { query, ...options });
|
|
33
56
|
}
|
|
34
57
|
/**
|
|
35
|
-
*
|
|
58
|
+
* Deletes a list, halting sends that target it. A previously deleted list can be
|
|
59
|
+
* brought back with the companion restore endpoint.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* await client.lists.delete('list_id');
|
|
64
|
+
* ```
|
|
36
65
|
*/
|
|
37
66
|
delete(listID, options) {
|
|
38
67
|
return this._client.delete(path `/lists/${listID}`, {
|
|
@@ -41,7 +70,13 @@ export class Lists extends APIResource {
|
|
|
41
70
|
});
|
|
42
71
|
}
|
|
43
72
|
/**
|
|
44
|
-
*
|
|
73
|
+
* Restores a previously deleted list along with its subscribers, so a list removed
|
|
74
|
+
* by mistake can be brought back rather than rebuilt.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* await client.lists.restore('list_id');
|
|
79
|
+
* ```
|
|
45
80
|
*/
|
|
46
81
|
restore(listID, body, options) {
|
|
47
82
|
return this._client.put(path `/lists/${listID}/restore`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lists.mjs","sourceRoot":"","sources":["../../src/resources/lists/lists.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,KAAK,gBAAgB,4BAAwB;AACpD,OAAO,EAOL,aAAa,GACd,4BAAwB;AAEzB,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,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,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,MAAM,EAAE,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,UAAU,EAAE;YACtD,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA+CD,KAAK,CAAC,aAAa,GAAG,aAAa,CAAC"}
|
|
@@ -3,28 +3,69 @@ import * as Shared from "../shared.mjs";
|
|
|
3
3
|
import * as ListsAPI from "./lists.mjs";
|
|
4
4
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
|
+
/**
|
|
7
|
+
* Manage static groups of users that you subscribe explicitly, and send to them by list id or list pattern.
|
|
8
|
+
*/
|
|
6
9
|
export declare class Subscriptions extends APIResource {
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
11
|
+
* Returns the users subscribed to a list with paging, each with the preferences
|
|
12
|
+
* recorded for that subscription.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const subscriptions = await client.lists.subscriptions.list(
|
|
17
|
+
* 'list_id',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
9
20
|
*/
|
|
10
21
|
list(listID: string, query?: SubscriptionListParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionListResponse>;
|
|
11
22
|
/**
|
|
12
23
|
* Subscribes additional users to the list, without modifying existing
|
|
13
24
|
* subscriptions. If the list does not exist, it will be automatically created.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.lists.subscriptions.add('list_id', {
|
|
29
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
14
32
|
*/
|
|
15
|
-
add(listID: string,
|
|
33
|
+
add(listID: string, params: SubscriptionAddParams, options?: RequestOptions): APIPromise<void>;
|
|
16
34
|
/**
|
|
17
35
|
* Subscribes the users to the list, overwriting existing subscriptions. If the
|
|
18
36
|
* list does not exist, it will be automatically created.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.lists.subscriptions.subscribe('list_id', {
|
|
41
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
19
44
|
*/
|
|
20
45
|
subscribe(listID: string, body: SubscriptionSubscribeParams, options?: RequestOptions): APIPromise<void>;
|
|
21
46
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
47
|
+
* Subscribes one user to a list, creating the list if it does not yet exist.
|
|
48
|
+
* Optional preferences apply to this subscription only.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* await client.lists.subscriptions.subscribeUser('user_id', {
|
|
53
|
+
* list_id: 'list_id',
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
24
56
|
*/
|
|
25
57
|
subscribeUser(userID: string, params: SubscriptionSubscribeUserParams, options?: RequestOptions): APIPromise<void>;
|
|
26
58
|
/**
|
|
27
|
-
*
|
|
59
|
+
* Removes one user's subscription to a list, addressed by list id and user id. The
|
|
60
|
+
* user's profile and other subscriptions are separate resources.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* await client.lists.subscriptions.unsubscribeUser(
|
|
65
|
+
* 'user_id',
|
|
66
|
+
* { list_id: 'list_id' },
|
|
67
|
+
* );
|
|
68
|
+
* ```
|
|
28
69
|
*/
|
|
29
70
|
unsubscribeUser(userID: string, params: SubscriptionUnsubscribeUserParams, options?: RequestOptions): APIPromise<void>;
|
|
30
71
|
}
|
|
@@ -46,7 +87,26 @@ export interface SubscriptionListParams {
|
|
|
46
87
|
cursor?: string | null;
|
|
47
88
|
}
|
|
48
89
|
export interface SubscriptionAddParams {
|
|
90
|
+
/**
|
|
91
|
+
* Body param
|
|
92
|
+
*/
|
|
49
93
|
recipients: Array<ListsAPI.PutSubscriptionsRecipient>;
|
|
94
|
+
/**
|
|
95
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
96
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
97
|
+
* response from the first request without performing the operation again
|
|
98
|
+
* (including the original status code and any error). Use it to safely retry
|
|
99
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
100
|
+
* is scoped to this endpoint.
|
|
101
|
+
*/
|
|
102
|
+
'Idempotency-Key'?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
105
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
106
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
107
|
+
* maximum is 1 year.
|
|
108
|
+
*/
|
|
109
|
+
'x-idempotency-expiration'?: string;
|
|
50
110
|
}
|
|
51
111
|
export interface SubscriptionSubscribeParams {
|
|
52
112
|
recipients: Array<ListsAPI.PutSubscriptionsRecipient>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.mts","sourceRoot":"","sources":["../../src/resources/lists/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,mC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3
|
import * as ListsAPI from "./lists.js";
|
|
4
4
|
import { APIPromise } from "../../core/api-promise.js";
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Manage static groups of users that you subscribe explicitly, and send to them by list id or list pattern.
|
|
8
|
+
*/
|
|
6
9
|
export declare class Subscriptions extends APIResource {
|
|
7
10
|
/**
|
|
8
|
-
*
|
|
11
|
+
* Returns the users subscribed to a list with paging, each with the preferences
|
|
12
|
+
* recorded for that subscription.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const subscriptions = await client.lists.subscriptions.list(
|
|
17
|
+
* 'list_id',
|
|
18
|
+
* );
|
|
19
|
+
* ```
|
|
9
20
|
*/
|
|
10
21
|
list(listID: string, query?: SubscriptionListParams | null | undefined, options?: RequestOptions): APIPromise<SubscriptionListResponse>;
|
|
11
22
|
/**
|
|
12
23
|
* Subscribes additional users to the list, without modifying existing
|
|
13
24
|
* subscriptions. If the list does not exist, it will be automatically created.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* await client.lists.subscriptions.add('list_id', {
|
|
29
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
14
32
|
*/
|
|
15
|
-
add(listID: string,
|
|
33
|
+
add(listID: string, params: SubscriptionAddParams, options?: RequestOptions): APIPromise<void>;
|
|
16
34
|
/**
|
|
17
35
|
* Subscribes the users to the list, overwriting existing subscriptions. If the
|
|
18
36
|
* list does not exist, it will be automatically created.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```ts
|
|
40
|
+
* await client.lists.subscriptions.subscribe('list_id', {
|
|
41
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
19
44
|
*/
|
|
20
45
|
subscribe(listID: string, body: SubscriptionSubscribeParams, options?: RequestOptions): APIPromise<void>;
|
|
21
46
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
47
|
+
* Subscribes one user to a list, creating the list if it does not yet exist.
|
|
48
|
+
* Optional preferences apply to this subscription only.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* await client.lists.subscriptions.subscribeUser('user_id', {
|
|
53
|
+
* list_id: 'list_id',
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
24
56
|
*/
|
|
25
57
|
subscribeUser(userID: string, params: SubscriptionSubscribeUserParams, options?: RequestOptions): APIPromise<void>;
|
|
26
58
|
/**
|
|
27
|
-
*
|
|
59
|
+
* Removes one user's subscription to a list, addressed by list id and user id. The
|
|
60
|
+
* user's profile and other subscriptions are separate resources.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* await client.lists.subscriptions.unsubscribeUser(
|
|
65
|
+
* 'user_id',
|
|
66
|
+
* { list_id: 'list_id' },
|
|
67
|
+
* );
|
|
68
|
+
* ```
|
|
28
69
|
*/
|
|
29
70
|
unsubscribeUser(userID: string, params: SubscriptionUnsubscribeUserParams, options?: RequestOptions): APIPromise<void>;
|
|
30
71
|
}
|
|
@@ -46,7 +87,26 @@ export interface SubscriptionListParams {
|
|
|
46
87
|
cursor?: string | null;
|
|
47
88
|
}
|
|
48
89
|
export interface SubscriptionAddParams {
|
|
90
|
+
/**
|
|
91
|
+
* Body param
|
|
92
|
+
*/
|
|
49
93
|
recipients: Array<ListsAPI.PutSubscriptionsRecipient>;
|
|
94
|
+
/**
|
|
95
|
+
* Header param: A unique key that makes this request idempotent. If Courier
|
|
96
|
+
* receives another request with the same `Idempotency-Key`, it returns the stored
|
|
97
|
+
* response from the first request without performing the operation again
|
|
98
|
+
* (including the original status code and any error). Use it to safely retry
|
|
99
|
+
* `POST` requests after network failures without risking duplicate sends. The key
|
|
100
|
+
* is scoped to this endpoint.
|
|
101
|
+
*/
|
|
102
|
+
'Idempotency-Key'?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Header param: How long the idempotency key remains valid, as a Unix epoch
|
|
105
|
+
* timestamp in seconds or an ISO 8601 date string. Only applies when
|
|
106
|
+
* `Idempotency-Key` is provided. If omitted, the key is retained for 25 hours; the
|
|
107
|
+
* maximum is 1 year.
|
|
108
|
+
*/
|
|
109
|
+
'x-idempotency-expiration'?: string;
|
|
50
110
|
}
|
|
51
111
|
export interface SubscriptionSubscribeParams {
|
|
52
112
|
recipients: Array<ListsAPI.PutSubscriptionsRecipient>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/resources/lists/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../src/resources/lists/subscriptions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,MAAM,qBAAkB;AACpC,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE;;GAEG;AACH,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,KAAK,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;IAIvC;;;;;;;;;;OAUG;IACH,GAAG,CAAC,MAAM,EAAE,MAAM,EA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AQ,CAAC,yBAAyB,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,oBAAoB,GAAG,IAAI,CAAC;CAClD;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,aAAa,CAAC;IACrC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
|
@@ -5,9 +5,20 @@ exports.Subscriptions = 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
|
+
* Manage static groups of users that you subscribe explicitly, and send to them by list id or list pattern.
|
|
10
|
+
*/
|
|
8
11
|
class Subscriptions extends resource_1.APIResource {
|
|
9
12
|
/**
|
|
10
|
-
*
|
|
13
|
+
* Returns the users subscribed to a list with paging, each with the preferences
|
|
14
|
+
* recorded for that subscription.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const subscriptions = await client.lists.subscriptions.list(
|
|
19
|
+
* 'list_id',
|
|
20
|
+
* );
|
|
21
|
+
* ```
|
|
11
22
|
*/
|
|
12
23
|
list(listID, query = {}, options) {
|
|
13
24
|
return this._client.get((0, path_1.path) `/lists/${listID}/subscriptions`, { query, ...options });
|
|
@@ -15,17 +26,41 @@ class Subscriptions extends resource_1.APIResource {
|
|
|
15
26
|
/**
|
|
16
27
|
* Subscribes additional users to the list, without modifying existing
|
|
17
28
|
* subscriptions. If the list does not exist, it will be automatically created.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* await client.lists.subscriptions.add('list_id', {
|
|
33
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
18
36
|
*/
|
|
19
|
-
add(listID,
|
|
37
|
+
add(listID, params, options) {
|
|
38
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
|
|
20
39
|
return this._client.post((0, path_1.path) `/lists/${listID}/subscriptions`, {
|
|
21
40
|
body,
|
|
22
41
|
...options,
|
|
23
|
-
headers: (0, headers_1.buildHeaders)([
|
|
42
|
+
headers: (0, headers_1.buildHeaders)([
|
|
43
|
+
{
|
|
44
|
+
Accept: '*/*',
|
|
45
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
46
|
+
...(xIdempotencyExpiration != null ?
|
|
47
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
48
|
+
: undefined),
|
|
49
|
+
},
|
|
50
|
+
options?.headers,
|
|
51
|
+
]),
|
|
24
52
|
});
|
|
25
53
|
}
|
|
26
54
|
/**
|
|
27
55
|
* Subscribes the users to the list, overwriting existing subscriptions. If the
|
|
28
56
|
* list does not exist, it will be automatically created.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* await client.lists.subscriptions.subscribe('list_id', {
|
|
61
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
29
64
|
*/
|
|
30
65
|
subscribe(listID, body, options) {
|
|
31
66
|
return this._client.put((0, path_1.path) `/lists/${listID}/subscriptions`, {
|
|
@@ -35,8 +70,15 @@ class Subscriptions extends resource_1.APIResource {
|
|
|
35
70
|
});
|
|
36
71
|
}
|
|
37
72
|
/**
|
|
38
|
-
*
|
|
39
|
-
*
|
|
73
|
+
* Subscribes one user to a list, creating the list if it does not yet exist.
|
|
74
|
+
* Optional preferences apply to this subscription only.
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* await client.lists.subscriptions.subscribeUser('user_id', {
|
|
79
|
+
* list_id: 'list_id',
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
40
82
|
*/
|
|
41
83
|
subscribeUser(userID, params, options) {
|
|
42
84
|
const { list_id, ...body } = params;
|
|
@@ -47,7 +89,16 @@ class Subscriptions extends resource_1.APIResource {
|
|
|
47
89
|
});
|
|
48
90
|
}
|
|
49
91
|
/**
|
|
50
|
-
*
|
|
92
|
+
* Removes one user's subscription to a list, addressed by list id and user id. The
|
|
93
|
+
* user's profile and other subscriptions are separate resources.
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* ```ts
|
|
97
|
+
* await client.lists.subscriptions.unsubscribeUser(
|
|
98
|
+
* 'user_id',
|
|
99
|
+
* { list_id: 'list_id' },
|
|
100
|
+
* );
|
|
101
|
+
* ```
|
|
51
102
|
*/
|
|
52
103
|
unsubscribeUser(userID, params, options) {
|
|
53
104
|
const { list_id } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/resources/lists/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"subscriptions.js","sourceRoot":"","sources":["../../src/resources/lists/subscriptions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;OAUG;IACH,IAAI,C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ACH,aAAa,CACX,MAAc,EACd,MAAuC,EACvC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,kBAAkB,MAAM,EAAE,EAAE;YACvE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,eAAe,CACb,MAAc,EACd,MAAyC,EACzC,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,OAAO,kBAAkB,MAAM,EAAE,EAAE;YAC1E,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvHD,sCAuHC"}
|
|
@@ -2,9 +2,20 @@
|
|
|
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
|
+
* Manage static groups of users that you subscribe explicitly, and send to them by list id or list pattern.
|
|
7
|
+
*/
|
|
5
8
|
export class Subscriptions extends APIResource {
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
10
|
+
* Returns the users subscribed to a list with paging, each with the preferences
|
|
11
|
+
* recorded for that subscription.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const subscriptions = await client.lists.subscriptions.list(
|
|
16
|
+
* 'list_id',
|
|
17
|
+
* );
|
|
18
|
+
* ```
|
|
8
19
|
*/
|
|
9
20
|
list(listID, query = {}, options) {
|
|
10
21
|
return this._client.get(path `/lists/${listID}/subscriptions`, { query, ...options });
|
|
@@ -12,17 +23,41 @@ export class Subscriptions extends APIResource {
|
|
|
12
23
|
/**
|
|
13
24
|
* Subscribes additional users to the list, without modifying existing
|
|
14
25
|
* subscriptions. If the list does not exist, it will be automatically created.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* await client.lists.subscriptions.add('list_id', {
|
|
30
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
31
|
+
* });
|
|
32
|
+
* ```
|
|
15
33
|
*/
|
|
16
|
-
add(listID,
|
|
34
|
+
add(listID, params, options) {
|
|
35
|
+
const { 'Idempotency-Key': idempotencyKey, 'x-idempotency-expiration': xIdempotencyExpiration, ...body } = params;
|
|
17
36
|
return this._client.post(path `/lists/${listID}/subscriptions`, {
|
|
18
37
|
body,
|
|
19
38
|
...options,
|
|
20
|
-
headers: buildHeaders([
|
|
39
|
+
headers: buildHeaders([
|
|
40
|
+
{
|
|
41
|
+
Accept: '*/*',
|
|
42
|
+
...(idempotencyKey != null ? { 'Idempotency-Key': idempotencyKey } : undefined),
|
|
43
|
+
...(xIdempotencyExpiration != null ?
|
|
44
|
+
{ 'x-idempotency-expiration': xIdempotencyExpiration }
|
|
45
|
+
: undefined),
|
|
46
|
+
},
|
|
47
|
+
options?.headers,
|
|
48
|
+
]),
|
|
21
49
|
});
|
|
22
50
|
}
|
|
23
51
|
/**
|
|
24
52
|
* Subscribes the users to the list, overwriting existing subscriptions. If the
|
|
25
53
|
* list does not exist, it will be automatically created.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await client.lists.subscriptions.subscribe('list_id', {
|
|
58
|
+
* recipients: [{ recipientId: 'recipientId' }],
|
|
59
|
+
* });
|
|
60
|
+
* ```
|
|
26
61
|
*/
|
|
27
62
|
subscribe(listID, body, options) {
|
|
28
63
|
return this._client.put(path `/lists/${listID}/subscriptions`, {
|
|
@@ -32,8 +67,15 @@ export class Subscriptions extends APIResource {
|
|
|
32
67
|
});
|
|
33
68
|
}
|
|
34
69
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
70
|
+
* Subscribes one user to a list, creating the list if it does not yet exist.
|
|
71
|
+
* Optional preferences apply to this subscription only.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* await client.lists.subscriptions.subscribeUser('user_id', {
|
|
76
|
+
* list_id: 'list_id',
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
37
79
|
*/
|
|
38
80
|
subscribeUser(userID, params, options) {
|
|
39
81
|
const { list_id, ...body } = params;
|
|
@@ -44,7 +86,16 @@ export class Subscriptions extends APIResource {
|
|
|
44
86
|
});
|
|
45
87
|
}
|
|
46
88
|
/**
|
|
47
|
-
*
|
|
89
|
+
* Removes one user's subscription to a list, addressed by list id and user id. The
|
|
90
|
+
* user's profile and other subscriptions are separate resources.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* await client.lists.subscriptions.unsubscribeUser(
|
|
95
|
+
* 'user_id',
|
|
96
|
+
* { list_id: 'list_id' },
|
|
97
|
+
* );
|
|
98
|
+
* ```
|
|
48
99
|
*/
|
|
49
100
|
unsubscribeUser(userID, params, options) {
|
|
50
101
|
const { list_id } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptions.mjs","sourceRoot":"","sources":["../../src/resources/lists/subscriptions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,aAAc,SAAQ,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