@aws-sdk/client-support-app 3.312.0 → 3.316.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/SupportApp.js +14 -140
- package/dist-cjs/protocols/Aws_restJson1.js +121 -187
- package/dist-es/SupportApp.js +14 -140
- package/dist-es/protocols/Aws_restJson1.js +106 -172
- package/dist-types/SupportApp.d.ts +63 -126
- package/dist-types/ts3.4/SupportApp.d.ts +4 -1
- package/package.json +6 -6
|
@@ -13,18 +13,16 @@ const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
|
|
|
13
13
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
14
14
|
"/control/create-slack-channel-configuration";
|
|
15
15
|
let body;
|
|
16
|
-
body = JSON.stringify({
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
...(input.teamId != null && { teamId: input.teamId }),
|
|
27
|
-
});
|
|
16
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
|
+
channelId: [],
|
|
18
|
+
channelName: [],
|
|
19
|
+
channelRoleArn: [],
|
|
20
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
21
|
+
notifyOnCaseSeverity: [],
|
|
22
|
+
notifyOnCreateOrReopenCase: [],
|
|
23
|
+
notifyOnResolveCase: [],
|
|
24
|
+
teamId: [],
|
|
25
|
+
}));
|
|
28
26
|
return new protocol_http_1.HttpRequest({
|
|
29
27
|
protocol,
|
|
30
28
|
hostname,
|
|
@@ -63,10 +61,10 @@ const se_DeleteSlackChannelConfigurationCommand = async (input, context) => {
|
|
|
63
61
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
64
62
|
"/control/delete-slack-channel-configuration";
|
|
65
63
|
let body;
|
|
66
|
-
body = JSON.stringify({
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
});
|
|
64
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
+
channelId: [],
|
|
66
|
+
teamId: [],
|
|
67
|
+
}));
|
|
70
68
|
return new protocol_http_1.HttpRequest({
|
|
71
69
|
protocol,
|
|
72
70
|
hostname,
|
|
@@ -86,9 +84,9 @@ const se_DeleteSlackWorkspaceConfigurationCommand = async (input, context) => {
|
|
|
86
84
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
87
85
|
"/control/delete-slack-workspace-configuration";
|
|
88
86
|
let body;
|
|
89
|
-
body = JSON.stringify({
|
|
90
|
-
|
|
91
|
-
});
|
|
87
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
88
|
+
teamId: [],
|
|
89
|
+
}));
|
|
92
90
|
return new protocol_http_1.HttpRequest({
|
|
93
91
|
protocol,
|
|
94
92
|
hostname,
|
|
@@ -127,9 +125,9 @@ const se_ListSlackChannelConfigurationsCommand = async (input, context) => {
|
|
|
127
125
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
128
126
|
"/control/list-slack-channel-configurations";
|
|
129
127
|
let body;
|
|
130
|
-
body = JSON.stringify({
|
|
131
|
-
|
|
132
|
-
});
|
|
128
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
129
|
+
nextToken: [],
|
|
130
|
+
}));
|
|
133
131
|
return new protocol_http_1.HttpRequest({
|
|
134
132
|
protocol,
|
|
135
133
|
hostname,
|
|
@@ -149,9 +147,9 @@ const se_ListSlackWorkspaceConfigurationsCommand = async (input, context) => {
|
|
|
149
147
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
150
148
|
"/control/list-slack-workspace-configurations";
|
|
151
149
|
let body;
|
|
152
|
-
body = JSON.stringify({
|
|
153
|
-
|
|
154
|
-
});
|
|
150
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
|
+
nextToken: [],
|
|
152
|
+
}));
|
|
155
153
|
return new protocol_http_1.HttpRequest({
|
|
156
154
|
protocol,
|
|
157
155
|
hostname,
|
|
@@ -170,9 +168,9 @@ const se_PutAccountAliasCommand = async (input, context) => {
|
|
|
170
168
|
};
|
|
171
169
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/control/put-account-alias";
|
|
172
170
|
let body;
|
|
173
|
-
body = JSON.stringify({
|
|
174
|
-
|
|
175
|
-
});
|
|
171
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
172
|
+
accountAlias: [],
|
|
173
|
+
}));
|
|
176
174
|
return new protocol_http_1.HttpRequest({
|
|
177
175
|
protocol,
|
|
178
176
|
hostname,
|
|
@@ -192,9 +190,9 @@ const se_RegisterSlackWorkspaceForOrganizationCommand = async (input, context) =
|
|
|
192
190
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
193
191
|
"/control/register-slack-workspace-for-organization";
|
|
194
192
|
let body;
|
|
195
|
-
body = JSON.stringify({
|
|
196
|
-
|
|
197
|
-
});
|
|
193
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
194
|
+
teamId: [],
|
|
195
|
+
}));
|
|
198
196
|
return new protocol_http_1.HttpRequest({
|
|
199
197
|
protocol,
|
|
200
198
|
hostname,
|
|
@@ -214,18 +212,16 @@ const se_UpdateSlackChannelConfigurationCommand = async (input, context) => {
|
|
|
214
212
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
215
213
|
"/control/update-slack-channel-configuration";
|
|
216
214
|
let body;
|
|
217
|
-
body = JSON.stringify({
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
...(input.teamId != null && { teamId: input.teamId }),
|
|
228
|
-
});
|
|
215
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
216
|
+
channelId: [],
|
|
217
|
+
channelName: [],
|
|
218
|
+
channelRoleArn: [],
|
|
219
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
220
|
+
notifyOnCaseSeverity: [],
|
|
221
|
+
notifyOnCreateOrReopenCase: [],
|
|
222
|
+
notifyOnResolveCase: [],
|
|
223
|
+
teamId: [],
|
|
224
|
+
}));
|
|
229
225
|
return new protocol_http_1.HttpRequest({
|
|
230
226
|
protocol,
|
|
231
227
|
hostname,
|
|
@@ -241,7 +237,7 @@ const de_CreateSlackChannelConfigurationCommand = async (output, context) => {
|
|
|
241
237
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
242
238
|
return de_CreateSlackChannelConfigurationCommandError(output, context);
|
|
243
239
|
}
|
|
244
|
-
const contents = map({
|
|
240
|
+
const contents = (0, smithy_client_1.map)({
|
|
245
241
|
$metadata: deserializeMetadata(output),
|
|
246
242
|
});
|
|
247
243
|
await collectBody(output.body, context);
|
|
@@ -272,10 +268,9 @@ const de_CreateSlackChannelConfigurationCommandError = async (output, context) =
|
|
|
272
268
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
273
269
|
default:
|
|
274
270
|
const parsedBody = parsedOutput.body;
|
|
275
|
-
|
|
271
|
+
return throwDefaultError({
|
|
276
272
|
output,
|
|
277
273
|
parsedBody,
|
|
278
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
279
274
|
errorCode,
|
|
280
275
|
});
|
|
281
276
|
}
|
|
@@ -284,7 +279,7 @@ const de_DeleteAccountAliasCommand = async (output, context) => {
|
|
|
284
279
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
285
280
|
return de_DeleteAccountAliasCommandError(output, context);
|
|
286
281
|
}
|
|
287
|
-
const contents = map({
|
|
282
|
+
const contents = (0, smithy_client_1.map)({
|
|
288
283
|
$metadata: deserializeMetadata(output),
|
|
289
284
|
});
|
|
290
285
|
await collectBody(output.body, context);
|
|
@@ -309,10 +304,9 @@ const de_DeleteAccountAliasCommandError = async (output, context) => {
|
|
|
309
304
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
310
305
|
default:
|
|
311
306
|
const parsedBody = parsedOutput.body;
|
|
312
|
-
|
|
307
|
+
return throwDefaultError({
|
|
313
308
|
output,
|
|
314
309
|
parsedBody,
|
|
315
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
316
310
|
errorCode,
|
|
317
311
|
});
|
|
318
312
|
}
|
|
@@ -321,7 +315,7 @@ const de_DeleteSlackChannelConfigurationCommand = async (output, context) => {
|
|
|
321
315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
322
316
|
return de_DeleteSlackChannelConfigurationCommandError(output, context);
|
|
323
317
|
}
|
|
324
|
-
const contents = map({
|
|
318
|
+
const contents = (0, smithy_client_1.map)({
|
|
325
319
|
$metadata: deserializeMetadata(output),
|
|
326
320
|
});
|
|
327
321
|
await collectBody(output.body, context);
|
|
@@ -352,10 +346,9 @@ const de_DeleteSlackChannelConfigurationCommandError = async (output, context) =
|
|
|
352
346
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
353
347
|
default:
|
|
354
348
|
const parsedBody = parsedOutput.body;
|
|
355
|
-
|
|
349
|
+
return throwDefaultError({
|
|
356
350
|
output,
|
|
357
351
|
parsedBody,
|
|
358
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
359
352
|
errorCode,
|
|
360
353
|
});
|
|
361
354
|
}
|
|
@@ -364,7 +357,7 @@ const de_DeleteSlackWorkspaceConfigurationCommand = async (output, context) => {
|
|
|
364
357
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
358
|
return de_DeleteSlackWorkspaceConfigurationCommandError(output, context);
|
|
366
359
|
}
|
|
367
|
-
const contents = map({
|
|
360
|
+
const contents = (0, smithy_client_1.map)({
|
|
368
361
|
$metadata: deserializeMetadata(output),
|
|
369
362
|
});
|
|
370
363
|
await collectBody(output.body, context);
|
|
@@ -395,10 +388,9 @@ const de_DeleteSlackWorkspaceConfigurationCommandError = async (output, context)
|
|
|
395
388
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
396
389
|
default:
|
|
397
390
|
const parsedBody = parsedOutput.body;
|
|
398
|
-
|
|
391
|
+
return throwDefaultError({
|
|
399
392
|
output,
|
|
400
393
|
parsedBody,
|
|
401
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
402
394
|
errorCode,
|
|
403
395
|
});
|
|
404
396
|
}
|
|
@@ -407,13 +399,14 @@ const de_GetAccountAliasCommand = async (output, context) => {
|
|
|
407
399
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
408
400
|
return de_GetAccountAliasCommandError(output, context);
|
|
409
401
|
}
|
|
410
|
-
const contents = map({
|
|
402
|
+
const contents = (0, smithy_client_1.map)({
|
|
411
403
|
$metadata: deserializeMetadata(output),
|
|
412
404
|
});
|
|
413
405
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
}
|
|
406
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
407
|
+
accountAlias: smithy_client_1.expectString,
|
|
408
|
+
});
|
|
409
|
+
Object.assign(contents, doc);
|
|
417
410
|
return contents;
|
|
418
411
|
};
|
|
419
412
|
exports.de_GetAccountAliasCommand = de_GetAccountAliasCommand;
|
|
@@ -429,10 +422,9 @@ const de_GetAccountAliasCommandError = async (output, context) => {
|
|
|
429
422
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
430
423
|
default:
|
|
431
424
|
const parsedBody = parsedOutput.body;
|
|
432
|
-
|
|
425
|
+
return throwDefaultError({
|
|
433
426
|
output,
|
|
434
427
|
parsedBody,
|
|
435
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
436
428
|
errorCode,
|
|
437
429
|
});
|
|
438
430
|
}
|
|
@@ -441,16 +433,15 @@ const de_ListSlackChannelConfigurationsCommand = async (output, context) => {
|
|
|
441
433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
442
434
|
return de_ListSlackChannelConfigurationsCommandError(output, context);
|
|
443
435
|
}
|
|
444
|
-
const contents = map({
|
|
436
|
+
const contents = (0, smithy_client_1.map)({
|
|
445
437
|
$metadata: deserializeMetadata(output),
|
|
446
438
|
});
|
|
447
439
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
}
|
|
440
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
441
|
+
nextToken: smithy_client_1.expectString,
|
|
442
|
+
slackChannelConfigurations: smithy_client_1._json,
|
|
443
|
+
});
|
|
444
|
+
Object.assign(contents, doc);
|
|
454
445
|
return contents;
|
|
455
446
|
};
|
|
456
447
|
exports.de_ListSlackChannelConfigurationsCommand = de_ListSlackChannelConfigurationsCommand;
|
|
@@ -469,10 +460,9 @@ const de_ListSlackChannelConfigurationsCommandError = async (output, context) =>
|
|
|
469
460
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
470
461
|
default:
|
|
471
462
|
const parsedBody = parsedOutput.body;
|
|
472
|
-
|
|
463
|
+
return throwDefaultError({
|
|
473
464
|
output,
|
|
474
465
|
parsedBody,
|
|
475
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
476
466
|
errorCode,
|
|
477
467
|
});
|
|
478
468
|
}
|
|
@@ -481,16 +471,15 @@ const de_ListSlackWorkspaceConfigurationsCommand = async (output, context) => {
|
|
|
481
471
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
472
|
return de_ListSlackWorkspaceConfigurationsCommandError(output, context);
|
|
483
473
|
}
|
|
484
|
-
const contents = map({
|
|
474
|
+
const contents = (0, smithy_client_1.map)({
|
|
485
475
|
$metadata: deserializeMetadata(output),
|
|
486
476
|
});
|
|
487
477
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
478
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
479
|
+
nextToken: smithy_client_1.expectString,
|
|
480
|
+
slackWorkspaceConfigurations: smithy_client_1._json,
|
|
481
|
+
});
|
|
482
|
+
Object.assign(contents, doc);
|
|
494
483
|
return contents;
|
|
495
484
|
};
|
|
496
485
|
exports.de_ListSlackWorkspaceConfigurationsCommand = de_ListSlackWorkspaceConfigurationsCommand;
|
|
@@ -509,10 +498,9 @@ const de_ListSlackWorkspaceConfigurationsCommandError = async (output, context)
|
|
|
509
498
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
510
499
|
default:
|
|
511
500
|
const parsedBody = parsedOutput.body;
|
|
512
|
-
|
|
501
|
+
return throwDefaultError({
|
|
513
502
|
output,
|
|
514
503
|
parsedBody,
|
|
515
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
516
504
|
errorCode,
|
|
517
505
|
});
|
|
518
506
|
}
|
|
@@ -521,7 +509,7 @@ const de_PutAccountAliasCommand = async (output, context) => {
|
|
|
521
509
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
510
|
return de_PutAccountAliasCommandError(output, context);
|
|
523
511
|
}
|
|
524
|
-
const contents = map({
|
|
512
|
+
const contents = (0, smithy_client_1.map)({
|
|
525
513
|
$metadata: deserializeMetadata(output),
|
|
526
514
|
});
|
|
527
515
|
await collectBody(output.body, context);
|
|
@@ -546,10 +534,9 @@ const de_PutAccountAliasCommandError = async (output, context) => {
|
|
|
546
534
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
547
535
|
default:
|
|
548
536
|
const parsedBody = parsedOutput.body;
|
|
549
|
-
|
|
537
|
+
return throwDefaultError({
|
|
550
538
|
output,
|
|
551
539
|
parsedBody,
|
|
552
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
553
540
|
errorCode,
|
|
554
541
|
});
|
|
555
542
|
}
|
|
@@ -558,19 +545,16 @@ const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, context)
|
|
|
558
545
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
546
|
return de_RegisterSlackWorkspaceForOrganizationCommandError(output, context);
|
|
560
547
|
}
|
|
561
|
-
const contents = map({
|
|
548
|
+
const contents = (0, smithy_client_1.map)({
|
|
562
549
|
$metadata: deserializeMetadata(output),
|
|
563
550
|
});
|
|
564
551
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
if (data.teamName != null) {
|
|
572
|
-
contents.teamName = (0, smithy_client_1.expectString)(data.teamName);
|
|
573
|
-
}
|
|
552
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
553
|
+
accountType: smithy_client_1.expectString,
|
|
554
|
+
teamId: smithy_client_1.expectString,
|
|
555
|
+
teamName: smithy_client_1.expectString,
|
|
556
|
+
});
|
|
557
|
+
Object.assign(contents, doc);
|
|
574
558
|
return contents;
|
|
575
559
|
};
|
|
576
560
|
exports.de_RegisterSlackWorkspaceForOrganizationCommand = de_RegisterSlackWorkspaceForOrganizationCommand;
|
|
@@ -598,10 +582,9 @@ const de_RegisterSlackWorkspaceForOrganizationCommandError = async (output, cont
|
|
|
598
582
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
599
583
|
default:
|
|
600
584
|
const parsedBody = parsedOutput.body;
|
|
601
|
-
|
|
585
|
+
return throwDefaultError({
|
|
602
586
|
output,
|
|
603
587
|
parsedBody,
|
|
604
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
605
588
|
errorCode,
|
|
606
589
|
});
|
|
607
590
|
}
|
|
@@ -610,34 +593,21 @@ const de_UpdateSlackChannelConfigurationCommand = async (output, context) => {
|
|
|
610
593
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
611
594
|
return de_UpdateSlackChannelConfigurationCommandError(output, context);
|
|
612
595
|
}
|
|
613
|
-
const contents = map({
|
|
596
|
+
const contents = (0, smithy_client_1.map)({
|
|
614
597
|
$metadata: deserializeMetadata(output),
|
|
615
598
|
});
|
|
616
599
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
if (data.notifyOnCaseSeverity != null) {
|
|
630
|
-
contents.notifyOnCaseSeverity = (0, smithy_client_1.expectString)(data.notifyOnCaseSeverity);
|
|
631
|
-
}
|
|
632
|
-
if (data.notifyOnCreateOrReopenCase != null) {
|
|
633
|
-
contents.notifyOnCreateOrReopenCase = (0, smithy_client_1.expectBoolean)(data.notifyOnCreateOrReopenCase);
|
|
634
|
-
}
|
|
635
|
-
if (data.notifyOnResolveCase != null) {
|
|
636
|
-
contents.notifyOnResolveCase = (0, smithy_client_1.expectBoolean)(data.notifyOnResolveCase);
|
|
637
|
-
}
|
|
638
|
-
if (data.teamId != null) {
|
|
639
|
-
contents.teamId = (0, smithy_client_1.expectString)(data.teamId);
|
|
640
|
-
}
|
|
600
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
601
|
+
channelId: smithy_client_1.expectString,
|
|
602
|
+
channelName: smithy_client_1.expectString,
|
|
603
|
+
channelRoleArn: smithy_client_1.expectString,
|
|
604
|
+
notifyOnAddCorrespondenceToCase: smithy_client_1.expectBoolean,
|
|
605
|
+
notifyOnCaseSeverity: smithy_client_1.expectString,
|
|
606
|
+
notifyOnCreateOrReopenCase: smithy_client_1.expectBoolean,
|
|
607
|
+
notifyOnResolveCase: smithy_client_1.expectBoolean,
|
|
608
|
+
teamId: smithy_client_1.expectString,
|
|
609
|
+
});
|
|
610
|
+
Object.assign(contents, doc);
|
|
641
611
|
return contents;
|
|
642
612
|
};
|
|
643
613
|
exports.de_UpdateSlackChannelConfigurationCommand = de_UpdateSlackChannelConfigurationCommand;
|
|
@@ -665,21 +635,21 @@ const de_UpdateSlackChannelConfigurationCommandError = async (output, context) =
|
|
|
665
635
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
666
636
|
default:
|
|
667
637
|
const parsedBody = parsedOutput.body;
|
|
668
|
-
|
|
638
|
+
return throwDefaultError({
|
|
669
639
|
output,
|
|
670
640
|
parsedBody,
|
|
671
|
-
exceptionCtor: SupportAppServiceException_1.SupportAppServiceException,
|
|
672
641
|
errorCode,
|
|
673
642
|
});
|
|
674
643
|
}
|
|
675
644
|
};
|
|
676
|
-
const
|
|
645
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(SupportAppServiceException_1.SupportAppServiceException);
|
|
677
646
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
678
|
-
const contents = map({});
|
|
647
|
+
const contents = (0, smithy_client_1.map)({});
|
|
679
648
|
const data = parsedOutput.body;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}
|
|
649
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
650
|
+
message: smithy_client_1.expectString,
|
|
651
|
+
});
|
|
652
|
+
Object.assign(contents, doc);
|
|
683
653
|
const exception = new models_0_1.AccessDeniedException({
|
|
684
654
|
$metadata: deserializeMetadata(parsedOutput),
|
|
685
655
|
...contents,
|
|
@@ -687,11 +657,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
687
657
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
688
658
|
};
|
|
689
659
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
690
|
-
const contents = map({});
|
|
660
|
+
const contents = (0, smithy_client_1.map)({});
|
|
691
661
|
const data = parsedOutput.body;
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
}
|
|
662
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
663
|
+
message: smithy_client_1.expectString,
|
|
664
|
+
});
|
|
665
|
+
Object.assign(contents, doc);
|
|
695
666
|
const exception = new models_0_1.ConflictException({
|
|
696
667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
697
668
|
...contents,
|
|
@@ -699,11 +670,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
699
670
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
700
671
|
};
|
|
701
672
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
702
|
-
const contents = map({});
|
|
673
|
+
const contents = (0, smithy_client_1.map)({});
|
|
703
674
|
const data = parsedOutput.body;
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}
|
|
675
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
676
|
+
message: smithy_client_1.expectString,
|
|
677
|
+
});
|
|
678
|
+
Object.assign(contents, doc);
|
|
707
679
|
const exception = new models_0_1.InternalServerException({
|
|
708
680
|
$metadata: deserializeMetadata(parsedOutput),
|
|
709
681
|
...contents,
|
|
@@ -711,11 +683,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
711
683
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
712
684
|
};
|
|
713
685
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
714
|
-
const contents = map({});
|
|
686
|
+
const contents = (0, smithy_client_1.map)({});
|
|
715
687
|
const data = parsedOutput.body;
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
}
|
|
688
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
689
|
+
message: smithy_client_1.expectString,
|
|
690
|
+
});
|
|
691
|
+
Object.assign(contents, doc);
|
|
719
692
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
720
693
|
$metadata: deserializeMetadata(parsedOutput),
|
|
721
694
|
...contents,
|
|
@@ -723,11 +696,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
723
696
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
724
697
|
};
|
|
725
698
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
726
|
-
const contents = map({});
|
|
699
|
+
const contents = (0, smithy_client_1.map)({});
|
|
727
700
|
const data = parsedOutput.body;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
}
|
|
701
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
702
|
+
message: smithy_client_1.expectString,
|
|
703
|
+
});
|
|
704
|
+
Object.assign(contents, doc);
|
|
731
705
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
732
706
|
$metadata: deserializeMetadata(parsedOutput),
|
|
733
707
|
...contents,
|
|
@@ -735,58 +709,18 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
735
709
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
736
710
|
};
|
|
737
711
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
738
|
-
const contents = map({});
|
|
712
|
+
const contents = (0, smithy_client_1.map)({});
|
|
739
713
|
const data = parsedOutput.body;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
}
|
|
714
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
715
|
+
message: smithy_client_1.expectString,
|
|
716
|
+
});
|
|
717
|
+
Object.assign(contents, doc);
|
|
743
718
|
const exception = new models_0_1.ValidationException({
|
|
744
719
|
$metadata: deserializeMetadata(parsedOutput),
|
|
745
720
|
...contents,
|
|
746
721
|
});
|
|
747
722
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
748
723
|
};
|
|
749
|
-
const de_SlackChannelConfiguration = (output, context) => {
|
|
750
|
-
return {
|
|
751
|
-
channelId: (0, smithy_client_1.expectString)(output.channelId),
|
|
752
|
-
channelName: (0, smithy_client_1.expectString)(output.channelName),
|
|
753
|
-
channelRoleArn: (0, smithy_client_1.expectString)(output.channelRoleArn),
|
|
754
|
-
notifyOnAddCorrespondenceToCase: (0, smithy_client_1.expectBoolean)(output.notifyOnAddCorrespondenceToCase),
|
|
755
|
-
notifyOnCaseSeverity: (0, smithy_client_1.expectString)(output.notifyOnCaseSeverity),
|
|
756
|
-
notifyOnCreateOrReopenCase: (0, smithy_client_1.expectBoolean)(output.notifyOnCreateOrReopenCase),
|
|
757
|
-
notifyOnResolveCase: (0, smithy_client_1.expectBoolean)(output.notifyOnResolveCase),
|
|
758
|
-
teamId: (0, smithy_client_1.expectString)(output.teamId),
|
|
759
|
-
};
|
|
760
|
-
};
|
|
761
|
-
const de_slackChannelConfigurationList = (output, context) => {
|
|
762
|
-
const retVal = (output || [])
|
|
763
|
-
.filter((e) => e != null)
|
|
764
|
-
.map((entry) => {
|
|
765
|
-
if (entry === null) {
|
|
766
|
-
return null;
|
|
767
|
-
}
|
|
768
|
-
return de_SlackChannelConfiguration(entry, context);
|
|
769
|
-
});
|
|
770
|
-
return retVal;
|
|
771
|
-
};
|
|
772
|
-
const de_SlackWorkspaceConfiguration = (output, context) => {
|
|
773
|
-
return {
|
|
774
|
-
allowOrganizationMemberAccount: (0, smithy_client_1.expectBoolean)(output.allowOrganizationMemberAccount),
|
|
775
|
-
teamId: (0, smithy_client_1.expectString)(output.teamId),
|
|
776
|
-
teamName: (0, smithy_client_1.expectString)(output.teamName),
|
|
777
|
-
};
|
|
778
|
-
};
|
|
779
|
-
const de_SlackWorkspaceConfigurationList = (output, context) => {
|
|
780
|
-
const retVal = (output || [])
|
|
781
|
-
.filter((e) => e != null)
|
|
782
|
-
.map((entry) => {
|
|
783
|
-
if (entry === null) {
|
|
784
|
-
return null;
|
|
785
|
-
}
|
|
786
|
-
return de_SlackWorkspaceConfiguration(entry, context);
|
|
787
|
-
});
|
|
788
|
-
return retVal;
|
|
789
|
-
};
|
|
790
724
|
const deserializeMetadata = (output) => ({
|
|
791
725
|
httpStatusCode: output.statusCode,
|
|
792
726
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|