@aws-sdk/client-textract 3.33.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 +47 -0
- package/{dist/cjs → dist-cjs}/Textract.js +1 -7
- package/{dist/cjs → dist-cjs}/TextractClient.js +8 -19
- package/dist-cjs/commands/AnalyzeDocumentCommand.js +36 -0
- package/dist-cjs/commands/AnalyzeExpenseCommand.js +36 -0
- package/dist-cjs/commands/DetectDocumentTextCommand.js +36 -0
- package/dist-cjs/commands/GetDocumentAnalysisCommand.js +36 -0
- package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +36 -0
- package/dist-cjs/commands/StartDocumentAnalysisCommand.js +36 -0
- package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +36 -0
- 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 -148
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- 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 → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/Textract.d.ts +40 -0
- package/{dist/types → dist-types}/ts3.4/TextractClient.d.ts +32 -99
- package/dist-types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DetectDocumentTextCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +17 -0
- 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/ts3.4/models/models_0.d.ts +649 -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 +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- 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 +0 -91
- package/dist/cjs/commands/AnalyzeDocumentCommand.js.map +0 -1
- package/dist/cjs/commands/AnalyzeExpenseCommand.js +0 -74
- package/dist/cjs/commands/AnalyzeExpenseCommand.js.map +0 -1
- package/dist/cjs/commands/DetectDocumentTextCommand.js +0 -71
- package/dist/cjs/commands/DetectDocumentTextCommand.js.map +0 -1
- package/dist/cjs/commands/GetDocumentAnalysisCommand.js +0 -105
- package/dist/cjs/commands/GetDocumentAnalysisCommand.js.map +0 -1
- package/dist/cjs/commands/GetDocumentTextDetectionCommand.js +0 -85
- package/dist/cjs/commands/GetDocumentTextDetectionCommand.js.map +0 -1
- package/dist/cjs/commands/StartDocumentAnalysisCommand.js +0 -78
- package/dist/cjs/commands/StartDocumentAnalysisCommand.js.map +0 -1
- package/dist/cjs/commands/StartDocumentTextDetectionCommand.js +0 -77
- 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/dist/types/ts3.4/Textract.d.ts +0 -212
- package/dist/types/ts3.4/commands/AnalyzeDocumentCommand.d.ts +0 -65
- package/dist/types/ts3.4/commands/AnalyzeExpenseCommand.d.ts +0 -48
- package/dist/types/ts3.4/commands/DetectDocumentTextCommand.d.ts +0 -45
- package/dist/types/ts3.4/commands/GetDocumentAnalysisCommand.d.ts +0 -79
- package/dist/types/ts3.4/commands/GetDocumentTextDetectionCommand.d.ts +0 -59
- package/dist/types/ts3.4/commands/StartDocumentAnalysisCommand.d.ts +0 -52
- package/dist/types/ts3.4/commands/StartDocumentTextDetectionCommand.d.ts +0 -51
- package/dist/types/ts3.4/models/models_0.d.ts +0 -1347
- 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
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { TextractClient } from "./TextractClient";
|
|
2
|
-
import { AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput } from "./commands/AnalyzeDocumentCommand";
|
|
3
|
-
import { AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput } from "./commands/AnalyzeExpenseCommand";
|
|
4
|
-
import { DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput } from "./commands/DetectDocumentTextCommand";
|
|
5
|
-
import { GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput } from "./commands/GetDocumentAnalysisCommand";
|
|
6
|
-
import { GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput } from "./commands/GetDocumentTextDetectionCommand";
|
|
7
|
-
import { StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput } from "./commands/StartDocumentAnalysisCommand";
|
|
8
|
-
import { StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput } from "./commands/StartDocumentTextDetectionCommand";
|
|
9
|
-
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
10
|
-
/**
|
|
11
|
-
* <p>Amazon Textract detects and analyzes text in documents and converts it
|
|
12
|
-
* into machine-readable text. This is the API reference documentation for
|
|
13
|
-
* Amazon Textract.</p>
|
|
14
|
-
*/
|
|
15
|
-
export declare class Textract extends TextractClient {
|
|
16
|
-
/**
|
|
17
|
-
* <p>Analyzes an input document for relationships between detected items. </p>
|
|
18
|
-
* <p>The types of information returned are as follows: </p>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>Form data (key-value pairs). The related information is returned in two <a>Block</a> objects, each of type <code>KEY_VALUE_SET</code>: a KEY
|
|
22
|
-
* <code>Block</code> object and a VALUE <code>Block</code> object. For example,
|
|
23
|
-
* <i>Name: Ana Silva Carolina</i> contains a key and value.
|
|
24
|
-
* <i>Name:</i> is the key. <i>Ana Silva Carolina</i> is
|
|
25
|
-
* the value.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>Table and table cell data. A TABLE <code>Block</code> object contains information about a detected table. A CELL
|
|
29
|
-
* <code>Block</code> object is returned for each cell in a table.</p>
|
|
30
|
-
* </li>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>Lines and words of text. A LINE <code>Block</code> object contains one or more WORD <code>Block</code> objects.
|
|
33
|
-
* All lines and words that are detected in the document are returned (including text that doesn't have a
|
|
34
|
-
* relationship with the value of <code>FeatureTypes</code>). </p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
*
|
|
38
|
-
* <p>Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables.
|
|
39
|
-
* A SELECTION_ELEMENT <code>Block</code> object contains information about a selection element,
|
|
40
|
-
* including the selection status.</p>
|
|
41
|
-
* <p>You can choose which type of analysis to perform by specifying the <code>FeatureTypes</code> list.
|
|
42
|
-
* </p>
|
|
43
|
-
* <p>The output is returned in a list of <code>Block</code> objects.</p>
|
|
44
|
-
* <p>
|
|
45
|
-
* <code>AnalyzeDocument</code> is a synchronous operation. To analyze documents
|
|
46
|
-
* asynchronously, use <a>StartDocumentAnalysis</a>.</p>
|
|
47
|
-
* <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>
|
|
48
|
-
*/
|
|
49
|
-
analyzeDocument(args: AnalyzeDocumentCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeDocumentCommandOutput>;
|
|
50
|
-
analyzeDocument(args: AnalyzeDocumentCommandInput, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
|
|
51
|
-
analyzeDocument(args: AnalyzeDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeDocumentCommandOutput) => void): void;
|
|
52
|
-
/**
|
|
53
|
-
* <p>Analyzes an input document for financially related relationships between text.</p>
|
|
54
|
-
* <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
|
|
55
|
-
* <ul>
|
|
56
|
-
* <li>
|
|
57
|
-
* <p>
|
|
58
|
-
* <code>LineItemGroups</code>- A data set containing <code>LineItems</code> which
|
|
59
|
-
* store information about the lines of text, such as an item purchased and its price on a receipt.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>
|
|
63
|
-
* <code>SummaryFields</code>- Contains all other information a receipt, such as header information
|
|
64
|
-
* or the vendors name.</p>
|
|
65
|
-
* </li>
|
|
66
|
-
* </ul>
|
|
67
|
-
*/
|
|
68
|
-
analyzeExpense(args: AnalyzeExpenseCommandInput, options?: __HttpHandlerOptions): Promise<AnalyzeExpenseCommandOutput>;
|
|
69
|
-
analyzeExpense(args: AnalyzeExpenseCommandInput, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
|
|
70
|
-
analyzeExpense(args: AnalyzeExpenseCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AnalyzeExpenseCommandOutput) => void): void;
|
|
71
|
-
/**
|
|
72
|
-
* <p>Detects text in the input document. Amazon Textract can detect lines of text and the
|
|
73
|
-
* words that make up a line of text. The input document must be an image in JPEG or PNG
|
|
74
|
-
* format. <code>DetectDocumentText</code> returns the detected text in an array of <a>Block</a> objects. </p>
|
|
75
|
-
* <p>Each document page has as an associated <code>Block</code> of type PAGE. Each PAGE <code>Block</code> object
|
|
76
|
-
* 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
|
|
77
|
-
* a parent for each word that makes up the line. Words are represented by <code>Block</code> objects of type WORD.</p>
|
|
78
|
-
*
|
|
79
|
-
* <p>
|
|
80
|
-
* <code>DetectDocumentText</code> is a synchronous operation. To analyze documents
|
|
81
|
-
* asynchronously, use <a>StartDocumentTextDetection</a>.</p>
|
|
82
|
-
* <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>
|
|
83
|
-
*/
|
|
84
|
-
detectDocumentText(args: DetectDocumentTextCommandInput, options?: __HttpHandlerOptions): Promise<DetectDocumentTextCommandOutput>;
|
|
85
|
-
detectDocumentText(args: DetectDocumentTextCommandInput, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
|
|
86
|
-
detectDocumentText(args: DetectDocumentTextCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DetectDocumentTextCommandOutput) => void): void;
|
|
87
|
-
/**
|
|
88
|
-
* <p>Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.</p>
|
|
89
|
-
* <p>You start asynchronous text analysis by calling <a>StartDocumentAnalysis</a>, which returns a job identifier
|
|
90
|
-
* (<code>JobId</code>). When the text analysis operation finishes, Amazon Textract publishes a
|
|
91
|
-
* completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to
|
|
92
|
-
* <code>StartDocumentAnalysis</code>. To get the results of the text-detection operation,
|
|
93
|
-
* first check that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.
|
|
94
|
-
* If so, call <code>GetDocumentAnalysis</code>, and pass the job identifier
|
|
95
|
-
* (<code>JobId</code>) from the initial call to <code>StartDocumentAnalysis</code>.</p>
|
|
96
|
-
* <p>
|
|
97
|
-
* <code>GetDocumentAnalysis</code> returns an array of <a>Block</a> objects. The following
|
|
98
|
-
* types of information are returned: </p>
|
|
99
|
-
* <ul>
|
|
100
|
-
* <li>
|
|
101
|
-
* <p>Form data (key-value pairs). The related information is returned in two <a>Block</a> objects, each of type <code>KEY_VALUE_SET</code>: a KEY
|
|
102
|
-
* <code>Block</code> object and a VALUE <code>Block</code> object. For example,
|
|
103
|
-
* <i>Name: Ana Silva Carolina</i> contains a key and value.
|
|
104
|
-
* <i>Name:</i> is the key. <i>Ana Silva Carolina</i> is
|
|
105
|
-
* the value.</p>
|
|
106
|
-
* </li>
|
|
107
|
-
* <li>
|
|
108
|
-
* <p>Table and table cell data. A TABLE <code>Block</code> object contains information about a detected table. A CELL
|
|
109
|
-
* <code>Block</code> object is returned for each cell in a table.</p>
|
|
110
|
-
* </li>
|
|
111
|
-
* <li>
|
|
112
|
-
* <p>Lines and words of text. A LINE <code>Block</code> object contains one or more WORD <code>Block</code> objects.
|
|
113
|
-
* All lines and words that are detected in the document are returned (including text that doesn't have a
|
|
114
|
-
* relationship with the value of the <code>StartDocumentAnalysis</code>
|
|
115
|
-
* <code>FeatureTypes</code> input parameter). </p>
|
|
116
|
-
* </li>
|
|
117
|
-
* </ul>
|
|
118
|
-
*
|
|
119
|
-
* <p>Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables.
|
|
120
|
-
* A SELECTION_ELEMENT <code>Block</code> object contains information about a selection element,
|
|
121
|
-
* including the selection status.</p>
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* <p>Use the <code>MaxResults</code> parameter to limit the number of blocks that are
|
|
126
|
-
* returned. If there are more results than specified in <code>MaxResults</code>, the value of
|
|
127
|
-
* <code>NextToken</code> in the operation response contains a pagination token for getting
|
|
128
|
-
* the next set of results. To get the next page of results, call
|
|
129
|
-
* <code>GetDocumentAnalysis</code>, and populate the <code>NextToken</code> request
|
|
130
|
-
* parameter with the token value that's returned from the previous call to
|
|
131
|
-
* <code>GetDocumentAnalysis</code>.</p>
|
|
132
|
-
* <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>
|
|
133
|
-
*/
|
|
134
|
-
getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentAnalysisCommandOutput>;
|
|
135
|
-
getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void): void;
|
|
136
|
-
getDocumentAnalysis(args: GetDocumentAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentAnalysisCommandOutput) => void): void;
|
|
137
|
-
/**
|
|
138
|
-
* <p>Gets the results for an Amazon Textract asynchronous operation that detects text in a document.
|
|
139
|
-
* Amazon Textract can detect lines of text and the words that make up a line of text.</p>
|
|
140
|
-
* <p>You start asynchronous text detection by calling <a>StartDocumentTextDetection</a>, which returns a job identifier
|
|
141
|
-
* (<code>JobId</code>). When the text detection operation finishes, Amazon Textract publishes a
|
|
142
|
-
* completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to
|
|
143
|
-
* <code>StartDocumentTextDetection</code>. To get the results of the text-detection
|
|
144
|
-
* operation, first check that the status value published to the Amazon SNS topic is
|
|
145
|
-
* <code>SUCCEEDED</code>. If so, call <code>GetDocumentTextDetection</code>, and pass the
|
|
146
|
-
* job identifier (<code>JobId</code>) from the initial call to
|
|
147
|
-
* <code>StartDocumentTextDetection</code>.</p>
|
|
148
|
-
* <p>
|
|
149
|
-
* <code>GetDocumentTextDetection</code> returns an array of <a>Block</a>
|
|
150
|
-
* objects. </p>
|
|
151
|
-
* <p>Each document page has as an associated <code>Block</code> of type PAGE. Each PAGE <code>Block</code> object
|
|
152
|
-
* 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
|
|
153
|
-
* a parent for each word that makes up the line. Words are represented by <code>Block</code> objects of type WORD.</p>
|
|
154
|
-
*
|
|
155
|
-
* <p>Use the MaxResults parameter to limit the number of blocks that are returned. If there
|
|
156
|
-
* are more results than specified in <code>MaxResults</code>, the value of
|
|
157
|
-
* <code>NextToken</code> in the operation response contains a pagination token for getting
|
|
158
|
-
* the next set of results. To get the next page of results, call
|
|
159
|
-
* <code>GetDocumentTextDetection</code>, and populate the <code>NextToken</code> request
|
|
160
|
-
* parameter with the token value that's returned from the previous call to
|
|
161
|
-
* <code>GetDocumentTextDetection</code>.</p>
|
|
162
|
-
* <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>
|
|
163
|
-
*/
|
|
164
|
-
getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options?: __HttpHandlerOptions): Promise<GetDocumentTextDetectionCommandOutput>;
|
|
165
|
-
getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void): void;
|
|
166
|
-
getDocumentTextDetection(args: GetDocumentTextDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentTextDetectionCommandOutput) => void): void;
|
|
167
|
-
/**
|
|
168
|
-
* <p>Starts the asynchronous analysis of an input document for relationships between detected
|
|
169
|
-
* items such as key-value pairs, tables, and selection elements.</p>
|
|
170
|
-
*
|
|
171
|
-
* <p>
|
|
172
|
-
* <code>StartDocumentAnalysis</code> can analyze text in documents that are in JPEG, PNG, and PDF format. The
|
|
173
|
-
* documents are stored in an Amazon S3 bucket. Use <a>DocumentLocation</a> to specify the bucket name and file name
|
|
174
|
-
* of the document.
|
|
175
|
-
* </p>
|
|
176
|
-
* <p>
|
|
177
|
-
* <code>StartDocumentAnalysis</code> returns a job identifier
|
|
178
|
-
* (<code>JobId</code>) that you use to get the results of the operation. When text
|
|
179
|
-
* analysis is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS)
|
|
180
|
-
* topic that you specify in <code>NotificationChannel</code>. To get the results of the text
|
|
181
|
-
* analysis operation, first check that the status value published to the Amazon SNS topic is
|
|
182
|
-
* <code>SUCCEEDED</code>. If so, call <a>GetDocumentAnalysis</a>, and pass
|
|
183
|
-
* the job identifier (<code>JobId</code>) from the initial call to
|
|
184
|
-
* <code>StartDocumentAnalysis</code>.</p>
|
|
185
|
-
* <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>
|
|
186
|
-
*/
|
|
187
|
-
startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options?: __HttpHandlerOptions): Promise<StartDocumentAnalysisCommandOutput>;
|
|
188
|
-
startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void): void;
|
|
189
|
-
startDocumentAnalysis(args: StartDocumentAnalysisCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDocumentAnalysisCommandOutput) => void): void;
|
|
190
|
-
/**
|
|
191
|
-
* <p>Starts the asynchronous detection of text in a document. Amazon Textract can detect lines of
|
|
192
|
-
* text and the words that make up a line of text.</p>
|
|
193
|
-
* <p>
|
|
194
|
-
* <code>StartDocumentTextDetection</code> can analyze text in documents that are in JPEG, PNG, and PDF format. The
|
|
195
|
-
* documents are stored in an Amazon S3 bucket. Use <a>DocumentLocation</a> to specify the bucket name and file name
|
|
196
|
-
* of the document.
|
|
197
|
-
* </p>
|
|
198
|
-
* <p>
|
|
199
|
-
* <code>StartTextDetection</code> returns a job identifier
|
|
200
|
-
* (<code>JobId</code>) that you use to get the results of the operation. When text
|
|
201
|
-
* detection is finished, Amazon Textract publishes a completion status to the Amazon Simple Notification Service (Amazon SNS)
|
|
202
|
-
* topic that you specify in <code>NotificationChannel</code>. To get the results of the text
|
|
203
|
-
* detection operation, first check that the status value published to the Amazon SNS topic is
|
|
204
|
-
* <code>SUCCEEDED</code>. If so, call <a>GetDocumentTextDetection</a>, and
|
|
205
|
-
* pass the job identifier (<code>JobId</code>) from the initial call to
|
|
206
|
-
* <code>StartDocumentTextDetection</code>.</p>
|
|
207
|
-
* <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>
|
|
208
|
-
*/
|
|
209
|
-
startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options?: __HttpHandlerOptions): Promise<StartDocumentTextDetectionCommandOutput>;
|
|
210
|
-
startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void): void;
|
|
211
|
-
startDocumentTextDetection(args: StartDocumentTextDetectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDocumentTextDetectionCommandOutput) => void): void;
|
|
212
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
2
|
-
import { AnalyzeDocumentRequest, AnalyzeDocumentResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface AnalyzeDocumentCommandInput extends AnalyzeDocumentRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Analyzes an input document for relationships between detected items. </p>
|
|
11
|
-
* <p>The types of information returned are as follows: </p>
|
|
12
|
-
* <ul>
|
|
13
|
-
* <li>
|
|
14
|
-
* <p>Form data (key-value pairs). The related information is returned in two <a>Block</a> objects, each of type <code>KEY_VALUE_SET</code>: a KEY
|
|
15
|
-
* <code>Block</code> object and a VALUE <code>Block</code> object. For example,
|
|
16
|
-
* <i>Name: Ana Silva Carolina</i> contains a key and value.
|
|
17
|
-
* <i>Name:</i> is the key. <i>Ana Silva Carolina</i> is
|
|
18
|
-
* the value.</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>Table and table cell data. A TABLE <code>Block</code> object contains information about a detected table. A CELL
|
|
22
|
-
* <code>Block</code> object is returned for each cell in a table.</p>
|
|
23
|
-
* </li>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>Lines and words of text. A LINE <code>Block</code> object contains one or more WORD <code>Block</code> objects.
|
|
26
|
-
* All lines and words that are detected in the document are returned (including text that doesn't have a
|
|
27
|
-
* relationship with the value of <code>FeatureTypes</code>). </p>
|
|
28
|
-
* </li>
|
|
29
|
-
* </ul>
|
|
30
|
-
*
|
|
31
|
-
* <p>Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables.
|
|
32
|
-
* A SELECTION_ELEMENT <code>Block</code> object contains information about a selection element,
|
|
33
|
-
* including the selection status.</p>
|
|
34
|
-
* <p>You can choose which type of analysis to perform by specifying the <code>FeatureTypes</code> list.
|
|
35
|
-
* </p>
|
|
36
|
-
* <p>The output is returned in a list of <code>Block</code> objects.</p>
|
|
37
|
-
* <p>
|
|
38
|
-
* <code>AnalyzeDocument</code> is a synchronous operation. To analyze documents
|
|
39
|
-
* asynchronously, use <a>StartDocumentAnalysis</a>.</p>
|
|
40
|
-
* <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>
|
|
41
|
-
* @example
|
|
42
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
43
|
-
* ```javascript
|
|
44
|
-
* import { TextractClient, AnalyzeDocumentCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
45
|
-
* // const { TextractClient, AnalyzeDocumentCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
46
|
-
* const client = new TextractClient(config);
|
|
47
|
-
* const command = new AnalyzeDocumentCommand(input);
|
|
48
|
-
* const response = await client.send(command);
|
|
49
|
-
* ```
|
|
50
|
-
*
|
|
51
|
-
* @see {@link AnalyzeDocumentCommandInput} for command's `input` shape.
|
|
52
|
-
* @see {@link AnalyzeDocumentCommandOutput} for command's `response` shape.
|
|
53
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
54
|
-
*
|
|
55
|
-
*/
|
|
56
|
-
export declare class AnalyzeDocumentCommand extends $Command<AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput, TextractClientResolvedConfig> {
|
|
57
|
-
readonly input: AnalyzeDocumentCommandInput;
|
|
58
|
-
constructor(input: AnalyzeDocumentCommandInput);
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
*/
|
|
62
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeDocumentCommandInput, AnalyzeDocumentCommandOutput>;
|
|
63
|
-
private serialize;
|
|
64
|
-
private deserialize;
|
|
65
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
2
|
-
import { AnalyzeExpenseRequest, AnalyzeExpenseResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface AnalyzeExpenseCommandInput extends AnalyzeExpenseRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface AnalyzeExpenseCommandOutput extends AnalyzeExpenseResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Analyzes an input document for financially related relationships between text.</p>
|
|
11
|
-
* <p>Information is returned as <code>ExpenseDocuments</code> and seperated as follows.</p>
|
|
12
|
-
* <ul>
|
|
13
|
-
* <li>
|
|
14
|
-
* <p>
|
|
15
|
-
* <code>LineItemGroups</code>- A data set containing <code>LineItems</code> which
|
|
16
|
-
* store information about the lines of text, such as an item purchased and its price on a receipt.</p>
|
|
17
|
-
* </li>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>
|
|
20
|
-
* <code>SummaryFields</code>- Contains all other information a receipt, such as header information
|
|
21
|
-
* or the vendors name.</p>
|
|
22
|
-
* </li>
|
|
23
|
-
* </ul>
|
|
24
|
-
* @example
|
|
25
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
-
* ```javascript
|
|
27
|
-
* import { TextractClient, AnalyzeExpenseCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
28
|
-
* // const { TextractClient, AnalyzeExpenseCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
29
|
-
* const client = new TextractClient(config);
|
|
30
|
-
* const command = new AnalyzeExpenseCommand(input);
|
|
31
|
-
* const response = await client.send(command);
|
|
32
|
-
* ```
|
|
33
|
-
*
|
|
34
|
-
* @see {@link AnalyzeExpenseCommandInput} for command's `input` shape.
|
|
35
|
-
* @see {@link AnalyzeExpenseCommandOutput} for command's `response` shape.
|
|
36
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
|
-
export declare class AnalyzeExpenseCommand extends $Command<AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput, TextractClientResolvedConfig> {
|
|
40
|
-
readonly input: AnalyzeExpenseCommandInput;
|
|
41
|
-
constructor(input: AnalyzeExpenseCommandInput);
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<AnalyzeExpenseCommandInput, AnalyzeExpenseCommandOutput>;
|
|
46
|
-
private serialize;
|
|
47
|
-
private deserialize;
|
|
48
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
2
|
-
import { DetectDocumentTextRequest, DetectDocumentTextResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface DetectDocumentTextCommandInput extends DetectDocumentTextRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface DetectDocumentTextCommandOutput extends DetectDocumentTextResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Detects text in the input document. Amazon Textract can detect lines of text and the
|
|
11
|
-
* words that make up a line of text. The input document must be an image in JPEG or PNG
|
|
12
|
-
* format. <code>DetectDocumentText</code> returns the detected text in an array of <a>Block</a> objects. </p>
|
|
13
|
-
* <p>Each document page has as an associated <code>Block</code> of type PAGE. Each PAGE <code>Block</code> object
|
|
14
|
-
* 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
|
|
15
|
-
* a parent for each word that makes up the line. Words are represented by <code>Block</code> objects of type WORD.</p>
|
|
16
|
-
*
|
|
17
|
-
* <p>
|
|
18
|
-
* <code>DetectDocumentText</code> is a synchronous operation. To analyze documents
|
|
19
|
-
* asynchronously, use <a>StartDocumentTextDetection</a>.</p>
|
|
20
|
-
* <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>
|
|
21
|
-
* @example
|
|
22
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
23
|
-
* ```javascript
|
|
24
|
-
* import { TextractClient, DetectDocumentTextCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
25
|
-
* // const { TextractClient, DetectDocumentTextCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
26
|
-
* const client = new TextractClient(config);
|
|
27
|
-
* const command = new DetectDocumentTextCommand(input);
|
|
28
|
-
* const response = await client.send(command);
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* @see {@link DetectDocumentTextCommandInput} for command's `input` shape.
|
|
32
|
-
* @see {@link DetectDocumentTextCommandOutput} for command's `response` shape.
|
|
33
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
export declare class DetectDocumentTextCommand extends $Command<DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput, TextractClientResolvedConfig> {
|
|
37
|
-
readonly input: DetectDocumentTextCommandInput;
|
|
38
|
-
constructor(input: DetectDocumentTextCommandInput);
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
*/
|
|
42
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DetectDocumentTextCommandInput, DetectDocumentTextCommandOutput>;
|
|
43
|
-
private serialize;
|
|
44
|
-
private deserialize;
|
|
45
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
2
|
-
import { GetDocumentAnalysisRequest, GetDocumentAnalysisResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface GetDocumentAnalysisCommandInput extends GetDocumentAnalysisRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface GetDocumentAnalysisCommandOutput extends GetDocumentAnalysisResponse, __MetadataBearer {
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* <p>Gets the results for an Amazon Textract asynchronous operation that analyzes text in a document.</p>
|
|
11
|
-
* <p>You start asynchronous text analysis by calling <a>StartDocumentAnalysis</a>, which returns a job identifier
|
|
12
|
-
* (<code>JobId</code>). When the text analysis operation finishes, Amazon Textract publishes a
|
|
13
|
-
* completion status to the Amazon Simple Notification Service (Amazon SNS) topic that's registered in the initial call to
|
|
14
|
-
* <code>StartDocumentAnalysis</code>. To get the results of the text-detection operation,
|
|
15
|
-
* first check that the status value published to the Amazon SNS topic is <code>SUCCEEDED</code>.
|
|
16
|
-
* If so, call <code>GetDocumentAnalysis</code>, and pass the job identifier
|
|
17
|
-
* (<code>JobId</code>) from the initial call to <code>StartDocumentAnalysis</code>.</p>
|
|
18
|
-
* <p>
|
|
19
|
-
* <code>GetDocumentAnalysis</code> returns an array of <a>Block</a> objects. The following
|
|
20
|
-
* types of information are returned: </p>
|
|
21
|
-
* <ul>
|
|
22
|
-
* <li>
|
|
23
|
-
* <p>Form data (key-value pairs). The related information is returned in two <a>Block</a> objects, each of type <code>KEY_VALUE_SET</code>: a KEY
|
|
24
|
-
* <code>Block</code> object and a VALUE <code>Block</code> object. For example,
|
|
25
|
-
* <i>Name: Ana Silva Carolina</i> contains a key and value.
|
|
26
|
-
* <i>Name:</i> is the key. <i>Ana Silva Carolina</i> is
|
|
27
|
-
* the value.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>Table and table cell data. A TABLE <code>Block</code> object contains information about a detected table. A CELL
|
|
31
|
-
* <code>Block</code> object is returned for each cell in a table.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>Lines and words of text. A LINE <code>Block</code> object contains one or more WORD <code>Block</code> objects.
|
|
35
|
-
* All lines and words that are detected in the document are returned (including text that doesn't have a
|
|
36
|
-
* relationship with the value of the <code>StartDocumentAnalysis</code>
|
|
37
|
-
* <code>FeatureTypes</code> input parameter). </p>
|
|
38
|
-
* </li>
|
|
39
|
-
* </ul>
|
|
40
|
-
*
|
|
41
|
-
* <p>Selection elements such as check boxes and option buttons (radio buttons) can be detected in form data and in tables.
|
|
42
|
-
* A SELECTION_ELEMENT <code>Block</code> object contains information about a selection element,
|
|
43
|
-
* including the selection status.</p>
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* <p>Use the <code>MaxResults</code> parameter to limit the number of blocks that are
|
|
48
|
-
* returned. If there are more results than specified in <code>MaxResults</code>, the value of
|
|
49
|
-
* <code>NextToken</code> in the operation response contains a pagination token for getting
|
|
50
|
-
* the next set of results. To get the next page of results, call
|
|
51
|
-
* <code>GetDocumentAnalysis</code>, and populate the <code>NextToken</code> request
|
|
52
|
-
* parameter with the token value that's returned from the previous call to
|
|
53
|
-
* <code>GetDocumentAnalysis</code>.</p>
|
|
54
|
-
* <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>
|
|
55
|
-
* @example
|
|
56
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
57
|
-
* ```javascript
|
|
58
|
-
* import { TextractClient, GetDocumentAnalysisCommand } from "@aws-sdk/client-textract"; // ES Modules import
|
|
59
|
-
* // const { TextractClient, GetDocumentAnalysisCommand } = require("@aws-sdk/client-textract"); // CommonJS import
|
|
60
|
-
* const client = new TextractClient(config);
|
|
61
|
-
* const command = new GetDocumentAnalysisCommand(input);
|
|
62
|
-
* const response = await client.send(command);
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* @see {@link GetDocumentAnalysisCommandInput} for command's `input` shape.
|
|
66
|
-
* @see {@link GetDocumentAnalysisCommandOutput} for command's `response` shape.
|
|
67
|
-
* @see {@link TextractClientResolvedConfig | config} for command's `input` shape.
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
export declare class GetDocumentAnalysisCommand extends $Command<GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
|
|
71
|
-
readonly input: GetDocumentAnalysisCommandInput;
|
|
72
|
-
constructor(input: GetDocumentAnalysisCommandInput);
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDocumentAnalysisCommandInput, GetDocumentAnalysisCommandOutput>;
|
|
77
|
-
private serialize;
|
|
78
|
-
private deserialize;
|
|
79
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
2
|
-
import { GetDocumentTextDetectionRequest, GetDocumentTextDetectionResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface GetDocumentTextDetectionCommandInput extends GetDocumentTextDetectionRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface GetDocumentTextDetectionCommandOutput extends GetDocumentTextDetectionResponse, __MetadataBearer {
|
|
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
|
-
*/
|
|
50
|
-
export declare class GetDocumentTextDetectionCommand extends $Command<GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
|
|
51
|
-
readonly input: GetDocumentTextDetectionCommandInput;
|
|
52
|
-
constructor(input: GetDocumentTextDetectionCommandInput);
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDocumentTextDetectionCommandInput, GetDocumentTextDetectionCommandOutput>;
|
|
57
|
-
private serialize;
|
|
58
|
-
private deserialize;
|
|
59
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
2
|
-
import { StartDocumentAnalysisRequest, StartDocumentAnalysisResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface StartDocumentAnalysisCommandInput extends StartDocumentAnalysisRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface StartDocumentAnalysisCommandOutput extends StartDocumentAnalysisResponse, __MetadataBearer {
|
|
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
|
-
*/
|
|
43
|
-
export declare class StartDocumentAnalysisCommand extends $Command<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput, TextractClientResolvedConfig> {
|
|
44
|
-
readonly input: StartDocumentAnalysisCommandInput;
|
|
45
|
-
constructor(input: StartDocumentAnalysisCommandInput);
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentAnalysisCommandInput, StartDocumentAnalysisCommandOutput>;
|
|
50
|
-
private serialize;
|
|
51
|
-
private deserialize;
|
|
52
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ServiceInputTypes, ServiceOutputTypes, TextractClientResolvedConfig } from "../TextractClient";
|
|
2
|
-
import { StartDocumentTextDetectionRequest, StartDocumentTextDetectionResponse } from "../models/models_0";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@aws-sdk/types";
|
|
5
|
-
export interface StartDocumentTextDetectionCommandInput extends StartDocumentTextDetectionRequest {
|
|
6
|
-
}
|
|
7
|
-
export interface StartDocumentTextDetectionCommandOutput extends StartDocumentTextDetectionResponse, __MetadataBearer {
|
|
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
|
-
*/
|
|
42
|
-
export declare class StartDocumentTextDetectionCommand extends $Command<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput, TextractClientResolvedConfig> {
|
|
43
|
-
readonly input: StartDocumentTextDetectionCommandInput;
|
|
44
|
-
constructor(input: StartDocumentTextDetectionCommandInput);
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
*/
|
|
48
|
-
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: TextractClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartDocumentTextDetectionCommandInput, StartDocumentTextDetectionCommandOutput>;
|
|
49
|
-
private serialize;
|
|
50
|
-
private deserialize;
|
|
51
|
-
}
|