@aws-sdk/client-textract 3.141.0 → 3.142.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +50 -95
- package/dist-es/protocols/Aws_json1_1.js +81 -96
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -124,7 +124,6 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
|
|
|
124
124
|
...output,
|
|
125
125
|
body: await parseBody(output.body, context),
|
|
126
126
|
};
|
|
127
|
-
let response;
|
|
128
127
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
129
128
|
switch (errorCode) {
|
|
130
129
|
case "AccessDeniedException":
|
|
@@ -159,14 +158,12 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
|
|
|
159
158
|
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
160
159
|
default:
|
|
161
160
|
const parsedBody = parsedOutput.body;
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
$metadata,
|
|
161
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
162
|
+
output,
|
|
163
|
+
parsedBody,
|
|
164
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
165
|
+
errorCode,
|
|
168
166
|
});
|
|
169
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
170
167
|
}
|
|
171
168
|
};
|
|
172
169
|
const deserializeAws_json1_1AnalyzeExpenseCommand = async (output, context) => {
|
|
@@ -188,7 +185,6 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
|
|
|
188
185
|
...output,
|
|
189
186
|
body: await parseBody(output.body, context),
|
|
190
187
|
};
|
|
191
|
-
let response;
|
|
192
188
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
193
189
|
switch (errorCode) {
|
|
194
190
|
case "AccessDeniedException":
|
|
@@ -220,14 +216,12 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
|
|
|
220
216
|
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
221
217
|
default:
|
|
222
218
|
const parsedBody = parsedOutput.body;
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
$metadata,
|
|
219
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
220
|
+
output,
|
|
221
|
+
parsedBody,
|
|
222
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
223
|
+
errorCode,
|
|
229
224
|
});
|
|
230
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
231
225
|
}
|
|
232
226
|
};
|
|
233
227
|
const deserializeAws_json1_1AnalyzeIDCommand = async (output, context) => {
|
|
@@ -249,7 +243,6 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
|
|
|
249
243
|
...output,
|
|
250
244
|
body: await parseBody(output.body, context),
|
|
251
245
|
};
|
|
252
|
-
let response;
|
|
253
246
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
254
247
|
switch (errorCode) {
|
|
255
248
|
case "AccessDeniedException":
|
|
@@ -281,14 +274,12 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
|
|
|
281
274
|
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
282
275
|
default:
|
|
283
276
|
const parsedBody = parsedOutput.body;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
$metadata,
|
|
277
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
278
|
+
output,
|
|
279
|
+
parsedBody,
|
|
280
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
281
|
+
errorCode,
|
|
290
282
|
});
|
|
291
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
292
283
|
}
|
|
293
284
|
};
|
|
294
285
|
const deserializeAws_json1_1DetectDocumentTextCommand = async (output, context) => {
|
|
@@ -310,7 +301,6 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
|
|
|
310
301
|
...output,
|
|
311
302
|
body: await parseBody(output.body, context),
|
|
312
303
|
};
|
|
313
|
-
let response;
|
|
314
304
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
305
|
switch (errorCode) {
|
|
316
306
|
case "AccessDeniedException":
|
|
@@ -342,14 +332,12 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
|
|
|
342
332
|
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
343
333
|
default:
|
|
344
334
|
const parsedBody = parsedOutput.body;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
$metadata,
|
|
335
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
336
|
+
output,
|
|
337
|
+
parsedBody,
|
|
338
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
339
|
+
errorCode,
|
|
351
340
|
});
|
|
352
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
353
341
|
}
|
|
354
342
|
};
|
|
355
343
|
const deserializeAws_json1_1GetDocumentAnalysisCommand = async (output, context) => {
|
|
@@ -371,7 +359,6 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
|
|
|
371
359
|
...output,
|
|
372
360
|
body: await parseBody(output.body, context),
|
|
373
361
|
};
|
|
374
|
-
let response;
|
|
375
362
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
376
363
|
switch (errorCode) {
|
|
377
364
|
case "AccessDeniedException":
|
|
@@ -400,14 +387,12 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
|
|
|
400
387
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
401
388
|
default:
|
|
402
389
|
const parsedBody = parsedOutput.body;
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
$metadata,
|
|
390
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
391
|
+
output,
|
|
392
|
+
parsedBody,
|
|
393
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
394
|
+
errorCode,
|
|
409
395
|
});
|
|
410
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
411
396
|
}
|
|
412
397
|
};
|
|
413
398
|
const deserializeAws_json1_1GetDocumentTextDetectionCommand = async (output, context) => {
|
|
@@ -429,7 +414,6 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
|
|
|
429
414
|
...output,
|
|
430
415
|
body: await parseBody(output.body, context),
|
|
431
416
|
};
|
|
432
|
-
let response;
|
|
433
417
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
434
418
|
switch (errorCode) {
|
|
435
419
|
case "AccessDeniedException":
|
|
@@ -458,14 +442,12 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
|
|
|
458
442
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
459
443
|
default:
|
|
460
444
|
const parsedBody = parsedOutput.body;
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
$metadata,
|
|
445
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
446
|
+
output,
|
|
447
|
+
parsedBody,
|
|
448
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
449
|
+
errorCode,
|
|
467
450
|
});
|
|
468
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
469
451
|
}
|
|
470
452
|
};
|
|
471
453
|
const deserializeAws_json1_1GetExpenseAnalysisCommand = async (output, context) => {
|
|
@@ -487,7 +469,6 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
|
|
|
487
469
|
...output,
|
|
488
470
|
body: await parseBody(output.body, context),
|
|
489
471
|
};
|
|
490
|
-
let response;
|
|
491
472
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
492
473
|
switch (errorCode) {
|
|
493
474
|
case "AccessDeniedException":
|
|
@@ -516,14 +497,12 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
|
|
|
516
497
|
throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
|
|
517
498
|
default:
|
|
518
499
|
const parsedBody = parsedOutput.body;
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
$metadata,
|
|
500
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
501
|
+
output,
|
|
502
|
+
parsedBody,
|
|
503
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
504
|
+
errorCode,
|
|
525
505
|
});
|
|
526
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
527
506
|
}
|
|
528
507
|
};
|
|
529
508
|
const deserializeAws_json1_1StartDocumentAnalysisCommand = async (output, context) => {
|
|
@@ -545,7 +524,6 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
|
|
|
545
524
|
...output,
|
|
546
525
|
body: await parseBody(output.body, context),
|
|
547
526
|
};
|
|
548
|
-
let response;
|
|
549
527
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
550
528
|
switch (errorCode) {
|
|
551
529
|
case "AccessDeniedException":
|
|
@@ -586,14 +564,12 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
|
|
|
586
564
|
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
587
565
|
default:
|
|
588
566
|
const parsedBody = parsedOutput.body;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
$metadata,
|
|
567
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
568
|
+
output,
|
|
569
|
+
parsedBody,
|
|
570
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
571
|
+
errorCode,
|
|
595
572
|
});
|
|
596
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
597
573
|
}
|
|
598
574
|
};
|
|
599
575
|
const deserializeAws_json1_1StartDocumentTextDetectionCommand = async (output, context) => {
|
|
@@ -615,7 +591,6 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
|
|
|
615
591
|
...output,
|
|
616
592
|
body: await parseBody(output.body, context),
|
|
617
593
|
};
|
|
618
|
-
let response;
|
|
619
594
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
620
595
|
switch (errorCode) {
|
|
621
596
|
case "AccessDeniedException":
|
|
@@ -656,14 +631,12 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
|
|
|
656
631
|
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
657
632
|
default:
|
|
658
633
|
const parsedBody = parsedOutput.body;
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
$metadata,
|
|
634
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
635
|
+
output,
|
|
636
|
+
parsedBody,
|
|
637
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
638
|
+
errorCode,
|
|
665
639
|
});
|
|
666
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
667
640
|
}
|
|
668
641
|
};
|
|
669
642
|
const deserializeAws_json1_1StartExpenseAnalysisCommand = async (output, context) => {
|
|
@@ -685,7 +658,6 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
|
|
|
685
658
|
...output,
|
|
686
659
|
body: await parseBody(output.body, context),
|
|
687
660
|
};
|
|
688
|
-
let response;
|
|
689
661
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
662
|
switch (errorCode) {
|
|
691
663
|
case "AccessDeniedException":
|
|
@@ -726,14 +698,12 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
|
|
|
726
698
|
throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
|
|
727
699
|
default:
|
|
728
700
|
const parsedBody = parsedOutput.body;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
$metadata,
|
|
701
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
702
|
+
output,
|
|
703
|
+
parsedBody,
|
|
704
|
+
exceptionCtor: TextractServiceException_1.TextractServiceException,
|
|
705
|
+
errorCode,
|
|
735
706
|
});
|
|
736
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
737
707
|
}
|
|
738
708
|
};
|
|
739
709
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -890,9 +860,6 @@ const serializeAws_json1_1ContentClassifiers = (input, context) => {
|
|
|
890
860
|
return input
|
|
891
861
|
.filter((e) => e != null)
|
|
892
862
|
.map((entry) => {
|
|
893
|
-
if (entry === null) {
|
|
894
|
-
return null;
|
|
895
|
-
}
|
|
896
863
|
return entry;
|
|
897
864
|
});
|
|
898
865
|
};
|
|
@@ -916,9 +883,6 @@ const serializeAws_json1_1DocumentPages = (input, context) => {
|
|
|
916
883
|
return input
|
|
917
884
|
.filter((e) => e != null)
|
|
918
885
|
.map((entry) => {
|
|
919
|
-
if (entry === null) {
|
|
920
|
-
return null;
|
|
921
|
-
}
|
|
922
886
|
return serializeAws_json1_1Document(entry, context);
|
|
923
887
|
});
|
|
924
888
|
};
|
|
@@ -926,9 +890,6 @@ const serializeAws_json1_1FeatureTypes = (input, context) => {
|
|
|
926
890
|
return input
|
|
927
891
|
.filter((e) => e != null)
|
|
928
892
|
.map((entry) => {
|
|
929
|
-
if (entry === null) {
|
|
930
|
-
return null;
|
|
931
|
-
}
|
|
932
893
|
return entry;
|
|
933
894
|
});
|
|
934
895
|
};
|
|
@@ -985,9 +946,6 @@ const serializeAws_json1_1Queries = (input, context) => {
|
|
|
985
946
|
return input
|
|
986
947
|
.filter((e) => e != null)
|
|
987
948
|
.map((entry) => {
|
|
988
|
-
if (entry === null) {
|
|
989
|
-
return null;
|
|
990
|
-
}
|
|
991
949
|
return serializeAws_json1_1Query(entry, context);
|
|
992
950
|
});
|
|
993
951
|
};
|
|
@@ -1007,9 +965,6 @@ const serializeAws_json1_1QueryPages = (input, context) => {
|
|
|
1007
965
|
return input
|
|
1008
966
|
.filter((e) => e != null)
|
|
1009
967
|
.map((entry) => {
|
|
1010
|
-
if (entry === null) {
|
|
1011
|
-
return null;
|
|
1012
|
-
}
|
|
1013
968
|
return entry;
|
|
1014
969
|
});
|
|
1015
970
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseFloat32 as __limitedParseFloat32, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectString as __expectString, LazyJsonString as __LazyJsonString, limitedParseFloat32 as __limitedParseFloat32, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AccessDeniedException, BadDocumentException, DocumentTooLargeException, HumanLoopQuotaExceededException, IdempotentParameterMismatchException, InternalServerError, InvalidJobIdException, InvalidKMSKeyException, InvalidParameterException, InvalidS3ObjectException, LimitExceededException, ProvisionedThroughputExceededException, ThrottlingException, UnsupportedDocumentException, } from "../models/models_0";
|
|
5
5
|
import { TextractServiceException as __BaseException } from "../models/TextractServiceException";
|
|
6
6
|
export var serializeAws_json1_1AnalyzeDocumentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -132,7 +132,7 @@ export var deserializeAws_json1_1AnalyzeDocumentCommand = function (output, cont
|
|
|
132
132
|
});
|
|
133
133
|
}); };
|
|
134
134
|
var deserializeAws_json1_1AnalyzeDocumentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
-
var parsedOutput, _a,
|
|
135
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
136
136
|
var _c;
|
|
137
137
|
return __generator(this, function (_d) {
|
|
138
138
|
switch (_d.label) {
|
|
@@ -189,14 +189,14 @@ var deserializeAws_json1_1AnalyzeDocumentCommandError = function (output, contex
|
|
|
189
189
|
case 21: throw _d.sent();
|
|
190
190
|
case 22:
|
|
191
191
|
parsedBody = parsedOutput.body;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
$metadata: $metadata,
|
|
192
|
+
throwDefaultError({
|
|
193
|
+
output: output,
|
|
194
|
+
parsedBody: parsedBody,
|
|
195
|
+
exceptionCtor: __BaseException,
|
|
196
|
+
errorCode: errorCode,
|
|
198
197
|
});
|
|
199
|
-
|
|
198
|
+
_d.label = 23;
|
|
199
|
+
case 23: return [2];
|
|
200
200
|
}
|
|
201
201
|
});
|
|
202
202
|
}); };
|
|
@@ -219,7 +219,7 @@ export var deserializeAws_json1_1AnalyzeExpenseCommand = function (output, conte
|
|
|
219
219
|
});
|
|
220
220
|
}); };
|
|
221
221
|
var deserializeAws_json1_1AnalyzeExpenseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
222
|
-
var parsedOutput, _a,
|
|
222
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
223
223
|
var _c;
|
|
224
224
|
return __generator(this, function (_d) {
|
|
225
225
|
switch (_d.label) {
|
|
@@ -272,14 +272,14 @@ var deserializeAws_json1_1AnalyzeExpenseCommandError = function (output, context
|
|
|
272
272
|
case 19: throw _d.sent();
|
|
273
273
|
case 20:
|
|
274
274
|
parsedBody = parsedOutput.body;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
$metadata: $metadata,
|
|
275
|
+
throwDefaultError({
|
|
276
|
+
output: output,
|
|
277
|
+
parsedBody: parsedBody,
|
|
278
|
+
exceptionCtor: __BaseException,
|
|
279
|
+
errorCode: errorCode,
|
|
281
280
|
});
|
|
282
|
-
|
|
281
|
+
_d.label = 21;
|
|
282
|
+
case 21: return [2];
|
|
283
283
|
}
|
|
284
284
|
});
|
|
285
285
|
}); };
|
|
@@ -302,7 +302,7 @@ export var deserializeAws_json1_1AnalyzeIDCommand = function (output, context) {
|
|
|
302
302
|
});
|
|
303
303
|
}); };
|
|
304
304
|
var deserializeAws_json1_1AnalyzeIDCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
305
|
-
var parsedOutput, _a,
|
|
305
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
306
306
|
var _c;
|
|
307
307
|
return __generator(this, function (_d) {
|
|
308
308
|
switch (_d.label) {
|
|
@@ -355,14 +355,14 @@ var deserializeAws_json1_1AnalyzeIDCommandError = function (output, context) { r
|
|
|
355
355
|
case 19: throw _d.sent();
|
|
356
356
|
case 20:
|
|
357
357
|
parsedBody = parsedOutput.body;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
$metadata: $metadata,
|
|
358
|
+
throwDefaultError({
|
|
359
|
+
output: output,
|
|
360
|
+
parsedBody: parsedBody,
|
|
361
|
+
exceptionCtor: __BaseException,
|
|
362
|
+
errorCode: errorCode,
|
|
364
363
|
});
|
|
365
|
-
|
|
364
|
+
_d.label = 21;
|
|
365
|
+
case 21: return [2];
|
|
366
366
|
}
|
|
367
367
|
});
|
|
368
368
|
}); };
|
|
@@ -385,7 +385,7 @@ export var deserializeAws_json1_1DetectDocumentTextCommand = function (output, c
|
|
|
385
385
|
});
|
|
386
386
|
}); };
|
|
387
387
|
var deserializeAws_json1_1DetectDocumentTextCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
388
|
-
var parsedOutput, _a,
|
|
388
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
389
389
|
var _c;
|
|
390
390
|
return __generator(this, function (_d) {
|
|
391
391
|
switch (_d.label) {
|
|
@@ -438,14 +438,14 @@ var deserializeAws_json1_1DetectDocumentTextCommandError = function (output, con
|
|
|
438
438
|
case 19: throw _d.sent();
|
|
439
439
|
case 20:
|
|
440
440
|
parsedBody = parsedOutput.body;
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
$metadata: $metadata,
|
|
441
|
+
throwDefaultError({
|
|
442
|
+
output: output,
|
|
443
|
+
parsedBody: parsedBody,
|
|
444
|
+
exceptionCtor: __BaseException,
|
|
445
|
+
errorCode: errorCode,
|
|
447
446
|
});
|
|
448
|
-
|
|
447
|
+
_d.label = 21;
|
|
448
|
+
case 21: return [2];
|
|
449
449
|
}
|
|
450
450
|
});
|
|
451
451
|
}); };
|
|
@@ -468,7 +468,7 @@ export var deserializeAws_json1_1GetDocumentAnalysisCommand = function (output,
|
|
|
468
468
|
});
|
|
469
469
|
}); };
|
|
470
470
|
var deserializeAws_json1_1GetDocumentAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
471
|
-
var parsedOutput, _a,
|
|
471
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
472
472
|
var _c;
|
|
473
473
|
return __generator(this, function (_d) {
|
|
474
474
|
switch (_d.label) {
|
|
@@ -517,14 +517,14 @@ var deserializeAws_json1_1GetDocumentAnalysisCommandError = function (output, co
|
|
|
517
517
|
case 17: throw _d.sent();
|
|
518
518
|
case 18:
|
|
519
519
|
parsedBody = parsedOutput.body;
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
$metadata: $metadata,
|
|
520
|
+
throwDefaultError({
|
|
521
|
+
output: output,
|
|
522
|
+
parsedBody: parsedBody,
|
|
523
|
+
exceptionCtor: __BaseException,
|
|
524
|
+
errorCode: errorCode,
|
|
526
525
|
});
|
|
527
|
-
|
|
526
|
+
_d.label = 19;
|
|
527
|
+
case 19: return [2];
|
|
528
528
|
}
|
|
529
529
|
});
|
|
530
530
|
}); };
|
|
@@ -547,7 +547,7 @@ export var deserializeAws_json1_1GetDocumentTextDetectionCommand = function (out
|
|
|
547
547
|
});
|
|
548
548
|
}); };
|
|
549
549
|
var deserializeAws_json1_1GetDocumentTextDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
550
|
-
var parsedOutput, _a,
|
|
550
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
551
551
|
var _c;
|
|
552
552
|
return __generator(this, function (_d) {
|
|
553
553
|
switch (_d.label) {
|
|
@@ -596,14 +596,14 @@ var deserializeAws_json1_1GetDocumentTextDetectionCommandError = function (outpu
|
|
|
596
596
|
case 17: throw _d.sent();
|
|
597
597
|
case 18:
|
|
598
598
|
parsedBody = parsedOutput.body;
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
$metadata: $metadata,
|
|
599
|
+
throwDefaultError({
|
|
600
|
+
output: output,
|
|
601
|
+
parsedBody: parsedBody,
|
|
602
|
+
exceptionCtor: __BaseException,
|
|
603
|
+
errorCode: errorCode,
|
|
605
604
|
});
|
|
606
|
-
|
|
605
|
+
_d.label = 19;
|
|
606
|
+
case 19: return [2];
|
|
607
607
|
}
|
|
608
608
|
});
|
|
609
609
|
}); };
|
|
@@ -626,7 +626,7 @@ export var deserializeAws_json1_1GetExpenseAnalysisCommand = function (output, c
|
|
|
626
626
|
});
|
|
627
627
|
}); };
|
|
628
628
|
var deserializeAws_json1_1GetExpenseAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
629
|
-
var parsedOutput, _a,
|
|
629
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
630
630
|
var _c;
|
|
631
631
|
return __generator(this, function (_d) {
|
|
632
632
|
switch (_d.label) {
|
|
@@ -675,14 +675,14 @@ var deserializeAws_json1_1GetExpenseAnalysisCommandError = function (output, con
|
|
|
675
675
|
case 17: throw _d.sent();
|
|
676
676
|
case 18:
|
|
677
677
|
parsedBody = parsedOutput.body;
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
$metadata: $metadata,
|
|
678
|
+
throwDefaultError({
|
|
679
|
+
output: output,
|
|
680
|
+
parsedBody: parsedBody,
|
|
681
|
+
exceptionCtor: __BaseException,
|
|
682
|
+
errorCode: errorCode,
|
|
684
683
|
});
|
|
685
|
-
|
|
684
|
+
_d.label = 19;
|
|
685
|
+
case 19: return [2];
|
|
686
686
|
}
|
|
687
687
|
});
|
|
688
688
|
}); };
|
|
@@ -705,7 +705,7 @@ export var deserializeAws_json1_1StartDocumentAnalysisCommand = function (output
|
|
|
705
705
|
});
|
|
706
706
|
}); };
|
|
707
707
|
var deserializeAws_json1_1StartDocumentAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
708
|
-
var parsedOutput, _a,
|
|
708
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
709
709
|
var _c;
|
|
710
710
|
return __generator(this, function (_d) {
|
|
711
711
|
switch (_d.label) {
|
|
@@ -770,14 +770,14 @@ var deserializeAws_json1_1StartDocumentAnalysisCommandError = function (output,
|
|
|
770
770
|
case 25: throw _d.sent();
|
|
771
771
|
case 26:
|
|
772
772
|
parsedBody = parsedOutput.body;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
$metadata: $metadata,
|
|
773
|
+
throwDefaultError({
|
|
774
|
+
output: output,
|
|
775
|
+
parsedBody: parsedBody,
|
|
776
|
+
exceptionCtor: __BaseException,
|
|
777
|
+
errorCode: errorCode,
|
|
779
778
|
});
|
|
780
|
-
|
|
779
|
+
_d.label = 27;
|
|
780
|
+
case 27: return [2];
|
|
781
781
|
}
|
|
782
782
|
});
|
|
783
783
|
}); };
|
|
@@ -800,7 +800,7 @@ export var deserializeAws_json1_1StartDocumentTextDetectionCommand = function (o
|
|
|
800
800
|
});
|
|
801
801
|
}); };
|
|
802
802
|
var deserializeAws_json1_1StartDocumentTextDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
803
|
-
var parsedOutput, _a,
|
|
803
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
804
804
|
var _c;
|
|
805
805
|
return __generator(this, function (_d) {
|
|
806
806
|
switch (_d.label) {
|
|
@@ -865,14 +865,14 @@ var deserializeAws_json1_1StartDocumentTextDetectionCommandError = function (out
|
|
|
865
865
|
case 25: throw _d.sent();
|
|
866
866
|
case 26:
|
|
867
867
|
parsedBody = parsedOutput.body;
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
$metadata: $metadata,
|
|
868
|
+
throwDefaultError({
|
|
869
|
+
output: output,
|
|
870
|
+
parsedBody: parsedBody,
|
|
871
|
+
exceptionCtor: __BaseException,
|
|
872
|
+
errorCode: errorCode,
|
|
874
873
|
});
|
|
875
|
-
|
|
874
|
+
_d.label = 27;
|
|
875
|
+
case 27: return [2];
|
|
876
876
|
}
|
|
877
877
|
});
|
|
878
878
|
}); };
|
|
@@ -895,7 +895,7 @@ export var deserializeAws_json1_1StartExpenseAnalysisCommand = function (output,
|
|
|
895
895
|
});
|
|
896
896
|
}); };
|
|
897
897
|
var deserializeAws_json1_1StartExpenseAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
898
|
-
var parsedOutput, _a,
|
|
898
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
899
899
|
var _c;
|
|
900
900
|
return __generator(this, function (_d) {
|
|
901
901
|
switch (_d.label) {
|
|
@@ -960,14 +960,14 @@ var deserializeAws_json1_1StartExpenseAnalysisCommandError = function (output, c
|
|
|
960
960
|
case 25: throw _d.sent();
|
|
961
961
|
case 26:
|
|
962
962
|
parsedBody = parsedOutput.body;
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
$metadata: $metadata,
|
|
963
|
+
throwDefaultError({
|
|
964
|
+
output: output,
|
|
965
|
+
parsedBody: parsedBody,
|
|
966
|
+
exceptionCtor: __BaseException,
|
|
967
|
+
errorCode: errorCode,
|
|
969
968
|
});
|
|
970
|
-
|
|
969
|
+
_d.label = 27;
|
|
970
|
+
case 27: return [2];
|
|
971
971
|
}
|
|
972
972
|
});
|
|
973
973
|
}); };
|
|
@@ -1116,9 +1116,6 @@ var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
|
1116
1116
|
return input
|
|
1117
1117
|
.filter(function (e) { return e != null; })
|
|
1118
1118
|
.map(function (entry) {
|
|
1119
|
-
if (entry === null) {
|
|
1120
|
-
return null;
|
|
1121
|
-
}
|
|
1122
1119
|
return entry;
|
|
1123
1120
|
});
|
|
1124
1121
|
};
|
|
@@ -1135,9 +1132,6 @@ var serializeAws_json1_1DocumentPages = function (input, context) {
|
|
|
1135
1132
|
return input
|
|
1136
1133
|
.filter(function (e) { return e != null; })
|
|
1137
1134
|
.map(function (entry) {
|
|
1138
|
-
if (entry === null) {
|
|
1139
|
-
return null;
|
|
1140
|
-
}
|
|
1141
1135
|
return serializeAws_json1_1Document(entry, context);
|
|
1142
1136
|
});
|
|
1143
1137
|
};
|
|
@@ -1145,9 +1139,6 @@ var serializeAws_json1_1FeatureTypes = function (input, context) {
|
|
|
1145
1139
|
return input
|
|
1146
1140
|
.filter(function (e) { return e != null; })
|
|
1147
1141
|
.map(function (entry) {
|
|
1148
|
-
if (entry === null) {
|
|
1149
|
-
return null;
|
|
1150
|
-
}
|
|
1151
1142
|
return entry;
|
|
1152
1143
|
});
|
|
1153
1144
|
};
|
|
@@ -1180,9 +1171,6 @@ var serializeAws_json1_1Queries = function (input, context) {
|
|
|
1180
1171
|
return input
|
|
1181
1172
|
.filter(function (e) { return e != null; })
|
|
1182
1173
|
.map(function (entry) {
|
|
1183
|
-
if (entry === null) {
|
|
1184
|
-
return null;
|
|
1185
|
-
}
|
|
1186
1174
|
return serializeAws_json1_1Query(entry, context);
|
|
1187
1175
|
});
|
|
1188
1176
|
};
|
|
@@ -1196,9 +1184,6 @@ var serializeAws_json1_1QueryPages = function (input, context) {
|
|
|
1196
1184
|
return input
|
|
1197
1185
|
.filter(function (e) { return e != null; })
|
|
1198
1186
|
.map(function (entry) {
|
|
1199
|
-
if (entry === null) {
|
|
1200
|
-
return null;
|
|
1201
|
-
}
|
|
1202
1187
|
return entry;
|
|
1203
1188
|
});
|
|
1204
1189
|
};
|
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.142.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",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.142.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.142.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|