@aws-sdk/client-textract 3.36.0 → 3.36.1
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 +11 -0
- package/dist-cjs/Textract.js +0 -5
- package/dist-cjs/TextractClient.js +0 -10
- package/dist-cjs/commands/AnalyzeDocumentCommand.js +0 -54
- package/dist-cjs/commands/AnalyzeExpenseCommand.js +0 -37
- package/dist-cjs/commands/DetectDocumentTextCommand.js +0 -34
- package/dist-cjs/commands/GetDocumentAnalysisCommand.js +0 -68
- package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +0 -48
- package/dist-cjs/commands/StartDocumentAnalysisCommand.js +0 -41
- package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +0 -40
- package/dist-cjs/models/models_0.js +0 -147
- package/dist-cjs/protocols/Aws_json1_1.js +0 -5
- package/dist-cjs/runtimeConfig.browser.js +1 -5
- package/dist-cjs/runtimeConfig.js +1 -5
- package/dist-cjs/runtimeConfig.native.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +0 -3
- package/dist-types/ts3.4/Textract.d.ts +8 -180
- package/dist-types/ts3.4/TextractClient.d.ts +24 -91
- package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +2 -50
- package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +2 -33
- package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +2 -30
- package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +2 -64
- package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +2 -44
- package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +2 -37
- package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +2 -36
- package/dist-types/ts3.4/models/models_0.d.ts +195 -893
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +3 -3
|
@@ -6,53 +6,11 @@ export interface GetDocumentTextDetectionCommandInput extends GetDocumentTextDet
|
|
|
6
6
|
}
|
|
7
7
|
export interface GetDocumentTextDetectionCommandOutput extends GetDocumentTextDetectionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Gets the results for an Amazon Textract asynchronous operation that detects text in a document.
|
|
11
|
-
* Amazon Textract can detect lines of text and the words that make up a line of text.</p>
|
|
12
|
-
* <p>You start asynchronous text detection by calling <a>StartDocumentTextDetection</a>, which returns a job identifier
|
|
13
|
-
* (<code>JobId</code>). When the text detection operation finishes, Amazon Textract publishes a
|
|
14
|
-
* completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to
|
|
15
|
-
* <code>StartDocumentTextDetection</code>. To get the results of the text-detection
|
|
16
|
-
* operation, first check that the status value published to the Amazon SNS topic is
|
|
17
|
-
* <code>SUCCEEDED</code>. If so, call <code>GetDocumentTextDetection</code>, and pass the
|
|
18
|
-
* job identifier (<code>JobId</code>) from the initial call to
|
|
19
|
-
* <code>StartDocumentTextDetection</code>.</p>
|
|
20
|
-
* <p>
|
|
21
|
-
* <code>GetDocumentTextDetection</code> returns an array of <a>Block</a>
|
|
22
|
-
* objects. </p>
|
|
23
|
-
* <p>Each document page has as an associated <code>Block</code> of type PAGE. Each PAGE <code>Block</code> object
|
|
24
|
-
* is the parent of LINE <code>Block</code> objects that represent the lines of detected text on a page. A LINE <code>Block</code> object is
|
|
25
|
-
* a parent for each word that makes up the line. Words are represented by <code>Block</code> objects of type WORD.</p>
|
|
26
|
-
*
|
|
27
|
-
* <p>Use the MaxResults parameter to limit the number of blocks that are returned. If there
|
|
28
|
-
* are more results than specified in <code>MaxResults</code>, the value of
|
|
29
|
-
* <code>NextToken</code> in the operation response contains a pagination token for getting
|
|
30
|
-
* the next set of results. To get the next page of results, call
|
|
31
|
-
* <code>GetDocumentTextDetection</code>, and populate the <code>NextToken</code> request
|
|
32
|
-
* parameter with the token value that's returned from the previous call to
|
|
33
|
-
* <code>GetDocumentTextDetection</code>.</p>
|
|
34
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html">Document Text Detection</a>.</p>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { TextractClient, GetDocumentTextDetectionCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
39
|
-
* // const { TextractClient, GetDocumentTextDetectionCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
40
|
-
* const client = new TextractClient(config);
|
|
41
|
-
* const command = new GetDocumentTextDetectionCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link GetDocumentTextDetectionCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link GetDocumentTextDetectionCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
9
|
+
|
|
50
10
|
export declare class GetDocumentTextDetectionCommand extends $Command<GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
|
|
51
11
|
readonly input: GetDocumentTextDetectionCommandInput;
|
|
52
12
|
constructor(input: GetDocumentTextDetectionCommandInput);
|
|
53
|
-
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
13
|
+
|
|
56
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput>;
|
|
57
15
|
private serialize;
|
|
58
16
|
private deserialize;
|
|
@@ -6,46 +6,11 @@ export interface StartDocumentAnalysisCommandInput extends StartDocumentAnalysis
|
|
|
6
6
|
}
|
|
7
7
|
export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysisResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Starts the asynchronous analysis of an input document for relationships between detected
|
|
11
|
-
* items such as key-value pairs, tables, and selection elements.</p>
|
|
12
|
-
*
|
|
13
|
-
* <p>
|
|
14
|
-
* <code>StartDocumentAnalysis</code> can analyze text in documents that are in JPEG, PNG, and PDF format. The
|
|
15
|
-
* documents are stored in an Amazon S3 bucket. Use <a>DocumentLocation</a> to specify the bucket name and file name
|
|
16
|
-
* of the document.
|
|
17
|
-
* </p>
|
|
18
|
-
* <p>
|
|
19
|
-
* <code>StartDocumentAnalysis</code> returns a job identifier
|
|
20
|
-
* (<code>JobId</code>) that you use to get the results of the operation. When text
|
|
21
|
-
* analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS)
|
|
22
|
-
* topic that you specify in <code>NotificationChannel</code>. To get the results of the text
|
|
23
|
-
* analysis operation, first check that the status value published to the Amazon SNS topic is
|
|
24
|
-
* <code>SUCCEEDED</code>. If so, call <a>GetDocumentAnalysis</a>, and pass
|
|
25
|
-
* the job identifier (<code>JobId</code>) from the initial call to
|
|
26
|
-
* <code>StartDocumentAnalysis</code>.</p>
|
|
27
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/textract/latest/dg/how-it-works-analyzing.html">Document Text Analysis</a>.</p>
|
|
28
|
-
* @example
|
|
29
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
30
|
-
* ```javascript
|
|
31
|
-
* import { TextractClient, StartDocumentAnalysisCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
32
|
-
* // const { TextractClient, StartDocumentAnalysisCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
33
|
-
* const client = new TextractClient(config);
|
|
34
|
-
* const command = new StartDocumentAnalysisCommand(input);
|
|
35
|
-
* const response = await client.send(command);
|
|
36
|
-
* ```
|
|
37
|
-
*
|
|
38
|
-
* @see {@link StartDocumentAnalysisCommandInput} for command's `input` shape.
|
|
39
|
-
* @see {@link StartDocumentAnalysisCommandOutput} for command's `response` shape.
|
|
40
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
41
|
-
*
|
|
42
|
-
*/
|
|
9
|
+
|
|
43
10
|
export declare class StartDocumentAnalysisCommand extends $Command<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
|
|
44
11
|
readonly input: StartDocumentAnalysisCommandInput;
|
|
45
12
|
constructor(input: StartDocumentAnalysisCommandInput);
|
|
46
|
-
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
13
|
+
|
|
49
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput>;
|
|
50
15
|
private serialize;
|
|
51
16
|
private deserialize;
|
|
@@ -6,45 +6,11 @@ export interface StartDocumentTextDetectionCommandInput extends StartDocumentTex
|
|
|
6
6
|
}
|
|
7
7
|
export interface StartDocumentTextDetectionCommandOutput extends StartDocumentTextDetectionResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
* <p>Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of
|
|
11
|
-
* text and the words that make up a line of text.</p>
|
|
12
|
-
* <p>
|
|
13
|
-
* <code>StartDocumentTextDetection</code> can analyze text in documents that are in JPEG, PNG, and PDF format. The
|
|
14
|
-
* documents are stored in an Amazon S3 bucket. Use <a>DocumentLocation</a> to specify the bucket name and file name
|
|
15
|
-
* of the document.
|
|
16
|
-
* </p>
|
|
17
|
-
* <p>
|
|
18
|
-
* <code>StartTextDetection</code> returns a job identifier
|
|
19
|
-
* (<code>JobId</code>) that you use to get the results of the operation. When text
|
|
20
|
-
* detection is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS)
|
|
21
|
-
* topic that you specify in <code>NotificationChannel</code>. To get the results of the text
|
|
22
|
-
* detection operation, first check that the status value published to the Amazon SNS topic is
|
|
23
|
-
* <code>SUCCEEDED</code>. If so, call <a>GetDocumentTextDetection</a>, and
|
|
24
|
-
* pass the job identifier (<code>JobId</code>) from the initial call to
|
|
25
|
-
* <code>StartDocumentTextDetection</code>.</p>
|
|
26
|
-
* <p>For more information, see <a href="https://docs.aws.amazon.com/textract/latest/dg/how-it-works-detecting.html">Document Text Detection</a>.</p>
|
|
27
|
-
* @example
|
|
28
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
-
* ```javascript
|
|
30
|
-
* import { TextractClient, StartDocumentTextDetectionCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
31
|
-
* // const { TextractClient, StartDocumentTextDetectionCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
32
|
-
* const client = new TextractClient(config);
|
|
33
|
-
* const command = new StartDocumentTextDetectionCommand(input);
|
|
34
|
-
* const response = await client.send(command);
|
|
35
|
-
* ```
|
|
36
|
-
*
|
|
37
|
-
* @see {@link StartDocumentTextDetectionCommandInput} for command's `input` shape.
|
|
38
|
-
* @see {@link StartDocumentTextDetectionCommandOutput} for command's `response` shape.
|
|
39
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
9
|
+
|
|
42
10
|
export declare class StartDocumentTextDetectionCommand extends $Command<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
|
|
43
11
|
readonly input: StartDocumentTextDetectionCommandInput;
|
|
44
12
|
constructor(input: StartDocumentTextDetectionCommandInput);
|
|
45
|
-
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
13
|
+
|
|
48
14
|
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput>;
|
|
49
15
|
private serialize;
|
|
50
16
|
private deserialize;
|