@aws-sdk/client-amplifyuibuilder 3.118.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.
@@ -668,8 +668,7 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
668
668
  body: await parseBody(output.body, context),
669
669
  };
670
670
  let response;
671
- let errorCode = "UnknownError";
672
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
671
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
673
672
  switch (errorCode) {
674
673
  case "InternalServerException":
675
674
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -685,10 +684,12 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
685
684
  throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
686
685
  default:
687
686
  const parsedBody = parsedOutput.body;
687
+ const $metadata = deserializeMetadata(output);
688
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
688
689
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
689
- name: parsedBody.code || parsedBody.Code || errorCode,
690
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
690
691
  $fault: "client",
691
- $metadata: deserializeMetadata(output),
692
+ $metadata,
692
693
  });
693
694
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
694
695
  }
@@ -712,8 +713,7 @@ const deserializeAws_restJson1CreateThemeCommandError = async (output, context)
712
713
  body: await parseBody(output.body, context),
713
714
  };
714
715
  let response;
715
- let errorCode = "UnknownError";
716
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
716
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
717
717
  switch (errorCode) {
718
718
  case "InternalServerException":
719
719
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -729,10 +729,12 @@ const deserializeAws_restJson1CreateThemeCommandError = async (output, context)
729
729
  throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
730
730
  default:
731
731
  const parsedBody = parsedOutput.body;
732
+ const $metadata = deserializeMetadata(output);
733
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
732
734
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
733
- name: parsedBody.code || parsedBody.Code || errorCode,
735
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
734
736
  $fault: "client",
735
- $metadata: deserializeMetadata(output),
737
+ $metadata,
736
738
  });
737
739
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
738
740
  }
@@ -754,8 +756,7 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
754
756
  body: await parseBody(output.body, context),
755
757
  };
756
758
  let response;
757
- let errorCode = "UnknownError";
758
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
759
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
759
760
  switch (errorCode) {
760
761
  case "InternalServerException":
761
762
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -768,10 +769,12 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
768
769
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
769
770
  default:
770
771
  const parsedBody = parsedOutput.body;
772
+ const $metadata = deserializeMetadata(output);
773
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
771
774
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
772
- name: parsedBody.code || parsedBody.Code || errorCode,
775
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
773
776
  $fault: "client",
774
- $metadata: deserializeMetadata(output),
777
+ $metadata,
775
778
  });
776
779
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
777
780
  }
@@ -793,8 +796,7 @@ const deserializeAws_restJson1DeleteThemeCommandError = async (output, context)
793
796
  body: await parseBody(output.body, context),
794
797
  };
795
798
  let response;
796
- let errorCode = "UnknownError";
797
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
799
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
798
800
  switch (errorCode) {
799
801
  case "InternalServerException":
800
802
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -807,10 +809,12 @@ const deserializeAws_restJson1DeleteThemeCommandError = async (output, context)
807
809
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
808
810
  default:
809
811
  const parsedBody = parsedOutput.body;
812
+ const $metadata = deserializeMetadata(output);
813
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
810
814
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
811
- name: parsedBody.code || parsedBody.Code || errorCode,
815
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
812
816
  $fault: "client",
813
- $metadata: deserializeMetadata(output),
817
+ $metadata,
814
818
  });
815
819
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
816
820
  }
@@ -844,18 +848,19 @@ const deserializeAws_restJson1ExchangeCodeForTokenCommandError = async (output,
844
848
  body: await parseBody(output.body, context),
845
849
  };
846
850
  let response;
847
- let errorCode = "UnknownError";
848
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
851
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
849
852
  switch (errorCode) {
850
853
  case "InvalidParameterException":
851
854
  case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
852
855
  throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
853
856
  default:
854
857
  const parsedBody = parsedOutput.body;
858
+ const $metadata = deserializeMetadata(output);
859
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
855
860
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
856
- name: parsedBody.code || parsedBody.Code || errorCode,
861
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
857
862
  $fault: "client",
858
- $metadata: deserializeMetadata(output),
863
+ $metadata,
859
864
  });
860
865
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
861
866
  }
@@ -885,8 +890,7 @@ const deserializeAws_restJson1ExportComponentsCommandError = async (output, cont
885
890
  body: await parseBody(output.body, context),
886
891
  };
887
892
  let response;
888
- let errorCode = "UnknownError";
889
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
893
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
890
894
  switch (errorCode) {
891
895
  case "InternalServerException":
892
896
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -896,10 +900,12 @@ const deserializeAws_restJson1ExportComponentsCommandError = async (output, cont
896
900
  throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
897
901
  default:
898
902
  const parsedBody = parsedOutput.body;
903
+ const $metadata = deserializeMetadata(output);
904
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
899
905
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
900
- name: parsedBody.code || parsedBody.Code || errorCode,
906
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
901
907
  $fault: "client",
902
- $metadata: deserializeMetadata(output),
908
+ $metadata,
903
909
  });
904
910
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
905
911
  }
@@ -929,8 +935,7 @@ const deserializeAws_restJson1ExportThemesCommandError = async (output, context)
929
935
  body: await parseBody(output.body, context),
930
936
  };
931
937
  let response;
932
- let errorCode = "UnknownError";
933
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
938
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
934
939
  switch (errorCode) {
935
940
  case "InternalServerException":
936
941
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -940,10 +945,12 @@ const deserializeAws_restJson1ExportThemesCommandError = async (output, context)
940
945
  throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
941
946
  default:
942
947
  const parsedBody = parsedOutput.body;
948
+ const $metadata = deserializeMetadata(output);
949
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
943
950
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
944
- name: parsedBody.code || parsedBody.Code || errorCode,
951
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
945
952
  $fault: "client",
946
- $metadata: deserializeMetadata(output),
953
+ $metadata,
947
954
  });
948
955
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
949
956
  }
@@ -967,8 +974,7 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
967
974
  body: await parseBody(output.body, context),
968
975
  };
969
976
  let response;
970
- let errorCode = "UnknownError";
971
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
977
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
972
978
  switch (errorCode) {
973
979
  case "InternalServerException":
974
980
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -981,10 +987,12 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
981
987
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
982
988
  default:
983
989
  const parsedBody = parsedOutput.body;
990
+ const $metadata = deserializeMetadata(output);
991
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
984
992
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
985
- name: parsedBody.code || parsedBody.Code || errorCode,
993
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
986
994
  $fault: "client",
987
- $metadata: deserializeMetadata(output),
995
+ $metadata,
988
996
  });
989
997
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
990
998
  }
