@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
|
@@ -36,7 +36,11 @@ export class SocialAccountsClient {
|
|
|
36
36
|
*
|
|
37
37
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
38
38
|
*
|
|
39
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
39
40
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
41
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
42
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
43
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
40
44
|
* @throws {@link Schedulin.InternalServerError}
|
|
41
45
|
* @throws {@link errors.SchedulinError}
|
|
42
46
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -68,8 +72,16 @@ export class SocialAccountsClient {
|
|
|
68
72
|
}
|
|
69
73
|
if (_response.error.reason === "status-code") {
|
|
70
74
|
switch (_response.error.statusCode) {
|
|
75
|
+
case 400:
|
|
76
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
71
77
|
case 401:
|
|
72
78
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 403:
|
|
80
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 422:
|
|
82
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
83
|
+
case 429:
|
|
84
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
73
85
|
case 500:
|
|
74
86
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
75
87
|
default:
|
|
@@ -89,7 +101,12 @@ export class SocialAccountsClient {
|
|
|
89
101
|
* @param {Schedulin.ListWhopCompaniesSocialAccountsRequest} request
|
|
90
102
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
103
|
*
|
|
104
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
92
105
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
106
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
107
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
108
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
109
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
93
110
|
* @throws {@link Schedulin.InternalServerError}
|
|
94
111
|
* @throws {@link errors.SchedulinError}
|
|
95
112
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -127,8 +144,18 @@ export class SocialAccountsClient {
|
|
|
127
144
|
}
|
|
128
145
|
if (_response.error.reason === "status-code") {
|
|
129
146
|
switch (_response.error.statusCode) {
|
|
147
|
+
case 400:
|
|
148
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
130
149
|
case 401:
|
|
131
150
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
151
|
+
case 403:
|
|
152
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
153
|
+
case 404:
|
|
154
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
155
|
+
case 422:
|
|
156
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
157
|
+
case 429:
|
|
158
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
132
159
|
case 500:
|
|
133
160
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
134
161
|
default:
|
|
@@ -148,7 +175,12 @@ export class SocialAccountsClient {
|
|
|
148
175
|
* @param {Schedulin.ListWhopForumsSocialAccountsRequest} request
|
|
149
176
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
177
|
*
|
|
178
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
151
179
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
180
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
181
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
182
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
183
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
152
184
|
* @throws {@link Schedulin.InternalServerError}
|
|
153
185
|
* @throws {@link errors.SchedulinError}
|
|
154
186
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -194,8 +226,18 @@ export class SocialAccountsClient {
|
|
|
194
226
|
}
|
|
195
227
|
if (_response.error.reason === "status-code") {
|
|
196
228
|
switch (_response.error.statusCode) {
|
|
229
|
+
case 400:
|
|
230
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
197
231
|
case 401:
|
|
198
232
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
233
|
+
case 403:
|
|
234
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
235
|
+
case 404:
|
|
236
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
237
|
+
case 422:
|
|
238
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
239
|
+
case 429:
|
|
240
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
199
241
|
case 500:
|
|
200
242
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
201
243
|
default:
|
|
@@ -209,13 +251,167 @@ export class SocialAccountsClient {
|
|
|
209
251
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/whop-forums");
|
|
210
252
|
});
|
|
211
253
|
}
|
|
254
|
+
/**
|
|
255
|
+
* List the text and announcement channels the Schedulin bot can post into for a connected Discord server. Use an item id as `platformConfiguration.channel` when creating a Discord post.
|
|
256
|
+
*
|
|
257
|
+
* @param {Schedulin.ListDiscordChannelsSocialAccountsRequest} request
|
|
258
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
259
|
+
*
|
|
260
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
261
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
262
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
263
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
264
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
265
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
266
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
267
|
+
* @throws {@link errors.SchedulinError}
|
|
268
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
269
|
+
*
|
|
270
|
+
* @example
|
|
271
|
+
* await client.socialAccounts.listDiscordChannels({
|
|
272
|
+
* id: "id"
|
|
273
|
+
* })
|
|
274
|
+
*/
|
|
275
|
+
listDiscordChannels(request, requestOptions) {
|
|
276
|
+
return core.HttpResponsePromise.fromPromise(this.__listDiscordChannels(request, requestOptions));
|
|
277
|
+
}
|
|
278
|
+
__listDiscordChannels(request, requestOptions) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
281
|
+
const { id } = request;
|
|
282
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
283
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
284
|
+
const _response = yield core.fetcher({
|
|
285
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/discord-channels`),
|
|
286
|
+
method: "GET",
|
|
287
|
+
headers: _headers,
|
|
288
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
289
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
290
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
291
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
292
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
293
|
+
logging: this._options.logging,
|
|
294
|
+
});
|
|
295
|
+
if (_response.ok) {
|
|
296
|
+
return {
|
|
297
|
+
data: _response.body,
|
|
298
|
+
rawResponse: _response.rawResponse,
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
if (_response.error.reason === "status-code") {
|
|
302
|
+
switch (_response.error.statusCode) {
|
|
303
|
+
case 400:
|
|
304
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
305
|
+
case 401:
|
|
306
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
307
|
+
case 403:
|
|
308
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
309
|
+
case 404:
|
|
310
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
311
|
+
case 422:
|
|
312
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
313
|
+
case 429:
|
|
314
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
315
|
+
case 500:
|
|
316
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
317
|
+
default:
|
|
318
|
+
throw new errors.SchedulinError({
|
|
319
|
+
statusCode: _response.error.statusCode,
|
|
320
|
+
body: _response.error.body,
|
|
321
|
+
rawResponse: _response.rawResponse,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/discord-channels");
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* List the channels in a connected Slack workspace that the Schedulin bot can post into (public channels, plus private channels it was invited to). Use an item id as `platformConfiguration.channel` when creating a Slack post.
|
|
330
|
+
*
|
|
331
|
+
* @param {Schedulin.ListSlackChannelsSocialAccountsRequest} request
|
|
332
|
+
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
333
|
+
*
|
|
334
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
335
|
+
* @throws {@link Schedulin.UnauthorizedError}
|
|
336
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
337
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
338
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
339
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
340
|
+
* @throws {@link Schedulin.InternalServerError}
|
|
341
|
+
* @throws {@link errors.SchedulinError}
|
|
342
|
+
* @throws {@link errors.SchedulinTimeoutError}
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* await client.socialAccounts.listSlackChannels({
|
|
346
|
+
* id: "id"
|
|
347
|
+
* })
|
|
348
|
+
*/
|
|
349
|
+
listSlackChannels(request, requestOptions) {
|
|
350
|
+
return core.HttpResponsePromise.fromPromise(this.__listSlackChannels(request, requestOptions));
|
|
351
|
+
}
|
|
352
|
+
__listSlackChannels(request, requestOptions) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
355
|
+
const { id } = request;
|
|
356
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
357
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
358
|
+
const _response = yield core.fetcher({
|
|
359
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.SchedulinEnvironment.Default, `v0/social-accounts/${core.url.encodePathParam(id)}/slack-channels`),
|
|
360
|
+
method: "GET",
|
|
361
|
+
headers: _headers,
|
|
362
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
|
|
363
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
364
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
365
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
366
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
367
|
+
logging: this._options.logging,
|
|
368
|
+
});
|
|
369
|
+
if (_response.ok) {
|
|
370
|
+
return {
|
|
371
|
+
data: _response.body,
|
|
372
|
+
rawResponse: _response.rawResponse,
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
if (_response.error.reason === "status-code") {
|
|
376
|
+
switch (_response.error.statusCode) {
|
|
377
|
+
case 400:
|
|
378
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
379
|
+
case 401:
|
|
380
|
+
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
381
|
+
case 403:
|
|
382
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
383
|
+
case 404:
|
|
384
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
385
|
+
case 422:
|
|
386
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
387
|
+
case 429:
|
|
388
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
389
|
+
case 500:
|
|
390
|
+
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
391
|
+
default:
|
|
392
|
+
throw new errors.SchedulinError({
|
|
393
|
+
statusCode: _response.error.statusCode,
|
|
394
|
+
body: _response.error.body,
|
|
395
|
+
rawResponse: _response.rawResponse,
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v0/social-accounts/{id}/slack-channels");
|
|
400
|
+
});
|
|
401
|
+
}
|
|
212
402
|
/**
|
|
213
403
|
* Update social media account settings and information
|
|
214
404
|
*
|
|
215
405
|
* @param {Schedulin.UpdateSocialAccountsRequest} request
|
|
216
406
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
217
407
|
*
|
|
408
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
218
409
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
410
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
411
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
412
|
+
* @throws {@link Schedulin.ConflictError}
|
|
413
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
414
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
219
415
|
* @throws {@link Schedulin.InternalServerError}
|
|
220
416
|
* @throws {@link errors.SchedulinError}
|
|
221
417
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -256,8 +452,20 @@ export class SocialAccountsClient {
|
|
|
256
452
|
}
|
|
257
453
|
if (_response.error.reason === "status-code") {
|
|
258
454
|
switch (_response.error.statusCode) {
|
|
455
|
+
case 400:
|
|
456
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
259
457
|
case 401:
|
|
260
458
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
459
|
+
case 403:
|
|
460
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
461
|
+
case 404:
|
|
462
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
463
|
+
case 409:
|
|
464
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
465
|
+
case 422:
|
|
466
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
467
|
+
case 429:
|
|
468
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
261
469
|
case 500:
|
|
262
470
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
263
471
|
default:
|
|
@@ -277,7 +485,13 @@ export class SocialAccountsClient {
|
|
|
277
485
|
* @param {Schedulin.DeleteSocialAccountsRequest} request
|
|
278
486
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
279
487
|
*
|
|
488
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
280
489
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
490
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
491
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
492
|
+
* @throws {@link Schedulin.ConflictError}
|
|
493
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
494
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
281
495
|
* @throws {@link Schedulin.InternalServerError}
|
|
282
496
|
* @throws {@link errors.SchedulinError}
|
|
283
497
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -318,8 +532,20 @@ export class SocialAccountsClient {
|
|
|
318
532
|
}
|
|
319
533
|
if (_response.error.reason === "status-code") {
|
|
320
534
|
switch (_response.error.statusCode) {
|
|
535
|
+
case 400:
|
|
536
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
321
537
|
case 401:
|
|
322
538
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
539
|
+
case 403:
|
|
540
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
541
|
+
case 404:
|
|
542
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
543
|
+
case 409:
|
|
544
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
545
|
+
case 422:
|
|
546
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
547
|
+
case 429:
|
|
548
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
323
549
|
case 500:
|
|
324
550
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
325
551
|
default:
|
|
@@ -339,7 +565,13 @@ export class SocialAccountsClient {
|
|
|
339
565
|
* @param {Schedulin.UpdateTimezoneSocialAccountsRequest} request
|
|
340
566
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
341
567
|
*
|
|
568
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
342
569
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
570
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
571
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
572
|
+
* @throws {@link Schedulin.ConflictError}
|
|
573
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
574
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
343
575
|
* @throws {@link Schedulin.InternalServerError}
|
|
344
576
|
* @throws {@link errors.SchedulinError}
|
|
345
577
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -381,8 +613,20 @@ export class SocialAccountsClient {
|
|
|
381
613
|
}
|
|
382
614
|
if (_response.error.reason === "status-code") {
|
|
383
615
|
switch (_response.error.statusCode) {
|
|
616
|
+
case 400:
|
|
617
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
384
618
|
case 401:
|
|
385
619
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
620
|
+
case 403:
|
|
621
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
622
|
+
case 404:
|
|
623
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
624
|
+
case 409:
|
|
625
|
+
throw new Schedulin.ConflictError(_response.error.body, _response.rawResponse);
|
|
626
|
+
case 422:
|
|
627
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
628
|
+
case 429:
|
|
629
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
386
630
|
case 500:
|
|
387
631
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
388
632
|
default:
|
|
@@ -402,7 +646,12 @@ export class SocialAccountsClient {
|
|
|
402
646
|
* @param {Schedulin.NextSlotsSocialAccountsRequest} request
|
|
403
647
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
404
648
|
*
|
|
649
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
405
650
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
651
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
652
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
653
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
654
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
406
655
|
* @throws {@link Schedulin.InternalServerError}
|
|
407
656
|
* @throws {@link errors.SchedulinError}
|
|
408
657
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -448,8 +697,18 @@ export class SocialAccountsClient {
|
|
|
448
697
|
}
|
|
449
698
|
if (_response.error.reason === "status-code") {
|
|
450
699
|
switch (_response.error.statusCode) {
|
|
700
|
+
case 400:
|
|
701
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
451
702
|
case 401:
|
|
452
703
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
704
|
+
case 403:
|
|
705
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
706
|
+
case 404:
|
|
707
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
708
|
+
case 422:
|
|
709
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
710
|
+
case 429:
|
|
711
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
453
712
|
case 500:
|
|
454
713
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
455
714
|
default:
|
|
@@ -469,7 +728,12 @@ export class SocialAccountsClient {
|
|
|
469
728
|
* @param {Schedulin.PinterestBoardsSocialAccountsRequest} request
|
|
470
729
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
471
730
|
*
|
|
731
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
472
732
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
733
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
734
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
735
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
736
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
473
737
|
* @throws {@link Schedulin.InternalServerError}
|
|
474
738
|
* @throws {@link errors.SchedulinError}
|
|
475
739
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -507,8 +771,18 @@ export class SocialAccountsClient {
|
|
|
507
771
|
}
|
|
508
772
|
if (_response.error.reason === "status-code") {
|
|
509
773
|
switch (_response.error.statusCode) {
|
|
774
|
+
case 400:
|
|
775
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
510
776
|
case 401:
|
|
511
777
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
778
|
+
case 403:
|
|
779
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
780
|
+
case 404:
|
|
781
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
782
|
+
case 422:
|
|
783
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
784
|
+
case 429:
|
|
785
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
512
786
|
case 500:
|
|
513
787
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
514
788
|
default:
|
|
@@ -528,7 +802,12 @@ export class SocialAccountsClient {
|
|
|
528
802
|
* @param {Schedulin.TiktokCreatorInfoSocialAccountsRequest} request
|
|
529
803
|
* @param {SocialAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
530
804
|
*
|
|
805
|
+
* @throws {@link Schedulin.BadRequestError}
|
|
531
806
|
* @throws {@link Schedulin.UnauthorizedError}
|
|
807
|
+
* @throws {@link Schedulin.ForbiddenError}
|
|
808
|
+
* @throws {@link Schedulin.NotFoundError}
|
|
809
|
+
* @throws {@link Schedulin.UnprocessableEntityError}
|
|
810
|
+
* @throws {@link Schedulin.TooManyRequestsError}
|
|
532
811
|
* @throws {@link Schedulin.InternalServerError}
|
|
533
812
|
* @throws {@link errors.SchedulinError}
|
|
534
813
|
* @throws {@link errors.SchedulinTimeoutError}
|
|
@@ -566,8 +845,18 @@ export class SocialAccountsClient {
|
|
|
566
845
|
}
|
|
567
846
|
if (_response.error.reason === "status-code") {
|
|
568
847
|
switch (_response.error.statusCode) {
|
|
848
|
+
case 400:
|
|
849
|
+
throw new Schedulin.BadRequestError(_response.error.body, _response.rawResponse);
|
|
569
850
|
case 401:
|
|
570
851
|
throw new Schedulin.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
852
|
+
case 403:
|
|
853
|
+
throw new Schedulin.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
854
|
+
case 404:
|
|
855
|
+
throw new Schedulin.NotFoundError(_response.error.body, _response.rawResponse);
|
|
856
|
+
case 422:
|
|
857
|
+
throw new Schedulin.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
858
|
+
case 429:
|
|
859
|
+
throw new Schedulin.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
571
860
|
case 500:
|
|
572
861
|
throw new Schedulin.InternalServerError(_response.error.body, _response.rawResponse);
|
|
573
862
|
default:
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { DeleteSocialAccountsRequest } from "./DeleteSocialAccountsRequest.mjs";
|
|
2
|
+
export type { ListDiscordChannelsSocialAccountsRequest } from "./ListDiscordChannelsSocialAccountsRequest.mjs";
|
|
3
|
+
export type { ListSlackChannelsSocialAccountsRequest } from "./ListSlackChannelsSocialAccountsRequest.mjs";
|
|
2
4
|
export type { ListWhopCompaniesSocialAccountsRequest } from "./ListWhopCompaniesSocialAccountsRequest.mjs";
|
|
3
5
|
export type { ListWhopForumsSocialAccountsRequest } from "./ListWhopForumsSocialAccountsRequest.mjs";
|
|
4
6
|
export type { NextSlotsSocialAccountsRequest } from "./NextSlotsSocialAccountsRequest.mjs";
|
package/esm/api/resources/socialAccounts/types/ListDiscordChannelsSocialAccountsResponse.d.mts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ListDiscordChannelsSocialAccountsResponse {
|
|
2
|
+
items: ListDiscordChannelsSocialAccountsResponse.Items.Item[];
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ListDiscordChannelsSocialAccountsResponse {
|
|
5
|
+
type Items = Items.Item[];
|
|
6
|
+
namespace Items {
|
|
7
|
+
interface Item {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ListSlackChannelsSocialAccountsResponse {
|
|
2
|
+
items: ListSlackChannelsSocialAccountsResponse.Items.Item[];
|
|
3
|
+
}
|
|
4
|
+
export declare namespace ListSlackChannelsSocialAccountsResponse {
|
|
5
|
+
type Items = Items.Item[];
|
|
6
|
+
namespace Items {
|
|
7
|
+
interface Item {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./DeleteSocialAccountsResponse.mjs";
|
|
2
|
+
export * from "./ListDiscordChannelsSocialAccountsResponse.mjs";
|
|
3
|
+
export * from "./ListSlackChannelsSocialAccountsResponse.mjs";
|
|
2
4
|
export * from "./ListSocialAccountsResponse.mjs";
|
|
3
5
|
export * from "./ListWhopCompaniesSocialAccountsResponse.mjs";
|
|
4
6
|
export * from "./ListWhopForumsSocialAccountsResponse.mjs";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./DeleteSocialAccountsResponse.mjs";
|
|
2
|
+
export * from "./ListDiscordChannelsSocialAccountsResponse.mjs";
|
|
3
|
+
export * from "./ListSlackChannelsSocialAccountsResponse.mjs";
|
|
2
4
|
export * from "./ListSocialAccountsResponse.mjs";
|
|
3
5
|
export * from "./ListWhopCompaniesSocialAccountsResponse.mjs";
|
|
4
6
|
export * from "./ListWhopForumsSocialAccountsResponse.mjs";
|
|
@@ -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}
|