@aws-sdk/client-iottwinmaker 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 +652 -1355
- package/dist-es/protocols/Aws_restJson1.js +606 -1309
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { IoTTwinMakerServiceException as __BaseException } from "../models/IoTTwinMakerServiceException";
|
|
4
|
-
import { AccessDeniedException, ConflictException, ConnectorFailureException, ConnectorTimeoutException, InternalServerException,
|
|
4
|
+
import { AccessDeniedException, ConflictException, ConnectorFailureException, ConnectorTimeoutException, InternalServerException, QueryTimeoutException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_BatchPutPropertyValuesCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
@@ -11,9 +11,9 @@ export const se_BatchPutPropertyValuesCommand = async (input, context) => {
|
|
|
11
11
|
"/workspaces/{workspaceId}/entity-properties";
|
|
12
12
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify({
|
|
15
|
-
|
|
16
|
-
});
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
entries: (_) => se_Entries(_, context),
|
|
16
|
+
}));
|
|
17
17
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
18
18
|
if (context.disableHostPrefix !== true) {
|
|
19
19
|
resolvedHostname = "data." + resolvedHostname;
|
|
@@ -41,18 +41,16 @@ export const se_CreateComponentTypeCommand = async (input, context) => {
|
|
|
41
41
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
42
42
|
resolvedPath = __resolvedPath(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify({
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
55
|
-
});
|
|
44
|
+
body = JSON.stringify(take(input, {
|
|
45
|
+
componentTypeName: [],
|
|
46
|
+
description: [],
|
|
47
|
+
extendsFrom: (_) => _json(_),
|
|
48
|
+
functions: (_) => _json(_),
|
|
49
|
+
isSingleton: [],
|
|
50
|
+
propertyDefinitions: (_) => se_PropertyDefinitionsRequest(_, context),
|
|
51
|
+
propertyGroups: (_) => _json(_),
|
|
52
|
+
tags: (_) => _json(_),
|
|
53
|
+
}));
|
|
56
54
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
57
55
|
if (context.disableHostPrefix !== true) {
|
|
58
56
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -78,14 +76,14 @@ export const se_CreateEntityCommand = async (input, context) => {
|
|
|
78
76
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/entities";
|
|
79
77
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
80
78
|
let body;
|
|
81
|
-
body = JSON.stringify({
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
});
|
|
79
|
+
body = JSON.stringify(take(input, {
|
|
80
|
+
components: (_) => se_ComponentsMapRequest(_, context),
|
|
81
|
+
description: [],
|
|
82
|
+
entityId: [],
|
|
83
|
+
entityName: [],
|
|
84
|
+
parentEntityId: [],
|
|
85
|
+
tags: (_) => _json(_),
|
|
86
|
+
}));
|
|
89
87
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
90
88
|
if (context.disableHostPrefix !== true) {
|
|
91
89
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -111,14 +109,14 @@ export const se_CreateSceneCommand = async (input, context) => {
|
|
|
111
109
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/scenes";
|
|
112
110
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
113
111
|
let body;
|
|
114
|
-
body = JSON.stringify({
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
});
|
|
112
|
+
body = JSON.stringify(take(input, {
|
|
113
|
+
capabilities: (_) => _json(_),
|
|
114
|
+
contentLocation: [],
|
|
115
|
+
description: [],
|
|
116
|
+
sceneId: [],
|
|
117
|
+
sceneMetadata: (_) => _json(_),
|
|
118
|
+
tags: (_) => _json(_),
|
|
119
|
+
}));
|
|
122
120
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
123
121
|
if (context.disableHostPrefix !== true) {
|
|
124
122
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -146,10 +144,10 @@ export const se_CreateSyncJobCommand = async (input, context) => {
|
|
|
146
144
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
147
145
|
resolvedPath = __resolvedPath(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
|
|
148
146
|
let body;
|
|
149
|
-
body = JSON.stringify({
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
});
|
|
147
|
+
body = JSON.stringify(take(input, {
|
|
148
|
+
syncRole: [],
|
|
149
|
+
tags: (_) => _json(_),
|
|
150
|
+
}));
|
|
153
151
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
154
152
|
if (context.disableHostPrefix !== true) {
|
|
155
153
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -175,12 +173,12 @@ export const se_CreateWorkspaceCommand = async (input, context) => {
|
|
|
175
173
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
176
174
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
177
175
|
let body;
|
|
178
|
-
body = JSON.stringify({
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
});
|
|
176
|
+
body = JSON.stringify(take(input, {
|
|
177
|
+
description: [],
|
|
178
|
+
role: [],
|
|
179
|
+
s3Location: [],
|
|
180
|
+
tags: (_) => _json(_),
|
|
181
|
+
}));
|
|
184
182
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
185
183
|
if (context.disableHostPrefix !== true) {
|
|
186
184
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -332,12 +330,12 @@ export const se_ExecuteQueryCommand = async (input, context) => {
|
|
|
332
330
|
};
|
|
333
331
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/queries/execution";
|
|
334
332
|
let body;
|
|
335
|
-
body = JSON.stringify({
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
});
|
|
333
|
+
body = JSON.stringify(take(input, {
|
|
334
|
+
maxResults: [],
|
|
335
|
+
nextToken: [],
|
|
336
|
+
queryStatement: [],
|
|
337
|
+
workspaceId: [],
|
|
338
|
+
}));
|
|
341
339
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
342
340
|
if (context.disableHostPrefix !== true) {
|
|
343
341
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -439,20 +437,16 @@ export const se_GetPropertyValueCommand = async (input, context) => {
|
|
|
439
437
|
"/workspaces/{workspaceId}/entity-properties/value";
|
|
440
438
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
441
439
|
let body;
|
|
442
|
-
body = JSON.stringify({
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
...(input.tabularConditions != null && {
|
|
453
|
-
tabularConditions: se_TabularConditions(input.tabularConditions, context),
|
|
454
|
-
}),
|
|
455
|
-
});
|
|
440
|
+
body = JSON.stringify(take(input, {
|
|
441
|
+
componentName: [],
|
|
442
|
+
componentTypeId: [],
|
|
443
|
+
entityId: [],
|
|
444
|
+
maxResults: [],
|
|
445
|
+
nextToken: [],
|
|
446
|
+
propertyGroupName: [],
|
|
447
|
+
selectedProperties: (_) => _json(_),
|
|
448
|
+
tabularConditions: (_) => se_TabularConditions(_, context),
|
|
449
|
+
}));
|
|
456
450
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
457
451
|
if (context.disableHostPrefix !== true) {
|
|
458
452
|
resolvedHostname = "data." + resolvedHostname;
|
|
@@ -479,23 +473,21 @@ export const se_GetPropertyValueHistoryCommand = async (input, context) => {
|
|
|
479
473
|
"/workspaces/{workspaceId}/entity-properties/history";
|
|
480
474
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
481
475
|
let body;
|
|
482
|
-
body = JSON.stringify({
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
...(input.startTime != null && { startTime: input.startTime }),
|
|
498
|
-
});
|
|
476
|
+
body = JSON.stringify(take(input, {
|
|
477
|
+
componentName: [],
|
|
478
|
+
componentTypeId: [],
|
|
479
|
+
endDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
480
|
+
endTime: [],
|
|
481
|
+
entityId: [],
|
|
482
|
+
interpolation: (_) => _json(_),
|
|
483
|
+
maxResults: [],
|
|
484
|
+
nextToken: [],
|
|
485
|
+
orderByTime: [],
|
|
486
|
+
propertyFilters: (_) => se_PropertyFilters(_, context),
|
|
487
|
+
selectedProperties: (_) => _json(_),
|
|
488
|
+
startDateTime: (_) => Math.round(_.getTime() / 1000),
|
|
489
|
+
startTime: [],
|
|
490
|
+
}));
|
|
499
491
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
500
492
|
if (context.disableHostPrefix !== true) {
|
|
501
493
|
resolvedHostname = "data." + resolvedHostname;
|
|
@@ -597,11 +589,11 @@ export const se_ListComponentTypesCommand = async (input, context) => {
|
|
|
597
589
|
"/workspaces/{workspaceId}/component-types-list";
|
|
598
590
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
599
591
|
let body;
|
|
600
|
-
body = JSON.stringify({
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
});
|
|
592
|
+
body = JSON.stringify(take(input, {
|
|
593
|
+
filters: (_) => _json(_),
|
|
594
|
+
maxResults: [],
|
|
595
|
+
nextToken: [],
|
|
596
|
+
}));
|
|
605
597
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
606
598
|
if (context.disableHostPrefix !== true) {
|
|
607
599
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -627,11 +619,11 @@ export const se_ListEntitiesCommand = async (input, context) => {
|
|
|
627
619
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/entities-list";
|
|
628
620
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
629
621
|
let body;
|
|
630
|
-
body = JSON.stringify({
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
});
|
|
622
|
+
body = JSON.stringify(take(input, {
|
|
623
|
+
filters: (_) => _json(_),
|
|
624
|
+
maxResults: [],
|
|
625
|
+
nextToken: [],
|
|
626
|
+
}));
|
|
635
627
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
636
628
|
if (context.disableHostPrefix !== true) {
|
|
637
629
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -657,10 +649,10 @@ export const se_ListScenesCommand = async (input, context) => {
|
|
|
657
649
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/scenes-list";
|
|
658
650
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
659
651
|
let body;
|
|
660
|
-
body = JSON.stringify({
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
});
|
|
652
|
+
body = JSON.stringify(take(input, {
|
|
653
|
+
maxResults: [],
|
|
654
|
+
nextToken: [],
|
|
655
|
+
}));
|
|
664
656
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
665
657
|
if (context.disableHostPrefix !== true) {
|
|
666
658
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -686,10 +678,10 @@ export const se_ListSyncJobsCommand = async (input, context) => {
|
|
|
686
678
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}/sync-jobs-list";
|
|
687
679
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
688
680
|
let body;
|
|
689
|
-
body = JSON.stringify({
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
});
|
|
681
|
+
body = JSON.stringify(take(input, {
|
|
682
|
+
maxResults: [],
|
|
683
|
+
nextToken: [],
|
|
684
|
+
}));
|
|
693
685
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
694
686
|
if (context.disableHostPrefix !== true) {
|
|
695
687
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -717,11 +709,11 @@ export const se_ListSyncResourcesCommand = async (input, context) => {
|
|
|
717
709
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
718
710
|
resolvedPath = __resolvedPath(resolvedPath, input, "syncSource", () => input.syncSource, "{syncSource}", false);
|
|
719
711
|
let body;
|
|
720
|
-
body = JSON.stringify({
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
});
|
|
712
|
+
body = JSON.stringify(take(input, {
|
|
713
|
+
filters: (_) => _json(_),
|
|
714
|
+
maxResults: [],
|
|
715
|
+
nextToken: [],
|
|
716
|
+
}));
|
|
725
717
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
726
718
|
if (context.disableHostPrefix !== true) {
|
|
727
719
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -746,11 +738,11 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
746
738
|
};
|
|
747
739
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags-list";
|
|
748
740
|
let body;
|
|
749
|
-
body = JSON.stringify({
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
});
|
|
741
|
+
body = JSON.stringify(take(input, {
|
|
742
|
+
maxResults: [],
|
|
743
|
+
nextToken: [],
|
|
744
|
+
resourceARN: [],
|
|
745
|
+
}));
|
|
754
746
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
755
747
|
if (context.disableHostPrefix !== true) {
|
|
756
748
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -775,10 +767,10 @@ export const se_ListWorkspacesCommand = async (input, context) => {
|
|
|
775
767
|
};
|
|
776
768
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces-list";
|
|
777
769
|
let body;
|
|
778
|
-
body = JSON.stringify({
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
});
|
|
770
|
+
body = JSON.stringify(take(input, {
|
|
771
|
+
maxResults: [],
|
|
772
|
+
nextToken: [],
|
|
773
|
+
}));
|
|
782
774
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
783
775
|
if (context.disableHostPrefix !== true) {
|
|
784
776
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -803,10 +795,10 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
803
795
|
};
|
|
804
796
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
|
|
805
797
|
let body;
|
|
806
|
-
body = JSON.stringify({
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
});
|
|
798
|
+
body = JSON.stringify(take(input, {
|
|
799
|
+
resourceARN: [],
|
|
800
|
+
tags: (_) => _json(_),
|
|
801
|
+
}));
|
|
810
802
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
811
803
|
if (context.disableHostPrefix !== true) {
|
|
812
804
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -864,17 +856,15 @@ export const se_UpdateComponentTypeCommand = async (input, context) => {
|
|
|
864
856
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
865
857
|
resolvedPath = __resolvedPath(resolvedPath, input, "componentTypeId", () => input.componentTypeId, "{componentTypeId}", false);
|
|
866
858
|
let body;
|
|
867
|
-
body = JSON.stringify({
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
...(input.propertyGroups != null && { propertyGroups: se_PropertyGroupsRequest(input.propertyGroups, context) }),
|
|
877
|
-
});
|
|
859
|
+
body = JSON.stringify(take(input, {
|
|
860
|
+
componentTypeName: [],
|
|
861
|
+
description: [],
|
|
862
|
+
extendsFrom: (_) => _json(_),
|
|
863
|
+
functions: (_) => _json(_),
|
|
864
|
+
isSingleton: [],
|
|
865
|
+
propertyDefinitions: (_) => se_PropertyDefinitionsRequest(_, context),
|
|
866
|
+
propertyGroups: (_) => _json(_),
|
|
867
|
+
}));
|
|
878
868
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
879
869
|
if (context.disableHostPrefix !== true) {
|
|
880
870
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -902,16 +892,12 @@ export const se_UpdateEntityCommand = async (input, context) => {
|
|
|
902
892
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
903
893
|
resolvedPath = __resolvedPath(resolvedPath, input, "entityId", () => input.entityId, "{entityId}", false);
|
|
904
894
|
let body;
|
|
905
|
-
body = JSON.stringify({
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
...(input.parentEntityUpdate != null && {
|
|
912
|
-
parentEntityUpdate: se_ParentEntityUpdateRequest(input.parentEntityUpdate, context),
|
|
913
|
-
}),
|
|
914
|
-
});
|
|
895
|
+
body = JSON.stringify(take(input, {
|
|
896
|
+
componentUpdates: (_) => se_ComponentUpdatesMapRequest(_, context),
|
|
897
|
+
description: [],
|
|
898
|
+
entityName: [],
|
|
899
|
+
parentEntityUpdate: (_) => _json(_),
|
|
900
|
+
}));
|
|
915
901
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
916
902
|
if (context.disableHostPrefix !== true) {
|
|
917
903
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -936,10 +922,10 @@ export const se_UpdatePricingPlanCommand = async (input, context) => {
|
|
|
936
922
|
};
|
|
937
923
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/pricingplan";
|
|
938
924
|
let body;
|
|
939
|
-
body = JSON.stringify({
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
});
|
|
925
|
+
body = JSON.stringify(take(input, {
|
|
926
|
+
bundleNames: (_) => _json(_),
|
|
927
|
+
pricingMode: [],
|
|
928
|
+
}));
|
|
943
929
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
944
930
|
if (context.disableHostPrefix !== true) {
|
|
945
931
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -967,12 +953,12 @@ export const se_UpdateSceneCommand = async (input, context) => {
|
|
|
967
953
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
968
954
|
resolvedPath = __resolvedPath(resolvedPath, input, "sceneId", () => input.sceneId, "{sceneId}", false);
|
|
969
955
|
let body;
|
|
970
|
-
body = JSON.stringify({
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
});
|
|
956
|
+
body = JSON.stringify(take(input, {
|
|
957
|
+
capabilities: (_) => _json(_),
|
|
958
|
+
contentLocation: [],
|
|
959
|
+
description: [],
|
|
960
|
+
sceneMetadata: (_) => _json(_),
|
|
961
|
+
}));
|
|
976
962
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
977
963
|
if (context.disableHostPrefix !== true) {
|
|
978
964
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -998,10 +984,10 @@ export const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
|
998
984
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces/{workspaceId}";
|
|
999
985
|
resolvedPath = __resolvedPath(resolvedPath, input, "workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1000
986
|
let body;
|
|
1001
|
-
body = JSON.stringify({
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
});
|
|
987
|
+
body = JSON.stringify(take(input, {
|
|
988
|
+
description: [],
|
|
989
|
+
role: [],
|
|
990
|
+
}));
|
|
1005
991
|
let { hostname: resolvedHostname } = await context.endpoint();
|
|
1006
992
|
if (context.disableHostPrefix !== true) {
|
|
1007
993
|
resolvedHostname = "api." + resolvedHostname;
|
|
@@ -1027,9 +1013,10 @@ export const de_BatchPutPropertyValuesCommand = async (output, context) => {
|
|
|
1027
1013
|
$metadata: deserializeMetadata(output),
|
|
1028
1014
|
});
|
|
1029
1015
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
}
|
|
1016
|
+
const doc = take(data, {
|
|
1017
|
+
errorEntries: (_) => de_ErrorEntries(_, context),
|
|
1018
|
+
});
|
|
1019
|
+
Object.assign(contents, doc);
|
|
1033
1020
|
return contents;
|
|
1034
1021
|
};
|
|
1035
1022
|
const de_BatchPutPropertyValuesCommandError = async (output, context) => {
|
|
@@ -1053,10 +1040,9 @@ const de_BatchPutPropertyValuesCommandError = async (output, context) => {
|
|
|
1053
1040
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1054
1041
|
default:
|
|
1055
1042
|
const parsedBody = parsedOutput.body;
|
|
1056
|
-
throwDefaultError({
|
|
1043
|
+
return throwDefaultError({
|
|
1057
1044
|
output,
|
|
1058
1045
|
parsedBody,
|
|
1059
|
-
exceptionCtor: __BaseException,
|
|
1060
1046
|
errorCode,
|
|
1061
1047
|
});
|
|
1062
1048
|
}
|
|
@@ -1069,15 +1055,12 @@ export const de_CreateComponentTypeCommand = async (output, context) => {
|
|
|
1069
1055
|
$metadata: deserializeMetadata(output),
|
|
1070
1056
|
});
|
|
1071
1057
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
if (data.state != null) {
|
|
1079
|
-
contents.state = __expectString(data.state);
|
|
1080
|
-
}
|
|
1058
|
+
const doc = take(data, {
|
|
1059
|
+
arn: __expectString,
|
|
1060
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1061
|
+
state: __expectString,
|
|
1062
|
+
});
|
|
1063
|
+
Object.assign(contents, doc);
|
|
1081
1064
|
return contents;
|
|
1082
1065
|
};
|
|
1083
1066
|
const de_CreateComponentTypeCommandError = async (output, context) => {
|
|
@@ -1107,10 +1090,9 @@ const de_CreateComponentTypeCommandError = async (output, context) => {
|
|
|
1107
1090
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1108
1091
|
default:
|
|
1109
1092
|
const parsedBody = parsedOutput.body;
|
|
1110
|
-
throwDefaultError({
|
|
1093
|
+
return throwDefaultError({
|
|
1111
1094
|
output,
|
|
1112
1095
|
parsedBody,
|
|
1113
|
-
exceptionCtor: __BaseException,
|
|
1114
1096
|
errorCode,
|
|
1115
1097
|
});
|
|
1116
1098
|
}
|
|
@@ -1123,18 +1105,13 @@ export const de_CreateEntityCommand = async (output, context) => {
|
|
|
1123
1105
|
$metadata: deserializeMetadata(output),
|
|
1124
1106
|
});
|
|
1125
1107
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
contents.entityId = __expectString(data.entityId);
|
|
1134
|
-
}
|
|
1135
|
-
if (data.state != null) {
|
|
1136
|
-
contents.state = __expectString(data.state);
|
|
1137
|
-
}
|
|
1108
|
+
const doc = take(data, {
|
|
1109
|
+
arn: __expectString,
|
|
1110
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1111
|
+
entityId: __expectString,
|
|
1112
|
+
state: __expectString,
|
|
1113
|
+
});
|
|
1114
|
+
Object.assign(contents, doc);
|
|
1138
1115
|
return contents;
|
|
1139
1116
|
};
|
|
1140
1117
|
const de_CreateEntityCommandError = async (output, context) => {
|
|
@@ -1164,10 +1141,9 @@ const de_CreateEntityCommandError = async (output, context) => {
|
|
|
1164
1141
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1165
1142
|
default:
|
|
1166
1143
|
const parsedBody = parsedOutput.body;
|
|
1167
|
-
throwDefaultError({
|
|
1144
|
+
return throwDefaultError({
|
|
1168
1145
|
output,
|
|
1169
1146
|
parsedBody,
|
|
1170
|
-
exceptionCtor: __BaseException,
|
|
1171
1147
|
errorCode,
|
|
1172
1148
|
});
|
|
1173
1149
|
}
|
|
@@ -1180,12 +1156,11 @@ export const de_CreateSceneCommand = async (output, context) => {
|
|
|
1180
1156
|
$metadata: deserializeMetadata(output),
|
|
1181
1157
|
});
|
|
1182
1158
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
}
|
|
1159
|
+
const doc = take(data, {
|
|
1160
|
+
arn: __expectString,
|
|
1161
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1162
|
+
});
|
|
1163
|
+
Object.assign(contents, doc);
|
|
1189
1164
|
return contents;
|
|
1190
1165
|
};
|
|
1191
1166
|
const de_CreateSceneCommandError = async (output, context) => {
|
|
@@ -1215,10 +1190,9 @@ const de_CreateSceneCommandError = async (output, context) => {
|
|
|
1215
1190
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1216
1191
|
default:
|
|
1217
1192
|
const parsedBody = parsedOutput.body;
|
|
1218
|
-
throwDefaultError({
|
|
1193
|
+
return throwDefaultError({
|
|
1219
1194
|
output,
|
|
1220
1195
|
parsedBody,
|
|
1221
|
-
exceptionCtor: __BaseException,
|
|
1222
1196
|
errorCode,
|
|
1223
1197
|
});
|
|
1224
1198
|
}
|
|
@@ -1231,15 +1205,12 @@ export const de_CreateSyncJobCommand = async (output, context) => {
|
|
|
1231
1205
|
$metadata: deserializeMetadata(output),
|
|
1232
1206
|
});
|
|
1233
1207
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
if (data.state != null) {
|
|
1241
|
-
contents.state = __expectString(data.state);
|
|
1242
|
-
}
|
|
1208
|
+
const doc = take(data, {
|
|
1209
|
+
arn: __expectString,
|
|
1210
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1211
|
+
state: __expectString,
|
|
1212
|
+
});
|
|
1213
|
+
Object.assign(contents, doc);
|
|
1243
1214
|
return contents;
|
|
1244
1215
|
};
|
|
1245
1216
|
const de_CreateSyncJobCommandError = async (output, context) => {
|
|
@@ -1269,10 +1240,9 @@ const de_CreateSyncJobCommandError = async (output, context) => {
|
|
|
1269
1240
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1270
1241
|
default:
|
|
1271
1242
|
const parsedBody = parsedOutput.body;
|
|
1272
|
-
throwDefaultError({
|
|
1243
|
+
return throwDefaultError({
|
|
1273
1244
|
output,
|
|
1274
1245
|
parsedBody,
|
|
1275
|
-
exceptionCtor: __BaseException,
|
|
1276
1246
|
errorCode,
|
|
1277
1247
|
});
|
|
1278
1248
|
}
|
|
@@ -1285,12 +1255,11 @@ export const de_CreateWorkspaceCommand = async (output, context) => {
|
|
|
1285
1255
|
$metadata: deserializeMetadata(output),
|
|
1286
1256
|
});
|
|
1287
1257
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
}
|
|
1258
|
+
const doc = take(data, {
|
|
1259
|
+
arn: __expectString,
|
|
1260
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1261
|
+
});
|
|
1262
|
+
Object.assign(contents, doc);
|
|
1294
1263
|
return contents;
|
|
1295
1264
|
};
|
|
1296
1265
|
const de_CreateWorkspaceCommandError = async (output, context) => {
|
|
@@ -1320,10 +1289,9 @@ const de_CreateWorkspaceCommandError = async (output, context) => {
|
|
|
1320
1289
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1321
1290
|
default:
|
|
1322
1291
|
const parsedBody = parsedOutput.body;
|
|
1323
|
-
throwDefaultError({
|
|
1292
|
+
return throwDefaultError({
|
|
1324
1293
|
output,
|
|
1325
1294
|
parsedBody,
|
|
1326
|
-
exceptionCtor: __BaseException,
|
|
1327
1295
|
errorCode,
|
|
1328
1296
|
});
|
|
1329
1297
|
}
|
|
@@ -1336,9 +1304,10 @@ export const de_DeleteComponentTypeCommand = async (output, context) => {
|
|
|
1336
1304
|
$metadata: deserializeMetadata(output),
|
|
1337
1305
|
});
|
|
1338
1306
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
}
|
|
1307
|
+
const doc = take(data, {
|
|
1308
|
+
state: __expectString,
|
|
1309
|
+
});
|
|
1310
|
+
Object.assign(contents, doc);
|
|
1342
1311
|
return contents;
|
|
1343
1312
|
};
|
|
1344
1313
|
const de_DeleteComponentTypeCommandError = async (output, context) => {
|
|
@@ -1365,10 +1334,9 @@ const de_DeleteComponentTypeCommandError = async (output, context) => {
|
|
|
1365
1334
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1366
1335
|
default:
|
|
1367
1336
|
const parsedBody = parsedOutput.body;
|
|
1368
|
-
throwDefaultError({
|
|
1337
|
+
return throwDefaultError({
|
|
1369
1338
|
output,
|
|
1370
1339
|
parsedBody,
|
|
1371
|
-
exceptionCtor: __BaseException,
|
|
1372
1340
|
errorCode,
|
|
1373
1341
|
});
|
|
1374
1342
|
}
|
|
@@ -1381,9 +1349,10 @@ export const de_DeleteEntityCommand = async (output, context) => {
|
|
|
1381
1349
|
$metadata: deserializeMetadata(output),
|
|
1382
1350
|
});
|
|
1383
1351
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
}
|
|
1352
|
+
const doc = take(data, {
|
|
1353
|
+
state: __expectString,
|
|
1354
|
+
});
|
|
1355
|
+
Object.assign(contents, doc);
|
|
1387
1356
|
return contents;
|
|
1388
1357
|
};
|
|
1389
1358
|
const de_DeleteEntityCommandError = async (output, context) => {
|
|
@@ -1410,10 +1379,9 @@ const de_DeleteEntityCommandError = async (output, context) => {
|
|
|
1410
1379
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1411
1380
|
default:
|
|
1412
1381
|
const parsedBody = parsedOutput.body;
|
|
1413
|
-
throwDefaultError({
|
|
1382
|
+
return throwDefaultError({
|
|
1414
1383
|
output,
|
|
1415
1384
|
parsedBody,
|
|
1416
|
-
exceptionCtor: __BaseException,
|
|
1417
1385
|
errorCode,
|
|
1418
1386
|
});
|
|
1419
1387
|
}
|
|
@@ -1452,10 +1420,9 @@ const de_DeleteSceneCommandError = async (output, context) => {
|
|
|
1452
1420
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1453
1421
|
default:
|
|
1454
1422
|
const parsedBody = parsedOutput.body;
|
|
1455
|
-
throwDefaultError({
|
|
1423
|
+
return throwDefaultError({
|
|
1456
1424
|
output,
|
|
1457
1425
|
parsedBody,
|
|
1458
|
-
exceptionCtor: __BaseException,
|
|
1459
1426
|
errorCode,
|
|
1460
1427
|
});
|
|
1461
1428
|
}
|
|
@@ -1468,9 +1435,10 @@ export const de_DeleteSyncJobCommand = async (output, context) => {
|
|
|
1468
1435
|
$metadata: deserializeMetadata(output),
|
|
1469
1436
|
});
|
|
1470
1437
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
}
|
|
1438
|
+
const doc = take(data, {
|
|
1439
|
+
state: __expectString,
|
|
1440
|
+
});
|
|
1441
|
+
Object.assign(contents, doc);
|
|
1474
1442
|
return contents;
|
|
1475
1443
|
};
|
|
1476
1444
|
const de_DeleteSyncJobCommandError = async (output, context) => {
|
|
@@ -1500,10 +1468,9 @@ const de_DeleteSyncJobCommandError = async (output, context) => {
|
|
|
1500
1468
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1501
1469
|
default:
|
|
1502
1470
|
const parsedBody = parsedOutput.body;
|
|
1503
|
-
throwDefaultError({
|
|
1471
|
+
return throwDefaultError({
|
|
1504
1472
|
output,
|
|
1505
1473
|
parsedBody,
|
|
1506
|
-
exceptionCtor: __BaseException,
|
|
1507
1474
|
errorCode,
|
|
1508
1475
|
});
|
|
1509
1476
|
}
|
|
@@ -1542,10 +1509,9 @@ const de_DeleteWorkspaceCommandError = async (output, context) => {
|
|
|
1542
1509
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1543
1510
|
default:
|
|
1544
1511
|
const parsedBody = parsedOutput.body;
|
|
1545
|
-
throwDefaultError({
|
|
1512
|
+
return throwDefaultError({
|
|
1546
1513
|
output,
|
|
1547
1514
|
parsedBody,
|
|
1548
|
-
exceptionCtor: __BaseException,
|
|
1549
1515
|
errorCode,
|
|
1550
1516
|
});
|
|
1551
1517
|
}
|
|
@@ -1558,15 +1524,12 @@ export const de_ExecuteQueryCommand = async (output, context) => {
|
|
|
1558
1524
|
$metadata: deserializeMetadata(output),
|
|
1559
1525
|
});
|
|
1560
1526
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
if (data.rows != null) {
|
|
1568
|
-
contents.rows = de_Rows(data.rows, context);
|
|
1569
|
-
}
|
|
1527
|
+
const doc = take(data, {
|
|
1528
|
+
columnDescriptions: _json,
|
|
1529
|
+
nextToken: __expectString,
|
|
1530
|
+
rows: (_) => de_Rows(_, context),
|
|
1531
|
+
});
|
|
1532
|
+
Object.assign(contents, doc);
|
|
1570
1533
|
return contents;
|
|
1571
1534
|
};
|
|
1572
1535
|
const de_ExecuteQueryCommandError = async (output, context) => {
|
|
@@ -1596,10 +1559,9 @@ const de_ExecuteQueryCommandError = async (output, context) => {
|
|
|
1596
1559
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1597
1560
|
default:
|
|
1598
1561
|
const parsedBody = parsedOutput.body;
|
|
1599
|
-
throwDefaultError({
|
|
1562
|
+
return throwDefaultError({
|
|
1600
1563
|
output,
|
|
1601
1564
|
parsedBody,
|
|
1602
|
-
exceptionCtor: __BaseException,
|
|
1603
1565
|
errorCode,
|
|
1604
1566
|
});
|
|
1605
1567
|
}
|
|
@@ -1612,54 +1574,25 @@ export const de_GetComponentTypeCommand = async (output, context) => {
|
|
|
1612
1574
|
$metadata: deserializeMetadata(output),
|
|
1613
1575
|
});
|
|
1614
1576
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
}
|
|
1633
|
-
|
|
1634
|
-
contents.functions = de_FunctionsResponse(data.functions, context);
|
|
1635
|
-
}
|
|
1636
|
-
if (data.isAbstract != null) {
|
|
1637
|
-
contents.isAbstract = __expectBoolean(data.isAbstract);
|
|
1638
|
-
}
|
|
1639
|
-
if (data.isSchemaInitialized != null) {
|
|
1640
|
-
contents.isSchemaInitialized = __expectBoolean(data.isSchemaInitialized);
|
|
1641
|
-
}
|
|
1642
|
-
if (data.isSingleton != null) {
|
|
1643
|
-
contents.isSingleton = __expectBoolean(data.isSingleton);
|
|
1644
|
-
}
|
|
1645
|
-
if (data.propertyDefinitions != null) {
|
|
1646
|
-
contents.propertyDefinitions = de_PropertyDefinitionsResponse(data.propertyDefinitions, context);
|
|
1647
|
-
}
|
|
1648
|
-
if (data.propertyGroups != null) {
|
|
1649
|
-
contents.propertyGroups = de_PropertyGroupsResponse(data.propertyGroups, context);
|
|
1650
|
-
}
|
|
1651
|
-
if (data.status != null) {
|
|
1652
|
-
contents.status = de_Status(data.status, context);
|
|
1653
|
-
}
|
|
1654
|
-
if (data.syncSource != null) {
|
|
1655
|
-
contents.syncSource = __expectString(data.syncSource);
|
|
1656
|
-
}
|
|
1657
|
-
if (data.updateDateTime != null) {
|
|
1658
|
-
contents.updateDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.updateDateTime)));
|
|
1659
|
-
}
|
|
1660
|
-
if (data.workspaceId != null) {
|
|
1661
|
-
contents.workspaceId = __expectString(data.workspaceId);
|
|
1662
|
-
}
|
|
1577
|
+
const doc = take(data, {
|
|
1578
|
+
arn: __expectString,
|
|
1579
|
+
componentTypeId: __expectString,
|
|
1580
|
+
componentTypeName: __expectString,
|
|
1581
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1582
|
+
description: __expectString,
|
|
1583
|
+
extendsFrom: _json,
|
|
1584
|
+
functions: _json,
|
|
1585
|
+
isAbstract: __expectBoolean,
|
|
1586
|
+
isSchemaInitialized: __expectBoolean,
|
|
1587
|
+
isSingleton: __expectBoolean,
|
|
1588
|
+
propertyDefinitions: (_) => de_PropertyDefinitionsResponse(_, context),
|
|
1589
|
+
propertyGroups: _json,
|
|
1590
|
+
status: _json,
|
|
1591
|
+
syncSource: __expectString,
|
|
1592
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1593
|
+
workspaceId: __expectString,
|
|
1594
|
+
});
|
|
1595
|
+
Object.assign(contents, doc);
|
|
1663
1596
|
return contents;
|
|
1664
1597
|
};
|
|
1665
1598
|
const de_GetComponentTypeCommandError = async (output, context) => {
|
|
@@ -1686,10 +1619,9 @@ const de_GetComponentTypeCommandError = async (output, context) => {
|
|
|
1686
1619
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1687
1620
|
default:
|
|
1688
1621
|
const parsedBody = parsedOutput.body;
|
|
1689
|
-
throwDefaultError({
|
|
1622
|
+
return throwDefaultError({
|
|
1690
1623
|
output,
|
|
1691
1624
|
parsedBody,
|
|
1692
|
-
exceptionCtor: __BaseException,
|
|
1693
1625
|
errorCode,
|
|
1694
1626
|
});
|
|
1695
1627
|
}
|
|
@@ -1702,42 +1634,21 @@ export const de_GetEntityCommand = async (output, context) => {
|
|
|
1702
1634
|
$metadata: deserializeMetadata(output),
|
|
1703
1635
|
});
|
|
1704
1636
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
if (data.entityName != null) {
|
|
1721
|
-
contents.entityName = __expectString(data.entityName);
|
|
1722
|
-
}
|
|
1723
|
-
if (data.hasChildEntities != null) {
|
|
1724
|
-
contents.hasChildEntities = __expectBoolean(data.hasChildEntities);
|
|
1725
|
-
}
|
|
1726
|
-
if (data.parentEntityId != null) {
|
|
1727
|
-
contents.parentEntityId = __expectString(data.parentEntityId);
|
|
1728
|
-
}
|
|
1729
|
-
if (data.status != null) {
|
|
1730
|
-
contents.status = de_Status(data.status, context);
|
|
1731
|
-
}
|
|
1732
|
-
if (data.syncSource != null) {
|
|
1733
|
-
contents.syncSource = __expectString(data.syncSource);
|
|
1734
|
-
}
|
|
1735
|
-
if (data.updateDateTime != null) {
|
|
1736
|
-
contents.updateDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.updateDateTime)));
|
|
1737
|
-
}
|
|
1738
|
-
if (data.workspaceId != null) {
|
|
1739
|
-
contents.workspaceId = __expectString(data.workspaceId);
|
|
1740
|
-
}
|
|
1637
|
+
const doc = take(data, {
|
|
1638
|
+
arn: __expectString,
|
|
1639
|
+
components: (_) => de_ComponentsMap(_, context),
|
|
1640
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1641
|
+
description: __expectString,
|
|
1642
|
+
entityId: __expectString,
|
|
1643
|
+
entityName: __expectString,
|
|
1644
|
+
hasChildEntities: __expectBoolean,
|
|
1645
|
+
parentEntityId: __expectString,
|
|
1646
|
+
status: _json,
|
|
1647
|
+
syncSource: __expectString,
|
|
1648
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1649
|
+
workspaceId: __expectString,
|
|
1650
|
+
});
|
|
1651
|
+
Object.assign(contents, doc);
|
|
1741
1652
|
return contents;
|
|
1742
1653
|
};
|
|
1743
1654
|
const de_GetEntityCommandError = async (output, context) => {
|
|
@@ -1764,10 +1675,9 @@ const de_GetEntityCommandError = async (output, context) => {
|
|
|
1764
1675
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1765
1676
|
default:
|
|
1766
1677
|
const parsedBody = parsedOutput.body;
|
|
1767
|
-
throwDefaultError({
|
|
1678
|
+
return throwDefaultError({
|
|
1768
1679
|
output,
|
|
1769
1680
|
parsedBody,
|
|
1770
|
-
exceptionCtor: __BaseException,
|
|
1771
1681
|
errorCode,
|
|
1772
1682
|
});
|
|
1773
1683
|
}
|
|
@@ -1780,12 +1690,11 @@ export const de_GetPricingPlanCommand = async (output, context) => {
|
|
|
1780
1690
|
$metadata: deserializeMetadata(output),
|
|
1781
1691
|
});
|
|
1782
1692
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
}
|
|
1693
|
+
const doc = take(data, {
|
|
1694
|
+
currentPricingPlan: (_) => de_PricingPlan(_, context),
|
|
1695
|
+
pendingPricingPlan: (_) => de_PricingPlan(_, context),
|
|
1696
|
+
});
|
|
1697
|
+
Object.assign(contents, doc);
|
|
1789
1698
|
return contents;
|
|
1790
1699
|
};
|
|
1791
1700
|
const de_GetPricingPlanCommandError = async (output, context) => {
|
|
@@ -1809,10 +1718,9 @@ const de_GetPricingPlanCommandError = async (output, context) => {
|
|
|
1809
1718
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1810
1719
|
default:
|
|
1811
1720
|
const parsedBody = parsedOutput.body;
|
|
1812
|
-
throwDefaultError({
|
|
1721
|
+
return throwDefaultError({
|
|
1813
1722
|
output,
|
|
1814
1723
|
parsedBody,
|
|
1815
|
-
exceptionCtor: __BaseException,
|
|
1816
1724
|
errorCode,
|
|
1817
1725
|
});
|
|
1818
1726
|
}
|
|
@@ -1825,15 +1733,12 @@ export const de_GetPropertyValueCommand = async (output, context) => {
|
|
|
1825
1733
|
$metadata: deserializeMetadata(output),
|
|
1826
1734
|
});
|
|
1827
1735
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
if (data.tabularPropertyValues != null) {
|
|
1835
|
-
contents.tabularPropertyValues = de_TabularPropertyValues(data.tabularPropertyValues, context);
|
|
1836
|
-
}
|
|
1736
|
+
const doc = take(data, {
|
|
1737
|
+
nextToken: __expectString,
|
|
1738
|
+
propertyValues: (_) => de_PropertyLatestValueMap(_, context),
|
|
1739
|
+
tabularPropertyValues: (_) => de_TabularPropertyValues(_, context),
|
|
1740
|
+
});
|
|
1741
|
+
Object.assign(contents, doc);
|
|
1837
1742
|
return contents;
|
|
1838
1743
|
};
|
|
1839
1744
|
const de_GetPropertyValueCommandError = async (output, context) => {
|
|
@@ -1866,10 +1771,9 @@ const de_GetPropertyValueCommandError = async (output, context) => {
|
|
|
1866
1771
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1867
1772
|
default:
|
|
1868
1773
|
const parsedBody = parsedOutput.body;
|
|
1869
|
-
throwDefaultError({
|
|
1774
|
+
return throwDefaultError({
|
|
1870
1775
|
output,
|
|
1871
1776
|
parsedBody,
|
|
1872
|
-
exceptionCtor: __BaseException,
|
|
1873
1777
|
errorCode,
|
|
1874
1778
|
});
|
|
1875
1779
|
}
|
|
@@ -1882,12 +1786,11 @@ export const de_GetPropertyValueHistoryCommand = async (output, context) => {
|
|
|
1882
1786
|
$metadata: deserializeMetadata(output),
|
|
1883
1787
|
});
|
|
1884
1788
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
}
|
|
1789
|
+
const doc = take(data, {
|
|
1790
|
+
nextToken: __expectString,
|
|
1791
|
+
propertyValues: (_) => de_PropertyValueList(_, context),
|
|
1792
|
+
});
|
|
1793
|
+
Object.assign(contents, doc);
|
|
1891
1794
|
return contents;
|
|
1892
1795
|
};
|
|
1893
1796
|
const de_GetPropertyValueHistoryCommandError = async (output, context) => {
|
|
@@ -1920,10 +1823,9 @@ const de_GetPropertyValueHistoryCommandError = async (output, context) => {
|
|
|
1920
1823
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
1824
|
default:
|
|
1922
1825
|
const parsedBody = parsedOutput.body;
|
|
1923
|
-
throwDefaultError({
|
|
1826
|
+
return throwDefaultError({
|
|
1924
1827
|
output,
|
|
1925
1828
|
parsedBody,
|
|
1926
|
-
exceptionCtor: __BaseException,
|
|
1927
1829
|
errorCode,
|
|
1928
1830
|
});
|
|
1929
1831
|
}
|
|
@@ -1936,36 +1838,19 @@ export const de_GetSceneCommand = async (output, context) => {
|
|
|
1936
1838
|
$metadata: deserializeMetadata(output),
|
|
1937
1839
|
});
|
|
1938
1840
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
contents.description = __expectString(data.description);
|
|
1953
|
-
}
|
|
1954
|
-
if (data.generatedSceneMetadata != null) {
|
|
1955
|
-
contents.generatedSceneMetadata = de_GeneratedSceneMetadataMap(data.generatedSceneMetadata, context);
|
|
1956
|
-
}
|
|
1957
|
-
if (data.sceneId != null) {
|
|
1958
|
-
contents.sceneId = __expectString(data.sceneId);
|
|
1959
|
-
}
|
|
1960
|
-
if (data.sceneMetadata != null) {
|
|
1961
|
-
contents.sceneMetadata = de_SceneMetadataMap(data.sceneMetadata, context);
|
|
1962
|
-
}
|
|
1963
|
-
if (data.updateDateTime != null) {
|
|
1964
|
-
contents.updateDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.updateDateTime)));
|
|
1965
|
-
}
|
|
1966
|
-
if (data.workspaceId != null) {
|
|
1967
|
-
contents.workspaceId = __expectString(data.workspaceId);
|
|
1968
|
-
}
|
|
1841
|
+
const doc = take(data, {
|
|
1842
|
+
arn: __expectString,
|
|
1843
|
+
capabilities: _json,
|
|
1844
|
+
contentLocation: __expectString,
|
|
1845
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1846
|
+
description: __expectString,
|
|
1847
|
+
generatedSceneMetadata: _json,
|
|
1848
|
+
sceneId: __expectString,
|
|
1849
|
+
sceneMetadata: _json,
|
|
1850
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1851
|
+
workspaceId: __expectString,
|
|
1852
|
+
});
|
|
1853
|
+
Object.assign(contents, doc);
|
|
1969
1854
|
return contents;
|
|
1970
1855
|
};
|
|
1971
1856
|
const de_GetSceneCommandError = async (output, context) => {
|
|
@@ -1992,10 +1877,9 @@ const de_GetSceneCommandError = async (output, context) => {
|
|
|
1992
1877
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1993
1878
|
default:
|
|
1994
1879
|
const parsedBody = parsedOutput.body;
|
|
1995
|
-
throwDefaultError({
|
|
1880
|
+
return throwDefaultError({
|
|
1996
1881
|
output,
|
|
1997
1882
|
parsedBody,
|
|
1998
|
-
exceptionCtor: __BaseException,
|
|
1999
1883
|
errorCode,
|
|
2000
1884
|
});
|
|
2001
1885
|
}
|
|
@@ -2008,27 +1892,16 @@ export const de_GetSyncJobCommand = async (output, context) => {
|
|
|
2008
1892
|
$metadata: deserializeMetadata(output),
|
|
2009
1893
|
});
|
|
2010
1894
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
}
|
|
2020
|
-
|
|
2021
|
-
contents.syncRole = __expectString(data.syncRole);
|
|
2022
|
-
}
|
|
2023
|
-
if (data.syncSource != null) {
|
|
2024
|
-
contents.syncSource = __expectString(data.syncSource);
|
|
2025
|
-
}
|
|
2026
|
-
if (data.updateDateTime != null) {
|
|
2027
|
-
contents.updateDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.updateDateTime)));
|
|
2028
|
-
}
|
|
2029
|
-
if (data.workspaceId != null) {
|
|
2030
|
-
contents.workspaceId = __expectString(data.workspaceId);
|
|
2031
|
-
}
|
|
1895
|
+
const doc = take(data, {
|
|
1896
|
+
arn: __expectString,
|
|
1897
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1898
|
+
status: _json,
|
|
1899
|
+
syncRole: __expectString,
|
|
1900
|
+
syncSource: __expectString,
|
|
1901
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1902
|
+
workspaceId: __expectString,
|
|
1903
|
+
});
|
|
1904
|
+
Object.assign(contents, doc);
|
|
2032
1905
|
return contents;
|
|
2033
1906
|
};
|
|
2034
1907
|
const de_GetSyncJobCommandError = async (output, context) => {
|
|
@@ -2058,10 +1931,9 @@ const de_GetSyncJobCommandError = async (output, context) => {
|
|
|
2058
1931
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2059
1932
|
default:
|
|
2060
1933
|
const parsedBody = parsedOutput.body;
|
|
2061
|
-
throwDefaultError({
|
|
1934
|
+
return throwDefaultError({
|
|
2062
1935
|
output,
|
|
2063
1936
|
parsedBody,
|
|
2064
|
-
exceptionCtor: __BaseException,
|
|
2065
1937
|
errorCode,
|
|
2066
1938
|
});
|
|
2067
1939
|
}
|
|
@@ -2074,27 +1946,16 @@ export const de_GetWorkspaceCommand = async (output, context) => {
|
|
|
2074
1946
|
$metadata: deserializeMetadata(output),
|
|
2075
1947
|
});
|
|
2076
1948
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
}
|
|
2086
|
-
|
|
2087
|
-
contents.role = __expectString(data.role);
|
|
2088
|
-
}
|
|
2089
|
-
if (data.s3Location != null) {
|
|
2090
|
-
contents.s3Location = __expectString(data.s3Location);
|
|
2091
|
-
}
|
|
2092
|
-
if (data.updateDateTime != null) {
|
|
2093
|
-
contents.updateDateTime = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.updateDateTime)));
|
|
2094
|
-
}
|
|
2095
|
-
if (data.workspaceId != null) {
|
|
2096
|
-
contents.workspaceId = __expectString(data.workspaceId);
|
|
2097
|
-
}
|
|
1949
|
+
const doc = take(data, {
|
|
1950
|
+
arn: __expectString,
|
|
1951
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1952
|
+
description: __expectString,
|
|
1953
|
+
role: __expectString,
|
|
1954
|
+
s3Location: __expectString,
|
|
1955
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1956
|
+
workspaceId: __expectString,
|
|
1957
|
+
});
|
|
1958
|
+
Object.assign(contents, doc);
|
|
2098
1959
|
return contents;
|
|
2099
1960
|
};
|
|
2100
1961
|
const de_GetWorkspaceCommandError = async (output, context) => {
|
|
@@ -2121,10 +1982,9 @@ const de_GetWorkspaceCommandError = async (output, context) => {
|
|
|
2121
1982
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2122
1983
|
default:
|
|
2123
1984
|
const parsedBody = parsedOutput.body;
|
|
2124
|
-
throwDefaultError({
|
|
1985
|
+
return throwDefaultError({
|
|
2125
1986
|
output,
|
|
2126
1987
|
parsedBody,
|
|
2127
|
-
exceptionCtor: __BaseException,
|
|
2128
1988
|
errorCode,
|
|
2129
1989
|
});
|
|
2130
1990
|
}
|
|
@@ -2137,18 +1997,13 @@ export const de_ListComponentTypesCommand = async (output, context) => {
|
|
|
2137
1997
|
$metadata: deserializeMetadata(output),
|
|
2138
1998
|
});
|
|
2139
1999
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
contents.nextToken = __expectString(data.nextToken);
|
|
2148
|
-
}
|
|
2149
|
-
if (data.workspaceId != null) {
|
|
2150
|
-
contents.workspaceId = __expectString(data.workspaceId);
|
|
2151
|
-
}
|
|
2000
|
+
const doc = take(data, {
|
|
2001
|
+
componentTypeSummaries: (_) => de_ComponentTypeSummaries(_, context),
|
|
2002
|
+
maxResults: __expectInt32,
|
|
2003
|
+
nextToken: __expectString,
|
|
2004
|
+
workspaceId: __expectString,
|
|
2005
|
+
});
|
|
2006
|
+
Object.assign(contents, doc);
|
|
2152
2007
|
return contents;
|
|
2153
2008
|
};
|
|
2154
2009
|
const de_ListComponentTypesCommandError = async (output, context) => {
|
|
@@ -2172,10 +2027,9 @@ const de_ListComponentTypesCommandError = async (output, context) => {
|
|
|
2172
2027
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2173
2028
|
default:
|
|
2174
2029
|
const parsedBody = parsedOutput.body;
|
|
2175
|
-
throwDefaultError({
|
|
2030
|
+
return throwDefaultError({
|
|
2176
2031
|
output,
|
|
2177
2032
|
parsedBody,
|
|
2178
|
-
exceptionCtor: __BaseException,
|
|
2179
2033
|
errorCode,
|
|
2180
2034
|
});
|
|
2181
2035
|
}
|
|
@@ -2188,12 +2042,11 @@ export const de_ListEntitiesCommand = async (output, context) => {
|
|
|
2188
2042
|
$metadata: deserializeMetadata(output),
|
|
2189
2043
|
});
|
|
2190
2044
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
}
|
|
2045
|
+
const doc = take(data, {
|
|
2046
|
+
entitySummaries: (_) => de_EntitySummaries(_, context),
|
|
2047
|
+
nextToken: __expectString,
|
|
2048
|
+
});
|
|
2049
|
+
Object.assign(contents, doc);
|
|
2197
2050
|
return contents;
|
|
2198
2051
|
};
|
|
2199
2052
|
const de_ListEntitiesCommandError = async (output, context) => {
|
|
@@ -2217,10 +2070,9 @@ const de_ListEntitiesCommandError = async (output, context) => {
|
|
|
2217
2070
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2218
2071
|
default:
|
|
2219
2072
|
const parsedBody = parsedOutput.body;
|
|
2220
|
-
throwDefaultError({
|
|
2073
|
+
return throwDefaultError({
|
|
2221
2074
|
output,
|
|
2222
2075
|
parsedBody,
|
|
2223
|
-
exceptionCtor: __BaseException,
|
|
2224
2076
|
errorCode,
|
|
2225
2077
|
});
|
|
2226
2078
|
}
|
|
@@ -2233,12 +2085,11 @@ export const de_ListScenesCommand = async (output, context) => {
|
|
|
2233
2085
|
$metadata: deserializeMetadata(output),
|
|
2234
2086
|
});
|
|
2235
2087
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
}
|
|
2088
|
+
const doc = take(data, {
|
|
2089
|
+
nextToken: __expectString,
|
|
2090
|
+
sceneSummaries: (_) => de_SceneSummaries(_, context),
|
|
2091
|
+
});
|
|
2092
|
+
Object.assign(contents, doc);
|
|
2242
2093
|
return contents;
|
|
2243
2094
|
};
|
|
2244
2095
|
const de_ListScenesCommandError = async (output, context) => {
|
|
@@ -2262,10 +2113,9 @@ const de_ListScenesCommandError = async (output, context) => {
|
|
|
2262
2113
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2263
2114
|
default:
|
|
2264
2115
|
const parsedBody = parsedOutput.body;
|
|
2265
|
-
throwDefaultError({
|
|
2116
|
+
return throwDefaultError({
|
|
2266
2117
|
output,
|
|
2267
2118
|
parsedBody,
|
|
2268
|
-
exceptionCtor: __BaseException,
|
|
2269
2119
|
errorCode,
|
|
2270
2120
|
});
|
|
2271
2121
|
}
|
|
@@ -2278,12 +2128,11 @@ export const de_ListSyncJobsCommand = async (output, context) => {
|
|
|
2278
2128
|
$metadata: deserializeMetadata(output),
|
|
2279
2129
|
});
|
|
2280
2130
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
}
|
|
2131
|
+
const doc = take(data, {
|
|
2132
|
+
nextToken: __expectString,
|
|
2133
|
+
syncJobSummaries: (_) => de_SyncJobSummaries(_, context),
|
|
2134
|
+
});
|
|
2135
|
+
Object.assign(contents, doc);
|
|
2287
2136
|
return contents;
|
|
2288
2137
|
};
|
|
2289
2138
|
const de_ListSyncJobsCommandError = async (output, context) => {
|
|
@@ -2310,10 +2159,9 @@ const de_ListSyncJobsCommandError = async (output, context) => {
|
|
|
2310
2159
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2311
2160
|
default:
|
|
2312
2161
|
const parsedBody = parsedOutput.body;
|
|
2313
|
-
throwDefaultError({
|
|
2162
|
+
return throwDefaultError({
|
|
2314
2163
|
output,
|
|
2315
2164
|
parsedBody,
|
|
2316
|
-
exceptionCtor: __BaseException,
|
|
2317
2165
|
errorCode,
|
|
2318
2166
|
});
|
|
2319
2167
|
}
|
|
@@ -2326,12 +2174,11 @@ export const de_ListSyncResourcesCommand = async (output, context) => {
|
|
|
2326
2174
|
$metadata: deserializeMetadata(output),
|
|
2327
2175
|
});
|
|
2328
2176
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
}
|
|
2177
|
+
const doc = take(data, {
|
|
2178
|
+
nextToken: __expectString,
|
|
2179
|
+
syncResources: (_) => de_SyncResourceSummaries(_, context),
|
|
2180
|
+
});
|
|
2181
|
+
Object.assign(contents, doc);
|
|
2335
2182
|
return contents;
|
|
2336
2183
|
};
|
|
2337
2184
|
const de_ListSyncResourcesCommandError = async (output, context) => {
|
|
@@ -2358,10 +2205,9 @@ const de_ListSyncResourcesCommandError = async (output, context) => {
|
|
|
2358
2205
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2359
2206
|
default:
|
|
2360
2207
|
const parsedBody = parsedOutput.body;
|
|
2361
|
-
throwDefaultError({
|
|
2208
|
+
return throwDefaultError({
|
|
2362
2209
|
output,
|
|
2363
2210
|
parsedBody,
|
|
2364
|
-
exceptionCtor: __BaseException,
|
|
2365
2211
|
errorCode,
|
|
2366
2212
|
});
|
|
2367
2213
|
}
|
|
@@ -2374,12 +2220,11 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2374
2220
|
$metadata: deserializeMetadata(output),
|
|
2375
2221
|
});
|
|
2376
2222
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
}
|
|
2223
|
+
const doc = take(data, {
|
|
2224
|
+
nextToken: __expectString,
|
|
2225
|
+
tags: _json,
|
|
2226
|
+
});
|
|
2227
|
+
Object.assign(contents, doc);
|
|
2383
2228
|
return contents;
|
|
2384
2229
|
};
|
|
2385
2230
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
@@ -2397,10 +2242,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
2397
2242
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2398
2243
|
default:
|
|
2399
2244
|
const parsedBody = parsedOutput.body;
|
|
2400
|
-
throwDefaultError({
|
|
2245
|
+
return throwDefaultError({
|
|
2401
2246
|
output,
|
|
2402
2247
|
parsedBody,
|
|
2403
|
-
exceptionCtor: __BaseException,
|
|
2404
2248
|
errorCode,
|
|
2405
2249
|
});
|
|
2406
2250
|
}
|
|
@@ -2413,12 +2257,11 @@ export const de_ListWorkspacesCommand = async (output, context) => {
|
|
|
2413
2257
|
$metadata: deserializeMetadata(output),
|
|
2414
2258
|
});
|
|
2415
2259
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
}
|
|
2260
|
+
const doc = take(data, {
|
|
2261
|
+
nextToken: __expectString,
|
|
2262
|
+
workspaceSummaries: (_) => de_WorkspaceSummaries(_, context),
|
|
2263
|
+
});
|
|
2264
|
+
Object.assign(contents, doc);
|
|
2422
2265
|
return contents;
|
|
2423
2266
|
};
|
|
2424
2267
|
const de_ListWorkspacesCommandError = async (output, context) => {
|
|
@@ -2442,10 +2285,9 @@ const de_ListWorkspacesCommandError = async (output, context) => {
|
|
|
2442
2285
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2443
2286
|
default:
|
|
2444
2287
|
const parsedBody = parsedOutput.body;
|
|
2445
|
-
throwDefaultError({
|
|
2288
|
+
return throwDefaultError({
|
|
2446
2289
|
output,
|
|
2447
2290
|
parsedBody,
|
|
2448
|
-
exceptionCtor: __BaseException,
|
|
2449
2291
|
errorCode,
|
|
2450
2292
|
});
|
|
2451
2293
|
}
|
|
@@ -2478,10 +2320,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2478
2320
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2479
2321
|
default:
|
|
2480
2322
|
const parsedBody = parsedOutput.body;
|
|
2481
|
-
throwDefaultError({
|
|
2323
|
+
return throwDefaultError({
|
|
2482
2324
|
output,
|
|
2483
2325
|
parsedBody,
|
|
2484
|
-
exceptionCtor: __BaseException,
|
|
2485
2326
|
errorCode,
|
|
2486
2327
|
});
|
|
2487
2328
|
}
|
|
@@ -2511,10 +2352,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2511
2352
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2512
2353
|
default:
|
|
2513
2354
|
const parsedBody = parsedOutput.body;
|
|
2514
|
-
throwDefaultError({
|
|
2355
|
+
return throwDefaultError({
|
|
2515
2356
|
output,
|
|
2516
2357
|
parsedBody,
|
|
2517
|
-
exceptionCtor: __BaseException,
|
|
2518
2358
|
errorCode,
|
|
2519
2359
|
});
|
|
2520
2360
|
}
|
|
@@ -2527,18 +2367,13 @@ export const de_UpdateComponentTypeCommand = async (output, context) => {
|
|
|
2527
2367
|
$metadata: deserializeMetadata(output),
|
|
2528
2368
|
});
|
|
2529
2369
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
contents.state = __expectString(data.state);
|
|
2538
|
-
}
|
|
2539
|
-
if (data.workspaceId != null) {
|
|
2540
|
-
contents.workspaceId = __expectString(data.workspaceId);
|
|
2541
|
-
}
|
|
2370
|
+
const doc = take(data, {
|
|
2371
|
+
arn: __expectString,
|
|
2372
|
+
componentTypeId: __expectString,
|
|
2373
|
+
state: __expectString,
|
|
2374
|
+
workspaceId: __expectString,
|
|
2375
|
+
});
|
|
2376
|
+
Object.assign(contents, doc);
|
|
2542
2377
|
return contents;
|
|
2543
2378
|
};
|
|
2544
2379
|
const de_UpdateComponentTypeCommandError = async (output, context) => {
|
|
@@ -2568,10 +2403,9 @@ const de_UpdateComponentTypeCommandError = async (output, context) => {
|
|
|
2568
2403
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2569
2404
|
default:
|
|
2570
2405
|
const parsedBody = parsedOutput.body;
|
|
2571
|
-
throwDefaultError({
|
|
2406
|
+
return throwDefaultError({
|
|
2572
2407
|
output,
|
|
2573
2408
|
parsedBody,
|
|
2574
|
-
exceptionCtor: __BaseException,
|
|
2575
2409
|
errorCode,
|
|
2576
2410
|
});
|
|
2577
2411
|
}
|
|
@@ -2584,12 +2418,11 @@ export const de_UpdateEntityCommand = async (output, context) => {
|
|
|
2584
2418
|
$metadata: deserializeMetadata(output),
|
|
2585
2419
|
});
|
|
2586
2420
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
}
|
|
2421
|
+
const doc = take(data, {
|
|
2422
|
+
state: __expectString,
|
|
2423
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2424
|
+
});
|
|
2425
|
+
Object.assign(contents, doc);
|
|
2593
2426
|
return contents;
|
|
2594
2427
|
};
|
|
2595
2428
|
const de_UpdateEntityCommandError = async (output, context) => {
|
|
@@ -2622,10 +2455,9 @@ const de_UpdateEntityCommandError = async (output, context) => {
|
|
|
2622
2455
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2623
2456
|
default:
|
|
2624
2457
|
const parsedBody = parsedOutput.body;
|
|
2625
|
-
throwDefaultError({
|
|
2458
|
+
return throwDefaultError({
|
|
2626
2459
|
output,
|
|
2627
2460
|
parsedBody,
|
|
2628
|
-
exceptionCtor: __BaseException,
|
|
2629
2461
|
errorCode,
|
|
2630
2462
|
});
|
|
2631
2463
|
}
|
|
@@ -2638,12 +2470,11 @@ export const de_UpdatePricingPlanCommand = async (output, context) => {
|
|
|
2638
2470
|
$metadata: deserializeMetadata(output),
|
|
2639
2471
|
});
|
|
2640
2472
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
}
|
|
2473
|
+
const doc = take(data, {
|
|
2474
|
+
currentPricingPlan: (_) => de_PricingPlan(_, context),
|
|
2475
|
+
pendingPricingPlan: (_) => de_PricingPlan(_, context),
|
|
2476
|
+
});
|
|
2477
|
+
Object.assign(contents, doc);
|
|
2647
2478
|
return contents;
|
|
2648
2479
|
};
|
|
2649
2480
|
const de_UpdatePricingPlanCommandError = async (output, context) => {
|
|
@@ -2667,10 +2498,9 @@ const de_UpdatePricingPlanCommandError = async (output, context) => {
|
|
|
2667
2498
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2668
2499
|
default:
|
|
2669
2500
|
const parsedBody = parsedOutput.body;
|
|
2670
|
-
throwDefaultError({
|
|
2501
|
+
return throwDefaultError({
|
|
2671
2502
|
output,
|
|
2672
2503
|
parsedBody,
|
|
2673
|
-
exceptionCtor: __BaseException,
|
|
2674
2504
|
errorCode,
|
|
2675
2505
|
});
|
|
2676
2506
|
}
|
|
@@ -2683,9 +2513,10 @@ export const de_UpdateSceneCommand = async (output, context) => {
|
|
|
2683
2513
|
$metadata: deserializeMetadata(output),
|
|
2684
2514
|
});
|
|
2685
2515
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
}
|
|
2516
|
+
const doc = take(data, {
|
|
2517
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2518
|
+
});
|
|
2519
|
+
Object.assign(contents, doc);
|
|
2689
2520
|
return contents;
|
|
2690
2521
|
};
|
|
2691
2522
|
const de_UpdateSceneCommandError = async (output, context) => {
|
|
@@ -2712,10 +2543,9 @@ const de_UpdateSceneCommandError = async (output, context) => {
|
|
|
2712
2543
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2713
2544
|
default:
|
|
2714
2545
|
const parsedBody = parsedOutput.body;
|
|
2715
|
-
throwDefaultError({
|
|
2546
|
+
return throwDefaultError({
|
|
2716
2547
|
output,
|
|
2717
2548
|
parsedBody,
|
|
2718
|
-
exceptionCtor: __BaseException,
|
|
2719
2549
|
errorCode,
|
|
2720
2550
|
});
|
|
2721
2551
|
}
|
|
@@ -2728,9 +2558,10 @@ export const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
|
2728
2558
|
$metadata: deserializeMetadata(output),
|
|
2729
2559
|
});
|
|
2730
2560
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
}
|
|
2561
|
+
const doc = take(data, {
|
|
2562
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2563
|
+
});
|
|
2564
|
+
Object.assign(contents, doc);
|
|
2734
2565
|
return contents;
|
|
2735
2566
|
};
|
|
2736
2567
|
const de_UpdateWorkspaceCommandError = async (output, context) => {
|
|
@@ -2760,21 +2591,21 @@ const de_UpdateWorkspaceCommandError = async (output, context) => {
|
|
|
2760
2591
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2761
2592
|
default:
|
|
2762
2593
|
const parsedBody = parsedOutput.body;
|
|
2763
|
-
throwDefaultError({
|
|
2594
|
+
return throwDefaultError({
|
|
2764
2595
|
output,
|
|
2765
2596
|
parsedBody,
|
|
2766
|
-
exceptionCtor: __BaseException,
|
|
2767
2597
|
errorCode,
|
|
2768
2598
|
});
|
|
2769
2599
|
}
|
|
2770
2600
|
};
|
|
2771
|
-
const
|
|
2601
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
2772
2602
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2773
2603
|
const contents = map({});
|
|
2774
2604
|
const data = parsedOutput.body;
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
}
|
|
2605
|
+
const doc = take(data, {
|
|
2606
|
+
message: __expectString,
|
|
2607
|
+
});
|
|
2608
|
+
Object.assign(contents, doc);
|
|
2778
2609
|
const exception = new AccessDeniedException({
|
|
2779
2610
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2780
2611
|
...contents,
|
|
@@ -2784,9 +2615,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
2784
2615
|
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
2785
2616
|
const contents = map({});
|
|
2786
2617
|
const data = parsedOutput.body;
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
}
|
|
2618
|
+
const doc = take(data, {
|
|
2619
|
+
message: __expectString,
|
|
2620
|
+
});
|
|
2621
|
+
Object.assign(contents, doc);
|
|
2790
2622
|
const exception = new ConflictException({
|
|
2791
2623
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2792
2624
|
...contents,
|
|
@@ -2796,9 +2628,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
2796
2628
|
const de_ConnectorFailureExceptionRes = async (parsedOutput, context) => {
|
|
2797
2629
|
const contents = map({});
|
|
2798
2630
|
const data = parsedOutput.body;
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
}
|
|
2631
|
+
const doc = take(data, {
|
|
2632
|
+
message: __expectString,
|
|
2633
|
+
});
|
|
2634
|
+
Object.assign(contents, doc);
|
|
2802
2635
|
const exception = new ConnectorFailureException({
|
|
2803
2636
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2804
2637
|
...contents,
|
|
@@ -2808,9 +2641,10 @@ const de_ConnectorFailureExceptionRes = async (parsedOutput, context) => {
|
|
|
2808
2641
|
const de_ConnectorTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2809
2642
|
const contents = map({});
|
|
2810
2643
|
const data = parsedOutput.body;
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
}
|
|
2644
|
+
const doc = take(data, {
|
|
2645
|
+
message: __expectString,
|
|
2646
|
+
});
|
|
2647
|
+
Object.assign(contents, doc);
|
|
2814
2648
|
const exception = new ConnectorTimeoutException({
|
|
2815
2649
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2816
2650
|
...contents,
|
|
@@ -2820,9 +2654,10 @@ const de_ConnectorTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
2820
2654
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
2821
2655
|
const contents = map({});
|
|
2822
2656
|
const data = parsedOutput.body;
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
}
|
|
2657
|
+
const doc = take(data, {
|
|
2658
|
+
message: __expectString,
|
|
2659
|
+
});
|
|
2660
|
+
Object.assign(contents, doc);
|
|
2826
2661
|
const exception = new InternalServerException({
|
|
2827
2662
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2828
2663
|
...contents,
|
|
@@ -2832,9 +2667,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
2832
2667
|
const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
2833
2668
|
const contents = map({});
|
|
2834
2669
|
const data = parsedOutput.body;
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
}
|
|
2670
|
+
const doc = take(data, {
|
|
2671
|
+
message: __expectString,
|
|
2672
|
+
});
|
|
2673
|
+
Object.assign(contents, doc);
|
|
2838
2674
|
const exception = new QueryTimeoutException({
|
|
2839
2675
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2840
2676
|
...contents,
|
|
@@ -2844,9 +2680,10 @@ const de_QueryTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
|
2844
2680
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2845
2681
|
const contents = map({});
|
|
2846
2682
|
const data = parsedOutput.body;
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
}
|
|
2683
|
+
const doc = take(data, {
|
|
2684
|
+
message: __expectString,
|
|
2685
|
+
});
|
|
2686
|
+
Object.assign(contents, doc);
|
|
2850
2687
|
const exception = new ResourceNotFoundException({
|
|
2851
2688
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2852
2689
|
...contents,
|
|
@@ -2856,9 +2693,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2856
2693
|
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
2857
2694
|
const contents = map({});
|
|
2858
2695
|
const data = parsedOutput.body;
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
}
|
|
2696
|
+
const doc = take(data, {
|
|
2697
|
+
message: __expectString,
|
|
2698
|
+
});
|
|
2699
|
+
Object.assign(contents, doc);
|
|
2862
2700
|
const exception = new ServiceQuotaExceededException({
|
|
2863
2701
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2864
2702
|
...contents,
|
|
@@ -2868,9 +2706,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2868
2706
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
2869
2707
|
const contents = map({});
|
|
2870
2708
|
const data = parsedOutput.body;
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
}
|
|
2709
|
+
const doc = take(data, {
|
|
2710
|
+
message: __expectString,
|
|
2711
|
+
});
|
|
2712
|
+
Object.assign(contents, doc);
|
|
2874
2713
|
const exception = new ThrottlingException({
|
|
2875
2714
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2876
2715
|
...contents,
|
|
@@ -2880,9 +2719,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
|
2880
2719
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2881
2720
|
const contents = map({});
|
|
2882
2721
|
const data = parsedOutput.body;
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
}
|
|
2722
|
+
const doc = take(data, {
|
|
2723
|
+
message: __expectString,
|
|
2724
|
+
});
|
|
2725
|
+
Object.assign(contents, doc);
|
|
2886
2726
|
const exception = new TooManyTagsException({
|
|
2887
2727
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2888
2728
|
...contents,
|
|
@@ -2892,40 +2732,23 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
2892
2732
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
2893
2733
|
const contents = map({});
|
|
2894
2734
|
const data = parsedOutput.body;
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
}
|
|
2735
|
+
const doc = take(data, {
|
|
2736
|
+
message: __expectString,
|
|
2737
|
+
});
|
|
2738
|
+
Object.assign(contents, doc);
|
|
2898
2739
|
const exception = new ValidationException({
|
|
2899
2740
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2900
2741
|
...contents,
|
|
2901
2742
|
});
|
|
2902
2743
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
2903
2744
|
};
|
|
2904
|
-
const se_ComponentPropertyGroupRequest = (input, context) => {
|
|
2905
|
-
return {
|
|
2906
|
-
...(input.groupType != null && { groupType: input.groupType }),
|
|
2907
|
-
...(input.propertyNames != null && { propertyNames: se_PropertyNames(input.propertyNames, context) }),
|
|
2908
|
-
...(input.updateType != null && { updateType: input.updateType }),
|
|
2909
|
-
};
|
|
2910
|
-
};
|
|
2911
|
-
const se_ComponentPropertyGroupRequests = (input, context) => {
|
|
2912
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2913
|
-
if (value === null) {
|
|
2914
|
-
return acc;
|
|
2915
|
-
}
|
|
2916
|
-
acc[key] = se_ComponentPropertyGroupRequest(value, context);
|
|
2917
|
-
return acc;
|
|
2918
|
-
}, {});
|
|
2919
|
-
};
|
|
2920
2745
|
const se_ComponentRequest = (input, context) => {
|
|
2921
|
-
return {
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
}),
|
|
2928
|
-
};
|
|
2746
|
+
return take(input, {
|
|
2747
|
+
componentTypeId: [],
|
|
2748
|
+
description: [],
|
|
2749
|
+
properties: (_) => se_PropertyRequests(_, context),
|
|
2750
|
+
propertyGroups: _json,
|
|
2751
|
+
});
|
|
2929
2752
|
};
|
|
2930
2753
|
const se_ComponentsMapRequest = (input, context) => {
|
|
2931
2754
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -2937,15 +2760,13 @@ const se_ComponentsMapRequest = (input, context) => {
|
|
|
2937
2760
|
}, {});
|
|
2938
2761
|
};
|
|
2939
2762
|
const se_ComponentUpdateRequest = (input, context) => {
|
|
2940
|
-
return {
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
...(input.updateType != null && { updateType: input.updateType }),
|
|
2948
|
-
};
|
|
2763
|
+
return take(input, {
|
|
2764
|
+
componentTypeId: [],
|
|
2765
|
+
description: [],
|
|
2766
|
+
propertyGroupUpdates: _json,
|
|
2767
|
+
propertyUpdates: (_) => se_PropertyRequests(_, context),
|
|
2768
|
+
updateType: [],
|
|
2769
|
+
});
|
|
2949
2770
|
};
|
|
2950
2771
|
const se_ComponentUpdatesMapRequest = (input, context) => {
|
|
2951
2772
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -2956,44 +2777,27 @@ const se_ComponentUpdatesMapRequest = (input, context) => {
|
|
|
2956
2777
|
return acc;
|
|
2957
2778
|
}, {});
|
|
2958
2779
|
};
|
|
2959
|
-
const se_Configuration = (input, context) => {
|
|
2960
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2961
|
-
if (value === null) {
|
|
2962
|
-
return acc;
|
|
2963
|
-
}
|
|
2964
|
-
acc[key] = value;
|
|
2965
|
-
return acc;
|
|
2966
|
-
}, {});
|
|
2967
|
-
};
|
|
2968
|
-
const se_DataConnector = (input, context) => {
|
|
2969
|
-
return {
|
|
2970
|
-
...(input.isNative != null && { isNative: input.isNative }),
|
|
2971
|
-
...(input.lambda != null && { lambda: se_LambdaFunction(input.lambda, context) }),
|
|
2972
|
-
};
|
|
2973
|
-
};
|
|
2974
2780
|
const se_DataType = (input, context) => {
|
|
2975
|
-
return {
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
};
|
|
2781
|
+
return take(input, {
|
|
2782
|
+
allowedValues: (_) => se_DataValueList(_, context),
|
|
2783
|
+
nestedType: (_) => se_DataType(_, context),
|
|
2784
|
+
relationship: _json,
|
|
2785
|
+
type: [],
|
|
2786
|
+
unitOfMeasure: [],
|
|
2787
|
+
});
|
|
2982
2788
|
};
|
|
2983
2789
|
const se_DataValue = (input, context) => {
|
|
2984
|
-
return {
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
...(input.stringValue != null && { stringValue: input.stringValue }),
|
|
2996
|
-
};
|
|
2790
|
+
return take(input, {
|
|
2791
|
+
booleanValue: [],
|
|
2792
|
+
doubleValue: __serializeFloat,
|
|
2793
|
+
expression: [],
|
|
2794
|
+
integerValue: [],
|
|
2795
|
+
listValue: (_) => se_DataValueList(_, context),
|
|
2796
|
+
longValue: [],
|
|
2797
|
+
mapValue: (_) => se_DataValueMap(_, context),
|
|
2798
|
+
relationshipValue: _json,
|
|
2799
|
+
stringValue: [],
|
|
2800
|
+
});
|
|
2997
2801
|
};
|
|
2998
2802
|
const se_DataValueList = (input, context) => {
|
|
2999
2803
|
return input
|
|
@@ -3011,16 +2815,6 @@ const se_DataValueMap = (input, context) => {
|
|
|
3011
2815
|
return acc;
|
|
3012
2816
|
}, {});
|
|
3013
2817
|
};
|
|
3014
|
-
const se_EntityPropertyReference = (input, context) => {
|
|
3015
|
-
return {
|
|
3016
|
-
...(input.componentName != null && { componentName: input.componentName }),
|
|
3017
|
-
...(input.entityId != null && { entityId: input.entityId }),
|
|
3018
|
-
...(input.externalIdProperty != null && {
|
|
3019
|
-
externalIdProperty: se_ExternalIdProperty(input.externalIdProperty, context),
|
|
3020
|
-
}),
|
|
3021
|
-
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
3022
|
-
};
|
|
3023
|
-
};
|
|
3024
2818
|
const se_Entries = (input, context) => {
|
|
3025
2819
|
return input
|
|
3026
2820
|
.filter((e) => e != null)
|
|
@@ -3028,118 +2822,17 @@ const se_Entries = (input, context) => {
|
|
|
3028
2822
|
return se_PropertyValueEntry(entry, context);
|
|
3029
2823
|
});
|
|
3030
2824
|
};
|
|
3031
|
-
const se_ExtendsFrom = (input, context) => {
|
|
3032
|
-
return input
|
|
3033
|
-
.filter((e) => e != null)
|
|
3034
|
-
.map((entry) => {
|
|
3035
|
-
return entry;
|
|
3036
|
-
});
|
|
3037
|
-
};
|
|
3038
|
-
const se_ExternalIdProperty = (input, context) => {
|
|
3039
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3040
|
-
if (value === null) {
|
|
3041
|
-
return acc;
|
|
3042
|
-
}
|
|
3043
|
-
acc[key] = value;
|
|
3044
|
-
return acc;
|
|
3045
|
-
}, {});
|
|
3046
|
-
};
|
|
3047
|
-
const se_FunctionRequest = (input, context) => {
|
|
3048
|
-
return {
|
|
3049
|
-
...(input.implementedBy != null && { implementedBy: se_DataConnector(input.implementedBy, context) }),
|
|
3050
|
-
...(input.requiredProperties != null && {
|
|
3051
|
-
requiredProperties: se_RequiredProperties(input.requiredProperties, context),
|
|
3052
|
-
}),
|
|
3053
|
-
...(input.scope != null && { scope: input.scope }),
|
|
3054
|
-
};
|
|
3055
|
-
};
|
|
3056
|
-
const se_FunctionsRequest = (input, context) => {
|
|
3057
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3058
|
-
if (value === null) {
|
|
3059
|
-
return acc;
|
|
3060
|
-
}
|
|
3061
|
-
acc[key] = se_FunctionRequest(value, context);
|
|
3062
|
-
return acc;
|
|
3063
|
-
}, {});
|
|
3064
|
-
};
|
|
3065
|
-
const se_InterpolationParameters = (input, context) => {
|
|
3066
|
-
return {
|
|
3067
|
-
...(input.interpolationType != null && { interpolationType: input.interpolationType }),
|
|
3068
|
-
...(input.intervalInSeconds != null && { intervalInSeconds: input.intervalInSeconds }),
|
|
3069
|
-
};
|
|
3070
|
-
};
|
|
3071
|
-
const se_LambdaFunction = (input, context) => {
|
|
3072
|
-
return {
|
|
3073
|
-
...(input.arn != null && { arn: input.arn }),
|
|
3074
|
-
};
|
|
3075
|
-
};
|
|
3076
|
-
const se_ListComponentTypesFilter = (input, context) => {
|
|
3077
|
-
return ListComponentTypesFilter.visit(input, {
|
|
3078
|
-
extendsFrom: (value) => ({ extendsFrom: value }),
|
|
3079
|
-
isAbstract: (value) => ({ isAbstract: value }),
|
|
3080
|
-
namespace: (value) => ({ namespace: value }),
|
|
3081
|
-
_: (name, value) => ({ name: value }),
|
|
3082
|
-
});
|
|
3083
|
-
};
|
|
3084
|
-
const se_ListComponentTypesFilters = (input, context) => {
|
|
3085
|
-
return input
|
|
3086
|
-
.filter((e) => e != null)
|
|
3087
|
-
.map((entry) => {
|
|
3088
|
-
return se_ListComponentTypesFilter(entry, context);
|
|
3089
|
-
});
|
|
3090
|
-
};
|
|
3091
|
-
const se_ListEntitiesFilter = (input, context) => {
|
|
3092
|
-
return ListEntitiesFilter.visit(input, {
|
|
3093
|
-
componentTypeId: (value) => ({ componentTypeId: value }),
|
|
3094
|
-
externalId: (value) => ({ externalId: value }),
|
|
3095
|
-
parentEntityId: (value) => ({ parentEntityId: value }),
|
|
3096
|
-
_: (name, value) => ({ name: value }),
|
|
3097
|
-
});
|
|
3098
|
-
};
|
|
3099
|
-
const se_ListEntitiesFilters = (input, context) => {
|
|
3100
|
-
return input
|
|
3101
|
-
.filter((e) => e != null)
|
|
3102
|
-
.map((entry) => {
|
|
3103
|
-
return se_ListEntitiesFilter(entry, context);
|
|
3104
|
-
});
|
|
3105
|
-
};
|
|
3106
|
-
const se_OrderBy = (input, context) => {
|
|
3107
|
-
return {
|
|
3108
|
-
...(input.order != null && { order: input.order }),
|
|
3109
|
-
...(input.propertyName != null && { propertyName: input.propertyName }),
|
|
3110
|
-
};
|
|
3111
|
-
};
|
|
3112
|
-
const se_OrderByList = (input, context) => {
|
|
3113
|
-
return input
|
|
3114
|
-
.filter((e) => e != null)
|
|
3115
|
-
.map((entry) => {
|
|
3116
|
-
return se_OrderBy(entry, context);
|
|
3117
|
-
});
|
|
3118
|
-
};
|
|
3119
|
-
const se_ParentEntityUpdateRequest = (input, context) => {
|
|
3120
|
-
return {
|
|
3121
|
-
...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
|
|
3122
|
-
...(input.updateType != null && { updateType: input.updateType }),
|
|
3123
|
-
};
|
|
3124
|
-
};
|
|
3125
|
-
const se_PricingBundles = (input, context) => {
|
|
3126
|
-
return input
|
|
3127
|
-
.filter((e) => e != null)
|
|
3128
|
-
.map((entry) => {
|
|
3129
|
-
return entry;
|
|
3130
|
-
});
|
|
3131
|
-
};
|
|
3132
2825
|
const se_PropertyDefinitionRequest = (input, context) => {
|
|
3133
|
-
return {
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
};
|
|
2826
|
+
return take(input, {
|
|
2827
|
+
configuration: _json,
|
|
2828
|
+
dataType: (_) => se_DataType(_, context),
|
|
2829
|
+
defaultValue: (_) => se_DataValue(_, context),
|
|
2830
|
+
displayName: [],
|
|
2831
|
+
isExternalId: [],
|
|
2832
|
+
isRequiredInEntity: [],
|
|
2833
|
+
isStoredExternally: [],
|
|
2834
|
+
isTimeSeries: [],
|
|
2835
|
+
});
|
|
3143
2836
|
};
|
|
3144
2837
|
const se_PropertyDefinitionsRequest = (input, context) => {
|
|
3145
2838
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -3151,11 +2844,11 @@ const se_PropertyDefinitionsRequest = (input, context) => {
|
|
|
3151
2844
|
}, {});
|
|
3152
2845
|
};
|
|
3153
2846
|
const se_PropertyFilter = (input, context) => {
|
|
3154
|
-
return {
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
};
|
|
2847
|
+
return take(input, {
|
|
2848
|
+
operator: [],
|
|
2849
|
+
propertyName: [],
|
|
2850
|
+
value: (_) => se_DataValue(_, context),
|
|
2851
|
+
});
|
|
3159
2852
|
};
|
|
3160
2853
|
const se_PropertyFilters = (input, context) => {
|
|
3161
2854
|
return input
|
|
@@ -3164,34 +2857,12 @@ const se_PropertyFilters = (input, context) => {
|
|
|
3164
2857
|
return se_PropertyFilter(entry, context);
|
|
3165
2858
|
});
|
|
3166
2859
|
};
|
|
3167
|
-
const se_PropertyGroupRequest = (input, context) => {
|
|
3168
|
-
return {
|
|
3169
|
-
...(input.groupType != null && { groupType: input.groupType }),
|
|
3170
|
-
...(input.propertyNames != null && { propertyNames: se_PropertyNames(input.propertyNames, context) }),
|
|
3171
|
-
};
|
|
3172
|
-
};
|
|
3173
|
-
const se_PropertyGroupsRequest = (input, context) => {
|
|
3174
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3175
|
-
if (value === null) {
|
|
3176
|
-
return acc;
|
|
3177
|
-
}
|
|
3178
|
-
acc[key] = se_PropertyGroupRequest(value, context);
|
|
3179
|
-
return acc;
|
|
3180
|
-
}, {});
|
|
3181
|
-
};
|
|
3182
|
-
const se_PropertyNames = (input, context) => {
|
|
3183
|
-
return input
|
|
3184
|
-
.filter((e) => e != null)
|
|
3185
|
-
.map((entry) => {
|
|
3186
|
-
return entry;
|
|
3187
|
-
});
|
|
3188
|
-
};
|
|
3189
2860
|
const se_PropertyRequest = (input, context) => {
|
|
3190
|
-
return {
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
};
|
|
2861
|
+
return take(input, {
|
|
2862
|
+
definition: (_) => se_PropertyDefinitionRequest(_, context),
|
|
2863
|
+
updateType: [],
|
|
2864
|
+
value: (_) => se_DataValue(_, context),
|
|
2865
|
+
});
|
|
3195
2866
|
};
|
|
3196
2867
|
const se_PropertyRequests = (input, context) => {
|
|
3197
2868
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
@@ -3203,19 +2874,17 @@ const se_PropertyRequests = (input, context) => {
|
|
|
3203
2874
|
}, {});
|
|
3204
2875
|
};
|
|
3205
2876
|
const se_PropertyValue = (input, context) => {
|
|
3206
|
-
return {
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
};
|
|
2877
|
+
return take(input, {
|
|
2878
|
+
time: [],
|
|
2879
|
+
timestamp: (_) => Math.round(_.getTime() / 1000),
|
|
2880
|
+
value: (_) => se_DataValue(_, context),
|
|
2881
|
+
});
|
|
3211
2882
|
};
|
|
3212
2883
|
const se_PropertyValueEntry = (input, context) => {
|
|
3213
|
-
return {
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
...(input.propertyValues != null && { propertyValues: se_PropertyValues(input.propertyValues, context) }),
|
|
3218
|
-
};
|
|
2884
|
+
return take(input, {
|
|
2885
|
+
entityPropertyReference: _json,
|
|
2886
|
+
propertyValues: (_) => se_PropertyValues(_, context),
|
|
2887
|
+
});
|
|
3219
2888
|
};
|
|
3220
2889
|
const se_PropertyValues = (input, context) => {
|
|
3221
2890
|
return input
|
|
@@ -3224,141 +2893,35 @@ const se_PropertyValues = (input, context) => {
|
|
|
3224
2893
|
return se_PropertyValue(entry, context);
|
|
3225
2894
|
});
|
|
3226
2895
|
};
|
|
3227
|
-
const se_Relationship = (input, context) => {
|
|
3228
|
-
return {
|
|
3229
|
-
...(input.relationshipType != null && { relationshipType: input.relationshipType }),
|
|
3230
|
-
...(input.targetComponentTypeId != null && { targetComponentTypeId: input.targetComponentTypeId }),
|
|
3231
|
-
};
|
|
3232
|
-
};
|
|
3233
|
-
const se_RelationshipValue = (input, context) => {
|
|
3234
|
-
return {
|
|
3235
|
-
...(input.targetComponentName != null && { targetComponentName: input.targetComponentName }),
|
|
3236
|
-
...(input.targetEntityId != null && { targetEntityId: input.targetEntityId }),
|
|
3237
|
-
};
|
|
3238
|
-
};
|
|
3239
|
-
const se_RequiredProperties = (input, context) => {
|
|
3240
|
-
return input
|
|
3241
|
-
.filter((e) => e != null)
|
|
3242
|
-
.map((entry) => {
|
|
3243
|
-
return entry;
|
|
3244
|
-
});
|
|
3245
|
-
};
|
|
3246
|
-
const se_SceneCapabilities = (input, context) => {
|
|
3247
|
-
return input
|
|
3248
|
-
.filter((e) => e != null)
|
|
3249
|
-
.map((entry) => {
|
|
3250
|
-
return entry;
|
|
3251
|
-
});
|
|
3252
|
-
};
|
|
3253
|
-
const se_SceneMetadataMap = (input, context) => {
|
|
3254
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3255
|
-
if (value === null) {
|
|
3256
|
-
return acc;
|
|
3257
|
-
}
|
|
3258
|
-
acc[key] = value;
|
|
3259
|
-
return acc;
|
|
3260
|
-
}, {});
|
|
3261
|
-
};
|
|
3262
|
-
const se_SelectedPropertyList = (input, context) => {
|
|
3263
|
-
return input
|
|
3264
|
-
.filter((e) => e != null)
|
|
3265
|
-
.map((entry) => {
|
|
3266
|
-
return entry;
|
|
3267
|
-
});
|
|
3268
|
-
};
|
|
3269
|
-
const se_SyncResourceFilter = (input, context) => {
|
|
3270
|
-
return SyncResourceFilter.visit(input, {
|
|
3271
|
-
externalId: (value) => ({ externalId: value }),
|
|
3272
|
-
resourceId: (value) => ({ resourceId: value }),
|
|
3273
|
-
resourceType: (value) => ({ resourceType: value }),
|
|
3274
|
-
state: (value) => ({ state: value }),
|
|
3275
|
-
_: (name, value) => ({ name: value }),
|
|
3276
|
-
});
|
|
3277
|
-
};
|
|
3278
|
-
const se_SyncResourceFilters = (input, context) => {
|
|
3279
|
-
return input
|
|
3280
|
-
.filter((e) => e != null)
|
|
3281
|
-
.map((entry) => {
|
|
3282
|
-
return se_SyncResourceFilter(entry, context);
|
|
3283
|
-
});
|
|
3284
|
-
};
|
|
3285
2896
|
const se_TabularConditions = (input, context) => {
|
|
3286
|
-
return {
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
};
|
|
3290
|
-
};
|
|
3291
|
-
const se_TagMap = (input, context) => {
|
|
3292
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3293
|
-
if (value === null) {
|
|
3294
|
-
return acc;
|
|
3295
|
-
}
|
|
3296
|
-
acc[key] = value;
|
|
3297
|
-
return acc;
|
|
3298
|
-
}, {});
|
|
2897
|
+
return take(input, {
|
|
2898
|
+
orderBy: _json,
|
|
2899
|
+
propertyFilters: (_) => se_PropertyFilters(_, context),
|
|
2900
|
+
});
|
|
3299
2901
|
};
|
|
3300
2902
|
const de_BatchPutPropertyError = (output, context) => {
|
|
3301
|
-
return {
|
|
3302
|
-
entry:
|
|
3303
|
-
errorCode: __expectString
|
|
3304
|
-
errorMessage: __expectString
|
|
3305
|
-
};
|
|
2903
|
+
return take(output, {
|
|
2904
|
+
entry: (_) => de_PropertyValueEntry(_, context),
|
|
2905
|
+
errorCode: __expectString,
|
|
2906
|
+
errorMessage: __expectString,
|
|
2907
|
+
});
|
|
3306
2908
|
};
|
|
3307
2909
|
const de_BatchPutPropertyErrorEntry = (output, context) => {
|
|
3308
|
-
return {
|
|
3309
|
-
errors:
|
|
3310
|
-
};
|
|
3311
|
-
};
|
|
3312
|
-
const de_BundleInformation = (output, context) => {
|
|
3313
|
-
return {
|
|
3314
|
-
bundleNames: output.bundleNames != null ? de_PricingBundles(output.bundleNames, context) : undefined,
|
|
3315
|
-
pricingTier: __expectString(output.pricingTier),
|
|
3316
|
-
};
|
|
3317
|
-
};
|
|
3318
|
-
const de_ColumnDescription = (output, context) => {
|
|
3319
|
-
return {
|
|
3320
|
-
name: __expectString(output.name),
|
|
3321
|
-
type: __expectString(output.type),
|
|
3322
|
-
};
|
|
3323
|
-
};
|
|
3324
|
-
const de_ColumnDescriptions = (output, context) => {
|
|
3325
|
-
const retVal = (output || [])
|
|
3326
|
-
.filter((e) => e != null)
|
|
3327
|
-
.map((entry) => {
|
|
3328
|
-
if (entry === null) {
|
|
3329
|
-
return null;
|
|
3330
|
-
}
|
|
3331
|
-
return de_ColumnDescription(entry, context);
|
|
2910
|
+
return take(output, {
|
|
2911
|
+
errors: (_) => de_Errors(_, context),
|
|
3332
2912
|
});
|
|
3333
|
-
return retVal;
|
|
3334
|
-
};
|
|
3335
|
-
const de_ComponentPropertyGroupResponse = (output, context) => {
|
|
3336
|
-
return {
|
|
3337
|
-
groupType: __expectString(output.groupType),
|
|
3338
|
-
isInherited: __expectBoolean(output.isInherited),
|
|
3339
|
-
propertyNames: output.propertyNames != null ? de_PropertyNames(output.propertyNames, context) : undefined,
|
|
3340
|
-
};
|
|
3341
|
-
};
|
|
3342
|
-
const de_ComponentPropertyGroupResponses = (output, context) => {
|
|
3343
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3344
|
-
if (value === null) {
|
|
3345
|
-
return acc;
|
|
3346
|
-
}
|
|
3347
|
-
acc[key] = de_ComponentPropertyGroupResponse(value, context);
|
|
3348
|
-
return acc;
|
|
3349
|
-
}, {});
|
|
3350
2913
|
};
|
|
3351
2914
|
const de_ComponentResponse = (output, context) => {
|
|
3352
|
-
return {
|
|
3353
|
-
componentName: __expectString
|
|
3354
|
-
componentTypeId: __expectString
|
|
3355
|
-
definedIn: __expectString
|
|
3356
|
-
description: __expectString
|
|
3357
|
-
properties:
|
|
3358
|
-
propertyGroups:
|
|
3359
|
-
status:
|
|
3360
|
-
syncSource: __expectString
|
|
3361
|
-
};
|
|
2915
|
+
return take(output, {
|
|
2916
|
+
componentName: __expectString,
|
|
2917
|
+
componentTypeId: __expectString,
|
|
2918
|
+
definedIn: __expectString,
|
|
2919
|
+
description: __expectString,
|
|
2920
|
+
properties: (_) => de_PropertyResponses(_, context),
|
|
2921
|
+
propertyGroups: _json,
|
|
2922
|
+
status: _json,
|
|
2923
|
+
syncSource: __expectString,
|
|
2924
|
+
});
|
|
3362
2925
|
};
|
|
3363
2926
|
const de_ComponentsMap = (output, context) => {
|
|
3364
2927
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3373,72 +2936,47 @@ const de_ComponentTypeSummaries = (output, context) => {
|
|
|
3373
2936
|
const retVal = (output || [])
|
|
3374
2937
|
.filter((e) => e != null)
|
|
3375
2938
|
.map((entry) => {
|
|
3376
|
-
if (entry === null) {
|
|
3377
|
-
return null;
|
|
3378
|
-
}
|
|
3379
2939
|
return de_ComponentTypeSummary(entry, context);
|
|
3380
2940
|
});
|
|
3381
2941
|
return retVal;
|
|
3382
2942
|
};
|
|
3383
2943
|
const de_ComponentTypeSummary = (output, context) => {
|
|
3384
|
-
return {
|
|
3385
|
-
arn: __expectString
|
|
3386
|
-
componentTypeId: __expectString
|
|
3387
|
-
componentTypeName: __expectString
|
|
3388
|
-
creationDateTime:
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
updateDateTime: output.updateDateTime != null
|
|
3394
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3395
|
-
: undefined,
|
|
3396
|
-
};
|
|
3397
|
-
};
|
|
3398
|
-
const de_Configuration = (output, context) => {
|
|
3399
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3400
|
-
if (value === null) {
|
|
3401
|
-
return acc;
|
|
3402
|
-
}
|
|
3403
|
-
acc[key] = __expectString(value);
|
|
3404
|
-
return acc;
|
|
3405
|
-
}, {});
|
|
3406
|
-
};
|
|
3407
|
-
const de_DataConnector = (output, context) => {
|
|
3408
|
-
return {
|
|
3409
|
-
isNative: __expectBoolean(output.isNative),
|
|
3410
|
-
lambda: output.lambda != null ? de_LambdaFunction(output.lambda, context) : undefined,
|
|
3411
|
-
};
|
|
2944
|
+
return take(output, {
|
|
2945
|
+
arn: __expectString,
|
|
2946
|
+
componentTypeId: __expectString,
|
|
2947
|
+
componentTypeName: __expectString,
|
|
2948
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2949
|
+
description: __expectString,
|
|
2950
|
+
status: _json,
|
|
2951
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2952
|
+
});
|
|
3412
2953
|
};
|
|
3413
2954
|
const de_DataType = (output, context) => {
|
|
3414
|
-
return {
|
|
3415
|
-
allowedValues:
|
|
3416
|
-
nestedType:
|
|
3417
|
-
relationship:
|
|
3418
|
-
type: __expectString
|
|
3419
|
-
unitOfMeasure: __expectString
|
|
3420
|
-
};
|
|
2955
|
+
return take(output, {
|
|
2956
|
+
allowedValues: (_) => de_DataValueList(_, context),
|
|
2957
|
+
nestedType: (_) => de_DataType(_, context),
|
|
2958
|
+
relationship: _json,
|
|
2959
|
+
type: __expectString,
|
|
2960
|
+
unitOfMeasure: __expectString,
|
|
2961
|
+
});
|
|
3421
2962
|
};
|
|
3422
2963
|
const de_DataValue = (output, context) => {
|
|
3423
|
-
return {
|
|
3424
|
-
booleanValue: __expectBoolean
|
|
3425
|
-
doubleValue: __limitedParseDouble
|
|
3426
|
-
expression: __expectString
|
|
3427
|
-
integerValue: __expectInt32
|
|
3428
|
-
listValue:
|
|
3429
|
-
longValue: __expectLong
|
|
3430
|
-
mapValue:
|
|
3431
|
-
relationshipValue:
|
|
3432
|
-
stringValue: __expectString
|
|
3433
|
-
};
|
|
2964
|
+
return take(output, {
|
|
2965
|
+
booleanValue: __expectBoolean,
|
|
2966
|
+
doubleValue: __limitedParseDouble,
|
|
2967
|
+
expression: __expectString,
|
|
2968
|
+
integerValue: __expectInt32,
|
|
2969
|
+
listValue: (_) => de_DataValueList(_, context),
|
|
2970
|
+
longValue: __expectLong,
|
|
2971
|
+
mapValue: (_) => de_DataValueMap(_, context),
|
|
2972
|
+
relationshipValue: _json,
|
|
2973
|
+
stringValue: __expectString,
|
|
2974
|
+
});
|
|
3434
2975
|
};
|
|
3435
2976
|
const de_DataValueList = (output, context) => {
|
|
3436
2977
|
const retVal = (output || [])
|
|
3437
2978
|
.filter((e) => e != null)
|
|
3438
2979
|
.map((entry) => {
|
|
3439
|
-
if (entry === null) {
|
|
3440
|
-
return null;
|
|
3441
|
-
}
|
|
3442
2980
|
return de_DataValue(entry, context);
|
|
3443
2981
|
});
|
|
3444
2982
|
return retVal;
|
|
@@ -3452,55 +2990,31 @@ const de_DataValueMap = (output, context) => {
|
|
|
3452
2990
|
return acc;
|
|
3453
2991
|
}, {});
|
|
3454
2992
|
};
|
|
3455
|
-
const de_EntityPropertyReference = (output, context) => {
|
|
3456
|
-
return {
|
|
3457
|
-
componentName: __expectString(output.componentName),
|
|
3458
|
-
entityId: __expectString(output.entityId),
|
|
3459
|
-
externalIdProperty: output.externalIdProperty != null ? de_ExternalIdProperty(output.externalIdProperty, context) : undefined,
|
|
3460
|
-
propertyName: __expectString(output.propertyName),
|
|
3461
|
-
};
|
|
3462
|
-
};
|
|
3463
2993
|
const de_EntitySummaries = (output, context) => {
|
|
3464
2994
|
const retVal = (output || [])
|
|
3465
2995
|
.filter((e) => e != null)
|
|
3466
2996
|
.map((entry) => {
|
|
3467
|
-
if (entry === null) {
|
|
3468
|
-
return null;
|
|
3469
|
-
}
|
|
3470
2997
|
return de_EntitySummary(entry, context);
|
|
3471
2998
|
});
|
|
3472
2999
|
return retVal;
|
|
3473
3000
|
};
|
|
3474
3001
|
const de_EntitySummary = (output, context) => {
|
|
3475
|
-
return {
|
|
3476
|
-
arn: __expectString
|
|
3477
|
-
creationDateTime:
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
updateDateTime: output.updateDateTime != null
|
|
3487
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3488
|
-
: undefined,
|
|
3489
|
-
};
|
|
3490
|
-
};
|
|
3491
|
-
const de_ErrorDetails = (output, context) => {
|
|
3492
|
-
return {
|
|
3493
|
-
code: __expectString(output.code),
|
|
3494
|
-
message: __expectString(output.message),
|
|
3495
|
-
};
|
|
3002
|
+
return take(output, {
|
|
3003
|
+
arn: __expectString,
|
|
3004
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3005
|
+
description: __expectString,
|
|
3006
|
+
entityId: __expectString,
|
|
3007
|
+
entityName: __expectString,
|
|
3008
|
+
hasChildEntities: __expectBoolean,
|
|
3009
|
+
parentEntityId: __expectString,
|
|
3010
|
+
status: _json,
|
|
3011
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3012
|
+
});
|
|
3496
3013
|
};
|
|
3497
3014
|
const de_ErrorEntries = (output, context) => {
|
|
3498
3015
|
const retVal = (output || [])
|
|
3499
3016
|
.filter((e) => e != null)
|
|
3500
3017
|
.map((entry) => {
|
|
3501
|
-
if (entry === null) {
|
|
3502
|
-
return null;
|
|
3503
|
-
}
|
|
3504
3018
|
return de_BatchPutPropertyErrorEntry(entry, context);
|
|
3505
3019
|
});
|
|
3506
3020
|
return retVal;
|
|
@@ -3509,103 +3023,34 @@ const de_Errors = (output, context) => {
|
|
|
3509
3023
|
const retVal = (output || [])
|
|
3510
3024
|
.filter((e) => e != null)
|
|
3511
3025
|
.map((entry) => {
|
|
3512
|
-
if (entry === null) {
|
|
3513
|
-
return null;
|
|
3514
|
-
}
|
|
3515
3026
|
return de_BatchPutPropertyError(entry, context);
|
|
3516
3027
|
});
|
|
3517
3028
|
return retVal;
|
|
3518
3029
|
};
|
|
3519
|
-
const de_ExtendsFrom = (output, context) => {
|
|
3520
|
-
const retVal = (output || [])
|
|
3521
|
-
.filter((e) => e != null)
|
|
3522
|
-
.map((entry) => {
|
|
3523
|
-
if (entry === null) {
|
|
3524
|
-
return null;
|
|
3525
|
-
}
|
|
3526
|
-
return __expectString(entry);
|
|
3527
|
-
});
|
|
3528
|
-
return retVal;
|
|
3529
|
-
};
|
|
3530
|
-
const de_ExternalIdProperty = (output, context) => {
|
|
3531
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3532
|
-
if (value === null) {
|
|
3533
|
-
return acc;
|
|
3534
|
-
}
|
|
3535
|
-
acc[key] = __expectString(value);
|
|
3536
|
-
return acc;
|
|
3537
|
-
}, {});
|
|
3538
|
-
};
|
|
3539
|
-
const de_FunctionResponse = (output, context) => {
|
|
3540
|
-
return {
|
|
3541
|
-
implementedBy: output.implementedBy != null ? de_DataConnector(output.implementedBy, context) : undefined,
|
|
3542
|
-
isInherited: __expectBoolean(output.isInherited),
|
|
3543
|
-
requiredProperties: output.requiredProperties != null ? de_RequiredProperties(output.requiredProperties, context) : undefined,
|
|
3544
|
-
scope: __expectString(output.scope),
|
|
3545
|
-
};
|
|
3546
|
-
};
|
|
3547
|
-
const de_FunctionsResponse = (output, context) => {
|
|
3548
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3549
|
-
if (value === null) {
|
|
3550
|
-
return acc;
|
|
3551
|
-
}
|
|
3552
|
-
acc[key] = de_FunctionResponse(value, context);
|
|
3553
|
-
return acc;
|
|
3554
|
-
}, {});
|
|
3555
|
-
};
|
|
3556
|
-
const de_GeneratedSceneMetadataMap = (output, context) => {
|
|
3557
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3558
|
-
if (value === null) {
|
|
3559
|
-
return acc;
|
|
3560
|
-
}
|
|
3561
|
-
acc[key] = __expectString(value);
|
|
3562
|
-
return acc;
|
|
3563
|
-
}, {});
|
|
3564
|
-
};
|
|
3565
|
-
const de_LambdaFunction = (output, context) => {
|
|
3566
|
-
return {
|
|
3567
|
-
arn: __expectString(output.arn),
|
|
3568
|
-
};
|
|
3569
|
-
};
|
|
3570
|
-
const de_PricingBundles = (output, context) => {
|
|
3571
|
-
const retVal = (output || [])
|
|
3572
|
-
.filter((e) => e != null)
|
|
3573
|
-
.map((entry) => {
|
|
3574
|
-
if (entry === null) {
|
|
3575
|
-
return null;
|
|
3576
|
-
}
|
|
3577
|
-
return __expectString(entry);
|
|
3578
|
-
});
|
|
3579
|
-
return retVal;
|
|
3580
|
-
};
|
|
3581
3030
|
const de_PricingPlan = (output, context) => {
|
|
3582
|
-
return {
|
|
3583
|
-
billableEntityCount: __expectLong
|
|
3584
|
-
bundleInformation:
|
|
3585
|
-
effectiveDateTime:
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3591
|
-
: undefined,
|
|
3592
|
-
updateReason: __expectString(output.updateReason),
|
|
3593
|
-
};
|
|
3031
|
+
return take(output, {
|
|
3032
|
+
billableEntityCount: __expectLong,
|
|
3033
|
+
bundleInformation: _json,
|
|
3034
|
+
effectiveDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3035
|
+
pricingMode: __expectString,
|
|
3036
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3037
|
+
updateReason: __expectString,
|
|
3038
|
+
});
|
|
3594
3039
|
};
|
|
3595
3040
|
const de_PropertyDefinitionResponse = (output, context) => {
|
|
3596
|
-
return {
|
|
3597
|
-
configuration:
|
|
3598
|
-
dataType:
|
|
3599
|
-
defaultValue:
|
|
3600
|
-
displayName: __expectString
|
|
3601
|
-
isExternalId: __expectBoolean
|
|
3602
|
-
isFinal: __expectBoolean
|
|
3603
|
-
isImported: __expectBoolean
|
|
3604
|
-
isInherited: __expectBoolean
|
|
3605
|
-
isRequiredInEntity: __expectBoolean
|
|
3606
|
-
isStoredExternally: __expectBoolean
|
|
3607
|
-
isTimeSeries: __expectBoolean
|
|
3608
|
-
};
|
|
3041
|
+
return take(output, {
|
|
3042
|
+
configuration: _json,
|
|
3043
|
+
dataType: (_) => de_DataType(_, context),
|
|
3044
|
+
defaultValue: (_) => de_DataValue(_, context),
|
|
3045
|
+
displayName: __expectString,
|
|
3046
|
+
isExternalId: __expectBoolean,
|
|
3047
|
+
isFinal: __expectBoolean,
|
|
3048
|
+
isImported: __expectBoolean,
|
|
3049
|
+
isInherited: __expectBoolean,
|
|
3050
|
+
isRequiredInEntity: __expectBoolean,
|
|
3051
|
+
isStoredExternally: __expectBoolean,
|
|
3052
|
+
isTimeSeries: __expectBoolean,
|
|
3053
|
+
});
|
|
3609
3054
|
};
|
|
3610
3055
|
const de_PropertyDefinitionsResponse = (output, context) => {
|
|
3611
3056
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3616,27 +3061,11 @@ const de_PropertyDefinitionsResponse = (output, context) => {
|
|
|
3616
3061
|
return acc;
|
|
3617
3062
|
}, {});
|
|
3618
3063
|
};
|
|
3619
|
-
const de_PropertyGroupResponse = (output, context) => {
|
|
3620
|
-
return {
|
|
3621
|
-
groupType: __expectString(output.groupType),
|
|
3622
|
-
isInherited: __expectBoolean(output.isInherited),
|
|
3623
|
-
propertyNames: output.propertyNames != null ? de_PropertyNames(output.propertyNames, context) : undefined,
|
|
3624
|
-
};
|
|
3625
|
-
};
|
|
3626
|
-
const de_PropertyGroupsResponse = (output, context) => {
|
|
3627
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3628
|
-
if (value === null) {
|
|
3629
|
-
return acc;
|
|
3630
|
-
}
|
|
3631
|
-
acc[key] = de_PropertyGroupResponse(value, context);
|
|
3632
|
-
return acc;
|
|
3633
|
-
}, {});
|
|
3634
|
-
};
|
|
3635
3064
|
const de_PropertyLatestValue = (output, context) => {
|
|
3636
|
-
return {
|
|
3637
|
-
propertyReference:
|
|
3638
|
-
propertyValue:
|
|
3639
|
-
};
|
|
3065
|
+
return take(output, {
|
|
3066
|
+
propertyReference: _json,
|
|
3067
|
+
propertyValue: (_) => de_DataValue(_, context),
|
|
3068
|
+
});
|
|
3640
3069
|
};
|
|
3641
3070
|
const de_PropertyLatestValueMap = (output, context) => {
|
|
3642
3071
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3647,22 +3076,11 @@ const de_PropertyLatestValueMap = (output, context) => {
|
|
|
3647
3076
|
return acc;
|
|
3648
3077
|
}, {});
|
|
3649
3078
|
};
|
|
3650
|
-
const de_PropertyNames = (output, context) => {
|
|
3651
|
-
const retVal = (output || [])
|
|
3652
|
-
.filter((e) => e != null)
|
|
3653
|
-
.map((entry) => {
|
|
3654
|
-
if (entry === null) {
|
|
3655
|
-
return null;
|
|
3656
|
-
}
|
|
3657
|
-
return __expectString(entry);
|
|
3658
|
-
});
|
|
3659
|
-
return retVal;
|
|
3660
|
-
};
|
|
3661
3079
|
const de_PropertyResponse = (output, context) => {
|
|
3662
|
-
return {
|
|
3663
|
-
definition:
|
|
3664
|
-
value:
|
|
3665
|
-
};
|
|
3080
|
+
return take(output, {
|
|
3081
|
+
definition: (_) => de_PropertyDefinitionResponse(_, context),
|
|
3082
|
+
value: (_) => de_DataValue(_, context),
|
|
3083
|
+
});
|
|
3666
3084
|
};
|
|
3667
3085
|
const de_PropertyResponses = (output, context) => {
|
|
3668
3086
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3683,35 +3101,28 @@ const de_PropertyTableValue = (output, context) => {
|
|
|
3683
3101
|
}, {});
|
|
3684
3102
|
};
|
|
3685
3103
|
const de_PropertyValue = (output, context) => {
|
|
3686
|
-
return {
|
|
3687
|
-
time: __expectString
|
|
3688
|
-
timestamp:
|
|
3689
|
-
value:
|
|
3690
|
-
};
|
|
3104
|
+
return take(output, {
|
|
3105
|
+
time: __expectString,
|
|
3106
|
+
timestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3107
|
+
value: (_) => de_DataValue(_, context),
|
|
3108
|
+
});
|
|
3691
3109
|
};
|
|
3692
3110
|
const de_PropertyValueEntry = (output, context) => {
|
|
3693
|
-
return {
|
|
3694
|
-
entityPropertyReference:
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
propertyValues: output.propertyValues != null ? de_PropertyValues(output.propertyValues, context) : undefined,
|
|
3698
|
-
};
|
|
3111
|
+
return take(output, {
|
|
3112
|
+
entityPropertyReference: _json,
|
|
3113
|
+
propertyValues: (_) => de_PropertyValues(_, context),
|
|
3114
|
+
});
|
|
3699
3115
|
};
|
|
3700
3116
|
const de_PropertyValueHistory = (output, context) => {
|
|
3701
|
-
return {
|
|
3702
|
-
entityPropertyReference:
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
values: output.values != null ? de_Values(output.values, context) : undefined,
|
|
3706
|
-
};
|
|
3117
|
+
return take(output, {
|
|
3118
|
+
entityPropertyReference: _json,
|
|
3119
|
+
values: (_) => de_Values(_, context),
|
|
3120
|
+
});
|
|
3707
3121
|
};
|
|
3708
3122
|
const de_PropertyValueList = (output, context) => {
|
|
3709
3123
|
const retVal = (output || [])
|
|
3710
3124
|
.filter((e) => e != null)
|
|
3711
3125
|
.map((entry) => {
|
|
3712
|
-
if (entry === null) {
|
|
3713
|
-
return null;
|
|
3714
|
-
}
|
|
3715
3126
|
return de_PropertyValueHistory(entry, context);
|
|
3716
3127
|
});
|
|
3717
3128
|
return retVal;
|
|
@@ -3720,9 +3131,6 @@ const de_PropertyValues = (output, context) => {
|
|
|
3720
3131
|
const retVal = (output || [])
|
|
3721
3132
|
.filter((e) => e != null)
|
|
3722
3133
|
.map((entry) => {
|
|
3723
|
-
if (entry === null) {
|
|
3724
|
-
return null;
|
|
3725
|
-
}
|
|
3726
3134
|
return de_PropertyValue(entry, context);
|
|
3727
3135
|
});
|
|
3728
3136
|
return retVal;
|
|
@@ -3730,41 +3138,15 @@ const de_PropertyValues = (output, context) => {
|
|
|
3730
3138
|
const de_QueryResultValue = (output, context) => {
|
|
3731
3139
|
return output;
|
|
3732
3140
|
};
|
|
3733
|
-
const de_Relationship = (output, context) => {
|
|
3734
|
-
return {
|
|
3735
|
-
relationshipType: __expectString(output.relationshipType),
|
|
3736
|
-
targetComponentTypeId: __expectString(output.targetComponentTypeId),
|
|
3737
|
-
};
|
|
3738
|
-
};
|
|
3739
|
-
const de_RelationshipValue = (output, context) => {
|
|
3740
|
-
return {
|
|
3741
|
-
targetComponentName: __expectString(output.targetComponentName),
|
|
3742
|
-
targetEntityId: __expectString(output.targetEntityId),
|
|
3743
|
-
};
|
|
3744
|
-
};
|
|
3745
|
-
const de_RequiredProperties = (output, context) => {
|
|
3746
|
-
const retVal = (output || [])
|
|
3747
|
-
.filter((e) => e != null)
|
|
3748
|
-
.map((entry) => {
|
|
3749
|
-
if (entry === null) {
|
|
3750
|
-
return null;
|
|
3751
|
-
}
|
|
3752
|
-
return __expectString(entry);
|
|
3753
|
-
});
|
|
3754
|
-
return retVal;
|
|
3755
|
-
};
|
|
3756
3141
|
const de_Row = (output, context) => {
|
|
3757
|
-
return {
|
|
3758
|
-
rowData:
|
|
3759
|
-
};
|
|
3142
|
+
return take(output, {
|
|
3143
|
+
rowData: (_) => de_RowData(_, context),
|
|
3144
|
+
});
|
|
3760
3145
|
};
|
|
3761
3146
|
const de_RowData = (output, context) => {
|
|
3762
3147
|
const retVal = (output || [])
|
|
3763
3148
|
.filter((e) => e != null)
|
|
3764
3149
|
.map((entry) => {
|
|
3765
|
-
if (entry === null) {
|
|
3766
|
-
return null;
|
|
3767
|
-
}
|
|
3768
3150
|
return de_QueryResultValue(entry, context);
|
|
3769
3151
|
});
|
|
3770
3152
|
return retVal;
|
|
@@ -3773,130 +3155,67 @@ const de_Rows = (output, context) => {
|
|
|
3773
3155
|
const retVal = (output || [])
|
|
3774
3156
|
.filter((e) => e != null)
|
|
3775
3157
|
.map((entry) => {
|
|
3776
|
-
if (entry === null) {
|
|
3777
|
-
return null;
|
|
3778
|
-
}
|
|
3779
3158
|
return de_Row(entry, context);
|
|
3780
3159
|
});
|
|
3781
3160
|
return retVal;
|
|
3782
3161
|
};
|
|
3783
|
-
const de_SceneCapabilities = (output, context) => {
|
|
3784
|
-
const retVal = (output || [])
|
|
3785
|
-
.filter((e) => e != null)
|
|
3786
|
-
.map((entry) => {
|
|
3787
|
-
if (entry === null) {
|
|
3788
|
-
return null;
|
|
3789
|
-
}
|
|
3790
|
-
return __expectString(entry);
|
|
3791
|
-
});
|
|
3792
|
-
return retVal;
|
|
3793
|
-
};
|
|
3794
|
-
const de_SceneMetadataMap = (output, context) => {
|
|
3795
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3796
|
-
if (value === null) {
|
|
3797
|
-
return acc;
|
|
3798
|
-
}
|
|
3799
|
-
acc[key] = __expectString(value);
|
|
3800
|
-
return acc;
|
|
3801
|
-
}, {});
|
|
3802
|
-
};
|
|
3803
3162
|
const de_SceneSummaries = (output, context) => {
|
|
3804
3163
|
const retVal = (output || [])
|
|
3805
3164
|
.filter((e) => e != null)
|
|
3806
3165
|
.map((entry) => {
|
|
3807
|
-
if (entry === null) {
|
|
3808
|
-
return null;
|
|
3809
|
-
}
|
|
3810
3166
|
return de_SceneSummary(entry, context);
|
|
3811
3167
|
});
|
|
3812
3168
|
return retVal;
|
|
3813
3169
|
};
|
|
3814
3170
|
const de_SceneSummary = (output, context) => {
|
|
3815
|
-
return {
|
|
3816
|
-
arn: __expectString
|
|
3817
|
-
contentLocation: __expectString
|
|
3818
|
-
creationDateTime:
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
updateDateTime: output.updateDateTime != null
|
|
3824
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3825
|
-
: undefined,
|
|
3826
|
-
};
|
|
3827
|
-
};
|
|
3828
|
-
const de_Status = (output, context) => {
|
|
3829
|
-
return {
|
|
3830
|
-
error: output.error != null ? de_ErrorDetails(output.error, context) : undefined,
|
|
3831
|
-
state: __expectString(output.state),
|
|
3832
|
-
};
|
|
3833
|
-
};
|
|
3834
|
-
const de_SyncJobStatus = (output, context) => {
|
|
3835
|
-
return {
|
|
3836
|
-
error: output.error != null ? de_ErrorDetails(output.error, context) : undefined,
|
|
3837
|
-
state: __expectString(output.state),
|
|
3838
|
-
};
|
|
3171
|
+
return take(output, {
|
|
3172
|
+
arn: __expectString,
|
|
3173
|
+
contentLocation: __expectString,
|
|
3174
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3175
|
+
description: __expectString,
|
|
3176
|
+
sceneId: __expectString,
|
|
3177
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3178
|
+
});
|
|
3839
3179
|
};
|
|
3840
3180
|
const de_SyncJobSummaries = (output, context) => {
|
|
3841
3181
|
const retVal = (output || [])
|
|
3842
3182
|
.filter((e) => e != null)
|
|
3843
3183
|
.map((entry) => {
|
|
3844
|
-
if (entry === null) {
|
|
3845
|
-
return null;
|
|
3846
|
-
}
|
|
3847
3184
|
return de_SyncJobSummary(entry, context);
|
|
3848
3185
|
});
|
|
3849
3186
|
return retVal;
|
|
3850
3187
|
};
|
|
3851
3188
|
const de_SyncJobSummary = (output, context) => {
|
|
3852
|
-
return {
|
|
3853
|
-
arn: __expectString
|
|
3854
|
-
creationDateTime:
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3861
|
-
: undefined,
|
|
3862
|
-
workspaceId: __expectString(output.workspaceId),
|
|
3863
|
-
};
|
|
3864
|
-
};
|
|
3865
|
-
const de_SyncResourceStatus = (output, context) => {
|
|
3866
|
-
return {
|
|
3867
|
-
error: output.error != null ? de_ErrorDetails(output.error, context) : undefined,
|
|
3868
|
-
state: __expectString(output.state),
|
|
3869
|
-
};
|
|
3189
|
+
return take(output, {
|
|
3190
|
+
arn: __expectString,
|
|
3191
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3192
|
+
status: _json,
|
|
3193
|
+
syncSource: __expectString,
|
|
3194
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3195
|
+
workspaceId: __expectString,
|
|
3196
|
+
});
|
|
3870
3197
|
};
|
|
3871
3198
|
const de_SyncResourceSummaries = (output, context) => {
|
|
3872
3199
|
const retVal = (output || [])
|
|
3873
3200
|
.filter((e) => e != null)
|
|
3874
3201
|
.map((entry) => {
|
|
3875
|
-
if (entry === null) {
|
|
3876
|
-
return null;
|
|
3877
|
-
}
|
|
3878
3202
|
return de_SyncResourceSummary(entry, context);
|
|
3879
3203
|
});
|
|
3880
3204
|
return retVal;
|
|
3881
3205
|
};
|
|
3882
3206
|
const de_SyncResourceSummary = (output, context) => {
|
|
3883
|
-
return {
|
|
3884
|
-
externalId: __expectString
|
|
3885
|
-
resourceId: __expectString
|
|
3886
|
-
resourceType: __expectString
|
|
3887
|
-
status:
|
|
3888
|
-
updateDateTime:
|
|
3889
|
-
|
|
3890
|
-
: undefined,
|
|
3891
|
-
};
|
|
3207
|
+
return take(output, {
|
|
3208
|
+
externalId: __expectString,
|
|
3209
|
+
resourceId: __expectString,
|
|
3210
|
+
resourceType: __expectString,
|
|
3211
|
+
status: _json,
|
|
3212
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3213
|
+
});
|
|
3892
3214
|
};
|
|
3893
3215
|
const de_TabularPropertyValue = (output, context) => {
|
|
3894
3216
|
const retVal = (output || [])
|
|
3895
3217
|
.filter((e) => e != null)
|
|
3896
3218
|
.map((entry) => {
|
|
3897
|
-
if (entry === null) {
|
|
3898
|
-
return null;
|
|
3899
|
-
}
|
|
3900
3219
|
return de_PropertyTableValue(entry, context);
|
|
3901
3220
|
});
|
|
3902
3221
|
return retVal;
|
|
@@ -3905,29 +3224,14 @@ const de_TabularPropertyValues = (output, context) => {
|
|
|
3905
3224
|
const retVal = (output || [])
|
|
3906
3225
|
.filter((e) => e != null)
|
|
3907
3226
|
.map((entry) => {
|
|
3908
|
-
if (entry === null) {
|
|
3909
|
-
return null;
|
|
3910
|
-
}
|
|
3911
3227
|
return de_TabularPropertyValue(entry, context);
|
|
3912
3228
|
});
|
|
3913
3229
|
return retVal;
|
|
3914
3230
|
};
|
|
3915
|
-
const de_TagMap = (output, context) => {
|
|
3916
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3917
|
-
if (value === null) {
|
|
3918
|
-
return acc;
|
|
3919
|
-
}
|
|
3920
|
-
acc[key] = __expectString(value);
|
|
3921
|
-
return acc;
|
|
3922
|
-
}, {});
|
|
3923
|
-
};
|
|
3924
3231
|
const de_Values = (output, context) => {
|
|
3925
3232
|
const retVal = (output || [])
|
|
3926
3233
|
.filter((e) => e != null)
|
|
3927
3234
|
.map((entry) => {
|
|
3928
|
-
if (entry === null) {
|
|
3929
|
-
return null;
|
|
3930
|
-
}
|
|
3931
3235
|
return de_PropertyValue(entry, context);
|
|
3932
3236
|
});
|
|
3933
3237
|
return retVal;
|
|
@@ -3936,25 +3240,18 @@ const de_WorkspaceSummaries = (output, context) => {
|
|
|
3936
3240
|
const retVal = (output || [])
|
|
3937
3241
|
.filter((e) => e != null)
|
|
3938
3242
|
.map((entry) => {
|
|
3939
|
-
if (entry === null) {
|
|
3940
|
-
return null;
|
|
3941
|
-
}
|
|
3942
3243
|
return de_WorkspaceSummary(entry, context);
|
|
3943
3244
|
});
|
|
3944
3245
|
return retVal;
|
|
3945
3246
|
};
|
|
3946
3247
|
const de_WorkspaceSummary = (output, context) => {
|
|
3947
|
-
return {
|
|
3948
|
-
arn: __expectString
|
|
3949
|
-
creationDateTime:
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.updateDateTime)))
|
|
3955
|
-
: undefined,
|
|
3956
|
-
workspaceId: __expectString(output.workspaceId),
|
|
3957
|
-
};
|
|
3248
|
+
return take(output, {
|
|
3249
|
+
arn: __expectString,
|
|
3250
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3251
|
+
description: __expectString,
|
|
3252
|
+
updateDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3253
|
+
workspaceId: __expectString,
|
|
3254
|
+
});
|
|
3958
3255
|
};
|
|
3959
3256
|
const deserializeMetadata = (output) => ({
|
|
3960
3257
|
httpStatusCode: output.statusCode,
|