@@ -1008,8 +1016,7 @@ const deserializeAws_restJson1GetThemeCommandError = async (output, context) =>
1008
1016
  body: await parseBody(output.body, context),
1009
1017
  };
1010
1018
  let response;
1011
- let errorCode = "UnknownError";
1012
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1019
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1013
1020
  switch (errorCode) {
1014
1021
  case "InternalServerException":
1015
1022
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -1022,10 +1029,12 @@ const deserializeAws_restJson1GetThemeCommandError = async (output, context) =>
1022
1029
  throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
1023
1030
  default:
1024
1031
  const parsedBody = parsedOutput.body;
1032
+ const $metadata = deserializeMetadata(output);
1033
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1025
1034
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
1026
- name: parsedBody.code || parsedBody.Code || errorCode,
1035
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1027
1036
  $fault: "client",
1028
- $metadata: deserializeMetadata(output),
1037
+ $metadata,
1029
1038
  });
1030
1039
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1031
1040
  }
@@ -1055,8 +1064,7 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
1055
1064
  body: await parseBody(output.body, context),
1056
1065
  };
1057
1066
  let response;
1058
- let errorCode = "UnknownError";
1059
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1067
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1060
1068
  switch (errorCode) {
1061
1069
  case "InternalServerException":
1062
1070
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -1066,10 +1074,12 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
1066
1074
  throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1067
1075
  default:
1068
1076
  const parsedBody = parsedOutput.body;
1077
+ const $metadata = deserializeMetadata(output);
1078
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1069
1079
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
1070
- name: parsedBody.code || parsedBody.Code || errorCode,
1080
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1071
1081
  $fault: "client",
1072
- $metadata: deserializeMetadata(output),
1082
+ $metadata,
1073
1083
  });
1074
1084
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1075
1085
  }
@@ -1099,8 +1109,7 @@ const deserializeAws_restJson1ListThemesCommandError = async (output, context) =
1099
1109
  body: await parseBody(output.body, context),
1100
1110
  };
1101
1111
  let response;
1102
- let errorCode = "UnknownError";
1103
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1112
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1104
1113
  switch (errorCode) {
1105
1114
  case "InternalServerException":
1106
1115
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -1110,10 +1119,12 @@ const deserializeAws_restJson1ListThemesCommandError = async (output, context) =
1110
1119
  throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1111
1120
  default:
1112
1121
  const parsedBody = parsedOutput.body;
1122
+ const $metadata = deserializeMetadata(output);
1123
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1113
1124
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
1114
- name: parsedBody.code || parsedBody.Code || errorCode,
1125
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1115
1126
  $fault: "client",
1116
- $metadata: deserializeMetadata(output),
1127
+ $metadata,
1117
1128
  });
1118
1129
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1119
1130
  }
@@ -1143,18 +1154,19 @@ const deserializeAws_restJson1RefreshTokenCommandError = async (output, context)
1143
1154
  body: await parseBody(output.body, context),
1144
1155
  };
1145
1156
  let response;
1146
- let errorCode = "UnknownError";
1147
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1157
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1148
1158
  switch (errorCode) {
1149
1159
  case "InvalidParameterException":
1150
1160
  case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
1151
1161
  throw await deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context);
1152
1162
  default:
1153
1163
  const parsedBody = parsedOutput.body;
1164
+ const $metadata = deserializeMetadata(output);
1165
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1154
1166
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
1155
- name: parsedBody.code || parsedBody.Code || errorCode,
1167
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1156
1168
  $fault: "client",
1157
- $metadata: deserializeMetadata(output),
1169
+ $metadata,
1158
1170
  });
1159
1171
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1160
1172
  }
@@ -1178,8 +1190,7 @@ const deserializeAws_restJson1UpdateComponentCommandError = async (output, conte
1178
1190
  body: await parseBody(output.body, context),
1179
1191
  };
1180
1192
  let response;
1181
- let errorCode = "UnknownError";
1182
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1193
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1183
1194
  switch (errorCode) {
1184
1195
  case "InternalServerException":
1185
1196
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -1192,10 +1203,12 @@ const deserializeAws_restJson1UpdateComponentCommandError = async (output, conte
1192
1203
  throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
1193
1204
  default:
1194
1205
  const parsedBody = parsedOutput.body;
1206
+ const $metadata = deserializeMetadata(output);
1207
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1195
1208
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
1196
- name: parsedBody.code || parsedBody.Code || errorCode,
1209
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1197
1210
  $fault: "client",
1198
- $metadata: deserializeMetadata(output),
1211
+ $metadata,
1199
1212
  });
1200
1213
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1201
1214
  }
@@ -1219,8 +1232,7 @@ const deserializeAws_restJson1UpdateThemeCommandError = async (output, context)
1219
1232
  body: await parseBody(output.body, context),
1220
1233
  };
1221
1234
  let response;
1222
- let errorCode = "UnknownError";
1223
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1235
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1224
1236
  switch (errorCode) {
1225
1237
  case "InternalServerException":
1226
1238
  case "com.amazonaws.amplifyuibuilder#InternalServerException":
@@ -1233,10 +1245,12 @@ const deserializeAws_restJson1UpdateThemeCommandError = async (output, context)
1233
1245
  throw await deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context);
1234
1246
  default:
1235
1247
  const parsedBody = parsedOutput.body;
1248
+ const $metadata = deserializeMetadata(output);
1249
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1236
1250
  response = new AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException({
1237
- name: parsedBody.code || parsedBody.Code || errorCode,
1251
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
1238
1252
  $fault: "client",
1239
- $metadata: deserializeMetadata(output),
1253
+ $metadata,
1240
1254
  });
1241
1255
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
1242
1256
  }
@@ -1303,23 +1317,15 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1303
1317
  };
