@aws-sdk/client-textract 3.121.0 → 3.127.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 +8 -0
- package/dist-cjs/protocols/Aws_json1_1.js +95 -164
- package/dist-es/protocols/Aws_json1_1.js +68 -137
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-textract
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -864,30 +864,24 @@ const deserializeAws_json1_1UnsupportedDocumentExceptionResponse = async (parsed
|
|
|
864
864
|
};
|
|
865
865
|
const serializeAws_json1_1AnalyzeDocumentRequest = (input, context) => {
|
|
866
866
|
return {
|
|
867
|
-
...(input.Document
|
|
868
|
-
|
|
869
|
-
...(input.
|
|
870
|
-
input.FeatureTypes !== null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) }),
|
|
871
|
-
...(input.HumanLoopConfig !== undefined &&
|
|
872
|
-
input.HumanLoopConfig !== null && {
|
|
867
|
+
...(input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }),
|
|
868
|
+
...(input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) }),
|
|
869
|
+
...(input.HumanLoopConfig != null && {
|
|
873
870
|
HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
|
|
874
871
|
}),
|
|
875
|
-
...(input.QueriesConfig
|
|
876
|
-
input.QueriesConfig !== null && {
|
|
872
|
+
...(input.QueriesConfig != null && {
|
|
877
873
|
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
878
874
|
}),
|
|
879
875
|
};
|
|
880
876
|
};
|
|
881
877
|
const serializeAws_json1_1AnalyzeExpenseRequest = (input, context) => {
|
|
882
878
|
return {
|
|
883
|
-
...(input.Document
|
|
884
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) }),
|
|
879
|
+
...(input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }),
|
|
885
880
|
};
|
|
886
881
|
};
|
|
887
882
|
const serializeAws_json1_1AnalyzeIDRequest = (input, context) => {
|
|
888
883
|
return {
|
|
889
|
-
...(input.DocumentPages
|
|
890
|
-
input.DocumentPages !== null && {
|
|
884
|
+
...(input.DocumentPages != null && {
|
|
891
885
|
DocumentPages: serializeAws_json1_1DocumentPages(input.DocumentPages, context),
|
|
892
886
|
}),
|
|
893
887
|
};
|
|
@@ -904,21 +898,18 @@ const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
|
904
898
|
};
|
|
905
899
|
const serializeAws_json1_1DetectDocumentTextRequest = (input, context) => {
|
|
906
900
|
return {
|
|
907
|
-
...(input.Document
|
|
908
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) }),
|
|
901
|
+
...(input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }),
|
|
909
902
|
};
|
|
910
903
|
};
|
|
911
904
|
const serializeAws_json1_1Document = (input, context) => {
|
|
912
905
|
return {
|
|
913
|
-
...(input.Bytes
|
|
914
|
-
...(input.S3Object
|
|
915
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
906
|
+
...(input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) }),
|
|
907
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
916
908
|
};
|
|
917
909
|
};
|
|
918
910
|
const serializeAws_json1_1DocumentLocation = (input, context) => {
|
|
919
911
|
return {
|
|
920
|
-
...(input.S3Object
|
|
921
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
912
|
+
...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
|
|
922
913
|
};
|
|
923
914
|
};
|
|
924
915
|
const serializeAws_json1_1DocumentPages = (input, context) => {
|
|
@@ -943,54 +934,51 @@ const serializeAws_json1_1FeatureTypes = (input, context) => {
|
|
|
943
934
|
};
|
|
944
935
|
const serializeAws_json1_1GetDocumentAnalysisRequest = (input, context) => {
|
|
945
936
|
return {
|
|
946
|
-
...(input.JobId
|
|
947
|
-
...(input.MaxResults
|
|
948
|
-
...(input.NextToken
|
|
937
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
938
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
939
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
949
940
|
};
|
|
950
941
|
};
|
|
951
942
|
const serializeAws_json1_1GetDocumentTextDetectionRequest = (input, context) => {
|
|
952
943
|
return {
|
|
953
|
-
...(input.JobId
|
|
954
|
-
...(input.MaxResults
|
|
955
|
-
...(input.NextToken
|
|
944
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
945
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
946
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
956
947
|
};
|
|
957
948
|
};
|
|
958
949
|
const serializeAws_json1_1GetExpenseAnalysisRequest = (input, context) => {
|
|
959
950
|
return {
|
|
960
|
-
...(input.JobId
|
|
961
|
-
...(input.MaxResults
|
|
962
|
-
...(input.NextToken
|
|
951
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
952
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
953
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
963
954
|
};
|
|
964
955
|
};
|
|
965
956
|
const serializeAws_json1_1HumanLoopConfig = (input, context) => {
|
|
966
957
|
return {
|
|
967
|
-
...(input.DataAttributes
|
|
968
|
-
input.DataAttributes !== null && {
|
|
958
|
+
...(input.DataAttributes != null && {
|
|
969
959
|
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
970
960
|
}),
|
|
971
|
-
...(input.FlowDefinitionArn
|
|
972
|
-
|
|
973
|
-
...(input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }),
|
|
961
|
+
...(input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn }),
|
|
962
|
+
...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
|
|
974
963
|
};
|
|
975
964
|
};
|
|
976
965
|
const serializeAws_json1_1HumanLoopDataAttributes = (input, context) => {
|
|
977
966
|
return {
|
|
978
|
-
...(input.ContentClassifiers
|
|
979
|
-
input.ContentClassifiers !== null && {
|
|
967
|
+
...(input.ContentClassifiers != null && {
|
|
980
968
|
ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
|
|
981
969
|
}),
|
|
982
970
|
};
|
|
983
971
|
};
|
|
984
972
|
const serializeAws_json1_1NotificationChannel = (input, context) => {
|
|
985
973
|
return {
|
|
986
|
-
...(input.RoleArn
|
|
987
|
-
...(input.SNSTopicArn
|
|
974
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
975
|
+
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
988
976
|
};
|
|
989
977
|
};
|
|
990
978
|
const serializeAws_json1_1OutputConfig = (input, context) => {
|
|
991
979
|
return {
|
|
992
|
-
...(input.S3Bucket
|
|
993
|
-
...(input.S3Prefix
|
|
980
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
981
|
+
...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
|
|
994
982
|
};
|
|
995
983
|
};
|
|
996
984
|
const serializeAws_json1_1Queries = (input, context) => {
|
|
@@ -1005,16 +993,14 @@ const serializeAws_json1_1Queries = (input, context) => {
|
|
|
1005
993
|
};
|
|
1006
994
|
const serializeAws_json1_1QueriesConfig = (input, context) => {
|
|
1007
995
|
return {
|
|
1008
|
-
...(input.Queries
|
|
1009
|
-
input.Queries !== null && { Queries: serializeAws_json1_1Queries(input.Queries, context) }),
|
|
996
|
+
...(input.Queries != null && { Queries: serializeAws_json1_1Queries(input.Queries, context) }),
|
|
1010
997
|
};
|
|
1011
998
|
};
|
|
1012
999
|
const serializeAws_json1_1Query = (input, context) => {
|
|
1013
1000
|
return {
|
|
1014
|
-
...(input.Alias
|
|
1015
|
-
...(input.Pages
|
|
1016
|
-
|
|
1017
|
-
...(input.Text !== undefined && input.Text !== null && { Text: input.Text }),
|
|
1001
|
+
...(input.Alias != null && { Alias: input.Alias }),
|
|
1002
|
+
...(input.Pages != null && { Pages: serializeAws_json1_1QueryPages(input.Pages, context) }),
|
|
1003
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1018
1004
|
};
|
|
1019
1005
|
};
|
|
1020
1006
|
const serializeAws_json1_1QueryPages = (input, context) => {
|
|
@@ -1029,69 +1015,55 @@ const serializeAws_json1_1QueryPages = (input, context) => {
|
|
|
1029
1015
|
};
|
|
1030
1016
|
const serializeAws_json1_1S3Object = (input, context) => {
|
|
1031
1017
|
return {
|
|
1032
|
-
...(input.Bucket
|
|
1033
|
-
...(input.Name
|
|
1034
|
-
...(input.Version
|
|
1018
|
+
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
1019
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1020
|
+
...(input.Version != null && { Version: input.Version }),
|
|
1035
1021
|
};
|
|
1036
1022
|
};
|
|
1037
1023
|
const serializeAws_json1_1StartDocumentAnalysisRequest = (input, context) => {
|
|
1038
1024
|
return {
|
|
1039
|
-
...(input.ClientRequestToken
|
|
1040
|
-
|
|
1041
|
-
...(input.DocumentLocation !== undefined &&
|
|
1042
|
-
input.DocumentLocation !== null && {
|
|
1025
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1026
|
+
...(input.DocumentLocation != null && {
|
|
1043
1027
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1044
1028
|
}),
|
|
1045
|
-
...(input.FeatureTypes
|
|
1046
|
-
|
|
1047
|
-
...(input.
|
|
1048
|
-
...(input.
|
|
1049
|
-
...(input.NotificationChannel !== undefined &&
|
|
1050
|
-
input.NotificationChannel !== null && {
|
|
1029
|
+
...(input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) }),
|
|
1030
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1031
|
+
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1032
|
+
...(input.NotificationChannel != null && {
|
|
1051
1033
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1052
1034
|
}),
|
|
1053
|
-
...(input.OutputConfig
|
|
1054
|
-
|
|
1055
|
-
...(input.QueriesConfig !== undefined &&
|
|
1056
|
-
input.QueriesConfig !== null && {
|
|
1035
|
+
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1036
|
+
...(input.QueriesConfig != null && {
|
|
1057
1037
|
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
1058
1038
|
}),
|
|
1059
1039
|
};
|
|
1060
1040
|
};
|
|
1061
1041
|
const serializeAws_json1_1StartDocumentTextDetectionRequest = (input, context) => {
|
|
1062
1042
|
return {
|
|
1063
|
-
...(input.ClientRequestToken
|
|
1064
|
-
|
|
1065
|
-
...(input.DocumentLocation !== undefined &&
|
|
1066
|
-
input.DocumentLocation !== null && {
|
|
1043
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1044
|
+
...(input.DocumentLocation != null && {
|
|
1067
1045
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1068
1046
|
}),
|
|
1069
|
-
...(input.JobTag
|
|
1070
|
-
...(input.KMSKeyId
|
|
1071
|
-
...(input.NotificationChannel
|
|
1072
|
-
input.NotificationChannel !== null && {
|
|
1047
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1048
|
+
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1049
|
+
...(input.NotificationChannel != null && {
|
|
1073
1050
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1074
1051
|
}),
|
|
1075
|
-
...(input.OutputConfig
|
|
1076
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1052
|
+
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1077
1053
|
};
|
|
1078
1054
|
};
|
|
1079
1055
|
const serializeAws_json1_1StartExpenseAnalysisRequest = (input, context) => {
|
|
1080
1056
|
return {
|
|
1081
|
-
...(input.ClientRequestToken
|
|
1082
|
-
|
|
1083
|
-
...(input.DocumentLocation !== undefined &&
|
|
1084
|
-
input.DocumentLocation !== null && {
|
|
1057
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1058
|
+
...(input.DocumentLocation != null && {
|
|
1085
1059
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1086
1060
|
}),
|
|
1087
|
-
...(input.JobTag
|
|
1088
|
-
...(input.KMSKeyId
|
|
1089
|
-
...(input.NotificationChannel
|
|
1090
|
-
input.NotificationChannel !== null && {
|
|
1061
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1062
|
+
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1063
|
+
...(input.NotificationChannel != null && {
|
|
1091
1064
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1092
1065
|
}),
|
|
1093
|
-
...(input.OutputConfig
|
|
1094
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1066
|
+
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1095
1067
|
};
|
|
1096
1068
|
};
|
|
1097
1069
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
@@ -1103,23 +1075,21 @@ const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
|
1103
1075
|
const deserializeAws_json1_1AnalyzeDocumentResponse = (output, context) => {
|
|
1104
1076
|
return {
|
|
1105
1077
|
AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
|
|
1106
|
-
Blocks: output.Blocks
|
|
1107
|
-
|
|
1108
|
-
: undefined,
|
|
1109
|
-
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1078
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1079
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1110
1080
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1111
1081
|
: undefined,
|
|
1112
|
-
HumanLoopActivationOutput: output.HumanLoopActivationOutput
|
|
1082
|
+
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
1113
1083
|
? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
1114
1084
|
: undefined,
|
|
1115
1085
|
};
|
|
1116
1086
|
};
|
|
1117
1087
|
const deserializeAws_json1_1AnalyzeExpenseResponse = (output, context) => {
|
|
1118
1088
|
return {
|
|
1119
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1089
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1120
1090
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1121
1091
|
: undefined,
|
|
1122
|
-
ExpenseDocuments: output.ExpenseDocuments
|
|
1092
|
+
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1123
1093
|
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1124
1094
|
: undefined,
|
|
1125
1095
|
};
|
|
@@ -1127,7 +1097,7 @@ const deserializeAws_json1_1AnalyzeExpenseResponse = (output, context) => {
|
|
|
1127
1097
|
const deserializeAws_json1_1AnalyzeIDDetections = (output, context) => {
|
|
1128
1098
|
return {
|
|
1129
1099
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1130
|
-
NormalizedValue: output.NormalizedValue
|
|
1100
|
+
NormalizedValue: output.NormalizedValue != null
|
|
1131
1101
|
? deserializeAws_json1_1NormalizedValue(output.NormalizedValue, context)
|
|
1132
1102
|
: undefined,
|
|
1133
1103
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
@@ -1136,10 +1106,10 @@ const deserializeAws_json1_1AnalyzeIDDetections = (output, context) => {
|
|
|
1136
1106
|
const deserializeAws_json1_1AnalyzeIDResponse = (output, context) => {
|
|
1137
1107
|
return {
|
|
1138
1108
|
AnalyzeIDModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeIDModelVersion),
|
|
1139
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1109
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1140
1110
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1141
1111
|
: undefined,
|
|
1142
|
-
IdentityDocuments: output.IdentityDocuments
|
|
1112
|
+
IdentityDocuments: output.IdentityDocuments != null
|
|
1143
1113
|
? deserializeAws_json1_1IdentityDocumentList(output.IdentityDocuments, context)
|
|
1144
1114
|
: undefined,
|
|
1145
1115
|
};
|
|
@@ -1156,20 +1126,12 @@ const deserializeAws_json1_1Block = (output, context) => {
|
|
|
1156
1126
|
ColumnIndex: (0, smithy_client_1.expectInt32)(output.ColumnIndex),
|
|
1157
1127
|
ColumnSpan: (0, smithy_client_1.expectInt32)(output.ColumnSpan),
|
|
1158
1128
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1159
|
-
EntityTypes: output.EntityTypes
|
|
1160
|
-
|
|
1161
|
-
: undefined,
|
|
1162
|
-
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
1163
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1164
|
-
: undefined,
|
|
1129
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_json1_1EntityTypes(output.EntityTypes, context) : undefined,
|
|
1130
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1165
1131
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1166
1132
|
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1167
|
-
Query: output.Query
|
|
1168
|
-
|
|
1169
|
-
: undefined,
|
|
1170
|
-
Relationships: output.Relationships !== undefined && output.Relationships !== null
|
|
1171
|
-
? deserializeAws_json1_1RelationshipList(output.Relationships, context)
|
|
1172
|
-
: undefined,
|
|
1133
|
+
Query: output.Query != null ? deserializeAws_json1_1Query(output.Query, context) : undefined,
|
|
1134
|
+
Relationships: output.Relationships != null ? deserializeAws_json1_1RelationshipList(output.Relationships, context) : undefined,
|
|
1173
1135
|
RowIndex: (0, smithy_client_1.expectInt32)(output.RowIndex),
|
|
1174
1136
|
RowSpan: (0, smithy_client_1.expectInt32)(output.RowSpan),
|
|
1175
1137
|
SelectionStatus: (0, smithy_client_1.expectString)(output.SelectionStatus),
|
|
@@ -1198,11 +1160,9 @@ const deserializeAws_json1_1BoundingBox = (output, context) => {
|
|
|
1198
1160
|
};
|
|
1199
1161
|
const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
|
|
1200
1162
|
return {
|
|
1201
|
-
Blocks: output.Blocks
|
|
1202
|
-
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1203
|
-
: undefined,
|
|
1163
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1204
1164
|
DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
|
|
1205
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1165
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1206
1166
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1207
1167
|
: undefined,
|
|
1208
1168
|
};
|
|
@@ -1232,21 +1192,17 @@ const deserializeAws_json1_1EntityTypes = (output, context) => {
|
|
|
1232
1192
|
const deserializeAws_json1_1ExpenseDetection = (output, context) => {
|
|
1233
1193
|
return {
|
|
1234
1194
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1235
|
-
Geometry: output.Geometry
|
|
1236
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1237
|
-
: undefined,
|
|
1195
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1238
1196
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1239
1197
|
};
|
|
1240
1198
|
};
|
|
1241
1199
|
const deserializeAws_json1_1ExpenseDocument = (output, context) => {
|
|
1242
1200
|
return {
|
|
1243
1201
|
ExpenseIndex: (0, smithy_client_1.expectInt32)(output.ExpenseIndex),
|
|
1244
|
-
LineItemGroups: output.LineItemGroups
|
|
1202
|
+
LineItemGroups: output.LineItemGroups != null
|
|
1245
1203
|
? deserializeAws_json1_1LineItemGroupList(output.LineItemGroups, context)
|
|
1246
1204
|
: undefined,
|
|
1247
|
-
SummaryFields: output.SummaryFields
|
|
1248
|
-
? deserializeAws_json1_1ExpenseFieldList(output.SummaryFields, context)
|
|
1249
|
-
: undefined,
|
|
1205
|
+
SummaryFields: output.SummaryFields != null ? deserializeAws_json1_1ExpenseFieldList(output.SummaryFields, context) : undefined,
|
|
1250
1206
|
};
|
|
1251
1207
|
};
|
|
1252
1208
|
const deserializeAws_json1_1ExpenseDocumentList = (output, context) => {
|
|
@@ -1262,14 +1218,12 @@ const deserializeAws_json1_1ExpenseDocumentList = (output, context) => {
|
|
|
1262
1218
|
};
|
|
1263
1219
|
const deserializeAws_json1_1ExpenseField = (output, context) => {
|
|
1264
1220
|
return {
|
|
1265
|
-
LabelDetection: output.LabelDetection
|
|
1221
|
+
LabelDetection: output.LabelDetection != null
|
|
1266
1222
|
? deserializeAws_json1_1ExpenseDetection(output.LabelDetection, context)
|
|
1267
1223
|
: undefined,
|
|
1268
1224
|
PageNumber: (0, smithy_client_1.expectInt32)(output.PageNumber),
|
|
1269
|
-
Type: output.Type
|
|
1270
|
-
|
|
1271
|
-
: undefined,
|
|
1272
|
-
ValueDetection: output.ValueDetection !== undefined && output.ValueDetection !== null
|
|
1225
|
+
Type: output.Type != null ? deserializeAws_json1_1ExpenseType(output.Type, context) : undefined,
|
|
1226
|
+
ValueDetection: output.ValueDetection != null
|
|
1273
1227
|
? deserializeAws_json1_1ExpenseDetection(output.ValueDetection, context)
|
|
1274
1228
|
: undefined,
|
|
1275
1229
|
};
|
|
@@ -1293,72 +1247,57 @@ const deserializeAws_json1_1ExpenseType = (output, context) => {
|
|
|
1293
1247
|
};
|
|
1294
1248
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
1295
1249
|
return {
|
|
1296
|
-
BoundingBox: output.BoundingBox
|
|
1297
|
-
|
|
1298
|
-
: undefined,
|
|
1299
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
1300
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
1301
|
-
: undefined,
|
|
1250
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
1251
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
1302
1252
|
};
|
|
1303
1253
|
};
|
|
1304
1254
|
const deserializeAws_json1_1GetDocumentAnalysisResponse = (output, context) => {
|
|
1305
1255
|
return {
|
|
1306
1256
|
AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
|
|
1307
|
-
Blocks: output.Blocks
|
|
1308
|
-
|
|
1309
|
-
: undefined,
|
|
1310
|
-
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1257
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1258
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1311
1259
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1312
1260
|
: undefined,
|
|
1313
1261
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1314
1262
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1315
1263
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1316
|
-
Warnings: output.Warnings
|
|
1317
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1318
|
-
: undefined,
|
|
1264
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1319
1265
|
};
|
|
1320
1266
|
};
|
|
1321
1267
|
const deserializeAws_json1_1GetDocumentTextDetectionResponse = (output, context) => {
|
|
1322
1268
|
return {
|
|
1323
|
-
Blocks: output.Blocks
|
|
1324
|
-
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1325
|
-
: undefined,
|
|
1269
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1326
1270
|
DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
|
|
1327
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1271
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1328
1272
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1329
1273
|
: undefined,
|
|
1330
1274
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1331
1275
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1332
1276
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1333
|
-
Warnings: output.Warnings
|
|
1334
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1335
|
-
: undefined,
|
|
1277
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1336
1278
|
};
|
|
1337
1279
|
};
|
|
1338
1280
|
const deserializeAws_json1_1GetExpenseAnalysisResponse = (output, context) => {
|
|
1339
1281
|
return {
|
|
1340
1282
|
AnalyzeExpenseModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeExpenseModelVersion),
|
|
1341
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1283
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1342
1284
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1343
1285
|
: undefined,
|
|
1344
|
-
ExpenseDocuments: output.ExpenseDocuments
|
|
1286
|
+
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1345
1287
|
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1346
1288
|
: undefined,
|
|
1347
1289
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1348
1290
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1349
1291
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1350
|
-
Warnings: output.Warnings
|
|
1351
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1352
|
-
: undefined,
|
|
1292
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1353
1293
|
};
|
|
1354
1294
|
};
|
|
1355
1295
|
const deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
|
|
1356
1296
|
return {
|
|
1357
|
-
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults
|
|
1358
|
-
output.HumanLoopActivationConditionsEvaluationResults !== null
|
|
1297
|
+
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
1359
1298
|
? new smithy_client_1.LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
1360
1299
|
: undefined,
|
|
1361
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons
|
|
1300
|
+
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
1362
1301
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
1363
1302
|
: undefined,
|
|
1364
1303
|
HumanLoopArn: (0, smithy_client_1.expectString)(output.HumanLoopArn),
|
|
@@ -1393,17 +1332,15 @@ const deserializeAws_json1_1IdempotentParameterMismatchException = (output, cont
|
|
|
1393
1332
|
const deserializeAws_json1_1IdentityDocument = (output, context) => {
|
|
1394
1333
|
return {
|
|
1395
1334
|
DocumentIndex: (0, smithy_client_1.expectInt32)(output.DocumentIndex),
|
|
1396
|
-
IdentityDocumentFields: output.IdentityDocumentFields
|
|
1335
|
+
IdentityDocumentFields: output.IdentityDocumentFields != null
|
|
1397
1336
|
? deserializeAws_json1_1IdentityDocumentFieldList(output.IdentityDocumentFields, context)
|
|
1398
1337
|
: undefined,
|
|
1399
1338
|
};
|
|
1400
1339
|
};
|
|
1401
1340
|
const deserializeAws_json1_1IdentityDocumentField = (output, context) => {
|
|
1402
1341
|
return {
|
|
1403
|
-
Type: output.Type
|
|
1404
|
-
|
|
1405
|
-
: undefined,
|
|
1406
|
-
ValueDetection: output.ValueDetection !== undefined && output.ValueDetection !== null
|
|
1342
|
+
Type: output.Type != null ? deserializeAws_json1_1AnalyzeIDDetections(output.Type, context) : undefined,
|
|
1343
|
+
ValueDetection: output.ValueDetection != null
|
|
1407
1344
|
? deserializeAws_json1_1AnalyzeIDDetections(output.ValueDetection, context)
|
|
1408
1345
|
: undefined,
|
|
1409
1346
|
};
|
|
@@ -1479,7 +1416,7 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
1479
1416
|
};
|
|
1480
1417
|
const deserializeAws_json1_1LineItemFields = (output, context) => {
|
|
1481
1418
|
return {
|
|
1482
|
-
LineItemExpenseFields: output.LineItemExpenseFields
|
|
1419
|
+
LineItemExpenseFields: output.LineItemExpenseFields != null
|
|
1483
1420
|
? deserializeAws_json1_1ExpenseFieldList(output.LineItemExpenseFields, context)
|
|
1484
1421
|
: undefined,
|
|
1485
1422
|
};
|
|
@@ -1487,9 +1424,7 @@ const deserializeAws_json1_1LineItemFields = (output, context) => {
|
|
|
1487
1424
|
const deserializeAws_json1_1LineItemGroup = (output, context) => {
|
|
1488
1425
|
return {
|
|
1489
1426
|
LineItemGroupIndex: (0, smithy_client_1.expectInt32)(output.LineItemGroupIndex),
|
|
1490
|
-
LineItems: output.LineItems
|
|
1491
|
-
? deserializeAws_json1_1LineItemList(output.LineItems, context)
|
|
1492
|
-
: undefined,
|
|
1427
|
+
LineItems: output.LineItems != null ? deserializeAws_json1_1LineItemList(output.LineItems, context) : undefined,
|
|
1493
1428
|
};
|
|
1494
1429
|
};
|
|
1495
1430
|
const deserializeAws_json1_1LineItemGroupList = (output, context) => {
|
|
@@ -1557,9 +1492,7 @@ const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, co
|
|
|
1557
1492
|
const deserializeAws_json1_1Query = (output, context) => {
|
|
1558
1493
|
return {
|
|
1559
1494
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
1560
|
-
Pages: output.Pages
|
|
1561
|
-
? deserializeAws_json1_1QueryPages(output.Pages, context)
|
|
1562
|
-
: undefined,
|
|
1495
|
+
Pages: output.Pages != null ? deserializeAws_json1_1QueryPages(output.Pages, context) : undefined,
|
|
1563
1496
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1564
1497
|
};
|
|
1565
1498
|
};
|
|
@@ -1576,7 +1509,7 @@ const deserializeAws_json1_1QueryPages = (output, context) => {
|
|
|
1576
1509
|
};
|
|
1577
1510
|
const deserializeAws_json1_1Relationship = (output, context) => {
|
|
1578
1511
|
return {
|
|
1579
|
-
Ids: output.Ids
|
|
1512
|
+
Ids: output.Ids != null ? deserializeAws_json1_1IdList(output.Ids, context) : undefined,
|
|
1580
1513
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1581
1514
|
};
|
|
1582
1515
|
};
|
|
@@ -1621,9 +1554,7 @@ const deserializeAws_json1_1UnsupportedDocumentException = (output, context) =>
|
|
|
1621
1554
|
const deserializeAws_json1_1Warning = (output, context) => {
|
|
1622
1555
|
return {
|
|
1623
1556
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1624
|
-
Pages: output.Pages
|
|
1625
|
-
? deserializeAws_json1_1Pages(output.Pages, context)
|
|
1626
|
-
: undefined,
|
|
1557
|
+
Pages: output.Pages != null ? deserializeAws_json1_1Pages(output.Pages, context) : undefined,
|
|
1627
1558
|
};
|
|
1628
1559
|
};
|
|
1629
1560
|
const deserializeAws_json1_1Warnings = (output, context) => {
|
|
@@ -1098,23 +1098,17 @@ var deserializeAws_json1_1UnsupportedDocumentExceptionResponse = function (parse
|
|
|
1098
1098
|
});
|
|
1099
1099
|
}); };
|
|
1100
1100
|
var serializeAws_json1_1AnalyzeDocumentRequest = function (input, context) {
|
|
1101
|
-
return __assign(__assign(__assign(__assign({}, (input.Document
|
|
1102
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) })), (input.FeatureTypes !== undefined &&
|
|
1103
|
-
input.FeatureTypes !== null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.HumanLoopConfig !== undefined &&
|
|
1104
|
-
input.HumanLoopConfig !== null && {
|
|
1101
|
+
return __assign(__assign(__assign(__assign({}, (input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) })), (input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.HumanLoopConfig != null && {
|
|
1105
1102
|
HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
|
|
1106
|
-
})), (input.QueriesConfig
|
|
1107
|
-
input.QueriesConfig !== null && {
|
|
1103
|
+
})), (input.QueriesConfig != null && {
|
|
1108
1104
|
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
1109
1105
|
}));
|
|
1110
1106
|
};
|
|
1111
1107
|
var serializeAws_json1_1AnalyzeExpenseRequest = function (input, context) {
|
|
1112
|
-
return __assign({}, (input.Document
|
|
1113
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1108
|
+
return __assign({}, (input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1114
1109
|
};
|
|
1115
1110
|
var serializeAws_json1_1AnalyzeIDRequest = function (input, context) {
|
|
1116
|
-
return __assign({}, (input.DocumentPages
|
|
1117
|
-
input.DocumentPages !== null && {
|
|
1111
|
+
return __assign({}, (input.DocumentPages != null && {
|
|
1118
1112
|
DocumentPages: serializeAws_json1_1DocumentPages(input.DocumentPages, context),
|
|
1119
1113
|
}));
|
|
1120
1114
|
};
|
|
@@ -1129,16 +1123,13 @@ var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
|
1129
1123
|
});
|
|
1130
1124
|
};
|
|
1131
1125
|
var serializeAws_json1_1DetectDocumentTextRequest = function (input, context) {
|
|
1132
|
-
return __assign({}, (input.Document
|
|
1133
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1126
|
+
return __assign({}, (input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1134
1127
|
};
|
|
1135
1128
|
var serializeAws_json1_1Document = function (input, context) {
|
|
1136
|
-
return __assign(__assign({}, (input.Bytes
|
|
1137
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1129
|
+
return __assign(__assign({}, (input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) })), (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1138
1130
|
};
|
|
1139
1131
|
var serializeAws_json1_1DocumentLocation = function (input, context) {
|
|
1140
|
-
return __assign({}, (input.S3Object
|
|
1141
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1132
|
+
return __assign({}, (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1142
1133
|
};
|
|
1143
1134
|
var serializeAws_json1_1DocumentPages = function (input, context) {
|
|
1144
1135
|
return input
|
|
@@ -1161,32 +1152,29 @@ var serializeAws_json1_1FeatureTypes = function (input, context) {
|
|
|
1161
1152
|
});
|
|
1162
1153
|
};
|
|
1163
1154
|
var serializeAws_json1_1GetDocumentAnalysisRequest = function (input, context) {
|
|
1164
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
1155
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1165
1156
|
};
|
|
1166
1157
|
var serializeAws_json1_1GetDocumentTextDetectionRequest = function (input, context) {
|
|
1167
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
1158
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1168
1159
|
};
|
|
1169
1160
|
var serializeAws_json1_1GetExpenseAnalysisRequest = function (input, context) {
|
|
1170
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
1161
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1171
1162
|
};
|
|
1172
1163
|
var serializeAws_json1_1HumanLoopConfig = function (input, context) {
|
|
1173
|
-
return __assign(__assign(__assign({}, (input.DataAttributes
|
|
1174
|
-
input.DataAttributes !== null && {
|
|
1164
|
+
return __assign(__assign(__assign({}, (input.DataAttributes != null && {
|
|
1175
1165
|
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
1176
|
-
})), (input.FlowDefinitionArn
|
|
1177
|
-
input.FlowDefinitionArn !== null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }));
|
|
1166
|
+
})), (input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }));
|
|
1178
1167
|
};
|
|
1179
1168
|
var serializeAws_json1_1HumanLoopDataAttributes = function (input, context) {
|
|
1180
|
-
return __assign({}, (input.ContentClassifiers
|
|
1181
|
-
input.ContentClassifiers !== null && {
|
|
1169
|
+
return __assign({}, (input.ContentClassifiers != null && {
|
|
1182
1170
|
ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
|
|
1183
1171
|
}));
|
|
1184
1172
|
};
|
|
1185
1173
|
var serializeAws_json1_1NotificationChannel = function (input, context) {
|
|
1186
|
-
return __assign(__assign({}, (input.RoleArn
|
|
1174
|
+
return __assign(__assign({}, (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }));
|
|
1187
1175
|
};
|
|
1188
1176
|
var serializeAws_json1_1OutputConfig = function (input, context) {
|
|
1189
|
-
return __assign(__assign({}, (input.S3Bucket
|
|
1177
|
+
return __assign(__assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3Prefix != null && { S3Prefix: input.S3Prefix }));
|
|
1190
1178
|
};
|
|
1191
1179
|
var serializeAws_json1_1Queries = function (input, context) {
|
|
1192
1180
|
return input
|
|
@@ -1199,12 +1187,10 @@ var serializeAws_json1_1Queries = function (input, context) {
|
|
|
1199
1187
|
});
|
|
1200
1188
|
};
|
|
1201
1189
|
var serializeAws_json1_1QueriesConfig = function (input, context) {
|
|
1202
|
-
return __assign({}, (input.Queries
|
|
1203
|
-
input.Queries !== null && { Queries: serializeAws_json1_1Queries(input.Queries, context) }));
|
|
1190
|
+
return __assign({}, (input.Queries != null && { Queries: serializeAws_json1_1Queries(input.Queries, context) }));
|
|
1204
1191
|
};
|
|
1205
1192
|
var serializeAws_json1_1Query = function (input, context) {
|
|
1206
|
-
return __assign(__assign(__assign({}, (input.Alias
|
|
1207
|
-
input.Pages !== null && { Pages: serializeAws_json1_1QueryPages(input.Pages, context) })), (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
|
|
1193
|
+
return __assign(__assign(__assign({}, (input.Alias != null && { Alias: input.Alias })), (input.Pages != null && { Pages: serializeAws_json1_1QueryPages(input.Pages, context) })), (input.Text != null && { Text: input.Text }));
|
|
1208
1194
|
};
|
|
1209
1195
|
var serializeAws_json1_1QueryPages = function (input, context) {
|
|
1210
1196
|
return input
|
|
@@ -1217,44 +1203,30 @@ var serializeAws_json1_1QueryPages = function (input, context) {
|
|
|
1217
1203
|
});
|
|
1218
1204
|
};
|
|
1219
1205
|
var serializeAws_json1_1S3Object = function (input, context) {
|
|
1220
|
-
return __assign(__assign(__assign({}, (input.Bucket
|
|
1206
|
+
return __assign(__assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.Name != null && { Name: input.Name })), (input.Version != null && { Version: input.Version }));
|
|
1221
1207
|
};
|
|
1222
1208
|
var serializeAws_json1_1StartDocumentAnalysisRequest = function (input, context) {
|
|
1223
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
1224
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined &&
|
|
1225
|
-
input.DocumentLocation !== null && {
|
|
1209
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation != null && {
|
|
1226
1210
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1227
|
-
})), (input.FeatureTypes
|
|
1228
|
-
input.FeatureTypes !== null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.KMSKeyId !== undefined && input.KMSKeyId !== null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel !== undefined &&
|
|
1229
|
-
input.NotificationChannel !== null && {
|
|
1211
|
+
})), (input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel != null && {
|
|
1230
1212
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1231
|
-
})), (input.OutputConfig
|
|
1232
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.QueriesConfig !== undefined &&
|
|
1233
|
-
input.QueriesConfig !== null && {
|
|
1213
|
+
})), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.QueriesConfig != null && {
|
|
1234
1214
|
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
1235
1215
|
}));
|
|
1236
1216
|
};
|
|
1237
1217
|
var serializeAws_json1_1StartDocumentTextDetectionRequest = function (input, context) {
|
|
1238
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
1239
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined &&
|
|
1240
|
-
input.DocumentLocation !== null && {
|
|
1218
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation != null && {
|
|
1241
1219
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1242
|
-
})), (input.JobTag
|
|
1243
|
-
input.NotificationChannel !== null && {
|
|
1220
|
+
})), (input.JobTag != null && { JobTag: input.JobTag })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel != null && {
|
|
1244
1221
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1245
|
-
})), (input.OutputConfig
|
|
1246
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1222
|
+
})), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1247
1223
|
};
|
|
1248
1224
|
var serializeAws_json1_1StartExpenseAnalysisRequest = function (input, context) {
|
|
1249
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
1250
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined &&
|
|
1251
|
-
input.DocumentLocation !== null && {
|
|
1225
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation != null && {
|
|
1252
1226
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1253
|
-
})), (input.JobTag
|
|
1254
|
-
input.NotificationChannel !== null && {
|
|
1227
|
+
})), (input.JobTag != null && { JobTag: input.JobTag })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel != null && {
|
|
1255
1228
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1256
|
-
})), (input.OutputConfig
|
|
1257
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1229
|
+
})), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1258
1230
|
};
|
|
1259
1231
|
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
1260
1232
|
return {
|
|
@@ -1265,23 +1237,21 @@ var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
|
1265
1237
|
var deserializeAws_json1_1AnalyzeDocumentResponse = function (output, context) {
|
|
1266
1238
|
return {
|
|
1267
1239
|
AnalyzeDocumentModelVersion: __expectString(output.AnalyzeDocumentModelVersion),
|
|
1268
|
-
Blocks: output.Blocks
|
|
1269
|
-
|
|
1270
|
-
: undefined,
|
|
1271
|
-
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1240
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1241
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1272
1242
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1273
1243
|
: undefined,
|
|
1274
|
-
HumanLoopActivationOutput: output.HumanLoopActivationOutput
|
|
1244
|
+
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
1275
1245
|
? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
1276
1246
|
: undefined,
|
|
1277
1247
|
};
|
|
1278
1248
|
};
|
|
1279
1249
|
var deserializeAws_json1_1AnalyzeExpenseResponse = function (output, context) {
|
|
1280
1250
|
return {
|
|
1281
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1251
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1282
1252
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1283
1253
|
: undefined,
|
|
1284
|
-
ExpenseDocuments: output.ExpenseDocuments
|
|
1254
|
+
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1285
1255
|
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1286
1256
|
: undefined,
|
|
1287
1257
|
};
|
|
@@ -1289,7 +1259,7 @@ var deserializeAws_json1_1AnalyzeExpenseResponse = function (output, context) {
|
|
|
1289
1259
|
var deserializeAws_json1_1AnalyzeIDDetections = function (output, context) {
|
|
1290
1260
|
return {
|
|
1291
1261
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
1292
|
-
NormalizedValue: output.NormalizedValue
|
|
1262
|
+
NormalizedValue: output.NormalizedValue != null
|
|
1293
1263
|
? deserializeAws_json1_1NormalizedValue(output.NormalizedValue, context)
|
|
1294
1264
|
: undefined,
|
|
1295
1265
|
Text: __expectString(output.Text),
|
|
@@ -1298,10 +1268,10 @@ var deserializeAws_json1_1AnalyzeIDDetections = function (output, context) {
|
|
|
1298
1268
|
var deserializeAws_json1_1AnalyzeIDResponse = function (output, context) {
|
|
1299
1269
|
return {
|
|
1300
1270
|
AnalyzeIDModelVersion: __expectString(output.AnalyzeIDModelVersion),
|
|
1301
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1271
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1302
1272
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1303
1273
|
: undefined,
|
|
1304
|
-
IdentityDocuments: output.IdentityDocuments
|
|
1274
|
+
IdentityDocuments: output.IdentityDocuments != null
|
|
1305
1275
|
? deserializeAws_json1_1IdentityDocumentList(output.IdentityDocuments, context)
|
|
1306
1276
|
: undefined,
|
|
1307
1277
|
};
|
|
@@ -1318,20 +1288,12 @@ var deserializeAws_json1_1Block = function (output, context) {
|
|
|
1318
1288
|
ColumnIndex: __expectInt32(output.ColumnIndex),
|
|
1319
1289
|
ColumnSpan: __expectInt32(output.ColumnSpan),
|
|
1320
1290
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
1321
|
-
EntityTypes: output.EntityTypes
|
|
1322
|
-
|
|
1323
|
-
: undefined,
|
|
1324
|
-
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
1325
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1326
|
-
: undefined,
|
|
1291
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_json1_1EntityTypes(output.EntityTypes, context) : undefined,
|
|
1292
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1327
1293
|
Id: __expectString(output.Id),
|
|
1328
1294
|
Page: __expectInt32(output.Page),
|
|
1329
|
-
Query: output.Query
|
|
1330
|
-
|
|
1331
|
-
: undefined,
|
|
1332
|
-
Relationships: output.Relationships !== undefined && output.Relationships !== null
|
|
1333
|
-
? deserializeAws_json1_1RelationshipList(output.Relationships, context)
|
|
1334
|
-
: undefined,
|
|
1295
|
+
Query: output.Query != null ? deserializeAws_json1_1Query(output.Query, context) : undefined,
|
|
1296
|
+
Relationships: output.Relationships != null ? deserializeAws_json1_1RelationshipList(output.Relationships, context) : undefined,
|
|
1335
1297
|
RowIndex: __expectInt32(output.RowIndex),
|
|
1336
1298
|
RowSpan: __expectInt32(output.RowSpan),
|
|
1337
1299
|
SelectionStatus: __expectString(output.SelectionStatus),
|
|
@@ -1360,11 +1322,9 @@ var deserializeAws_json1_1BoundingBox = function (output, context) {
|
|
|
1360
1322
|
};
|
|
1361
1323
|
var deserializeAws_json1_1DetectDocumentTextResponse = function (output, context) {
|
|
1362
1324
|
return {
|
|
1363
|
-
Blocks: output.Blocks
|
|
1364
|
-
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1365
|
-
: undefined,
|
|
1325
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1366
1326
|
DetectDocumentTextModelVersion: __expectString(output.DetectDocumentTextModelVersion),
|
|
1367
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1327
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1368
1328
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1369
1329
|
: undefined,
|
|
1370
1330
|
};
|
|
@@ -1394,21 +1354,17 @@ var deserializeAws_json1_1EntityTypes = function (output, context) {
|
|
|
1394
1354
|
var deserializeAws_json1_1ExpenseDetection = function (output, context) {
|
|
1395
1355
|
return {
|
|
1396
1356
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
1397
|
-
Geometry: output.Geometry
|
|
1398
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1399
|
-
: undefined,
|
|
1357
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1400
1358
|
Text: __expectString(output.Text),
|
|
1401
1359
|
};
|
|
1402
1360
|
};
|
|
1403
1361
|
var deserializeAws_json1_1ExpenseDocument = function (output, context) {
|
|
1404
1362
|
return {
|
|
1405
1363
|
ExpenseIndex: __expectInt32(output.ExpenseIndex),
|
|
1406
|
-
LineItemGroups: output.LineItemGroups
|
|
1364
|
+
LineItemGroups: output.LineItemGroups != null
|
|
1407
1365
|
? deserializeAws_json1_1LineItemGroupList(output.LineItemGroups, context)
|
|
1408
1366
|
: undefined,
|
|
1409
|
-
SummaryFields: output.SummaryFields
|
|
1410
|
-
? deserializeAws_json1_1ExpenseFieldList(output.SummaryFields, context)
|
|
1411
|
-
: undefined,
|
|
1367
|
+
SummaryFields: output.SummaryFields != null ? deserializeAws_json1_1ExpenseFieldList(output.SummaryFields, context) : undefined,
|
|
1412
1368
|
};
|
|
1413
1369
|
};
|
|
1414
1370
|
var deserializeAws_json1_1ExpenseDocumentList = function (output, context) {
|
|
@@ -1424,14 +1380,12 @@ var deserializeAws_json1_1ExpenseDocumentList = function (output, context) {
|
|
|
1424
1380
|
};
|
|
1425
1381
|
var deserializeAws_json1_1ExpenseField = function (output, context) {
|
|
1426
1382
|
return {
|
|
1427
|
-
LabelDetection: output.LabelDetection
|
|
1383
|
+
LabelDetection: output.LabelDetection != null
|
|
1428
1384
|
? deserializeAws_json1_1ExpenseDetection(output.LabelDetection, context)
|
|
1429
1385
|
: undefined,
|
|
1430
1386
|
PageNumber: __expectInt32(output.PageNumber),
|
|
1431
|
-
Type: output.Type
|
|
1432
|
-
|
|
1433
|
-
: undefined,
|
|
1434
|
-
ValueDetection: output.ValueDetection !== undefined && output.ValueDetection !== null
|
|
1387
|
+
Type: output.Type != null ? deserializeAws_json1_1ExpenseType(output.Type, context) : undefined,
|
|
1388
|
+
ValueDetection: output.ValueDetection != null
|
|
1435
1389
|
? deserializeAws_json1_1ExpenseDetection(output.ValueDetection, context)
|
|
1436
1390
|
: undefined,
|
|
1437
1391
|
};
|
|
@@ -1455,72 +1409,57 @@ var deserializeAws_json1_1ExpenseType = function (output, context) {
|
|
|
1455
1409
|
};
|
|
1456
1410
|
var deserializeAws_json1_1Geometry = function (output, context) {
|
|
1457
1411
|
return {
|
|
1458
|
-
BoundingBox: output.BoundingBox
|
|
1459
|
-
|
|
1460
|
-
: undefined,
|
|
1461
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
1462
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
1463
|
-
: undefined,
|
|
1412
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
1413
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
1464
1414
|
};
|
|
1465
1415
|
};
|
|
1466
1416
|
var deserializeAws_json1_1GetDocumentAnalysisResponse = function (output, context) {
|
|
1467
1417
|
return {
|
|
1468
1418
|
AnalyzeDocumentModelVersion: __expectString(output.AnalyzeDocumentModelVersion),
|
|
1469
|
-
Blocks: output.Blocks
|
|
1470
|
-
|
|
1471
|
-
: undefined,
|
|
1472
|
-
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1419
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1420
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1473
1421
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1474
1422
|
: undefined,
|
|
1475
1423
|
JobStatus: __expectString(output.JobStatus),
|
|
1476
1424
|
NextToken: __expectString(output.NextToken),
|
|
1477
1425
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1478
|
-
Warnings: output.Warnings
|
|
1479
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1480
|
-
: undefined,
|
|
1426
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1481
1427
|
};
|
|
1482
1428
|
};
|
|
1483
1429
|
var deserializeAws_json1_1GetDocumentTextDetectionResponse = function (output, context) {
|
|
1484
1430
|
return {
|
|
1485
|
-
Blocks: output.Blocks
|
|
1486
|
-
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1487
|
-
: undefined,
|
|
1431
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1488
1432
|
DetectDocumentTextModelVersion: __expectString(output.DetectDocumentTextModelVersion),
|
|
1489
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1433
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1490
1434
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1491
1435
|
: undefined,
|
|
1492
1436
|
JobStatus: __expectString(output.JobStatus),
|
|
1493
1437
|
NextToken: __expectString(output.NextToken),
|
|
1494
1438
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1495
|
-
Warnings: output.Warnings
|
|
1496
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1497
|
-
: undefined,
|
|
1439
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1498
1440
|
};
|
|
1499
1441
|
};
|
|
1500
1442
|
var deserializeAws_json1_1GetExpenseAnalysisResponse = function (output, context) {
|
|
1501
1443
|
return {
|
|
1502
1444
|
AnalyzeExpenseModelVersion: __expectString(output.AnalyzeExpenseModelVersion),
|
|
1503
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1445
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1504
1446
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1505
1447
|
: undefined,
|
|
1506
|
-
ExpenseDocuments: output.ExpenseDocuments
|
|
1448
|
+
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1507
1449
|
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1508
1450
|
: undefined,
|
|
1509
1451
|
JobStatus: __expectString(output.JobStatus),
|
|
1510
1452
|
NextToken: __expectString(output.NextToken),
|
|
1511
1453
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1512
|
-
Warnings: output.Warnings
|
|
1513
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1514
|
-
: undefined,
|
|
1454
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1515
1455
|
};
|
|
1516
1456
|
};
|
|
1517
1457
|
var deserializeAws_json1_1HumanLoopActivationOutput = function (output, context) {
|
|
1518
1458
|
return {
|
|
1519
|
-
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults
|
|
1520
|
-
output.HumanLoopActivationConditionsEvaluationResults !== null
|
|
1459
|
+
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
1521
1460
|
? new __LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
1522
1461
|
: undefined,
|
|
1523
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons
|
|
1462
|
+
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
1524
1463
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
1525
1464
|
: undefined,
|
|
1526
1465
|
HumanLoopArn: __expectString(output.HumanLoopArn),
|
|
@@ -1555,17 +1494,15 @@ var deserializeAws_json1_1IdempotentParameterMismatchException = function (outpu
|
|
|
1555
1494
|
var deserializeAws_json1_1IdentityDocument = function (output, context) {
|
|
1556
1495
|
return {
|
|
1557
1496
|
DocumentIndex: __expectInt32(output.DocumentIndex),
|
|
1558
|
-
IdentityDocumentFields: output.IdentityDocumentFields
|
|
1497
|
+
IdentityDocumentFields: output.IdentityDocumentFields != null
|
|
1559
1498
|
? deserializeAws_json1_1IdentityDocumentFieldList(output.IdentityDocumentFields, context)
|
|
1560
1499
|
: undefined,
|
|
1561
1500
|
};
|
|
1562
1501
|
};
|
|
1563
1502
|
var deserializeAws_json1_1IdentityDocumentField = function (output, context) {
|
|
1564
1503
|
return {
|
|
1565
|
-
Type: output.Type
|
|
1566
|
-
|
|
1567
|
-
: undefined,
|
|
1568
|
-
ValueDetection: output.ValueDetection !== undefined && output.ValueDetection !== null
|
|
1504
|
+
Type: output.Type != null ? deserializeAws_json1_1AnalyzeIDDetections(output.Type, context) : undefined,
|
|
1505
|
+
ValueDetection: output.ValueDetection != null
|
|
1569
1506
|
? deserializeAws_json1_1AnalyzeIDDetections(output.ValueDetection, context)
|
|
1570
1507
|
: undefined,
|
|
1571
1508
|
};
|
|
@@ -1641,7 +1578,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
1641
1578
|
};
|
|
1642
1579
|
var deserializeAws_json1_1LineItemFields = function (output, context) {
|
|
1643
1580
|
return {
|
|
1644
|
-
LineItemExpenseFields: output.LineItemExpenseFields
|
|
1581
|
+
LineItemExpenseFields: output.LineItemExpenseFields != null
|
|
1645
1582
|
? deserializeAws_json1_1ExpenseFieldList(output.LineItemExpenseFields, context)
|
|
1646
1583
|
: undefined,
|
|
1647
1584
|
};
|
|
@@ -1649,9 +1586,7 @@ var deserializeAws_json1_1LineItemFields = function (output, context) {
|
|
|
1649
1586
|
var deserializeAws_json1_1LineItemGroup = function (output, context) {
|
|
1650
1587
|
return {
|
|
1651
1588
|
LineItemGroupIndex: __expectInt32(output.LineItemGroupIndex),
|
|
1652
|
-
LineItems: output.LineItems
|
|
1653
|
-
? deserializeAws_json1_1LineItemList(output.LineItems, context)
|
|
1654
|
-
: undefined,
|
|
1589
|
+
LineItems: output.LineItems != null ? deserializeAws_json1_1LineItemList(output.LineItems, context) : undefined,
|
|
1655
1590
|
};
|
|
1656
1591
|
};
|
|
1657
1592
|
var deserializeAws_json1_1LineItemGroupList = function (output, context) {
|
|
@@ -1719,9 +1654,7 @@ var deserializeAws_json1_1ProvisionedThroughputExceededException = function (out
|
|
|
1719
1654
|
var deserializeAws_json1_1Query = function (output, context) {
|
|
1720
1655
|
return {
|
|
1721
1656
|
Alias: __expectString(output.Alias),
|
|
1722
|
-
Pages: output.Pages
|
|
1723
|
-
? deserializeAws_json1_1QueryPages(output.Pages, context)
|
|
1724
|
-
: undefined,
|
|
1657
|
+
Pages: output.Pages != null ? deserializeAws_json1_1QueryPages(output.Pages, context) : undefined,
|
|
1725
1658
|
Text: __expectString(output.Text),
|
|
1726
1659
|
};
|
|
1727
1660
|
};
|
|
@@ -1738,7 +1671,7 @@ var deserializeAws_json1_1QueryPages = function (output, context) {
|
|
|
1738
1671
|
};
|
|
1739
1672
|
var deserializeAws_json1_1Relationship = function (output, context) {
|
|
1740
1673
|
return {
|
|
1741
|
-
Ids: output.Ids
|
|
1674
|
+
Ids: output.Ids != null ? deserializeAws_json1_1IdList(output.Ids, context) : undefined,
|
|
1742
1675
|
Type: __expectString(output.Type),
|
|
1743
1676
|
};
|
|
1744
1677
|
};
|
|
@@ -1783,9 +1716,7 @@ var deserializeAws_json1_1UnsupportedDocumentException = function (output, conte
|
|
|
1783
1716
|
var deserializeAws_json1_1Warning = function (output, context) {
|
|
1784
1717
|
return {
|
|
1785
1718
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1786
|
-
Pages: output.Pages
|
|
1787
|
-
? deserializeAws_json1_1Pages(output.Pages, context)
|
|
1788
|
-
: undefined,
|
|
1719
|
+
Pages: output.Pages != null ? deserializeAws_json1_1Pages(output.Pages, context) : undefined,
|
|
1789
1720
|
};
|
|
1790
1721
|
};
|
|
1791
1722
|
var deserializeAws_json1_1Warnings = function (output, context) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-textract",
|
|
3
3
|
"description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.127.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|