@aws-sdk/client-textract 3.53.0 → 3.55.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 +24 -0
- package/dist-cjs/TextractClient.js +13 -13
- package/dist-cjs/commands/AnalyzeDocumentCommand.js +3 -3
- package/dist-cjs/commands/AnalyzeExpenseCommand.js +3 -3
- package/dist-cjs/commands/AnalyzeIDCommand.js +3 -3
- package/dist-cjs/commands/DetectDocumentTextCommand.js +3 -3
- package/dist-cjs/commands/GetDocumentAnalysisCommand.js +3 -3
- package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +3 -3
- package/dist-cjs/commands/GetExpenseAnalysisCommand.js +3 -3
- package/dist-cjs/commands/StartDocumentAnalysisCommand.js +3 -3
- package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +3 -3
- package/dist-cjs/commands/StartExpenseAnalysisCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_1.js +110 -110
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Textract.js +10 -10
- package/dist-types/TextractClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/TextractClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -165,7 +165,7 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
|
|
|
165
165
|
$fault: "client",
|
|
166
166
|
$metadata: deserializeMetadata(output),
|
|
167
167
|
});
|
|
168
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
168
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
const deserializeAws_json1_1AnalyzeExpenseCommand = async (output, context) => {
|
|
@@ -225,7 +225,7 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
|
|
|
225
225
|
$fault: "client",
|
|
226
226
|
$metadata: deserializeMetadata(output),
|
|
227
227
|
});
|
|
228
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
228
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
229
229
|
}
|
|
230
230
|
};
|
|
231
231
|
const deserializeAws_json1_1AnalyzeIDCommand = async (output, context) => {
|
|
@@ -285,7 +285,7 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
|
|
|
285
285
|
$fault: "client",
|
|
286
286
|
$metadata: deserializeMetadata(output),
|
|
287
287
|
});
|
|
288
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
288
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
const deserializeAws_json1_1DetectDocumentTextCommand = async (output, context) => {
|
|
@@ -345,7 +345,7 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
|
|
|
345
345
|
$fault: "client",
|
|
346
346
|
$metadata: deserializeMetadata(output),
|
|
347
347
|
});
|
|
348
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
348
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
351
|
const deserializeAws_json1_1GetDocumentAnalysisCommand = async (output, context) => {
|
|
@@ -402,7 +402,7 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
|
|
|
402
402
|
$fault: "client",
|
|
403
403
|
$metadata: deserializeMetadata(output),
|
|
404
404
|
});
|
|
405
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
405
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
const deserializeAws_json1_1GetDocumentTextDetectionCommand = async (output, context) => {
|
|
@@ -459,7 +459,7 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
|
|
|
459
459
|
$fault: "client",
|
|
460
460
|
$metadata: deserializeMetadata(output),
|
|
461
461
|
});
|
|
462
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
462
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
463
463
|
}
|
|
464
464
|
};
|
|
465
465
|
const deserializeAws_json1_1GetExpenseAnalysisCommand = async (output, context) => {
|
|
@@ -516,7 +516,7 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
|
|
|
516
516
|
$fault: "client",
|
|
517
517
|
$metadata: deserializeMetadata(output),
|
|
518
518
|
});
|
|
519
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
519
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
522
|
const deserializeAws_json1_1StartDocumentAnalysisCommand = async (output, context) => {
|
|
@@ -585,7 +585,7 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
|
|
|
585
585
|
$fault: "client",
|
|
586
586
|
$metadata: deserializeMetadata(output),
|
|
587
587
|
});
|
|
588
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
588
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
589
589
|
}
|
|
590
590
|
};
|
|
591
591
|
const deserializeAws_json1_1StartDocumentTextDetectionCommand = async (output, context) => {
|
|
@@ -654,7 +654,7 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
|
|
|
654
654
|
$fault: "client",
|
|
655
655
|
$metadata: deserializeMetadata(output),
|
|
656
656
|
});
|
|
657
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
657
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
660
|
const deserializeAws_json1_1StartExpenseAnalysisCommand = async (output, context) => {
|
|
@@ -723,7 +723,7 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
|
|
|
723
723
|
$fault: "client",
|
|
724
724
|
$metadata: deserializeMetadata(output),
|
|
725
725
|
});
|
|
726
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
726
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
729
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -733,7 +733,7 @@ const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput,
|
|
|
733
733
|
$metadata: deserializeMetadata(parsedOutput),
|
|
734
734
|
...deserialized,
|
|
735
735
|
});
|
|
736
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
736
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
737
737
|
};
|
|
738
738
|
const deserializeAws_json1_1BadDocumentExceptionResponse = async (parsedOutput, context) => {
|
|
739
739
|
const body = parsedOutput.body;
|
|
@@ -742,7 +742,7 @@ const deserializeAws_json1_1BadDocumentExceptionResponse = async (parsedOutput,
|
|
|
742
742
|
$metadata: deserializeMetadata(parsedOutput),
|
|
743
743
|
...deserialized,
|
|
744
744
|
});
|
|
745
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
745
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
746
746
|
};
|
|
747
747
|
const deserializeAws_json1_1DocumentTooLargeExceptionResponse = async (parsedOutput, context) => {
|
|
748
748
|
const body = parsedOutput.body;
|
|
@@ -751,7 +751,7 @@ const deserializeAws_json1_1DocumentTooLargeExceptionResponse = async (parsedOut
|
|
|
751
751
|
$metadata: deserializeMetadata(parsedOutput),
|
|
752
752
|
...deserialized,
|
|
753
753
|
});
|
|
754
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
754
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
755
755
|
};
|
|
756
756
|
const deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
757
757
|
const body = parsedOutput.body;
|
|
@@ -760,7 +760,7 @@ const deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse = async (par
|
|
|
760
760
|
$metadata: deserializeMetadata(parsedOutput),
|
|
761
761
|
...deserialized,
|
|
762
762
|
});
|
|
763
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
763
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
764
764
|
};
|
|
765
765
|
const deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
|
|
766
766
|
const body = parsedOutput.body;
|
|
@@ -769,7 +769,7 @@ const deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = async
|
|
|
769
769
|
$metadata: deserializeMetadata(parsedOutput),
|
|
770
770
|
...deserialized,
|
|
771
771
|
});
|
|
772
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
772
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
773
773
|
};
|
|
774
774
|
const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
|
|
775
775
|
const body = parsedOutput.body;
|
|
@@ -778,7 +778,7 @@ const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, c
|
|
|
778
778
|
$metadata: deserializeMetadata(parsedOutput),
|
|
779
779
|
...deserialized,
|
|
780
780
|
});
|
|
781
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
781
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
782
782
|
};
|
|
783
783
|
const deserializeAws_json1_1InvalidJobIdExceptionResponse = async (parsedOutput, context) => {
|
|
784
784
|
const body = parsedOutput.body;
|
|
@@ -787,7 +787,7 @@ const deserializeAws_json1_1InvalidJobIdExceptionResponse = async (parsedOutput,
|
|
|
787
787
|
$metadata: deserializeMetadata(parsedOutput),
|
|
788
788
|
...deserialized,
|
|
789
789
|
});
|
|
790
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
790
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
791
791
|
};
|
|
792
792
|
const deserializeAws_json1_1InvalidKMSKeyExceptionResponse = async (parsedOutput, context) => {
|
|
793
793
|
const body = parsedOutput.body;
|
|
@@ -796,7 +796,7 @@ const deserializeAws_json1_1InvalidKMSKeyExceptionResponse = async (parsedOutput
|
|
|
796
796
|
$metadata: deserializeMetadata(parsedOutput),
|
|
797
797
|
...deserialized,
|
|
798
798
|
});
|
|
799
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
799
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
800
800
|
};
|
|
801
801
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
802
802
|
const body = parsedOutput.body;
|
|
@@ -805,7 +805,7 @@ const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOut
|
|
|
805
805
|
$metadata: deserializeMetadata(parsedOutput),
|
|
806
806
|
...deserialized,
|
|
807
807
|
});
|
|
808
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
808
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
809
809
|
};
|
|
810
810
|
const deserializeAws_json1_1InvalidS3ObjectExceptionResponse = async (parsedOutput, context) => {
|
|
811
811
|
const body = parsedOutput.body;
|
|
@@ -814,7 +814,7 @@ const deserializeAws_json1_1InvalidS3ObjectExceptionResponse = async (parsedOutp
|
|
|
814
814
|
$metadata: deserializeMetadata(parsedOutput),
|
|
815
815
|
...deserialized,
|
|
816
816
|
});
|
|
817
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
817
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
818
818
|
};
|
|
819
819
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
820
820
|
const body = parsedOutput.body;
|
|
@@ -823,7 +823,7 @@ const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput
|
|
|
823
823
|
$metadata: deserializeMetadata(parsedOutput),
|
|
824
824
|
...deserialized,
|
|
825
825
|
});
|
|
826
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
826
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
827
827
|
};
|
|
828
828
|
const deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => {
|
|
829
829
|
const body = parsedOutput.body;
|
|
@@ -832,7 +832,7 @@ const deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = asy
|
|
|
832
832
|
$metadata: deserializeMetadata(parsedOutput),
|
|
833
833
|
...deserialized,
|
|
834
834
|
});
|
|
835
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
835
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
836
836
|
};
|
|
837
837
|
const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
838
838
|
const body = parsedOutput.body;
|
|
@@ -841,7 +841,7 @@ const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, c
|
|
|
841
841
|
$metadata: deserializeMetadata(parsedOutput),
|
|
842
842
|
...deserialized,
|
|
843
843
|
});
|
|
844
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
844
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
845
845
|
};
|
|
846
846
|
const deserializeAws_json1_1UnsupportedDocumentExceptionResponse = async (parsedOutput, context) => {
|
|
847
847
|
const body = parsedOutput.body;
|
|
@@ -850,7 +850,7 @@ const deserializeAws_json1_1UnsupportedDocumentExceptionResponse = async (parsed
|
|
|
850
850
|
$metadata: deserializeMetadata(parsedOutput),
|
|
851
851
|
...deserialized,
|
|
852
852
|
});
|
|
853
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
853
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
854
854
|
};
|
|
855
855
|
const serializeAws_json1_1AnalyzeDocumentRequest = (input, context) => {
|
|
856
856
|
return {
|
|
@@ -1044,13 +1044,13 @@ const serializeAws_json1_1StartExpenseAnalysisRequest = (input, context) => {
|
|
|
1044
1044
|
};
|
|
1045
1045
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
1046
1046
|
return {
|
|
1047
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1048
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1047
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1048
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1049
1049
|
};
|
|
1050
1050
|
};
|
|
1051
1051
|
const deserializeAws_json1_1AnalyzeDocumentResponse = (output, context) => {
|
|
1052
1052
|
return {
|
|
1053
|
-
AnalyzeDocumentModelVersion: smithy_client_1.expectString(output.AnalyzeDocumentModelVersion),
|
|
1053
|
+
AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
|
|
1054
1054
|
Blocks: output.Blocks !== undefined && output.Blocks !== null
|
|
1055
1055
|
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1056
1056
|
: undefined,
|
|
@@ -1074,16 +1074,16 @@ const deserializeAws_json1_1AnalyzeExpenseResponse = (output, context) => {
|
|
|
1074
1074
|
};
|
|
1075
1075
|
const deserializeAws_json1_1AnalyzeIDDetections = (output, context) => {
|
|
1076
1076
|
return {
|
|
1077
|
-
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
1077
|
+
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1078
1078
|
NormalizedValue: output.NormalizedValue !== undefined && output.NormalizedValue !== null
|
|
1079
1079
|
? deserializeAws_json1_1NormalizedValue(output.NormalizedValue, context)
|
|
1080
1080
|
: undefined,
|
|
1081
|
-
Text: smithy_client_1.expectString(output.Text),
|
|
1081
|
+
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1082
1082
|
};
|
|
1083
1083
|
};
|
|
1084
1084
|
const deserializeAws_json1_1AnalyzeIDResponse = (output, context) => {
|
|
1085
1085
|
return {
|
|
1086
|
-
AnalyzeIDModelVersion: smithy_client_1.expectString(output.AnalyzeIDModelVersion),
|
|
1086
|
+
AnalyzeIDModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeIDModelVersion),
|
|
1087
1087
|
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1088
1088
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1089
1089
|
: undefined,
|
|
@@ -1094,32 +1094,32 @@ const deserializeAws_json1_1AnalyzeIDResponse = (output, context) => {
|
|
|
1094
1094
|
};
|
|
1095
1095
|
const deserializeAws_json1_1BadDocumentException = (output, context) => {
|
|
1096
1096
|
return {
|
|
1097
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1098
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1097
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1098
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1099
1099
|
};
|
|
1100
1100
|
};
|
|
1101
1101
|
const deserializeAws_json1_1Block = (output, context) => {
|
|
1102
1102
|
return {
|
|
1103
|
-
BlockType: smithy_client_1.expectString(output.BlockType),
|
|
1104
|
-
ColumnIndex: smithy_client_1.expectInt32(output.ColumnIndex),
|
|
1105
|
-
ColumnSpan: smithy_client_1.expectInt32(output.ColumnSpan),
|
|
1106
|
-
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
1103
|
+
BlockType: (0, smithy_client_1.expectString)(output.BlockType),
|
|
1104
|
+
ColumnIndex: (0, smithy_client_1.expectInt32)(output.ColumnIndex),
|
|
1105
|
+
ColumnSpan: (0, smithy_client_1.expectInt32)(output.ColumnSpan),
|
|
1106
|
+
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1107
1107
|
EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null
|
|
1108
1108
|
? deserializeAws_json1_1EntityTypes(output.EntityTypes, context)
|
|
1109
1109
|
: undefined,
|
|
1110
1110
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
1111
1111
|
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1112
1112
|
: undefined,
|
|
1113
|
-
Id: smithy_client_1.expectString(output.Id),
|
|
1114
|
-
Page: smithy_client_1.expectInt32(output.Page),
|
|
1113
|
+
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1114
|
+
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1115
1115
|
Relationships: output.Relationships !== undefined && output.Relationships !== null
|
|
1116
1116
|
? deserializeAws_json1_1RelationshipList(output.Relationships, context)
|
|
1117
1117
|
: undefined,
|
|
1118
|
-
RowIndex: smithy_client_1.expectInt32(output.RowIndex),
|
|
1119
|
-
RowSpan: smithy_client_1.expectInt32(output.RowSpan),
|
|
1120
|
-
SelectionStatus: smithy_client_1.expectString(output.SelectionStatus),
|
|
1121
|
-
Text: smithy_client_1.expectString(output.Text),
|
|
1122
|
-
TextType: smithy_client_1.expectString(output.TextType),
|
|
1118
|
+
RowIndex: (0, smithy_client_1.expectInt32)(output.RowIndex),
|
|
1119
|
+
RowSpan: (0, smithy_client_1.expectInt32)(output.RowSpan),
|
|
1120
|
+
SelectionStatus: (0, smithy_client_1.expectString)(output.SelectionStatus),
|
|
1121
|
+
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1122
|
+
TextType: (0, smithy_client_1.expectString)(output.TextType),
|
|
1123
1123
|
};
|
|
1124
1124
|
};
|
|
1125
1125
|
const deserializeAws_json1_1BlockList = (output, context) => {
|
|
@@ -1135,10 +1135,10 @@ const deserializeAws_json1_1BlockList = (output, context) => {
|
|
|
1135
1135
|
};
|
|
1136
1136
|
const deserializeAws_json1_1BoundingBox = (output, context) => {
|
|
1137
1137
|
return {
|
|
1138
|
-
Height: smithy_client_1.limitedParseFloat32(output.Height),
|
|
1139
|
-
Left: smithy_client_1.limitedParseFloat32(output.Left),
|
|
1140
|
-
Top: smithy_client_1.limitedParseFloat32(output.Top),
|
|
1141
|
-
Width: smithy_client_1.limitedParseFloat32(output.Width),
|
|
1138
|
+
Height: (0, smithy_client_1.limitedParseFloat32)(output.Height),
|
|
1139
|
+
Left: (0, smithy_client_1.limitedParseFloat32)(output.Left),
|
|
1140
|
+
Top: (0, smithy_client_1.limitedParseFloat32)(output.Top),
|
|
1141
|
+
Width: (0, smithy_client_1.limitedParseFloat32)(output.Width),
|
|
1142
1142
|
};
|
|
1143
1143
|
};
|
|
1144
1144
|
const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
|
|
@@ -1146,7 +1146,7 @@ const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
|
|
|
1146
1146
|
Blocks: output.Blocks !== undefined && output.Blocks !== null
|
|
1147
1147
|
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1148
1148
|
: undefined,
|
|
1149
|
-
DetectDocumentTextModelVersion: smithy_client_1.expectString(output.DetectDocumentTextModelVersion),
|
|
1149
|
+
DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
|
|
1150
1150
|
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1151
1151
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1152
1152
|
: undefined,
|
|
@@ -1154,13 +1154,13 @@ const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
|
|
|
1154
1154
|
};
|
|
1155
1155
|
const deserializeAws_json1_1DocumentMetadata = (output, context) => {
|
|
1156
1156
|
return {
|
|
1157
|
-
Pages: smithy_client_1.expectInt32(output.Pages),
|
|
1157
|
+
Pages: (0, smithy_client_1.expectInt32)(output.Pages),
|
|
1158
1158
|
};
|
|
1159
1159
|
};
|
|
1160
1160
|
const deserializeAws_json1_1DocumentTooLargeException = (output, context) => {
|
|
1161
1161
|
return {
|
|
1162
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1163
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1162
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1163
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1164
1164
|
};
|
|
1165
1165
|
};
|
|
1166
1166
|
const deserializeAws_json1_1EntityTypes = (output, context) => {
|
|
@@ -1170,22 +1170,22 @@ const deserializeAws_json1_1EntityTypes = (output, context) => {
|
|
|
1170
1170
|
if (entry === null) {
|
|
1171
1171
|
return null;
|
|
1172
1172
|
}
|
|
1173
|
-
return smithy_client_1.expectString(entry);
|
|
1173
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1174
1174
|
});
|
|
1175
1175
|
return retVal;
|
|
1176
1176
|
};
|
|
1177
1177
|
const deserializeAws_json1_1ExpenseDetection = (output, context) => {
|
|
1178
1178
|
return {
|
|
1179
|
-
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
1179
|
+
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1180
1180
|
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
1181
1181
|
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1182
1182
|
: undefined,
|
|
1183
|
-
Text: smithy_client_1.expectString(output.Text),
|
|
1183
|
+
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1184
1184
|
};
|
|
1185
1185
|
};
|
|
1186
1186
|
const deserializeAws_json1_1ExpenseDocument = (output, context) => {
|
|
1187
1187
|
return {
|
|
1188
|
-
ExpenseIndex: smithy_client_1.expectInt32(output.ExpenseIndex),
|
|
1188
|
+
ExpenseIndex: (0, smithy_client_1.expectInt32)(output.ExpenseIndex),
|
|
1189
1189
|
LineItemGroups: output.LineItemGroups !== undefined && output.LineItemGroups !== null
|
|
1190
1190
|
? deserializeAws_json1_1LineItemGroupList(output.LineItemGroups, context)
|
|
1191
1191
|
: undefined,
|
|
@@ -1210,7 +1210,7 @@ const deserializeAws_json1_1ExpenseField = (output, context) => {
|
|
|
1210
1210
|
LabelDetection: output.LabelDetection !== undefined && output.LabelDetection !== null
|
|
1211
1211
|
? deserializeAws_json1_1ExpenseDetection(output.LabelDetection, context)
|
|
1212
1212
|
: undefined,
|
|
1213
|
-
PageNumber: smithy_client_1.expectInt32(output.PageNumber),
|
|
1213
|
+
PageNumber: (0, smithy_client_1.expectInt32)(output.PageNumber),
|
|
1214
1214
|
Type: output.Type !== undefined && output.Type !== null
|
|
1215
1215
|
? deserializeAws_json1_1ExpenseType(output.Type, context)
|
|
1216
1216
|
: undefined,
|
|
@@ -1232,8 +1232,8 @@ const deserializeAws_json1_1ExpenseFieldList = (output, context) => {
|
|
|
1232
1232
|
};
|
|
1233
1233
|
const deserializeAws_json1_1ExpenseType = (output, context) => {
|
|
1234
1234
|
return {
|
|
1235
|
-
Confidence: smithy_client_1.limitedParseFloat32(output.Confidence),
|
|
1236
|
-
Text: smithy_client_1.expectString(output.Text),
|
|
1235
|
+
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1236
|
+
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1237
1237
|
};
|
|
1238
1238
|
};
|
|
1239
1239
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
@@ -1248,16 +1248,16 @@ const deserializeAws_json1_1Geometry = (output, context) => {
|
|
|
1248
1248
|
};
|
|
1249
1249
|
const deserializeAws_json1_1GetDocumentAnalysisResponse = (output, context) => {
|
|
1250
1250
|
return {
|
|
1251
|
-
AnalyzeDocumentModelVersion: smithy_client_1.expectString(output.AnalyzeDocumentModelVersion),
|
|
1251
|
+
AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
|
|
1252
1252
|
Blocks: output.Blocks !== undefined && output.Blocks !== null
|
|
1253
1253
|
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1254
1254
|
: undefined,
|
|
1255
1255
|
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1256
1256
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1257
1257
|
: undefined,
|
|
1258
|
-
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1259
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1260
|
-
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
1258
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1259
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1260
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1261
1261
|
Warnings: output.Warnings !== undefined && output.Warnings !== null
|
|
1262
1262
|
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1263
1263
|
: undefined,
|
|
@@ -1268,13 +1268,13 @@ const deserializeAws_json1_1GetDocumentTextDetectionResponse = (output, context)
|
|
|
1268
1268
|
Blocks: output.Blocks !== undefined && output.Blocks !== null
|
|
1269
1269
|
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1270
1270
|
: undefined,
|
|
1271
|
-
DetectDocumentTextModelVersion: smithy_client_1.expectString(output.DetectDocumentTextModelVersion),
|
|
1271
|
+
DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
|
|
1272
1272
|
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1273
1273
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1274
1274
|
: undefined,
|
|
1275
|
-
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1276
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1277
|
-
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
1275
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1276
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1277
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1278
1278
|
Warnings: output.Warnings !== undefined && output.Warnings !== null
|
|
1279
1279
|
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1280
1280
|
: undefined,
|
|
@@ -1282,16 +1282,16 @@ const deserializeAws_json1_1GetDocumentTextDetectionResponse = (output, context)
|
|
|
1282
1282
|
};
|
|
1283
1283
|
const deserializeAws_json1_1GetExpenseAnalysisResponse = (output, context) => {
|
|
1284
1284
|
return {
|
|
1285
|
-
AnalyzeExpenseModelVersion: smithy_client_1.expectString(output.AnalyzeExpenseModelVersion),
|
|
1285
|
+
AnalyzeExpenseModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeExpenseModelVersion),
|
|
1286
1286
|
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1287
1287
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1288
1288
|
: undefined,
|
|
1289
1289
|
ExpenseDocuments: output.ExpenseDocuments !== undefined && output.ExpenseDocuments !== null
|
|
1290
1290
|
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1291
1291
|
: undefined,
|
|
1292
|
-
JobStatus: smithy_client_1.expectString(output.JobStatus),
|
|
1293
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1294
|
-
StatusMessage: smithy_client_1.expectString(output.StatusMessage),
|
|
1292
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1293
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1294
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1295
1295
|
Warnings: output.Warnings !== undefined && output.Warnings !== null
|
|
1296
1296
|
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1297
1297
|
: undefined,
|
|
@@ -1306,7 +1306,7 @@ const deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
|
|
|
1306
1306
|
HumanLoopActivationReasons: output.HumanLoopActivationReasons !== undefined && output.HumanLoopActivationReasons !== null
|
|
1307
1307
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
1308
1308
|
: undefined,
|
|
1309
|
-
HumanLoopArn: smithy_client_1.expectString(output.HumanLoopArn),
|
|
1309
|
+
HumanLoopArn: (0, smithy_client_1.expectString)(output.HumanLoopArn),
|
|
1310
1310
|
};
|
|
1311
1311
|
};
|
|
1312
1312
|
const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
|
|
@@ -1316,28 +1316,28 @@ const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
|
|
|
1316
1316
|
if (entry === null) {
|
|
1317
1317
|
return null;
|
|
1318
1318
|
}
|
|
1319
|
-
return smithy_client_1.expectString(entry);
|
|
1319
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1320
1320
|
});
|
|
1321
1321
|
return retVal;
|
|
1322
1322
|
};
|
|
1323
1323
|
const deserializeAws_json1_1HumanLoopQuotaExceededException = (output, context) => {
|
|
1324
1324
|
return {
|
|
1325
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1326
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1327
|
-
QuotaCode: smithy_client_1.expectString(output.QuotaCode),
|
|
1328
|
-
ResourceType: smithy_client_1.expectString(output.ResourceType),
|
|
1329
|
-
ServiceCode: smithy_client_1.expectString(output.ServiceCode),
|
|
1325
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1326
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1327
|
+
QuotaCode: (0, smithy_client_1.expectString)(output.QuotaCode),
|
|
1328
|
+
ResourceType: (0, smithy_client_1.expectString)(output.ResourceType),
|
|
1329
|
+
ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
|
|
1330
1330
|
};
|
|
1331
1331
|
};
|
|
1332
1332
|
const deserializeAws_json1_1IdempotentParameterMismatchException = (output, context) => {
|
|
1333
1333
|
return {
|
|
1334
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1335
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1334
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1335
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1336
1336
|
};
|
|
1337
1337
|
};
|
|
1338
1338
|
const deserializeAws_json1_1IdentityDocument = (output, context) => {
|
|
1339
1339
|
return {
|
|
1340
|
-
DocumentIndex: smithy_client_1.expectInt32(output.DocumentIndex),
|
|
1340
|
+
DocumentIndex: (0, smithy_client_1.expectInt32)(output.DocumentIndex),
|
|
1341
1341
|
IdentityDocumentFields: output.IdentityDocumentFields !== undefined && output.IdentityDocumentFields !== null
|
|
1342
1342
|
? deserializeAws_json1_1IdentityDocumentFieldList(output.IdentityDocumentFields, context)
|
|
1343
1343
|
: undefined,
|
|
@@ -1382,44 +1382,44 @@ const deserializeAws_json1_1IdList = (output, context) => {
|
|
|
1382
1382
|
if (entry === null) {
|
|
1383
1383
|
return null;
|
|
1384
1384
|
}
|
|
1385
|
-
return smithy_client_1.expectString(entry);
|
|
1385
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
1386
1386
|
});
|
|
1387
1387
|
return retVal;
|
|
1388
1388
|
};
|
|
1389
1389
|
const deserializeAws_json1_1InternalServerError = (output, context) => {
|
|
1390
1390
|
return {
|
|
1391
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1392
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1391
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1392
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1393
1393
|
};
|
|
1394
1394
|
};
|
|
1395
1395
|
const deserializeAws_json1_1InvalidJobIdException = (output, context) => {
|
|
1396
1396
|
return {
|
|
1397
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1398
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1397
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1398
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1399
1399
|
};
|
|
1400
1400
|
};
|
|
1401
1401
|
const deserializeAws_json1_1InvalidKMSKeyException = (output, context) => {
|
|
1402
1402
|
return {
|
|
1403
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1404
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1403
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1404
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1405
1405
|
};
|
|
1406
1406
|
};
|
|
1407
1407
|
const deserializeAws_json1_1InvalidParameterException = (output, context) => {
|
|
1408
1408
|
return {
|
|
1409
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1410
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1409
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1410
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1411
1411
|
};
|
|
1412
1412
|
};
|
|
1413
1413
|
const deserializeAws_json1_1InvalidS3ObjectException = (output, context) => {
|
|
1414
1414
|
return {
|
|
1415
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1416
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1415
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1416
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1417
1417
|
};
|
|
1418
1418
|
};
|
|
1419
1419
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1420
1420
|
return {
|
|
1421
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1422
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1421
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1422
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1423
1423
|
};
|
|
1424
1424
|
};
|
|
1425
1425
|
const deserializeAws_json1_1LineItemFields = (output, context) => {
|
|
@@ -1431,7 +1431,7 @@ const deserializeAws_json1_1LineItemFields = (output, context) => {
|
|
|
1431
1431
|
};
|
|
1432
1432
|
const deserializeAws_json1_1LineItemGroup = (output, context) => {
|
|
1433
1433
|
return {
|
|
1434
|
-
LineItemGroupIndex: smithy_client_1.expectInt32(output.LineItemGroupIndex),
|
|
1434
|
+
LineItemGroupIndex: (0, smithy_client_1.expectInt32)(output.LineItemGroupIndex),
|
|
1435
1435
|
LineItems: output.LineItems !== undefined && output.LineItems !== null
|
|
1436
1436
|
? deserializeAws_json1_1LineItemList(output.LineItems, context)
|
|
1437
1437
|
: undefined,
|
|
@@ -1461,8 +1461,8 @@ const deserializeAws_json1_1LineItemList = (output, context) => {
|
|
|
1461
1461
|
};
|
|
1462
1462
|
const deserializeAws_json1_1NormalizedValue = (output, context) => {
|
|
1463
1463
|
return {
|
|
1464
|
-
Value: smithy_client_1.expectString(output.Value),
|
|
1465
|
-
ValueType: smithy_client_1.expectString(output.ValueType),
|
|
1464
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1465
|
+
ValueType: (0, smithy_client_1.expectString)(output.ValueType),
|
|
1466
1466
|
};
|
|
1467
1467
|
};
|
|
1468
1468
|
const deserializeAws_json1_1Pages = (output, context) => {
|
|
@@ -1472,14 +1472,14 @@ const deserializeAws_json1_1Pages = (output, context) => {
|
|
|
1472
1472
|
if (entry === null) {
|
|
1473
1473
|
return null;
|
|
1474
1474
|
}
|
|
1475
|
-
return smithy_client_1.expectInt32(entry);
|
|
1475
|
+
return (0, smithy_client_1.expectInt32)(entry);
|
|
1476
1476
|
});
|
|
1477
1477
|
return retVal;
|
|
1478
1478
|
};
|
|
1479
1479
|
const deserializeAws_json1_1Point = (output, context) => {
|
|
1480
1480
|
return {
|
|
1481
|
-
X: smithy_client_1.limitedParseFloat32(output.X),
|
|
1482
|
-
Y: smithy_client_1.limitedParseFloat32(output.Y),
|
|
1481
|
+
X: (0, smithy_client_1.limitedParseFloat32)(output.X),
|
|
1482
|
+
Y: (0, smithy_client_1.limitedParseFloat32)(output.Y),
|
|
1483
1483
|
};
|
|
1484
1484
|
};
|
|
1485
1485
|
const deserializeAws_json1_1Polygon = (output, context) => {
|
|
@@ -1495,14 +1495,14 @@ const deserializeAws_json1_1Polygon = (output, context) => {
|
|
|
1495
1495
|
};
|
|
1496
1496
|
const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, context) => {
|
|
1497
1497
|
return {
|
|
1498
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1499
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1498
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1499
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1500
1500
|
};
|
|
1501
1501
|
};
|
|
1502
1502
|
const deserializeAws_json1_1Relationship = (output, context) => {
|
|
1503
1503
|
return {
|
|
1504
1504
|
Ids: output.Ids !== undefined && output.Ids !== null ? deserializeAws_json1_1IdList(output.Ids, context) : undefined,
|
|
1505
|
-
Type: smithy_client_1.expectString(output.Type),
|
|
1505
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1506
1506
|
};
|
|
1507
1507
|
};
|
|
1508
1508
|
const deserializeAws_json1_1RelationshipList = (output, context) => {
|
|
@@ -1518,34 +1518,34 @@ const deserializeAws_json1_1RelationshipList = (output, context) => {
|
|
|
1518
1518
|
};
|
|
1519
1519
|
const deserializeAws_json1_1StartDocumentAnalysisResponse = (output, context) => {
|
|
1520
1520
|
return {
|
|
1521
|
-
JobId: smithy_client_1.expectString(output.JobId),
|
|
1521
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1522
1522
|
};
|
|
1523
1523
|
};
|
|
1524
1524
|
const deserializeAws_json1_1StartDocumentTextDetectionResponse = (output, context) => {
|
|
1525
1525
|
return {
|
|
1526
|
-
JobId: smithy_client_1.expectString(output.JobId),
|
|
1526
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1527
1527
|
};
|
|
1528
1528
|
};
|
|
1529
1529
|
const deserializeAws_json1_1StartExpenseAnalysisResponse = (output, context) => {
|
|
1530
1530
|
return {
|
|
1531
|
-
JobId: smithy_client_1.expectString(output.JobId),
|
|
1531
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1532
1532
|
};
|
|
1533
1533
|
};
|
|
1534
1534
|
const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
1535
1535
|
return {
|
|
1536
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1537
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1536
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1537
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1538
1538
|
};
|
|
1539
1539
|
};
|
|
1540
1540
|
const deserializeAws_json1_1UnsupportedDocumentException = (output, context) => {
|
|
1541
1541
|
return {
|
|
1542
|
-
Code: smithy_client_1.expectString(output.Code),
|
|
1543
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1542
|
+
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1543
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1544
1544
|
};
|
|
1545
1545
|
};
|
|
1546
1546
|
const deserializeAws_json1_1Warning = (output, context) => {
|
|
1547
1547
|
return {
|
|
1548
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1548
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1549
1549
|
Pages: output.Pages !== undefined && output.Pages !== null
|
|
1550
1550
|
? deserializeAws_json1_1Pages(output.Pages, context)
|
|
1551
1551
|
: undefined,
|