@aws-sdk/client-textract 3.301.0 → 3.306.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 +65 -74
- package/dist-es/models/models_0.js +65 -74
- package/dist-types/models/models_0.d.ts +110 -65
- package/dist-types/ts3.4/models/models_0.d.ts +77 -65
- package/package.json +34 -34
|
@@ -17,69 +17,62 @@ class AccessDeniedException extends TextractServiceException_1.TextractServiceEx
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.AccessDeniedException = AccessDeniedException;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
SelectionStatus["SELECTED"] = "SELECTED";
|
|
77
|
-
})(SelectionStatus = exports.SelectionStatus || (exports.SelectionStatus = {}));
|
|
78
|
-
var TextType;
|
|
79
|
-
(function (TextType) {
|
|
80
|
-
TextType["HANDWRITING"] = "HANDWRITING";
|
|
81
|
-
TextType["PRINTED"] = "PRINTED";
|
|
82
|
-
})(TextType = exports.TextType || (exports.TextType = {}));
|
|
20
|
+
exports.FeatureType = {
|
|
21
|
+
FORMS: "FORMS",
|
|
22
|
+
QUERIES: "QUERIES",
|
|
23
|
+
SIGNATURES: "SIGNATURES",
|
|
24
|
+
TABLES: "TABLES",
|
|
25
|
+
};
|
|
26
|
+
exports.ContentClassifier = {
|
|
27
|
+
FREE_OF_ADULT_CONTENT: "FreeOfAdultContent",
|
|
28
|
+
FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
|
|
29
|
+
};
|
|
30
|
+
exports.BlockType = {
|
|
31
|
+
CELL: "CELL",
|
|
32
|
+
KEY_VALUE_SET: "KEY_VALUE_SET",
|
|
33
|
+
LINE: "LINE",
|
|
34
|
+
MERGED_CELL: "MERGED_CELL",
|
|
35
|
+
PAGE: "PAGE",
|
|
36
|
+
QUERY: "QUERY",
|
|
37
|
+
QUERY_RESULT: "QUERY_RESULT",
|
|
38
|
+
SELECTION_ELEMENT: "SELECTION_ELEMENT",
|
|
39
|
+
SIGNATURE: "SIGNATURE",
|
|
40
|
+
TABLE: "TABLE",
|
|
41
|
+
TABLE_FOOTER: "TABLE_FOOTER",
|
|
42
|
+
TABLE_TITLE: "TABLE_TITLE",
|
|
43
|
+
TITLE: "TITLE",
|
|
44
|
+
WORD: "WORD",
|
|
45
|
+
};
|
|
46
|
+
exports.EntityType = {
|
|
47
|
+
COLUMN_HEADER: "COLUMN_HEADER",
|
|
48
|
+
KEY: "KEY",
|
|
49
|
+
SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE",
|
|
50
|
+
STRUCTURED_TABLE: "STRUCTURED_TABLE",
|
|
51
|
+
TABLE_FOOTER: "TABLE_FOOTER",
|
|
52
|
+
TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE",
|
|
53
|
+
TABLE_SUMMARY: "TABLE_SUMMARY",
|
|
54
|
+
TABLE_TITLE: "TABLE_TITLE",
|
|
55
|
+
VALUE: "VALUE",
|
|
56
|
+
};
|
|
57
|
+
exports.RelationshipType = {
|
|
58
|
+
ANSWER: "ANSWER",
|
|
59
|
+
CHILD: "CHILD",
|
|
60
|
+
COMPLEX_FEATURES: "COMPLEX_FEATURES",
|
|
61
|
+
MERGED_CELL: "MERGED_CELL",
|
|
62
|
+
TABLE: "TABLE",
|
|
63
|
+
TABLE_FOOTER: "TABLE_FOOTER",
|
|
64
|
+
TABLE_TITLE: "TABLE_TITLE",
|
|
65
|
+
TITLE: "TITLE",
|
|
66
|
+
VALUE: "VALUE",
|
|
67
|
+
};
|
|
68
|
+
exports.SelectionStatus = {
|
|
69
|
+
NOT_SELECTED: "NOT_SELECTED",
|
|
70
|
+
SELECTED: "SELECTED",
|
|
71
|
+
};
|
|
72
|
+
exports.TextType = {
|
|
73
|
+
HANDWRITING: "HANDWRITING",
|
|
74
|
+
PRINTED: "PRINTED",
|
|
75
|
+
};
|
|
83
76
|
class BadDocumentException extends TextractServiceException_1.TextractServiceException {
|
|
84
77
|
constructor(opts) {
|
|
85
78
|
super({
|
|
@@ -218,17 +211,15 @@ class UnsupportedDocumentException extends TextractServiceException_1.TextractSe
|
|
|
218
211
|
}
|
|
219
212
|
}
|
|
220
213
|
exports.UnsupportedDocumentException = UnsupportedDocumentException;
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
JobStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
231
|
-
})(JobStatus = exports.JobStatus || (exports.JobStatus = {}));
|
|
214
|
+
exports.ValueType = {
|
|
215
|
+
DATE: "DATE",
|
|
216
|
+
};
|
|
217
|
+
exports.JobStatus = {
|
|
218
|
+
FAILED: "FAILED",
|
|
219
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
220
|
+
PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
|
|
221
|
+
SUCCEEDED: "SUCCEEDED",
|
|
222
|
+
};
|
|
232
223
|
class InvalidJobIdException extends TextractServiceException_1.TextractServiceException {
|
|
233
224
|
constructor(opts) {
|
|
234
225
|
super({
|
|
@@ -13,69 +13,62 @@ export class AccessDeniedException extends __BaseException {
|
|
|
13
13
|
this.Code = opts.Code;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
SelectionStatus["SELECTED"] = "SELECTED";
|
|
73
|
-
})(SelectionStatus || (SelectionStatus = {}));
|
|
74
|
-
export var TextType;
|
|
75
|
-
(function (TextType) {
|
|
76
|
-
TextType["HANDWRITING"] = "HANDWRITING";
|
|
77
|
-
TextType["PRINTED"] = "PRINTED";
|
|
78
|
-
})(TextType || (TextType = {}));
|
|
16
|
+
export const FeatureType = {
|
|
17
|
+
FORMS: "FORMS",
|
|
18
|
+
QUERIES: "QUERIES",
|
|
19
|
+
SIGNATURES: "SIGNATURES",
|
|
20
|
+
TABLES: "TABLES",
|
|
21
|
+
};
|
|
22
|
+
export const ContentClassifier = {
|
|
23
|
+
FREE_OF_ADULT_CONTENT: "FreeOfAdultContent",
|
|
24
|
+
FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation",
|
|
25
|
+
};
|
|
26
|
+
export const BlockType = {
|
|
27
|
+
CELL: "CELL",
|
|
28
|
+
KEY_VALUE_SET: "KEY_VALUE_SET",
|
|
29
|
+
LINE: "LINE",
|
|
30
|
+
MERGED_CELL: "MERGED_CELL",
|
|
31
|
+
PAGE: "PAGE",
|
|
32
|
+
QUERY: "QUERY",
|
|
33
|
+
QUERY_RESULT: "QUERY_RESULT",
|
|
34
|
+
SELECTION_ELEMENT: "SELECTION_ELEMENT",
|
|
35
|
+
SIGNATURE: "SIGNATURE",
|
|
36
|
+
TABLE: "TABLE",
|
|
37
|
+
TABLE_FOOTER: "TABLE_FOOTER",
|
|
38
|
+
TABLE_TITLE: "TABLE_TITLE",
|
|
39
|
+
TITLE: "TITLE",
|
|
40
|
+
WORD: "WORD",
|
|
41
|
+
};
|
|
42
|
+
export const EntityType = {
|
|
43
|
+
COLUMN_HEADER: "COLUMN_HEADER",
|
|
44
|
+
KEY: "KEY",
|
|
45
|
+
SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE",
|
|
46
|
+
STRUCTURED_TABLE: "STRUCTURED_TABLE",
|
|
47
|
+
TABLE_FOOTER: "TABLE_FOOTER",
|
|
48
|
+
TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE",
|
|
49
|
+
TABLE_SUMMARY: "TABLE_SUMMARY",
|
|
50
|
+
TABLE_TITLE: "TABLE_TITLE",
|
|
51
|
+
VALUE: "VALUE",
|
|
52
|
+
};
|
|
53
|
+
export const RelationshipType = {
|
|
54
|
+
ANSWER: "ANSWER",
|
|
55
|
+
CHILD: "CHILD",
|
|
56
|
+
COMPLEX_FEATURES: "COMPLEX_FEATURES",
|
|
57
|
+
MERGED_CELL: "MERGED_CELL",
|
|
58
|
+
TABLE: "TABLE",
|
|
59
|
+
TABLE_FOOTER: "TABLE_FOOTER",
|
|
60
|
+
TABLE_TITLE: "TABLE_TITLE",
|
|
61
|
+
TITLE: "TITLE",
|
|
62
|
+
VALUE: "VALUE",
|
|
63
|
+
};
|
|
64
|
+
export const SelectionStatus = {
|
|
65
|
+
NOT_SELECTED: "NOT_SELECTED",
|
|
66
|
+
SELECTED: "SELECTED",
|
|
67
|
+
};
|
|
68
|
+
export const TextType = {
|
|
69
|
+
HANDWRITING: "HANDWRITING",
|
|
70
|
+
PRINTED: "PRINTED",
|
|
71
|
+
};
|
|
79
72
|
export class BadDocumentException extends __BaseException {
|
|
80
73
|
constructor(opts) {
|
|
81
74
|
super({
|
|
@@ -205,17 +198,15 @@ export class UnsupportedDocumentException extends __BaseException {
|
|
|
205
198
|
this.Code = opts.Code;
|
|
206
199
|
}
|
|
207
200
|
}
|
|
208
|
-
export
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
JobStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
218
|
-
})(JobStatus || (JobStatus = {}));
|
|
201
|
+
export const ValueType = {
|
|
202
|
+
DATE: "DATE",
|
|
203
|
+
};
|
|
204
|
+
export const JobStatus = {
|
|
205
|
+
FAILED: "FAILED",
|
|
206
|
+
IN_PROGRESS: "IN_PROGRESS",
|
|
207
|
+
PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
|
|
208
|
+
SUCCEEDED: "SUCCEEDED",
|
|
209
|
+
};
|
|
219
210
|
export class InvalidJobIdException extends __BaseException {
|
|
220
211
|
constructor(opts) {
|
|
221
212
|
super({
|
|
@@ -76,20 +76,30 @@ export interface Document {
|
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* @public
|
|
79
|
+
* @enum
|
|
79
80
|
*/
|
|
80
|
-
export declare
|
|
81
|
-
FORMS
|
|
82
|
-
QUERIES
|
|
83
|
-
SIGNATURES
|
|
84
|
-
TABLES
|
|
85
|
-
}
|
|
81
|
+
export declare const FeatureType: {
|
|
82
|
+
readonly FORMS: "FORMS";
|
|
83
|
+
readonly QUERIES: "QUERIES";
|
|
84
|
+
readonly SIGNATURES: "SIGNATURES";
|
|
85
|
+
readonly TABLES: "TABLES";
|
|
86
|
+
};
|
|
86
87
|
/**
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
|
-
export
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
|
|
91
|
+
/**
|
|
92
|
+
* @public
|
|
93
|
+
* @enum
|
|
94
|
+
*/
|
|
95
|
+
export declare const ContentClassifier: {
|
|
96
|
+
readonly FREE_OF_ADULT_CONTENT: "FreeOfAdultContent";
|
|
97
|
+
readonly FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation";
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export type ContentClassifier = (typeof ContentClassifier)[keyof typeof ContentClassifier];
|
|
93
103
|
/**
|
|
94
104
|
* @public
|
|
95
105
|
* <p>Allows you to set attributes of the image. Currently, you can declare an image as free
|
|
@@ -204,37 +214,47 @@ export interface AnalyzeDocumentRequest {
|
|
|
204
214
|
}
|
|
205
215
|
/**
|
|
206
216
|
* @public
|
|
217
|
+
* @enum
|
|
207
218
|
*/
|
|
208
|
-
export declare
|
|
209
|
-
CELL
|
|
210
|
-
KEY_VALUE_SET
|
|
211
|
-
LINE
|
|
212
|
-
MERGED_CELL
|
|
213
|
-
PAGE
|
|
214
|
-
QUERY
|
|
215
|
-
QUERY_RESULT
|
|
216
|
-
SELECTION_ELEMENT
|
|
217
|
-
SIGNATURE
|
|
218
|
-
TABLE
|
|
219
|
-
TABLE_FOOTER
|
|
220
|
-
TABLE_TITLE
|
|
221
|
-
TITLE
|
|
222
|
-
WORD
|
|
223
|
-
}
|
|
219
|
+
export declare const BlockType: {
|
|
220
|
+
readonly CELL: "CELL";
|
|
221
|
+
readonly KEY_VALUE_SET: "KEY_VALUE_SET";
|
|
222
|
+
readonly LINE: "LINE";
|
|
223
|
+
readonly MERGED_CELL: "MERGED_CELL";
|
|
224
|
+
readonly PAGE: "PAGE";
|
|
225
|
+
readonly QUERY: "QUERY";
|
|
226
|
+
readonly QUERY_RESULT: "QUERY_RESULT";
|
|
227
|
+
readonly SELECTION_ELEMENT: "SELECTION_ELEMENT";
|
|
228
|
+
readonly SIGNATURE: "SIGNATURE";
|
|
229
|
+
readonly TABLE: "TABLE";
|
|
230
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
231
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
232
|
+
readonly TITLE: "TITLE";
|
|
233
|
+
readonly WORD: "WORD";
|
|
234
|
+
};
|
|
224
235
|
/**
|
|
225
236
|
* @public
|
|
226
237
|
*/
|
|
227
|
-
export
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
+
export type BlockType = (typeof BlockType)[keyof typeof BlockType];
|
|
239
|
+
/**
|
|
240
|
+
* @public
|
|
241
|
+
* @enum
|
|
242
|
+
*/
|
|
243
|
+
export declare const EntityType: {
|
|
244
|
+
readonly COLUMN_HEADER: "COLUMN_HEADER";
|
|
245
|
+
readonly KEY: "KEY";
|
|
246
|
+
readonly SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE";
|
|
247
|
+
readonly STRUCTURED_TABLE: "STRUCTURED_TABLE";
|
|
248
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
249
|
+
readonly TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE";
|
|
250
|
+
readonly TABLE_SUMMARY: "TABLE_SUMMARY";
|
|
251
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
252
|
+
readonly VALUE: "VALUE";
|
|
253
|
+
};
|
|
254
|
+
/**
|
|
255
|
+
* @public
|
|
256
|
+
*/
|
|
257
|
+
export type EntityType = (typeof EntityType)[keyof typeof EntityType];
|
|
238
258
|
/**
|
|
239
259
|
* @public
|
|
240
260
|
* <p>The bounding box around the detected page, text, key-value pair, table, table cell, or
|
|
@@ -311,18 +331,23 @@ export interface Geometry {
|
|
|
311
331
|
}
|
|
312
332
|
/**
|
|
313
333
|
* @public
|
|
334
|
+
* @enum
|
|
314
335
|
*/
|
|
315
|
-
export declare
|
|
316
|
-
ANSWER
|
|
317
|
-
CHILD
|
|
318
|
-
COMPLEX_FEATURES
|
|
319
|
-
MERGED_CELL
|
|
320
|
-
TABLE
|
|
321
|
-
TABLE_FOOTER
|
|
322
|
-
TABLE_TITLE
|
|
323
|
-
TITLE
|
|
324
|
-
VALUE
|
|
325
|
-
}
|
|
336
|
+
export declare const RelationshipType: {
|
|
337
|
+
readonly ANSWER: "ANSWER";
|
|
338
|
+
readonly CHILD: "CHILD";
|
|
339
|
+
readonly COMPLEX_FEATURES: "COMPLEX_FEATURES";
|
|
340
|
+
readonly MERGED_CELL: "MERGED_CELL";
|
|
341
|
+
readonly TABLE: "TABLE";
|
|
342
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
343
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
344
|
+
readonly TITLE: "TITLE";
|
|
345
|
+
readonly VALUE: "VALUE";
|
|
346
|
+
};
|
|
347
|
+
/**
|
|
348
|
+
* @public
|
|
349
|
+
*/
|
|
350
|
+
export type RelationshipType = (typeof RelationshipType)[keyof typeof RelationshipType];
|
|
326
351
|
/**
|
|
327
352
|
* @public
|
|
328
353
|
* <p>Information about how blocks are related to each other. A <code>Block</code> object
|
|
@@ -384,18 +409,28 @@ export interface Relationship {
|
|
|
384
409
|
}
|
|
385
410
|
/**
|
|
386
411
|
* @public
|
|
412
|
+
* @enum
|
|
387
413
|
*/
|
|
388
|
-
export declare
|
|
389
|
-
NOT_SELECTED
|
|
390
|
-
SELECTED
|
|
391
|
-
}
|
|
414
|
+
export declare const SelectionStatus: {
|
|
415
|
+
readonly NOT_SELECTED: "NOT_SELECTED";
|
|
416
|
+
readonly SELECTED: "SELECTED";
|
|
417
|
+
};
|
|
392
418
|
/**
|
|
393
419
|
* @public
|
|
394
420
|
*/
|
|
395
|
-
export
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
421
|
+
export type SelectionStatus = (typeof SelectionStatus)[keyof typeof SelectionStatus];
|
|
422
|
+
/**
|
|
423
|
+
* @public
|
|
424
|
+
* @enum
|
|
425
|
+
*/
|
|
426
|
+
export declare const TextType: {
|
|
427
|
+
readonly HANDWRITING: "HANDWRITING";
|
|
428
|
+
readonly PRINTED: "PRINTED";
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
*/
|
|
433
|
+
export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
399
434
|
/**
|
|
400
435
|
* @public
|
|
401
436
|
* <p>A <code>Block</code> represents items that are recognized in a document within a group
|
|
@@ -1070,10 +1105,15 @@ export interface AnalyzeIDRequest {
|
|
|
1070
1105
|
}
|
|
1071
1106
|
/**
|
|
1072
1107
|
* @public
|
|
1108
|
+
* @enum
|
|
1073
1109
|
*/
|
|
1074
|
-
export declare
|
|
1075
|
-
DATE
|
|
1076
|
-
}
|
|
1110
|
+
export declare const ValueType: {
|
|
1111
|
+
readonly DATE: "DATE";
|
|
1112
|
+
};
|
|
1113
|
+
/**
|
|
1114
|
+
* @public
|
|
1115
|
+
*/
|
|
1116
|
+
export type ValueType = (typeof ValueType)[keyof typeof ValueType];
|
|
1077
1117
|
/**
|
|
1078
1118
|
* @public
|
|
1079
1119
|
* <p>Contains information relating to dates in a document, including the type
|
|
@@ -1375,13 +1415,18 @@ export interface GetDocumentAnalysisRequest {
|
|
|
1375
1415
|
}
|
|
1376
1416
|
/**
|
|
1377
1417
|
* @public
|
|
1418
|
+
* @enum
|
|
1378
1419
|
*/
|
|
1379
|
-
export declare
|
|
1380
|
-
FAILED
|
|
1381
|
-
IN_PROGRESS
|
|
1382
|
-
PARTIAL_SUCCESS
|
|
1383
|
-
SUCCEEDED
|
|
1384
|
-
}
|
|
1420
|
+
export declare const JobStatus: {
|
|
1421
|
+
readonly FAILED: "FAILED";
|
|
1422
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
1423
|
+
readonly PARTIAL_SUCCESS: "PARTIAL_SUCCESS";
|
|
1424
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
1425
|
+
};
|
|
1426
|
+
/**
|
|
1427
|
+
* @public
|
|
1428
|
+
*/
|
|
1429
|
+
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
1385
1430
|
/**
|
|
1386
1431
|
* @public
|
|
1387
1432
|
* <p>A warning about an issue that occurred during asynchronous text analysis (<a>StartDocumentAnalysis</a>) or asynchronous document text detection (<a>StartDocumentTextDetection</a>). </p>
|
|
@@ -21,16 +21,19 @@ export interface Document {
|
|
|
21
21
|
Bytes?: Uint8Array;
|
|
22
22
|
S3Object?: S3Object;
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
25
|
-
FORMS
|
|
26
|
-
QUERIES
|
|
27
|
-
SIGNATURES
|
|
28
|
-
TABLES
|
|
29
|
-
}
|
|
30
|
-
export
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
24
|
+
export declare const FeatureType: {
|
|
25
|
+
readonly FORMS: "FORMS";
|
|
26
|
+
readonly QUERIES: "QUERIES";
|
|
27
|
+
readonly SIGNATURES: "SIGNATURES";
|
|
28
|
+
readonly TABLES: "TABLES";
|
|
29
|
+
};
|
|
30
|
+
export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
|
|
31
|
+
export declare const ContentClassifier: {
|
|
32
|
+
readonly FREE_OF_ADULT_CONTENT: "FreeOfAdultContent";
|
|
33
|
+
readonly FREE_OF_PERSONALLY_IDENTIFIABLE_INFORMATION: "FreeOfPersonallyIdentifiableInformation";
|
|
34
|
+
};
|
|
35
|
+
export type ContentClassifier =
|
|
36
|
+
(typeof ContentClassifier)[keyof typeof ContentClassifier];
|
|
34
37
|
export interface HumanLoopDataAttributes {
|
|
35
38
|
ContentClassifiers?: (ContentClassifier | string)[];
|
|
36
39
|
}
|
|
@@ -53,33 +56,35 @@ export interface AnalyzeDocumentRequest {
|
|
|
53
56
|
HumanLoopConfig?: HumanLoopConfig;
|
|
54
57
|
QueriesConfig?: QueriesConfig;
|
|
55
58
|
}
|
|
56
|
-
export declare
|
|
57
|
-
CELL
|
|
58
|
-
KEY_VALUE_SET
|
|
59
|
-
LINE
|
|
60
|
-
MERGED_CELL
|
|
61
|
-
PAGE
|
|
62
|
-
QUERY
|
|
63
|
-
QUERY_RESULT
|
|
64
|
-
SELECTION_ELEMENT
|
|
65
|
-
SIGNATURE
|
|
66
|
-
TABLE
|
|
67
|
-
TABLE_FOOTER
|
|
68
|
-
TABLE_TITLE
|
|
69
|
-
TITLE
|
|
70
|
-
WORD
|
|
71
|
-
}
|
|
72
|
-
export
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
59
|
+
export declare const BlockType: {
|
|
60
|
+
readonly CELL: "CELL";
|
|
61
|
+
readonly KEY_VALUE_SET: "KEY_VALUE_SET";
|
|
62
|
+
readonly LINE: "LINE";
|
|
63
|
+
readonly MERGED_CELL: "MERGED_CELL";
|
|
64
|
+
readonly PAGE: "PAGE";
|
|
65
|
+
readonly QUERY: "QUERY";
|
|
66
|
+
readonly QUERY_RESULT: "QUERY_RESULT";
|
|
67
|
+
readonly SELECTION_ELEMENT: "SELECTION_ELEMENT";
|
|
68
|
+
readonly SIGNATURE: "SIGNATURE";
|
|
69
|
+
readonly TABLE: "TABLE";
|
|
70
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
71
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
72
|
+
readonly TITLE: "TITLE";
|
|
73
|
+
readonly WORD: "WORD";
|
|
74
|
+
};
|
|
75
|
+
export type BlockType = (typeof BlockType)[keyof typeof BlockType];
|
|
76
|
+
export declare const EntityType: {
|
|
77
|
+
readonly COLUMN_HEADER: "COLUMN_HEADER";
|
|
78
|
+
readonly KEY: "KEY";
|
|
79
|
+
readonly SEMI_STRUCTURED_TABLE: "SEMI_STRUCTURED_TABLE";
|
|
80
|
+
readonly STRUCTURED_TABLE: "STRUCTURED_TABLE";
|
|
81
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
82
|
+
readonly TABLE_SECTION_TITLE: "TABLE_SECTION_TITLE";
|
|
83
|
+
readonly TABLE_SUMMARY: "TABLE_SUMMARY";
|
|
84
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
85
|
+
readonly VALUE: "VALUE";
|
|
86
|
+
};
|
|
87
|
+
export type EntityType = (typeof EntityType)[keyof typeof EntityType];
|
|
83
88
|
export interface BoundingBox {
|
|
84
89
|
Width?: number;
|
|
85
90
|
Height?: number;
|
|
@@ -94,29 +99,34 @@ export interface Geometry {
|
|
|
94
99
|
BoundingBox?: BoundingBox;
|
|
95
100
|
Polygon?: Point[];
|
|
96
101
|
}
|
|
97
|
-
export declare
|
|
98
|
-
ANSWER
|
|
99
|
-
CHILD
|
|
100
|
-
COMPLEX_FEATURES
|
|
101
|
-
MERGED_CELL
|
|
102
|
-
TABLE
|
|
103
|
-
TABLE_FOOTER
|
|
104
|
-
TABLE_TITLE
|
|
105
|
-
TITLE
|
|
106
|
-
VALUE
|
|
107
|
-
}
|
|
102
|
+
export declare const RelationshipType: {
|
|
103
|
+
readonly ANSWER: "ANSWER";
|
|
104
|
+
readonly CHILD: "CHILD";
|
|
105
|
+
readonly COMPLEX_FEATURES: "COMPLEX_FEATURES";
|
|
106
|
+
readonly MERGED_CELL: "MERGED_CELL";
|
|
107
|
+
readonly TABLE: "TABLE";
|
|
108
|
+
readonly TABLE_FOOTER: "TABLE_FOOTER";
|
|
109
|
+
readonly TABLE_TITLE: "TABLE_TITLE";
|
|
110
|
+
readonly TITLE: "TITLE";
|
|
111
|
+
readonly VALUE: "VALUE";
|
|
112
|
+
};
|
|
113
|
+
export type RelationshipType =
|
|
114
|
+
(typeof RelationshipType)[keyof typeof RelationshipType];
|
|
108
115
|
export interface Relationship {
|
|
109
116
|
Type?: RelationshipType | string;
|
|
110
117
|
Ids?: string[];
|
|
111
118
|
}
|
|
112
|
-
export declare
|
|
113
|
-
NOT_SELECTED
|
|
114
|
-
SELECTED
|
|
115
|
-
}
|
|
116
|
-
export
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
119
|
+
export declare const SelectionStatus: {
|
|
120
|
+
readonly NOT_SELECTED: "NOT_SELECTED";
|
|
121
|
+
readonly SELECTED: "SELECTED";
|
|
122
|
+
};
|
|
123
|
+
export type SelectionStatus =
|
|
124
|
+
(typeof SelectionStatus)[keyof typeof SelectionStatus];
|
|
125
|
+
export declare const TextType: {
|
|
126
|
+
readonly HANDWRITING: "HANDWRITING";
|
|
127
|
+
readonly PRINTED: "PRINTED";
|
|
128
|
+
};
|
|
129
|
+
export type TextType = (typeof TextType)[keyof typeof TextType];
|
|
120
130
|
export interface Block {
|
|
121
131
|
BlockType?: BlockType | string;
|
|
122
132
|
Confidence?: number;
|
|
@@ -286,9 +296,10 @@ export interface AnalyzeExpenseResponse {
|
|
|
286
296
|
export interface AnalyzeIDRequest {
|
|
287
297
|
DocumentPages: Document[] | undefined;
|
|
288
298
|
}
|
|
289
|
-
export declare
|
|
290
|
-
DATE
|
|
291
|
-
}
|
|
299
|
+
export declare const ValueType: {
|
|
300
|
+
readonly DATE: "DATE";
|
|
301
|
+
};
|
|
302
|
+
export type ValueType = (typeof ValueType)[keyof typeof ValueType];
|
|
292
303
|
export interface NormalizedValue {
|
|
293
304
|
Value?: string;
|
|
294
305
|
ValueType?: ValueType | string;
|
|
@@ -368,12 +379,13 @@ export interface GetDocumentAnalysisRequest {
|
|
|
368
379
|
MaxResults?: number;
|
|
369
380
|
NextToken?: string;
|
|
370
381
|
}
|
|
371
|
-
export declare
|
|
372
|
-
FAILED
|
|
373
|
-
IN_PROGRESS
|
|
374
|
-
PARTIAL_SUCCESS
|
|
375
|
-
SUCCEEDED
|
|
376
|
-
}
|
|
382
|
+
export declare const JobStatus: {
|
|
383
|
+
readonly FAILED: "FAILED";
|
|
384
|
+
readonly IN_PROGRESS: "IN_PROGRESS";
|
|
385
|
+
readonly PARTIAL_SUCCESS: "PARTIAL_SUCCESS";
|
|
386
|
+
readonly SUCCEEDED: "SUCCEEDED";
|
|
387
|
+
};
|
|
388
|
+
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
|
377
389
|
export interface Warning {
|
|
378
390
|
ErrorCode?: string;
|
|
379
391
|
Pages?: number[];
|
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.306.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",
|
|
@@ -21,42 +21,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/protocol-http": "3.
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
44
|
-
"@aws-sdk/types": "3.
|
|
45
|
-
"@aws-sdk/url-parser": "3.
|
|
46
|
-
"@aws-sdk/util-base64": "3.
|
|
47
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
48
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
55
|
-
"@aws-sdk/util-utf8": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.306.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.306.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.306.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.306.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.306.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.306.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.306.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.306.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.306.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.306.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.306.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.306.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.306.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.306.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.306.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.306.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.306.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.306.0",
|
|
42
|
+
"@aws-sdk/protocol-http": "3.306.0",
|
|
43
|
+
"@aws-sdk/smithy-client": "3.306.0",
|
|
44
|
+
"@aws-sdk/types": "3.306.0",
|
|
45
|
+
"@aws-sdk/url-parser": "3.306.0",
|
|
46
|
+
"@aws-sdk/util-base64": "3.303.0",
|
|
47
|
+
"@aws-sdk/util-body-length-browser": "3.303.0",
|
|
48
|
+
"@aws-sdk/util-body-length-node": "3.303.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.306.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.306.0",
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.306.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.306.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-browser": "3.306.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-node": "3.306.0",
|
|
55
|
+
"@aws-sdk/util-utf8": "3.303.0",
|
|
56
56
|
"tslib": "^2.5.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@aws-sdk/service-client-documentation-generator": "3.
|
|
59
|
+
"@aws-sdk/service-client-documentation-generator": "3.303.0",
|
|
60
60
|
"@tsconfig/node14": "1.0.3",
|
|
61
61
|
"@types/node": "^14.14.31",
|
|
62
62
|
"concurrently": "7.0.0",
|