@aws-sdk/client-textract 3.504.0 → 3.509.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 +113 -1106
- package/dist-es/protocols/Aws_json1_1.js +145 -1138
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -784,7 +784,7 @@ var se_UpdateAdapterCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
784
784
|
}, "se_UpdateAdapterCommand");
|
|
785
785
|
var de_AnalyzeDocumentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
786
786
|
if (output.statusCode >= 300) {
|
|
787
|
-
return
|
|
787
|
+
return de_CommandError(output, context);
|
|
788
788
|
}
|
|
789
789
|
const data = await parseBody(output.body, context);
|
|
790
790
|
let contents = {};
|
|
@@ -795,55 +795,9 @@ var de_AnalyzeDocumentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
795
795
|
};
|
|
796
796
|
return response;
|
|
797
797
|
}, "de_AnalyzeDocumentCommand");
|
|
798
|
-
var de_AnalyzeDocumentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
799
|
-
const parsedOutput = {
|
|
800
|
-
...output,
|
|
801
|
-
body: await parseErrorBody(output.body, context)
|
|
802
|
-
};
|
|
803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
804
|
-
switch (errorCode) {
|
|
805
|
-
case "AccessDeniedException":
|
|
806
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
808
|
-
case "BadDocumentException":
|
|
809
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
810
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
811
|
-
case "DocumentTooLargeException":
|
|
812
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
813
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
814
|
-
case "HumanLoopQuotaExceededException":
|
|
815
|
-
case "com.amazonaws.textract#HumanLoopQuotaExceededException":
|
|
816
|
-
throw await de_HumanLoopQuotaExceededExceptionRes(parsedOutput, context);
|
|
817
|
-
case "InternalServerError":
|
|
818
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
819
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
820
|
-
case "InvalidParameterException":
|
|
821
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
822
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
823
|
-
case "InvalidS3ObjectException":
|
|
824
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
825
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
826
|
-
case "ProvisionedThroughputExceededException":
|
|
827
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
828
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
829
|
-
case "ThrottlingException":
|
|
830
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
831
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
832
|
-
case "UnsupportedDocumentException":
|
|
833
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
834
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
835
|
-
default:
|
|
836
|
-
const parsedBody = parsedOutput.body;
|
|
837
|
-
return throwDefaultError({
|
|
838
|
-
output,
|
|
839
|
-
parsedBody,
|
|
840
|
-
errorCode
|
|
841
|
-
});
|
|
842
|
-
}
|
|
843
|
-
}, "de_AnalyzeDocumentCommandError");
|
|
844
798
|
var de_AnalyzeExpenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
845
799
|
if (output.statusCode >= 300) {
|
|
846
|
-
return
|
|
800
|
+
return de_CommandError(output, context);
|
|
847
801
|
}
|
|
848
802
|
const data = await parseBody(output.body, context);
|
|
849
803
|
let contents = {};
|
|
@@ -854,52 +808,9 @@ var de_AnalyzeExpenseCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
854
808
|
};
|
|
855
809
|
return response;
|
|
856
810
|
}, "de_AnalyzeExpenseCommand");
|
|
857
|
-
var de_AnalyzeExpenseCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
858
|
-
const parsedOutput = {
|
|
859
|
-
...output,
|
|
860
|
-
body: await parseErrorBody(output.body, context)
|
|
861
|
-
};
|
|
862
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
863
|
-
switch (errorCode) {
|
|
864
|
-
case "AccessDeniedException":
|
|
865
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
866
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
867
|
-
case "BadDocumentException":
|
|
868
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
869
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
870
|
-
case "DocumentTooLargeException":
|
|
871
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
872
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
873
|
-
case "InternalServerError":
|
|
874
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
875
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
876
|
-
case "InvalidParameterException":
|
|
877
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
878
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
879
|
-
case "InvalidS3ObjectException":
|
|
880
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
881
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
882
|
-
case "ProvisionedThroughputExceededException":
|
|
883
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
884
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
885
|
-
case "ThrottlingException":
|
|
886
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
887
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
888
|
-
case "UnsupportedDocumentException":
|
|
889
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
890
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
891
|
-
default:
|
|
892
|
-
const parsedBody = parsedOutput.body;
|
|
893
|
-
return throwDefaultError({
|
|
894
|
-
output,
|
|
895
|
-
parsedBody,
|
|
896
|
-
errorCode
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
}, "de_AnalyzeExpenseCommandError");
|
|
900
811
|
var de_AnalyzeIDCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
901
812
|
if (output.statusCode >= 300) {
|
|
902
|
-
return
|
|
813
|
+
return de_CommandError(output, context);
|
|
903
814
|
}
|
|
904
815
|
const data = await parseBody(output.body, context);
|
|
905
816
|
let contents = {};
|
|
@@ -910,52 +821,9 @@ var de_AnalyzeIDCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
910
821
|
};
|
|
911
822
|
return response;
|
|
912
823
|
}, "de_AnalyzeIDCommand");
|
|
913
|
-
var de_AnalyzeIDCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
|
-
const parsedOutput = {
|
|
915
|
-
...output,
|
|
916
|
-
body: await parseErrorBody(output.body, context)
|
|
917
|
-
};
|
|
918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
919
|
-
switch (errorCode) {
|
|
920
|
-
case "AccessDeniedException":
|
|
921
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
922
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
923
|
-
case "BadDocumentException":
|
|
924
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
925
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
926
|
-
case "DocumentTooLargeException":
|
|
927
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
928
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
929
|
-
case "InternalServerError":
|
|
930
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
931
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
932
|
-
case "InvalidParameterException":
|
|
933
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
934
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
935
|
-
case "InvalidS3ObjectException":
|
|
936
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
937
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ProvisionedThroughputExceededException":
|
|
939
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
940
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ThrottlingException":
|
|
942
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
943
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
944
|
-
case "UnsupportedDocumentException":
|
|
945
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
946
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
947
|
-
default:
|
|
948
|
-
const parsedBody = parsedOutput.body;
|
|
949
|
-
return throwDefaultError({
|
|
950
|
-
output,
|
|
951
|
-
parsedBody,
|
|
952
|
-
errorCode
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
}, "de_AnalyzeIDCommandError");
|
|
956
824
|
var de_CreateAdapterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
957
825
|
if (output.statusCode >= 300) {
|
|
958
|
-
return
|
|
826
|
+
return de_CommandError(output, context);
|
|
959
827
|
}
|
|
960
828
|
const data = await parseBody(output.body, context);
|
|
961
829
|
let contents = {};
|
|
@@ -966,55 +834,9 @@ var de_CreateAdapterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
966
834
|
};
|
|
967
835
|
return response;
|
|
968
836
|
}, "de_CreateAdapterCommand");
|
|
969
|
-
var de_CreateAdapterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
970
|
-
const parsedOutput = {
|
|
971
|
-
...output,
|
|
972
|
-
body: await parseErrorBody(output.body, context)
|
|
973
|
-
};
|
|
974
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
975
|
-
switch (errorCode) {
|
|
976
|
-
case "AccessDeniedException":
|
|
977
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
978
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
979
|
-
case "ConflictException":
|
|
980
|
-
case "com.amazonaws.textract#ConflictException":
|
|
981
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
982
|
-
case "IdempotentParameterMismatchException":
|
|
983
|
-
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
984
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
985
|
-
case "InternalServerError":
|
|
986
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
987
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
988
|
-
case "InvalidParameterException":
|
|
989
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
990
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
991
|
-
case "LimitExceededException":
|
|
992
|
-
case "com.amazonaws.textract#LimitExceededException":
|
|
993
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ProvisionedThroughputExceededException":
|
|
995
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
996
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
997
|
-
case "ServiceQuotaExceededException":
|
|
998
|
-
case "com.amazonaws.textract#ServiceQuotaExceededException":
|
|
999
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "ThrottlingException":
|
|
1001
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1002
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "ValidationException":
|
|
1004
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1005
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1006
|
-
default:
|
|
1007
|
-
const parsedBody = parsedOutput.body;
|
|
1008
|
-
return throwDefaultError({
|
|
1009
|
-
output,
|
|
1010
|
-
parsedBody,
|
|
1011
|
-
errorCode
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
}, "de_CreateAdapterCommandError");
|
|
1015
837
|
var de_CreateAdapterVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1016
838
|
if (output.statusCode >= 300) {
|
|
1017
|
-
return
|
|
839
|
+
return de_CommandError(output, context);
|
|
1018
840
|
}
|
|
1019
841
|
const data = await parseBody(output.body, context);
|
|
1020
842
|
let contents = {};
|
|
@@ -1025,64 +847,9 @@ var de_CreateAdapterVersionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1025
847
|
};
|
|
1026
848
|
return response;
|
|
1027
849
|
}, "de_CreateAdapterVersionCommand");
|
|
1028
|
-
var de_CreateAdapterVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1029
|
-
const parsedOutput = {
|
|
1030
|
-
...output,
|
|
1031
|
-
body: await parseErrorBody(output.body, context)
|
|
1032
|
-
};
|
|
1033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1034
|
-
switch (errorCode) {
|
|
1035
|
-
case "AccessDeniedException":
|
|
1036
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1037
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1038
|
-
case "ConflictException":
|
|
1039
|
-
case "com.amazonaws.textract#ConflictException":
|
|
1040
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1041
|
-
case "IdempotentParameterMismatchException":
|
|
1042
|
-
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
1043
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "InternalServerError":
|
|
1045
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1046
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1047
|
-
case "InvalidKMSKeyException":
|
|
1048
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1049
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1050
|
-
case "InvalidParameterException":
|
|
1051
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1052
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1053
|
-
case "InvalidS3ObjectException":
|
|
1054
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1055
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1056
|
-
case "LimitExceededException":
|
|
1057
|
-
case "com.amazonaws.textract#LimitExceededException":
|
|
1058
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1059
|
-
case "ProvisionedThroughputExceededException":
|
|
1060
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1061
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1062
|
-
case "ResourceNotFoundException":
|
|
1063
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1064
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1065
|
-
case "ServiceQuotaExceededException":
|
|
1066
|
-
case "com.amazonaws.textract#ServiceQuotaExceededException":
|
|
1067
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "ThrottlingException":
|
|
1069
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1070
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1071
|
-
case "ValidationException":
|
|
1072
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1074
|
-
default:
|
|
1075
|
-
const parsedBody = parsedOutput.body;
|
|
1076
|
-
return throwDefaultError({
|
|
1077
|
-
output,
|
|
1078
|
-
parsedBody,
|
|
1079
|
-
errorCode
|
|
1080
|
-
});
|
|
1081
|
-
}
|
|
1082
|
-
}, "de_CreateAdapterVersionCommandError");
|
|
1083
850
|
var de_DeleteAdapterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1084
851
|
if (output.statusCode >= 300) {
|
|
1085
|
-
return
|
|
852
|
+
return de_CommandError(output, context);
|
|
1086
853
|
}
|
|
1087
854
|
const data = await parseBody(output.body, context);
|
|
1088
855
|
let contents = {};
|
|
@@ -1093,102 +860,22 @@ var de_DeleteAdapterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1093
860
|
};
|
|
1094
861
|
return response;
|
|
1095
862
|
}, "de_DeleteAdapterCommand");
|
|
1096
|
-
var
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
case "ConflictException":
|
|
1107
|
-
case "com.amazonaws.textract#ConflictException":
|
|
1108
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1109
|
-
case "InternalServerError":
|
|
1110
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1111
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1112
|
-
case "InvalidParameterException":
|
|
1113
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1114
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ProvisionedThroughputExceededException":
|
|
1116
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1117
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ResourceNotFoundException":
|
|
1119
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1120
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1121
|
-
case "ThrottlingException":
|
|
1122
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1123
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1124
|
-
case "ValidationException":
|
|
1125
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1126
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1127
|
-
default:
|
|
1128
|
-
const parsedBody = parsedOutput.body;
|
|
1129
|
-
return throwDefaultError({
|
|
1130
|
-
output,
|
|
1131
|
-
parsedBody,
|
|
1132
|
-
errorCode
|
|
1133
|
-
});
|
|
1134
|
-
}
|
|
1135
|
-
}, "de_DeleteAdapterCommandError");
|
|
1136
|
-
var de_DeleteAdapterVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1137
|
-
if (output.statusCode >= 300) {
|
|
1138
|
-
return de_DeleteAdapterVersionCommandError(output, context);
|
|
1139
|
-
}
|
|
1140
|
-
const data = await parseBody(output.body, context);
|
|
1141
|
-
let contents = {};
|
|
1142
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1143
|
-
const response = {
|
|
1144
|
-
$metadata: deserializeMetadata(output),
|
|
1145
|
-
...contents
|
|
863
|
+
var de_DeleteAdapterVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
864
|
+
if (output.statusCode >= 300) {
|
|
865
|
+
return de_CommandError(output, context);
|
|
866
|
+
}
|
|
867
|
+
const data = await parseBody(output.body, context);
|
|
868
|
+
let contents = {};
|
|
869
|
+
contents = (0, import_smithy_client._json)(data);
|
|
870
|
+
const response = {
|
|
871
|
+
$metadata: deserializeMetadata(output),
|
|
872
|
+
...contents
|
|
1146
873
|
};
|
|
1147
874
|
return response;
|
|
1148
875
|
}, "de_DeleteAdapterVersionCommand");
|
|
1149
|
-
var de_DeleteAdapterVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1150
|
-
const parsedOutput = {
|
|
1151
|
-
...output,
|
|
1152
|
-
body: await parseErrorBody(output.body, context)
|
|
1153
|
-
};
|
|
1154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1155
|
-
switch (errorCode) {
|
|
1156
|
-
case "AccessDeniedException":
|
|
1157
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1158
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "ConflictException":
|
|
1160
|
-
case "com.amazonaws.textract#ConflictException":
|
|
1161
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "InternalServerError":
|
|
1163
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1164
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1165
|
-
case "InvalidParameterException":
|
|
1166
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1167
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "ProvisionedThroughputExceededException":
|
|
1169
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1170
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1171
|
-
case "ResourceNotFoundException":
|
|
1172
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1174
|
-
case "ThrottlingException":
|
|
1175
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1176
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1177
|
-
case "ValidationException":
|
|
1178
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1179
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1180
|
-
default:
|
|
1181
|
-
const parsedBody = parsedOutput.body;
|
|
1182
|
-
return throwDefaultError({
|
|
1183
|
-
output,
|
|
1184
|
-
parsedBody,
|
|
1185
|
-
errorCode
|
|
1186
|
-
});
|
|
1187
|
-
}
|
|
1188
|
-
}, "de_DeleteAdapterVersionCommandError");
|
|
1189
876
|
var de_DetectDocumentTextCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1190
877
|
if (output.statusCode >= 300) {
|
|
1191
|
-
return
|
|
878
|
+
return de_CommandError(output, context);
|
|
1192
879
|
}
|
|
1193
880
|
const data = await parseBody(output.body, context);
|
|
1194
881
|
let contents = {};
|
|
@@ -1199,52 +886,9 @@ var de_DetectDocumentTextCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1199
886
|
};
|
|
1200
887
|
return response;
|
|
1201
888
|
}, "de_DetectDocumentTextCommand");
|
|
1202
|
-
var de_DetectDocumentTextCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1203
|
-
const parsedOutput = {
|
|
1204
|
-
...output,
|
|
1205
|
-
body: await parseErrorBody(output.body, context)
|
|
1206
|
-
};
|
|
1207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
-
switch (errorCode) {
|
|
1209
|
-
case "AccessDeniedException":
|
|
1210
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1211
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "BadDocumentException":
|
|
1213
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
1214
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "DocumentTooLargeException":
|
|
1216
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
1217
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "InternalServerError":
|
|
1219
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1220
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1221
|
-
case "InvalidParameterException":
|
|
1222
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1223
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1224
|
-
case "InvalidS3ObjectException":
|
|
1225
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1226
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1227
|
-
case "ProvisionedThroughputExceededException":
|
|
1228
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1229
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1230
|
-
case "ThrottlingException":
|
|
1231
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1232
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1233
|
-
case "UnsupportedDocumentException":
|
|
1234
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
1235
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
1236
|
-
default:
|
|
1237
|
-
const parsedBody = parsedOutput.body;
|
|
1238
|
-
return throwDefaultError({
|
|
1239
|
-
output,
|
|
1240
|
-
parsedBody,
|
|
1241
|
-
errorCode
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
}, "de_DetectDocumentTextCommandError");
|
|
1245
889
|
var de_GetAdapterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1246
890
|
if (output.statusCode >= 300) {
|
|
1247
|
-
return
|
|
891
|
+
return de_CommandError(output, context);
|
|
1248
892
|
}
|
|
1249
893
|
const data = await parseBody(output.body, context);
|
|
1250
894
|
let contents = {};
|
|
@@ -1255,46 +899,9 @@ var de_GetAdapterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1255
899
|
};
|
|
1256
900
|
return response;
|
|
1257
901
|
}, "de_GetAdapterCommand");
|
|
1258
|
-
var de_GetAdapterCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1259
|
-
const parsedOutput = {
|
|
1260
|
-
...output,
|
|
1261
|
-
body: await parseErrorBody(output.body, context)
|
|
1262
|
-
};
|
|
1263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
|
-
switch (errorCode) {
|
|
1265
|
-
case "AccessDeniedException":
|
|
1266
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1267
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "InternalServerError":
|
|
1269
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1270
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1271
|
-
case "InvalidParameterException":
|
|
1272
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1273
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ProvisionedThroughputExceededException":
|
|
1275
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1276
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1277
|
-
case "ResourceNotFoundException":
|
|
1278
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1279
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
-
case "ThrottlingException":
|
|
1281
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1282
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1283
|
-
case "ValidationException":
|
|
1284
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1285
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1286
|
-
default:
|
|
1287
|
-
const parsedBody = parsedOutput.body;
|
|
1288
|
-
return throwDefaultError({
|
|
1289
|
-
output,
|
|
1290
|
-
parsedBody,
|
|
1291
|
-
errorCode
|
|
1292
|
-
});
|
|
1293
|
-
}
|
|
1294
|
-
}, "de_GetAdapterCommandError");
|
|
1295
902
|
var de_GetAdapterVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1296
903
|
if (output.statusCode >= 300) {
|
|
1297
|
-
return
|
|
904
|
+
return de_CommandError(output, context);
|
|
1298
905
|
}
|
|
1299
906
|
const data = await parseBody(output.body, context);
|
|
1300
907
|
let contents = {};
|
|
@@ -1305,46 +912,9 @@ var de_GetAdapterVersionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1305
912
|
};
|
|
1306
913
|
return response;
|
|
1307
914
|
}, "de_GetAdapterVersionCommand");
|
|
1308
|
-
var de_GetAdapterVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1309
|
-
const parsedOutput = {
|
|
1310
|
-
...output,
|
|
1311
|
-
body: await parseErrorBody(output.body, context)
|
|
1312
|
-
};
|
|
1313
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1314
|
-
switch (errorCode) {
|
|
1315
|
-
case "AccessDeniedException":
|
|
1316
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1317
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "InternalServerError":
|
|
1319
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1320
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1321
|
-
case "InvalidParameterException":
|
|
1322
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1323
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1324
|
-
case "ProvisionedThroughputExceededException":
|
|
1325
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1326
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1327
|
-
case "ResourceNotFoundException":
|
|
1328
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1329
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1330
|
-
case "ThrottlingException":
|
|
1331
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1332
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1333
|
-
case "ValidationException":
|
|
1334
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1335
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1336
|
-
default:
|
|
1337
|
-
const parsedBody = parsedOutput.body;
|
|
1338
|
-
return throwDefaultError({
|
|
1339
|
-
output,
|
|
1340
|
-
parsedBody,
|
|
1341
|
-
errorCode
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
}, "de_GetAdapterVersionCommandError");
|
|
1345
915
|
var de_GetDocumentAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1346
916
|
if (output.statusCode >= 300) {
|
|
1347
|
-
return
|
|
917
|
+
return de_CommandError(output, context);
|
|
1348
918
|
}
|
|
1349
919
|
const data = await parseBody(output.body, context);
|
|
1350
920
|
let contents = {};
|
|
@@ -1355,49 +925,9 @@ var de_GetDocumentAnalysisCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1355
925
|
};
|
|
1356
926
|
return response;
|
|
1357
927
|
}, "de_GetDocumentAnalysisCommand");
|
|
1358
|
-
var de_GetDocumentAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1359
|
-
const parsedOutput = {
|
|
1360
|
-
...output,
|
|
1361
|
-
body: await parseErrorBody(output.body, context)
|
|
1362
|
-
};
|
|
1363
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1364
|
-
switch (errorCode) {
|
|
1365
|
-
case "AccessDeniedException":
|
|
1366
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1367
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1368
|
-
case "InternalServerError":
|
|
1369
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1370
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1371
|
-
case "InvalidJobIdException":
|
|
1372
|
-
case "com.amazonaws.textract#InvalidJobIdException":
|
|
1373
|
-
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
1374
|
-
case "InvalidKMSKeyException":
|
|
1375
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1376
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1377
|
-
case "InvalidParameterException":
|
|
1378
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1379
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1380
|
-
case "InvalidS3ObjectException":
|
|
1381
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1382
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1383
|
-
case "ProvisionedThroughputExceededException":
|
|
1384
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1385
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "ThrottlingException":
|
|
1387
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1389
|
-
default:
|
|
1390
|
-
const parsedBody = parsedOutput.body;
|
|
1391
|
-
return throwDefaultError({
|
|
1392
|
-
output,
|
|
1393
|
-
parsedBody,
|
|
1394
|
-
errorCode
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
}, "de_GetDocumentAnalysisCommandError");
|
|
1398
928
|
var de_GetDocumentTextDetectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1399
929
|
if (output.statusCode >= 300) {
|
|
1400
|
-
return
|
|
930
|
+
return de_CommandError(output, context);
|
|
1401
931
|
}
|
|
1402
932
|
const data = await parseBody(output.body, context);
|
|
1403
933
|
let contents = {};
|
|
@@ -1408,49 +938,9 @@ var de_GetDocumentTextDetectionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1408
938
|
};
|
|
1409
939
|
return response;
|
|
1410
940
|
}, "de_GetDocumentTextDetectionCommand");
|
|
1411
|
-
var de_GetDocumentTextDetectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1412
|
-
const parsedOutput = {
|
|
1413
|
-
...output,
|
|
1414
|
-
body: await parseErrorBody(output.body, context)
|
|
1415
|
-
};
|
|
1416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
-
switch (errorCode) {
|
|
1418
|
-
case "AccessDeniedException":
|
|
1419
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1420
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "InternalServerError":
|
|
1422
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1423
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1424
|
-
case "InvalidJobIdException":
|
|
1425
|
-
case "com.amazonaws.textract#InvalidJobIdException":
|
|
1426
|
-
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "InvalidKMSKeyException":
|
|
1428
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1429
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "InvalidParameterException":
|
|
1431
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1432
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "InvalidS3ObjectException":
|
|
1434
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1435
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1436
|
-
case "ProvisionedThroughputExceededException":
|
|
1437
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1438
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1439
|
-
case "ThrottlingException":
|
|
1440
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1441
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1442
|
-
default:
|
|
1443
|
-
const parsedBody = parsedOutput.body;
|
|
1444
|
-
return throwDefaultError({
|
|
1445
|
-
output,
|
|
1446
|
-
parsedBody,
|
|
1447
|
-
errorCode
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
}, "de_GetDocumentTextDetectionCommandError");
|
|
1451
941
|
var de_GetExpenseAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1452
942
|
if (output.statusCode >= 300) {
|
|
1453
|
-
return
|
|
943
|
+
return de_CommandError(output, context);
|
|
1454
944
|
}
|
|
1455
945
|
const data = await parseBody(output.body, context);
|
|
1456
946
|
let contents = {};
|
|
@@ -1461,49 +951,9 @@ var de_GetExpenseAnalysisCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1461
951
|
};
|
|
1462
952
|
return response;
|
|
1463
953
|
}, "de_GetExpenseAnalysisCommand");
|
|
1464
|
-
var de_GetExpenseAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1465
|
-
const parsedOutput = {
|
|
1466
|
-
...output,
|
|
1467
|
-
body: await parseErrorBody(output.body, context)
|
|
1468
|
-
};
|
|
1469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1470
|
-
switch (errorCode) {
|
|
1471
|
-
case "AccessDeniedException":
|
|
1472
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1473
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "InternalServerError":
|
|
1475
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1476
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1477
|
-
case "InvalidJobIdException":
|
|
1478
|
-
case "com.amazonaws.textract#InvalidJobIdException":
|
|
1479
|
-
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
1480
|
-
case "InvalidKMSKeyException":
|
|
1481
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1482
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1483
|
-
case "InvalidParameterException":
|
|
1484
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1485
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1486
|
-
case "InvalidS3ObjectException":
|
|
1487
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1488
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1489
|
-
case "ProvisionedThroughputExceededException":
|
|
1490
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1491
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1492
|
-
case "ThrottlingException":
|
|
1493
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1494
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1495
|
-
default:
|
|
1496
|
-
const parsedBody = parsedOutput.body;
|
|
1497
|
-
return throwDefaultError({
|
|
1498
|
-
output,
|
|
1499
|
-
parsedBody,
|
|
1500
|
-
errorCode
|
|
1501
|
-
});
|
|
1502
|
-
}
|
|
1503
|
-
}, "de_GetExpenseAnalysisCommandError");
|
|
1504
954
|
var de_GetLendingAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1505
955
|
if (output.statusCode >= 300) {
|
|
1506
|
-
return
|
|
956
|
+
return de_CommandError(output, context);
|
|
1507
957
|
}
|
|
1508
958
|
const data = await parseBody(output.body, context);
|
|
1509
959
|
let contents = {};
|
|
@@ -1514,49 +964,9 @@ var de_GetLendingAnalysisCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1514
964
|
};
|
|
1515
965
|
return response;
|
|
1516
966
|
}, "de_GetLendingAnalysisCommand");
|
|
1517
|
-
var de_GetLendingAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1518
|
-
const parsedOutput = {
|
|
1519
|
-
...output,
|
|
1520
|
-
body: await parseErrorBody(output.body, context)
|
|
1521
|
-
};
|
|
1522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1523
|
-
switch (errorCode) {
|
|
1524
|
-
case "AccessDeniedException":
|
|
1525
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1526
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1527
|
-
case "InternalServerError":
|
|
1528
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1529
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1530
|
-
case "InvalidJobIdException":
|
|
1531
|
-
case "com.amazonaws.textract#InvalidJobIdException":
|
|
1532
|
-
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
1533
|
-
case "InvalidKMSKeyException":
|
|
1534
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1535
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1536
|
-
case "InvalidParameterException":
|
|
1537
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1538
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1539
|
-
case "InvalidS3ObjectException":
|
|
1540
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1541
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1542
|
-
case "ProvisionedThroughputExceededException":
|
|
1543
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1544
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1545
|
-
case "ThrottlingException":
|
|
1546
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1547
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1548
|
-
default:
|
|
1549
|
-
const parsedBody = parsedOutput.body;
|
|
1550
|
-
return throwDefaultError({
|
|
1551
|
-
output,
|
|
1552
|
-
parsedBody,
|
|
1553
|
-
errorCode
|
|
1554
|
-
});
|
|
1555
|
-
}
|
|
1556
|
-
}, "de_GetLendingAnalysisCommandError");
|
|
1557
967
|
var de_GetLendingAnalysisSummaryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1558
968
|
if (output.statusCode >= 300) {
|
|
1559
|
-
return
|
|
969
|
+
return de_CommandError(output, context);
|
|
1560
970
|
}
|
|
1561
971
|
const data = await parseBody(output.body, context);
|
|
1562
972
|
let contents = {};
|
|
@@ -1567,49 +977,9 @@ var de_GetLendingAnalysisSummaryCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1567
977
|
};
|
|
1568
978
|
return response;
|
|
1569
979
|
}, "de_GetLendingAnalysisSummaryCommand");
|
|
1570
|
-
var de_GetLendingAnalysisSummaryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1571
|
-
const parsedOutput = {
|
|
1572
|
-
...output,
|
|
1573
|
-
body: await parseErrorBody(output.body, context)
|
|
1574
|
-
};
|
|
1575
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1576
|
-
switch (errorCode) {
|
|
1577
|
-
case "AccessDeniedException":
|
|
1578
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1579
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1580
|
-
case "InternalServerError":
|
|
1581
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1582
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1583
|
-
case "InvalidJobIdException":
|
|
1584
|
-
case "com.amazonaws.textract#InvalidJobIdException":
|
|
1585
|
-
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
1586
|
-
case "InvalidKMSKeyException":
|
|
1587
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1588
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "InvalidParameterException":
|
|
1590
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1591
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "InvalidS3ObjectException":
|
|
1593
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1594
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ProvisionedThroughputExceededException":
|
|
1596
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1597
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1598
|
-
case "ThrottlingException":
|
|
1599
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1600
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1601
|
-
default:
|
|
1602
|
-
const parsedBody = parsedOutput.body;
|
|
1603
|
-
return throwDefaultError({
|
|
1604
|
-
output,
|
|
1605
|
-
parsedBody,
|
|
1606
|
-
errorCode
|
|
1607
|
-
});
|
|
1608
|
-
}
|
|
1609
|
-
}, "de_GetLendingAnalysisSummaryCommandError");
|
|
1610
980
|
var de_ListAdaptersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1611
981
|
if (output.statusCode >= 300) {
|
|
1612
|
-
return
|
|
982
|
+
return de_CommandError(output, context);
|
|
1613
983
|
}
|
|
1614
984
|
const data = await parseBody(output.body, context);
|
|
1615
985
|
let contents = {};
|
|
@@ -1620,273 +990,35 @@ var de_ListAdaptersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1620
990
|
};
|
|
1621
991
|
return response;
|
|
1622
992
|
}, "de_ListAdaptersCommand");
|
|
1623
|
-
var de_ListAdaptersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1624
|
-
const parsedOutput = {
|
|
1625
|
-
...output,
|
|
1626
|
-
body: await parseErrorBody(output.body, context)
|
|
1627
|
-
};
|
|
1628
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1629
|
-
switch (errorCode) {
|
|
1630
|
-
case "AccessDeniedException":
|
|
1631
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1632
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1633
|
-
case "InternalServerError":
|
|
1634
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1635
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1636
|
-
case "InvalidParameterException":
|
|
1637
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1638
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1639
|
-
case "ProvisionedThroughputExceededException":
|
|
1640
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1641
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1642
|
-
case "ThrottlingException":
|
|
1643
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1644
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1645
|
-
case "ValidationException":
|
|
1646
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1647
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1648
|
-
default:
|
|
1649
|
-
const parsedBody = parsedOutput.body;
|
|
1650
|
-
return throwDefaultError({
|
|
1651
|
-
output,
|
|
1652
|
-
parsedBody,
|
|
1653
|
-
errorCode
|
|
1654
|
-
});
|
|
1655
|
-
}
|
|
1656
|
-
}, "de_ListAdaptersCommandError");
|
|
1657
993
|
var de_ListAdapterVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1658
994
|
if (output.statusCode >= 300) {
|
|
1659
|
-
return
|
|
995
|
+
return de_CommandError(output, context);
|
|
1660
996
|
}
|
|
1661
997
|
const data = await parseBody(output.body, context);
|
|
1662
998
|
let contents = {};
|
|
1663
999
|
contents = de_ListAdapterVersionsResponse(data, context);
|
|
1664
|
-
const response = {
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
...contents
|
|
1667
|
-
};
|
|
1668
|
-
return response;
|
|
1669
|
-
}, "de_ListAdapterVersionsCommand");
|
|
1670
|
-
var
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
body: await parseErrorBody(output.body, context)
|
|
1674
|
-
};
|
|
1675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1676
|
-
switch (errorCode) {
|
|
1677
|
-
case "AccessDeniedException":
|
|
1678
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1679
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1680
|
-
case "InternalServerError":
|
|
1681
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1682
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1683
|
-
case "InvalidParameterException":
|
|
1684
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1685
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1686
|
-
case "ProvisionedThroughputExceededException":
|
|
1687
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1688
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1689
|
-
case "ResourceNotFoundException":
|
|
1690
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1691
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1692
|
-
case "ThrottlingException":
|
|
1693
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1694
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1695
|
-
case "ValidationException":
|
|
1696
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1697
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1698
|
-
default:
|
|
1699
|
-
const parsedBody = parsedOutput.body;
|
|
1700
|
-
return throwDefaultError({
|
|
1701
|
-
output,
|
|
1702
|
-
parsedBody,
|
|
1703
|
-
errorCode
|
|
1704
|
-
});
|
|
1705
|
-
}
|
|
1706
|
-
}, "de_ListAdapterVersionsCommandError");
|
|
1707
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1708
|
-
if (output.statusCode >= 300) {
|
|
1709
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
1710
|
-
}
|
|
1711
|
-
const data = await parseBody(output.body, context);
|
|
1712
|
-
let contents = {};
|
|
1713
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1714
|
-
const response = {
|
|
1715
|
-
$metadata: deserializeMetadata(output),
|
|
1716
|
-
...contents
|
|
1717
|
-
};
|
|
1718
|
-
return response;
|
|
1719
|
-
}, "de_ListTagsForResourceCommand");
|
|
1720
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1721
|
-
const parsedOutput = {
|
|
1722
|
-
...output,
|
|
1723
|
-
body: await parseErrorBody(output.body, context)
|
|
1724
|
-
};
|
|
1725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1726
|
-
switch (errorCode) {
|
|
1727
|
-
case "AccessDeniedException":
|
|
1728
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1729
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1730
|
-
case "InternalServerError":
|
|
1731
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1732
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1733
|
-
case "InvalidParameterException":
|
|
1734
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1735
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1736
|
-
case "ProvisionedThroughputExceededException":
|
|
1737
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1738
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ResourceNotFoundException":
|
|
1740
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1741
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "ThrottlingException":
|
|
1743
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1744
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1745
|
-
case "ValidationException":
|
|
1746
|
-
case "com.amazonaws.textract#ValidationException":
|
|
1747
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1748
|
-
default:
|
|
1749
|
-
const parsedBody = parsedOutput.body;
|
|
1750
|
-
return throwDefaultError({
|
|
1751
|
-
output,
|
|
1752
|
-
parsedBody,
|
|
1753
|
-
errorCode
|
|
1754
|
-
});
|
|
1755
|
-
}
|
|
1756
|
-
}, "de_ListTagsForResourceCommandError");
|
|
1757
|
-
var de_StartDocumentAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1758
|
-
if (output.statusCode >= 300) {
|
|
1759
|
-
return de_StartDocumentAnalysisCommandError(output, context);
|
|
1760
|
-
}
|
|
1761
|
-
const data = await parseBody(output.body, context);
|
|
1762
|
-
let contents = {};
|
|
1763
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1764
|
-
const response = {
|
|
1765
|
-
$metadata: deserializeMetadata(output),
|
|
1766
|
-
...contents
|
|
1767
|
-
};
|
|
1768
|
-
return response;
|
|
1769
|
-
}, "de_StartDocumentAnalysisCommand");
|
|
1770
|
-
var de_StartDocumentAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1771
|
-
const parsedOutput = {
|
|
1772
|
-
...output,
|
|
1773
|
-
body: await parseErrorBody(output.body, context)
|
|
1774
|
-
};
|
|
1775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1776
|
-
switch (errorCode) {
|
|
1777
|
-
case "AccessDeniedException":
|
|
1778
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1779
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "BadDocumentException":
|
|
1781
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
1782
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
1783
|
-
case "DocumentTooLargeException":
|
|
1784
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
1785
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
1786
|
-
case "IdempotentParameterMismatchException":
|
|
1787
|
-
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
1788
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1789
|
-
case "InternalServerError":
|
|
1790
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1791
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1792
|
-
case "InvalidKMSKeyException":
|
|
1793
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1794
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1795
|
-
case "InvalidParameterException":
|
|
1796
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1797
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1798
|
-
case "InvalidS3ObjectException":
|
|
1799
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1800
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1801
|
-
case "LimitExceededException":
|
|
1802
|
-
case "com.amazonaws.textract#LimitExceededException":
|
|
1803
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1804
|
-
case "ProvisionedThroughputExceededException":
|
|
1805
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1806
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ThrottlingException":
|
|
1808
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1809
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "UnsupportedDocumentException":
|
|
1811
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
1812
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
1813
|
-
default:
|
|
1814
|
-
const parsedBody = parsedOutput.body;
|
|
1815
|
-
return throwDefaultError({
|
|
1816
|
-
output,
|
|
1817
|
-
parsedBody,
|
|
1818
|
-
errorCode
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
}, "de_StartDocumentAnalysisCommandError");
|
|
1822
|
-
var de_StartDocumentTextDetectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1823
|
-
if (output.statusCode >= 300) {
|
|
1824
|
-
return de_StartDocumentTextDetectionCommandError(output, context);
|
|
1825
|
-
}
|
|
1826
|
-
const data = await parseBody(output.body, context);
|
|
1827
|
-
let contents = {};
|
|
1828
|
-
contents = (0, import_smithy_client._json)(data);
|
|
1829
|
-
const response = {
|
|
1830
|
-
$metadata: deserializeMetadata(output),
|
|
1831
|
-
...contents
|
|
1832
|
-
};
|
|
1833
|
-
return response;
|
|
1834
|
-
}, "de_StartDocumentTextDetectionCommand");
|
|
1835
|
-
var de_StartDocumentTextDetectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1836
|
-
const parsedOutput = {
|
|
1837
|
-
...output,
|
|
1838
|
-
body: await parseErrorBody(output.body, context)
|
|
1839
|
-
};
|
|
1840
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1841
|
-
switch (errorCode) {
|
|
1842
|
-
case "AccessDeniedException":
|
|
1843
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1844
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1845
|
-
case "BadDocumentException":
|
|
1846
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
1847
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
1848
|
-
case "DocumentTooLargeException":
|
|
1849
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
1850
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
1851
|
-
case "IdempotentParameterMismatchException":
|
|
1852
|
-
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
1853
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1854
|
-
case "InternalServerError":
|
|
1855
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1856
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1857
|
-
case "InvalidKMSKeyException":
|
|
1858
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1859
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1860
|
-
case "InvalidParameterException":
|
|
1861
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1862
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1863
|
-
case "InvalidS3ObjectException":
|
|
1864
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1865
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1866
|
-
case "LimitExceededException":
|
|
1867
|
-
case "com.amazonaws.textract#LimitExceededException":
|
|
1868
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1869
|
-
case "ProvisionedThroughputExceededException":
|
|
1870
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1871
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1872
|
-
case "ThrottlingException":
|
|
1873
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1874
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "UnsupportedDocumentException":
|
|
1876
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
1877
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
1878
|
-
default:
|
|
1879
|
-
const parsedBody = parsedOutput.body;
|
|
1880
|
-
return throwDefaultError({
|
|
1881
|
-
output,
|
|
1882
|
-
parsedBody,
|
|
1883
|
-
errorCode
|
|
1884
|
-
});
|
|
1000
|
+
const response = {
|
|
1001
|
+
$metadata: deserializeMetadata(output),
|
|
1002
|
+
...contents
|
|
1003
|
+
};
|
|
1004
|
+
return response;
|
|
1005
|
+
}, "de_ListAdapterVersionsCommand");
|
|
1006
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1007
|
+
if (output.statusCode >= 300) {
|
|
1008
|
+
return de_CommandError(output, context);
|
|
1885
1009
|
}
|
|
1886
|
-
|
|
1887
|
-
|
|
1010
|
+
const data = await parseBody(output.body, context);
|
|
1011
|
+
let contents = {};
|
|
1012
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1013
|
+
const response = {
|
|
1014
|
+
$metadata: deserializeMetadata(output),
|
|
1015
|
+
...contents
|
|
1016
|
+
};
|
|
1017
|
+
return response;
|
|
1018
|
+
}, "de_ListTagsForResourceCommand");
|
|
1019
|
+
var de_StartDocumentAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1888
1020
|
if (output.statusCode >= 300) {
|
|
1889
|
-
return
|
|
1021
|
+
return de_CommandError(output, context);
|
|
1890
1022
|
}
|
|
1891
1023
|
const data = await parseBody(output.body, context);
|
|
1892
1024
|
let contents = {};
|
|
@@ -1896,62 +1028,36 @@ var de_StartExpenseAnalysisCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1896
1028
|
...contents
|
|
1897
1029
|
};
|
|
1898
1030
|
return response;
|
|
1899
|
-
}, "
|
|
1900
|
-
var
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1031
|
+
}, "de_StartDocumentAnalysisCommand");
|
|
1032
|
+
var de_StartDocumentTextDetectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1033
|
+
if (output.statusCode >= 300) {
|
|
1034
|
+
return de_CommandError(output, context);
|
|
1035
|
+
}
|
|
1036
|
+
const data = await parseBody(output.body, context);
|
|
1037
|
+
let contents = {};
|
|
1038
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1039
|
+
const response = {
|
|
1040
|
+
$metadata: deserializeMetadata(output),
|
|
1041
|
+
...contents
|
|
1904
1042
|
};
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
case "BadDocumentException":
|
|
1911
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
1912
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
1913
|
-
case "DocumentTooLargeException":
|
|
1914
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
1915
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "IdempotentParameterMismatchException":
|
|
1917
|
-
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
1918
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "InternalServerError":
|
|
1920
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1921
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1922
|
-
case "InvalidKMSKeyException":
|
|
1923
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1924
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1925
|
-
case "InvalidParameterException":
|
|
1926
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1927
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "InvalidS3ObjectException":
|
|
1929
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1930
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "LimitExceededException":
|
|
1932
|
-
case "com.amazonaws.textract#LimitExceededException":
|
|
1933
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1934
|
-
case "ProvisionedThroughputExceededException":
|
|
1935
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
1936
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
1937
|
-
case "ThrottlingException":
|
|
1938
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
1939
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1940
|
-
case "UnsupportedDocumentException":
|
|
1941
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
1942
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
1943
|
-
default:
|
|
1944
|
-
const parsedBody = parsedOutput.body;
|
|
1945
|
-
return throwDefaultError({
|
|
1946
|
-
output,
|
|
1947
|
-
parsedBody,
|
|
1948
|
-
errorCode
|
|
1949
|
-
});
|
|
1043
|
+
return response;
|
|
1044
|
+
}, "de_StartDocumentTextDetectionCommand");
|
|
1045
|
+
var de_StartExpenseAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1046
|
+
if (output.statusCode >= 300) {
|
|
1047
|
+
return de_CommandError(output, context);
|
|
1950
1048
|
}
|
|
1951
|
-
|
|
1049
|
+
const data = await parseBody(output.body, context);
|
|
1050
|
+
let contents = {};
|
|
1051
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1052
|
+
const response = {
|
|
1053
|
+
$metadata: deserializeMetadata(output),
|
|
1054
|
+
...contents
|
|
1055
|
+
};
|
|
1056
|
+
return response;
|
|
1057
|
+
}, "de_StartExpenseAnalysisCommand");
|
|
1952
1058
|
var de_StartLendingAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1953
1059
|
if (output.statusCode >= 300) {
|
|
1954
|
-
return
|
|
1060
|
+
return de_CommandError(output, context);
|
|
1955
1061
|
}
|
|
1956
1062
|
const data = await parseBody(output.body, context);
|
|
1957
1063
|
let contents = {};
|
|
@@ -1962,61 +1068,9 @@ var de_StartLendingAnalysisCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1962
1068
|
};
|
|
1963
1069
|
return response;
|
|
1964
1070
|
}, "de_StartLendingAnalysisCommand");
|
|
1965
|
-
var de_StartLendingAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1966
|
-
const parsedOutput = {
|
|
1967
|
-
...output,
|
|
1968
|
-
body: await parseErrorBody(output.body, context)
|
|
1969
|
-
};
|
|
1970
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1971
|
-
switch (errorCode) {
|
|
1972
|
-
case "AccessDeniedException":
|
|
1973
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
1974
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "BadDocumentException":
|
|
1976
|
-
case "com.amazonaws.textract#BadDocumentException":
|
|
1977
|
-
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
1978
|
-
case "DocumentTooLargeException":
|
|
1979
|
-
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
1980
|
-
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
1981
|
-
case "IdempotentParameterMismatchException":
|
|
1982
|
-
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
1983
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1984
|
-
case "InternalServerError":
|
|
1985
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
1986
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
1987
|
-
case "InvalidKMSKeyException":
|
|
1988
|
-
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1989
|
-
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1990
|
-
case "InvalidParameterException":
|
|
1991
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
1992
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1993
|
-
case "InvalidS3ObjectException":
|
|
1994
|
-
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1995
|
-
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
1996
|
-
case "LimitExceededException":
|
|
1997
|
-
case "com.amazonaws.textract#LimitExceededException":
|
|
1998
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1999
|
-
case "ProvisionedThroughputExceededException":
|
|
2000
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
2001
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2002
|
-
case "ThrottlingException":
|
|
2003
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
2004
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2005
|
-
case "UnsupportedDocumentException":
|
|
2006
|
-
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
2007
|
-
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
2008
|
-
default:
|
|
2009
|
-
const parsedBody = parsedOutput.body;
|
|
2010
|
-
return throwDefaultError({
|
|
2011
|
-
output,
|
|
2012
|
-
parsedBody,
|
|
2013
|
-
errorCode
|
|
2014
|
-
});
|
|
2015
|
-
}
|
|
2016
|
-
}, "de_StartLendingAnalysisCommandError");
|
|
2017
1071
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2018
1072
|
if (output.statusCode >= 300) {
|
|
2019
|
-
return
|
|
1073
|
+
return de_CommandError(output, context);
|
|
2020
1074
|
}
|
|
2021
1075
|
const data = await parseBody(output.body, context);
|
|
2022
1076
|
let contents = {};
|
|
@@ -2027,49 +1081,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2027
1081
|
};
|
|
2028
1082
|
return response;
|
|
2029
1083
|
}, "de_TagResourceCommand");
|
|
2030
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2031
|
-
const parsedOutput = {
|
|
2032
|
-
...output,
|
|
2033
|
-
body: await parseErrorBody(output.body, context)
|
|
2034
|
-
};
|
|
2035
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2036
|
-
switch (errorCode) {
|
|
2037
|
-
case "AccessDeniedException":
|
|
2038
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
2039
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "InternalServerError":
|
|
2041
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
2042
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2043
|
-
case "InvalidParameterException":
|
|
2044
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
2045
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "ProvisionedThroughputExceededException":
|
|
2047
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
2048
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ResourceNotFoundException":
|
|
2050
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
2051
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "ServiceQuotaExceededException":
|
|
2053
|
-
case "com.amazonaws.textract#ServiceQuotaExceededException":
|
|
2054
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ThrottlingException":
|
|
2056
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
2057
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2058
|
-
case "ValidationException":
|
|
2059
|
-
case "com.amazonaws.textract#ValidationException":
|
|
2060
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2061
|
-
default:
|
|
2062
|
-
const parsedBody = parsedOutput.body;
|
|
2063
|
-
return throwDefaultError({
|
|
2064
|
-
output,
|
|
2065
|
-
parsedBody,
|
|
2066
|
-
errorCode
|
|
2067
|
-
});
|
|
2068
|
-
}
|
|
2069
|
-
}, "de_TagResourceCommandError");
|
|
2070
1084
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2071
1085
|
if (output.statusCode >= 300) {
|
|
2072
|
-
return
|
|
1086
|
+
return de_CommandError(output, context);
|
|
2073
1087
|
}
|
|
2074
1088
|
const data = await parseBody(output.body, context);
|
|
2075
1089
|
let contents = {};
|
|
@@ -2080,46 +1094,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2080
1094
|
};
|
|
2081
1095
|
return response;
|
|
2082
1096
|
}, "de_UntagResourceCommand");
|
|
2083
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
|
-
const parsedOutput = {
|
|
2085
|
-
...output,
|
|
2086
|
-
body: await parseErrorBody(output.body, context)
|
|
2087
|
-
};
|
|
2088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
-
switch (errorCode) {
|
|
2090
|
-
case "AccessDeniedException":
|
|
2091
|
-
case "com.amazonaws.textract#AccessDeniedException":
|
|
2092
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "InternalServerError":
|
|
2094
|
-
case "com.amazonaws.textract#InternalServerError":
|
|
2095
|
-
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2096
|
-
case "InvalidParameterException":
|
|
2097
|
-
case "com.amazonaws.textract#InvalidParameterException":
|
|
2098
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "ProvisionedThroughputExceededException":
|
|
2100
|
-
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
2101
|
-
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "ResourceNotFoundException":
|
|
2103
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
2104
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "ThrottlingException":
|
|
2106
|
-
case "com.amazonaws.textract#ThrottlingException":
|
|
2107
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "ValidationException":
|
|
2109
|
-
case "com.amazonaws.textract#ValidationException":
|
|
2110
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2111
|
-
default:
|
|
2112
|
-
const parsedBody = parsedOutput.body;
|
|
2113
|
-
return throwDefaultError({
|
|
2114
|
-
output,
|
|
2115
|
-
parsedBody,
|
|
2116
|
-
errorCode
|
|
2117
|
-
});
|
|
2118
|
-
}
|
|
2119
|
-
}, "de_UntagResourceCommandError");
|
|
2120
1097
|
var de_UpdateAdapterCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2121
1098
|
if (output.statusCode >= 300) {
|
|
2122
|
-
return
|
|
1099
|
+
return de_CommandError(output, context);
|
|
2123
1100
|
}
|
|
2124
1101
|
const data = await parseBody(output.body, context);
|
|
2125
1102
|
let contents = {};
|
|
@@ -2130,7 +1107,7 @@ var de_UpdateAdapterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2130
1107
|
};
|
|
2131
1108
|
return response;
|
|
2132
1109
|
}, "de_UpdateAdapterCommand");
|
|
2133
|
-
var
|
|
1110
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2134
1111
|
const parsedOutput = {
|
|
2135
1112
|
...output,
|
|
2136
1113
|
body: await parseErrorBody(output.body, context)
|
|
@@ -2140,27 +1117,57 @@ var de_UpdateAdapterCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2140
1117
|
case "AccessDeniedException":
|
|
2141
1118
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
2142
1119
|
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2143
|
-
case "
|
|
2144
|
-
case "com.amazonaws.textract#
|
|
2145
|
-
throw await
|
|
1120
|
+
case "BadDocumentException":
|
|
1121
|
+
case "com.amazonaws.textract#BadDocumentException":
|
|
1122
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
1123
|
+
case "DocumentTooLargeException":
|
|
1124
|
+
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
1125
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
1126
|
+
case "HumanLoopQuotaExceededException":
|
|
1127
|
+
case "com.amazonaws.textract#HumanLoopQuotaExceededException":
|
|
1128
|
+
throw await de_HumanLoopQuotaExceededExceptionRes(parsedOutput, context);
|
|
2146
1129
|
case "InternalServerError":
|
|
2147
1130
|
case "com.amazonaws.textract#InternalServerError":
|
|
2148
1131
|
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
2149
1132
|
case "InvalidParameterException":
|
|
2150
1133
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
2151
1134
|
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1135
|
+
case "InvalidS3ObjectException":
|
|
1136
|
+
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
1137
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
2152
1138
|
case "ProvisionedThroughputExceededException":
|
|
2153
1139
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
2154
1140
|
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "ResourceNotFoundException":
|
|
2156
|
-
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
2157
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2158
1141
|
case "ThrottlingException":
|
|
2159
1142
|
case "com.amazonaws.textract#ThrottlingException":
|
|
2160
1143
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1144
|
+
case "UnsupportedDocumentException":
|
|
1145
|
+
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
1146
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
1147
|
+
case "ConflictException":
|
|
1148
|
+
case "com.amazonaws.textract#ConflictException":
|
|
1149
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "IdempotentParameterMismatchException":
|
|
1151
|
+
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
1152
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1153
|
+
case "LimitExceededException":
|
|
1154
|
+
case "com.amazonaws.textract#LimitExceededException":
|
|
1155
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1156
|
+
case "ServiceQuotaExceededException":
|
|
1157
|
+
case "com.amazonaws.textract#ServiceQuotaExceededException":
|
|
1158
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2161
1159
|
case "ValidationException":
|
|
2162
1160
|
case "com.amazonaws.textract#ValidationException":
|
|
2163
1161
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1162
|
+
case "InvalidKMSKeyException":
|
|
1163
|
+
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
1164
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
1165
|
+
case "ResourceNotFoundException":
|
|
1166
|
+
case "com.amazonaws.textract#ResourceNotFoundException":
|
|
1167
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1168
|
+
case "InvalidJobIdException":
|
|
1169
|
+
case "com.amazonaws.textract#InvalidJobIdException":
|
|
1170
|
+
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
2164
1171
|
default:
|
|
2165
1172
|
const parsedBody = parsedOutput.body;
|
|
2166
1173
|
return throwDefaultError({
|
|
@@ -2169,7 +1176,7 @@ var de_UpdateAdapterCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
2169
1176
|
errorCode
|
|
2170
1177
|
});
|
|
2171
1178
|
}
|
|
2172
|
-
}, "
|
|
1179
|
+
}, "de_CommandError");
|
|
2173
1180
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
2174
1181
|
const body = parsedOutput.body;
|
|
2175
1182
|
const deserialized = (0, import_smithy_client._json)(body);
|