@aws-sdk/client-support-app 3.310.0 → 3.315.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/protocols/Aws_restJson1.js +121 -187
- package/dist-es/protocols/Aws_restJson1.js +106 -172
- 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"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { SupportAppServiceException as __BaseException } from "../models/SupportAppServiceException";
|
|
5
5
|
export const se_CreateSlackChannelConfigurationCommand = async (input, context) => {
|
|
@@ -10,18 +10,16 @@ export const se_CreateSlackChannelConfigurationCommand = async (input, context)
|
|
|
10
10
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
11
11
|
"/control/create-slack-channel-configuration";
|
|
12
12
|
let body;
|
|
13
|
-
body = JSON.stringify({
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...(input.teamId != null && { teamId: input.teamId }),
|
|
24
|
-
});
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
channelId: [],
|
|
15
|
+
channelName: [],
|
|
16
|
+
channelRoleArn: [],
|
|
17
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
18
|
+
notifyOnCaseSeverity: [],
|
|
19
|
+
notifyOnCreateOrReopenCase: [],
|
|
20
|
+
notifyOnResolveCase: [],
|
|
21
|
+
teamId: [],
|
|
22
|
+
}));
|
|
25
23
|
return new __HttpRequest({
|
|
26
24
|
protocol,
|
|
27
25
|
hostname,
|
|
@@ -58,10 +56,10 @@ export const se_DeleteSlackChannelConfigurationCommand = async (input, context)
|
|
|
58
56
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
59
57
|
"/control/delete-slack-channel-configuration";
|
|
60
58
|
let body;
|
|
61
|
-
body = JSON.stringify({
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
});
|
|
59
|
+
body = JSON.stringify(take(input, {
|
|
60
|
+
channelId: [],
|
|
61
|
+
teamId: [],
|
|
62
|
+
}));
|
|
65
63
|
return new __HttpRequest({
|
|
66
64
|
protocol,
|
|
67
65
|
hostname,
|
|
@@ -80,9 +78,9 @@ export const se_DeleteSlackWorkspaceConfigurationCommand = async (input, context
|
|
|
80
78
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
81
79
|
"/control/delete-slack-workspace-configuration";
|
|
82
80
|
let body;
|
|
83
|
-
body = JSON.stringify({
|
|
84
|
-
|
|
85
|
-
});
|
|
81
|
+
body = JSON.stringify(take(input, {
|
|
82
|
+
teamId: [],
|
|
83
|
+
}));
|
|
86
84
|
return new __HttpRequest({
|
|
87
85
|
protocol,
|
|
88
86
|
hostname,
|
|
@@ -119,9 +117,9 @@ export const se_ListSlackChannelConfigurationsCommand = async (input, context) =
|
|
|
119
117
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
120
118
|
"/control/list-slack-channel-configurations";
|
|
121
119
|
let body;
|
|
122
|
-
body = JSON.stringify({
|
|
123
|
-
|
|
124
|
-
});
|
|
120
|
+
body = JSON.stringify(take(input, {
|
|
121
|
+
nextToken: [],
|
|
122
|
+
}));
|
|
125
123
|
return new __HttpRequest({
|
|
126
124
|
protocol,
|
|
127
125
|
hostname,
|
|
@@ -140,9 +138,9 @@ export const se_ListSlackWorkspaceConfigurationsCommand = async (input, context)
|
|
|
140
138
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
141
139
|
"/control/list-slack-workspace-configurations";
|
|
142
140
|
let body;
|
|
143
|
-
body = JSON.stringify({
|
|
144
|
-
|
|
145
|
-
});
|
|
141
|
+
body = JSON.stringify(take(input, {
|
|
142
|
+
nextToken: [],
|
|
143
|
+
}));
|
|
146
144
|
return new __HttpRequest({
|
|
147
145
|
protocol,
|
|
148
146
|
hostname,
|
|
@@ -160,9 +158,9 @@ export const se_PutAccountAliasCommand = async (input, context) => {
|
|
|
160
158
|
};
|
|
161
159
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/control/put-account-alias";
|
|
162
160
|
let body;
|
|
163
|
-
body = JSON.stringify({
|
|
164
|
-
|
|
165
|
-
});
|
|
161
|
+
body = JSON.stringify(take(input, {
|
|
162
|
+
accountAlias: [],
|
|
163
|
+
}));
|
|
166
164
|
return new __HttpRequest({
|
|
167
165
|
protocol,
|
|
168
166
|
hostname,
|
|
@@ -181,9 +179,9 @@ export const se_RegisterSlackWorkspaceForOrganizationCommand = async (input, con
|
|
|
181
179
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
182
180
|
"/control/register-slack-workspace-for-organization";
|
|
183
181
|
let body;
|
|
184
|
-
body = JSON.stringify({
|
|
185
|
-
|
|
186
|
-
});
|
|
182
|
+
body = JSON.stringify(take(input, {
|
|
183
|
+
teamId: [],
|
|
184
|
+
}));
|
|
187
185
|
return new __HttpRequest({
|
|
188
186
|
protocol,
|
|
189
187
|
hostname,
|
|
@@ -202,18 +200,16 @@ export const se_UpdateSlackChannelConfigurationCommand = async (input, context)
|
|
|
202
200
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
203
201
|
"/control/update-slack-channel-configuration";
|
|
204
202
|
let body;
|
|
205
|
-
body = JSON.stringify({
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
...(input.teamId != null && { teamId: input.teamId }),
|
|
216
|
-
});
|
|
203
|
+
body = JSON.stringify(take(input, {
|
|
204
|
+
channelId: [],
|
|
205
|
+
channelName: [],
|
|
206
|
+
channelRoleArn: [],
|
|
207
|
+
notifyOnAddCorrespondenceToCase: [],
|
|
208
|
+
notifyOnCaseSeverity: [],
|
|
209
|
+
notifyOnCreateOrReopenCase: [],
|
|
210
|
+
notifyOnResolveCase: [],
|
|
211
|
+
teamId: [],
|
|
212
|
+
}));
|
|
217
213
|
return new __HttpRequest({
|
|
218
214
|
protocol,
|
|
219
215
|
hostname,
|
|
@@ -258,10 +254,9 @@ const de_CreateSlackChannelConfigurationCommandError = async (output, context) =
|
|
|
258
254
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
259
255
|
default:
|
|
260
256
|
const parsedBody = parsedOutput.body;
|
|
261
|
-
throwDefaultError({
|
|
257
|
+
return throwDefaultError({
|
|
262
258
|
output,
|
|
263
259
|
parsedBody,
|
|
264
|
-
exceptionCtor: __BaseException,
|
|
265
260
|
errorCode,
|
|
266
261
|
});
|
|
267
262
|
}
|
|
@@ -294,10 +289,9 @@ const de_DeleteAccountAliasCommandError = async (output, context) => {
|
|
|
294
289
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
295
290
|
default:
|
|
296
291
|
const parsedBody = parsedOutput.body;
|
|
297
|
-
throwDefaultError({
|
|
292
|
+
return throwDefaultError({
|
|
298
293
|
output,
|
|
299
294
|
parsedBody,
|
|
300
|
-
exceptionCtor: __BaseException,
|
|
301
295
|
errorCode,
|
|
302
296
|
});
|
|
303
297
|
}
|
|
@@ -336,10 +330,9 @@ const de_DeleteSlackChannelConfigurationCommandError = async (output, context) =
|
|
|
336
330
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
337
331
|
default:
|
|
338
332
|
const parsedBody = parsedOutput.body;
|
|
339
|
-
throwDefaultError({
|
|
333
|
+
return throwDefaultError({
|
|
340
334
|
output,
|
|
341
335
|
parsedBody,
|
|
342
|
-
exceptionCtor: __BaseException,
|
|
343
336
|
errorCode,
|
|
344
337
|
});
|
|
345
338
|
}
|
|
@@ -378,10 +371,9 @@ const de_DeleteSlackWorkspaceConfigurationCommandError = async (output, context)
|
|
|
378
371
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
379
372
|
default:
|
|
380
373
|
const parsedBody = parsedOutput.body;
|
|
381
|
-
throwDefaultError({
|
|
374
|
+
return throwDefaultError({
|
|
382
375
|
output,
|
|
383
376
|
parsedBody,
|
|
384
|
-
exceptionCtor: __BaseException,
|
|
385
377
|
errorCode,
|
|
386
378
|
});
|
|
387
379
|
}
|
|
@@ -394,9 +386,10 @@ export const de_GetAccountAliasCommand = async (output, context) => {
|
|
|
394
386
|
$metadata: deserializeMetadata(output),
|
|
395
387
|
});
|
|
396
388
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}
|
|
389
|
+
const doc = take(data, {
|
|
390
|
+
accountAlias: __expectString,
|
|
391
|
+
});
|
|
392
|
+
Object.assign(contents, doc);
|
|
400
393
|
return contents;
|
|
401
394
|
};
|
|
402
395
|
const de_GetAccountAliasCommandError = async (output, context) => {
|
|
@@ -411,10 +404,9 @@ const de_GetAccountAliasCommandError = async (output, context) => {
|
|
|
411
404
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
412
405
|
default:
|
|
413
406
|
const parsedBody = parsedOutput.body;
|
|
414
|
-
throwDefaultError({
|
|
407
|
+
return throwDefaultError({
|
|
415
408
|
output,
|
|
416
409
|
parsedBody,
|
|
417
|
-
exceptionCtor: __BaseException,
|
|
418
410
|
errorCode,
|
|
419
411
|
});
|
|
420
412
|
}
|
|
@@ -427,12 +419,11 @@ export const de_ListSlackChannelConfigurationsCommand = async (output, context)
|
|
|
427
419
|
$metadata: deserializeMetadata(output),
|
|
428
420
|
});
|
|
429
421
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
}
|
|
422
|
+
const doc = take(data, {
|
|
423
|
+
nextToken: __expectString,
|
|
424
|
+
slackChannelConfigurations: _json,
|
|
425
|
+
});
|
|
426
|
+
Object.assign(contents, doc);
|
|
436
427
|
return contents;
|
|
437
428
|
};
|
|
438
429
|
const de_ListSlackChannelConfigurationsCommandError = async (output, context) => {
|
|
@@ -450,10 +441,9 @@ const de_ListSlackChannelConfigurationsCommandError = async (output, context) =>
|
|
|
450
441
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
451
442
|
default:
|
|
452
443
|
const parsedBody = parsedOutput.body;
|
|
453
|
-
throwDefaultError({
|
|
444
|
+
return throwDefaultError({
|
|
454
445
|
output,
|
|
455
446
|
parsedBody,
|
|
456
|
-
exceptionCtor: __BaseException,
|
|
457
447
|
errorCode,
|
|
458
448
|
});
|
|
459
449
|
}
|
|
@@ -466,12 +456,11 @@ export const de_ListSlackWorkspaceConfigurationsCommand = async (output, context
|
|
|
466
456
|
$metadata: deserializeMetadata(output),
|
|
467
457
|
});
|
|
468
458
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
}
|
|
459
|
+
const doc = take(data, {
|
|
460
|
+
nextToken: __expectString,
|
|
461
|
+
slackWorkspaceConfigurations: _json,
|
|
462
|
+
});
|
|
463
|
+
Object.assign(contents, doc);
|
|
475
464
|
return contents;
|
|
476
465
|
};
|
|
477
466
|
const de_ListSlackWorkspaceConfigurationsCommandError = async (output, context) => {
|
|
@@ -489,10 +478,9 @@ const de_ListSlackWorkspaceConfigurationsCommandError = async (output, context)
|
|
|
489
478
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
490
479
|
default:
|
|
491
480
|
const parsedBody = parsedOutput.body;
|
|
492
|
-
throwDefaultError({
|
|
481
|
+
return throwDefaultError({
|
|
493
482
|
output,
|
|
494
483
|
parsedBody,
|
|
495
|
-
exceptionCtor: __BaseException,
|
|
496
484
|
errorCode,
|
|
497
485
|
});
|
|
498
486
|
}
|
|
@@ -525,10 +513,9 @@ const de_PutAccountAliasCommandError = async (output, context) => {
|
|
|
525
513
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
526
514
|
default:
|
|
527
515
|
const parsedBody = parsedOutput.body;
|
|
528
|
-
throwDefaultError({
|
|
516
|
+
return throwDefaultError({
|
|
529
517
|
output,
|
|
530
518
|
parsedBody,
|
|
531
|
-
exceptionCtor: __BaseException,
|
|
532
519
|
errorCode,
|
|
533
520
|
});
|
|
534
521
|
}
|
|
@@ -541,15 +528,12 @@ export const de_RegisterSlackWorkspaceForOrganizationCommand = async (output, co
|
|
|
541
528
|
$metadata: deserializeMetadata(output),
|
|
542
529
|
});
|
|
543
530
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if (data.teamName != null) {
|
|
551
|
-
contents.teamName = __expectString(data.teamName);
|
|
552
|
-
}
|
|
531
|
+
const doc = take(data, {
|
|
532
|
+
accountType: __expectString,
|
|
533
|
+
teamId: __expectString,
|
|
534
|
+
teamName: __expectString,
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
553
537
|
return contents;
|
|
554
538
|
};
|
|
555
539
|
const de_RegisterSlackWorkspaceForOrganizationCommandError = async (output, context) => {
|
|
@@ -576,10 +560,9 @@ const de_RegisterSlackWorkspaceForOrganizationCommandError = async (output, cont
|
|
|
576
560
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
577
561
|
default:
|
|
578
562
|
const parsedBody = parsedOutput.body;
|
|
579
|
-
throwDefaultError({
|
|
563
|
+
return throwDefaultError({
|
|
580
564
|
output,
|
|
581
565
|
parsedBody,
|
|
582
|
-
exceptionCtor: __BaseException,
|
|
583
566
|
errorCode,
|
|
584
567
|
});
|
|
585
568
|
}
|
|
@@ -592,30 +575,17 @@ export const de_UpdateSlackChannelConfigurationCommand = async (output, context)
|
|
|
592
575
|
$metadata: deserializeMetadata(output),
|
|
593
576
|
});
|
|
594
577
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
}
|
|
607
|
-
if (data.notifyOnCaseSeverity != null) {
|
|
608
|
-
contents.notifyOnCaseSeverity = __expectString(data.notifyOnCaseSeverity);
|
|
609
|
-
}
|
|
610
|
-
if (data.notifyOnCreateOrReopenCase != null) {
|
|
611
|
-
contents.notifyOnCreateOrReopenCase = __expectBoolean(data.notifyOnCreateOrReopenCase);
|
|
612
|
-
}
|
|
613
|
-
if (data.notifyOnResolveCase != null) {
|
|
614
|
-
contents.notifyOnResolveCase = __expectBoolean(data.notifyOnResolveCase);
|
|
615
|
-
}
|
|
616
|
-
if (data.teamId != null) {
|
|
617
|
-
contents.teamId = __expectString(data.teamId);
|
|
618
|
-
}
|
|
578
|
+
const doc = take(data, {
|
|
579
|
+
channelId: __expectString,
|
|
580
|
+
channelName: __expectString,
|
|
581
|
+
channelRoleArn: __expectString,
|
|
582
|
+
notifyOnAddCorrespondenceToCase: __expectBoolean,
|
|
583
|
+
notifyOnCaseSeverity: __expectString,
|
|
584
|
+
notifyOnCreateOrReopenCase: __expectBoolean,
|
|
585
|
+
notifyOnResolveCase: __expectBoolean,
|
|
586
|
+
teamId: __expectString,
|
|
587
|
+
});
|
|
588
|
+
Object.assign(contents, doc);
|
|
619
589
|
return contents;
|
|
620
590
|
};
|
|
621
591
|
const de_UpdateSlackChannelConfigurationCommandError = async (output, context) => {
|
|
@@ -642,21 +612,21 @@ const de_UpdateSlackChannelConfigurationCommandError = async (output, context) =
|
|
|
642
612
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
643
613
|
default:
|
|
644
614
|
const parsedBody = parsedOutput.body;
|
|
645
|
-
throwDefaultError({
|
|
615
|
+
return throwDefaultError({
|
|
646
616
|
output,
|
|
647
617
|
parsedBody,
|
|
648
|
-
exceptionCtor: __BaseException,
|
|
649
618
|
errorCode,
|
|
650
619
|
});
|
|
651
620
|
}
|
|
652
621
|
};
|
|
653
|
-
const
|
|
622
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
654
623
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
655
624
|
const contents = map({});
|
|
656
625
|
const data = parsedOutput.body;
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}
|
|
626
|
+
const doc = take(data, {
|
|
627
|
+
message: __expectString,
|
|
628
|
+
});
|
|
629
|
+
Object.assign(contents, doc);
|
|
660
630
|
const exception = new AccessDeniedException({
|
|
661
631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
662
632
|
...contents,
|
|
@@ -666,9 +636,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
666
636
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
667
637
|
const contents = map({});
|
|
668
638
|
const data = parsedOutput.body;
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
}
|
|
639
|
+
const doc = take(data, {
|
|
640
|
+
message: __expectString,
|
|
641
|
+
});
|
|
642
|
+
Object.assign(contents, doc);
|
|
672
643
|
const exception = new ConflictException({
|
|
673
644
|
$metadata: deserializeMetadata(parsedOutput),
|
|
674
645
|
...contents,
|
|
@@ -678,9 +649,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
678
649
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
679
650
|
const contents = map({});
|
|
680
651
|
const data = parsedOutput.body;
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
}
|
|
652
|
+
const doc = take(data, {
|
|
653
|
+
message: __expectString,
|
|
654
|
+
});
|
|
655
|
+
Object.assign(contents, doc);
|
|
684
656
|
const exception = new InternalServerException({
|
|
685
657
|
$metadata: deserializeMetadata(parsedOutput),
|
|
686
658
|
...contents,
|
|
@@ -690,9 +662,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
690
662
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
691
663
|
const contents = map({});
|
|
692
664
|
const data = parsedOutput.body;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
}
|
|
665
|
+
const doc = take(data, {
|
|
666
|
+
message: __expectString,
|
|
667
|
+
});
|
|
668
|
+
Object.assign(contents, doc);
|
|
696
669
|
const exception = new ResourceNotFoundException({
|
|
697
670
|
$metadata: deserializeMetadata(parsedOutput),
|
|
698
671
|
...contents,
|
|
@@ -702,9 +675,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
702
675
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
703
676
|
const contents = map({});
|
|
704
677
|
const data = parsedOutput.body;
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
}
|
|
678
|
+
const doc = take(data, {
|
|
679
|
+
message: __expectString,
|
|
680
|
+
});
|
|
681
|
+
Object.assign(contents, doc);
|
|
708
682
|
const exception = new ServiceQuotaExceededException({
|
|
709
683
|
$metadata: deserializeMetadata(parsedOutput),
|
|
710
684
|
...contents,
|
|
@@ -714,56 +688,16 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
714
688
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
715
689
|
const contents = map({});
|
|
716
690
|
const data = parsedOutput.body;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
}
|
|
691
|
+
const doc = take(data, {
|
|
692
|
+
message: __expectString,
|
|
693
|
+
});
|
|
694
|
+
Object.assign(contents, doc);
|
|
720
695
|
const exception = new ValidationException({
|
|
721
696
|
$metadata: deserializeMetadata(parsedOutput),
|
|
722
697
|
...contents,
|
|
723
698
|
});
|
|
724
699
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
725
700
|
};
|
|
726
|
-
const de_SlackChannelConfiguration = (output, context) => {
|
|
727
|
-
return {
|
|
728
|
-
channelId: __expectString(output.channelId),
|
|
729
|
-
channelName: __expectString(output.channelName),
|
|
730
|
-
channelRoleArn: __expectString(output.channelRoleArn),
|
|
731
|
-
notifyOnAddCorrespondenceToCase: __expectBoolean(output.notifyOnAddCorrespondenceToCase),
|
|
732
|
-
notifyOnCaseSeverity: __expectString(output.notifyOnCaseSeverity),
|
|
733
|
-
notifyOnCreateOrReopenCase: __expectBoolean(output.notifyOnCreateOrReopenCase),
|
|
734
|
-
notifyOnResolveCase: __expectBoolean(output.notifyOnResolveCase),
|
|
735
|
-
teamId: __expectString(output.teamId),
|
|
736
|
-
};
|
|
737
|
-
};
|
|
738
|
-
const de_slackChannelConfigurationList = (output, context) => {
|
|
739
|
-
const retVal = (output || [])
|
|
740
|
-
.filter((e) => e != null)
|
|
741
|
-
.map((entry) => {
|
|
742
|
-
if (entry === null) {
|
|
743
|
-
return null;
|
|
744
|
-
}
|
|
745
|
-
return de_SlackChannelConfiguration(entry, context);
|
|
746
|
-
});
|
|
747
|
-
return retVal;
|
|
748
|
-
};
|
|
749
|
-
const de_SlackWorkspaceConfiguration = (output, context) => {
|
|
750
|
-
return {
|
|
751
|
-
allowOrganizationMemberAccount: __expectBoolean(output.allowOrganizationMemberAccount),
|
|
752
|
-
teamId: __expectString(output.teamId),
|
|
753
|
-
teamName: __expectString(output.teamName),
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
const de_SlackWorkspaceConfigurationList = (output, context) => {
|
|
757
|
-
const retVal = (output || [])
|
|
758
|
-
.filter((e) => e != null)
|
|
759
|
-
.map((entry) => {
|
|
760
|
-
if (entry === null) {
|
|
761
|
-
return null;
|
|
762
|
-
}
|
|
763
|
-
return de_SlackWorkspaceConfiguration(entry, context);
|
|
764
|
-
});
|
|
765
|
-
return retVal;
|
|
766
|
-
};
|
|
767
701
|
const deserializeMetadata = (output) => ({
|
|
768
702
|
httpStatusCode: output.statusCode,
|
|
769
703
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-support-app",
|
|
3
3
|
"description": "AWS SDK for JavaScript Support App Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.315.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.315.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.315.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.315.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.315.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.315.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|