@aws-sdk/client-textract 3.52.0 → 3.54.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 +28 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/TextractServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +221 -2
- package/dist-cjs/protocols/Aws_json1_1.js +209 -766
- package/dist-es/index.js +1 -0
- package/dist-es/models/TextractServiceException.js +12 -0
- package/dist-es/models/models_0.js +206 -1
- package/dist-es/protocols/Aws_json1_1.js +387 -779
- package/dist-types/TextractClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/TextractServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +105 -44
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/TextractClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/TextractServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +77 -44
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
package/dist-es/index.js
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ServiceException as __ServiceException, } from "@aws-sdk/smithy-client";
|
|
3
|
+
var TextractServiceException = (function (_super) {
|
|
4
|
+
__extends(TextractServiceException, _super);
|
|
5
|
+
function TextractServiceException(options) {
|
|
6
|
+
var _this = _super.call(this, options) || this;
|
|
7
|
+
Object.setPrototypeOf(_this, TextractServiceException.prototype);
|
|
8
|
+
return _this;
|
|
9
|
+
}
|
|
10
|
+
return TextractServiceException;
|
|
11
|
+
}(__ServiceException));
|
|
12
|
+
export { TextractServiceException };
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import { __assign } from "tslib";
|
|
1
|
+
import { __assign, __extends } from "tslib";
|
|
2
|
+
import { TextractServiceException as __BaseException } from "./TextractServiceException";
|
|
3
|
+
var AccessDeniedException = (function (_super) {
|
|
4
|
+
__extends(AccessDeniedException, _super);
|
|
5
|
+
function AccessDeniedException(opts) {
|
|
6
|
+
var _this = _super.call(this, __assign({ name: "AccessDeniedException", $fault: "client" }, opts)) || this;
|
|
7
|
+
_this.name = "AccessDeniedException";
|
|
8
|
+
_this.$fault = "client";
|
|
9
|
+
Object.setPrototypeOf(_this, AccessDeniedException.prototype);
|
|
10
|
+
_this.Message = opts.Message;
|
|
11
|
+
_this.Code = opts.Code;
|
|
12
|
+
return _this;
|
|
13
|
+
}
|
|
14
|
+
return AccessDeniedException;
|
|
15
|
+
}(__BaseException));
|
|
16
|
+
export { AccessDeniedException };
|
|
2
17
|
export var S3Object;
|
|
3
18
|
(function (S3Object) {
|
|
4
19
|
S3Object.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -34,13 +49,16 @@ export var BlockType;
|
|
|
34
49
|
BlockType["CELL"] = "CELL";
|
|
35
50
|
BlockType["KEY_VALUE_SET"] = "KEY_VALUE_SET";
|
|
36
51
|
BlockType["LINE"] = "LINE";
|
|
52
|
+
BlockType["MERGED_CELL"] = "MERGED_CELL";
|
|
37
53
|
BlockType["PAGE"] = "PAGE";
|
|
38
54
|
BlockType["SELECTION_ELEMENT"] = "SELECTION_ELEMENT";
|
|
39
55
|
BlockType["TABLE"] = "TABLE";
|
|
56
|
+
BlockType["TITLE"] = "TITLE";
|
|
40
57
|
BlockType["WORD"] = "WORD";
|
|
41
58
|
})(BlockType || (BlockType = {}));
|
|
42
59
|
export var EntityType;
|
|
43
60
|
(function (EntityType) {
|
|
61
|
+
EntityType["COLUMN_HEADER"] = "COLUMN_HEADER";
|
|
44
62
|
EntityType["KEY"] = "KEY";
|
|
45
63
|
EntityType["VALUE"] = "VALUE";
|
|
46
64
|
})(EntityType || (EntityType = {}));
|
|
@@ -60,6 +78,8 @@ export var RelationshipType;
|
|
|
60
78
|
(function (RelationshipType) {
|
|
61
79
|
RelationshipType["CHILD"] = "CHILD";
|
|
62
80
|
RelationshipType["COMPLEX_FEATURES"] = "COMPLEX_FEATURES";
|
|
81
|
+
RelationshipType["MERGED_CELL"] = "MERGED_CELL";
|
|
82
|
+
RelationshipType["TITLE"] = "TITLE";
|
|
63
83
|
RelationshipType["VALUE"] = "VALUE";
|
|
64
84
|
})(RelationshipType || (RelationshipType = {}));
|
|
65
85
|
export var Relationship;
|
|
@@ -92,6 +112,135 @@ export var AnalyzeDocumentResponse;
|
|
|
92
112
|
(function (AnalyzeDocumentResponse) {
|
|
93
113
|
AnalyzeDocumentResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
94
114
|
})(AnalyzeDocumentResponse || (AnalyzeDocumentResponse = {}));
|
|
115
|
+
var BadDocumentException = (function (_super) {
|
|
116
|
+
__extends(BadDocumentException, _super);
|
|
117
|
+
function BadDocumentException(opts) {
|
|
118
|
+
var _this = _super.call(this, __assign({ name: "BadDocumentException", $fault: "client" }, opts)) || this;
|
|
119
|
+
_this.name = "BadDocumentException";
|
|
120
|
+
_this.$fault = "client";
|
|
121
|
+
Object.setPrototypeOf(_this, BadDocumentException.prototype);
|
|
122
|
+
_this.Message = opts.Message;
|
|
123
|
+
_this.Code = opts.Code;
|
|
124
|
+
return _this;
|
|
125
|
+
}
|
|
126
|
+
return BadDocumentException;
|
|
127
|
+
}(__BaseException));
|
|
128
|
+
export { BadDocumentException };
|
|
129
|
+
var DocumentTooLargeException = (function (_super) {
|
|
130
|
+
__extends(DocumentTooLargeException, _super);
|
|
131
|
+
function DocumentTooLargeException(opts) {
|
|
132
|
+
var _this = _super.call(this, __assign({ name: "DocumentTooLargeException", $fault: "client" }, opts)) || this;
|
|
133
|
+
_this.name = "DocumentTooLargeException";
|
|
134
|
+
_this.$fault = "client";
|
|
135
|
+
Object.setPrototypeOf(_this, DocumentTooLargeException.prototype);
|
|
136
|
+
_this.Message = opts.Message;
|
|
137
|
+
_this.Code = opts.Code;
|
|
138
|
+
return _this;
|
|
139
|
+
}
|
|
140
|
+
return DocumentTooLargeException;
|
|
141
|
+
}(__BaseException));
|
|
142
|
+
export { DocumentTooLargeException };
|
|
143
|
+
var HumanLoopQuotaExceededException = (function (_super) {
|
|
144
|
+
__extends(HumanLoopQuotaExceededException, _super);
|
|
145
|
+
function HumanLoopQuotaExceededException(opts) {
|
|
146
|
+
var _this = _super.call(this, __assign({ name: "HumanLoopQuotaExceededException", $fault: "client" }, opts)) || this;
|
|
147
|
+
_this.name = "HumanLoopQuotaExceededException";
|
|
148
|
+
_this.$fault = "client";
|
|
149
|
+
Object.setPrototypeOf(_this, HumanLoopQuotaExceededException.prototype);
|
|
150
|
+
_this.ResourceType = opts.ResourceType;
|
|
151
|
+
_this.QuotaCode = opts.QuotaCode;
|
|
152
|
+
_this.ServiceCode = opts.ServiceCode;
|
|
153
|
+
_this.Message = opts.Message;
|
|
154
|
+
_this.Code = opts.Code;
|
|
155
|
+
return _this;
|
|
156
|
+
}
|
|
157
|
+
return HumanLoopQuotaExceededException;
|
|
158
|
+
}(__BaseException));
|
|
159
|
+
export { HumanLoopQuotaExceededException };
|
|
160
|
+
var InternalServerError = (function (_super) {
|
|
161
|
+
__extends(InternalServerError, _super);
|
|
162
|
+
function InternalServerError(opts) {
|
|
163
|
+
var _this = _super.call(this, __assign({ name: "InternalServerError", $fault: "server" }, opts)) || this;
|
|
164
|
+
_this.name = "InternalServerError";
|
|
165
|
+
_this.$fault = "server";
|
|
166
|
+
Object.setPrototypeOf(_this, InternalServerError.prototype);
|
|
167
|
+
_this.Message = opts.Message;
|
|
168
|
+
_this.Code = opts.Code;
|
|
169
|
+
return _this;
|
|
170
|
+
}
|
|
171
|
+
return InternalServerError;
|
|
172
|
+
}(__BaseException));
|
|
173
|
+
export { InternalServerError };
|
|
174
|
+
var InvalidParameterException = (function (_super) {
|
|
175
|
+
__extends(InvalidParameterException, _super);
|
|
176
|
+
function InvalidParameterException(opts) {
|
|
177
|
+
var _this = _super.call(this, __assign({ name: "InvalidParameterException", $fault: "client" }, opts)) || this;
|
|
178
|
+
_this.name = "InvalidParameterException";
|
|
179
|
+
_this.$fault = "client";
|
|
180
|
+
Object.setPrototypeOf(_this, InvalidParameterException.prototype);
|
|
181
|
+
_this.Message = opts.Message;
|
|
182
|
+
_this.Code = opts.Code;
|
|
183
|
+
return _this;
|
|
184
|
+
}
|
|
185
|
+
return InvalidParameterException;
|
|
186
|
+
}(__BaseException));
|
|
187
|
+
export { InvalidParameterException };
|
|
188
|
+
var InvalidS3ObjectException = (function (_super) {
|
|
189
|
+
__extends(InvalidS3ObjectException, _super);
|
|
190
|
+
function InvalidS3ObjectException(opts) {
|
|
191
|
+
var _this = _super.call(this, __assign({ name: "InvalidS3ObjectException", $fault: "client" }, opts)) || this;
|
|
192
|
+
_this.name = "InvalidS3ObjectException";
|
|
193
|
+
_this.$fault = "client";
|
|
194
|
+
Object.setPrototypeOf(_this, InvalidS3ObjectException.prototype);
|
|
195
|
+
_this.Message = opts.Message;
|
|
196
|
+
_this.Code = opts.Code;
|
|
197
|
+
return _this;
|
|
198
|
+
}
|
|
199
|
+
return InvalidS3ObjectException;
|
|
200
|
+
}(__BaseException));
|
|
201
|
+
export { InvalidS3ObjectException };
|
|
202
|
+
var ProvisionedThroughputExceededException = (function (_super) {
|
|
203
|
+
__extends(ProvisionedThroughputExceededException, _super);
|
|
204
|
+
function ProvisionedThroughputExceededException(opts) {
|
|
205
|
+
var _this = _super.call(this, __assign({ name: "ProvisionedThroughputExceededException", $fault: "client" }, opts)) || this;
|
|
206
|
+
_this.name = "ProvisionedThroughputExceededException";
|
|
207
|
+
_this.$fault = "client";
|
|
208
|
+
Object.setPrototypeOf(_this, ProvisionedThroughputExceededException.prototype);
|
|
209
|
+
_this.Message = opts.Message;
|
|
210
|
+
_this.Code = opts.Code;
|
|
211
|
+
return _this;
|
|
212
|
+
}
|
|
213
|
+
return ProvisionedThroughputExceededException;
|
|
214
|
+
}(__BaseException));
|
|
215
|
+
export { ProvisionedThroughputExceededException };
|
|
216
|
+
var ThrottlingException = (function (_super) {
|
|
217
|
+
__extends(ThrottlingException, _super);
|
|
218
|
+
function ThrottlingException(opts) {
|
|
219
|
+
var _this = _super.call(this, __assign({ name: "ThrottlingException", $fault: "server" }, opts)) || this;
|
|
220
|
+
_this.name = "ThrottlingException";
|
|
221
|
+
_this.$fault = "server";
|
|
222
|
+
Object.setPrototypeOf(_this, ThrottlingException.prototype);
|
|
223
|
+
_this.Message = opts.Message;
|
|
224
|
+
_this.Code = opts.Code;
|
|
225
|
+
return _this;
|
|
226
|
+
}
|
|
227
|
+
return ThrottlingException;
|
|
228
|
+
}(__BaseException));
|
|
229
|
+
export { ThrottlingException };
|
|
230
|
+
var UnsupportedDocumentException = (function (_super) {
|
|
231
|
+
__extends(UnsupportedDocumentException, _super);
|
|
232
|
+
function UnsupportedDocumentException(opts) {
|
|
233
|
+
var _this = _super.call(this, __assign({ name: "UnsupportedDocumentException", $fault: "client" }, opts)) || this;
|
|
234
|
+
_this.name = "UnsupportedDocumentException";
|
|
235
|
+
_this.$fault = "client";
|
|
236
|
+
Object.setPrototypeOf(_this, UnsupportedDocumentException.prototype);
|
|
237
|
+
_this.Message = opts.Message;
|
|
238
|
+
_this.Code = opts.Code;
|
|
239
|
+
return _this;
|
|
240
|
+
}
|
|
241
|
+
return UnsupportedDocumentException;
|
|
242
|
+
}(__BaseException));
|
|
243
|
+
export { UnsupportedDocumentException };
|
|
95
244
|
export var AnalyzeExpenseRequest;
|
|
96
245
|
(function (AnalyzeExpenseRequest) {
|
|
97
246
|
AnalyzeExpenseRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -183,6 +332,34 @@ export var GetDocumentAnalysisResponse;
|
|
|
183
332
|
(function (GetDocumentAnalysisResponse) {
|
|
184
333
|
GetDocumentAnalysisResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
185
334
|
})(GetDocumentAnalysisResponse || (GetDocumentAnalysisResponse = {}));
|
|
335
|
+
var InvalidJobIdException = (function (_super) {
|
|
336
|
+
__extends(InvalidJobIdException, _super);
|
|
337
|
+
function InvalidJobIdException(opts) {
|
|
338
|
+
var _this = _super.call(this, __assign({ name: "InvalidJobIdException", $fault: "client" }, opts)) || this;
|
|
339
|
+
_this.name = "InvalidJobIdException";
|
|
340
|
+
_this.$fault = "client";
|
|
341
|
+
Object.setPrototypeOf(_this, InvalidJobIdException.prototype);
|
|
342
|
+
_this.Message = opts.Message;
|
|
343
|
+
_this.Code = opts.Code;
|
|
344
|
+
return _this;
|
|
345
|
+
}
|
|
346
|
+
return InvalidJobIdException;
|
|
347
|
+
}(__BaseException));
|
|
348
|
+
export { InvalidJobIdException };
|
|
349
|
+
var InvalidKMSKeyException = (function (_super) {
|
|
350
|
+
__extends(InvalidKMSKeyException, _super);
|
|
351
|
+
function InvalidKMSKeyException(opts) {
|
|
352
|
+
var _this = _super.call(this, __assign({ name: "InvalidKMSKeyException", $fault: "client" }, opts)) || this;
|
|
353
|
+
_this.name = "InvalidKMSKeyException";
|
|
354
|
+
_this.$fault = "client";
|
|
355
|
+
Object.setPrototypeOf(_this, InvalidKMSKeyException.prototype);
|
|
356
|
+
_this.Message = opts.Message;
|
|
357
|
+
_this.Code = opts.Code;
|
|
358
|
+
return _this;
|
|
359
|
+
}
|
|
360
|
+
return InvalidKMSKeyException;
|
|
361
|
+
}(__BaseException));
|
|
362
|
+
export { InvalidKMSKeyException };
|
|
186
363
|
export var GetDocumentTextDetectionRequest;
|
|
187
364
|
(function (GetDocumentTextDetectionRequest) {
|
|
188
365
|
GetDocumentTextDetectionRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -199,6 +376,34 @@ export var GetExpenseAnalysisResponse;
|
|
|
199
376
|
(function (GetExpenseAnalysisResponse) {
|
|
200
377
|
GetExpenseAnalysisResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
201
378
|
})(GetExpenseAnalysisResponse || (GetExpenseAnalysisResponse = {}));
|
|
379
|
+
var IdempotentParameterMismatchException = (function (_super) {
|
|
380
|
+
__extends(IdempotentParameterMismatchException, _super);
|
|
381
|
+
function IdempotentParameterMismatchException(opts) {
|
|
382
|
+
var _this = _super.call(this, __assign({ name: "IdempotentParameterMismatchException", $fault: "client" }, opts)) || this;
|
|
383
|
+
_this.name = "IdempotentParameterMismatchException";
|
|
384
|
+
_this.$fault = "client";
|
|
385
|
+
Object.setPrototypeOf(_this, IdempotentParameterMismatchException.prototype);
|
|
386
|
+
_this.Message = opts.Message;
|
|
387
|
+
_this.Code = opts.Code;
|
|
388
|
+
return _this;
|
|
389
|
+
}
|
|
390
|
+
return IdempotentParameterMismatchException;
|
|
391
|
+
}(__BaseException));
|
|
392
|
+
export { IdempotentParameterMismatchException };
|
|
393
|
+
var LimitExceededException = (function (_super) {
|
|
394
|
+
__extends(LimitExceededException, _super);
|
|
395
|
+
function LimitExceededException(opts) {
|
|
396
|
+
var _this = _super.call(this, __assign({ name: "LimitExceededException", $fault: "client" }, opts)) || this;
|
|
397
|
+
_this.name = "LimitExceededException";
|
|
398
|
+
_this.$fault = "client";
|
|
399
|
+
Object.setPrototypeOf(_this, LimitExceededException.prototype);
|
|
400
|
+
_this.Message = opts.Message;
|
|
401
|
+
_this.Code = opts.Code;
|
|
402
|
+
return _this;
|
|
403
|
+
}
|
|
404
|
+
return LimitExceededException;
|
|
405
|
+
}(__BaseException));
|
|
406
|
+
export { LimitExceededException };
|
|
202
407
|
export var NotificationChannel;
|
|
203
408
|
(function (NotificationChannel) {
|
|
204
409
|
NotificationChannel.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|