@aws-sdk/client-textract 3.32.0 → 3.36.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 +44 -0
- package/{dist/cjs → dist-cjs}/Textract.js +1 -2
- package/{dist/cjs → dist-cjs}/TextractClient.js +8 -9
- package/{dist/cjs → dist-cjs}/commands/AnalyzeDocumentCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/AnalyzeExpenseCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/DetectDocumentTextCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDocumentAnalysisCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/GetDocumentTextDetectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartDocumentAnalysisCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/commands/StartDocumentTextDetectionCommand.js +2 -3
- package/{dist/cjs → dist-cjs}/endpoints.js +0 -1
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -1
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +2 -2
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -1
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/Textract.js +2 -8
- package/{dist/es → dist-es}/TextractClient.js +2 -13
- package/dist-es/commands/AnalyzeDocumentCommand.js +39 -0
- package/{dist/es → dist-es}/commands/AnalyzeExpenseCommand.js +4 -43
- package/dist-es/commands/DetectDocumentTextCommand.js +39 -0
- package/dist-es/commands/GetDocumentAnalysisCommand.js +39 -0
- package/dist-es/commands/GetDocumentTextDetectionCommand.js +39 -0
- package/dist-es/commands/StartDocumentAnalysisCommand.js +39 -0
- package/dist-es/commands/StartDocumentTextDetectionCommand.js +39 -0
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -148
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +338 -344
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.js +1 -5
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -4
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -5
- package/{dist/types → dist-types}/Textract.d.ts +2 -2
- package/{dist/types → dist-types}/TextractClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AnalyzeDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/AnalyzeExpenseCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DetectDocumentTextCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetDocumentAnalysisCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetDocumentTextDetectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartDocumentAnalysisCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StartDocumentTextDetectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Textract.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/TextractClient.d.ts +8 -8
- package/{dist/types → dist-types}/ts3.4/commands/AnalyzeDocumentCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/AnalyzeExpenseCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/DetectDocumentTextCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.browser.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +52 -49
- package/Textract.ts +0 -422
- package/TextractClient.ts +0 -270
- package/commands/AnalyzeDocumentCommand.ts +0 -124
- package/commands/AnalyzeExpenseCommand.ts +0 -107
- package/commands/DetectDocumentTextCommand.ts +0 -104
- package/commands/GetDocumentAnalysisCommand.ts +0 -138
- package/commands/GetDocumentTextDetectionCommand.ts +0 -118
- package/commands/StartDocumentAnalysisCommand.ts +0 -111
- package/commands/StartDocumentTextDetectionCommand.ts +0 -113
- package/dist/cjs/Textract.js.map +0 -1
- package/dist/cjs/TextractClient.js.map +0 -1
- package/dist/cjs/commands/AnalyzeDocumentCommand.js.map +0 -1
- package/dist/cjs/commands/AnalyzeExpenseCommand.js.map +0 -1
- package/dist/cjs/commands/DetectDocumentTextCommand.js.map +0 -1
- package/dist/cjs/commands/GetDocumentAnalysisCommand.js.map +0 -1
- package/dist/cjs/commands/GetDocumentTextDetectionCommand.js.map +0 -1
- package/dist/cjs/commands/StartDocumentAnalysisCommand.js.map +0 -1
- package/dist/cjs/commands/StartDocumentTextDetectionCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -91
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Textract.js.map +0 -1
- package/dist/es/TextractClient.js.map +0 -1
- package/dist/es/commands/AnalyzeDocumentCommand.js +0 -95
- package/dist/es/commands/AnalyzeDocumentCommand.js.map +0 -1
- package/dist/es/commands/AnalyzeExpenseCommand.js.map +0 -1
- package/dist/es/commands/DetectDocumentTextCommand.js +0 -75
- package/dist/es/commands/DetectDocumentTextCommand.js.map +0 -1
- package/dist/es/commands/GetDocumentAnalysisCommand.js +0 -109
- package/dist/es/commands/GetDocumentAnalysisCommand.js.map +0 -1
- package/dist/es/commands/GetDocumentTextDetectionCommand.js +0 -89
- package/dist/es/commands/GetDocumentTextDetectionCommand.js.map +0 -1
- package/dist/es/commands/StartDocumentAnalysisCommand.js +0 -82
- package/dist/es/commands/StartDocumentAnalysisCommand.js.map +0 -1
- package/dist/es/commands/StartDocumentTextDetectionCommand.js +0 -81
- package/dist/es/commands/StartDocumentTextDetectionCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -11
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -91
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -1627
- package/protocols/Aws_json1_1.ts +0 -2060
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -12
- package/tsconfig.json +0 -32
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
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.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* publish files in dist-* only ([#2873](https://github.com/aws/aws-sdk-js-v3/issues/2873)) ([53b4243](https://github.com/aws/aws-sdk-js-v3/commit/53b4243b066f25ff2412d5f0dea1036054b2df32))
|
|
12
|
+
* **codegen:** ts-ignore packageInfo imports in codegen ([#2875](https://github.com/aws/aws-sdk-js-v3/issues/2875)) ([99d9267](https://github.com/aws/aws-sdk-js-v3/commit/99d926762193e83a354edec6e9de2b0543449704))
|
|
13
|
+
* **tsconfig:** remove sourceMap ([#2867](https://github.com/aws/aws-sdk-js-v3/issues/2867)) ([d25f526](https://github.com/aws/aws-sdk-js-v3/commit/d25f526627a02a2ca28675fecce66c76b6c97966))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# [3.35.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.34.0...v3.35.0) (2021-10-04)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
* **clients:** eslint --fix using esprint ([#2849](https://github.com/aws/aws-sdk-js-v3/issues/2849)) ([94d0a2d](https://github.com/aws/aws-sdk-js-v3/commit/94d0a2d8a0579ee0a742337937ad05735cfbc1ba))
|
|
25
|
+
* **clients:** move source files to 'src' folder ([#2845](https://github.com/aws/aws-sdk-js-v3/issues/2845)) ([e0025cd](https://github.com/aws/aws-sdk-js-v3/commit/e0025cddbba244a41ddf1fd1adb761142e15c22d))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [3.34.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.33.0...v3.34.0) (2021-09-24)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* **clients:** remove comments from transpiled JS files ([#2817](https://github.com/aws/aws-sdk-js-v3/issues/2817)) ([d01420b](https://github.com/aws/aws-sdk-js-v3/commit/d01420b247966c8ec84c1dd0a1b42512ede10c90))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
# [3.33.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.32.0...v3.33.0) (2021-09-21)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @aws-sdk/client-textract
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [3.32.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.31.0...v3.32.0) (2021-09-17)
|
|
7
51
|
|
|
8
52
|
**Note:** Version bump only for package @aws-sdk/client-textract
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Textract = void 0;
|
|
4
|
-
const TextractClient_1 = require("./TextractClient");
|
|
5
4
|
const AnalyzeDocumentCommand_1 = require("./commands/AnalyzeDocumentCommand");
|
|
6
5
|
const AnalyzeExpenseCommand_1 = require("./commands/AnalyzeExpenseCommand");
|
|
7
6
|
const DetectDocumentTextCommand_1 = require("./commands/DetectDocumentTextCommand");
|
|
@@ -9,6 +8,7 @@ const GetDocumentAnalysisCommand_1 = require("./commands/GetDocumentAnalysisComm
|
|
|
9
8
|
const GetDocumentTextDetectionCommand_1 = require("./commands/GetDocumentTextDetectionCommand");
|
|
10
9
|
const StartDocumentAnalysisCommand_1 = require("./commands/StartDocumentAnalysisCommand");
|
|
11
10
|
const StartDocumentTextDetectionCommand_1 = require("./commands/StartDocumentTextDetectionCommand");
|
|
11
|
+
const TextractClient_1 = require("./TextractClient");
|
|
12
12
|
/**
|
|
13
13
|
* <p>Amazon Textract detects and analyzes text in documents and converts it
|
|
14
14
|
* into machine-readable text. This is the API reference documentation for
|
|
@@ -115,4 +115,3 @@ class Textract extends TextractClient_1.TextractClient {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
exports.Textract = Textract;
|
|
118
|
-
//# sourceMappingURL=Textract.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TextractClient = void 0;
|
|
4
|
-
const runtimeConfig_1 = require("./runtimeConfig");
|
|
5
4
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
6
5
|
const middleware_content_length_1 = require("@aws-sdk/middleware-content-length");
|
|
7
6
|
const middleware_host_header_1 = require("@aws-sdk/middleware-host-header");
|
|
@@ -10,6 +9,7 @@ const middleware_retry_1 = require("@aws-sdk/middleware-retry");
|
|
|
10
9
|
const middleware_signing_1 = require("@aws-sdk/middleware-signing");
|
|
11
10
|
const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
|
|
12
11
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
12
|
+
const runtimeConfig_1 = require("./runtimeConfig");
|
|
13
13
|
/**
|
|
14
14
|
* <p>Amazon Textract detects and analyzes text in documents and converts it
|
|
15
15
|
* into machine-readable text. This is the API reference documentation for
|
|
@@ -17,13 +17,13 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
*/
|
|
18
18
|
class TextractClient extends smithy_client_1.Client {
|
|
19
19
|
constructor(configuration) {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
|
|
21
|
+
const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
|
|
22
|
+
const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
|
|
23
|
+
const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
|
|
24
|
+
const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
|
|
25
|
+
const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
|
|
26
|
+
const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
|
|
27
27
|
super(_config_6);
|
|
28
28
|
this.config = _config_6;
|
|
29
29
|
this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
|
|
@@ -43,4 +43,3 @@ class TextractClient extends smithy_client_1.Client {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
exports.TextractClient = TextractClient;
|
|
46
|
-
//# sourceMappingURL=TextractClient.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AnalyzeDocumentCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
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
8
|
/**
|
|
9
9
|
* <p>Analyzes an input document for relationships between detected items. </p>
|
|
10
10
|
* <p>The types of information returned are as follows: </p>
|
|
@@ -88,4 +88,3 @@ class AnalyzeDocumentCommand extends smithy_client_1.Command {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
exports.AnalyzeDocumentCommand = AnalyzeDocumentCommand;
|
|
91
|
-
//# sourceMappingURL=AnalyzeDocumentCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AnalyzeExpenseCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
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
8
|
/**
|
|
9
9
|
* <p>Analyzes an input document for financially related relationships between text.</p>
|
|
10
10
|
* <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
|
|
@@ -71,4 +71,3 @@ class AnalyzeExpenseCommand extends smithy_client_1.Command {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
exports.AnalyzeExpenseCommand = AnalyzeExpenseCommand;
|
|
74
|
-
//# sourceMappingURL=AnalyzeExpenseCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DetectDocumentTextCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
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
8
|
/**
|
|
9
9
|
* <p>Detects text in the input document. Amazon Textract can detect lines of text and the
|
|
10
10
|
* words that make up a line of text. The input document must be an image in JPEG or PNG
|
|
@@ -68,4 +68,3 @@ class DetectDocumentTextCommand extends smithy_client_1.Command {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
exports.DetectDocumentTextCommand = DetectDocumentTextCommand;
|
|
71
|
-
//# sourceMappingURL=DetectDocumentTextCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetDocumentAnalysisCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
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
8
|
/**
|
|
9
9
|
* <p>Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.</p>
|
|
10
10
|
* <p>You start asynchronous text analysis by calling <a>StartDocumentAnalysis</a>, which returns a job identifier
|
|
@@ -102,4 +102,3 @@ class GetDocumentAnalysisCommand extends smithy_client_1.Command {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
exports.GetDocumentAnalysisCommand = GetDocumentAnalysisCommand;
|
|
105
|
-
//# sourceMappingURL=GetDocumentAnalysisCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetDocumentTextDetectionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
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
8
|
/**
|
|
9
9
|
* <p>Gets the results for an Amazon Textract asynchronous operation that detects text in a document.
|
|
10
10
|
* Amazon Textract can detect lines of text and the words that make up a line of text.</p>
|
|
@@ -82,4 +82,3 @@ class GetDocumentTextDetectionCommand extends smithy_client_1.Command {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
exports.GetDocumentTextDetectionCommand = GetDocumentTextDetectionCommand;
|
|
85
|
-
//# sourceMappingURL=GetDocumentTextDetectionCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StartDocumentAnalysisCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
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
8
|
/**
|
|
9
9
|
* <p>Starts the asynchronous analysis of an input document for relationships between detected
|
|
10
10
|
* items such as key-value pairs, tables, and selection elements.</p>
|
|
@@ -75,4 +75,3 @@ class StartDocumentAnalysisCommand extends smithy_client_1.Command {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
exports.StartDocumentAnalysisCommand = StartDocumentAnalysisCommand;
|
|
78
|
-
//# sourceMappingURL=StartDocumentAnalysisCommand.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StartDocumentTextDetectionCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
4
|
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
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
8
|
/**
|
|
9
9
|
* <p>Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of
|
|
10
10
|
* text and the words that make up a line of text.</p>
|
|
@@ -74,4 +74,3 @@ class StartDocumentTextDetectionCommand extends smithy_client_1.Command {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
exports.StartDocumentTextDetectionCommand = StartDocumentTextDetectionCommand;
|
|
77
|
-
//# sourceMappingURL=StartDocumentTextDetectionCommand.js.map
|
|
@@ -11,4 +11,3 @@ tslib_1.__exportStar(require("./commands/GetDocumentTextDetectionCommand"), expo
|
|
|
11
11
|
tslib_1.__exportStar(require("./commands/StartDocumentAnalysisCommand"), exports);
|
|
12
12
|
tslib_1.__exportStar(require("./commands/StartDocumentTextDetectionCommand"), exports);
|
|
13
13
|
tslib_1.__exportStar(require("./models/index"), exports);
|
|
14
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
5
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
6
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
6
7
|
const sha256_browser_1 = require("@aws-crypto/sha256-browser");
|
|
7
8
|
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
8
9
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
@@ -38,4 +39,3 @@ const getRuntimeConfig = (config) => {
|
|
|
38
39
|
};
|
|
39
40
|
};
|
|
40
41
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
41
|
-
//# sourceMappingURL=runtimeConfig.browser.js.map
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
|
|
5
|
+
// @ts-ignore: package.json will be imported from dist folders
|
|
6
|
+
const package_json_1 = tslib_1.__importDefault(require("../package.json")); // eslint-disable-line
|
|
6
7
|
const client_sts_1 = require("@aws-sdk/client-sts");
|
|
7
8
|
const config_resolver_1 = require("@aws-sdk/config-resolver");
|
|
8
9
|
const credential_provider_node_1 = require("@aws-sdk/credential-provider-node");
|
|
@@ -43,4 +44,3 @@ const getRuntimeConfig = (config) => {
|
|
|
43
44
|
};
|
|
44
45
|
};
|
|
45
46
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
46
|
-
//# sourceMappingURL=runtimeConfig.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getRuntimeConfig = void 0;
|
|
4
|
-
const endpoints_1 = require("./endpoints");
|
|
5
4
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
5
|
+
const endpoints_1 = require("./endpoints");
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
8
8
|
*/
|
|
@@ -18,4 +18,3 @@ const getRuntimeConfig = (config) => {
|
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
exports.getRuntimeConfig = getRuntimeConfig;
|
|
21
|
-
//# sourceMappingURL=runtimeConfig.shared.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { TextractClient } from "./TextractClient";
|
|
3
2
|
import { AnalyzeDocumentCommand, } from "./commands/AnalyzeDocumentCommand";
|
|
4
3
|
import { AnalyzeExpenseCommand, } from "./commands/AnalyzeExpenseCommand";
|
|
5
4
|
import { DetectDocumentTextCommand, } from "./commands/DetectDocumentTextCommand";
|
|
@@ -7,12 +6,8 @@ import { GetDocumentAnalysisCommand, } from "./commands/GetDocumentAnalysisComma
|
|
|
7
6
|
import { GetDocumentTextDetectionCommand, } from "./commands/GetDocumentTextDetectionCommand";
|
|
8
7
|
import { StartDocumentAnalysisCommand, } from "./commands/StartDocumentAnalysisCommand";
|
|
9
8
|
import { StartDocumentTextDetectionCommand, } from "./commands/StartDocumentTextDetectionCommand";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* into machine-readable text. This is the API reference documentation for
|
|
13
|
-
* Amazon Textract.</p>
|
|
14
|
-
*/
|
|
15
|
-
var Textract = /** @class */ (function (_super) {
|
|
9
|
+
import { TextractClient } from "./TextractClient";
|
|
10
|
+
var Textract = (function (_super) {
|
|
16
11
|
__extends(Textract, _super);
|
|
17
12
|
function Textract() {
|
|
18
13
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -118,4 +113,3 @@ var Textract = /** @class */ (function (_super) {
|
|
|
118
113
|
return Textract;
|
|
119
114
|
}(TextractClient));
|
|
120
115
|
export { Textract };
|
|
121
|
-
//# sourceMappingURL=Textract.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
3
2
|
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
|
|
4
3
|
import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
|
|
5
4
|
import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
|
|
@@ -8,12 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
|
|
|
8
7
|
import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
|
|
9
8
|
import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
|
|
10
9
|
import { Client as __Client, } from "@aws-sdk/smithy-client";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* into machine-readable text. This is the API reference documentation for
|
|
14
|
-
* Amazon Textract.</p>
|
|
15
|
-
*/
|
|
16
|
-
var TextractClient = /** @class */ (function (_super) {
|
|
10
|
+
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
|
|
11
|
+
var TextractClient = (function (_super) {
|
|
17
12
|
__extends(TextractClient, _super);
|
|
18
13
|
function TextractClient(configuration) {
|
|
19
14
|
var _this = this;
|
|
@@ -34,15 +29,9 @@ var TextractClient = /** @class */ (function (_super) {
|
|
|
34
29
|
_this.middlewareStack.use(getUserAgentPlugin(_this.config));
|
|
35
30
|
return _this;
|
|
36
31
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
39
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
40
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
41
|
-
*/
|
|
42
32
|
TextractClient.prototype.destroy = function () {
|
|
43
33
|
_super.prototype.destroy.call(this);
|
|
44
34
|
};
|
|
45
35
|
return TextractClient;
|
|
46
36
|
}(__Client));
|
|
47
37
|
export { TextractClient };
|
|
48
|
-
//# sourceMappingURL=TextractClient.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { AnalyzeDocumentRequest, AnalyzeDocumentResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1AnalyzeDocumentCommand, serializeAws_json1_1AnalyzeDocumentCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var AnalyzeDocumentCommand = (function (_super) {
|
|
7
|
+
__extends(AnalyzeDocumentCommand, _super);
|
|
8
|
+
function AnalyzeDocumentCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
AnalyzeDocumentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "TextractClient";
|
|
18
|
+
var commandName = "AnalyzeDocumentCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: AnalyzeDocumentRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: AnalyzeDocumentResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
AnalyzeDocumentCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1AnalyzeDocumentCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
AnalyzeDocumentCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1AnalyzeDocumentCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return AnalyzeDocumentCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { AnalyzeDocumentCommand };
|
|
@@ -1,53 +1,15 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { AnalyzeExpenseRequest, AnalyzeExpenseResponse } from "../models/models_0";
|
|
3
|
-
import { deserializeAws_json1_1AnalyzeExpenseCommand, serializeAws_json1_1AnalyzeExpenseCommand, } from "../protocols/Aws_json1_1";
|
|
4
2
|
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
5
3
|
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* <ul>
|
|
10
|
-
* <li>
|
|
11
|
-
* <p>
|
|
12
|
-
* <code>LineItemGroups</code>- A data set containing <code>LineItems</code> which
|
|
13
|
-
* store information about the lines of text, such as an item purchased and its price on a receipt.</p>
|
|
14
|
-
* </li>
|
|
15
|
-
* <li>
|
|
16
|
-
* <p>
|
|
17
|
-
* <code>SummaryFields</code>- Contains all other information a receipt, such as header information
|
|
18
|
-
* or the vendors name.</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* </ul>
|
|
21
|
-
* @example
|
|
22
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
23
|
-
* ```javascript
|
|
24
|
-
* import { TextractClient, AnalyzeExpenseCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
25
|
-
* // const { TextractClient, AnalyzeExpenseCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
26
|
-
* const client = new TextractClient(config);
|
|
27
|
-
* const command = new AnalyzeExpenseCommand(input);
|
|
28
|
-
* const response = await client.send(command);
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @see {@link AnalyzeExpenseCommandInput} for command's `input` shape.
|
|
32
|
-
* @see {@link AnalyzeExpenseCommandOutput} for command's `response` shape.
|
|
33
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
var AnalyzeExpenseCommand = /** @class */ (function (_super) {
|
|
4
|
+
import { AnalyzeExpenseRequest, AnalyzeExpenseResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1AnalyzeExpenseCommand, serializeAws_json1_1AnalyzeExpenseCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var AnalyzeExpenseCommand = (function (_super) {
|
|
37
7
|
__extends(AnalyzeExpenseCommand, _super);
|
|
38
|
-
// Start section: command_properties
|
|
39
|
-
// End section: command_properties
|
|
40
8
|
function AnalyzeExpenseCommand(input) {
|
|
41
|
-
var _this =
|
|
42
|
-
// Start section: command_constructor
|
|
43
|
-
_super.call(this) || this;
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
44
10
|
_this.input = input;
|
|
45
11
|
return _this;
|
|
46
|
-
// End section: command_constructor
|
|
47
12
|
}
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
13
|
AnalyzeExpenseCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
52
14
|
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
53
15
|
var stack = clientStack.concat(this.middlewareStack);
|
|
@@ -75,4 +37,3 @@ var AnalyzeExpenseCommand = /** @class */ (function (_super) {
|
|
|
75
37
|
return AnalyzeExpenseCommand;
|
|
76
38
|
}($Command));
|
|
77
39
|
export { AnalyzeExpenseCommand };
|
|
78
|
-
//# sourceMappingURL=AnalyzeExpenseCommand.js.map
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DetectDocumentTextRequest, DetectDocumentTextResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DetectDocumentTextCommand, serializeAws_json1_1DetectDocumentTextCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DetectDocumentTextCommand = (function (_super) {
|
|
7
|
+
__extends(DetectDocumentTextCommand, _super);
|
|
8
|
+
function DetectDocumentTextCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DetectDocumentTextCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "TextractClient";
|
|
18
|
+
var commandName = "DetectDocumentTextCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DetectDocumentTextRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DetectDocumentTextResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DetectDocumentTextCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DetectDocumentTextCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DetectDocumentTextCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DetectDocumentTextCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DetectDocumentTextCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DetectDocumentTextCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetDocumentAnalysisRequest, GetDocumentAnalysisResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetDocumentAnalysisCommand, serializeAws_json1_1GetDocumentAnalysisCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetDocumentAnalysisCommand = (function (_super) {
|
|
7
|
+
__extends(GetDocumentAnalysisCommand, _super);
|
|
8
|
+
function GetDocumentAnalysisCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetDocumentAnalysisCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "TextractClient";
|
|
18
|
+
var commandName = "GetDocumentAnalysisCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetDocumentAnalysisRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetDocumentAnalysisResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetDocumentAnalysisCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetDocumentAnalysisCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetDocumentAnalysisCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetDocumentAnalysisCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetDocumentAnalysisCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetDocumentAnalysisCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetDocumentTextDetectionRequest, GetDocumentTextDetectionResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetDocumentTextDetectionCommand, serializeAws_json1_1GetDocumentTextDetectionCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var GetDocumentTextDetectionCommand = (function (_super) {
|
|
7
|
+
__extends(GetDocumentTextDetectionCommand, _super);
|
|
8
|
+
function GetDocumentTextDetectionCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
GetDocumentTextDetectionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "TextractClient";
|
|
18
|
+
var commandName = "GetDocumentTextDetectionCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: GetDocumentTextDetectionRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: GetDocumentTextDetectionResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
GetDocumentTextDetectionCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1GetDocumentTextDetectionCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
GetDocumentTextDetectionCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1GetDocumentTextDetectionCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return GetDocumentTextDetectionCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { GetDocumentTextDetectionCommand };
|