@trycourier/courier 6.3.0 → 6.3.1
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/Client.js +1 -1
- package/api/resources/audiences/client/Client.js +5 -5
- package/api/resources/auditEvents/client/Client.js +2 -2
- package/api/resources/authTokens/client/Client.js +1 -1
- package/api/resources/automations/client/Client.js +2 -2
- package/api/resources/brands/client/Client.js +5 -5
- package/api/resources/bulk/client/Client.d.ts +5 -2
- package/api/resources/bulk/client/Client.js +16 -7
- package/api/resources/bulk/client/requests/BulkGetUsersParams.d.ts +15 -0
- package/api/resources/bulk/client/requests/BulkGetUsersParams.js +5 -0
- package/api/resources/bulk/client/requests/index.d.ts +1 -0
- package/api/resources/inbound/client/Client.js +1 -1
- package/api/resources/lists/client/Client.js +10 -10
- package/api/resources/messages/client/Client.js +6 -6
- package/api/resources/notifications/client/Client.js +6 -6
- package/api/resources/profiles/client/Client.js +8 -8
- package/api/resources/templates/client/Client.js +1 -1
- package/api/resources/tenants/client/Client.js +7 -7
- package/api/resources/translations/client/Client.js +2 -2
- package/api/resources/users/resources/preferences/client/Client.js +3 -3
- package/api/resources/users/resources/tenants/client/Client.js +5 -5
- package/api/resources/users/resources/tokens/client/Client.js +6 -6
- package/dist/Client.js +1 -1
- package/dist/api/resources/audiences/client/Client.js +5 -5
- package/dist/api/resources/auditEvents/client/Client.js +2 -2
- package/dist/api/resources/authTokens/client/Client.js +1 -1
- package/dist/api/resources/automations/client/Client.js +2 -2
- package/dist/api/resources/brands/client/Client.js +5 -5
- package/dist/api/resources/bulk/client/Client.d.ts +5 -2
- package/dist/api/resources/bulk/client/Client.js +16 -7
- package/dist/api/resources/bulk/client/requests/BulkGetUsersParams.d.ts +15 -0
- package/dist/api/resources/bulk/client/requests/BulkGetUsersParams.js +5 -0
- package/dist/api/resources/bulk/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inbound/client/Client.js +1 -1
- package/dist/api/resources/lists/client/Client.js +10 -10
- package/dist/api/resources/messages/client/Client.js +6 -6
- package/dist/api/resources/notifications/client/Client.js +6 -6
- package/dist/api/resources/profiles/client/Client.js +8 -8
- package/dist/api/resources/templates/client/Client.js +1 -1
- package/dist/api/resources/tenants/client/Client.js +7 -7
- package/dist/api/resources/translations/client/Client.js +2 -2
- package/dist/api/resources/users/resources/preferences/client/Client.js +3 -3
- package/dist/api/resources/users/resources/tenants/client/Client.js +5 -5
- package/dist/api/resources/users/resources/tokens/client/Client.js +6 -6
- package/package.json +1 -1
|
@@ -70,7 +70,7 @@ class Translations {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
73
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
73
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -130,7 +130,7 @@ class Translations {
|
|
|
130
130
|
Authorization: yield this._getAuthorizationHeader(),
|
|
131
131
|
"X-Fern-Language": "JavaScript",
|
|
132
132
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
133
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
133
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
134
134
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
135
135
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
136
136
|
},
|
|
@@ -88,7 +88,7 @@ class Preferences {
|
|
|
88
88
|
Authorization: yield this._getAuthorizationHeader(),
|
|
89
89
|
"X-Fern-Language": "JavaScript",
|
|
90
90
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
91
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
91
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
92
92
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
93
93
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
94
94
|
},
|
|
@@ -156,7 +156,7 @@ class Preferences {
|
|
|
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.3.
|
|
159
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
160
160
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
161
161
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
162
162
|
},
|
|
@@ -228,7 +228,7 @@ class Preferences {
|
|
|
228
228
|
Authorization: yield this._getAuthorizationHeader(),
|
|
229
229
|
"X-Fern-Language": "JavaScript",
|
|
230
230
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
231
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
231
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
232
232
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
233
233
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
234
234
|
},
|
|
@@ -82,7 +82,7 @@ class Tenants {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
85
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
85
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -146,7 +146,7 @@ class Tenants {
|
|
|
146
146
|
Authorization: yield this._getAuthorizationHeader(),
|
|
147
147
|
"X-Fern-Language": "JavaScript",
|
|
148
148
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
149
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
149
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
150
150
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
151
151
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
152
152
|
},
|
|
@@ -198,7 +198,7 @@ class Tenants {
|
|
|
198
198
|
Authorization: yield this._getAuthorizationHeader(),
|
|
199
199
|
"X-Fern-Language": "JavaScript",
|
|
200
200
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
201
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
201
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
202
202
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
203
203
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
204
204
|
},
|
|
@@ -250,7 +250,7 @@ class Tenants {
|
|
|
250
250
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
251
|
"X-Fern-Language": "JavaScript",
|
|
252
252
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
253
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
253
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
254
254
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
255
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
256
|
},
|
|
@@ -313,7 +313,7 @@ class Tenants {
|
|
|
313
313
|
Authorization: yield this._getAuthorizationHeader(),
|
|
314
314
|
"X-Fern-Language": "JavaScript",
|
|
315
315
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
316
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
316
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
317
317
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
318
318
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
319
319
|
},
|
|
@@ -69,7 +69,7 @@ class Tokens {
|
|
|
69
69
|
Authorization: yield this._getAuthorizationHeader(),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
72
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
72
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
},
|
|
@@ -150,7 +150,7 @@ class Tokens {
|
|
|
150
150
|
Authorization: yield this._getAuthorizationHeader(),
|
|
151
151
|
"X-Fern-Language": "JavaScript",
|
|
152
152
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
153
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
153
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
154
154
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
155
155
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
156
156
|
},
|
|
@@ -217,7 +217,7 @@ class Tokens {
|
|
|
217
217
|
Authorization: yield this._getAuthorizationHeader(),
|
|
218
218
|
"X-Fern-Language": "JavaScript",
|
|
219
219
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
220
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
220
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
221
221
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
222
222
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
223
223
|
},
|
|
@@ -277,7 +277,7 @@ class Tokens {
|
|
|
277
277
|
Authorization: yield this._getAuthorizationHeader(),
|
|
278
278
|
"X-Fern-Language": "JavaScript",
|
|
279
279
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
280
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
280
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
281
281
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
282
282
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
283
283
|
},
|
|
@@ -335,7 +335,7 @@ class Tokens {
|
|
|
335
335
|
Authorization: yield this._getAuthorizationHeader(),
|
|
336
336
|
"X-Fern-Language": "JavaScript",
|
|
337
337
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
338
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
338
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
339
339
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
340
340
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
341
341
|
},
|
|
@@ -390,7 +390,7 @@ class Tokens {
|
|
|
390
390
|
Authorization: yield this._getAuthorizationHeader(),
|
|
391
391
|
"X-Fern-Language": "JavaScript",
|
|
392
392
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
393
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
393
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
394
394
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
395
395
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
396
396
|
},
|
package/dist/Client.js
CHANGED
|
@@ -166,7 +166,7 @@ class CourierClient {
|
|
|
166
166
|
Authorization: yield this._getAuthorizationHeader(),
|
|
167
167
|
"X-Fern-Language": "JavaScript",
|
|
168
168
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
169
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
169
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
170
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
172
172
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -67,7 +67,7 @@ class Audiences {
|
|
|
67
67
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
70
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
70
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
71
71
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
72
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
73
73
|
},
|
|
@@ -127,7 +127,7 @@ class Audiences {
|
|
|
127
127
|
Authorization: yield this._getAuthorizationHeader(),
|
|
128
128
|
"X-Fern-Language": "JavaScript",
|
|
129
129
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
130
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
130
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
131
131
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
132
132
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
133
133
|
},
|
|
@@ -179,7 +179,7 @@ class Audiences {
|
|
|
179
179
|
Authorization: yield this._getAuthorizationHeader(),
|
|
180
180
|
"X-Fern-Language": "JavaScript",
|
|
181
181
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
182
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
182
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
183
183
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
184
184
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
185
185
|
},
|
|
@@ -240,7 +240,7 @@ class Audiences {
|
|
|
240
240
|
Authorization: yield this._getAuthorizationHeader(),
|
|
241
241
|
"X-Fern-Language": "JavaScript",
|
|
242
242
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
243
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
243
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
244
244
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
245
245
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
246
246
|
},
|
|
@@ -306,7 +306,7 @@ class Audiences {
|
|
|
306
306
|
Authorization: yield this._getAuthorizationHeader(),
|
|
307
307
|
"X-Fern-Language": "JavaScript",
|
|
308
308
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
309
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
309
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
310
310
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
311
311
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
312
312
|
},
|
|
@@ -73,7 +73,7 @@ class AuditEvents {
|
|
|
73
73
|
Authorization: yield this._getAuthorizationHeader(),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
76
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
76
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
77
77
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
78
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
79
|
},
|
|
@@ -125,7 +125,7 @@ class AuditEvents {
|
|
|
125
125
|
Authorization: yield this._getAuthorizationHeader(),
|
|
126
126
|
"X-Fern-Language": "JavaScript",
|
|
127
127
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
128
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
128
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
129
129
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
130
130
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
131
131
|
},
|
|
@@ -69,7 +69,7 @@ class AuthTokens {
|
|
|
69
69
|
Authorization: yield this._getAuthorizationHeader(),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
72
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
72
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
73
73
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
74
74
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
75
75
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -79,7 +79,7 @@ class Automations {
|
|
|
79
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
82
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
82
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
83
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
85
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -151,7 +151,7 @@ class Automations {
|
|
|
151
151
|
Authorization: yield this._getAuthorizationHeader(),
|
|
152
152
|
"X-Fern-Language": "JavaScript",
|
|
153
153
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
154
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
154
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
155
155
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
156
156
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
157
157
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -97,7 +97,7 @@ class Brands {
|
|
|
97
97
|
Authorization: yield this._getAuthorizationHeader(),
|
|
98
98
|
"X-Fern-Language": "JavaScript",
|
|
99
99
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
100
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
100
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
101
101
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
102
102
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
103
103
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -160,7 +160,7 @@ class Brands {
|
|
|
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.3.
|
|
163
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
164
164
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
165
165
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
166
166
|
},
|
|
@@ -218,7 +218,7 @@ class Brands {
|
|
|
218
218
|
Authorization: yield this._getAuthorizationHeader(),
|
|
219
219
|
"X-Fern-Language": "JavaScript",
|
|
220
220
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
221
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
221
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -272,7 +272,7 @@ class Brands {
|
|
|
272
272
|
Authorization: yield this._getAuthorizationHeader(),
|
|
273
273
|
"X-Fern-Language": "JavaScript",
|
|
274
274
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
275
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
275
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
276
276
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
277
277
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
278
278
|
},
|
|
@@ -356,7 +356,7 @@ class Brands {
|
|
|
356
356
|
Authorization: yield this._getAuthorizationHeader(),
|
|
357
357
|
"X-Fern-Language": "JavaScript",
|
|
358
358
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
359
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
359
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
360
360
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
361
361
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
362
362
|
},
|
|
@@ -191,13 +191,16 @@ export declare class Bulk {
|
|
|
191
191
|
* Get Bulk Job Users
|
|
192
192
|
*
|
|
193
193
|
* @param {string} jobId - A unique identifier representing the bulk job
|
|
194
|
+
* @param {Courier.BulkGetUsersParams} request
|
|
194
195
|
* @param {Bulk.RequestOptions} requestOptions - Request-specific configuration.
|
|
195
196
|
*
|
|
196
197
|
* @throws {@link Courier.BadRequestError}
|
|
197
198
|
*
|
|
198
199
|
* @example
|
|
199
|
-
* await courier.bulk.getUsers("string"
|
|
200
|
+
* await courier.bulk.getUsers("string", {
|
|
201
|
+
* cursor: "string"
|
|
202
|
+
* })
|
|
200
203
|
*/
|
|
201
|
-
getUsers(jobId: string, requestOptions?: Bulk.RequestOptions): Promise<Courier.BulkGetJobUsersResponse>;
|
|
204
|
+
getUsers(jobId: string, request?: Courier.BulkGetUsersParams, requestOptions?: Bulk.RequestOptions): Promise<Courier.BulkGetJobUsersResponse>;
|
|
202
205
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
203
206
|
}
|
|
@@ -156,7 +156,7 @@ class Bulk {
|
|
|
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.3.
|
|
159
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
160
160
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
161
161
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
162
162
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -247,7 +247,7 @@ class Bulk {
|
|
|
247
247
|
Authorization: yield this._getAuthorizationHeader(),
|
|
248
248
|
"X-Fern-Language": "JavaScript",
|
|
249
249
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
250
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
250
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
251
251
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
252
252
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
253
253
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -303,7 +303,7 @@ class Bulk {
|
|
|
303
303
|
Authorization: yield this._getAuthorizationHeader(),
|
|
304
304
|
"X-Fern-Language": "JavaScript",
|
|
305
305
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
306
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
306
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
307
307
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
308
308
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
309
309
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -363,7 +363,7 @@ class Bulk {
|
|
|
363
363
|
Authorization: yield this._getAuthorizationHeader(),
|
|
364
364
|
"X-Fern-Language": "JavaScript",
|
|
365
365
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
366
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
366
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
367
367
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
368
368
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
369
369
|
},
|
|
@@ -404,16 +404,24 @@ class Bulk {
|
|
|
404
404
|
* Get Bulk Job Users
|
|
405
405
|
*
|
|
406
406
|
* @param {string} jobId - A unique identifier representing the bulk job
|
|
407
|
+
* @param {Courier.BulkGetUsersParams} request
|
|
407
408
|
* @param {Bulk.RequestOptions} requestOptions - Request-specific configuration.
|
|
408
409
|
*
|
|
409
410
|
* @throws {@link Courier.BadRequestError}
|
|
410
411
|
*
|
|
411
412
|
* @example
|
|
412
|
-
* await courier.bulk.getUsers("string"
|
|
413
|
+
* await courier.bulk.getUsers("string", {
|
|
414
|
+
* cursor: "string"
|
|
415
|
+
* })
|
|
413
416
|
*/
|
|
414
|
-
getUsers(jobId, requestOptions) {
|
|
417
|
+
getUsers(jobId, request = {}, requestOptions) {
|
|
415
418
|
var _a, _b;
|
|
416
419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
420
|
+
const { cursor } = request;
|
|
421
|
+
const _queryParams = {};
|
|
422
|
+
if (cursor != null) {
|
|
423
|
+
_queryParams["cursor"] = cursor;
|
|
424
|
+
}
|
|
417
425
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
418
426
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CourierEnvironment.Production, `/bulk/${encodeURIComponent(jobId)}/users`),
|
|
419
427
|
method: "GET",
|
|
@@ -421,11 +429,12 @@ class Bulk {
|
|
|
421
429
|
Authorization: yield this._getAuthorizationHeader(),
|
|
422
430
|
"X-Fern-Language": "JavaScript",
|
|
423
431
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
424
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
432
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
425
433
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
426
434
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
427
435
|
},
|
|
428
436
|
contentType: "application/json",
|
|
437
|
+
queryParameters: _queryParams,
|
|
429
438
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
430
439
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
431
440
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* cursor: "string"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface BulkGetUsersParams {
|
|
11
|
+
/**
|
|
12
|
+
* A unique identifier that allows for fetching the next set of users added to the bulk job
|
|
13
|
+
*/
|
|
14
|
+
cursor?: string;
|
|
15
|
+
}
|
|
@@ -78,7 +78,7 @@ class Inbound {
|
|
|
78
78
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
81
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
81
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
82
82
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
83
83
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
84
84
|
},
|
|
@@ -80,7 +80,7 @@ class Lists {
|
|
|
80
80
|
Authorization: yield this._getAuthorizationHeader(),
|
|
81
81
|
"X-Fern-Language": "JavaScript",
|
|
82
82
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
83
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
83
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
84
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
86
|
},
|
|
@@ -139,7 +139,7 @@ class Lists {
|
|
|
139
139
|
Authorization: yield this._getAuthorizationHeader(),
|
|
140
140
|
"X-Fern-Language": "JavaScript",
|
|
141
141
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
142
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
142
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
143
143
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
144
144
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
145
145
|
},
|
|
@@ -202,7 +202,7 @@ class Lists {
|
|
|
202
202
|
Authorization: yield this._getAuthorizationHeader(),
|
|
203
203
|
"X-Fern-Language": "JavaScript",
|
|
204
204
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
205
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
205
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
206
206
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
207
207
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
208
208
|
},
|
|
@@ -254,7 +254,7 @@ class Lists {
|
|
|
254
254
|
Authorization: yield this._getAuthorizationHeader(),
|
|
255
255
|
"X-Fern-Language": "JavaScript",
|
|
256
256
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
257
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
257
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
258
258
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
259
259
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
260
260
|
},
|
|
@@ -305,7 +305,7 @@ class Lists {
|
|
|
305
305
|
Authorization: yield this._getAuthorizationHeader(),
|
|
306
306
|
"X-Fern-Language": "JavaScript",
|
|
307
307
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
308
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
308
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
309
309
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
310
310
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
311
311
|
},
|
|
@@ -366,7 +366,7 @@ class Lists {
|
|
|
366
366
|
Authorization: yield this._getAuthorizationHeader(),
|
|
367
367
|
"X-Fern-Language": "JavaScript",
|
|
368
368
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
369
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
369
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
370
370
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
371
371
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
372
372
|
},
|
|
@@ -434,7 +434,7 @@ class Lists {
|
|
|
434
434
|
Authorization: yield this._getAuthorizationHeader(),
|
|
435
435
|
"X-Fern-Language": "JavaScript",
|
|
436
436
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
437
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
437
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
438
438
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
439
439
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
440
440
|
},
|
|
@@ -502,7 +502,7 @@ class Lists {
|
|
|
502
502
|
Authorization: yield this._getAuthorizationHeader(),
|
|
503
503
|
"X-Fern-Language": "JavaScript",
|
|
504
504
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
505
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
505
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
506
506
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
507
507
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
508
508
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -568,7 +568,7 @@ class Lists {
|
|
|
568
568
|
Authorization: yield this._getAuthorizationHeader(),
|
|
569
569
|
"X-Fern-Language": "JavaScript",
|
|
570
570
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
571
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
571
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
572
572
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
573
573
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
574
574
|
},
|
|
@@ -623,7 +623,7 @@ class Lists {
|
|
|
623
623
|
Authorization: yield this._getAuthorizationHeader(),
|
|
624
624
|
"X-Fern-Language": "JavaScript",
|
|
625
625
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
626
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
626
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
627
627
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
628
628
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
629
629
|
},
|
|
@@ -141,7 +141,7 @@ class Messages {
|
|
|
141
141
|
Authorization: yield this._getAuthorizationHeader(),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
144
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
144
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
145
145
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
146
146
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
147
147
|
},
|
|
@@ -196,7 +196,7 @@ class Messages {
|
|
|
196
196
|
Authorization: yield this._getAuthorizationHeader(),
|
|
197
197
|
"X-Fern-Language": "JavaScript",
|
|
198
198
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
199
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
199
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
200
200
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
201
201
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
202
202
|
},
|
|
@@ -254,7 +254,7 @@ class Messages {
|
|
|
254
254
|
Authorization: yield this._getAuthorizationHeader(),
|
|
255
255
|
"X-Fern-Language": "JavaScript",
|
|
256
256
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
257
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
257
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
258
258
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
259
259
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
260
260
|
"Idempotency-Key": (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey) != null ? requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.idempotencyKey : undefined,
|
|
@@ -318,7 +318,7 @@ class Messages {
|
|
|
318
318
|
Authorization: yield this._getAuthorizationHeader(),
|
|
319
319
|
"X-Fern-Language": "JavaScript",
|
|
320
320
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
321
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
321
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
322
322
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
323
323
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
324
324
|
},
|
|
@@ -378,7 +378,7 @@ class Messages {
|
|
|
378
378
|
Authorization: yield this._getAuthorizationHeader(),
|
|
379
379
|
"X-Fern-Language": "JavaScript",
|
|
380
380
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
381
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
381
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
382
382
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
383
383
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
384
384
|
},
|
|
@@ -434,7 +434,7 @@ class Messages {
|
|
|
434
434
|
Authorization: yield this._getAuthorizationHeader(),
|
|
435
435
|
"X-Fern-Language": "JavaScript",
|
|
436
436
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
437
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
437
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
438
438
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
439
439
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
440
440
|
},
|
|
@@ -75,7 +75,7 @@ class Notifications {
|
|
|
75
75
|
Authorization: yield this._getAuthorizationHeader(),
|
|
76
76
|
"X-Fern-Language": "JavaScript",
|
|
77
77
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
78
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
78
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
79
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
81
|
},
|
|
@@ -125,7 +125,7 @@ class Notifications {
|
|
|
125
125
|
Authorization: yield this._getAuthorizationHeader(),
|
|
126
126
|
"X-Fern-Language": "JavaScript",
|
|
127
127
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
128
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
128
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
129
129
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
130
130
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
131
131
|
},
|
|
@@ -174,7 +174,7 @@ class Notifications {
|
|
|
174
174
|
Authorization: yield this._getAuthorizationHeader(),
|
|
175
175
|
"X-Fern-Language": "JavaScript",
|
|
176
176
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
177
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
177
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
178
178
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
179
179
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
180
180
|
},
|
|
@@ -224,7 +224,7 @@ class Notifications {
|
|
|
224
224
|
Authorization: yield this._getAuthorizationHeader(),
|
|
225
225
|
"X-Fern-Language": "JavaScript",
|
|
226
226
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
227
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
227
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
228
228
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
229
229
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
230
230
|
},
|
|
@@ -281,7 +281,7 @@ class Notifications {
|
|
|
281
281
|
Authorization: yield this._getAuthorizationHeader(),
|
|
282
282
|
"X-Fern-Language": "JavaScript",
|
|
283
283
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
284
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
284
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
285
285
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
286
286
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
287
287
|
},
|
|
@@ -332,7 +332,7 @@ class Notifications {
|
|
|
332
332
|
Authorization: yield this._getAuthorizationHeader(),
|
|
333
333
|
"X-Fern-Language": "JavaScript",
|
|
334
334
|
"X-Fern-SDK-Name": "@trycourier/courier",
|
|
335
|
-
"X-Fern-SDK-Version": "v6.3.
|
|
335
|
+
"X-Fern-SDK-Version": "v6.3.1",
|
|
336
336
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
337
337
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
338
338
|
},
|