@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseDouble as __limitedParseDouble, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { ConnectCasesServiceException as __BaseException } from "../models/ConnectCasesServiceException";
|
|
5
|
-
import { AccessDeniedException, CaseFilter, ConflictException, FieldFilter, FieldValueUnion, InternalServerException,
|
|
5
|
+
import { AccessDeniedException, CaseFilter, ConflictException, FieldFilter, FieldValueUnion, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_BatchGetFieldCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
@@ -11,9 +11,9 @@ export const se_BatchGetFieldCommand = async (input, context) => {
|
|
|
11
11
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields-batch";
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify({
|
|
15
|
-
|
|
16
|
-
});
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
fields: (_) => _json(_),
|
|
16
|
+
}));
|
|
17
17
|
return new __HttpRequest({
|
|
18
18
|
protocol,
|
|
19
19
|
hostname,
|
|
@@ -34,9 +34,9 @@ export const se_BatchPutFieldOptionsCommand = async (input, context) => {
|
|
|
34
34
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
35
35
|
resolvedPath = __resolvedPath(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
36
36
|
let body;
|
|
37
|
-
body = JSON.stringify({
|
|
38
|
-
|
|
39
|
-
});
|
|
37
|
+
body = JSON.stringify(take(input, {
|
|
38
|
+
options: (_) => _json(_),
|
|
39
|
+
}));
|
|
40
40
|
return new __HttpRequest({
|
|
41
41
|
protocol,
|
|
42
42
|
hostname,
|
|
@@ -55,11 +55,11 @@ export const se_CreateCaseCommand = async (input, context) => {
|
|
|
55
55
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases";
|
|
56
56
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
57
57
|
let body;
|
|
58
|
-
body = JSON.stringify({
|
|
59
|
-
clientToken:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
});
|
|
58
|
+
body = JSON.stringify(take(input, {
|
|
59
|
+
clientToken: (_) => _ ?? generateIdempotencyToken(),
|
|
60
|
+
fields: (_) => se_FieldValueList(_, context),
|
|
61
|
+
templateId: [],
|
|
62
|
+
}));
|
|
63
63
|
return new __HttpRequest({
|
|
64
64
|
protocol,
|
|
65
65
|
hostname,
|
|
@@ -77,9 +77,9 @@ export const se_CreateDomainCommand = async (input, context) => {
|
|
|
77
77
|
};
|
|
78
78
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains";
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify({
|
|
81
|
-
|
|
82
|
-
});
|
|
80
|
+
body = JSON.stringify(take(input, {
|
|
81
|
+
name: [],
|
|
82
|
+
}));
|
|
83
83
|
return new __HttpRequest({
|
|
84
84
|
protocol,
|
|
85
85
|
hostname,
|
|
@@ -98,11 +98,11 @@ export const se_CreateFieldCommand = async (input, context) => {
|
|
|
98
98
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/fields";
|
|
99
99
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
100
100
|
let body;
|
|
101
|
-
body = JSON.stringify({
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
});
|
|
101
|
+
body = JSON.stringify(take(input, {
|
|
102
|
+
description: [],
|
|
103
|
+
name: [],
|
|
104
|
+
type: [],
|
|
105
|
+
}));
|
|
106
106
|
return new __HttpRequest({
|
|
107
107
|
protocol,
|
|
108
108
|
hostname,
|
|
@@ -121,10 +121,10 @@ export const se_CreateLayoutCommand = async (input, context) => {
|
|
|
121
121
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/layouts";
|
|
122
122
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify({
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
});
|
|
124
|
+
body = JSON.stringify(take(input, {
|
|
125
|
+
content: (_) => _json(_),
|
|
126
|
+
name: [],
|
|
127
|
+
}));
|
|
128
128
|
return new __HttpRequest({
|
|
129
129
|
protocol,
|
|
130
130
|
hostname,
|
|
@@ -145,10 +145,10 @@ export const se_CreateRelatedItemCommand = async (input, context) => {
|
|
|
145
145
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
146
146
|
resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
147
147
|
let body;
|
|
148
|
-
body = JSON.stringify({
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
});
|
|
148
|
+
body = JSON.stringify(take(input, {
|
|
149
|
+
content: (_) => _json(_),
|
|
150
|
+
type: [],
|
|
151
|
+
}));
|
|
152
152
|
return new __HttpRequest({
|
|
153
153
|
protocol,
|
|
154
154
|
hostname,
|
|
@@ -167,15 +167,13 @@ export const se_CreateTemplateCommand = async (input, context) => {
|
|
|
167
167
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/templates";
|
|
168
168
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify({
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
...(input.status != null && { status: input.status }),
|
|
178
|
-
});
|
|
170
|
+
body = JSON.stringify(take(input, {
|
|
171
|
+
description: [],
|
|
172
|
+
layoutConfiguration: (_) => _json(_),
|
|
173
|
+
name: [],
|
|
174
|
+
requiredFields: (_) => _json(_),
|
|
175
|
+
status: [],
|
|
176
|
+
}));
|
|
179
177
|
return new __HttpRequest({
|
|
180
178
|
protocol,
|
|
181
179
|
hostname,
|
|
@@ -211,10 +209,10 @@ export const se_GetCaseCommand = async (input, context) => {
|
|
|
211
209
|
resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
212
210
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
213
211
|
let body;
|
|
214
|
-
body = JSON.stringify({
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
});
|
|
212
|
+
body = JSON.stringify(take(input, {
|
|
213
|
+
fields: (_) => _json(_),
|
|
214
|
+
nextToken: [],
|
|
215
|
+
}));
|
|
218
216
|
return new __HttpRequest({
|
|
219
217
|
protocol,
|
|
220
218
|
hostname,
|
|
@@ -302,11 +300,11 @@ export const se_ListCasesForContactCommand = async (input, context) => {
|
|
|
302
300
|
"/domains/{domainId}/list-cases-for-contact";
|
|
303
301
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
304
302
|
let body;
|
|
305
|
-
body = JSON.stringify({
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
});
|
|
303
|
+
body = JSON.stringify(take(input, {
|
|
304
|
+
contactArn: [],
|
|
305
|
+
maxResults: [],
|
|
306
|
+
nextToken: [],
|
|
307
|
+
}));
|
|
310
308
|
return new __HttpRequest({
|
|
311
309
|
protocol,
|
|
312
310
|
hostname,
|
|
@@ -450,9 +448,9 @@ export const se_PutCaseEventConfigurationCommand = async (input, context) => {
|
|
|
450
448
|
"/domains/{domainId}/case-event-configuration";
|
|
451
449
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
452
450
|
let body;
|
|
453
|
-
body = JSON.stringify({
|
|
454
|
-
|
|
455
|
-
});
|
|
451
|
+
body = JSON.stringify(take(input, {
|
|
452
|
+
eventBridge: (_) => _json(_),
|
|
453
|
+
}));
|
|
456
454
|
return new __HttpRequest({
|
|
457
455
|
protocol,
|
|
458
456
|
hostname,
|
|
@@ -471,14 +469,14 @@ export const se_SearchCasesCommand = async (input, context) => {
|
|
|
471
469
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{domainId}/cases-search";
|
|
472
470
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
473
471
|
let body;
|
|
474
|
-
body = JSON.stringify({
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
});
|
|
472
|
+
body = JSON.stringify(take(input, {
|
|
473
|
+
fields: (_) => _json(_),
|
|
474
|
+
filter: (_) => se_CaseFilter(_, context),
|
|
475
|
+
maxResults: [],
|
|
476
|
+
nextToken: [],
|
|
477
|
+
searchTerm: [],
|
|
478
|
+
sorts: (_) => _json(_),
|
|
479
|
+
}));
|
|
482
480
|
return new __HttpRequest({
|
|
483
481
|
protocol,
|
|
484
482
|
hostname,
|
|
@@ -499,11 +497,11 @@ export const se_SearchRelatedItemsCommand = async (input, context) => {
|
|
|
499
497
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
500
498
|
resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
501
499
|
let body;
|
|
502
|
-
body = JSON.stringify({
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
});
|
|
500
|
+
body = JSON.stringify(take(input, {
|
|
501
|
+
filters: (_) => _json(_),
|
|
502
|
+
maxResults: [],
|
|
503
|
+
nextToken: [],
|
|
504
|
+
}));
|
|
507
505
|
return new __HttpRequest({
|
|
508
506
|
protocol,
|
|
509
507
|
hostname,
|
|
@@ -522,9 +520,9 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
522
520
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{arn}";
|
|
523
521
|
resolvedPath = __resolvedPath(resolvedPath, input, "arn", () => input.arn, "{arn}", false);
|
|
524
522
|
let body;
|
|
525
|
-
body = JSON.stringify({
|
|
526
|
-
|
|
527
|
-
});
|
|
523
|
+
body = JSON.stringify(take(input, {
|
|
524
|
+
tags: (_) => se_Tags(_, context),
|
|
525
|
+
}));
|
|
528
526
|
return new __HttpRequest({
|
|
529
527
|
protocol,
|
|
530
528
|
hostname,
|
|
@@ -567,9 +565,9 @@ export const se_UpdateCaseCommand = async (input, context) => {
|
|
|
567
565
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
568
566
|
resolvedPath = __resolvedPath(resolvedPath, input, "caseId", () => input.caseId, "{caseId}", false);
|
|
569
567
|
let body;
|
|
570
|
-
body = JSON.stringify({
|
|
571
|
-
|
|
572
|
-
});
|
|
568
|
+
body = JSON.stringify(take(input, {
|
|
569
|
+
fields: (_) => se_FieldValueList(_, context),
|
|
570
|
+
}));
|
|
573
571
|
return new __HttpRequest({
|
|
574
572
|
protocol,
|
|
575
573
|
hostname,
|
|
@@ -589,10 +587,10 @@ export const se_UpdateFieldCommand = async (input, context) => {
|
|
|
589
587
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
590
588
|
resolvedPath = __resolvedPath(resolvedPath, input, "fieldId", () => input.fieldId, "{fieldId}", false);
|
|
591
589
|
let body;
|
|
592
|
-
body = JSON.stringify({
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
});
|
|
590
|
+
body = JSON.stringify(take(input, {
|
|
591
|
+
description: [],
|
|
592
|
+
name: [],
|
|
593
|
+
}));
|
|
596
594
|
return new __HttpRequest({
|
|
597
595
|
protocol,
|
|
598
596
|
hostname,
|
|
@@ -612,10 +610,10 @@ export const se_UpdateLayoutCommand = async (input, context) => {
|
|
|
612
610
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
613
611
|
resolvedPath = __resolvedPath(resolvedPath, input, "layoutId", () => input.layoutId, "{layoutId}", false);
|
|
614
612
|
let body;
|
|
615
|
-
body = JSON.stringify({
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
});
|
|
613
|
+
body = JSON.stringify(take(input, {
|
|
614
|
+
content: (_) => _json(_),
|
|
615
|
+
name: [],
|
|
616
|
+
}));
|
|
619
617
|
return new __HttpRequest({
|
|
620
618
|
protocol,
|
|
621
619
|
hostname,
|
|
@@ -636,15 +634,13 @@ export const se_UpdateTemplateCommand = async (input, context) => {
|
|
|
636
634
|
resolvedPath = __resolvedPath(resolvedPath, input, "domainId", () => input.domainId, "{domainId}", false);
|
|
637
635
|
resolvedPath = __resolvedPath(resolvedPath, input, "templateId", () => input.templateId, "{templateId}", false);
|
|
638
636
|
let body;
|
|
639
|
-
body = JSON.stringify({
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
...(input.status != null && { status: input.status }),
|
|
647
|
-
});
|
|
637
|
+
body = JSON.stringify(take(input, {
|
|
638
|
+
description: [],
|
|
639
|
+
layoutConfiguration: (_) => _json(_),
|
|
640
|
+
name: [],
|
|
641
|
+
requiredFields: (_) => _json(_),
|
|
642
|
+
status: [],
|
|
643
|
+
}));
|
|
648
644
|
return new __HttpRequest({
|
|
649
645
|
protocol,
|
|
650
646
|
hostname,
|
|
@@ -663,12 +659,11 @@ export const de_BatchGetFieldCommand = async (output, context) => {
|
|
|
663
659
|
$metadata: deserializeMetadata(output),
|
|
664
660
|
});
|
|
665
661
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
}
|
|
662
|
+
const doc = take(data, {
|
|
663
|
+
errors: _json,
|
|
664
|
+
fields: (_) => de_BatchGetFieldList(_, context),
|
|
665
|
+
});
|
|
666
|
+
Object.assign(contents, doc);
|
|
672
667
|
return contents;
|
|
673
668
|
};
|
|
674
669
|
const de_BatchGetFieldCommandError = async (output, context) => {
|
|
@@ -695,10 +690,9 @@ const de_BatchGetFieldCommandError = async (output, context) => {
|
|
|
695
690
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
696
691
|
default:
|
|
697
692
|
const parsedBody = parsedOutput.body;
|
|
698
|
-
throwDefaultError({
|
|
693
|
+
return throwDefaultError({
|
|
699
694
|
output,
|
|
700
695
|
parsedBody,
|
|
701
|
-
exceptionCtor: __BaseException,
|
|
702
696
|
errorCode,
|
|
703
697
|
});
|
|
704
698
|
}
|
|
@@ -711,9 +705,10 @@ export const de_BatchPutFieldOptionsCommand = async (output, context) => {
|
|
|
711
705
|
$metadata: deserializeMetadata(output),
|
|
712
706
|
});
|
|
713
707
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
708
|
+
const doc = take(data, {
|
|
709
|
+
errors: _json,
|
|
710
|
+
});
|
|
711
|
+
Object.assign(contents, doc);
|
|
717
712
|
return contents;
|
|
718
713
|
};
|
|
719
714
|
const de_BatchPutFieldOptionsCommandError = async (output, context) => {
|
|
@@ -743,10 +738,9 @@ const de_BatchPutFieldOptionsCommandError = async (output, context) => {
|
|
|
743
738
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
739
|
default:
|
|
745
740
|
const parsedBody = parsedOutput.body;
|
|
746
|
-
throwDefaultError({
|
|
741
|
+
return throwDefaultError({
|
|
747
742
|
output,
|
|
748
743
|
parsedBody,
|
|
749
|
-
exceptionCtor: __BaseException,
|
|
750
744
|
errorCode,
|
|
751
745
|
});
|
|
752
746
|
}
|
|
@@ -759,12 +753,11 @@ export const de_CreateCaseCommand = async (output, context) => {
|
|
|
759
753
|
$metadata: deserializeMetadata(output),
|
|
760
754
|
});
|
|
761
755
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
}
|
|
756
|
+
const doc = take(data, {
|
|
757
|
+
caseArn: __expectString,
|
|
758
|
+
caseId: __expectString,
|
|
759
|
+
});
|
|
760
|
+
Object.assign(contents, doc);
|
|
768
761
|
return contents;
|
|
769
762
|
};
|
|
770
763
|
const de_CreateCaseCommandError = async (output, context) => {
|
|
@@ -794,10 +787,9 @@ const de_CreateCaseCommandError = async (output, context) => {
|
|
|
794
787
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
795
788
|
default:
|
|
796
789
|
const parsedBody = parsedOutput.body;
|
|
797
|
-
throwDefaultError({
|
|
790
|
+
return throwDefaultError({
|
|
798
791
|
output,
|
|
799
792
|
parsedBody,
|
|
800
|
-
exceptionCtor: __BaseException,
|
|
801
793
|
errorCode,
|
|
802
794
|
});
|
|
803
795
|
}
|
|
@@ -810,15 +802,12 @@ export const de_CreateDomainCommand = async (output, context) => {
|
|
|
810
802
|
$metadata: deserializeMetadata(output),
|
|
811
803
|
});
|
|
812
804
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
if (data.domainStatus != null) {
|
|
820
|
-
contents.domainStatus = __expectString(data.domainStatus);
|
|
821
|
-
}
|
|
805
|
+
const doc = take(data, {
|
|
806
|
+
domainArn: __expectString,
|
|
807
|
+
domainId: __expectString,
|
|
808
|
+
domainStatus: __expectString,
|
|
809
|
+
});
|
|
810
|
+
Object.assign(contents, doc);
|
|
822
811
|
return contents;
|
|
823
812
|
};
|
|
824
813
|
const de_CreateDomainCommandError = async (output, context) => {
|
|
@@ -848,10 +837,9 @@ const de_CreateDomainCommandError = async (output, context) => {
|
|
|
848
837
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
849
838
|
default:
|
|
850
839
|
const parsedBody = parsedOutput.body;
|
|
851
|
-
throwDefaultError({
|
|
840
|
+
return throwDefaultError({
|
|
852
841
|
output,
|
|
853
842
|
parsedBody,
|
|
854
|
-
exceptionCtor: __BaseException,
|
|
855
843
|
errorCode,
|
|
856
844
|
});
|
|
857
845
|
}
|
|
@@ -864,12 +852,11 @@ export const de_CreateFieldCommand = async (output, context) => {
|
|
|
864
852
|
$metadata: deserializeMetadata(output),
|
|
865
853
|
});
|
|
866
854
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
}
|
|
855
|
+
const doc = take(data, {
|
|
856
|
+
fieldArn: __expectString,
|
|
857
|
+
fieldId: __expectString,
|
|
858
|
+
});
|
|
859
|
+
Object.assign(contents, doc);
|
|
873
860
|
return contents;
|
|
874
861
|
};
|
|
875
862
|
const de_CreateFieldCommandError = async (output, context) => {
|
|
@@ -902,10 +889,9 @@ const de_CreateFieldCommandError = async (output, context) => {
|
|
|
902
889
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
903
890
|
default:
|
|
904
891
|
const parsedBody = parsedOutput.body;
|
|
905
|
-
throwDefaultError({
|
|
892
|
+
return throwDefaultError({
|
|
906
893
|
output,
|
|
907
894
|
parsedBody,
|
|
908
|
-
exceptionCtor: __BaseException,
|
|
909
895
|
errorCode,
|
|
910
896
|
});
|
|
911
897
|
}
|
|
@@ -918,12 +904,11 @@ export const de_CreateLayoutCommand = async (output, context) => {
|
|
|
918
904
|
$metadata: deserializeMetadata(output),
|
|
919
905
|
});
|
|
920
906
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
}
|
|
907
|
+
const doc = take(data, {
|
|
908
|
+
layoutArn: __expectString,
|
|
909
|
+
layoutId: __expectString,
|
|
910
|
+
});
|
|
911
|
+
Object.assign(contents, doc);
|
|
927
912
|
return contents;
|
|
928
913
|
};
|
|
929
914
|
const de_CreateLayoutCommandError = async (output, context) => {
|
|
@@ -956,10 +941,9 @@ const de_CreateLayoutCommandError = async (output, context) => {
|
|
|
956
941
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
957
942
|
default:
|
|
958
943
|
const parsedBody = parsedOutput.body;
|
|
959
|
-
throwDefaultError({
|
|
944
|
+
return throwDefaultError({
|
|
960
945
|
output,
|
|
961
946
|
parsedBody,
|
|
962
|
-
exceptionCtor: __BaseException,
|
|
963
947
|
errorCode,
|
|
964
948
|
});
|
|
965
949
|
}
|
|
@@ -972,12 +956,11 @@ export const de_CreateRelatedItemCommand = async (output, context) => {
|
|
|
972
956
|
$metadata: deserializeMetadata(output),
|
|
973
957
|
});
|
|
974
958
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
}
|
|
959
|
+
const doc = take(data, {
|
|
960
|
+
relatedItemArn: __expectString,
|
|
961
|
+
relatedItemId: __expectString,
|
|
962
|
+
});
|
|
963
|
+
Object.assign(contents, doc);
|
|
981
964
|
return contents;
|
|
982
965
|
};
|
|
983
966
|
const de_CreateRelatedItemCommandError = async (output, context) => {
|
|
@@ -1007,10 +990,9 @@ const de_CreateRelatedItemCommandError = async (output, context) => {
|
|
|
1007
990
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
991
|
default:
|
|
1009
992
|
const parsedBody = parsedOutput.body;
|
|
1010
|
-
throwDefaultError({
|
|
993
|
+
return throwDefaultError({
|
|
1011
994
|
output,
|
|
1012
995
|
parsedBody,
|
|
1013
|
-
exceptionCtor: __BaseException,
|
|
1014
996
|
errorCode,
|
|
1015
997
|
});
|
|
1016
998
|
}
|
|
@@ -1023,12 +1005,11 @@ export const de_CreateTemplateCommand = async (output, context) => {
|
|
|
1023
1005
|
$metadata: deserializeMetadata(output),
|
|
1024
1006
|
});
|
|
1025
1007
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
}
|
|
1008
|
+
const doc = take(data, {
|
|
1009
|
+
templateArn: __expectString,
|
|
1010
|
+
templateId: __expectString,
|
|
1011
|
+
});
|
|
1012
|
+
Object.assign(contents, doc);
|
|
1032
1013
|
return contents;
|
|
1033
1014
|
};
|
|
1034
1015
|
const de_CreateTemplateCommandError = async (output, context) => {
|
|
@@ -1061,10 +1042,9 @@ const de_CreateTemplateCommandError = async (output, context) => {
|
|
|
1061
1042
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1062
1043
|
default:
|
|
1063
1044
|
const parsedBody = parsedOutput.body;
|
|
1064
|
-
throwDefaultError({
|
|
1045
|
+
return throwDefaultError({
|
|
1065
1046
|
output,
|
|
1066
1047
|
parsedBody,
|
|
1067
|
-
exceptionCtor: __BaseException,
|
|
1068
1048
|
errorCode,
|
|
1069
1049
|
});
|
|
1070
1050
|
}
|
|
@@ -1106,10 +1086,9 @@ const de_DeleteDomainCommandError = async (output, context) => {
|
|
|
1106
1086
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
1087
|
default:
|
|
1108
1088
|
const parsedBody = parsedOutput.body;
|
|
1109
|
-
throwDefaultError({
|
|
1089
|
+
return throwDefaultError({
|
|
1110
1090
|
output,
|
|
1111
1091
|
parsedBody,
|
|
1112
|
-
exceptionCtor: __BaseException,
|
|
1113
1092
|
errorCode,
|
|
1114
1093
|
});
|
|
1115
1094
|
}
|
|
@@ -1122,18 +1101,13 @@ export const de_GetCaseCommand = async (output, context) => {
|
|
|
1122
1101
|
$metadata: deserializeMetadata(output),
|
|
1123
1102
|
});
|
|
1124
1103
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1133
|
-
}
|
|
1134
|
-
if (data.templateId != null) {
|
|
1135
|
-
contents.templateId = __expectString(data.templateId);
|
|
1136
|
-
}
|
|
1104
|
+
const doc = take(data, {
|
|
1105
|
+
fields: (_) => de_FieldValueList(_, context),
|
|
1106
|
+
nextToken: __expectString,
|
|
1107
|
+
tags: (_) => de_Tags(_, context),
|
|
1108
|
+
templateId: __expectString,
|
|
1109
|
+
});
|
|
1110
|
+
Object.assign(contents, doc);
|
|
1137
1111
|
return contents;
|
|
1138
1112
|
};
|
|
1139
1113
|
const de_GetCaseCommandError = async (output, context) => {
|
|
@@ -1160,10 +1134,9 @@ const de_GetCaseCommandError = async (output, context) => {
|
|
|
1160
1134
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1161
1135
|
default:
|
|
1162
1136
|
const parsedBody = parsedOutput.body;
|
|
1163
|
-
throwDefaultError({
|
|
1137
|
+
return throwDefaultError({
|
|
1164
1138
|
output,
|
|
1165
1139
|
parsedBody,
|
|
1166
|
-
exceptionCtor: __BaseException,
|
|
1167
1140
|
errorCode,
|
|
1168
1141
|
});
|
|
1169
1142
|
}
|
|
@@ -1176,9 +1149,10 @@ export const de_GetCaseEventConfigurationCommand = async (output, context) => {
|
|
|
1176
1149
|
$metadata: deserializeMetadata(output),
|
|
1177
1150
|
});
|
|
1178
1151
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}
|
|
1152
|
+
const doc = take(data, {
|
|
1153
|
+
eventBridge: _json,
|
|
1154
|
+
});
|
|
1155
|
+
Object.assign(contents, doc);
|
|
1182
1156
|
return contents;
|
|
1183
1157
|
};
|
|
1184
1158
|
const de_GetCaseEventConfigurationCommandError = async (output, context) => {
|
|
@@ -1205,10 +1179,9 @@ const de_GetCaseEventConfigurationCommandError = async (output, context) => {
|
|
|
1205
1179
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1206
1180
|
default:
|
|
1207
1181
|
const parsedBody = parsedOutput.body;
|
|
1208
|
-
throwDefaultError({
|
|
1182
|
+
return throwDefaultError({
|
|
1209
1183
|
output,
|
|
1210
1184
|
parsedBody,
|
|
1211
|
-
exceptionCtor: __BaseException,
|
|
1212
1185
|
errorCode,
|
|
1213
1186
|
});
|
|
1214
1187
|
}
|
|
@@ -1221,24 +1194,15 @@ export const de_GetDomainCommand = async (output, context) => {
|
|
|
1221
1194
|
$metadata: deserializeMetadata(output),
|
|
1222
1195
|
});
|
|
1223
1196
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
if (data.domainStatus != null) {
|
|
1234
|
-
contents.domainStatus = __expectString(data.domainStatus);
|
|
1235
|
-
}
|
|
1236
|
-
if (data.name != null) {
|
|
1237
|
-
contents.name = __expectString(data.name);
|
|
1238
|
-
}
|
|
1239
|
-
if (data.tags != null) {
|
|
1240
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1241
|
-
}
|
|
1197
|
+
const doc = take(data, {
|
|
1198
|
+
createdTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1199
|
+
domainArn: __expectString,
|
|
1200
|
+
domainId: __expectString,
|
|
1201
|
+
domainStatus: __expectString,
|
|
1202
|
+
name: __expectString,
|
|
1203
|
+
tags: (_) => de_Tags(_, context),
|
|
1204
|
+
});
|
|
1205
|
+
Object.assign(contents, doc);
|
|
1242
1206
|
return contents;
|
|
1243
1207
|
};
|
|
1244
1208
|
const de_GetDomainCommandError = async (output, context) => {
|
|
@@ -1265,10 +1229,9 @@ const de_GetDomainCommandError = async (output, context) => {
|
|
|
1265
1229
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1266
1230
|
default:
|
|
1267
1231
|
const parsedBody = parsedOutput.body;
|
|
1268
|
-
throwDefaultError({
|
|
1232
|
+
return throwDefaultError({
|
|
1269
1233
|
output,
|
|
1270
1234
|
parsedBody,
|
|
1271
|
-
exceptionCtor: __BaseException,
|
|
1272
1235
|
errorCode,
|
|
1273
1236
|
});
|
|
1274
1237
|
}
|
|
@@ -1281,21 +1244,14 @@ export const de_GetLayoutCommand = async (output, context) => {
|
|
|
1281
1244
|
$metadata: deserializeMetadata(output),
|
|
1282
1245
|
});
|
|
1283
1246
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
}
|
|
1293
|
-
if (data.name != null) {
|
|
1294
|
-
contents.name = __expectString(data.name);
|
|
1295
|
-
}
|
|
1296
|
-
if (data.tags != null) {
|
|
1297
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1298
|
-
}
|
|
1247
|
+
const doc = take(data, {
|
|
1248
|
+
content: (_) => _json(__expectUnion(_)),
|
|
1249
|
+
layoutArn: __expectString,
|
|
1250
|
+
layoutId: __expectString,
|
|
1251
|
+
name: __expectString,
|
|
1252
|
+
tags: (_) => de_Tags(_, context),
|
|
1253
|
+
});
|
|
1254
|
+
Object.assign(contents, doc);
|
|
1299
1255
|
return contents;
|
|
1300
1256
|
};
|
|
1301
1257
|
const de_GetLayoutCommandError = async (output, context) => {
|
|
@@ -1322,10 +1278,9 @@ const de_GetLayoutCommandError = async (output, context) => {
|
|
|
1322
1278
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1323
1279
|
default:
|
|
1324
1280
|
const parsedBody = parsedOutput.body;
|
|
1325
|
-
throwDefaultError({
|
|
1281
|
+
return throwDefaultError({
|
|
1326
1282
|
output,
|
|
1327
1283
|
parsedBody,
|
|
1328
|
-
exceptionCtor: __BaseException,
|
|
1329
1284
|
errorCode,
|
|
1330
1285
|
});
|
|
1331
1286
|
}
|
|
@@ -1338,30 +1293,17 @@ export const de_GetTemplateCommand = async (output, context) => {
|
|
|
1338
1293
|
$metadata: deserializeMetadata(output),
|
|
1339
1294
|
});
|
|
1340
1295
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
}
|
|
1353
|
-
if (data.status != null) {
|
|
1354
|
-
contents.status = __expectString(data.status);
|
|
1355
|
-
}
|
|
1356
|
-
if (data.tags != null) {
|
|
1357
|
-
contents.tags = de_Tags(data.tags, context);
|
|
1358
|
-
}
|
|
1359
|
-
if (data.templateArn != null) {
|
|
1360
|
-
contents.templateArn = __expectString(data.templateArn);
|
|
1361
|
-
}
|
|
1362
|
-
if (data.templateId != null) {
|
|
1363
|
-
contents.templateId = __expectString(data.templateId);
|
|
1364
|
-
}
|
|
1296
|
+
const doc = take(data, {
|
|
1297
|
+
description: __expectString,
|
|
1298
|
+
layoutConfiguration: _json,
|
|
1299
|
+
name: __expectString,
|
|
1300
|
+
requiredFields: _json,
|
|
1301
|
+
status: __expectString,
|
|
1302
|
+
tags: (_) => de_Tags(_, context),
|
|
1303
|
+
templateArn: __expectString,
|
|
1304
|
+
templateId: __expectString,
|
|
1305
|
+
});
|
|
1306
|
+
Object.assign(contents, doc);
|
|
1365
1307
|
return contents;
|
|
1366
1308
|
};
|
|
1367
1309
|
const de_GetTemplateCommandError = async (output, context) => {
|
|
@@ -1388,10 +1330,9 @@ const de_GetTemplateCommandError = async (output, context) => {
|
|
|
1388
1330
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1389
1331
|
default:
|
|
1390
1332
|
const parsedBody = parsedOutput.body;
|
|
1391
|
-
throwDefaultError({
|
|
1333
|
+
return throwDefaultError({
|
|
1392
1334
|
output,
|
|
1393
1335
|
parsedBody,
|
|
1394
|
-
exceptionCtor: __BaseException,
|
|
1395
1336
|
errorCode,
|
|
1396
1337
|
});
|
|
1397
1338
|
}
|
|
@@ -1404,12 +1345,11 @@ export const de_ListCasesForContactCommand = async (output, context) => {
|
|
|
1404
1345
|
$metadata: deserializeMetadata(output),
|
|
1405
1346
|
});
|
|
1406
1347
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
}
|
|
1348
|
+
const doc = take(data, {
|
|
1349
|
+
cases: _json,
|
|
1350
|
+
nextToken: __expectString,
|
|
1351
|
+
});
|
|
1352
|
+
Object.assign(contents, doc);
|
|
1413
1353
|
return contents;
|
|
1414
1354
|
};
|
|
1415
1355
|
const de_ListCasesForContactCommandError = async (output, context) => {
|
|
@@ -1436,10 +1376,9 @@ const de_ListCasesForContactCommandError = async (output, context) => {
|
|
|
1436
1376
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1437
1377
|
default:
|
|
1438
1378
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
throwDefaultError({
|
|
1379
|
+
return throwDefaultError({
|
|
1440
1380
|
output,
|
|
1441
1381
|
parsedBody,
|
|
1442
|
-
exceptionCtor: __BaseException,
|
|
1443
1382
|
errorCode,
|
|
1444
1383
|
});
|
|
1445
1384
|
}
|
|
@@ -1452,12 +1391,11 @@ export const de_ListDomainsCommand = async (output, context) => {
|
|
|
1452
1391
|
$metadata: deserializeMetadata(output),
|
|
1453
1392
|
});
|
|
1454
1393
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
}
|
|
1394
|
+
const doc = take(data, {
|
|
1395
|
+
domains: _json,
|
|
1396
|
+
nextToken: __expectString,
|
|
1397
|
+
});
|
|
1398
|
+
Object.assign(contents, doc);
|
|
1461
1399
|
return contents;
|
|
1462
1400
|
};
|
|
1463
1401
|
const de_ListDomainsCommandError = async (output, context) => {
|
|
@@ -1481,10 +1419,9 @@ const de_ListDomainsCommandError = async (output, context) => {
|
|
|
1481
1419
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1482
1420
|
default:
|
|
1483
1421
|
const parsedBody = parsedOutput.body;
|
|
1484
|
-
throwDefaultError({
|
|
1422
|
+
return throwDefaultError({
|
|
1485
1423
|
output,
|
|
1486
1424
|
parsedBody,
|
|
1487
|
-
exceptionCtor: __BaseException,
|
|
1488
1425
|
errorCode,
|
|
1489
1426
|
});
|
|
1490
1427
|
}
|
|
@@ -1497,12 +1434,11 @@ export const de_ListFieldOptionsCommand = async (output, context) => {
|
|
|
1497
1434
|
$metadata: deserializeMetadata(output),
|
|
1498
1435
|
});
|
|
1499
1436
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
}
|
|
1437
|
+
const doc = take(data, {
|
|
1438
|
+
nextToken: __expectString,
|
|
1439
|
+
options: _json,
|
|
1440
|
+
});
|
|
1441
|
+
Object.assign(contents, doc);
|
|
1506
1442
|
return contents;
|
|
1507
1443
|
};
|
|
1508
1444
|
const de_ListFieldOptionsCommandError = async (output, context) => {
|
|
@@ -1529,10 +1465,9 @@ const de_ListFieldOptionsCommandError = async (output, context) => {
|
|
|
1529
1465
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1530
1466
|
default:
|
|
1531
1467
|
const parsedBody = parsedOutput.body;
|
|
1532
|
-
throwDefaultError({
|
|
1468
|
+
return throwDefaultError({
|
|
1533
1469
|
output,
|
|
1534
1470
|
parsedBody,
|
|
1535
|
-
exceptionCtor: __BaseException,
|
|
1536
1471
|
errorCode,
|
|
1537
1472
|
});
|
|
1538
1473
|
}
|
|
@@ -1545,12 +1480,11 @@ export const de_ListFieldsCommand = async (output, context) => {
|
|
|
1545
1480
|
$metadata: deserializeMetadata(output),
|
|
1546
1481
|
});
|
|
1547
1482
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
}
|
|
1483
|
+
const doc = take(data, {
|
|
1484
|
+
fields: _json,
|
|
1485
|
+
nextToken: __expectString,
|
|
1486
|
+
});
|
|
1487
|
+
Object.assign(contents, doc);
|
|
1554
1488
|
return contents;
|
|
1555
1489
|
};
|
|
1556
1490
|
const de_ListFieldsCommandError = async (output, context) => {
|
|
@@ -1577,10 +1511,9 @@ const de_ListFieldsCommandError = async (output, context) => {
|
|
|
1577
1511
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1578
1512
|
default:
|
|
1579
1513
|
const parsedBody = parsedOutput.body;
|
|
1580
|
-
throwDefaultError({
|
|
1514
|
+
return throwDefaultError({
|
|
1581
1515
|
output,
|
|
1582
1516
|
parsedBody,
|
|
1583
|
-
exceptionCtor: __BaseException,
|
|
1584
1517
|
errorCode,
|
|
1585
1518
|
});
|
|
1586
1519
|
}
|
|
@@ -1593,12 +1526,11 @@ export const de_ListLayoutsCommand = async (output, context) => {
|
|
|
1593
1526
|
$metadata: deserializeMetadata(output),
|
|
1594
1527
|
});
|
|
1595
1528
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
}
|
|
1529
|
+
const doc = take(data, {
|
|
1530
|
+
layouts: _json,
|
|
1531
|
+
nextToken: __expectString,
|
|
1532
|
+
});
|
|
1533
|
+
Object.assign(contents, doc);
|
|
1602
1534
|
return contents;
|
|
1603
1535
|
};
|
|
1604
1536
|
const de_ListLayoutsCommandError = async (output, context) => {
|
|
@@ -1625,10 +1557,9 @@ const de_ListLayoutsCommandError = async (output, context) => {
|
|
|
1625
1557
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1626
1558
|
default:
|
|
1627
1559
|
const parsedBody = parsedOutput.body;
|
|
1628
|
-
throwDefaultError({
|
|
1560
|
+
return throwDefaultError({
|
|
1629
1561
|
output,
|
|
1630
1562
|
parsedBody,
|
|
1631
|
-
exceptionCtor: __BaseException,
|
|
1632
1563
|
errorCode,
|
|
1633
1564
|
});
|
|
1634
1565
|
}
|
|
@@ -1641,9 +1572,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1641
1572
|
$metadata: deserializeMetadata(output),
|
|
1642
1573
|
});
|
|
1643
1574
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
}
|
|
1575
|
+
const doc = take(data, {
|
|
1576
|
+
tags: (_) => de_Tags(_, context),
|
|
1577
|
+
});
|
|
1578
|
+
Object.assign(contents, doc);
|
|
1647
1579
|
return contents;
|
|
1648
1580
|
};
|
|
1649
1581
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -1670,10 +1602,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1670
1602
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1671
1603
|
default:
|
|
1672
1604
|
const parsedBody = parsedOutput.body;
|
|
1673
|
-
throwDefaultError({
|
|
1605
|
+
return throwDefaultError({
|
|
1674
1606
|
output,
|
|
1675
1607
|
parsedBody,
|
|
1676
|
-
exceptionCtor: __BaseException,
|
|
1677
1608
|
errorCode,
|
|
1678
1609
|
});
|
|
1679
1610
|
}
|
|
@@ -1686,12 +1617,11 @@ export const de_ListTemplatesCommand = async (output, context) => {
|
|
|
1686
1617
|
$metadata: deserializeMetadata(output),
|
|
1687
1618
|
});
|
|
1688
1619
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
}
|
|
1620
|
+
const doc = take(data, {
|
|
1621
|
+
nextToken: __expectString,
|
|
1622
|
+
templates: _json,
|
|
1623
|
+
});
|
|
1624
|
+
Object.assign(contents, doc);
|
|
1695
1625
|
return contents;
|
|
1696
1626
|
};
|
|
1697
1627
|
const de_ListTemplatesCommandError = async (output, context) => {
|
|
@@ -1718,10 +1648,9 @@ const de_ListTemplatesCommandError = async (output, context) => {
|
|
|
1718
1648
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1719
1649
|
default:
|
|
1720
1650
|
const parsedBody = parsedOutput.body;
|
|
1721
|
-
throwDefaultError({
|
|
1651
|
+
return throwDefaultError({
|
|
1722
1652
|
output,
|
|
1723
1653
|
parsedBody,
|
|
1724
|
-
exceptionCtor: __BaseException,
|
|
1725
1654
|
errorCode,
|
|
1726
1655
|
});
|
|
1727
1656
|
}
|
|
@@ -1760,10 +1689,9 @@ const de_PutCaseEventConfigurationCommandError = async (output, context) => {
|
|
|
1760
1689
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1761
1690
|
default:
|
|
1762
1691
|
const parsedBody = parsedOutput.body;
|
|
1763
|
-
throwDefaultError({
|
|
1692
|
+
return throwDefaultError({
|
|
1764
1693
|
output,
|
|
1765
1694
|
parsedBody,
|
|
1766
|
-
exceptionCtor: __BaseException,
|
|
1767
1695
|
errorCode,
|
|
1768
1696
|
});
|
|
1769
1697
|
}
|
|
@@ -1776,12 +1704,11 @@ export const de_SearchCasesCommand = async (output, context) => {
|
|
|
1776
1704
|
$metadata: deserializeMetadata(output),
|
|
1777
1705
|
});
|
|
1778
1706
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
}
|
|
1707
|
+
const doc = take(data, {
|
|
1708
|
+
cases: (_) => de_SearchCasesResponseItemList(_, context),
|
|
1709
|
+
nextToken: __expectString,
|
|
1710
|
+
});
|
|
1711
|
+
Object.assign(contents, doc);
|
|
1785
1712
|
return contents;
|
|
1786
1713
|
};
|
|
1787
1714
|
const de_SearchCasesCommandError = async (output, context) => {
|
|
@@ -1808,10 +1735,9 @@ const de_SearchCasesCommandError = async (output, context) => {
|
|
|
1808
1735
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1809
1736
|
default:
|
|
1810
1737
|
const parsedBody = parsedOutput.body;
|
|
1811
|
-
throwDefaultError({
|
|
1738
|
+
return throwDefaultError({
|
|
1812
1739
|
output,
|
|
1813
1740
|
parsedBody,
|
|
1814
|
-
exceptionCtor: __BaseException,
|
|
1815
1741
|
errorCode,
|
|
1816
1742
|
});
|
|
1817
1743
|
}
|
|
@@ -1824,12 +1750,11 @@ export const de_SearchRelatedItemsCommand = async (output, context) => {
|
|
|
1824
1750
|
$metadata: deserializeMetadata(output),
|
|
1825
1751
|
});
|
|
1826
1752
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
}
|
|
1753
|
+
const doc = take(data, {
|
|
1754
|
+
nextToken: __expectString,
|
|
1755
|
+
relatedItems: (_) => de_SearchRelatedItemsResponseItemList(_, context),
|
|
1756
|
+
});
|
|
1757
|
+
Object.assign(contents, doc);
|
|
1833
1758
|
return contents;
|
|
1834
1759
|
};
|
|
1835
1760
|
const de_SearchRelatedItemsCommandError = async (output, context) => {
|
|
@@ -1856,10 +1781,9 @@ const de_SearchRelatedItemsCommandError = async (output, context) => {
|
|
|
1856
1781
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1857
1782
|
default:
|
|
1858
1783
|
const parsedBody = parsedOutput.body;
|
|
1859
|
-
throwDefaultError({
|
|
1784
|
+
return throwDefaultError({
|
|
1860
1785
|
output,
|
|
1861
1786
|
parsedBody,
|
|
1862
|
-
exceptionCtor: __BaseException,
|
|
1863
1787
|
errorCode,
|
|
1864
1788
|
});
|
|
1865
1789
|
}
|
|
@@ -1898,10 +1822,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1898
1822
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1899
1823
|
default:
|
|
1900
1824
|
const parsedBody = parsedOutput.body;
|
|
1901
|
-
throwDefaultError({
|
|
1825
|
+
return throwDefaultError({
|
|
1902
1826
|
output,
|
|
1903
1827
|
parsedBody,
|
|
1904
|
-
exceptionCtor: __BaseException,
|
|
1905
1828
|
errorCode,
|
|
1906
1829
|
});
|
|
1907
1830
|
}
|
|
@@ -1940,10 +1863,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1940
1863
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1941
1864
|
default:
|
|
1942
1865
|
const parsedBody = parsedOutput.body;
|
|
1943
|
-
throwDefaultError({
|
|
1866
|
+
return throwDefaultError({
|
|
1944
1867
|
output,
|
|
1945
1868
|
parsedBody,
|
|
1946
|
-
exceptionCtor: __BaseException,
|
|
1947
1869
|
errorCode,
|
|
1948
1870
|
});
|
|
1949
1871
|
}
|
|
@@ -1982,10 +1904,9 @@ const de_UpdateCaseCommandError = async (output, context) => {
|
|
|
1982
1904
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1983
1905
|
default:
|
|
1984
1906
|
const parsedBody = parsedOutput.body;
|
|
1985
|
-
throwDefaultError({
|
|
1907
|
+
return throwDefaultError({
|
|
1986
1908
|
output,
|
|
1987
1909
|
parsedBody,
|
|
1988
|
-
exceptionCtor: __BaseException,
|
|
1989
1910
|
errorCode,
|
|
1990
1911
|
});
|
|
1991
1912
|
}
|
|
@@ -2027,10 +1948,9 @@ const de_UpdateFieldCommandError = async (output, context) => {
|
|
|
2027
1948
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2028
1949
|
default:
|
|
2029
1950
|
const parsedBody = parsedOutput.body;
|
|
2030
|
-
throwDefaultError({
|
|
1951
|
+
return throwDefaultError({
|
|
2031
1952
|
output,
|
|
2032
1953
|
parsedBody,
|
|
2033
|
-
exceptionCtor: __BaseException,
|
|
2034
1954
|
errorCode,
|
|
2035
1955
|
});
|
|
2036
1956
|
}
|
|
@@ -2075,10 +1995,9 @@ const de_UpdateLayoutCommandError = async (output, context) => {
|
|
|
2075
1995
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2076
1996
|
default:
|
|
2077
1997
|
const parsedBody = parsedOutput.body;
|
|
2078
|
-
throwDefaultError({
|
|
1998
|
+
return throwDefaultError({
|
|
2079
1999
|
output,
|
|
2080
2000
|
parsedBody,
|
|
2081
|
-
exceptionCtor: __BaseException,
|
|
2082
2001
|
errorCode,
|
|
2083
2002
|
});
|
|
2084
2003
|
}
|
|
@@ -2120,21 +2039,21 @@ const de_UpdateTemplateCommandError = async (output, context) => {
|
|
|
2120
2039
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2121
2040
|
default:
|
|
2122
2041
|
const parsedBody = parsedOutput.body;
|
|
2123
|
-
throwDefaultError({
|
|
2042
|
+
return throwDefaultError({
|
|
2124
2043
|
output,
|
|
2125
2044
|
parsedBody,
|
|
2126
|
-
exceptionCtor: __BaseException,
|
|
2127
2045
|
errorCode,
|
|
2128
2046
|
});
|
|
2129
2047
|
}
|
|
2130
2048
|
};
|
|
2131
|
-
const
|
|
2049
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2132
2050
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2133
2051
|
const contents = map({});
|
|
2134
2052
|
const data = parsedOutput.body;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
}
|
|
2053
|
+
const doc = take(data, {
|
|
2054
|
+
message: __expectString,
|
|
2055
|
+
});
|
|
2056
|
+
Object.assign(contents, doc);
|
|
2138
2057
|
const exception = new AccessDeniedException({
|
|
2139
2058
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2140
2059
|
...contents,
|
|
@@ -2144,9 +2063,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2144
2063
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2145
2064
|
const contents = map({});
|
|
2146
2065
|
const data = parsedOutput.body;
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
}
|
|
2066
|
+
const doc = take(data, {
|
|
2067
|
+
message: __expectString,
|
|
2068
|
+
});
|
|
2069
|
+
Object.assign(contents, doc);
|
|
2150
2070
|
const exception = new ConflictException({
|
|
2151
2071
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2152
2072
|
...contents,
|
|
@@ -2161,9 +2081,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2161
2081
|
],
|
|
2162
2082
|
});
|
|
2163
2083
|
const data = parsedOutput.body;
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
}
|
|
2084
|
+
const doc = take(data, {
|
|
2085
|
+
message: __expectString,
|
|
2086
|
+
});
|
|
2087
|
+
Object.assign(contents, doc);
|
|
2167
2088
|
const exception = new InternalServerException({
|
|
2168
2089
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2169
2090
|
...contents,
|
|
@@ -2173,15 +2094,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2173
2094
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2174
2095
|
const contents = map({});
|
|
2175
2096
|
const data = parsedOutput.body;
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
if (data.resourceType != null) {
|
|
2183
|
-
contents.resourceType = __expectString(data.resourceType);
|
|
2184
|
-
}
|
|
2097
|
+
const doc = take(data, {
|
|
2098
|
+
message: __expectString,
|
|
2099
|
+
resourceId: __expectString,
|
|
2100
|
+
resourceType: __expectString,
|
|
2101
|
+
});
|
|
2102
|
+
Object.assign(contents, doc);
|
|
2185
2103
|
const exception = new ResourceNotFoundException({
|
|
2186
2104
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2187
2105
|
...contents,
|
|
@@ -2191,9 +2109,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2191
2109
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2192
2110
|
const contents = map({});
|
|
2193
2111
|
const data = parsedOutput.body;
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
}
|
|
2112
|
+
const doc = take(data, {
|
|
2113
|
+
message: __expectString,
|
|
2114
|
+
});
|
|
2115
|
+
Object.assign(contents, doc);
|
|
2197
2116
|
const exception = new ServiceQuotaExceededException({
|
|
2198
2117
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2199
2118
|
...contents,
|
|
@@ -2203,9 +2122,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2203
2122
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2204
2123
|
const contents = map({});
|
|
2205
2124
|
const data = parsedOutput.body;
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
}
|
|
2125
|
+
const doc = take(data, {
|
|
2126
|
+
message: __expectString,
|
|
2127
|
+
});
|
|
2128
|
+
Object.assign(contents, doc);
|
|
2209
2129
|
const exception = new ThrottlingException({
|
|
2210
2130
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2211
2131
|
...contents,
|
|
@@ -2215,33 +2135,16 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2215
2135
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2216
2136
|
const contents = map({});
|
|
2217
2137
|
const data = parsedOutput.body;
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
}
|
|
2138
|
+
const doc = take(data, {
|
|
2139
|
+
message: __expectString,
|
|
2140
|
+
});
|
|
2141
|
+
Object.assign(contents, doc);
|
|
2221
2142
|
const exception = new ValidationException({
|
|
2222
2143
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2223
2144
|
...contents,
|
|
2224
2145
|
});
|
|
2225
2146
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2226
2147
|
};
|
|
2227
|
-
const se_BasicLayout = (input, context) => {
|
|
2228
|
-
return {
|
|
2229
|
-
...(input.moreInfo != null && { moreInfo: se_LayoutSections(input.moreInfo, context) }),
|
|
2230
|
-
...(input.topPanel != null && { topPanel: se_LayoutSections(input.topPanel, context) }),
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
|
-
const se_BatchGetFieldIdentifierList = (input, context) => {
|
|
2234
|
-
return input
|
|
2235
|
-
.filter((e) => e != null)
|
|
2236
|
-
.map((entry) => {
|
|
2237
|
-
return se_FieldIdentifier(entry, context);
|
|
2238
|
-
});
|
|
2239
|
-
};
|
|
2240
|
-
const se_CaseEventIncludedData = (input, context) => {
|
|
2241
|
-
return {
|
|
2242
|
-
...(input.fields != null && { fields: se_FieldIdentifierList(input.fields, context) }),
|
|
2243
|
-
};
|
|
2244
|
-
};
|
|
2245
2148
|
const se_CaseFilter = (input, context) => {
|
|
2246
2149
|
return CaseFilter.visit(input, {
|
|
2247
2150
|
andAll: (value) => ({ andAll: se_CaseFilterList(value, context) }),
|
|
@@ -2257,47 +2160,6 @@ const se_CaseFilterList = (input, context) => {
|
|
|
2257
2160
|
return se_CaseFilter(entry, context);
|
|
2258
2161
|
});
|
|
2259
2162
|
};
|
|
2260
|
-
const se_ChannelList = (input, context) => {
|
|
2261
|
-
return input
|
|
2262
|
-
.filter((e) => e != null)
|
|
2263
|
-
.map((entry) => {
|
|
2264
|
-
return entry;
|
|
2265
|
-
});
|
|
2266
|
-
};
|
|
2267
|
-
const se_CommentContent = (input, context) => {
|
|
2268
|
-
return {
|
|
2269
|
-
...(input.body != null && { body: input.body }),
|
|
2270
|
-
...(input.contentType != null && { contentType: input.contentType }),
|
|
2271
|
-
};
|
|
2272
|
-
};
|
|
2273
|
-
const se_CommentFilter = (input, context) => {
|
|
2274
|
-
return {};
|
|
2275
|
-
};
|
|
2276
|
-
const se_Contact = (input, context) => {
|
|
2277
|
-
return {
|
|
2278
|
-
...(input.contactArn != null && { contactArn: input.contactArn }),
|
|
2279
|
-
};
|
|
2280
|
-
};
|
|
2281
|
-
const se_ContactFilter = (input, context) => {
|
|
2282
|
-
return {
|
|
2283
|
-
...(input.channel != null && { channel: se_ChannelList(input.channel, context) }),
|
|
2284
|
-
...(input.contactArn != null && { contactArn: input.contactArn }),
|
|
2285
|
-
};
|
|
2286
|
-
};
|
|
2287
|
-
const se_EventBridgeConfiguration = (input, context) => {
|
|
2288
|
-
return {
|
|
2289
|
-
...(input.enabled != null && { enabled: input.enabled }),
|
|
2290
|
-
...(input.includedData != null && { includedData: se_EventIncludedData(input.includedData, context) }),
|
|
2291
|
-
};
|
|
2292
|
-
};
|
|
2293
|
-
const se_EventIncludedData = (input, context) => {
|
|
2294
|
-
return {
|
|
2295
|
-
...(input.caseData != null && { caseData: se_CaseEventIncludedData(input.caseData, context) }),
|
|
2296
|
-
...(input.relatedItemData != null && {
|
|
2297
|
-
relatedItemData: se_RelatedItemEventIncludedData(input.relatedItemData, context),
|
|
2298
|
-
}),
|
|
2299
|
-
};
|
|
2300
|
-
};
|
|
2301
2163
|
const se_FieldFilter = (input, context) => {
|
|
2302
2164
|
return FieldFilter.visit(input, {
|
|
2303
2165
|
contains: (value) => ({ contains: se_FieldValue(value, context) }),
|
|
@@ -2309,55 +2171,11 @@ const se_FieldFilter = (input, context) => {
|
|
|
2309
2171
|
_: (name, value) => ({ name: value }),
|
|
2310
2172
|
});
|
|
2311
2173
|
};
|
|
2312
|
-
const se_FieldGroup = (input, context) => {
|
|
2313
|
-
return {
|
|
2314
|
-
...(input.fields != null && { fields: se_FieldList(input.fields, context) }),
|
|
2315
|
-
...(input.name != null && { name: input.name }),
|
|
2316
|
-
};
|
|
2317
|
-
};
|
|
2318
|
-
const se_FieldIdentifier = (input, context) => {
|
|
2319
|
-
return {
|
|
2320
|
-
...(input.id != null && { id: input.id }),
|
|
2321
|
-
};
|
|
2322
|
-
};
|
|
2323
|
-
const se_FieldIdentifierList = (input, context) => {
|
|
2324
|
-
return input
|
|
2325
|
-
.filter((e) => e != null)
|
|
2326
|
-
.map((entry) => {
|
|
2327
|
-
return se_FieldIdentifier(entry, context);
|
|
2328
|
-
});
|
|
2329
|
-
};
|
|
2330
|
-
const se_FieldItem = (input, context) => {
|
|
2331
|
-
return {
|
|
2332
|
-
...(input.id != null && { id: input.id }),
|
|
2333
|
-
};
|
|
2334
|
-
};
|
|
2335
|
-
const se_FieldList = (input, context) => {
|
|
2336
|
-
return input
|
|
2337
|
-
.filter((e) => e != null)
|
|
2338
|
-
.map((entry) => {
|
|
2339
|
-
return se_FieldItem(entry, context);
|
|
2340
|
-
});
|
|
2341
|
-
};
|
|
2342
|
-
const se_FieldOption = (input, context) => {
|
|
2343
|
-
return {
|
|
2344
|
-
...(input.active != null && { active: input.active }),
|
|
2345
|
-
...(input.name != null && { name: input.name }),
|
|
2346
|
-
...(input.value != null && { value: input.value }),
|
|
2347
|
-
};
|
|
2348
|
-
};
|
|
2349
|
-
const se_FieldOptionsList = (input, context) => {
|
|
2350
|
-
return input
|
|
2351
|
-
.filter((e) => e != null)
|
|
2352
|
-
.map((entry) => {
|
|
2353
|
-
return se_FieldOption(entry, context);
|
|
2354
|
-
});
|
|
2355
|
-
};
|
|
2356
2174
|
const se_FieldValue = (input, context) => {
|
|
2357
|
-
return {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
};
|
|
2175
|
+
return take(input, {
|
|
2176
|
+
id: [],
|
|
2177
|
+
value: (_) => se_FieldValueUnion(_, context),
|
|
2178
|
+
});
|
|
2361
2179
|
};
|
|
2362
2180
|
const se_FieldValueList = (input, context) => {
|
|
2363
2181
|
return input
|
|
@@ -2374,86 +2192,6 @@ const se_FieldValueUnion = (input, context) => {
|
|
|
2374
2192
|
_: (name, value) => ({ name: value }),
|
|
2375
2193
|
});
|
|
2376
2194
|
};
|
|
2377
|
-
const se_LayoutConfiguration = (input, context) => {
|
|
2378
|
-
return {
|
|
2379
|
-
...(input.defaultLayout != null && { defaultLayout: input.defaultLayout }),
|
|
2380
|
-
};
|
|
2381
|
-
};
|
|
2382
|
-
const se_LayoutContent = (input, context) => {
|
|
2383
|
-
return LayoutContent.visit(input, {
|
|
2384
|
-
basic: (value) => ({ basic: se_BasicLayout(value, context) }),
|
|
2385
|
-
_: (name, value) => ({ name: value }),
|
|
2386
|
-
});
|
|
2387
|
-
};
|
|
2388
|
-
const se_LayoutSections = (input, context) => {
|
|
2389
|
-
return {
|
|
2390
|
-
...(input.sections != null && { sections: se_SectionsList(input.sections, context) }),
|
|
2391
|
-
};
|
|
2392
|
-
};
|
|
2393
|
-
const se_RelatedItemEventIncludedData = (input, context) => {
|
|
2394
|
-
return {
|
|
2395
|
-
...(input.includeContent != null && { includeContent: input.includeContent }),
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
const se_RelatedItemFilterList = (input, context) => {
|
|
2399
|
-
return input
|
|
2400
|
-
.filter((e) => e != null)
|
|
2401
|
-
.map((entry) => {
|
|
2402
|
-
return se_RelatedItemTypeFilter(entry, context);
|
|
2403
|
-
});
|
|
2404
|
-
};
|
|
2405
|
-
const se_RelatedItemInputContent = (input, context) => {
|
|
2406
|
-
return RelatedItemInputContent.visit(input, {
|
|
2407
|
-
comment: (value) => ({ comment: se_CommentContent(value, context) }),
|
|
2408
|
-
contact: (value) => ({ contact: se_Contact(value, context) }),
|
|
2409
|
-
_: (name, value) => ({ name: value }),
|
|
2410
|
-
});
|
|
2411
|
-
};
|
|
2412
|
-
const se_RelatedItemTypeFilter = (input, context) => {
|
|
2413
|
-
return RelatedItemTypeFilter.visit(input, {
|
|
2414
|
-
comment: (value) => ({ comment: se_CommentFilter(value, context) }),
|
|
2415
|
-
contact: (value) => ({ contact: se_ContactFilter(value, context) }),
|
|
2416
|
-
_: (name, value) => ({ name: value }),
|
|
2417
|
-
});
|
|
2418
|
-
};
|
|
2419
|
-
const se_RequiredField = (input, context) => {
|
|
2420
|
-
return {
|
|
2421
|
-
...(input.fieldId != null && { fieldId: input.fieldId }),
|
|
2422
|
-
};
|
|
2423
|
-
};
|
|
2424
|
-
const se_RequiredFieldList = (input, context) => {
|
|
2425
|
-
return input
|
|
2426
|
-
.filter((e) => e != null)
|
|
2427
|
-
.map((entry) => {
|
|
2428
|
-
return se_RequiredField(entry, context);
|
|
2429
|
-
});
|
|
2430
|
-
};
|
|
2431
|
-
const se_Section = (input, context) => {
|
|
2432
|
-
return Section.visit(input, {
|
|
2433
|
-
fieldGroup: (value) => ({ fieldGroup: se_FieldGroup(value, context) }),
|
|
2434
|
-
_: (name, value) => ({ name: value }),
|
|
2435
|
-
});
|
|
2436
|
-
};
|
|
2437
|
-
const se_SectionsList = (input, context) => {
|
|
2438
|
-
return input
|
|
2439
|
-
.filter((e) => e != null)
|
|
2440
|
-
.map((entry) => {
|
|
2441
|
-
return se_Section(entry, context);
|
|
2442
|
-
});
|
|
2443
|
-
};
|
|
2444
|
-
const se_Sort = (input, context) => {
|
|
2445
|
-
return {
|
|
2446
|
-
...(input.fieldId != null && { fieldId: input.fieldId }),
|
|
2447
|
-
...(input.sortOrder != null && { sortOrder: input.sortOrder }),
|
|
2448
|
-
};
|
|
2449
|
-
};
|
|
2450
|
-
const se_SortList = (input, context) => {
|
|
2451
|
-
return input
|
|
2452
|
-
.filter((e) => e != null)
|
|
2453
|
-
.map((entry) => {
|
|
2454
|
-
return se_Sort(entry, context);
|
|
2455
|
-
});
|
|
2456
|
-
};
|
|
2457
2195
|
const se_Tags = (input, context) => {
|
|
2458
2196
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2459
2197
|
if (value === null) {
|
|
@@ -2464,215 +2202,31 @@ const se_Tags = (input, context) => {
|
|
|
2464
2202
|
return acc;
|
|
2465
2203
|
}, {});
|
|
2466
2204
|
};
|
|
2467
|
-
const de_BasicLayout = (output, context) => {
|
|
2468
|
-
return {
|
|
2469
|
-
moreInfo: output.moreInfo != null ? de_LayoutSections(output.moreInfo, context) : undefined,
|
|
2470
|
-
topPanel: output.topPanel != null ? de_LayoutSections(output.topPanel, context) : undefined,
|
|
2471
|
-
};
|
|
2472
|
-
};
|
|
2473
|
-
const de_BatchGetFieldErrorList = (output, context) => {
|
|
2474
|
-
const retVal = (output || [])
|
|
2475
|
-
.filter((e) => e != null)
|
|
2476
|
-
.map((entry) => {
|
|
2477
|
-
if (entry === null) {
|
|
2478
|
-
return null;
|
|
2479
|
-
}
|
|
2480
|
-
return de_FieldError(entry, context);
|
|
2481
|
-
});
|
|
2482
|
-
return retVal;
|
|
2483
|
-
};
|
|
2484
2205
|
const de_BatchGetFieldList = (output, context) => {
|
|
2485
2206
|
const retVal = (output || [])
|
|
2486
2207
|
.filter((e) => e != null)
|
|
2487
2208
|
.map((entry) => {
|
|
2488
|
-
if (entry === null) {
|
|
2489
|
-
return null;
|
|
2490
|
-
}
|
|
2491
2209
|
return de_GetFieldResponse(entry, context);
|
|
2492
2210
|
});
|
|
2493
2211
|
return retVal;
|
|
2494
2212
|
};
|
|
2495
|
-
const de_CaseEventIncludedData = (output, context) => {
|
|
2496
|
-
return {
|
|
2497
|
-
fields: output.fields != null ? de_FieldIdentifierList(output.fields, context) : undefined,
|
|
2498
|
-
};
|
|
2499
|
-
};
|
|
2500
|
-
const de_CaseSummary = (output, context) => {
|
|
2501
|
-
return {
|
|
2502
|
-
caseId: __expectString(output.caseId),
|
|
2503
|
-
templateId: __expectString(output.templateId),
|
|
2504
|
-
};
|
|
2505
|
-
};
|
|
2506
|
-
const de_CaseSummaryList = (output, context) => {
|
|
2507
|
-
const retVal = (output || [])
|
|
2508
|
-
.filter((e) => e != null)
|
|
2509
|
-
.map((entry) => {
|
|
2510
|
-
if (entry === null) {
|
|
2511
|
-
return null;
|
|
2512
|
-
}
|
|
2513
|
-
return de_CaseSummary(entry, context);
|
|
2514
|
-
});
|
|
2515
|
-
return retVal;
|
|
2516
|
-
};
|
|
2517
|
-
const de_CommentContent = (output, context) => {
|
|
2518
|
-
return {
|
|
2519
|
-
body: __expectString(output.body),
|
|
2520
|
-
contentType: __expectString(output.contentType),
|
|
2521
|
-
};
|
|
2522
|
-
};
|
|
2523
2213
|
const de_ContactContent = (output, context) => {
|
|
2524
|
-
return {
|
|
2525
|
-
channel: __expectString
|
|
2526
|
-
connectedToSystemTime:
|
|
2527
|
-
|
|
2528
|
-
: undefined,
|
|
2529
|
-
contactArn: __expectString(output.contactArn),
|
|
2530
|
-
};
|
|
2531
|
-
};
|
|
2532
|
-
const de_DomainSummary = (output, context) => {
|
|
2533
|
-
return {
|
|
2534
|
-
domainArn: __expectString(output.domainArn),
|
|
2535
|
-
domainId: __expectString(output.domainId),
|
|
2536
|
-
name: __expectString(output.name),
|
|
2537
|
-
};
|
|
2538
|
-
};
|
|
2539
|
-
const de_DomainSummaryList = (output, context) => {
|
|
2540
|
-
const retVal = (output || [])
|
|
2541
|
-
.filter((e) => e != null)
|
|
2542
|
-
.map((entry) => {
|
|
2543
|
-
if (entry === null) {
|
|
2544
|
-
return null;
|
|
2545
|
-
}
|
|
2546
|
-
return de_DomainSummary(entry, context);
|
|
2547
|
-
});
|
|
2548
|
-
return retVal;
|
|
2549
|
-
};
|
|
2550
|
-
const de_EventBridgeConfiguration = (output, context) => {
|
|
2551
|
-
return {
|
|
2552
|
-
enabled: __expectBoolean(output.enabled),
|
|
2553
|
-
includedData: output.includedData != null ? de_EventIncludedData(output.includedData, context) : undefined,
|
|
2554
|
-
};
|
|
2555
|
-
};
|
|
2556
|
-
const de_EventIncludedData = (output, context) => {
|
|
2557
|
-
return {
|
|
2558
|
-
caseData: output.caseData != null ? de_CaseEventIncludedData(output.caseData, context) : undefined,
|
|
2559
|
-
relatedItemData: output.relatedItemData != null ? de_RelatedItemEventIncludedData(output.relatedItemData, context) : undefined,
|
|
2560
|
-
};
|
|
2561
|
-
};
|
|
2562
|
-
const de_FieldError = (output, context) => {
|
|
2563
|
-
return {
|
|
2564
|
-
errorCode: __expectString(output.errorCode),
|
|
2565
|
-
id: __expectString(output.id),
|
|
2566
|
-
message: __expectString(output.message),
|
|
2567
|
-
};
|
|
2568
|
-
};
|
|
2569
|
-
const de_FieldGroup = (output, context) => {
|
|
2570
|
-
return {
|
|
2571
|
-
fields: output.fields != null ? de_FieldList(output.fields, context) : undefined,
|
|
2572
|
-
name: __expectString(output.name),
|
|
2573
|
-
};
|
|
2574
|
-
};
|
|
2575
|
-
const de_FieldIdentifier = (output, context) => {
|
|
2576
|
-
return {
|
|
2577
|
-
id: __expectString(output.id),
|
|
2578
|
-
};
|
|
2579
|
-
};
|
|
2580
|
-
const de_FieldIdentifierList = (output, context) => {
|
|
2581
|
-
const retVal = (output || [])
|
|
2582
|
-
.filter((e) => e != null)
|
|
2583
|
-
.map((entry) => {
|
|
2584
|
-
if (entry === null) {
|
|
2585
|
-
return null;
|
|
2586
|
-
}
|
|
2587
|
-
return de_FieldIdentifier(entry, context);
|
|
2588
|
-
});
|
|
2589
|
-
return retVal;
|
|
2590
|
-
};
|
|
2591
|
-
const de_FieldItem = (output, context) => {
|
|
2592
|
-
return {
|
|
2593
|
-
id: __expectString(output.id),
|
|
2594
|
-
};
|
|
2595
|
-
};
|
|
2596
|
-
const de_FieldList = (output, context) => {
|
|
2597
|
-
const retVal = (output || [])
|
|
2598
|
-
.filter((e) => e != null)
|
|
2599
|
-
.map((entry) => {
|
|
2600
|
-
if (entry === null) {
|
|
2601
|
-
return null;
|
|
2602
|
-
}
|
|
2603
|
-
return de_FieldItem(entry, context);
|
|
2604
|
-
});
|
|
2605
|
-
return retVal;
|
|
2606
|
-
};
|
|
2607
|
-
const de_FieldOption = (output, context) => {
|
|
2608
|
-
return {
|
|
2609
|
-
active: __expectBoolean(output.active),
|
|
2610
|
-
name: __expectString(output.name),
|
|
2611
|
-
value: __expectString(output.value),
|
|
2612
|
-
};
|
|
2613
|
-
};
|
|
2614
|
-
const de_FieldOptionError = (output, context) => {
|
|
2615
|
-
return {
|
|
2616
|
-
errorCode: __expectString(output.errorCode),
|
|
2617
|
-
message: __expectString(output.message),
|
|
2618
|
-
value: __expectString(output.value),
|
|
2619
|
-
};
|
|
2620
|
-
};
|
|
2621
|
-
const de_FieldOptionErrorList = (output, context) => {
|
|
2622
|
-
const retVal = (output || [])
|
|
2623
|
-
.filter((e) => e != null)
|
|
2624
|
-
.map((entry) => {
|
|
2625
|
-
if (entry === null) {
|
|
2626
|
-
return null;
|
|
2627
|
-
}
|
|
2628
|
-
return de_FieldOptionError(entry, context);
|
|
2629
|
-
});
|
|
2630
|
-
return retVal;
|
|
2631
|
-
};
|
|
2632
|
-
const de_FieldOptionsList = (output, context) => {
|
|
2633
|
-
const retVal = (output || [])
|
|
2634
|
-
.filter((e) => e != null)
|
|
2635
|
-
.map((entry) => {
|
|
2636
|
-
if (entry === null) {
|
|
2637
|
-
return null;
|
|
2638
|
-
}
|
|
2639
|
-
return de_FieldOption(entry, context);
|
|
2214
|
+
return take(output, {
|
|
2215
|
+
channel: __expectString,
|
|
2216
|
+
connectedToSystemTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2217
|
+
contactArn: __expectString,
|
|
2640
2218
|
});
|
|
2641
|
-
return retVal;
|
|
2642
|
-
};
|
|
2643
|
-
const de_FieldSummary = (output, context) => {
|
|
2644
|
-
return {
|
|
2645
|
-
fieldArn: __expectString(output.fieldArn),
|
|
2646
|
-
fieldId: __expectString(output.fieldId),
|
|
2647
|
-
name: __expectString(output.name),
|
|
2648
|
-
namespace: __expectString(output.namespace),
|
|
2649
|
-
type: __expectString(output.type),
|
|
2650
|
-
};
|
|
2651
|
-
};
|
|
2652
|
-
const de_FieldSummaryList = (output, context) => {
|
|
2653
|
-
const retVal = (output || [])
|
|
2654
|
-
.filter((e) => e != null)
|
|
2655
|
-
.map((entry) => {
|
|
2656
|
-
if (entry === null) {
|
|
2657
|
-
return null;
|
|
2658
|
-
}
|
|
2659
|
-
return de_FieldSummary(entry, context);
|
|
2660
|
-
});
|
|
2661
|
-
return retVal;
|
|
2662
2219
|
};
|
|
2663
2220
|
const de_FieldValue = (output, context) => {
|
|
2664
|
-
return {
|
|
2665
|
-
id: __expectString
|
|
2666
|
-
value:
|
|
2667
|
-
};
|
|
2221
|
+
return take(output, {
|
|
2222
|
+
id: __expectString,
|
|
2223
|
+
value: (_) => de_FieldValueUnion(__expectUnion(_), context),
|
|
2224
|
+
});
|
|
2668
2225
|
};
|
|
2669
2226
|
const de_FieldValueList = (output, context) => {
|
|
2670
2227
|
const retVal = (output || [])
|
|
2671
2228
|
.filter((e) => e != null)
|
|
2672
2229
|
.map((entry) => {
|
|
2673
|
-
if (entry === null) {
|
|
2674
|
-
return null;
|
|
2675
|
-
}
|
|
2676
2230
|
return de_FieldValue(entry, context);
|
|
2677
2231
|
});
|
|
2678
2232
|
return retVal;
|
|
@@ -2690,56 +2244,20 @@ const de_FieldValueUnion = (output, context) => {
|
|
|
2690
2244
|
return { $unknown: Object.entries(output)[0] };
|
|
2691
2245
|
};
|
|
2692
2246
|
const de_GetFieldResponse = (output, context) => {
|
|
2693
|
-
return {
|
|
2694
|
-
description: __expectString
|
|
2695
|
-
fieldArn: __expectString
|
|
2696
|
-
fieldId: __expectString
|
|
2697
|
-
name: __expectString
|
|
2698
|
-
namespace: __expectString
|
|
2699
|
-
tags:
|
|
2700
|
-
type: __expectString
|
|
2701
|
-
};
|
|
2702
|
-
};
|
|
2703
|
-
const de_LayoutConfiguration = (output, context) => {
|
|
2704
|
-
return {
|
|
2705
|
-
defaultLayout: __expectString(output.defaultLayout),
|
|
2706
|
-
};
|
|
2707
|
-
};
|
|
2708
|
-
const de_LayoutContent = (output, context) => {
|
|
2709
|
-
if (output.basic != null) {
|
|
2710
|
-
return {
|
|
2711
|
-
basic: de_BasicLayout(output.basic, context),
|
|
2712
|
-
};
|
|
2713
|
-
}
|
|
2714
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2715
|
-
};
|
|
2716
|
-
const de_LayoutSections = (output, context) => {
|
|
2717
|
-
return {
|
|
2718
|
-
sections: output.sections != null ? de_SectionsList(output.sections, context) : undefined,
|
|
2719
|
-
};
|
|
2720
|
-
};
|
|
2721
|
-
const de_LayoutSummary = (output, context) => {
|
|
2722
|
-
return {
|
|
2723
|
-
layoutArn: __expectString(output.layoutArn),
|
|
2724
|
-
layoutId: __expectString(output.layoutId),
|
|
2725
|
-
name: __expectString(output.name),
|
|
2726
|
-
};
|
|
2727
|
-
};
|
|
2728
|
-
const de_LayoutSummaryList = (output, context) => {
|
|
2729
|
-
const retVal = (output || [])
|
|
2730
|
-
.filter((e) => e != null)
|
|
2731
|
-
.map((entry) => {
|
|
2732
|
-
if (entry === null) {
|
|
2733
|
-
return null;
|
|
2734
|
-
}
|
|
2735
|
-
return de_LayoutSummary(entry, context);
|
|
2247
|
+
return take(output, {
|
|
2248
|
+
description: __expectString,
|
|
2249
|
+
fieldArn: __expectString,
|
|
2250
|
+
fieldId: __expectString,
|
|
2251
|
+
name: __expectString,
|
|
2252
|
+
namespace: __expectString,
|
|
2253
|
+
tags: (_) => de_Tags(_, context),
|
|
2254
|
+
type: __expectString,
|
|
2736
2255
|
});
|
|
2737
|
-
return retVal;
|
|
2738
2256
|
};
|
|
2739
2257
|
const de_RelatedItemContent = (output, context) => {
|
|
2740
2258
|
if (output.comment != null) {
|
|
2741
2259
|
return {
|
|
2742
|
-
comment:
|
|
2260
|
+
comment: _json(output.comment),
|
|
2743
2261
|
};
|
|
2744
2262
|
}
|
|
2745
2263
|
if (output.contact != null) {
|
|
@@ -2749,34 +2267,13 @@ const de_RelatedItemContent = (output, context) => {
|
|
|
2749
2267
|
}
|
|
2750
2268
|
return { $unknown: Object.entries(output)[0] };
|
|
2751
2269
|
};
|
|
2752
|
-
const de_RelatedItemEventIncludedData = (output, context) => {
|
|
2753
|
-
return {
|
|
2754
|
-
includeContent: __expectBoolean(output.includeContent),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
|
-
const de_RequiredField = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
fieldId: __expectString(output.fieldId),
|
|
2760
|
-
};
|
|
2761
|
-
};
|
|
2762
|
-
const de_RequiredFieldList = (output, context) => {
|
|
2763
|
-
const retVal = (output || [])
|
|
2764
|
-
.filter((e) => e != null)
|
|
2765
|
-
.map((entry) => {
|
|
2766
|
-
if (entry === null) {
|
|
2767
|
-
return null;
|
|
2768
|
-
}
|
|
2769
|
-
return de_RequiredField(entry, context);
|
|
2770
|
-
});
|
|
2771
|
-
return retVal;
|
|
2772
|
-
};
|
|
2773
2270
|
const de_SearchCasesResponseItem = (output, context) => {
|
|
2774
|
-
return {
|
|
2775
|
-
caseId: __expectString
|
|
2776
|
-
fields:
|
|
2777
|
-
tags:
|
|
2778
|
-
templateId: __expectString
|
|
2779
|
-
};
|
|
2271
|
+
return take(output, {
|
|
2272
|
+
caseId: __expectString,
|
|
2273
|
+
fields: (_) => de_FieldValueList(_, context),
|
|
2274
|
+
tags: (_) => de_Tags(_, context),
|
|
2275
|
+
templateId: __expectString,
|
|
2276
|
+
});
|
|
2780
2277
|
};
|
|
2781
2278
|
const de_SearchCasesResponseItemList = (output, context) => {
|
|
2782
2279
|
const retVal = (output || []).map((entry) => {
|
|
@@ -2788,15 +2285,13 @@ const de_SearchCasesResponseItemList = (output, context) => {
|
|
|
2788
2285
|
return retVal;
|
|
2789
2286
|
};
|
|
2790
2287
|
const de_SearchRelatedItemsResponseItem = (output, context) => {
|
|
2791
|
-
return {
|
|
2792
|
-
associationTime:
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
type: __expectString(output.type),
|
|
2799
|
-
};
|
|
2288
|
+
return take(output, {
|
|
2289
|
+
associationTime: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
2290
|
+
content: (_) => de_RelatedItemContent(__expectUnion(_), context),
|
|
2291
|
+
relatedItemId: __expectString,
|
|
2292
|
+
tags: (_) => de_Tags(_, context),
|
|
2293
|
+
type: __expectString,
|
|
2294
|
+
});
|
|
2800
2295
|
};
|
|
2801
2296
|
const de_SearchRelatedItemsResponseItemList = (output, context) => {
|
|
2802
2297
|
const retVal = (output || []).map((entry) => {
|
|
@@ -2807,25 +2302,6 @@ const de_SearchRelatedItemsResponseItemList = (output, context) => {
|
|
|
2807
2302
|
});
|
|
2808
2303
|
return retVal;
|
|
2809
2304
|
};
|
|
2810
|
-
const de_Section = (output, context) => {
|
|
2811
|
-
if (output.fieldGroup != null) {
|
|
2812
|
-
return {
|
|
2813
|
-
fieldGroup: de_FieldGroup(output.fieldGroup, context),
|
|
2814
|
-
};
|
|
2815
|
-
}
|
|
2816
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2817
|
-
};
|
|
2818
|
-
const de_SectionsList = (output, context) => {
|
|
2819
|
-
const retVal = (output || [])
|
|
2820
|
-
.filter((e) => e != null)
|
|
2821
|
-
.map((entry) => {
|
|
2822
|
-
if (entry === null) {
|
|
2823
|
-
return null;
|
|
2824
|
-
}
|
|
2825
|
-
return de_Section(__expectUnion(entry), context);
|
|
2826
|
-
});
|
|
2827
|
-
return retVal;
|
|
2828
|
-
};
|
|
2829
2305
|
const de_Tags = (output, context) => {
|
|
2830
2306
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2831
2307
|
if (value === null) {
|
|
@@ -2836,25 +2312,6 @@ const de_Tags = (output, context) => {
|
|
|
2836
2312
|
return acc;
|
|
2837
2313
|
}, {});
|
|
2838
2314
|
};
|
|
2839
|
-
const de_TemplateSummary = (output, context) => {
|
|
2840
|
-
return {
|
|
2841
|
-
name: __expectString(output.name),
|
|
2842
|
-
status: __expectString(output.status),
|
|
2843
|
-
templateArn: __expectString(output.templateArn),
|
|
2844
|
-
templateId: __expectString(output.templateId),
|
|
2845
|
-
};
|
|
2846
|
-
};
|
|
2847
|
-
const de_TemplateSummaryList = (output, context) => {
|
|
2848
|
-
const retVal = (output || [])
|
|
2849
|
-
.filter((e) => e != null)
|
|
2850
|
-
.map((entry) => {
|
|
2851
|
-
if (entry === null) {
|
|
2852
|
-
return null;
|
|
2853
|
-
}
|
|
2854
|
-
return de_TemplateSummary(entry, context);
|
|
2855
|
-
});
|
|
2856
|
-
return retVal;
|
|
2857
|
-
};
|
|
2858
2315
|
const deserializeMetadata = (output) => ({
|
|
2859
2316
|
httpStatusCode: output.statusCode,
|
|
2860
2317
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|