@aws-sdk/client-textract 3.118.0 → 3.127.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +145 -205
- package/dist-es/protocols/Aws_json1_1.js +118 -178
- package/package.json +26 -26
|
@@ -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, response, errorCode, _b, parsedBody;
|
|
135
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
136
136
|
var _c;
|
|
137
137
|
return __generator(this, function (_d) {
|
|
138
138
|
switch (_d.label) {
|
|
@@ -142,7 +142,6 @@ var deserializeAws_json1_1AnalyzeDocumentCommandError = function (output, contex
|
|
|
142
142
|
return [4, parseBody(output.body, context)];
|
|
143
143
|
case 1:
|
|
144
144
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
145
|
-
errorCode = "UnknownError";
|
|
146
145
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
147
146
|
_b = errorCode;
|
|
148
147
|
switch (_b) {
|
|
@@ -190,10 +189,12 @@ var deserializeAws_json1_1AnalyzeDocumentCommandError = function (output, contex
|
|
|
190
189
|
case 21: throw _d.sent();
|
|
191
190
|
case 22:
|
|
192
191
|
parsedBody = parsedOutput.body;
|
|
192
|
+
$metadata = deserializeMetadata(output);
|
|
193
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
193
194
|
response = new __BaseException({
|
|
194
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
195
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
195
196
|
$fault: "client",
|
|
196
|
-
$metadata:
|
|
197
|
+
$metadata: $metadata,
|
|
197
198
|
});
|
|
198
199
|
throw __decorateServiceException(response, parsedBody);
|
|
199
200
|
}
|
|
@@ -218,7 +219,7 @@ export var deserializeAws_json1_1AnalyzeExpenseCommand = function (output, conte
|
|
|
218
219
|
});
|
|
219
220
|
}); };
|
|
220
221
|
var deserializeAws_json1_1AnalyzeExpenseCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
221
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
222
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
222
223
|
var _c;
|
|
223
224
|
return __generator(this, function (_d) {
|
|
224
225
|
switch (_d.label) {
|
|
@@ -228,7 +229,6 @@ var deserializeAws_json1_1AnalyzeExpenseCommandError = function (output, context
|
|
|
228
229
|
return [4, parseBody(output.body, context)];
|
|
229
230
|
case 1:
|
|
230
231
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
231
|
-
errorCode = "UnknownError";
|
|
232
232
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
233
233
|
_b = errorCode;
|
|
234
234
|
switch (_b) {
|
|
@@ -272,10 +272,12 @@ var deserializeAws_json1_1AnalyzeExpenseCommandError = function (output, context
|
|
|
272
272
|
case 19: throw _d.sent();
|
|
273
273
|
case 20:
|
|
274
274
|
parsedBody = parsedOutput.body;
|
|
275
|
+
$metadata = deserializeMetadata(output);
|
|
276
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
275
277
|
response = new __BaseException({
|
|
276
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
278
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
277
279
|
$fault: "client",
|
|
278
|
-
$metadata:
|
|
280
|
+
$metadata: $metadata,
|
|
279
281
|
});
|
|
280
282
|
throw __decorateServiceException(response, parsedBody);
|
|
281
283
|
}
|
|
@@ -300,7 +302,7 @@ export var deserializeAws_json1_1AnalyzeIDCommand = function (output, context) {
|
|
|
300
302
|
});
|
|
301
303
|
}); };
|
|
302
304
|
var deserializeAws_json1_1AnalyzeIDCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
303
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
305
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
304
306
|
var _c;
|
|
305
307
|
return __generator(this, function (_d) {
|
|
306
308
|
switch (_d.label) {
|
|
@@ -310,7 +312,6 @@ var deserializeAws_json1_1AnalyzeIDCommandError = function (output, context) { r
|
|
|
310
312
|
return [4, parseBody(output.body, context)];
|
|
311
313
|
case 1:
|
|
312
314
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
313
|
-
errorCode = "UnknownError";
|
|
314
315
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
315
316
|
_b = errorCode;
|
|
316
317
|
switch (_b) {
|
|
@@ -354,10 +355,12 @@ var deserializeAws_json1_1AnalyzeIDCommandError = function (output, context) { r
|
|
|
354
355
|
case 19: throw _d.sent();
|
|
355
356
|
case 20:
|
|
356
357
|
parsedBody = parsedOutput.body;
|
|
358
|
+
$metadata = deserializeMetadata(output);
|
|
359
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
357
360
|
response = new __BaseException({
|
|
358
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
361
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
359
362
|
$fault: "client",
|
|
360
|
-
$metadata:
|
|
363
|
+
$metadata: $metadata,
|
|
361
364
|
});
|
|
362
365
|
throw __decorateServiceException(response, parsedBody);
|
|
363
366
|
}
|
|
@@ -382,7 +385,7 @@ export var deserializeAws_json1_1DetectDocumentTextCommand = function (output, c
|
|
|
382
385
|
});
|
|
383
386
|
}); };
|
|
384
387
|
var deserializeAws_json1_1DetectDocumentTextCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
385
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
388
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
386
389
|
var _c;
|
|
387
390
|
return __generator(this, function (_d) {
|
|
388
391
|
switch (_d.label) {
|
|
@@ -392,7 +395,6 @@ var deserializeAws_json1_1DetectDocumentTextCommandError = function (output, con
|
|
|
392
395
|
return [4, parseBody(output.body, context)];
|
|
393
396
|
case 1:
|
|
394
397
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
395
|
-
errorCode = "UnknownError";
|
|
396
398
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
397
399
|
_b = errorCode;
|
|
398
400
|
switch (_b) {
|
|
@@ -436,10 +438,12 @@ var deserializeAws_json1_1DetectDocumentTextCommandError = function (output, con
|
|
|
436
438
|
case 19: throw _d.sent();
|
|
437
439
|
case 20:
|
|
438
440
|
parsedBody = parsedOutput.body;
|
|
441
|
+
$metadata = deserializeMetadata(output);
|
|
442
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
439
443
|
response = new __BaseException({
|
|
440
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
444
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
441
445
|
$fault: "client",
|
|
442
|
-
$metadata:
|
|
446
|
+
$metadata: $metadata,
|
|
443
447
|
});
|
|
444
448
|
throw __decorateServiceException(response, parsedBody);
|
|
445
449
|
}
|
|
@@ -464,7 +468,7 @@ export var deserializeAws_json1_1GetDocumentAnalysisCommand = function (output,
|
|
|
464
468
|
});
|
|
465
469
|
}); };
|
|
466
470
|
var deserializeAws_json1_1GetDocumentAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
467
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
471
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
468
472
|
var _c;
|
|
469
473
|
return __generator(this, function (_d) {
|
|
470
474
|
switch (_d.label) {
|
|
@@ -474,7 +478,6 @@ var deserializeAws_json1_1GetDocumentAnalysisCommandError = function (output, co
|
|
|
474
478
|
return [4, parseBody(output.body, context)];
|
|
475
479
|
case 1:
|
|
476
480
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
477
|
-
errorCode = "UnknownError";
|
|
478
481
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
479
482
|
_b = errorCode;
|
|
480
483
|
switch (_b) {
|
|
@@ -514,10 +517,12 @@ var deserializeAws_json1_1GetDocumentAnalysisCommandError = function (output, co
|
|
|
514
517
|
case 17: throw _d.sent();
|
|
515
518
|
case 18:
|
|
516
519
|
parsedBody = parsedOutput.body;
|
|
520
|
+
$metadata = deserializeMetadata(output);
|
|
521
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
517
522
|
response = new __BaseException({
|
|
518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
523
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
519
524
|
$fault: "client",
|
|
520
|
-
$metadata:
|
|
525
|
+
$metadata: $metadata,
|
|
521
526
|
});
|
|
522
527
|
throw __decorateServiceException(response, parsedBody);
|
|
523
528
|
}
|
|
@@ -542,7 +547,7 @@ export var deserializeAws_json1_1GetDocumentTextDetectionCommand = function (out
|
|
|
542
547
|
});
|
|
543
548
|
}); };
|
|
544
549
|
var deserializeAws_json1_1GetDocumentTextDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
545
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
550
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
546
551
|
var _c;
|
|
547
552
|
return __generator(this, function (_d) {
|
|
548
553
|
switch (_d.label) {
|
|
@@ -552,7 +557,6 @@ var deserializeAws_json1_1GetDocumentTextDetectionCommandError = function (outpu
|
|
|
552
557
|
return [4, parseBody(output.body, context)];
|
|
553
558
|
case 1:
|
|
554
559
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
555
|
-
errorCode = "UnknownError";
|
|
556
560
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
557
561
|
_b = errorCode;
|
|
558
562
|
switch (_b) {
|
|
@@ -592,10 +596,12 @@ var deserializeAws_json1_1GetDocumentTextDetectionCommandError = function (outpu
|
|
|
592
596
|
case 17: throw _d.sent();
|
|
593
597
|
case 18:
|
|
594
598
|
parsedBody = parsedOutput.body;
|
|
599
|
+
$metadata = deserializeMetadata(output);
|
|
600
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
595
601
|
response = new __BaseException({
|
|
596
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
602
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
597
603
|
$fault: "client",
|
|
598
|
-
$metadata:
|
|
604
|
+
$metadata: $metadata,
|
|
599
605
|
});
|
|
600
606
|
throw __decorateServiceException(response, parsedBody);
|
|
601
607
|
}
|
|
@@ -620,7 +626,7 @@ export var deserializeAws_json1_1GetExpenseAnalysisCommand = function (output, c
|
|
|
620
626
|
});
|
|
621
627
|
}); };
|
|
622
628
|
var deserializeAws_json1_1GetExpenseAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
623
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
629
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
624
630
|
var _c;
|
|
625
631
|
return __generator(this, function (_d) {
|
|
626
632
|
switch (_d.label) {
|
|
@@ -630,7 +636,6 @@ var deserializeAws_json1_1GetExpenseAnalysisCommandError = function (output, con
|
|
|
630
636
|
return [4, parseBody(output.body, context)];
|
|
631
637
|
case 1:
|
|
632
638
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
633
|
-
errorCode = "UnknownError";
|
|
634
639
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
635
640
|
_b = errorCode;
|
|
636
641
|
switch (_b) {
|
|
@@ -670,10 +675,12 @@ var deserializeAws_json1_1GetExpenseAnalysisCommandError = function (output, con
|
|
|
670
675
|
case 17: throw _d.sent();
|
|
671
676
|
case 18:
|
|
672
677
|
parsedBody = parsedOutput.body;
|
|
678
|
+
$metadata = deserializeMetadata(output);
|
|
679
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
673
680
|
response = new __BaseException({
|
|
674
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
681
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
675
682
|
$fault: "client",
|
|
676
|
-
$metadata:
|
|
683
|
+
$metadata: $metadata,
|
|
677
684
|
});
|
|
678
685
|
throw __decorateServiceException(response, parsedBody);
|
|
679
686
|
}
|
|
@@ -698,7 +705,7 @@ export var deserializeAws_json1_1StartDocumentAnalysisCommand = function (output
|
|
|
698
705
|
});
|
|
699
706
|
}); };
|
|
700
707
|
var deserializeAws_json1_1StartDocumentAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
701
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
708
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
702
709
|
var _c;
|
|
703
710
|
return __generator(this, function (_d) {
|
|
704
711
|
switch (_d.label) {
|
|
@@ -708,7 +715,6 @@ var deserializeAws_json1_1StartDocumentAnalysisCommandError = function (output,
|
|
|
708
715
|
return [4, parseBody(output.body, context)];
|
|
709
716
|
case 1:
|
|
710
717
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
711
|
-
errorCode = "UnknownError";
|
|
712
718
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
713
719
|
_b = errorCode;
|
|
714
720
|
switch (_b) {
|
|
@@ -764,10 +770,12 @@ var deserializeAws_json1_1StartDocumentAnalysisCommandError = function (output,
|
|
|
764
770
|
case 25: throw _d.sent();
|
|
765
771
|
case 26:
|
|
766
772
|
parsedBody = parsedOutput.body;
|
|
773
|
+
$metadata = deserializeMetadata(output);
|
|
774
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
767
775
|
response = new __BaseException({
|
|
768
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
776
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
769
777
|
$fault: "client",
|
|
770
|
-
$metadata:
|
|
778
|
+
$metadata: $metadata,
|
|
771
779
|
});
|
|
772
780
|
throw __decorateServiceException(response, parsedBody);
|
|
773
781
|
}
|
|
@@ -792,7 +800,7 @@ export var deserializeAws_json1_1StartDocumentTextDetectionCommand = function (o
|
|
|
792
800
|
});
|
|
793
801
|
}); };
|
|
794
802
|
var deserializeAws_json1_1StartDocumentTextDetectionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
795
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
803
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
796
804
|
var _c;
|
|
797
805
|
return __generator(this, function (_d) {
|
|
798
806
|
switch (_d.label) {
|
|
@@ -802,7 +810,6 @@ var deserializeAws_json1_1StartDocumentTextDetectionCommandError = function (out
|
|
|
802
810
|
return [4, parseBody(output.body, context)];
|
|
803
811
|
case 1:
|
|
804
812
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
805
|
-
errorCode = "UnknownError";
|
|
806
813
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
807
814
|
_b = errorCode;
|
|
808
815
|
switch (_b) {
|
|
@@ -858,10 +865,12 @@ var deserializeAws_json1_1StartDocumentTextDetectionCommandError = function (out
|
|
|
858
865
|
case 25: throw _d.sent();
|
|
859
866
|
case 26:
|
|
860
867
|
parsedBody = parsedOutput.body;
|
|
868
|
+
$metadata = deserializeMetadata(output);
|
|
869
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
861
870
|
response = new __BaseException({
|
|
862
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
871
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
863
872
|
$fault: "client",
|
|
864
|
-
$metadata:
|
|
873
|
+
$metadata: $metadata,
|
|
865
874
|
});
|
|
866
875
|
throw __decorateServiceException(response, parsedBody);
|
|
867
876
|
}
|
|
@@ -886,7 +895,7 @@ export var deserializeAws_json1_1StartExpenseAnalysisCommand = function (output,
|
|
|
886
895
|
});
|
|
887
896
|
}); };
|
|
888
897
|
var deserializeAws_json1_1StartExpenseAnalysisCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
889
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
898
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
890
899
|
var _c;
|
|
891
900
|
return __generator(this, function (_d) {
|
|
892
901
|
switch (_d.label) {
|
|
@@ -896,7 +905,6 @@ var deserializeAws_json1_1StartExpenseAnalysisCommandError = function (output, c
|
|
|
896
905
|
return [4, parseBody(output.body, context)];
|
|
897
906
|
case 1:
|
|
898
907
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
899
|
-
errorCode = "UnknownError";
|
|
900
908
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
901
909
|
_b = errorCode;
|
|
902
910
|
switch (_b) {
|
|
@@ -952,10 +960,12 @@ var deserializeAws_json1_1StartExpenseAnalysisCommandError = function (output, c
|
|
|
952
960
|
case 25: throw _d.sent();
|
|
953
961
|
case 26:
|
|
954
962
|
parsedBody = parsedOutput.body;
|
|
963
|
+
$metadata = deserializeMetadata(output);
|
|
964
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
955
965
|
response = new __BaseException({
|
|
956
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
966
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
957
967
|
$fault: "client",
|
|
958
|
-
$metadata:
|
|
968
|
+
$metadata: $metadata,
|
|
959
969
|
});
|
|
960
970
|
throw __decorateServiceException(response, parsedBody);
|
|
961
971
|
}
|
|
@@ -1088,23 +1098,17 @@ var deserializeAws_json1_1UnsupportedDocumentExceptionResponse = function (parse
|
|
|
1088
1098
|
});
|
|
1089
1099
|
}); };
|
|
1090
1100
|
var serializeAws_json1_1AnalyzeDocumentRequest = function (input, context) {
|
|
1091
|
-
return __assign(__assign(__assign(__assign({}, (input.Document
|
|
1092
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) })), (input.FeatureTypes !== undefined &&
|
|
1093
|
-
input.FeatureTypes !== null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.HumanLoopConfig !== undefined &&
|
|
1094
|
-
input.HumanLoopConfig !== null && {
|
|
1101
|
+
return __assign(__assign(__assign(__assign({}, (input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) })), (input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.HumanLoopConfig != null && {
|
|
1095
1102
|
HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
|
|
1096
|
-
})), (input.QueriesConfig
|
|
1097
|
-
input.QueriesConfig !== null && {
|
|
1103
|
+
})), (input.QueriesConfig != null && {
|
|
1098
1104
|
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
1099
1105
|
}));
|
|
1100
1106
|
};
|
|
1101
1107
|
var serializeAws_json1_1AnalyzeExpenseRequest = function (input, context) {
|
|
1102
|
-
return __assign({}, (input.Document
|
|
1103
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1108
|
+
return __assign({}, (input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1104
1109
|
};
|
|
1105
1110
|
var serializeAws_json1_1AnalyzeIDRequest = function (input, context) {
|
|
1106
|
-
return __assign({}, (input.DocumentPages
|
|
1107
|
-
input.DocumentPages !== null && {
|
|
1111
|
+
return __assign({}, (input.DocumentPages != null && {
|
|
1108
1112
|
DocumentPages: serializeAws_json1_1DocumentPages(input.DocumentPages, context),
|
|
1109
1113
|
}));
|
|
1110
1114
|
};
|
|
@@ -1119,16 +1123,13 @@ var serializeAws_json1_1ContentClassifiers = function (input, context) {
|
|
|
1119
1123
|
});
|
|
1120
1124
|
};
|
|
1121
1125
|
var serializeAws_json1_1DetectDocumentTextRequest = function (input, context) {
|
|
1122
|
-
return __assign({}, (input.Document
|
|
1123
|
-
input.Document !== null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1126
|
+
return __assign({}, (input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }));
|
|
1124
1127
|
};
|
|
1125
1128
|
var serializeAws_json1_1Document = function (input, context) {
|
|
1126
|
-
return __assign(__assign({}, (input.Bytes
|
|
1127
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1129
|
+
return __assign(__assign({}, (input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) })), (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1128
1130
|
};
|
|
1129
1131
|
var serializeAws_json1_1DocumentLocation = function (input, context) {
|
|
1130
|
-
return __assign({}, (input.S3Object
|
|
1131
|
-
input.S3Object !== null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1132
|
+
return __assign({}, (input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }));
|
|
1132
1133
|
};
|
|
1133
1134
|
var serializeAws_json1_1DocumentPages = function (input, context) {
|
|
1134
1135
|
return input
|
|
@@ -1151,32 +1152,29 @@ var serializeAws_json1_1FeatureTypes = function (input, context) {
|
|
|
1151
1152
|
});
|
|
1152
1153
|
};
|
|
1153
1154
|
var serializeAws_json1_1GetDocumentAnalysisRequest = function (input, context) {
|
|
1154
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
1155
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1155
1156
|
};
|
|
1156
1157
|
var serializeAws_json1_1GetDocumentTextDetectionRequest = function (input, context) {
|
|
1157
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
1158
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1158
1159
|
};
|
|
1159
1160
|
var serializeAws_json1_1GetExpenseAnalysisRequest = function (input, context) {
|
|
1160
|
-
return __assign(__assign(__assign({}, (input.JobId
|
|
1161
|
+
return __assign(__assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
1161
1162
|
};
|
|
1162
1163
|
var serializeAws_json1_1HumanLoopConfig = function (input, context) {
|
|
1163
|
-
return __assign(__assign(__assign({}, (input.DataAttributes
|
|
1164
|
-
input.DataAttributes !== null && {
|
|
1164
|
+
return __assign(__assign(__assign({}, (input.DataAttributes != null && {
|
|
1165
1165
|
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
1166
|
-
})), (input.FlowDefinitionArn
|
|
1167
|
-
input.FlowDefinitionArn !== null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName !== undefined && input.HumanLoopName !== null && { HumanLoopName: input.HumanLoopName }));
|
|
1166
|
+
})), (input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn })), (input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }));
|
|
1168
1167
|
};
|
|
1169
1168
|
var serializeAws_json1_1HumanLoopDataAttributes = function (input, context) {
|
|
1170
|
-
return __assign({}, (input.ContentClassifiers
|
|
1171
|
-
input.ContentClassifiers !== null && {
|
|
1169
|
+
return __assign({}, (input.ContentClassifiers != null && {
|
|
1172
1170
|
ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
|
|
1173
1171
|
}));
|
|
1174
1172
|
};
|
|
1175
1173
|
var serializeAws_json1_1NotificationChannel = function (input, context) {
|
|
1176
|
-
return __assign(__assign({}, (input.RoleArn
|
|
1174
|
+
return __assign(__assign({}, (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }));
|
|
1177
1175
|
};
|
|
1178
1176
|
var serializeAws_json1_1OutputConfig = function (input, context) {
|
|
1179
|
-
return __assign(__assign({}, (input.S3Bucket
|
|
1177
|
+
return __assign(__assign({}, (input.S3Bucket != null && { S3Bucket: input.S3Bucket })), (input.S3Prefix != null && { S3Prefix: input.S3Prefix }));
|
|
1180
1178
|
};
|
|
1181
1179
|
var serializeAws_json1_1Queries = function (input, context) {
|
|
1182
1180
|
return input
|
|
@@ -1189,12 +1187,10 @@ var serializeAws_json1_1Queries = function (input, context) {
|
|
|
1189
1187
|
});
|
|
1190
1188
|
};
|
|
1191
1189
|
var serializeAws_json1_1QueriesConfig = function (input, context) {
|
|
1192
|
-
return __assign({}, (input.Queries
|
|
1193
|
-
input.Queries !== null && { Queries: serializeAws_json1_1Queries(input.Queries, context) }));
|
|
1190
|
+
return __assign({}, (input.Queries != null && { Queries: serializeAws_json1_1Queries(input.Queries, context) }));
|
|
1194
1191
|
};
|
|
1195
1192
|
var serializeAws_json1_1Query = function (input, context) {
|
|
1196
|
-
return __assign(__assign(__assign({}, (input.Alias
|
|
1197
|
-
input.Pages !== null && { Pages: serializeAws_json1_1QueryPages(input.Pages, context) })), (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
|
|
1193
|
+
return __assign(__assign(__assign({}, (input.Alias != null && { Alias: input.Alias })), (input.Pages != null && { Pages: serializeAws_json1_1QueryPages(input.Pages, context) })), (input.Text != null && { Text: input.Text }));
|
|
1198
1194
|
};
|
|
1199
1195
|
var serializeAws_json1_1QueryPages = function (input, context) {
|
|
1200
1196
|
return input
|
|
@@ -1207,44 +1203,30 @@ var serializeAws_json1_1QueryPages = function (input, context) {
|
|
|
1207
1203
|
});
|
|
1208
1204
|
};
|
|
1209
1205
|
var serializeAws_json1_1S3Object = function (input, context) {
|
|
1210
|
-
return __assign(__assign(__assign({}, (input.Bucket
|
|
1206
|
+
return __assign(__assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.Name != null && { Name: input.Name })), (input.Version != null && { Version: input.Version }));
|
|
1211
1207
|
};
|
|
1212
1208
|
var serializeAws_json1_1StartDocumentAnalysisRequest = function (input, context) {
|
|
1213
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
1214
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined &&
|
|
1215
|
-
input.DocumentLocation !== null && {
|
|
1209
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation != null && {
|
|
1216
1210
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1217
|
-
})), (input.FeatureTypes
|
|
1218
|
-
input.FeatureTypes !== null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.JobTag !== undefined && input.JobTag !== null && { JobTag: input.JobTag })), (input.KMSKeyId !== undefined && input.KMSKeyId !== null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel !== undefined &&
|
|
1219
|
-
input.NotificationChannel !== null && {
|
|
1211
|
+
})), (input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) })), (input.JobTag != null && { JobTag: input.JobTag })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel != null && {
|
|
1220
1212
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1221
|
-
})), (input.OutputConfig
|
|
1222
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.QueriesConfig !== undefined &&
|
|
1223
|
-
input.QueriesConfig !== null && {
|
|
1213
|
+
})), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) })), (input.QueriesConfig != null && {
|
|
1224
1214
|
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
1225
1215
|
}));
|
|
1226
1216
|
};
|
|
1227
1217
|
var serializeAws_json1_1StartDocumentTextDetectionRequest = function (input, context) {
|
|
1228
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
1229
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined &&
|
|
1230
|
-
input.DocumentLocation !== null && {
|
|
1218
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation != null && {
|
|
1231
1219
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1232
|
-
})), (input.JobTag
|
|
1233
|
-
input.NotificationChannel !== null && {
|
|
1220
|
+
})), (input.JobTag != null && { JobTag: input.JobTag })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel != null && {
|
|
1234
1221
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1235
|
-
})), (input.OutputConfig
|
|
1236
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1222
|
+
})), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1237
1223
|
};
|
|
1238
1224
|
var serializeAws_json1_1StartExpenseAnalysisRequest = function (input, context) {
|
|
1239
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken
|
|
1240
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation !== undefined &&
|
|
1241
|
-
input.DocumentLocation !== null && {
|
|
1225
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.DocumentLocation != null && {
|
|
1242
1226
|
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1243
|
-
})), (input.JobTag
|
|
1244
|
-
input.NotificationChannel !== null && {
|
|
1227
|
+
})), (input.JobTag != null && { JobTag: input.JobTag })), (input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId })), (input.NotificationChannel != null && {
|
|
1245
1228
|
NotificationChannel: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
|
|
1246
|
-
})), (input.OutputConfig
|
|
1247
|
-
input.OutputConfig !== null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1229
|
+
})), (input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }));
|
|
1248
1230
|
};
|
|
1249
1231
|
var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
1250
1232
|
return {
|
|
@@ -1255,23 +1237,21 @@ var deserializeAws_json1_1AccessDeniedException = function (output, context) {
|
|
|
1255
1237
|
var deserializeAws_json1_1AnalyzeDocumentResponse = function (output, context) {
|
|
1256
1238
|
return {
|
|
1257
1239
|
AnalyzeDocumentModelVersion: __expectString(output.AnalyzeDocumentModelVersion),
|
|
1258
|
-
Blocks: output.Blocks
|
|
1259
|
-
|
|
1260
|
-
: undefined,
|
|
1261
|
-
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1240
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1241
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1262
1242
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1263
1243
|
: undefined,
|
|
1264
|
-
HumanLoopActivationOutput: output.HumanLoopActivationOutput
|
|
1244
|
+
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
1265
1245
|
? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
1266
1246
|
: undefined,
|
|
1267
1247
|
};
|
|
1268
1248
|
};
|
|
1269
1249
|
var deserializeAws_json1_1AnalyzeExpenseResponse = function (output, context) {
|
|
1270
1250
|
return {
|
|
1271
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1251
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1272
1252
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1273
1253
|
: undefined,
|
|
1274
|
-
ExpenseDocuments: output.ExpenseDocuments
|
|
1254
|
+
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1275
1255
|
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1276
1256
|
: undefined,
|
|
1277
1257
|
};
|
|
@@ -1279,7 +1259,7 @@ var deserializeAws_json1_1AnalyzeExpenseResponse = function (output, context) {
|
|
|
1279
1259
|
var deserializeAws_json1_1AnalyzeIDDetections = function (output, context) {
|
|
1280
1260
|
return {
|
|
1281
1261
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
1282
|
-
NormalizedValue: output.NormalizedValue
|
|
1262
|
+
NormalizedValue: output.NormalizedValue != null
|
|
1283
1263
|
? deserializeAws_json1_1NormalizedValue(output.NormalizedValue, context)
|
|
1284
1264
|
: undefined,
|
|
1285
1265
|
Text: __expectString(output.Text),
|
|
@@ -1288,10 +1268,10 @@ var deserializeAws_json1_1AnalyzeIDDetections = function (output, context) {
|
|
|
1288
1268
|
var deserializeAws_json1_1AnalyzeIDResponse = function (output, context) {
|
|
1289
1269
|
return {
|
|
1290
1270
|
AnalyzeIDModelVersion: __expectString(output.AnalyzeIDModelVersion),
|
|
1291
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1271
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1292
1272
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1293
1273
|
: undefined,
|
|
1294
|
-
IdentityDocuments: output.IdentityDocuments
|
|
1274
|
+
IdentityDocuments: output.IdentityDocuments != null
|
|
1295
1275
|
? deserializeAws_json1_1IdentityDocumentList(output.IdentityDocuments, context)
|
|
1296
1276
|
: undefined,
|
|
1297
1277
|
};
|
|
@@ -1308,20 +1288,12 @@ var deserializeAws_json1_1Block = function (output, context) {
|
|
|
1308
1288
|
ColumnIndex: __expectInt32(output.ColumnIndex),
|
|
1309
1289
|
ColumnSpan: __expectInt32(output.ColumnSpan),
|
|
1310
1290
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
1311
|
-
EntityTypes: output.EntityTypes
|
|
1312
|
-
|
|
1313
|
-
: undefined,
|
|
1314
|
-
Geometry: output.Geometry !== undefined && output.Geometry !== null
|
|
1315
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1316
|
-
: undefined,
|
|
1291
|
+
EntityTypes: output.EntityTypes != null ? deserializeAws_json1_1EntityTypes(output.EntityTypes, context) : undefined,
|
|
1292
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1317
1293
|
Id: __expectString(output.Id),
|
|
1318
1294
|
Page: __expectInt32(output.Page),
|
|
1319
|
-
Query: output.Query
|
|
1320
|
-
|
|
1321
|
-
: undefined,
|
|
1322
|
-
Relationships: output.Relationships !== undefined && output.Relationships !== null
|
|
1323
|
-
? deserializeAws_json1_1RelationshipList(output.Relationships, context)
|
|
1324
|
-
: undefined,
|
|
1295
|
+
Query: output.Query != null ? deserializeAws_json1_1Query(output.Query, context) : undefined,
|
|
1296
|
+
Relationships: output.Relationships != null ? deserializeAws_json1_1RelationshipList(output.Relationships, context) : undefined,
|
|
1325
1297
|
RowIndex: __expectInt32(output.RowIndex),
|
|
1326
1298
|
RowSpan: __expectInt32(output.RowSpan),
|
|
1327
1299
|
SelectionStatus: __expectString(output.SelectionStatus),
|
|
@@ -1350,11 +1322,9 @@ var deserializeAws_json1_1BoundingBox = function (output, context) {
|
|
|
1350
1322
|
};
|
|
1351
1323
|
var deserializeAws_json1_1DetectDocumentTextResponse = function (output, context) {
|
|
1352
1324
|
return {
|
|
1353
|
-
Blocks: output.Blocks
|
|
1354
|
-
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1355
|
-
: undefined,
|
|
1325
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1356
1326
|
DetectDocumentTextModelVersion: __expectString(output.DetectDocumentTextModelVersion),
|
|
1357
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1327
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1358
1328
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1359
1329
|
: undefined,
|
|
1360
1330
|
};
|
|
@@ -1384,21 +1354,17 @@ var deserializeAws_json1_1EntityTypes = function (output, context) {
|
|
|
1384
1354
|
var deserializeAws_json1_1ExpenseDetection = function (output, context) {
|
|
1385
1355
|
return {
|
|
1386
1356
|
Confidence: __limitedParseFloat32(output.Confidence),
|
|
1387
|
-
Geometry: output.Geometry
|
|
1388
|
-
? deserializeAws_json1_1Geometry(output.Geometry, context)
|
|
1389
|
-
: undefined,
|
|
1357
|
+
Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
|
|
1390
1358
|
Text: __expectString(output.Text),
|
|
1391
1359
|
};
|
|
1392
1360
|
};
|
|
1393
1361
|
var deserializeAws_json1_1ExpenseDocument = function (output, context) {
|
|
1394
1362
|
return {
|
|
1395
1363
|
ExpenseIndex: __expectInt32(output.ExpenseIndex),
|
|
1396
|
-
LineItemGroups: output.LineItemGroups
|
|
1364
|
+
LineItemGroups: output.LineItemGroups != null
|
|
1397
1365
|
? deserializeAws_json1_1LineItemGroupList(output.LineItemGroups, context)
|
|
1398
1366
|
: undefined,
|
|
1399
|
-
SummaryFields: output.SummaryFields
|
|
1400
|
-
? deserializeAws_json1_1ExpenseFieldList(output.SummaryFields, context)
|
|
1401
|
-
: undefined,
|
|
1367
|
+
SummaryFields: output.SummaryFields != null ? deserializeAws_json1_1ExpenseFieldList(output.SummaryFields, context) : undefined,
|
|
1402
1368
|
};
|
|
1403
1369
|
};
|
|
1404
1370
|
var deserializeAws_json1_1ExpenseDocumentList = function (output, context) {
|
|
@@ -1414,14 +1380,12 @@ var deserializeAws_json1_1ExpenseDocumentList = function (output, context) {
|
|
|
1414
1380
|
};
|
|
1415
1381
|
var deserializeAws_json1_1ExpenseField = function (output, context) {
|
|
1416
1382
|
return {
|
|
1417
|
-
LabelDetection: output.LabelDetection
|
|
1383
|
+
LabelDetection: output.LabelDetection != null
|
|
1418
1384
|
? deserializeAws_json1_1ExpenseDetection(output.LabelDetection, context)
|
|
1419
1385
|
: undefined,
|
|
1420
1386
|
PageNumber: __expectInt32(output.PageNumber),
|
|
1421
|
-
Type: output.Type
|
|
1422
|
-
|
|
1423
|
-
: undefined,
|
|
1424
|
-
ValueDetection: output.ValueDetection !== undefined && output.ValueDetection !== null
|
|
1387
|
+
Type: output.Type != null ? deserializeAws_json1_1ExpenseType(output.Type, context) : undefined,
|
|
1388
|
+
ValueDetection: output.ValueDetection != null
|
|
1425
1389
|
? deserializeAws_json1_1ExpenseDetection(output.ValueDetection, context)
|
|
1426
1390
|
: undefined,
|
|
1427
1391
|
};
|
|
@@ -1445,72 +1409,57 @@ var deserializeAws_json1_1ExpenseType = function (output, context) {
|
|
|
1445
1409
|
};
|
|
1446
1410
|
var deserializeAws_json1_1Geometry = function (output, context) {
|
|
1447
1411
|
return {
|
|
1448
|
-
BoundingBox: output.BoundingBox
|
|
1449
|
-
|
|
1450
|
-
: undefined,
|
|
1451
|
-
Polygon: output.Polygon !== undefined && output.Polygon !== null
|
|
1452
|
-
? deserializeAws_json1_1Polygon(output.Polygon, context)
|
|
1453
|
-
: undefined,
|
|
1412
|
+
BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
|
|
1413
|
+
Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
|
|
1454
1414
|
};
|
|
1455
1415
|
};
|
|
1456
1416
|
var deserializeAws_json1_1GetDocumentAnalysisResponse = function (output, context) {
|
|
1457
1417
|
return {
|
|
1458
1418
|
AnalyzeDocumentModelVersion: __expectString(output.AnalyzeDocumentModelVersion),
|
|
1459
|
-
Blocks: output.Blocks
|
|
1460
|
-
|
|
1461
|
-
: undefined,
|
|
1462
|
-
DocumentMetadata: output.DocumentMetadata !== undefined && output.DocumentMetadata !== null
|
|
1419
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1420
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1463
1421
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1464
1422
|
: undefined,
|
|
1465
1423
|
JobStatus: __expectString(output.JobStatus),
|
|
1466
1424
|
NextToken: __expectString(output.NextToken),
|
|
1467
1425
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1468
|
-
Warnings: output.Warnings
|
|
1469
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1470
|
-
: undefined,
|
|
1426
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1471
1427
|
};
|
|
1472
1428
|
};
|
|
1473
1429
|
var deserializeAws_json1_1GetDocumentTextDetectionResponse = function (output, context) {
|
|
1474
1430
|
return {
|
|
1475
|
-
Blocks: output.Blocks
|
|
1476
|
-
? deserializeAws_json1_1BlockList(output.Blocks, context)
|
|
1477
|
-
: undefined,
|
|
1431
|
+
Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
|
|
1478
1432
|
DetectDocumentTextModelVersion: __expectString(output.DetectDocumentTextModelVersion),
|
|
1479
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1433
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1480
1434
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1481
1435
|
: undefined,
|
|
1482
1436
|
JobStatus: __expectString(output.JobStatus),
|
|
1483
1437
|
NextToken: __expectString(output.NextToken),
|
|
1484
1438
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1485
|
-
Warnings: output.Warnings
|
|
1486
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1487
|
-
: undefined,
|
|
1439
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1488
1440
|
};
|
|
1489
1441
|
};
|
|
1490
1442
|
var deserializeAws_json1_1GetExpenseAnalysisResponse = function (output, context) {
|
|
1491
1443
|
return {
|
|
1492
1444
|
AnalyzeExpenseModelVersion: __expectString(output.AnalyzeExpenseModelVersion),
|
|
1493
|
-
DocumentMetadata: output.DocumentMetadata
|
|
1445
|
+
DocumentMetadata: output.DocumentMetadata != null
|
|
1494
1446
|
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1495
1447
|
: undefined,
|
|
1496
|
-
ExpenseDocuments: output.ExpenseDocuments
|
|
1448
|
+
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1497
1449
|
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1498
1450
|
: undefined,
|
|
1499
1451
|
JobStatus: __expectString(output.JobStatus),
|
|
1500
1452
|
NextToken: __expectString(output.NextToken),
|
|
1501
1453
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1502
|
-
Warnings: output.Warnings
|
|
1503
|
-
? deserializeAws_json1_1Warnings(output.Warnings, context)
|
|
1504
|
-
: undefined,
|
|
1454
|
+
Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
|
|
1505
1455
|
};
|
|
1506
1456
|
};
|
|
1507
1457
|
var deserializeAws_json1_1HumanLoopActivationOutput = function (output, context) {
|
|
1508
1458
|
return {
|
|
1509
|
-
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults
|
|
1510
|
-
output.HumanLoopActivationConditionsEvaluationResults !== null
|
|
1459
|
+
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
1511
1460
|
? new __LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
1512
1461
|
: undefined,
|
|
1513
|
-
HumanLoopActivationReasons: output.HumanLoopActivationReasons
|
|
1462
|
+
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
1514
1463
|
? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
1515
1464
|
: undefined,
|
|
1516
1465
|
HumanLoopArn: __expectString(output.HumanLoopArn),
|
|
@@ -1545,17 +1494,15 @@ var deserializeAws_json1_1IdempotentParameterMismatchException = function (outpu
|
|
|
1545
1494
|
var deserializeAws_json1_1IdentityDocument = function (output, context) {
|
|
1546
1495
|
return {
|
|
1547
1496
|
DocumentIndex: __expectInt32(output.DocumentIndex),
|
|
1548
|
-
IdentityDocumentFields: output.IdentityDocumentFields
|
|
1497
|
+
IdentityDocumentFields: output.IdentityDocumentFields != null
|
|
1549
1498
|
? deserializeAws_json1_1IdentityDocumentFieldList(output.IdentityDocumentFields, context)
|
|
1550
1499
|
: undefined,
|
|
1551
1500
|
};
|
|
1552
1501
|
};
|
|
1553
1502
|
var deserializeAws_json1_1IdentityDocumentField = function (output, context) {
|
|
1554
1503
|
return {
|
|
1555
|
-
Type: output.Type
|
|
1556
|
-
|
|
1557
|
-
: undefined,
|
|
1558
|
-
ValueDetection: output.ValueDetection !== undefined && output.ValueDetection !== null
|
|
1504
|
+
Type: output.Type != null ? deserializeAws_json1_1AnalyzeIDDetections(output.Type, context) : undefined,
|
|
1505
|
+
ValueDetection: output.ValueDetection != null
|
|
1559
1506
|
? deserializeAws_json1_1AnalyzeIDDetections(output.ValueDetection, context)
|
|
1560
1507
|
: undefined,
|
|
1561
1508
|
};
|
|
@@ -1631,7 +1578,7 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
1631
1578
|
};
|
|
1632
1579
|
var deserializeAws_json1_1LineItemFields = function (output, context) {
|
|
1633
1580
|
return {
|
|
1634
|
-
LineItemExpenseFields: output.LineItemExpenseFields
|
|
1581
|
+
LineItemExpenseFields: output.LineItemExpenseFields != null
|
|
1635
1582
|
? deserializeAws_json1_1ExpenseFieldList(output.LineItemExpenseFields, context)
|
|
1636
1583
|
: undefined,
|
|
1637
1584
|
};
|
|
@@ -1639,9 +1586,7 @@ var deserializeAws_json1_1LineItemFields = function (output, context) {
|
|
|
1639
1586
|
var deserializeAws_json1_1LineItemGroup = function (output, context) {
|
|
1640
1587
|
return {
|
|
1641
1588
|
LineItemGroupIndex: __expectInt32(output.LineItemGroupIndex),
|
|
1642
|
-
LineItems: output.LineItems
|
|
1643
|
-
? deserializeAws_json1_1LineItemList(output.LineItems, context)
|
|
1644
|
-
: undefined,
|
|
1589
|
+
LineItems: output.LineItems != null ? deserializeAws_json1_1LineItemList(output.LineItems, context) : undefined,
|
|
1645
1590
|
};
|
|
1646
1591
|
};
|
|
1647
1592
|
var deserializeAws_json1_1LineItemGroupList = function (output, context) {
|
|
@@ -1709,9 +1654,7 @@ var deserializeAws_json1_1ProvisionedThroughputExceededException = function (out
|
|
|
1709
1654
|
var deserializeAws_json1_1Query = function (output, context) {
|
|
1710
1655
|
return {
|
|
1711
1656
|
Alias: __expectString(output.Alias),
|
|
1712
|
-
Pages: output.Pages
|
|
1713
|
-
? deserializeAws_json1_1QueryPages(output.Pages, context)
|
|
1714
|
-
: undefined,
|
|
1657
|
+
Pages: output.Pages != null ? deserializeAws_json1_1QueryPages(output.Pages, context) : undefined,
|
|
1715
1658
|
Text: __expectString(output.Text),
|
|
1716
1659
|
};
|
|
1717
1660
|
};
|
|
@@ -1728,7 +1671,7 @@ var deserializeAws_json1_1QueryPages = function (output, context) {
|
|
|
1728
1671
|
};
|
|
1729
1672
|
var deserializeAws_json1_1Relationship = function (output, context) {
|
|
1730
1673
|
return {
|
|
1731
|
-
Ids: output.Ids
|
|
1674
|
+
Ids: output.Ids != null ? deserializeAws_json1_1IdList(output.Ids, context) : undefined,
|
|
1732
1675
|
Type: __expectString(output.Type),
|
|
1733
1676
|
};
|
|
1734
1677
|
};
|
|
@@ -1773,9 +1716,7 @@ var deserializeAws_json1_1UnsupportedDocumentException = function (output, conte
|
|
|
1773
1716
|
var deserializeAws_json1_1Warning = function (output, context) {
|
|
1774
1717
|
return {
|
|
1775
1718
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1776
|
-
Pages: output.Pages
|
|
1777
|
-
? deserializeAws_json1_1Pages(output.Pages, context)
|
|
1778
|
-
: undefined,
|
|
1719
|
+
Pages: output.Pages != null ? deserializeAws_json1_1Pages(output.Pages, context) : undefined,
|
|
1779
1720
|
};
|
|
1780
1721
|
};
|
|
1781
1722
|
var deserializeAws_json1_1Warnings = function (output, context) {
|
|
@@ -1863,5 +1804,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1863
1804
|
if (data["__type"] !== undefined) {
|
|
1864
1805
|
return sanitizeErrorCode(data["__type"]);
|
|
1865
1806
|
}
|
|
1866
|
-
return "";
|
|
1867
1807
|
};
|