@aws-sdk/client-comprehendmedical 3.28.0 → 3.32.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/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.28.0",
4
+ "version": "3.32.0",
5
5
  "scripts": {
6
6
  "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
7
7
  "build-documentation": "yarn remove-documentation && typedoc ./",
@@ -27,39 +27,39 @@
27
27
  "dependencies": {
28
28
  "@aws-crypto/sha256-browser": "^1.0.0",
29
29
  "@aws-crypto/sha256-js": "^1.0.0",
30
- "@aws-sdk/client-sts": "3.28.0",
31
- "@aws-sdk/config-resolver": "3.28.0",
32
- "@aws-sdk/credential-provider-node": "3.28.0",
33
- "@aws-sdk/fetch-http-handler": "3.25.0",
34
- "@aws-sdk/hash-node": "3.25.0",
35
- "@aws-sdk/invalid-dependency": "3.25.0",
36
- "@aws-sdk/middleware-content-length": "3.25.0",
37
- "@aws-sdk/middleware-host-header": "3.25.0",
38
- "@aws-sdk/middleware-logger": "3.25.0",
39
- "@aws-sdk/middleware-retry": "3.28.0",
40
- "@aws-sdk/middleware-serde": "3.25.0",
41
- "@aws-sdk/middleware-signing": "3.28.0",
42
- "@aws-sdk/middleware-stack": "3.25.0",
43
- "@aws-sdk/middleware-user-agent": "3.25.0",
44
- "@aws-sdk/node-config-provider": "3.28.0",
45
- "@aws-sdk/node-http-handler": "3.25.0",
46
- "@aws-sdk/protocol-http": "3.25.0",
47
- "@aws-sdk/smithy-client": "3.28.0",
48
- "@aws-sdk/types": "3.25.0",
49
- "@aws-sdk/url-parser": "3.25.0",
50
- "@aws-sdk/util-base64-browser": "3.23.0",
51
- "@aws-sdk/util-base64-node": "3.23.0",
52
- "@aws-sdk/util-body-length-browser": "3.23.0",
53
- "@aws-sdk/util-body-length-node": "3.23.0",
54
- "@aws-sdk/util-user-agent-browser": "3.25.0",
55
- "@aws-sdk/util-user-agent-node": "3.28.0",
56
- "@aws-sdk/util-utf8-browser": "3.23.0",
57
- "@aws-sdk/util-utf8-node": "3.23.0",
30
+ "@aws-sdk/client-sts": "3.32.0",
31
+ "@aws-sdk/config-resolver": "3.32.0",
32
+ "@aws-sdk/credential-provider-node": "3.32.0",
33
+ "@aws-sdk/fetch-http-handler": "3.32.0",
34
+ "@aws-sdk/hash-node": "3.32.0",
35
+ "@aws-sdk/invalid-dependency": "3.32.0",
36
+ "@aws-sdk/middleware-content-length": "3.32.0",
37
+ "@aws-sdk/middleware-host-header": "3.32.0",
38
+ "@aws-sdk/middleware-logger": "3.32.0",
39
+ "@aws-sdk/middleware-retry": "3.32.0",
40
+ "@aws-sdk/middleware-serde": "3.32.0",
41
+ "@aws-sdk/middleware-signing": "3.32.0",
42
+ "@aws-sdk/middleware-stack": "3.32.0",
43
+ "@aws-sdk/middleware-user-agent": "3.32.0",
44
+ "@aws-sdk/node-config-provider": "3.32.0",
45
+ "@aws-sdk/node-http-handler": "3.32.0",
46
+ "@aws-sdk/protocol-http": "3.32.0",
47
+ "@aws-sdk/smithy-client": "3.32.0",
48
+ "@aws-sdk/types": "3.32.0",
49
+ "@aws-sdk/url-parser": "3.32.0",
50
+ "@aws-sdk/util-base64-browser": "3.32.0",
51
+ "@aws-sdk/util-base64-node": "3.32.0",
52
+ "@aws-sdk/util-body-length-browser": "3.32.0",
53
+ "@aws-sdk/util-body-length-node": "3.32.0",
54
+ "@aws-sdk/util-user-agent-browser": "3.32.0",
55
+ "@aws-sdk/util-user-agent-node": "3.32.0",
56
+ "@aws-sdk/util-utf8-browser": "3.32.0",
57
+ "@aws-sdk/util-utf8-node": "3.32.0",
58
58
  "tslib": "^2.3.0",
59
59
  "uuid": "^8.3.2"
60
60
  },
61
61
  "devDependencies": {
62
- "@aws-sdk/client-documentation-generator": "3.23.0",
62
+ "@aws-sdk/client-documentation-generator": "3.32.0",
63
63
  "@types/node": "^12.7.5",
64
64
  "@types/uuid": "^8.3.0",
65
65
  "downlevel-dts": "0.7.0",
@@ -67,7 +67,7 @@
67
67
  "rimraf": "^3.0.0",
68
68
  "ts-jest": "^26.4.1",
69
69
  "typedoc": "^0.19.2",
70
- "typescript": "~4.3.2"
70
+ "typescript": "~4.3.5"
71
71
  },
72
72
  "engines": {
73
73
  "node": ">=10.0.0"
@@ -137,9 +137,12 @@ import {
137
137
  } from "../models/models_0";
138
138
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
139
139
  import {
140
- expectInt as __expectInt,
140
+ expectInt32 as __expectInt32,
141
+ expectNonNull as __expectNonNull,
142
+ expectNumber as __expectNumber,
141
143
  expectString as __expectString,
142
- limitedParseFloat as __limitedParseFloat,
144
+ limitedParseFloat32 as __limitedParseFloat32,
145
+ parseEpochTimestamp as __parseEpochTimestamp,
143
146
  } from "@aws-sdk/smithy-client";
144
147
  import {
145
148
  Endpoint as __Endpoint,
@@ -2498,13 +2501,13 @@ const serializeAws_json1_1StopRxNormInferenceJobRequest = (
2498
2501
 
2499
2502
  const deserializeAws_json1_1Attribute = (output: any, context: __SerdeContext): Attribute => {
2500
2503
  return {
2501
- BeginOffset: __expectInt(output.BeginOffset),
2504
+ BeginOffset: __expectInt32(output.BeginOffset),
2502
2505
  Category: __expectString(output.Category),
2503
- EndOffset: __expectInt(output.EndOffset),
2504
- Id: __expectInt(output.Id),
2505
- RelationshipScore: __limitedParseFloat(output.RelationshipScore),
2506
+ EndOffset: __expectInt32(output.EndOffset),
2507
+ Id: __expectInt32(output.Id),
2508
+ RelationshipScore: __limitedParseFloat32(output.RelationshipScore),
2506
2509
  RelationshipType: __expectString(output.RelationshipType),
2507
- Score: __limitedParseFloat(output.Score),
2510
+ Score: __limitedParseFloat32(output.Score),
2508
2511
  Text: __expectString(output.Text),
2509
2512
  Traits:
2510
2513
  output.Traits !== undefined && output.Traits !== null
@@ -2532,10 +2535,12 @@ const deserializeAws_json1_1ComprehendMedicalAsyncJobProperties = (
2532
2535
  return {
2533
2536
  DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
2534
2537
  EndTime:
2535
- output.EndTime !== undefined && output.EndTime !== null ? new Date(Math.round(output.EndTime * 1000)) : undefined,
2538
+ output.EndTime !== undefined && output.EndTime !== null
2539
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
2540
+ : undefined,
2536
2541
  ExpirationTime:
2537
2542
  output.ExpirationTime !== undefined && output.ExpirationTime !== null
2538
- ? new Date(Math.round(output.ExpirationTime * 1000))
2543
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ExpirationTime)))
2539
2544
  : undefined,
2540
2545
  InputDataConfig:
2541
2546
  output.InputDataConfig !== undefined && output.InputDataConfig !== null
@@ -2555,7 +2560,7 @@ const deserializeAws_json1_1ComprehendMedicalAsyncJobProperties = (
2555
2560
  : undefined,
2556
2561
  SubmitTime:
2557
2562
  output.SubmitTime !== undefined && output.SubmitTime !== null
2558
- ? new Date(Math.round(output.SubmitTime * 1000))
2563
+ ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime)))
2559
2564
  : undefined,
2560
2565
  } as any;
2561
2566
  };
@@ -2672,11 +2677,11 @@ const deserializeAws_json1_1Entity = (output: any, context: __SerdeContext): Ent
2672
2677
  output.Attributes !== undefined && output.Attributes !== null
2673
2678
  ? deserializeAws_json1_1AttributeList(output.Attributes, context)
2674
2679
  : undefined,
2675
- BeginOffset: __expectInt(output.BeginOffset),
2680
+ BeginOffset: __expectInt32(output.BeginOffset),
2676
2681
  Category: __expectString(output.Category),
2677
- EndOffset: __expectInt(output.EndOffset),
2678
- Id: __expectInt(output.Id),
2679
- Score: __limitedParseFloat(output.Score),
2682
+ EndOffset: __expectInt32(output.EndOffset),
2683
+ Id: __expectInt32(output.Id),
2684
+ Score: __limitedParseFloat32(output.Score),
2680
2685
  Text: __expectString(output.Text),
2681
2686
  Traits:
2682
2687
  output.Traits !== undefined && output.Traits !== null
@@ -2699,13 +2704,13 @@ const deserializeAws_json1_1EntityList = (output: any, context: __SerdeContext):
2699
2704
 
2700
2705
  const deserializeAws_json1_1ICD10CMAttribute = (output: any, context: __SerdeContext): ICD10CMAttribute => {
2701
2706
  return {
2702
- BeginOffset: __expectInt(output.BeginOffset),
2707
+ BeginOffset: __expectInt32(output.BeginOffset),
2703
2708
  Category: __expectString(output.Category),
2704
- EndOffset: __expectInt(output.EndOffset),
2705
- Id: __expectInt(output.Id),
2706
- RelationshipScore: __limitedParseFloat(output.RelationshipScore),
2709
+ EndOffset: __expectInt32(output.EndOffset),
2710
+ Id: __expectInt32(output.Id),
2711
+ RelationshipScore: __limitedParseFloat32(output.RelationshipScore),
2707
2712
  RelationshipType: __expectString(output.RelationshipType),
2708
- Score: __limitedParseFloat(output.Score),
2713
+ Score: __limitedParseFloat32(output.Score),
2709
2714
  Text: __expectString(output.Text),
2710
2715
  Traits:
2711
2716
  output.Traits !== undefined && output.Traits !== null
@@ -2730,7 +2735,7 @@ const deserializeAws_json1_1ICD10CMConcept = (output: any, context: __SerdeConte
2730
2735
  return {
2731
2736
  Code: __expectString(output.Code),
2732
2737
  Description: __expectString(output.Description),
2733
- Score: __limitedParseFloat(output.Score),
2738
+ Score: __limitedParseFloat32(output.Score),
2734
2739
  } as any;
2735
2740
  };
2736
2741
 
@@ -2751,15 +2756,15 @@ const deserializeAws_json1_1ICD10CMEntity = (output: any, context: __SerdeContex
2751
2756
  output.Attributes !== undefined && output.Attributes !== null
2752
2757
  ? deserializeAws_json1_1ICD10CMAttributeList(output.Attributes, context)
2753
2758
  : undefined,
2754
- BeginOffset: __expectInt(output.BeginOffset),
2759
+ BeginOffset: __expectInt32(output.BeginOffset),
2755
2760
  Category: __expectString(output.Category),
2756
- EndOffset: __expectInt(output.EndOffset),
2761
+ EndOffset: __expectInt32(output.EndOffset),
2757
2762
  ICD10CMConcepts:
2758
2763
  output.ICD10CMConcepts !== undefined && output.ICD10CMConcepts !== null
2759
2764
  ? deserializeAws_json1_1ICD10CMConceptList(output.ICD10CMConcepts, context)
2760
2765
  : undefined,
2761
- Id: __expectInt(output.Id),
2762
- Score: __limitedParseFloat(output.Score),
2766
+ Id: __expectInt32(output.Id),
2767
+ Score: __limitedParseFloat32(output.Score),
2763
2768
  Text: __expectString(output.Text),
2764
2769
  Traits:
2765
2770
  output.Traits !== undefined && output.Traits !== null
@@ -2783,7 +2788,7 @@ const deserializeAws_json1_1ICD10CMEntityList = (output: any, context: __SerdeCo
2783
2788
  const deserializeAws_json1_1ICD10CMTrait = (output: any, context: __SerdeContext): ICD10CMTrait => {
2784
2789
  return {
2785
2790
  Name: __expectString(output.Name),
2786
- Score: __limitedParseFloat(output.Score),
2791
+ Score: __limitedParseFloat32(output.Score),
2787
2792
  } as any;
2788
2793
  };
2789
2794
 
@@ -2940,11 +2945,11 @@ const deserializeAws_json1_1ResourceNotFoundException = (
2940
2945
 
2941
2946
  const deserializeAws_json1_1RxNormAttribute = (output: any, context: __SerdeContext): RxNormAttribute => {
2942
2947
  return {
2943
- BeginOffset: __expectInt(output.BeginOffset),
2944
- EndOffset: __expectInt(output.EndOffset),
2945
- Id: __expectInt(output.Id),
2946
- RelationshipScore: __limitedParseFloat(output.RelationshipScore),
2947
- Score: __limitedParseFloat(output.Score),
2948
+ BeginOffset: __expectInt32(output.BeginOffset),
2949
+ EndOffset: __expectInt32(output.EndOffset),
2950
+ Id: __expectInt32(output.Id),
2951
+ RelationshipScore: __limitedParseFloat32(output.RelationshipScore),
2952
+ Score: __limitedParseFloat32(output.Score),
2948
2953
  Text: __expectString(output.Text),
2949
2954
  Traits:
2950
2955
  output.Traits !== undefined && output.Traits !== null
@@ -2969,7 +2974,7 @@ const deserializeAws_json1_1RxNormConcept = (output: any, context: __SerdeContex
2969
2974
  return {
2970
2975
  Code: __expectString(output.Code),
2971
2976
  Description: __expectString(output.Description),
2972
- Score: __limitedParseFloat(output.Score),
2977
+ Score: __limitedParseFloat32(output.Score),
2973
2978
  } as any;
2974
2979
  };
2975
2980
 
@@ -2990,15 +2995,15 @@ const deserializeAws_json1_1RxNormEntity = (output: any, context: __SerdeContext
2990
2995
  output.Attributes !== undefined && output.Attributes !== null
2991
2996
  ? deserializeAws_json1_1RxNormAttributeList(output.Attributes, context)
2992
2997
  : undefined,
2993
- BeginOffset: __expectInt(output.BeginOffset),
2998
+ BeginOffset: __expectInt32(output.BeginOffset),
2994
2999
  Category: __expectString(output.Category),
2995
- EndOffset: __expectInt(output.EndOffset),
2996
- Id: __expectInt(output.Id),
3000
+ EndOffset: __expectInt32(output.EndOffset),
3001
+ Id: __expectInt32(output.Id),
2997
3002
  RxNormConcepts:
2998
3003
  output.RxNormConcepts !== undefined && output.RxNormConcepts !== null
2999
3004
  ? deserializeAws_json1_1RxNormConceptList(output.RxNormConcepts, context)
3000
3005
  : undefined,
3001
- Score: __limitedParseFloat(output.Score),
3006
+ Score: __limitedParseFloat32(output.Score),
3002
3007
  Text: __expectString(output.Text),
3003
3008
  Traits:
3004
3009
  output.Traits !== undefined && output.Traits !== null
@@ -3022,7 +3027,7 @@ const deserializeAws_json1_1RxNormEntityList = (output: any, context: __SerdeCon
3022
3027
  const deserializeAws_json1_1RxNormTrait = (output: any, context: __SerdeContext): RxNormTrait => {
3023
3028
  return {
3024
3029
  Name: __expectString(output.Name),
3025
- Score: __limitedParseFloat(output.Score),
3030
+ Score: __limitedParseFloat32(output.Score),
3026
3031
  } as any;
3027
3032
  };
3028
3033
 
@@ -3139,7 +3144,7 @@ const deserializeAws_json1_1TooManyRequestsException = (
3139
3144
  const deserializeAws_json1_1Trait = (output: any, context: __SerdeContext): Trait => {
3140
3145
  return {
3141
3146
  Name: __expectString(output.Name),
3142
- Score: __limitedParseFloat(output.Score),
3147
+ Score: __limitedParseFloat32(output.Score),
3143
3148
  } as any;
3144
3149
  };
3145
3150