@aws-sdk/client-omics 3.312.0 → 3.316.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.
@@ -17,9 +17,9 @@ const se_BatchDeleteReadSetCommand = async (input, context) => {
17
17
  "/sequencestore/{sequenceStoreId}/readset/batch/delete";
18
18
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
19
19
  let body;
20
- body = JSON.stringify({
21
- ...(input.ids != null && { ids: se_ReadSetIdList(input.ids, context) }),
22
- });
20
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
21
+ ids: (_) => (0, smithy_client_1._json)(_),
22
+ }));
23
23
  let { hostname: resolvedHostname } = await context.endpoint();
24
24
  if (context.disableHostPrefix !== true) {
25
25
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -117,15 +117,15 @@ const se_CreateAnnotationStoreCommand = async (input, context) => {
117
117
  };
118
118
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore";
119
119
  let body;
120
- body = JSON.stringify({
121
- ...(input.description != null && { description: input.description }),
122
- ...(input.name != null && { name: input.name }),
123
- ...(input.reference != null && { reference: se_ReferenceItem(input.reference, context) }),
124
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
125
- ...(input.storeFormat != null && { storeFormat: input.storeFormat }),
126
- ...(input.storeOptions != null && { storeOptions: se_StoreOptions(input.storeOptions, context) }),
127
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
128
- });
120
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
121
+ description: [],
122
+ name: [],
123
+ reference: (_) => (0, smithy_client_1._json)(_),
124
+ sseConfig: (_) => (0, smithy_client_1._json)(_),
125
+ storeFormat: [],
126
+ storeOptions: (_) => (0, smithy_client_1._json)(_),
127
+ tags: (_) => (0, smithy_client_1._json)(_),
128
+ }));
129
129
  let { hostname: resolvedHostname } = await context.endpoint();
130
130
  if (context.disableHostPrefix !== true) {
131
131
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -151,13 +151,13 @@ const se_CreateReferenceStoreCommand = async (input, context) => {
151
151
  };
152
152
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestore";
153
153
  let body;
154
- body = JSON.stringify({
155
- ...(input.clientToken != null && { clientToken: input.clientToken }),
156
- ...(input.description != null && { description: input.description }),
157
- ...(input.name != null && { name: input.name }),
158
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
159
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
160
- });
154
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
155
+ clientToken: [],
156
+ description: [],
157
+ name: [],
158
+ sseConfig: (_) => (0, smithy_client_1._json)(_),
159
+ tags: (_) => (0, smithy_client_1._json)(_),
160
+ }));
161
161
  let { hostname: resolvedHostname } = await context.endpoint();
162
162
  if (context.disableHostPrefix !== true) {
163
163
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -183,14 +183,14 @@ const se_CreateRunGroupCommand = async (input, context) => {
183
183
  };
184
184
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup";
185
185
  let body;
186
- body = JSON.stringify({
187
- ...(input.maxCpus != null && { maxCpus: input.maxCpus }),
188
- ...(input.maxDuration != null && { maxDuration: input.maxDuration }),
189
- ...(input.maxRuns != null && { maxRuns: input.maxRuns }),
190
- ...(input.name != null && { name: input.name }),
191
- requestId: input.requestId ?? (0, uuid_1.v4)(),
192
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
193
- });
186
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
187
+ maxCpus: [],
188
+ maxDuration: [],
189
+ maxRuns: [],
190
+ name: [],
191
+ requestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
192
+ tags: (_) => (0, smithy_client_1._json)(_),
193
+ }));
194
194
  let { hostname: resolvedHostname } = await context.endpoint();
195
195
  if (context.disableHostPrefix !== true) {
196
196
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -216,13 +216,13 @@ const se_CreateSequenceStoreCommand = async (input, context) => {
216
216
  };
217
217
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore";
218
218
  let body;
219
- body = JSON.stringify({
220
- ...(input.clientToken != null && { clientToken: input.clientToken }),
221
- ...(input.description != null && { description: input.description }),
222
- ...(input.name != null && { name: input.name }),
223
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
224
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
225
- });
219
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
220
+ clientToken: [],
221
+ description: [],
222
+ name: [],
223
+ sseConfig: (_) => (0, smithy_client_1._json)(_),
224
+ tags: (_) => (0, smithy_client_1._json)(_),
225
+ }));
226
226
  let { hostname: resolvedHostname } = await context.endpoint();
227
227
  if (context.disableHostPrefix !== true) {
228
228
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -248,13 +248,13 @@ const se_CreateVariantStoreCommand = async (input, context) => {
248
248
  };
249
249
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore";
250
250
  let body;
251
- body = JSON.stringify({
252
- ...(input.description != null && { description: input.description }),
253
- ...(input.name != null && { name: input.name }),
254
- ...(input.reference != null && { reference: se_ReferenceItem(input.reference, context) }),
255
- ...(input.sseConfig != null && { sseConfig: se_SseConfig(input.sseConfig, context) }),
256
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
257
- });
251
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
252
+ description: [],
253
+ name: [],
254
+ reference: (_) => (0, smithy_client_1._json)(_),
255
+ sseConfig: (_) => (0, smithy_client_1._json)(_),
256
+ tags: (_) => (0, smithy_client_1._json)(_),
257
+ }));
258
258
  let { hostname: resolvedHostname } = await context.endpoint();
259
259
  if (context.disableHostPrefix !== true) {
260
260
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -280,20 +280,18 @@ const se_CreateWorkflowCommand = async (input, context) => {
280
280
  };
281
281
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow";
282
282
  let body;
283
- body = JSON.stringify({
284
- ...(input.definitionUri != null && { definitionUri: input.definitionUri }),
285
- ...(input.definitionZip != null && { definitionZip: context.base64Encoder(input.definitionZip) }),
286
- ...(input.description != null && { description: input.description }),
287
- ...(input.engine != null && { engine: input.engine }),
288
- ...(input.main != null && { main: input.main }),
289
- ...(input.name != null && { name: input.name }),
290
- ...(input.parameterTemplate != null && {
291
- parameterTemplate: se_WorkflowParameterTemplate(input.parameterTemplate, context),
292
- }),
293
- requestId: input.requestId ?? (0, uuid_1.v4)(),
294
- ...(input.storageCapacity != null && { storageCapacity: input.storageCapacity }),
295
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
296
- });
283
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
284
+ definitionUri: [],
285
+ definitionZip: (_) => context.base64Encoder(_),
286
+ description: [],
287
+ engine: [],
288
+ main: [],
289
+ name: [],
290
+ parameterTemplate: (_) => (0, smithy_client_1._json)(_),
291
+ requestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
292
+ storageCapacity: [],
293
+ tags: (_) => (0, smithy_client_1._json)(_),
294
+ }));
297
295
  let { hostname: resolvedHostname } = await context.endpoint();
