@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,51 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** populate variants in endpoints hashes ([#2974](https://github.com/aws/aws-sdk-js-v3/issues/2974)) ([0dd68ef](https://github.com/aws/aws-sdk-js-v3/commit/0dd68ef8b04ea0e96e43b05a9a10221e433fdf86))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.39.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.38.0...v3.39.0) (2021-10-29)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **clients:** update clients as of 2021/10/28 ([#2955](https://github.com/aws/aws-sdk-js-v3/issues/2955)) ([378d161](https://github.com/aws/aws-sdk-js-v3/commit/378d16166de49b06263291001986715d9533cadf))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [3.38.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.37.0...v3.38.0) (2021-10-22)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **client-documentation-generator:** rename package ([#2916](https://github.com/aws/aws-sdk-js-v3/issues/2916)) ([1a80bfd](https://github.com/aws/aws-sdk-js-v3/commit/1a80bfd2dfc583001ddb4a21b6432eaaad699aa7))
|
|
34
|
+
* **clients:** export folder from index.ts ([#2912](https://github.com/aws/aws-sdk-js-v3/issues/2912)) ([183b46d](https://github.com/aws/aws-sdk-js-v3/commit/183b46dde7f5613128038bf1c076f3c0b693203b))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
# [3.37.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.1...v3.37.0) (2021-10-15)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
* **clients:** update clients as of 10/15/2021 ([#2902](https://github.com/aws/aws-sdk-js-v3/issues/2902)) ([2730b54](https://github.com/aws/aws-sdk-js-v3/commit/2730b5424377944a5a2ad5e1ad7d3ca4135dae1c))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
6
51
|
## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
|
|
7
52
|
|
|
8
53
|
|
package/dist-cjs/Textract.js
CHANGED
|
@@ -6,8 +6,10 @@ const AnalyzeExpenseCommand_1 = require("./commands/AnalyzeExpenseCommand");
|
|
|
6
6
|
const DetectDocumentTextCommand_1 = require("./commands/DetectDocumentTextCommand");
|
|
7
7
|
const GetDocumentAnalysisCommand_1 = require("./commands/GetDocumentAnalysisCommand");
|
|
8
8
|
const GetDocumentTextDetectionCommand_1 = require("./commands/GetDocumentTextDetectionCommand");
|
|
9
|
+
const GetExpenseAnalysisCommand_1 = require("./commands/GetExpenseAnalysisCommand");
|
|
9
10
|
const StartDocumentAnalysisCommand_1 = require("./commands/StartDocumentAnalysisCommand");
|
|
10
11
|
const StartDocumentTextDetectionCommand_1 = require("./commands/StartDocumentTextDetectionCommand");
|
|
12
|
+
const StartExpenseAnalysisCommand_1 = require("./commands/StartExpenseAnalysisCommand");
|
|
11
13
|
const TextractClient_1 = require("./TextractClient");
|
|
12
14
|
class Textract extends TextractClient_1.TextractClient {
|
|
13
15
|
analyzeDocument(args, optionsOrCb, cb) {
|
|
@@ -80,6 +82,20 @@ class Textract extends TextractClient_1.TextractClient {
|
|
|
80
82
|
return this.send(command, optionsOrCb);
|
|
81
83
|
}
|
|
82
84
|
}
|
|
85
|
+
getExpenseAnalysis(args, optionsOrCb, cb) {
|
|
86
|
+
const command = new GetExpenseAnalysisCommand_1.GetExpenseAnalysisCommand(args);
|
|
87
|
+
if (typeof optionsOrCb === "function") {
|
|
88
|
+
this.send(command, optionsOrCb);
|
|
89
|
+
}
|
|
90
|
+
else if (typeof cb === "function") {
|
|
91
|
+
if (typeof optionsOrCb !== "object")
|
|
92
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
93
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return this.send(command, optionsOrCb);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
83
99
|
startDocumentAnalysis(args, optionsOrCb, cb) {
|
|
84
100
|
const command = new StartDocumentAnalysisCommand_1.StartDocumentAnalysisCommand(args);
|
|
85
101
|
if (typeof optionsOrCb === "function") {
|
|
@@ -108,5 +124,19 @@ class Textract extends TextractClient_1.TextractClient {
|
|
|
108
124
|
return this.send(command, optionsOrCb);
|
|
109
125
|
}
|
|
110
126
|
}
|
|
127
|
+
startExpenseAnalysis(args, optionsOrCb, cb) {
|
|
128
|
+
const command = new StartExpenseAnalysisCommand_1.StartExpenseAnalysisCommand(args);
|
|
129
|
+
if (typeof optionsOrCb === "function") {
|
|
130
|
+
this.send(command, optionsOrCb);
|
|
131
|
+
}
|
|
132
|
+
else if (typeof cb === "function") {
|
|
133
|
+
if (typeof optionsOrCb !== "object")
|
|
134
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
135
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
return this.send(command, optionsOrCb);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
111
141
|
}
|
|
112
142
|
exports.Textract = Textract;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetExpenseAnalysisCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class GetExpenseAnalysisCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "TextractClient";
|
|
18
|
+
const commandName = "GetExpenseAnalysisCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetExpenseAnalysisRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetExpenseAnalysisResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1GetExpenseAnalysisCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1GetExpenseAnalysisCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetExpenseAnalysisCommand = GetExpenseAnalysisCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartExpenseAnalysisCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
8
|
+
class StartExpenseAnalysisCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "TextractClient";
|
|
18
|
+
const commandName = "StartExpenseAnalysisCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.StartExpenseAnalysisRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.StartExpenseAnalysisResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return Aws_json1_1_1.serializeAws_json1_1StartExpenseAnalysisCommand(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return Aws_json1_1_1.deserializeAws_json1_1StartExpenseAnalysisCommand(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.StartExpenseAnalysisCommand = StartExpenseAnalysisCommand;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./AnalyzeDocumentCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./AnalyzeExpenseCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./DetectDocumentTextCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./GetDocumentAnalysisCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./GetDocumentTextDetectionCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./GetExpenseAnalysisCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./StartDocumentAnalysisCommand"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./StartDocumentTextDetectionCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./StartExpenseAnalysisCommand"), exports);
|
package/dist-cjs/endpoints.js
CHANGED
|
@@ -2,7 +2,92 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultRegionInfoProvider = void 0;
|
|
4
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
5
|
-
const regionHash = {
|
|
5
|
+
const regionHash = {
|
|
6
|
+
"ca-central-1": {
|
|
7
|
+
variants: [
|
|
8
|
+
{
|
|
9
|
+
hostname: "textract.ca-central-1.amazonaws.com",
|
|
10
|
+
tags: [],
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
hostname: "textract-fips.ca-central-1.amazonaws.com",
|
|
14
|
+
tags: ["fips"],
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
"us-east-1": {
|
|
19
|
+
variants: [
|
|
20
|
+
{
|
|
21
|
+
hostname: "textract.us-east-1.amazonaws.com",
|
|
22
|
+
tags: [],
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
hostname: "textract-fips.us-east-1.amazonaws.com",
|
|
26
|
+
tags: ["fips"],
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
},
|
|
30
|
+
"us-east-2": {
|
|
31
|
+
variants: [
|
|
32
|
+
{
|
|
33
|
+
hostname: "textract.us-east-2.amazonaws.com",
|
|
34
|
+
tags: [],
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
hostname: "textract-fips.us-east-2.amazonaws.com",
|
|
38
|
+
tags: ["fips"],
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
"us-gov-east-1": {
|
|
43
|
+
variants: [
|
|
44
|
+
{
|
|
45
|
+
hostname: "textract.us-gov-east-1.amazonaws.com",
|
|
46
|
+
tags: [],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
hostname: "textract-fips.us-gov-east-1.amazonaws.com",
|
|
50
|
+
tags: ["fips"],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
"us-gov-west-1": {
|
|
55
|
+
variants: [
|
|
56
|
+
{
|
|
57
|
+
hostname: "textract.us-gov-west-1.amazonaws.com",
|
|
58
|
+
tags: [],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
hostname: "textract-fips.us-gov-west-1.amazonaws.com",
|
|
62
|
+
tags: ["fips"],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
"us-west-1": {
|
|
67
|
+
variants: [
|
|
68
|
+
{
|
|
69
|
+
hostname: "textract.us-west-1.amazonaws.com",
|
|
70
|
+
tags: [],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
hostname: "textract-fips.us-west-1.amazonaws.com",
|
|
74
|
+
tags: ["fips"],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
"us-west-2": {
|
|
79
|
+
variants: [
|
|
80
|
+
{
|
|
81
|
+
hostname: "textract.us-west-2.amazonaws.com",
|
|
82
|
+
tags: [],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
hostname: "textract-fips.us-west-2.amazonaws.com",
|
|
86
|
+
tags: ["fips"],
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
};
|
|
6
91
|
const partitionHash = {
|
|
7
92
|
aws: {
|
|
8
93
|
regions: [
|
|
@@ -21,6 +106,11 @@ const partitionHash = {
|
|
|
21
106
|
"eu-west-1",
|
|
22
107
|
"eu-west-2",
|
|
23
108
|
"eu-west-3",
|
|
109
|
+
"fips-ca-central-1",
|
|
110
|
+
"fips-us-east-1",
|
|
111
|
+
"fips-us-east-2",
|
|
112
|
+
"fips-us-west-1",
|
|
113
|
+
"fips-us-west-2",
|
|
24
114
|
"me-south-1",
|
|
25
115
|
"sa-east-1",
|
|
26
116
|
"us-east-1",
|
|
@@ -28,23 +118,89 @@ const partitionHash = {
|
|
|
28
118
|
"us-west-1",
|
|
29
119
|
"us-west-2",
|
|
30
120
|
],
|
|
31
|
-
|
|
121
|
+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
|
|
122
|
+
variants: [
|
|
123
|
+
{
|
|
124
|
+
hostname: "textract.{region}.amazonaws.com",
|
|
125
|
+
tags: [],
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
hostname: "textract-fips.{region}.amazonaws.com",
|
|
129
|
+
tags: ["fips"],
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
hostname: "textract-fips.{region}.api.aws",
|
|
133
|
+
tags: ["dualstack", "fips"],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
hostname: "textract.{region}.api.aws",
|
|
137
|
+
tags: ["dualstack"],
|
|
138
|
+
},
|
|
139
|
+
],
|
|
32
140
|
},
|
|
33
141
|
"aws-cn": {
|
|
34
142
|
regions: ["cn-north-1", "cn-northwest-1"],
|
|
35
|
-
|
|
143
|
+
regionRegex: "^cn\\-\\w+\\-\\d+$",
|
|
144
|
+
variants: [
|
|
145
|
+
{
|
|
146
|
+
hostname: "textract.{region}.amazonaws.com.cn",
|
|
147
|
+
tags: [],
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
hostname: "textract-fips.{region}.amazonaws.com.cn",
|
|
151
|
+
tags: ["fips"],
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
hostname: "textract-fips.{region}.api.amazonwebservices.com.cn",
|
|
155
|
+
tags: ["dualstack", "fips"],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
hostname: "textract.{region}.api.amazonwebservices.com.cn",
|
|
159
|
+
tags: ["dualstack"],
|
|
160
|
+
},
|
|
161
|
+
],
|
|
36
162
|
},
|
|
37
163
|
"aws-iso": {
|
|
38
|
-
regions: ["us-iso-east-1"],
|
|
39
|
-
|
|
164
|
+
regions: ["us-iso-east-1", "us-iso-west-1"],
|
|
165
|
+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
|
|
166
|
+
variants: [
|
|
167
|
+
{
|
|
168
|
+
hostname: "textract.{region}.c2s.ic.gov",
|
|
169
|
+
tags: [],
|
|
170
|
+
},
|
|
171
|
+
],
|
|
40
172
|
},
|
|
41
173
|
"aws-iso-b": {
|
|
42
174
|
regions: ["us-isob-east-1"],
|
|
43
|
-
|
|
175
|
+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
|
|
176
|
+
variants: [
|
|
177
|
+
{
|
|
178
|
+
hostname: "textract.{region}.sc2s.sgov.gov",
|
|
179
|
+
tags: [],
|
|
180
|
+
},
|
|
181
|
+
],
|
|
44
182
|
},
|
|
45
183
|
"aws-us-gov": {
|
|
46
|
-
regions: ["us-gov-east-1", "us-gov-west-1"],
|
|
47
|
-
|
|
184
|
+
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
|
|
185
|
+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
|
|
186
|
+
variants: [
|
|
187
|
+
{
|
|
188
|
+
hostname: "textract.{region}.amazonaws.com",
|
|
189
|
+
tags: [],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
hostname: "textract-fips.{region}.amazonaws.com",
|
|
193
|
+
tags: ["fips"],
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
hostname: "textract-fips.{region}.api.aws",
|
|
197
|
+
tags: ["dualstack", "fips"],
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
hostname: "textract.{region}.api.aws",
|
|
201
|
+
tags: ["dualstack"],
|
|
202
|
+
},
|
|
203
|
+
],
|
|
48
204
|
},
|
|
49
205
|
};
|
|
50
206
|
const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
|
package/dist-cjs/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./TextractClient"), exports);
|
|
5
4
|
tslib_1.__exportStar(require("./Textract"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./
|
|
7
|
-
tslib_1.__exportStar(require("./commands
|
|
8
|
-
tslib_1.__exportStar(require("./
|
|
9
|
-
tslib_1.__exportStar(require("./commands/GetDocumentAnalysisCommand"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./commands/GetDocumentTextDetectionCommand"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./commands/StartDocumentAnalysisCommand"), exports);
|
|
12
|
-
tslib_1.__exportStar(require("./commands/StartDocumentTextDetectionCommand"), exports);
|
|
13
|
-
tslib_1.__exportStar(require("./models/index"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./TextractClient"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./commands"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./models"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.StartDocumentTextDetectionResponse = exports.StartDocumentTextDetectionRequest = exports.StartDocumentAnalysisResponse = exports.StartDocumentAnalysisRequest = exports.OutputConfig = exports.NotificationChannel = exports.LimitExceededException = void 0;
|
|
3
|
+
exports.GetExpenseAnalysisRequest = exports.GetDocumentTextDetectionResponse = exports.GetDocumentTextDetectionRequest = exports.InvalidKMSKeyException = exports.InvalidJobIdException = exports.GetDocumentAnalysisResponse = exports.Warning = exports.JobStatus = exports.GetDocumentAnalysisRequest = exports.DocumentLocation = exports.DetectDocumentTextResponse = exports.DetectDocumentTextRequest = exports.AnalyzeExpenseResponse = exports.ExpenseDocument = exports.LineItemGroup = exports.LineItemFields = exports.ExpenseField = exports.ExpenseType = exports.ExpenseDetection = exports.AnalyzeExpenseRequest = exports.UnsupportedDocumentException = exports.ThrottlingException = exports.ProvisionedThroughputExceededException = exports.InvalidS3ObjectException = exports.InvalidParameterException = exports.InternalServerError = exports.HumanLoopQuotaExceededException = exports.DocumentTooLargeException = exports.BadDocumentException = exports.AnalyzeDocumentResponse = exports.HumanLoopActivationOutput = exports.DocumentMetadata = exports.Block = exports.TextType = exports.SelectionStatus = exports.Relationship = exports.RelationshipType = exports.Geometry = exports.Point = exports.BoundingBox = exports.EntityType = exports.BlockType = exports.AnalyzeDocumentRequest = exports.HumanLoopConfig = exports.HumanLoopDataAttributes = exports.ContentClassifier = exports.FeatureType = exports.Document = exports.S3Object = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.StartExpenseAnalysisResponse = exports.StartExpenseAnalysisRequest = exports.StartDocumentTextDetectionResponse = exports.StartDocumentTextDetectionRequest = exports.StartDocumentAnalysisResponse = exports.StartDocumentAnalysisRequest = exports.OutputConfig = exports.NotificationChannel = exports.LimitExceededException = exports.IdempotentParameterMismatchException = exports.GetExpenseAnalysisResponse = void 0;
|
|
5
5
|
var AccessDeniedException;
|
|
6
6
|
(function (AccessDeniedException) {
|
|
7
7
|
AccessDeniedException.filterSensitiveLog = (obj) => ({
|
|
@@ -296,6 +296,18 @@ var GetDocumentTextDetectionResponse;
|
|
|
296
296
|
...obj,
|
|
297
297
|
});
|
|
298
298
|
})(GetDocumentTextDetectionResponse = exports.GetDocumentTextDetectionResponse || (exports.GetDocumentTextDetectionResponse = {}));
|
|
299
|
+
var GetExpenseAnalysisRequest;
|
|
300
|
+
(function (GetExpenseAnalysisRequest) {
|
|
301
|
+
GetExpenseAnalysisRequest.filterSensitiveLog = (obj) => ({
|
|
302
|
+
...obj,
|
|
303
|
+
});
|
|
304
|
+
})(GetExpenseAnalysisRequest = exports.GetExpenseAnalysisRequest || (exports.GetExpenseAnalysisRequest = {}));
|
|
305
|
+
var GetExpenseAnalysisResponse;
|
|
306
|
+
(function (GetExpenseAnalysisResponse) {
|
|
307
|
+
GetExpenseAnalysisResponse.filterSensitiveLog = (obj) => ({
|
|
308
|
+
...obj,
|
|
309
|
+
});
|
|
310
|
+
})(GetExpenseAnalysisResponse = exports.GetExpenseAnalysisResponse || (exports.GetExpenseAnalysisResponse = {}));
|
|
299
311
|
var IdempotentParameterMismatchException;
|
|
300
312
|
(function (IdempotentParameterMismatchException) {
|
|
301
313
|
IdempotentParameterMismatchException.filterSensitiveLog = (obj) => ({
|
|
@@ -344,3 +356,15 @@ var StartDocumentTextDetectionResponse;
|
|
|
344
356
|
...obj,
|
|
345
357
|
});
|
|
346
358
|
})(StartDocumentTextDetectionResponse = exports.StartDocumentTextDetectionResponse || (exports.StartDocumentTextDetectionResponse = {}));
|
|
359
|
+
var StartExpenseAnalysisRequest;
|
|
360
|
+
(function (StartExpenseAnalysisRequest) {
|
|
361
|
+
StartExpenseAnalysisRequest.filterSensitiveLog = (obj) => ({
|
|
362
|
+
...obj,
|
|
363
|
+
});
|
|
364
|
+
})(StartExpenseAnalysisRequest = exports.StartExpenseAnalysisRequest || (exports.StartExpenseAnalysisRequest = {}));
|
|
365
|
+
var StartExpenseAnalysisResponse;
|
|
366
|
+
(function (StartExpenseAnalysisResponse) {
|
|
367
|
+
StartExpenseAnalysisResponse.filterSensitiveLog = (obj) => ({
|
|
368
|
+
...obj,
|
|
369
|
+
});
|
|
370
|
+
})(StartExpenseAnalysisResponse = exports.StartExpenseAnalysisResponse || (exports.StartExpenseAnalysisResponse = {}));
|