@aws-sdk/client-iottwinmaker 3.121.0 → 3.127.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.
@@ -25,8 +25,7 @@ const serializeAws_restJson1BatchPutPropertyValuesCommand = async (input, contex
25
25
  }
26
26
  let body;
27
27
  body = JSON.stringify({
28
- ...(input.entries !== undefined &&
29
- input.entries !== null && { entries: serializeAws_restJson1Entries(input.entries, context) }),
28
+ ...(input.entries != null && { entries: serializeAws_restJson1Entries(input.entries, context) }),
30
29
  });
31
30
  let { hostname: resolvedHostname } = await context.endpoint();
32
31
  if (context.disableHostPrefix !== true) {
@@ -75,17 +74,14 @@ const serializeAws_restJson1CreateComponentTypeCommand = async (input, context)
75
74
  }
76
75
  let body;
77
76
  body = JSON.stringify({
78
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
79
- ...(input.extendsFrom !== undefined &&
80
- input.extendsFrom !== null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
81
- ...(input.functions !== undefined &&
82
- input.functions !== null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
83
- ...(input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton }),
84
- ...(input.propertyDefinitions !== undefined &&
85
- input.propertyDefinitions !== null && {
77
+ ...(input.description != null && { description: input.description }),
78
+ ...(input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
79
+ ...(input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
80
+ ...(input.isSingleton != null && { isSingleton: input.isSingleton }),
81
+ ...(input.propertyDefinitions != null && {
86
82
  propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
87
83
  }),
88
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
84
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
89
85
  });
90
86
  let { hostname: resolvedHostname } = await context.endpoint();
91
87
  if (context.disableHostPrefix !== true) {
@@ -123,16 +119,14 @@ const serializeAws_restJson1CreateEntityCommand = async (input, context) => {
123
119
  }
124
120
  let body;
125
121
  body = JSON.stringify({
126
- ...(input.components !== undefined &&
127
- input.components !== null && {
122
+ ...(input.components != null && {
128
123
  components: serializeAws_restJson1ComponentsMapRequest(input.components, context),
129
124
  }),
130
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
131
- ...(input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId }),
132
- ...(input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }),
133
- ...(input.parentEntityId !== undefined &&
134
- input.parentEntityId !== null && { parentEntityId: input.parentEntityId }),
135
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
125
+ ...(input.description != null && { description: input.description }),
126
+ ...(input.entityId != null && { entityId: input.entityId }),
127
+ ...(input.entityName != null && { entityName: input.entityName }),
128
+ ...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
129
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
136
130
  });
137
131
  let { hostname: resolvedHostname } = await context.endpoint();
138
132
  if (context.disableHostPrefix !== true) {
@@ -170,15 +164,13 @@ const serializeAws_restJson1CreateSceneCommand = async (input, context) => {
170
164
  }
171
165
  let body;
172
166
  body = JSON.stringify({
173
- ...(input.capabilities !== undefined &&
174
- input.capabilities !== null && {
167
+ ...(input.capabilities != null && {
175
168
  capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
176
169
  }),
177
- ...(input.contentLocation !== undefined &&
178
- input.contentLocation !== null && { contentLocation: input.contentLocation }),
179
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
180
- ...(input.sceneId !== undefined && input.sceneId !== null && { sceneId: input.sceneId }),
181
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
170
+ ...(input.contentLocation != null && { contentLocation: input.contentLocation }),
171
+ ...(input.description != null && { description: input.description }),
172
+ ...(input.sceneId != null && { sceneId: input.sceneId }),
173
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
182
174
  });
183
175
  let { hostname: resolvedHostname } = await context.endpoint();
184
176
  if (context.disableHostPrefix !== true) {
@@ -216,10 +208,10 @@ const serializeAws_restJson1CreateWorkspaceCommand = async (input, context) => {
216
208
  }
217
209
  let body;
218
210
  body = JSON.stringify({
219
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
220
- ...(input.role !== undefined && input.role !== null && { role: input.role }),
221
- ...(input.s3Location !== undefined && input.s3Location !== null && { s3Location: input.s3Location }),
222
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
211
+ ...(input.description != null && { description: input.description }),
212
+ ...(input.role != null && { role: input.role }),
213
+ ...(input.s3Location != null && { s3Location: input.s3Location }),
214
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
223
215
  });
224
216
  let { hostname: resolvedHostname } = await context.endpoint();
225
217
  if (context.disableHostPrefix !== true) {
@@ -515,12 +507,10 @@ const serializeAws_restJson1GetPropertyValueCommand = async (input, context) =>
515
507
  }
516
508
  let body;
517
509
  body = JSON.stringify({
518
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
519
- ...(input.componentTypeId !== undefined &&
520
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId }),
521
- ...(input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId }),
522
- ...(input.selectedProperties !== undefined &&
523
- input.selectedProperties !== null && {
510
+ ...(input.componentName != null && { componentName: input.componentName }),
511
+ ...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
512
+ ...(input.entityId != null && { entityId: input.entityId }),
513
+ ...(input.selectedProperties != null && {
524
514
  selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
525
515
  }),
526
516
  });
@@ -561,31 +551,25 @@ const serializeAws_restJson1GetPropertyValueHistoryCommand = async (input, conte
561
551
  }
562
552
  let body;
563
553
  body = JSON.stringify({
564
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
565
- ...(input.componentTypeId !== undefined &&
566
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId }),
567
- ...(input.endDateTime !== undefined &&
568
- input.endDateTime !== null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) }),
569
- ...(input.endTime !== undefined && input.endTime !== null && { endTime: input.endTime }),
570
- ...(input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId }),
571
- ...(input.interpolation !== undefined &&
572
- input.interpolation !== null && {
554
+ ...(input.componentName != null && { componentName: input.componentName }),
555
+ ...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
556
+ ...(input.endDateTime != null && { endDateTime: Math.round(input.endDateTime.getTime() / 1000) }),
557
+ ...(input.endTime != null && { endTime: input.endTime }),
558
+ ...(input.entityId != null && { entityId: input.entityId }),
559
+ ...(input.interpolation != null && {
573
560
  interpolation: serializeAws_restJson1InterpolationParameters(input.interpolation, context),
574
561
  }),
575
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
576
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
577
- ...(input.orderByTime !== undefined && input.orderByTime !== null && { orderByTime: input.orderByTime }),
578
- ...(input.propertyFilters !== undefined &&
579
- input.propertyFilters !== null && {
562
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
563
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
564
+ ...(input.orderByTime != null && { orderByTime: input.orderByTime }),
565
+ ...(input.propertyFilters != null && {
580
566
  propertyFilters: serializeAws_restJson1PropertyFilters(input.propertyFilters, context),
581
567
  }),
582
- ...(input.selectedProperties !== undefined &&
583
- input.selectedProperties !== null && {
568
+ ...(input.selectedProperties != null && {
584
569
  selectedProperties: serializeAws_restJson1SelectedPropertyList(input.selectedProperties, context),
585
570
  }),
586
- ...(input.startDateTime !== undefined &&
587
- input.startDateTime !== null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }),
588
- ...(input.startTime !== undefined && input.startTime !== null && { startTime: input.startTime }),
571
+ ...(input.startDateTime != null && { startDateTime: Math.round(input.startDateTime.getTime() / 1000) }),
572
+ ...(input.startTime != null && { startTime: input.startTime }),
589
573
  });
590
574
  let { hostname: resolvedHostname } = await context.endpoint();
591
575
  if (context.disableHostPrefix !== true) {
@@ -701,10 +685,9 @@ const serializeAws_restJson1ListComponentTypesCommand = async (input, context) =
701
685
  }
702
686
  let body;
703
687
  body = JSON.stringify({
704
- ...(input.filters !== undefined &&
705
- input.filters !== null && { filters: serializeAws_restJson1ListComponentTypesFilters(input.filters, context) }),
706
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
707
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
688
+ ...(input.filters != null && { filters: serializeAws_restJson1ListComponentTypesFilters(input.filters, context) }),
689
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
690
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
708
691
  });
709
692
  let { hostname: resolvedHostname } = await context.endpoint();
710
693
  if (context.disableHostPrefix !== true) {
@@ -742,10 +725,9 @@ const serializeAws_restJson1ListEntitiesCommand = async (input, context) => {
742
725
  }
743
726
  let body;
744
727
  body = JSON.stringify({
745
- ...(input.filters !== undefined &&
746
- input.filters !== null && { filters: serializeAws_restJson1ListEntitiesFilters(input.filters, context) }),
747
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
748
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
728
+ ...(input.filters != null && { filters: serializeAws_restJson1ListEntitiesFilters(input.filters, context) }),
729
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
730
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
749
731
  });
750
732
  let { hostname: resolvedHostname } = await context.endpoint();
751
733
  if (context.disableHostPrefix !== true) {
@@ -783,8 +765,8 @@ const serializeAws_restJson1ListScenesCommand = async (input, context) => {
783
765
  }
784
766
  let body;
785
767
  body = JSON.stringify({
786
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
787
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
768
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
769
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
788
770
  });
789
771
  let { hostname: resolvedHostname } = await context.endpoint();
790
772
  if (context.disableHostPrefix !== true) {
@@ -812,9 +794,9 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
812
794
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags-list";
813
795
  let body;
814
796
  body = JSON.stringify({
815
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
816
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
817
- ...(input.resourceARN !== undefined && input.resourceARN !== null && { resourceARN: input.resourceARN }),
797
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
798
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
799
+ ...(input.resourceARN != null && { resourceARN: input.resourceARN }),
818
800
  });
819
801
  let { hostname: resolvedHostname } = await context.endpoint();
820
802
  if (context.disableHostPrefix !== true) {
@@ -842,8 +824,8 @@ const serializeAws_restJson1ListWorkspacesCommand = async (input, context) => {
842
824
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/workspaces-list";
843
825
  let body;
844
826
  body = JSON.stringify({
845
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
846
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
827
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
828
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
847
829
  });
848
830
  let { hostname: resolvedHostname } = await context.endpoint();
849
831
  if (context.disableHostPrefix !== true) {
@@ -871,8 +853,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
871
853
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tags";
872
854
  let body;
873
855
  body = JSON.stringify({
874
- ...(input.resourceARN !== undefined && input.resourceARN !== null && { resourceARN: input.resourceARN }),
875
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
856
+ ...(input.resourceARN != null && { resourceARN: input.resourceARN }),
857
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
876
858
  });
877
859
  let { hostname: resolvedHostname } = await context.endpoint();
878
860
  if (context.disableHostPrefix !== true) {
@@ -949,14 +931,11 @@ const serializeAws_restJson1UpdateComponentTypeCommand = async (input, context)
949
931
  }
950
932
  let body;
951
933
  body = JSON.stringify({
952
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
953
- ...(input.extendsFrom !== undefined &&
954
- input.extendsFrom !== null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
955
- ...(input.functions !== undefined &&
956
- input.functions !== null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
957
- ...(input.isSingleton !== undefined && input.isSingleton !== null && { isSingleton: input.isSingleton }),
958
- ...(input.propertyDefinitions !== undefined &&
959
- input.propertyDefinitions !== null && {
934
+ ...(input.description != null && { description: input.description }),
935
+ ...(input.extendsFrom != null && { extendsFrom: serializeAws_restJson1ExtendsFrom(input.extendsFrom, context) }),
936
+ ...(input.functions != null && { functions: serializeAws_restJson1FunctionsRequest(input.functions, context) }),
937
+ ...(input.isSingleton != null && { isSingleton: input.isSingleton }),
938
+ ...(input.propertyDefinitions != null && {
960
939
  propertyDefinitions: serializeAws_restJson1PropertyDefinitionsRequest(input.propertyDefinitions, context),
961
940
  }),
962
941
  });
@@ -1007,14 +986,12 @@ const serializeAws_restJson1UpdateEntityCommand = async (input, context) => {
1007
986
  }
1008
987
  let body;
1009
988
  body = JSON.stringify({
1010
- ...(input.componentUpdates !== undefined &&
1011
- input.componentUpdates !== null && {
989
+ ...(input.componentUpdates != null && {
1012
990
  componentUpdates: serializeAws_restJson1ComponentUpdatesMapRequest(input.componentUpdates, context),
1013
991
  }),
1014
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1015
- ...(input.entityName !== undefined && input.entityName !== null && { entityName: input.entityName }),
1016
- ...(input.parentEntityUpdate !== undefined &&
1017
- input.parentEntityUpdate !== null && {
992
+ ...(input.description != null && { description: input.description }),
993
+ ...(input.entityName != null && { entityName: input.entityName }),
994
+ ...(input.parentEntityUpdate != null && {
1018
995
  parentEntityUpdate: serializeAws_restJson1ParentEntityUpdateRequest(input.parentEntityUpdate, context),
1019
996
  }),
1020
997
  });
@@ -1065,13 +1042,11 @@ const serializeAws_restJson1UpdateSceneCommand = async (input, context) => {
1065
1042
  }
1066
1043
  let body;
1067
1044
  body = JSON.stringify({
1068
- ...(input.capabilities !== undefined &&
1069
- input.capabilities !== null && {
1045
+ ...(input.capabilities != null && {
1070
1046
  capabilities: serializeAws_restJson1SceneCapabilities(input.capabilities, context),
1071
1047
  }),
1072
- ...(input.contentLocation !== undefined &&
1073
- input.contentLocation !== null && { contentLocation: input.contentLocation }),
1074
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1048
+ ...(input.contentLocation != null && { contentLocation: input.contentLocation }),
1049
+ ...(input.description != null && { description: input.description }),
1075
1050
  });
1076
1051
  let { hostname: resolvedHostname } = await context.endpoint();
1077
1052
  if (context.disableHostPrefix !== true) {
@@ -1109,8 +1084,8 @@ const serializeAws_restJson1UpdateWorkspaceCommand = async (input, context) => {
1109
1084
  }
1110
1085
  let body;
1111
1086
  body = JSON.stringify({
1112
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1113
- ...(input.role !== undefined && input.role !== null && { role: input.role }),
1087
+ ...(input.description != null && { description: input.description }),
1088
+ ...(input.role != null && { role: input.role }),
1114
1089
  });
1115
1090
  let { hostname: resolvedHostname } = await context.endpoint();
1116
1091
  if (context.disableHostPrefix !== true) {
@@ -2746,11 +2721,9 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
2746
2721
  };
2747
2722
  const serializeAws_restJson1ComponentRequest = (input, context) => {
2748
2723
  return {
2749
- ...(input.componentTypeId !== undefined &&
2750
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId }),
2751
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2752
- ...(input.properties !== undefined &&
2753
- input.properties !== null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }),
2724
+ ...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
2725
+ ...(input.description != null && { description: input.description }),
2726
+ ...(input.properties != null && { properties: serializeAws_restJson1PropertyRequests(input.properties, context) }),
2754
2727
  };
2755
2728
  };
2756
2729
  const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
@@ -2766,14 +2739,12 @@ const serializeAws_restJson1ComponentsMapRequest = (input, context) => {
2766
2739
  };
2767
2740
  const serializeAws_restJson1ComponentUpdateRequest = (input, context) => {
2768
2741
  return {
2769
- ...(input.componentTypeId !== undefined &&
2770
- input.componentTypeId !== null && { componentTypeId: input.componentTypeId }),
2771
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
2772
- ...(input.propertyUpdates !== undefined &&
2773
- input.propertyUpdates !== null && {
2742
+ ...(input.componentTypeId != null && { componentTypeId: input.componentTypeId }),
2743
+ ...(input.description != null && { description: input.description }),
2744
+ ...(input.propertyUpdates != null && {
2774
2745
  propertyUpdates: serializeAws_restJson1PropertyRequests(input.propertyUpdates, context),
2775
2746
  }),
2776
- ...(input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType }),
2747
+ ...(input.updateType != null && { updateType: input.updateType }),
2777
2748
  };
2778
2749
  };
2779
2750
  const serializeAws_restJson1ComponentUpdatesMapRequest = (input, context) => {
@@ -2800,42 +2771,36 @@ const serializeAws_restJson1Configuration = (input, context) => {
2800
2771
  };
2801
2772
  const serializeAws_restJson1DataConnector = (input, context) => {
2802
2773
  return {
2803
- ...(input.isNative !== undefined && input.isNative !== null && { isNative: input.isNative }),
2804
- ...(input.lambda !== undefined &&
2805
- input.lambda !== null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }),
2774
+ ...(input.isNative != null && { isNative: input.isNative }),
2775
+ ...(input.lambda != null && { lambda: serializeAws_restJson1LambdaFunction(input.lambda, context) }),
2806
2776
  };
2807
2777
  };
2808
2778
  const serializeAws_restJson1DataType = (input, context) => {
2809
2779
  return {
2810
- ...(input.allowedValues !== undefined &&
2811
- input.allowedValues !== null && {
2780
+ ...(input.allowedValues != null && {
2812
2781
  allowedValues: serializeAws_restJson1DataValueList(input.allowedValues, context),
2813
2782
  }),
2814
- ...(input.nestedType !== undefined &&
2815
- input.nestedType !== null && { nestedType: serializeAws_restJson1DataType(input.nestedType, context) }),
2816
- ...(input.relationship !== undefined &&
2817
- input.relationship !== null && { relationship: serializeAws_restJson1Relationship(input.relationship, context) }),
2818
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
2819
- ...(input.unitOfMeasure !== undefined && input.unitOfMeasure !== null && { unitOfMeasure: input.unitOfMeasure }),
2783
+ ...(input.nestedType != null && { nestedType: serializeAws_restJson1DataType(input.nestedType, context) }),
2784
+ ...(input.relationship != null && {
2785
+ relationship: serializeAws_restJson1Relationship(input.relationship, context),
2786
+ }),
2787
+ ...(input.type != null && { type: input.type }),
2788
+ ...(input.unitOfMeasure != null && { unitOfMeasure: input.unitOfMeasure }),
2820
2789
  };
2821
2790
  };
2822
2791
  const serializeAws_restJson1DataValue = (input, context) => {
2823
2792
  return {
2824
- ...(input.booleanValue !== undefined && input.booleanValue !== null && { booleanValue: input.booleanValue }),
2825
- ...(input.doubleValue !== undefined &&
2826
- input.doubleValue !== null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
2827
- ...(input.expression !== undefined && input.expression !== null && { expression: input.expression }),
2828
- ...(input.integerValue !== undefined && input.integerValue !== null && { integerValue: input.integerValue }),
2829
- ...(input.listValue !== undefined &&
2830
- input.listValue !== null && { listValue: serializeAws_restJson1DataValueList(input.listValue, context) }),
2831
- ...(input.longValue !== undefined && input.longValue !== null && { longValue: input.longValue }),
2832
- ...(input.mapValue !== undefined &&
2833
- input.mapValue !== null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) }),
2834
- ...(input.relationshipValue !== undefined &&
2835
- input.relationshipValue !== null && {
2793
+ ...(input.booleanValue != null && { booleanValue: input.booleanValue }),
2794
+ ...(input.doubleValue != null && { doubleValue: (0, smithy_client_1.serializeFloat)(input.doubleValue) }),
2795
+ ...(input.expression != null && { expression: input.expression }),
2796
+ ...(input.integerValue != null && { integerValue: input.integerValue }),
2797
+ ...(input.listValue != null && { listValue: serializeAws_restJson1DataValueList(input.listValue, context) }),
2798
+ ...(input.longValue != null && { longValue: input.longValue }),
2799
+ ...(input.mapValue != null && { mapValue: serializeAws_restJson1DataValueMap(input.mapValue, context) }),
2800
+ ...(input.relationshipValue != null && {
2836
2801
  relationshipValue: serializeAws_restJson1RelationshipValue(input.relationshipValue, context),
2837
2802
  }),
2838
- ...(input.stringValue !== undefined && input.stringValue !== null && { stringValue: input.stringValue }),
2803
+ ...(input.stringValue != null && { stringValue: input.stringValue }),
2839
2804
  };
2840
2805
  };
2841
2806
  const serializeAws_restJson1DataValueList = (input, context) => {
@@ -2861,13 +2826,12 @@ const serializeAws_restJson1DataValueMap = (input, context) => {
2861
2826
  };
2862
2827
  const serializeAws_restJson1EntityPropertyReference = (input, context) => {
2863
2828
  return {
2864
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
2865
- ...(input.entityId !== undefined && input.entityId !== null && { entityId: input.entityId }),
2866
- ...(input.externalIdProperty !== undefined &&
2867
- input.externalIdProperty !== null && {
2829
+ ...(input.componentName != null && { componentName: input.componentName }),
2830
+ ...(input.entityId != null && { entityId: input.entityId }),
2831
+ ...(input.externalIdProperty != null && {
2868
2832
  externalIdProperty: serializeAws_restJson1ExternalIdProperty(input.externalIdProperty, context),
2869
2833
  }),
2870
- ...(input.propertyName !== undefined && input.propertyName !== null && { propertyName: input.propertyName }),
2834
+ ...(input.propertyName != null && { propertyName: input.propertyName }),
2871
2835
  };
2872
2836
  };
2873
2837
  const serializeAws_restJson1Entries = (input, context) => {
@@ -2903,15 +2867,13 @@ const serializeAws_restJson1ExternalIdProperty = (input, context) => {
2903
2867
  };
2904
2868
  const serializeAws_restJson1FunctionRequest = (input, context) => {
2905
2869
  return {
2906
- ...(input.implementedBy !== undefined &&
2907
- input.implementedBy !== null && {
2870
+ ...(input.implementedBy != null && {
2908
2871
  implementedBy: serializeAws_restJson1DataConnector(input.implementedBy, context),
2909
2872
  }),
2910
- ...(input.requiredProperties !== undefined &&
2911
- input.requiredProperties !== null && {
2873
+ ...(input.requiredProperties != null && {
2912
2874
  requiredProperties: serializeAws_restJson1RequiredProperties(input.requiredProperties, context),
2913
2875
  }),
2914
- ...(input.scope !== undefined && input.scope !== null && { scope: input.scope }),
2876
+ ...(input.scope != null && { scope: input.scope }),
2915
2877
  };
2916
2878
  };
2917
2879
  const serializeAws_restJson1FunctionsRequest = (input, context) => {
@@ -2927,15 +2889,13 @@ const serializeAws_restJson1FunctionsRequest = (input, context) => {
2927
2889
  };
2928
2890
  const serializeAws_restJson1InterpolationParameters = (input, context) => {
2929
2891
  return {
2930
- ...(input.interpolationType !== undefined &&
2931
- input.interpolationType !== null && { interpolationType: input.interpolationType }),
2932
- ...(input.intervalInSeconds !== undefined &&
2933
- input.intervalInSeconds !== null && { intervalInSeconds: input.intervalInSeconds }),
2892
+ ...(input.interpolationType != null && { interpolationType: input.interpolationType }),
2893
+ ...(input.intervalInSeconds != null && { intervalInSeconds: input.intervalInSeconds }),
2934
2894
  };
2935
2895
  };
2936
2896
  const serializeAws_restJson1LambdaFunction = (input, context) => {
2937
2897
  return {
2938
- ...(input.arn !== undefined && input.arn !== null && { arn: input.arn }),
2898
+ ...(input.arn != null && { arn: input.arn }),
2939
2899
  };
2940
2900
  };
2941
2901
  const serializeAws_restJson1ListComponentTypesFilter = (input, context) => {
@@ -2976,27 +2936,21 @@ const serializeAws_restJson1ListEntitiesFilters = (input, context) => {
2976
2936
  };
2977
2937
  const serializeAws_restJson1ParentEntityUpdateRequest = (input, context) => {
2978
2938
  return {
2979
- ...(input.parentEntityId !== undefined &&
2980
- input.parentEntityId !== null && { parentEntityId: input.parentEntityId }),
2981
- ...(input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType }),
2939
+ ...(input.parentEntityId != null && { parentEntityId: input.parentEntityId }),
2940
+ ...(input.updateType != null && { updateType: input.updateType }),
2982
2941
  };
2983
2942
  };
2984
2943
  const serializeAws_restJson1PropertyDefinitionRequest = (input, context) => {
2985
2944
  return {
2986
- ...(input.configuration !== undefined &&
2987
- input.configuration !== null && {
2945
+ ...(input.configuration != null && {
2988
2946
  configuration: serializeAws_restJson1Configuration(input.configuration, context),
2989
2947
  }),
2990
- ...(input.dataType !== undefined &&
2991
- input.dataType !== null && { dataType: serializeAws_restJson1DataType(input.dataType, context) }),
2992
- ...(input.defaultValue !== undefined &&
2993
- input.defaultValue !== null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) }),
2994
- ...(input.isExternalId !== undefined && input.isExternalId !== null && { isExternalId: input.isExternalId }),
2995
- ...(input.isRequiredInEntity !== undefined &&
2996
- input.isRequiredInEntity !== null && { isRequiredInEntity: input.isRequiredInEntity }),
2997
- ...(input.isStoredExternally !== undefined &&
2998
- input.isStoredExternally !== null && { isStoredExternally: input.isStoredExternally }),
2999
- ...(input.isTimeSeries !== undefined && input.isTimeSeries !== null && { isTimeSeries: input.isTimeSeries }),
2948
+ ...(input.dataType != null && { dataType: serializeAws_restJson1DataType(input.dataType, context) }),
2949
+ ...(input.defaultValue != null && { defaultValue: serializeAws_restJson1DataValue(input.defaultValue, context) }),
2950
+ ...(input.isExternalId != null && { isExternalId: input.isExternalId }),
2951
+ ...(input.isRequiredInEntity != null && { isRequiredInEntity: input.isRequiredInEntity }),
2952
+ ...(input.isStoredExternally != null && { isStoredExternally: input.isStoredExternally }),
2953
+ ...(input.isTimeSeries != null && { isTimeSeries: input.isTimeSeries }),
3000
2954
  };
3001
2955
  };
3002
2956
  const serializeAws_restJson1PropertyDefinitionsRequest = (input, context) => {
@@ -3012,10 +2966,9 @@ const serializeAws_restJson1PropertyDefinitionsRequest = (input, context) => {
3012
2966
  };
3013
2967
  const serializeAws_restJson1PropertyFilter = (input, context) => {
3014
2968
  return {
3015
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
3016
- ...(input.propertyName !== undefined && input.propertyName !== null && { propertyName: input.propertyName }),
3017
- ...(input.value !== undefined &&
3018
- input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }),
2969
+ ...(input.operator != null && { operator: input.operator }),
2970
+ ...(input.propertyName != null && { propertyName: input.propertyName }),
2971
+ ...(input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }),
3019
2972
  };
3020
2973
  };
3021
2974
  const serializeAws_restJson1PropertyFilters = (input, context) => {
@@ -3030,13 +2983,11 @@ const serializeAws_restJson1PropertyFilters = (input, context) => {
3030
2983
  };
3031
2984
  const serializeAws_restJson1PropertyRequest = (input, context) => {
3032
2985
  return {
3033
- ...(input.definition !== undefined &&
3034
- input.definition !== null && {
2986
+ ...(input.definition != null && {
3035
2987
  definition: serializeAws_restJson1PropertyDefinitionRequest(input.definition, context),
3036
2988
  }),
3037
- ...(input.updateType !== undefined && input.updateType !== null && { updateType: input.updateType }),
3038
- ...(input.value !== undefined &&
3039
- input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }),
2989
+ ...(input.updateType != null && { updateType: input.updateType }),
2990
+ ...(input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }),
3040
2991
  };
3041
2992
  };
3042
2993
  const serializeAws_restJson1PropertyRequests = (input, context) => {
@@ -3052,21 +3003,17 @@ const serializeAws_restJson1PropertyRequests = (input, context) => {
3052
3003
  };
3053
3004
  const serializeAws_restJson1PropertyValue = (input, context) => {
3054
3005
  return {
3055
- ...(input.time !== undefined && input.time !== null && { time: input.time }),
3056
- ...(input.timestamp !== undefined &&
3057
- input.timestamp !== null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
3058
- ...(input.value !== undefined &&
3059
- input.value !== null && { value: serializeAws_restJson1DataValue(input.value, context) }),
3006
+ ...(input.time != null && { time: input.time }),
3007
+ ...(input.timestamp != null && { timestamp: Math.round(input.timestamp.getTime() / 1000) }),
3008
+ ...(input.value != null && { value: serializeAws_restJson1DataValue(input.value, context) }),
3060
3009
  };
3061
3010
  };
3062
3011
  const serializeAws_restJson1PropertyValueEntry = (input, context) => {
3063
3012
  return {
3064
- ...(input.entityPropertyReference !== undefined &&
3065
- input.entityPropertyReference !== null && {
3013
+ ...(input.entityPropertyReference != null && {
3066
3014
  entityPropertyReference: serializeAws_restJson1EntityPropertyReference(input.entityPropertyReference, context),
3067
3015
  }),
3068
- ...(input.propertyValues !== undefined &&
3069
- input.propertyValues !== null && {
3016
+ ...(input.propertyValues != null && {
3070
3017
  propertyValues: serializeAws_restJson1PropertyValues(input.propertyValues, context),
3071
3018
  }),
3072
3019
  };
@@ -3083,18 +3030,14 @@ const serializeAws_restJson1PropertyValues = (input, context) => {
3083
3030
  };
3084
3031
  const serializeAws_restJson1Relationship = (input, context) => {
3085
3032
  return {
3086
- ...(input.relationshipType !== undefined &&
3087
- input.relationshipType !== null && { relationshipType: input.relationshipType }),
3088
- ...(input.targetComponentTypeId !== undefined &&
3089
- input.targetComponentTypeId !== null && { targetComponentTypeId: input.targetComponentTypeId }),
3033
+ ...(input.relationshipType != null && { relationshipType: input.relationshipType }),
3034
+ ...(input.targetComponentTypeId != null && { targetComponentTypeId: input.targetComponentTypeId }),
3090
3035
  };
3091
3036
  };
3092
3037
  const serializeAws_restJson1RelationshipValue = (input, context) => {
3093
3038
  return {
3094
- ...(input.targetComponentName !== undefined &&
3095
- input.targetComponentName !== null && { targetComponentName: input.targetComponentName }),
3096
- ...(input.targetEntityId !== undefined &&
3097
- input.targetEntityId !== null && { targetEntityId: input.targetEntityId }),
3039
+ ...(input.targetComponentName != null && { targetComponentName: input.targetComponentName }),
3040
+ ...(input.targetEntityId != null && { targetEntityId: input.targetEntityId }),
3098
3041
  };
3099
3042
  };
3100
3043
  const serializeAws_restJson1RequiredProperties = (input, context) => {
@@ -3140,18 +3083,14 @@ const serializeAws_restJson1TagMap = (input, context) => {
3140
3083
  };
3141
3084
  const deserializeAws_restJson1BatchPutPropertyError = (output, context) => {
3142
3085
  return {
3143
- entry: output.entry !== undefined && output.entry !== null
3144
- ? deserializeAws_restJson1PropertyValueEntry(output.entry, context)
3145
- : undefined,
3086
+ entry: output.entry != null ? deserializeAws_restJson1PropertyValueEntry(output.entry, context) : undefined,
3146
3087
  errorCode: (0, smithy_client_1.expectString)(output.errorCode),
3147
3088
  errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
3148
3089
  };
3149
3090
  };
3150
3091
  const deserializeAws_restJson1BatchPutPropertyErrorEntry = (output, context) => {
3151
3092
  return {
3152
- errors: output.errors !== undefined && output.errors !== null
3153
- ? deserializeAws_restJson1Errors(output.errors, context)
3154
- : undefined,
3093
+ errors: output.errors != null ? deserializeAws_restJson1Errors(output.errors, context) : undefined,
3155
3094
  };
3156
3095
  };
3157
3096
  const deserializeAws_restJson1ComponentResponse = (output, context) => {
@@ -3160,12 +3099,8 @@ const deserializeAws_restJson1ComponentResponse = (output, context) => {
3160
3099
  componentTypeId: (0, smithy_client_1.expectString)(output.componentTypeId),
3161
3100
  definedIn: (0, smithy_client_1.expectString)(output.definedIn),
3162
3101
  description: (0, smithy_client_1.expectString)(output.description),
3163
- properties: output.properties !== undefined && output.properties !== null
3164
- ? deserializeAws_restJson1PropertyResponses(output.properties, context)
3165
- : undefined,
3166
- status: output.status !== undefined && output.status !== null
3167
- ? deserializeAws_restJson1Status(output.status, context)
3168
- : undefined,
3102
+ properties: output.properties != null ? deserializeAws_restJson1PropertyResponses(output.properties, context) : undefined,
3103
+ status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
3169
3104
  };
3170
3105
  };
3171
3106
  const deserializeAws_restJson1ComponentsMap = (output, context) => {
@@ -3194,14 +3129,12 @@ const deserializeAws_restJson1ComponentTypeSummary = (output, context) => {
3194
3129
  return {
3195
3130
  arn: (0, smithy_client_1.expectString)(output.arn),
3196
3131
  componentTypeId: (0, smithy_client_1.expectString)(output.componentTypeId),
3197
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3132
+ creationDateTime: output.creationDateTime != null
3198
3133
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3199
3134
  : undefined,
3200
3135
  description: (0, smithy_client_1.expectString)(output.description),
3201
- status: output.status !== undefined && output.status !== null
3202
- ? deserializeAws_restJson1Status(output.status, context)
3203
- : undefined,
3204
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
3136
+ status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
3137
+ updateDateTime: output.updateDateTime != null
3205
3138
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
3206
3139
  : undefined,
3207
3140
  };
@@ -3220,22 +3153,14 @@ const deserializeAws_restJson1Configuration = (output, context) => {
3220
3153
  const deserializeAws_restJson1DataConnector = (output, context) => {
3221
3154
  return {
3222
3155
  isNative: (0, smithy_client_1.expectBoolean)(output.isNative),
3223
- lambda: output.lambda !== undefined && output.lambda !== null
3224
- ? deserializeAws_restJson1LambdaFunction(output.lambda, context)
3225
- : undefined,
3156
+ lambda: output.lambda != null ? deserializeAws_restJson1LambdaFunction(output.lambda, context) : undefined,
3226
3157
  };
3227
3158
  };
3228
3159
  const deserializeAws_restJson1DataType = (output, context) => {
3229
3160
  return {
3230
- allowedValues: output.allowedValues !== undefined && output.allowedValues !== null
3231
- ? deserializeAws_restJson1DataValueList(output.allowedValues, context)
3232
- : undefined,
3233
- nestedType: output.nestedType !== undefined && output.nestedType !== null
3234
- ? deserializeAws_restJson1DataType(output.nestedType, context)
3235
- : undefined,
3236
- relationship: output.relationship !== undefined && output.relationship !== null
3237
- ? deserializeAws_restJson1Relationship(output.relationship, context)
3238
- : undefined,
3161
+ allowedValues: output.allowedValues != null ? deserializeAws_restJson1DataValueList(output.allowedValues, context) : undefined,
3162
+ nestedType: output.nestedType != null ? deserializeAws_restJson1DataType(output.nestedType, context) : undefined,
3163
+ relationship: output.relationship != null ? deserializeAws_restJson1Relationship(output.relationship, context) : undefined,
3239
3164
  type: (0, smithy_client_1.expectString)(output.type),
3240
3165
  unitOfMeasure: (0, smithy_client_1.expectString)(output.unitOfMeasure),
3241
3166
  };
@@ -3246,14 +3171,10 @@ const deserializeAws_restJson1DataValue = (output, context) => {
3246
3171
  doubleValue: (0, smithy_client_1.limitedParseDouble)(output.doubleValue),
3247
3172
  expression: (0, smithy_client_1.expectString)(output.expression),
3248
3173
  integerValue: (0, smithy_client_1.expectInt32)(output.integerValue),
3249
- listValue: output.listValue !== undefined && output.listValue !== null
3250
- ? deserializeAws_restJson1DataValueList(output.listValue, context)
3251
- : undefined,
3174
+ listValue: output.listValue != null ? deserializeAws_restJson1DataValueList(output.listValue, context) : undefined,
3252
3175
  longValue: (0, smithy_client_1.expectLong)(output.longValue),
3253
- mapValue: output.mapValue !== undefined && output.mapValue !== null
3254
- ? deserializeAws_restJson1DataValueMap(output.mapValue, context)
3255
- : undefined,
3256
- relationshipValue: output.relationshipValue !== undefined && output.relationshipValue !== null
3176
+ mapValue: output.mapValue != null ? deserializeAws_restJson1DataValueMap(output.mapValue, context) : undefined,
3177
+ relationshipValue: output.relationshipValue != null
3257
3178
  ? deserializeAws_restJson1RelationshipValue(output.relationshipValue, context)
3258
3179
  : undefined,
3259
3180
  stringValue: (0, smithy_client_1.expectString)(output.stringValue),
@@ -3285,7 +3206,7 @@ const deserializeAws_restJson1EntityPropertyReference = (output, context) => {
3285
3206
  return {
3286
3207
  componentName: (0, smithy_client_1.expectString)(output.componentName),
3287
3208
  entityId: (0, smithy_client_1.expectString)(output.entityId),
3288
- externalIdProperty: output.externalIdProperty !== undefined && output.externalIdProperty !== null
3209
+ externalIdProperty: output.externalIdProperty != null
3289
3210
  ? deserializeAws_restJson1ExternalIdProperty(output.externalIdProperty, context)
3290
3211
  : undefined,
3291
3212
  propertyName: (0, smithy_client_1.expectString)(output.propertyName),
@@ -3305,7 +3226,7 @@ const deserializeAws_restJson1EntitySummaries = (output, context) => {
3305
3226
  const deserializeAws_restJson1EntitySummary = (output, context) => {
3306
3227
  return {
3307
3228
  arn: (0, smithy_client_1.expectString)(output.arn),
3308
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3229
+ creationDateTime: output.creationDateTime != null
3309
3230
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3310
3231
  : undefined,
3311
3232
  description: (0, smithy_client_1.expectString)(output.description),
@@ -3313,10 +3234,8 @@ const deserializeAws_restJson1EntitySummary = (output, context) => {
3313
3234
  entityName: (0, smithy_client_1.expectString)(output.entityName),
3314
3235
  hasChildEntities: (0, smithy_client_1.expectBoolean)(output.hasChildEntities),
3315
3236
  parentEntityId: (0, smithy_client_1.expectString)(output.parentEntityId),
3316
- status: output.status !== undefined && output.status !== null
3317
- ? deserializeAws_restJson1Status(output.status, context)
3318
- : undefined,
3319
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
3237
+ status: output.status != null ? deserializeAws_restJson1Status(output.status, context) : undefined,
3238
+ updateDateTime: output.updateDateTime != null
3320
3239
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
3321
3240
  : undefined,
3322
3241
  };
@@ -3373,11 +3292,9 @@ const deserializeAws_restJson1ExternalIdProperty = (output, context) => {
3373
3292
  };
3374
3293
  const deserializeAws_restJson1FunctionResponse = (output, context) => {
3375
3294
  return {
3376
- implementedBy: output.implementedBy !== undefined && output.implementedBy !== null
3377
- ? deserializeAws_restJson1DataConnector(output.implementedBy, context)
3378
- : undefined,
3295
+ implementedBy: output.implementedBy != null ? deserializeAws_restJson1DataConnector(output.implementedBy, context) : undefined,
3379
3296
  isInherited: (0, smithy_client_1.expectBoolean)(output.isInherited),
3380
- requiredProperties: output.requiredProperties !== undefined && output.requiredProperties !== null
3297
+ requiredProperties: output.requiredProperties != null
3381
3298
  ? deserializeAws_restJson1RequiredProperties(output.requiredProperties, context)
3382
3299
  : undefined,
3383
3300
  scope: (0, smithy_client_1.expectString)(output.scope),
@@ -3401,15 +3318,9 @@ const deserializeAws_restJson1LambdaFunction = (output, context) => {
3401
3318
  };
3402
3319
  const deserializeAws_restJson1PropertyDefinitionResponse = (output, context) => {
3403
3320
  return {
3404
- configuration: output.configuration !== undefined && output.configuration !== null
3405
- ? deserializeAws_restJson1Configuration(output.configuration, context)
3406
- : undefined,
3407
- dataType: output.dataType !== undefined && output.dataType !== null
3408
- ? deserializeAws_restJson1DataType(output.dataType, context)
3409
- : undefined,
3410
- defaultValue: output.defaultValue !== undefined && output.defaultValue !== null
3411
- ? deserializeAws_restJson1DataValue(output.defaultValue, context)
3412
- : undefined,
3321
+ configuration: output.configuration != null ? deserializeAws_restJson1Configuration(output.configuration, context) : undefined,
3322
+ dataType: output.dataType != null ? deserializeAws_restJson1DataType(output.dataType, context) : undefined,
3323
+ defaultValue: output.defaultValue != null ? deserializeAws_restJson1DataValue(output.defaultValue, context) : undefined,
3413
3324
  isExternalId: (0, smithy_client_1.expectBoolean)(output.isExternalId),
3414
3325
  isFinal: (0, smithy_client_1.expectBoolean)(output.isFinal),
3415
3326
  isImported: (0, smithy_client_1.expectBoolean)(output.isImported),
@@ -3432,12 +3343,10 @@ const deserializeAws_restJson1PropertyDefinitionsResponse = (output, context) =>
3432
3343
  };
3433
3344
  const deserializeAws_restJson1PropertyLatestValue = (output, context) => {
3434
3345
  return {
3435
- propertyReference: output.propertyReference !== undefined && output.propertyReference !== null
3346
+ propertyReference: output.propertyReference != null
3436
3347
  ? deserializeAws_restJson1EntityPropertyReference(output.propertyReference, context)
3437
3348
  : undefined,
3438
- propertyValue: output.propertyValue !== undefined && output.propertyValue !== null
3439
- ? deserializeAws_restJson1DataValue(output.propertyValue, context)
3440
- : undefined,
3349
+ propertyValue: output.propertyValue != null ? deserializeAws_restJson1DataValue(output.propertyValue, context) : undefined,
3441
3350
  };
3442
3351
  };
3443
3352
  const deserializeAws_restJson1PropertyLatestValueMap = (output, context) => {
@@ -3453,12 +3362,10 @@ const deserializeAws_restJson1PropertyLatestValueMap = (output, context) => {
3453
3362
  };
3454
3363
  const deserializeAws_restJson1PropertyResponse = (output, context) => {
3455
3364
  return {
3456
- definition: output.definition !== undefined && output.definition !== null
3365
+ definition: output.definition != null
3457
3366
  ? deserializeAws_restJson1PropertyDefinitionResponse(output.definition, context)
3458
3367
  : undefined,
3459
- value: output.value !== undefined && output.value !== null
3460
- ? deserializeAws_restJson1DataValue(output.value, context)
3461
- : undefined,
3368
+ value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
3462
3369
  };
3463
3370
  };
3464
3371
  const deserializeAws_restJson1PropertyResponses = (output, context) => {
@@ -3475,32 +3382,26 @@ const deserializeAws_restJson1PropertyResponses = (output, context) => {
3475
3382
  const deserializeAws_restJson1PropertyValue = (output, context) => {
3476
3383
  return {
3477
3384
  time: (0, smithy_client_1.expectString)(output.time),
3478
- timestamp: output.timestamp !== undefined && output.timestamp !== null
3479
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp)))
3480
- : undefined,
3481
- value: output.value !== undefined && output.value !== null
3482
- ? deserializeAws_restJson1DataValue(output.value, context)
3483
- : undefined,
3385
+ timestamp: output.timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.timestamp))) : undefined,
3386
+ value: output.value != null ? deserializeAws_restJson1DataValue(output.value, context) : undefined,
3484
3387
  };
3485
3388
  };
3486
3389
  const deserializeAws_restJson1PropertyValueEntry = (output, context) => {
3487
3390
  return {
3488
- entityPropertyReference: output.entityPropertyReference !== undefined && output.entityPropertyReference !== null
3391
+ entityPropertyReference: output.entityPropertyReference != null
3489
3392
  ? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
3490
3393
  : undefined,
3491
- propertyValues: output.propertyValues !== undefined && output.propertyValues !== null
3394
+ propertyValues: output.propertyValues != null
3492
3395
  ? deserializeAws_restJson1PropertyValues(output.propertyValues, context)
3493
3396
  : undefined,
3494
3397
  };
3495
3398
  };
3496
3399
  const deserializeAws_restJson1PropertyValueHistory = (output, context) => {
3497
3400
  return {
3498
- entityPropertyReference: output.entityPropertyReference !== undefined && output.entityPropertyReference !== null
3401
+ entityPropertyReference: output.entityPropertyReference != null
3499
3402
  ? deserializeAws_restJson1EntityPropertyReference(output.entityPropertyReference, context)
3500
3403
  : undefined,
3501
- values: output.values !== undefined && output.values !== null
3502
- ? deserializeAws_restJson1Values(output.values, context)
3503
- : undefined,
3404
+ values: output.values != null ? deserializeAws_restJson1Values(output.values, context) : undefined,
3504
3405
  };
3505
3406
  };
3506
3407
  const deserializeAws_restJson1PropertyValueList = (output, context) => {
@@ -3574,21 +3475,19 @@ const deserializeAws_restJson1SceneSummary = (output, context) => {
3574
3475
  return {
3575
3476
  arn: (0, smithy_client_1.expectString)(output.arn),
3576
3477
  contentLocation: (0, smithy_client_1.expectString)(output.contentLocation),
3577
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3478
+ creationDateTime: output.creationDateTime != null
3578
3479
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3579
3480
  : undefined,
3580
3481
  description: (0, smithy_client_1.expectString)(output.description),
3581
3482
  sceneId: (0, smithy_client_1.expectString)(output.sceneId),
3582
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
3483
+ updateDateTime: output.updateDateTime != null
3583
3484
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
3584
3485
  : undefined,
3585
3486
  };
3586
3487
  };
3587
3488
  const deserializeAws_restJson1Status = (output, context) => {
3588
3489
  return {
3589
- error: output.error !== undefined && output.error !== null
3590
- ? deserializeAws_restJson1ErrorDetails(output.error, context)
3591
- : undefined,
3490
+ error: output.error != null ? deserializeAws_restJson1ErrorDetails(output.error, context) : undefined,
3592
3491
  state: (0, smithy_client_1.expectString)(output.state),
3593
3492
  };
3594
3493
  };
@@ -3628,11 +3527,11 @@ const deserializeAws_restJson1WorkspaceSummaries = (output, context) => {
3628
3527
  const deserializeAws_restJson1WorkspaceSummary = (output, context) => {
3629
3528
  return {
3630
3529
  arn: (0, smithy_client_1.expectString)(output.arn),
3631
- creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
3530
+ creationDateTime: output.creationDateTime != null
3632
3531
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.creationDateTime)))
3633
3532
  : undefined,
3634
3533
  description: (0, smithy_client_1.expectString)(output.description),
3635
- updateDateTime: output.updateDateTime !== undefined && output.updateDateTime !== null
3534
+ updateDateTime: output.updateDateTime != null
3636
3535
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateDateTime)))
3637
3536
  : undefined,
3638
3537
  workspaceId: (0, smithy_client_1.expectString)(output.workspaceId),