@aws-sdk/client-textract 3.1173.0 → 3.1174.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/README.md +91 -0
- package/dist-cjs/index.js +611 -10
- package/dist-es/Textract.js +30 -0
- package/dist-es/commands/CreateBlueprintCommand.js +4 -0
- package/dist-es/commands/CreateBlueprintVersionCommand.js +4 -0
- package/dist-es/commands/CreateProjectCommand.js +4 -0
- package/dist-es/commands/DeleteBlueprintCommand.js +4 -0
- package/dist-es/commands/DeleteProjectCommand.js +4 -0
- package/dist-es/commands/GetBlueprintCommand.js +4 -0
- package/dist-es/commands/GetDocumentInsightsCommand.js +4 -0
- package/dist-es/commands/GetProjectCommand.js +4 -0
- package/dist-es/commands/ListBlueprintsCommand.js +4 -0
- package/dist-es/commands/ListProjectsCommand.js +4 -0
- package/dist-es/commands/StartDocumentInsightsCommand.js +4 -0
- package/dist-es/commands/UpdateBlueprintCommand.js +4 -0
- package/dist-es/commands/UpdateProjectCommand.js +4 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/models/enums.js +68 -0
- package/dist-es/pagination/ListBlueprintsPaginator.js +4 -0
- package/dist-es/pagination/ListProjectsPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/schemas/schemas_0.js +403 -9
- package/dist-types/Textract.d.ts +107 -0
- package/dist-types/TextractClient.d.ts +15 -2
- package/dist-types/commands/CreateBlueprintCommand.d.ts +115 -0
- package/dist-types/commands/CreateBlueprintVersionCommand.d.ts +108 -0
- package/dist-types/commands/CreateProjectCommand.d.ts +171 -0
- package/dist-types/commands/DeleteBlueprintCommand.d.ts +97 -0
- package/dist-types/commands/DeleteProjectCommand.d.ts +93 -0
- package/dist-types/commands/GetBlueprintCommand.d.ts +106 -0
- package/dist-types/commands/GetDocumentInsightsCommand.d.ts +101 -0
- package/dist-types/commands/GetProjectCommand.d.ts +160 -0
- package/dist-types/commands/ListBlueprintsCommand.d.ts +114 -0
- package/dist-types/commands/ListProjectsCommand.d.ts +110 -0
- package/dist-types/commands/StartDocumentInsightsCommand.d.ts +130 -0
- package/dist-types/commands/UpdateBlueprintCommand.d.ts +106 -0
- package/dist-types/commands/UpdateProjectCommand.d.ts +168 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/models/enums.d.ts +132 -0
- package/dist-types/models/models_0.d.ts +1025 -14
- package/dist-types/pagination/ListBlueprintsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProjectsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/schemas/schemas_0.d.ts +62 -0
- package/dist-types/ts3.4/Textract.d.ts +234 -0
- package/dist-types/ts3.4/TextractClient.d.ts +77 -2
- package/dist-types/ts3.4/commands/CreateBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateBlueprintVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetDocumentInsightsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListBlueprintsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartDocumentInsightsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateBlueprintCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/models/enums.d.ts +78 -0
- package/dist-types/ts3.4/models/models_0.d.ts +232 -0
- package/dist-types/ts3.4/pagination/ListBlueprintsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +62 -0
- package/package.json +1 -1
package/dist-es/Textract.js
CHANGED
|
@@ -4,28 +4,43 @@ import { AnalyzeExpenseCommand, } from "./commands/AnalyzeExpenseCommand";
|
|
|
4
4
|
import { AnalyzeIDCommand } from "./commands/AnalyzeIDCommand";
|
|
5
5
|
import { CreateAdapterCommand, } from "./commands/CreateAdapterCommand";
|
|
6
6
|
import { CreateAdapterVersionCommand, } from "./commands/CreateAdapterVersionCommand";
|
|
7
|
+
import { CreateBlueprintCommand, } from "./commands/CreateBlueprintCommand";
|
|
8
|
+
import { CreateBlueprintVersionCommand, } from "./commands/CreateBlueprintVersionCommand";
|
|
9
|
+
import { CreateProjectCommand, } from "./commands/CreateProjectCommand";
|
|
7
10
|
import { DeleteAdapterCommand, } from "./commands/DeleteAdapterCommand";
|
|
8
11
|
import { DeleteAdapterVersionCommand, } from "./commands/DeleteAdapterVersionCommand";
|
|
12
|
+
import { DeleteBlueprintCommand, } from "./commands/DeleteBlueprintCommand";
|
|
13
|
+
import { DeleteProjectCommand, } from "./commands/DeleteProjectCommand";
|
|
9
14
|
import { DetectDocumentTextCommand, } from "./commands/DetectDocumentTextCommand";
|
|
10
15
|
import { GetAdapterCommand, } from "./commands/GetAdapterCommand";
|
|
11
16
|
import { GetAdapterVersionCommand, } from "./commands/GetAdapterVersionCommand";
|
|
17
|
+
import { GetBlueprintCommand, } from "./commands/GetBlueprintCommand";
|
|
12
18
|
import { GetDocumentAnalysisCommand, } from "./commands/GetDocumentAnalysisCommand";
|
|
19
|
+
import { GetDocumentInsightsCommand, } from "./commands/GetDocumentInsightsCommand";
|
|
13
20
|
import { GetDocumentTextDetectionCommand, } from "./commands/GetDocumentTextDetectionCommand";
|
|
14
21
|
import { GetExpenseAnalysisCommand, } from "./commands/GetExpenseAnalysisCommand";
|
|
15
22
|
import { GetLendingAnalysisCommand, } from "./commands/GetLendingAnalysisCommand";
|
|
16
23
|
import { GetLendingAnalysisSummaryCommand, } from "./commands/GetLendingAnalysisSummaryCommand";
|
|
24
|
+
import { GetProjectCommand, } from "./commands/GetProjectCommand";
|
|
17
25
|
import { ListAdaptersCommand, } from "./commands/ListAdaptersCommand";
|
|
18
26
|
import { ListAdapterVersionsCommand, } from "./commands/ListAdapterVersionsCommand";
|
|
27
|
+
import { ListBlueprintsCommand, } from "./commands/ListBlueprintsCommand";
|
|
28
|
+
import { ListProjectsCommand, } from "./commands/ListProjectsCommand";
|
|
19
29
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
20
30
|
import { StartDocumentAnalysisCommand, } from "./commands/StartDocumentAnalysisCommand";
|
|
31
|
+
import { StartDocumentInsightsCommand, } from "./commands/StartDocumentInsightsCommand";
|
|
21
32
|
import { StartDocumentTextDetectionCommand, } from "./commands/StartDocumentTextDetectionCommand";
|
|
22
33
|
import { StartExpenseAnalysisCommand, } from "./commands/StartExpenseAnalysisCommand";
|
|
23
34
|
import { StartLendingAnalysisCommand, } from "./commands/StartLendingAnalysisCommand";
|
|
24
35
|
import { TagResourceCommand, } from "./commands/TagResourceCommand";
|
|
25
36
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
26
37
|
import { UpdateAdapterCommand, } from "./commands/UpdateAdapterCommand";
|
|
38
|
+
import { UpdateBlueprintCommand, } from "./commands/UpdateBlueprintCommand";
|
|
39
|
+
import { UpdateProjectCommand, } from "./commands/UpdateProjectCommand";
|
|
27
40
|
import { paginateListAdapters } from "./pagination/ListAdaptersPaginator";
|
|
28
41
|
import { paginateListAdapterVersions } from "./pagination/ListAdapterVersionsPaginator";
|
|
42
|
+
import { paginateListBlueprints } from "./pagination/ListBlueprintsPaginator";
|
|
43
|
+
import { paginateListProjects } from "./pagination/ListProjectsPaginator";
|
|
29
44
|
import { TextractClient } from "./TextractClient";
|
|
30
45
|
const commands = {
|
|
31
46
|
AnalyzeDocumentCommand,
|
|
@@ -33,30 +48,45 @@ const commands = {
|
|
|
33
48
|
AnalyzeIDCommand,
|
|
34
49
|
CreateAdapterCommand,
|
|
35
50
|
CreateAdapterVersionCommand,
|
|
51
|
+
CreateBlueprintCommand,
|
|
52
|
+
CreateBlueprintVersionCommand,
|
|
53
|
+
CreateProjectCommand,
|
|
36
54
|
DeleteAdapterCommand,
|
|
37
55
|
DeleteAdapterVersionCommand,
|
|
56
|
+
DeleteBlueprintCommand,
|
|
57
|
+
DeleteProjectCommand,
|
|
38
58
|
DetectDocumentTextCommand,
|
|
39
59
|
GetAdapterCommand,
|
|
40
60
|
GetAdapterVersionCommand,
|
|
61
|
+
GetBlueprintCommand,
|
|
41
62
|
GetDocumentAnalysisCommand,
|
|
63
|
+
GetDocumentInsightsCommand,
|
|
42
64
|
GetDocumentTextDetectionCommand,
|
|
43
65
|
GetExpenseAnalysisCommand,
|
|
44
66
|
GetLendingAnalysisCommand,
|
|
45
67
|
GetLendingAnalysisSummaryCommand,
|
|
68
|
+
GetProjectCommand,
|
|
46
69
|
ListAdaptersCommand,
|
|
47
70
|
ListAdapterVersionsCommand,
|
|
71
|
+
ListBlueprintsCommand,
|
|
72
|
+
ListProjectsCommand,
|
|
48
73
|
ListTagsForResourceCommand,
|
|
49
74
|
StartDocumentAnalysisCommand,
|
|
75
|
+
StartDocumentInsightsCommand,
|
|
50
76
|
StartDocumentTextDetectionCommand,
|
|
51
77
|
StartExpenseAnalysisCommand,
|
|
52
78
|
StartLendingAnalysisCommand,
|
|
53
79
|
TagResourceCommand,
|
|
54
80
|
UntagResourceCommand,
|
|
55
81
|
UpdateAdapterCommand,
|
|
82
|
+
UpdateBlueprintCommand,
|
|
83
|
+
UpdateProjectCommand,
|
|
56
84
|
};
|
|
57
85
|
const paginators = {
|
|
58
86
|
paginateListAdapters,
|
|
59
87
|
paginateListAdapterVersions,
|
|
88
|
+
paginateListBlueprints,
|
|
89
|
+
paginateListProjects,
|
|
60
90
|
};
|
|
61
91
|
export class Textract extends TextractClient {
|
|
62
92
|
}
|
|
@@ -3,23 +3,36 @@ export * from "./AnalyzeExpenseCommand";
|
|
|
3
3
|
export * from "./AnalyzeIDCommand";
|
|
4
4
|
export * from "./CreateAdapterCommand";
|
|
5
5
|
export * from "./CreateAdapterVersionCommand";
|
|
6
|
+
export * from "./CreateBlueprintCommand";
|
|
7
|
+
export * from "./CreateBlueprintVersionCommand";
|
|
8
|
+
export * from "./CreateProjectCommand";
|
|
6
9
|
export * from "./DeleteAdapterCommand";
|
|
7
10
|
export * from "./DeleteAdapterVersionCommand";
|
|
11
|
+
export * from "./DeleteBlueprintCommand";
|
|
12
|
+
export * from "./DeleteProjectCommand";
|
|
8
13
|
export * from "./DetectDocumentTextCommand";
|
|
9
14
|
export * from "./GetAdapterCommand";
|
|
10
15
|
export * from "./GetAdapterVersionCommand";
|
|
16
|
+
export * from "./GetBlueprintCommand";
|
|
11
17
|
export * from "./GetDocumentAnalysisCommand";
|
|
18
|
+
export * from "./GetDocumentInsightsCommand";
|
|
12
19
|
export * from "./GetDocumentTextDetectionCommand";
|
|
13
20
|
export * from "./GetExpenseAnalysisCommand";
|
|
14
21
|
export * from "./GetLendingAnalysisCommand";
|
|
15
22
|
export * from "./GetLendingAnalysisSummaryCommand";
|
|
23
|
+
export * from "./GetProjectCommand";
|
|
16
24
|
export * from "./ListAdapterVersionsCommand";
|
|
17
25
|
export * from "./ListAdaptersCommand";
|
|
26
|
+
export * from "./ListBlueprintsCommand";
|
|
27
|
+
export * from "./ListProjectsCommand";
|
|
18
28
|
export * from "./ListTagsForResourceCommand";
|
|
19
29
|
export * from "./StartDocumentAnalysisCommand";
|
|
30
|
+
export * from "./StartDocumentInsightsCommand";
|
|
20
31
|
export * from "./StartDocumentTextDetectionCommand";
|
|
21
32
|
export * from "./StartExpenseAnalysisCommand";
|
|
22
33
|
export * from "./StartLendingAnalysisCommand";
|
|
23
34
|
export * from "./TagResourceCommand";
|
|
24
35
|
export * from "./UntagResourceCommand";
|
|
25
36
|
export * from "./UpdateAdapterCommand";
|
|
37
|
+
export * from "./UpdateBlueprintCommand";
|
|
38
|
+
export * from "./UpdateProjectCommand";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -79,6 +79,74 @@ export const AutoUpdate = {
|
|
|
79
79
|
DISABLED: "DISABLED",
|
|
80
80
|
ENABLED: "ENABLED",
|
|
81
81
|
};
|
|
82
|
+
export const ResourceOwner = {
|
|
83
|
+
ACCOUNT: "ACCOUNT",
|
|
84
|
+
SERVICE: "SERVICE",
|
|
85
|
+
};
|
|
86
|
+
export const State = {
|
|
87
|
+
DISABLED: "DISABLED",
|
|
88
|
+
ENABLED: "ENABLED",
|
|
89
|
+
};
|
|
90
|
+
export const ExtractionGranularityType = {
|
|
91
|
+
DOCUMENT: "DOCUMENT",
|
|
92
|
+
ELEMENT: "ELEMENT",
|
|
93
|
+
LINE: "LINE",
|
|
94
|
+
PAGE: "PAGE",
|
|
95
|
+
WORD: "WORD",
|
|
96
|
+
};
|
|
97
|
+
export const OutputTextFormatType = {
|
|
98
|
+
CSV: "CSV",
|
|
99
|
+
HTML: "HTML",
|
|
100
|
+
MARKDOWN: "MARKDOWN",
|
|
101
|
+
PLAIN_TEXT: "PLAIN_TEXT",
|
|
102
|
+
};
|
|
103
|
+
export const SensitiveDataDetectionMode = {
|
|
104
|
+
DETECTION: "DETECTION",
|
|
105
|
+
DETECTION_AND_REDACTION: "DETECTION_AND_REDACTION",
|
|
106
|
+
DISABLED: "DISABLED",
|
|
107
|
+
};
|
|
108
|
+
export const PIIEntityType = {
|
|
109
|
+
ADDRESS: "ADDRESS",
|
|
110
|
+
AGE: "AGE",
|
|
111
|
+
ALL: "ALL",
|
|
112
|
+
AWS_ACCESS_KEY: "AWS_ACCESS_KEY",
|
|
113
|
+
AWS_SECRET_KEY: "AWS_SECRET_KEY",
|
|
114
|
+
CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER",
|
|
115
|
+
CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER",
|
|
116
|
+
CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV",
|
|
117
|
+
CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY",
|
|
118
|
+
CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER",
|
|
119
|
+
DRIVER_ID: "DRIVER_ID",
|
|
120
|
+
EMAIL: "EMAIL",
|
|
121
|
+
INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER",
|
|
122
|
+
IP_ADDRESS: "IP_ADDRESS",
|
|
123
|
+
LICENSE_PLATE: "LICENSE_PLATE",
|
|
124
|
+
MAC_ADDRESS: "MAC_ADDRESS",
|
|
125
|
+
NAME: "NAME",
|
|
126
|
+
PASSWORD: "PASSWORD",
|
|
127
|
+
PHONE: "PHONE",
|
|
128
|
+
PIN: "PIN",
|
|
129
|
+
SWIFT_CODE: "SWIFT_CODE",
|
|
130
|
+
UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER",
|
|
131
|
+
UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER",
|
|
132
|
+
UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER",
|
|
133
|
+
URL: "URL",
|
|
134
|
+
USERNAME: "USERNAME",
|
|
135
|
+
US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER",
|
|
136
|
+
US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER",
|
|
137
|
+
US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER",
|
|
138
|
+
US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER",
|
|
139
|
+
US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER",
|
|
140
|
+
VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER",
|
|
141
|
+
};
|
|
142
|
+
export const PIIRedactionMaskMode = {
|
|
143
|
+
ENTITY_TYPE: "ENTITY_TYPE",
|
|
144
|
+
PII: "PII",
|
|
145
|
+
};
|
|
146
|
+
export const ProjectStatus = {
|
|
147
|
+
COMPLETED: "COMPLETED",
|
|
148
|
+
FAILED: "FAILED",
|
|
149
|
+
};
|
|
82
150
|
export const JobStatus = {
|
|
83
151
|
FAILED: "FAILED",
|
|
84
152
|
IN_PROGRESS: "IN_PROGRESS",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListBlueprintsCommand, } from "../commands/ListBlueprintsCommand";
|
|
3
|
+
import { TextractClient } from "../TextractClient";
|
|
4
|
+
export const paginateListBlueprints = createPaginator(TextractClient, ListBlueprintsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListProjectsCommand, } from "../commands/ListProjectsCommand";
|
|
3
|
+
import { TextractClient } from "../TextractClient";
|
|
4
|
+
export const paginateListProjects = createPaginator(TextractClient, ListProjectsCommand, "NextToken", "NextToken", "MaxResults");
|