@aws-sdk/client-support-app 3.303.0 → 3.309.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/dist-cjs/commands/CreateSlackChannelConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteAccountAliasCommand.js +2 -2
- package/dist-cjs/commands/DeleteSlackChannelConfigurationCommand.js +2 -2
- package/dist-cjs/commands/DeleteSlackWorkspaceConfigurationCommand.js +2 -2
- package/dist-cjs/commands/GetAccountAliasCommand.js +2 -2
- package/dist-cjs/commands/ListSlackChannelConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/ListSlackWorkspaceConfigurationsCommand.js +2 -2
- package/dist-cjs/commands/PutAccountAliasCommand.js +2 -2
- package/dist-cjs/commands/RegisterSlackWorkspaceForOrganizationCommand.js +2 -2
- package/dist-cjs/commands/UpdateSlackChannelConfigurationCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +111 -111
- package/dist-es/commands/CreateSlackChannelConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteAccountAliasCommand.js +3 -3
- package/dist-es/commands/DeleteSlackChannelConfigurationCommand.js +3 -3
- package/dist-es/commands/DeleteSlackWorkspaceConfigurationCommand.js +3 -3
- package/dist-es/commands/GetAccountAliasCommand.js +3 -3
- package/dist-es/commands/ListSlackChannelConfigurationsCommand.js +3 -3
- package/dist-es/commands/ListSlackWorkspaceConfigurationsCommand.js +3 -3
- package/dist-es/commands/PutAccountAliasCommand.js +3 -3
- package/dist-es/commands/RegisterSlackWorkspaceForOrganizationCommand.js +3 -3
- package/dist-es/commands/UpdateSlackChannelConfigurationCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +90 -90
- package/dist-types/protocols/Aws_restJson1.d.ts +80 -20
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +20 -20
- package/package.json +29 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateSlackChannelConfigurationCommand = exports.de_RegisterSlackWorkspaceForOrganizationCommand = exports.de_PutAccountAliasCommand = exports.de_ListSlackWorkspaceConfigurationsCommand = exports.de_ListSlackChannelConfigurationsCommand = exports.de_GetAccountAliasCommand = exports.de_DeleteSlackWorkspaceConfigurationCommand = exports.de_DeleteSlackChannelConfigurationCommand = exports.de_DeleteAccountAliasCommand = exports.de_CreateSlackChannelConfigurationCommand = exports.se_UpdateSlackChannelConfigurationCommand = exports.se_RegisterSlackWorkspaceForOrganizationCommand = exports.se_PutAccountAliasCommand = exports.se_ListSlackWorkspaceConfigurationsCommand = exports.se_ListSlackChannelConfigurationsCommand = exports.se_GetAccountAliasCommand = exports.se_DeleteSlackWorkspaceConfigurationCommand = exports.se_DeleteSlackChannelConfigurationCommand = exports.se_DeleteAccountAliasCommand = exports.se_CreateSlackChannelConfigurationCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const SupportAppServiceException_1 = require("../models/SupportAppServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
|
|
9
9
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
@@ -35,8 +35,8 @@ const serializeAws_restJson1CreateSlackChannelConfigurationCommand = async (inpu
|
|
|
35
35
|
body,
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
const
|
|
38
|
+
exports.se_CreateSlackChannelConfigurationCommand = se_CreateSlackChannelConfigurationCommand;
|
|
39
|
+
const se_DeleteAccountAliasCommand = async (input, context) => {
|
|
40
40
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
41
41
|
const headers = {
|
|
42
42
|
"content-type": "application/json",
|
|
@@ -54,8 +54,8 @@ const serializeAws_restJson1DeleteAccountAliasCommand = async (input, context) =
|
|
|
54
54
|
body,
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_DeleteAccountAliasCommand = se_DeleteAccountAliasCommand;
|
|
58
|
+
const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
|
|
59
59
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
60
60
|
const headers = {
|
|
61
61
|
"content-type": "application/json",
|
|
@@ -77,8 +77,8 @@ const serializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (inpu
|
|
|
77
77
|
body,
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
|
-
exports.
|
|
81
|
-
const
|
|
80
|
+
exports.se_DeleteSlackChannelConfigurationCommand = se_DeleteSlackChannelConfigurationCommand;
|
|
81
|
+
const se_DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
|
|
82
82
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
83
83
|
const headers = {
|
|
84
84
|
"content-type": "application/json",
|
|
@@ -99,8 +99,8 @@ const serializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (in
|
|
|
99
99
|
body,
|
|
100
100
|
});
|
|
101
101
|
};
|
|
102
|
-
exports.
|
|
103
|
-
const
|
|
102
|
+
exports.se_DeleteSlackWorkspaceConfigurationCommand = se_DeleteSlackWorkspaceConfigurationCommand;
|
|
103
|
+
const se_GetAccountAliasCommand = async (input, context) => {
|
|
104
104
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
105
105
|
const headers = {
|
|
106
106
|
"content-type": "application/json",
|
|
@@ -118,8 +118,8 @@ const serializeAws_restJson1GetAccountAliasCommand = async (input, context) => {
|
|
|
118
118
|
body,
|
|
119
119
|
});
|
|
120
120
|
};
|
|
121
|
-
exports.
|
|
122
|
-
const
|
|
121
|
+
exports.se_GetAccountAliasCommand = se_GetAccountAliasCommand;
|
|
122
|
+
const se_ListSlackChannelConfigurationsCommand = async (input, context) => {
|
|
123
123
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
124
124
|
const headers = {
|
|
125
125
|
"content-type": "application/json",
|
|
@@ -140,8 +140,8 @@ const serializeAws_restJson1ListSlackChannelConfigurationsCommand = async (input
|
|
|
140
140
|
body,
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
|
-
exports.
|
|
144
|
-
const
|
|
143
|
+
exports.se_ListSlackChannelConfigurationsCommand = se_ListSlackChannelConfigurationsCommand;
|
|
144
|
+
const se_ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
|
|
145
145
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
146
146
|
const headers = {
|
|
147
147
|
"content-type": "application/json",
|
|
@@ -162,8 +162,8 @@ const serializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (inp
|
|
|
162
162
|
body,
|
|
163
163
|
});
|
|
164
164
|
};
|
|
165
|
-
exports.
|
|
166
|
-
const
|
|
165
|
+
exports.se_ListSlackWorkspaceConfigurationsCommand = se_ListSlackWorkspaceConfigurationsCommand;
|
|
166
|
+
const se_PutAccountAliasCommand = async (input, context) => {
|
|
167
167
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
168
168
|
const headers = {
|
|
169
169
|
"content-type": "application/json",
|
|
@@ -183,8 +183,8 @@ const serializeAws_restJson1PutAccountAliasCommand = async (input, context) => {
|
|
|
183
183
|
body,
|
|
184
184
|
});
|
|
185
185
|
};
|
|
186
|
-
exports.
|
|
187
|
-
const
|
|
186
|
+
exports.se_PutAccountAliasCommand = se_PutAccountAliasCommand;
|
|
187
|
+
const se_RegisterSlackWorkspaceForOrganizationCommand = async (input, context) => {
|
|
188
188
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
189
189
|
const headers = {
|
|
190
190
|
"content-type": "application/json",
|
|
@@ -205,8 +205,8 @@ const serializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = async
|
|
|
205
205
|
body,
|
|
206
206
|
});
|
|
207
207
|
};
|
|
208
|
-
exports.
|
|
209
|
-
const
|
|
208
|
+
exports.se_RegisterSlackWorkspaceForOrganizationCommand = se_RegisterSlackWorkspaceForOrganizationCommand;
|
|
209
|
+
const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
|
|
210
210
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
211
211
|
const headers = {
|
|
212
212
|
"content-type": "application/json",
|
|
@@ -236,10 +236,10 @@ const serializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (inpu
|
|
|
236
236
|
body,
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
|
-
exports.
|
|
240
|
-
const
|
|
239
|
+
exports.se_UpdateSlackChannelConfigurationCommand = se_UpdateSlackChannelConfigurationCommand;
|
|
240
|
+
const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
|
|
241
241
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
|
-
return
|
|
242
|
+
return de_CreateSlackChannelConfigurationCommandError(output, context);
|
|
243
243
|
}
|
|
244
244
|
const contents = map({
|
|
245
245
|
$metadata: deserializeMetadata(output),
|
|
@@ -247,8 +247,8 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommand = async (ou
|
|
|
247
247
|
await collectBody(output.body, context);
|
|
248
248
|
return contents;
|
|
249
249
|
};
|
|
250
|
-
exports.
|
|
251
|
-
const
|
|
250
|
+
exports.de_CreateSlackChannelConfigurationCommand = de_CreateSlackChannelConfigurationCommand;
|
|
251
|
+
const de_CreateSlackChannelConfigurationCommandError = async (output, context) => {
|
|
252
252
|
const parsedOutput = {
|
|
253
253
|
...output,
|
|
254
254
|
body: await parseErrorBody(output.body, context),
|
|
@@ -257,19 +257,19 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = asyn
|
|
|
257
257
|
switch (errorCode) {
|
|
258
258
|
case "AccessDeniedException":
|
|
259
259
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
260
|
-
throw await
|
|
260
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
261
261
|
case "ConflictException":
|
|
262
262
|
case "com.amazonaws.supportapp#ConflictException":
|
|
263
|
-
throw await
|
|
263
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
264
264
|
case "InternalServerException":
|
|
265
265
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
266
|
-
throw await
|
|
266
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
267
267
|
case "ServiceQuotaExceededException":
|
|
268
268
|
case "com.amazonaws.supportapp#ServiceQuotaExceededException":
|
|
269
|
-
throw await
|
|
269
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
270
270
|
case "ValidationException":
|
|
271
271
|
case "com.amazonaws.supportapp#ValidationException":
|
|
272
|
-
throw await
|
|
272
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
273
273
|
default:
|
|
274
274
|
const parsedBody = parsedOutput.body;
|
|
275
275
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -280,9 +280,9 @@ const deserializeAws_restJson1CreateSlackChannelConfigurationCommandError = asyn
|
|
|
280
280
|
});
|
|
281
281
|
}
|
|
282
282
|
};
|
|
283
|
-
const
|
|
283
|
+
const de_DeleteAccountAliasCommand = async (output, context) => {
|
|
284
284
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
285
|
-
return
|
|
285
|
+
return de_DeleteAccountAliasCommandError(output, context);
|
|
286
286
|
}
|
|
287
287
|
const contents = map({
|
|
288
288
|
$metadata: deserializeMetadata(output),
|
|
@@ -290,8 +290,8 @@ const deserializeAws_restJson1DeleteAccountAliasCommand = async (output, context
|
|
|
290
290
|
await collectBody(output.body, context);
|
|
291
291
|
return contents;
|
|
292
292
|
};
|
|
293
|
-
exports.
|
|
294
|
-
const
|
|
293
|
+
exports.de_DeleteAccountAliasCommand = de_DeleteAccountAliasCommand;
|
|
294
|
+
const de_DeleteAccountAliasCommandError = async (output, context) => {
|
|
295
295
|
const parsedOutput = {
|
|
296
296
|
...output,
|
|
297
297
|
body: await parseErrorBody(output.body, context),
|
|
@@ -300,13 +300,13 @@ const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, co
|
|
|
300
300
|
switch (errorCode) {
|
|
301
301
|
case "AccessDeniedException":
|
|
302
302
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
303
|
-
throw await
|
|
303
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
304
304
|
case "InternalServerException":
|
|
305
305
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
306
|
-
throw await
|
|
306
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
307
307
|
case "ResourceNotFoundException":
|
|
308
308
|
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
309
|
-
throw await
|
|
309
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
310
310
|
default:
|
|
311
311
|
const parsedBody = parsedOutput.body;
|
|
312
312
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -317,9 +317,9 @@ const deserializeAws_restJson1DeleteAccountAliasCommandError = async (output, co
|
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
319
|
};
|
|
320
|
-
const
|
|
320
|
+
const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
|
|
321
321
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
322
|
-
return
|
|
322
|
+
return de_DeleteSlackChannelConfigurationCommandError(output, context);
|
|
323
323
|
}
|
|
324
324
|
const contents = map({
|
|
325
325
|
$metadata: deserializeMetadata(output),
|
|
@@ -327,8 +327,8 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommand = async (ou
|
|
|
327
327
|
await collectBody(output.body, context);
|
|
328
328
|
return contents;
|
|
329
329
|
};
|
|
330
|
-
exports.
|
|
331
|
-
const
|
|
330
|
+
exports.de_DeleteSlackChannelConfigurationCommand = de_DeleteSlackChannelConfigurationCommand;
|
|
331
|
+
const de_DeleteSlackChannelConfigurationCommandError = async (output, context) => {
|
|
332
332
|
const parsedOutput = {
|
|
333
333
|
...output,
|
|
334
334
|
body: await parseErrorBody(output.body, context),
|
|
@@ -337,19 +337,19 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = asyn
|
|
|
337
337
|
switch (errorCode) {
|
|
338
338
|
case "AccessDeniedException":
|
|
339
339
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
340
|
-
throw await
|
|
340
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
341
341
|
case "ConflictException":
|
|
342
342
|
case "com.amazonaws.supportapp#ConflictException":
|
|
343
|
-
throw await
|
|
343
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
344
344
|
case "InternalServerException":
|
|
345
345
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
346
|
-
throw await
|
|
346
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
347
347
|
case "ResourceNotFoundException":
|
|
348
348
|
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
349
|
-
throw await
|
|
349
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
350
350
|
case "ValidationException":
|
|
351
351
|
case "com.amazonaws.supportapp#ValidationException":
|
|
352
|
-
throw await
|
|
352
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
353
353
|
default:
|
|
354
354
|
const parsedBody = parsedOutput.body;
|
|
355
355
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -360,9 +360,9 @@ const deserializeAws_restJson1DeleteSlackChannelConfigurationCommandError = asyn
|
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
|
-
const
|
|
363
|
+
const de_DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
|
|
364
364
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
-
return
|
|
365
|
+
return de_DeleteSlackWorkspaceConfigurationCommandError(output, context);
|
|
366
366
|
}
|
|
367
367
|
const contents = map({
|
|
368
368
|
$metadata: deserializeMetadata(output),
|
|
@@ -370,8 +370,8 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommand = async (
|
|
|
370
370
|
await collectBody(output.body, context);
|
|
371
371
|
return contents;
|
|
372
372
|
};
|
|
373
|
-
exports.
|
|
374
|
-
const
|
|
373
|
+
exports.de_DeleteSlackWorkspaceConfigurationCommand = de_DeleteSlackWorkspaceConfigurationCommand;
|
|
374
|
+
const de_DeleteSlackWorkspaceConfigurationCommandError = async (output, context) => {
|
|
375
375
|
const parsedOutput = {
|
|
376
376
|
...output,
|
|
377
377
|
body: await parseErrorBody(output.body, context),
|
|
@@ -380,19 +380,19 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = as
|
|
|
380
380
|
switch (errorCode) {
|
|
381
381
|
case "AccessDeniedException":
|
|
382
382
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
383
|
-
throw await
|
|
383
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
384
384
|
case "ConflictException":
|
|
385
385
|
case "com.amazonaws.supportapp#ConflictException":
|
|
386
|
-
throw await
|
|
386
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
387
387
|
case "InternalServerException":
|
|
388
388
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
389
|
-
throw await
|
|
389
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
390
390
|
case "ResourceNotFoundException":
|
|
391
391
|
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
392
|
-
throw await
|
|
392
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
393
393
|
case "ValidationException":
|
|
394
394
|
case "com.amazonaws.supportapp#ValidationException":
|
|
395
|
-
throw await
|
|
395
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
396
396
|
default:
|
|
397
397
|
const parsedBody = parsedOutput.body;
|
|
398
398
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -403,9 +403,9 @@ const deserializeAws_restJson1DeleteSlackWorkspaceConfigurationCommandError = as
|
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
|
-
const
|
|
406
|
+
const de_GetAccountAliasCommand = async (output, context) => {
|
|
407
407
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
408
|
-
return
|
|
408
|
+
return de_GetAccountAliasCommandError(output, context);
|
|
409
409
|
}
|
|
410
410
|
const contents = map({
|
|
411
411
|
$metadata: deserializeMetadata(output),
|
|
@@ -416,8 +416,8 @@ const deserializeAws_restJson1GetAccountAliasCommand = async (output, context) =
|
|
|
416
416
|
}
|
|
417
417
|
return contents;
|
|
418
418
|
};
|
|
419
|
-
exports.
|
|
420
|
-
const
|
|
419
|
+
exports.de_GetAccountAliasCommand = de_GetAccountAliasCommand;
|
|
420
|
+
const de_GetAccountAliasCommandError = async (output, context) => {
|
|
421
421
|
const parsedOutput = {
|
|
422
422
|
...output,
|
|
423
423
|
body: await parseErrorBody(output.body, context),
|
|
@@ -426,7 +426,7 @@ const deserializeAws_restJson1GetAccountAliasCommandError = async (output, conte
|
|
|
426
426
|
switch (errorCode) {
|
|
427
427
|
case "InternalServerException":
|
|
428
428
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
429
|
-
throw await
|
|
429
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
430
430
|
default:
|
|
431
431
|
const parsedBody = parsedOutput.body;
|
|
432
432
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -437,9 +437,9 @@ const deserializeAws_restJson1GetAccountAliasCommandError = async (output, conte
|
|
|
437
437
|
});
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
-
const
|
|
440
|
+
const de_ListSlackChannelConfigurationsCommand = async (output, context) => {
|
|
441
441
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
442
|
-
return
|
|
442
|
+
return de_ListSlackChannelConfigurationsCommandError(output, context);
|
|
443
443
|
}
|
|
444
444
|
const contents = map({
|
|
445
445
|
$metadata: deserializeMetadata(output),
|
|
@@ -449,12 +449,12 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommand = async (out
|
|
|
449
449
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
450
450
|
}
|
|
451
451
|
if (data.slackChannelConfigurations != null) {
|
|
452
|
-
contents.slackChannelConfigurations =
|
|
452
|
+
contents.slackChannelConfigurations = de_slackChannelConfigurationList(data.slackChannelConfigurations, context);
|
|
453
453
|
}
|
|
454
454
|
return contents;
|
|
455
455
|
};
|
|
456
|
-
exports.
|
|
457
|
-
const
|
|
456
|
+
exports.de_ListSlackChannelConfigurationsCommand = de_ListSlackChannelConfigurationsCommand;
|
|
457
|
+
const de_ListSlackChannelConfigurationsCommandError = async (output, context) => {
|
|
458
458
|
const parsedOutput = {
|
|
459
459
|
...output,
|
|
460
460
|
body: await parseErrorBody(output.body, context),
|
|
@@ -463,10 +463,10 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async
|
|
|
463
463
|
switch (errorCode) {
|
|
464
464
|
case "AccessDeniedException":
|
|
465
465
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
466
|
-
throw await
|
|
466
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
467
467
|
case "InternalServerException":
|
|
468
468
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
469
|
-
throw await
|
|
469
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
470
470
|
default:
|
|
471
471
|
const parsedBody = parsedOutput.body;
|
|
472
472
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -477,9 +477,9 @@ const deserializeAws_restJson1ListSlackChannelConfigurationsCommandError = async
|
|
|
477
477
|
});
|
|
478
478
|
}
|
|
479
479
|
};
|
|
480
|
-
const
|
|
480
|
+
const de_ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
|
|
481
481
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return
|
|
482
|
+
return de_ListSlackWorkspaceConfigurationsCommandError(output, context);
|
|
483
483
|
}
|
|
484
484
|
const contents = map({
|
|
485
485
|
$metadata: deserializeMetadata(output),
|
|
@@ -489,12 +489,12 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommand = async (o
|
|
|
489
489
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
490
490
|
}
|
|
491
491
|
if (data.slackWorkspaceConfigurations != null) {
|
|
492
|
-
contents.slackWorkspaceConfigurations =
|
|
492
|
+
contents.slackWorkspaceConfigurations = de_SlackWorkspaceConfigurationList(data.slackWorkspaceConfigurations, context);
|
|
493
493
|
}
|
|
494
494
|
return contents;
|
|
495
495
|
};
|
|
496
|
-
exports.
|
|
497
|
-
const
|
|
496
|
+
exports.de_ListSlackWorkspaceConfigurationsCommand = de_ListSlackWorkspaceConfigurationsCommand;
|
|
497
|
+
const de_ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
|
|
498
498
|
const parsedOutput = {
|
|
499
499
|
...output,
|
|
500
500
|
body: await parseErrorBody(output.body, context),
|
|
@@ -503,10 +503,10 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = asy
|
|
|
503
503
|
switch (errorCode) {
|
|
504
504
|
case "AccessDeniedException":
|
|
505
505
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
506
|
-
throw await
|
|
506
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
507
|
case "InternalServerException":
|
|
508
508
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
509
|
-
throw await
|
|
509
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
510
510
|
default:
|
|
511
511
|
const parsedBody = parsedOutput.body;
|
|
512
512
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -517,9 +517,9 @@ const deserializeAws_restJson1ListSlackWorkspaceConfigurationsCommandError = asy
|
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
};
|
|
520
|
-
const
|
|
520
|
+
const de_PutAccountAliasCommand = async (output, context) => {
|
|
521
521
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
|
-
return
|
|
522
|
+
return de_PutAccountAliasCommandError(output, context);
|
|
523
523
|
}
|
|
524
524
|
const contents = map({
|
|
525
525
|
$metadata: deserializeMetadata(output),
|
|
@@ -527,8 +527,8 @@ const deserializeAws_restJson1PutAccountAliasCommand = async (output, context) =
|
|
|
527
527
|
await collectBody(output.body, context);
|
|
528
528
|
return contents;
|
|
529
529
|
};
|
|
530
|
-
exports.
|
|
531
|
-
const
|
|
530
|
+
exports.de_PutAccountAliasCommand = de_PutAccountAliasCommand;
|
|
531
|
+
const de_PutAccountAliasCommandError = async (output, context) => {
|
|
532
532
|
const parsedOutput = {
|
|
533
533
|
...output,
|
|
534
534
|
body: await parseErrorBody(output.body, context),
|
|
@@ -537,13 +537,13 @@ const deserializeAws_restJson1PutAccountAliasCommandError = async (output, conte
|
|
|
537
537
|
switch (errorCode) {
|
|
538
538
|
case "AccessDeniedException":
|
|
539
539
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
540
|
-
throw await
|
|
540
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
541
541
|
case "InternalServerException":
|
|
542
542
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
543
|
-
throw await
|
|
543
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
544
544
|
case "ValidationException":
|
|
545
545
|
case "com.amazonaws.supportapp#ValidationException":
|
|
546
|
-
throw await
|
|
546
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
547
|
default:
|
|
548
548
|
const parsedBody = parsedOutput.body;
|
|
549
549
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -554,9 +554,9 @@ const deserializeAws_restJson1PutAccountAliasCommandError = async (output, conte
|
|
|
554
554
|
});
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
|
-
const
|
|
557
|
+
const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, context) => {
|
|
558
558
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return
|
|
559
|
+
return de_RegisterSlackWorkspaceForOrganizationCommandError(output, context);
|
|
560
560
|
}
|
|
561
561
|
const contents = map({
|
|
562
562
|
$metadata: deserializeMetadata(output),
|
|
@@ -573,8 +573,8 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommand = asy
|
|
|
573
573
|
}
|
|
574
574
|
return contents;
|
|
575
575
|
};
|
|
576
|
-
exports.
|
|
577
|
-
const
|
|
576
|
+
exports.de_RegisterSlackWorkspaceForOrganizationCommand = de_RegisterSlackWorkspaceForOrganizationCommand;
|
|
577
|
+
const de_RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
|
|
578
578
|
const parsedOutput = {
|
|
579
579
|
...output,
|
|
580
580
|
body: await parseErrorBody(output.body, context),
|
|
@@ -583,19 +583,19 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError
|
|
|
583
583
|
switch (errorCode) {
|
|
584
584
|
case "AccessDeniedException":
|
|
585
585
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
586
|
-
throw await
|
|
586
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
587
587
|
case "ConflictException":
|
|
588
588
|
case "com.amazonaws.supportapp#ConflictException":
|
|
589
|
-
throw await
|
|
589
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
590
590
|
case "InternalServerException":
|
|
591
591
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
592
|
-
throw await
|
|
592
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
593
593
|
case "ResourceNotFoundException":
|
|
594
594
|
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
595
|
-
throw await
|
|
595
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
596
596
|
case "ValidationException":
|
|
597
597
|
case "com.amazonaws.supportapp#ValidationException":
|
|
598
|
-
throw await
|
|
598
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
599
599
|
default:
|
|
600
600
|
const parsedBody = parsedOutput.body;
|
|
601
601
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -606,9 +606,9 @@ const deserializeAws_restJson1RegisterSlackWorkspaceForOrganizationCommandError
|
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
};
|
|
609
|
-
const
|
|
609
|
+
const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
610
610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
|
-
return
|
|
611
|
+
return de_UpdateSlackChannelConfigurationCommandError(output, context);
|
|
612
612
|
}
|
|
613
613
|
const contents = map({
|
|
614
614
|
$metadata: deserializeMetadata(output),
|
|
@@ -640,8 +640,8 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommand = async (ou
|
|
|
640
640
|
}
|
|
641
641
|
return contents;
|
|
642
642
|
};
|
|
643
|
-
exports.
|
|
644
|
-
const
|
|
643
|
+
exports.de_UpdateSlackChannelConfigurationCommand = de_UpdateSlackChannelConfigurationCommand;
|
|
644
|
+
const de_UpdateSlackChannelConfigurationCommandError = async (output, context) => {
|
|
645
645
|
const parsedOutput = {
|
|
646
646
|
...output,
|
|
647
647
|
body: await parseErrorBody(output.body, context),
|
|
@@ -650,19 +650,19 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = asyn
|
|
|
650
650
|
switch (errorCode) {
|
|
651
651
|
case "AccessDeniedException":
|
|
652
652
|
case "com.amazonaws.supportapp#AccessDeniedException":
|
|
653
|
-
throw await
|
|
653
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
654
654
|
case "ConflictException":
|
|
655
655
|
case "com.amazonaws.supportapp#ConflictException":
|
|
656
|
-
throw await
|
|
656
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
657
657
|
case "InternalServerException":
|
|
658
658
|
case "com.amazonaws.supportapp#InternalServerException":
|
|
659
|
-
throw await
|
|
659
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
660
660
|
case "ResourceNotFoundException":
|
|
661
661
|
case "com.amazonaws.supportapp#ResourceNotFoundException":
|
|
662
|
-
throw await
|
|
662
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
663
663
|
case "ValidationException":
|
|
664
664
|
case "com.amazonaws.supportapp#ValidationException":
|
|
665
|
-
throw await
|
|
665
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
666
|
default:
|
|
667
667
|
const parsedBody = parsedOutput.body;
|
|
668
668
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -674,7 +674,7 @@ const deserializeAws_restJson1UpdateSlackChannelConfigurationCommandError = asyn
|
|
|
674
674
|
}
|
|
675
675
|
};
|
|
676
676
|
const map = smithy_client_1.map;
|
|
677
|
-
const
|
|
677
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
678
678
|
const contents = map({});
|
|
679
679
|
const data = parsedOutput.body;
|
|
680
680
|
if (data.message != null) {
|
|
@@ -686,7 +686,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
686
686
|
});
|
|
687
687
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
688
688
|
};
|
|
689
|
-
const
|
|
689
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
690
690
|
const contents = map({});
|
|
691
691
|
const data = parsedOutput.body;
|
|
692
692
|
if (data.message != null) {
|
|
@@ -698,7 +698,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
698
698
|
});
|
|
699
699
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
700
700
|
};
|
|
701
|
-
const
|
|
701
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
702
702
|
const contents = map({});
|
|
703
703
|
const data = parsedOutput.body;
|
|
704
704
|
if (data.message != null) {
|
|
@@ -710,7 +710,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
710
710
|
});
|
|
711
711
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
712
712
|
};
|
|
713
|
-
const
|
|
713
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
714
714
|
const contents = map({});
|
|
715
715
|
const data = parsedOutput.body;
|
|
716
716
|
if (data.message != null) {
|
|
@@ -722,7 +722,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
722
722
|
});
|
|
723
723
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
724
724
|
};
|
|
725
|
-
const
|
|
725
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
726
726
|
const contents = map({});
|
|
727
727
|
const data = parsedOutput.body;
|
|
728
728
|
if (data.message != null) {
|
|
@@ -734,7 +734,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
734
734
|
});
|
|
735
735
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
736
736
|
};
|
|
737
|
-
const
|
|
737
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
738
738
|
const contents = map({});
|
|
739
739
|
const data = parsedOutput.body;
|
|
740
740
|
if (data.message != null) {
|
|
@@ -746,7 +746,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
746
746
|
});
|
|
747
747
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
748
748
|
};
|
|
749
|
-
const
|
|
749
|
+
const de_SlackChannelConfiguration = (output, context) => {
|
|
750
750
|
return {
|
|
751
751
|
channelId: (0, smithy_client_1.expectString)(output.channelId),
|
|
752
752
|
channelName: (0, smithy_client_1.expectString)(output.channelName),
|
|
@@ -758,32 +758,32 @@ const deserializeAws_restJson1SlackChannelConfiguration = (output, context) => {
|
|
|
758
758
|
teamId: (0, smithy_client_1.expectString)(output.teamId),
|
|
759
759
|
};
|
|
760
760
|
};
|
|
761
|
-
const
|
|
761
|
+
const de_slackChannelConfigurationList = (output, context) => {
|
|
762
762
|
const retVal = (output || [])
|
|
763
763
|
.filter((e) => e != null)
|
|
764
764
|
.map((entry) => {
|
|
765
765
|
if (entry === null) {
|
|
766
766
|
return null;
|
|
767
767
|
}
|
|
768
|
-
return
|
|
768
|
+
return de_SlackChannelConfiguration(entry, context);
|
|
769
769
|
});
|
|
770
770
|
return retVal;
|
|
771
771
|
};
|
|
772
|
-
const
|
|
772
|
+
const de_SlackWorkspaceConfiguration = (output, context) => {
|
|
773
773
|
return {
|
|
774
774
|
allowOrganizationMemberAccount: (0, smithy_client_1.expectBoolean)(output.allowOrganizationMemberAccount),
|
|
775
775
|
teamId: (0, smithy_client_1.expectString)(output.teamId),
|
|
776
776
|
teamName: (0, smithy_client_1.expectString)(output.teamName),
|
|
777
777
|
};
|
|
778
778
|
};
|
|
779
|
-
const
|
|
779
|
+
const de_SlackWorkspaceConfigurationList = (output, context) => {
|
|
780
780
|
const retVal = (output || [])
|
|
781
781
|
.filter((e) => e != null)
|
|
782
782
|
.map((entry) => {
|
|
783
783
|
if (entry === null) {
|
|
784
784
|
return null;
|
|
785
785
|
}
|
|
786
|
-
return
|
|
786
|
+
return de_SlackWorkspaceConfiguration(entry, context);
|
|
787
787
|
});
|
|
788
788
|
return retVal;
|
|
789
789
|
};
|