@aws-sdk/client-textract 3.215.0 → 3.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Textract.js +45 -0
- package/dist-cjs/commands/GetLendingAnalysisCommand.js +46 -0
- package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +46 -0
- package/dist-cjs/commands/StartLendingAnalysisCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +1 -1
- package/dist-cjs/models/models_0.js +77 -1
- package/dist-cjs/protocols/Aws_json1_1.js +501 -1
- package/dist-es/Textract.js +45 -0
- package/dist-es/commands/GetLendingAnalysisCommand.js +42 -0
- package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +42 -0
- package/dist-es/commands/StartLendingAnalysisCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +1 -1
- package/dist-es/models/models_0.js +57 -0
- package/dist-es/protocols/Aws_json1_1.js +494 -0
- package/dist-types/Textract.d.ts +72 -0
- package/dist-types/TextractClient.d.ts +5 -2
- package/dist-types/commands/GetLendingAnalysisCommand.d.ts +47 -0
- package/dist-types/commands/GetLendingAnalysisSummaryCommand.d.ts +48 -0
- package/dist-types/commands/StartLendingAnalysisCommand.d.ts +67 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +431 -10
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Textract.d.ts +51 -0
- package/dist-types/ts3.4/TextractClient.d.ts +20 -2
- package/dist-types/ts3.4/commands/GetLendingAnalysisCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetLendingAnalysisSummaryCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/StartLendingAnalysisCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +144 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deserializeAws_json1_1StartExpenseAnalysisCommand = exports.deserializeAws_json1_1StartDocumentTextDetectionCommand = exports.deserializeAws_json1_1StartDocumentAnalysisCommand = exports.deserializeAws_json1_1GetExpenseAnalysisCommand = exports.deserializeAws_json1_1GetDocumentTextDetectionCommand = exports.deserializeAws_json1_1GetDocumentAnalysisCommand = exports.deserializeAws_json1_1DetectDocumentTextCommand = exports.deserializeAws_json1_1AnalyzeIDCommand = exports.deserializeAws_json1_1AnalyzeExpenseCommand = exports.deserializeAws_json1_1AnalyzeDocumentCommand = exports.serializeAws_json1_1StartExpenseAnalysisCommand = exports.serializeAws_json1_1StartDocumentTextDetectionCommand = exports.serializeAws_json1_1StartDocumentAnalysisCommand = exports.serializeAws_json1_1GetExpenseAnalysisCommand = exports.serializeAws_json1_1GetDocumentTextDetectionCommand = exports.serializeAws_json1_1GetDocumentAnalysisCommand = exports.serializeAws_json1_1DetectDocumentTextCommand = exports.serializeAws_json1_1AnalyzeIDCommand = exports.serializeAws_json1_1AnalyzeExpenseCommand = exports.serializeAws_json1_1AnalyzeDocumentCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1StartLendingAnalysisCommand = exports.deserializeAws_json1_1StartExpenseAnalysisCommand = exports.deserializeAws_json1_1StartDocumentTextDetectionCommand = exports.deserializeAws_json1_1StartDocumentAnalysisCommand = exports.deserializeAws_json1_1GetLendingAnalysisSummaryCommand = exports.deserializeAws_json1_1GetLendingAnalysisCommand = exports.deserializeAws_json1_1GetExpenseAnalysisCommand = exports.deserializeAws_json1_1GetDocumentTextDetectionCommand = exports.deserializeAws_json1_1GetDocumentAnalysisCommand = exports.deserializeAws_json1_1DetectDocumentTextCommand = exports.deserializeAws_json1_1AnalyzeIDCommand = exports.deserializeAws_json1_1AnalyzeExpenseCommand = exports.deserializeAws_json1_1AnalyzeDocumentCommand = exports.serializeAws_json1_1StartLendingAnalysisCommand = exports.serializeAws_json1_1StartExpenseAnalysisCommand = exports.serializeAws_json1_1StartDocumentTextDetectionCommand = exports.serializeAws_json1_1StartDocumentAnalysisCommand = exports.serializeAws_json1_1GetLendingAnalysisSummaryCommand = exports.serializeAws_json1_1GetLendingAnalysisCommand = exports.serializeAws_json1_1GetExpenseAnalysisCommand = exports.serializeAws_json1_1GetDocumentTextDetectionCommand = exports.serializeAws_json1_1GetDocumentAnalysisCommand = exports.serializeAws_json1_1DetectDocumentTextCommand = exports.serializeAws_json1_1AnalyzeIDCommand = exports.serializeAws_json1_1AnalyzeExpenseCommand = exports.serializeAws_json1_1AnalyzeDocumentCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
@@ -75,6 +75,26 @@ const serializeAws_json1_1GetExpenseAnalysisCommand = async (input, context) =>
|
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
exports.serializeAws_json1_1GetExpenseAnalysisCommand = serializeAws_json1_1GetExpenseAnalysisCommand;
|
|
78
|
+
const serializeAws_json1_1GetLendingAnalysisCommand = async (input, context) => {
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/x-amz-json-1.1",
|
|
81
|
+
"x-amz-target": "Textract.GetLendingAnalysis",
|
|
82
|
+
};
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(serializeAws_json1_1GetLendingAnalysisRequest(input, context));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
exports.serializeAws_json1_1GetLendingAnalysisCommand = serializeAws_json1_1GetLendingAnalysisCommand;
|
|
88
|
+
const serializeAws_json1_1GetLendingAnalysisSummaryCommand = async (input, context) => {
|
|
89
|
+
const headers = {
|
|
90
|
+
"content-type": "application/x-amz-json-1.1",
|
|
91
|
+
"x-amz-target": "Textract.GetLendingAnalysisSummary",
|
|
92
|
+
};
|
|
93
|
+
let body;
|
|
94
|
+
body = JSON.stringify(serializeAws_json1_1GetLendingAnalysisSummaryRequest(input, context));
|
|
95
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
+
};
|
|
97
|
+
exports.serializeAws_json1_1GetLendingAnalysisSummaryCommand = serializeAws_json1_1GetLendingAnalysisSummaryCommand;
|
|
78
98
|
const serializeAws_json1_1StartDocumentAnalysisCommand = async (input, context) => {
|
|
79
99
|
const headers = {
|
|
80
100
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -105,6 +125,16 @@ const serializeAws_json1_1StartExpenseAnalysisCommand = async (input, context) =
|
|
|
105
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
126
|
};
|
|
107
127
|
exports.serializeAws_json1_1StartExpenseAnalysisCommand = serializeAws_json1_1StartExpenseAnalysisCommand;
|
|
128
|
+
const serializeAws_json1_1StartLendingAnalysisCommand = async (input, context) => {
|
|
129
|
+
const headers = {
|
|
130
|
+
"content-type": "application/x-amz-json-1.1",
|
|
131
|
+
"x-amz-target": "Textract.StartLendingAnalysis",
|
|
132
|
+
};
|
|
133
|
+
let body;
|
|
134
|
+
body = JSON.stringify(serializeAws_json1_1StartLendingAnalysisRequest(input, context));
|
|
135
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
|
+
};
|
|
137
|
+
exports.serializeAws_json1_1StartLendingAnalysisCommand = serializeAws_json1_1StartLendingAnalysisCommand;
|
|
108
138
|
const deserializeAws_json1_1AnalyzeDocumentCommand = async (output, context) => {
|
|
109
139
|
if (output.statusCode >= 300) {
|
|
110
140
|
return deserializeAws_json1_1AnalyzeDocumentCommandError(output, context);
|
|
@@ -505,6 +535,116 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
|
|
|
505
535
|
});
|
|
506
536
|
}
|
|
507
537
|
};
|
|
538
|
+
const deserializeAws_json1_1GetLendingAnalysisCommand = async (output, context) => {
|
|
539
|
+
if (output.statusCode >= 300) {
|
|
540
|
+
return deserializeAws_json1_1GetLendingAnalysisCommandError(output, context);
|
|
541
|
+
}
|
|
542
|
+
const data = await parseBody(output.body, context);
|
|
543
|
+
let contents = {};
|
|
544
|
+
contents = deserializeAws_json1_1GetLendingAnalysisResponse(data, context);
|
|
545
|
+
const response = {
|
|
546
|
+
$metadata: deserializeMetadata(output),
|
|
547
|
+
...contents,
|
|
548
|
+
};
|
|
549
|
+
return Promise.resolve(response);
|
|
550
|
+
};
|
|
551
|
+
exports.deserializeAws_json1_1GetLendingAnalysisCommand = deserializeAws_json1_1GetLendingAnalysisCommand;
|
|
552
|
+
const deserializeAws_json1_1GetLendingAnalysisCommandError = async (output, context) => {
|
|
553
|
+
const parsedOutput = {
|
|
554
|
+
...output,
|
|
555
|
+
body: await parseErrorBody(output.body, context),
|
|
556
|
+
};
|
|
557
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
558
|
+
switch (errorCode) {
|
|
559
|
+
case "AccessDeniedException":
|
|
560
|
+
case "com.amazonaws.textract#AccessDeniedException":
|
|
561
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
562
|
+
case "InternalServerError":
|
|
563
|
+
case "com.amazonaws.textract#InternalServerError":
|
|
564
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
565
|
+
case "InvalidJobIdException":
|
|
566
|
+
case "com.amazonaws.textract#InvalidJobIdException":
|
|
567
|
+
throw await deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context);
|
|
568
|
+
case "InvalidKMSKeyException":
|
|
569
|
+
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
570
|
+
throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
|
|
571
|
+
case "InvalidParameterException":
|
|
572
|
+
case "com.amazonaws.textract#InvalidParameterException":
|
|
573
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
574
|
+
case "InvalidS3ObjectException":
|
|
575
|
+
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
576
|
+
throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
|
|
577
|
+
case "ProvisionedThroughputExceededException":
|
|
578
|
+
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
579
|
+
throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
580
|
+
case "ThrottlingException":
|
|
581
|
+
case "com.amazonaws.textract#ThrottlingException":
|
|
582
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
583
|
+
default:
|
|
584
|
+
const parsedBody = parsedOutput.body;
|
|
585
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
586
|
+
output,
|
|
587
|
+
parsedBody,
|
|
588
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
589
|
+
errorCode,
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
const deserializeAws_json1_1GetLendingAnalysisSummaryCommand = async (output, context) => {
|
|
594
|
+
if (output.statusCode >= 300) {
|
|
595
|
+
return deserializeAws_json1_1GetLendingAnalysisSummaryCommandError(output, context);
|
|
596
|
+
}
|
|
597
|
+
const data = await parseBody(output.body, context);
|
|
598
|
+
let contents = {};
|
|
599
|
+
contents = deserializeAws_json1_1GetLendingAnalysisSummaryResponse(data, context);
|
|
600
|
+
const response = {
|
|
601
|
+
$metadata: deserializeMetadata(output),
|
|
602
|
+
...contents,
|
|
603
|
+
};
|
|
604
|
+
return Promise.resolve(response);
|
|
605
|
+
};
|
|
606
|
+
exports.deserializeAws_json1_1GetLendingAnalysisSummaryCommand = deserializeAws_json1_1GetLendingAnalysisSummaryCommand;
|
|
607
|
+
const deserializeAws_json1_1GetLendingAnalysisSummaryCommandError = async (output, context) => {
|
|
608
|
+
const parsedOutput = {
|
|
609
|
+
...output,
|
|
610
|
+
body: await parseErrorBody(output.body, context),
|
|
611
|
+
};
|
|
612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
+
switch (errorCode) {
|
|
614
|
+
case "AccessDeniedException":
|
|
615
|
+
case "com.amazonaws.textract#AccessDeniedException":
|
|
616
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
617
|
+
case "InternalServerError":
|
|
618
|
+
case "com.amazonaws.textract#InternalServerError":
|
|
619
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
620
|
+
case "InvalidJobIdException":
|
|
621
|
+
case "com.amazonaws.textract#InvalidJobIdException":
|
|
622
|
+
throw await deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context);
|
|
623
|
+
case "InvalidKMSKeyException":
|
|
624
|
+
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
625
|
+
throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
|
|
626
|
+
case "InvalidParameterException":
|
|
627
|
+
case "com.amazonaws.textract#InvalidParameterException":
|
|
628
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
629
|
+
case "InvalidS3ObjectException":
|
|
630
|
+
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
631
|
+
throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
|
|
632
|
+
case "ProvisionedThroughputExceededException":
|
|
633
|
+
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
634
|
+
throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
635
|
+
case "ThrottlingException":
|
|
636
|
+
case "com.amazonaws.textract#ThrottlingException":
|
|
637
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
638
|
+
default:
|
|
639
|
+
const parsedBody = parsedOutput.body;
|
|
640
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
641
|
+
output,
|
|
642
|
+
parsedBody,
|
|
643
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
644
|
+
errorCode,
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
};
|
|
508
648
|
const deserializeAws_json1_1StartDocumentAnalysisCommand = async (output, context) => {
|
|
509
649
|
if (output.statusCode >= 300) {
|
|
510
650
|
return deserializeAws_json1_1StartDocumentAnalysisCommandError(output, context);
|
|
@@ -706,6 +846,73 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
|
|
|
706
846
|
});
|
|
707
847
|
}
|
|
708
848
|
};
|
|
849
|
+
const deserializeAws_json1_1StartLendingAnalysisCommand = async (output, context) => {
|
|
850
|
+
if (output.statusCode >= 300) {
|
|
851
|
+
return deserializeAws_json1_1StartLendingAnalysisCommandError(output, context);
|
|
852
|
+
}
|
|
853
|
+
const data = await parseBody(output.body, context);
|
|
854
|
+
let contents = {};
|
|
855
|
+
contents = deserializeAws_json1_1StartLendingAnalysisResponse(data, context);
|
|
856
|
+
const response = {
|
|
857
|
+
$metadata: deserializeMetadata(output),
|
|
858
|
+
...contents,
|
|
859
|
+
};
|
|
860
|
+
return Promise.resolve(response);
|
|
861
|
+
};
|
|
862
|
+
exports.deserializeAws_json1_1StartLendingAnalysisCommand = deserializeAws_json1_1StartLendingAnalysisCommand;
|
|
863
|
+
const deserializeAws_json1_1StartLendingAnalysisCommandError = async (output, context) => {
|
|
864
|
+
const parsedOutput = {
|
|
865
|
+
...output,
|
|
866
|
+
body: await parseErrorBody(output.body, context),
|
|
867
|
+
};
|
|
868
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
|
+
switch (errorCode) {
|
|
870
|
+
case "AccessDeniedException":
|
|
871
|
+
case "com.amazonaws.textract#AccessDeniedException":
|
|
872
|
+
throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
873
|
+
case "BadDocumentException":
|
|
874
|
+
case "com.amazonaws.textract#BadDocumentException":
|
|
875
|
+
throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
|
|
876
|
+
case "DocumentTooLargeException":
|
|
877
|
+
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
878
|
+
throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
|
|
879
|
+
case "IdempotentParameterMismatchException":
|
|
880
|
+
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
881
|
+
throw await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
|
|
882
|
+
case "InternalServerError":
|
|
883
|
+
case "com.amazonaws.textract#InternalServerError":
|
|
884
|
+
throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
|
|
885
|
+
case "InvalidKMSKeyException":
|
|
886
|
+
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
887
|
+
throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
|
|
888
|
+
case "InvalidParameterException":
|
|
889
|
+
case "com.amazonaws.textract#InvalidParameterException":
|
|
890
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
891
|
+
case "InvalidS3ObjectException":
|
|
892
|
+
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
893
|
+
throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
|
|
894
|
+
case "LimitExceededException":
|
|
895
|
+
case "com.amazonaws.textract#LimitExceededException":
|
|
896
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
897
|
+
case "ProvisionedThroughputExceededException":
|
|
898
|
+
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
899
|
+
throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
900
|
+
case "ThrottlingException":
|
|
901
|
+
case "com.amazonaws.textract#ThrottlingException":
|
|
902
|
+
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
903
|
+
case "UnsupportedDocumentException":
|
|
904
|
+
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
905
|
+
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
906
|
+
default:
|
|
907
|
+
const parsedBody = parsedOutput.body;
|
|
908
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
909
|
+
output,
|
|
910
|
+
parsedBody,
|
|
911
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
912
|
+
errorCode,
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
};
|
|
709
916
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
710
917
|
const body = parsedOutput.body;
|
|
711
918
|
const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
|
|
@@ -914,6 +1121,18 @@ const serializeAws_json1_1GetExpenseAnalysisRequest = (input, context) => {
|
|
|
914
1121
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
915
1122
|
};
|
|
916
1123
|
};
|
|
1124
|
+
const serializeAws_json1_1GetLendingAnalysisRequest = (input, context) => {
|
|
1125
|
+
return {
|
|
1126
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1127
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1128
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
const serializeAws_json1_1GetLendingAnalysisSummaryRequest = (input, context) => {
|
|
1132
|
+
return {
|
|
1133
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
917
1136
|
const serializeAws_json1_1HumanLoopConfig = (input, context) => {
|
|
918
1137
|
return {
|
|
919
1138
|
...(input.DataAttributes != null && {
|
|
@@ -1021,6 +1240,20 @@ const serializeAws_json1_1StartExpenseAnalysisRequest = (input, context) => {
|
|
|
1021
1240
|
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1022
1241
|
};
|
|
1023
1242
|
};
|
|
1243
|
+
const serializeAws_json1_1StartLendingAnalysisRequest = (input, context) => {
|
|
1244
|
+
return {
|
|
1245
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1246
|
+
...(input.DocumentLocation != null && {
|
|
1247
|
+
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1248
|
+
}),
|
|
1249
|
+
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1250
|
+
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1251
|
+
...(input.NotificationChannel != null && {
|
|
1252
|
+
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1253
|
+
}),
|
|
1254
|
+
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1024
1257
|
const deserializeAws_json1_1AccessDeniedException = (output, context) => {
|
|
1025
1258
|
return {
|
|
1026
1259
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
@@ -1122,6 +1355,47 @@ const deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
|
|
|
1122
1355
|
: undefined,
|
|
1123
1356
|
};
|
|
1124
1357
|
};
|
|
1358
|
+
const deserializeAws_json1_1DetectedSignature = (output, context) => {
|
|
1359
|
+
return {
|
|
1360
|
+
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
const deserializeAws_json1_1DetectedSignatureList = (output, context) => {
|
|
1364
|
+
const retVal = (output || [])
|
|
1365
|
+
.filter((e) => e != null)
|
|
1366
|
+
.map((entry) => {
|
|
1367
|
+
if (entry === null) {
|
|
1368
|
+
return null;
|
|
1369
|
+
}
|
|
1370
|
+
return deserializeAws_json1_1DetectedSignature(entry, context);
|
|
1371
|
+
});
|
|
1372
|
+
return retVal;
|
|
1373
|
+
};
|
|
1374
|
+
const deserializeAws_json1_1DocumentGroup = (output, context) => {
|
|
1375
|
+
return {
|
|
1376
|
+
DetectedSignatures: output.DetectedSignatures != null
|
|
1377
|
+
? deserializeAws_json1_1DetectedSignatureList(output.DetectedSignatures, context)
|
|
1378
|
+
: undefined,
|
|
1379
|
+
SplitDocuments: output.SplitDocuments != null
|
|
1380
|
+
? deserializeAws_json1_1SplitDocumentList(output.SplitDocuments, context)
|
|
1381
|
+
: undefined,
|
|
1382
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1383
|
+
UndetectedSignatures: output.UndetectedSignatures != null
|
|
1384
|
+
? deserializeAws_json1_1UndetectedSignatureList(output.UndetectedSignatures, context)
|
|
1385
|
+
: undefined,
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
const deserializeAws_json1_1DocumentGroupList = (output, context) => {
|
|
1389
|
+
const retVal = (output || [])
|
|
1390
|
+
.filter((e) => e != null)
|
|
1391
|
+
.map((entry) => {
|
|
1392
|
+
if (entry === null) {
|
|
1393
|
+
return null;
|
|
1394
|
+
}
|
|
1395
|
+
return deserializeAws_json1_1DocumentGroup(entry, context);
|
|
1396
|
+
});
|
|
1397
|
+
return retVal;
|
|
1398
|
+
};
|
|
1125
1399
|
const deserializeAws_json1_1DocumentMetadata = (output, context) => {
|
|
1126
1400
|
return {
|
|
1127
1401
|
Pages: (0, smithy_client_1.expectInt32)(output.Pages),
|
|
@@ -1228,6 +1502,30 @@ const deserializeAws_json1_1ExpenseType = (output, context) => {
|
|
|
1228
1502
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1229
1503
|
};
|
|
1230
1504
|
};
|
|
1505
|
+
const deserializeAws_json1_1Extraction = (output, context) => {
|
|
1506
|
+
return {
|
|
1507
|
+
ExpenseDocument: output.ExpenseDocument != null
|
|
1508
|
+
? deserializeAws_json1_1ExpenseDocument(output.ExpenseDocument, context)
|
|
1509
|
+
: undefined,
|
|
1510
|
+
IdentityDocument: output.IdentityDocument != null
|
|
1511
|
+
? deserializeAws_json1_1IdentityDocument(output.IdentityDocument, context)
|
|
1512
|
+
: undefined,
|
|
1513
|
+
LendingDocument: output.LendingDocument != null
|
|
1514
|
+
? deserializeAws_json1_1LendingDocument(output.LendingDocument, context)
|
|
1515
|
+
: undefined,
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
const deserializeAws_json1_1ExtractionList = (output, context) => {
|
|
1519
|
+
const retVal = (output || [])
|
|
1520
|
+
.filter((e) => e != null)
|
|
1521
|
+
.map((entry) => {
|
|
1522
|
+
if (entry === null) {
|
|
1523
|
+
return null;
|
|
1524
|
+
}
|
|
1525
|
+
return deserializeAws_json1_1Extraction(entry, context);
|
|
1526
|
+
});
|
|
1527
|
+
return retVal;
|
|
1528
|
+
};
|
|
1231
1529
|
const deserializeAws_json1_1Geometry = (output, context) => {
|
|
1232
1530
|
return {
|
|
1233
1531
|
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
@@ -1275,6 +1573,31 @@ const deserializeAws_json1_1GetExpenseAnalysisResponse = (output, context) => {
|
|
|
1275
1573
|
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1276
1574
|
};
|
|
1277
1575
|
};
|
|
1576
|
+
const deserializeAws_json1_1GetLendingAnalysisResponse = (output, context) => {
|
|
1577
|
+
return {
|
|
1578
|
+
AnalyzeLendingModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeLendingModelVersion),
|
|
1579
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1580
|
+
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1581
|
+
: undefined,
|
|
1582
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1583
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1584
|
+
Results: output.Results != null ? deserializeAws_json1_1LendingResultList(output.Results, context) : undefined,
|
|
1585
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1586
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1587
|
+
};
|
|
1588
|
+
};
|
|
1589
|
+
const deserializeAws_json1_1GetLendingAnalysisSummaryResponse = (output, context) => {
|
|
1590
|
+
return {
|
|
1591
|
+
AnalyzeLendingModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeLendingModelVersion),
|
|
1592
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1593
|
+
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1594
|
+
: undefined,
|
|
1595
|
+
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1596
|
+
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1597
|
+
Summary: output.Summary != null ? deserializeAws_json1_1LendingSummary(output.Summary, context) : undefined,
|
|
1598
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1599
|
+
};
|
|
1600
|
+
};
|
|
1278
1601
|
const deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
|
|
1279
1602
|
return {
|
|
1280
1603
|
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
@@ -1392,6 +1715,83 @@ const deserializeAws_json1_1InvalidS3ObjectException = (output, context) => {
|
|
|
1392
1715
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1393
1716
|
};
|
|
1394
1717
|
};
|
|
1718
|
+
const deserializeAws_json1_1LendingDetection = (output, context) => {
|
|
1719
|
+
return {
|
|
1720
|
+
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1721
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1722
|
+
SelectionStatus: (0, smithy_client_1.expectString)(output.SelectionStatus),
|
|
1723
|
+
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1724
|
+
};
|
|
1725
|
+
};
|
|
1726
|
+
const deserializeAws_json1_1LendingDetectionList = (output, context) => {
|
|
1727
|
+
const retVal = (output || [])
|
|
1728
|
+
.filter((e) => e != null)
|
|
1729
|
+
.map((entry) => {
|
|
1730
|
+
if (entry === null) {
|
|
1731
|
+
return null;
|
|
1732
|
+
}
|
|
1733
|
+
return deserializeAws_json1_1LendingDetection(entry, context);
|
|
1734
|
+
});
|
|
1735
|
+
return retVal;
|
|
1736
|
+
};
|
|
1737
|
+
const deserializeAws_json1_1LendingDocument = (output, context) => {
|
|
1738
|
+
return {
|
|
1739
|
+
LendingFields: output.LendingFields != null ? deserializeAws_json1_1LendingFieldList(output.LendingFields, context) : undefined,
|
|
1740
|
+
SignatureDetections: output.SignatureDetections != null
|
|
1741
|
+
? deserializeAws_json1_1SignatureDetectionList(output.SignatureDetections, context)
|
|
1742
|
+
: undefined,
|
|
1743
|
+
};
|
|
1744
|
+
};
|
|
1745
|
+
const deserializeAws_json1_1LendingField = (output, context) => {
|
|
1746
|
+
return {
|
|
1747
|
+
KeyDetection: output.KeyDetection != null ? deserializeAws_json1_1LendingDetection(output.KeyDetection, context) : undefined,
|
|
1748
|
+
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1749
|
+
ValueDetections: output.ValueDetections != null
|
|
1750
|
+
? deserializeAws_json1_1LendingDetectionList(output.ValueDetections, context)
|
|
1751
|
+
: undefined,
|
|
1752
|
+
};
|
|
1753
|
+
};
|
|
1754
|
+
const deserializeAws_json1_1LendingFieldList = (output, context) => {
|
|
1755
|
+
const retVal = (output || [])
|
|
1756
|
+
.filter((e) => e != null)
|
|
1757
|
+
.map((entry) => {
|
|
1758
|
+
if (entry === null) {
|
|
1759
|
+
return null;
|
|
1760
|
+
}
|
|
1761
|
+
return deserializeAws_json1_1LendingField(entry, context);
|
|
1762
|
+
});
|
|
1763
|
+
return retVal;
|
|
1764
|
+
};
|
|
1765
|
+
const deserializeAws_json1_1LendingResult = (output, context) => {
|
|
1766
|
+
return {
|
|
1767
|
+
Extractions: output.Extractions != null ? deserializeAws_json1_1ExtractionList(output.Extractions, context) : undefined,
|
|
1768
|
+
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1769
|
+
PageClassification: output.PageClassification != null
|
|
1770
|
+
? deserializeAws_json1_1PageClassification(output.PageClassification, context)
|
|
1771
|
+
: undefined,
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
const deserializeAws_json1_1LendingResultList = (output, context) => {
|
|
1775
|
+
const retVal = (output || [])
|
|
1776
|
+
.filter((e) => e != null)
|
|
1777
|
+
.map((entry) => {
|
|
1778
|
+
if (entry === null) {
|
|
1779
|
+
return null;
|
|
1780
|
+
}
|
|
1781
|
+
return deserializeAws_json1_1LendingResult(entry, context);
|
|
1782
|
+
});
|
|
1783
|
+
return retVal;
|
|
1784
|
+
};
|
|
1785
|
+
const deserializeAws_json1_1LendingSummary = (output, context) => {
|
|
1786
|
+
return {
|
|
1787
|
+
DocumentGroups: output.DocumentGroups != null
|
|
1788
|
+
? deserializeAws_json1_1DocumentGroupList(output.DocumentGroups, context)
|
|
1789
|
+
: undefined,
|
|
1790
|
+
UndetectedDocumentTypes: output.UndetectedDocumentTypes != null
|
|
1791
|
+
? deserializeAws_json1_1UndetectedDocumentTypeList(output.UndetectedDocumentTypes, context)
|
|
1792
|
+
: undefined,
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1395
1795
|
const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
1396
1796
|
return {
|
|
1397
1797
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
@@ -1439,6 +1839,23 @@ const deserializeAws_json1_1NormalizedValue = (output, context) => {
|
|
|
1439
1839
|
ValueType: (0, smithy_client_1.expectString)(output.ValueType),
|
|
1440
1840
|
};
|
|
1441
1841
|
};
|
|
1842
|
+
const deserializeAws_json1_1PageClassification = (output, context) => {
|
|
1843
|
+
return {
|
|
1844
|
+
PageNumber: output.PageNumber != null ? deserializeAws_json1_1PredictionList(output.PageNumber, context) : undefined,
|
|
1845
|
+
PageType: output.PageType != null ? deserializeAws_json1_1PredictionList(output.PageType, context) : undefined,
|
|
1846
|
+
};
|
|
1847
|
+
};
|
|
1848
|
+
const deserializeAws_json1_1PageList = (output, context) => {
|
|
1849
|
+
const retVal = (output || [])
|
|
1850
|
+
.filter((e) => e != null)
|
|
1851
|
+
.map((entry) => {
|
|
1852
|
+
if (entry === null) {
|
|
1853
|
+
return null;
|
|
1854
|
+
}
|
|
1855
|
+
return (0, smithy_client_1.expectInt32)(entry);
|
|
1856
|
+
});
|
|
1857
|
+
return retVal;
|
|
1858
|
+
};
|
|
1442
1859
|
const deserializeAws_json1_1Pages = (output, context) => {
|
|
1443
1860
|
const retVal = (output || [])
|
|
1444
1861
|
.filter((e) => e != null)
|
|
@@ -1467,6 +1884,23 @@ const deserializeAws_json1_1Polygon = (output, context) => {
|
|
|
1467
1884
|
});
|
|
1468
1885
|
return retVal;
|
|
1469
1886
|
};
|
|
1887
|
+
const deserializeAws_json1_1Prediction = (output, context) => {
|
|
1888
|
+
return {
|
|
1889
|
+
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1890
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
const deserializeAws_json1_1PredictionList = (output, context) => {
|
|
1894
|
+
const retVal = (output || [])
|
|
1895
|
+
.filter((e) => e != null)
|
|
1896
|
+
.map((entry) => {
|
|
1897
|
+
if (entry === null) {
|
|
1898
|
+
return null;
|
|
1899
|
+
}
|
|
1900
|
+
return deserializeAws_json1_1Prediction(entry, context);
|
|
1901
|
+
});
|
|
1902
|
+
return retVal;
|
|
1903
|
+
};
|
|
1470
1904
|
const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, context) => {
|
|
1471
1905
|
return {
|
|
1472
1906
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
@@ -1508,6 +1942,40 @@ const deserializeAws_json1_1RelationshipList = (output, context) => {
|
|
|
1508
1942
|
});
|
|
1509
1943
|
return retVal;
|
|
1510
1944
|
};
|
|
1945
|
+
const deserializeAws_json1_1SignatureDetection = (output, context) => {
|
|
1946
|
+
return {
|
|
1947
|
+
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1948
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
const deserializeAws_json1_1SignatureDetectionList = (output, context) => {
|
|
1952
|
+
const retVal = (output || [])
|
|
1953
|
+
.filter((e) => e != null)
|
|
1954
|
+
.map((entry) => {
|
|
1955
|
+
if (entry === null) {
|
|
1956
|
+
return null;
|
|
1957
|
+
}
|
|
1958
|
+
return deserializeAws_json1_1SignatureDetection(entry, context);
|
|
1959
|
+
});
|
|
1960
|
+
return retVal;
|
|
1961
|
+
};
|
|
1962
|
+
const deserializeAws_json1_1SplitDocument = (output, context) => {
|
|
1963
|
+
return {
|
|
1964
|
+
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
1965
|
+
Pages: output.Pages != null ? deserializeAws_json1_1PageList(output.Pages, context) : undefined,
|
|
1966
|
+
};
|
|
1967
|
+
};
|
|
1968
|
+
const deserializeAws_json1_1SplitDocumentList = (output, context) => {
|
|
1969
|
+
const retVal = (output || [])
|
|
1970
|
+
.filter((e) => e != null)
|
|
1971
|
+
.map((entry) => {
|
|
1972
|
+
if (entry === null) {
|
|
1973
|
+
return null;
|
|
1974
|
+
}
|
|
1975
|
+
return deserializeAws_json1_1SplitDocument(entry, context);
|
|
1976
|
+
});
|
|
1977
|
+
return retVal;
|
|
1978
|
+
};
|
|
1511
1979
|
const deserializeAws_json1_1StartDocumentAnalysisResponse = (output, context) => {
|
|
1512
1980
|
return {
|
|
1513
1981
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
@@ -1523,6 +1991,11 @@ const deserializeAws_json1_1StartExpenseAnalysisResponse = (output, context) =>
|
|
|
1523
1991
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1524
1992
|
};
|
|
1525
1993
|
};
|
|
1994
|
+
const deserializeAws_json1_1StartLendingAnalysisResponse = (output, context) => {
|
|
1995
|
+
return {
|
|
1996
|
+
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1997
|
+
};
|
|
1998
|
+
};
|
|
1526
1999
|
const deserializeAws_json1_1StringList = (output, context) => {
|
|
1527
2000
|
const retVal = (output || [])
|
|
1528
2001
|
.filter((e) => e != null)
|
|
@@ -1540,6 +2013,33 @@ const deserializeAws_json1_1ThrottlingException = (output, context) => {
|
|
|
1540
2013
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1541
2014
|
};
|
|
1542
2015
|
};
|
|
2016
|
+
const deserializeAws_json1_1UndetectedDocumentTypeList = (output, context) => {
|
|
2017
|
+
const retVal = (output || [])
|
|
2018
|
+
.filter((e) => e != null)
|
|
2019
|
+
.map((entry) => {
|
|
2020
|
+
if (entry === null) {
|
|
2021
|
+
return null;
|
|
2022
|
+
}
|
|
2023
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2024
|
+
});
|
|
2025
|
+
return retVal;
|
|
2026
|
+
};
|
|
2027
|
+
const deserializeAws_json1_1UndetectedSignature = (output, context) => {
|
|
2028
|
+
return {
|
|
2029
|
+
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
2030
|
+
};
|
|
2031
|
+
};
|
|
2032
|
+
const deserializeAws_json1_1UndetectedSignatureList = (output, context) => {
|
|
2033
|
+
const retVal = (output || [])
|
|
2034
|
+
.filter((e) => e != null)
|
|
2035
|
+
.map((entry) => {
|
|
2036
|
+
if (entry === null) {
|
|
2037
|
+
return null;
|
|
2038
|
+
}
|
|
2039
|
+
return deserializeAws_json1_1UndetectedSignature(entry, context);
|
|
2040
|
+
});
|
|
2041
|
+
return retVal;
|
|
2042
|
+
};
|
|
1543
2043
|
const deserializeAws_json1_1UnsupportedDocumentException = (output, context) => {
|
|
1544
2044
|
return {
|
|
1545
2045
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
package/dist-es/Textract.js
CHANGED
|
@@ -5,9 +5,12 @@ import { DetectDocumentTextCommand, } from "./commands/DetectDocumentTextCommand
|
|
|
5
5
|
import { GetDocumentAnalysisCommand, } from "./commands/GetDocumentAnalysisCommand";
|
|
6
6
|
import { GetDocumentTextDetectionCommand, } from "./commands/GetDocumentTextDetectionCommand";
|
|
7
7
|
import { GetExpenseAnalysisCommand, } from "./commands/GetExpenseAnalysisCommand";
|
|
8
|
+
import { GetLendingAnalysisCommand, } from "./commands/GetLendingAnalysisCommand";
|
|
9
|
+
import { GetLendingAnalysisSummaryCommand, } from "./commands/GetLendingAnalysisSummaryCommand";
|
|
8
10
|
import { StartDocumentAnalysisCommand, } from "./commands/StartDocumentAnalysisCommand";
|
|
9
11
|
import { StartDocumentTextDetectionCommand, } from "./commands/StartDocumentTextDetectionCommand";
|
|
10
12
|
import { StartExpenseAnalysisCommand, } from "./commands/StartExpenseAnalysisCommand";
|
|
13
|
+
import { StartLendingAnalysisCommand, } from "./commands/StartLendingAnalysisCommand";
|
|
11
14
|
import { TextractClient } from "./TextractClient";
|
|
12
15
|
export class Textract extends TextractClient {
|
|
13
16
|
analyzeDocument(args, optionsOrCb, cb) {
|
|
@@ -108,6 +111,34 @@ export class Textract extends TextractClient {
|
|
|
108
111
|
return this.send(command, optionsOrCb);
|
|
109
112
|
}
|
|
110
113
|
}
|
|
114
|
+
getLendingAnalysis(args, optionsOrCb, cb) {
|
|
115
|
+
const command = new GetLendingAnalysisCommand(args);
|
|
116
|
+
if (typeof optionsOrCb === "function") {
|
|
117
|
+
this.send(command, optionsOrCb);
|
|
118
|
+
}
|
|
119
|
+
else if (typeof cb === "function") {
|
|
120
|
+
if (typeof optionsOrCb !== "object")
|
|
121
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
122
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
return this.send(command, optionsOrCb);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
getLendingAnalysisSummary(args, optionsOrCb, cb) {
|
|
129
|
+
const command = new GetLendingAnalysisSummaryCommand(args);
|
|
130
|
+
if (typeof optionsOrCb === "function") {
|
|
131
|
+
this.send(command, optionsOrCb);
|
|
132
|
+
}
|
|
133
|
+
else if (typeof cb === "function") {
|
|
134
|
+
if (typeof optionsOrCb !== "object")
|
|
135
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
136
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
return this.send(command, optionsOrCb);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
111
142
|
startDocumentAnalysis(args, optionsOrCb, cb) {
|
|
112
143
|
const command = new StartDocumentAnalysisCommand(args);
|
|
113
144
|
if (typeof optionsOrCb === "function") {
|
|
@@ -150,4 +181,18 @@ export class Textract extends TextractClient {
|
|
|
150
181
|
return this.send(command, optionsOrCb);
|
|
151
182
|
}
|
|
152
183
|
}
|
|
184
|
+
startLendingAnalysis(args, optionsOrCb, cb) {
|
|
185
|
+
const command = new StartLendingAnalysisCommand(args);
|
|
186
|
+
if (typeof optionsOrCb === "function") {
|
|
187
|
+
this.send(command, optionsOrCb);
|
|
188
|
+
}
|
|
189
|
+
else if (typeof cb === "function") {
|
|
190
|
+
if (typeof optionsOrCb !== "object")
|
|
191
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
192
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
193
|
+
}
|
|
194
|
+
else {
|
|
195
|
+
return this.send(command, optionsOrCb);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
153
198
|
}
|