1304
1318
  const serializeAws_restJson1ActionParameters = (input, context) => {
1305
1319
  return {
1306
- ...(input.anchor !== undefined &&
1307
- input.anchor !== null && { anchor: serializeAws_restJson1ComponentProperty(input.anchor, context) }),
1308
- ...(input.fields !== undefined &&
1309
- input.fields !== null && { fields: serializeAws_restJson1ComponentProperties(input.fields, context) }),
1310
- ...(input.global !== undefined &&
1311
- input.global !== null && { global: serializeAws_restJson1ComponentProperty(input.global, context) }),
1312
- ...(input.id !== undefined &&
1313
- input.id !== null && { id: serializeAws_restJson1ComponentProperty(input.id, context) }),
1314
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1315
- ...(input.state !== undefined &&
1316
- input.state !== null && { state: serializeAws_restJson1MutationActionSetStateParameter(input.state, context) }),
1317
- ...(input.target !== undefined &&
1318
- input.target !== null && { target: serializeAws_restJson1ComponentProperty(input.target, context) }),
1319
- ...(input.type !== undefined &&
1320
- input.type !== null && { type: serializeAws_restJson1ComponentProperty(input.type, context) }),
1321
- ...(input.url !== undefined &&
1322
- input.url !== null && { url: serializeAws_restJson1ComponentProperty(input.url, context) }),
1320
+ ...(input.anchor != null && { anchor: serializeAws_restJson1ComponentProperty(input.anchor, context) }),
1321
+ ...(input.fields != null && { fields: serializeAws_restJson1ComponentProperties(input.fields, context) }),
1322
+ ...(input.global != null && { global: serializeAws_restJson1ComponentProperty(input.global, context) }),
1323
+ ...(input.id != null && { id: serializeAws_restJson1ComponentProperty(input.id, context) }),
1324
+ ...(input.model != null && { model: input.model }),
1325
+ ...(input.state != null && { state: serializeAws_restJson1MutationActionSetStateParameter(input.state, context) }),
1326
+ ...(input.target != null && { target: serializeAws_restJson1ComponentProperty(input.target, context) }),
1327
+ ...(input.type != null && { type: serializeAws_restJson1ComponentProperty(input.type, context) }),
1328
+ ...(input.url != null && { url: serializeAws_restJson1ComponentProperty(input.url, context) }),
1323
1329
  };
1324
1330
  };
1325
1331
  const serializeAws_restJson1ComponentBindingProperties = (input, context) => {
@@ -1335,39 +1341,34 @@ const serializeAws_restJson1ComponentBindingProperties = (input, context) => {
1335
1341
  };
1336
1342
  const serializeAws_restJson1ComponentBindingPropertiesValue = (input, context) => {
1337
1343
  return {
1338
- ...(input.bindingProperties !== undefined &&
1339
- input.bindingProperties !== null && {
1344
+ ...(input.bindingProperties != null && {
1340
1345
  bindingProperties: serializeAws_restJson1ComponentBindingPropertiesValueProperties(input.bindingProperties, context),
1341
1346
  }),
1342
- ...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
1343
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1347
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
1348
+ ...(input.type != null && { type: input.type }),
1344
1349
  };
1345
1350
  };
1346
1351
  const serializeAws_restJson1ComponentBindingPropertiesValueProperties = (input, context) => {
1347
1352
  return {
1348
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
1349
- ...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
1350
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1351
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
1352
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1353
- ...(input.predicates !== undefined &&
1354
- input.predicates !== null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) }),
1355
- ...(input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute }),
1353
+ ...(input.bucket != null && { bucket: input.bucket }),
1354
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
1355
+ ...(input.field != null && { field: input.field }),
1356
+ ...(input.key != null && { key: input.key }),
1357
+ ...(input.model != null && { model: input.model }),
1358
+ ...(input.predicates != null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) }),
1359
+ ...(input.userAttribute != null && { userAttribute: input.userAttribute }),
1356
1360
  };
1357
1361
  };