298
296
  if (context.disableHostPrefix !== true) {
299
297
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -317,7 +315,7 @@ const se_DeleteAnnotationStoreCommand = async (input, context) => {
317
315
  const headers = {};
318
316
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}";
319
317
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
320
- const query = map({
318
+ const query = (0, smithy_client_1.map)({
321
319
  force: [() => input.force !== void 0, () => input.force.toString()],
322
320
  });
323
321
  let body;
@@ -467,7 +465,7 @@ const se_DeleteVariantStoreCommand = async (input, context) => {
467
465
  const headers = {};
468
466
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}";
469
467
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
470
- const query = map({
468
+ const query = (0, smithy_client_1.map)({
471
469
  force: [() => input.force !== void 0, () => input.force.toString()],
472
470
  });
473
471
  let body;
@@ -569,7 +567,7 @@ const se_GetReadSetCommand = async (input, context) => {
569
567
  "/sequencestore/{sequenceStoreId}/readset/{id}";
570
568
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
571
569
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
572
- const query = map({
570
+ const query = (0, smithy_client_1.map)({
573
571
  file: [, input.file],
574
572
  partNumber: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input.partNumber.toString()],
575
573
  });
@@ -699,14 +697,14 @@ const se_GetReadSetMetadataCommand = async (input, context) => {
699
697
  exports.se_GetReadSetMetadataCommand = se_GetReadSetMetadataCommand;
700
698
  const se_GetReferenceCommand = async (input, context) => {
701
699
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
702
- const headers = map({}, isSerializableHeaderValue, {
700
+ const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
703
701
  range: input.range,
704
702
  });
705
703
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
706
704
  "/referencestore/{referenceStoreId}/reference/{id}";
707
705
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
708
706
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
709
- const query = map({
707
+ const query = (0, smithy_client_1.map)({
710
708
  partNumber: [(0, smithy_client_1.expectNonNull)(input.partNumber, `partNumber`) != null, () => input.partNumber.toString()],
711
709
  file: [, input.file],
712
710
  });
@@ -811,7 +809,7 @@ const se_GetRunCommand = async (input, context) => {
811
809
  const headers = {};
812
810
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}";
813
811
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
814
- const query = map({
812
+ const query = (0, smithy_client_1.map)({
815
813
  export: [() => input.export !== void 0, () => (input.export || []).map((_entry) => _entry)],
816
814
  });
817
815
  let body;
@@ -960,7 +958,7 @@ const se_GetWorkflowCommand = async (input, context) => {
960
958
  const headers = {};
961
959
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}";
962
960
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
963
- const query = map({
961
+ const query = (0, smithy_client_1.map)({
964
962
  type: [, input.type],
965
963
  export: [() => input.export !== void 0, () => (input.export || []).map((_entry) => _entry)],
966
964
  });
@@ -990,15 +988,15 @@ const se_ListAnnotationImportJobsCommand = async (input, context) => {
990
988
  "content-type": "application/json",
991
989
  };
992
990
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotations";
993
- const query = map({
991
+ const query = (0, smithy_client_1.map)({
994
992
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
995
993
  nextToken: [, input.nextToken],
996
994
  });
997
995
  let body;
998
- body = JSON.stringify({
999
- ...(input.filter != null && { filter: se_ListAnnotationImportJobsFilter(input.filter, context) }),
1000
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
1001
- });
996
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
997
+ filter: (_) => (0, smithy_client_1._json)(_),
998
+ ids: (_) => (0, smithy_client_1._json)(_),
999
+ }));
1002
1000
  let { hostname: resolvedHostname } = await context.endpoint();
1003
1001
  if (context.disableHostPrefix !== true) {
1004
1002
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1024,15 +1022,15 @@ const se_ListAnnotationStoresCommand = async (input, context) => {
1024
1022
  "content-type": "application/json",
1025
1023
  };
1026
1024
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStores";
1027
- const query = map({
1025
+ const query = (0, smithy_client_1.map)({
1028
1026
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1029
1027
  nextToken: [, input.nextToken],
1030
1028
  });
1031
1029
  let body;
1032
- body = JSON.stringify({
1033
- ...(input.filter != null && { filter: se_ListAnnotationStoresFilter(input.filter, context) }),
1034
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
1035
- });
1030
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1031
+ filter: (_) => (0, smithy_client_1._json)(_),
1032
+ ids: (_) => (0, smithy_client_1._json)(_),
1033
+ }));
1036
1034
  let { hostname: resolvedHostname } = await context.endpoint();
1037
1035
  if (context.disableHostPrefix !== true) {
1038
1036
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1060,14 +1058,14 @@ const se_ListReadSetActivationJobsCommand = async (input, context) => {
1060
1058
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1061
1059
  "/sequencestore/{sequenceStoreId}/activationjobs";
1062
1060
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1063
- const query = map({
1061
+ const query = (0, smithy_client_1.map)({
1064
1062
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1065
1063
  nextToken: [, input.nextToken],
1066
1064
  });
1067
1065
  let body;
1068
- body = JSON.stringify({
1069
- ...(input.filter != null && { filter: se_ActivateReadSetFilter(input.filter, context) }),
1070
- });
1066
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1067
+ filter: (_) => se_ActivateReadSetFilter(_, context),
1068
+ }));
1071
1069
  let { hostname: resolvedHostname } = await context.endpoint();
1072
1070
  if (context.disableHostPrefix !== true) {
1073
1071
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1095,14 +1093,14 @@ const se_ListReadSetExportJobsCommand = async (input, context) => {
1095
1093
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1096
1094
  "/sequencestore/{sequenceStoreId}/exportjobs";
1097
1095
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1098
- const query = map({
1096
+ const query = (0, smithy_client_1.map)({
1099
1097
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1100
1098
  nextToken: [, input.nextToken],
1101
1099
  });
1102
1100
  let body;
1103
- body = JSON.stringify({
1104
- ...(input.filter != null && { filter: se_ExportReadSetFilter(input.filter, context) }),
1105
- });
1101
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1102
+ filter: (_) => se_ExportReadSetFilter(_, context),
1103
+ }));
1106
1104
  let { hostname: resolvedHostname } = await context.endpoint();
1107
1105
  if (context.disableHostPrefix !== true) {
1108
1106
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1130,14 +1128,14 @@ const se_ListReadSetImportJobsCommand = async (input, context) => {
1130
1128
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1131
1129
  "/sequencestore/{sequenceStoreId}/importjobs";
1132
1130
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1133
- const query = map({
1131
+ const query = (0, smithy_client_1.map)({
1134
1132
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1135
1133
  nextToken: [, input.nextToken],
1136
1134
  });
1137
1135
  let body;
1138
- body = JSON.stringify({
1139
- ...(input.filter != null && { filter: se_ImportReadSetFilter(input.filter, context) }),
1140
- });
1136
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1137
+ filter: (_) => se_ImportReadSetFilter(_, context),
1138
+ }));
1141
1139
  let { hostname: resolvedHostname } = await context.endpoint();
1142
1140
  if (context.disableHostPrefix !== true) {
1143
1141
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1164,14 +1162,14 @@ const se_ListReadSetsCommand = async (input, context) => {
1164
1162
  };
1165
1163
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestore/{sequenceStoreId}/readsets";
1166
1164
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1167
- const query = map({
1165
+ const query = (0, smithy_client_1.map)({
1168
1166
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1169
1167
  nextToken: [, input.nextToken],
1170
1168
  });
1171
1169
  let body;
1172
- body = JSON.stringify({
1173
- ...(input.filter != null && { filter: se_ReadSetFilter(input.filter, context) }),
1174
- });
1170
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1171
+ filter: (_) => se_ReadSetFilter(_, context),
1172
+ }));
1175
1173
  let { hostname: resolvedHostname } = await context.endpoint();
1176
1174
  if (context.disableHostPrefix !== true) {
1177
1175
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1199,14 +1197,14 @@ const se_ListReferenceImportJobsCommand = async (input, context) => {
1199
1197
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1200
1198
  "/referencestore/{referenceStoreId}/importjobs";
1201
1199
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1202
- const query = map({
1200
+ const query = (0, smithy_client_1.map)({
1203
1201
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1204
1202
  nextToken: [, input.nextToken],
1205
1203
  });
1206
1204
  let body;
1207
- body = JSON.stringify({
1208
- ...(input.filter != null && { filter: se_ImportReferenceFilter(input.filter, context) }),
1209
- });
1205
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1206
+ filter: (_) => se_ImportReferenceFilter(_, context),
1207
+ }));
1210
1208
  let { hostname: resolvedHostname } = await context.endpoint();
1211
1209
  if (context.disableHostPrefix !== true) {
1212
1210
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1234,14 +1232,14 @@ const se_ListReferencesCommand = async (input, context) => {
1234
1232
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
1235
1233
  "/referencestore/{referenceStoreId}/references";
1236
1234
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1237
- const query = map({
1235
+ const query = (0, smithy_client_1.map)({
1238
1236
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1239
1237
  nextToken: [, input.nextToken],
1240
1238
  });
1241
1239
  let body;
1242
- body = JSON.stringify({
1243
- ...(input.filter != null && { filter: se_ReferenceFilter(input.filter, context) }),
1244
- });
1240
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1241
+ filter: (_) => se_ReferenceFilter(_, context),
1242
+ }));
1245
1243
  let { hostname: resolvedHostname } = await context.endpoint();
1246
1244
  if (context.disableHostPrefix !== true) {
1247
1245
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1267,14 +1265,14 @@ const se_ListReferenceStoresCommand = async (input, context) => {
1267
1265
  "content-type": "application/json",
1268
1266
  };
1269
1267
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/referencestores";
1270
- const query = map({
1268
+ const query = (0, smithy_client_1.map)({
1271
1269
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1272
1270
  nextToken: [, input.nextToken],
1273
1271
  });
1274
1272
  let body;
1275
- body = JSON.stringify({
1276
- ...(input.filter != null && { filter: se_ReferenceStoreFilter(input.filter, context) }),
1277
- });
1273
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1274
+ filter: (_) => se_ReferenceStoreFilter(_, context),
1275
+ }));
1278
1276
  let { hostname: resolvedHostname } = await context.endpoint();
1279
1277
  if (context.disableHostPrefix !== true) {
1280
1278
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1298,7 +1296,7 @@ const se_ListRunGroupsCommand = async (input, context) => {
1298
1296
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1299
1297
  const headers = {};
1300
1298
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup";
1301
- const query = map({
1299
+ const query = (0, smithy_client_1.map)({
1302
1300
  name: [, input.name],
1303
1301
  startingToken: [, input.startingToken],
1304
1302
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1327,7 +1325,7 @@ const se_ListRunsCommand = async (input, context) => {
1327
1325
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1328
1326
  const headers = {};
1329
1327
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run";
1330
- const query = map({
1328
+ const query = (0, smithy_client_1.map)({
1331
1329
  name: [, input.name],
1332
1330
  runGroupId: [, input.runGroupId],
1333
1331
  startingToken: [, input.startingToken],
@@ -1358,7 +1356,7 @@ const se_ListRunTasksCommand = async (input, context) => {
1358
1356
  const headers = {};
1359
1357
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run/{id}/task";
1360
1358
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1361
- const query = map({
1359
+ const query = (0, smithy_client_1.map)({
1362
1360
  status: [, input.status],
1363
1361
  startingToken: [, input.startingToken],
1364
1362
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
@@ -1389,14 +1387,14 @@ const se_ListSequenceStoresCommand = async (input, context) => {
1389
1387
  "content-type": "application/json",
1390
1388
  };
1391
1389
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/sequencestores";
1392
- const query = map({
1390
+ const query = (0, smithy_client_1.map)({
1393
1391
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1394
1392
  nextToken: [, input.nextToken],
1395
1393
  });
1396
1394
  let body;
1397
- body = JSON.stringify({
1398
- ...(input.filter != null && { filter: se_SequenceStoreFilter(input.filter, context) }),
1399
- });
1395
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1396
+ filter: (_) => se_SequenceStoreFilter(_, context),
1397
+ }));
1400
1398
  let { hostname: resolvedHostname } = await context.endpoint();
1401
1399
  if (context.disableHostPrefix !== true) {
1402
1400
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1446,15 +1444,15 @@ const se_ListVariantImportJobsCommand = async (input, context) => {
1446
1444
  "content-type": "application/json",
1447
1445
  };
1448
1446
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variants";
1449
- const query = map({
1447
+ const query = (0, smithy_client_1.map)({
1450
1448
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1451
1449
  nextToken: [, input.nextToken],
1452
1450
  });
1453
1451
  let body;
1454
- body = JSON.stringify({
1455
- ...(input.filter != null && { filter: se_ListVariantImportJobsFilter(input.filter, context) }),
1456
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
1457
- });
1452
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1453
+ filter: (_) => (0, smithy_client_1._json)(_),
1454
+ ids: (_) => (0, smithy_client_1._json)(_),
1455
+ }));
1458
1456
  let { hostname: resolvedHostname } = await context.endpoint();
1459
1457
  if (context.disableHostPrefix !== true) {
1460
1458
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1480,15 +1478,15 @@ const se_ListVariantStoresCommand = async (input, context) => {
1480
1478
  "content-type": "application/json",
1481
1479
  };
1482
1480
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStores";
1483
- const query = map({
1481
+ const query = (0, smithy_client_1.map)({
1484
1482
  maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
1485
1483
  nextToken: [, input.nextToken],
1486
1484
  });
1487
1485
  let body;
1488
- body = JSON.stringify({
1489
- ...(input.filter != null && { filter: se_ListVariantStoresFilter(input.filter, context) }),
1490
- ...(input.ids != null && { ids: se_IdList(input.ids, context) }),
1491
- });
1486
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1487
+ filter: (_) => (0, smithy_client_1._json)(_),
1488
+ ids: (_) => (0, smithy_client_1._json)(_),
1489
+ }));
1492
1490
  let { hostname: resolvedHostname } = await context.endpoint();
1493
1491
  if (context.disableHostPrefix !== true) {
1494
1492
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1512,7 +1510,7 @@ const se_ListWorkflowsCommand = async (input, context) => {
1512
1510
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
1513
1511
  const headers = {};
1514
1512
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow";
1515
- const query = map({
1513
+ const query = (0, smithy_client_1.map)({
1516
1514
  type: [, input.type],
1517
1515
  name: [, input.name],
1518
1516
  startingToken: [, input.startingToken],
@@ -1545,13 +1543,13 @@ const se_StartAnnotationImportJobCommand = async (input, context) => {
1545
1543
  };
1546
1544
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/annotation";
1547
1545
  let body;
1548
- body = JSON.stringify({
1549
- ...(input.destinationName != null && { destinationName: input.destinationName }),
1550
- ...(input.formatOptions != null && { formatOptions: se_FormatOptions(input.formatOptions, context) }),
1551
- ...(input.items != null && { items: se_AnnotationImportItemSources(input.items, context) }),
1552
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1553
- ...(input.runLeftNormalization != null && { runLeftNormalization: input.runLeftNormalization }),
1554
- });
1546
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1547
+ destinationName: [],
1548
+ formatOptions: (_) => (0, smithy_client_1._json)(_),
1549
+ items: (_) => (0, smithy_client_1._json)(_),
1550
+ roleArn: [],
1551
+ runLeftNormalization: [],
1552
+ }));
1555
1553
  let { hostname: resolvedHostname } = await context.endpoint();
1556
1554
  if (context.disableHostPrefix !== true) {
1557
1555
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1579,10 +1577,10 @@ const se_StartReadSetActivationJobCommand = async (input, context) => {
1579
1577
  "/sequencestore/{sequenceStoreId}/activationjob";
1580
1578
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1581
1579
  let body;
1582
- body = JSON.stringify({
1583
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1584
- ...(input.sources != null && { sources: se_StartReadSetActivationJobSourceList(input.sources, context) }),
1585
- });
1580
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1581
+ clientToken: [],
1582
+ sources: (_) => (0, smithy_client_1._json)(_),
1583
+ }));
1586
1584
  let { hostname: resolvedHostname } = await context.endpoint();
1587
1585
  if (context.disableHostPrefix !== true) {
1588
1586
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1610,12 +1608,12 @@ const se_StartReadSetExportJobCommand = async (input, context) => {
1610
1608
  "/sequencestore/{sequenceStoreId}/exportjob";
1611
1609
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1612
1610
  let body;
1613
- body = JSON.stringify({
1614
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1615
- ...(input.destination != null && { destination: input.destination }),
1616
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1617
- ...(input.sources != null && { sources: se_ExportReadSetList(input.sources, context) }),
1618
- });
1611
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1612
+ clientToken: [],
1613
+ destination: [],
1614
+ roleArn: [],
1615
+ sources: (_) => (0, smithy_client_1._json)(_),
1616
+ }));
1619
1617
  let { hostname: resolvedHostname } = await context.endpoint();
1620
1618
  if (context.disableHostPrefix !== true) {
1621
1619
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1643,11 +1641,11 @@ const se_StartReadSetImportJobCommand = async (input, context) => {
1643
1641
  "/sequencestore/{sequenceStoreId}/importjob";
1644
1642
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "sequenceStoreId", () => input.sequenceStoreId, "{sequenceStoreId}", false);
1645
1643
  let body;
1646
- body = JSON.stringify({
1647
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1648
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1649
- ...(input.sources != null && { sources: se_StartReadSetImportJobSourceList(input.sources, context) }),
1650
- });
1644
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1645
+ clientToken: [],
1646
+ roleArn: [],
1647
+ sources: (_) => (0, smithy_client_1._json)(_),
1648
+ }));
1651
1649
  let { hostname: resolvedHostname } = await context.endpoint();
1652
1650
  if (context.disableHostPrefix !== true) {
1653
1651
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1675,11 +1673,11 @@ const se_StartReferenceImportJobCommand = async (input, context) => {
1675
1673
  "/referencestore/{referenceStoreId}/importjob";
1676
1674
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "referenceStoreId", () => input.referenceStoreId, "{referenceStoreId}", false);
1677
1675
  let body;
1678
- body = JSON.stringify({
1679
- ...(input.clientToken != null && { clientToken: input.clientToken }),
1680
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1681
- ...(input.sources != null && { sources: se_StartReferenceImportJobSourceList(input.sources, context) }),
1682
- });
1676
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1677
+ clientToken: [],
1678
+ roleArn: [],
1679
+ sources: (_) => (0, smithy_client_1._json)(_),
1680
+ }));
1683
1681
  let { hostname: resolvedHostname } = await context.endpoint();
1684
1682
  if (context.disableHostPrefix !== true) {
1685
1683
  resolvedHostname = "control-storage-" + resolvedHostname;
@@ -1705,21 +1703,21 @@ const se_StartRunCommand = async (input, context) => {
1705
1703
  };
1706
1704
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/run";
1707
1705
  let body;
1708
- body = JSON.stringify({
1709
- ...(input.logLevel != null && { logLevel: input.logLevel }),
1710
- ...(input.name != null && { name: input.name }),
1711
- ...(input.outputUri != null && { outputUri: input.outputUri }),
1712
- ...(input.parameters != null && { parameters: se_RunParameters(input.parameters, context) }),
1713
- ...(input.priority != null && { priority: input.priority }),
1714
- requestId: input.requestId ?? (0, uuid_1.v4)(),
1715
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1716
- ...(input.runGroupId != null && { runGroupId: input.runGroupId }),
1717
- ...(input.runId != null && { runId: input.runId }),
1718
- ...(input.storageCapacity != null && { storageCapacity: input.storageCapacity }),
1719
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
1720
- ...(input.workflowId != null && { workflowId: input.workflowId }),
1721
- ...(input.workflowType != null && { workflowType: input.workflowType }),
1722
- });
1706
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1707
+ logLevel: [],
1708
+ name: [],
1709
+ outputUri: [],
1710
+ parameters: (_) => se_RunParameters(_, context),
1711
+ priority: [],
1712
+ requestId: [true, (_) => _ ?? (0, uuid_1.v4)()],
1713
+ roleArn: [],
1714
+ runGroupId: [],
1715
+ runId: [],
1716
+ storageCapacity: [],
1717
+ tags: (_) => (0, smithy_client_1._json)(_),
1718
+ workflowId: [],
1719
+ workflowType: [],
1720
+ }));
1723
1721
  let { hostname: resolvedHostname } = await context.endpoint();
1724
1722
  if (context.disableHostPrefix !== true) {
1725
1723
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -1745,12 +1743,12 @@ const se_StartVariantImportJobCommand = async (input, context) => {
1745
1743
  };
1746
1744
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/import/variant";
1747
1745
  let body;
1748
- body = JSON.stringify({
1749
- ...(input.destinationName != null && { destinationName: input.destinationName }),
1750
- ...(input.items != null && { items: se_VariantImportItemSources(input.items, context) }),
1751
- ...(input.roleArn != null && { roleArn: input.roleArn }),
1752
- ...(input.runLeftNormalization != null && { runLeftNormalization: input.runLeftNormalization }),
1753
- });
1746
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1747
+ destinationName: [],
1748
+ items: (_) => (0, smithy_client_1._json)(_),
1749
+ roleArn: [],
1750
+ runLeftNormalization: [],
1751
+ }));
1754
1752
  let { hostname: resolvedHostname } = await context.endpoint();
1755
1753
  if (context.disableHostPrefix !== true) {
1756
1754
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1777,9 +1775,9 @@ const se_TagResourceCommand = async (input, context) => {
1777
1775
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1778
1776
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1779
1777
  let body;
1780
- body = JSON.stringify({
1781
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
1782
- });
1778
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1779
+ tags: (_) => (0, smithy_client_1._json)(_),
1780
+ }));
1783
1781
  let { hostname: resolvedHostname } = await context.endpoint();
1784
1782
  if (context.disableHostPrefix !== true) {
1785
1783
  resolvedHostname = "tags-" + resolvedHostname;
@@ -1803,7 +1801,7 @@ const se_UntagResourceCommand = async (input, context) => {
1803
1801
  const headers = {};
1804
1802
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
1805
1803
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
1806
- const query = map({
1804
+ const query = (0, smithy_client_1.map)({
1807
1805
  tagKeys: [
1808
1806
  (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
1809
1807
  () => (input.tagKeys || []).map((_entry) => _entry),
@@ -1837,9 +1835,9 @@ const se_UpdateAnnotationStoreCommand = async (input, context) => {
1837
1835
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/annotationStore/{name}";
1838
1836
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
1839
1837
  let body;
1840
- body = JSON.stringify({
1841
- ...(input.description != null && { description: input.description }),
1842
- });
1838
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1839
+ description: [],
1840
+ }));
1843
1841
  let { hostname: resolvedHostname } = await context.endpoint();
1844
1842
  if (context.disableHostPrefix !== true) {
1845
1843
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1866,12 +1864,12 @@ const se_UpdateRunGroupCommand = async (input, context) => {
1866
1864
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/runGroup/{id}";
1867
1865
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1868
1866
  let body;
1869
- body = JSON.stringify({
1870
- ...(input.maxCpus != null && { maxCpus: input.maxCpus }),
1871
- ...(input.maxDuration != null && { maxDuration: input.maxDuration }),
1872
- ...(input.maxRuns != null && { maxRuns: input.maxRuns }),
1873
- ...(input.name != null && { name: input.name }),
1874
- });
1867
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1868
+ maxCpus: [],
1869
+ maxDuration: [],
1870
+ maxRuns: [],
1871
+ name: [],
1872
+ }));
1875
1873
  let { hostname: resolvedHostname } = await context.endpoint();
1876
1874
  if (context.disableHostPrefix !== true) {
1877
1875
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -1898,9 +1896,9 @@ const se_UpdateVariantStoreCommand = async (input, context) => {
1898
1896
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/variantStore/{name}";
1899
1897
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "name", () => input.name, "{name}", false);
1900
1898
  let body;
1901
- body = JSON.stringify({
1902
- ...(input.description != null && { description: input.description }),
1903
- });
1899
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1900
+ description: [],
1901
+ }));
1904
1902
  let { hostname: resolvedHostname } = await context.endpoint();
1905
1903
  if (context.disableHostPrefix !== true) {
1906
1904
  resolvedHostname = "analytics-" + resolvedHostname;
@@ -1927,10 +1925,10 @@ const se_UpdateWorkflowCommand = async (input, context) => {
1927
1925
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/workflow/{id}";
1928
1926
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
1929
1927
  let body;
1930
- body = JSON.stringify({
1931
- ...(input.description != null && { description: input.description }),
1932
- ...(input.name != null && { name: input.name }),
1933
- });
1928
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
1929
+ description: [],
1930
+ name: [],
1931
+ }));
1934
1932
  let { hostname: resolvedHostname } = await context.endpoint();
1935
1933
  if (context.disableHostPrefix !== true) {
1936
1934
  resolvedHostname = "workflows-" + resolvedHostname;
@@ -1953,13 +1951,14 @@ const de_BatchDeleteReadSetCommand = async (output, context) => {
1953
1951
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1954
1952
  return de_BatchDeleteReadSetCommandError(output, context);
1955
1953
  }
1956
- const contents = map({
1954
+ const contents = (0, smithy_client_1.map)({
1957
1955
  $metadata: deserializeMetadata(output),
1958
1956
  });
1959
1957
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1960
- if (data.errors != null) {
1961
- contents.errors = de_ReadSetBatchErrorList(data.errors, context);
1962
- }
1958
+ const doc = (0, smithy_client_1.take)(data, {
1959
+ errors: smithy_client_1._json,
1960
+ });
1961
+ Object.assign(contents, doc);
1963
1962
  return contents;
1964
1963
  };
1965
1964
  exports.de_BatchDeleteReadSetCommand = de_BatchDeleteReadSetCommand;
@@ -1990,10 +1989,9 @@ const de_BatchDeleteReadSetCommandError = async (output, context) => {
1990
1989
  throw await de_ValidationExceptionRes(parsedOutput, context);
1991
1990
  default:
1992
1991
  const parsedBody = parsedOutput.body;
1993
- (0, smithy_client_1.throwDefaultError)({
1992
+ return throwDefaultError({
1994
1993
  output,
1995
1994
  parsedBody,
1996
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
1997
1995
  errorCode,
1998
1996
  });
1999
1997
  }
@@ -2002,7 +2000,7 @@ const de_CancelAnnotationImportJobCommand = async (output, context) => {
2002
2000
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2003
2001
  return de_CancelAnnotationImportJobCommandError(output, context);
2004
2002
  }
2005
- const contents = map({
2003
+ const contents = (0, smithy_client_1.map)({
2006
2004
  $metadata: deserializeMetadata(output),
2007
2005
  });
2008
2006
  await collectBody(output.body, context);
@@ -2033,10 +2031,9 @@ const de_CancelAnnotationImportJobCommandError = async (output, context) => {
2033
2031
  throw await de_ValidationExceptionRes(parsedOutput, context);
2034
2032
  default:
2035
2033
  const parsedBody = parsedOutput.body;
2036
- (0, smithy_client_1.throwDefaultError)({
2034
+ return throwDefaultError({
2037
2035
  output,
2038
2036
  parsedBody,
2039
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2040
2037
  errorCode,
2041
2038
  });
2042
2039
  }
@@ -2045,7 +2042,7 @@ const de_CancelRunCommand = async (output, context) => {
2045
2042
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2046
2043
  return de_CancelRunCommandError(output, context);
2047
2044
  }
2048
- const contents = map({
2045
+ const contents = (0, smithy_client_1.map)({
2049
2046
  $metadata: deserializeMetadata(output),
2050
2047
  });
2051
2048
  await collectBody(output.body, context);
@@ -2085,10 +2082,9 @@ const de_CancelRunCommandError = async (output, context) => {
2085
2082
  throw await de_ValidationExceptionRes(parsedOutput, context);
2086
2083
  default:
2087
2084
  const parsedBody = parsedOutput.body;
2088
- (0, smithy_client_1.throwDefaultError)({
2085
+ return throwDefaultError({
2089
2086
  output,
2090
2087
  parsedBody,
2091
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2092
2088
  errorCode,
2093
2089
  });
2094
2090
  }
@@ -2097,7 +2093,7 @@ const de_CancelVariantImportJobCommand = async (output, context) => {
2097
2093
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2098
2094
  return de_CancelVariantImportJobCommandError(output, context);
2099
2095
  }
2100
- const contents = map({
2096
+ const contents = (0, smithy_client_1.map)({
2101
2097
  $metadata: deserializeMetadata(output),
2102
2098
  });
2103
2099
  await collectBody(output.body, context);
@@ -2128,10 +2124,9 @@ const de_CancelVariantImportJobCommandError = async (output, context) => {
2128
2124
  throw await de_ValidationExceptionRes(parsedOutput, context);
2129
2125
  default:
2130
2126
  const parsedBody = parsedOutput.body;
2131
- (0, smithy_client_1.throwDefaultError)({
2127
+ return throwDefaultError({
2132
2128
  output,
2133
2129
  parsedBody,
2134
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2135
2130
  errorCode,
2136
2131
  });
2137
2132
  }
@@ -2140,31 +2135,20 @@ const de_CreateAnnotationStoreCommand = async (output, context) => {
2140
2135
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2141
2136
  return de_CreateAnnotationStoreCommandError(output, context);
2142
2137
  }
2143
- const contents = map({
2138
+ const contents = (0, smithy_client_1.map)({
2144
2139
  $metadata: deserializeMetadata(output),
2145
2140
  });
2146
2141
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2147
- if (data.creationTime != null) {
2148
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
2149
- }
2150
- if (data.id != null) {
2151
- contents.id = (0, smithy_client_1.expectString)(data.id);
2152
- }
2153
- if (data.name != null) {
2154
- contents.name = (0, smithy_client_1.expectString)(data.name);
2155
- }
2156
- if (data.reference != null) {
2157
- contents.reference = de_ReferenceItem((0, smithy_client_1.expectUnion)(data.reference), context);
2158
- }
2159
- if (data.status != null) {
2160
- contents.status = (0, smithy_client_1.expectString)(data.status);
2161
- }
2162
- if (data.storeFormat != null) {
2163
- contents.storeFormat = (0, smithy_client_1.expectString)(data.storeFormat);
2164
- }
2165
- if (data.storeOptions != null) {
2166
- contents.storeOptions = de_StoreOptions((0, smithy_client_1.expectUnion)(data.storeOptions), context);
2167
- }
2142
+ const doc = (0, smithy_client_1.take)(data, {
2143
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2144
+ id: smithy_client_1.expectString,
2145
+ name: smithy_client_1.expectString,
2146
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2147
+ status: smithy_client_1.expectString,
2148
+ storeFormat: smithy_client_1.expectString,
2149
+ storeOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2150
+ });
2151
+ Object.assign(contents, doc);
2168
2152
  return contents;
2169
2153
  };
2170
2154
  exports.de_CreateAnnotationStoreCommand = de_CreateAnnotationStoreCommand;
@@ -2198,10 +2182,9 @@ const de_CreateAnnotationStoreCommandError = async (output, context) => {
2198
2182
  throw await de_ValidationExceptionRes(parsedOutput, context);
2199
2183
  default:
2200
2184
  const parsedBody = parsedOutput.body;
2201
- (0, smithy_client_1.throwDefaultError)({
2185
+ return throwDefaultError({
2202
2186
  output,
2203
2187
  parsedBody,
2204
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2205
2188
  errorCode,
2206
2189
  });
2207
2190
  }
@@ -2210,28 +2193,19 @@ const de_CreateReferenceStoreCommand = async (output, context) => {
2210
2193
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2211
2194
  return de_CreateReferenceStoreCommandError(output, context);
2212
2195
  }
2213
- const contents = map({
2196
+ const contents = (0, smithy_client_1.map)({
2214
2197
  $metadata: deserializeMetadata(output),
2215
2198
  });
2216
2199
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2217
- if (data.arn != null) {
2218
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
2219
- }
2220
- if (data.creationTime != null) {
2221
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
2222
- }
2223
- if (data.description != null) {
2224
- contents.description = (0, smithy_client_1.expectString)(data.description);
2225
- }
2226
- if (data.id != null) {
2227
- contents.id = (0, smithy_client_1.expectString)(data.id);
2228
- }
2229
- if (data.name != null) {
2230
- contents.name = (0, smithy_client_1.expectString)(data.name);
2231
- }
2232
- if (data.sseConfig != null) {
2233
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
2234
- }
2200
+ const doc = (0, smithy_client_1.take)(data, {
2201
+ arn: smithy_client_1.expectString,
2202
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2203
+ description: smithy_client_1.expectString,
2204
+ id: smithy_client_1.expectString,
2205
+ name: smithy_client_1.expectString,
2206
+ sseConfig: smithy_client_1._json,
2207
+ });
2208
+ Object.assign(contents, doc);
2235
2209
  return contents;
2236
2210
  };
2237
2211
  exports.de_CreateReferenceStoreCommand = de_CreateReferenceStoreCommand;
@@ -2262,10 +2236,9 @@ const de_CreateReferenceStoreCommandError = async (output, context) => {
2262
2236
  throw await de_ValidationExceptionRes(parsedOutput, context);
2263
2237
  default:
2264
2238
  const parsedBody = parsedOutput.body;
2265
- (0, smithy_client_1.throwDefaultError)({
2239
+ return throwDefaultError({
2266
2240
  output,
2267
2241
  parsedBody,
2268
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2269
2242
  errorCode,
2270
2243
  });
2271
2244
  }
@@ -2274,19 +2247,16 @@ const de_CreateRunGroupCommand = async (output, context) => {
2274
2247
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2275
2248
  return de_CreateRunGroupCommandError(output, context);
2276
2249
  }
2277
- const contents = map({
2250
+ const contents = (0, smithy_client_1.map)({
2278
2251
  $metadata: deserializeMetadata(output),
2279
2252
  });
2280
2253
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2281
- if (data.arn != null) {
2282
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
2283
- }
2284
- if (data.id != null) {
2285
- contents.id = (0, smithy_client_1.expectString)(data.id);
2286
- }
2287
- if (data.tags != null) {
2288
- contents.tags = de_TagMap(data.tags, context);
2289
- }
2254
+ const doc = (0, smithy_client_1.take)(data, {
2255
+ arn: smithy_client_1.expectString,
2256
+ id: smithy_client_1.expectString,
2257
+ tags: smithy_client_1._json,
2258
+ });
2259
+ Object.assign(contents, doc);
2290
2260
  return contents;
2291
2261
  };
2292
2262
  exports.de_CreateRunGroupCommand = de_CreateRunGroupCommand;
@@ -2323,10 +2293,9 @@ const de_CreateRunGroupCommandError = async (output, context) => {
2323
2293
  throw await de_ValidationExceptionRes(parsedOutput, context);
2324
2294
  default:
2325
2295
  const parsedBody = parsedOutput.body;
2326
- (0, smithy_client_1.throwDefaultError)({
2296
+ return throwDefaultError({
2327
2297
  output,
2328
2298
  parsedBody,
2329
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2330
2299
  errorCode,
2331
2300
  });
2332
2301
  }
@@ -2335,28 +2304,19 @@ const de_CreateSequenceStoreCommand = async (output, context) => {
2335
2304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2336
2305
  return de_CreateSequenceStoreCommandError(output, context);
2337
2306
  }
2338
- const contents = map({
2307
+ const contents = (0, smithy_client_1.map)({
2339
2308
  $metadata: deserializeMetadata(output),
2340
2309
  });
2341
2310
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2342
- if (data.arn != null) {
2343
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
2344
- }
2345
- if (data.creationTime != null) {
2346
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
2347
- }
2348
- if (data.description != null) {
2349
- contents.description = (0, smithy_client_1.expectString)(data.description);
2350
- }
2351
- if (data.id != null) {
2352
- contents.id = (0, smithy_client_1.expectString)(data.id);
2353
- }
2354
- if (data.name != null) {
2355
- contents.name = (0, smithy_client_1.expectString)(data.name);
2356
- }
2357
- if (data.sseConfig != null) {
2358
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
2359
- }
2311
+ const doc = (0, smithy_client_1.take)(data, {
2312
+ arn: smithy_client_1.expectString,
2313
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2314
+ description: smithy_client_1.expectString,
2315
+ id: smithy_client_1.expectString,
2316
+ name: smithy_client_1.expectString,
2317
+ sseConfig: smithy_client_1._json,
2318
+ });
2319
+ Object.assign(contents, doc);
2360
2320
  return contents;
2361
2321
  };
2362
2322
  exports.de_CreateSequenceStoreCommand = de_CreateSequenceStoreCommand;
@@ -2387,10 +2347,9 @@ const de_CreateSequenceStoreCommandError = async (output, context) => {
2387
2347
  throw await de_ValidationExceptionRes(parsedOutput, context);
2388
2348
  default:
2389
2349
  const parsedBody = parsedOutput.body;
2390
- (0, smithy_client_1.throwDefaultError)({
2350
+ return throwDefaultError({
2391
2351
  output,
2392
2352
  parsedBody,
2393
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2394
2353
  errorCode,
2395
2354
  });
2396
2355
  }
@@ -2399,25 +2358,18 @@ const de_CreateVariantStoreCommand = async (output, context) => {
2399
2358
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2400
2359
  return de_CreateVariantStoreCommandError(output, context);
2401
2360
  }
2402
- const contents = map({
2361
+ const contents = (0, smithy_client_1.map)({
2403
2362
  $metadata: deserializeMetadata(output),
2404
2363
  });
2405
2364
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2406
- if (data.creationTime != null) {
2407
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
2408
- }
2409
- if (data.id != null) {
2410
- contents.id = (0, smithy_client_1.expectString)(data.id);
2411
- }
2412
- if (data.name != null) {
2413
- contents.name = (0, smithy_client_1.expectString)(data.name);
2414
- }
2415
- if (data.reference != null) {
2416
- contents.reference = de_ReferenceItem((0, smithy_client_1.expectUnion)(data.reference), context);
2417
- }
2418
- if (data.status != null) {
2419
- contents.status = (0, smithy_client_1.expectString)(data.status);
2420
- }
2365
+ const doc = (0, smithy_client_1.take)(data, {
2366
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2367
+ id: smithy_client_1.expectString,
2368
+ name: smithy_client_1.expectString,
2369
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2370
+ status: smithy_client_1.expectString,
2371
+ });
2372
+ Object.assign(contents, doc);
2421
2373
  return contents;
2422
2374
  };
2423
2375
  exports.de_CreateVariantStoreCommand = de_CreateVariantStoreCommand;
@@ -2451,10 +2403,9 @@ const de_CreateVariantStoreCommandError = async (output, context) => {
2451
2403
  throw await de_ValidationExceptionRes(parsedOutput, context);
2452
2404
  default:
2453
2405
  const parsedBody = parsedOutput.body;
2454
- (0, smithy_client_1.throwDefaultError)({
2406
+ return throwDefaultError({
2455
2407
  output,
2456
2408
  parsedBody,
2457
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2458
2409
  errorCode,
2459
2410
  });
2460
2411
  }
@@ -2463,22 +2414,17 @@ const de_CreateWorkflowCommand = async (output, context) => {
2463
2414
  if (output.statusCode !== 201 && output.statusCode >= 300) {
2464
2415
  return de_CreateWorkflowCommandError(output, context);
2465
2416
  }
2466
- const contents = map({
2417
+ const contents = (0, smithy_client_1.map)({
2467
2418
  $metadata: deserializeMetadata(output),
2468
2419
  });
2469
2420
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2470
- if (data.arn != null) {
2471
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
2472
- }
2473
- if (data.id != null) {
2474
- contents.id = (0, smithy_client_1.expectString)(data.id);
2475
- }
2476
- if (data.status != null) {
2477
- contents.status = (0, smithy_client_1.expectString)(data.status);
2478
- }
2479
- if (data.tags != null) {
2480
- contents.tags = de_TagMap(data.tags, context);
2481
- }
2421
+ const doc = (0, smithy_client_1.take)(data, {
2422
+ arn: smithy_client_1.expectString,
2423
+ id: smithy_client_1.expectString,
2424
+ status: smithy_client_1.expectString,
2425
+ tags: smithy_client_1._json,
2426
+ });
2427
+ Object.assign(contents, doc);
2482
2428
  return contents;
2483
2429
  };
2484
2430
  exports.de_CreateWorkflowCommand = de_CreateWorkflowCommand;
@@ -2515,10 +2461,9 @@ const de_CreateWorkflowCommandError = async (output, context) => {
2515
2461
  throw await de_ValidationExceptionRes(parsedOutput, context);
2516
2462
  default:
2517
2463
  const parsedBody = parsedOutput.body;
2518
- (0, smithy_client_1.throwDefaultError)({
2464
+ return throwDefaultError({
2519
2465
  output,
2520
2466
  parsedBody,
2521
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2522
2467
  errorCode,
2523
2468
  });
2524
2469
  }
@@ -2527,13 +2472,14 @@ const de_DeleteAnnotationStoreCommand = async (output, context) => {
2527
2472
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2528
2473
  return de_DeleteAnnotationStoreCommandError(output, context);
2529
2474
  }
2530
- const contents = map({
2475
+ const contents = (0, smithy_client_1.map)({
2531
2476
  $metadata: deserializeMetadata(output),
2532
2477
  });
2533
2478
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2534
- if (data.status != null) {
2535
- contents.status = (0, smithy_client_1.expectString)(data.status);
2536
- }
2479
+ const doc = (0, smithy_client_1.take)(data, {
2480
+ status: smithy_client_1.expectString,
2481
+ });
2482
+ Object.assign(contents, doc);
2537
2483
  return contents;
2538
2484
  };
2539
2485
  exports.de_DeleteAnnotationStoreCommand = de_DeleteAnnotationStoreCommand;
@@ -2564,10 +2510,9 @@ const de_DeleteAnnotationStoreCommandError = async (output, context) => {
2564
2510
  throw await de_ValidationExceptionRes(parsedOutput, context);
2565
2511
  default:
2566
2512
  const parsedBody = parsedOutput.body;
2567
- (0, smithy_client_1.throwDefaultError)({
2513
+ return throwDefaultError({
2568
2514
  output,
2569
2515
  parsedBody,
2570
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2571
2516
  errorCode,
2572
2517
  });
2573
2518
  }
@@ -2576,7 +2521,7 @@ const de_DeleteReferenceCommand = async (output, context) => {
2576
2521
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2577
2522
  return de_DeleteReferenceCommandError(output, context);
2578
2523
  }
2579
- const contents = map({
2524
+ const contents = (0, smithy_client_1.map)({
2580
2525
  $metadata: deserializeMetadata(output),
2581
2526
  });
2582
2527
  await collectBody(output.body, context);
@@ -2613,10 +2558,9 @@ const de_DeleteReferenceCommandError = async (output, context) => {
2613
2558
  throw await de_ValidationExceptionRes(parsedOutput, context);
2614
2559
  default:
2615
2560
  const parsedBody = parsedOutput.body;
2616
- (0, smithy_client_1.throwDefaultError)({
2561
+ return throwDefaultError({
2617
2562
  output,
2618
2563
  parsedBody,
2619
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2620
2564
  errorCode,
2621
2565
  });
2622
2566
  }
@@ -2625,7 +2569,7 @@ const de_DeleteReferenceStoreCommand = async (output, context) => {
2625
2569
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2626
2570
  return de_DeleteReferenceStoreCommandError(output, context);
2627
2571
  }
2628
- const contents = map({
2572
+ const contents = (0, smithy_client_1.map)({
2629
2573
  $metadata: deserializeMetadata(output),
2630
2574
  });
2631
2575
  await collectBody(output.body, context);
@@ -2662,10 +2606,9 @@ const de_DeleteReferenceStoreCommandError = async (output, context) => {
2662
2606
  throw await de_ValidationExceptionRes(parsedOutput, context);
2663
2607
  default:
2664
2608
  const parsedBody = parsedOutput.body;
2665
- (0, smithy_client_1.throwDefaultError)({
2609
+ return throwDefaultError({
2666
2610
  output,
2667
2611
  parsedBody,
2668
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2669
2612
  errorCode,
2670
2613
  });
2671
2614
  }
@@ -2674,7 +2617,7 @@ const de_DeleteRunCommand = async (output, context) => {
2674
2617
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2675
2618
  return de_DeleteRunCommandError(output, context);
2676
2619
  }
2677
- const contents = map({
2620
+ const contents = (0, smithy_client_1.map)({
2678
2621
  $metadata: deserializeMetadata(output),
2679
2622
  });
2680
2623
  await collectBody(output.body, context);
@@ -2714,10 +2657,9 @@ const de_DeleteRunCommandError = async (output, context) => {
2714
2657
  throw await de_ValidationExceptionRes(parsedOutput, context);
2715
2658
  default:
2716
2659
  const parsedBody = parsedOutput.body;
2717
- (0, smithy_client_1.throwDefaultError)({
2660
+ return throwDefaultError({
2718
2661
  output,
2719
2662
  parsedBody,
2720
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2721
2663
  errorCode,
2722
2664
  });
2723
2665
  }
@@ -2726,7 +2668,7 @@ const de_DeleteRunGroupCommand = async (output, context) => {
2726
2668
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2727
2669
  return de_DeleteRunGroupCommandError(output, context);
2728
2670
  }
2729
- const contents = map({
2671
+ const contents = (0, smithy_client_1.map)({
2730
2672
  $metadata: deserializeMetadata(output),
2731
2673
  });
2732
2674
  await collectBody(output.body, context);
@@ -2766,10 +2708,9 @@ const de_DeleteRunGroupCommandError = async (output, context) => {
2766
2708
  throw await de_ValidationExceptionRes(parsedOutput, context);
2767
2709
  default:
2768
2710
  const parsedBody = parsedOutput.body;
2769
- (0, smithy_client_1.throwDefaultError)({
2711
+ return throwDefaultError({
2770
2712
  output,
2771
2713
  parsedBody,
2772
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2773
2714
  errorCode,
2774
2715
  });
2775
2716
  }
@@ -2778,7 +2719,7 @@ const de_DeleteSequenceStoreCommand = async (output, context) => {
2778
2719
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2779
2720
  return de_DeleteSequenceStoreCommandError(output, context);
2780
2721
  }
2781
- const contents = map({
2722
+ const contents = (0, smithy_client_1.map)({
2782
2723
  $metadata: deserializeMetadata(output),
2783
2724
  });
2784
2725
  await collectBody(output.body, context);
@@ -2815,10 +2756,9 @@ const de_DeleteSequenceStoreCommandError = async (output, context) => {
2815
2756
  throw await de_ValidationExceptionRes(parsedOutput, context);
2816
2757
  default:
2817
2758
  const parsedBody = parsedOutput.body;
2818
- (0, smithy_client_1.throwDefaultError)({
2759
+ return throwDefaultError({
2819
2760
  output,
2820
2761
  parsedBody,
2821
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2822
2762
  errorCode,
2823
2763
  });
2824
2764
  }
@@ -2827,13 +2767,14 @@ const de_DeleteVariantStoreCommand = async (output, context) => {
2827
2767
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2828
2768
  return de_DeleteVariantStoreCommandError(output, context);
2829
2769
  }
2830
- const contents = map({
2770
+ const contents = (0, smithy_client_1.map)({
2831
2771
  $metadata: deserializeMetadata(output),
2832
2772
  });
2833
2773
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2834
- if (data.status != null) {
2835
- contents.status = (0, smithy_client_1.expectString)(data.status);
2836
- }
2774
+ const doc = (0, smithy_client_1.take)(data, {
2775
+ status: smithy_client_1.expectString,
2776
+ });
2777
+ Object.assign(contents, doc);
2837
2778
  return contents;
2838
2779
  };
2839
2780
  exports.de_DeleteVariantStoreCommand = de_DeleteVariantStoreCommand;
@@ -2864,10 +2805,9 @@ const de_DeleteVariantStoreCommandError = async (output, context) => {
2864
2805
  throw await de_ValidationExceptionRes(parsedOutput, context);
2865
2806
  default:
2866
2807
  const parsedBody = parsedOutput.body;
2867
- (0, smithy_client_1.throwDefaultError)({
2808
+ return throwDefaultError({
2868
2809
  output,
2869
2810
  parsedBody,
2870
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2871
2811
  errorCode,
2872
2812
  });
2873
2813
  }
@@ -2876,7 +2816,7 @@ const de_DeleteWorkflowCommand = async (output, context) => {
2876
2816
  if (output.statusCode !== 202 && output.statusCode >= 300) {
2877
2817
  return de_DeleteWorkflowCommandError(output, context);
2878
2818
  }
2879
- const contents = map({
2819
+ const contents = (0, smithy_client_1.map)({
2880
2820
  $metadata: deserializeMetadata(output),
2881
2821
  });
2882
2822
  await collectBody(output.body, context);
@@ -2916,10 +2856,9 @@ const de_DeleteWorkflowCommandError = async (output, context) => {
2916
2856
  throw await de_ValidationExceptionRes(parsedOutput, context);
2917
2857
  default:
2918
2858
  const parsedBody = parsedOutput.body;
2919
- (0, smithy_client_1.throwDefaultError)({
2859
+ return throwDefaultError({
2920
2860
  output,
2921
2861
  parsedBody,
2922
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2923
2862
  errorCode,
2924
2863
  });
2925
2864
  }
@@ -2928,43 +2867,24 @@ const de_GetAnnotationImportJobCommand = async (output, context) => {
2928
2867
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2929
2868
  return de_GetAnnotationImportJobCommandError(output, context);
2930
2869
  }
2931
- const contents = map({
2870
+ const contents = (0, smithy_client_1.map)({
2932
2871
  $metadata: deserializeMetadata(output),
2933
2872
  });
2934
2873
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
2935
- if (data.completionTime != null) {
2936
- contents.completionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.completionTime));
2937
- }
2938
- if (data.creationTime != null) {
2939
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
2940
- }
2941
- if (data.destinationName != null) {
2942
- contents.destinationName = (0, smithy_client_1.expectString)(data.destinationName);
2943
- }
2944
- if (data.formatOptions != null) {
2945
- contents.formatOptions = de_FormatOptions((0, smithy_client_1.expectUnion)(data.formatOptions), context);
2946
- }
2947
- if (data.id != null) {
2948
- contents.id = (0, smithy_client_1.expectString)(data.id);
2949
- }
2950
- if (data.items != null) {
2951
- contents.items = de_AnnotationImportItemDetails(data.items, context);
2952
- }
2953
- if (data.roleArn != null) {
2954
- contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
2955
- }
2956
- if (data.runLeftNormalization != null) {
2957
- contents.runLeftNormalization = (0, smithy_client_1.expectBoolean)(data.runLeftNormalization);
2958
- }
2959
- if (data.status != null) {
2960
- contents.status = (0, smithy_client_1.expectString)(data.status);
2961
- }
2962
- if (data.statusMessage != null) {
2963
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
2964
- }
2965
- if (data.updateTime != null) {
2966
- contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
2967
- }
2874
+ const doc = (0, smithy_client_1.take)(data, {
2875
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2876
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2877
+ destinationName: smithy_client_1.expectString,
2878
+ formatOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2879
+ id: smithy_client_1.expectString,
2880
+ items: smithy_client_1._json,
2881
+ roleArn: smithy_client_1.expectString,
2882
+ runLeftNormalization: smithy_client_1.expectBoolean,
2883
+ status: smithy_client_1.expectString,
2884
+ statusMessage: smithy_client_1.expectString,
2885
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2886
+ });
2887
+ Object.assign(contents, doc);
2968
2888
  return contents;
2969
2889
  };
2970
2890
  exports.de_GetAnnotationImportJobCommand = de_GetAnnotationImportJobCommand;
@@ -2992,10 +2912,9 @@ const de_GetAnnotationImportJobCommandError = async (output, context) => {
2992
2912
  throw await de_ValidationExceptionRes(parsedOutput, context);
2993
2913
  default:
2994
2914
  const parsedBody = parsedOutput.body;
2995
- (0, smithy_client_1.throwDefaultError)({
2915
+ return throwDefaultError({
2996
2916
  output,
2997
2917
  parsedBody,
2998
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
2999
2918
  errorCode,
3000
2919
  });
3001
2920
  }
@@ -3004,52 +2923,27 @@ const de_GetAnnotationStoreCommand = async (output, context) => {
3004
2923
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3005
2924
  return de_GetAnnotationStoreCommandError(output, context);
3006
2925
  }
3007
- const contents = map({
2926
+ const contents = (0, smithy_client_1.map)({
3008
2927
  $metadata: deserializeMetadata(output),
3009
2928
  });
3010
2929
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3011
- if (data.creationTime != null) {
3012
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3013
- }
3014
- if (data.description != null) {
3015
- contents.description = (0, smithy_client_1.expectString)(data.description);
3016
- }
3017
- if (data.id != null) {
3018
- contents.id = (0, smithy_client_1.expectString)(data.id);
3019
- }
3020
- if (data.name != null) {
3021
- contents.name = (0, smithy_client_1.expectString)(data.name);
3022
- }
3023
- if (data.reference != null) {
3024
- contents.reference = de_ReferenceItem((0, smithy_client_1.expectUnion)(data.reference), context);
3025
- }
3026
- if (data.sseConfig != null) {
3027
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
3028
- }
3029
- if (data.status != null) {
3030
- contents.status = (0, smithy_client_1.expectString)(data.status);
3031
- }
3032
- if (data.statusMessage != null) {
3033
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
3034
- }
3035
- if (data.storeArn != null) {
3036
- contents.storeArn = (0, smithy_client_1.expectString)(data.storeArn);
3037
- }
3038
- if (data.storeFormat != null) {
3039
- contents.storeFormat = (0, smithy_client_1.expectString)(data.storeFormat);
3040
- }
3041
- if (data.storeOptions != null) {
3042
- contents.storeOptions = de_StoreOptions((0, smithy_client_1.expectUnion)(data.storeOptions), context);
3043
- }
3044
- if (data.storeSizeBytes != null) {
3045
- contents.storeSizeBytes = (0, smithy_client_1.expectLong)(data.storeSizeBytes);
3046
- }
3047
- if (data.tags != null) {
3048
- contents.tags = de_TagMap(data.tags, context);
3049
- }
3050
- if (data.updateTime != null) {
3051
- contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
3052
- }
2930
+ const doc = (0, smithy_client_1.take)(data, {
2931
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2932
+ description: smithy_client_1.expectString,
2933
+ id: smithy_client_1.expectString,
2934
+ name: smithy_client_1.expectString,
2935
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2936
+ sseConfig: smithy_client_1._json,
2937
+ status: smithy_client_1.expectString,
2938
+ statusMessage: smithy_client_1.expectString,
2939
+ storeArn: smithy_client_1.expectString,
2940
+ storeFormat: smithy_client_1.expectString,
2941
+ storeOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
2942
+ storeSizeBytes: smithy_client_1.expectLong,
2943
+ tags: smithy_client_1._json,
2944
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
2945
+ });
2946
+ Object.assign(contents, doc);
3053
2947
  return contents;
3054
2948
  };
3055
2949
  exports.de_GetAnnotationStoreCommand = de_GetAnnotationStoreCommand;
@@ -3077,10 +2971,9 @@ const de_GetAnnotationStoreCommandError = async (output, context) => {
3077
2971
  throw await de_ValidationExceptionRes(parsedOutput, context);
3078
2972
  default:
3079
2973
  const parsedBody = parsedOutput.body;
3080
- (0, smithy_client_1.throwDefaultError)({
2974
+ return throwDefaultError({
3081
2975
  output,
3082
2976
  parsedBody,
3083
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3084
2977
  errorCode,
3085
2978
  });
3086
2979
  }
@@ -3089,7 +2982,7 @@ const de_GetReadSetCommand = async (output, context) => {
3089
2982
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3090
2983
  return de_GetReadSetCommandError(output, context);
3091
2984
  }
3092
- const contents = map({
2985
+ const contents = (0, smithy_client_1.map)({
3093
2986
  $metadata: deserializeMetadata(output),
3094
2987
  });
3095
2988
  const data = output.body;
@@ -3131,10 +3024,9 @@ const de_GetReadSetCommandError = async (output, context) => {
3131
3024
  throw await de_ValidationExceptionRes(parsedOutput, context);
3132
3025
  default:
3133
3026
  const parsedBody = parsedOutput.body;
3134
- (0, smithy_client_1.throwDefaultError)({
3027
+ return throwDefaultError({
3135
3028
  output,
3136
3029
  parsedBody,
3137
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3138
3030
  errorCode,
3139
3031
  });
3140
3032
  }
@@ -3143,31 +3035,20 @@ const de_GetReadSetActivationJobCommand = async (output, context) => {
3143
3035
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3144
3036
  return de_GetReadSetActivationJobCommandError(output, context);
3145
3037
  }
3146
- const contents = map({
3038
+ const contents = (0, smithy_client_1.map)({
3147
3039
  $metadata: deserializeMetadata(output),
3148
3040
  });
3149
3041
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3150
- if (data.completionTime != null) {
3151
- contents.completionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.completionTime));
3152
- }
3153
- if (data.creationTime != null) {
3154
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3155
- }
3156
- if (data.id != null) {
3157
- contents.id = (0, smithy_client_1.expectString)(data.id);
3158
- }
3159
- if (data.sequenceStoreId != null) {
3160
- contents.sequenceStoreId = (0, smithy_client_1.expectString)(data.sequenceStoreId);
3161
- }
3162
- if (data.sources != null) {
3163
- contents.sources = de_ActivateReadSetSourceList(data.sources, context);
3164
- }
3165
- if (data.status != null) {
3166
- contents.status = (0, smithy_client_1.expectString)(data.status);
3167
- }
3168
- if (data.statusMessage != null) {
3169
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
3170
- }
3042
+ const doc = (0, smithy_client_1.take)(data, {
3043
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3044
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3045
+ id: smithy_client_1.expectString,
3046
+ sequenceStoreId: smithy_client_1.expectString,
3047
+ sources: smithy_client_1._json,
3048
+ status: smithy_client_1.expectString,
3049
+ statusMessage: smithy_client_1.expectString,
3050
+ });
3051
+ Object.assign(contents, doc);
3171
3052
  return contents;
3172
3053
  };
3173
3054
  exports.de_GetReadSetActivationJobCommand = de_GetReadSetActivationJobCommand;
@@ -3198,10 +3079,9 @@ const de_GetReadSetActivationJobCommandError = async (output, context) => {
3198
3079
  throw await de_ValidationExceptionRes(parsedOutput, context);
3199
3080
  default:
3200
3081
  const parsedBody = parsedOutput.body;
3201
- (0, smithy_client_1.throwDefaultError)({
3082
+ return throwDefaultError({
3202
3083
  output,
3203
3084
  parsedBody,
3204
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3205
3085
  errorCode,
3206
3086
  });
3207
3087
  }
@@ -3210,34 +3090,21 @@ const de_GetReadSetExportJobCommand = async (output, context) => {
3210
3090
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3211
3091
  return de_GetReadSetExportJobCommandError(output, context);
3212
3092
  }
3213
- const contents = map({
3093
+ const contents = (0, smithy_client_1.map)({
3214
3094
  $metadata: deserializeMetadata(output),
3215
3095
  });
3216
3096
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3217
- if (data.completionTime != null) {
3218
- contents.completionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.completionTime));
3219
- }
3220
- if (data.creationTime != null) {
3221
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3222
- }
3223
- if (data.destination != null) {
3224
- contents.destination = (0, smithy_client_1.expectString)(data.destination);
3225
- }
3226
- if (data.id != null) {
3227
- contents.id = (0, smithy_client_1.expectString)(data.id);
3228
- }
3229
- if (data.readSets != null) {
3230
- contents.readSets = de_ExportReadSetDetailList(data.readSets, context);
3231
- }
3232
- if (data.sequenceStoreId != null) {
3233
- contents.sequenceStoreId = (0, smithy_client_1.expectString)(data.sequenceStoreId);
3234
- }
3235
- if (data.status != null) {
3236
- contents.status = (0, smithy_client_1.expectString)(data.status);
3237
- }
3238
- if (data.statusMessage != null) {
3239
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
3240
- }
3097
+ const doc = (0, smithy_client_1.take)(data, {
3098
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3099
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3100
+ destination: smithy_client_1.expectString,
3101
+ id: smithy_client_1.expectString,
3102
+ readSets: smithy_client_1._json,
3103
+ sequenceStoreId: smithy_client_1.expectString,
3104
+ status: smithy_client_1.expectString,
3105
+ statusMessage: smithy_client_1.expectString,
3106
+ });
3107
+ Object.assign(contents, doc);
3241
3108
  return contents;
3242
3109
  };
3243
3110
  exports.de_GetReadSetExportJobCommand = de_GetReadSetExportJobCommand;
@@ -3268,10 +3135,9 @@ const de_GetReadSetExportJobCommandError = async (output, context) => {
3268
3135
  throw await de_ValidationExceptionRes(parsedOutput, context);
3269
3136
  default:
3270
3137
  const parsedBody = parsedOutput.body;
3271
- (0, smithy_client_1.throwDefaultError)({
3138
+ return throwDefaultError({
3272
3139
  output,
3273
3140
  parsedBody,
3274
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3275
3141
  errorCode,
3276
3142
  });
3277
3143
  }
@@ -3280,34 +3146,21 @@ const de_GetReadSetImportJobCommand = async (output, context) => {
3280
3146
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3281
3147
  return de_GetReadSetImportJobCommandError(output, context);
3282
3148
  }
3283
- const contents = map({
3149
+ const contents = (0, smithy_client_1.map)({
3284
3150
  $metadata: deserializeMetadata(output),
3285
3151
  });
3286
3152
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3287
- if (data.completionTime != null) {
3288
- contents.completionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.completionTime));
3289
- }
3290
- if (data.creationTime != null) {
3291
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3292
- }
3293
- if (data.id != null) {
3294
- contents.id = (0, smithy_client_1.expectString)(data.id);
3295
- }
3296
- if (data.roleArn != null) {
3297
- contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
3298
- }
3299
- if (data.sequenceStoreId != null) {
3300
- contents.sequenceStoreId = (0, smithy_client_1.expectString)(data.sequenceStoreId);
3301
- }
3302
- if (data.sources != null) {
3303
- contents.sources = de_ImportReadSetSourceList(data.sources, context);
3304
- }
3305
- if (data.status != null) {
3306
- contents.status = (0, smithy_client_1.expectString)(data.status);
3307
- }
3308
- if (data.statusMessage != null) {
3309
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
3310
- }
3153
+ const doc = (0, smithy_client_1.take)(data, {
3154
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3155
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3156
+ id: smithy_client_1.expectString,
3157
+ roleArn: smithy_client_1.expectString,
3158
+ sequenceStoreId: smithy_client_1.expectString,
3159
+ sources: smithy_client_1._json,
3160
+ status: smithy_client_1.expectString,
3161
+ statusMessage: smithy_client_1.expectString,
3162
+ });
3163
+ Object.assign(contents, doc);
3311
3164
  return contents;
3312
3165
  };
3313
3166
  exports.de_GetReadSetImportJobCommand = de_GetReadSetImportJobCommand;
@@ -3338,10 +3191,9 @@ const de_GetReadSetImportJobCommandError = async (output, context) => {
3338
3191
  throw await de_ValidationExceptionRes(parsedOutput, context);
3339
3192
  default:
3340
3193
  const parsedBody = parsedOutput.body;
3341
- (0, smithy_client_1.throwDefaultError)({
3194
+ return throwDefaultError({
3342
3195
  output,
3343
3196
  parsedBody,
3344
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3345
3197
  errorCode,
3346
3198
  });
3347
3199
  }
@@ -3350,49 +3202,26 @@ const de_GetReadSetMetadataCommand = async (output, context) => {
3350
3202
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3351
3203
  return de_GetReadSetMetadataCommandError(output, context);
3352
3204
  }
3353
- const contents = map({
3205
+ const contents = (0, smithy_client_1.map)({
3354
3206
  $metadata: deserializeMetadata(output),
3355
3207
  });
3356
3208
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3357
- if (data.arn != null) {
3358
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
3359
- }
3360
- if (data.creationTime != null) {
3361
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3362
- }
3363
- if (data.description != null) {
3364
- contents.description = (0, smithy_client_1.expectString)(data.description);
3365
- }
3366
- if (data.fileType != null) {
3367
- contents.fileType = (0, smithy_client_1.expectString)(data.fileType);
3368
- }
3369
- if (data.files != null) {
3370
- contents.files = de_ReadSetFiles(data.files, context);
3371
- }
3372
- if (data.id != null) {
3373
- contents.id = (0, smithy_client_1.expectString)(data.id);
3374
- }
3375
- if (data.name != null) {
3376
- contents.name = (0, smithy_client_1.expectString)(data.name);
3377
- }
3378
- if (data.referenceArn != null) {
3379
- contents.referenceArn = (0, smithy_client_1.expectString)(data.referenceArn);
3380
- }
3381
- if (data.sampleId != null) {
3382
- contents.sampleId = (0, smithy_client_1.expectString)(data.sampleId);
3383
- }
3384
- if (data.sequenceInformation != null) {
3385
- contents.sequenceInformation = de_SequenceInformation(data.sequenceInformation, context);
3386
- }
3387
- if (data.sequenceStoreId != null) {
3388
- contents.sequenceStoreId = (0, smithy_client_1.expectString)(data.sequenceStoreId);
3389
- }
3390
- if (data.status != null) {
3391
- contents.status = (0, smithy_client_1.expectString)(data.status);
3392
- }
3393
- if (data.subjectId != null) {
3394
- contents.subjectId = (0, smithy_client_1.expectString)(data.subjectId);
3395
- }
3209
+ const doc = (0, smithy_client_1.take)(data, {
3210
+ arn: smithy_client_1.expectString,
3211
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3212
+ description: smithy_client_1.expectString,
3213
+ fileType: smithy_client_1.expectString,
3214
+ files: smithy_client_1._json,
3215
+ id: smithy_client_1.expectString,
3216
+ name: smithy_client_1.expectString,
3217
+ referenceArn: smithy_client_1.expectString,
3218
+ sampleId: smithy_client_1.expectString,
3219
+ sequenceInformation: smithy_client_1._json,
3220
+ sequenceStoreId: smithy_client_1.expectString,
3221
+ status: smithy_client_1.expectString,
3222
+ subjectId: smithy_client_1.expectString,
3223
+ });
3224
+ Object.assign(contents, doc);
3396
3225
  return contents;
3397
3226
  };
3398
3227
  exports.de_GetReadSetMetadataCommand = de_GetReadSetMetadataCommand;
@@ -3423,10 +3252,9 @@ const de_GetReadSetMetadataCommandError = async (output, context) => {
3423
3252
  throw await de_ValidationExceptionRes(parsedOutput, context);
3424
3253
  default:
3425
3254
  const parsedBody = parsedOutput.body;
3426
- (0, smithy_client_1.throwDefaultError)({
3255
+ return throwDefaultError({
3427
3256
  output,
3428
3257
  parsedBody,
3429
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3430
3258
  errorCode,
3431
3259
  });
3432
3260
  }
@@ -3435,7 +3263,7 @@ const de_GetReferenceCommand = async (output, context) => {
3435
3263
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3436
3264
  return de_GetReferenceCommandError(output, context);
3437
3265
  }
3438
- const contents = map({
3266
+ const contents = (0, smithy_client_1.map)({
3439
3267
  $metadata: deserializeMetadata(output),
3440
3268
  });
3441
3269
  const data = output.body;
@@ -3474,10 +3302,9 @@ const de_GetReferenceCommandError = async (output, context) => {
3474
3302
  throw await de_ValidationExceptionRes(parsedOutput, context);
3475
3303
  default:
3476
3304
  const parsedBody = parsedOutput.body;
3477
- (0, smithy_client_1.throwDefaultError)({
3305
+ return throwDefaultError({
3478
3306
  output,
3479
3307
  parsedBody,
3480
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3481
3308
  errorCode,
3482
3309
  });
3483
3310
  }
@@ -3486,34 +3313,21 @@ const de_GetReferenceImportJobCommand = async (output, context) => {
3486
3313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3487
3314
  return de_GetReferenceImportJobCommandError(output, context);
3488
3315
  }
3489
- const contents = map({
3316
+ const contents = (0, smithy_client_1.map)({
3490
3317
  $metadata: deserializeMetadata(output),
3491
3318
  });
3492
3319
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3493
- if (data.completionTime != null) {
3494
- contents.completionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.completionTime));
3495
- }
3496
- if (data.creationTime != null) {
3497
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3498
- }
3499
- if (data.id != null) {
3500
- contents.id = (0, smithy_client_1.expectString)(data.id);
3501
- }
3502
- if (data.referenceStoreId != null) {
3503
- contents.referenceStoreId = (0, smithy_client_1.expectString)(data.referenceStoreId);
3504
- }
3505
- if (data.roleArn != null) {
3506
- contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
3507
- }
3508
- if (data.sources != null) {
3509
- contents.sources = de_ImportReferenceSourceList(data.sources, context);
3510
- }
3511
- if (data.status != null) {
3512
- contents.status = (0, smithy_client_1.expectString)(data.status);
3513
- }
3514
- if (data.statusMessage != null) {
3515
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
3516
- }
3320
+ const doc = (0, smithy_client_1.take)(data, {
3321
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3322
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3323
+ id: smithy_client_1.expectString,
3324
+ referenceStoreId: smithy_client_1.expectString,
3325
+ roleArn: smithy_client_1.expectString,
3326
+ sources: smithy_client_1._json,
3327
+ status: smithy_client_1.expectString,
3328
+ statusMessage: smithy_client_1.expectString,
3329
+ });
3330
+ Object.assign(contents, doc);
3517
3331
  return contents;
3518
3332
  };
3519
3333
  exports.de_GetReferenceImportJobCommand = de_GetReferenceImportJobCommand;
@@ -3544,10 +3358,9 @@ const de_GetReferenceImportJobCommandError = async (output, context) => {
3544
3358
  throw await de_ValidationExceptionRes(parsedOutput, context);
3545
3359
  default:
3546
3360
  const parsedBody = parsedOutput.body;
3547
- (0, smithy_client_1.throwDefaultError)({
3361
+ return throwDefaultError({
3548
3362
  output,
3549
3363
  parsedBody,
3550
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3551
3364
  errorCode,
3552
3365
  });
3553
3366
  }
@@ -3556,40 +3369,23 @@ const de_GetReferenceMetadataCommand = async (output, context) => {
3556
3369
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3557
3370
  return de_GetReferenceMetadataCommandError(output, context);
3558
3371
  }
3559
- const contents = map({
3372
+ const contents = (0, smithy_client_1.map)({
3560
3373
  $metadata: deserializeMetadata(output),
3561
3374
  });
3562
3375
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3563
- if (data.arn != null) {
3564
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
3565
- }
3566
- if (data.creationTime != null) {
3567
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3568
- }
3569
- if (data.description != null) {
3570
- contents.description = (0, smithy_client_1.expectString)(data.description);
3571
- }
3572
- if (data.files != null) {
3573
- contents.files = de_ReferenceFiles(data.files, context);
3574
- }
3575
- if (data.id != null) {
3576
- contents.id = (0, smithy_client_1.expectString)(data.id);
3577
- }
3578
- if (data.md5 != null) {
3579
- contents.md5 = (0, smithy_client_1.expectString)(data.md5);
3580
- }
3581
- if (data.name != null) {
3582
- contents.name = (0, smithy_client_1.expectString)(data.name);
3583
- }
3584
- if (data.referenceStoreId != null) {
3585
- contents.referenceStoreId = (0, smithy_client_1.expectString)(data.referenceStoreId);
3586
- }
3587
- if (data.status != null) {
3588
- contents.status = (0, smithy_client_1.expectString)(data.status);
3589
- }
3590
- if (data.updateTime != null) {
3591
- contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
3592
- }
3376
+ const doc = (0, smithy_client_1.take)(data, {
3377
+ arn: smithy_client_1.expectString,
3378
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3379
+ description: smithy_client_1.expectString,
3380
+ files: smithy_client_1._json,
3381
+ id: smithy_client_1.expectString,
3382
+ md5: smithy_client_1.expectString,
3383
+ name: smithy_client_1.expectString,
3384
+ referenceStoreId: smithy_client_1.expectString,
3385
+ status: smithy_client_1.expectString,
3386
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3387
+ });
3388
+ Object.assign(contents, doc);
3593
3389
  return contents;
3594
3390
  };
3595
3391
  exports.de_GetReferenceMetadataCommand = de_GetReferenceMetadataCommand;
@@ -3620,10 +3416,9 @@ const de_GetReferenceMetadataCommandError = async (output, context) => {
3620
3416
  throw await de_ValidationExceptionRes(parsedOutput, context);
3621
3417
  default:
3622
3418
  const parsedBody = parsedOutput.body;
3623
- (0, smithy_client_1.throwDefaultError)({
3419
+ return throwDefaultError({
3624
3420
  output,
3625
3421
  parsedBody,
3626
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3627
3422
  errorCode,
3628
3423
  });
3629
3424
  }
@@ -3632,28 +3427,19 @@ const de_GetReferenceStoreCommand = async (output, context) => {
3632
3427
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3633
3428
  return de_GetReferenceStoreCommandError(output, context);
3634
3429
  }
3635
- const contents = map({
3430
+ const contents = (0, smithy_client_1.map)({
3636
3431
  $metadata: deserializeMetadata(output),
3637
3432
  });
3638
3433
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3639
- if (data.arn != null) {
3640
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
3641
- }
3642
- if (data.creationTime != null) {
3643
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3644
- }
3645
- if (data.description != null) {
3646
- contents.description = (0, smithy_client_1.expectString)(data.description);
3647
- }
3648
- if (data.id != null) {
3649
- contents.id = (0, smithy_client_1.expectString)(data.id);
3650
- }
3651
- if (data.name != null) {
3652
- contents.name = (0, smithy_client_1.expectString)(data.name);
3653
- }
3654
- if (data.sseConfig != null) {
3655
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
3656
- }
3434
+ const doc = (0, smithy_client_1.take)(data, {
3435
+ arn: smithy_client_1.expectString,
3436
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3437
+ description: smithy_client_1.expectString,
3438
+ id: smithy_client_1.expectString,
3439
+ name: smithy_client_1.expectString,
3440
+ sseConfig: smithy_client_1._json,
3441
+ });
3442
+ Object.assign(contents, doc);
3657
3443
  return contents;
3658
3444
  };
3659
3445
  exports.de_GetReferenceStoreCommand = de_GetReferenceStoreCommand;
@@ -3684,10 +3470,9 @@ const de_GetReferenceStoreCommandError = async (output, context) => {
3684
3470
  throw await de_ValidationExceptionRes(parsedOutput, context);
3685
3471
  default:
3686
3472
  const parsedBody = parsedOutput.body;
3687
- (0, smithy_client_1.throwDefaultError)({
3473
+ return throwDefaultError({
3688
3474
  output,
3689
3475
  parsedBody,
3690
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3691
3476
  errorCode,
3692
3477
  });
3693
3478
  }
@@ -3696,79 +3481,36 @@ const de_GetRunCommand = async (output, context) => {
3696
3481
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3697
3482
  return de_GetRunCommandError(output, context);
3698
3483
  }
3699
- const contents = map({
3484
+ const contents = (0, smithy_client_1.map)({
3700
3485
  $metadata: deserializeMetadata(output),
3701
3486
  });
3702
3487
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3703
- if (data.arn != null) {
3704
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
3705
- }
3706
- if (data.creationTime != null) {
3707
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3708
- }
3709
- if (data.definition != null) {
3710
- contents.definition = (0, smithy_client_1.expectString)(data.definition);
3711
- }
3712
- if (data.digest != null) {
3713
- contents.digest = (0, smithy_client_1.expectString)(data.digest);
3714
- }
3715
- if (data.id != null) {
3716
- contents.id = (0, smithy_client_1.expectString)(data.id);
3717
- }
3718
- if (data.logLevel != null) {
3719
- contents.logLevel = (0, smithy_client_1.expectString)(data.logLevel);
3720
- }
3721
- if (data.name != null) {
3722
- contents.name = (0, smithy_client_1.expectString)(data.name);
3723
- }
3724
- if (data.outputUri != null) {
3725
- contents.outputUri = (0, smithy_client_1.expectString)(data.outputUri);
3726
- }
3727
- if (data.parameters != null) {
3728
- contents.parameters = de_RunParameters(data.parameters, context);
3729
- }
3730
- if (data.priority != null) {
3731
- contents.priority = (0, smithy_client_1.expectInt32)(data.priority);
3732
- }
3733
- if (data.resourceDigests != null) {
3734
- contents.resourceDigests = de_RunResourceDigests(data.resourceDigests, context);
3735
- }
3736
- if (data.roleArn != null) {
3737
- contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
3738
- }
3739
- if (data.runGroupId != null) {
3740
- contents.runGroupId = (0, smithy_client_1.expectString)(data.runGroupId);
3741
- }
3742
- if (data.runId != null) {
3743
- contents.runId = (0, smithy_client_1.expectString)(data.runId);
3744
- }
3745
- if (data.startTime != null) {
3746
- contents.startTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.startTime));
3747
- }
3748
- if (data.startedBy != null) {
3749
- contents.startedBy = (0, smithy_client_1.expectString)(data.startedBy);
3750
- }
3751
- if (data.status != null) {
3752
- contents.status = (0, smithy_client_1.expectString)(data.status);
3753
- }
3754
- if (data.statusMessage != null) {
3755
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
3756
- }
3757
- if (data.stopTime != null) {
3758
- contents.stopTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.stopTime));
3759
- }
3760
- if (data.storageCapacity != null) {
3761
- contents.storageCapacity = (0, smithy_client_1.expectInt32)(data.storageCapacity);
3762
- }
3763
- if (data.tags != null) {
3764
- contents.tags = de_TagMap(data.tags, context);
3765
- }
3766
- if (data.workflowId != null) {
3767
- contents.workflowId = (0, smithy_client_1.expectString)(data.workflowId);
3768
- }
3769
- if (data.workflowType != null) {
3770
- contents.workflowType = (0, smithy_client_1.expectString)(data.workflowType);
3771
- }
3488
+ const doc = (0, smithy_client_1.take)(data, {
3489
+ arn: smithy_client_1.expectString,
3490
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3491
+ definition: smithy_client_1.expectString,
3492
+ digest: smithy_client_1.expectString,
3493
+ id: smithy_client_1.expectString,
3494
+ logLevel: smithy_client_1.expectString,
3495
+ name: smithy_client_1.expectString,
3496
+ outputUri: smithy_client_1.expectString,
3497
+ parameters: (_) => de_RunParameters(_, context),
3498
+ priority: smithy_client_1.expectInt32,
3499
+ resourceDigests: smithy_client_1._json,
3500
+ roleArn: smithy_client_1.expectString,
3501
+ runGroupId: smithy_client_1.expectString,
3502
+ runId: smithy_client_1.expectString,
3503
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3504
+ startedBy: smithy_client_1.expectString,
3505
+ status: smithy_client_1.expectString,
3506
+ statusMessage: smithy_client_1.expectString,
3507
+ stopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3508
+ storageCapacity: smithy_client_1.expectInt32,
3509
+ tags: smithy_client_1._json,
3510
+ workflowId: smithy_client_1.expectString,
3511
+ workflowType: smithy_client_1.expectString,
3512
+ });
3513
+ Object.assign(contents, doc);
3772
3514
  return contents;
3773
3515
  };
3774
3516
  exports.de_GetRunCommand = de_GetRunCommand;
@@ -3805,10 +3547,9 @@ const de_GetRunCommandError = async (output, context) => {
3805
3547
  throw await de_ValidationExceptionRes(parsedOutput, context);
3806
3548
  default:
3807
3549
  const parsedBody = parsedOutput.body;
3808
- (0, smithy_client_1.throwDefaultError)({
3550
+ return throwDefaultError({
3809
3551
  output,
3810
3552
  parsedBody,
3811
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3812
3553
  errorCode,
3813
3554
  });
3814
3555
  }
@@ -3817,34 +3558,21 @@ const de_GetRunGroupCommand = async (output, context) => {
3817
3558
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3818
3559
  return de_GetRunGroupCommandError(output, context);
3819
3560
  }
3820
- const contents = map({
3561
+ const contents = (0, smithy_client_1.map)({
3821
3562
  $metadata: deserializeMetadata(output),
3822
3563
  });
3823
3564
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3824
- if (data.arn != null) {
3825
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
3826
- }
3827
- if (data.creationTime != null) {
3828
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3829
- }
3830
- if (data.id != null) {
3831
- contents.id = (0, smithy_client_1.expectString)(data.id);
3832
- }
3833
- if (data.maxCpus != null) {
3834
- contents.maxCpus = (0, smithy_client_1.expectInt32)(data.maxCpus);
3835
- }
3836
- if (data.maxDuration != null) {
3837
- contents.maxDuration = (0, smithy_client_1.expectInt32)(data.maxDuration);
3838
- }
3839
- if (data.maxRuns != null) {
3840
- contents.maxRuns = (0, smithy_client_1.expectInt32)(data.maxRuns);
3841
- }
3842
- if (data.name != null) {
3843
- contents.name = (0, smithy_client_1.expectString)(data.name);
3844
- }
3845
- if (data.tags != null) {
3846
- contents.tags = de_TagMap(data.tags, context);
3847
- }
3565
+ const doc = (0, smithy_client_1.take)(data, {
3566
+ arn: smithy_client_1.expectString,
3567
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3568
+ id: smithy_client_1.expectString,
3569
+ maxCpus: smithy_client_1.expectInt32,
3570
+ maxDuration: smithy_client_1.expectInt32,
3571
+ maxRuns: smithy_client_1.expectInt32,
3572
+ name: smithy_client_1.expectString,
3573
+ tags: smithy_client_1._json,
3574
+ });
3575
+ Object.assign(contents, doc);
3848
3576
  return contents;
3849
3577
  };
3850
3578
  exports.de_GetRunGroupCommand = de_GetRunGroupCommand;
@@ -3881,10 +3609,9 @@ const de_GetRunGroupCommandError = async (output, context) => {
3881
3609
  throw await de_ValidationExceptionRes(parsedOutput, context);
3882
3610
  default:
3883
3611
  const parsedBody = parsedOutput.body;
3884
- (0, smithy_client_1.throwDefaultError)({
3612
+ return throwDefaultError({
3885
3613
  output,
3886
3614
  parsedBody,
3887
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3888
3615
  errorCode,
3889
3616
  });
3890
3617
  }
@@ -3893,40 +3620,23 @@ const de_GetRunTaskCommand = async (output, context) => {
3893
3620
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3894
3621
  return de_GetRunTaskCommandError(output, context);
3895
3622
  }
3896
- const contents = map({
3623
+ const contents = (0, smithy_client_1.map)({
3897
3624
  $metadata: deserializeMetadata(output),
3898
3625
  });
3899
3626
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3900
- if (data.cpus != null) {
3901
- contents.cpus = (0, smithy_client_1.expectInt32)(data.cpus);
3902
- }
3903
- if (data.creationTime != null) {
3904
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3905
- }
3906
- if (data.logStream != null) {
3907
- contents.logStream = (0, smithy_client_1.expectString)(data.logStream);
3908
- }
3909
- if (data.memory != null) {
3910
- contents.memory = (0, smithy_client_1.expectInt32)(data.memory);
3911
- }
3912
- if (data.name != null) {
3913
- contents.name = (0, smithy_client_1.expectString)(data.name);
3914
- }
3915
- if (data.startTime != null) {
3916
- contents.startTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.startTime));
3917
- }
3918
- if (data.status != null) {
3919
- contents.status = (0, smithy_client_1.expectString)(data.status);
3920
- }
3921
- if (data.statusMessage != null) {
3922
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
3923
- }
3924
- if (data.stopTime != null) {
3925
- contents.stopTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.stopTime));
3926
- }
3927
- if (data.taskId != null) {
3928
- contents.taskId = (0, smithy_client_1.expectString)(data.taskId);
3929
- }
3627
+ const doc = (0, smithy_client_1.take)(data, {
3628
+ cpus: smithy_client_1.expectInt32,
3629
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3630
+ logStream: smithy_client_1.expectString,
3631
+ memory: smithy_client_1.expectInt32,
3632
+ name: smithy_client_1.expectString,
3633
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3634
+ status: smithy_client_1.expectString,
3635
+ statusMessage: smithy_client_1.expectString,
3636
+ stopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3637
+ taskId: smithy_client_1.expectString,
3638
+ });
3639
+ Object.assign(contents, doc);
3930
3640
  return contents;
3931
3641
  };
3932
3642
  exports.de_GetRunTaskCommand = de_GetRunTaskCommand;
@@ -3963,10 +3673,9 @@ const de_GetRunTaskCommandError = async (output, context) => {
3963
3673
  throw await de_ValidationExceptionRes(parsedOutput, context);
3964
3674
  default:
3965
3675
  const parsedBody = parsedOutput.body;
3966
- (0, smithy_client_1.throwDefaultError)({
3676
+ return throwDefaultError({
3967
3677
  output,
3968
3678
  parsedBody,
3969
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
3970
3679
  errorCode,
3971
3680
  });
3972
3681
  }
@@ -3975,28 +3684,19 @@ const de_GetSequenceStoreCommand = async (output, context) => {
3975
3684
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3976
3685
  return de_GetSequenceStoreCommandError(output, context);
3977
3686
  }
3978
- const contents = map({
3687
+ const contents = (0, smithy_client_1.map)({
3979
3688
  $metadata: deserializeMetadata(output),
3980
3689
  });
3981
3690
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
3982
- if (data.arn != null) {
3983
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
3984
- }
3985
- if (data.creationTime != null) {
3986
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
3987
- }
3988
- if (data.description != null) {
3989
- contents.description = (0, smithy_client_1.expectString)(data.description);
3990
- }
3991
- if (data.id != null) {
3992
- contents.id = (0, smithy_client_1.expectString)(data.id);
3993
- }
3994
- if (data.name != null) {
3995
- contents.name = (0, smithy_client_1.expectString)(data.name);
3996
- }
3997
- if (data.sseConfig != null) {
3998
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
3999
- }
3691
+ const doc = (0, smithy_client_1.take)(data, {
3692
+ arn: smithy_client_1.expectString,
3693
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3694
+ description: smithy_client_1.expectString,
3695
+ id: smithy_client_1.expectString,
3696
+ name: smithy_client_1.expectString,
3697
+ sseConfig: smithy_client_1._json,
3698
+ });
3699
+ Object.assign(contents, doc);
4000
3700
  return contents;
4001
3701
  };
4002
3702
  exports.de_GetSequenceStoreCommand = de_GetSequenceStoreCommand;
@@ -4027,10 +3727,9 @@ const de_GetSequenceStoreCommandError = async (output, context) => {
4027
3727
  throw await de_ValidationExceptionRes(parsedOutput, context);
4028
3728
  default:
4029
3729
  const parsedBody = parsedOutput.body;
4030
- (0, smithy_client_1.throwDefaultError)({
3730
+ return throwDefaultError({
4031
3731
  output,
4032
3732
  parsedBody,
4033
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4034
3733
  errorCode,
4035
3734
  });
4036
3735
  }
@@ -4039,40 +3738,23 @@ const de_GetVariantImportJobCommand = async (output, context) => {
4039
3738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4040
3739
  return de_GetVariantImportJobCommandError(output, context);
4041
3740
  }
4042
- const contents = map({
3741
+ const contents = (0, smithy_client_1.map)({
4043
3742
  $metadata: deserializeMetadata(output),
4044
3743
  });
4045
3744
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4046
- if (data.completionTime != null) {
4047
- contents.completionTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.completionTime));
4048
- }
4049
- if (data.creationTime != null) {
4050
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
4051
- }
4052
- if (data.destinationName != null) {
4053
- contents.destinationName = (0, smithy_client_1.expectString)(data.destinationName);
4054
- }
4055
- if (data.id != null) {
4056
- contents.id = (0, smithy_client_1.expectString)(data.id);
4057
- }
4058
- if (data.items != null) {
4059
- contents.items = de_VariantImportItemDetails(data.items, context);
4060
- }
4061
- if (data.roleArn != null) {
4062
- contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
4063
- }
4064
- if (data.runLeftNormalization != null) {
4065
- contents.runLeftNormalization = (0, smithy_client_1.expectBoolean)(data.runLeftNormalization);
4066
- }
4067
- if (data.status != null) {
4068
- contents.status = (0, smithy_client_1.expectString)(data.status);
4069
- }
4070
- if (data.statusMessage != null) {
4071
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
4072
- }
4073
- if (data.updateTime != null) {
4074
- contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
4075
- }
3745
+ const doc = (0, smithy_client_1.take)(data, {
3746
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3747
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3748
+ destinationName: smithy_client_1.expectString,
3749
+ id: smithy_client_1.expectString,
3750
+ items: smithy_client_1._json,
3751
+ roleArn: smithy_client_1.expectString,
3752
+ runLeftNormalization: smithy_client_1.expectBoolean,
3753
+ status: smithy_client_1.expectString,
3754
+ statusMessage: smithy_client_1.expectString,
3755
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3756
+ });
3757
+ Object.assign(contents, doc);
4076
3758
  return contents;
4077
3759
  };
4078
3760
  exports.de_GetVariantImportJobCommand = de_GetVariantImportJobCommand;
@@ -4100,10 +3782,9 @@ const de_GetVariantImportJobCommandError = async (output, context) => {
4100
3782
  throw await de_ValidationExceptionRes(parsedOutput, context);
4101
3783
  default:
4102
3784
  const parsedBody = parsedOutput.body;
4103
- (0, smithy_client_1.throwDefaultError)({
3785
+ return throwDefaultError({
4104
3786
  output,
4105
3787
  parsedBody,
4106
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4107
3788
  errorCode,
4108
3789
  });
4109
3790
  }
@@ -4112,46 +3793,25 @@ const de_GetVariantStoreCommand = async (output, context) => {
4112
3793
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4113
3794
  return de_GetVariantStoreCommandError(output, context);
4114
3795
  }
4115
- const contents = map({
3796
+ const contents = (0, smithy_client_1.map)({
4116
3797
  $metadata: deserializeMetadata(output),
4117
3798
  });
4118
3799
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4119
- if (data.creationTime != null) {
4120
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
4121
- }
4122
- if (data.description != null) {
4123
- contents.description = (0, smithy_client_1.expectString)(data.description);
4124
- }
4125
- if (data.id != null) {
4126
- contents.id = (0, smithy_client_1.expectString)(data.id);
4127
- }
4128
- if (data.name != null) {
4129
- contents.name = (0, smithy_client_1.expectString)(data.name);
4130
- }
4131
- if (data.reference != null) {
4132
- contents.reference = de_ReferenceItem((0, smithy_client_1.expectUnion)(data.reference), context);
4133
- }
4134
- if (data.sseConfig != null) {
4135
- contents.sseConfig = de_SseConfig(data.sseConfig, context);
4136
- }
4137
- if (data.status != null) {
4138
- contents.status = (0, smithy_client_1.expectString)(data.status);
4139
- }
4140
- if (data.statusMessage != null) {
4141
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
4142
- }
4143
- if (data.storeArn != null) {
4144
- contents.storeArn = (0, smithy_client_1.expectString)(data.storeArn);
4145
- }
4146
- if (data.storeSizeBytes != null) {
4147
- contents.storeSizeBytes = (0, smithy_client_1.expectLong)(data.storeSizeBytes);
4148
- }
4149
- if (data.tags != null) {
4150
- contents.tags = de_TagMap(data.tags, context);
4151
- }
4152
- if (data.updateTime != null) {
4153
- contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
4154
- }
3800
+ const doc = (0, smithy_client_1.take)(data, {
3801
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3802
+ description: smithy_client_1.expectString,
3803
+ id: smithy_client_1.expectString,
3804
+ name: smithy_client_1.expectString,
3805
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
3806
+ sseConfig: smithy_client_1._json,
3807
+ status: smithy_client_1.expectString,
3808
+ statusMessage: smithy_client_1.expectString,
3809
+ storeArn: smithy_client_1.expectString,
3810
+ storeSizeBytes: smithy_client_1.expectLong,
3811
+ tags: smithy_client_1._json,
3812
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3813
+ });
3814
+ Object.assign(contents, doc);
4155
3815
  return contents;
4156
3816
  };
4157
3817
  exports.de_GetVariantStoreCommand = de_GetVariantStoreCommand;
@@ -4179,10 +3839,9 @@ const de_GetVariantStoreCommandError = async (output, context) => {
4179
3839
  throw await de_ValidationExceptionRes(parsedOutput, context);
4180
3840
  default:
4181
3841
  const parsedBody = parsedOutput.body;
4182
- (0, smithy_client_1.throwDefaultError)({
3842
+ return throwDefaultError({
4183
3843
  output,
4184
3844
  parsedBody,
4185
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4186
3845
  errorCode,
4187
3846
  });
4188
3847
  }
@@ -4191,55 +3850,28 @@ const de_GetWorkflowCommand = async (output, context) => {
4191
3850
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4192
3851
  return de_GetWorkflowCommandError(output, context);
4193
3852
  }
4194
- const contents = map({
3853
+ const contents = (0, smithy_client_1.map)({
4195
3854
  $metadata: deserializeMetadata(output),
4196
3855
  });
4197
3856
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4198
- if (data.arn != null) {
4199
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
4200
- }
4201
- if (data.creationTime != null) {
4202
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
4203
- }
4204
- if (data.definition != null) {
4205
- contents.definition = (0, smithy_client_1.expectString)(data.definition);
4206
- }
4207
- if (data.description != null) {
4208
- contents.description = (0, smithy_client_1.expectString)(data.description);
4209
- }
4210
- if (data.digest != null) {
4211
- contents.digest = (0, smithy_client_1.expectString)(data.digest);
4212
- }
4213
- if (data.engine != null) {
4214
- contents.engine = (0, smithy_client_1.expectString)(data.engine);
4215
- }
4216
- if (data.id != null) {
4217
- contents.id = (0, smithy_client_1.expectString)(data.id);
4218
- }
4219
- if (data.main != null) {
4220
- contents.main = (0, smithy_client_1.expectString)(data.main);
4221
- }
4222
- if (data.name != null) {
4223
- contents.name = (0, smithy_client_1.expectString)(data.name);
4224
- }
4225
- if (data.parameterTemplate != null) {
4226
- contents.parameterTemplate = de_WorkflowParameterTemplate(data.parameterTemplate, context);
4227
- }
4228
- if (data.status != null) {
4229
- contents.status = (0, smithy_client_1.expectString)(data.status);
4230
- }
4231
- if (data.statusMessage != null) {
4232
- contents.statusMessage = (0, smithy_client_1.expectString)(data.statusMessage);
4233
- }
4234
- if (data.storageCapacity != null) {
4235
- contents.storageCapacity = (0, smithy_client_1.expectInt32)(data.storageCapacity);
4236
- }
4237
- if (data.tags != null) {
4238
- contents.tags = de_TagMap(data.tags, context);
4239
- }
4240
- if (data.type != null) {
4241
- contents.type = (0, smithy_client_1.expectString)(data.type);
4242
- }
3857
+ const doc = (0, smithy_client_1.take)(data, {
3858
+ arn: smithy_client_1.expectString,
3859
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
3860
+ definition: smithy_client_1.expectString,
3861
+ description: smithy_client_1.expectString,
3862
+ digest: smithy_client_1.expectString,
3863
+ engine: smithy_client_1.expectString,
3864
+ id: smithy_client_1.expectString,
3865
+ main: smithy_client_1.expectString,
3866
+ name: smithy_client_1.expectString,
3867
+ parameterTemplate: smithy_client_1._json,
3868
+ status: smithy_client_1.expectString,
3869
+ statusMessage: smithy_client_1.expectString,
3870
+ storageCapacity: smithy_client_1.expectInt32,
3871
+ tags: smithy_client_1._json,
3872
+ type: smithy_client_1.expectString,
3873
+ });
3874
+ Object.assign(contents, doc);
4243
3875
  return contents;
4244
3876
  };
4245
3877
  exports.de_GetWorkflowCommand = de_GetWorkflowCommand;
@@ -4276,10 +3908,9 @@ const de_GetWorkflowCommandError = async (output, context) => {
4276
3908
  throw await de_ValidationExceptionRes(parsedOutput, context);
4277
3909
  default:
4278
3910
  const parsedBody = parsedOutput.body;
4279
- (0, smithy_client_1.throwDefaultError)({
3911
+ return throwDefaultError({
4280
3912
  output,
4281
3913
  parsedBody,
4282
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4283
3914
  errorCode,
4284
3915
  });
4285
3916
  }
@@ -4288,16 +3919,15 @@ const de_ListAnnotationImportJobsCommand = async (output, context) => {
4288
3919
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4289
3920
  return de_ListAnnotationImportJobsCommandError(output, context);
4290
3921
  }
4291
- const contents = map({
3922
+ const contents = (0, smithy_client_1.map)({
4292
3923
  $metadata: deserializeMetadata(output),
4293
3924
  });
4294
3925
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4295
- if (data.annotationImportJobs != null) {
4296
- contents.annotationImportJobs = de_AnnotationImportJobItems(data.annotationImportJobs, context);
4297
- }
4298
- if (data.nextToken != null) {
4299
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4300
- }
3926
+ const doc = (0, smithy_client_1.take)(data, {
3927
+ annotationImportJobs: (_) => de_AnnotationImportJobItems(_, context),
3928
+ nextToken: smithy_client_1.expectString,
3929
+ });
3930
+ Object.assign(contents, doc);
4301
3931
  return contents;
4302
3932
  };
4303
3933
  exports.de_ListAnnotationImportJobsCommand = de_ListAnnotationImportJobsCommand;
@@ -4325,10 +3955,9 @@ const de_ListAnnotationImportJobsCommandError = async (output, context) => {
4325
3955
  throw await de_ValidationExceptionRes(parsedOutput, context);
4326
3956
  default:
4327
3957
  const parsedBody = parsedOutput.body;
4328
- (0, smithy_client_1.throwDefaultError)({
3958
+ return throwDefaultError({
4329
3959
  output,
4330
3960
  parsedBody,
4331
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4332
3961
  errorCode,
4333
3962
  });
4334
3963
  }
@@ -4337,16 +3966,15 @@ const de_ListAnnotationStoresCommand = async (output, context) => {
4337
3966
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4338
3967
  return de_ListAnnotationStoresCommandError(output, context);
4339
3968
  }
4340
- const contents = map({
3969
+ const contents = (0, smithy_client_1.map)({
4341
3970
  $metadata: deserializeMetadata(output),
4342
3971
  });
4343
3972
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4344
- if (data.annotationStores != null) {
4345
- contents.annotationStores = de_AnnotationStoreItems(data.annotationStores, context);
4346
- }
4347
- if (data.nextToken != null) {
4348
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4349
- }
3973
+ const doc = (0, smithy_client_1.take)(data, {
3974
+ annotationStores: (_) => de_AnnotationStoreItems(_, context),
3975
+ nextToken: smithy_client_1.expectString,
3976
+ });
3977
+ Object.assign(contents, doc);
4350
3978
  return contents;
4351
3979
  };
4352
3980
  exports.de_ListAnnotationStoresCommand = de_ListAnnotationStoresCommand;
@@ -4374,10 +4002,9 @@ const de_ListAnnotationStoresCommandError = async (output, context) => {
4374
4002
  throw await de_ValidationExceptionRes(parsedOutput, context);
4375
4003
  default:
4376
4004
  const parsedBody = parsedOutput.body;
4377
- (0, smithy_client_1.throwDefaultError)({
4005
+ return throwDefaultError({
4378
4006
  output,
4379
4007
  parsedBody,
4380
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4381
4008
  errorCode,
4382
4009
  });
4383
4010
  }
@@ -4386,16 +4013,15 @@ const de_ListReadSetActivationJobsCommand = async (output, context) => {
4386
4013
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4387
4014
  return de_ListReadSetActivationJobsCommandError(output, context);
4388
4015
  }
4389
- const contents = map({
4016
+ const contents = (0, smithy_client_1.map)({
4390
4017
  $metadata: deserializeMetadata(output),
4391
4018
  });
4392
4019
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4393
- if (data.activationJobs != null) {
4394
- contents.activationJobs = de_ActivateReadSetJobList(data.activationJobs, context);
4395
- }
4396
- if (data.nextToken != null) {
4397
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4398
- }
4020
+ const doc = (0, smithy_client_1.take)(data, {
4021
+ activationJobs: (_) => de_ActivateReadSetJobList(_, context),
4022
+ nextToken: smithy_client_1.expectString,
4023
+ });
4024
+ Object.assign(contents, doc);
4399
4025
  return contents;
4400
4026
  };
4401
4027
  exports.de_ListReadSetActivationJobsCommand = de_ListReadSetActivationJobsCommand;
@@ -4426,10 +4052,9 @@ const de_ListReadSetActivationJobsCommandError = async (output, context) => {
4426
4052
  throw await de_ValidationExceptionRes(parsedOutput, context);
4427
4053
  default:
4428
4054
  const parsedBody = parsedOutput.body;
4429
- (0, smithy_client_1.throwDefaultError)({
4055
+ return throwDefaultError({
4430
4056
  output,
4431
4057
  parsedBody,
4432
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4433
4058
  errorCode,
4434
4059
  });
4435
4060
  }
@@ -4438,16 +4063,15 @@ const de_ListReadSetExportJobsCommand = async (output, context) => {
4438
4063
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4439
4064
  return de_ListReadSetExportJobsCommandError(output, context);
4440
4065
  }
4441
- const contents = map({
4066
+ const contents = (0, smithy_client_1.map)({
4442
4067
  $metadata: deserializeMetadata(output),
4443
4068
  });
4444
4069
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4445
- if (data.exportJobs != null) {
4446
- contents.exportJobs = de_ExportReadSetJobDetailList(data.exportJobs, context);
4447
- }
4448
- if (data.nextToken != null) {
4449
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4450
- }
4070
+ const doc = (0, smithy_client_1.take)(data, {
4071
+ exportJobs: (_) => de_ExportReadSetJobDetailList(_, context),
4072
+ nextToken: smithy_client_1.expectString,
4073
+ });
4074
+ Object.assign(contents, doc);
4451
4075
  return contents;
4452
4076
  };
4453
4077
  exports.de_ListReadSetExportJobsCommand = de_ListReadSetExportJobsCommand;
@@ -4478,10 +4102,9 @@ const de_ListReadSetExportJobsCommandError = async (output, context) => {
4478
4102
  throw await de_ValidationExceptionRes(parsedOutput, context);
4479
4103
  default:
4480
4104
  const parsedBody = parsedOutput.body;
4481
- (0, smithy_client_1.throwDefaultError)({
4105
+ return throwDefaultError({
4482
4106
  output,
4483
4107
  parsedBody,
4484
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4485
4108
  errorCode,
4486
4109
  });
4487
4110
  }
@@ -4490,16 +4113,15 @@ const de_ListReadSetImportJobsCommand = async (output, context) => {
4490
4113
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4491
4114
  return de_ListReadSetImportJobsCommandError(output, context);
4492
4115
  }
4493
- const contents = map({
4116
+ const contents = (0, smithy_client_1.map)({
4494
4117
  $metadata: deserializeMetadata(output),
4495
4118
  });
4496
4119
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4497
- if (data.importJobs != null) {
4498
- contents.importJobs = de_ImportReadSetJobList(data.importJobs, context);
4499
- }
4500
- if (data.nextToken != null) {
4501
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4502
- }
4120
+ const doc = (0, smithy_client_1.take)(data, {
4121
+ importJobs: (_) => de_ImportReadSetJobList(_, context),
4122
+ nextToken: smithy_client_1.expectString,
4123
+ });
4124
+ Object.assign(contents, doc);
4503
4125
  return contents;
4504
4126
  };
4505
4127
  exports.de_ListReadSetImportJobsCommand = de_ListReadSetImportJobsCommand;
@@ -4530,10 +4152,9 @@ const de_ListReadSetImportJobsCommandError = async (output, context) => {
4530
4152
  throw await de_ValidationExceptionRes(parsedOutput, context);
4531
4153
  default:
4532
4154
  const parsedBody = parsedOutput.body;
4533
- (0, smithy_client_1.throwDefaultError)({
4155
+ return throwDefaultError({
4534
4156
  output,
4535
4157
  parsedBody,
4536
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4537
4158
  errorCode,
4538
4159
  });
4539
4160
  }
@@ -4542,16 +4163,15 @@ const de_ListReadSetsCommand = async (output, context) => {
4542
4163
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4543
4164
  return de_ListReadSetsCommandError(output, context);
4544
4165
  }
4545
- const contents = map({
4166
+ const contents = (0, smithy_client_1.map)({
4546
4167
  $metadata: deserializeMetadata(output),
4547
4168
  });
4548
4169
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4549
- if (data.nextToken != null) {
4550
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4551
- }
4552
- if (data.readSets != null) {
4553
- contents.readSets = de_ReadSetList(data.readSets, context);
4554
- }
4170
+ const doc = (0, smithy_client_1.take)(data, {
4171
+ nextToken: smithy_client_1.expectString,
4172
+ readSets: (_) => de_ReadSetList(_, context),
4173
+ });
4174
+ Object.assign(contents, doc);
4555
4175
  return contents;
4556
4176
  };
4557
4177
  exports.de_ListReadSetsCommand = de_ListReadSetsCommand;
@@ -4582,10 +4202,9 @@ const de_ListReadSetsCommandError = async (output, context) => {
4582
4202
  throw await de_ValidationExceptionRes(parsedOutput, context);
4583
4203
  default:
4584
4204
  const parsedBody = parsedOutput.body;
4585
- (0, smithy_client_1.throwDefaultError)({
4205
+ return throwDefaultError({
4586
4206
  output,
4587
4207
  parsedBody,
4588
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4589
4208
  errorCode,
4590
4209
  });
4591
4210
  }
@@ -4594,16 +4213,15 @@ const de_ListReferenceImportJobsCommand = async (output, context) => {
4594
4213
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4595
4214
  return de_ListReferenceImportJobsCommandError(output, context);
4596
4215
  }
4597
- const contents = map({
4216
+ const contents = (0, smithy_client_1.map)({
4598
4217
  $metadata: deserializeMetadata(output),
4599
4218
  });
4600
4219
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4601
- if (data.importJobs != null) {
4602
- contents.importJobs = de_ImportReferenceJobList(data.importJobs, context);
4603
- }
4604
- if (data.nextToken != null) {
4605
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4606
- }
4220
+ const doc = (0, smithy_client_1.take)(data, {
4221
+ importJobs: (_) => de_ImportReferenceJobList(_, context),
4222
+ nextToken: smithy_client_1.expectString,
4223
+ });
4224
+ Object.assign(contents, doc);
4607
4225
  return contents;
4608
4226
  };
4609
4227
  exports.de_ListReferenceImportJobsCommand = de_ListReferenceImportJobsCommand;
@@ -4634,10 +4252,9 @@ const de_ListReferenceImportJobsCommandError = async (output, context) => {
4634
4252
  throw await de_ValidationExceptionRes(parsedOutput, context);
4635
4253
  default:
4636
4254
  const parsedBody = parsedOutput.body;
4637
- (0, smithy_client_1.throwDefaultError)({
4255
+ return throwDefaultError({
4638
4256
  output,
4639
4257
  parsedBody,
4640
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4641
4258
  errorCode,
4642
4259
  });
4643
4260
  }
@@ -4646,16 +4263,15 @@ const de_ListReferencesCommand = async (output, context) => {
4646
4263
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4647
4264
  return de_ListReferencesCommandError(output, context);
4648
4265
  }
4649
- const contents = map({
4266
+ const contents = (0, smithy_client_1.map)({
4650
4267
  $metadata: deserializeMetadata(output),
4651
4268
  });
4652
4269
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4653
- if (data.nextToken != null) {
4654
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4655
- }
4656
- if (data.references != null) {
4657
- contents.references = de_ReferenceList(data.references, context);
4658
- }
4270
+ const doc = (0, smithy_client_1.take)(data, {
4271
+ nextToken: smithy_client_1.expectString,
4272
+ references: (_) => de_ReferenceList(_, context),
4273
+ });
4274
+ Object.assign(contents, doc);
4659
4275
  return contents;
4660
4276
  };
4661
4277
  exports.de_ListReferencesCommand = de_ListReferencesCommand;
@@ -4686,10 +4302,9 @@ const de_ListReferencesCommandError = async (output, context) => {
4686
4302
  throw await de_ValidationExceptionRes(parsedOutput, context);
4687
4303
  default:
4688
4304
  const parsedBody = parsedOutput.body;
4689
- (0, smithy_client_1.throwDefaultError)({
4305
+ return throwDefaultError({
4690
4306
  output,
4691
4307
  parsedBody,
4692
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4693
4308
  errorCode,
4694
4309
  });
4695
4310
  }
@@ -4698,16 +4313,15 @@ const de_ListReferenceStoresCommand = async (output, context) => {
4698
4313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4699
4314
  return de_ListReferenceStoresCommandError(output, context);
4700
4315
  }
4701
- const contents = map({
4316
+ const contents = (0, smithy_client_1.map)({
4702
4317
  $metadata: deserializeMetadata(output),
4703
4318
  });
4704
4319
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4705
- if (data.nextToken != null) {
4706
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4707
- }
4708
- if (data.referenceStores != null) {
4709
- contents.referenceStores = de_ReferenceStoreDetailList(data.referenceStores, context);
4710
- }
4320
+ const doc = (0, smithy_client_1.take)(data, {
4321
+ nextToken: smithy_client_1.expectString,
4322
+ referenceStores: (_) => de_ReferenceStoreDetailList(_, context),
4323
+ });
4324
+ Object.assign(contents, doc);
4711
4325
  return contents;
4712
4326
  };
4713
4327
  exports.de_ListReferenceStoresCommand = de_ListReferenceStoresCommand;
@@ -4735,10 +4349,9 @@ const de_ListReferenceStoresCommandError = async (output, context) => {
4735
4349
  throw await de_ValidationExceptionRes(parsedOutput, context);
4736
4350
  default:
4737
4351
  const parsedBody = parsedOutput.body;
4738
- (0, smithy_client_1.throwDefaultError)({
4352
+ return throwDefaultError({
4739
4353
  output,
4740
4354
  parsedBody,
4741
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4742
4355
  errorCode,
4743
4356
  });
4744
4357
  }
@@ -4747,16 +4360,15 @@ const de_ListRunGroupsCommand = async (output, context) => {
4747
4360
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4748
4361
  return de_ListRunGroupsCommandError(output, context);
4749
4362
  }
4750
- const contents = map({
4363
+ const contents = (0, smithy_client_1.map)({
4751
4364
  $metadata: deserializeMetadata(output),
4752
4365
  });
4753
4366
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4754
- if (data.items != null) {
4755
- contents.items = de_RunGroupList(data.items, context);
4756
- }
4757
- if (data.nextToken != null) {
4758
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4759
- }
4367
+ const doc = (0, smithy_client_1.take)(data, {
4368
+ items: (_) => de_RunGroupList(_, context),
4369
+ nextToken: smithy_client_1.expectString,
4370
+ });
4371
+ Object.assign(contents, doc);
4760
4372
  return contents;
4761
4373
  };
4762
4374
  exports.de_ListRunGroupsCommand = de_ListRunGroupsCommand;
@@ -4793,10 +4405,9 @@ const de_ListRunGroupsCommandError = async (output, context) => {
4793
4405
  throw await de_ValidationExceptionRes(parsedOutput, context);
4794
4406
  default:
4795
4407
  const parsedBody = parsedOutput.body;
4796
- (0, smithy_client_1.throwDefaultError)({
4408
+ return throwDefaultError({
4797
4409
  output,
4798
4410
  parsedBody,
4799
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4800
4411
  errorCode,
4801
4412
  });
4802
4413
  }
@@ -4805,16 +4416,15 @@ const de_ListRunsCommand = async (output, context) => {
4805
4416
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4806
4417
  return de_ListRunsCommandError(output, context);
4807
4418
  }
4808
- const contents = map({
4419
+ const contents = (0, smithy_client_1.map)({
4809
4420
  $metadata: deserializeMetadata(output),
4810
4421
  });
4811
4422
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4812
- if (data.items != null) {
4813
- contents.items = de_RunList(data.items, context);
4814
- }
4815
- if (data.nextToken != null) {
4816
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4817
- }
4423
+ const doc = (0, smithy_client_1.take)(data, {
4424
+ items: (_) => de_RunList(_, context),
4425
+ nextToken: smithy_client_1.expectString,
4426
+ });
4427
+ Object.assign(contents, doc);
4818
4428
  return contents;
4819
4429
  };
4820
4430
  exports.de_ListRunsCommand = de_ListRunsCommand;
@@ -4851,10 +4461,9 @@ const de_ListRunsCommandError = async (output, context) => {
4851
4461
  throw await de_ValidationExceptionRes(parsedOutput, context);
4852
4462
  default:
4853
4463
  const parsedBody = parsedOutput.body;
4854
- (0, smithy_client_1.throwDefaultError)({
4464
+ return throwDefaultError({
4855
4465
  output,
4856
4466
  parsedBody,
4857
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4858
4467
  errorCode,
4859
4468
  });
4860
4469
  }
@@ -4863,16 +4472,15 @@ const de_ListRunTasksCommand = async (output, context) => {
4863
4472
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4864
4473
  return de_ListRunTasksCommandError(output, context);
4865
4474
  }
4866
- const contents = map({
4475
+ const contents = (0, smithy_client_1.map)({
4867
4476
  $metadata: deserializeMetadata(output),
4868
4477
  });
4869
4478
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4870
- if (data.items != null) {
4871
- contents.items = de_TaskList(data.items, context);
4872
- }
4873
- if (data.nextToken != null) {
4874
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4875
- }
4479
+ const doc = (0, smithy_client_1.take)(data, {
4480
+ items: (_) => de_TaskList(_, context),
4481
+ nextToken: smithy_client_1.expectString,
4482
+ });
4483
+ Object.assign(contents, doc);
4876
4484
  return contents;
4877
4485
  };
4878
4486
  exports.de_ListRunTasksCommand = de_ListRunTasksCommand;
@@ -4909,10 +4517,9 @@ const de_ListRunTasksCommandError = async (output, context) => {
4909
4517
  throw await de_ValidationExceptionRes(parsedOutput, context);
4910
4518
  default:
4911
4519
  const parsedBody = parsedOutput.body;
4912
- (0, smithy_client_1.throwDefaultError)({
4520
+ return throwDefaultError({
4913
4521
  output,
4914
4522
  parsedBody,
4915
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4916
4523
  errorCode,
4917
4524
  });
4918
4525
  }
@@ -4921,16 +4528,15 @@ const de_ListSequenceStoresCommand = async (output, context) => {
4921
4528
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4922
4529
  return de_ListSequenceStoresCommandError(output, context);
4923
4530
  }
4924
- const contents = map({
4531
+ const contents = (0, smithy_client_1.map)({
4925
4532
  $metadata: deserializeMetadata(output),
4926
4533
  });
4927
4534
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4928
- if (data.nextToken != null) {
4929
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
4930
- }
4931
- if (data.sequenceStores != null) {
4932
- contents.sequenceStores = de_SequenceStoreDetailList(data.sequenceStores, context);
4933
- }
4535
+ const doc = (0, smithy_client_1.take)(data, {
4536
+ nextToken: smithy_client_1.expectString,
4537
+ sequenceStores: (_) => de_SequenceStoreDetailList(_, context),
4538
+ });
4539
+ Object.assign(contents, doc);
4934
4540
  return contents;
4935
4541
  };
4936
4542
  exports.de_ListSequenceStoresCommand = de_ListSequenceStoresCommand;
@@ -4958,10 +4564,9 @@ const de_ListSequenceStoresCommandError = async (output, context) => {
4958
4564
  throw await de_ValidationExceptionRes(parsedOutput, context);
4959
4565
  default:
4960
4566
  const parsedBody = parsedOutput.body;
4961
- (0, smithy_client_1.throwDefaultError)({
4567
+ return throwDefaultError({
4962
4568
  output,
4963
4569
  parsedBody,
4964
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
4965
4570
  errorCode,
4966
4571
  });
4967
4572
  }
@@ -4970,13 +4575,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
4970
4575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
4971
4576
  return de_ListTagsForResourceCommandError(output, context);
4972
4577
  }
4973
- const contents = map({
4578
+ const contents = (0, smithy_client_1.map)({
4974
4579
  $metadata: deserializeMetadata(output),
4975
4580
  });
4976
4581
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4977
- if (data.tags != null) {
4978
- contents.tags = de_TagMap(data.tags, context);
4979
- }
4582
+ const doc = (0, smithy_client_1.take)(data, {
4583
+ tags: smithy_client_1._json,
4584
+ });
4585
+ Object.assign(contents, doc);
4980
4586
  return contents;
4981
4587
  };
4982
4588
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -5013,10 +4619,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
5013
4619
  throw await de_ValidationExceptionRes(parsedOutput, context);
5014
4620
  default:
5015
4621
  const parsedBody = parsedOutput.body;
5016
- (0, smithy_client_1.throwDefaultError)({
4622
+ return throwDefaultError({
5017
4623
  output,
5018
4624
  parsedBody,
5019
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5020
4625
  errorCode,
5021
4626
  });
5022
4627
  }
@@ -5025,16 +4630,15 @@ const de_ListVariantImportJobsCommand = async (output, context) => {
5025
4630
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5026
4631
  return de_ListVariantImportJobsCommandError(output, context);
5027
4632
  }
5028
- const contents = map({
4633
+ const contents = (0, smithy_client_1.map)({
5029
4634
  $metadata: deserializeMetadata(output),
5030
4635
  });
5031
4636
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5032
- if (data.nextToken != null) {
5033
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
5034
- }
5035
- if (data.variantImportJobs != null) {
5036
- contents.variantImportJobs = de_VariantImportJobItems(data.variantImportJobs, context);
5037
- }
4637
+ const doc = (0, smithy_client_1.take)(data, {
4638
+ nextToken: smithy_client_1.expectString,
4639
+ variantImportJobs: (_) => de_VariantImportJobItems(_, context),
4640
+ });
4641
+ Object.assign(contents, doc);
5038
4642
  return contents;
5039
4643
  };
5040
4644
  exports.de_ListVariantImportJobsCommand = de_ListVariantImportJobsCommand;
@@ -5062,10 +4666,9 @@ const de_ListVariantImportJobsCommandError = async (output, context) => {
5062
4666
  throw await de_ValidationExceptionRes(parsedOutput, context);
5063
4667
  default:
5064
4668
  const parsedBody = parsedOutput.body;
5065
- (0, smithy_client_1.throwDefaultError)({
4669
+ return throwDefaultError({
5066
4670
  output,
5067
4671
  parsedBody,
5068
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5069
4672
  errorCode,
5070
4673
  });
5071
4674
  }
@@ -5074,16 +4677,15 @@ const de_ListVariantStoresCommand = async (output, context) => {
5074
4677
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5075
4678
  return de_ListVariantStoresCommandError(output, context);
5076
4679
  }
5077
- const contents = map({
4680
+ const contents = (0, smithy_client_1.map)({
5078
4681
  $metadata: deserializeMetadata(output),
5079
4682
  });
5080
4683
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5081
- if (data.nextToken != null) {
5082
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
5083
- }
5084
- if (data.variantStores != null) {
5085
- contents.variantStores = de_VariantStoreItems(data.variantStores, context);
5086
- }
4684
+ const doc = (0, smithy_client_1.take)(data, {
4685
+ nextToken: smithy_client_1.expectString,
4686
+ variantStores: (_) => de_VariantStoreItems(_, context),
4687
+ });
4688
+ Object.assign(contents, doc);
5087
4689
  return contents;
5088
4690
  };
5089
4691
  exports.de_ListVariantStoresCommand = de_ListVariantStoresCommand;
@@ -5111,10 +4713,9 @@ const de_ListVariantStoresCommandError = async (output, context) => {
5111
4713
  throw await de_ValidationExceptionRes(parsedOutput, context);
5112
4714
  default:
5113
4715
  const parsedBody = parsedOutput.body;
5114
- (0, smithy_client_1.throwDefaultError)({
4716
+ return throwDefaultError({
5115
4717
  output,
5116
4718
  parsedBody,
5117
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5118
4719
  errorCode,
5119
4720
  });
5120
4721
  }
@@ -5123,16 +4724,15 @@ const de_ListWorkflowsCommand = async (output, context) => {
5123
4724
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5124
4725
  return de_ListWorkflowsCommandError(output, context);
5125
4726
  }
5126
- const contents = map({
4727
+ const contents = (0, smithy_client_1.map)({
5127
4728
  $metadata: deserializeMetadata(output),
5128
4729
  });
5129
4730
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5130
- if (data.items != null) {
5131
- contents.items = de_WorkflowList(data.items, context);
5132
- }
5133
- if (data.nextToken != null) {
5134
- contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
5135
- }
4731
+ const doc = (0, smithy_client_1.take)(data, {
4732
+ items: (_) => de_WorkflowList(_, context),
4733
+ nextToken: smithy_client_1.expectString,
4734
+ });
4735
+ Object.assign(contents, doc);
5136
4736
  return contents;
5137
4737
  };
5138
4738
  exports.de_ListWorkflowsCommand = de_ListWorkflowsCommand;
@@ -5169,10 +4769,9 @@ const de_ListWorkflowsCommandError = async (output, context) => {
5169
4769
  throw await de_ValidationExceptionRes(parsedOutput, context);
5170
4770
  default:
5171
4771
  const parsedBody = parsedOutput.body;
5172
- (0, smithy_client_1.throwDefaultError)({
4772
+ return throwDefaultError({
5173
4773
  output,
5174
4774
  parsedBody,
5175
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5176
4775
  errorCode,
5177
4776
  });
5178
4777
  }
@@ -5181,13 +4780,14 @@ const de_StartAnnotationImportJobCommand = async (output, context) => {
5181
4780
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5182
4781
  return de_StartAnnotationImportJobCommandError(output, context);
5183
4782
  }
5184
- const contents = map({
4783
+ const contents = (0, smithy_client_1.map)({
5185
4784
  $metadata: deserializeMetadata(output),
5186
4785
  });
5187
4786
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5188
- if (data.jobId != null) {
5189
- contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
5190
- }
4787
+ const doc = (0, smithy_client_1.take)(data, {
4788
+ jobId: smithy_client_1.expectString,
4789
+ });
4790
+ Object.assign(contents, doc);
5191
4791
  return contents;
5192
4792
  };
5193
4793
  exports.de_StartAnnotationImportJobCommand = de_StartAnnotationImportJobCommand;
@@ -5218,10 +4818,9 @@ const de_StartAnnotationImportJobCommandError = async (output, context) => {
5218
4818
  throw await de_ValidationExceptionRes(parsedOutput, context);
5219
4819
  default:
5220
4820
  const parsedBody = parsedOutput.body;
5221
- (0, smithy_client_1.throwDefaultError)({
4821
+ return throwDefaultError({
5222
4822
  output,
5223
4823
  parsedBody,
5224
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5225
4824
  errorCode,
5226
4825
  });
5227
4826
  }
@@ -5230,22 +4829,17 @@ const de_StartReadSetActivationJobCommand = async (output, context) => {
5230
4829
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5231
4830
  return de_StartReadSetActivationJobCommandError(output, context);
5232
4831
  }
5233
- const contents = map({
4832
+ const contents = (0, smithy_client_1.map)({
5234
4833
  $metadata: deserializeMetadata(output),
5235
4834
  });
5236
4835
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5237
- if (data.creationTime != null) {
5238
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
5239
- }
5240
- if (data.id != null) {
5241
- contents.id = (0, smithy_client_1.expectString)(data.id);
5242
- }
5243
- if (data.sequenceStoreId != null) {
5244
- contents.sequenceStoreId = (0, smithy_client_1.expectString)(data.sequenceStoreId);
5245
- }
5246
- if (data.status != null) {
5247
- contents.status = (0, smithy_client_1.expectString)(data.status);
5248
- }
4836
+ const doc = (0, smithy_client_1.take)(data, {
4837
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4838
+ id: smithy_client_1.expectString,
4839
+ sequenceStoreId: smithy_client_1.expectString,
4840
+ status: smithy_client_1.expectString,
4841
+ });
4842
+ Object.assign(contents, doc);
5249
4843
  return contents;
5250
4844
  };
5251
4845
  exports.de_StartReadSetActivationJobCommand = de_StartReadSetActivationJobCommand;
@@ -5279,10 +4873,9 @@ const de_StartReadSetActivationJobCommandError = async (output, context) => {
5279
4873
  throw await de_ValidationExceptionRes(parsedOutput, context);
5280
4874
  default:
5281
4875
  const parsedBody = parsedOutput.body;
5282
- (0, smithy_client_1.throwDefaultError)({
4876
+ return throwDefaultError({
5283
4877
  output,
5284
4878
  parsedBody,
5285
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5286
4879
  errorCode,
5287
4880
  });
5288
4881
  }
@@ -5291,25 +4884,18 @@ const de_StartReadSetExportJobCommand = async (output, context) => {
5291
4884
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5292
4885
  return de_StartReadSetExportJobCommandError(output, context);
5293
4886
  }
5294
- const contents = map({
4887
+ const contents = (0, smithy_client_1.map)({
5295
4888
  $metadata: deserializeMetadata(output),
5296
4889
  });
5297
4890
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5298
- if (data.creationTime != null) {
5299
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
5300
- }
5301
- if (data.destination != null) {
5302
- contents.destination = (0, smithy_client_1.expectString)(data.destination);
5303
- }
5304
- if (data.id != null) {
5305
- contents.id = (0, smithy_client_1.expectString)(data.id);
5306
- }
5307
- if (data.sequenceStoreId != null) {
5308
- contents.sequenceStoreId = (0, smithy_client_1.expectString)(data.sequenceStoreId);
5309
- }
5310
- if (data.status != null) {
5311
- contents.status = (0, smithy_client_1.expectString)(data.status);
5312
- }
4891
+ const doc = (0, smithy_client_1.take)(data, {
4892
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4893
+ destination: smithy_client_1.expectString,
4894
+ id: smithy_client_1.expectString,
4895
+ sequenceStoreId: smithy_client_1.expectString,
4896
+ status: smithy_client_1.expectString,
4897
+ });
4898
+ Object.assign(contents, doc);
5313
4899
  return contents;
5314
4900
  };
5315
4901
  exports.de_StartReadSetExportJobCommand = de_StartReadSetExportJobCommand;
@@ -5343,10 +4929,9 @@ const de_StartReadSetExportJobCommandError = async (output, context) => {
5343
4929
  throw await de_ValidationExceptionRes(parsedOutput, context);
5344
4930
  default:
5345
4931
  const parsedBody = parsedOutput.body;
5346
- (0, smithy_client_1.throwDefaultError)({
4932
+ return throwDefaultError({
5347
4933
  output,
5348
4934
  parsedBody,
5349
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5350
4935
  errorCode,
5351
4936
  });
5352
4937
  }
@@ -5355,25 +4940,18 @@ const de_StartReadSetImportJobCommand = async (output, context) => {
5355
4940
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5356
4941
  return de_StartReadSetImportJobCommandError(output, context);
5357
4942
  }
5358
- const contents = map({
4943
+ const contents = (0, smithy_client_1.map)({
5359
4944
  $metadata: deserializeMetadata(output),
5360
4945
  });
5361
4946
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5362
- if (data.creationTime != null) {
5363
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
5364
- }
5365
- if (data.id != null) {
5366
- contents.id = (0, smithy_client_1.expectString)(data.id);
5367
- }
5368
- if (data.roleArn != null) {
5369
- contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
5370
- }
5371
- if (data.sequenceStoreId != null) {
5372
- contents.sequenceStoreId = (0, smithy_client_1.expectString)(data.sequenceStoreId);
5373
- }
5374
- if (data.status != null) {
5375
- contents.status = (0, smithy_client_1.expectString)(data.status);
5376
- }
4947
+ const doc = (0, smithy_client_1.take)(data, {
4948
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
4949
+ id: smithy_client_1.expectString,
4950
+ roleArn: smithy_client_1.expectString,
4951
+ sequenceStoreId: smithy_client_1.expectString,
4952
+ status: smithy_client_1.expectString,
4953
+ });
4954
+ Object.assign(contents, doc);
5377
4955
  return contents;
5378
4956
  };
5379
4957
  exports.de_StartReadSetImportJobCommand = de_StartReadSetImportJobCommand;
@@ -5407,10 +4985,9 @@ const de_StartReadSetImportJobCommandError = async (output, context) => {
5407
4985
  throw await de_ValidationExceptionRes(parsedOutput, context);
5408
4986
  default:
5409
4987
  const parsedBody = parsedOutput.body;
5410
- (0, smithy_client_1.throwDefaultError)({
4988
+ return throwDefaultError({
5411
4989
  output,
5412
4990
  parsedBody,
5413
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5414
4991
  errorCode,
5415
4992
  });
5416
4993
  }
@@ -5419,25 +4996,18 @@ const de_StartReferenceImportJobCommand = async (output, context) => {
5419
4996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5420
4997
  return de_StartReferenceImportJobCommandError(output, context);
5421
4998
  }
5422
- const contents = map({
4999
+ const contents = (0, smithy_client_1.map)({
5423
5000
  $metadata: deserializeMetadata(output),
5424
5001
  });
5425
5002
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5426
- if (data.creationTime != null) {
5427
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
5428
- }
5429
- if (data.id != null) {
5430
- contents.id = (0, smithy_client_1.expectString)(data.id);
5431
- }
5432
- if (data.referenceStoreId != null) {
5433
- contents.referenceStoreId = (0, smithy_client_1.expectString)(data.referenceStoreId);
5434
- }
5435
- if (data.roleArn != null) {
5436
- contents.roleArn = (0, smithy_client_1.expectString)(data.roleArn);
5437
- }
5438
- if (data.status != null) {
5439
- contents.status = (0, smithy_client_1.expectString)(data.status);
5440
- }
5003
+ const doc = (0, smithy_client_1.take)(data, {
5004
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5005
+ id: smithy_client_1.expectString,
5006
+ referenceStoreId: smithy_client_1.expectString,
5007
+ roleArn: smithy_client_1.expectString,
5008
+ status: smithy_client_1.expectString,
5009
+ });
5010
+ Object.assign(contents, doc);
5441
5011
  return contents;
5442
5012
  };
5443
5013
  exports.de_StartReferenceImportJobCommand = de_StartReferenceImportJobCommand;
@@ -5471,10 +5041,9 @@ const de_StartReferenceImportJobCommandError = async (output, context) => {
5471
5041
  throw await de_ValidationExceptionRes(parsedOutput, context);
5472
5042
  default:
5473
5043
  const parsedBody = parsedOutput.body;
5474
- (0, smithy_client_1.throwDefaultError)({
5044
+ return throwDefaultError({
5475
5045
  output,
5476
5046
  parsedBody,
5477
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5478
5047
  errorCode,
5479
5048
  });
5480
5049
  }
@@ -5483,22 +5052,17 @@ const de_StartRunCommand = async (output, context) => {
5483
5052
  if (output.statusCode !== 201 && output.statusCode >= 300) {
5484
5053
  return de_StartRunCommandError(output, context);
5485
5054
  }
5486
- const contents = map({
5055
+ const contents = (0, smithy_client_1.map)({
5487
5056
  $metadata: deserializeMetadata(output),
5488
5057
  });
5489
5058
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5490
- if (data.arn != null) {
5491
- contents.arn = (0, smithy_client_1.expectString)(data.arn);
5492
- }
5493
- if (data.id != null) {
5494
- contents.id = (0, smithy_client_1.expectString)(data.id);
5495
- }
5496
- if (data.status != null) {
5497
- contents.status = (0, smithy_client_1.expectString)(data.status);
5498
- }
5499
- if (data.tags != null) {
5500
- contents.tags = de_TagMap(data.tags, context);
5501
- }
5059
+ const doc = (0, smithy_client_1.take)(data, {
5060
+ arn: smithy_client_1.expectString,
5061
+ id: smithy_client_1.expectString,
5062
+ status: smithy_client_1.expectString,
5063
+ tags: smithy_client_1._json,
5064
+ });
5065
+ Object.assign(contents, doc);
5502
5066
  return contents;
5503
5067
  };
5504
5068
  exports.de_StartRunCommand = de_StartRunCommand;
@@ -5535,10 +5099,9 @@ const de_StartRunCommandError = async (output, context) => {
5535
5099
  throw await de_ValidationExceptionRes(parsedOutput, context);
5536
5100
  default:
5537
5101
  const parsedBody = parsedOutput.body;
5538
- (0, smithy_client_1.throwDefaultError)({
5102
+ return throwDefaultError({
5539
5103
  output,
5540
5104
  parsedBody,
5541
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5542
5105
  errorCode,
5543
5106
  });
5544
5107
  }
@@ -5547,13 +5110,14 @@ const de_StartVariantImportJobCommand = async (output, context) => {
5547
5110
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5548
5111
  return de_StartVariantImportJobCommandError(output, context);
5549
5112
  }
5550
- const contents = map({
5113
+ const contents = (0, smithy_client_1.map)({
5551
5114
  $metadata: deserializeMetadata(output),
5552
5115
  });
5553
5116
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5554
- if (data.jobId != null) {
5555
- contents.jobId = (0, smithy_client_1.expectString)(data.jobId);
5556
- }
5117
+ const doc = (0, smithy_client_1.take)(data, {
5118
+ jobId: smithy_client_1.expectString,
5119
+ });
5120
+ Object.assign(contents, doc);
5557
5121
  return contents;
5558
5122
  };
5559
5123
  exports.de_StartVariantImportJobCommand = de_StartVariantImportJobCommand;
@@ -5584,10 +5148,9 @@ const de_StartVariantImportJobCommandError = async (output, context) => {
5584
5148
  throw await de_ValidationExceptionRes(parsedOutput, context);
5585
5149
  default:
5586
5150
  const parsedBody = parsedOutput.body;
5587
- (0, smithy_client_1.throwDefaultError)({
5151
+ return throwDefaultError({
5588
5152
  output,
5589
5153
  parsedBody,
5590
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5591
5154
  errorCode,
5592
5155
  });
5593
5156
  }
@@ -5596,7 +5159,7 @@ const de_TagResourceCommand = async (output, context) => {
5596
5159
  if (output.statusCode !== 204 && output.statusCode >= 300) {
5597
5160
  return de_TagResourceCommandError(output, context);
5598
5161
  }
5599
- const contents = map({
5162
+ const contents = (0, smithy_client_1.map)({
5600
5163
  $metadata: deserializeMetadata(output),
5601
5164
  });
5602
5165
  await collectBody(output.body, context);
@@ -5636,10 +5199,9 @@ const de_TagResourceCommandError = async (output, context) => {
5636
5199
  throw await de_ValidationExceptionRes(parsedOutput, context);
5637
5200
  default:
5638
5201
  const parsedBody = parsedOutput.body;
5639
- (0, smithy_client_1.throwDefaultError)({
5202
+ return throwDefaultError({
5640
5203
  output,
5641
5204
  parsedBody,
5642
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5643
5205
  errorCode,
5644
5206
  });
5645
5207
  }
@@ -5648,7 +5210,7 @@ const de_UntagResourceCommand = async (output, context) => {
5648
5210
  if (output.statusCode !== 204 && output.statusCode >= 300) {
5649
5211
  return de_UntagResourceCommandError(output, context);
5650
5212
  }
5651
- const contents = map({
5213
+ const contents = (0, smithy_client_1.map)({
5652
5214
  $metadata: deserializeMetadata(output),
5653
5215
  });
5654
5216
  await collectBody(output.body, context);
@@ -5688,10 +5250,9 @@ const de_UntagResourceCommandError = async (output, context) => {
5688
5250
  throw await de_ValidationExceptionRes(parsedOutput, context);
5689
5251
  default:
5690
5252
  const parsedBody = parsedOutput.body;
5691
- (0, smithy_client_1.throwDefaultError)({
5253
+ return throwDefaultError({
5692
5254
  output,
5693
5255
  parsedBody,
5694
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5695
5256
  errorCode,
5696
5257
  });
5697
5258
  }
@@ -5700,37 +5261,22 @@ const de_UpdateAnnotationStoreCommand = async (output, context) => {
5700
5261
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5701
5262
  return de_UpdateAnnotationStoreCommandError(output, context);
5702
5263
  }
5703
- const contents = map({
5264
+ const contents = (0, smithy_client_1.map)({
5704
5265
  $metadata: deserializeMetadata(output),
5705
5266
  });
5706
5267
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5707
- if (data.creationTime != null) {
5708
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
5709
- }
5710
- if (data.description != null) {
5711
- contents.description = (0, smithy_client_1.expectString)(data.description);
5712
- }
5713
- if (data.id != null) {
5714
- contents.id = (0, smithy_client_1.expectString)(data.id);
5715
- }
5716
- if (data.name != null) {
5717
- contents.name = (0, smithy_client_1.expectString)(data.name);
5718
- }
5719
- if (data.reference != null) {
5720
- contents.reference = de_ReferenceItem((0, smithy_client_1.expectUnion)(data.reference), context);
5721
- }
5722
- if (data.status != null) {
5723
- contents.status = (0, smithy_client_1.expectString)(data.status);
5724
- }
5725
- if (data.storeFormat != null) {
5726
- contents.storeFormat = (0, smithy_client_1.expectString)(data.storeFormat);
5727
- }
5728
- if (data.storeOptions != null) {
5729
- contents.storeOptions = de_StoreOptions((0, smithy_client_1.expectUnion)(data.storeOptions), context);
5730
- }
5731
- if (data.updateTime != null) {
5732
- contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
5733
- }
5268
+ const doc = (0, smithy_client_1.take)(data, {
5269
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5270
+ description: smithy_client_1.expectString,
5271
+ id: smithy_client_1.expectString,
5272
+ name: smithy_client_1.expectString,
5273
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
5274
+ status: smithy_client_1.expectString,
5275
+ storeFormat: smithy_client_1.expectString,
5276
+ storeOptions: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
5277
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5278
+ });
5279
+ Object.assign(contents, doc);
5734
5280
  return contents;
5735
5281
  };
5736
5282
  exports.de_UpdateAnnotationStoreCommand = de_UpdateAnnotationStoreCommand;
@@ -5758,10 +5304,9 @@ const de_UpdateAnnotationStoreCommandError = async (output, context) => {
5758
5304
  throw await de_ValidationExceptionRes(parsedOutput, context);
5759
5305
  default:
5760
5306
  const parsedBody = parsedOutput.body;
5761
- (0, smithy_client_1.throwDefaultError)({
5307
+ return throwDefaultError({
5762
5308
  output,
5763
5309
  parsedBody,
5764
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5765
5310
  errorCode,
5766
5311
  });
5767
5312
  }
@@ -5770,7 +5315,7 @@ const de_UpdateRunGroupCommand = async (output, context) => {
5770
5315
  if (output.statusCode !== 202 && output.statusCode >= 300) {
5771
5316
  return de_UpdateRunGroupCommandError(output, context);
5772
5317
  }
5773
- const contents = map({
5318
+ const contents = (0, smithy_client_1.map)({
5774
5319
  $metadata: deserializeMetadata(output),
5775
5320
  });
5776
5321
  await collectBody(output.body, context);
@@ -5810,10 +5355,9 @@ const de_UpdateRunGroupCommandError = async (output, context) => {
5810
5355
  throw await de_ValidationExceptionRes(parsedOutput, context);
5811
5356
  default:
5812
5357
  const parsedBody = parsedOutput.body;
5813
- (0, smithy_client_1.throwDefaultError)({
5358
+ return throwDefaultError({
5814
5359
  output,
5815
5360
  parsedBody,
5816
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5817
5361
  errorCode,
5818
5362
  });
5819
5363
  }
@@ -5822,31 +5366,20 @@ const de_UpdateVariantStoreCommand = async (output, context) => {
5822
5366
  if (output.statusCode !== 200 && output.statusCode >= 300) {
5823
5367
  return de_UpdateVariantStoreCommandError(output, context);
5824
5368
  }
5825
- const contents = map({
5369
+ const contents = (0, smithy_client_1.map)({
5826
5370
  $metadata: deserializeMetadata(output),
5827
5371
  });
5828
5372
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5829
- if (data.creationTime != null) {
5830
- contents.creationTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.creationTime));
5831
- }
5832
- if (data.description != null) {
5833
- contents.description = (0, smithy_client_1.expectString)(data.description);
5834
- }
5835
- if (data.id != null) {
5836
- contents.id = (0, smithy_client_1.expectString)(data.id);
5837
- }
5838
- if (data.name != null) {
5839
- contents.name = (0, smithy_client_1.expectString)(data.name);
5840
- }
5841
- if (data.reference != null) {
5842
- contents.reference = de_ReferenceItem((0, smithy_client_1.expectUnion)(data.reference), context);
5843
- }
5844
- if (data.status != null) {
5845
- contents.status = (0, smithy_client_1.expectString)(data.status);
5846
- }
5847
- if (data.updateTime != null) {
5848
- contents.updateTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.updateTime));
5849
- }
5373
+ const doc = (0, smithy_client_1.take)(data, {
5374
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5375
+ description: smithy_client_1.expectString,
5376
+ id: smithy_client_1.expectString,
5377
+ name: smithy_client_1.expectString,
5378
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
5379
+ status: smithy_client_1.expectString,
5380
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5381
+ });
5382
+ Object.assign(contents, doc);
5850
5383
  return contents;
5851
5384
  };
5852
5385
  exports.de_UpdateVariantStoreCommand = de_UpdateVariantStoreCommand;
@@ -5874,10 +5407,9 @@ const de_UpdateVariantStoreCommandError = async (output, context) => {
5874
5407
  throw await de_ValidationExceptionRes(parsedOutput, context);
5875
5408
  default:
5876
5409
  const parsedBody = parsedOutput.body;
5877
- (0, smithy_client_1.throwDefaultError)({
5410
+ return throwDefaultError({
5878
5411
  output,
5879
5412
  parsedBody,
5880
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5881
5413
  errorCode,
5882
5414
  });
5883
5415
  }
@@ -5886,7 +5418,7 @@ const de_UpdateWorkflowCommand = async (output, context) => {
5886
5418
  if (output.statusCode !== 202 && output.statusCode >= 300) {
5887
5419
  return de_UpdateWorkflowCommandError(output, context);
5888
5420
  }
5889
- const contents = map({
5421
+ const contents = (0, smithy_client_1.map)({
5890
5422
  $metadata: deserializeMetadata(output),
5891
5423
  });
5892
5424
  await collectBody(output.body, context);
@@ -5926,21 +5458,21 @@ const de_UpdateWorkflowCommandError = async (output, context) => {
5926
5458
  throw await de_ValidationExceptionRes(parsedOutput, context);
5927
5459
  default:
5928
5460
  const parsedBody = parsedOutput.body;
5929
- (0, smithy_client_1.throwDefaultError)({
5461
+ return throwDefaultError({
5930
5462
  output,
5931
5463
  parsedBody,
5932
- exceptionCtor: OmicsServiceException_1.OmicsServiceException,
5933
5464
  errorCode,
5934
5465
  });
5935
5466
  }
5936
5467
  };
5937
- const map = smithy_client_1.map;
5468
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(OmicsServiceException_1.OmicsServiceException);
5938
5469
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
5939
- const contents = map({});
5470
+ const contents = (0, smithy_client_1.map)({});
5940
5471
  const data = parsedOutput.body;
5941
- if (data.message != null) {
5942
- contents.message = (0, smithy_client_1.expectString)(data.message);
5943
- }
5472
+ const doc = (0, smithy_client_1.take)(data, {
5473
+ message: smithy_client_1.expectString,
5474
+ });
5475
+ Object.assign(contents, doc);
5944
5476
  const exception = new models_0_1.AccessDeniedException({
5945
5477
  $metadata: deserializeMetadata(parsedOutput),
5946
5478
  ...contents,
@@ -5948,11 +5480,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
5948
5480
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5949
5481
  };
5950
5482
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
5951
- const contents = map({});
5483
+ const contents = (0, smithy_client_1.map)({});
5952
5484
  const data = parsedOutput.body;
5953
- if (data.message != null) {
5954
- contents.message = (0, smithy_client_1.expectString)(data.message);
5955
- }
5485
+ const doc = (0, smithy_client_1.take)(data, {
5486
+ message: smithy_client_1.expectString,
5487
+ });
5488
+ Object.assign(contents, doc);
5956
5489
  const exception = new models_0_1.ConflictException({
5957
5490
  $metadata: deserializeMetadata(parsedOutput),
5958
5491
  ...contents,
@@ -5960,11 +5493,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
5960
5493
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5961
5494
  };
5962
5495
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
5963
- const contents = map({});
5496
+ const contents = (0, smithy_client_1.map)({});
5964
5497
  const data = parsedOutput.body;
5965
- if (data.message != null) {
5966
- contents.message = (0, smithy_client_1.expectString)(data.message);
5967
- }
5498
+ const doc = (0, smithy_client_1.take)(data, {
5499
+ message: smithy_client_1.expectString,
5500
+ });
5501
+ Object.assign(contents, doc);
5968
5502
  const exception = new models_0_1.InternalServerException({
5969
5503
  $metadata: deserializeMetadata(parsedOutput),
5970
5504
  ...contents,
@@ -5972,11 +5506,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
5972
5506
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5973
5507
  };
5974
5508
  const de_RangeNotSatisfiableExceptionRes = async (parsedOutput, context) => {
5975
- const contents = map({});
5509
+ const contents = (0, smithy_client_1.map)({});
5976
5510
  const data = parsedOutput.body;
5977
- if (data.message != null) {
5978
- contents.message = (0, smithy_client_1.expectString)(data.message);
5979
- }
5511
+ const doc = (0, smithy_client_1.take)(data, {
5512
+ message: smithy_client_1.expectString,
5513
+ });
5514
+ Object.assign(contents, doc);
5980
5515
  const exception = new models_0_1.RangeNotSatisfiableException({
5981
5516
  $metadata: deserializeMetadata(parsedOutput),
5982
5517
  ...contents,
@@ -5984,11 +5519,12 @@ const de_RangeNotSatisfiableExceptionRes = async (parsedOutput, context) => {
5984
5519
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5985
5520
  };
5986
5521
  const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
5987
- const contents = map({});
5522
+ const contents = (0, smithy_client_1.map)({});
5988
5523
  const data = parsedOutput.body;
5989
- if (data.message != null) {
5990
- contents.message = (0, smithy_client_1.expectString)(data.message);
5991
- }
5524
+ const doc = (0, smithy_client_1.take)(data, {
5525
+ message: smithy_client_1.expectString,
5526
+ });
5527
+ Object.assign(contents, doc);
5992
5528
  const exception = new models_0_1.RequestTimeoutException({
5993
5529
  $metadata: deserializeMetadata(parsedOutput),
5994
5530
  ...contents,
@@ -5996,11 +5532,12 @@ const de_RequestTimeoutExceptionRes = async (parsedOutput, context) => {
5996
5532
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
5997
5533
  };
5998
5534
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
5999
- const contents = map({});
5535
+ const contents = (0, smithy_client_1.map)({});
6000
5536
  const data = parsedOutput.body;
6001
- if (data.message != null) {
6002
- contents.message = (0, smithy_client_1.expectString)(data.message);
6003
- }
5537
+ const doc = (0, smithy_client_1.take)(data, {
5538
+ message: smithy_client_1.expectString,
5539
+ });
5540
+ Object.assign(contents, doc);
6004
5541
  const exception = new models_0_1.ResourceNotFoundException({
6005
5542
  $metadata: deserializeMetadata(parsedOutput),
6006
5543
  ...contents,
@@ -6008,11 +5545,12 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
6008
5545
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6009
5546
  };
6010
5547
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
6011
- const contents = map({});
5548
+ const contents = (0, smithy_client_1.map)({});
6012
5549
  const data = parsedOutput.body;
6013
- if (data.message != null) {
6014
- contents.message = (0, smithy_client_1.expectString)(data.message);
6015
- }
5550
+ const doc = (0, smithy_client_1.take)(data, {
5551
+ message: smithy_client_1.expectString,
5552
+ });
5553
+ Object.assign(contents, doc);
6016
5554
  const exception = new models_0_1.ServiceQuotaExceededException({
6017
5555
  $metadata: deserializeMetadata(parsedOutput),
6018
5556
  ...contents,
@@ -6020,11 +5558,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
6020
5558
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6021
5559
  };
6022
5560
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
6023
- const contents = map({});
5561
+ const contents = (0, smithy_client_1.map)({});
6024
5562
  const data = parsedOutput.body;
6025
- if (data.message != null) {
6026
- contents.message = (0, smithy_client_1.expectString)(data.message);
6027
- }
5563
+ const doc = (0, smithy_client_1.take)(data, {
5564
+ message: smithy_client_1.expectString,
5565
+ });
5566
+ Object.assign(contents, doc);
6028
5567
  const exception = new models_0_1.ThrottlingException({
6029
5568
  $metadata: deserializeMetadata(parsedOutput),
6030
5569
  ...contents,
@@ -6032,11 +5571,12 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
6032
5571
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6033
5572
  };
6034
5573
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
6035
- const contents = map({});
5574
+ const contents = (0, smithy_client_1.map)({});
6036
5575
  const data = parsedOutput.body;
6037
- if (data.message != null) {
6038
- contents.message = (0, smithy_client_1.expectString)(data.message);
6039
- }
5576
+ const doc = (0, smithy_client_1.take)(data, {
5577
+ message: smithy_client_1.expectString,
5578
+ });
5579
+ Object.assign(contents, doc);
6040
5580
  const exception = new models_0_1.ValidationException({
6041
5581
  $metadata: deserializeMetadata(parsedOutput),
6042
5582
  ...contents,
@@ -6044,687 +5584,241 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
6044
5584
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
6045
5585
  };
6046
5586
  const se_ActivateReadSetFilter = (input, context) => {
6047
- return {
6048
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6049
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6050
- ...(input.status != null && { status: input.status }),
6051
- };
6052
- };
6053
- const se_AnnotationImportItemSource = (input, context) => {
6054
- return {
6055
- ...(input.source != null && { source: input.source }),
6056
- };
6057
- };
6058
- const se_AnnotationImportItemSources = (input, context) => {
6059
- return input
6060
- .filter((e) => e != null)
6061
- .map((entry) => {
6062
- return se_AnnotationImportItemSource(entry, context);
5587
+ return (0, smithy_client_1.take)(input, {
5588
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5589
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5590
+ status: [],
6063
5591
  });
6064
5592
  };
6065
- const se_ExportReadSet = (input, context) => {
6066
- return {
6067
- ...(input.readSetId != null && { readSetId: input.readSetId }),
6068
- };
6069
- };
6070
5593
  const se_ExportReadSetFilter = (input, context) => {
6071
- return {
6072
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6073
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6074
- ...(input.status != null && { status: input.status }),
6075
- };
6076
- };
6077
- const se_ExportReadSetList = (input, context) => {
6078
- return input
6079
- .filter((e) => e != null)
6080
- .map((entry) => {
6081
- return se_ExportReadSet(entry, context);
6082
- });
6083
- };
6084
- const se_FormatOptions = (input, context) => {
6085
- return models_0_1.FormatOptions.visit(input, {
6086
- tsvOptions: (value) => ({ tsvOptions: se_TsvOptions(value, context) }),
6087
- vcfOptions: (value) => ({ vcfOptions: se_VcfOptions(value, context) }),
6088
- _: (name, value) => ({ name: value }),
6089
- });
6090
- };
6091
- const se_FormatToHeader = (input, context) => {
6092
- return Object.entries(input).reduce((acc, [key, value]) => {
6093
- if (value === null) {
6094
- return acc;
6095
- }
6096
- acc[key] = value;
6097
- return acc;
6098
- }, {});
6099
- };
6100
- const se_IdList = (input, context) => {
6101
- return input
6102
- .filter((e) => e != null)
6103
- .map((entry) => {
6104
- return entry;
5594
+ return (0, smithy_client_1.take)(input, {
5595
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5596
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5597
+ status: [],
6105
5598
  });
6106
5599
  };
6107
5600
  const se_ImportReadSetFilter = (input, context) => {
6108
- return {
6109
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6110
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6111
- ...(input.status != null && { status: input.status }),
6112
- };
5601
+ return (0, smithy_client_1.take)(input, {
5602
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5603
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5604
+ status: [],
5605
+ });
6113
5606
  };
6114
5607
  const se_ImportReferenceFilter = (input, context) => {
6115
- return {
6116
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6117
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6118
- ...(input.status != null && { status: input.status }),
6119
- };
6120
- };
6121
- const se_ListAnnotationImportJobsFilter = (input, context) => {
6122
- return {
6123
- ...(input.status != null && { status: input.status }),
6124
- ...(input.storeName != null && { storeName: input.storeName }),
6125
- };
6126
- };
6127
- const se_ListAnnotationStoresFilter = (input, context) => {
6128
- return {
6129
- ...(input.status != null && { status: input.status }),
6130
- };
6131
- };
6132
- const se_ListVariantImportJobsFilter = (input, context) => {
6133
- return {
6134
- ...(input.status != null && { status: input.status }),
6135
- ...(input.storeName != null && { storeName: input.storeName }),
6136
- };
6137
- };
6138
- const se_ListVariantStoresFilter = (input, context) => {
6139
- return {
6140
- ...(input.status != null && { status: input.status }),
6141
- };
6142
- };
6143
- const se_ReadOptions = (input, context) => {
6144
- return {
6145
- ...(input.comment != null && { comment: input.comment }),
6146
- ...(input.encoding != null && { encoding: input.encoding }),
6147
- ...(input.escape != null && { escape: input.escape }),
6148
- ...(input.escapeQuotes != null && { escapeQuotes: input.escapeQuotes }),
6149
- ...(input.header != null && { header: input.header }),
6150
- ...(input.lineSep != null && { lineSep: input.lineSep }),
6151
- ...(input.quote != null && { quote: input.quote }),
6152
- ...(input.quoteAll != null && { quoteAll: input.quoteAll }),
6153
- ...(input.sep != null && { sep: input.sep }),
6154
- };
5608
+ return (0, smithy_client_1.take)(input, {
5609
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5610
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5611
+ status: [],
5612
+ });
6155
5613
  };
6156
5614
  const se_ReadSetFilter = (input, context) => {
6157
- return {
6158
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6159
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6160
- ...(input.name != null && { name: input.name }),
6161
- ...(input.referenceArn != null && { referenceArn: input.referenceArn }),
6162
- ...(input.status != null && { status: input.status }),
6163
- };
6164
- };
6165
- const se_ReadSetIdList = (input, context) => {
6166
- return input
6167
- .filter((e) => e != null)
6168
- .map((entry) => {
6169
- return entry;
5615
+ return (0, smithy_client_1.take)(input, {
5616
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5617
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5618
+ name: [],
5619
+ referenceArn: [],
5620
+ status: [],
6170
5621
  });
6171
5622
  };
6172
5623
  const se_ReferenceFilter = (input, context) => {
6173
- return {
6174
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6175
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6176
- ...(input.md5 != null && { md5: input.md5 }),
6177
- ...(input.name != null && { name: input.name }),
6178
- };
6179
- };
6180
- const se_ReferenceItem = (input, context) => {
6181
- return models_0_1.ReferenceItem.visit(input, {
6182
- referenceArn: (value) => ({ referenceArn: value }),
6183
- _: (name, value) => ({ name: value }),
5624
+ return (0, smithy_client_1.take)(input, {
5625
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5626
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5627
+ md5: [],
5628
+ name: [],
6184
5629
  });
6185
5630
  };
6186
5631
  const se_ReferenceStoreFilter = (input, context) => {
6187
- return {
6188
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6189
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6190
- ...(input.name != null && { name: input.name }),
6191
- };
5632
+ return (0, smithy_client_1.take)(input, {
5633
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5634
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5635
+ name: [],
5636
+ });
6192
5637
  };
6193
5638
  const se_RunParameters = (input, context) => {
6194
5639
  return input;
6195
5640
  };
6196
- const se_Schema = (input, context) => {
6197
- return input
6198
- .filter((e) => e != null)
6199
- .map((entry) => {
6200
- return se_SchemaItem(entry, context);
6201
- });
6202
- };
6203
- const se_SchemaItem = (input, context) => {
6204
- return Object.entries(input).reduce((acc, [key, value]) => {
6205
- if (value === null) {
6206
- return acc;
6207
- }
6208
- acc[key] = value;
6209
- return acc;
6210
- }, {});
6211
- };
6212
5641
  const se_SequenceStoreFilter = (input, context) => {
6213
- return {
6214
- ...(input.createdAfter != null && { createdAfter: input.createdAfter.toISOString().split(".")[0] + "Z" }),
6215
- ...(input.createdBefore != null && { createdBefore: input.createdBefore.toISOString().split(".")[0] + "Z" }),
6216
- ...(input.name != null && { name: input.name }),
6217
- };
6218
- };
6219
- const se_SourceFiles = (input, context) => {
6220
- return {
6221
- ...(input.source1 != null && { source1: input.source1 }),
6222
- ...(input.source2 != null && { source2: input.source2 }),
6223
- };
6224
- };
6225
- const se_SseConfig = (input, context) => {
6226
- return {
6227
- ...(input.keyArn != null && { keyArn: input.keyArn }),
6228
- ...(input.type != null && { type: input.type }),
6229
- };
6230
- };
6231
- const se_StartReadSetActivationJobSourceItem = (input, context) => {
6232
- return {
6233
- ...(input.readSetId != null && { readSetId: input.readSetId }),
6234
- };
6235
- };
6236
- const se_StartReadSetActivationJobSourceList = (input, context) => {
6237
- return input
6238
- .filter((e) => e != null)
6239
- .map((entry) => {
6240
- return se_StartReadSetActivationJobSourceItem(entry, context);
6241
- });
6242
- };
6243
- const se_StartReadSetImportJobSourceItem = (input, context) => {
6244
- return {
6245
- ...(input.description != null && { description: input.description }),
6246
- ...(input.generatedFrom != null && { generatedFrom: input.generatedFrom }),
6247
- ...(input.name != null && { name: input.name }),
6248
- ...(input.referenceArn != null && { referenceArn: input.referenceArn }),
6249
- ...(input.sampleId != null && { sampleId: input.sampleId }),
6250
- ...(input.sourceFileType != null && { sourceFileType: input.sourceFileType }),
6251
- ...(input.sourceFiles != null && { sourceFiles: se_SourceFiles(input.sourceFiles, context) }),
6252
- ...(input.subjectId != null && { subjectId: input.subjectId }),
6253
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
6254
- };
6255
- };
6256
- const se_StartReadSetImportJobSourceList = (input, context) => {
6257
- return input
6258
- .filter((e) => e != null)
6259
- .map((entry) => {
6260
- return se_StartReadSetImportJobSourceItem(entry, context);
6261
- });
6262
- };
6263
- const se_StartReferenceImportJobSourceItem = (input, context) => {
6264
- return {
6265
- ...(input.description != null && { description: input.description }),
6266
- ...(input.name != null && { name: input.name }),
6267
- ...(input.sourceFile != null && { sourceFile: input.sourceFile }),
6268
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
6269
- };
6270
- };
6271
- const se_StartReferenceImportJobSourceList = (input, context) => {
6272
- return input
6273
- .filter((e) => e != null)
6274
- .map((entry) => {
6275
- return se_StartReferenceImportJobSourceItem(entry, context);
6276
- });
6277
- };
6278
- const se_StoreOptions = (input, context) => {
6279
- return models_0_1.StoreOptions.visit(input, {
6280
- tsvStoreOptions: (value) => ({ tsvStoreOptions: se_TsvStoreOptions(value, context) }),
6281
- _: (name, value) => ({ name: value }),
6282
- });
6283
- };
6284
- const se_TagMap = (input, context) => {
6285
- return Object.entries(input).reduce((acc, [key, value]) => {
6286
- if (value === null) {
6287
- return acc;
6288
- }
6289
- acc[key] = value;
6290
- return acc;
6291
- }, {});
6292
- };
6293
- const se_TsvOptions = (input, context) => {
6294
- return {
6295
- ...(input.readOptions != null && { readOptions: se_ReadOptions(input.readOptions, context) }),
6296
- };
6297
- };
6298
- const se_TsvStoreOptions = (input, context) => {
6299
- return {
6300
- ...(input.annotationType != null && { annotationType: input.annotationType }),
6301
- ...(input.formatToHeader != null && { formatToHeader: se_FormatToHeader(input.formatToHeader, context) }),
6302
- ...(input.schema != null && { schema: se_Schema(input.schema, context) }),
6303
- };
6304
- };
6305
- const se_VariantImportItemSource = (input, context) => {
6306
- return {
6307
- ...(input.source != null && { source: input.source }),
6308
- };
6309
- };
6310
- const se_VariantImportItemSources = (input, context) => {
6311
- return input
6312
- .filter((e) => e != null)
6313
- .map((entry) => {
6314
- return se_VariantImportItemSource(entry, context);
5642
+ return (0, smithy_client_1.take)(input, {
5643
+ createdAfter: (_) => _.toISOString().split(".")[0] + "Z",
5644
+ createdBefore: (_) => _.toISOString().split(".")[0] + "Z",
5645
+ name: [],
6315
5646
  });
6316
5647
  };
6317
- const se_VcfOptions = (input, context) => {
6318
- return {
6319
- ...(input.ignoreFilterField != null && { ignoreFilterField: input.ignoreFilterField }),
6320
- ...(input.ignoreQualField != null && { ignoreQualField: input.ignoreQualField }),
6321
- };
6322
- };
6323
- const se_WorkflowParameter = (input, context) => {
6324
- return {
6325
- ...(input.description != null && { description: input.description }),
6326
- ...(input.optional != null && { optional: input.optional }),
6327
- };
6328
- };
6329
- const se_WorkflowParameterTemplate = (input, context) => {
6330
- return Object.entries(input).reduce((acc, [key, value]) => {
6331
- if (value === null) {
6332
- return acc;
6333
- }
6334
- acc[key] = se_WorkflowParameter(value, context);
6335
- return acc;
6336
- }, {});
6337
- };
6338
5648
  const de_ActivateReadSetJobItem = (output, context) => {
6339
- return {
6340
- completionTime: output.completionTime != null
6341
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.completionTime))
6342
- : undefined,
6343
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6344
- id: (0, smithy_client_1.expectString)(output.id),
6345
- sequenceStoreId: (0, smithy_client_1.expectString)(output.sequenceStoreId),
6346
- status: (0, smithy_client_1.expectString)(output.status),
6347
- };
5649
+ return (0, smithy_client_1.take)(output, {
5650
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5651
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5652
+ id: smithy_client_1.expectString,
5653
+ sequenceStoreId: smithy_client_1.expectString,
5654
+ status: smithy_client_1.expectString,
5655
+ });
6348
5656
  };
6349
5657
  const de_ActivateReadSetJobList = (output, context) => {
6350
5658
  const retVal = (output || [])
6351
5659
  .filter((e) => e != null)
6352
5660
  .map((entry) => {
6353
- if (entry === null) {
6354
- return null;
6355
- }
6356
5661
  return de_ActivateReadSetJobItem(entry, context);
6357
5662
  });
6358
5663
  return retVal;
6359
5664
  };
6360
- const de_ActivateReadSetSourceItem = (output, context) => {
6361
- return {
6362
- readSetId: (0, smithy_client_1.expectString)(output.readSetId),
6363
- status: (0, smithy_client_1.expectString)(output.status),
6364
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6365
- };
6366
- };
6367
- const de_ActivateReadSetSourceList = (output, context) => {
6368
- const retVal = (output || [])
6369
- .filter((e) => e != null)
6370
- .map((entry) => {
6371
- if (entry === null) {
6372
- return null;
6373
- }
6374
- return de_ActivateReadSetSourceItem(entry, context);
6375
- });
6376
- return retVal;
6377
- };
6378
- const de_AnnotationImportItemDetail = (output, context) => {
6379
- return {
6380
- jobStatus: (0, smithy_client_1.expectString)(output.jobStatus),
6381
- source: (0, smithy_client_1.expectString)(output.source),
6382
- };
6383
- };
6384
- const de_AnnotationImportItemDetails = (output, context) => {
6385
- const retVal = (output || [])
6386
- .filter((e) => e != null)
6387
- .map((entry) => {
6388
- if (entry === null) {
6389
- return null;
6390
- }
6391
- return de_AnnotationImportItemDetail(entry, context);
6392
- });
6393
- return retVal;
6394
- };
6395
5665
  const de_AnnotationImportJobItem = (output, context) => {
6396
- return {
6397
- completionTime: output.completionTime != null
6398
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.completionTime))
6399
- : undefined,
6400
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6401
- destinationName: (0, smithy_client_1.expectString)(output.destinationName),
6402
- id: (0, smithy_client_1.expectString)(output.id),
6403
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
6404
- runLeftNormalization: (0, smithy_client_1.expectBoolean)(output.runLeftNormalization),
6405
- status: (0, smithy_client_1.expectString)(output.status),
6406
- updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updateTime)) : undefined,
6407
- };
5666
+ return (0, smithy_client_1.take)(output, {
5667
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5668
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5669
+ destinationName: smithy_client_1.expectString,
5670
+ id: smithy_client_1.expectString,
5671
+ roleArn: smithy_client_1.expectString,
5672
+ runLeftNormalization: smithy_client_1.expectBoolean,
5673
+ status: smithy_client_1.expectString,
5674
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5675
+ });
6408
5676
  };
6409
5677
  const de_AnnotationImportJobItems = (output, context) => {
6410
5678
  const retVal = (output || [])
6411
5679
  .filter((e) => e != null)
6412
5680
  .map((entry) => {
6413
- if (entry === null) {
6414
- return null;
6415
- }
6416
5681
  return de_AnnotationImportJobItem(entry, context);
6417
5682
  });
6418
5683
  return retVal;
6419
5684
  };
6420
5685
  const de_AnnotationStoreItem = (output, context) => {
6421
- return {
6422
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6423
- description: (0, smithy_client_1.expectString)(output.description),
6424
- id: (0, smithy_client_1.expectString)(output.id),
6425
- name: (0, smithy_client_1.expectString)(output.name),
6426
- reference: output.reference != null ? de_ReferenceItem((0, smithy_client_1.expectUnion)(output.reference), context) : undefined,
6427
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6428
- status: (0, smithy_client_1.expectString)(output.status),
6429
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6430
- storeArn: (0, smithy_client_1.expectString)(output.storeArn),
6431
- storeFormat: (0, smithy_client_1.expectString)(output.storeFormat),
6432
- storeSizeBytes: (0, smithy_client_1.expectLong)(output.storeSizeBytes),
6433
- updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updateTime)) : undefined,
6434
- };
5686
+ return (0, smithy_client_1.take)(output, {
5687
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5688
+ description: smithy_client_1.expectString,
5689
+ id: smithy_client_1.expectString,
5690
+ name: smithy_client_1.expectString,
5691
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
5692
+ sseConfig: smithy_client_1._json,
5693
+ status: smithy_client_1.expectString,
5694
+ statusMessage: smithy_client_1.expectString,
5695
+ storeArn: smithy_client_1.expectString,
5696
+ storeFormat: smithy_client_1.expectString,
5697
+ storeSizeBytes: smithy_client_1.expectLong,
5698
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5699
+ });
6435
5700
  };
6436
5701
  const de_AnnotationStoreItems = (output, context) => {
6437
5702
  const retVal = (output || [])
6438
5703
  .filter((e) => e != null)
6439
5704
  .map((entry) => {
6440
- if (entry === null) {
6441
- return null;
6442
- }
6443
5705
  return de_AnnotationStoreItem(entry, context);
6444
5706
  });
6445
5707
  return retVal;
6446
5708
  };
6447
- const de_ExportReadSetDetail = (output, context) => {
6448
- return {
6449
- id: (0, smithy_client_1.expectString)(output.id),
6450
- status: (0, smithy_client_1.expectString)(output.status),
6451
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6452
- };
6453
- };
6454
- const de_ExportReadSetDetailList = (output, context) => {
6455
- const retVal = (output || [])
6456
- .filter((e) => e != null)
6457
- .map((entry) => {
6458
- if (entry === null) {
6459
- return null;
6460
- }
6461
- return de_ExportReadSetDetail(entry, context);
6462
- });
6463
- return retVal;
6464
- };
6465
5709
  const de_ExportReadSetJobDetail = (output, context) => {
6466
- return {
6467
- completionTime: output.completionTime != null
6468
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.completionTime))
6469
- : undefined,
6470
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6471
- destination: (0, smithy_client_1.expectString)(output.destination),
6472
- id: (0, smithy_client_1.expectString)(output.id),
6473
- sequenceStoreId: (0, smithy_client_1.expectString)(output.sequenceStoreId),
6474
- status: (0, smithy_client_1.expectString)(output.status),
6475
- };
5710
+ return (0, smithy_client_1.take)(output, {
5711
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5712
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5713
+ destination: smithy_client_1.expectString,
5714
+ id: smithy_client_1.expectString,
5715
+ sequenceStoreId: smithy_client_1.expectString,
5716
+ status: smithy_client_1.expectString,
5717
+ });
6476
5718
  };
6477
5719
  const de_ExportReadSetJobDetailList = (output, context) => {
6478
5720
  const retVal = (output || [])
6479
5721
  .filter((e) => e != null)
6480
5722
  .map((entry) => {
6481
- if (entry === null) {
6482
- return null;
6483
- }
6484
5723
  return de_ExportReadSetJobDetail(entry, context);
6485
5724
  });
6486
5725
  return retVal;
6487
5726
  };
6488
- const de_FileInformation = (output, context) => {
6489
- return {
6490
- contentLength: (0, smithy_client_1.expectLong)(output.contentLength),
6491
- partSize: (0, smithy_client_1.expectLong)(output.partSize),
6492
- totalParts: (0, smithy_client_1.expectInt32)(output.totalParts),
6493
- };
6494
- };
6495
- const de_FormatOptions = (output, context) => {
6496
- if (output.tsvOptions != null) {
6497
- return {
6498
- tsvOptions: de_TsvOptions(output.tsvOptions, context),
6499
- };
6500
- }
6501
- if (output.vcfOptions != null) {
6502
- return {
6503
- vcfOptions: de_VcfOptions(output.vcfOptions, context),
6504
- };
6505
- }
6506
- return { $unknown: Object.entries(output)[0] };
6507
- };
6508
- const de_FormatToHeader = (output, context) => {
6509
- return Object.entries(output).reduce((acc, [key, value]) => {
6510
- if (value === null) {
6511
- return acc;
6512
- }
6513
- acc[key] = (0, smithy_client_1.expectString)(value);
6514
- return acc;
6515
- }, {});
6516
- };
6517
5727
  const de_ImportReadSetJobItem = (output, context) => {
6518
- return {
6519
- completionTime: output.completionTime != null
6520
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.completionTime))
6521
- : undefined,
6522
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6523
- id: (0, smithy_client_1.expectString)(output.id),
6524
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
6525
- sequenceStoreId: (0, smithy_client_1.expectString)(output.sequenceStoreId),
6526
- status: (0, smithy_client_1.expectString)(output.status),
6527
- };
5728
+ return (0, smithy_client_1.take)(output, {
5729
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5730
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5731
+ id: smithy_client_1.expectString,
5732
+ roleArn: smithy_client_1.expectString,
5733
+ sequenceStoreId: smithy_client_1.expectString,
5734
+ status: smithy_client_1.expectString,
5735
+ });
6528
5736
  };
6529
5737
  const de_ImportReadSetJobList = (output, context) => {
6530
5738
  const retVal = (output || [])
6531
5739
  .filter((e) => e != null)
6532
5740
  .map((entry) => {
6533
- if (entry === null) {
6534
- return null;
6535
- }
6536
5741
  return de_ImportReadSetJobItem(entry, context);
6537
5742
  });
6538
5743
  return retVal;
6539
5744
  };
6540
- const de_ImportReadSetSourceItem = (output, context) => {
6541
- return {
6542
- description: (0, smithy_client_1.expectString)(output.description),
6543
- generatedFrom: (0, smithy_client_1.expectString)(output.generatedFrom),
6544
- name: (0, smithy_client_1.expectString)(output.name),
6545
- referenceArn: (0, smithy_client_1.expectString)(output.referenceArn),
6546
- sampleId: (0, smithy_client_1.expectString)(output.sampleId),
6547
- sourceFileType: (0, smithy_client_1.expectString)(output.sourceFileType),
6548
- sourceFiles: output.sourceFiles != null ? de_SourceFiles(output.sourceFiles, context) : undefined,
6549
- status: (0, smithy_client_1.expectString)(output.status),
6550
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6551
- subjectId: (0, smithy_client_1.expectString)(output.subjectId),
6552
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
6553
- };
6554
- };
6555
- const de_ImportReadSetSourceList = (output, context) => {
6556
- const retVal = (output || [])
6557
- .filter((e) => e != null)
6558
- .map((entry) => {
6559
- if (entry === null) {
6560
- return null;
6561
- }
6562
- return de_ImportReadSetSourceItem(entry, context);
6563
- });
6564
- return retVal;
6565
- };
6566
5745
  const de_ImportReferenceJobItem = (output, context) => {
6567
- return {
6568
- completionTime: output.completionTime != null
6569
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.completionTime))
6570
- : undefined,
6571
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6572
- id: (0, smithy_client_1.expectString)(output.id),
6573
- referenceStoreId: (0, smithy_client_1.expectString)(output.referenceStoreId),
6574
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
6575
- status: (0, smithy_client_1.expectString)(output.status),
6576
- };
5746
+ return (0, smithy_client_1.take)(output, {
5747
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5748
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5749
+ id: smithy_client_1.expectString,
5750
+ referenceStoreId: smithy_client_1.expectString,
5751
+ roleArn: smithy_client_1.expectString,
5752
+ status: smithy_client_1.expectString,
5753
+ });
6577
5754
  };
6578
5755
  const de_ImportReferenceJobList = (output, context) => {
6579
5756
  const retVal = (output || [])
6580
5757
  .filter((e) => e != null)
6581
5758
  .map((entry) => {
6582
- if (entry === null) {
6583
- return null;
6584
- }
6585
5759
  return de_ImportReferenceJobItem(entry, context);
6586
5760
  });
6587
5761
  return retVal;
6588
5762
  };
6589
- const de_ImportReferenceSourceItem = (output, context) => {
6590
- return {
6591
- description: (0, smithy_client_1.expectString)(output.description),
6592
- name: (0, smithy_client_1.expectString)(output.name),
6593
- sourceFile: (0, smithy_client_1.expectString)(output.sourceFile),
6594
- status: (0, smithy_client_1.expectString)(output.status),
6595
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6596
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
6597
- };
6598
- };
6599
- const de_ImportReferenceSourceList = (output, context) => {
6600
- const retVal = (output || [])
6601
- .filter((e) => e != null)
6602
- .map((entry) => {
6603
- if (entry === null) {
6604
- return null;
6605
- }
6606
- return de_ImportReferenceSourceItem(entry, context);
6607
- });
6608
- return retVal;
6609
- };
6610
- const de_ReadOptions = (output, context) => {
6611
- return {
6612
- comment: (0, smithy_client_1.expectString)(output.comment),
6613
- encoding: (0, smithy_client_1.expectString)(output.encoding),
6614
- escape: (0, smithy_client_1.expectString)(output.escape),
6615
- escapeQuotes: (0, smithy_client_1.expectBoolean)(output.escapeQuotes),
6616
- header: (0, smithy_client_1.expectBoolean)(output.header),
6617
- lineSep: (0, smithy_client_1.expectString)(output.lineSep),
6618
- quote: (0, smithy_client_1.expectString)(output.quote),
6619
- quoteAll: (0, smithy_client_1.expectBoolean)(output.quoteAll),
6620
- sep: (0, smithy_client_1.expectString)(output.sep),
6621
- };
6622
- };
6623
- const de_ReadSetBatchError = (output, context) => {
6624
- return {
6625
- code: (0, smithy_client_1.expectString)(output.code),
6626
- id: (0, smithy_client_1.expectString)(output.id),
6627
- message: (0, smithy_client_1.expectString)(output.message),
6628
- };
6629
- };
6630
- const de_ReadSetBatchErrorList = (output, context) => {
6631
- const retVal = (output || [])
6632
- .filter((e) => e != null)
6633
- .map((entry) => {
6634
- if (entry === null) {
6635
- return null;
6636
- }
6637
- return de_ReadSetBatchError(entry, context);
6638
- });
6639
- return retVal;
6640
- };
6641
- const de_ReadSetFiles = (output, context) => {
6642
- return {
6643
- index: output.index != null ? de_FileInformation(output.index, context) : undefined,
6644
- source1: output.source1 != null ? de_FileInformation(output.source1, context) : undefined,
6645
- source2: output.source2 != null ? de_FileInformation(output.source2, context) : undefined,
6646
- };
6647
- };
6648
5763
  const de_ReadSetList = (output, context) => {
6649
5764
  const retVal = (output || [])
6650
5765
  .filter((e) => e != null)
6651
5766
  .map((entry) => {
6652
- if (entry === null) {
6653
- return null;
6654
- }
6655
5767
  return de_ReadSetListItem(entry, context);
6656
5768
  });
6657
5769
  return retVal;
6658
5770
  };
6659
5771
  const de_ReadSetListItem = (output, context) => {
6660
- return {
6661
- arn: (0, smithy_client_1.expectString)(output.arn),
6662
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6663
- description: (0, smithy_client_1.expectString)(output.description),
6664
- fileType: (0, smithy_client_1.expectString)(output.fileType),
6665
- id: (0, smithy_client_1.expectString)(output.id),
6666
- name: (0, smithy_client_1.expectString)(output.name),
6667
- referenceArn: (0, smithy_client_1.expectString)(output.referenceArn),
6668
- sampleId: (0, smithy_client_1.expectString)(output.sampleId),
6669
- sequenceInformation: output.sequenceInformation != null ? de_SequenceInformation(output.sequenceInformation, context) : undefined,
6670
- sequenceStoreId: (0, smithy_client_1.expectString)(output.sequenceStoreId),
6671
- status: (0, smithy_client_1.expectString)(output.status),
6672
- subjectId: (0, smithy_client_1.expectString)(output.subjectId),
6673
- };
6674
- };
6675
- const de_ReferenceFiles = (output, context) => {
6676
- return {
6677
- index: output.index != null ? de_FileInformation(output.index, context) : undefined,
6678
- source: output.source != null ? de_FileInformation(output.source, context) : undefined,
6679
- };
6680
- };
6681
- const de_ReferenceItem = (output, context) => {
6682
- if ((0, smithy_client_1.expectString)(output.referenceArn) !== undefined) {
6683
- return { referenceArn: (0, smithy_client_1.expectString)(output.referenceArn) };
6684
- }
6685
- return { $unknown: Object.entries(output)[0] };
5772
+ return (0, smithy_client_1.take)(output, {
5773
+ arn: smithy_client_1.expectString,
5774
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5775
+ description: smithy_client_1.expectString,
5776
+ fileType: smithy_client_1.expectString,
5777
+ id: smithy_client_1.expectString,
5778
+ name: smithy_client_1.expectString,
5779
+ referenceArn: smithy_client_1.expectString,
5780
+ sampleId: smithy_client_1.expectString,
5781
+ sequenceInformation: smithy_client_1._json,
5782
+ sequenceStoreId: smithy_client_1.expectString,
5783
+ status: smithy_client_1.expectString,
5784
+ subjectId: smithy_client_1.expectString,
5785
+ });
6686
5786
  };
6687
5787
  const de_ReferenceList = (output, context) => {
6688
5788
  const retVal = (output || [])
6689
5789
  .filter((e) => e != null)
6690
5790
  .map((entry) => {
6691
- if (entry === null) {
6692
- return null;
6693
- }
6694
5791
  return de_ReferenceListItem(entry, context);
6695
5792
  });
6696
5793
  return retVal;
6697
5794
  };
6698
5795
  const de_ReferenceListItem = (output, context) => {
6699
- return {
6700
- arn: (0, smithy_client_1.expectString)(output.arn),
6701
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6702
- description: (0, smithy_client_1.expectString)(output.description),
6703
- id: (0, smithy_client_1.expectString)(output.id),
6704
- md5: (0, smithy_client_1.expectString)(output.md5),
6705
- name: (0, smithy_client_1.expectString)(output.name),
6706
- referenceStoreId: (0, smithy_client_1.expectString)(output.referenceStoreId),
6707
- status: (0, smithy_client_1.expectString)(output.status),
6708
- updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updateTime)) : undefined,
6709
- };
5796
+ return (0, smithy_client_1.take)(output, {
5797
+ arn: smithy_client_1.expectString,
5798
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5799
+ description: smithy_client_1.expectString,
5800
+ id: smithy_client_1.expectString,
5801
+ md5: smithy_client_1.expectString,
5802
+ name: smithy_client_1.expectString,
5803
+ referenceStoreId: smithy_client_1.expectString,
5804
+ status: smithy_client_1.expectString,
5805
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5806
+ });
6710
5807
  };
6711
5808
  const de_ReferenceStoreDetail = (output, context) => {
6712
- return {
6713
- arn: (0, smithy_client_1.expectString)(output.arn),
6714
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6715
- description: (0, smithy_client_1.expectString)(output.description),
6716
- id: (0, smithy_client_1.expectString)(output.id),
6717
- name: (0, smithy_client_1.expectString)(output.name),
6718
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6719
- };
5809
+ return (0, smithy_client_1.take)(output, {
5810
+ arn: smithy_client_1.expectString,
5811
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5812
+ description: smithy_client_1.expectString,
5813
+ id: smithy_client_1.expectString,
5814
+ name: smithy_client_1.expectString,
5815
+ sseConfig: smithy_client_1._json,
5816
+ });
6720
5817
  };
6721
5818
  const de_ReferenceStoreDetailList = (output, context) => {
6722
5819
  const retVal = (output || [])
6723
5820
  .filter((e) => e != null)
6724
5821
  .map((entry) => {
6725
- if (entry === null) {
6726
- return null;
6727
- }
6728
5822
  return de_ReferenceStoreDetail(entry, context);
6729
5823
  });
6730
5824
  return retVal;
@@ -6733,285 +5827,145 @@ const de_RunGroupList = (output, context) => {
6733
5827
  const retVal = (output || [])
6734
5828
  .filter((e) => e != null)
6735
5829
  .map((entry) => {
6736
- if (entry === null) {
6737
- return null;
6738
- }
6739
5830
  return de_RunGroupListItem(entry, context);
6740
5831
  });
6741
5832
  return retVal;
6742
5833
  };
6743
5834
  const de_RunGroupListItem = (output, context) => {
6744
- return {
6745
- arn: (0, smithy_client_1.expectString)(output.arn),
6746
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6747
- id: (0, smithy_client_1.expectString)(output.id),
6748
- maxCpus: (0, smithy_client_1.expectInt32)(output.maxCpus),
6749
- maxDuration: (0, smithy_client_1.expectInt32)(output.maxDuration),
6750
- maxRuns: (0, smithy_client_1.expectInt32)(output.maxRuns),
6751
- name: (0, smithy_client_1.expectString)(output.name),
6752
- };
5835
+ return (0, smithy_client_1.take)(output, {
5836
+ arn: smithy_client_1.expectString,
5837
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5838
+ id: smithy_client_1.expectString,
5839
+ maxCpus: smithy_client_1.expectInt32,
5840
+ maxDuration: smithy_client_1.expectInt32,
5841
+ maxRuns: smithy_client_1.expectInt32,
5842
+ name: smithy_client_1.expectString,
5843
+ });
6753
5844
  };
6754
5845
  const de_RunList = (output, context) => {
6755
5846
  const retVal = (output || [])
6756
5847
  .filter((e) => e != null)
6757
5848
  .map((entry) => {
6758
- if (entry === null) {
6759
- return null;
6760
- }
6761
5849
  return de_RunListItem(entry, context);
6762
5850
  });
6763
5851
  return retVal;
6764
5852
  };
6765
5853
  const de_RunListItem = (output, context) => {
6766
- return {
6767
- arn: (0, smithy_client_1.expectString)(output.arn),
6768
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6769
- id: (0, smithy_client_1.expectString)(output.id),
6770
- name: (0, smithy_client_1.expectString)(output.name),
6771
- priority: (0, smithy_client_1.expectInt32)(output.priority),
6772
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.startTime)) : undefined,
6773
- status: (0, smithy_client_1.expectString)(output.status),
6774
- stopTime: output.stopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.stopTime)) : undefined,
6775
- storageCapacity: (0, smithy_client_1.expectInt32)(output.storageCapacity),
6776
- workflowId: (0, smithy_client_1.expectString)(output.workflowId),
6777
- };
5854
+ return (0, smithy_client_1.take)(output, {
5855
+ arn: smithy_client_1.expectString,
5856
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5857
+ id: smithy_client_1.expectString,
5858
+ name: smithy_client_1.expectString,
5859
+ priority: smithy_client_1.expectInt32,
5860
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5861
+ status: smithy_client_1.expectString,
5862
+ stopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5863
+ storageCapacity: smithy_client_1.expectInt32,
5864
+ workflowId: smithy_client_1.expectString,
5865
+ });
6778
5866
  };
6779
5867
  const de_RunParameters = (output, context) => {
6780
5868
  return output;
6781
5869
  };
6782
- const de_RunResourceDigests = (output, context) => {
6783
- return Object.entries(output).reduce((acc, [key, value]) => {
6784
- if (value === null) {
6785
- return acc;
6786
- }
6787
- acc[key] = (0, smithy_client_1.expectString)(value);
6788
- return acc;
6789
- }, {});
6790
- };
6791
- const de_Schema = (output, context) => {
6792
- const retVal = (output || [])
6793
- .filter((e) => e != null)
6794
- .map((entry) => {
6795
- if (entry === null) {
6796
- return null;
6797
- }
6798
- return de_SchemaItem(entry, context);
6799
- });
6800
- return retVal;
6801
- };
6802
- const de_SchemaItem = (output, context) => {
6803
- return Object.entries(output).reduce((acc, [key, value]) => {
6804
- if (value === null) {
6805
- return acc;
6806
- }
6807
- acc[key] = (0, smithy_client_1.expectString)(value);
6808
- return acc;
6809
- }, {});
6810
- };
6811
- const de_SequenceInformation = (output, context) => {
6812
- return {
6813
- alignment: (0, smithy_client_1.expectString)(output.alignment),
6814
- generatedFrom: (0, smithy_client_1.expectString)(output.generatedFrom),
6815
- totalBaseCount: (0, smithy_client_1.expectLong)(output.totalBaseCount),
6816
- totalReadCount: (0, smithy_client_1.expectLong)(output.totalReadCount),
6817
- };
6818
- };
6819
5870
  const de_SequenceStoreDetail = (output, context) => {
6820
- return {
6821
- arn: (0, smithy_client_1.expectString)(output.arn),
6822
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6823
- description: (0, smithy_client_1.expectString)(output.description),
6824
- id: (0, smithy_client_1.expectString)(output.id),
6825
- name: (0, smithy_client_1.expectString)(output.name),
6826
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6827
- };
5871
+ return (0, smithy_client_1.take)(output, {
5872
+ arn: smithy_client_1.expectString,
5873
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5874
+ description: smithy_client_1.expectString,
5875
+ id: smithy_client_1.expectString,
5876
+ name: smithy_client_1.expectString,
5877
+ sseConfig: smithy_client_1._json,
5878
+ });
6828
5879
  };
6829
5880
  const de_SequenceStoreDetailList = (output, context) => {
6830
5881
  const retVal = (output || [])
6831
5882
  .filter((e) => e != null)
6832
5883
  .map((entry) => {
6833
- if (entry === null) {
6834
- return null;
6835
- }
6836
5884
  return de_SequenceStoreDetail(entry, context);
6837
5885
  });
6838
5886
  return retVal;
6839
5887
  };
6840
- const de_SourceFiles = (output, context) => {
6841
- return {
6842
- source1: (0, smithy_client_1.expectString)(output.source1),
6843
- source2: (0, smithy_client_1.expectString)(output.source2),
6844
- };
6845
- };
6846
- const de_SseConfig = (output, context) => {
6847
- return {
6848
- keyArn: (0, smithy_client_1.expectString)(output.keyArn),
6849
- type: (0, smithy_client_1.expectString)(output.type),
6850
- };
6851
- };
6852
- const de_StoreOptions = (output, context) => {
6853
- if (output.tsvStoreOptions != null) {
6854
- return {
6855
- tsvStoreOptions: de_TsvStoreOptions(output.tsvStoreOptions, context),
6856
- };
6857
- }
6858
- return { $unknown: Object.entries(output)[0] };
6859
- };
6860
- const de_TagMap = (output, context) => {
6861
- return Object.entries(output).reduce((acc, [key, value]) => {
6862
- if (value === null) {
6863
- return acc;
6864
- }
6865
- acc[key] = (0, smithy_client_1.expectString)(value);
6866
- return acc;
6867
- }, {});
6868
- };
6869
5888
  const de_TaskList = (output, context) => {
6870
5889
  const retVal = (output || [])
6871
5890
  .filter((e) => e != null)
6872
5891
  .map((entry) => {
6873
- if (entry === null) {
6874
- return null;
6875
- }
6876
5892
  return de_TaskListItem(entry, context);
6877
5893
  });
6878
5894
  return retVal;
6879
5895
  };
6880
5896
  const de_TaskListItem = (output, context) => {
6881
- return {
6882
- cpus: (0, smithy_client_1.expectInt32)(output.cpus),
6883
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6884
- memory: (0, smithy_client_1.expectInt32)(output.memory),
6885
- name: (0, smithy_client_1.expectString)(output.name),
6886
- startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.startTime)) : undefined,
6887
- status: (0, smithy_client_1.expectString)(output.status),
6888
- stopTime: output.stopTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.stopTime)) : undefined,
6889
- taskId: (0, smithy_client_1.expectString)(output.taskId),
6890
- };
6891
- };
6892
- const de_TsvOptions = (output, context) => {
6893
- return {
6894
- readOptions: output.readOptions != null ? de_ReadOptions(output.readOptions, context) : undefined,
6895
- };
6896
- };
6897
- const de_TsvStoreOptions = (output, context) => {
6898
- return {
6899
- annotationType: (0, smithy_client_1.expectString)(output.annotationType),
6900
- formatToHeader: output.formatToHeader != null ? de_FormatToHeader(output.formatToHeader, context) : undefined,
6901
- schema: output.schema != null ? de_Schema(output.schema, context) : undefined,
6902
- };
6903
- };
6904
- const de_VariantImportItemDetail = (output, context) => {
6905
- return {
6906
- jobStatus: (0, smithy_client_1.expectString)(output.jobStatus),
6907
- source: (0, smithy_client_1.expectString)(output.source),
6908
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6909
- };
6910
- };
6911
- const de_VariantImportItemDetails = (output, context) => {
6912
- const retVal = (output || [])
6913
- .filter((e) => e != null)
6914
- .map((entry) => {
6915
- if (entry === null) {
6916
- return null;
6917
- }
6918
- return de_VariantImportItemDetail(entry, context);
5897
+ return (0, smithy_client_1.take)(output, {
5898
+ cpus: smithy_client_1.expectInt32,
5899
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5900
+ memory: smithy_client_1.expectInt32,
5901
+ name: smithy_client_1.expectString,
5902
+ startTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5903
+ status: smithy_client_1.expectString,
5904
+ stopTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5905
+ taskId: smithy_client_1.expectString,
6919
5906
  });
6920
- return retVal;
6921
5907
  };
6922
5908
  const de_VariantImportJobItem = (output, context) => {
6923
- return {
6924
- completionTime: output.completionTime != null
6925
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.completionTime))
6926
- : undefined,
6927
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6928
- destinationName: (0, smithy_client_1.expectString)(output.destinationName),
6929
- id: (0, smithy_client_1.expectString)(output.id),
6930
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
6931
- runLeftNormalization: (0, smithy_client_1.expectBoolean)(output.runLeftNormalization),
6932
- status: (0, smithy_client_1.expectString)(output.status),
6933
- updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updateTime)) : undefined,
6934
- };
5909
+ return (0, smithy_client_1.take)(output, {
5910
+ completionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5911
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5912
+ destinationName: smithy_client_1.expectString,
5913
+ id: smithy_client_1.expectString,
5914
+ roleArn: smithy_client_1.expectString,
5915
+ runLeftNormalization: smithy_client_1.expectBoolean,
5916
+ status: smithy_client_1.expectString,
5917
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5918
+ });
6935
5919
  };
6936
5920
  const de_VariantImportJobItems = (output, context) => {
6937
5921
  const retVal = (output || [])
6938
5922
  .filter((e) => e != null)
6939
5923
  .map((entry) => {
6940
- if (entry === null) {
6941
- return null;
6942
- }
6943
5924
  return de_VariantImportJobItem(entry, context);
6944
5925
  });
6945
5926
  return retVal;
6946
5927
  };
6947
5928
  const de_VariantStoreItem = (output, context) => {
6948
- return {
6949
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6950
- description: (0, smithy_client_1.expectString)(output.description),
6951
- id: (0, smithy_client_1.expectString)(output.id),
6952
- name: (0, smithy_client_1.expectString)(output.name),
6953
- reference: output.reference != null ? de_ReferenceItem((0, smithy_client_1.expectUnion)(output.reference), context) : undefined,
6954
- sseConfig: output.sseConfig != null ? de_SseConfig(output.sseConfig, context) : undefined,
6955
- status: (0, smithy_client_1.expectString)(output.status),
6956
- statusMessage: (0, smithy_client_1.expectString)(output.statusMessage),
6957
- storeArn: (0, smithy_client_1.expectString)(output.storeArn),
6958
- storeSizeBytes: (0, smithy_client_1.expectLong)(output.storeSizeBytes),
6959
- updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.updateTime)) : undefined,
6960
- };
5929
+ return (0, smithy_client_1.take)(output, {
5930
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5931
+ description: smithy_client_1.expectString,
5932
+ id: smithy_client_1.expectString,
5933
+ name: smithy_client_1.expectString,
5934
+ reference: (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
5935
+ sseConfig: smithy_client_1._json,
5936
+ status: smithy_client_1.expectString,
5937
+ statusMessage: smithy_client_1.expectString,
5938
+ storeArn: smithy_client_1.expectString,
5939
+ storeSizeBytes: smithy_client_1.expectLong,
5940
+ updateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5941
+ });
6961
5942
  };
6962
5943
  const de_VariantStoreItems = (output, context) => {
6963
5944
  const retVal = (output || [])
6964
5945
  .filter((e) => e != null)
6965
5946
  .map((entry) => {
6966
- if (entry === null) {
6967
- return null;
6968
- }
6969
5947
  return de_VariantStoreItem(entry, context);
6970
5948
  });
6971
5949
  return retVal;
6972
5950
  };
6973
- const de_VcfOptions = (output, context) => {
6974
- return {
6975
- ignoreFilterField: (0, smithy_client_1.expectBoolean)(output.ignoreFilterField),
6976
- ignoreQualField: (0, smithy_client_1.expectBoolean)(output.ignoreQualField),
6977
- };
6978
- };
6979
5951
  const de_WorkflowList = (output, context) => {
6980
5952
  const retVal = (output || [])
6981
5953
  .filter((e) => e != null)
6982
5954
  .map((entry) => {
6983
- if (entry === null) {
6984
- return null;
6985
- }
6986
5955
  return de_WorkflowListItem(entry, context);
6987
5956
  });
6988
5957
  return retVal;
6989
5958
  };
6990
5959
  const de_WorkflowListItem = (output, context) => {
6991
- return {
6992
- arn: (0, smithy_client_1.expectString)(output.arn),
6993
- creationTime: output.creationTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.creationTime)) : undefined,
6994
- digest: (0, smithy_client_1.expectString)(output.digest),
6995
- id: (0, smithy_client_1.expectString)(output.id),
6996
- name: (0, smithy_client_1.expectString)(output.name),
6997
- status: (0, smithy_client_1.expectString)(output.status),
6998
- type: (0, smithy_client_1.expectString)(output.type),
6999
- };
7000
- };
7001
- const de_WorkflowParameter = (output, context) => {
7002
- return {
7003
- description: (0, smithy_client_1.expectString)(output.description),
7004
- optional: (0, smithy_client_1.expectBoolean)(output.optional),
7005
- };
7006
- };
7007
- const de_WorkflowParameterTemplate = (output, context) => {
7008
- return Object.entries(output).reduce((acc, [key, value]) => {
7009
- if (value === null) {
7010
- return acc;
7011
- }
7012
- acc[key] = de_WorkflowParameter(value, context);
7013
- return acc;
7014
- }, {});
5960
+ return (0, smithy_client_1.take)(output, {
5961
+ arn: smithy_client_1.expectString,
5962
+ creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
5963
+ digest: smithy_client_1.expectString,
5964
+ id: smithy_client_1.expectString,
5965
+ name: smithy_client_1.expectString,
5966
+ status: smithy_client_1.expectString,
5967
+ type: smithy_client_1.expectString,
5968
+ });
7015
5969
  };
7016
5970
  const deserializeMetadata = (output) => ({
7017
5971
  httpStatusCode: output.statusCode,