@aws-sdk/client-managedblockchain-query 3.505.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -541,7 +541,7 @@ var se_ListTransactionsCommand = /* @__PURE__ */ __name(async (input, context) =
541
541
  }, "se_ListTransactionsCommand");
542
542
  var de_BatchGetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, context) => {
543
543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
544
- return de_BatchGetTokenBalanceCommandError(output, context);
544
+ return de_CommandError(output, context);
545
545
  }
546
546
  const contents = (0, import_smithy_client.map)({
547
547
  $metadata: deserializeMetadata(output)
@@ -554,43 +554,9 @@ var de_BatchGetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, conte
554
554
  Object.assign(contents, doc);
555
555
  return contents;
556
556
  }, "de_BatchGetTokenBalanceCommand");
557
- var de_BatchGetTokenBalanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
558
- const parsedOutput = {
559
- ...output,
560
- body: await parseErrorBody(output.body, context)
561
- };
562
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
563
- switch (errorCode) {
564
- case "AccessDeniedException":
565
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
566
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
567
- case "InternalServerException":
568
- case "com.amazonaws.managedblockchainquery#InternalServerException":
569
- throw await de_InternalServerExceptionRes(parsedOutput, context);
570
- case "ResourceNotFoundException":
571
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
572
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
573
- case "ServiceQuotaExceededException":
574
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
575
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
576
- case "ThrottlingException":
577
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
578
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
579
- case "ValidationException":
580
- case "com.amazonaws.managedblockchainquery#ValidationException":
581
- throw await de_ValidationExceptionRes(parsedOutput, context);
582
- default:
583
- const parsedBody = parsedOutput.body;
584
- return throwDefaultError({
585
- output,
586
- parsedBody,
587
- errorCode
588
- });
589
- }
590
- }, "de_BatchGetTokenBalanceCommandError");
591
557
  var de_GetAssetContractCommand = /* @__PURE__ */ __name(async (output, context) => {
592
558
  if (output.statusCode !== 200 && output.statusCode >= 300) {
593
- return de_GetAssetContractCommandError(output, context);
559
+ return de_CommandError(output, context);
594
560
  }
595
561
  const contents = (0, import_smithy_client.map)({
596
562
  $metadata: deserializeMetadata(output)
@@ -605,43 +571,9 @@ var de_GetAssetContractCommand = /* @__PURE__ */ __name(async (output, context)
605
571
  Object.assign(contents, doc);
606
572
  return contents;
607
573
  }, "de_GetAssetContractCommand");
608
- var de_GetAssetContractCommandError = /* @__PURE__ */ __name(async (output, context) => {
609
- const parsedOutput = {
610
- ...output,
611
- body: await parseErrorBody(output.body, context)
612
- };
613
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
614
- switch (errorCode) {
615
- case "AccessDeniedException":
616
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
617
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
618
- case "InternalServerException":
619
- case "com.amazonaws.managedblockchainquery#InternalServerException":
620
- throw await de_InternalServerExceptionRes(parsedOutput, context);
621
- case "ResourceNotFoundException":
622
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
623
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
624
- case "ServiceQuotaExceededException":
625
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
626
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
627
- case "ThrottlingException":
628
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
629
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
630
- case "ValidationException":
631
- case "com.amazonaws.managedblockchainquery#ValidationException":
632
- throw await de_ValidationExceptionRes(parsedOutput, context);
633
- default:
634
- const parsedBody = parsedOutput.body;
635
- return throwDefaultError({
636
- output,
637
- parsedBody,
638
- errorCode
639
- });
640
- }
641
- }, "de_GetAssetContractCommandError");
642
574
  var de_GetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, context) => {
643
575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
644
- return de_GetTokenBalanceCommandError(output, context);
576
+ return de_CommandError(output, context);
645
577
  }
646
578
  const contents = (0, import_smithy_client.map)({
647
579
  $metadata: deserializeMetadata(output)
@@ -657,43 +589,9 @@ var de_GetTokenBalanceCommand = /* @__PURE__ */ __name(async (output, context) =
657
589
  Object.assign(contents, doc);
658
590
  return contents;
659
591
  }, "de_GetTokenBalanceCommand");
660
- var de_GetTokenBalanceCommandError = /* @__PURE__ */ __name(async (output, context) => {
661
- const parsedOutput = {
662
- ...output,
663
- body: await parseErrorBody(output.body, context)
664
- };
665
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
666
- switch (errorCode) {
667
- case "AccessDeniedException":
668
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
669
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
670
- case "InternalServerException":
671
- case "com.amazonaws.managedblockchainquery#InternalServerException":
672
- throw await de_InternalServerExceptionRes(parsedOutput, context);
673
- case "ResourceNotFoundException":
674
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
675
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
676
- case "ServiceQuotaExceededException":
677
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
678
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
679
- case "ThrottlingException":
680
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
681
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
682
- case "ValidationException":
683
- case "com.amazonaws.managedblockchainquery#ValidationException":
684
- throw await de_ValidationExceptionRes(parsedOutput, context);
685
- default:
686
- const parsedBody = parsedOutput.body;
687
- return throwDefaultError({
688
- output,
689
- parsedBody,
690
- errorCode
691
- });
692
- }
693
- }, "de_GetTokenBalanceCommandError");
694
592
  var de_GetTransactionCommand = /* @__PURE__ */ __name(async (output, context) => {
695
593
  if (output.statusCode !== 200 && output.statusCode >= 300) {
696
- return de_GetTransactionCommandError(output, context);
594
+ return de_CommandError(output, context);
697
595
  }
698
596
  const contents = (0, import_smithy_client.map)({
699
597
  $metadata: deserializeMetadata(output)
@@ -705,43 +603,9 @@ var de_GetTransactionCommand = /* @__PURE__ */ __name(async (output, context) =>
705
603
  Object.assign(contents, doc);
706
604
  return contents;
707
605
  }, "de_GetTransactionCommand");
708
- var de_GetTransactionCommandError = /* @__PURE__ */ __name(async (output, context) => {
709
- const parsedOutput = {
710
- ...output,
711
- body: await parseErrorBody(output.body, context)
712
- };
713
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
714
- switch (errorCode) {
715
- case "AccessDeniedException":
716
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
717
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
718
- case "InternalServerException":
719
- case "com.amazonaws.managedblockchainquery#InternalServerException":
720
- throw await de_InternalServerExceptionRes(parsedOutput, context);
721
- case "ResourceNotFoundException":
722
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
723
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
724
- case "ServiceQuotaExceededException":
725
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
726
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
727
- case "ThrottlingException":
728
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
729
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
730
- case "ValidationException":
731
- case "com.amazonaws.managedblockchainquery#ValidationException":
732
- throw await de_ValidationExceptionRes(parsedOutput, context);
733
- default:
734
- const parsedBody = parsedOutput.body;
735
- return throwDefaultError({
736
- output,
737
- parsedBody,
738
- errorCode
739
- });
740
- }
741
- }, "de_GetTransactionCommandError");
742
606
  var de_ListAssetContractsCommand = /* @__PURE__ */ __name(async (output, context) => {
743
607
  if (output.statusCode !== 200 && output.statusCode >= 300) {
744
- return de_ListAssetContractsCommandError(output, context);
608
+ return de_CommandError(output, context);
745
609
  }
746
610
  const contents = (0, import_smithy_client.map)({
747
611
  $metadata: deserializeMetadata(output)
@@ -754,40 +618,9 @@ var de_ListAssetContractsCommand = /* @__PURE__ */ __name(async (output, context
754
618
  Object.assign(contents, doc);
755
619
  return contents;
756
620
  }, "de_ListAssetContractsCommand");
757
- var de_ListAssetContractsCommandError = /* @__PURE__ */ __name(async (output, context) => {
758
- const parsedOutput = {
759
- ...output,
760
- body: await parseErrorBody(output.body, context)
761
- };
762
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
763
- switch (errorCode) {
764
- case "AccessDeniedException":
765
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
766
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
767
- case "InternalServerException":
768
- case "com.amazonaws.managedblockchainquery#InternalServerException":
769
- throw await de_InternalServerExceptionRes(parsedOutput, context);
770
- case "ServiceQuotaExceededException":
771
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
772
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
773
- case "ThrottlingException":
774
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
775
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
776
- case "ValidationException":
777
- case "com.amazonaws.managedblockchainquery#ValidationException":
778
- throw await de_ValidationExceptionRes(parsedOutput, context);
779
- default:
780
- const parsedBody = parsedOutput.body;
781
- return throwDefaultError({
782
- output,
783
- parsedBody,
784
- errorCode
785
- });
786
- }
787
- }, "de_ListAssetContractsCommandError");
788
621
  var de_ListTokenBalancesCommand = /* @__PURE__ */ __name(async (output, context) => {
789
622
  if (output.statusCode !== 200 && output.statusCode >= 300) {
790
- return de_ListTokenBalancesCommandError(output, context);
623
+ return de_CommandError(output, context);
791
624
  }
792
625
  const contents = (0, import_smithy_client.map)({
793
626
  $metadata: deserializeMetadata(output)
@@ -800,40 +633,9 @@ var de_ListTokenBalancesCommand = /* @__PURE__ */ __name(async (output, context)
800
633
  Object.assign(contents, doc);
801
634
  return contents;
802
635
  }, "de_ListTokenBalancesCommand");
803
- var de_ListTokenBalancesCommandError = /* @__PURE__ */ __name(async (output, context) => {
804
- const parsedOutput = {
805
- ...output,
806
- body: await parseErrorBody(output.body, context)
807
- };
808
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
809
- switch (errorCode) {
810
- case "AccessDeniedException":
811
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
812
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
813
- case "InternalServerException":
814
- case "com.amazonaws.managedblockchainquery#InternalServerException":
815
- throw await de_InternalServerExceptionRes(parsedOutput, context);
816
- case "ServiceQuotaExceededException":
817
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
818
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
819
- case "ThrottlingException":
820
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
821
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
822
- case "ValidationException":
823
- case "com.amazonaws.managedblockchainquery#ValidationException":
824
- throw await de_ValidationExceptionRes(parsedOutput, context);
825
- default:
826
- const parsedBody = parsedOutput.body;
827
- return throwDefaultError({
828
- output,
829
- parsedBody,
830
- errorCode
831
- });
832
- }
833
- }, "de_ListTokenBalancesCommandError");
834
636
  var de_ListTransactionEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
835
637
  if (output.statusCode !== 200 && output.statusCode >= 300) {
836
- return de_ListTransactionEventsCommandError(output, context);
638
+ return de_CommandError(output, context);
837
639
  }
838
640
  const contents = (0, import_smithy_client.map)({
839
641
  $metadata: deserializeMetadata(output)
@@ -846,40 +648,9 @@ var de_ListTransactionEventsCommand = /* @__PURE__ */ __name(async (output, cont
846
648
  Object.assign(contents, doc);
847
649
  return contents;
848
650
  }, "de_ListTransactionEventsCommand");
849
- var de_ListTransactionEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
850
- const parsedOutput = {
851
- ...output,
852
- body: await parseErrorBody(output.body, context)
853
- };
854
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
855
- switch (errorCode) {
856
- case "AccessDeniedException":
857
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
858
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
859
- case "InternalServerException":
860
- case "com.amazonaws.managedblockchainquery#InternalServerException":
861
- throw await de_InternalServerExceptionRes(parsedOutput, context);
862
- case "ServiceQuotaExceededException":
863
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
864
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
865
- case "ThrottlingException":
866
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
867
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
868
- case "ValidationException":
869
- case "com.amazonaws.managedblockchainquery#ValidationException":
870
- throw await de_ValidationExceptionRes(parsedOutput, context);
871
- default:
872
- const parsedBody = parsedOutput.body;
873
- return throwDefaultError({
874
- output,
875
- parsedBody,
876
- errorCode
877
- });
878
- }
879
- }, "de_ListTransactionEventsCommandError");
880
651
  var de_ListTransactionsCommand = /* @__PURE__ */ __name(async (output, context) => {
881
652
  if (output.statusCode !== 200 && output.statusCode >= 300) {
882
- return de_ListTransactionsCommandError(output, context);
653
+ return de_CommandError(output, context);
883
654
  }
884
655
  const contents = (0, import_smithy_client.map)({
885
656
  $metadata: deserializeMetadata(output)
@@ -892,7 +663,7 @@ var de_ListTransactionsCommand = /* @__PURE__ */ __name(async (output, context)
892
663
  Object.assign(contents, doc);
893
664
  return contents;
894
665
  }, "de_ListTransactionsCommand");
895
- var de_ListTransactionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
666
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
896
667
  const parsedOutput = {
897
668
  ...output,
898
669
  body: await parseErrorBody(output.body, context)
@@ -905,6 +676,9 @@ var de_ListTransactionsCommandError = /* @__PURE__ */ __name(async (output, cont
905
676
  case "InternalServerException":
906
677
  case "com.amazonaws.managedblockchainquery#InternalServerException":
907
678
  throw await de_InternalServerExceptionRes(parsedOutput, context);
679
+ case "ResourceNotFoundException":
680
+ case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
681
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
908
682
  case "ServiceQuotaExceededException":
909
683
  case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
910
684
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
@@ -922,7 +696,7 @@ var de_ListTransactionsCommandError = /* @__PURE__ */ __name(async (output, cont
922
696
  errorCode
923
697
  });
924
698
  }
925
- }, "de_ListTransactionsCommandError");
699
+ }, "de_CommandError");
926
700
  var throwDefaultError = (0, import_smithy_client.withBaseException)(ManagedBlockchainQueryServiceException);
927
701
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
928
702
  const contents = (0, import_smithy_client.map)({});
@@ -126,7 +126,7 @@ export const se_ListTransactionsCommand = async (input, context) => {
126
126
  };
127
127
  export const de_BatchGetTokenBalanceCommand = async (output, context) => {
128
128
  if (output.statusCode !== 200 && output.statusCode >= 300) {
129
- return de_BatchGetTokenBalanceCommandError(output, context);
129
+ return de_CommandError(output, context);
130
130
  }
131
131
  const contents = map({
132
132
  $metadata: deserializeMetadata(output),
@@ -139,43 +139,9 @@ export const de_BatchGetTokenBalanceCommand = async (output, context) => {
139
139
  Object.assign(contents, doc);
140
140
  return contents;
141
141
  };
142
- const de_BatchGetTokenBalanceCommandError = async (output, context) => {
143
- const parsedOutput = {
144
- ...output,
145
- body: await parseErrorBody(output.body, context),
146
- };
147
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
148
- switch (errorCode) {
149
- case "AccessDeniedException":
150
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
151
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
152
- case "InternalServerException":
153
- case "com.amazonaws.managedblockchainquery#InternalServerException":
154
- throw await de_InternalServerExceptionRes(parsedOutput, context);
155
- case "ResourceNotFoundException":
156
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
157
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
158
- case "ServiceQuotaExceededException":
159
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
160
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
161
- case "ThrottlingException":
162
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
163
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
164
- case "ValidationException":
165
- case "com.amazonaws.managedblockchainquery#ValidationException":
166
- throw await de_ValidationExceptionRes(parsedOutput, context);
167
- default:
168
- const parsedBody = parsedOutput.body;
169
- return throwDefaultError({
170
- output,
171
- parsedBody,
172
- errorCode,
173
- });
174
- }
175
- };
176
142
  export const de_GetAssetContractCommand = async (output, context) => {
177
143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
178
- return de_GetAssetContractCommandError(output, context);
144
+ return de_CommandError(output, context);
179
145
  }
180
146
  const contents = map({
181
147
  $metadata: deserializeMetadata(output),
@@ -190,43 +156,9 @@ export const de_GetAssetContractCommand = async (output, context) => {
190
156
  Object.assign(contents, doc);
191
157
  return contents;
192
158
  };
193
- const de_GetAssetContractCommandError = async (output, context) => {
194
- const parsedOutput = {
195
- ...output,
196
- body: await parseErrorBody(output.body, context),
197
- };
198
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
199
- switch (errorCode) {
200
- case "AccessDeniedException":
201
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
202
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
203
- case "InternalServerException":
204
- case "com.amazonaws.managedblockchainquery#InternalServerException":
205
- throw await de_InternalServerExceptionRes(parsedOutput, context);
206
- case "ResourceNotFoundException":
207
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
208
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
209
- case "ServiceQuotaExceededException":
210
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
211
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
212
- case "ThrottlingException":
213
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
214
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
215
- case "ValidationException":
216
- case "com.amazonaws.managedblockchainquery#ValidationException":
217
- throw await de_ValidationExceptionRes(parsedOutput, context);
218
- default:
219
- const parsedBody = parsedOutput.body;
220
- return throwDefaultError({
221
- output,
222
- parsedBody,
223
- errorCode,
224
- });
225
- }
226
- };
227
159
  export const de_GetTokenBalanceCommand = async (output, context) => {
228
160
  if (output.statusCode !== 200 && output.statusCode >= 300) {
229
- return de_GetTokenBalanceCommandError(output, context);
161
+ return de_CommandError(output, context);
230
162
  }
231
163
  const contents = map({
232
164
  $metadata: deserializeMetadata(output),
@@ -242,43 +174,9 @@ export const de_GetTokenBalanceCommand = async (output, context) => {
242
174
  Object.assign(contents, doc);
243
175
  return contents;
244
176
  };
245
- const de_GetTokenBalanceCommandError = async (output, context) => {
246
- const parsedOutput = {
247
- ...output,
248
- body: await parseErrorBody(output.body, context),
249
- };
250
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
251
- switch (errorCode) {
252
- case "AccessDeniedException":
253
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
254
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
255
- case "InternalServerException":
256
- case "com.amazonaws.managedblockchainquery#InternalServerException":
257
- throw await de_InternalServerExceptionRes(parsedOutput, context);
258
- case "ResourceNotFoundException":
259
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
260
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
261
- case "ServiceQuotaExceededException":
262
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
263
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
264
- case "ThrottlingException":
265
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
266
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
267
- case "ValidationException":
268
- case "com.amazonaws.managedblockchainquery#ValidationException":
269
- throw await de_ValidationExceptionRes(parsedOutput, context);
270
- default:
271
- const parsedBody = parsedOutput.body;
272
- return throwDefaultError({
273
- output,
274
- parsedBody,
275
- errorCode,
276
- });
277
- }
278
- };
279
177
  export const de_GetTransactionCommand = async (output, context) => {
280
178
  if (output.statusCode !== 200 && output.statusCode >= 300) {
281
- return de_GetTransactionCommandError(output, context);
179
+ return de_CommandError(output, context);
282
180
  }
283
181
  const contents = map({
284
182
  $metadata: deserializeMetadata(output),
@@ -290,43 +188,9 @@ export const de_GetTransactionCommand = async (output, context) => {
290
188
  Object.assign(contents, doc);
291
189
  return contents;
292
190
  };
293
- const de_GetTransactionCommandError = async (output, context) => {
294
- const parsedOutput = {
295
- ...output,
296
- body: await parseErrorBody(output.body, context),
297
- };
298
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
299
- switch (errorCode) {
300
- case "AccessDeniedException":
301
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
302
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
303
- case "InternalServerException":
304
- case "com.amazonaws.managedblockchainquery#InternalServerException":
305
- throw await de_InternalServerExceptionRes(parsedOutput, context);
306
- case "ResourceNotFoundException":
307
- case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
308
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
309
- case "ServiceQuotaExceededException":
310
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
311
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
312
- case "ThrottlingException":
313
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
314
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
315
- case "ValidationException":
316
- case "com.amazonaws.managedblockchainquery#ValidationException":
317
- throw await de_ValidationExceptionRes(parsedOutput, context);
318
- default:
319
- const parsedBody = parsedOutput.body;
320
- return throwDefaultError({
321
- output,
322
- parsedBody,
323
- errorCode,
324
- });
325
- }
326
- };
327
191
  export const de_ListAssetContractsCommand = async (output, context) => {
328
192
  if (output.statusCode !== 200 && output.statusCode >= 300) {
329
- return de_ListAssetContractsCommandError(output, context);
193
+ return de_CommandError(output, context);
330
194
  }
331
195
  const contents = map({
332
196
  $metadata: deserializeMetadata(output),
@@ -339,40 +203,9 @@ export const de_ListAssetContractsCommand = async (output, context) => {
339
203
  Object.assign(contents, doc);
340
204
  return contents;
341
205
  };
342
- const de_ListAssetContractsCommandError = async (output, context) => {
343
- const parsedOutput = {
344
- ...output,
345
- body: await parseErrorBody(output.body, context),
346
- };
347
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
348
- switch (errorCode) {
349
- case "AccessDeniedException":
350
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
351
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
352
- case "InternalServerException":
353
- case "com.amazonaws.managedblockchainquery#InternalServerException":
354
- throw await de_InternalServerExceptionRes(parsedOutput, context);
355
- case "ServiceQuotaExceededException":
356
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
357
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
358
- case "ThrottlingException":
359
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
360
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
361
- case "ValidationException":
362
- case "com.amazonaws.managedblockchainquery#ValidationException":
363
- throw await de_ValidationExceptionRes(parsedOutput, context);
364
- default:
365
- const parsedBody = parsedOutput.body;
366
- return throwDefaultError({
367
- output,
368
- parsedBody,
369
- errorCode,
370
- });
371
- }
372
- };
373
206
  export const de_ListTokenBalancesCommand = async (output, context) => {
374
207
  if (output.statusCode !== 200 && output.statusCode >= 300) {
375
- return de_ListTokenBalancesCommandError(output, context);
208
+ return de_CommandError(output, context);
376
209
  }
377
210
  const contents = map({
378
211
  $metadata: deserializeMetadata(output),
@@ -385,40 +218,9 @@ export const de_ListTokenBalancesCommand = async (output, context) => {
385
218
  Object.assign(contents, doc);
386
219
  return contents;
387
220
  };
388
- const de_ListTokenBalancesCommandError = async (output, context) => {
389
- const parsedOutput = {
390
- ...output,
391
- body: await parseErrorBody(output.body, context),
392
- };
393
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
394
- switch (errorCode) {
395
- case "AccessDeniedException":
396
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
397
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
398
- case "InternalServerException":
399
- case "com.amazonaws.managedblockchainquery#InternalServerException":
400
- throw await de_InternalServerExceptionRes(parsedOutput, context);
401
- case "ServiceQuotaExceededException":
402
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
403
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
404
- case "ThrottlingException":
405
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
406
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
407
- case "ValidationException":
408
- case "com.amazonaws.managedblockchainquery#ValidationException":
409
- throw await de_ValidationExceptionRes(parsedOutput, context);
410
- default:
411
- const parsedBody = parsedOutput.body;
412
- return throwDefaultError({
413
- output,
414
- parsedBody,
415
- errorCode,
416
- });
417
- }
418
- };
419
221
  export const de_ListTransactionEventsCommand = async (output, context) => {
420
222
  if (output.statusCode !== 200 && output.statusCode >= 300) {
421
- return de_ListTransactionEventsCommandError(output, context);
223
+ return de_CommandError(output, context);
422
224
  }
423
225
  const contents = map({
424
226
  $metadata: deserializeMetadata(output),
@@ -431,40 +233,9 @@ export const de_ListTransactionEventsCommand = async (output, context) => {
431
233
  Object.assign(contents, doc);
432
234
  return contents;
433
235
  };
434
- const de_ListTransactionEventsCommandError = async (output, context) => {
435
- const parsedOutput = {
436
- ...output,
437
- body: await parseErrorBody(output.body, context),
438
- };
439
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
440
- switch (errorCode) {
441
- case "AccessDeniedException":
442
- case "com.amazonaws.managedblockchainquery#AccessDeniedException":
443
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
444
- case "InternalServerException":
445
- case "com.amazonaws.managedblockchainquery#InternalServerException":
446
- throw await de_InternalServerExceptionRes(parsedOutput, context);
447
- case "ServiceQuotaExceededException":
448
- case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
449
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
450
- case "ThrottlingException":
451
- case "com.amazonaws.managedblockchainquery#ThrottlingException":
452
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
453
- case "ValidationException":
454
- case "com.amazonaws.managedblockchainquery#ValidationException":
455
- throw await de_ValidationExceptionRes(parsedOutput, context);
456
- default:
457
- const parsedBody = parsedOutput.body;
458
- return throwDefaultError({
459
- output,
460
- parsedBody,
461
- errorCode,
462
- });
463
- }
464
- };
465
236
  export const de_ListTransactionsCommand = async (output, context) => {
466
237
  if (output.statusCode !== 200 && output.statusCode >= 300) {
467
- return de_ListTransactionsCommandError(output, context);
238
+ return de_CommandError(output, context);
468
239
  }
469
240
  const contents = map({
470
241
  $metadata: deserializeMetadata(output),
@@ -477,7 +248,7 @@ export const de_ListTransactionsCommand = async (output, context) => {
477
248
  Object.assign(contents, doc);
478
249
  return contents;
479
250
  };
480
- const de_ListTransactionsCommandError = async (output, context) => {
251
+ const de_CommandError = async (output, context) => {
481
252
  const parsedOutput = {
482
253
  ...output,
483
254
  body: await parseErrorBody(output.body, context),
@@ -490,6 +261,9 @@ const de_ListTransactionsCommandError = async (output, context) => {
490
261
  case "InternalServerException":
491
262
  case "com.amazonaws.managedblockchainquery#InternalServerException":
492
263
  throw await de_InternalServerExceptionRes(parsedOutput, context);
264
+ case "ResourceNotFoundException":
265
+ case "com.amazonaws.managedblockchainquery#ResourceNotFoundException":
266
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
493
267
  case "ServiceQuotaExceededException":
494
268
  case "com.amazonaws.managedblockchainquery#ServiceQuotaExceededException":
495
269
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-managedblockchain-query",
3
3
  "description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
4
- "version": "3.505.0",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-managedblockchain-query",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",