@aws-sdk/client-comprehendmedical 3.180.0 → 3.183.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/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +32 -26
- package/dist-es/ComprehendMedical.js +106 -113
- package/dist-es/ComprehendMedicalClient.js +22 -28
- package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +21 -28
- package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +21 -28
- package/dist-es/commands/DescribePHIDetectionJobCommand.js +21 -28
- package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +21 -28
- package/dist-es/commands/DescribeSNOMEDCTInferenceJobCommand.js +21 -28
- package/dist-es/commands/DetectEntitiesCommand.js +21 -28
- package/dist-es/commands/DetectEntitiesV2Command.js +21 -28
- package/dist-es/commands/DetectPHICommand.js +21 -28
- package/dist-es/commands/InferICD10CMCommand.js +21 -28
- package/dist-es/commands/InferRxNormCommand.js +21 -28
- package/dist-es/commands/InferSNOMEDCTCommand.js +21 -28
- package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +21 -28
- package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +21 -28
- package/dist-es/commands/ListPHIDetectionJobsCommand.js +21 -28
- package/dist-es/commands/ListRxNormInferenceJobsCommand.js +21 -28
- package/dist-es/commands/ListSNOMEDCTInferenceJobsCommand.js +21 -28
- package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +21 -28
- package/dist-es/commands/StartICD10CMInferenceJobCommand.js +21 -28
- package/dist-es/commands/StartPHIDetectionJobCommand.js +21 -28
- package/dist-es/commands/StartRxNormInferenceJobCommand.js +21 -28
- package/dist-es/commands/StartSNOMEDCTInferenceJobCommand.js +21 -28
- package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +21 -28
- package/dist-es/commands/StopICD10CMInferenceJobCommand.js +21 -28
- package/dist-es/commands/StopPHIDetectionJobCommand.js +21 -28
- package/dist-es/commands/StopRxNormInferenceJobCommand.js +21 -28
- package/dist-es/commands/StopSNOMEDCTInferenceJobCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ComprehendMedicalServiceException.js +5 -10
- package/dist-es/models/models_0.js +318 -171
- package/dist-es/protocols/Aws_json1_1.js +1767 -2286
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.183.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.182.0...v3.183.0) (2022-10-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-comprehendmedical
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.181.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.180.0...v3.181.0) (2022-09-29)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **clients:** make parseErrorBody async ([#3999](https://github.com/aws/aws-sdk-js-v3/issues/3999)) ([2558c93](https://github.com/aws/aws-sdk-js-v3/commit/2558c93c050357ac6dc47aa0452b15b12ebfd676))
|
|
20
|
+
* **clients:** populate message field when parsing errors ([#3995](https://github.com/aws/aws-sdk-js-v3/issues/3995)) ([02e47f1](https://github.com/aws/aws-sdk-js-v3/commit/02e47f14397ae0a5d2e2883350d038b307fdcdb4))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
# [3.180.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.179.0...v3.180.0) (2022-09-27)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @aws-sdk/client-comprehendmedical
|
|
@@ -284,7 +284,7 @@ exports.deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommand = deserializ
|
|
|
284
284
|
const deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
285
285
|
const parsedOutput = {
|
|
286
286
|
...output,
|
|
287
|
-
body: await
|
|
287
|
+
body: await parseErrorBody(output.body, context),
|
|
288
288
|
};
|
|
289
289
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
290
290
|
switch (errorCode) {
|
|
@@ -327,7 +327,7 @@ exports.deserializeAws_json1_1DescribeICD10CMInferenceJobCommand = deserializeAw
|
|
|
327
327
|
const deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError = async (output, context) => {
|
|
328
328
|
const parsedOutput = {
|
|
329
329
|
...output,
|
|
330
|
-
body: await
|
|
330
|
+
body: await parseErrorBody(output.body, context),
|
|
331
331
|
};
|
|
332
332
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
333
|
switch (errorCode) {
|
|
@@ -370,7 +370,7 @@ exports.deserializeAws_json1_1DescribePHIDetectionJobCommand = deserializeAws_js
|
|
|
370
370
|
const deserializeAws_json1_1DescribePHIDetectionJobCommandError = async (output, context) => {
|
|
371
371
|
const parsedOutput = {
|
|
372
372
|
...output,
|
|
373
|
-
body: await
|
|
373
|
+
body: await parseErrorBody(output.body, context),
|
|
374
374
|
};
|
|
375
375
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
376
|
switch (errorCode) {
|
|
@@ -413,7 +413,7 @@ exports.deserializeAws_json1_1DescribeRxNormInferenceJobCommand = deserializeAws
|
|
|
413
413
|
const deserializeAws_json1_1DescribeRxNormInferenceJobCommandError = async (output, context) => {
|
|
414
414
|
const parsedOutput = {
|
|
415
415
|
...output,
|
|
416
|
-
body: await
|
|
416
|
+
body: await parseErrorBody(output.body, context),
|
|
417
417
|
};
|
|
418
418
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
419
419
|
switch (errorCode) {
|
|
@@ -456,7 +456,7 @@ exports.deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = deserializeA
|
|
|
456
456
|
const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
457
457
|
const parsedOutput = {
|
|
458
458
|
...output,
|
|
459
|
-
body: await
|
|
459
|
+
body: await parseErrorBody(output.body, context),
|
|
460
460
|
};
|
|
461
461
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
462
462
|
switch (errorCode) {
|
|
@@ -499,7 +499,7 @@ exports.deserializeAws_json1_1DetectEntitiesCommand = deserializeAws_json1_1Dete
|
|
|
499
499
|
const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context) => {
|
|
500
500
|
const parsedOutput = {
|
|
501
501
|
...output,
|
|
502
|
-
body: await
|
|
502
|
+
body: await parseErrorBody(output.body, context),
|
|
503
503
|
};
|
|
504
504
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
505
|
switch (errorCode) {
|
|
@@ -548,7 +548,7 @@ exports.deserializeAws_json1_1DetectEntitiesV2Command = deserializeAws_json1_1De
|
|
|
548
548
|
const deserializeAws_json1_1DetectEntitiesV2CommandError = async (output, context) => {
|
|
549
549
|
const parsedOutput = {
|
|
550
550
|
...output,
|
|
551
|
-
body: await
|
|
551
|
+
body: await parseErrorBody(output.body, context),
|
|
552
552
|
};
|
|
553
553
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
554
|
switch (errorCode) {
|
|
@@ -597,7 +597,7 @@ exports.deserializeAws_json1_1DetectPHICommand = deserializeAws_json1_1DetectPHI
|
|
|
597
597
|
const deserializeAws_json1_1DetectPHICommandError = async (output, context) => {
|
|
598
598
|
const parsedOutput = {
|
|
599
599
|
...output,
|
|
600
|
-
body: await
|
|
600
|
+
body: await parseErrorBody(output.body, context),
|
|
601
601
|
};
|
|
602
602
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
603
603
|
switch (errorCode) {
|
|
@@ -646,7 +646,7 @@ exports.deserializeAws_json1_1InferICD10CMCommand = deserializeAws_json1_1InferI
|
|
|
646
646
|
const deserializeAws_json1_1InferICD10CMCommandError = async (output, context) => {
|
|
647
647
|
const parsedOutput = {
|
|
648
648
|
...output,
|
|
649
|
-
body: await
|
|
649
|
+
body: await parseErrorBody(output.body, context),
|
|
650
650
|
};
|
|
651
651
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
652
652
|
switch (errorCode) {
|
|
@@ -695,7 +695,7 @@ exports.deserializeAws_json1_1InferRxNormCommand = deserializeAws_json1_1InferRx
|
|
|
695
695
|
const deserializeAws_json1_1InferRxNormCommandError = async (output, context) => {
|
|
696
696
|
const parsedOutput = {
|
|
697
697
|
...output,
|
|
698
|
-
body: await
|
|
698
|
+
body: await parseErrorBody(output.body, context),
|
|
699
699
|
};
|
|
700
700
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
701
701
|
switch (errorCode) {
|
|
@@ -744,7 +744,7 @@ exports.deserializeAws_json1_1InferSNOMEDCTCommand = deserializeAws_json1_1Infer
|
|
|
744
744
|
const deserializeAws_json1_1InferSNOMEDCTCommandError = async (output, context) => {
|
|
745
745
|
const parsedOutput = {
|
|
746
746
|
...output,
|
|
747
|
-
body: await
|
|
747
|
+
body: await parseErrorBody(output.body, context),
|
|
748
748
|
};
|
|
749
749
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
750
750
|
switch (errorCode) {
|
|
@@ -793,7 +793,7 @@ exports.deserializeAws_json1_1ListEntitiesDetectionV2JobsCommand = deserializeAw
|
|
|
793
793
|
const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError = async (output, context) => {
|
|
794
794
|
const parsedOutput = {
|
|
795
795
|
...output,
|
|
796
|
-
body: await
|
|
796
|
+
body: await parseErrorBody(output.body, context),
|
|
797
797
|
};
|
|
798
798
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
799
|
switch (errorCode) {
|
|
@@ -836,7 +836,7 @@ exports.deserializeAws_json1_1ListICD10CMInferenceJobsCommand = deserializeAws_j
|
|
|
836
836
|
const deserializeAws_json1_1ListICD10CMInferenceJobsCommandError = async (output, context) => {
|
|
837
837
|
const parsedOutput = {
|
|
838
838
|
...output,
|
|
839
|
-
body: await
|
|
839
|
+
body: await parseErrorBody(output.body, context),
|
|
840
840
|
};
|
|
841
841
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
842
842
|
switch (errorCode) {
|
|
@@ -879,7 +879,7 @@ exports.deserializeAws_json1_1ListPHIDetectionJobsCommand = deserializeAws_json1
|
|
|
879
879
|
const deserializeAws_json1_1ListPHIDetectionJobsCommandError = async (output, context) => {
|
|
880
880
|
const parsedOutput = {
|
|
881
881
|
...output,
|
|
882
|
-
body: await
|
|
882
|
+
body: await parseErrorBody(output.body, context),
|
|
883
883
|
};
|
|
884
884
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
885
885
|
switch (errorCode) {
|
|
@@ -922,7 +922,7 @@ exports.deserializeAws_json1_1ListRxNormInferenceJobsCommand = deserializeAws_js
|
|
|
922
922
|
const deserializeAws_json1_1ListRxNormInferenceJobsCommandError = async (output, context) => {
|
|
923
923
|
const parsedOutput = {
|
|
924
924
|
...output,
|
|
925
|
-
body: await
|
|
925
|
+
body: await parseErrorBody(output.body, context),
|
|
926
926
|
};
|
|
927
927
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
928
928
|
switch (errorCode) {
|
|
@@ -965,7 +965,7 @@ exports.deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = deserializeAws_
|
|
|
965
965
|
const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError = async (output, context) => {
|
|
966
966
|
const parsedOutput = {
|
|
967
967
|
...output,
|
|
968
|
-
body: await
|
|
968
|
+
body: await parseErrorBody(output.body, context),
|
|
969
969
|
};
|
|
970
970
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
971
971
|
switch (errorCode) {
|
|
@@ -1008,7 +1008,7 @@ exports.deserializeAws_json1_1StartEntitiesDetectionV2JobCommand = deserializeAw
|
|
|
1008
1008
|
const deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
1009
1009
|
const parsedOutput = {
|
|
1010
1010
|
...output,
|
|
1011
|
-
body: await
|
|
1011
|
+
body: await parseErrorBody(output.body, context),
|
|
1012
1012
|
};
|
|
1013
1013
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1014
1014
|
switch (errorCode) {
|
|
@@ -1051,7 +1051,7 @@ exports.deserializeAws_json1_1StartICD10CMInferenceJobCommand = deserializeAws_j
|
|
|
1051
1051
|
const deserializeAws_json1_1StartICD10CMInferenceJobCommandError = async (output, context) => {
|
|
1052
1052
|
const parsedOutput = {
|
|
1053
1053
|
...output,
|
|
1054
|
-
body: await
|
|
1054
|
+
body: await parseErrorBody(output.body, context),
|
|
1055
1055
|
};
|
|
1056
1056
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
1057
|
switch (errorCode) {
|
|
@@ -1094,7 +1094,7 @@ exports.deserializeAws_json1_1StartPHIDetectionJobCommand = deserializeAws_json1
|
|
|
1094
1094
|
const deserializeAws_json1_1StartPHIDetectionJobCommandError = async (output, context) => {
|
|
1095
1095
|
const parsedOutput = {
|
|
1096
1096
|
...output,
|
|
1097
|
-
body: await
|
|
1097
|
+
body: await parseErrorBody(output.body, context),
|
|
1098
1098
|
};
|
|
1099
1099
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1100
1100
|
switch (errorCode) {
|
|
@@ -1137,7 +1137,7 @@ exports.deserializeAws_json1_1StartRxNormInferenceJobCommand = deserializeAws_js
|
|
|
1137
1137
|
const deserializeAws_json1_1StartRxNormInferenceJobCommandError = async (output, context) => {
|
|
1138
1138
|
const parsedOutput = {
|
|
1139
1139
|
...output,
|
|
1140
|
-
body: await
|
|
1140
|
+
body: await parseErrorBody(output.body, context),
|
|
1141
1141
|
};
|
|
1142
1142
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1143
1143
|
switch (errorCode) {
|
|
@@ -1180,7 +1180,7 @@ exports.deserializeAws_json1_1StartSNOMEDCTInferenceJobCommand = deserializeAws_
|
|
|
1180
1180
|
const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
1181
1181
|
const parsedOutput = {
|
|
1182
1182
|
...output,
|
|
1183
|
-
body: await
|
|
1183
|
+
body: await parseErrorBody(output.body, context),
|
|
1184
1184
|
};
|
|
1185
1185
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
1186
|
switch (errorCode) {
|
|
@@ -1223,7 +1223,7 @@ exports.deserializeAws_json1_1StopEntitiesDetectionV2JobCommand = deserializeAws
|
|
|
1223
1223
|
const deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
1224
1224
|
const parsedOutput = {
|
|
1225
1225
|
...output,
|
|
1226
|
-
body: await
|
|
1226
|
+
body: await parseErrorBody(output.body, context),
|
|
1227
1227
|
};
|
|
1228
1228
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1229
1229
|
switch (errorCode) {
|
|
@@ -1263,7 +1263,7 @@ exports.deserializeAws_json1_1StopICD10CMInferenceJobCommand = deserializeAws_js
|
|
|
1263
1263
|
const deserializeAws_json1_1StopICD10CMInferenceJobCommandError = async (output, context) => {
|
|
1264
1264
|
const parsedOutput = {
|
|
1265
1265
|
...output,
|
|
1266
|
-
body: await
|
|
1266
|
+
body: await parseErrorBody(output.body, context),
|
|
1267
1267
|
};
|
|
1268
1268
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1269
1269
|
switch (errorCode) {
|
|
@@ -1303,7 +1303,7 @@ exports.deserializeAws_json1_1StopPHIDetectionJobCommand = deserializeAws_json1_
|
|
|
1303
1303
|
const deserializeAws_json1_1StopPHIDetectionJobCommandError = async (output, context) => {
|
|
1304
1304
|
const parsedOutput = {
|
|
1305
1305
|
...output,
|
|
1306
|
-
body: await
|
|
1306
|
+
body: await parseErrorBody(output.body, context),
|
|
1307
1307
|
};
|
|
1308
1308
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1309
1309
|
switch (errorCode) {
|
|
@@ -1343,7 +1343,7 @@ exports.deserializeAws_json1_1StopRxNormInferenceJobCommand = deserializeAws_jso
|
|
|
1343
1343
|
const deserializeAws_json1_1StopRxNormInferenceJobCommandError = async (output, context) => {
|
|
1344
1344
|
const parsedOutput = {
|
|
1345
1345
|
...output,
|
|
1346
|
-
body: await
|
|
1346
|
+
body: await parseErrorBody(output.body, context),
|
|
1347
1347
|
};
|
|
1348
1348
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1349
1349
|
switch (errorCode) {
|
|
@@ -1383,7 +1383,7 @@ exports.deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand = deserializeAws_j
|
|
|
1383
1383
|
const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
1384
1384
|
const parsedOutput = {
|
|
1385
1385
|
...output,
|
|
1386
|
-
body: await
|
|
1386
|
+
body: await parseErrorBody(output.body, context),
|
|
1387
1387
|
};
|
|
1388
1388
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1389
1389
|
switch (errorCode) {
|
|
@@ -2357,6 +2357,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
|
|
|
2357
2357
|
}
|
|
2358
2358
|
return {};
|
|
2359
2359
|
});
|
|
2360
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2361
|
+
var _a;
|
|
2362
|
+
const value = await parseBody(errorBody, context);
|
|
2363
|
+
value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message;
|
|
2364
|
+
return value;
|
|
2365
|
+
};
|
|
2360
2366
|
const loadRestJsonErrorCode = (output, data) => {
|
|
2361
2367
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2362
2368
|
const sanitizeErrorCode = (rawValue) => {
|