@aws-sdk/client-detective 3.312.0 → 3.315.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,9 +12,9 @@ const se_AcceptInvitationCommand = async (input, context) => {
12
12
  };
13
13
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation";
14
14
  let body;
15
- body = JSON.stringify({
16
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
17
- });
15
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
16
+ GraphArn: [],
17
+ }));
18
18
  return new protocol_http_1.HttpRequest({
19
19
  protocol,
20
20
  hostname,
@@ -33,10 +33,10 @@ const se_BatchGetGraphMemberDatasourcesCommand = async (input, context) => {
33
33
  };
34
34
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/get";
35
35
  let body;
36
- body = JSON.stringify({
37
- ...(input.AccountIds != null && { AccountIds: se_AccountIdExtendedList(input.AccountIds, context) }),
38
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
39
- });
36
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
37
+ AccountIds: (_) => (0, smithy_client_1._json)(_),
38
+ GraphArn: [],
39
+ }));
40
40
  return new protocol_http_1.HttpRequest({
41
41
  protocol,
42
42
  hostname,
@@ -55,9 +55,9 @@ const se_BatchGetMembershipDatasourcesCommand = async (input, context) => {
55
55
  };
56
56
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/datasources/get";
57
57
  let body;
58
- body = JSON.stringify({
59
- ...(input.GraphArns != null && { GraphArns: se_GraphArnList(input.GraphArns, context) }),
60
- });
58
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
59
+ GraphArns: (_) => (0, smithy_client_1._json)(_),
60
+ }));
61
61
  return new protocol_http_1.HttpRequest({
62
62
  protocol,
63
63
  hostname,
@@ -76,9 +76,9 @@ const se_CreateGraphCommand = async (input, context) => {
76
76
  };
77
77
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph";
78
78
  let body;
79
- body = JSON.stringify({
80
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
81
- });
79
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
80
+ Tags: (_) => (0, smithy_client_1._json)(_),
81
+ }));
82
82
  return new protocol_http_1.HttpRequest({
83
83
  protocol,
84
84
  hostname,
@@ -97,12 +97,12 @@ const se_CreateMembersCommand = async (input, context) => {
97
97
  };
98
98
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members";
99
99
  let body;
100
- body = JSON.stringify({
101
- ...(input.Accounts != null && { Accounts: se_AccountList(input.Accounts, context) }),
102
- ...(input.DisableEmailNotification != null && { DisableEmailNotification: input.DisableEmailNotification }),
103
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
104
- ...(input.Message != null && { Message: input.Message }),
105
- });
100
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
101
+ Accounts: (_) => (0, smithy_client_1._json)(_),
102
+ DisableEmailNotification: [],
103
+ GraphArn: [],
104
+ Message: [],
105
+ }));
106
106
  return new protocol_http_1.HttpRequest({
107
107
  protocol,
108
108
  hostname,
@@ -121,9 +121,9 @@ const se_DeleteGraphCommand = async (input, context) => {
121
121
  };
122
122
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/removal";
123
123
  let body;
124
- body = JSON.stringify({
125
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
126
- });
124
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
125
+ GraphArn: [],
126
+ }));
127
127
  return new protocol_http_1.HttpRequest({
128
128
  protocol,
129
129
  hostname,
@@ -142,10 +142,10 @@ const se_DeleteMembersCommand = async (input, context) => {
142
142
  };
143
143
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/removal";
144
144
  let body;
145
- body = JSON.stringify({
146
- ...(input.AccountIds != null && { AccountIds: se_AccountIdList(input.AccountIds, context) }),
147
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
148
- });
145
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
146
+ AccountIds: (_) => (0, smithy_client_1._json)(_),
147
+ GraphArn: [],
148
+ }));
149
149
  return new protocol_http_1.HttpRequest({
150
150
  protocol,
151
151
  hostname,
@@ -164,9 +164,9 @@ const se_DescribeOrganizationConfigurationCommand = async (input, context) => {
164
164
  };
165
165
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/describeOrganizationConfiguration";
166
166
  let body;
167
- body = JSON.stringify({
168
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
169
- });
167
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
168
+ GraphArn: [],
169
+ }));
170
170
  return new protocol_http_1.HttpRequest({
171
171
  protocol,
172
172
  hostname,
@@ -204,9 +204,9 @@ const se_DisassociateMembershipCommand = async (input, context) => {
204
204
  };
205
205
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/membership/removal";
206
206
  let body;
207
- body = JSON.stringify({
208
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
209
- });
207
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
208
+ GraphArn: [],
209
+ }));
210
210
  return new protocol_http_1.HttpRequest({
211
211
  protocol,
212
212
  hostname,
@@ -225,9 +225,9 @@ const se_EnableOrganizationAdminAccountCommand = async (input, context) => {
225
225
  };
226
226
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/enableAdminAccount";
227
227
  let body;
228
- body = JSON.stringify({
229
- ...(input.AccountId != null && { AccountId: input.AccountId }),
230
- });
228
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
229
+ AccountId: [],
230
+ }));
231
231
  return new protocol_http_1.HttpRequest({
232
232
  protocol,
233
233
  hostname,
@@ -246,10 +246,10 @@ const se_GetMembersCommand = async (input, context) => {
246
246
  };
247
247
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/get";
248
248
  let body;
249
- body = JSON.stringify({
250
- ...(input.AccountIds != null && { AccountIds: se_AccountIdList(input.AccountIds, context) }),
251
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
252
- });
249
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
250
+ AccountIds: (_) => (0, smithy_client_1._json)(_),
251
+ GraphArn: [],
252
+ }));
253
253
  return new protocol_http_1.HttpRequest({
254
254
  protocol,
255
255
  hostname,
@@ -268,11 +268,11 @@ const se_ListDatasourcePackagesCommand = async (input, context) => {
268
268
  };
269
269
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/list";
270
270
  let body;
271
- body = JSON.stringify({
272
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
273
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
274
- ...(input.NextToken != null && { NextToken: input.NextToken }),
275
- });
271
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
272
+ GraphArn: [],
273
+ MaxResults: [],
274
+ NextToken: [],
275
+ }));
276
276
  return new protocol_http_1.HttpRequest({
277
277
  protocol,
278
278
  hostname,
@@ -291,10 +291,10 @@ const se_ListGraphsCommand = async (input, context) => {
291
291
  };
292
292
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graphs/list";
293
293
  let body;
294
- body = JSON.stringify({
295
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
296
- ...(input.NextToken != null && { NextToken: input.NextToken }),
297
- });
294
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
295
+ MaxResults: [],
296
+ NextToken: [],
297
+ }));
298
298
  return new protocol_http_1.HttpRequest({
299
299
  protocol,
300
300
  hostname,
@@ -313,10 +313,10 @@ const se_ListInvitationsCommand = async (input, context) => {
313
313
  };
314
314
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitations/list";
315
315
  let body;
316
- body = JSON.stringify({
317
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
318
- ...(input.NextToken != null && { NextToken: input.NextToken }),
319
- });
316
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
317
+ MaxResults: [],
318
+ NextToken: [],
319
+ }));
320
320
  return new protocol_http_1.HttpRequest({
321
321
  protocol,
322
322
  hostname,
@@ -335,11 +335,11 @@ const se_ListMembersCommand = async (input, context) => {
335
335
  };
336
336
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/members/list";
337
337
  let body;
338
- body = JSON.stringify({
339
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
340
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
341
- ...(input.NextToken != null && { NextToken: input.NextToken }),
342
- });
338
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
339
+ GraphArn: [],
340
+ MaxResults: [],
341
+ NextToken: [],
342
+ }));
343
343
  return new protocol_http_1.HttpRequest({
344
344
  protocol,
345
345
  hostname,
@@ -358,10 +358,10 @@ const se_ListOrganizationAdminAccountsCommand = async (input, context) => {
358
358
  };
359
359
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/adminAccountslist";
360
360
  let body;
361
- body = JSON.stringify({
362
- ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
363
- ...(input.NextToken != null && { NextToken: input.NextToken }),
364
- });
361
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
362
+ MaxResults: [],
363
+ NextToken: [],
364
+ }));
365
365
  return new protocol_http_1.HttpRequest({
366
366
  protocol,
367
367
  hostname,
@@ -397,9 +397,9 @@ const se_RejectInvitationCommand = async (input, context) => {
397
397
  };
398
398
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/invitation/removal";
399
399
  let body;
400
- body = JSON.stringify({
401
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
402
- });
400
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
401
+ GraphArn: [],
402
+ }));
403
403
  return new protocol_http_1.HttpRequest({
404
404
  protocol,
405
405
  hostname,
@@ -418,10 +418,10 @@ const se_StartMonitoringMemberCommand = async (input, context) => {
418
418
  };
419
419
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/member/monitoringstate";
420
420
  let body;
421
- body = JSON.stringify({
422
- ...(input.AccountId != null && { AccountId: input.AccountId }),
423
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
424
- });
421
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
422
+ AccountId: [],
423
+ GraphArn: [],
424
+ }));
425
425
  return new protocol_http_1.HttpRequest({
426
426
  protocol,
427
427
  hostname,
@@ -441,9 +441,9 @@ const se_TagResourceCommand = async (input, context) => {
441
441
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
442
442
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
443
443
  let body;
444
- body = JSON.stringify({
445
- ...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
446
- });
444
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
445
+ Tags: (_) => (0, smithy_client_1._json)(_),
446
+ }));
447
447
  return new protocol_http_1.HttpRequest({
448
448
  protocol,
449
449
  hostname,
@@ -460,7 +460,7 @@ const se_UntagResourceCommand = async (input, context) => {
460
460
  const headers = {};
461
461
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
462
462
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
463
- const query = map({
463
+ const query = (0, smithy_client_1.map)({
464
464
  tagKeys: [
465
465
  (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
466
466
  () => (input.TagKeys || []).map((_entry) => _entry),
@@ -486,12 +486,10 @@ const se_UpdateDatasourcePackagesCommand = async (input, context) => {
486
486
  };
487
487
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/graph/datasources/update";
488
488
  let body;
489
- body = JSON.stringify({
490
- ...(input.DatasourcePackages != null && {
491
- DatasourcePackages: se_DatasourcePackageList(input.DatasourcePackages, context),
492
- }),
493
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
494
- });
489
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
490
+ DatasourcePackages: (_) => (0, smithy_client_1._json)(_),
491
+ GraphArn: [],
492
+ }));
495
493
  return new protocol_http_1.HttpRequest({
496
494
  protocol,
497
495
  hostname,
@@ -510,10 +508,10 @@ const se_UpdateOrganizationConfigurationCommand = async (input, context) => {
510
508
  };
511
509
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/orgs/updateOrganizationConfiguration";
512
510
  let body;
513
- body = JSON.stringify({
514
- ...(input.AutoEnable != null && { AutoEnable: input.AutoEnable }),
515
- ...(input.GraphArn != null && { GraphArn: input.GraphArn }),
516
- });
511
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
512
+ AutoEnable: [],
513
+ GraphArn: [],
514
+ }));
517
515
  return new protocol_http_1.HttpRequest({
518
516
  protocol,
519
517
  hostname,
@@ -529,7 +527,7 @@ const de_AcceptInvitationCommand = async (output, context) => {
529
527
  if (output.statusCode !== 200 && output.statusCode >= 300) {
530
528
  return de_AcceptInvitationCommandError(output, context);
531
529
  }
532
- const contents = map({
530
+ const contents = (0, smithy_client_1.map)({
533
531
  $metadata: deserializeMetadata(output),
534
532
  });
535
533
  await collectBody(output.body, context);
@@ -560,10 +558,9 @@ const de_AcceptInvitationCommandError = async (output, context) => {
560
558
  throw await de_ValidationExceptionRes(parsedOutput, context);
561
559
  default:
562
560
  const parsedBody = parsedOutput.body;
563
- (0, smithy_client_1.throwDefaultError)({
561
+ return throwDefaultError({
564
562
  output,
565
563
  parsedBody,
566
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
567
564
  errorCode,
568
565
  });
569
566
  }
@@ -572,16 +569,15 @@ const de_BatchGetGraphMemberDatasourcesCommand = async (output, context) => {
572
569
  if (output.statusCode !== 200 && output.statusCode >= 300) {
573
570
  return de_BatchGetGraphMemberDatasourcesCommandError(output, context);
574
571
  }
575
- const contents = map({
572
+ const contents = (0, smithy_client_1.map)({
576
573
  $metadata: deserializeMetadata(output),
577
574
  });
578
575
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
579
- if (data.MemberDatasources != null) {
580
- contents.MemberDatasources = de_MembershipDatasourcesList(data.MemberDatasources, context);
581
- }
582
- if (data.UnprocessedAccounts != null) {
583
- contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
584
- }
576
+ const doc = (0, smithy_client_1.take)(data, {
577
+ MemberDatasources: (_) => de_MembershipDatasourcesList(_, context),
578
+ UnprocessedAccounts: smithy_client_1._json,
579
+ });
580
+ Object.assign(contents, doc);
585
581
  return contents;
586
582
  };
587
583
  exports.de_BatchGetGraphMemberDatasourcesCommand = de_BatchGetGraphMemberDatasourcesCommand;
@@ -606,10 +602,9 @@ const de_BatchGetGraphMemberDatasourcesCommandError = async (output, context) =>
606
602
  throw await de_ValidationExceptionRes(parsedOutput, context);
607
603
  default:
608
604
  const parsedBody = parsedOutput.body;
609
- (0, smithy_client_1.throwDefaultError)({
605
+ return throwDefaultError({
610
606
  output,
611
607
  parsedBody,
612
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
613
608
  errorCode,
614
609
  });
615
610
  }
@@ -618,16 +613,15 @@ const de_BatchGetMembershipDatasourcesCommand = async (output, context) => {
618
613
  if (output.statusCode !== 200 && output.statusCode >= 300) {
619
614
  return de_BatchGetMembershipDatasourcesCommandError(output, context);
620
615
  }
621
- const contents = map({
616
+ const contents = (0, smithy_client_1.map)({
622
617
  $metadata: deserializeMetadata(output),
623
618
  });
624
619
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
625
- if (data.MembershipDatasources != null) {
626
- contents.MembershipDatasources = de_MembershipDatasourcesList(data.MembershipDatasources, context);
627
- }
628
- if (data.UnprocessedGraphs != null) {
629
- contents.UnprocessedGraphs = de_UnprocessedGraphList(data.UnprocessedGraphs, context);
630
- }
620
+ const doc = (0, smithy_client_1.take)(data, {
621
+ MembershipDatasources: (_) => de_MembershipDatasourcesList(_, context),
622
+ UnprocessedGraphs: smithy_client_1._json,
623
+ });
624
+ Object.assign(contents, doc);
631
625
  return contents;
632
626
  };
633
627
  exports.de_BatchGetMembershipDatasourcesCommand = de_BatchGetMembershipDatasourcesCommand;
@@ -652,10 +646,9 @@ const de_BatchGetMembershipDatasourcesCommandError = async (output, context) =>
652
646
  throw await de_ValidationExceptionRes(parsedOutput, context);
653
647
  default:
654
648
  const parsedBody = parsedOutput.body;
655
- (0, smithy_client_1.throwDefaultError)({
649
+ return throwDefaultError({
656
650
  output,
657
651
  parsedBody,
658
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
659
652
  errorCode,
660
653
  });
661
654
  }
@@ -664,13 +657,14 @@ const de_CreateGraphCommand = async (output, context) => {
664
657
  if (output.statusCode !== 200 && output.statusCode >= 300) {
665
658
  return de_CreateGraphCommandError(output, context);
666
659
  }
667
- const contents = map({
660
+ const contents = (0, smithy_client_1.map)({
668
661
  $metadata: deserializeMetadata(output),
669
662
  });
670
663
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
671
- if (data.GraphArn != null) {
672
- contents.GraphArn = (0, smithy_client_1.expectString)(data.GraphArn);
673
- }
664
+ const doc = (0, smithy_client_1.take)(data, {
665
+ GraphArn: smithy_client_1.expectString,
666
+ });
667
+ Object.assign(contents, doc);
674
668
  return contents;
675
669
  };
676
670
  exports.de_CreateGraphCommand = de_CreateGraphCommand;
@@ -695,10 +689,9 @@ const de_CreateGraphCommandError = async (output, context) => {
695
689
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
696
690
  default:
697
691
  const parsedBody = parsedOutput.body;
698
- (0, smithy_client_1.throwDefaultError)({
692
+ return throwDefaultError({
699
693
  output,
700
694
  parsedBody,
701
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
702
695
  errorCode,
703
696
  });
704
697
  }
@@ -707,16 +700,15 @@ const de_CreateMembersCommand = async (output, context) => {
707
700
  if (output.statusCode !== 200 && output.statusCode >= 300) {
708
701
  return de_CreateMembersCommandError(output, context);
709
702
  }
710
- const contents = map({
703
+ const contents = (0, smithy_client_1.map)({
711
704
  $metadata: deserializeMetadata(output),
712
705
  });
713
706
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
714
- if (data.Members != null) {
715
- contents.Members = de_MemberDetailList(data.Members, context);
716
- }
717
- if (data.UnprocessedAccounts != null) {
718
- contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
719
- }
707
+ const doc = (0, smithy_client_1.take)(data, {
708
+ Members: (_) => de_MemberDetailList(_, context),
709
+ UnprocessedAccounts: smithy_client_1._json,
710
+ });
711
+ Object.assign(contents, doc);
720
712
  return contents;
721
713
  };
722
714
  exports.de_CreateMembersCommand = de_CreateMembersCommand;
@@ -744,10 +736,9 @@ const de_CreateMembersCommandError = async (output, context) => {
744
736
  throw await de_ValidationExceptionRes(parsedOutput, context);
745
737
  default:
746
738
  const parsedBody = parsedOutput.body;
747
- (0, smithy_client_1.throwDefaultError)({
739
+ return throwDefaultError({
748
740
  output,
749
741
  parsedBody,
750
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
751
742
  errorCode,
752
743
  });
753
744
  }
@@ -756,7 +747,7 @@ const de_DeleteGraphCommand = async (output, context) => {
756
747
  if (output.statusCode !== 200 && output.statusCode >= 300) {
757
748
  return de_DeleteGraphCommandError(output, context);
758
749
  }
759
- const contents = map({
750
+ const contents = (0, smithy_client_1.map)({
760
751
  $metadata: deserializeMetadata(output),
761
752
  });
762
753
  await collectBody(output.body, context);
@@ -784,10 +775,9 @@ const de_DeleteGraphCommandError = async (output, context) => {
784
775
  throw await de_ValidationExceptionRes(parsedOutput, context);
785
776
  default:
786
777
  const parsedBody = parsedOutput.body;
787
- (0, smithy_client_1.throwDefaultError)({
778
+ return throwDefaultError({
788
779
  output,
789
780
  parsedBody,
790
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
791
781
  errorCode,
792
782
  });
793
783
  }
@@ -796,16 +786,15 @@ const de_DeleteMembersCommand = async (output, context) => {
796
786
  if (output.statusCode !== 200 && output.statusCode >= 300) {
797
787
  return de_DeleteMembersCommandError(output, context);
798
788
  }
799
- const contents = map({
789
+ const contents = (0, smithy_client_1.map)({
800
790
  $metadata: deserializeMetadata(output),
801
791
  });
802
792
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
803
- if (data.AccountIds != null) {
804
- contents.AccountIds = de_AccountIdList(data.AccountIds, context);
805
- }
806
- if (data.UnprocessedAccounts != null) {
807
- contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
808
- }
793
+ const doc = (0, smithy_client_1.take)(data, {
794
+ AccountIds: smithy_client_1._json,
795
+ UnprocessedAccounts: smithy_client_1._json,
796
+ });
797
+ Object.assign(contents, doc);
809
798
  return contents;
810
799
  };
811
800
  exports.de_DeleteMembersCommand = de_DeleteMembersCommand;
@@ -833,10 +822,9 @@ const de_DeleteMembersCommandError = async (output, context) => {
833
822
  throw await de_ValidationExceptionRes(parsedOutput, context);
834
823
  default:
835
824
  const parsedBody = parsedOutput.body;
836
- (0, smithy_client_1.throwDefaultError)({
825
+ return throwDefaultError({
837
826
  output,
838
827
  parsedBody,
839
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
840
828
  errorCode,
841
829
  });
842
830
  }
@@ -845,13 +833,14 @@ const de_DescribeOrganizationConfigurationCommand = async (output, context) => {
845
833
  if (output.statusCode !== 200 && output.statusCode >= 300) {
846
834
  return de_DescribeOrganizationConfigurationCommandError(output, context);
847
835
  }
848
- const contents = map({
836
+ const contents = (0, smithy_client_1.map)({
849
837
  $metadata: deserializeMetadata(output),
850
838
  });
851
839
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
852
- if (data.AutoEnable != null) {
853
- contents.AutoEnable = (0, smithy_client_1.expectBoolean)(data.AutoEnable);
854
- }
840
+ const doc = (0, smithy_client_1.take)(data, {
841
+ AutoEnable: smithy_client_1.expectBoolean,
842
+ });
843
+ Object.assign(contents, doc);
855
844
  return contents;
856
845
  };
857
846
  exports.de_DescribeOrganizationConfigurationCommand = de_DescribeOrganizationConfigurationCommand;
@@ -876,10 +865,9 @@ const de_DescribeOrganizationConfigurationCommandError = async (output, context)
876
865
  throw await de_ValidationExceptionRes(parsedOutput, context);
877
866
  default:
878
867
  const parsedBody = parsedOutput.body;
879
- (0, smithy_client_1.throwDefaultError)({
868
+ return throwDefaultError({
880
869
  output,
881
870
  parsedBody,
882
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
883
871
  errorCode,
884
872
  });
885
873
  }
@@ -888,7 +876,7 @@ const de_DisableOrganizationAdminAccountCommand = async (output, context) => {
888
876
  if (output.statusCode !== 200 && output.statusCode >= 300) {
889
877
  return de_DisableOrganizationAdminAccountCommandError(output, context);
890
878
  }
891
- const contents = map({
879
+ const contents = (0, smithy_client_1.map)({
892
880
  $metadata: deserializeMetadata(output),
893
881
  });
894
882
  await collectBody(output.body, context);
@@ -916,10 +904,9 @@ const de_DisableOrganizationAdminAccountCommandError = async (output, context) =
916
904
  throw await de_ValidationExceptionRes(parsedOutput, context);
917
905
  default:
918
906
  const parsedBody = parsedOutput.body;
919
- (0, smithy_client_1.throwDefaultError)({
907
+ return throwDefaultError({
920
908
  output,
921
909
  parsedBody,
922
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
923
910
  errorCode,
924
911
  });
925
912
  }
@@ -928,7 +915,7 @@ const de_DisassociateMembershipCommand = async (output, context) => {
928
915
  if (output.statusCode !== 200 && output.statusCode >= 300) {
929
916
  return de_DisassociateMembershipCommandError(output, context);
930
917
  }
931
- const contents = map({
918
+ const contents = (0, smithy_client_1.map)({
932
919
  $metadata: deserializeMetadata(output),
933
920
  });
934
921
  await collectBody(output.body, context);
@@ -959,10 +946,9 @@ const de_DisassociateMembershipCommandError = async (output, context) => {
959
946
  throw await de_ValidationExceptionRes(parsedOutput, context);
960
947
  default:
961
948
  const parsedBody = parsedOutput.body;
962
- (0, smithy_client_1.throwDefaultError)({
949
+ return throwDefaultError({
963
950
  output,
964
951
  parsedBody,
965
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
966
952
  errorCode,
967
953
  });
968
954
  }
@@ -971,7 +957,7 @@ const de_EnableOrganizationAdminAccountCommand = async (output, context) => {
971
957
  if (output.statusCode !== 200 && output.statusCode >= 300) {
972
958
  return de_EnableOrganizationAdminAccountCommandError(output, context);
973
959
  }
974
- const contents = map({
960
+ const contents = (0, smithy_client_1.map)({
975
961
  $metadata: deserializeMetadata(output),
976
962
  });
977
963
  await collectBody(output.body, context);
@@ -999,10 +985,9 @@ const de_EnableOrganizationAdminAccountCommandError = async (output, context) =>
999
985
  throw await de_ValidationExceptionRes(parsedOutput, context);
1000
986
  default:
1001
987
  const parsedBody = parsedOutput.body;
1002
- (0, smithy_client_1.throwDefaultError)({
988
+ return throwDefaultError({
1003
989
  output,
1004
990
  parsedBody,
1005
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1006
991
  errorCode,
1007
992
  });
1008
993
  }
@@ -1011,16 +996,15 @@ const de_GetMembersCommand = async (output, context) => {
1011
996
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1012
997
  return de_GetMembersCommandError(output, context);
1013
998
  }
1014
- const contents = map({
999
+ const contents = (0, smithy_client_1.map)({
1015
1000
  $metadata: deserializeMetadata(output),
1016
1001
  });
1017
1002
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1018
- if (data.MemberDetails != null) {
1019
- contents.MemberDetails = de_MemberDetailList(data.MemberDetails, context);
1020
- }
1021
- if (data.UnprocessedAccounts != null) {
1022
- contents.UnprocessedAccounts = de_UnprocessedAccountList(data.UnprocessedAccounts, context);
1023
- }
1003
+ const doc = (0, smithy_client_1.take)(data, {
1004
+ MemberDetails: (_) => de_MemberDetailList(_, context),
1005
+ UnprocessedAccounts: smithy_client_1._json,
1006
+ });
1007
+ Object.assign(contents, doc);
1024
1008
  return contents;
1025
1009
  };
1026
1010
  exports.de_GetMembersCommand = de_GetMembersCommand;
@@ -1045,10 +1029,9 @@ const de_GetMembersCommandError = async (output, context) => {
1045
1029
  throw await de_ValidationExceptionRes(parsedOutput, context);
1046
1030
  default:
1047
1031
  const parsedBody = parsedOutput.body;
1048
- (0, smithy_client_1.throwDefaultError)({
1032
+ return throwDefaultError({
1049
1033
  output,
1050
1034
  parsedBody,
1051
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1052
1035
  errorCode,
1053
1036
  });
1054
1037
  }
@@ -1057,16 +1040,15 @@ const de_ListDatasourcePackagesCommand = async (output, context) => {
1057
1040
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1058
1041
  return de_ListDatasourcePackagesCommandError(output, context);
1059
1042
  }
1060
- const contents = map({
1043
+ const contents = (0, smithy_client_1.map)({
1061
1044
  $metadata: deserializeMetadata(output),
1062
1045
  });
1063
1046
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1064
- if (data.DatasourcePackages != null) {
1065
- contents.DatasourcePackages = de_DatasourcePackageIngestDetails(data.DatasourcePackages, context);
1066
- }
1067
- if (data.NextToken != null) {
1068
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1069
- }
1047
+ const doc = (0, smithy_client_1.take)(data, {
1048
+ DatasourcePackages: (_) => de_DatasourcePackageIngestDetails(_, context),
1049
+ NextToken: smithy_client_1.expectString,
1050
+ });
1051
+ Object.assign(contents, doc);
1070
1052
  return contents;
1071
1053
  };
1072
1054
  exports.de_ListDatasourcePackagesCommand = de_ListDatasourcePackagesCommand;
@@ -1091,10 +1073,9 @@ const de_ListDatasourcePackagesCommandError = async (output, context) => {
1091
1073
  throw await de_ValidationExceptionRes(parsedOutput, context);
1092
1074
  default:
1093
1075
  const parsedBody = parsedOutput.body;
1094
- (0, smithy_client_1.throwDefaultError)({
1076
+ return throwDefaultError({
1095
1077
  output,
1096
1078
  parsedBody,
1097
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1098
1079
  errorCode,
1099
1080
  });
1100
1081
  }
@@ -1103,16 +1084,15 @@ const de_ListGraphsCommand = async (output, context) => {
1103
1084
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1104
1085
  return de_ListGraphsCommandError(output, context);
1105
1086
  }
1106
- const contents = map({
1087
+ const contents = (0, smithy_client_1.map)({
1107
1088
  $metadata: deserializeMetadata(output),
1108
1089
  });
1109
1090
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1110
- if (data.GraphList != null) {
1111
- contents.GraphList = de_GraphList(data.GraphList, context);
1112
- }
1113
- if (data.NextToken != null) {
1114
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1115
- }
1091
+ const doc = (0, smithy_client_1.take)(data, {
1092
+ GraphList: (_) => de_GraphList(_, context),
1093
+ NextToken: smithy_client_1.expectString,
1094
+ });
1095
+ Object.assign(contents, doc);
1116
1096
  return contents;
1117
1097
  };
1118
1098
  exports.de_ListGraphsCommand = de_ListGraphsCommand;
@@ -1134,10 +1114,9 @@ const de_ListGraphsCommandError = async (output, context) => {
1134
1114
  throw await de_ValidationExceptionRes(parsedOutput, context);
1135
1115
  default:
1136
1116
  const parsedBody = parsedOutput.body;
1137
- (0, smithy_client_1.throwDefaultError)({
1117
+ return throwDefaultError({
1138
1118
  output,
1139
1119
  parsedBody,
1140
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1141
1120
  errorCode,
1142
1121
  });
1143
1122
  }
@@ -1146,16 +1125,15 @@ const de_ListInvitationsCommand = async (output, context) => {
1146
1125
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1147
1126
  return de_ListInvitationsCommandError(output, context);
1148
1127
  }
1149
- const contents = map({
1128
+ const contents = (0, smithy_client_1.map)({
1150
1129
  $metadata: deserializeMetadata(output),
1151
1130
  });
1152
1131
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1153
- if (data.Invitations != null) {
1154
- contents.Invitations = de_MemberDetailList(data.Invitations, context);
1155
- }
1156
- if (data.NextToken != null) {
1157
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1158
- }
1132
+ const doc = (0, smithy_client_1.take)(data, {
1133
+ Invitations: (_) => de_MemberDetailList(_, context),
1134
+ NextToken: smithy_client_1.expectString,
1135
+ });
1136
+ Object.assign(contents, doc);
1159
1137
  return contents;
1160
1138
  };
1161
1139
  exports.de_ListInvitationsCommand = de_ListInvitationsCommand;
@@ -1177,10 +1155,9 @@ const de_ListInvitationsCommandError = async (output, context) => {
1177
1155
  throw await de_ValidationExceptionRes(parsedOutput, context);
1178
1156
  default:
1179
1157
  const parsedBody = parsedOutput.body;
1180
- (0, smithy_client_1.throwDefaultError)({
1158
+ return throwDefaultError({
1181
1159
  output,
1182
1160
  parsedBody,
1183
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1184
1161
  errorCode,
1185
1162
  });
1186
1163
  }
@@ -1189,16 +1166,15 @@ const de_ListMembersCommand = async (output, context) => {
1189
1166
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1190
1167
  return de_ListMembersCommandError(output, context);
1191
1168
  }
1192
- const contents = map({
1169
+ const contents = (0, smithy_client_1.map)({
1193
1170
  $metadata: deserializeMetadata(output),
1194
1171
  });
1195
1172
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1196
- if (data.MemberDetails != null) {
1197
- contents.MemberDetails = de_MemberDetailList(data.MemberDetails, context);
1198
- }
1199
- if (data.NextToken != null) {
1200
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1201
- }
1173
+ const doc = (0, smithy_client_1.take)(data, {
1174
+ MemberDetails: (_) => de_MemberDetailList(_, context),
1175
+ NextToken: smithy_client_1.expectString,
1176
+ });
1177
+ Object.assign(contents, doc);
1202
1178
  return contents;
1203
1179
  };
1204
1180
  exports.de_ListMembersCommand = de_ListMembersCommand;
@@ -1223,10 +1199,9 @@ const de_ListMembersCommandError = async (output, context) => {
1223
1199
  throw await de_ValidationExceptionRes(parsedOutput, context);
1224
1200
  default:
1225
1201
  const parsedBody = parsedOutput.body;
1226
- (0, smithy_client_1.throwDefaultError)({
1202
+ return throwDefaultError({
1227
1203
  output,
1228
1204
  parsedBody,
1229
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1230
1205
  errorCode,
1231
1206
  });
1232
1207
  }
@@ -1235,16 +1210,15 @@ const de_ListOrganizationAdminAccountsCommand = async (output, context) => {
1235
1210
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1236
1211
  return de_ListOrganizationAdminAccountsCommandError(output, context);
1237
1212
  }
1238
- const contents = map({
1213
+ const contents = (0, smithy_client_1.map)({
1239
1214
  $metadata: deserializeMetadata(output),
1240
1215
  });
1241
1216
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1242
- if (data.Administrators != null) {
1243
- contents.Administrators = de_AdministratorList(data.Administrators, context);
1244
- }
1245
- if (data.NextToken != null) {
1246
- contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
1247
- }
1217
+ const doc = (0, smithy_client_1.take)(data, {
1218
+ Administrators: (_) => de_AdministratorList(_, context),
1219
+ NextToken: smithy_client_1.expectString,
1220
+ });
1221
+ Object.assign(contents, doc);
1248
1222
  return contents;
1249
1223
  };
1250
1224
  exports.de_ListOrganizationAdminAccountsCommand = de_ListOrganizationAdminAccountsCommand;
@@ -1269,10 +1243,9 @@ const de_ListOrganizationAdminAccountsCommandError = async (output, context) =>
1269
1243
  throw await de_ValidationExceptionRes(parsedOutput, context);
1270
1244
  default:
1271
1245
  const parsedBody = parsedOutput.body;
1272
- (0, smithy_client_1.throwDefaultError)({
1246
+ return throwDefaultError({
1273
1247
  output,
1274
1248
  parsedBody,
1275
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1276
1249
  errorCode,
1277
1250
  });
1278
1251
  }
@@ -1281,13 +1254,14 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1281
1254
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1282
1255
  return de_ListTagsForResourceCommandError(output, context);
1283
1256
  }
1284
- const contents = map({
1257
+ const contents = (0, smithy_client_1.map)({
1285
1258
  $metadata: deserializeMetadata(output),
1286
1259
  });
1287
1260
  const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
1288
- if (data.Tags != null) {
1289
- contents.Tags = de_TagMap(data.Tags, context);
1290
- }
1261
+ const doc = (0, smithy_client_1.take)(data, {
1262
+ Tags: smithy_client_1._json,
1263
+ });
1264
+ Object.assign(contents, doc);
1291
1265
  return contents;
1292
1266
  };
1293
1267
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
@@ -1312,10 +1286,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1312
1286
  throw await de_ValidationExceptionRes(parsedOutput, context);
1313
1287
  default:
1314
1288
  const parsedBody = parsedOutput.body;
1315
- (0, smithy_client_1.throwDefaultError)({
1289
+ return throwDefaultError({
1316
1290
  output,
1317
1291
  parsedBody,
1318
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1319
1292
  errorCode,
1320
1293
  });
1321
1294
  }
@@ -1324,7 +1297,7 @@ const de_RejectInvitationCommand = async (output, context) => {
1324
1297
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1325
1298
  return de_RejectInvitationCommandError(output, context);
1326
1299
  }
1327
- const contents = map({
1300
+ const contents = (0, smithy_client_1.map)({
1328
1301
  $metadata: deserializeMetadata(output),
1329
1302
  });
1330
1303
  await collectBody(output.body, context);
@@ -1355,10 +1328,9 @@ const de_RejectInvitationCommandError = async (output, context) => {
1355
1328
  throw await de_ValidationExceptionRes(parsedOutput, context);
1356
1329
  default:
1357
1330
  const parsedBody = parsedOutput.body;
1358
- (0, smithy_client_1.throwDefaultError)({
1331
+ return throwDefaultError({
1359
1332
  output,
1360
1333
  parsedBody,
1361
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1362
1334
  errorCode,
1363
1335
  });
1364
1336
  }
@@ -1367,7 +1339,7 @@ const de_StartMonitoringMemberCommand = async (output, context) => {
1367
1339
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1368
1340
  return de_StartMonitoringMemberCommandError(output, context);
1369
1341
  }
1370
- const contents = map({
1342
+ const contents = (0, smithy_client_1.map)({
1371
1343
  $metadata: deserializeMetadata(output),
1372
1344
  });
1373
1345
  await collectBody(output.body, context);
@@ -1401,10 +1373,9 @@ const de_StartMonitoringMemberCommandError = async (output, context) => {
1401
1373
  throw await de_ValidationExceptionRes(parsedOutput, context);
1402
1374
  default:
1403
1375
  const parsedBody = parsedOutput.body;
1404
- (0, smithy_client_1.throwDefaultError)({
1376
+ return throwDefaultError({
1405
1377
  output,
1406
1378
  parsedBody,
1407
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1408
1379
  errorCode,
1409
1380
  });
1410
1381
  }
@@ -1413,7 +1384,7 @@ const de_TagResourceCommand = async (output, context) => {
1413
1384
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1414
1385
  return de_TagResourceCommandError(output, context);
1415
1386
  }
1416
- const contents = map({
1387
+ const contents = (0, smithy_client_1.map)({
1417
1388
  $metadata: deserializeMetadata(output),
1418
1389
  });
1419
1390
  await collectBody(output.body, context);
@@ -1441,10 +1412,9 @@ const de_TagResourceCommandError = async (output, context) => {
1441
1412
  throw await de_ValidationExceptionRes(parsedOutput, context);
1442
1413
  default:
1443
1414
  const parsedBody = parsedOutput.body;
1444
- (0, smithy_client_1.throwDefaultError)({
1415
+ return throwDefaultError({
1445
1416
  output,
1446
1417
  parsedBody,
1447
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1448
1418
  errorCode,
1449
1419
  });
1450
1420
  }
@@ -1453,7 +1423,7 @@ const de_UntagResourceCommand = async (output, context) => {
1453
1423
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1454
1424
  return de_UntagResourceCommandError(output, context);
1455
1425
  }
1456
- const contents = map({
1426
+ const contents = (0, smithy_client_1.map)({
1457
1427
  $metadata: deserializeMetadata(output),
1458
1428
  });
1459
1429
  await collectBody(output.body, context);
@@ -1481,10 +1451,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1481
1451
  throw await de_ValidationExceptionRes(parsedOutput, context);
1482
1452
  default:
1483
1453
  const parsedBody = parsedOutput.body;
1484
- (0, smithy_client_1.throwDefaultError)({
1454
+ return throwDefaultError({
1485
1455
  output,
1486
1456
  parsedBody,
1487
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1488
1457
  errorCode,
1489
1458
  });
1490
1459
  }
@@ -1493,7 +1462,7 @@ const de_UpdateDatasourcePackagesCommand = async (output, context) => {
1493
1462
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1494
1463
  return de_UpdateDatasourcePackagesCommandError(output, context);
1495
1464
  }
1496
- const contents = map({
1465
+ const contents = (0, smithy_client_1.map)({
1497
1466
  $metadata: deserializeMetadata(output),
1498
1467
  });
1499
1468
  await collectBody(output.body, context);
@@ -1524,10 +1493,9 @@ const de_UpdateDatasourcePackagesCommandError = async (output, context) => {
1524
1493
  throw await de_ValidationExceptionRes(parsedOutput, context);
1525
1494
  default:
1526
1495
  const parsedBody = parsedOutput.body;
1527
- (0, smithy_client_1.throwDefaultError)({
1496
+ return throwDefaultError({
1528
1497
  output,
1529
1498
  parsedBody,
1530
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1531
1499
  errorCode,
1532
1500
  });
1533
1501
  }
@@ -1536,7 +1504,7 @@ const de_UpdateOrganizationConfigurationCommand = async (output, context) => {
1536
1504
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1537
1505
  return de_UpdateOrganizationConfigurationCommandError(output, context);
1538
1506
  }
1539
- const contents = map({
1507
+ const contents = (0, smithy_client_1.map)({
1540
1508
  $metadata: deserializeMetadata(output),
1541
1509
  });
1542
1510
  await collectBody(output.body, context);
@@ -1564,33 +1532,25 @@ const de_UpdateOrganizationConfigurationCommandError = async (output, context) =
1564
1532
  throw await de_ValidationExceptionRes(parsedOutput, context);
1565
1533
  default:
1566
1534
  const parsedBody = parsedOutput.body;
1567
- (0, smithy_client_1.throwDefaultError)({
1535
+ return throwDefaultError({
1568
1536
  output,
1569
1537
  parsedBody,
1570
- exceptionCtor: DetectiveServiceException_1.DetectiveServiceException,
1571
1538
  errorCode,
1572
1539
  });
1573
1540
  }
1574
1541
  };
1575
- const map = smithy_client_1.map;
1542
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(DetectiveServiceException_1.DetectiveServiceException);
1576
1543
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1577
- const contents = map({});
1544
+ const contents = (0, smithy_client_1.map)({});
1578
1545
  const data = parsedOutput.body;
1579
- if (data.ErrorCode != null) {
1580
- contents.ErrorCode = (0, smithy_client_1.expectString)(data.ErrorCode);
1581
- }
1582
- if (data.ErrorCodeReason != null) {
1583
- contents.ErrorCodeReason = (0, smithy_client_1.expectString)(data.ErrorCodeReason);
1584
- }
1585
- if (data.Message != null) {
1586
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1587
- }
1588
- if (data.SubErrorCode != null) {
1589
- contents.SubErrorCode = (0, smithy_client_1.expectString)(data.SubErrorCode);
1590
- }
1591
- if (data.SubErrorCodeReason != null) {
1592
- contents.SubErrorCodeReason = (0, smithy_client_1.expectString)(data.SubErrorCodeReason);
1593
- }
1546
+ const doc = (0, smithy_client_1.take)(data, {
1547
+ ErrorCode: smithy_client_1.expectString,
1548
+ ErrorCodeReason: smithy_client_1.expectString,
1549
+ Message: smithy_client_1.expectString,
1550
+ SubErrorCode: smithy_client_1.expectString,
1551
+ SubErrorCodeReason: smithy_client_1.expectString,
1552
+ });
1553
+ Object.assign(contents, doc);
1594
1554
  const exception = new models_0_1.AccessDeniedException({
1595
1555
  $metadata: deserializeMetadata(parsedOutput),
1596
1556
  ...contents,
@@ -1598,11 +1558,12 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1598
1558
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1599
1559
  };
1600
1560
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1601
- const contents = map({});
1561
+ const contents = (0, smithy_client_1.map)({});
1602
1562
  const data = parsedOutput.body;
1603
- if (data.Message != null) {
1604
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1605
- }
1563
+ const doc = (0, smithy_client_1.take)(data, {
1564
+ Message: smithy_client_1.expectString,
1565
+ });
1566
+ Object.assign(contents, doc);
1606
1567
  const exception = new models_0_1.ConflictException({
1607
1568
  $metadata: deserializeMetadata(parsedOutput),
1608
1569
  ...contents,
@@ -1610,11 +1571,12 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1610
1571
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1611
1572
  };
1612
1573
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1613
- const contents = map({});
1574
+ const contents = (0, smithy_client_1.map)({});
1614
1575
  const data = parsedOutput.body;
1615
- if (data.Message != null) {
1616
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1617
- }
1576
+ const doc = (0, smithy_client_1.take)(data, {
1577
+ Message: smithy_client_1.expectString,
1578
+ });
1579
+ Object.assign(contents, doc);
1618
1580
  const exception = new models_0_1.InternalServerException({
1619
1581
  $metadata: deserializeMetadata(parsedOutput),
1620
1582
  ...contents,
@@ -1622,11 +1584,12 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1622
1584
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1623
1585
  };
1624
1586
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1625
- const contents = map({});
1587
+ const contents = (0, smithy_client_1.map)({});
1626
1588
  const data = parsedOutput.body;
1627
- if (data.Message != null) {
1628
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1629
- }
1589
+ const doc = (0, smithy_client_1.take)(data, {
1590
+ Message: smithy_client_1.expectString,
1591
+ });
1592
+ Object.assign(contents, doc);
1630
1593
  const exception = new models_0_1.ResourceNotFoundException({
1631
1594
  $metadata: deserializeMetadata(parsedOutput),
1632
1595
  ...contents,
@@ -1634,14 +1597,13 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1634
1597
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1635
1598
  };
1636
1599
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1637
- const contents = map({});
1600
+ const contents = (0, smithy_client_1.map)({});
1638
1601
  const data = parsedOutput.body;
1639
- if (data.Message != null) {
1640
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1641
- }
1642
- if (data.Resources != null) {
1643
- contents.Resources = de_ResourceList(data.Resources, context);
1644
- }
1602
+ const doc = (0, smithy_client_1.take)(data, {
1603
+ Message: smithy_client_1.expectString,
1604
+ Resources: smithy_client_1._json,
1605
+ });
1606
+ Object.assign(contents, doc);
1645
1607
  const exception = new models_0_1.ServiceQuotaExceededException({
1646
1608
  $metadata: deserializeMetadata(parsedOutput),
1647
1609
  ...contents,
@@ -1649,11 +1611,12 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1649
1611
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1650
1612
  };
1651
1613
  const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1652
- const contents = map({});
1614
+ const contents = (0, smithy_client_1.map)({});
1653
1615
  const data = parsedOutput.body;
1654
- if (data.Message != null) {
1655
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1656
- }
1616
+ const doc = (0, smithy_client_1.take)(data, {
1617
+ Message: smithy_client_1.expectString,
1618
+ });
1619
+ Object.assign(contents, doc);
1657
1620
  const exception = new models_0_1.TooManyRequestsException({
1658
1621
  $metadata: deserializeMetadata(parsedOutput),
1659
1622
  ...contents,
@@ -1661,111 +1624,40 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
1661
1624
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1662
1625
  };
1663
1626
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1664
- const contents = map({});
1627
+ const contents = (0, smithy_client_1.map)({});
1665
1628
  const data = parsedOutput.body;
1666
- if (data.ErrorCode != null) {
1667
- contents.ErrorCode = (0, smithy_client_1.expectString)(data.ErrorCode);
1668
- }
1669
- if (data.ErrorCodeReason != null) {
1670
- contents.ErrorCodeReason = (0, smithy_client_1.expectString)(data.ErrorCodeReason);
1671
- }
1672
- if (data.Message != null) {
1673
- contents.Message = (0, smithy_client_1.expectString)(data.Message);
1674
- }
1629
+ const doc = (0, smithy_client_1.take)(data, {
1630
+ ErrorCode: smithy_client_1.expectString,
1631
+ ErrorCodeReason: smithy_client_1.expectString,
1632
+ Message: smithy_client_1.expectString,
1633
+ });
1634
+ Object.assign(contents, doc);
1675
1635
  const exception = new models_0_1.ValidationException({
1676
1636
  $metadata: deserializeMetadata(parsedOutput),
1677
1637
  ...contents,
1678
1638
  });
1679
1639
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
1680
1640
  };
1681
- const se_Account = (input, context) => {
1682
- return {
1683
- ...(input.AccountId != null && { AccountId: input.AccountId }),
1684
- ...(input.EmailAddress != null && { EmailAddress: input.EmailAddress }),
1685
- };
1686
- };
1687
- const se_AccountIdExtendedList = (input, context) => {
1688
- return input
1689
- .filter((e) => e != null)
1690
- .map((entry) => {
1691
- return entry;
1692
- });
1693
- };
1694
- const se_AccountIdList = (input, context) => {
1695
- return input
1696
- .filter((e) => e != null)
1697
- .map((entry) => {
1698
- return entry;
1699
- });
1700
- };
1701
- const se_AccountList = (input, context) => {
1702
- return input
1703
- .filter((e) => e != null)
1704
- .map((entry) => {
1705
- return se_Account(entry, context);
1706
- });
1707
- };
1708
- const se_DatasourcePackageList = (input, context) => {
1709
- return input
1710
- .filter((e) => e != null)
1711
- .map((entry) => {
1712
- return entry;
1713
- });
1714
- };
1715
- const se_GraphArnList = (input, context) => {
1716
- return input
1717
- .filter((e) => e != null)
1718
- .map((entry) => {
1719
- return entry;
1720
- });
1721
- };
1722
- const se_TagMap = (input, context) => {
1723
- return Object.entries(input).reduce((acc, [key, value]) => {
1724
- if (value === null) {
1725
- return acc;
1726
- }
1727
- acc[key] = value;
1728
- return acc;
1729
- }, {});
1730
- };
1731
- const de_AccountIdList = (output, context) => {
1732
- const retVal = (output || [])
1733
- .filter((e) => e != null)
1734
- .map((entry) => {
1735
- if (entry === null) {
1736
- return null;
1737
- }
1738
- return (0, smithy_client_1.expectString)(entry);
1739
- });
1740
- return retVal;
1741
- };
1742
1641
  const de_Administrator = (output, context) => {
1743
- return {
1744
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
1745
- DelegationTime: output.DelegationTime != null
1746
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.DelegationTime))
1747
- : undefined,
1748
- GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
1749
- };
1642
+ return (0, smithy_client_1.take)(output, {
1643
+ AccountId: smithy_client_1.expectString,
1644
+ DelegationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1645
+ GraphArn: smithy_client_1.expectString,
1646
+ });
1750
1647
  };
1751
1648
  const de_AdministratorList = (output, context) => {
1752
1649
  const retVal = (output || [])
1753
1650
  .filter((e) => e != null)
1754
1651
  .map((entry) => {
1755
- if (entry === null) {
1756
- return null;
1757
- }
1758
1652
  return de_Administrator(entry, context);
1759
1653
  });
1760
1654
  return retVal;
1761
1655
  };
1762
1656
  const de_DatasourcePackageIngestDetail = (output, context) => {
1763
- return {
1764
- DatasourcePackageIngestState: (0, smithy_client_1.expectString)(output.DatasourcePackageIngestState),
1765
- LastIngestStateChange: output.LastIngestStateChange != null
1766
- ? de_LastIngestStateChangeDates(output.LastIngestStateChange, context)
1767
- : undefined,
1768
- };
1657
+ return (0, smithy_client_1.take)(output, {
1658
+ DatasourcePackageIngestState: smithy_client_1.expectString,
1659
+ LastIngestStateChange: (_) => de_LastIngestStateChangeDates(_, context),
1660
+ });
1769
1661
  };
1770
1662
  const de_DatasourcePackageIngestDetails = (output, context) => {
1771
1663
  return Object.entries(output).reduce((acc, [key, value]) => {
@@ -1785,36 +1677,22 @@ const de_DatasourcePackageIngestHistory = (output, context) => {
1785
1677
  return acc;
1786
1678
  }, {});
1787
1679
  };
1788
- const de_DatasourcePackageIngestStates = (output, context) => {
1789
- return Object.entries(output).reduce((acc, [key, value]) => {
1790
- if (value === null) {
1791
- return acc;
1792
- }
1793
- acc[key] = (0, smithy_client_1.expectString)(value);
1794
- return acc;
1795
- }, {});
1796
- };
1797
1680
  const de_DatasourcePackageUsageInfo = (output, context) => {
1798
- return {
1799
- VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
1800
- VolumeUsageUpdateTime: output.VolumeUsageUpdateTime != null
1801
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.VolumeUsageUpdateTime))
1802
- : undefined,
1803
- };
1681
+ return (0, smithy_client_1.take)(output, {
1682
+ VolumeUsageInBytes: smithy_client_1.expectLong,
1683
+ VolumeUsageUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1684
+ });
1804
1685
  };
1805
1686
  const de_Graph = (output, context) => {
1806
- return {
1807
- Arn: (0, smithy_client_1.expectString)(output.Arn),
1808
- CreatedTime: output.CreatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.CreatedTime)) : undefined,
1809
- };
1687
+ return (0, smithy_client_1.take)(output, {
1688
+ Arn: smithy_client_1.expectString,
1689
+ CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1690
+ });
1810
1691
  };
1811
1692
  const de_GraphList = (output, context) => {
1812
1693
  const retVal = (output || [])
1813
1694
  .filter((e) => e != null)
1814
1695
  .map((entry) => {
1815
- if (entry === null) {
1816
- return null;
1817
- }
1818
1696
  return de_Graph(entry, context);
1819
1697
  });
1820
1698
  return retVal;
@@ -1829,122 +1707,52 @@ const de_LastIngestStateChangeDates = (output, context) => {
1829
1707
  }, {});
1830
1708
  };
1831
1709
  const de_MemberDetail = (output, context) => {
1832
- return {
1833
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
1834
- AdministratorId: (0, smithy_client_1.expectString)(output.AdministratorId),
1835
- DatasourcePackageIngestStates: output.DatasourcePackageIngestStates != null
1836
- ? de_DatasourcePackageIngestStates(output.DatasourcePackageIngestStates, context)
1837
- : undefined,
1838
- DisabledReason: (0, smithy_client_1.expectString)(output.DisabledReason),
1839
- EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
1840
- GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
1841
- InvitationType: (0, smithy_client_1.expectString)(output.InvitationType),
1842
- InvitedTime: output.InvitedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.InvitedTime)) : undefined,
1843
- MasterId: (0, smithy_client_1.expectString)(output.MasterId),
1844
- PercentOfGraphUtilization: (0, smithy_client_1.limitedParseDouble)(output.PercentOfGraphUtilization),
1845
- PercentOfGraphUtilizationUpdatedTime: output.PercentOfGraphUtilizationUpdatedTime != null
1846
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.PercentOfGraphUtilizationUpdatedTime))
1847
- : undefined,
1848
- Status: (0, smithy_client_1.expectString)(output.Status),
1849
- UpdatedTime: output.UpdatedTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.UpdatedTime)) : undefined,
1850
- VolumeUsageByDatasourcePackage: output.VolumeUsageByDatasourcePackage != null
1851
- ? de_VolumeUsageByDatasourcePackage(output.VolumeUsageByDatasourcePackage, context)
1852
- : undefined,
1853
- VolumeUsageInBytes: (0, smithy_client_1.expectLong)(output.VolumeUsageInBytes),
1854
- VolumeUsageUpdatedTime: output.VolumeUsageUpdatedTime != null
1855
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.VolumeUsageUpdatedTime))
1856
- : undefined,
1857
- };
1710
+ return (0, smithy_client_1.take)(output, {
1711
+ AccountId: smithy_client_1.expectString,
1712
+ AdministratorId: smithy_client_1.expectString,
1713
+ DatasourcePackageIngestStates: smithy_client_1._json,
1714
+ DisabledReason: smithy_client_1.expectString,
1715
+ EmailAddress: smithy_client_1.expectString,
1716
+ GraphArn: smithy_client_1.expectString,
1717
+ InvitationType: smithy_client_1.expectString,
1718
+ InvitedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1719
+ MasterId: smithy_client_1.expectString,
1720
+ PercentOfGraphUtilization: smithy_client_1.limitedParseDouble,
1721
+ PercentOfGraphUtilizationUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1722
+ Status: smithy_client_1.expectString,
1723
+ UpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1724
+ VolumeUsageByDatasourcePackage: (_) => de_VolumeUsageByDatasourcePackage(_, context),
1725
+ VolumeUsageInBytes: smithy_client_1.expectLong,
1726
+ VolumeUsageUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1727
+ });
1858
1728
  };
1859
1729
  const de_MemberDetailList = (output, context) => {
1860
1730
  const retVal = (output || [])
1861
1731
  .filter((e) => e != null)
1862
1732
  .map((entry) => {
1863
- if (entry === null) {
1864
- return null;
1865
- }
1866
1733
  return de_MemberDetail(entry, context);
1867
1734
  });
1868
1735
  return retVal;
1869
1736
  };
1870
1737
  const de_MembershipDatasources = (output, context) => {
1871
- return {
1872
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
1873
- DatasourcePackageIngestHistory: output.DatasourcePackageIngestHistory != null
1874
- ? de_DatasourcePackageIngestHistory(output.DatasourcePackageIngestHistory, context)
1875
- : undefined,
1876
- GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
1877
- };
1738
+ return (0, smithy_client_1.take)(output, {
1739
+ AccountId: smithy_client_1.expectString,
1740
+ DatasourcePackageIngestHistory: (_) => de_DatasourcePackageIngestHistory(_, context),
1741
+ GraphArn: smithy_client_1.expectString,
1742
+ });
1878
1743
  };
1879
1744
  const de_MembershipDatasourcesList = (output, context) => {
1880
1745
  const retVal = (output || [])
1881
1746
  .filter((e) => e != null)
1882
1747
  .map((entry) => {
1883
- if (entry === null) {
1884
- return null;
1885
- }
1886
1748
  return de_MembershipDatasources(entry, context);
1887
1749
  });
1888
1750
  return retVal;
1889
1751
  };
1890
- const de_ResourceList = (output, context) => {
1891
- const retVal = (output || [])
1892
- .filter((e) => e != null)
1893
- .map((entry) => {
1894
- if (entry === null) {
1895
- return null;
1896
- }
1897
- return (0, smithy_client_1.expectString)(entry);
1898
- });
1899
- return retVal;
1900
- };
1901
- const de_TagMap = (output, context) => {
1902
- return Object.entries(output).reduce((acc, [key, value]) => {
1903
- if (value === null) {
1904
- return acc;
1905
- }
1906
- acc[key] = (0, smithy_client_1.expectString)(value);
1907
- return acc;
1908
- }, {});
1909
- };
1910
1752
  const de_TimestampForCollection = (output, context) => {
1911
- return {
1912
- Timestamp: output.Timestamp != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.Timestamp)) : undefined,
1913
- };
1914
- };
1915
- const de_UnprocessedAccount = (output, context) => {
1916
- return {
1917
- AccountId: (0, smithy_client_1.expectString)(output.AccountId),
1918
- Reason: (0, smithy_client_1.expectString)(output.Reason),
1919
- };
1920
- };
1921
- const de_UnprocessedAccountList = (output, context) => {
1922
- const retVal = (output || [])
1923
- .filter((e) => e != null)
1924
- .map((entry) => {
1925
- if (entry === null) {
1926
- return null;
1927
- }
1928
- return de_UnprocessedAccount(entry, context);
1753
+ return (0, smithy_client_1.take)(output, {
1754
+ Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
1929
1755
  });
1930
- return retVal;
1931
- };
1932
- const de_UnprocessedGraph = (output, context) => {
1933
- return {
1934
- GraphArn: (0, smithy_client_1.expectString)(output.GraphArn),
1935
- Reason: (0, smithy_client_1.expectString)(output.Reason),
1936
- };
1937
- };
1938
- const de_UnprocessedGraphList = (output, context) => {
1939
- const retVal = (output || [])
1940
- .filter((e) => e != null)
1941
- .map((entry) => {
1942
- if (entry === null) {
1943
- return null;
1944
- }
1945
- return de_UnprocessedGraph(entry, context);
1946
- });
1947
- return retVal;
1948
1756
  };
1949
1757
  const de_VolumeUsageByDatasourcePackage = (output, context) => {
1950
1758
  return Object.entries(output).reduce((acc, [key, value]) => {