@schedulin/sdk 0.3.0 → 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 +59 -9
- package/cjs/api/resources/media/client/Client.js +159 -4
- 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 +93 -0
- package/cjs/api/resources/socialAccounts/client/Client.js +289 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.d.ts +9 -0
- package/cjs/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.js +3 -0
- package/cjs/api/resources/socialAccounts/client/requests/index.d.ts +2 -0
- package/cjs/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.d.ts +12 -0
- package/cjs/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.d.ts +12 -0
- package/cjs/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.js +3 -0
- package/cjs/api/resources/socialAccounts/types/index.d.ts +2 -0
- package/cjs/api/resources/socialAccounts/types/index.js +2 -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 +59 -9
- package/esm/api/resources/media/client/Client.mjs +159 -4
- 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 +93 -0
- package/esm/api/resources/socialAccounts/client/Client.mjs +289 -0
- package/esm/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/ListDiscordChannelsSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.d.mts +9 -0
- package/esm/api/resources/socialAccounts/client/requests/ListSlackChannelsSocialAccountsRequest.mjs +2 -0
- package/esm/api/resources/socialAccounts/client/requests/index.d.mts +2 -0
- package/esm/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.d.mts +12 -0
- package/esm/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.d.mts +12 -0
- package/esm/api/resources/socialAccounts/types/ListSlackChannelsSocialAccountsResponse.mjs +2 -0
- package/esm/api/resources/socialAccounts/types/index.d.mts +2 -0
- package/esm/api/resources/socialAccounts/types/index.mjs +2 -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
|
@@ -37,7 +37,12 @@ export class MediaClient {
|
|
|
37
37
|
* @param {Schedulin.CreateFromUrlMediaRequest} request
|
|
38
38
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
39
39
|
*
|
|
40
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
40
41
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
42
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
43
|
+
* @throws {@link Schedulin.ConflictError}
|
|
44
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
45
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
41
46
|
* @throws {@link Schedulin.InternalServerError}
|
|
42
47
|
* @throws {@link errors.SchedulinError}
|
|
43
48
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -74,8 +79,18 @@ export class MediaClient {
|
|
|
74
79
|
}
|
|
75
80
|
if (_response.error.reason === "status-code") {
|
|
76
81
|
switch (_response.error.statusCode) {
|
|
82
|
+
case 400:
|
|
83
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
77
84
|
case 401:
|
|
78
85
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
86
|
+
case 403:
|
|
87
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
88
|
+
case 409:
|
|
89
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
90
|
+
case 422:
|
|
91
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
+
case 429:
|
|
93
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
79
94
|
case 500:
|
|
80
95
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
81
96
|
default:
|
|
@@ -95,7 +110,12 @@ export class MediaClient {
|
|
|
95
110
|
* @param {Schedulin.CreateUploadLinkMediaRequest} request
|
|
96
111
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
97
112
|
*
|
|
113
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
98
114
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
115
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
116
|
+
* @throws {@link Schedulin.ConflictError}
|
|
117
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
118
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
99
119
|
* @throws {@link Schedulin.InternalServerError}
|
|
100
120
|
* @throws {@link errors.SchedulinError}
|
|
101
121
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -126,12 +146,25 @@ export class MediaClient {
|
|
|
126
146
|
logging: this._options.logging,
|
|
127
147
|
});
|
|
128
148
|
if (_response.ok) {
|
|
129
|
-
return {
|
|
149
|
+
return {
|
|
150
|
+
data: _response.body,
|
|
151
|
+
rawResponse: _response.rawResponse,
|
|
152
|
+
};
|
|
130
153
|
}
|
|
131
154
|
if (_response.error.reason === "status-code") {
|
|
132
155
|
switch (_response.error.statusCode) {
|
|
156
|
+
case 400:
|
|
157
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
133
158
|
case 401:
|
|
134
159
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
160
|
+
case 403:
|
|
161
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
162
|
+
case 409:
|
|
163
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
164
|
+
case 422:
|
|
165
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
166
|
+
case 429:
|
|
167
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
135
168
|
case 500:
|
|
136
169
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
137
170
|
default:
|
|
@@ -146,12 +179,17 @@ export class MediaClient {
|
|
|
146
179
|
});
|
|
147
180
|
}
|
|
148
181
|
/**
|
|
149
|
-
* Upload raw image, video, or audio bytes directly as multipart/form-data. The file is stored in your media library and the record is returned; use its `url` in `media[].url` when creating a post. Max 250 MB; SVG and other active content is rejected. For a file already hosted at a public URL, prefer POST /v0/media/from-url.
|
|
182
|
+
* Upload raw image, video, or audio bytes directly as multipart/form-data. The file is stored in your media library and the record is returned; use its `url` in `media[].url` when creating a post. When the file part's type is missing or generic (`application/octet-stream`, `text/plain`), the type is detected from the file's bytes, then its filename extension. Max 250 MB; SVG and other active content is rejected. For a file already hosted at a public URL, prefer POST /v0/media/from-url.
|
|
150
183
|
*
|
|
151
184
|
* @param {Schedulin.UploadMediaRequest} request
|
|
152
185
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
186
|
*
|
|
187
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
154
188
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
189
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
190
|
+
* @throws {@link Schedulin.ConflictError}
|
|
191
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
192
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
155
193
|
* @throws {@link Schedulin.InternalServerError}
|
|
156
194
|
* @throws {@link errors.SchedulinError}
|
|
157
195
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -201,8 +239,18 @@ export class MediaClient {
|
|
|
201
239
|
}
|
|
202
240
|
if (_response.error.reason === "status-code") {
|
|
203
241
|
switch (_response.error.statusCode) {
|
|
242
|
+
case 400:
|
|
243
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
204
244
|
case 401:
|
|
205
245
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
246
|
+
case 403:
|
|
247
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
248
|
+
case 409:
|
|
249
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
250
|
+
case 422:
|
|
251
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
252
|
+
case 429:
|
|
253
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
206
254
|
case 500:
|
|
207
255
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
208
256
|
default:
|
|
@@ -222,7 +270,12 @@ export class MediaClient {
|
|
|
222
270
|
* @param {Schedulin.RetrieveMediaRequest} request
|
|
223
271
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
224
272
|
*
|
|
273
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
225
274
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
275
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
276
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
277
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
278
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
226
279
|
* @throws {@link Schedulin.InternalServerError}
|
|
227
280
|
* @throws {@link errors.SchedulinError}
|
|
228
281
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -257,8 +310,18 @@ export class MediaClient {
|
|
|
257
310
|
}
|
|
258
311
|
if (_response.error.reason === "status-code") {
|
|
259
312
|
switch (_response.error.statusCode) {
|
|
313
|
+
case 400:
|
|
314
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
260
315
|
case 401:
|
|
261
316
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
317
|
+
case 403:
|
|
318
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
319
|
+
case 404:
|
|
320
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
321
|
+
case 422:
|
|
322
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
323
|
+
case 429:
|
|
324
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
262
325
|
case 500:
|
|
263
326
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
264
327
|
default:
|
|
@@ -278,15 +341,20 @@ export class MediaClient {
|
|
|
278
341
|
* @param {Schedulin.UpdateMediaRequest} request
|
|
279
342
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
280
343
|
*
|
|
344
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
281
345
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
346
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
347
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
348
|
+
* @throws {@link Schedulin.ConflictError}
|
|
349
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
350
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
282
351
|
* @throws {@link Schedulin.InternalServerError}
|
|
283
352
|
* @throws {@link errors.SchedulinError}
|
|
284
353
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
285
354
|
*
|
|
286
355
|
* @example
|
|
287
356
|
* await client.media.update({
|
|
288
|
-
* id: "id"
|
|
289
|
-
* url: "url"
|
|
357
|
+
* id: "id"
|
|
290
358
|
* })
|
|
291
359
|
*/
|
|
292
360
|
update(request, requestOptions) {
|
|
@@ -317,8 +385,20 @@ export class MediaClient {
|
|
|
317
385
|
}
|
|
318
386
|
if (_response.error.reason === "status-code") {
|
|
319
387
|
switch (_response.error.statusCode) {
|
|
388
|
+
case 400:
|
|
389
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
320
390
|
case 401:
|
|
321
391
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
392
|
+
case 403:
|
|
393
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
394
|
+
case 404:
|
|
395
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
396
|
+
case 409:
|
|
397
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
398
|
+
case 422:
|
|
399
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
400
|
+
case 429:
|
|
401
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
322
402
|
case 500:
|
|
323
403
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
324
404
|
default:
|
|
@@ -338,7 +418,13 @@ export class MediaClient {
|
|
|
338
418
|
* @param {Schedulin.DeleteMediaRequest} request
|
|
339
419
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
340
420
|
*
|
|
421
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
341
422
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
423
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
424
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
425
|
+
* @throws {@link Schedulin.ConflictError}
|
|
426
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
427
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
342
428
|
* @throws {@link Schedulin.InternalServerError}
|
|
343
429
|
* @throws {@link errors.SchedulinError}
|
|
344
430
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -376,8 +462,20 @@ export class MediaClient {
|
|
|
376
462
|
}
|
|
377
463
|
if (_response.error.reason === "status-code") {
|
|
378
464
|
switch (_response.error.statusCode) {
|
|
465
|
+
case 400:
|
|
466
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
379
467
|
case 401:
|
|
380
468
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
469
|
+
case 403:
|
|
470
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
471
|
+
case 404:
|
|
472
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
473
|
+
case 409:
|
|
474
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
475
|
+
case 422:
|
|
476
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
477
|
+
case 429:
|
|
478
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
381
479
|
case 500:
|
|
382
480
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
383
481
|
default:
|
|
@@ -397,7 +495,11 @@ export class MediaClient {
|
|
|
397
495
|
* @param {Schedulin.ListMediaRequest} request
|
|
398
496
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
399
497
|
*
|
|
498
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
400
499
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
500
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
501
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
502
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
401
503
|
* @throws {@link Schedulin.InternalServerError}
|
|
402
504
|
* @throws {@link errors.SchedulinError}
|
|
403
505
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -442,8 +544,16 @@ export class MediaClient {
|
|
|
442
544
|
}
|
|
443
545
|
if (_response.error.reason === "status-code") {
|
|
444
546
|
switch (_response.error.statusCode) {
|
|
547
|
+
case 400:
|
|
548
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
445
549
|
case 401:
|
|
446
550
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
551
|
+
case 403:
|
|
552
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
553
|
+
case 422:
|
|
554
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
555
|
+
case 429:
|
|
556
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
447
557
|
case 500:
|
|
448
558
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
449
559
|
default:
|
|
@@ -463,7 +573,13 @@ export class MediaClient {
|
|
|
463
573
|
* @param {Schedulin.SetTagsMediaRequest} request
|
|
464
574
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
465
575
|
*
|
|
576
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
466
577
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
578
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
579
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
580
|
+
* @throws {@link Schedulin.ConflictError}
|
|
581
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
582
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
467
583
|
* @throws {@link Schedulin.InternalServerError}
|
|
468
584
|
* @throws {@link errors.SchedulinError}
|
|
469
585
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -502,8 +618,20 @@ export class MediaClient {
|
|
|
502
618
|
}
|
|
503
619
|
if (_response.error.reason === "status-code") {
|
|
504
620
|
switch (_response.error.statusCode) {
|
|
621
|
+
case 400:
|
|
622
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
505
623
|
case 401:
|
|
506
624
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
625
|
+
case 403:
|
|
626
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
627
|
+
case 404:
|
|
628
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
629
|
+
case 409:
|
|
630
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
631
|
+
case 422:
|
|
632
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
633
|
+
case 429:
|
|
634
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
507
635
|
case 500:
|
|
508
636
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
509
637
|
default:
|
|
@@ -522,7 +650,11 @@ export class MediaClient {
|
|
|
522
650
|
*
|
|
523
651
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
524
652
|
*
|
|
653
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
525
654
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
655
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
656
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
657
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
526
658
|
* @throws {@link Schedulin.InternalServerError}
|
|
527
659
|
* @throws {@link errors.SchedulinError}
|
|
528
660
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -554,8 +686,16 @@ export class MediaClient {
|
|
|
554
686
|
}
|
|
555
687
|
if (_response.error.reason === "status-code") {
|
|
556
688
|
switch (_response.error.statusCode) {
|
|
689
|
+
case 400:
|
|
690
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
557
691
|
case 401:
|
|
558
692
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
693
|
+
case 403:
|
|
694
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
695
|
+
case 422:
|
|
696
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
697
|
+
case 429:
|
|
698
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
559
699
|
case 500:
|
|
560
700
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
561
701
|
default:
|
|
@@ -575,7 +715,12 @@ export class MediaClient {
|
|
|
575
715
|
* @param {Schedulin.CreatePresignedPost} request
|
|
576
716
|
* @param {MediaClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
577
717
|
*
|
|
718
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
578
719
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
720
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
721
|
+
* @throws {@link Schedulin.ConflictError}
|
|
722
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
723
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
579
724
|
* @throws {@link Schedulin.InternalServerError}
|
|
580
725
|
* @throws {@link errors.SchedulinError}
|
|
581
726
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -613,8 +758,18 @@ export class MediaClient {
|
|
|
613
758
|
}
|
|
614
759
|
if (_response.error.reason === "status-code") {
|
|
615
760
|
switch (_response.error.statusCode) {
|
|
761
|
+
case 400:
|
|
762
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
616
763
|
case 401:
|
|
617
764
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
765
|
+
case 403:
|
|
766
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
767
|
+
case 409:
|
|
768
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
769
|
+
case 422:
|
|
770
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
771
|
+
case 429:
|
|
772
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
618
773
|
case 500:
|
|
619
774
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
620
775
|
default:
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./CountByTagMediaResponse.mjs";
|
|
2
|
+
export * from "./CreateUploadLinkMediaResponse.mjs";
|
|
3
|
+
export * from "./DeleteMediaResponse.mjs";
|
|
2
4
|
export * from "./ListMediaRequestTagMode.mjs";
|
|
3
5
|
export * from "./ListMediaRequestType.mjs";
|
|
4
6
|
export * from "./ListMediaResponse.mjs";
|
|
7
|
+
export * from "./SetTagsMediaResponse.mjs";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./CountByTagMediaResponse.mjs";
|
|
2
|
+
export * from "./CreateUploadLinkMediaResponse.mjs";
|
|
3
|
+
export * from "./DeleteMediaResponse.mjs";
|
|
2
4
|
export * from "./ListMediaRequestTagMode.mjs";
|
|
3
5
|
export * from "./ListMediaRequestType.mjs";
|
|
4
6
|
export * from "./ListMediaResponse.mjs";
|
|
7
|
+
export * from "./SetTagsMediaResponse.mjs";
|
|
@@ -15,7 +15,11 @@ export declare class PlatformsClient {
|
|
|
15
15
|
*
|
|
16
16
|
* @param {PlatformsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
17
|
*
|
|
18
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
18
19
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
20
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
21
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
22
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
19
23
|
* @throws {@link Schedulin.InternalServerError}
|
|
20
24
|
* @throws {@link errors.SchedulinError}
|
|
21
25
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -24,7 +24,11 @@ export class PlatformsClient {
|
|
|
24
24
|
*
|
|
25
25
|
* @param {PlatformsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
26
|
*
|
|
27
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
27
28
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
29
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
30
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
31
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
28
32
|
* @throws {@link Schedulin.InternalServerError}
|
|
29
33
|
* @throws {@link errors.SchedulinError}
|
|
30
34
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -56,8 +60,16 @@ export class PlatformsClient {
|
|
|
56
60
|
}
|
|
57
61
|
if (_response.error.reason === "status-code") {
|
|
58
62
|
switch (_response.error.statusCode) {
|
|
63
|
+
case 400:
|
|
64
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
59
65
|
case 401:
|
|
60
66
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
67
|
+
case 403:
|
|
68
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
69
|
+
case 422:
|
|
70
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
71
|
+
case 429:
|
|
72
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
61
73
|
case 500:
|
|
62
74
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
63
75
|
default:
|
|
@@ -16,7 +16,11 @@ export declare class PostsClient {
|
|
|
16
16
|
* @param {Schedulin.ListPostsRequest} request
|
|
17
17
|
* @param {PostsClient.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,13 @@ export declare class PostsClient {
|
|
|
32
36
|
* @param {Schedulin.PostCreate} request
|
|
33
37
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
38
|
*
|
|
39
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
35
40
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
41
|
+
* @throws {@link Schedulin.PaymentRequiredError}
|
|
42
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
43
|
+
* @throws {@link Schedulin.ConflictError}
|
|
44
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
45
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
36
46
|
* @throws {@link Schedulin.InternalServerError}
|
|
37
47
|
* @throws {@link errors.SchedulinError}
|
|
38
48
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -51,7 +61,11 @@ export declare class PostsClient {
|
|
|
51
61
|
* @param {Schedulin.CountByTabPostsRequest} request
|
|
52
62
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
63
|
*
|
|
64
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
54
65
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
66
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
67
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
68
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
55
69
|
* @throws {@link Schedulin.InternalServerError}
|
|
56
70
|
* @throws {@link errors.SchedulinError}
|
|
57
71
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -59,7 +73,7 @@ export declare class PostsClient {
|
|
|
59
73
|
* @example
|
|
60
74
|
* await client.posts.countByTab()
|
|
61
75
|
*/
|
|
62
|
-
countByTab(request?: Schedulin.CountByTabPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<
|
|
76
|
+
countByTab(request?: Schedulin.CountByTabPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Schedulin.CountByTabPostsResponse>;
|
|
63
77
|
private __countByTab;
|
|
64
78
|
/**
|
|
65
79
|
* Retrieve a single post by its ID with all relations
|
|
@@ -67,7 +81,12 @@ export declare class PostsClient {
|
|
|
67
81
|
* @param {Schedulin.RetrievePostsRequest} request
|
|
68
82
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
83
|
*
|
|
84
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
70
85
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
86
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
87
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
88
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
89
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
71
90
|
* @throws {@link Schedulin.InternalServerError}
|
|
72
91
|
* @throws {@link errors.SchedulinError}
|
|
73
92
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -85,7 +104,14 @@ export declare class PostsClient {
|
|
|
85
104
|
* @param {Schedulin.UpdatePostsRequest} request
|
|
86
105
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
87
106
|
*
|
|
107
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
88
108
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
109
|
+
* @throws {@link Schedulin.PaymentRequiredError}
|
|
110
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
111
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
112
|
+
* @throws {@link Schedulin.ConflictError}
|
|
113
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
114
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
89
115
|
* @throws {@link Schedulin.InternalServerError}
|
|
90
116
|
* @throws {@link errors.SchedulinError}
|
|
91
117
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -103,7 +129,13 @@ export declare class PostsClient {
|
|
|
103
129
|
* @param {Schedulin.DeletePostsRequest} request
|
|
104
130
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
105
131
|
*
|
|
132
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
106
133
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
134
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
135
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
136
|
+
* @throws {@link Schedulin.ConflictError}
|
|
137
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
138
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
107
139
|
* @throws {@link Schedulin.InternalServerError}
|
|
108
140
|
* @throws {@link errors.SchedulinError}
|
|
109
141
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -121,7 +153,12 @@ export declare class PostsClient {
|
|
|
121
153
|
* @param {Schedulin.AnalyticsSummaryPostsRequest} request
|
|
122
154
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
123
155
|
*
|
|
156
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
124
157
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
158
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
159
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
160
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
161
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
125
162
|
* @throws {@link Schedulin.InternalServerError}
|
|
126
163
|
* @throws {@link errors.SchedulinError}
|
|
127
164
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -139,7 +176,12 @@ export declare class PostsClient {
|
|
|
139
176
|
* @param {Schedulin.AnalyticsSeriesPostsRequest} request
|
|
140
177
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
178
|
*
|
|
179
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
142
180
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
181
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
182
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
183
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
184
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
143
185
|
* @throws {@link Schedulin.InternalServerError}
|
|
144
186
|
* @throws {@link errors.SchedulinError}
|
|
145
187
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -157,7 +199,14 @@ export declare class PostsClient {
|
|
|
157
199
|
* @param {Schedulin.PublishDraftPostsRequest} request
|
|
158
200
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
159
201
|
*
|
|
202
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
160
203
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
204
|
+
* @throws {@link Schedulin.PaymentRequiredError}
|
|
205
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
206
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
207
|
+
* @throws {@link Schedulin.ConflictError}
|
|
208
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
209
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
161
210
|
* @throws {@link Schedulin.InternalServerError}
|
|
162
211
|
* @throws {@link errors.SchedulinError}
|
|
163
212
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -175,7 +224,13 @@ export declare class PostsClient {
|
|
|
175
224
|
* @param {Schedulin.UpdateTagsPostsRequest} request
|
|
176
225
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
177
226
|
*
|
|
227
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
178
228
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
229
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
230
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
231
|
+
* @throws {@link Schedulin.ConflictError}
|
|
232
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
233
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
179
234
|
* @throws {@link Schedulin.InternalServerError}
|
|
180
235
|
* @throws {@link errors.SchedulinError}
|
|
181
236
|
* @throws {@link errors.SchedulinTimeoutError}
|