@aws-sdk/client-textract 3.211.0 → 3.213.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/dist-cjs/models/models_0.js +2 -0
- package/dist-es/models/models_0.js +2 -0
- package/dist-types/Textract.d.ts +5 -0
- package/dist-types/commands/AnalyzeDocumentCommand.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +10 -1
- package/dist-types/ts3.4/models/models_0.d.ts +2 -0
- package/package.json +28 -28
|
@@ -22,6 +22,7 @@ var FeatureType;
|
|
|
22
22
|
(function (FeatureType) {
|
|
23
23
|
FeatureType["FORMS"] = "FORMS";
|
|
24
24
|
FeatureType["QUERIES"] = "QUERIES";
|
|
25
|
+
FeatureType["SIGNATURES"] = "SIGNATURES";
|
|
25
26
|
FeatureType["TABLES"] = "TABLES";
|
|
26
27
|
})(FeatureType = exports.FeatureType || (exports.FeatureType = {}));
|
|
27
28
|
var ContentClassifier;
|
|
@@ -39,6 +40,7 @@ var BlockType;
|
|
|
39
40
|
BlockType["QUERY"] = "QUERY";
|
|
40
41
|
BlockType["QUERY_RESULT"] = "QUERY_RESULT";
|
|
41
42
|
BlockType["SELECTION_ELEMENT"] = "SELECTION_ELEMENT";
|
|
43
|
+
BlockType["SIGNATURE"] = "SIGNATURE";
|
|
42
44
|
BlockType["TABLE"] = "TABLE";
|
|
43
45
|
BlockType["TITLE"] = "TITLE";
|
|
44
46
|
BlockType["WORD"] = "WORD";
|
|
@@ -17,6 +17,7 @@ export var FeatureType;
|
|
|
17
17
|
(function (FeatureType) {
|
|
18
18
|
FeatureType["FORMS"] = "FORMS";
|
|
19
19
|
FeatureType["QUERIES"] = "QUERIES";
|
|
20
|
+
FeatureType["SIGNATURES"] = "SIGNATURES";
|
|
20
21
|
FeatureType["TABLES"] = "TABLES";
|
|
21
22
|
})(FeatureType || (FeatureType = {}));
|
|
22
23
|
export var ContentClassifier;
|
|
@@ -34,6 +35,7 @@ export var BlockType;
|
|
|
34
35
|
BlockType["QUERY"] = "QUERY";
|
|
35
36
|
BlockType["QUERY_RESULT"] = "QUERY_RESULT";
|
|
36
37
|
BlockType["SELECTION_ELEMENT"] = "SELECTION_ELEMENT";
|
|
38
|
+
BlockType["SIGNATURE"] = "SIGNATURE";
|
|
37
39
|
BlockType["TABLE"] = "TABLE";
|
|
38
40
|
BlockType["TITLE"] = "TITLE";
|
|
39
41
|
BlockType["WORD"] = "WORD";
|
package/dist-types/Textract.d.ts
CHANGED
|
@@ -39,6 +39,11 @@ export declare class Textract extends TextractClient {
|
|
|
39
39
|
* of <code>FeatureTypes</code>). </p>
|
|
40
40
|
* </li>
|
|
41
41
|
* <li>
|
|
42
|
+
* <p>Signatures. A SIGNATURE <code>Block</code> object contains the location information
|
|
43
|
+
* of a signature in a document. If used in conjunction with forms or tables, a signature
|
|
44
|
+
* can be given a Key-Value pairing or be detected in the cell of a table.</p>
|
|
45
|
+
* </li>
|
|
46
|
+
* <li>
|
|
42
47
|
* <p>Query. A QUERY Block object contains the query text, alias and link to the
|
|
43
48
|
* associated Query results block object.</p>
|
|
44
49
|
* </li>
|
|
@@ -30,6 +30,11 @@ export interface AnalyzeDocumentCommandOutput extends AnalyzeDocumentResponse, _
|
|
|
30
30
|
* of <code>FeatureTypes</code>). </p>
|
|
31
31
|
* </li>
|
|
32
32
|
* <li>
|
|
33
|
+
* <p>Signatures. A SIGNATURE <code>Block</code> object contains the location information
|
|
34
|
+
* of a signature in a document. If used in conjunction with forms or tables, a signature
|
|
35
|
+
* can be given a Key-Value pairing or be detected in the cell of a table.</p>
|
|
36
|
+
* </li>
|
|
37
|
+
* <li>
|
|
33
38
|
* <p>Query. A QUERY Block object contains the query text, alias and link to the
|
|
34
39
|
* associated Query results block object.</p>
|
|
35
40
|
* </li>
|
|
@@ -76,6 +76,7 @@ export interface Document {
|
|
|
76
76
|
export declare enum FeatureType {
|
|
77
77
|
FORMS = "FORMS",
|
|
78
78
|
QUERIES = "QUERIES",
|
|
79
|
+
SIGNATURES = "SIGNATURES",
|
|
79
80
|
TABLES = "TABLES"
|
|
80
81
|
}
|
|
81
82
|
export declare enum ContentClassifier {
|
|
@@ -170,7 +171,9 @@ export interface AnalyzeDocumentRequest {
|
|
|
170
171
|
/**
|
|
171
172
|
* <p>A list of the types of analysis to perform. Add TABLES to the list to return information
|
|
172
173
|
* about the tables that are detected in the input document. Add FORMS to return detected form
|
|
173
|
-
* data.
|
|
174
|
+
* data. Add SIGNATURES to return the locations of detected signatures. To perform both forms
|
|
175
|
+
* and table analysis, add TABLES and FORMS to <code>FeatureTypes</code>. To detect signatures within
|
|
176
|
+
* form data and table data, add SIGNATURES to either TABLES or FORMS.
|
|
174
177
|
* All lines and words detected in the document are included in the response (including text
|
|
175
178
|
* that isn't related to the value of <code>FeatureTypes</code>). </p>
|
|
176
179
|
*/
|
|
@@ -194,6 +197,7 @@ export declare enum BlockType {
|
|
|
194
197
|
QUERY = "QUERY",
|
|
195
198
|
QUERY_RESULT = "QUERY_RESULT",
|
|
196
199
|
SELECTION_ELEMENT = "SELECTION_ELEMENT",
|
|
200
|
+
SIGNATURE = "SIGNATURE",
|
|
197
201
|
TABLE = "TABLE",
|
|
198
202
|
TITLE = "TITLE",
|
|
199
203
|
WORD = "WORD"
|
|
@@ -394,6 +398,11 @@ export interface Block {
|
|
|
394
398
|
* </li>
|
|
395
399
|
* <li>
|
|
396
400
|
* <p>
|
|
401
|
+
* <i>SIGNATURE</i> - The location and confidene score of a signature detected on a
|
|
402
|
+
* document page. Can be returned as part of a Key-Value pair or a detected cell.</p>
|
|
403
|
+
* </li>
|
|
404
|
+
* <li>
|
|
405
|
+
* <p>
|
|
397
406
|
* <i>QUERY</i> - A question asked during the call of AnalyzeDocument. Contains an
|
|
398
407
|
* alias and an ID that attaches it to its answer.</p>
|
|
399
408
|
* </li>
|
|
@@ -24,6 +24,7 @@ export interface Document {
|
|
|
24
24
|
export declare enum FeatureType {
|
|
25
25
|
FORMS = "FORMS",
|
|
26
26
|
QUERIES = "QUERIES",
|
|
27
|
+
SIGNATURES = "SIGNATURES",
|
|
27
28
|
TABLES = "TABLES",
|
|
28
29
|
}
|
|
29
30
|
export declare enum ContentClassifier {
|
|
@@ -61,6 +62,7 @@ export declare enum BlockType {
|
|
|
61
62
|
QUERY = "QUERY",
|
|
62
63
|
QUERY_RESULT = "QUERY_RESULT",
|
|
63
64
|
SELECTION_ELEMENT = "SELECTION_ELEMENT",
|
|
65
|
+
SIGNATURE = "SIGNATURE",
|
|
64
66
|
TABLE = "TABLE",
|
|
65
67
|
TITLE = "TITLE",
|
|
66
68
|
WORD = "WORD",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-textract",
|
|
3
3
|
"description": "AWS SDK for JavaScript Textract Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.213.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -19,36 +19,36 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
21
21
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
22
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
-
"@aws-sdk/config-resolver": "3.
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
26
|
-
"@aws-sdk/hash-node": "3.
|
|
27
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
28
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
29
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
30
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
31
|
-
"@aws-sdk/middleware-logger": "3.
|
|
32
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
33
|
-
"@aws-sdk/middleware-retry": "3.
|
|
34
|
-
"@aws-sdk/middleware-serde": "3.
|
|
35
|
-
"@aws-sdk/middleware-signing": "3.
|
|
36
|
-
"@aws-sdk/middleware-stack": "3.
|
|
37
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
38
|
-
"@aws-sdk/node-config-provider": "3.
|
|
39
|
-
"@aws-sdk/node-http-handler": "3.
|
|
40
|
-
"@aws-sdk/protocol-http": "3.
|
|
41
|
-
"@aws-sdk/smithy-client": "3.
|
|
42
|
-
"@aws-sdk/types": "3.
|
|
43
|
-
"@aws-sdk/url-parser": "3.
|
|
22
|
+
"@aws-sdk/client-sts": "3.213.0",
|
|
23
|
+
"@aws-sdk/config-resolver": "3.212.0",
|
|
24
|
+
"@aws-sdk/credential-provider-node": "3.212.0",
|
|
25
|
+
"@aws-sdk/fetch-http-handler": "3.212.0",
|
|
26
|
+
"@aws-sdk/hash-node": "3.212.0",
|
|
27
|
+
"@aws-sdk/invalid-dependency": "3.212.0",
|
|
28
|
+
"@aws-sdk/middleware-content-length": "3.212.0",
|
|
29
|
+
"@aws-sdk/middleware-endpoint": "3.212.0",
|
|
30
|
+
"@aws-sdk/middleware-host-header": "3.212.0",
|
|
31
|
+
"@aws-sdk/middleware-logger": "3.212.0",
|
|
32
|
+
"@aws-sdk/middleware-recursion-detection": "3.212.0",
|
|
33
|
+
"@aws-sdk/middleware-retry": "3.212.0",
|
|
34
|
+
"@aws-sdk/middleware-serde": "3.212.0",
|
|
35
|
+
"@aws-sdk/middleware-signing": "3.212.0",
|
|
36
|
+
"@aws-sdk/middleware-stack": "3.212.0",
|
|
37
|
+
"@aws-sdk/middleware-user-agent": "3.212.0",
|
|
38
|
+
"@aws-sdk/node-config-provider": "3.212.0",
|
|
39
|
+
"@aws-sdk/node-http-handler": "3.212.0",
|
|
40
|
+
"@aws-sdk/protocol-http": "3.212.0",
|
|
41
|
+
"@aws-sdk/smithy-client": "3.212.0",
|
|
42
|
+
"@aws-sdk/types": "3.212.0",
|
|
43
|
+
"@aws-sdk/url-parser": "3.212.0",
|
|
44
44
|
"@aws-sdk/util-base64": "3.208.0",
|
|
45
45
|
"@aws-sdk/util-body-length-browser": "3.188.0",
|
|
46
46
|
"@aws-sdk/util-body-length-node": "3.208.0",
|
|
47
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
48
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
-
"@aws-sdk/util-endpoints": "3.
|
|
50
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
51
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
47
|
+
"@aws-sdk/util-defaults-mode-browser": "3.212.0",
|
|
48
|
+
"@aws-sdk/util-defaults-mode-node": "3.212.0",
|
|
49
|
+
"@aws-sdk/util-endpoints": "3.212.0",
|
|
50
|
+
"@aws-sdk/util-user-agent-browser": "3.212.0",
|
|
51
|
+
"@aws-sdk/util-user-agent-node": "3.212.0",
|
|
52
52
|
"@aws-sdk/util-utf8-browser": "3.188.0",
|
|
53
53
|
"@aws-sdk/util-utf8-node": "3.208.0",
|
|
54
54
|
"tslib": "^2.3.1"
|