@trycourier/courier 6.0.3 → 6.0.4

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.
Files changed (55) hide show
  1. package/Client.js +1 -1
  2. package/api/resources/audiences/client/Client.js +5 -5
  3. package/api/resources/auditEvents/client/Client.js +2 -2
  4. package/api/resources/authTokens/client/Client.js +1 -1
  5. package/api/resources/automations/client/Client.js +2 -2
  6. package/api/resources/brands/client/Client.js +5 -5
  7. package/api/resources/bulk/client/Client.js +5 -5
  8. package/api/resources/lists/client/Client.js +10 -10
  9. package/api/resources/messages/client/Client.js +6 -6
  10. package/api/resources/notifications/client/Client.js +8 -8
  11. package/api/resources/profiles/client/Client.d.ts +1 -1
  12. package/api/resources/profiles/client/Client.js +8 -8
  13. package/api/resources/profiles/types/GetListSubscriptionsList.d.ts +14 -0
  14. package/api/resources/profiles/types/GetListSubscriptionsList.js +5 -0
  15. package/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +9 -0
  16. package/api/resources/profiles/types/GetListSubscriptionsResponse.js +5 -0
  17. package/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -2
  18. package/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +8 -0
  19. package/api/resources/profiles/types/SubscribeToListsRequestListObject.js +5 -0
  20. package/api/resources/profiles/types/index.d.ts +3 -0
  21. package/api/resources/profiles/types/index.js +3 -0
  22. package/api/resources/templates/client/Client.js +1 -1
  23. package/api/resources/tenants/client/Client.js +4 -4
  24. package/api/resources/translations/client/Client.js +2 -2
  25. package/api/resources/users/resources/preferences/client/Client.js +3 -3
  26. package/api/resources/users/resources/tenants/client/Client.js +4 -4
  27. package/api/resources/users/resources/tokens/client/Client.js +5 -5
  28. package/dist/Client.js +1 -1
  29. package/dist/api/resources/audiences/client/Client.js +5 -5
  30. package/dist/api/resources/auditEvents/client/Client.js +2 -2
  31. package/dist/api/resources/authTokens/client/Client.js +1 -1
  32. package/dist/api/resources/automations/client/Client.js +2 -2
  33. package/dist/api/resources/brands/client/Client.js +5 -5
  34. package/dist/api/resources/bulk/client/Client.js +5 -5
  35. package/dist/api/resources/lists/client/Client.js +10 -10
  36. package/dist/api/resources/messages/client/Client.js +6 -6
  37. package/dist/api/resources/notifications/client/Client.js +8 -8
  38. package/dist/api/resources/profiles/client/Client.d.ts +1 -1
  39. package/dist/api/resources/profiles/client/Client.js +8 -8
  40. package/dist/api/resources/profiles/types/GetListSubscriptionsList.d.ts +14 -0
  41. package/dist/api/resources/profiles/types/GetListSubscriptionsList.js +5 -0
  42. package/dist/api/resources/profiles/types/GetListSubscriptionsResponse.d.ts +9 -0
  43. package/dist/api/resources/profiles/types/GetListSubscriptionsResponse.js +5 -0
  44. package/dist/api/resources/profiles/types/SubscribeToListsRequest.d.ts +1 -2
  45. package/dist/api/resources/profiles/types/SubscribeToListsRequestListObject.d.ts +8 -0
  46. package/dist/api/resources/profiles/types/SubscribeToListsRequestListObject.js +5 -0
  47. package/dist/api/resources/profiles/types/index.d.ts +3 -0
  48. package/dist/api/resources/profiles/types/index.js +3 -0
  49. package/dist/api/resources/templates/client/Client.js +1 -1
  50. package/dist/api/resources/tenants/client/Client.js +4 -4
  51. package/dist/api/resources/translations/client/Client.js +2 -2
  52. package/dist/api/resources/users/resources/preferences/client/Client.js +3 -3
  53. package/dist/api/resources/users/resources/tenants/client/Client.js +4 -4
  54. package/dist/api/resources/users/resources/tokens/client/Client.js +5 -5
  55. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface GetListSubscriptionsList {
6
+ id: string;
7
+ /** List name */
8
+ name: string;
9
+ /** The date/time of when the list was created. Represented as a string in ISO format. */
10
+ created: string;
11
+ /** The date/time of when the list was updated. Represented as a string in ISO format. */
12
+ updated: string;
13
+ preferences?: Courier.RecipientPreferences;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface GetListSubscriptionsResponse {
6
+ paging: Courier.Paging;
7
+ /** An array of lists */
8
+ results: Courier.GetListSubscriptionsList[];
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,5 @@
3
3
  */
4
4
  import * as Courier from "../../..";
5
5
  export interface SubscribeToListsRequest {
6
- lists?: Courier.List[];
7
- preferences?: Courier.RecipientPreferences;
6
+ lists: Courier.SubscribeToListsRequestListObject[];
8
7
  }
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Courier from "../../..";
5
+ export interface SubscribeToListsRequestListObject {
6
+ listId: string;
7
+ preferences?: Courier.RecipientPreferences;
8
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,5 +21,8 @@ export * from "./ProfileGetResponse";
21
21
  export * from "./MergeProfileResponse";
22
22
  export * from "./ReplaceProfileResponse";
23
23
  export * from "./SubscribeToListsRequest";
24
+ export * from "./SubscribeToListsRequestListObject";
24
25
  export * from "./SubscribeToListsResponse";
25
26
  export * from "./DeleteListSubscriptionResponse";
27
+ export * from "./GetListSubscriptionsList";
28
+ export * from "./GetListSubscriptionsResponse";
@@ -37,5 +37,8 @@ __exportStar(require("./ProfileGetResponse"), exports);
37
37
  __exportStar(require("./MergeProfileResponse"), exports);
38
38
  __exportStar(require("./ReplaceProfileResponse"), exports);
39
39
  __exportStar(require("./SubscribeToListsRequest"), exports);
40
+ __exportStar(require("./SubscribeToListsRequestListObject"), exports);
40
41
  __exportStar(require("./SubscribeToListsResponse"), exports);
41
42
  __exportStar(require("./DeleteListSubscriptionResponse"), exports);
43
+ __exportStar(require("./GetListSubscriptionsList"), exports);
44
+ __exportStar(require("./GetListSubscriptionsResponse"), exports);
@@ -65,7 +65,7 @@ class Templates {
65
65
  Authorization: yield this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "@trycourier/courier",
68
- "X-Fern-SDK-Version": "v6.0.3",
68
+ "X-Fern-SDK-Version": "v6.0.4",
69
69
  },
70
70
  contentType: "application/json",
71
71
  queryParameters: _queryParams,
@@ -61,7 +61,7 @@ class Tenants {
61
61
  Authorization: yield this._getAuthorizationHeader(),
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "@trycourier/courier",
64
- "X-Fern-SDK-Version": "v6.0.3",
64
+ "X-Fern-SDK-Version": "v6.0.4",
65
65
  },
66
66
  contentType: "application/json",
67
67
  body: request,
@@ -110,7 +110,7 @@ class Tenants {
110
110
  Authorization: yield this._getAuthorizationHeader(),
111
111
  "X-Fern-Language": "JavaScript",
112
112
  "X-Fern-SDK-Name": "@trycourier/courier",
113
- "X-Fern-SDK-Version": "v6.0.3",
113
+ "X-Fern-SDK-Version": "v6.0.4",
114
114
  },
115
115
  contentType: "application/json",
116
116
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -155,7 +155,7 @@ class Tenants {
155
155
  Authorization: yield this._getAuthorizationHeader(),
156
156
  "X-Fern-Language": "JavaScript",
157
157
  "X-Fern-SDK-Name": "@trycourier/courier",
158
- "X-Fern-SDK-Version": "v6.0.3",
158
+ "X-Fern-SDK-Version": "v6.0.4",
159
159
  },
160
160
  contentType: "application/json",
161
161
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -195,7 +195,7 @@ class Tenants {
195
195
  Authorization: yield this._getAuthorizationHeader(),
196
196
  "X-Fern-Language": "JavaScript",
197
197
  "X-Fern-SDK-Name": "@trycourier/courier",
198
- "X-Fern-SDK-Version": "v6.0.3",
198
+ "X-Fern-SDK-Version": "v6.0.4",
199
199
  },
200
200
  contentType: "application/json",
201
201
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -62,7 +62,7 @@ class Translations {
62
62
  Authorization: yield this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "@trycourier/courier",
65
- "X-Fern-SDK-Version": "v6.0.3",
65
+ "X-Fern-SDK-Version": "v6.0.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Translations {
111
111
  Authorization: yield this._getAuthorizationHeader(),
112
112
  "X-Fern-Language": "JavaScript",
113
113
  "X-Fern-SDK-Name": "@trycourier/courier",
114
- "X-Fern-SDK-Version": "v6.0.3",
114
+ "X-Fern-SDK-Version": "v6.0.4",
115
115
  },
116
116
  contentType: "application/json",
117
117
  body: request,
@@ -62,7 +62,7 @@ class Preferences {
62
62
  Authorization: yield this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "@trycourier/courier",
65
- "X-Fern-SDK-Version": "v6.0.3",
65
+ "X-Fern-SDK-Version": "v6.0.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Preferences {
111
111
  Authorization: yield this._getAuthorizationHeader(),
112
112
  "X-Fern-Language": "JavaScript",
113
113
  "X-Fern-SDK-Name": "@trycourier/courier",
114
- "X-Fern-SDK-Version": "v6.0.3",
114
+ "X-Fern-SDK-Version": "v6.0.4",
115
115
  },
116
116
  contentType: "application/json",
117
117
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -160,7 +160,7 @@ class Preferences {
160
160
  Authorization: yield this._getAuthorizationHeader(),
161
161
  "X-Fern-Language": "JavaScript",
162
162
  "X-Fern-SDK-Name": "@trycourier/courier",
163
- "X-Fern-SDK-Version": "v6.0.3",
163
+ "X-Fern-SDK-Version": "v6.0.4",
164
164
  },
165
165
  contentType: "application/json",
166
166
  body: request,
@@ -64,7 +64,7 @@ class Tenants {
64
64
  Authorization: yield this._getAuthorizationHeader(),
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "@trycourier/courier",
67
- "X-Fern-SDK-Version": "v6.0.3",
67
+ "X-Fern-SDK-Version": "v6.0.4",
68
68
  },
69
69
  contentType: "application/json",
70
70
  body: request,
@@ -112,7 +112,7 @@ class Tenants {
112
112
  Authorization: yield this._getAuthorizationHeader(),
113
113
  "X-Fern-Language": "JavaScript",
114
114
  "X-Fern-SDK-Name": "@trycourier/courier",
115
- "X-Fern-SDK-Version": "v6.0.3",
115
+ "X-Fern-SDK-Version": "v6.0.4",
116
116
  },
117
117
  contentType: "application/json",
118
118
  body: request,
@@ -156,7 +156,7 @@ class Tenants {
156
156
  Authorization: yield this._getAuthorizationHeader(),
157
157
  "X-Fern-Language": "JavaScript",
158
158
  "X-Fern-SDK-Name": "@trycourier/courier",
159
- "X-Fern-SDK-Version": "v6.0.3",
159
+ "X-Fern-SDK-Version": "v6.0.4",
160
160
  },
161
161
  contentType: "application/json",
162
162
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -207,7 +207,7 @@ class Tenants {
207
207
  Authorization: yield this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "@trycourier/courier",
210
- "X-Fern-SDK-Version": "v6.0.3",
210
+ "X-Fern-SDK-Version": "v6.0.4",
211
211
  },
212
212
  contentType: "application/json",
213
213
  queryParameters: _queryParams,
@@ -62,7 +62,7 @@ class Tokens {
62
62
  Authorization: yield this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "@trycourier/courier",
65
- "X-Fern-SDK-Version": "v6.0.3",
65
+ "X-Fern-SDK-Version": "v6.0.4",
66
66
  },
67
67
  contentType: "application/json",
68
68
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class Tokens {
111
111
  Authorization: yield this._getAuthorizationHeader(),
112
112
  "X-Fern-Language": "JavaScript",
113
113
  "X-Fern-SDK-Name": "@trycourier/courier",
114
- "X-Fern-SDK-Version": "v6.0.3",
114
+ "X-Fern-SDK-Version": "v6.0.4",
115
115
  },
116
116
  contentType: "application/json",
117
117
  body: request,
@@ -161,7 +161,7 @@ class Tokens {
161
161
  Authorization: yield this._getAuthorizationHeader(),
162
162
  "X-Fern-Language": "JavaScript",
163
163
  "X-Fern-SDK-Name": "@trycourier/courier",
164
- "X-Fern-SDK-Version": "v6.0.3",
164
+ "X-Fern-SDK-Version": "v6.0.4",
165
165
  },
166
166
  contentType: "application/json",
167
167
  body: request,
@@ -211,7 +211,7 @@ class Tokens {
211
211
  Authorization: yield this._getAuthorizationHeader(),
212
212
  "X-Fern-Language": "JavaScript",
213
213
  "X-Fern-SDK-Name": "@trycourier/courier",
214
- "X-Fern-SDK-Version": "v6.0.3",
214
+ "X-Fern-SDK-Version": "v6.0.4",
215
215
  },
216
216
  contentType: "application/json",
217
217
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -260,7 +260,7 @@ class Tokens {
260
260
  Authorization: yield this._getAuthorizationHeader(),
261
261
  "X-Fern-Language": "JavaScript",
262
262
  "X-Fern-SDK-Name": "@trycourier/courier",
263
- "X-Fern-SDK-Version": "v6.0.3",
263
+ "X-Fern-SDK-Version": "v6.0.4",
264
264
  },
265
265
  contentType: "application/json",
266
266
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/courier",
3
- "version": "v6.0.3",
3
+ "version": "v6.0.4",
4
4
  "private": false,
5
5
  "repository": "https://github.com/trycourier/courier-node",
6
6
  "main": "./index.js",