@aws-sdk/client-connectcases 3.312.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 +341 -884
- package/dist-es/protocols/Aws_restJson1.js +300 -843
- package/package.json +6 -6
|
@@ -15,9 +15,9 @@ const se_BatchGetFieldCommand = async (input, context) => {
|
|
|
15
15
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-batch";
|
|
16
16
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
17
17
|
let body;
|
|
18
|
-
body = JSON.stringify({
|
|
19
|
-
|
|
20
|
-
});
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
+
fields: (_) => (0, smithy_client_1._json)(_),
|
|
20
|
+
}));
|
|
21
21
|
return new protocol_http_1.HttpRequest({
|
|
22
22
|
protocol,
|
|
23
23
|
hostname,
|
|
@@ -39,9 +39,9 @@ const se_BatchPutFieldOptionsCommand = async (input, context) => {
|
|
|
39
39
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
40
40
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
41
41
|
let body;
|
|
42
|
-
body = JSON.stringify({
|
|
43
|
-
|
|
44
|
-
});
|
|
42
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
43
|
+
options: (_) => (0, smithy_client_1._json)(_),
|
|
44
|
+
}));
|
|
45
45
|
return new protocol_http_1.HttpRequest({
|
|
46
46
|
protocol,
|
|
47
47
|
hostname,
|
|
@@ -61,11 +61,11 @@ const se_CreateCaseCommand = async (input, context) => {
|
|
|
61
61
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases";
|
|
62
62
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify({
|
|
65
|
-
clientToken:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
});
|
|
64
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
+
clientToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
66
|
+
fields: (_) => se_FieldValueList(_, context),
|
|
67
|
+
templateId: [],
|
|
68
|
+
}));
|
|
69
69
|
return new protocol_http_1.HttpRequest({
|
|
70
70
|
protocol,
|
|
71
71
|
hostname,
|
|
@@ -84,9 +84,9 @@ const se_CreateDomainCommand = async (input, context) => {
|
|
|
84
84
|
};
|
|
85
85
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains";
|
|
86
86
|
let body;
|
|
87
|
-
body = JSON.stringify({
|
|
88
|
-
|
|
89
|
-
});
|
|
87
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
88
|
+
name: [],
|
|
89
|
+
}));
|
|
90
90
|
return new protocol_http_1.HttpRequest({
|
|
91
91
|
protocol,
|
|
92
92
|
hostname,
|
|
@@ -106,11 +106,11 @@ const se_CreateFieldCommand = async (input, context) => {
|
|
|
106
106
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields";
|
|
107
107
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
108
108
|
let body;
|
|
109
|
-
body = JSON.stringify({
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
});
|
|
109
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
110
|
+
description: [],
|
|
111
|
+
name: [],
|
|
112
|
+
type: [],
|
|
113
|
+
}));
|
|
114
114
|
return new protocol_http_1.HttpRequest({
|
|
115
115
|
protocol,
|
|
116
116
|
hostname,
|
|
@@ -130,10 +130,10 @@ const se_CreateLayoutCommand = async (input, context) => {
|
|
|
130
130
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts";
|
|
131
131
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
132
132
|
let body;
|
|
133
|
-
body = JSON.stringify({
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
});
|
|
133
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
134
|
+
content: (_) => (0, smithy_client_1._json)(_),
|
|
135
|
+
name: [],
|
|
136
|
+
}));
|
|
137
137
|
return new protocol_http_1.HttpRequest({
|
|
138
138
|
protocol,
|
|
139
139
|
hostname,
|
|
@@ -155,10 +155,10 @@ const se_CreateRelatedItemCommand = async (input, context) => {
|
|
|
155
155
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
156
156
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify({
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
});
|
|
158
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
159
|
+
content: (_) => (0, smithy_client_1._json)(_),
|
|
160
|
+
type: [],
|
|
161
|
+
}));
|
|
162
162
|
return new protocol_http_1.HttpRequest({
|
|
163
163
|
protocol,
|
|
164
164
|
hostname,
|
|
@@ -178,15 +178,13 @@ const se_CreateTemplateCommand = async (input, context) => {
|
|
|
178
178
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates";
|
|
179
179
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
180
180
|
let body;
|
|
181
|
-
body = JSON.stringify({
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
...(input.status != null && { status: input.status }),
|
|
189
|
-
});
|
|
181
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
182
|
+
description: [],
|
|
183
|
+
layoutConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
184
|
+
name: [],
|
|
185
|
+
requiredFields: (_) => (0, smithy_client_1._json)(_),
|
|
186
|
+
status: [],
|
|
187
|
+
}));
|
|
190
188
|
return new protocol_http_1.HttpRequest({
|
|
191
189
|
protocol,
|
|
192
190
|
hostname,
|
|
@@ -224,10 +222,10 @@ const se_GetCaseCommand = async (input, context) => {
|
|
|
224
222
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
225
223
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
226
224
|
let body;
|
|
227
|
-
body = JSON.stringify({
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
});
|
|
225
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
226
|
+
fields: (_) => (0, smithy_client_1._json)(_),
|
|
227
|
+
nextToken: [],
|
|
228
|
+
}));
|
|
231
229
|
return new protocol_http_1.HttpRequest({
|
|
232
230
|
protocol,
|
|
233
231
|
hostname,
|
|
@@ -320,11 +318,11 @@ const se_ListCasesForContactCommand = async (input, context) => {
|
|
|
320
318
|
"/domains/{domainId}/list-cases-for-contact";
|
|
321
319
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
322
320
|
let body;
|
|
323
|
-
body = JSON.stringify({
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
});
|
|
321
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
322
|
+
contactArn: [],
|
|
323
|
+
maxResults: [],
|
|
324
|
+
nextToken: [],
|
|
325
|
+
}));
|
|
328
326
|
return new protocol_http_1.HttpRequest({
|
|
329
327
|
protocol,
|
|
330
328
|
hostname,
|
|
@@ -340,7 +338,7 @@ const se_ListDomainsCommand = async (input, context) => {
|
|
|
340
338
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
339
|
const headers = {};
|
|
342
340
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains-list";
|
|
343
|
-
const query = map({
|
|
341
|
+
const query = (0, smithy_client_1.map)({
|
|
344
342
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
345
343
|
nextToken: [, input.nextToken],
|
|
346
344
|
});
|
|
@@ -364,7 +362,7 @@ const se_ListFieldOptionsCommand = async (input, context) => {
|
|
|
364
362
|
"/domains/{domainId}/fields/{fieldId}/options-list";
|
|
365
363
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
366
364
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
367
|
-
const query = map({
|
|
365
|
+
const query = (0, smithy_client_1.map)({
|
|
368
366
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
369
367
|
nextToken: [, input.nextToken],
|
|
370
368
|
values: [() => input.values !== void 0, () => (input.values || []).map((_entry) => _entry)],
|
|
@@ -387,7 +385,7 @@ const se_ListFieldsCommand = async (input, context) => {
|
|
|
387
385
|
const headers = {};
|
|
388
386
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-list";
|
|
389
387
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
390
|
-
const query = map({
|
|
388
|
+
const query = (0, smithy_client_1.map)({
|
|
391
389
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
392
390
|
nextToken: [, input.nextToken],
|
|
393
391
|
});
|
|
@@ -409,7 +407,7 @@ const se_ListLayoutsCommand = async (input, context) => {
|
|
|
409
407
|
const headers = {};
|
|
410
408
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts-list";
|
|
411
409
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
412
|
-
const query = map({
|
|
410
|
+
const query = (0, smithy_client_1.map)({
|
|
413
411
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
414
412
|
nextToken: [, input.nextToken],
|
|
415
413
|
});
|
|
@@ -448,7 +446,7 @@ const se_ListTemplatesCommand = async (input, context) => {
|
|
|
448
446
|
const headers = {};
|
|
449
447
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates-list";
|
|
450
448
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
451
|
-
const query = map({
|
|
449
|
+
const query = (0, smithy_client_1.map)({
|
|
452
450
|
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
453
451
|
nextToken: [, input.nextToken],
|
|
454
452
|
status: [() => input.status !== void 0, () => (input.status || []).map((_entry) => _entry)],
|
|
@@ -475,9 +473,9 @@ const se_PutCaseEventConfigurationCommand = async (input, context) => {
|
|
|
475
473
|
"/domains/{domainId}/case-event-configuration";
|
|
476
474
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
477
475
|
let body;
|
|
478
|
-
body = JSON.stringify({
|
|
479
|
-
|
|
480
|
-
});
|
|
476
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
477
|
+
eventBridge: (_) => (0, smithy_client_1._json)(_),
|
|
478
|
+
}));
|
|
481
479
|
return new protocol_http_1.HttpRequest({
|
|
482
480
|
protocol,
|
|
483
481
|
hostname,
|
|
@@ -497,14 +495,14 @@ const se_SearchCasesCommand = async (input, context) => {
|
|
|
497
495
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases-search";
|
|
498
496
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
499
497
|
let body;
|
|
500
|
-
body = JSON.stringify({
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
});
|
|
498
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
499
|
+
fields: (_) => (0, smithy_client_1._json)(_),
|
|
500
|
+
filter: (_) => se_CaseFilter(_, context),
|
|
501
|
+
maxResults: [],
|
|
502
|
+
nextToken: [],
|
|
503
|
+
searchTerm: [],
|
|
504
|
+
sorts: (_) => (0, smithy_client_1._json)(_),
|
|
505
|
+
}));
|
|
508
506
|
return new protocol_http_1.HttpRequest({
|
|
509
507
|
protocol,
|
|
510
508
|
hostname,
|
|
@@ -526,11 +524,11 @@ const se_SearchRelatedItemsCommand = async (input, context) => {
|
|
|
526
524
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
527
525
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
528
526
|
let body;
|
|
529
|
-
body = JSON.stringify({
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
});
|
|
527
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
528
|
+
filters: (_) => (0, smithy_client_1._json)(_),
|
|
529
|
+
maxResults: [],
|
|
530
|
+
nextToken: [],
|
|
531
|
+
}));
|
|
534
532
|
return new protocol_http_1.HttpRequest({
|
|
535
533
|
protocol,
|
|
536
534
|
hostname,
|
|
@@ -550,9 +548,9 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
550
548
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
551
549
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
552
550
|
let body;
|
|
553
|
-
body = JSON.stringify({
|
|
554
|
-
|
|
555
|
-
});
|
|
551
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
552
|
+
tags: (_) => se_Tags(_, context),
|
|
553
|
+
}));
|
|
556
554
|
return new protocol_http_1.HttpRequest({
|
|
557
555
|
protocol,
|
|
558
556
|
hostname,
|
|
@@ -569,7 +567,7 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
569
567
|
const headers = {};
|
|
570
568
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
571
569
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
572
|
-
const query = map({
|
|
570
|
+
const query = (0, smithy_client_1.map)({
|
|
573
571
|
tagKeys: [
|
|
574
572
|
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
575
573
|
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
@@ -597,9 +595,9 @@ const se_UpdateCaseCommand = async (input, context) => {
|
|
|
597
595
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
598
596
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
599
597
|
let body;
|
|
600
|
-
body = JSON.stringify({
|
|
601
|
-
|
|
602
|
-
});
|
|
598
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
599
|
+
fields: (_) => se_FieldValueList(_, context),
|
|
600
|
+
}));
|
|
603
601
|
return new protocol_http_1.HttpRequest({
|
|
604
602
|
protocol,
|
|
605
603
|
hostname,
|
|
@@ -620,10 +618,10 @@ const se_UpdateFieldCommand = async (input, context) => {
|
|
|
620
618
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
621
619
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
622
620
|
let body;
|
|
623
|
-
body = JSON.stringify({
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
});
|
|
621
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
622
|
+
description: [],
|
|
623
|
+
name: [],
|
|
624
|
+
}));
|
|
627
625
|
return new protocol_http_1.HttpRequest({
|
|
628
626
|
protocol,
|
|
629
627
|
hostname,
|
|
@@ -644,10 +642,10 @@ const se_UpdateLayoutCommand = async (input, context) => {
|
|
|
644
642
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
645
643
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "layoutId", () => input.layoutId, "{layoutId}", false);
|
|
646
644
|
let body;
|
|
647
|
-
body = JSON.stringify({
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
});
|
|
645
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
646
|
+
content: (_) => (0, smithy_client_1._json)(_),
|
|
647
|
+
name: [],
|
|
648
|
+
}));
|
|
651
649
|
return new protocol_http_1.HttpRequest({
|
|
652
650
|
protocol,
|
|
653
651
|
hostname,
|
|
@@ -669,15 +667,13 @@ const se_UpdateTemplateCommand = async (input, context) => {
|
|
|
669
667
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
670
668
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
|
|
671
669
|
let body;
|
|
672
|
-
body = JSON.stringify({
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
...(input.status != null && { status: input.status }),
|
|
680
|
-
});
|
|
670
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
671
|
+
description: [],
|
|
672
|
+
layoutConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
673
|
+
name: [],
|
|
674
|
+
requiredFields: (_) => (0, smithy_client_1._json)(_),
|
|
675
|
+
status: [],
|
|
676
|
+
}));
|
|
681
677
|
return new protocol_http_1.HttpRequest({
|
|
682
678
|
protocol,
|
|
683
679
|
hostname,
|
|
@@ -693,16 +689,15 @@ const de_BatchGetFieldCommand = async (output, context) => {
|
|
|
693
689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
690
|
return de_BatchGetFieldCommandError(output, context);
|
|
695
691
|
}
|
|
696
|
-
const contents = map({
|
|
692
|
+
const contents = (0, smithy_client_1.map)({
|
|
697
693
|
$metadata: deserializeMetadata(output),
|
|
698
694
|
});
|
|
699
695
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
}
|
|
696
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
697
|
+
errors: smithy_client_1._json,
|
|
698
|
+
fields: (_) => de_BatchGetFieldList(_, context),
|
|
699
|
+
});
|
|
700
|
+
Object.assign(contents, doc);
|
|
706
701
|
return contents;
|
|
707
702
|
};
|
|
708
703
|
exports.de_BatchGetFieldCommand = de_BatchGetFieldCommand;
|
|
@@ -730,10 +725,9 @@ const de_BatchGetFieldCommandError = async (output, context) => {
|
|
|
730
725
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
731
726
|
default:
|
|
732
727
|
const parsedBody = parsedOutput.body;
|
|
733
|
-
|
|
728
|
+
return throwDefaultError({
|
|
734
729
|
output,
|
|
735
730
|
parsedBody,
|
|
736
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
737
731
|
errorCode,
|
|
738
732
|
});
|
|
739
733
|
}
|
|
@@ -742,13 +736,14 @@ const de_BatchPutFieldOptionsCommand = async (output, context) => {
|
|
|
742
736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
737
|
return de_BatchPutFieldOptionsCommandError(output, context);
|
|
744
738
|
}
|
|
745
|
-
const contents = map({
|
|
739
|
+
const contents = (0, smithy_client_1.map)({
|
|
746
740
|
$metadata: deserializeMetadata(output),
|
|
747
741
|
});
|
|
748
742
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
}
|
|
743
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
744
|
+
errors: smithy_client_1._json,
|
|
745
|
+
});
|
|
746
|
+
Object.assign(contents, doc);
|
|
752
747
|
return contents;
|
|
753
748
|
};
|
|
754
749
|
exports.de_BatchPutFieldOptionsCommand = de_BatchPutFieldOptionsCommand;
|
|
@@ -779,10 +774,9 @@ const de_BatchPutFieldOptionsCommandError = async (output, context) => {
|
|
|
779
774
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
780
775
|
default:
|
|
781
776
|
const parsedBody = parsedOutput.body;
|
|
782
|
-
|
|
777
|
+
return throwDefaultError({
|
|
783
778
|
output,
|
|
784
779
|
parsedBody,
|
|
785
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
786
780
|
errorCode,
|
|
787
781
|
});
|
|
788
782
|
}
|
|
@@ -791,16 +785,15 @@ const de_CreateCaseCommand = async (output, context) => {
|
|
|
791
785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
786
|
return de_CreateCaseCommandError(output, context);
|
|
793
787
|
}
|
|
794
|
-
const contents = map({
|
|
788
|
+
const contents = (0, smithy_client_1.map)({
|
|
795
789
|
$metadata: deserializeMetadata(output),
|
|
796
790
|
});
|
|
797
791
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}
|
|
792
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
793
|
+
caseArn: smithy_client_1.expectString,
|
|
794
|
+
caseId: smithy_client_1.expectString,
|
|
795
|
+
});
|
|
796
|
+
Object.assign(contents, doc);
|
|
804
797
|
return contents;
|
|
805
798
|
};
|
|
806
799
|
exports.de_CreateCaseCommand = de_CreateCaseCommand;
|
|
@@ -831,10 +824,9 @@ const de_CreateCaseCommandError = async (output, context) => {
|
|
|
831
824
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
832
825
|
default:
|
|
833
826
|
const parsedBody = parsedOutput.body;
|
|
834
|
-
|
|
827
|
+
return throwDefaultError({
|
|
835
828
|
output,
|
|
836
829
|
parsedBody,
|
|
837
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
838
830
|
errorCode,
|
|
839
831
|
});
|
|
840
832
|
}
|
|
@@ -843,19 +835,16 @@ const de_CreateDomainCommand = async (output, context) => {
|
|
|
843
835
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
844
836
|
return de_CreateDomainCommandError(output, context);
|
|
845
837
|
}
|
|
846
|
-
const contents = map({
|
|
838
|
+
const contents = (0, smithy_client_1.map)({
|
|
847
839
|
$metadata: deserializeMetadata(output),
|
|
848
840
|
});
|
|
849
841
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
if (data.domainStatus != null) {
|
|
857
|
-
contents.domainStatus = (0, smithy_client_1.expectString)(data.domainStatus);
|
|
858
|
-
}
|
|
842
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
843
|
+
domainArn: smithy_client_1.expectString,
|
|
844
|
+
domainId: smithy_client_1.expectString,
|
|
845
|
+
domainStatus: smithy_client_1.expectString,
|
|
846
|
+
});
|
|
847
|
+
Object.assign(contents, doc);
|
|
859
848
|
return contents;
|
|
860
849
|
};
|
|
861
850
|
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
@@ -886,10 +875,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
886
875
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
887
876
|
default:
|
|
888
877
|
const parsedBody = parsedOutput.body;
|
|
889
|
-
|
|
878
|
+
return throwDefaultError({
|
|
890
879
|
output,
|
|
891
880
|
parsedBody,
|
|
892
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
893
881
|
errorCode,
|
|
894
882
|
});
|
|
895
883
|
}
|
|
@@ -898,16 +886,15 @@ const de_CreateFieldCommand = async (output, context) => {
|
|
|
898
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
899
887
|
return de_CreateFieldCommandError(output, context);
|
|
900
888
|
}
|
|
901
|
-
const contents = map({
|
|
889
|
+
const contents = (0, smithy_client_1.map)({
|
|
902
890
|
$metadata: deserializeMetadata(output),
|
|
903
891
|
});
|
|
904
892
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
}
|
|
893
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
894
|
+
fieldArn: smithy_client_1.expectString,
|
|
895
|
+
fieldId: smithy_client_1.expectString,
|
|
896
|
+
});
|
|
897
|
+
Object.assign(contents, doc);
|
|
911
898
|
return contents;
|
|
912
899
|
};
|
|
913
900
|
exports.de_CreateFieldCommand = de_CreateFieldCommand;
|
|
@@ -941,10 +928,9 @@ const de_CreateFieldCommandError = async (output, context) => {
|
|
|
941
928
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
942
929
|
default:
|
|
943
930
|
const parsedBody = parsedOutput.body;
|
|
944
|
-
|
|
931
|
+
return throwDefaultError({
|
|
945
932
|
output,
|
|
946
933
|
parsedBody,
|
|
947
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
948
934
|
errorCode,
|
|
949
935
|
});
|
|
950
936
|
}
|
|
@@ -953,16 +939,15 @@ const de_CreateLayoutCommand = async (output, context) => {
|
|
|
953
939
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
954
940
|
return de_CreateLayoutCommandError(output, context);
|
|
955
941
|
}
|
|
956
|
-
const contents = map({
|
|
942
|
+
const contents = (0, smithy_client_1.map)({
|
|
957
943
|
$metadata: deserializeMetadata(output),
|
|
958
944
|
});
|
|
959
945
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
}
|
|
946
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
947
|
+
layoutArn: smithy_client_1.expectString,
|
|
948
|
+
layoutId: smithy_client_1.expectString,
|
|
949
|
+
});
|
|
950
|
+
Object.assign(contents, doc);
|
|
966
951
|
return contents;
|
|
967
952
|
};
|
|
968
953
|
exports.de_CreateLayoutCommand = de_CreateLayoutCommand;
|
|
@@ -996,10 +981,9 @@ const de_CreateLayoutCommandError = async (output, context) => {
|
|
|
996
981
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
997
982
|
default:
|
|
998
983
|
const parsedBody = parsedOutput.body;
|
|
999
|
-
|
|
984
|
+
return throwDefaultError({
|
|
1000
985
|
output,
|
|
1001
986
|
parsedBody,
|
|
1002
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1003
987
|
errorCode,
|
|
1004
988
|
});
|
|
1005
989
|
}
|
|
@@ -1008,16 +992,15 @@ const de_CreateRelatedItemCommand = async (output, context) => {
|
|
|
1008
992
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
993
|
return de_CreateRelatedItemCommandError(output, context);
|
|
1010
994
|
}
|
|
1011
|
-
const contents = map({
|
|
995
|
+
const contents = (0, smithy_client_1.map)({
|
|
1012
996
|
$metadata: deserializeMetadata(output),
|
|
1013
997
|
});
|
|
1014
998
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
}
|
|
999
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1000
|
+
relatedItemArn: smithy_client_1.expectString,
|
|
1001
|
+
relatedItemId: smithy_client_1.expectString,
|
|
1002
|
+
});
|
|
1003
|
+
Object.assign(contents, doc);
|
|
1021
1004
|
return contents;
|
|
1022
1005
|
};
|
|
1023
1006
|
exports.de_CreateRelatedItemCommand = de_CreateRelatedItemCommand;
|
|
@@ -1048,10 +1031,9 @@ const de_CreateRelatedItemCommandError = async (output, context) => {
|
|
|
1048
1031
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1049
1032
|
default:
|
|
1050
1033
|
const parsedBody = parsedOutput.body;
|
|
1051
|
-
|
|
1034
|
+
return throwDefaultError({
|
|
1052
1035
|
output,
|
|
1053
1036
|
parsedBody,
|
|
1054
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1055
1037
|
errorCode,
|
|
1056
1038
|
});
|
|
1057
1039
|
}
|
|
@@ -1060,16 +1042,15 @@ const de_CreateTemplateCommand = async (output, context) => {
|
|
|
1060
1042
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
1043
|
return de_CreateTemplateCommandError(output, context);
|
|
1062
1044
|
}
|
|
1063
|
-
const contents = map({
|
|
1045
|
+
const contents = (0, smithy_client_1.map)({
|
|
1064
1046
|
$metadata: deserializeMetadata(output),
|
|
1065
1047
|
});
|
|
1066
1048
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
}
|
|
1049
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1050
|
+
templateArn: smithy_client_1.expectString,
|
|
1051
|
+
templateId: smithy_client_1.expectString,
|
|
1052
|
+
});
|
|
1053
|
+
Object.assign(contents, doc);
|
|
1073
1054
|
return contents;
|
|
1074
1055
|
};
|
|
1075
1056
|
exports.de_CreateTemplateCommand = de_CreateTemplateCommand;
|
|
@@ -1103,10 +1084,9 @@ const de_CreateTemplateCommandError = async (output, context) => {
|
|
|
1103
1084
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1104
1085
|
default:
|
|
1105
1086
|
const parsedBody = parsedOutput.body;
|
|
1106
|
-
|
|
1087
|
+
return throwDefaultError({
|
|
1107
1088
|
output,
|
|
1108
1089
|
parsedBody,
|
|
1109
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1110
1090
|
errorCode,
|
|
1111
1091
|
});
|
|
1112
1092
|
}
|
|
@@ -1115,7 +1095,7 @@ const de_DeleteDomainCommand = async (output, context) => {
|
|
|
1115
1095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1116
1096
|
return de_DeleteDomainCommandError(output, context);
|
|
1117
1097
|
}
|
|
1118
|
-
const contents = map({
|
|
1098
|
+
const contents = (0, smithy_client_1.map)({
|
|
1119
1099
|
$metadata: deserializeMetadata(output),
|
|
1120
1100
|
});
|
|
1121
1101
|
await collectBody(output.body, context);
|
|
@@ -1149,10 +1129,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
1149
1129
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1150
1130
|
default:
|
|
1151
1131
|
const parsedBody = parsedOutput.body;
|
|
1152
|
-
|
|
1132
|
+
return throwDefaultError({
|
|
1153
1133
|
output,
|
|
1154
1134
|
parsedBody,
|
|
1155
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1156
1135
|
errorCode,
|
|
1157
1136
|
});
|
|
1158
1137
|
}
|
|
@@ -1161,22 +1140,17 @@ const de_GetCaseCommand = async (output, context) => {
|
|
|
1161
1140
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1162
1141
|
return de_GetCaseCommandError(output, context);
|
|
1163
1142
|
}
|
|
1164
|
-
const contents = map({
|
|
1143
|
+
const contents = (0, smithy_client_1.map)({
|
|
1165
1144
|
$metadata: deserializeMetadata(output),
|
|
1166
1145
|
});
|
|
1167
1146
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1176
|
-
}
|
|
1177
|
-
if (data.templateId != null) {
|
|
1178
|
-
contents.templateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
1179
|
-
}
|
|
1147
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1148
|
+
fields: (_) => de_FieldValueList(_, context),
|
|
1149
|
+
nextToken: smithy_client_1.expectString,
|
|
1150
|
+
tags: (_) => de_Tags(_, context),
|
|
1151
|
+
templateId: smithy_client_1.expectString,
|
|
1152
|
+
});
|
|
1153
|
+
Object.assign(contents, doc);
|
|
1180
1154
|
return contents;
|
|
1181
1155
|
};
|
|
1182
1156
|
exports.de_GetCaseCommand = de_GetCaseCommand;
|
|
@@ -1204,10 +1178,9 @@ const de_GetCaseCommandError = async (output, context) => {
|
|
|
1204
1178
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1205
1179
|
default:
|
|
1206
1180
|
const parsedBody = parsedOutput.body;
|
|
1207
|
-
|
|
1181
|
+
return throwDefaultError({
|
|
1208
1182
|
output,
|
|
1209
1183
|
parsedBody,
|
|
1210
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1211
1184
|
errorCode,
|
|
1212
1185
|
});
|
|
1213
1186
|
}
|
|
@@ -1216,13 +1189,14 @@ const de_GetCaseEventConfigurationCommand = async (output, context) => {
|
|
|
1216
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1217
1190
|
return de_GetCaseEventConfigurationCommandError(output, context);
|
|
1218
1191
|
}
|
|
1219
|
-
const contents = map({
|
|
1192
|
+
const contents = (0, smithy_client_1.map)({
|
|
1220
1193
|
$metadata: deserializeMetadata(output),
|
|
1221
1194
|
});
|
|
1222
1195
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
}
|
|
1196
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1197
|
+
eventBridge: smithy_client_1._json,
|
|
1198
|
+
});
|
|
1199
|
+
Object.assign(contents, doc);
|
|
1226
1200
|
return contents;
|
|
1227
1201
|
};
|
|
1228
1202
|
exports.de_GetCaseEventConfigurationCommand = de_GetCaseEventConfigurationCommand;
|
|
@@ -1250,10 +1224,9 @@ const de_GetCaseEventConfigurationCommandError = async (output, context) => {
|
|
|
1250
1224
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1251
1225
|
default:
|
|
1252
1226
|
const parsedBody = parsedOutput.body;
|
|
1253
|
-
|
|
1227
|
+
return throwDefaultError({
|
|
1254
1228
|
output,
|
|
1255
1229
|
parsedBody,
|
|
1256
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1257
1230
|
errorCode,
|
|
1258
1231
|
});
|
|
1259
1232
|
}
|
|
@@ -1262,28 +1235,19 @@ const de_GetDomainCommand = async (output, context) => {
|
|
|
1262
1235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1263
1236
|
return de_GetDomainCommandError(output, context);
|
|
1264
1237
|
}
|
|
1265
|
-
const contents = map({
|
|
1238
|
+
const contents = (0, smithy_client_1.map)({
|
|
1266
1239
|
$metadata: deserializeMetadata(output),
|
|
1267
1240
|
});
|
|
1268
1241
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
if (data.domainStatus != null) {
|
|
1279
|
-
contents.domainStatus = (0, smithy_client_1.expectString)(data.domainStatus);
|
|
1280
|
-
}
|
|
1281
|
-
if (data.name != null) {
|
|
1282
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1283
|
-
}
|
|
1284
|
-
if (data.tags != null) {
|
|
1285
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1286
|
-
}
|
|
1242
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1243
|
+
createdTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1244
|
+
domainArn: smithy_client_1.expectString,
|
|
1245
|
+
domainId: smithy_client_1.expectString,
|
|
1246
|
+
domainStatus: smithy_client_1.expectString,
|
|
1247
|
+
name: smithy_client_1.expectString,
|
|
1248
|
+
tags: (_) => de_Tags(_, context),
|
|
1249
|
+
});
|
|
1250
|
+
Object.assign(contents, doc);
|
|
1287
1251
|
return contents;
|
|
1288
1252
|
};
|
|
1289
1253
|
exports.de_GetDomainCommand = de_GetDomainCommand;
|
|
@@ -1311,10 +1275,9 @@ const de_GetDomainCommandError = async (output, context) => {
|
|
|
1311
1275
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1312
1276
|
default:
|
|
1313
1277
|
const parsedBody = parsedOutput.body;
|
|
1314
|
-
|
|
1278
|
+
return throwDefaultError({
|
|
1315
1279
|
output,
|
|
1316
1280
|
parsedBody,
|
|
1317
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1318
1281
|
errorCode,
|
|
1319
1282
|
});
|
|
1320
1283
|
}
|
|
@@ -1323,25 +1286,18 @@ const de_GetLayoutCommand = async (output, context) => {
|
|
|
1323
1286
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1324
1287
|
return de_GetLayoutCommandError(output, context);
|
|
1325
1288
|
}
|
|
1326
|
-
const contents = map({
|
|
1289
|
+
const contents = (0, smithy_client_1.map)({
|
|
1327
1290
|
$metadata: deserializeMetadata(output),
|
|
1328
1291
|
});
|
|
1329
1292
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
}
|
|
1339
|
-
if (data.name != null) {
|
|
1340
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1341
|
-
}
|
|
1342
|
-
if (data.tags != null) {
|
|
1343
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1344
|
-
}
|
|
1293
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1294
|
+
content: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
|
|
1295
|
+
layoutArn: smithy_client_1.expectString,
|
|
1296
|
+
layoutId: smithy_client_1.expectString,
|
|
1297
|
+
name: smithy_client_1.expectString,
|
|
1298
|
+
tags: (_) => de_Tags(_, context),
|
|
1299
|
+
});
|
|
1300
|
+
Object.assign(contents, doc);
|
|
1345
1301
|
return contents;
|
|
1346
1302
|
};
|
|
1347
1303
|
exports.de_GetLayoutCommand = de_GetLayoutCommand;
|
|
@@ -1369,10 +1325,9 @@ const de_GetLayoutCommandError = async (output, context) => {
|
|
|
1369
1325
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1370
1326
|
default:
|
|
1371
1327
|
const parsedBody = parsedOutput.body;
|
|
1372
|
-
|
|
1328
|
+
return throwDefaultError({
|
|
1373
1329
|
output,
|
|
1374
1330
|
parsedBody,
|
|
1375
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1376
1331
|
errorCode,
|
|
1377
1332
|
});
|
|
1378
1333
|
}
|
|
@@ -1381,34 +1336,21 @@ const de_GetTemplateCommand = async (output, context) => {
|
|
|
1381
1336
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
1337
|
return de_GetTemplateCommandError(output, context);
|
|
1383
1338
|
}
|
|
1384
|
-
const contents = map({
|
|
1339
|
+
const contents = (0, smithy_client_1.map)({
|
|
1385
1340
|
$metadata: deserializeMetadata(output),
|
|
1386
1341
|
});
|
|
1387
1342
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
}
|
|
1400
|
-
if (data.status != null) {
|
|
1401
|
-
contents.status = (0, smithy_client_1.expectString)(data.status);
|
|
1402
|
-
}
|
|
1403
|
-
if (data.tags != null) {
|
|
1404
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1405
|
-
}
|
|
1406
|
-
if (data.templateArn != null) {
|
|
1407
|
-
contents.templateArn = (0, smithy_client_1.expectString)(data.templateArn);
|
|
1408
|
-
}
|
|
1409
|
-
if (data.templateId != null) {
|
|
1410
|
-
contents.templateId = (0, smithy_client_1.expectString)(data.templateId);
|
|
1411
|
-
}
|
|
1343
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1344
|
+
description: smithy_client_1.expectString,
|
|
1345
|
+
layoutConfiguration: smithy_client_1._json,
|
|
1346
|
+
name: smithy_client_1.expectString,
|
|
1347
|
+
requiredFields: smithy_client_1._json,
|
|
1348
|
+
status: smithy_client_1.expectString,
|
|
1349
|
+
tags: (_) => de_Tags(_, context),
|
|
1350
|
+
templateArn: smithy_client_1.expectString,
|
|
1351
|
+
templateId: smithy_client_1.expectString,
|
|
1352
|
+
});
|
|
1353
|
+
Object.assign(contents, doc);
|
|
1412
1354
|
return contents;
|
|
1413
1355
|
};
|
|
1414
1356
|
exports.de_GetTemplateCommand = de_GetTemplateCommand;
|
|
@@ -1436,10 +1378,9 @@ const de_GetTemplateCommandError = async (output, context) => {
|
|
|
1436
1378
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1437
1379
|
default:
|
|
1438
1380
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
|
|
1381
|
+
return throwDefaultError({
|
|
1440
1382
|
output,
|
|
1441
1383
|
parsedBody,
|
|
1442
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1443
1384
|
errorCode,
|
|
1444
1385
|
});
|
|
1445
1386
|
}
|
|
@@ -1448,16 +1389,15 @@ const de_ListCasesForContactCommand = async (output, context) => {
|
|
|
1448
1389
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1449
1390
|
return de_ListCasesForContactCommandError(output, context);
|
|
1450
1391
|
}
|
|
1451
|
-
const contents = map({
|
|
1392
|
+
const contents = (0, smithy_client_1.map)({
|
|
1452
1393
|
$metadata: deserializeMetadata(output),
|
|
1453
1394
|
});
|
|
1454
1395
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
}
|
|
1396
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1397
|
+
cases: smithy_client_1._json,
|
|
1398
|
+
nextToken: smithy_client_1.expectString,
|
|
1399
|
+
});
|
|
1400
|
+
Object.assign(contents, doc);
|
|
1461
1401
|
return contents;
|
|
1462
1402
|
};
|
|
1463
1403
|
exports.de_ListCasesForContactCommand = de_ListCasesForContactCommand;
|
|
@@ -1485,10 +1425,9 @@ const de_ListCasesForContactCommandError = async (output, context) => {
|
|
|
1485
1425
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1486
1426
|
default:
|
|
1487
1427
|
const parsedBody = parsedOutput.body;
|
|
1488
|
-
|
|
1428
|
+
return throwDefaultError({
|
|
1489
1429
|
output,
|
|
1490
1430
|
parsedBody,
|
|
1491
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1492
1431
|
errorCode,
|
|
1493
1432
|
});
|
|
1494
1433
|
}
|
|
@@ -1497,16 +1436,15 @@ const de_ListDomainsCommand = async (output, context) => {
|
|
|
1497
1436
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1498
1437
|
return de_ListDomainsCommandError(output, context);
|
|
1499
1438
|
}
|
|
1500
|
-
const contents = map({
|
|
1439
|
+
const contents = (0, smithy_client_1.map)({
|
|
1501
1440
|
$metadata: deserializeMetadata(output),
|
|
1502
1441
|
});
|
|
1503
1442
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
}
|
|
1443
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1444
|
+
domains: smithy_client_1._json,
|
|
1445
|
+
nextToken: smithy_client_1.expectString,
|
|
1446
|
+
});
|
|
1447
|
+
Object.assign(contents, doc);
|
|
1510
1448
|
return contents;
|
|
1511
1449
|
};
|
|
1512
1450
|
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
@@ -1531,10 +1469,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
1531
1469
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1532
1470
|
default:
|
|
1533
1471
|
const parsedBody = parsedOutput.body;
|
|
1534
|
-
|
|
1472
|
+
return throwDefaultError({
|
|
1535
1473
|
output,
|
|
1536
1474
|
parsedBody,
|
|
1537
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1538
1475
|
errorCode,
|
|
1539
1476
|
});
|
|
1540
1477
|
}
|
|
@@ -1543,16 +1480,15 @@ const de_ListFieldOptionsCommand = async (output, context) => {
|
|
|
1543
1480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1544
1481
|
return de_ListFieldOptionsCommandError(output, context);
|
|
1545
1482
|
}
|
|
1546
|
-
const contents = map({
|
|
1483
|
+
const contents = (0, smithy_client_1.map)({
|
|
1547
1484
|
$metadata: deserializeMetadata(output),
|
|
1548
1485
|
});
|
|
1549
1486
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}
|
|
1487
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1488
|
+
nextToken: smithy_client_1.expectString,
|
|
1489
|
+
options: smithy_client_1._json,
|
|
1490
|
+
});
|
|
1491
|
+
Object.assign(contents, doc);
|
|
1556
1492
|
return contents;
|
|
1557
1493
|
};
|
|
1558
1494
|
exports.de_ListFieldOptionsCommand = de_ListFieldOptionsCommand;
|
|
@@ -1580,10 +1516,9 @@ const de_ListFieldOptionsCommandError = async (output, context) => {
|
|
|
1580
1516
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1581
1517
|
default:
|
|
1582
1518
|
const parsedBody = parsedOutput.body;
|
|
1583
|
-
|
|
1519
|
+
return throwDefaultError({
|
|
1584
1520
|
output,
|
|
1585
1521
|
parsedBody,
|
|
1586
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1587
1522
|
errorCode,
|
|
1588
1523
|
});
|
|
1589
1524
|
}
|
|
@@ -1592,16 +1527,15 @@ const de_ListFieldsCommand = async (output, context) => {
|
|
|
1592
1527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1593
1528
|
return de_ListFieldsCommandError(output, context);
|
|
1594
1529
|
}
|
|
1595
|
-
const contents = map({
|
|
1530
|
+
const contents = (0, smithy_client_1.map)({
|
|
1596
1531
|
$metadata: deserializeMetadata(output),
|
|
1597
1532
|
});
|
|
1598
1533
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
}
|
|
1534
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1535
|
+
fields: smithy_client_1._json,
|
|
1536
|
+
nextToken: smithy_client_1.expectString,
|
|
1537
|
+
});
|
|
1538
|
+
Object.assign(contents, doc);
|
|
1605
1539
|
return contents;
|
|
1606
1540
|
};
|
|
1607
1541
|
exports.de_ListFieldsCommand = de_ListFieldsCommand;
|
|
@@ -1629,10 +1563,9 @@ const de_ListFieldsCommandError = async (output, context) => {
|
|
|
1629
1563
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1630
1564
|
default:
|
|
1631
1565
|
const parsedBody = parsedOutput.body;
|
|
1632
|
-
|
|
1566
|
+
return throwDefaultError({
|
|
1633
1567
|
output,
|
|
1634
1568
|
parsedBody,
|
|
1635
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1636
1569
|
errorCode,
|
|
1637
1570
|
});
|
|
1638
1571
|
}
|
|
@@ -1641,16 +1574,15 @@ const de_ListLayoutsCommand = async (output, context) => {
|
|
|
1641
1574
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1642
1575
|
return de_ListLayoutsCommandError(output, context);
|
|
1643
1576
|
}
|
|
1644
|
-
const contents = map({
|
|
1577
|
+
const contents = (0, smithy_client_1.map)({
|
|
1645
1578
|
$metadata: deserializeMetadata(output),
|
|
1646
1579
|
});
|
|
1647
1580
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
}
|
|
1581
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1582
|
+
layouts: smithy_client_1._json,
|
|
1583
|
+
nextToken: smithy_client_1.expectString,
|
|
1584
|
+
});
|
|
1585
|
+
Object.assign(contents, doc);
|
|
1654
1586
|
return contents;
|
|
1655
1587
|
};
|
|
1656
1588
|
exports.de_ListLayoutsCommand = de_ListLayoutsCommand;
|
|
@@ -1678,10 +1610,9 @@ const de_ListLayoutsCommandError = async (output, context) => {
|
|
|
1678
1610
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1679
1611
|
default:
|
|
1680
1612
|
const parsedBody = parsedOutput.body;
|
|
1681
|
-
|
|
1613
|
+
return throwDefaultError({
|
|
1682
1614
|
output,
|
|
1683
1615
|
parsedBody,
|
|
1684
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1685
1616
|
errorCode,
|
|
1686
1617
|
});
|
|
1687
1618
|
}
|
|
@@ -1690,13 +1621,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1690
1621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1691
1622
|
return de_ListTagsForResourceCommandError(output, context);
|
|
1692
1623
|
}
|
|
1693
|
-
const contents = map({
|
|
1624
|
+
const contents = (0, smithy_client_1.map)({
|
|
1694
1625
|
$metadata: deserializeMetadata(output),
|
|
1695
1626
|
});
|
|
1696
1627
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
}
|
|
1628
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1629
|
+
tags: (_) => de_Tags(_, context),
|
|
1630
|
+
});
|
|
1631
|
+
Object.assign(contents, doc);
|
|
1700
1632
|
return contents;
|
|
1701
1633
|
};
|
|
1702
1634
|
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
@@ -1724,10 +1656,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1724
1656
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1725
1657
|
default:
|
|
1726
1658
|
const parsedBody = parsedOutput.body;
|
|
1727
|
-
|
|
1659
|
+
return throwDefaultError({
|
|
1728
1660
|
output,
|
|
1729
1661
|
parsedBody,
|
|
1730
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1731
1662
|
errorCode,
|
|
1732
1663
|
});
|
|
1733
1664
|
}
|
|
@@ -1736,16 +1667,15 @@ const de_ListTemplatesCommand = async (output, context) => {
|
|
|
1736
1667
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1737
1668
|
return de_ListTemplatesCommandError(output, context);
|
|
1738
1669
|
}
|
|
1739
|
-
const contents = map({
|
|
1670
|
+
const contents = (0, smithy_client_1.map)({
|
|
1740
1671
|
$metadata: deserializeMetadata(output),
|
|
1741
1672
|
});
|
|
1742
1673
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
}
|
|
1674
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1675
|
+
nextToken: smithy_client_1.expectString,
|
|
1676
|
+
templates: smithy_client_1._json,
|
|
1677
|
+
});
|
|
1678
|
+
Object.assign(contents, doc);
|
|
1749
1679
|
return contents;
|
|
1750
1680
|
};
|
|
1751
1681
|
exports.de_ListTemplatesCommand = de_ListTemplatesCommand;
|
|
@@ -1773,10 +1703,9 @@ const de_ListTemplatesCommandError = async (output, context) => {
|
|
|
1773
1703
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1774
1704
|
default:
|
|
1775
1705
|
const parsedBody = parsedOutput.body;
|
|
1776
|
-
|
|
1706
|
+
return throwDefaultError({
|
|
1777
1707
|
output,
|
|
1778
1708
|
parsedBody,
|
|
1779
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1780
1709
|
errorCode,
|
|
1781
1710
|
});
|
|
1782
1711
|
}
|
|
@@ -1785,7 +1714,7 @@ const de_PutCaseEventConfigurationCommand = async (output, context) => {
|
|
|
1785
1714
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1786
1715
|
return de_PutCaseEventConfigurationCommandError(output, context);
|
|
1787
1716
|
}
|
|
1788
|
-
const contents = map({
|
|
1717
|
+
const contents = (0, smithy_client_1.map)({
|
|
1789
1718
|
$metadata: deserializeMetadata(output),
|
|
1790
1719
|
});
|
|
1791
1720
|
await collectBody(output.body, context);
|
|
@@ -1816,10 +1745,9 @@ const de_PutCaseEventConfigurationCommandError = async (output, context) => {
|
|
|
1816
1745
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1817
1746
|
default:
|
|
1818
1747
|
const parsedBody = parsedOutput.body;
|
|
1819
|
-
|
|
1748
|
+
return throwDefaultError({
|
|
1820
1749
|
output,
|
|
1821
1750
|
parsedBody,
|
|
1822
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1823
1751
|
errorCode,
|
|
1824
1752
|
});
|
|
1825
1753
|
}
|
|
@@ -1828,16 +1756,15 @@ const de_SearchCasesCommand = async (output, context) => {
|
|
|
1828
1756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1829
1757
|
return de_SearchCasesCommandError(output, context);
|
|
1830
1758
|
}
|
|
1831
|
-
const contents = map({
|
|
1759
|
+
const contents = (0, smithy_client_1.map)({
|
|
1832
1760
|
$metadata: deserializeMetadata(output),
|
|
1833
1761
|
});
|
|
1834
1762
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
}
|
|
1763
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1764
|
+
cases: (_) => de_SearchCasesResponseItemList(_, context),
|
|
1765
|
+
nextToken: smithy_client_1.expectString,
|
|
1766
|
+
});
|
|
1767
|
+
Object.assign(contents, doc);
|
|
1841
1768
|
return contents;
|
|
1842
1769
|
};
|
|
1843
1770
|
exports.de_SearchCasesCommand = de_SearchCasesCommand;
|
|
@@ -1865,10 +1792,9 @@ const de_SearchCasesCommandError = async (output, context) => {
|
|
|
1865
1792
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1866
1793
|
default:
|
|
1867
1794
|
const parsedBody = parsedOutput.body;
|
|
1868
|
-
|
|
1795
|
+
return throwDefaultError({
|
|
1869
1796
|
output,
|
|
1870
1797
|
parsedBody,
|
|
1871
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1872
1798
|
errorCode,
|
|
1873
1799
|
});
|
|
1874
1800
|
}
|
|
@@ -1877,16 +1803,15 @@ const de_SearchRelatedItemsCommand = async (output, context) => {
|
|
|
1877
1803
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1878
1804
|
return de_SearchRelatedItemsCommandError(output, context);
|
|
1879
1805
|
}
|
|
1880
|
-
const contents = map({
|
|
1806
|
+
const contents = (0, smithy_client_1.map)({
|
|
1881
1807
|
$metadata: deserializeMetadata(output),
|
|
1882
1808
|
});
|
|
1883
1809
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
}
|
|
1810
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1811
|
+
nextToken: smithy_client_1.expectString,
|
|
1812
|
+
relatedItems: (_) => de_SearchRelatedItemsResponseItemList(_, context),
|
|
1813
|
+
});
|
|
1814
|
+
Object.assign(contents, doc);
|
|
1890
1815
|
return contents;
|
|
1891
1816
|
};
|
|
1892
1817
|
exports.de_SearchRelatedItemsCommand = de_SearchRelatedItemsCommand;
|
|
@@ -1914,10 +1839,9 @@ const de_SearchRelatedItemsCommandError = async (output, context) => {
|
|
|
1914
1839
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1915
1840
|
default:
|
|
1916
1841
|
const parsedBody = parsedOutput.body;
|
|
1917
|
-
|
|
1842
|
+
return throwDefaultError({
|
|
1918
1843
|
output,
|
|
1919
1844
|
parsedBody,
|
|
1920
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1921
1845
|
errorCode,
|
|
1922
1846
|
});
|
|
1923
1847
|
}
|
|
@@ -1926,7 +1850,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
1926
1850
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1927
1851
|
return de_TagResourceCommandError(output, context);
|
|
1928
1852
|
}
|
|
1929
|
-
const contents = map({
|
|
1853
|
+
const contents = (0, smithy_client_1.map)({
|
|
1930
1854
|
$metadata: deserializeMetadata(output),
|
|
1931
1855
|
});
|
|
1932
1856
|
await collectBody(output.body, context);
|
|
@@ -1957,10 +1881,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1957
1881
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1958
1882
|
default:
|
|
1959
1883
|
const parsedBody = parsedOutput.body;
|
|
1960
|
-
|
|
1884
|
+
return throwDefaultError({
|
|
1961
1885
|
output,
|
|
1962
1886
|
parsedBody,
|
|
1963
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
1964
1887
|
errorCode,
|
|
1965
1888
|
});
|
|
1966
1889
|
}
|
|
@@ -1969,7 +1892,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
1969
1892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1970
1893
|
return de_UntagResourceCommandError(output, context);
|
|
1971
1894
|
}
|
|
1972
|
-
const contents = map({
|
|
1895
|
+
const contents = (0, smithy_client_1.map)({
|
|
1973
1896
|
$metadata: deserializeMetadata(output),
|
|
1974
1897
|
});
|
|
1975
1898
|
await collectBody(output.body, context);
|
|
@@ -2000,10 +1923,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2000
1923
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2001
1924
|
default:
|
|
2002
1925
|
const parsedBody = parsedOutput.body;
|
|
2003
|
-
|
|
1926
|
+
return throwDefaultError({
|
|
2004
1927
|
output,
|
|
2005
1928
|
parsedBody,
|
|
2006
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
2007
1929
|
errorCode,
|
|
2008
1930
|
});
|
|
2009
1931
|
}
|
|
@@ -2012,7 +1934,7 @@ const de_UpdateCaseCommand = async (output, context) => {
|
|
|
2012
1934
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2013
1935
|
return de_UpdateCaseCommandError(output, context);
|
|
2014
1936
|
}
|
|
2015
|
-
const contents = map({
|
|
1937
|
+
const contents = (0, smithy_client_1.map)({
|
|
2016
1938
|
$metadata: deserializeMetadata(output),
|
|
2017
1939
|
});
|
|
2018
1940
|
await collectBody(output.body, context);
|
|
@@ -2043,10 +1965,9 @@ const de_UpdateCaseCommandError = async (output, context) => {
|
|
|
2043
1965
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2044
1966
|
default:
|
|
2045
1967
|
const parsedBody = parsedOutput.body;
|
|
2046
|
-
|
|
1968
|
+
return throwDefaultError({
|
|
2047
1969
|
output,
|
|
2048
1970
|
parsedBody,
|
|
2049
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
2050
1971
|
errorCode,
|
|
2051
1972
|
});
|
|
2052
1973
|
}
|
|
@@ -2055,7 +1976,7 @@ const de_UpdateFieldCommand = async (output, context) => {
|
|
|
2055
1976
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2056
1977
|
return de_UpdateFieldCommandError(output, context);
|
|
2057
1978
|
}
|
|
2058
|
-
const contents = map({
|
|
1979
|
+
const contents = (0, smithy_client_1.map)({
|
|
2059
1980
|
$metadata: deserializeMetadata(output),
|
|
2060
1981
|
});
|
|
2061
1982
|
await collectBody(output.body, context);
|
|
@@ -2089,10 +2010,9 @@ const de_UpdateFieldCommandError = async (output, context) => {
|
|
|
2089
2010
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2090
2011
|
default:
|
|
2091
2012
|
const parsedBody = parsedOutput.body;
|
|
2092
|
-
|
|
2013
|
+
return throwDefaultError({
|
|
2093
2014
|
output,
|
|
2094
2015
|
parsedBody,
|
|
2095
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
2096
2016
|
errorCode,
|
|
2097
2017
|
});
|
|
2098
2018
|
}
|
|
@@ -2101,7 +2021,7 @@ const de_UpdateLayoutCommand = async (output, context) => {
|
|
|
2101
2021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2102
2022
|
return de_UpdateLayoutCommandError(output, context);
|
|
2103
2023
|
}
|
|
2104
|
-
const contents = map({
|
|
2024
|
+
const contents = (0, smithy_client_1.map)({
|
|
2105
2025
|
$metadata: deserializeMetadata(output),
|
|
2106
2026
|
});
|
|
2107
2027
|
await collectBody(output.body, context);
|
|
@@ -2138,10 +2058,9 @@ const de_UpdateLayoutCommandError = async (output, context) => {
|
|
|
2138
2058
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2139
2059
|
default:
|
|
2140
2060
|
const parsedBody = parsedOutput.body;
|
|
2141
|
-
|
|
2061
|
+
return throwDefaultError({
|
|
2142
2062
|
output,
|
|
2143
2063
|
parsedBody,
|
|
2144
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
2145
2064
|
errorCode,
|
|
2146
2065
|
});
|
|
2147
2066
|
}
|
|
@@ -2150,7 +2069,7 @@ const de_UpdateTemplateCommand = async (output, context) => {
|
|
|
2150
2069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2151
2070
|
return de_UpdateTemplateCommandError(output, context);
|
|
2152
2071
|
}
|
|
2153
|
-
const contents = map({
|
|
2072
|
+
const contents = (0, smithy_client_1.map)({
|
|
2154
2073
|
$metadata: deserializeMetadata(output),
|
|
2155
2074
|
});
|
|
2156
2075
|
await collectBody(output.body, context);
|
|
@@ -2184,21 +2103,21 @@ const de_UpdateTemplateCommandError = async (output, context) => {
|
|
|
2184
2103
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2185
2104
|
default:
|
|
2186
2105
|
const parsedBody = parsedOutput.body;
|
|
2187
|
-
|
|
2106
|
+
return throwDefaultError({
|
|
2188
2107
|
output,
|
|
2189
2108
|
parsedBody,
|
|
2190
|
-
exceptionCtor: ConnectCasesServiceException_1.ConnectCasesServiceException,
|
|
2191
2109
|
errorCode,
|
|
2192
2110
|
});
|
|
2193
2111
|
}
|
|
2194
2112
|
};
|
|
2195
|
-
const
|
|
2113
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ConnectCasesServiceException_1.ConnectCasesServiceException);
|
|
2196
2114
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2197
|
-
const contents = map({});
|
|
2115
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2198
2116
|
const data = parsedOutput.body;
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
}
|
|
2117
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2118
|
+
message: smithy_client_1.expectString,
|
|
2119
|
+
});
|
|
2120
|
+
Object.assign(contents, doc);
|
|
2202
2121
|
const exception = new models_0_1.AccessDeniedException({
|
|
2203
2122
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2204
2123
|
...contents,
|
|
@@ -2206,11 +2125,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2206
2125
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2207
2126
|
};
|
|
2208
2127
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2209
|
-
const contents = map({});
|
|
2128
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2210
2129
|
const data = parsedOutput.body;
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
}
|
|
2130
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2131
|
+
message: smithy_client_1.expectString,
|
|
2132
|
+
});
|
|
2133
|
+
Object.assign(contents, doc);
|
|
2214
2134
|
const exception = new models_0_1.ConflictException({
|
|
2215
2135
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2216
2136
|
...contents,
|
|
@@ -2218,16 +2138,17 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2218
2138
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2219
2139
|
};
|
|
2220
2140
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2221
|
-
const contents = map({
|
|
2141
|
+
const contents = (0, smithy_client_1.map)({
|
|
2222
2142
|
retryAfterSeconds: [
|
|
2223
2143
|
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
2224
2144
|
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
2225
2145
|
],
|
|
2226
2146
|
});
|
|
2227
2147
|
const data = parsedOutput.body;
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
}
|
|
2148
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2149
|
+
message: smithy_client_1.expectString,
|
|
2150
|
+
});
|
|
2151
|
+
Object.assign(contents, doc);
|
|
2231
2152
|
const exception = new models_0_1.InternalServerException({
|
|
2232
2153
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2233
2154
|
...contents,
|
|
@@ -2235,17 +2156,14 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2235
2156
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2236
2157
|
};
|
|
2237
2158
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2238
|
-
const contents = map({});
|
|
2159
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2239
2160
|
const data = parsedOutput.body;
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
if (data.resourceType != null) {
|
|
2247
|
-
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2248
|
-
}
|
|
2161
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2162
|
+
message: smithy_client_1.expectString,
|
|
2163
|
+
resourceId: smithy_client_1.expectString,
|
|
2164
|
+
resourceType: smithy_client_1.expectString,
|
|
2165
|
+
});
|
|
2166
|
+
Object.assign(contents, doc);
|
|
2249
2167
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2250
2168
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2251
2169
|
...contents,
|
|
@@ -2253,11 +2171,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2253
2171
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2254
2172
|
};
|
|
2255
2173
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2256
|
-
const contents = map({});
|
|
2174
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2257
2175
|
const data = parsedOutput.body;
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
}
|
|
2176
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2177
|
+
message: smithy_client_1.expectString,
|
|
2178
|
+
});
|
|
2179
|
+
Object.assign(contents, doc);
|
|
2261
2180
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2262
2181
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2263
2182
|
...contents,
|
|
@@ -2265,11 +2184,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2265
2184
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2266
2185
|
};
|
|
2267
2186
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2268
|
-
const contents = map({});
|
|
2187
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2269
2188
|
const data = parsedOutput.body;
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
}
|
|
2189
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2190
|
+
message: smithy_client_1.expectString,
|
|
2191
|
+
});
|
|
2192
|
+
Object.assign(contents, doc);
|
|
2273
2193
|
const exception = new models_0_1.ThrottlingException({
|
|
2274
2194
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2275
2195
|
...contents,
|
|
@@ -2277,35 +2197,18 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2277
2197
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2278
2198
|
};
|
|
2279
2199
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2280
|
-
const contents = map({});
|
|
2200
|
+
const contents = (0, smithy_client_1.map)({});
|
|
2281
2201
|
const data = parsedOutput.body;
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
}
|
|
2202
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2203
|
+
message: smithy_client_1.expectString,
|
|
2204
|
+
});
|
|
2205
|
+
Object.assign(contents, doc);
|
|
2285
2206
|
const exception = new models_0_1.ValidationException({
|
|
2286
2207
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2287
2208
|
...contents,
|
|
2288
2209
|
});
|
|
2289
2210
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2290
2211
|
};
|
|
2291
|
-
const se_BasicLayout = (input, context) => {
|
|
2292
|
-
return {
|
|
2293
|
-
...(input.moreInfo != null && { moreInfo: se_LayoutSections(input.moreInfo, context) }),
|
|
2294
|
-
...(input.topPanel != null && { topPanel: se_LayoutSections(input.topPanel, context) }),
|
|
2295
|
-
};
|
|
2296
|
-
};
|
|
2297
|
-
const se_BatchGetFieldIdentifierList = (input, context) => {
|
|
2298
|
-
return input
|
|
2299
|
-
.filter((e) => e != null)
|
|
2300
|
-
.map((entry) => {
|
|
2301
|
-
return se_FieldIdentifier(entry, context);
|
|
2302
|
-
});
|
|
2303
|
-
};
|
|
2304
|
-
const se_CaseEventIncludedData = (input, context) => {
|
|
2305
|
-
return {
|
|
2306
|
-
...(input.fields != null && { fields: se_FieldIdentifierList(input.fields, context) }),
|
|
2307
|
-
};
|
|
2308
|
-
};
|
|
2309
2212
|
const se_CaseFilter = (input, context) => {
|
|
2310
2213
|
return models_0_1.CaseFilter.visit(input, {
|
|
2311
2214
|
andAll: (value) => ({ andAll: se_CaseFilterList(value, context) }),
|
|
@@ -2321,47 +2224,6 @@ const se_CaseFilterList = (input, context) => {
|
|
|
2321
2224
|
return se_CaseFilter(entry, context);
|
|
2322
2225
|
});
|
|
2323
2226
|
};
|
|
2324
|
-
const se_ChannelList = (input, context) => {
|
|
2325
|
-
return input
|
|
2326
|
-
.filter((e) => e != null)
|
|
2327
|
-
.map((entry) => {
|
|
2328
|
-
return entry;
|
|
2329
|
-
});
|
|
2330
|
-
};
|
|
2331
|
-
const se_CommentContent = (input, context) => {
|
|
2332
|
-
return {
|
|
2333
|
-
...(input.body != null && { body: input.body }),
|
|
2334
|
-
...(input.contentType != null && { contentType: input.contentType }),
|
|
2335
|
-
};
|
|
2336
|
-
};
|
|
2337
|
-
const se_CommentFilter = (input, context) => {
|
|
2338
|
-
return {};
|
|
2339
|
-
};
|
|
2340
|
-
const se_Contact = (input, context) => {
|
|
2341
|
-
return {
|
|
2342
|
-
...(input.contactArn != null && { contactArn: input.contactArn }),
|
|
2343
|
-
};
|
|
2344
|
-
};
|
|
2345
|
-
const se_ContactFilter = (input, context) => {
|
|
2346
|
-
return {
|
|
2347
|
-
...(input.channel != null && { channel: se_ChannelList(input.channel, context) }),
|
|
2348
|
-
...(input.contactArn != null && { contactArn: input.contactArn }),
|
|
2349
|
-
};
|
|
2350
|
-
};
|
|
2351
|
-
const se_EventBridgeConfiguration = (input, context) => {
|
|
2352
|
-
return {
|
|
2353
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
2354
|
-
...(input.includedData != null && { includedData: se_EventIncludedData(input.includedData, context) }),
|
|
2355
|
-
};
|
|
2356
|
-
};
|
|
2357
|
-
const se_EventIncludedData = (input, context) => {
|
|
2358
|
-
return {
|
|
2359
|
-
...(input.caseData != null && { caseData: se_CaseEventIncludedData(input.caseData, context) }),
|
|
2360
|
-
...(input.relatedItemData != null && {
|
|
2361
|
-
relatedItemData: se_RelatedItemEventIncludedData(input.relatedItemData, context),
|
|
2362
|
-
}),
|
|
2363
|
-
};
|
|
2364
|
-
};
|
|
2365
2227
|
const se_FieldFilter = (input, context) => {
|
|
2366
2228
|
return models_0_1.FieldFilter.visit(input, {
|
|
2367
2229
|
contains: (value) => ({ contains: se_FieldValue(value, context) }),
|
|
@@ -2373,55 +2235,11 @@ const se_FieldFilter = (input, context) => {
|
|
|
2373
2235
|
_: (name, value) => ({ name: value }),
|
|
2374
2236
|
});
|
|
2375
2237
|
};
|
|
2376
|
-
const se_FieldGroup = (input, context) => {
|
|
2377
|
-
return {
|
|
2378
|
-
...(input.fields != null && { fields: se_FieldList(input.fields, context) }),
|
|
2379
|
-
...(input.name != null && { name: input.name }),
|
|
2380
|
-
};
|
|
2381
|
-
};
|
|
2382
|
-
const se_FieldIdentifier = (input, context) => {
|
|
2383
|
-
return {
|
|
2384
|
-
...(input.id != null && { id: input.id }),
|
|
2385
|
-
};
|
|
2386
|
-
};
|
|
2387
|
-
const se_FieldIdentifierList = (input, context) => {
|
|
2388
|
-
return input
|
|
2389
|
-
.filter((e) => e != null)
|
|
2390
|
-
.map((entry) => {
|
|
2391
|
-
return se_FieldIdentifier(entry, context);
|
|
2392
|
-
});
|
|
2393
|
-
};
|
|
2394
|
-
const se_FieldItem = (input, context) => {
|
|
2395
|
-
return {
|
|
2396
|
-
...(input.id != null && { id: input.id }),
|
|
2397
|
-
};
|
|
2398
|
-
};
|
|
2399
|
-
const se_FieldList = (input, context) => {
|
|
2400
|
-
return input
|
|
2401
|
-
.filter((e) => e != null)
|
|
2402
|
-
.map((entry) => {
|
|
2403
|
-
return se_FieldItem(entry, context);
|
|
2404
|
-
});
|
|
2405
|
-
};
|
|
2406
|
-
const se_FieldOption = (input, context) => {
|
|
2407
|
-
return {
|
|
2408
|
-
...(input.active != null && { active: input.active }),
|
|
2409
|
-
...(input.name != null && { name: input.name }),
|
|
2410
|
-
...(input.value != null && { value: input.value }),
|
|
2411
|
-
};
|
|
2412
|
-
};
|
|
2413
|
-
const se_FieldOptionsList = (input, context) => {
|
|
2414
|
-
return input
|
|
2415
|
-
.filter((e) => e != null)
|
|
2416
|
-
.map((entry) => {
|
|
2417
|
-
return se_FieldOption(entry, context);
|
|
2418
|
-
});
|
|
2419
|
-
};
|
|
2420
2238
|
const se_FieldValue = (input, context) => {
|
|
2421
|
-
return {
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
};
|
|
2239
|
+
return (0, smithy_client_1.take)(input, {
|
|
2240
|
+
id: [],
|
|
2241
|
+
value: (_) => se_FieldValueUnion(_, context),
|
|
2242
|
+
});
|
|
2425
2243
|
};
|
|
2426
2244
|
const se_FieldValueList = (input, context) => {
|
|
2427
2245
|
return input
|
|
@@ -2438,86 +2256,6 @@ const se_FieldValueUnion = (input, context) => {
|
|
|
2438
2256
|
_: (name, value) => ({ name: value }),
|
|
2439
2257
|
});
|
|
2440
2258
|
};
|
|
2441
|
-
const se_LayoutConfiguration = (input, context) => {
|
|
2442
|
-
return {
|
|
2443
|
-
...(input.defaultLayout != null && { defaultLayout: input.defaultLayout }),
|
|
2444
|
-
};
|
|
2445
|
-
};
|
|
2446
|
-
const se_LayoutContent = (input, context) => {
|
|
2447
|
-
return models_0_1.LayoutContent.visit(input, {
|
|
2448
|
-
basic: (value) => ({ basic: se_BasicLayout(value, context) }),
|
|
2449
|
-
_: (name, value) => ({ name: value }),
|
|
2450
|
-
});
|
|
2451
|
-
};
|
|
2452
|
-
const se_LayoutSections = (input, context) => {
|
|
2453
|
-
return {
|
|
2454
|
-
...(input.sections != null && { sections: se_SectionsList(input.sections, context) }),
|
|
2455
|
-
};
|
|
2456
|
-
};
|
|
2457
|
-
const se_RelatedItemEventIncludedData = (input, context) => {
|
|
2458
|
-
return {
|
|
2459
|
-
...(input.includeContent != null && { includeContent: input.includeContent }),
|
|
2460
|
-
};
|
|
2461
|
-
};
|
|
2462
|
-
const se_RelatedItemFilterList = (input, context) => {
|
|
2463
|
-
return input
|
|
2464
|
-
.filter((e) => e != null)
|
|
2465
|
-
.map((entry) => {
|
|
2466
|
-
return se_RelatedItemTypeFilter(entry, context);
|
|
2467
|
-
});
|
|
2468
|
-
};
|
|
2469
|
-
const se_RelatedItemInputContent = (input, context) => {
|
|
2470
|
-
return models_0_1.RelatedItemInputContent.visit(input, {
|
|
2471
|
-
comment: (value) => ({ comment: se_CommentContent(value, context) }),
|
|
2472
|
-
contact: (value) => ({ contact: se_Contact(value, context) }),
|
|
2473
|
-
_: (name, value) => ({ name: value }),
|
|
2474
|
-
});
|
|
2475
|
-
};
|
|
2476
|
-
const se_RelatedItemTypeFilter = (input, context) => {
|
|
2477
|
-
return models_0_1.RelatedItemTypeFilter.visit(input, {
|
|
2478
|
-
comment: (value) => ({ comment: se_CommentFilter(value, context) }),
|
|
2479
|
-
contact: (value) => ({ contact: se_ContactFilter(value, context) }),
|
|
2480
|
-
_: (name, value) => ({ name: value }),
|
|
2481
|
-
});
|
|
2482
|
-
};
|
|
2483
|
-
const se_RequiredField = (input, context) => {
|
|
2484
|
-
return {
|
|
2485
|
-
...(input.fieldId != null && { fieldId: input.fieldId }),
|
|
2486
|
-
};
|
|
2487
|
-
};
|
|
2488
|
-
const se_RequiredFieldList = (input, context) => {
|
|
2489
|
-
return input
|
|
2490
|
-
.filter((e) => e != null)
|
|
2491
|
-
.map((entry) => {
|
|
2492
|
-
return se_RequiredField(entry, context);
|
|
2493
|
-
});
|
|
2494
|
-
};
|
|
2495
|
-
const se_Section = (input, context) => {
|
|
2496
|
-
return models_0_1.Section.visit(input, {
|
|
2497
|
-
fieldGroup: (value) => ({ fieldGroup: se_FieldGroup(value, context) }),
|
|
2498
|
-
_: (name, value) => ({ name: value }),
|
|
2499
|
-
});
|
|
2500
|
-
};
|
|
2501
|
-
const se_SectionsList = (input, context) => {
|
|
2502
|
-
return input
|
|
2503
|
-
.filter((e) => e != null)
|
|
2504
|
-
.map((entry) => {
|
|
2505
|
-
return se_Section(entry, context);
|
|
2506
|
-
});
|
|
2507
|
-
};
|
|
2508
|
-
const se_Sort = (input, context) => {
|
|
2509
|
-
return {
|
|
2510
|
-
...(input.fieldId != null && { fieldId: input.fieldId }),
|
|
2511
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2512
|
-
};
|
|
2513
|
-
};
|
|
2514
|
-
const se_SortList = (input, context) => {
|
|
2515
|
-
return input
|
|
2516
|
-
.filter((e) => e != null)
|
|
2517
|
-
.map((entry) => {
|
|
2518
|
-
return se_Sort(entry, context);
|
|
2519
|
-
});
|
|
2520
|
-
};
|
|
2521
2259
|
const se_Tags = (input, context) => {
|
|
2522
2260
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2523
2261
|
if (value === null) {
|
|
@@ -2528,215 +2266,31 @@ const se_Tags = (input, context) => {
|
|
|
2528
2266
|
return acc;
|
|
2529
2267
|
}, {});
|
|
2530
2268
|
};
|
|
2531
|
-
const de_BasicLayout = (output, context) => {
|
|
2532
|
-
return {
|
|
2533
|
-
moreInfo: output.moreInfo != null ? de_LayoutSections(output.moreInfo, context) : undefined,
|
|
2534
|
-
topPanel: output.topPanel != null ? de_LayoutSections(output.topPanel, context) : undefined,
|
|
2535
|
-
};
|
|
2536
|
-
};
|
|
2537
|
-
const de_BatchGetFieldErrorList = (output, context) => {
|
|
2538
|
-
const retVal = (output || [])
|
|
2539
|
-
.filter((e) => e != null)
|
|
2540
|
-
.map((entry) => {
|
|
2541
|
-
if (entry === null) {
|
|
2542
|
-
return null;
|
|
2543
|
-
}
|
|
2544
|
-
return de_FieldError(entry, context);
|
|
2545
|
-
});
|
|
2546
|
-
return retVal;
|
|
2547
|
-
};
|
|
2548
2269
|
const de_BatchGetFieldList = (output, context) => {
|
|
2549
2270
|
const retVal = (output || [])
|
|
2550
2271
|
.filter((e) => e != null)
|
|
2551
2272
|
.map((entry) => {
|
|
2552
|
-
if (entry === null) {
|
|
2553
|
-
return null;
|
|
2554
|
-
}
|
|
2555
2273
|
return de_GetFieldResponse(entry, context);
|
|
2556
2274
|
});
|
|
2557
2275
|
return retVal;
|
|
2558
2276
|
};
|
|
2559
|
-
const de_CaseEventIncludedData = (output, context) => {
|
|
2560
|
-
return {
|
|
2561
|
-
fields: output.fields != null ? de_FieldIdentifierList(output.fields, context) : undefined,
|
|
2562
|
-
};
|
|
2563
|
-
};
|
|
2564
|
-
const de_CaseSummary = (output, context) => {
|
|
2565
|
-
return {
|
|
2566
|
-
caseId: (0, smithy_client_1.expectString)(output.caseId),
|
|
2567
|
-
templateId: (0, smithy_client_1.expectString)(output.templateId),
|
|
2568
|
-
};
|
|
2569
|
-
};
|
|
2570
|
-
const de_CaseSummaryList = (output, context) => {
|
|
2571
|
-
const retVal = (output || [])
|
|
2572
|
-
.filter((e) => e != null)
|
|
2573
|
-
.map((entry) => {
|
|
2574
|
-
if (entry === null) {
|
|
2575
|
-
return null;
|
|
2576
|
-
}
|
|
2577
|
-
return de_CaseSummary(entry, context);
|
|
2578
|
-
});
|
|
2579
|
-
return retVal;
|
|
2580
|
-
};
|
|
2581
|
-
const de_CommentContent = (output, context) => {
|
|
2582
|
-
return {
|
|
2583
|
-
body: (0, smithy_client_1.expectString)(output.body),
|
|
2584
|
-
contentType: (0, smithy_client_1.expectString)(output.contentType),
|
|
2585
|
-
};
|
|
2586
|
-
};
|
|
2587
2277
|
const de_ContactContent = (output, context) => {
|
|
2588
|
-
return {
|
|
2589
|
-
channel:
|
|
2590
|
-
connectedToSystemTime:
|
|
2591
|
-
|
|
2592
|
-
: undefined,
|
|
2593
|
-
contactArn: (0, smithy_client_1.expectString)(output.contactArn),
|
|
2594
|
-
};
|
|
2595
|
-
};
|
|
2596
|
-
const de_DomainSummary = (output, context) => {
|
|
2597
|
-
return {
|
|
2598
|
-
domainArn: (0, smithy_client_1.expectString)(output.domainArn),
|
|
2599
|
-
domainId: (0, smithy_client_1.expectString)(output.domainId),
|
|
2600
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2601
|
-
};
|
|
2602
|
-
};
|
|
2603
|
-
const de_DomainSummaryList = (output, context) => {
|
|
2604
|
-
const retVal = (output || [])
|
|
2605
|
-
.filter((e) => e != null)
|
|
2606
|
-
.map((entry) => {
|
|
2607
|
-
if (entry === null) {
|
|
2608
|
-
return null;
|
|
2609
|
-
}
|
|
2610
|
-
return de_DomainSummary(entry, context);
|
|
2611
|
-
});
|
|
2612
|
-
return retVal;
|
|
2613
|
-
};
|
|
2614
|
-
const de_EventBridgeConfiguration = (output, context) => {
|
|
2615
|
-
return {
|
|
2616
|
-
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
2617
|
-
includedData: output.includedData != null ? de_EventIncludedData(output.includedData, context) : undefined,
|
|
2618
|
-
};
|
|
2619
|
-
};
|
|
2620
|
-
const de_EventIncludedData = (output, context) => {
|
|
2621
|
-
return {
|
|
2622
|
-
caseData: output.caseData != null ? de_CaseEventIncludedData(output.caseData, context) : undefined,
|
|
2623
|
-
relatedItemData: output.relatedItemData != null ? de_RelatedItemEventIncludedData(output.relatedItemData, context) : undefined,
|
|
2624
|
-
};
|
|
2625
|
-
};
|
|
2626
|
-
const de_FieldError = (output, context) => {
|
|
2627
|
-
return {
|
|
2628
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2629
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2630
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2631
|
-
};
|
|
2632
|
-
};
|
|
2633
|
-
const de_FieldGroup = (output, context) => {
|
|
2634
|
-
return {
|
|
2635
|
-
fields: output.fields != null ? de_FieldList(output.fields, context) : undefined,
|
|
2636
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2637
|
-
};
|
|
2638
|
-
};
|
|
2639
|
-
const de_FieldIdentifier = (output, context) => {
|
|
2640
|
-
return {
|
|
2641
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2642
|
-
};
|
|
2643
|
-
};
|
|
2644
|
-
const de_FieldIdentifierList = (output, context) => {
|
|
2645
|
-
const retVal = (output || [])
|
|
2646
|
-
.filter((e) => e != null)
|
|
2647
|
-
.map((entry) => {
|
|
2648
|
-
if (entry === null) {
|
|
2649
|
-
return null;
|
|
2650
|
-
}
|
|
2651
|
-
return de_FieldIdentifier(entry, context);
|
|
2652
|
-
});
|
|
2653
|
-
return retVal;
|
|
2654
|
-
};
|
|
2655
|
-
const de_FieldItem = (output, context) => {
|
|
2656
|
-
return {
|
|
2657
|
-
id: (0, smithy_client_1.expectString)(output.id),
|
|
2658
|
-
};
|
|
2659
|
-
};
|
|
2660
|
-
const de_FieldList = (output, context) => {
|
|
2661
|
-
const retVal = (output || [])
|
|
2662
|
-
.filter((e) => e != null)
|
|
2663
|
-
.map((entry) => {
|
|
2664
|
-
if (entry === null) {
|
|
2665
|
-
return null;
|
|
2666
|
-
}
|
|
2667
|
-
return de_FieldItem(entry, context);
|
|
2668
|
-
});
|
|
2669
|
-
return retVal;
|
|
2670
|
-
};
|
|
2671
|
-
const de_FieldOption = (output, context) => {
|
|
2672
|
-
return {
|
|
2673
|
-
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
2674
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2675
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2676
|
-
};
|
|
2677
|
-
};
|
|
2678
|
-
const de_FieldOptionError = (output, context) => {
|
|
2679
|
-
return {
|
|
2680
|
-
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2681
|
-
message: (0, smithy_client_1.expectString)(output.message),
|
|
2682
|
-
value: (0, smithy_client_1.expectString)(output.value),
|
|
2683
|
-
};
|
|
2684
|
-
};
|
|
2685
|
-
const de_FieldOptionErrorList = (output, context) => {
|
|
2686
|
-
const retVal = (output || [])
|
|
2687
|
-
.filter((e) => e != null)
|
|
2688
|
-
.map((entry) => {
|
|
2689
|
-
if (entry === null) {
|
|
2690
|
-
return null;
|
|
2691
|
-
}
|
|
2692
|
-
return de_FieldOptionError(entry, context);
|
|
2693
|
-
});
|
|
2694
|
-
return retVal;
|
|
2695
|
-
};
|
|
2696
|
-
const de_FieldOptionsList = (output, context) => {
|
|
2697
|
-
const retVal = (output || [])
|
|
2698
|
-
.filter((e) => e != null)
|
|
2699
|
-
.map((entry) => {
|
|
2700
|
-
if (entry === null) {
|
|
2701
|
-
return null;
|
|
2702
|
-
}
|
|
2703
|
-
return de_FieldOption(entry, context);
|
|
2278
|
+
return (0, smithy_client_1.take)(output, {
|
|
2279
|
+
channel: smithy_client_1.expectString,
|
|
2280
|
+
connectedToSystemTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2281
|
+
contactArn: smithy_client_1.expectString,
|
|
2704
2282
|
});
|
|
2705
|
-
return retVal;
|
|
2706
|
-
};
|
|
2707
|
-
const de_FieldSummary = (output, context) => {
|
|
2708
|
-
return {
|
|
2709
|
-
fieldArn: (0, smithy_client_1.expectString)(output.fieldArn),
|
|
2710
|
-
fieldId: (0, smithy_client_1.expectString)(output.fieldId),
|
|
2711
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2712
|
-
namespace: (0, smithy_client_1.expectString)(output.namespace),
|
|
2713
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2714
|
-
};
|
|
2715
|
-
};
|
|
2716
|
-
const de_FieldSummaryList = (output, context) => {
|
|
2717
|
-
const retVal = (output || [])
|
|
2718
|
-
.filter((e) => e != null)
|
|
2719
|
-
.map((entry) => {
|
|
2720
|
-
if (entry === null) {
|
|
2721
|
-
return null;
|
|
2722
|
-
}
|
|
2723
|
-
return de_FieldSummary(entry, context);
|
|
2724
|
-
});
|
|
2725
|
-
return retVal;
|
|
2726
2283
|
};
|
|
2727
2284
|
const de_FieldValue = (output, context) => {
|
|
2728
|
-
return {
|
|
2729
|
-
id:
|
|
2730
|
-
value:
|
|
2731
|
-
};
|
|
2285
|
+
return (0, smithy_client_1.take)(output, {
|
|
2286
|
+
id: smithy_client_1.expectString,
|
|
2287
|
+
value: (_) => de_FieldValueUnion((0, smithy_client_1.expectUnion)(_), context),
|
|
2288
|
+
});
|
|
2732
2289
|
};
|
|
2733
2290
|
const de_FieldValueList = (output, context) => {
|
|
2734
2291
|
const retVal = (output || [])
|
|
2735
2292
|
.filter((e) => e != null)
|
|
2736
2293
|
.map((entry) => {
|
|
2737
|
-
if (entry === null) {
|
|
2738
|
-
return null;
|
|
2739
|
-
}
|
|
2740
2294
|
return de_FieldValue(entry, context);
|
|
2741
2295
|
});
|
|
2742
2296
|
return retVal;
|
|
@@ -2754,56 +2308,20 @@ const de_FieldValueUnion = (output, context) => {
|
|
|
2754
2308
|
return { $unknown: Object.entries(output)[0] };
|
|
2755
2309
|
};
|
|
2756
2310
|
const de_GetFieldResponse = (output, context) => {
|
|
2757
|
-
return {
|
|
2758
|
-
description:
|
|
2759
|
-
fieldArn:
|
|
2760
|
-
fieldId:
|
|
2761
|
-
name:
|
|
2762
|
-
namespace:
|
|
2763
|
-
tags:
|
|
2764
|
-
type:
|
|
2765
|
-
};
|
|
2766
|
-
};
|
|
2767
|
-
const de_LayoutConfiguration = (output, context) => {
|
|
2768
|
-
return {
|
|
2769
|
-
defaultLayout: (0, smithy_client_1.expectString)(output.defaultLayout),
|
|
2770
|
-
};
|
|
2771
|
-
};
|
|
2772
|
-
const de_LayoutContent = (output, context) => {
|
|
2773
|
-
if (output.basic != null) {
|
|
2774
|
-
return {
|
|
2775
|
-
basic: de_BasicLayout(output.basic, context),
|
|
2776
|
-
};
|
|
2777
|
-
}
|
|
2778
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2779
|
-
};
|
|
2780
|
-
const de_LayoutSections = (output, context) => {
|
|
2781
|
-
return {
|
|
2782
|
-
sections: output.sections != null ? de_SectionsList(output.sections, context) : undefined,
|
|
2783
|
-
};
|
|
2784
|
-
};
|
|
2785
|
-
const de_LayoutSummary = (output, context) => {
|
|
2786
|
-
return {
|
|
2787
|
-
layoutArn: (0, smithy_client_1.expectString)(output.layoutArn),
|
|
2788
|
-
layoutId: (0, smithy_client_1.expectString)(output.layoutId),
|
|
2789
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2790
|
-
};
|
|
2791
|
-
};
|
|
2792
|
-
const de_LayoutSummaryList = (output, context) => {
|
|
2793
|
-
const retVal = (output || [])
|
|
2794
|
-
.filter((e) => e != null)
|
|
2795
|
-
.map((entry) => {
|
|
2796
|
-
if (entry === null) {
|
|
2797
|
-
return null;
|
|
2798
|
-
}
|
|
2799
|
-
return de_LayoutSummary(entry, context);
|
|
2311
|
+
return (0, smithy_client_1.take)(output, {
|
|
2312
|
+
description: smithy_client_1.expectString,
|
|
2313
|
+
fieldArn: smithy_client_1.expectString,
|
|
2314
|
+
fieldId: smithy_client_1.expectString,
|
|
2315
|
+
name: smithy_client_1.expectString,
|
|
2316
|
+
namespace: smithy_client_1.expectString,
|
|
2317
|
+
tags: (_) => de_Tags(_, context),
|
|
2318
|
+
type: smithy_client_1.expectString,
|
|
2800
2319
|
});
|
|
2801
|
-
return retVal;
|
|
2802
2320
|
};
|
|
2803
2321
|
const de_RelatedItemContent = (output, context) => {
|
|
2804
2322
|
if (output.comment != null) {
|
|
2805
2323
|
return {
|
|
2806
|
-
comment:
|
|
2324
|
+
comment: (0, smithy_client_1._json)(output.comment),
|
|
2807
2325
|
};
|
|
2808
2326
|
}
|
|
2809
2327
|
if (output.contact != null) {
|
|
@@ -2813,34 +2331,13 @@ const de_RelatedItemContent = (output, context) => {
|
|
|
2813
2331
|
}
|
|
2814
2332
|
return { $unknown: Object.entries(output)[0] };
|
|
2815
2333
|
};
|
|
2816
|
-
const de_RelatedItemEventIncludedData = (output, context) => {
|
|
2817
|
-
return {
|
|
2818
|
-
includeContent: (0, smithy_client_1.expectBoolean)(output.includeContent),
|
|
2819
|
-
};
|
|
2820
|
-
};
|
|
2821
|
-
const de_RequiredField = (output, context) => {
|
|
2822
|
-
return {
|
|
2823
|
-
fieldId: (0, smithy_client_1.expectString)(output.fieldId),
|
|
2824
|
-
};
|
|
2825
|
-
};
|
|
2826
|
-
const de_RequiredFieldList = (output, context) => {
|
|
2827
|
-
const retVal = (output || [])
|
|
2828
|
-
.filter((e) => e != null)
|
|
2829
|
-
.map((entry) => {
|
|
2830
|
-
if (entry === null) {
|
|
2831
|
-
return null;
|
|
2832
|
-
}
|
|
2833
|
-
return de_RequiredField(entry, context);
|
|
2834
|
-
});
|
|
2835
|
-
return retVal;
|
|
2836
|
-
};
|
|
2837
2334
|
const de_SearchCasesResponseItem = (output, context) => {
|
|
2838
|
-
return {
|
|
2839
|
-
caseId:
|
|
2840
|
-
fields:
|
|
2841
|
-
tags:
|
|
2842
|
-
templateId:
|
|
2843
|
-
};
|
|
2335
|
+
return (0, smithy_client_1.take)(output, {
|
|
2336
|
+
caseId: smithy_client_1.expectString,
|
|
2337
|
+
fields: (_) => de_FieldValueList(_, context),
|
|
2338
|
+
tags: (_) => de_Tags(_, context),
|
|
2339
|
+
templateId: smithy_client_1.expectString,
|
|
2340
|
+
});
|
|
2844
2341
|
};
|
|
2845
2342
|
const de_SearchCasesResponseItemList = (output, context) => {
|
|
2846
2343
|
const retVal = (output || []).map((entry) => {
|
|
@@ -2852,15 +2349,13 @@ const de_SearchCasesResponseItemList = (output, context) => {
|
|
|
2852
2349
|
return retVal;
|
|
2853
2350
|
};
|
|
2854
2351
|
const de_SearchRelatedItemsResponseItem = (output, context) => {
|
|
2855
|
-
return {
|
|
2856
|
-
associationTime:
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
type: (0, smithy_client_1.expectString)(output.type),
|
|
2863
|
-
};
|
|
2352
|
+
return (0, smithy_client_1.take)(output, {
|
|
2353
|
+
associationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
2354
|
+
content: (_) => de_RelatedItemContent((0, smithy_client_1.expectUnion)(_), context),
|
|
2355
|
+
relatedItemId: smithy_client_1.expectString,
|
|
2356
|
+
tags: (_) => de_Tags(_, context),
|
|
2357
|
+
type: smithy_client_1.expectString,
|
|
2358
|
+
});
|
|
2864
2359
|
};
|
|
2865
2360
|
const de_SearchRelatedItemsResponseItemList = (output, context) => {
|
|
2866
2361
|
const retVal = (output || []).map((entry) => {
|
|
@@ -2871,25 +2366,6 @@ const de_SearchRelatedItemsResponseItemList = (output, context) => {
|
|
|
2871
2366
|
});
|
|
2872
2367
|
return retVal;
|
|
2873
2368
|
};
|
|
2874
|
-
const de_Section = (output, context) => {
|
|
2875
|
-
if (output.fieldGroup != null) {
|
|
2876
|
-
return {
|
|
2877
|
-
fieldGroup: de_FieldGroup(output.fieldGroup, context),
|
|
2878
|
-
};
|
|
2879
|
-
}
|
|
2880
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2881
|
-
};
|
|
2882
|
-
const de_SectionsList = (output, context) => {
|
|
2883
|
-
const retVal = (output || [])
|
|
2884
|
-
.filter((e) => e != null)
|
|
2885
|
-
.map((entry) => {
|
|
2886
|
-
if (entry === null) {
|
|
2887
|
-
return null;
|
|
2888
|
-
}
|
|
2889
|
-
return de_Section((0, smithy_client_1.expectUnion)(entry), context);
|
|
2890
|
-
});
|
|
2891
|
-
return retVal;
|
|
2892
|
-
};
|
|
2893
2369
|
const de_Tags = (output, context) => {
|
|
2894
2370
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2895
2371
|
if (value === null) {
|
|
@@ -2900,25 +2376,6 @@ const de_Tags = (output, context) => {
|
|
|
2900
2376
|
return acc;
|
|
2901
2377
|
}, {});
|
|
2902
2378
|
};
|
|
2903
|
-
const de_TemplateSummary = (output, context) => {
|
|
2904
|
-
return {
|
|
2905
|
-
name: (0, smithy_client_1.expectString)(output.name),
|
|
2906
|
-
status: (0, smithy_client_1.expectString)(output.status),
|
|
2907
|
-
templateArn: (0, smithy_client_1.expectString)(output.templateArn),
|
|
2908
|
-
templateId: (0, smithy_client_1.expectString)(output.templateId),
|
|
2909
|
-
};
|
|
2910
|
-
};
|
|
2911
|
-
const de_TemplateSummaryList = (output, context) => {
|
|
2912
|
-
const retVal = (output || [])
|
|
2913
|
-
.filter((e) => e != null)
|
|
2914
|
-
.map((entry) => {
|
|
2915
|
-
if (entry === null) {
|
|
2916
|
-
return null;
|
|
2917
|
-
}
|
|
2918
|
-
return de_TemplateSummary(entry, context);
|
|
2919
|
-
});
|
|
2920
|
-
return retVal;
|
|
2921
|
-
};
|
|
2922
2379
|
const deserializeMetadata = (output) => ({
|
|
2923
2380
|
httpStatusCode: output.statusCode,
|
|
2924
2381
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|