1358
1362
  const serializeAws_restJson1ComponentChild = (input, context) => {
1359
1363
  return {
1360
- ...(input.children !== undefined &&
1361
- input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1362
- ...(input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType }),
1363
- ...(input.events !== undefined &&
1364
- input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1365
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1366
- ...(input.properties !== undefined &&
1367
- input.properties !== null && {
1364
+ ...(input.children != null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1365
+ ...(input.componentType != null && { componentType: input.componentType }),
1366
+ ...(input.events != null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1367
+ ...(input.name != null && { name: input.name }),
1368
+ ...(input.properties != null && {
1368
1369
  properties: serializeAws_restJson1ComponentProperties(input.properties, context),
1369
1370
  }),
1370
- ...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
1371
+ ...(input.sourceId != null && { sourceId: input.sourceId }),
1371
1372
  };
1372
1373
  };
1373
1374
  const serializeAws_restJson1ComponentChildList = (input, context) => {
@@ -1393,34 +1394,28 @@ const serializeAws_restJson1ComponentCollectionProperties = (input, context) =>
1393
1394
  };
1394
1395
  const serializeAws_restJson1ComponentConditionProperty = (input, context) => {
1395
1396
  return {
1396
- ...(input.else !== undefined &&
1397
- input.else !== null && { else: serializeAws_restJson1ComponentProperty(input.else, context) }),
1398
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1399
- ...(input.operand !== undefined && input.operand !== null && { operand: input.operand }),
1400
- ...(input.operandType !== undefined && input.operandType !== null && { operandType: input.operandType }),
1401
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
1402
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1403
- ...(input.then !== undefined &&
1404
- input.then !== null && { then: serializeAws_restJson1ComponentProperty(input.then, context) }),
1397
+ ...(input.else != null && { else: serializeAws_restJson1ComponentProperty(input.else, context) }),
1398
+ ...(input.field != null && { field: input.field }),
1399
+ ...(input.operand != null && { operand: input.operand }),
1400
+ ...(input.operandType != null && { operandType: input.operandType }),
1401
+ ...(input.operator != null && { operator: input.operator }),
1402
+ ...(input.property != null && { property: input.property }),
1403
+ ...(input.then != null && { then: serializeAws_restJson1ComponentProperty(input.then, context) }),
1405
1404
  };
1406
1405
  };
1407
1406
  const serializeAws_restJson1ComponentDataConfiguration = (input, context) => {
1408
1407
  return {
1409
- ...(input.identifiers !== undefined &&
1410
- input.identifiers !== null && { identifiers: serializeAws_restJson1IdentifierList(input.identifiers, context) }),
1411
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1412
- ...(input.predicate !== undefined &&
1413
- input.predicate !== null && { predicate: serializeAws_restJson1Predicate(input.predicate, context) }),
1414
- ...(input.sort !== undefined &&
1415
- input.sort !== null && { sort: serializeAws_restJson1SortPropertyList(input.sort, context) }),
1408
+ ...(input.identifiers != null && { identifiers: serializeAws_restJson1IdentifierList(input.identifiers, context) }),
1409
+ ...(input.model != null && { model: input.model }),
1410
+ ...(input.predicate != null && { predicate: serializeAws_restJson1Predicate(input.predicate, context) }),
1411
+ ...(input.sort != null && { sort: serializeAws_restJson1SortPropertyList(input.sort, context) }),
1416
1412
  };
1417
1413
  };
1418
1414
  const serializeAws_restJson1ComponentEvent = (input, context) => {
1419
1415
  return {
1420
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
1421
- ...(input.bindingEvent !== undefined && input.bindingEvent !== null && { bindingEvent: input.bindingEvent }),
1422
- ...(input.parameters !== undefined &&
1423
- input.parameters !== null && { parameters: serializeAws_restJson1ActionParameters(input.parameters, context) }),
1416
+ ...(input.action != null && { action: input.action }),
1417
+ ...(input.bindingEvent != null && { bindingEvent: input.bindingEvent }),
1418
+ ...(input.parameters != null && { parameters: serializeAws_restJson1ActionParameters(input.parameters, context) }),
1424
1419
  };
1425
1420
  };
1426
1421
  const serializeAws_restJson1ComponentEvents = (input, context) => {
@@ -1469,38 +1464,33 @@ const serializeAws_restJson1ComponentProperties = (input, context) => {
1469
1464
  };
1470
1465
  const serializeAws_restJson1ComponentProperty = (input, context) => {
1471
1466
  return {
1472
- ...(input.bindingProperties !== undefined &&
1473
- input.bindingProperties !== null && {
1467
+ ...(input.bindingProperties != null && {
1474
1468
  bindingProperties: serializeAws_restJson1ComponentPropertyBindingProperties(input.bindingProperties, context),
1475
1469
  }),
1476
- ...(input.bindings !== undefined &&
1477
- input.bindings !== null && { bindings: serializeAws_restJson1FormBindings(input.bindings, context) }),
1478
- ...(input.collectionBindingProperties !== undefined &&
1479
- input.collectionBindingProperties !== null && {
1470
+ ...(input.bindings != null && { bindings: serializeAws_restJson1FormBindings(input.bindings, context) }),
1471
+ ...(input.collectionBindingProperties != null && {
1480
1472
  collectionBindingProperties: serializeAws_restJson1ComponentPropertyBindingProperties(input.collectionBindingProperties, context),
1481
1473
  }),
1482
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
1483
- ...(input.concat !== undefined &&
1484
- input.concat !== null && { concat: serializeAws_restJson1ComponentPropertyList(input.concat, context) }),
1485
- ...(input.condition !== undefined &&
1486
- input.condition !== null && {
1474
+ ...(input.componentName != null && { componentName: input.componentName }),
1475
+ ...(input.concat != null && { concat: serializeAws_restJson1ComponentPropertyList(input.concat, context) }),
1476
+ ...(input.condition != null && {
1487
1477
  condition: serializeAws_restJson1ComponentConditionProperty(input.condition, context),
1488
1478
  }),
1489
- ...(input.configured !== undefined && input.configured !== null && { configured: input.configured }),
1490
- ...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
1491
- ...(input.event !== undefined && input.event !== null && { event: input.event }),
1492
- ...(input.importedValue !== undefined && input.importedValue !== null && { importedValue: input.importedValue }),
1493
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1494
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1495
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1496
- ...(input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute }),
1497
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1479
+ ...(input.configured != null && { configured: input.configured }),
1480
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
1481
+ ...(input.event != null && { event: input.event }),
1482
+ ...(input.importedValue != null && { importedValue: input.importedValue }),
1483
+ ...(input.model != null && { model: input.model }),
1484
+ ...(input.property != null && { property: input.property }),
1485
+ ...(input.type != null && { type: input.type }),
1486
+ ...(input.userAttribute != null && { userAttribute: input.userAttribute }),
1487
+ ...(input.value != null && { value: input.value }),
1498
1488
  };
1499
1489
  };
1500
1490
  const serializeAws_restJson1ComponentPropertyBindingProperties = (input, context) => {
1501
1491
  return {
1502
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1503
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1492
+ ...(input.field != null && { field: input.field }),
1493
+ ...(input.property != null && { property: input.property }),
1504
1494
  };
1505
1495
  };
1506
1496
  const serializeAws_restJson1ComponentPropertyList = (input, context) => {
@@ -1515,10 +1505,8 @@ const serializeAws_restJson1ComponentPropertyList = (input, context) => {
1515
1505
  };
1516
1506
  const serializeAws_restJson1ComponentVariant = (input, context) => {
1517
1507
  return {
1518
- ...(input.overrides !== undefined &&
1519
- input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1520
- ...(input.variantValues !== undefined &&
1521
- input.variantValues !== null && {
1508
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1509
+ ...(input.variantValues != null && {
1522
1510
  variantValues: serializeAws_restJson1ComponentVariantValues(input.variantValues, context),
1523
1511
  }),
1524
1512
  };
@@ -1546,53 +1534,44 @@ const serializeAws_restJson1ComponentVariantValues = (input, context) => {
1546
1534
  };
1547
1535
  const serializeAws_restJson1CreateComponentData = (input, context) => {
1548
1536
  return {
1549
- ...(input.bindingProperties !== undefined &&
1550
- input.bindingProperties !== null && {
1537
+ ...(input.bindingProperties != null && {
1551
1538
  bindingProperties: serializeAws_restJson1ComponentBindingProperties(input.bindingProperties, context),
1552
1539
  }),
1553
- ...(input.children !== undefined &&
1554
- input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1555
- ...(input.collectionProperties !== undefined &&
1556
- input.collectionProperties !== null && {
1540
+ ...(input.children != null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1541
+ ...(input.collectionProperties != null && {
1557
1542
  collectionProperties: serializeAws_restJson1ComponentCollectionProperties(input.collectionProperties, context),
1558
1543
  }),
1559
- ...(input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType }),
1560
- ...(input.events !== undefined &&
1561
- input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1562
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1563
- ...(input.overrides !== undefined &&
1564
- input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1565
- ...(input.properties !== undefined &&
1566
- input.properties !== null && {
1544
+ ...(input.componentType != null && { componentType: input.componentType }),
1545
+ ...(input.events != null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1546
+ ...(input.name != null && { name: input.name }),
1547
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1548
+ ...(input.properties != null && {
1567
1549
  properties: serializeAws_restJson1ComponentProperties(input.properties, context),
1568
1550
  }),
1569
- ...(input.schemaVersion !== undefined && input.schemaVersion !== null && { schemaVersion: input.schemaVersion }),
1570
- ...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
1571
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1572
- ...(input.variants !== undefined &&
1573
- input.variants !== null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1551
+ ...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
1552
+ ...(input.sourceId != null && { sourceId: input.sourceId }),
1553
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1554
+ ...(input.variants != null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1574
1555
  };
1575
1556
  };
1576
1557
  const serializeAws_restJson1CreateThemeData = (input, context) => {
1577
1558
  return {
1578
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1579
- ...(input.overrides !== undefined &&
1580
- input.overrides !== null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1581
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1582
- ...(input.values !== undefined &&
1583
- input.values !== null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1559
+ ...(input.name != null && { name: input.name }),
1560
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1561
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1562
+ ...(input.values != null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1584
1563
  };
1585
1564
  };
1586
1565
  const serializeAws_restJson1ExchangeCodeForTokenRequestBody = (input, context) => {
1587
1566
  return {
1588
- ...(input.code !== undefined && input.code !== null && { code: input.code }),
1589
- ...(input.redirectUri !== undefined && input.redirectUri !== null && { redirectUri: input.redirectUri }),
1567
+ ...(input.code != null && { code: input.code }),
1568
+ ...(input.redirectUri != null && { redirectUri: input.redirectUri }),
1590
1569
  };
1591
1570
  };
1592
1571
  const serializeAws_restJson1FormBindingElement = (input, context) => {
1593
1572
  return {
1594
- ...(input.element !== undefined && input.element !== null && { element: input.element }),
1595
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1573
+ ...(input.element != null && { element: input.element }),
1574
+ ...(input.property != null && { property: input.property }),
1596
1575
  };
1597
1576
  };
1598
1577
  const serializeAws_restJson1FormBindings = (input, context) => {
@@ -1618,20 +1597,18 @@ const serializeAws_restJson1IdentifierList = (input, context) => {
1618
1597
  };
1619
1598
  const serializeAws_restJson1MutationActionSetStateParameter = (input, context) => {
1620
1599
  return {
1621
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
1622
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1623
- ...(input.set !== undefined &&
1624
- input.set !== null && { set: serializeAws_restJson1ComponentProperty(input.set, context) }),
1600
+ ...(input.componentName != null && { componentName: input.componentName }),
1601
+ ...(input.property != null && { property: input.property }),
1602
+ ...(input.set != null && { set: serializeAws_restJson1ComponentProperty(input.set, context) }),
1625
1603
  };
1626
1604
  };
1627
1605
  const serializeAws_restJson1Predicate = (input, context) => {
1628
1606
  return {
1629
- ...(input.and !== undefined &&
1630
- input.and !== null && { and: serializeAws_restJson1PredicateList(input.and, context) }),
1631
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1632
- ...(input.operand !== undefined && input.operand !== null && { operand: input.operand }),
1633
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
1634
- ...(input.or !== undefined && input.or !== null && { or: serializeAws_restJson1PredicateList(input.or, context) }),
1607
+ ...(input.and != null && { and: serializeAws_restJson1PredicateList(input.and, context) }),
1608
+ ...(input.field != null && { field: input.field }),
1609
+ ...(input.operand != null && { operand: input.operand }),
1610
+ ...(input.operator != null && { operator: input.operator }),
1611
+ ...(input.or != null && { or: serializeAws_restJson1PredicateList(input.or, context) }),
1635
1612
  };
1636
1613
  };
1637
1614
  const serializeAws_restJson1PredicateList = (input, context) => {
@@ -1646,13 +1623,13 @@ const serializeAws_restJson1PredicateList = (input, context) => {
1646
1623
  };
1647
1624
  const serializeAws_restJson1RefreshTokenRequestBody = (input, context) => {
1648
1625
  return {
1649
- ...(input.token !== undefined && input.token !== null && { token: input.token }),
1626
+ ...(input.token != null && { token: input.token }),
1650
1627
  };
1651
1628
  };
1652
1629
  const serializeAws_restJson1SortProperty = (input, context) => {
1653
1630
  return {
1654
- ...(input.direction !== undefined && input.direction !== null && { direction: input.direction }),
1655
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1631
+ ...(input.direction != null && { direction: input.direction }),
1632
+ ...(input.field != null && { field: input.field }),
1656
1633
  };
1657
1634
  };
1658
1635
  const serializeAws_restJson1SortPropertyList = (input, context) => {
@@ -1678,16 +1655,14 @@ const serializeAws_restJson1Tags = (input, context) => {
1678
1655
  };
1679
1656
  const serializeAws_restJson1ThemeValue = (input, context) => {
1680
1657
  return {
1681
- ...(input.children !== undefined &&
1682
- input.children !== null && { children: serializeAws_restJson1ThemeValuesList(input.children, context) }),
1683
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1658
+ ...(input.children != null && { children: serializeAws_restJson1ThemeValuesList(input.children, context) }),
1659
+ ...(input.value != null && { value: input.value }),
1684
1660
  };
1685
1661
  };
1686
1662
  const serializeAws_restJson1ThemeValues = (input, context) => {
1687
1663
  return {
1688
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
1689
- ...(input.value !== undefined &&
1690
- input.value !== null && { value: serializeAws_restJson1ThemeValue(input.value, context) }),
1664
+ ...(input.key != null && { key: input.key }),
1665
+ ...(input.value != null && { value: serializeAws_restJson1ThemeValue(input.value, context) }),
1691
1666
  };
1692
1667
  };
1693
1668
  const serializeAws_restJson1ThemeValuesList = (input, context) => {
@@ -1702,111 +1677,70 @@ const serializeAws_restJson1ThemeValuesList = (input, context) => {
1702
1677
  };
1703
1678
  const serializeAws_restJson1UpdateComponentData = (input, context) => {
1704
1679
  return {
1705
- ...(input.bindingProperties !== undefined &&
1706
- input.bindingProperties !== null && {
1680
+ ...(input.bindingProperties != null && {
1707
1681
  bindingProperties: serializeAws_restJson1ComponentBindingProperties(input.bindingProperties, context),
1708
1682
  }),
1709
- ...(input.children !== undefined &&
1710
- input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1711
- ...(input.collectionProperties !== undefined &&
1712
- input.collectionProperties !== null && {
1683
+ ...(input.children != null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1684
+ ...(input.collectionProperties != null && {
1713
1685
  collectionProperties: serializeAws_restJson1ComponentCollectionProperties(input.collectionProperties, context),
1714
1686
  }),
1715
- ...(input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType }),
1716
- ...(input.events !== undefined &&
1717
- input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1718
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
1719
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1720
- ...(input.overrides !== undefined &&
1721
- input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1722
- ...(input.properties !== undefined &&
1723
- input.properties !== null && {
1687
+ ...(input.componentType != null && { componentType: input.componentType }),
1688
+ ...(input.events != null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1689
+ ...(input.id != null && { id: input.id }),
1690
+ ...(input.name != null && { name: input.name }),
1691
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1692
+ ...(input.properties != null && {
1724
1693
  properties: serializeAws_restJson1ComponentProperties(input.properties, context),
1725
1694
  }),
1726
- ...(input.schemaVersion !== undefined && input.schemaVersion !== null && { schemaVersion: input.schemaVersion }),
1727
- ...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
1728
- ...(input.variants !== undefined &&
1729
- input.variants !== null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1695
+ ...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
1696
+ ...(input.sourceId != null && { sourceId: input.sourceId }),
1697
+ ...(input.variants != null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1730
1698
  };
1731
1699
  };
1732
1700
  const serializeAws_restJson1UpdateThemeData = (input, context) => {
1733
1701
  return {
1734
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
1735
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1736
- ...(input.overrides !== undefined &&
1737
- input.overrides !== null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1738
- ...(input.values !== undefined &&
1739
- input.values !== null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1702
+ ...(input.id != null && { id: input.id }),
1703
+ ...(input.name != null && { name: input.name }),
1704
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1705
+ ...(input.values != null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1740
1706
  };
1741
1707
  };
1742
1708
  const deserializeAws_restJson1ActionParameters = (output, context) => {
1743
1709
  return {
1744
- anchor: output.anchor !== undefined && output.anchor !== null
1745
- ? deserializeAws_restJson1ComponentProperty(output.anchor, context)
1746
- : undefined,
1747
- fields: output.fields !== undefined && output.fields !== null
1748
- ? deserializeAws_restJson1ComponentProperties(output.fields, context)
1749
- : undefined,
1750
- global: output.global !== undefined && output.global !== null
1751
- ? deserializeAws_restJson1ComponentProperty(output.global, context)
1752
- : undefined,
1753
- id: output.id !== undefined && output.id !== null
1754
- ? deserializeAws_restJson1ComponentProperty(output.id, context)
1755
- : undefined,
1710
+ anchor: output.anchor != null ? deserializeAws_restJson1ComponentProperty(output.anchor, context) : undefined,
1711
+ fields: output.fields != null ? deserializeAws_restJson1ComponentProperties(output.fields, context) : undefined,
1712
+ global: output.global != null ? deserializeAws_restJson1ComponentProperty(output.global, context) : undefined,
1713
+ id: output.id != null ? deserializeAws_restJson1ComponentProperty(output.id, context) : undefined,
1756
1714
  model: (0, smithy_client_1.expectString)(output.model),
1757
- state: output.state !== undefined && output.state !== null
1758
- ? deserializeAws_restJson1MutationActionSetStateParameter(output.state, context)
1759
- : undefined,
1760
- target: output.target !== undefined && output.target !== null
1761
- ? deserializeAws_restJson1ComponentProperty(output.target, context)
1762
- : undefined,
1763
- type: output.type !== undefined && output.type !== null
1764
- ? deserializeAws_restJson1ComponentProperty(output.type, context)
1765
- : undefined,
1766
- url: output.url !== undefined && output.url !== null
1767
- ? deserializeAws_restJson1ComponentProperty(output.url, context)
1768
- : undefined,
1715
+ state: output.state != null ? deserializeAws_restJson1MutationActionSetStateParameter(output.state, context) : undefined,
1716
+ target: output.target != null ? deserializeAws_restJson1ComponentProperty(output.target, context) : undefined,
1717
+ type: output.type != null ? deserializeAws_restJson1ComponentProperty(output.type, context) : undefined,
1718
+ url: output.url != null ? deserializeAws_restJson1ComponentProperty(output.url, context) : undefined,
1769
1719
  };
1770
1720
  };
1771
1721
  const deserializeAws_restJson1Component = (output, context) => {
1772
1722
  return {
1773
1723
  appId: (0, smithy_client_1.expectString)(output.appId),
1774
- bindingProperties: output.bindingProperties !== undefined && output.bindingProperties !== null
1724
+ bindingProperties: output.bindingProperties != null
1775
1725
  ? deserializeAws_restJson1ComponentBindingProperties(output.bindingProperties, context)
1776
1726
  : undefined,
1777
- children: output.children !== undefined && output.children !== null
1778
- ? deserializeAws_restJson1ComponentChildList(output.children, context)
1779
- : undefined,
1780
- collectionProperties: output.collectionProperties !== undefined && output.collectionProperties !== null
1727
+ children: output.children != null ? deserializeAws_restJson1ComponentChildList(output.children, context) : undefined,
1728
+ collectionProperties: output.collectionProperties != null
1781
1729
  ? deserializeAws_restJson1ComponentCollectionProperties(output.collectionProperties, context)
1782
1730
  : undefined,
1783
1731
  componentType: (0, smithy_client_1.expectString)(output.componentType),
1784
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1785
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
1786
- : undefined,
1732
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
1787
1733
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
1788
- events: output.events !== undefined && output.events !== null
1789
- ? deserializeAws_restJson1ComponentEvents(output.events, context)
1790
- : undefined,
1734
+ events: output.events != null ? deserializeAws_restJson1ComponentEvents(output.events, context) : undefined,
1791
1735
  id: (0, smithy_client_1.expectString)(output.id),
1792
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
1793
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt))
1794
- : undefined,
1736
+ modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt)) : undefined,
1795
1737
  name: (0, smithy_client_1.expectString)(output.name),
1796
- overrides: output.overrides !== undefined && output.overrides !== null
1797
- ? deserializeAws_restJson1ComponentOverrides(output.overrides, context)
1798
- : undefined,
1799
- properties: output.properties !== undefined && output.properties !== null
1800
- ? deserializeAws_restJson1ComponentProperties(output.properties, context)
1801
- : undefined,
1738
+ overrides: output.overrides != null ? deserializeAws_restJson1ComponentOverrides(output.overrides, context) : undefined,
1739
+ properties: output.properties != null ? deserializeAws_restJson1ComponentProperties(output.properties, context) : undefined,
1802
1740
  schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
1803
1741
  sourceId: (0, smithy_client_1.expectString)(output.sourceId),
1804
- tags: output.tags !== undefined && output.tags !== null
1805
- ? deserializeAws_restJson1Tags(output.tags, context)
1806
- : undefined,
1807
- variants: output.variants !== undefined && output.variants !== null
1808
- ? deserializeAws_restJson1ComponentVariants(output.variants, context)
1809
- : undefined,
1742
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1743
+ variants: output.variants != null ? deserializeAws_restJson1ComponentVariants(output.variants, context) : undefined,
1810
1744
  };
1811
1745
  };
1812
1746
  const deserializeAws_restJson1ComponentBindingProperties = (output, context) => {
@@ -1822,7 +1756,7 @@ const deserializeAws_restJson1ComponentBindingProperties = (output, context) =>
1822
1756
  };
1823
1757
  const deserializeAws_restJson1ComponentBindingPropertiesValue = (output, context) => {
1824
1758
  return {
1825
- bindingProperties: output.bindingProperties !== undefined && output.bindingProperties !== null
1759
+ bindingProperties: output.bindingProperties != null
1826
1760
  ? deserializeAws_restJson1ComponentBindingPropertiesValueProperties(output.bindingProperties, context)
1827
1761
  : undefined,
1828
1762
  defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
@@ -1836,25 +1770,17 @@ const deserializeAws_restJson1ComponentBindingPropertiesValueProperties = (outpu
1836
1770
  field: (0, smithy_client_1.expectString)(output.field),
1837
1771
  key: (0, smithy_client_1.expectString)(output.key),
1838
1772
  model: (0, smithy_client_1.expectString)(output.model),
1839
- predicates: output.predicates !== undefined && output.predicates !== null
1840
- ? deserializeAws_restJson1PredicateList(output.predicates, context)
1841
- : undefined,
1773
+ predicates: output.predicates != null ? deserializeAws_restJson1PredicateList(output.predicates, context) : undefined,
1842
1774
  userAttribute: (0, smithy_client_1.expectString)(output.userAttribute),
1843
1775
  };
1844
1776
  };
1845
1777
  const deserializeAws_restJson1ComponentChild = (output, context) => {
1846
1778
  return {
1847
- children: output.children !== undefined && output.children !== null
1848
- ? deserializeAws_restJson1ComponentChildList(output.children, context)
1849
- : undefined,
1779
+ children: output.children != null ? deserializeAws_restJson1ComponentChildList(output.children, context) : undefined,
1850
1780
  componentType: (0, smithy_client_1.expectString)(output.componentType),
1851
- events: output.events !== undefined && output.events !== null
1852
- ? deserializeAws_restJson1ComponentEvents(output.events, context)
1853
- : undefined,
1781
+ events: output.events != null ? deserializeAws_restJson1ComponentEvents(output.events, context) : undefined,
1854
1782
  name: (0, smithy_client_1.expectString)(output.name),
1855
- properties: output.properties !== undefined && output.properties !== null
1856
- ? deserializeAws_restJson1ComponentProperties(output.properties, context)
1857
- : undefined,
1783
+ properties: output.properties != null ? deserializeAws_restJson1ComponentProperties(output.properties, context) : undefined,
1858
1784
  sourceId: (0, smithy_client_1.expectString)(output.sourceId),
1859
1785
  };
1860
1786
  };
@@ -1882,40 +1808,28 @@ const deserializeAws_restJson1ComponentCollectionProperties = (output, context)
1882
1808
  };
1883
1809
  const deserializeAws_restJson1ComponentConditionProperty = (output, context) => {
1884
1810
  return {
1885
- else: output.else !== undefined && output.else !== null
1886
- ? deserializeAws_restJson1ComponentProperty(output.else, context)
1887
- : undefined,
1811
+ else: output.else != null ? deserializeAws_restJson1ComponentProperty(output.else, context) : undefined,
1888
1812
  field: (0, smithy_client_1.expectString)(output.field),
1889
1813
  operand: (0, smithy_client_1.expectString)(output.operand),
1890
1814
  operandType: (0, smithy_client_1.expectString)(output.operandType),
1891
1815
  operator: (0, smithy_client_1.expectString)(output.operator),
1892
1816
  property: (0, smithy_client_1.expectString)(output.property),
1893
- then: output.then !== undefined && output.then !== null
1894
- ? deserializeAws_restJson1ComponentProperty(output.then, context)
1895
- : undefined,
1817
+ then: output.then != null ? deserializeAws_restJson1ComponentProperty(output.then, context) : undefined,
1896
1818
  };
1897
1819
  };
1898
1820
  const deserializeAws_restJson1ComponentDataConfiguration = (output, context) => {
1899
1821
  return {
1900
- identifiers: output.identifiers !== undefined && output.identifiers !== null
1901
- ? deserializeAws_restJson1IdentifierList(output.identifiers, context)
1902
- : undefined,
1822
+ identifiers: output.identifiers != null ? deserializeAws_restJson1IdentifierList(output.identifiers, context) : undefined,
1903
1823
  model: (0, smithy_client_1.expectString)(output.model),
1904
- predicate: output.predicate !== undefined && output.predicate !== null
1905
- ? deserializeAws_restJson1Predicate(output.predicate, context)
1906
- : undefined,
1907
- sort: output.sort !== undefined && output.sort !== null
1908
- ? deserializeAws_restJson1SortPropertyList(output.sort, context)
1909
- : undefined,
1824
+ predicate: output.predicate != null ? deserializeAws_restJson1Predicate(output.predicate, context) : undefined,
1825
+ sort: output.sort != null ? deserializeAws_restJson1SortPropertyList(output.sort, context) : undefined,
1910
1826
  };
1911
1827
  };
1912
1828
  const deserializeAws_restJson1ComponentEvent = (output, context) => {
1913
1829
  return {
1914
1830
  action: (0, smithy_client_1.expectString)(output.action),
1915
1831
  bindingEvent: (0, smithy_client_1.expectString)(output.bindingEvent),
1916
- parameters: output.parameters !== undefined && output.parameters !== null
1917
- ? deserializeAws_restJson1ActionParameters(output.parameters, context)
1918
- : undefined,
1832
+ parameters: output.parameters != null ? deserializeAws_restJson1ActionParameters(output.parameters, context) : undefined,
1919
1833
  };
1920
1834
  };
1921
1835
  const deserializeAws_restJson1ComponentEvents = (output, context) => {
@@ -1975,20 +1889,16 @@ const deserializeAws_restJson1ComponentProperties = (output, context) => {
1975
1889
  };
1976
1890
  const deserializeAws_restJson1ComponentProperty = (output, context) => {
1977
1891
  return {
1978
- bindingProperties: output.bindingProperties !== undefined && output.bindingProperties !== null
1892
+ bindingProperties: output.bindingProperties != null
1979
1893
  ? deserializeAws_restJson1ComponentPropertyBindingProperties(output.bindingProperties, context)
1980
1894
  : undefined,
1981
- bindings: output.bindings !== undefined && output.bindings !== null
1982
- ? deserializeAws_restJson1FormBindings(output.bindings, context)
1983
- : undefined,
1984
- collectionBindingProperties: output.collectionBindingProperties !== undefined && output.collectionBindingProperties !== null
1895
+ bindings: output.bindings != null ? deserializeAws_restJson1FormBindings(output.bindings, context) : undefined,
1896
+ collectionBindingProperties: output.collectionBindingProperties != null
1985
1897
  ? deserializeAws_restJson1ComponentPropertyBindingProperties(output.collectionBindingProperties, context)
1986
1898
  : undefined,
1987
1899
  componentName: (0, smithy_client_1.expectString)(output.componentName),
1988
- concat: output.concat !== undefined && output.concat !== null
1989
- ? deserializeAws_restJson1ComponentPropertyList(output.concat, context)
1990
- : undefined,
1991
- condition: output.condition !== undefined && output.condition !== null
1900
+ concat: output.concat != null ? deserializeAws_restJson1ComponentPropertyList(output.concat, context) : undefined,
1901
+ condition: output.condition != null
1992
1902
  ? deserializeAws_restJson1ComponentConditionProperty(output.condition, context)
1993
1903
  : undefined,
1994
1904
  configured: (0, smithy_client_1.expectBoolean)(output.configured),
@@ -2041,10 +1951,8 @@ const deserializeAws_restJson1ComponentSummaryList = (output, context) => {
2041
1951
  };
2042
1952
  const deserializeAws_restJson1ComponentVariant = (output, context) => {
2043
1953
  return {
2044
- overrides: output.overrides !== undefined && output.overrides !== null
2045
- ? deserializeAws_restJson1ComponentOverrides(output.overrides, context)
2046
- : undefined,
2047
- variantValues: output.variantValues !== undefined && output.variantValues !== null
1954
+ overrides: output.overrides != null ? deserializeAws_restJson1ComponentOverrides(output.overrides, context) : undefined,
1955
+ variantValues: output.variantValues != null
2048
1956
  ? deserializeAws_restJson1ComponentVariantValues(output.variantValues, context)
2049
1957
  : undefined,
2050
1958
  };
@@ -2103,22 +2011,16 @@ const deserializeAws_restJson1MutationActionSetStateParameter = (output, context
2103
2011
  return {
2104
2012
  componentName: (0, smithy_client_1.expectString)(output.componentName),
2105
2013
  property: (0, smithy_client_1.expectString)(output.property),
2106
- set: output.set !== undefined && output.set !== null
2107
- ? deserializeAws_restJson1ComponentProperty(output.set, context)
2108
- : undefined,
2014
+ set: output.set != null ? deserializeAws_restJson1ComponentProperty(output.set, context) : undefined,
2109
2015
  };
2110
2016
  };
2111
2017
  const deserializeAws_restJson1Predicate = (output, context) => {
2112
2018
  return {
2113
- and: output.and !== undefined && output.and !== null
2114
- ? deserializeAws_restJson1PredicateList(output.and, context)
2115
- : undefined,
2019
+ and: output.and != null ? deserializeAws_restJson1PredicateList(output.and, context) : undefined,
2116
2020
  field: (0, smithy_client_1.expectString)(output.field),
2117
2021
  operand: (0, smithy_client_1.expectString)(output.operand),
2118
2022
  operator: (0, smithy_client_1.expectString)(output.operator),
2119
- or: output.or !== undefined && output.or !== null
2120
- ? deserializeAws_restJson1PredicateList(output.or, context)
2121
- : undefined,
2023
+ or: output.or != null ? deserializeAws_restJson1PredicateList(output.or, context) : undefined,
2122
2024
  };
2123
2025
  };
2124
2026
  const deserializeAws_restJson1PredicateList = (output, context) => {
@@ -2163,24 +2065,14 @@ const deserializeAws_restJson1Tags = (output, context) => {
2163
2065
  const deserializeAws_restJson1Theme = (output, context) => {
2164
2066
  return {
2165
2067
  appId: (0, smithy_client_1.expectString)(output.appId),
2166
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2167
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2168
- : undefined,
2068
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2169
2069
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
2170
2070
  id: (0, smithy_client_1.expectString)(output.id),
2171
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
2172
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt))
2173
- : undefined,
2071
+ modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt)) : undefined,
2174
2072
  name: (0, smithy_client_1.expectString)(output.name),
2175
- overrides: output.overrides !== undefined && output.overrides !== null
2176
- ? deserializeAws_restJson1ThemeValuesList(output.overrides, context)
2177
- : undefined,
2178
- tags: output.tags !== undefined && output.tags !== null
2179
- ? deserializeAws_restJson1Tags(output.tags, context)
2180
- : undefined,
2181
- values: output.values !== undefined && output.values !== null
2182
- ? deserializeAws_restJson1ThemeValuesList(output.values, context)
2183
- : undefined,
2073
+ overrides: output.overrides != null ? deserializeAws_restJson1ThemeValuesList(output.overrides, context) : undefined,
2074
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2075
+ values: output.values != null ? deserializeAws_restJson1ThemeValuesList(output.values, context) : undefined,
2184
2076
  };
2185
2077
  };
2186
2078
  const deserializeAws_restJson1ThemeList = (output, context) => {
@@ -2215,18 +2107,14 @@ const deserializeAws_restJson1ThemeSummaryList = (output, context) => {
2215
2107
  };
2216
2108
  const deserializeAws_restJson1ThemeValue = (output, context) => {
2217
2109
  return {
2218
- children: output.children !== undefined && output.children !== null
2219
- ? deserializeAws_restJson1ThemeValuesList(output.children, context)
2220
- : undefined,
2110
+ children: output.children != null ? deserializeAws_restJson1ThemeValuesList(output.children, context) : undefined,
2221
2111
  value: (0, smithy_client_1.expectString)(output.value),
2222
2112
  };
2223
2113
  };
2224
2114
  const deserializeAws_restJson1ThemeValues = (output, context) => {
2225
2115
  return {
2226
2116
  key: (0, smithy_client_1.expectString)(output.key),
2227
- value: output.value !== undefined && output.value !== null
2228
- ? deserializeAws_restJson1ThemeValue(output.value, context)
2229
- : undefined,
2117
+ value: output.value != null ? deserializeAws_restJson1ThemeValue(output.value, context) : undefined,
2230
2118
  };
2231
2119
  };
2232
2120
  const deserializeAws_restJson1ThemeValuesList = (output, context) => {
@@ -2289,5 +2177,4 @@ const loadRestJsonErrorCode = (output, data) => {
2289
2177
  if (data["__type"] !== undefined) {
2290
2178
  return sanitizeErrorCode(data["__type"]);
2291
2179
  }
2292
- return "";
2293
2180
  };