@aws-sdk/client-textract 3.36.1 → 3.40.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 +45 -0
- package/dist-cjs/Textract.js +30 -0
- package/dist-cjs/commands/GetExpenseAnalysisCommand.js +36 -0
- package/dist-cjs/commands/StartExpenseAnalysisCommand.js +36 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/endpoints.js +164 -8
- package/dist-cjs/index.js +3 -9
- package/dist-cjs/models/models_0.js +26 -2
- package/dist-cjs/protocols/Aws_json1_1.js +306 -1
- package/dist-cjs/runtimeConfig.browser.js +6 -3
- package/dist-cjs/runtimeConfig.js +5 -3
- package/dist-es/Textract.js +30 -0
- package/dist-es/commands/GetExpenseAnalysisCommand.js +39 -0
- package/dist-es/commands/StartExpenseAnalysisCommand.js +39 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoints.js +164 -8
- package/dist-es/index.js +3 -9
- package/dist-es/models/models_0.js +16 -0
- package/dist-es/protocols/Aws_json1_1.js +314 -0
- package/dist-es/runtimeConfig.browser.js +3 -2
- package/dist-es/runtimeConfig.js +3 -3
- package/dist-types/Textract.d.ts +47 -2
- package/dist-types/TextractClient.d.ts +12 -2
- package/dist-types/commands/GetExpenseAnalysisCommand.d.ts +51 -0
- package/dist-types/commands/StartDocumentAnalysisCommand.d.ts +1 -1
- package/dist-types/commands/StartDocumentTextDetectionCommand.d.ts +1 -1
- package/dist-types/commands/StartExpenseAnalysisCommand.d.ts +50 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/index.d.ts +3 -9
- package/dist-types/models/models_0.d.ts +123 -2
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/Textract.d.ts +10 -0
- package/dist-types/ts3.4/TextractClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/GetExpenseAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartExpenseAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +3 -9
- package/dist-types/ts3.4/models/models_0.d.ts +58 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +32 -32
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
export * from "./TextractClient";
|
|
2
1
|
export * from "./Textract";
|
|
3
|
-
export * from "./
|
|
4
|
-
export * from "./commands
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./commands/GetDocumentAnalysisCommand";
|
|
7
|
-
export * from "./commands/GetDocumentTextDetectionCommand";
|
|
8
|
-
export * from "./commands/StartDocumentAnalysisCommand";
|
|
9
|
-
export * from "./commands/StartDocumentTextDetectionCommand";
|
|
10
|
-
export * from "./models/index";
|
|
2
|
+
export * from "./TextractClient";
|
|
3
|
+
export * from "./commands";
|
|
4
|
+
export * from "./models";
|
|
@@ -549,6 +549,38 @@ export declare namespace GetDocumentTextDetectionResponse {
|
|
|
549
549
|
|
|
550
550
|
const filterSensitiveLog: (obj: GetDocumentTextDetectionResponse) => any;
|
|
551
551
|
}
|
|
552
|
+
export interface GetExpenseAnalysisRequest {
|
|
553
|
+
|
|
554
|
+
JobId: string | undefined;
|
|
555
|
+
|
|
556
|
+
MaxResults?: number;
|
|
557
|
+
|
|
558
|
+
NextToken?: string;
|
|
559
|
+
}
|
|
560
|
+
export declare namespace GetExpenseAnalysisRequest {
|
|
561
|
+
|
|
562
|
+
const filterSensitiveLog: (obj: GetExpenseAnalysisRequest) => any;
|
|
563
|
+
}
|
|
564
|
+
export interface GetExpenseAnalysisResponse {
|
|
565
|
+
|
|
566
|
+
DocumentMetadata?: DocumentMetadata;
|
|
567
|
+
|
|
568
|
+
JobStatus?: JobStatus | string;
|
|
569
|
+
|
|
570
|
+
NextToken?: string;
|
|
571
|
+
|
|
572
|
+
ExpenseDocuments?: ExpenseDocument[];
|
|
573
|
+
|
|
574
|
+
Warnings?: Warning[];
|
|
575
|
+
|
|
576
|
+
StatusMessage?: string;
|
|
577
|
+
|
|
578
|
+
AnalyzeExpenseModelVersion?: string;
|
|
579
|
+
}
|
|
580
|
+
export declare namespace GetExpenseAnalysisResponse {
|
|
581
|
+
|
|
582
|
+
const filterSensitiveLog: (obj: GetExpenseAnalysisResponse) => any;
|
|
583
|
+
}
|
|
552
584
|
|
|
553
585
|
export interface IdempotentParameterMismatchException extends __SmithyException, $MetadataBearer {
|
|
554
586
|
name: "IdempotentParameterMismatchException";
|
|
@@ -647,3 +679,29 @@ export declare namespace StartDocumentTextDetectionResponse {
|
|
|
647
679
|
|
|
648
680
|
const filterSensitiveLog: (obj: StartDocumentTextDetectionResponse) => any;
|
|
649
681
|
}
|
|
682
|
+
export interface StartExpenseAnalysisRequest {
|
|
683
|
+
|
|
684
|
+
DocumentLocation: DocumentLocation | undefined;
|
|
685
|
+
|
|
686
|
+
ClientRequestToken?: string;
|
|
687
|
+
|
|
688
|
+
JobTag?: string;
|
|
689
|
+
|
|
690
|
+
NotificationChannel?: NotificationChannel;
|
|
691
|
+
|
|
692
|
+
OutputConfig?: OutputConfig;
|
|
693
|
+
|
|
694
|
+
KMSKeyId?: string;
|
|
695
|
+
}
|
|
696
|
+
export declare namespace StartExpenseAnalysisRequest {
|
|
697
|
+
|
|
698
|
+
const filterSensitiveLog: (obj: StartExpenseAnalysisRequest) => any;
|
|
699
|
+
}
|
|
700
|
+
export interface StartExpenseAnalysisResponse {
|
|
701
|
+
|
|
702
|
+
JobId?: string;
|
|
703
|
+
}
|
|
704
|
+
export declare namespace StartExpenseAnalysisResponse {
|
|
705
|
+
|
|
706
|
+
const filterSensitiveLog: (obj: StartExpenseAnalysisResponse) => any;
|
|
707
|
+
}
|
|
@@ -5,19 +5,25 @@ import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "../comm
|
|
|
5
5
|
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "../commands/DetectDocumentTextCommand";
|
|
6
6
|
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "../commands/GetDocumentAnalysisCommand";
|
|
7
7
|
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "../commands/GetDocumentTextDetectionCommand";
|
|
8
|
+
import { GetExpenseAnalysisCommandInput, GetExpenseAnalysisCommandOutput } from "../commands/GetExpenseAnalysisCommand";
|
|
8
9
|
import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "../commands/StartDocumentAnalysisCommand";
|
|
9
10
|
import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "../commands/StartDocumentTextDetectionCommand";
|
|
11
|
+
import { StartExpenseAnalysisCommandInput, StartExpenseAnalysisCommandOutput } from "../commands/StartExpenseAnalysisCommand";
|
|
10
12
|
export declare const serializeAws_json1_1AnalyzeDocumentCommand: (input: AnalyzeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
11
13
|
export declare const serializeAws_json1_1AnalyzeExpenseCommand: (input: AnalyzeExpenseCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
12
14
|
export declare const serializeAws_json1_1DetectDocumentTextCommand: (input: DetectDocumentTextCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
13
15
|
export declare const serializeAws_json1_1GetDocumentAnalysisCommand: (input: GetDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
16
|
export declare const serializeAws_json1_1GetDocumentTextDetectionCommand: (input: GetDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
|
+
export declare const serializeAws_json1_1GetExpenseAnalysisCommand: (input: GetExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
18
|
export declare const serializeAws_json1_1StartDocumentAnalysisCommand: (input: StartDocumentAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
16
19
|
export declare const serializeAws_json1_1StartDocumentTextDetectionCommand: (input: StartDocumentTextDetectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
+
export declare const serializeAws_json1_1StartExpenseAnalysisCommand: (input: StartExpenseAnalysisCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
17
21
|
export declare const deserializeAws_json1_1AnalyzeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeDocumentCommandOutput>;
|
|
18
22
|
export declare const deserializeAws_json1_1AnalyzeExpenseCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<AnalyzeExpenseCommandOutput>;
|
|
19
23
|
export declare const deserializeAws_json1_1DetectDocumentTextCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DetectDocumentTextCommandOutput>;
|
|
20
24
|
export declare const deserializeAws_json1_1GetDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentAnalysisCommandOutput>;
|
|
21
25
|
export declare const deserializeAws_json1_1GetDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetDocumentTextDetectionCommandOutput>;
|
|
26
|
+
export declare const deserializeAws_json1_1GetExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetExpenseAnalysisCommandOutput>;
|
|
22
27
|
export declare const deserializeAws_json1_1StartDocumentAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentAnalysisCommandOutput>;
|
|
23
28
|
export declare const deserializeAws_json1_1StartDocumentTextDetectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartDocumentTextDetectionCommandOutput>;
|
|
29
|
+
export declare const deserializeAws_json1_1StartExpenseAnalysisCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartExpenseAnalysisCommandOutput>;
|
|
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
|
|
|
14
14
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
15
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
16
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
17
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
18
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
17
19
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
18
20
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
19
21
|
apiVersion: string;
|
|
@@ -14,6 +14,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
|
|
|
14
14
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
15
15
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
16
16
|
streamCollector: import("@aws-sdk/types").StreamCollector;
|
|
17
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
18
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
17
19
|
utf8Decoder: import("@aws-sdk/types").Decoder;
|
|
18
20
|
utf8Encoder: import("@aws-sdk/types").Encoder;
|
|
19
21
|
apiVersion: string;
|
|
@@ -16,6 +16,8 @@ export declare const getRuntimeConfig: (config: TextractClientConfig) => {
|
|
|
16
16
|
maxAttempts: number | import("@aws-sdk/types").Provider<number>;
|
|
17
17
|
retryMode: string | import("@aws-sdk/types").Provider<string>;
|
|
18
18
|
logger: import("@aws-sdk/types").Logger;
|
|
19
|
+
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
|
+
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
19
21
|
serviceId: string;
|
|
20
22
|
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
|
|
21
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
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.40.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "yarn build:cjs && yarn build:es && yarn build:types",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.json",
|
|
@@ -19,40 +19,40 @@
|
|
|
19
19
|
"module": "./dist-es/index.js",
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@aws-crypto/sha256-browser": "
|
|
23
|
-
"@aws-crypto/sha256-js": "
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
32
|
-
"@aws-sdk/middleware-logger": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
44
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
45
|
-
"@aws-sdk/util-base64-node": "3.
|
|
46
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
51
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
22
|
+
"@aws-crypto/sha256-browser": "2.0.0",
|
|
23
|
+
"@aws-crypto/sha256-js": "2.0.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.40.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.40.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.40.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.40.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.40.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.40.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.40.0",
|
|
31
|
+
"@aws-sdk/middleware-host-header": "3.40.0",
|
|
32
|
+
"@aws-sdk/middleware-logger": "3.40.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.40.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.40.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.40.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.40.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.40.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.40.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.40.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.40.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.40.0",
|
|
42
|
+
"@aws-sdk/types": "3.40.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.40.0",
|
|
44
|
+
"@aws-sdk/util-base64-browser": "3.37.0",
|
|
45
|
+
"@aws-sdk/util-base64-node": "3.37.0",
|
|
46
|
+
"@aws-sdk/util-body-length-browser": "3.37.0",
|
|
47
|
+
"@aws-sdk/util-body-length-node": "3.37.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.40.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.40.0",
|
|
50
|
+
"@aws-sdk/util-utf8-browser": "3.37.0",
|
|
51
|
+
"@aws-sdk/util-utf8-node": "3.37.0",
|
|
52
52
|
"tslib": "^2.3.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
55
|
+
"@aws-sdk/service-client-documentation-generator": "3.38.0",
|
|
56
56
|
"@types/node": "^12.7.5",
|
|
57
57
|
"downlevel-dts": "0.7.0",
|
|
58
58
|
"jest": "^26.1.0",
|