@schedulin/sdk 0.3.1 → 0.4.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/cjs/api/errors/BadRequestError.d.ts +7 -0
- package/cjs/api/errors/BadRequestError.js +54 -0
- package/cjs/api/errors/ConflictError.d.ts +7 -0
- package/cjs/api/errors/ConflictError.js +54 -0
- package/cjs/api/errors/ForbiddenError.d.ts +7 -0
- package/cjs/api/errors/ForbiddenError.js +54 -0
- package/cjs/api/errors/NotFoundError.d.ts +7 -0
- package/cjs/api/errors/NotFoundError.js +54 -0
- package/cjs/api/errors/PaymentRequiredError.d.ts +7 -0
- package/cjs/api/errors/PaymentRequiredError.js +54 -0
- package/cjs/api/errors/TooManyRequestsError.d.ts +7 -0
- package/cjs/api/errors/TooManyRequestsError.js +54 -0
- package/cjs/api/errors/UnprocessableEntityError.d.ts +7 -0
- package/cjs/api/errors/UnprocessableEntityError.js +54 -0
- package/cjs/api/errors/index.d.ts +7 -0
- package/cjs/api/errors/index.js +7 -0
- package/cjs/api/resources/ai/client/Client.d.ts +11 -2
- package/cjs/api/resources/ai/client/Client.js +27 -0
- package/cjs/api/resources/ai/index.d.ts +1 -0
- package/cjs/api/resources/ai/index.js +1 -0
- package/cjs/api/resources/ai/types/GenerateImageAiResponse.d.ts +3 -0
- package/cjs/api/resources/ai/types/GenerateImageAiResponse.js +3 -0
- package/cjs/api/resources/ai/types/index.d.ts +1 -0
- package/cjs/api/resources/ai/types/index.js +17 -0
- package/cjs/api/resources/index.d.ts +2 -0
- package/cjs/api/resources/index.js +2 -0
- package/cjs/api/resources/media/client/Client.d.ts +58 -8
- package/cjs/api/resources/media/client/Client.js +158 -3
- package/cjs/api/resources/media/client/requests/UpdateMediaRequest.d.ts +2 -3
- package/cjs/api/resources/media/types/CreateUploadLinkMediaResponse.d.ts +4 -0
- package/cjs/api/resources/media/types/CreateUploadLinkMediaResponse.js +3 -0
- package/cjs/api/resources/media/types/DeleteMediaResponse.d.ts +4 -0
- package/cjs/api/resources/media/types/DeleteMediaResponse.js +3 -0
- package/cjs/api/resources/media/types/SetTagsMediaResponse.d.ts +4 -0
- package/cjs/api/resources/media/types/SetTagsMediaResponse.js +3 -0
- package/cjs/api/resources/media/types/index.d.ts +3 -0
- package/cjs/api/resources/media/types/index.js +3 -0
- package/cjs/api/resources/platforms/client/Client.d.ts +4 -0
- package/cjs/api/resources/platforms/client/Client.js +12 -0
- package/cjs/api/resources/posts/client/Client.d.ts +56 -1
- package/cjs/api/resources/posts/client/Client.js +165 -0
- package/cjs/api/resources/posts/types/CountByTabPostsResponse.d.ts +7 -0
- package/cjs/api/resources/posts/types/CountByTabPostsResponse.js +3 -0
- package/cjs/api/resources/posts/types/CreatePostsResponse.d.ts +1 -0
- package/cjs/api/resources/posts/types/index.d.ts +1 -0
- package/cjs/api/resources/posts/types/index.js +1 -0
- package/cjs/api/resources/socialAccounts/client/Client.d.ts +57 -0
- package/cjs/api/resources/socialAccounts/client/Client.js +171 -0
- package/cjs/api/resources/tags/client/Client.d.ts +21 -0
- package/cjs/api/resources/tags/client/Client.js +63 -0
- package/cjs/api/resources/webhooks/client/Client.d.ts +51 -8
- package/cjs/api/resources/webhooks/client/Client.js +133 -1
- package/cjs/api/resources/webhooks/index.d.ts +1 -0
- package/cjs/api/resources/webhooks/index.js +1 -0
- package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.d.ts +3 -0
- package/cjs/api/resources/webhooks/types/DeleteWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.ts +4 -0
- package/cjs/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/ListWebhooksResponse.d.ts +4 -0
- package/cjs/api/resources/webhooks/types/ListWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/TestWebhooksResponse.d.ts +3 -0
- package/cjs/api/resources/webhooks/types/TestWebhooksResponse.js +3 -0
- package/cjs/api/resources/webhooks/types/index.d.ts +4 -0
- package/cjs/api/resources/webhooks/types/index.js +20 -0
- package/cjs/api/types/AiGeneration.d.ts +27 -0
- package/cjs/api/types/AiGeneration.js +14 -0
- package/cjs/api/types/ErrorResponse.d.ts +14 -2
- package/cjs/api/types/Media.d.ts +4 -0
- package/cjs/api/types/MediaUpdate.d.ts +1 -1
- package/cjs/api/types/Post.d.ts +3 -0
- package/cjs/api/types/PostMedia.d.ts +14 -0
- package/cjs/api/types/PostMedia.js +3 -0
- package/cjs/api/types/PostWithRelations.d.ts +5 -68
- package/cjs/api/types/PostWithRelations.js +0 -54
- package/cjs/api/types/RateLimitErrorResponse.d.ts +17 -0
- package/cjs/api/types/RateLimitErrorResponse.js +3 -0
- package/cjs/api/types/ValidationErrorResponse.d.ts +17 -0
- package/cjs/api/types/ValidationErrorResponse.js +3 -0
- package/cjs/api/types/WebhookDelivery.d.ts +20 -0
- package/cjs/api/types/WebhookDelivery.js +12 -0
- package/cjs/api/types/WebhookEndpoint.d.ts +26 -0
- package/cjs/api/types/WebhookEndpoint.js +16 -0
- package/cjs/api/types/index.d.ts +6 -0
- package/cjs/api/types/index.js +6 -0
- package/esm/api/errors/BadRequestError.d.mts +7 -0
- package/esm/api/errors/BadRequestError.mjs +17 -0
- package/esm/api/errors/ConflictError.d.mts +7 -0
- package/esm/api/errors/ConflictError.mjs +17 -0
- package/esm/api/errors/ForbiddenError.d.mts +7 -0
- package/esm/api/errors/ForbiddenError.mjs +17 -0
- package/esm/api/errors/NotFoundError.d.mts +7 -0
- package/esm/api/errors/NotFoundError.mjs +17 -0
- package/esm/api/errors/PaymentRequiredError.d.mts +7 -0
- package/esm/api/errors/PaymentRequiredError.mjs +17 -0
- package/esm/api/errors/TooManyRequestsError.d.mts +7 -0
- package/esm/api/errors/TooManyRequestsError.mjs +17 -0
- package/esm/api/errors/UnprocessableEntityError.d.mts +7 -0
- package/esm/api/errors/UnprocessableEntityError.mjs +17 -0
- package/esm/api/errors/index.d.mts +7 -0
- package/esm/api/errors/index.mjs +7 -0
- package/esm/api/resources/ai/client/Client.d.mts +11 -2
- package/esm/api/resources/ai/client/Client.mjs +27 -0
- package/esm/api/resources/ai/index.d.mts +1 -0
- package/esm/api/resources/ai/index.mjs +1 -0
- package/esm/api/resources/ai/types/GenerateImageAiResponse.d.mts +3 -0
- package/esm/api/resources/ai/types/GenerateImageAiResponse.mjs +2 -0
- package/esm/api/resources/ai/types/index.d.mts +1 -0
- package/esm/api/resources/ai/types/index.mjs +1 -0
- package/esm/api/resources/index.d.mts +2 -0
- package/esm/api/resources/index.mjs +2 -0
- package/esm/api/resources/media/client/Client.d.mts +58 -8
- package/esm/api/resources/media/client/Client.mjs +158 -3
- package/esm/api/resources/media/client/requests/UpdateMediaRequest.d.mts +2 -3
- package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.d.mts +4 -0
- package/esm/api/resources/media/types/CreateUploadLinkMediaResponse.mjs +2 -0
- package/esm/api/resources/media/types/DeleteMediaResponse.d.mts +4 -0
- package/esm/api/resources/media/types/DeleteMediaResponse.mjs +2 -0
- package/esm/api/resources/media/types/SetTagsMediaResponse.d.mts +4 -0
- package/esm/api/resources/media/types/SetTagsMediaResponse.mjs +2 -0
- package/esm/api/resources/media/types/index.d.mts +3 -0
- package/esm/api/resources/media/types/index.mjs +3 -0
- package/esm/api/resources/platforms/client/Client.d.mts +4 -0
- package/esm/api/resources/platforms/client/Client.mjs +12 -0
- package/esm/api/resources/posts/client/Client.d.mts +56 -1
- package/esm/api/resources/posts/client/Client.mjs +165 -0
- package/esm/api/resources/posts/types/CountByTabPostsResponse.d.mts +7 -0
- package/esm/api/resources/posts/types/CountByTabPostsResponse.mjs +2 -0
- package/esm/api/resources/posts/types/CreatePostsResponse.d.mts +1 -0
- package/esm/api/resources/posts/types/index.d.mts +1 -0
- package/esm/api/resources/posts/types/index.mjs +1 -0
- package/esm/api/resources/socialAccounts/client/Client.d.mts +57 -0
- package/esm/api/resources/socialAccounts/client/Client.mjs +171 -0
- package/esm/api/resources/tags/client/Client.d.mts +21 -0
- package/esm/api/resources/tags/client/Client.mjs +63 -0
- package/esm/api/resources/webhooks/client/Client.d.mts +51 -8
- package/esm/api/resources/webhooks/client/Client.mjs +133 -1
- package/esm/api/resources/webhooks/index.d.mts +1 -0
- package/esm/api/resources/webhooks/index.mjs +1 -0
- package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.d.mts +3 -0
- package/esm/api/resources/webhooks/types/DeleteWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.d.mts +4 -0
- package/esm/api/resources/webhooks/types/ListDeliveriesWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/ListWebhooksResponse.d.mts +4 -0
- package/esm/api/resources/webhooks/types/ListWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/TestWebhooksResponse.d.mts +3 -0
- package/esm/api/resources/webhooks/types/TestWebhooksResponse.mjs +2 -0
- package/esm/api/resources/webhooks/types/index.d.mts +4 -0
- package/esm/api/resources/webhooks/types/index.mjs +4 -0
- package/esm/api/types/AiGeneration.d.mts +27 -0
- package/esm/api/types/AiGeneration.mjs +11 -0
- package/esm/api/types/ErrorResponse.d.mts +14 -2
- package/esm/api/types/Media.d.mts +4 -0
- package/esm/api/types/MediaUpdate.d.mts +1 -1
- package/esm/api/types/Post.d.mts +3 -0
- package/esm/api/types/PostMedia.d.mts +14 -0
- package/esm/api/types/PostMedia.mjs +2 -0
- package/esm/api/types/PostWithRelations.d.mts +5 -68
- package/esm/api/types/PostWithRelations.mjs +1 -53
- package/esm/api/types/RateLimitErrorResponse.d.mts +17 -0
- package/esm/api/types/RateLimitErrorResponse.mjs +2 -0
- package/esm/api/types/ValidationErrorResponse.d.mts +17 -0
- package/esm/api/types/ValidationErrorResponse.mjs +2 -0
- package/esm/api/types/WebhookDelivery.d.mts +20 -0
- package/esm/api/types/WebhookDelivery.mjs +9 -0
- package/esm/api/types/WebhookEndpoint.d.mts +26 -0
- package/esm/api/types/WebhookEndpoint.mjs +13 -0
- package/esm/api/types/index.d.mts +6 -0
- package/esm/api/types/index.mjs +6 -0
- package/package.json +1 -1
|
@@ -72,7 +72,11 @@ class SocialAccountsClient {
|
|
|
72
72
|
*
|
|
73
73
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
74
|
*
|
|
75
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
75
76
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
77
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
78
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
79
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
76
80
|
* @throws {@link Schedulin.InternalServerError}
|
|
77
81
|
* @throws {@link errors.SchedulinError}
|
|
78
82
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -104,8 +108,16 @@ class SocialAccountsClient {
|
|
|
104
108
|
}
|
|
105
109
|
if (_response.error.reason === "status-code") {
|
|
106
110
|
switch (_response.error.statusCode) {
|
|
111
|
+
case 400:
|
|
112
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
107
113
|
case 401:
|
|
108
114
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
115
|
+
case 403:
|
|
116
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 422:
|
|
118
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
119
|
+
case 429:
|
|
120
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
109
121
|
case 500:
|
|
110
122
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
111
123
|
default:
|
|
@@ -125,7 +137,12 @@ class SocialAccountsClient {
|
|
|
125
137
|
* @param {Schedulin.ListWhopCompaniesSocialAccountsRequest} request
|
|
126
138
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
127
139
|
*
|
|
140
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
128
141
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
142
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
143
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
144
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
145
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
129
146
|
* @throws {@link Schedulin.InternalServerError}
|
|
130
147
|
* @throws {@link errors.SchedulinError}
|
|
131
148
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -163,8 +180,18 @@ class SocialAccountsClient {
|
|
|
163
180
|
}
|
|
164
181
|
if (_response.error.reason === "status-code") {
|
|
165
182
|
switch (_response.error.statusCode) {
|
|
183
|
+
case 400:
|
|
184
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
166
185
|
case 401:
|
|
167
186
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
187
|
+
case 403:
|
|
188
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
189
|
+
case 404:
|
|
190
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
191
|
+
case 422:
|
|
192
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
193
|
+
case 429:
|
|
194
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
168
195
|
case 500:
|
|
169
196
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
170
197
|
default:
|
|
@@ -184,7 +211,12 @@ class SocialAccountsClient {
|
|
|
184
211
|
* @param {Schedulin.ListWhopForumsSocialAccountsRequest} request
|
|
185
212
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
213
|
*
|
|
214
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
187
215
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
216
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
217
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
218
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
219
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
188
220
|
* @throws {@link Schedulin.InternalServerError}
|
|
189
221
|
* @throws {@link errors.SchedulinError}
|
|
190
222
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -230,8 +262,18 @@ class SocialAccountsClient {
|
|
|
230
262
|
}
|
|
231
263
|
if (_response.error.reason === "status-code") {
|
|
232
264
|
switch (_response.error.statusCode) {
|
|
265
|
+
case 400:
|
|
266
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
233
267
|
case 401:
|
|
234
268
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
269
|
+
case 403:
|
|
270
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
271
|
+
case 404:
|
|
272
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
273
|
+
case 422:
|
|
274
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
275
|
+
case 429:
|
|
276
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
235
277
|
case 500:
|
|
236
278
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
237
279
|
default:
|
|
@@ -251,7 +293,12 @@ class SocialAccountsClient {
|
|
|
251
293
|
* @param {Schedulin.ListDiscordChannelsSocialAccountsRequest} request
|
|
252
294
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
253
295
|
*
|
|
296
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
254
297
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
298
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
299
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
300
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
301
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
255
302
|
* @throws {@link Schedulin.InternalServerError}
|
|
256
303
|
* @throws {@link errors.SchedulinError}
|
|
257
304
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -289,8 +336,18 @@ class SocialAccountsClient {
|
|
|
289
336
|
}
|
|
290
337
|
if (_response.error.reason === "status-code") {
|
|
291
338
|
switch (_response.error.statusCode) {
|
|
339
|
+
case 400:
|
|
340
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
292
341
|
case 401:
|
|
293
342
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
343
|
+
case 403:
|
|
344
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
345
|
+
case 404:
|
|
346
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
347
|
+
case 422:
|
|
348
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
349
|
+
case 429:
|
|
350
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
294
351
|
case 500:
|
|
295
352
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
296
353
|
default:
|
|
@@ -310,7 +367,12 @@ class SocialAccountsClient {
|
|
|
310
367
|
* @param {Schedulin.ListSlackChannelsSocialAccountsRequest} request
|
|
311
368
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
312
369
|
*
|
|
370
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
313
371
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
372
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
373
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
374
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
375
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
314
376
|
* @throws {@link Schedulin.InternalServerError}
|
|
315
377
|
* @throws {@link errors.SchedulinError}
|
|
316
378
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -348,8 +410,18 @@ class SocialAccountsClient {
|
|
|
348
410
|
}
|
|
349
411
|
if (_response.error.reason === "status-code") {
|
|
350
412
|
switch (_response.error.statusCode) {
|
|
413
|
+
case 400:
|
|
414
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
351
415
|
case 401:
|
|
352
416
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
417
|
+
case 403:
|
|
418
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
419
|
+
case 404:
|
|
420
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
421
|
+
case 422:
|
|
422
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
423
|
+
case 429:
|
|
424
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
353
425
|
case 500:
|
|
354
426
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
355
427
|
default:
|
|
@@ -369,7 +441,13 @@ class SocialAccountsClient {
|
|
|
369
441
|
* @param {Schedulin.UpdateSocialAccountsRequest} request
|
|
370
442
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
371
443
|
*
|
|
444
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
372
445
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
446
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
447
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
448
|
+
* @throws {@link Schedulin.ConflictError}
|
|
449
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
450
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
373
451
|
* @throws {@link Schedulin.InternalServerError}
|
|
374
452
|
* @throws {@link errors.SchedulinError}
|
|
375
453
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -410,8 +488,20 @@ class SocialAccountsClient {
|
|
|
410
488
|
}
|
|
411
489
|
if (_response.error.reason === "status-code") {
|
|
412
490
|
switch (_response.error.statusCode) {
|
|
491
|
+
case 400:
|
|
492
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
413
493
|
case 401:
|
|
414
494
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
495
|
+
case 403:
|
|
496
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
497
|
+
case 404:
|
|
498
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
499
|
+
case 409:
|
|
500
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
501
|
+
case 422:
|
|
502
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
503
|
+
case 429:
|
|
504
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
415
505
|
case 500:
|
|
416
506
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
417
507
|
default:
|
|
@@ -431,7 +521,13 @@ class SocialAccountsClient {
|
|
|
431
521
|
* @param {Schedulin.DeleteSocialAccountsRequest} request
|
|
432
522
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
523
|
*
|
|
524
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
434
525
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
526
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
527
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
528
|
+
* @throws {@link Schedulin.ConflictError}
|
|
529
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
530
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
435
531
|
* @throws {@link Schedulin.InternalServerError}
|
|
436
532
|
* @throws {@link errors.SchedulinError}
|
|
437
533
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -472,8 +568,20 @@ class SocialAccountsClient {
|
|
|
472
568
|
}
|
|
473
569
|
if (_response.error.reason === "status-code") {
|
|
474
570
|
switch (_response.error.statusCode) {
|
|
571
|
+
case 400:
|
|
572
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
475
573
|
case 401:
|
|
476
574
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
575
|
+
case 403:
|
|
576
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
577
|
+
case 404:
|
|
578
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
579
|
+
case 409:
|
|
580
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
581
|
+
case 422:
|
|
582
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
583
|
+
case 429:
|
|
584
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
477
585
|
case 500:
|
|
478
586
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
479
587
|
default:
|
|
@@ -493,7 +601,13 @@ class SocialAccountsClient {
|
|
|
493
601
|
* @param {Schedulin.UpdateTimezoneSocialAccountsRequest} request
|
|
494
602
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
495
603
|
*
|
|
604
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
496
605
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
606
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
607
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
608
|
+
* @throws {@link Schedulin.ConflictError}
|
|
609
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
610
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
497
611
|
* @throws {@link Schedulin.InternalServerError}
|
|
498
612
|
* @throws {@link errors.SchedulinError}
|
|
499
613
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -535,8 +649,20 @@ class SocialAccountsClient {
|
|
|
535
649
|
}
|
|
536
650
|
if (_response.error.reason === "status-code") {
|
|
537
651
|
switch (_response.error.statusCode) {
|
|
652
|
+
case 400:
|
|
653
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
538
654
|
case 401:
|
|
539
655
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
656
|
+
case 403:
|
|
657
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
658
|
+
case 404:
|
|
659
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
660
|
+
case 409:
|
|
661
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
662
|
+
case 422:
|
|
663
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
664
|
+
case 429:
|
|
665
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
540
666
|
case 500:
|
|
541
667
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
542
668
|
default:
|
|
@@ -556,7 +682,12 @@ class SocialAccountsClient {
|
|
|
556
682
|
* @param {Schedulin.NextSlotsSocialAccountsRequest} request
|
|
557
683
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
558
684
|
*
|
|
685
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
559
686
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
687
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
688
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
689
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
690
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
560
691
|
* @throws {@link Schedulin.InternalServerError}
|
|
561
692
|
* @throws {@link errors.SchedulinError}
|
|
562
693
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -602,8 +733,18 @@ class SocialAccountsClient {
|
|
|
602
733
|
}
|
|
603
734
|
if (_response.error.reason === "status-code") {
|
|
604
735
|
switch (_response.error.statusCode) {
|
|
736
|
+
case 400:
|
|
737
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
605
738
|
case 401:
|
|
606
739
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
740
|
+
case 403:
|
|
741
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
742
|
+
case 404:
|
|
743
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
744
|
+
case 422:
|
|
745
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
746
|
+
case 429:
|
|
747
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
607
748
|
case 500:
|
|
608
749
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
609
750
|
default:
|
|
@@ -623,7 +764,12 @@ class SocialAccountsClient {
|
|
|
623
764
|
* @param {Schedulin.PinterestBoardsSocialAccountsRequest} request
|
|
624
765
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
625
766
|
*
|
|
767
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
626
768
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
769
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
770
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
771
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
772
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
627
773
|
* @throws {@link Schedulin.InternalServerError}
|
|
628
774
|
* @throws {@link errors.SchedulinError}
|
|
629
775
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -661,8 +807,18 @@ class SocialAccountsClient {
|
|
|
661
807
|
}
|
|
662
808
|
if (_response.error.reason === "status-code") {
|
|
663
809
|
switch (_response.error.statusCode) {
|
|
810
|
+
case 400:
|
|
811
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
664
812
|
case 401:
|
|
665
813
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
814
|
+
case 403:
|
|
815
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
816
|
+
case 404:
|
|
817
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
818
|
+
case 422:
|
|
819
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
820
|
+
case 429:
|
|
821
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
666
822
|
case 500:
|
|
667
823
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
668
824
|
default:
|
|
@@ -682,7 +838,12 @@ class SocialAccountsClient {
|
|
|
682
838
|
* @param {Schedulin.TiktokCreatorInfoSocialAccountsRequest} request
|
|
683
839
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
684
840
|
*
|
|
841
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
685
842
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
843
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
844
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
845
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
846
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
686
847
|
* @throws {@link Schedulin.InternalServerError}
|
|
687
848
|
* @throws {@link errors.SchedulinError}
|
|
688
849
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -720,8 +881,18 @@ class SocialAccountsClient {
|
|
|
720
881
|
}
|
|
721
882
|
if (_response.error.reason === "status-code") {
|
|
722
883
|
switch (_response.error.statusCode) {
|
|
884
|
+
case 400:
|
|
885
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
723
886
|
case 401:
|
|
724
887
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
888
|
+
case 403:
|
|
889
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
890
|
+
case 404:
|
|
891
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
892
|
+
case 422:
|
|
893
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
894
|
+
case 429:
|
|
895
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
725
896
|
case 500:
|
|
726
897
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
727
898
|
default:
|
|
@@ -16,7 +16,11 @@ export declare class TagsClient {
|
|
|
16
16
|
* @param {Schedulin.ListTagsRequest} request
|
|
17
17
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
19
20
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
21
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
22
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
23
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
20
24
|
* @throws {@link Schedulin.InternalServerError}
|
|
21
25
|
* @throws {@link errors.SchedulinError}
|
|
22
26
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -32,7 +36,12 @@ export declare class TagsClient {
|
|
|
32
36
|
* @param {Schedulin.CreateTagsRequest} request
|
|
33
37
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
38
|
*
|
|
39
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
35
40
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
41
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
42
|
+
* @throws {@link Schedulin.ConflictError}
|
|
43
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
44
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
36
45
|
* @throws {@link Schedulin.InternalServerError}
|
|
37
46
|
* @throws {@link errors.SchedulinError}
|
|
38
47
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -51,7 +60,13 @@ export declare class TagsClient {
|
|
|
51
60
|
* @param {Schedulin.UpdateTagsRequest} request
|
|
52
61
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
62
|
*
|
|
63
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
54
64
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
65
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
66
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
67
|
+
* @throws {@link Schedulin.ConflictError}
|
|
68
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
69
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
55
70
|
* @throws {@link Schedulin.InternalServerError}
|
|
56
71
|
* @throws {@link errors.SchedulinError}
|
|
57
72
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -69,7 +84,13 @@ export declare class TagsClient {
|
|
|
69
84
|
* @param {Schedulin.DeleteTagsRequest} request
|
|
70
85
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
86
|
*
|
|
87
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
72
88
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
89
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
90
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
91
|
+
* @throws {@link Schedulin.ConflictError}
|
|
92
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
93
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
73
94
|
* @throws {@link Schedulin.InternalServerError}
|
|
74
95
|
* @throws {@link errors.SchedulinError}
|
|
75
96
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -73,7 +73,11 @@ class TagsClient {
|
|
|
73
73
|
* @param {Schedulin.ListTagsRequest} request
|
|
74
74
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
75
75
|
*
|
|
76
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
76
77
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
78
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
79
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
80
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
77
81
|
* @throws {@link Schedulin.InternalServerError}
|
|
78
82
|
* @throws {@link errors.SchedulinError}
|
|
79
83
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -114,8 +118,16 @@ class TagsClient {
|
|
|
114
118
|
}
|
|
115
119
|
if (_response.error.reason === "status-code") {
|
|
116
120
|
switch (_response.error.statusCode) {
|
|
121
|
+
case 400:
|
|
122
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
117
123
|
case 401:
|
|
118
124
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
125
|
+
case 403:
|
|
126
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
127
|
+
case 422:
|
|
128
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
129
|
+
case 429:
|
|
130
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
119
131
|
case 500:
|
|
120
132
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
121
133
|
default:
|
|
@@ -135,7 +147,12 @@ class TagsClient {
|
|
|
135
147
|
* @param {Schedulin.CreateTagsRequest} request
|
|
136
148
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
137
149
|
*
|
|
150
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
138
151
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
152
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
153
|
+
* @throws {@link Schedulin.ConflictError}
|
|
154
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
155
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
139
156
|
* @throws {@link Schedulin.InternalServerError}
|
|
140
157
|
* @throws {@link errors.SchedulinError}
|
|
141
158
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -173,8 +190,18 @@ class TagsClient {
|
|
|
173
190
|
}
|
|
174
191
|
if (_response.error.reason === "status-code") {
|
|
175
192
|
switch (_response.error.statusCode) {
|
|
193
|
+
case 400:
|
|
194
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
176
195
|
case 401:
|
|
177
196
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
197
|
+
case 403:
|
|
198
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
199
|
+
case 409:
|
|
200
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
201
|
+
case 422:
|
|
202
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
203
|
+
case 429:
|
|
204
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
178
205
|
case 500:
|
|
179
206
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
180
207
|
default:
|
|
@@ -194,7 +221,13 @@ class TagsClient {
|
|
|
194
221
|
* @param {Schedulin.UpdateTagsRequest} request
|
|
195
222
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
196
223
|
*
|
|
224
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
197
225
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
226
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
227
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
228
|
+
* @throws {@link Schedulin.ConflictError}
|
|
229
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
230
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
198
231
|
* @throws {@link Schedulin.InternalServerError}
|
|
199
232
|
* @throws {@link errors.SchedulinError}
|
|
200
233
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -232,8 +265,20 @@ class TagsClient {
|
|
|
232
265
|
}
|
|
233
266
|
if (_response.error.reason === "status-code") {
|
|
234
267
|
switch (_response.error.statusCode) {
|
|
268
|
+
case 400:
|
|
269
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
235
270
|
case 401:
|
|
236
271
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
272
|
+
case 403:
|
|
273
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
274
|
+
case 404:
|
|
275
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
276
|
+
case 409:
|
|
277
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
278
|
+
case 422:
|
|
279
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
280
|
+
case 429:
|
|
281
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
237
282
|
case 500:
|
|
238
283
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
239
284
|
default:
|
|
@@ -253,7 +298,13 @@ class TagsClient {
|
|
|
253
298
|
* @param {Schedulin.DeleteTagsRequest} request
|
|
254
299
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
255
300
|
*
|
|
301
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
256
302
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
303
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
304
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
305
|
+
* @throws {@link Schedulin.ConflictError}
|
|
306
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
307
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
257
308
|
* @throws {@link Schedulin.InternalServerError}
|
|
258
309
|
* @throws {@link errors.SchedulinError}
|
|
259
310
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -291,8 +342,20 @@ class TagsClient {
|
|
|
291
342
|
}
|
|
292
343
|
if (_response.error.reason === "status-code") {
|
|
293
344
|
switch (_response.error.statusCode) {
|
|
345
|
+
case 400:
|
|
346
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
294
347
|
case 401:
|
|
295
348
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
349
|
+
case 403:
|
|
350
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
351
|
+
case 404:
|
|
352
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
353
|
+
case 409:
|
|
354
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
355
|
+
case 422:
|
|
356
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
357
|
+
case 429:
|
|
358
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
296
359
|
case 500:
|
|
297
360
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
298
361
|
default:
|