@aws-sdk/client-comprehendmedical 3.523.0 → 3.529.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 +29 -69
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/ComprehendMedical.js +0 -1
- package/dist-cjs/ComprehendMedicalClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/DescribePHIDetectionJobCommand.js +0 -1
- package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/DescribeSNOMEDCTInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/DetectEntitiesCommand.js +0 -1
- package/dist-cjs/commands/DetectEntitiesV2Command.js +0 -1
- package/dist-cjs/commands/DetectPHICommand.js +0 -1
- package/dist-cjs/commands/InferICD10CMCommand.js +0 -1
- package/dist-cjs/commands/InferRxNormCommand.js +0 -1
- package/dist-cjs/commands/InferSNOMEDCTCommand.js +0 -1
- package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js +0 -1
- package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js +0 -1
- package/dist-cjs/commands/ListPHIDetectionJobsCommand.js +0 -1
- package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js +0 -1
- package/dist-cjs/commands/ListSNOMEDCTInferenceJobsCommand.js +0 -1
- package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/StartPHIDetectionJobCommand.js +0 -1
- package/dist-cjs/commands/StartRxNormInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/StartSNOMEDCTInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/StopPHIDetectionJobCommand.js +0 -1
- package/dist-cjs/commands/StopRxNormInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/StopSNOMEDCTInferenceJobCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/ComprehendMedicalServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -235,6 +235,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
235
235
|
var import_types = require("@smithy/types");
|
|
236
236
|
|
|
237
237
|
// src/protocols/Aws_json1_1.ts
|
|
238
|
+
var import_core2 = require("@aws-sdk/core");
|
|
238
239
|
|
|
239
240
|
|
|
240
241
|
var import_uuid = require("uuid");
|
|
@@ -752,7 +753,7 @@ var de_DescribeEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (out
|
|
|
752
753
|
if (output.statusCode >= 300) {
|
|
753
754
|
return de_CommandError(output, context);
|
|
754
755
|
}
|
|
755
|
-
const data = await
|
|
756
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
756
757
|
let contents = {};
|
|
757
758
|
contents = de_DescribeEntitiesDetectionV2JobResponse(data, context);
|
|
758
759
|
const response = {
|
|
@@ -765,7 +766,7 @@ var de_DescribeICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (output
|
|
|
765
766
|
if (output.statusCode >= 300) {
|
|
766
767
|
return de_CommandError(output, context);
|
|
767
768
|
}
|
|
768
|
-
const data = await
|
|
769
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
769
770
|
let contents = {};
|
|
770
771
|
contents = de_DescribeICD10CMInferenceJobResponse(data, context);
|
|
771
772
|
const response = {
|
|
@@ -778,7 +779,7 @@ var de_DescribePHIDetectionJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
778
779
|
if (output.statusCode >= 300) {
|
|
779
780
|
return de_CommandError(output, context);
|
|
780
781
|
}
|
|
781
|
-
const data = await
|
|
782
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
782
783
|
let contents = {};
|
|
783
784
|
contents = de_DescribePHIDetectionJobResponse(data, context);
|
|
784
785
|
const response = {
|
|
@@ -791,7 +792,7 @@ var de_DescribeRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
791
792
|
if (output.statusCode >= 300) {
|
|
792
793
|
return de_CommandError(output, context);
|
|
793
794
|
}
|
|
794
|
-
const data = await
|
|
795
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
795
796
|
let contents = {};
|
|
796
797
|
contents = de_DescribeRxNormInferenceJobResponse(data, context);
|
|
797
798
|
const response = {
|
|
@@ -804,7 +805,7 @@ var de_DescribeSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
804
805
|
if (output.statusCode >= 300) {
|
|
805
806
|
return de_CommandError(output, context);
|
|
806
807
|
}
|
|
807
|
-
const data = await
|
|
808
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
808
809
|
let contents = {};
|
|
809
810
|
contents = de_DescribeSNOMEDCTInferenceJobResponse(data, context);
|
|
810
811
|
const response = {
|
|
@@ -817,7 +818,7 @@ var de_DetectEntitiesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
817
818
|
if (output.statusCode >= 300) {
|
|
818
819
|
return de_CommandError(output, context);
|
|
819
820
|
}
|
|
820
|
-
const data = await
|
|
821
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
821
822
|
let contents = {};
|
|
822
823
|
contents = de_DetectEntitiesResponse(data, context);
|
|
823
824
|
const response = {
|
|
@@ -830,7 +831,7 @@ var de_DetectEntitiesV2Command = /* @__PURE__ */ __name(async (output, context)
|
|
|
830
831
|
if (output.statusCode >= 300) {
|
|
831
832
|
return de_CommandError(output, context);
|
|
832
833
|
}
|
|
833
|
-
const data = await
|
|
834
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
834
835
|
let contents = {};
|
|
835
836
|
contents = de_DetectEntitiesV2Response(data, context);
|
|
836
837
|
const response = {
|
|
@@ -843,7 +844,7 @@ var de_DetectPHICommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
843
844
|
if (output.statusCode >= 300) {
|
|
844
845
|
return de_CommandError(output, context);
|
|
845
846
|
}
|
|
846
|
-
const data = await
|
|
847
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
847
848
|
let contents = {};
|
|
848
849
|
contents = de_DetectPHIResponse(data, context);
|
|
849
850
|
const response = {
|
|
@@ -856,7 +857,7 @@ var de_InferICD10CMCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
856
857
|
if (output.statusCode >= 300) {
|
|
857
858
|
return de_CommandError(output, context);
|
|
858
859
|
}
|
|
859
|
-
const data = await
|
|
860
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
860
861
|
let contents = {};
|
|
861
862
|
contents = de_InferICD10CMResponse(data, context);
|
|
862
863
|
const response = {
|
|
@@ -869,7 +870,7 @@ var de_InferRxNormCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
869
870
|
if (output.statusCode >= 300) {
|
|
870
871
|
return de_CommandError(output, context);
|
|
871
872
|
}
|
|
872
|
-
const data = await
|
|
873
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
873
874
|
let contents = {};
|
|
874
875
|
contents = de_InferRxNormResponse(data, context);
|
|
875
876
|
const response = {
|
|
@@ -882,7 +883,7 @@ var de_InferSNOMEDCTCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
882
883
|
if (output.statusCode >= 300) {
|
|
883
884
|
return de_CommandError(output, context);
|
|
884
885
|
}
|
|
885
|
-
const data = await
|
|
886
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
886
887
|
let contents = {};
|
|
887
888
|
contents = de_InferSNOMEDCTResponse(data, context);
|
|
888
889
|
const response = {
|
|
@@ -895,7 +896,7 @@ var de_ListEntitiesDetectionV2JobsCommand = /* @__PURE__ */ __name(async (output
|
|
|
895
896
|
if (output.statusCode >= 300) {
|
|
896
897
|
return de_CommandError(output, context);
|
|
897
898
|
}
|
|
898
|
-
const data = await
|
|
899
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
899
900
|
let contents = {};
|
|
900
901
|
contents = de_ListEntitiesDetectionV2JobsResponse(data, context);
|
|
901
902
|
const response = {
|
|
@@ -908,7 +909,7 @@ var de_ListICD10CMInferenceJobsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
908
909
|
if (output.statusCode >= 300) {
|
|
909
910
|
return de_CommandError(output, context);
|
|
910
911
|
}
|
|
911
|
-
const data = await
|
|
912
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
912
913
|
let contents = {};
|
|
913
914
|
contents = de_ListICD10CMInferenceJobsResponse(data, context);
|
|
914
915
|
const response = {
|
|
@@ -921,7 +922,7 @@ var de_ListPHIDetectionJobsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
921
922
|
if (output.statusCode >= 300) {
|
|
922
923
|
return de_CommandError(output, context);
|
|
923
924
|
}
|
|
924
|
-
const data = await
|
|
925
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
925
926
|
let contents = {};
|
|
926
927
|
contents = de_ListPHIDetectionJobsResponse(data, context);
|
|
927
928
|
const response = {
|
|
@@ -934,7 +935,7 @@ var de_ListRxNormInferenceJobsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
934
935
|
if (output.statusCode >= 300) {
|
|
935
936
|
return de_CommandError(output, context);
|
|
936
937
|
}
|
|
937
|
-
const data = await
|
|
938
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
938
939
|
let contents = {};
|
|
939
940
|
contents = de_ListRxNormInferenceJobsResponse(data, context);
|
|
940
941
|
const response = {
|
|
@@ -947,7 +948,7 @@ var de_ListSNOMEDCTInferenceJobsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
947
948
|
if (output.statusCode >= 300) {
|
|
948
949
|
return de_CommandError(output, context);
|
|
949
950
|
}
|
|
950
|
-
const data = await
|
|
951
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
951
952
|
let contents = {};
|
|
952
953
|
contents = de_ListSNOMEDCTInferenceJobsResponse(data, context);
|
|
953
954
|
const response = {
|
|
@@ -960,7 +961,7 @@ var de_StartEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (output
|
|
|
960
961
|
if (output.statusCode >= 300) {
|
|
961
962
|
return de_CommandError(output, context);
|
|
962
963
|
}
|
|
963
|
-
const data = await
|
|
964
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
964
965
|
let contents = {};
|
|
965
966
|
contents = (0, import_smithy_client._json)(data);
|
|
966
967
|
const response = {
|
|
@@ -973,7 +974,7 @@ var de_StartICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
973
974
|
if (output.statusCode >= 300) {
|
|
974
975
|
return de_CommandError(output, context);
|
|
975
976
|
}
|
|
976
|
-
const data = await
|
|
977
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
977
978
|
let contents = {};
|
|
978
979
|
contents = (0, import_smithy_client._json)(data);
|
|
979
980
|
const response = {
|
|
@@ -986,7 +987,7 @@ var de_StartPHIDetectionJobCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
986
987
|
if (output.statusCode >= 300) {
|
|
987
988
|
return de_CommandError(output, context);
|
|
988
989
|
}
|
|
989
|
-
const data = await
|
|
990
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
990
991
|
let contents = {};
|
|
991
992
|
contents = (0, import_smithy_client._json)(data);
|
|
992
993
|
const response = {
|
|
@@ -999,7 +1000,7 @@ var de_StartRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
999
1000
|
if (output.statusCode >= 300) {
|
|
1000
1001
|
return de_CommandError(output, context);
|
|
1001
1002
|
}
|
|
1002
|
-
const data = await
|
|
1003
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1003
1004
|
let contents = {};
|
|
1004
1005
|
contents = (0, import_smithy_client._json)(data);
|
|
1005
1006
|
const response = {
|
|
@@ -1012,7 +1013,7 @@ var de_StartSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1012
1013
|
if (output.statusCode >= 300) {
|
|
1013
1014
|
return de_CommandError(output, context);
|
|
1014
1015
|
}
|
|
1015
|
-
const data = await
|
|
1016
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1016
1017
|
let contents = {};
|
|
1017
1018
|
contents = (0, import_smithy_client._json)(data);
|
|
1018
1019
|
const response = {
|
|
@@ -1025,7 +1026,7 @@ var de_StopEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1025
1026
|
if (output.statusCode >= 300) {
|
|
1026
1027
|
return de_CommandError(output, context);
|
|
1027
1028
|
}
|
|
1028
|
-
const data = await
|
|
1029
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1029
1030
|
let contents = {};
|
|
1030
1031
|
contents = (0, import_smithy_client._json)(data);
|
|
1031
1032
|
const response = {
|
|
@@ -1038,7 +1039,7 @@ var de_StopICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1038
1039
|
if (output.statusCode >= 300) {
|
|
1039
1040
|
return de_CommandError(output, context);
|
|
1040
1041
|
}
|
|
1041
|
-
const data = await
|
|
1042
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1042
1043
|
let contents = {};
|
|
1043
1044
|
contents = (0, import_smithy_client._json)(data);
|
|
1044
1045
|
const response = {
|
|
@@ -1051,7 +1052,7 @@ var de_StopPHIDetectionJobCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1051
1052
|
if (output.statusCode >= 300) {
|
|
1052
1053
|
return de_CommandError(output, context);
|
|
1053
1054
|
}
|
|
1054
|
-
const data = await
|
|
1055
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1055
1056
|
let contents = {};
|
|
1056
1057
|
contents = (0, import_smithy_client._json)(data);
|
|
1057
1058
|
const response = {
|
|
@@ -1064,7 +1065,7 @@ var de_StopRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1064
1065
|
if (output.statusCode >= 300) {
|
|
1065
1066
|
return de_CommandError(output, context);
|
|
1066
1067
|
}
|
|
1067
|
-
const data = await
|
|
1068
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1068
1069
|
let contents = {};
|
|
1069
1070
|
contents = (0, import_smithy_client._json)(data);
|
|
1070
1071
|
const response = {
|
|
@@ -1077,7 +1078,7 @@ var de_StopSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1077
1078
|
if (output.statusCode >= 300) {
|
|
1078
1079
|
return de_CommandError(output, context);
|
|
1079
1080
|
}
|
|
1080
|
-
const data = await
|
|
1081
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1081
1082
|
let contents = {};
|
|
1082
1083
|
contents = (0, import_smithy_client._json)(data);
|
|
1083
1084
|
const response = {
|
|
@@ -1089,9 +1090,9 @@ var de_StopSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1089
1090
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1090
1091
|
const parsedOutput = {
|
|
1091
1092
|
...output,
|
|
1092
|
-
body: await
|
|
1093
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1093
1094
|
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1095
1096
|
switch (errorCode) {
|
|
1096
1097
|
case "InternalServerException":
|
|
1097
1098
|
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
@@ -1684,7 +1685,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1684
1685
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1685
1686
|
cfId: output.headers["x-amz-cf-id"]
|
|
1686
1687
|
}), "deserializeMetadata");
|
|
1687
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1688
1688
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ComprehendMedicalServiceException);
|
|
1689
1689
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1690
1690
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1711,46 +1711,6 @@ function sharedHeaders(operation) {
|
|
|
1711
1711
|
};
|
|
1712
1712
|
}
|
|
1713
1713
|
__name(sharedHeaders, "sharedHeaders");
|
|
1714
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1715
|
-
if (encoded.length) {
|
|
1716
|
-
return JSON.parse(encoded);
|
|
1717
|
-
}
|
|
1718
|
-
return {};
|
|
1719
|
-
}), "parseBody");
|
|
1720
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1721
|
-
const value = await parseBody(errorBody, context);
|
|
1722
|
-
value.message = value.message ?? value.Message;
|
|
1723
|
-
return value;
|
|
1724
|
-
}, "parseErrorBody");
|
|
1725
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1726
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1727
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1728
|
-
let cleanValue = rawValue;
|
|
1729
|
-
if (typeof cleanValue === "number") {
|
|
1730
|
-
cleanValue = cleanValue.toString();
|
|
1731
|
-
}
|
|
1732
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1733
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1734
|
-
}
|
|
1735
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1736
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1737
|
-
}
|
|
1738
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1739
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1740
|
-
}
|
|
1741
|
-
return cleanValue;
|
|
1742
|
-
}, "sanitizeErrorCode");
|
|
1743
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1744
|
-
if (headerKey !== void 0) {
|
|
1745
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1746
|
-
}
|
|
1747
|
-
if (data.code !== void 0) {
|
|
1748
|
-
return sanitizeErrorCode(data.code);
|
|
1749
|
-
}
|
|
1750
|
-
if (data["__type"] !== void 0) {
|
|
1751
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1752
|
-
}
|
|
1753
|
-
}, "loadRestJsonErrorCode");
|
|
1754
1714
|
|
|
1755
1715
|
// src/commands/DescribeEntitiesDetectionV2JobCommand.ts
|
|
1756
1716
|
var _DescribeEntitiesDetectionV2JobCommand = class _DescribeEntitiesDetectionV2JobCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1155,43 +1156,3 @@ function sharedHeaders(operation) {
|
|
|
1155
1156
|
"x-amz-target": `ComprehendMedical_20181030.${operation}`,
|
|
1156
1157
|
};
|
|
1157
1158
|
}
|
|
1158
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1159
|
-
if (encoded.length) {
|
|
1160
|
-
return JSON.parse(encoded);
|
|
1161
|
-
}
|
|
1162
|
-
return {};
|
|
1163
|
-
});
|
|
1164
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1165
|
-
const value = await parseBody(errorBody, context);
|
|
1166
|
-
value.message = value.message ?? value.Message;
|
|
1167
|
-
return value;
|
|
1168
|
-
};
|
|
1169
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1170
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1171
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1172
|
-
let cleanValue = rawValue;
|
|
1173
|
-
if (typeof cleanValue === "number") {
|
|
1174
|
-
cleanValue = cleanValue.toString();
|
|
1175
|
-
}
|
|
1176
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1177
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1178
|
-
}
|
|
1179
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1180
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1181
|
-
}
|
|
1182
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1183
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1184
|
-
}
|
|
1185
|
-
return cleanValue;
|
|
1186
|
-
};
|
|
1187
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1188
|
-
if (headerKey !== undefined) {
|
|
1189
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1190
|
-
}
|
|
1191
|
-
if (data.code !== undefined) {
|
|
1192
|
-
return sanitizeErrorCode(data.code);
|
|
1193
|
-
}
|
|
1194
|
-
if (data["__type"] !== undefined) {
|
|
1195
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1196
|
-
}
|
|
1197
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-comprehendmedical",
|
|
3
3
|
"description": "AWS SDK for JavaScript Comprehendmedical Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.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-comprehendmedical",
|
|
@@ -20,40 +20,40 @@
|
|
|
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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|