@aws-sdk/client-textract 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/AnalyzeDocumentCommand.js +2 -2
- package/dist-cjs/commands/AnalyzeExpenseCommand.js +2 -2
- package/dist-cjs/commands/AnalyzeIDCommand.js +2 -2
- package/dist-cjs/commands/DetectDocumentTextCommand.js +2 -2
- package/dist-cjs/commands/GetDocumentAnalysisCommand.js +2 -2
- package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +2 -2
- package/dist-cjs/commands/GetExpenseAnalysisCommand.js +2 -2
- package/dist-cjs/commands/GetLendingAnalysisCommand.js +2 -2
- package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +2 -2
- package/dist-cjs/commands/StartDocumentAnalysisCommand.js +2 -2
- package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +2 -2
- package/dist-cjs/commands/StartExpenseAnalysisCommand.js +2 -2
- package/dist-cjs/commands/StartLendingAnalysisCommand.js +2 -2
- package/dist-cjs/protocols/Aws_json1_1.js +495 -569
- package/dist-es/commands/AnalyzeDocumentCommand.js +3 -3
- package/dist-es/commands/AnalyzeExpenseCommand.js +3 -3
- package/dist-es/commands/AnalyzeIDCommand.js +3 -3
- package/dist-es/commands/DetectDocumentTextCommand.js +3 -3
- package/dist-es/commands/GetDocumentAnalysisCommand.js +3 -3
- package/dist-es/commands/GetDocumentTextDetectionCommand.js +3 -3
- package/dist-es/commands/GetExpenseAnalysisCommand.js +3 -3
- package/dist-es/commands/GetLendingAnalysisCommand.js +3 -3
- package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +3 -3
- package/dist-es/commands/StartDocumentAnalysisCommand.js +3 -3
- package/dist-es/commands/StartDocumentTextDetectionCommand.js +3 -3
- package/dist-es/commands/StartExpenseAnalysisCommand.js +3 -3
- package/dist-es/commands/StartLendingAnalysisCommand.js +3 -3
- package/dist-es/protocols/Aws_json1_1.js +468 -542
- package/dist-types/protocols/Aws_json1_1.d.ts +104 -26
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +26 -26
- package/package.json +29 -29
|
@@ -1,155 +1,155 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StartLendingAnalysisCommand = exports.de_StartExpenseAnalysisCommand = exports.de_StartDocumentTextDetectionCommand = exports.de_StartDocumentAnalysisCommand = exports.de_GetLendingAnalysisSummaryCommand = exports.de_GetLendingAnalysisCommand = exports.de_GetExpenseAnalysisCommand = exports.de_GetDocumentTextDetectionCommand = exports.de_GetDocumentAnalysisCommand = exports.de_DetectDocumentTextCommand = exports.de_AnalyzeIDCommand = exports.de_AnalyzeExpenseCommand = exports.de_AnalyzeDocumentCommand = exports.se_StartLendingAnalysisCommand = exports.se_StartExpenseAnalysisCommand = exports.se_StartDocumentTextDetectionCommand = exports.se_StartDocumentAnalysisCommand = exports.se_GetLendingAnalysisSummaryCommand = exports.se_GetLendingAnalysisCommand = exports.se_GetExpenseAnalysisCommand = exports.se_GetDocumentTextDetectionCommand = exports.se_GetDocumentAnalysisCommand = exports.se_DetectDocumentTextCommand = exports.se_AnalyzeIDCommand = exports.se_AnalyzeExpenseCommand = exports.se_AnalyzeDocumentCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const models_0_1 = require("../models/models_0");
|
|
7
7
|
const TextractServiceException_1 = require("../models/TextractServiceException");
|
|
8
|
-
const
|
|
8
|
+
const se_AnalyzeDocumentCommand = async (input, context) => {
|
|
9
9
|
const headers = {
|
|
10
10
|
"content-type": "application/x-amz-json-1.1",
|
|
11
11
|
"x-amz-target": "Textract.AnalyzeDocument",
|
|
12
12
|
};
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(se_AnalyzeDocumentRequest(input, context));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const
|
|
17
|
+
exports.se_AnalyzeDocumentCommand = se_AnalyzeDocumentCommand;
|
|
18
|
+
const se_AnalyzeExpenseCommand = async (input, context) => {
|
|
19
19
|
const headers = {
|
|
20
20
|
"content-type": "application/x-amz-json-1.1",
|
|
21
21
|
"x-amz-target": "Textract.AnalyzeExpense",
|
|
22
22
|
};
|
|
23
23
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
24
|
+
body = JSON.stringify(se_AnalyzeExpenseRequest(input, context));
|
|
25
25
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
26
|
};
|
|
27
|
-
exports.
|
|
28
|
-
const
|
|
27
|
+
exports.se_AnalyzeExpenseCommand = se_AnalyzeExpenseCommand;
|
|
28
|
+
const se_AnalyzeIDCommand = async (input, context) => {
|
|
29
29
|
const headers = {
|
|
30
30
|
"content-type": "application/x-amz-json-1.1",
|
|
31
31
|
"x-amz-target": "Textract.AnalyzeID",
|
|
32
32
|
};
|
|
33
33
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify(se_AnalyzeIDRequest(input, context));
|
|
35
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
36
|
};
|
|
37
|
-
exports.
|
|
38
|
-
const
|
|
37
|
+
exports.se_AnalyzeIDCommand = se_AnalyzeIDCommand;
|
|
38
|
+
const se_DetectDocumentTextCommand = async (input, context) => {
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/x-amz-json-1.1",
|
|
41
41
|
"x-amz-target": "Textract.DetectDocumentText",
|
|
42
42
|
};
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(se_DetectDocumentTextRequest(input, context));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const
|
|
47
|
+
exports.se_DetectDocumentTextCommand = se_DetectDocumentTextCommand;
|
|
48
|
+
const se_GetDocumentAnalysisCommand = async (input, context) => {
|
|
49
49
|
const headers = {
|
|
50
50
|
"content-type": "application/x-amz-json-1.1",
|
|
51
51
|
"x-amz-target": "Textract.GetDocumentAnalysis",
|
|
52
52
|
};
|
|
53
53
|
let body;
|
|
54
|
-
body = JSON.stringify(
|
|
54
|
+
body = JSON.stringify(se_GetDocumentAnalysisRequest(input, context));
|
|
55
55
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
56
|
};
|
|
57
|
-
exports.
|
|
58
|
-
const
|
|
57
|
+
exports.se_GetDocumentAnalysisCommand = se_GetDocumentAnalysisCommand;
|
|
58
|
+
const se_GetDocumentTextDetectionCommand = async (input, context) => {
|
|
59
59
|
const headers = {
|
|
60
60
|
"content-type": "application/x-amz-json-1.1",
|
|
61
61
|
"x-amz-target": "Textract.GetDocumentTextDetection",
|
|
62
62
|
};
|
|
63
63
|
let body;
|
|
64
|
-
body = JSON.stringify(
|
|
64
|
+
body = JSON.stringify(se_GetDocumentTextDetectionRequest(input, context));
|
|
65
65
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
66
|
};
|
|
67
|
-
exports.
|
|
68
|
-
const
|
|
67
|
+
exports.se_GetDocumentTextDetectionCommand = se_GetDocumentTextDetectionCommand;
|
|
68
|
+
const se_GetExpenseAnalysisCommand = async (input, context) => {
|
|
69
69
|
const headers = {
|
|
70
70
|
"content-type": "application/x-amz-json-1.1",
|
|
71
71
|
"x-amz-target": "Textract.GetExpenseAnalysis",
|
|
72
72
|
};
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(se_GetExpenseAnalysisRequest(input, context));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
|
-
exports.
|
|
78
|
-
const
|
|
77
|
+
exports.se_GetExpenseAnalysisCommand = se_GetExpenseAnalysisCommand;
|
|
78
|
+
const se_GetLendingAnalysisCommand = async (input, context) => {
|
|
79
79
|
const headers = {
|
|
80
80
|
"content-type": "application/x-amz-json-1.1",
|
|
81
81
|
"x-amz-target": "Textract.GetLendingAnalysis",
|
|
82
82
|
};
|
|
83
83
|
let body;
|
|
84
|
-
body = JSON.stringify(
|
|
84
|
+
body = JSON.stringify(se_GetLendingAnalysisRequest(input, context));
|
|
85
85
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_GetLendingAnalysisCommand = se_GetLendingAnalysisCommand;
|
|
88
|
+
const se_GetLendingAnalysisSummaryCommand = async (input, context) => {
|
|
89
89
|
const headers = {
|
|
90
90
|
"content-type": "application/x-amz-json-1.1",
|
|
91
91
|
"x-amz-target": "Textract.GetLendingAnalysisSummary",
|
|
92
92
|
};
|
|
93
93
|
let body;
|
|
94
|
-
body = JSON.stringify(
|
|
94
|
+
body = JSON.stringify(se_GetLendingAnalysisSummaryRequest(input, context));
|
|
95
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
96
|
};
|
|
97
|
-
exports.
|
|
98
|
-
const
|
|
97
|
+
exports.se_GetLendingAnalysisSummaryCommand = se_GetLendingAnalysisSummaryCommand;
|
|
98
|
+
const se_StartDocumentAnalysisCommand = async (input, context) => {
|
|
99
99
|
const headers = {
|
|
100
100
|
"content-type": "application/x-amz-json-1.1",
|
|
101
101
|
"x-amz-target": "Textract.StartDocumentAnalysis",
|
|
102
102
|
};
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(se_StartDocumentAnalysisRequest(input, context));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
|
-
exports.
|
|
108
|
-
const
|
|
107
|
+
exports.se_StartDocumentAnalysisCommand = se_StartDocumentAnalysisCommand;
|
|
108
|
+
const se_StartDocumentTextDetectionCommand = async (input, context) => {
|
|
109
109
|
const headers = {
|
|
110
110
|
"content-type": "application/x-amz-json-1.1",
|
|
111
111
|
"x-amz-target": "Textract.StartDocumentTextDetection",
|
|
112
112
|
};
|
|
113
113
|
let body;
|
|
114
|
-
body = JSON.stringify(
|
|
114
|
+
body = JSON.stringify(se_StartDocumentTextDetectionRequest(input, context));
|
|
115
115
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
116
116
|
};
|
|
117
|
-
exports.
|
|
118
|
-
const
|
|
117
|
+
exports.se_StartDocumentTextDetectionCommand = se_StartDocumentTextDetectionCommand;
|
|
118
|
+
const se_StartExpenseAnalysisCommand = async (input, context) => {
|
|
119
119
|
const headers = {
|
|
120
120
|
"content-type": "application/x-amz-json-1.1",
|
|
121
121
|
"x-amz-target": "Textract.StartExpenseAnalysis",
|
|
122
122
|
};
|
|
123
123
|
let body;
|
|
124
|
-
body = JSON.stringify(
|
|
124
|
+
body = JSON.stringify(se_StartExpenseAnalysisRequest(input, context));
|
|
125
125
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
126
|
};
|
|
127
|
-
exports.
|
|
128
|
-
const
|
|
127
|
+
exports.se_StartExpenseAnalysisCommand = se_StartExpenseAnalysisCommand;
|
|
128
|
+
const se_StartLendingAnalysisCommand = async (input, context) => {
|
|
129
129
|
const headers = {
|
|
130
130
|
"content-type": "application/x-amz-json-1.1",
|
|
131
131
|
"x-amz-target": "Textract.StartLendingAnalysis",
|
|
132
132
|
};
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(se_StartLendingAnalysisRequest(input, context));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
137
|
+
exports.se_StartLendingAnalysisCommand = se_StartLendingAnalysisCommand;
|
|
138
|
+
const de_AnalyzeDocumentCommand = async (output, context) => {
|
|
139
139
|
if (output.statusCode >= 300) {
|
|
140
|
-
return
|
|
140
|
+
return de_AnalyzeDocumentCommandError(output, context);
|
|
141
141
|
}
|
|
142
142
|
const data = await parseBody(output.body, context);
|
|
143
143
|
let contents = {};
|
|
144
|
-
contents =
|
|
144
|
+
contents = de_AnalyzeDocumentResponse(data, context);
|
|
145
145
|
const response = {
|
|
146
146
|
$metadata: deserializeMetadata(output),
|
|
147
147
|
...contents,
|
|
148
148
|
};
|
|
149
149
|
return Promise.resolve(response);
|
|
150
150
|
};
|
|
151
|
-
exports.
|
|
152
|
-
const
|
|
151
|
+
exports.de_AnalyzeDocumentCommand = de_AnalyzeDocumentCommand;
|
|
152
|
+
const de_AnalyzeDocumentCommandError = async (output, context) => {
|
|
153
153
|
const parsedOutput = {
|
|
154
154
|
...output,
|
|
155
155
|
body: await parseErrorBody(output.body, context),
|
|
@@ -158,34 +158,34 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
|
|
|
158
158
|
switch (errorCode) {
|
|
159
159
|
case "AccessDeniedException":
|
|
160
160
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
161
|
-
throw await
|
|
161
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
162
162
|
case "BadDocumentException":
|
|
163
163
|
case "com.amazonaws.textract#BadDocumentException":
|
|
164
|
-
throw await
|
|
164
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
165
165
|
case "DocumentTooLargeException":
|
|
166
166
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
167
|
-
throw await
|
|
167
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
168
168
|
case "HumanLoopQuotaExceededException":
|
|
169
169
|
case "com.amazonaws.textract#HumanLoopQuotaExceededException":
|
|
170
|
-
throw await
|
|
170
|
+
throw await de_HumanLoopQuotaExceededExceptionRes(parsedOutput, context);
|
|
171
171
|
case "InternalServerError":
|
|
172
172
|
case "com.amazonaws.textract#InternalServerError":
|
|
173
|
-
throw await
|
|
173
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
174
174
|
case "InvalidParameterException":
|
|
175
175
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
176
|
-
throw await
|
|
176
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
177
177
|
case "InvalidS3ObjectException":
|
|
178
178
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
179
|
-
throw await
|
|
179
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
180
180
|
case "ProvisionedThroughputExceededException":
|
|
181
181
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
182
|
-
throw await
|
|
182
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
183
183
|
case "ThrottlingException":
|
|
184
184
|
case "com.amazonaws.textract#ThrottlingException":
|
|
185
|
-
throw await
|
|
185
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
186
186
|
case "UnsupportedDocumentException":
|
|
187
187
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
188
|
-
throw await
|
|
188
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
189
189
|
default:
|
|
190
190
|
const parsedBody = parsedOutput.body;
|
|
191
191
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -196,21 +196,21 @@ const deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context
|
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
|
-
const
|
|
199
|
+
const de_AnalyzeExpenseCommand = async (output, context) => {
|
|
200
200
|
if (output.statusCode >= 300) {
|
|
201
|
-
return
|
|
201
|
+
return de_AnalyzeExpenseCommandError(output, context);
|
|
202
202
|
}
|
|
203
203
|
const data = await parseBody(output.body, context);
|
|
204
204
|
let contents = {};
|
|
205
|
-
contents =
|
|
205
|
+
contents = de_AnalyzeExpenseResponse(data, context);
|
|
206
206
|
const response = {
|
|
207
207
|
$metadata: deserializeMetadata(output),
|
|
208
208
|
...contents,
|
|
209
209
|
};
|
|
210
210
|
return Promise.resolve(response);
|
|
211
211
|
};
|
|
212
|
-
exports.
|
|
213
|
-
const
|
|
212
|
+
exports.de_AnalyzeExpenseCommand = de_AnalyzeExpenseCommand;
|
|
213
|
+
const de_AnalyzeExpenseCommandError = async (output, context) => {
|
|
214
214
|
const parsedOutput = {
|
|
215
215
|
...output,
|
|
216
216
|
body: await parseErrorBody(output.body, context),
|
|
@@ -219,31 +219,31 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
|
|
|
219
219
|
switch (errorCode) {
|
|
220
220
|
case "AccessDeniedException":
|
|
221
221
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
222
|
-
throw await
|
|
222
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
223
223
|
case "BadDocumentException":
|
|
224
224
|
case "com.amazonaws.textract#BadDocumentException":
|
|
225
|
-
throw await
|
|
225
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
226
226
|
case "DocumentTooLargeException":
|
|
227
227
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
228
|
-
throw await
|
|
228
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
229
229
|
case "InternalServerError":
|
|
230
230
|
case "com.amazonaws.textract#InternalServerError":
|
|
231
|
-
throw await
|
|
231
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
232
232
|
case "InvalidParameterException":
|
|
233
233
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
234
|
-
throw await
|
|
234
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
235
235
|
case "InvalidS3ObjectException":
|
|
236
236
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
237
|
-
throw await
|
|
237
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
238
238
|
case "ProvisionedThroughputExceededException":
|
|
239
239
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
240
|
-
throw await
|
|
240
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
241
241
|
case "ThrottlingException":
|
|
242
242
|
case "com.amazonaws.textract#ThrottlingException":
|
|
243
|
-
throw await
|
|
243
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
244
244
|
case "UnsupportedDocumentException":
|
|
245
245
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
246
|
-
throw await
|
|
246
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
247
247
|
default:
|
|
248
248
|
const parsedBody = parsedOutput.body;
|
|
249
249
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -254,21 +254,21 @@ const deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context)
|
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
|
-
const
|
|
257
|
+
const de_AnalyzeIDCommand = async (output, context) => {
|
|
258
258
|
if (output.statusCode >= 300) {
|
|
259
|
-
return
|
|
259
|
+
return de_AnalyzeIDCommandError(output, context);
|
|
260
260
|
}
|
|
261
261
|
const data = await parseBody(output.body, context);
|
|
262
262
|
let contents = {};
|
|
263
|
-
contents =
|
|
263
|
+
contents = de_AnalyzeIDResponse(data, context);
|
|
264
264
|
const response = {
|
|
265
265
|
$metadata: deserializeMetadata(output),
|
|
266
266
|
...contents,
|
|
267
267
|
};
|
|
268
268
|
return Promise.resolve(response);
|
|
269
269
|
};
|
|
270
|
-
exports.
|
|
271
|
-
const
|
|
270
|
+
exports.de_AnalyzeIDCommand = de_AnalyzeIDCommand;
|
|
271
|
+
const de_AnalyzeIDCommandError = async (output, context) => {
|
|
272
272
|
const parsedOutput = {
|
|
273
273
|
...output,
|
|
274
274
|
body: await parseErrorBody(output.body, context),
|
|
@@ -277,31 +277,31 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
|
|
|
277
277
|
switch (errorCode) {
|
|
278
278
|
case "AccessDeniedException":
|
|
279
279
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
280
|
-
throw await
|
|
280
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
281
281
|
case "BadDocumentException":
|
|
282
282
|
case "com.amazonaws.textract#BadDocumentException":
|
|
283
|
-
throw await
|
|
283
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
284
284
|
case "DocumentTooLargeException":
|
|
285
285
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
286
|
-
throw await
|
|
286
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
287
287
|
case "InternalServerError":
|
|
288
288
|
case "com.amazonaws.textract#InternalServerError":
|
|
289
|
-
throw await
|
|
289
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
290
290
|
case "InvalidParameterException":
|
|
291
291
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
292
|
-
throw await
|
|
292
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
293
293
|
case "InvalidS3ObjectException":
|
|
294
294
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
295
|
-
throw await
|
|
295
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
296
296
|
case "ProvisionedThroughputExceededException":
|
|
297
297
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
298
|
-
throw await
|
|
298
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
299
299
|
case "ThrottlingException":
|
|
300
300
|
case "com.amazonaws.textract#ThrottlingException":
|
|
301
|
-
throw await
|
|
301
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
302
302
|
case "UnsupportedDocumentException":
|
|
303
303
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
304
|
-
throw await
|
|
304
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
305
305
|
default:
|
|
306
306
|
const parsedBody = parsedOutput.body;
|
|
307
307
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -312,21 +312,21 @@ const deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
|
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
314
|
};
|
|
315
|
-
const
|
|
315
|
+
const de_DetectDocumentTextCommand = async (output, context) => {
|
|
316
316
|
if (output.statusCode >= 300) {
|
|
317
|
-
return
|
|
317
|
+
return de_DetectDocumentTextCommandError(output, context);
|
|
318
318
|
}
|
|
319
319
|
const data = await parseBody(output.body, context);
|
|
320
320
|
let contents = {};
|
|
321
|
-
contents =
|
|
321
|
+
contents = de_DetectDocumentTextResponse(data, context);
|
|
322
322
|
const response = {
|
|
323
323
|
$metadata: deserializeMetadata(output),
|
|
324
324
|
...contents,
|
|
325
325
|
};
|
|
326
326
|
return Promise.resolve(response);
|
|
327
327
|
};
|
|
328
|
-
exports.
|
|
329
|
-
const
|
|
328
|
+
exports.de_DetectDocumentTextCommand = de_DetectDocumentTextCommand;
|
|
329
|
+
const de_DetectDocumentTextCommandError = async (output, context) => {
|
|
330
330
|
const parsedOutput = {
|
|
331
331
|
...output,
|
|
332
332
|
body: await parseErrorBody(output.body, context),
|
|
@@ -335,31 +335,31 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
|
|
|
335
335
|
switch (errorCode) {
|
|
336
336
|
case "AccessDeniedException":
|
|
337
337
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
338
|
-
throw await
|
|
338
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
339
339
|
case "BadDocumentException":
|
|
340
340
|
case "com.amazonaws.textract#BadDocumentException":
|
|
341
|
-
throw await
|
|
341
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
342
342
|
case "DocumentTooLargeException":
|
|
343
343
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
344
|
-
throw await
|
|
344
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
345
345
|
case "InternalServerError":
|
|
346
346
|
case "com.amazonaws.textract#InternalServerError":
|
|
347
|
-
throw await
|
|
347
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
348
348
|
case "InvalidParameterException":
|
|
349
349
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
350
|
-
throw await
|
|
350
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
351
351
|
case "InvalidS3ObjectException":
|
|
352
352
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
353
|
-
throw await
|
|
353
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
354
354
|
case "ProvisionedThroughputExceededException":
|
|
355
355
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
356
|
-
throw await
|
|
356
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
357
357
|
case "ThrottlingException":
|
|
358
358
|
case "com.amazonaws.textract#ThrottlingException":
|
|
359
|
-
throw await
|
|
359
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
360
360
|
case "UnsupportedDocumentException":
|
|
361
361
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
362
|
-
throw await
|
|
362
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
363
363
|
default:
|
|
364
364
|
const parsedBody = parsedOutput.body;
|
|
365
365
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -370,21 +370,21 @@ const deserializeAws_json1_1DetectDocumentTextCommandError = async (output, cont
|
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
372
|
};
|
|
373
|
-
const
|
|
373
|
+
const de_GetDocumentAnalysisCommand = async (output, context) => {
|
|
374
374
|
if (output.statusCode >= 300) {
|
|
375
|
-
return
|
|
375
|
+
return de_GetDocumentAnalysisCommandError(output, context);
|
|
376
376
|
}
|
|
377
377
|
const data = await parseBody(output.body, context);
|
|
378
378
|
let contents = {};
|
|
379
|
-
contents =
|
|
379
|
+
contents = de_GetDocumentAnalysisResponse(data, context);
|
|
380
380
|
const response = {
|
|
381
381
|
$metadata: deserializeMetadata(output),
|
|
382
382
|
...contents,
|
|
383
383
|
};
|
|
384
384
|
return Promise.resolve(response);
|
|
385
385
|
};
|
|
386
|
-
exports.
|
|
387
|
-
const
|
|
386
|
+
exports.de_GetDocumentAnalysisCommand = de_GetDocumentAnalysisCommand;
|
|
387
|
+
const de_GetDocumentAnalysisCommandError = async (output, context) => {
|
|
388
388
|
const parsedOutput = {
|
|
389
389
|
...output,
|
|
390
390
|
body: await parseErrorBody(output.body, context),
|
|
@@ -393,28 +393,28 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
|
|
|
393
393
|
switch (errorCode) {
|
|
394
394
|
case "AccessDeniedException":
|
|
395
395
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
396
|
-
throw await
|
|
396
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
397
397
|
case "InternalServerError":
|
|
398
398
|
case "com.amazonaws.textract#InternalServerError":
|
|
399
|
-
throw await
|
|
399
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
400
400
|
case "InvalidJobIdException":
|
|
401
401
|
case "com.amazonaws.textract#InvalidJobIdException":
|
|
402
|
-
throw await
|
|
402
|
+
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
403
403
|
case "InvalidKMSKeyException":
|
|
404
404
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
405
|
-
throw await
|
|
405
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
406
406
|
case "InvalidParameterException":
|
|
407
407
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
408
|
-
throw await
|
|
408
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
409
409
|
case "InvalidS3ObjectException":
|
|
410
410
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
411
|
-
throw await
|
|
411
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
412
412
|
case "ProvisionedThroughputExceededException":
|
|
413
413
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
414
|
-
throw await
|
|
414
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
415
415
|
case "ThrottlingException":
|
|
416
416
|
case "com.amazonaws.textract#ThrottlingException":
|
|
417
|
-
throw await
|
|
417
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
418
418
|
default:
|
|
419
419
|
const parsedBody = parsedOutput.body;
|
|
420
420
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -425,21 +425,21 @@ const deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, con
|
|
|
425
425
|
});
|
|
426
426
|
}
|
|
427
427
|
};
|
|
428
|
-
const
|
|
428
|
+
const de_GetDocumentTextDetectionCommand = async (output, context) => {
|
|
429
429
|
if (output.statusCode >= 300) {
|
|
430
|
-
return
|
|
430
|
+
return de_GetDocumentTextDetectionCommandError(output, context);
|
|
431
431
|
}
|
|
432
432
|
const data = await parseBody(output.body, context);
|
|
433
433
|
let contents = {};
|
|
434
|
-
contents =
|
|
434
|
+
contents = de_GetDocumentTextDetectionResponse(data, context);
|
|
435
435
|
const response = {
|
|
436
436
|
$metadata: deserializeMetadata(output),
|
|
437
437
|
...contents,
|
|
438
438
|
};
|
|
439
439
|
return Promise.resolve(response);
|
|
440
440
|
};
|
|
441
|
-
exports.
|
|
442
|
-
const
|
|
441
|
+
exports.de_GetDocumentTextDetectionCommand = de_GetDocumentTextDetectionCommand;
|
|
442
|
+
const de_GetDocumentTextDetectionCommandError = async (output, context) => {
|
|
443
443
|
const parsedOutput = {
|
|
444
444
|
...output,
|
|
445
445
|
body: await parseErrorBody(output.body, context),
|
|
@@ -448,28 +448,28 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
|
|
|
448
448
|
switch (errorCode) {
|
|
449
449
|
case "AccessDeniedException":
|
|
450
450
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
451
|
-
throw await
|
|
451
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
452
452
|
case "InternalServerError":
|
|
453
453
|
case "com.amazonaws.textract#InternalServerError":
|
|
454
|
-
throw await
|
|
454
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
455
455
|
case "InvalidJobIdException":
|
|
456
456
|
case "com.amazonaws.textract#InvalidJobIdException":
|
|
457
|
-
throw await
|
|
457
|
+
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
458
458
|
case "InvalidKMSKeyException":
|
|
459
459
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
460
|
-
throw await
|
|
460
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
461
461
|
case "InvalidParameterException":
|
|
462
462
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
463
|
-
throw await
|
|
463
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
464
464
|
case "InvalidS3ObjectException":
|
|
465
465
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
466
|
-
throw await
|
|
466
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
467
467
|
case "ProvisionedThroughputExceededException":
|
|
468
468
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
469
|
-
throw await
|
|
469
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
470
470
|
case "ThrottlingException":
|
|
471
471
|
case "com.amazonaws.textract#ThrottlingException":
|
|
472
|
-
throw await
|
|
472
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
473
473
|
default:
|
|
474
474
|
const parsedBody = parsedOutput.body;
|
|
475
475
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -480,21 +480,21 @@ const deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output
|
|
|
480
480
|
});
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
|
-
const
|
|
483
|
+
const de_GetExpenseAnalysisCommand = async (output, context) => {
|
|
484
484
|
if (output.statusCode >= 300) {
|
|
485
|
-
return
|
|
485
|
+
return de_GetExpenseAnalysisCommandError(output, context);
|
|
486
486
|
}
|
|
487
487
|
const data = await parseBody(output.body, context);
|
|
488
488
|
let contents = {};
|
|
489
|
-
contents =
|
|
489
|
+
contents = de_GetExpenseAnalysisResponse(data, context);
|
|
490
490
|
const response = {
|
|
491
491
|
$metadata: deserializeMetadata(output),
|
|
492
492
|
...contents,
|
|
493
493
|
};
|
|
494
494
|
return Promise.resolve(response);
|
|
495
495
|
};
|
|
496
|
-
exports.
|
|
497
|
-
const
|
|
496
|
+
exports.de_GetExpenseAnalysisCommand = de_GetExpenseAnalysisCommand;
|
|
497
|
+
const de_GetExpenseAnalysisCommandError = async (output, context) => {
|
|
498
498
|
const parsedOutput = {
|
|
499
499
|
...output,
|
|
500
500
|
body: await parseErrorBody(output.body, context),
|
|
@@ -503,28 +503,28 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
|
|
|
503
503
|
switch (errorCode) {
|
|
504
504
|
case "AccessDeniedException":
|
|
505
505
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
506
|
-
throw await
|
|
506
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
507
507
|
case "InternalServerError":
|
|
508
508
|
case "com.amazonaws.textract#InternalServerError":
|
|
509
|
-
throw await
|
|
509
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
510
510
|
case "InvalidJobIdException":
|
|
511
511
|
case "com.amazonaws.textract#InvalidJobIdException":
|
|
512
|
-
throw await
|
|
512
|
+
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
513
513
|
case "InvalidKMSKeyException":
|
|
514
514
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
515
|
-
throw await
|
|
515
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
516
516
|
case "InvalidParameterException":
|
|
517
517
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
518
|
-
throw await
|
|
518
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
519
519
|
case "InvalidS3ObjectException":
|
|
520
520
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
521
|
-
throw await
|
|
521
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
522
522
|
case "ProvisionedThroughputExceededException":
|
|
523
523
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
524
|
-
throw await
|
|
524
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
525
525
|
case "ThrottlingException":
|
|
526
526
|
case "com.amazonaws.textract#ThrottlingException":
|
|
527
|
-
throw await
|
|
527
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
528
528
|
default:
|
|
529
529
|
const parsedBody = parsedOutput.body;
|
|
530
530
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -535,21 +535,21 @@ const deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, cont
|
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
|
-
const
|
|
538
|
+
const de_GetLendingAnalysisCommand = async (output, context) => {
|
|
539
539
|
if (output.statusCode >= 300) {
|
|
540
|
-
return
|
|
540
|
+
return de_GetLendingAnalysisCommandError(output, context);
|
|
541
541
|
}
|
|
542
542
|
const data = await parseBody(output.body, context);
|
|
543
543
|
let contents = {};
|
|
544
|
-
contents =
|
|
544
|
+
contents = de_GetLendingAnalysisResponse(data, context);
|
|
545
545
|
const response = {
|
|
546
546
|
$metadata: deserializeMetadata(output),
|
|
547
547
|
...contents,
|
|
548
548
|
};
|
|
549
549
|
return Promise.resolve(response);
|
|
550
550
|
};
|
|
551
|
-
exports.
|
|
552
|
-
const
|
|
551
|
+
exports.de_GetLendingAnalysisCommand = de_GetLendingAnalysisCommand;
|
|
552
|
+
const de_GetLendingAnalysisCommandError = async (output, context) => {
|
|
553
553
|
const parsedOutput = {
|
|
554
554
|
...output,
|
|
555
555
|
body: await parseErrorBody(output.body, context),
|
|
@@ -558,28 +558,28 @@ const deserializeAws_json1_1GetLendingAnalysisCommandError = async (output, cont
|
|
|
558
558
|
switch (errorCode) {
|
|
559
559
|
case "AccessDeniedException":
|
|
560
560
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
561
|
-
throw await
|
|
561
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
562
562
|
case "InternalServerError":
|
|
563
563
|
case "com.amazonaws.textract#InternalServerError":
|
|
564
|
-
throw await
|
|
564
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
565
565
|
case "InvalidJobIdException":
|
|
566
566
|
case "com.amazonaws.textract#InvalidJobIdException":
|
|
567
|
-
throw await
|
|
567
|
+
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
568
568
|
case "InvalidKMSKeyException":
|
|
569
569
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
570
|
-
throw await
|
|
570
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
571
571
|
case "InvalidParameterException":
|
|
572
572
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
573
|
-
throw await
|
|
573
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
574
574
|
case "InvalidS3ObjectException":
|
|
575
575
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
576
|
-
throw await
|
|
576
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
577
577
|
case "ProvisionedThroughputExceededException":
|
|
578
578
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
579
|
-
throw await
|
|
579
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
580
580
|
case "ThrottlingException":
|
|
581
581
|
case "com.amazonaws.textract#ThrottlingException":
|
|
582
|
-
throw await
|
|
582
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
583
583
|
default:
|
|
584
584
|
const parsedBody = parsedOutput.body;
|
|
585
585
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -590,21 +590,21 @@ const deserializeAws_json1_1GetLendingAnalysisCommandError = async (output, cont
|
|
|
590
590
|
});
|
|
591
591
|
}
|
|
592
592
|
};
|
|
593
|
-
const
|
|
593
|
+
const de_GetLendingAnalysisSummaryCommand = async (output, context) => {
|
|
594
594
|
if (output.statusCode >= 300) {
|
|
595
|
-
return
|
|
595
|
+
return de_GetLendingAnalysisSummaryCommandError(output, context);
|
|
596
596
|
}
|
|
597
597
|
const data = await parseBody(output.body, context);
|
|
598
598
|
let contents = {};
|
|
599
|
-
contents =
|
|
599
|
+
contents = de_GetLendingAnalysisSummaryResponse(data, context);
|
|
600
600
|
const response = {
|
|
601
601
|
$metadata: deserializeMetadata(output),
|
|
602
602
|
...contents,
|
|
603
603
|
};
|
|
604
604
|
return Promise.resolve(response);
|
|
605
605
|
};
|
|
606
|
-
exports.
|
|
607
|
-
const
|
|
606
|
+
exports.de_GetLendingAnalysisSummaryCommand = de_GetLendingAnalysisSummaryCommand;
|
|
607
|
+
const de_GetLendingAnalysisSummaryCommandError = async (output, context) => {
|
|
608
608
|
const parsedOutput = {
|
|
609
609
|
...output,
|
|
610
610
|
body: await parseErrorBody(output.body, context),
|
|
@@ -613,28 +613,28 @@ const deserializeAws_json1_1GetLendingAnalysisSummaryCommandError = async (outpu
|
|
|
613
613
|
switch (errorCode) {
|
|
614
614
|
case "AccessDeniedException":
|
|
615
615
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
616
|
-
throw await
|
|
616
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
617
617
|
case "InternalServerError":
|
|
618
618
|
case "com.amazonaws.textract#InternalServerError":
|
|
619
|
-
throw await
|
|
619
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
620
620
|
case "InvalidJobIdException":
|
|
621
621
|
case "com.amazonaws.textract#InvalidJobIdException":
|
|
622
|
-
throw await
|
|
622
|
+
throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
|
|
623
623
|
case "InvalidKMSKeyException":
|
|
624
624
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
625
|
-
throw await
|
|
625
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
626
626
|
case "InvalidParameterException":
|
|
627
627
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
628
|
-
throw await
|
|
628
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
629
629
|
case "InvalidS3ObjectException":
|
|
630
630
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
631
|
-
throw await
|
|
631
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
632
632
|
case "ProvisionedThroughputExceededException":
|
|
633
633
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
634
|
-
throw await
|
|
634
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
635
635
|
case "ThrottlingException":
|
|
636
636
|
case "com.amazonaws.textract#ThrottlingException":
|
|
637
|
-
throw await
|
|
637
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
638
638
|
default:
|
|
639
639
|
const parsedBody = parsedOutput.body;
|
|
640
640
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -645,21 +645,21 @@ const deserializeAws_json1_1GetLendingAnalysisSummaryCommandError = async (outpu
|
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
647
|
};
|
|
648
|
-
const
|
|
648
|
+
const de_StartDocumentAnalysisCommand = async (output, context) => {
|
|
649
649
|
if (output.statusCode >= 300) {
|
|
650
|
-
return
|
|
650
|
+
return de_StartDocumentAnalysisCommandError(output, context);
|
|
651
651
|
}
|
|
652
652
|
const data = await parseBody(output.body, context);
|
|
653
653
|
let contents = {};
|
|
654
|
-
contents =
|
|
654
|
+
contents = de_StartDocumentAnalysisResponse(data, context);
|
|
655
655
|
const response = {
|
|
656
656
|
$metadata: deserializeMetadata(output),
|
|
657
657
|
...contents,
|
|
658
658
|
};
|
|
659
659
|
return Promise.resolve(response);
|
|
660
660
|
};
|
|
661
|
-
exports.
|
|
662
|
-
const
|
|
661
|
+
exports.de_StartDocumentAnalysisCommand = de_StartDocumentAnalysisCommand;
|
|
662
|
+
const de_StartDocumentAnalysisCommandError = async (output, context) => {
|
|
663
663
|
const parsedOutput = {
|
|
664
664
|
...output,
|
|
665
665
|
body: await parseErrorBody(output.body, context),
|
|
@@ -668,40 +668,40 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
|
|
|
668
668
|
switch (errorCode) {
|
|
669
669
|
case "AccessDeniedException":
|
|
670
670
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
671
|
-
throw await
|
|
671
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
672
672
|
case "BadDocumentException":
|
|
673
673
|
case "com.amazonaws.textract#BadDocumentException":
|
|
674
|
-
throw await
|
|
674
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
675
675
|
case "DocumentTooLargeException":
|
|
676
676
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
677
|
-
throw await
|
|
677
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
678
678
|
case "IdempotentParameterMismatchException":
|
|
679
679
|
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
680
|
-
throw await
|
|
680
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
681
681
|
case "InternalServerError":
|
|
682
682
|
case "com.amazonaws.textract#InternalServerError":
|
|
683
|
-
throw await
|
|
683
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
684
684
|
case "InvalidKMSKeyException":
|
|
685
685
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
686
|
-
throw await
|
|
686
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
687
687
|
case "InvalidParameterException":
|
|
688
688
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
689
|
-
throw await
|
|
689
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
690
690
|
case "InvalidS3ObjectException":
|
|
691
691
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
692
|
-
throw await
|
|
692
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
693
693
|
case "LimitExceededException":
|
|
694
694
|
case "com.amazonaws.textract#LimitExceededException":
|
|
695
|
-
throw await
|
|
695
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
696
696
|
case "ProvisionedThroughputExceededException":
|
|
697
697
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
698
|
-
throw await
|
|
698
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
699
699
|
case "ThrottlingException":
|
|
700
700
|
case "com.amazonaws.textract#ThrottlingException":
|
|
701
|
-
throw await
|
|
701
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
702
702
|
case "UnsupportedDocumentException":
|
|
703
703
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
704
|
-
throw await
|
|
704
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
705
705
|
default:
|
|
706
706
|
const parsedBody = parsedOutput.body;
|
|
707
707
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -712,21 +712,21 @@ const deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, c
|
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
};
|
|
715
|
-
const
|
|
715
|
+
const de_StartDocumentTextDetectionCommand = async (output, context) => {
|
|
716
716
|
if (output.statusCode >= 300) {
|
|
717
|
-
return
|
|
717
|
+
return de_StartDocumentTextDetectionCommandError(output, context);
|
|
718
718
|
}
|
|
719
719
|
const data = await parseBody(output.body, context);
|
|
720
720
|
let contents = {};
|
|
721
|
-
contents =
|
|
721
|
+
contents = de_StartDocumentTextDetectionResponse(data, context);
|
|
722
722
|
const response = {
|
|
723
723
|
$metadata: deserializeMetadata(output),
|
|
724
724
|
...contents,
|
|
725
725
|
};
|
|
726
726
|
return Promise.resolve(response);
|
|
727
727
|
};
|
|
728
|
-
exports.
|
|
729
|
-
const
|
|
728
|
+
exports.de_StartDocumentTextDetectionCommand = de_StartDocumentTextDetectionCommand;
|
|
729
|
+
const de_StartDocumentTextDetectionCommandError = async (output, context) => {
|
|
730
730
|
const parsedOutput = {
|
|
731
731
|
...output,
|
|
732
732
|
body: await parseErrorBody(output.body, context),
|
|
@@ -735,40 +735,40 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
|
|
|
735
735
|
switch (errorCode) {
|
|
736
736
|
case "AccessDeniedException":
|
|
737
737
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
738
|
-
throw await
|
|
738
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
739
739
|
case "BadDocumentException":
|
|
740
740
|
case "com.amazonaws.textract#BadDocumentException":
|
|
741
|
-
throw await
|
|
741
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
742
742
|
case "DocumentTooLargeException":
|
|
743
743
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
744
|
-
throw await
|
|
744
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
745
745
|
case "IdempotentParameterMismatchException":
|
|
746
746
|
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
747
|
-
throw await
|
|
747
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
748
748
|
case "InternalServerError":
|
|
749
749
|
case "com.amazonaws.textract#InternalServerError":
|
|
750
|
-
throw await
|
|
750
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
751
751
|
case "InvalidKMSKeyException":
|
|
752
752
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
753
|
-
throw await
|
|
753
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
754
754
|
case "InvalidParameterException":
|
|
755
755
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
756
|
-
throw await
|
|
756
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
757
757
|
case "InvalidS3ObjectException":
|
|
758
758
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
759
|
-
throw await
|
|
759
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
760
760
|
case "LimitExceededException":
|
|
761
761
|
case "com.amazonaws.textract#LimitExceededException":
|
|
762
|
-
throw await
|
|
762
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
763
763
|
case "ProvisionedThroughputExceededException":
|
|
764
764
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
765
|
-
throw await
|
|
765
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
766
766
|
case "ThrottlingException":
|
|
767
767
|
case "com.amazonaws.textract#ThrottlingException":
|
|
768
|
-
throw await
|
|
768
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
769
769
|
case "UnsupportedDocumentException":
|
|
770
770
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
771
|
-
throw await
|
|
771
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
772
772
|
default:
|
|
773
773
|
const parsedBody = parsedOutput.body;
|
|
774
774
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -779,21 +779,21 @@ const deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (outp
|
|
|
779
779
|
});
|
|
780
780
|
}
|
|
781
781
|
};
|
|
782
|
-
const
|
|
782
|
+
const de_StartExpenseAnalysisCommand = async (output, context) => {
|
|
783
783
|
if (output.statusCode >= 300) {
|
|
784
|
-
return
|
|
784
|
+
return de_StartExpenseAnalysisCommandError(output, context);
|
|
785
785
|
}
|
|
786
786
|
const data = await parseBody(output.body, context);
|
|
787
787
|
let contents = {};
|
|
788
|
-
contents =
|
|
788
|
+
contents = de_StartExpenseAnalysisResponse(data, context);
|
|
789
789
|
const response = {
|
|
790
790
|
$metadata: deserializeMetadata(output),
|
|
791
791
|
...contents,
|
|
792
792
|
};
|
|
793
793
|
return Promise.resolve(response);
|
|
794
794
|
};
|
|
795
|
-
exports.
|
|
796
|
-
const
|
|
795
|
+
exports.de_StartExpenseAnalysisCommand = de_StartExpenseAnalysisCommand;
|
|
796
|
+
const de_StartExpenseAnalysisCommandError = async (output, context) => {
|
|
797
797
|
const parsedOutput = {
|
|
798
798
|
...output,
|
|
799
799
|
body: await parseErrorBody(output.body, context),
|
|
@@ -802,40 +802,40 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
|
|
|
802
802
|
switch (errorCode) {
|
|
803
803
|
case "AccessDeniedException":
|
|
804
804
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
805
|
-
throw await
|
|
805
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
806
806
|
case "BadDocumentException":
|
|
807
807
|
case "com.amazonaws.textract#BadDocumentException":
|
|
808
|
-
throw await
|
|
808
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
809
809
|
case "DocumentTooLargeException":
|
|
810
810
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
811
|
-
throw await
|
|
811
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
812
812
|
case "IdempotentParameterMismatchException":
|
|
813
813
|
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
814
|
-
throw await
|
|
814
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
815
815
|
case "InternalServerError":
|
|
816
816
|
case "com.amazonaws.textract#InternalServerError":
|
|
817
|
-
throw await
|
|
817
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
818
818
|
case "InvalidKMSKeyException":
|
|
819
819
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
820
|
-
throw await
|
|
820
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
821
821
|
case "InvalidParameterException":
|
|
822
822
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
823
|
-
throw await
|
|
823
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
824
824
|
case "InvalidS3ObjectException":
|
|
825
825
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
826
|
-
throw await
|
|
826
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
827
827
|
case "LimitExceededException":
|
|
828
828
|
case "com.amazonaws.textract#LimitExceededException":
|
|
829
|
-
throw await
|
|
829
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
830
830
|
case "ProvisionedThroughputExceededException":
|
|
831
831
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
832
|
-
throw await
|
|
832
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
833
833
|
case "ThrottlingException":
|
|
834
834
|
case "com.amazonaws.textract#ThrottlingException":
|
|
835
|
-
throw await
|
|
835
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
836
836
|
case "UnsupportedDocumentException":
|
|
837
837
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
838
|
-
throw await
|
|
838
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
839
839
|
default:
|
|
840
840
|
const parsedBody = parsedOutput.body;
|
|
841
841
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -846,21 +846,21 @@ const deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, co
|
|
|
846
846
|
});
|
|
847
847
|
}
|
|
848
848
|
};
|
|
849
|
-
const
|
|
849
|
+
const de_StartLendingAnalysisCommand = async (output, context) => {
|
|
850
850
|
if (output.statusCode >= 300) {
|
|
851
|
-
return
|
|
851
|
+
return de_StartLendingAnalysisCommandError(output, context);
|
|
852
852
|
}
|
|
853
853
|
const data = await parseBody(output.body, context);
|
|
854
854
|
let contents = {};
|
|
855
|
-
contents =
|
|
855
|
+
contents = de_StartLendingAnalysisResponse(data, context);
|
|
856
856
|
const response = {
|
|
857
857
|
$metadata: deserializeMetadata(output),
|
|
858
858
|
...contents,
|
|
859
859
|
};
|
|
860
860
|
return Promise.resolve(response);
|
|
861
861
|
};
|
|
862
|
-
exports.
|
|
863
|
-
const
|
|
862
|
+
exports.de_StartLendingAnalysisCommand = de_StartLendingAnalysisCommand;
|
|
863
|
+
const de_StartLendingAnalysisCommandError = async (output, context) => {
|
|
864
864
|
const parsedOutput = {
|
|
865
865
|
...output,
|
|
866
866
|
body: await parseErrorBody(output.body, context),
|
|
@@ -869,40 +869,40 @@ const deserializeAws_json1_1StartLendingAnalysisCommandError = async (output, co
|
|
|
869
869
|
switch (errorCode) {
|
|
870
870
|
case "AccessDeniedException":
|
|
871
871
|
case "com.amazonaws.textract#AccessDeniedException":
|
|
872
|
-
throw await
|
|
872
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
873
873
|
case "BadDocumentException":
|
|
874
874
|
case "com.amazonaws.textract#BadDocumentException":
|
|
875
|
-
throw await
|
|
875
|
+
throw await de_BadDocumentExceptionRes(parsedOutput, context);
|
|
876
876
|
case "DocumentTooLargeException":
|
|
877
877
|
case "com.amazonaws.textract#DocumentTooLargeException":
|
|
878
|
-
throw await
|
|
878
|
+
throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
|
|
879
879
|
case "IdempotentParameterMismatchException":
|
|
880
880
|
case "com.amazonaws.textract#IdempotentParameterMismatchException":
|
|
881
|
-
throw await
|
|
881
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
882
882
|
case "InternalServerError":
|
|
883
883
|
case "com.amazonaws.textract#InternalServerError":
|
|
884
|
-
throw await
|
|
884
|
+
throw await de_InternalServerErrorRes(parsedOutput, context);
|
|
885
885
|
case "InvalidKMSKeyException":
|
|
886
886
|
case "com.amazonaws.textract#InvalidKMSKeyException":
|
|
887
|
-
throw await
|
|
887
|
+
throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
|
|
888
888
|
case "InvalidParameterException":
|
|
889
889
|
case "com.amazonaws.textract#InvalidParameterException":
|
|
890
|
-
throw await
|
|
890
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
891
891
|
case "InvalidS3ObjectException":
|
|
892
892
|
case "com.amazonaws.textract#InvalidS3ObjectException":
|
|
893
|
-
throw await
|
|
893
|
+
throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
|
|
894
894
|
case "LimitExceededException":
|
|
895
895
|
case "com.amazonaws.textract#LimitExceededException":
|
|
896
|
-
throw await
|
|
896
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
897
897
|
case "ProvisionedThroughputExceededException":
|
|
898
898
|
case "com.amazonaws.textract#ProvisionedThroughputExceededException":
|
|
899
|
-
throw await
|
|
899
|
+
throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
|
|
900
900
|
case "ThrottlingException":
|
|
901
901
|
case "com.amazonaws.textract#ThrottlingException":
|
|
902
|
-
throw await
|
|
902
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
903
903
|
case "UnsupportedDocumentException":
|
|
904
904
|
case "com.amazonaws.textract#UnsupportedDocumentException":
|
|
905
|
-
throw await
|
|
905
|
+
throw await de_UnsupportedDocumentExceptionRes(parsedOutput, context);
|
|
906
906
|
default:
|
|
907
907
|
const parsedBody = parsedOutput.body;
|
|
908
908
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -913,413 +913,383 @@ const deserializeAws_json1_1StartLendingAnalysisCommandError = async (output, co
|
|
|
913
913
|
});
|
|
914
914
|
}
|
|
915
915
|
};
|
|
916
|
-
const
|
|
916
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
917
917
|
const body = parsedOutput.body;
|
|
918
|
-
const deserialized =
|
|
918
|
+
const deserialized = de_AccessDeniedException(body, context);
|
|
919
919
|
const exception = new models_0_1.AccessDeniedException({
|
|
920
920
|
$metadata: deserializeMetadata(parsedOutput),
|
|
921
921
|
...deserialized,
|
|
922
922
|
});
|
|
923
923
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
924
924
|
};
|
|
925
|
-
const
|
|
925
|
+
const de_BadDocumentExceptionRes = async (parsedOutput, context) => {
|
|
926
926
|
const body = parsedOutput.body;
|
|
927
|
-
const deserialized =
|
|
927
|
+
const deserialized = de_BadDocumentException(body, context);
|
|
928
928
|
const exception = new models_0_1.BadDocumentException({
|
|
929
929
|
$metadata: deserializeMetadata(parsedOutput),
|
|
930
930
|
...deserialized,
|
|
931
931
|
});
|
|
932
932
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
933
933
|
};
|
|
934
|
-
const
|
|
934
|
+
const de_DocumentTooLargeExceptionRes = async (parsedOutput, context) => {
|
|
935
935
|
const body = parsedOutput.body;
|
|
936
|
-
const deserialized =
|
|
936
|
+
const deserialized = de_DocumentTooLargeException(body, context);
|
|
937
937
|
const exception = new models_0_1.DocumentTooLargeException({
|
|
938
938
|
$metadata: deserializeMetadata(parsedOutput),
|
|
939
939
|
...deserialized,
|
|
940
940
|
});
|
|
941
941
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
942
942
|
};
|
|
943
|
-
const
|
|
943
|
+
const de_HumanLoopQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
944
944
|
const body = parsedOutput.body;
|
|
945
|
-
const deserialized =
|
|
945
|
+
const deserialized = de_HumanLoopQuotaExceededException(body, context);
|
|
946
946
|
const exception = new models_0_1.HumanLoopQuotaExceededException({
|
|
947
947
|
$metadata: deserializeMetadata(parsedOutput),
|
|
948
948
|
...deserialized,
|
|
949
949
|
});
|
|
950
950
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
951
951
|
};
|
|
952
|
-
const
|
|
952
|
+
const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
|
|
953
953
|
const body = parsedOutput.body;
|
|
954
|
-
const deserialized =
|
|
954
|
+
const deserialized = de_IdempotentParameterMismatchException(body, context);
|
|
955
955
|
const exception = new models_0_1.IdempotentParameterMismatchException({
|
|
956
956
|
$metadata: deserializeMetadata(parsedOutput),
|
|
957
957
|
...deserialized,
|
|
958
958
|
});
|
|
959
959
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
960
960
|
};
|
|
961
|
-
const
|
|
961
|
+
const de_InternalServerErrorRes = async (parsedOutput, context) => {
|
|
962
962
|
const body = parsedOutput.body;
|
|
963
|
-
const deserialized =
|
|
963
|
+
const deserialized = de_InternalServerError(body, context);
|
|
964
964
|
const exception = new models_0_1.InternalServerError({
|
|
965
965
|
$metadata: deserializeMetadata(parsedOutput),
|
|
966
966
|
...deserialized,
|
|
967
967
|
});
|
|
968
968
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
969
969
|
};
|
|
970
|
-
const
|
|
970
|
+
const de_InvalidJobIdExceptionRes = async (parsedOutput, context) => {
|
|
971
971
|
const body = parsedOutput.body;
|
|
972
|
-
const deserialized =
|
|
972
|
+
const deserialized = de_InvalidJobIdException(body, context);
|
|
973
973
|
const exception = new models_0_1.InvalidJobIdException({
|
|
974
974
|
$metadata: deserializeMetadata(parsedOutput),
|
|
975
975
|
...deserialized,
|
|
976
976
|
});
|
|
977
977
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
978
978
|
};
|
|
979
|
-
const
|
|
979
|
+
const de_InvalidKMSKeyExceptionRes = async (parsedOutput, context) => {
|
|
980
980
|
const body = parsedOutput.body;
|
|
981
|
-
const deserialized =
|
|
981
|
+
const deserialized = de_InvalidKMSKeyException(body, context);
|
|
982
982
|
const exception = new models_0_1.InvalidKMSKeyException({
|
|
983
983
|
$metadata: deserializeMetadata(parsedOutput),
|
|
984
984
|
...deserialized,
|
|
985
985
|
});
|
|
986
986
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
987
987
|
};
|
|
988
|
-
const
|
|
988
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
989
989
|
const body = parsedOutput.body;
|
|
990
|
-
const deserialized =
|
|
990
|
+
const deserialized = de_InvalidParameterException(body, context);
|
|
991
991
|
const exception = new models_0_1.InvalidParameterException({
|
|
992
992
|
$metadata: deserializeMetadata(parsedOutput),
|
|
993
993
|
...deserialized,
|
|
994
994
|
});
|
|
995
995
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
996
996
|
};
|
|
997
|
-
const
|
|
997
|
+
const de_InvalidS3ObjectExceptionRes = async (parsedOutput, context) => {
|
|
998
998
|
const body = parsedOutput.body;
|
|
999
|
-
const deserialized =
|
|
999
|
+
const deserialized = de_InvalidS3ObjectException(body, context);
|
|
1000
1000
|
const exception = new models_0_1.InvalidS3ObjectException({
|
|
1001
1001
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1002
1002
|
...deserialized,
|
|
1003
1003
|
});
|
|
1004
1004
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1005
1005
|
};
|
|
1006
|
-
const
|
|
1006
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1007
1007
|
const body = parsedOutput.body;
|
|
1008
|
-
const deserialized =
|
|
1008
|
+
const deserialized = de_LimitExceededException(body, context);
|
|
1009
1009
|
const exception = new models_0_1.LimitExceededException({
|
|
1010
1010
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1011
1011
|
...deserialized,
|
|
1012
1012
|
});
|
|
1013
1013
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1014
1014
|
};
|
|
1015
|
-
const
|
|
1015
|
+
const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
|
|
1016
1016
|
const body = parsedOutput.body;
|
|
1017
|
-
const deserialized =
|
|
1017
|
+
const deserialized = de_ProvisionedThroughputExceededException(body, context);
|
|
1018
1018
|
const exception = new models_0_1.ProvisionedThroughputExceededException({
|
|
1019
1019
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1020
1020
|
...deserialized,
|
|
1021
1021
|
});
|
|
1022
1022
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1023
1023
|
};
|
|
1024
|
-
const
|
|
1024
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1025
1025
|
const body = parsedOutput.body;
|
|
1026
|
-
const deserialized =
|
|
1026
|
+
const deserialized = de_ThrottlingException(body, context);
|
|
1027
1027
|
const exception = new models_0_1.ThrottlingException({
|
|
1028
1028
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1029
1029
|
...deserialized,
|
|
1030
1030
|
});
|
|
1031
1031
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1032
1032
|
};
|
|
1033
|
-
const
|
|
1033
|
+
const de_UnsupportedDocumentExceptionRes = async (parsedOutput, context) => {
|
|
1034
1034
|
const body = parsedOutput.body;
|
|
1035
|
-
const deserialized =
|
|
1035
|
+
const deserialized = de_UnsupportedDocumentException(body, context);
|
|
1036
1036
|
const exception = new models_0_1.UnsupportedDocumentException({
|
|
1037
1037
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1038
1038
|
...deserialized,
|
|
1039
1039
|
});
|
|
1040
1040
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1041
1041
|
};
|
|
1042
|
-
const
|
|
1042
|
+
const se_AnalyzeDocumentRequest = (input, context) => {
|
|
1043
1043
|
return {
|
|
1044
|
-
...(input.Document != null && { Document:
|
|
1045
|
-
...(input.FeatureTypes != null && { FeatureTypes:
|
|
1046
|
-
...(input.HumanLoopConfig != null && {
|
|
1047
|
-
|
|
1048
|
-
}),
|
|
1049
|
-
...(input.QueriesConfig != null && {
|
|
1050
|
-
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
1051
|
-
}),
|
|
1044
|
+
...(input.Document != null && { Document: se_Document(input.Document, context) }),
|
|
1045
|
+
...(input.FeatureTypes != null && { FeatureTypes: se_FeatureTypes(input.FeatureTypes, context) }),
|
|
1046
|
+
...(input.HumanLoopConfig != null && { HumanLoopConfig: se_HumanLoopConfig(input.HumanLoopConfig, context) }),
|
|
1047
|
+
...(input.QueriesConfig != null && { QueriesConfig: se_QueriesConfig(input.QueriesConfig, context) }),
|
|
1052
1048
|
};
|
|
1053
1049
|
};
|
|
1054
|
-
const
|
|
1050
|
+
const se_AnalyzeExpenseRequest = (input, context) => {
|
|
1055
1051
|
return {
|
|
1056
|
-
...(input.Document != null && { Document:
|
|
1052
|
+
...(input.Document != null && { Document: se_Document(input.Document, context) }),
|
|
1057
1053
|
};
|
|
1058
1054
|
};
|
|
1059
|
-
const
|
|
1055
|
+
const se_AnalyzeIDRequest = (input, context) => {
|
|
1060
1056
|
return {
|
|
1061
|
-
...(input.DocumentPages != null && {
|
|
1062
|
-
DocumentPages: serializeAws_json1_1DocumentPages(input.DocumentPages, context),
|
|
1063
|
-
}),
|
|
1057
|
+
...(input.DocumentPages != null && { DocumentPages: se_DocumentPages(input.DocumentPages, context) }),
|
|
1064
1058
|
};
|
|
1065
1059
|
};
|
|
1066
|
-
const
|
|
1060
|
+
const se_ContentClassifiers = (input, context) => {
|
|
1067
1061
|
return input
|
|
1068
1062
|
.filter((e) => e != null)
|
|
1069
1063
|
.map((entry) => {
|
|
1070
1064
|
return entry;
|
|
1071
1065
|
});
|
|
1072
1066
|
};
|
|
1073
|
-
const
|
|
1067
|
+
const se_DetectDocumentTextRequest = (input, context) => {
|
|
1074
1068
|
return {
|
|
1075
|
-
...(input.Document != null && { Document:
|
|
1069
|
+
...(input.Document != null && { Document: se_Document(input.Document, context) }),
|
|
1076
1070
|
};
|
|
1077
1071
|
};
|
|
1078
|
-
const
|
|
1072
|
+
const se_Document = (input, context) => {
|
|
1079
1073
|
return {
|
|
1080
1074
|
...(input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) }),
|
|
1081
|
-
...(input.S3Object != null && { S3Object:
|
|
1075
|
+
...(input.S3Object != null && { S3Object: se_S3Object(input.S3Object, context) }),
|
|
1082
1076
|
};
|
|
1083
1077
|
};
|
|
1084
|
-
const
|
|
1078
|
+
const se_DocumentLocation = (input, context) => {
|
|
1085
1079
|
return {
|
|
1086
|
-
...(input.S3Object != null && { S3Object:
|
|
1080
|
+
...(input.S3Object != null && { S3Object: se_S3Object(input.S3Object, context) }),
|
|
1087
1081
|
};
|
|
1088
1082
|
};
|
|
1089
|
-
const
|
|
1083
|
+
const se_DocumentPages = (input, context) => {
|
|
1090
1084
|
return input
|
|
1091
1085
|
.filter((e) => e != null)
|
|
1092
1086
|
.map((entry) => {
|
|
1093
|
-
return
|
|
1087
|
+
return se_Document(entry, context);
|
|
1094
1088
|
});
|
|
1095
1089
|
};
|
|
1096
|
-
const
|
|
1090
|
+
const se_FeatureTypes = (input, context) => {
|
|
1097
1091
|
return input
|
|
1098
1092
|
.filter((e) => e != null)
|
|
1099
1093
|
.map((entry) => {
|
|
1100
1094
|
return entry;
|
|
1101
1095
|
});
|
|
1102
1096
|
};
|
|
1103
|
-
const
|
|
1097
|
+
const se_GetDocumentAnalysisRequest = (input, context) => {
|
|
1104
1098
|
return {
|
|
1105
1099
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1106
1100
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1107
1101
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1108
1102
|
};
|
|
1109
1103
|
};
|
|
1110
|
-
const
|
|
1104
|
+
const se_GetDocumentTextDetectionRequest = (input, context) => {
|
|
1111
1105
|
return {
|
|
1112
1106
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1113
1107
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1114
1108
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1115
1109
|
};
|
|
1116
1110
|
};
|
|
1117
|
-
const
|
|
1111
|
+
const se_GetExpenseAnalysisRequest = (input, context) => {
|
|
1118
1112
|
return {
|
|
1119
1113
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1120
1114
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1121
1115
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1122
1116
|
};
|
|
1123
1117
|
};
|
|
1124
|
-
const
|
|
1118
|
+
const se_GetLendingAnalysisRequest = (input, context) => {
|
|
1125
1119
|
return {
|
|
1126
1120
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1127
1121
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1128
1122
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1129
1123
|
};
|
|
1130
1124
|
};
|
|
1131
|
-
const
|
|
1125
|
+
const se_GetLendingAnalysisSummaryRequest = (input, context) => {
|
|
1132
1126
|
return {
|
|
1133
1127
|
...(input.JobId != null && { JobId: input.JobId }),
|
|
1134
1128
|
};
|
|
1135
1129
|
};
|
|
1136
|
-
const
|
|
1130
|
+
const se_HumanLoopConfig = (input, context) => {
|
|
1137
1131
|
return {
|
|
1138
|
-
...(input.DataAttributes != null && {
|
|
1139
|
-
DataAttributes: serializeAws_json1_1HumanLoopDataAttributes(input.DataAttributes, context),
|
|
1140
|
-
}),
|
|
1132
|
+
...(input.DataAttributes != null && { DataAttributes: se_HumanLoopDataAttributes(input.DataAttributes, context) }),
|
|
1141
1133
|
...(input.FlowDefinitionArn != null && { FlowDefinitionArn: input.FlowDefinitionArn }),
|
|
1142
1134
|
...(input.HumanLoopName != null && { HumanLoopName: input.HumanLoopName }),
|
|
1143
1135
|
};
|
|
1144
1136
|
};
|
|
1145
|
-
const
|
|
1137
|
+
const se_HumanLoopDataAttributes = (input, context) => {
|
|
1146
1138
|
return {
|
|
1147
1139
|
...(input.ContentClassifiers != null && {
|
|
1148
|
-
ContentClassifiers:
|
|
1140
|
+
ContentClassifiers: se_ContentClassifiers(input.ContentClassifiers, context),
|
|
1149
1141
|
}),
|
|
1150
1142
|
};
|
|
1151
1143
|
};
|
|
1152
|
-
const
|
|
1144
|
+
const se_NotificationChannel = (input, context) => {
|
|
1153
1145
|
return {
|
|
1154
1146
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1155
1147
|
...(input.SNSTopicArn != null && { SNSTopicArn: input.SNSTopicArn }),
|
|
1156
1148
|
};
|
|
1157
1149
|
};
|
|
1158
|
-
const
|
|
1150
|
+
const se_OutputConfig = (input, context) => {
|
|
1159
1151
|
return {
|
|
1160
1152
|
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
1161
1153
|
...(input.S3Prefix != null && { S3Prefix: input.S3Prefix }),
|
|
1162
1154
|
};
|
|
1163
1155
|
};
|
|
1164
|
-
const
|
|
1156
|
+
const se_Queries = (input, context) => {
|
|
1165
1157
|
return input
|
|
1166
1158
|
.filter((e) => e != null)
|
|
1167
1159
|
.map((entry) => {
|
|
1168
|
-
return
|
|
1160
|
+
return se_Query(entry, context);
|
|
1169
1161
|
});
|
|
1170
1162
|
};
|
|
1171
|
-
const
|
|
1163
|
+
const se_QueriesConfig = (input, context) => {
|
|
1172
1164
|
return {
|
|
1173
|
-
...(input.Queries != null && { Queries:
|
|
1165
|
+
...(input.Queries != null && { Queries: se_Queries(input.Queries, context) }),
|
|
1174
1166
|
};
|
|
1175
1167
|
};
|
|
1176
|
-
const
|
|
1168
|
+
const se_Query = (input, context) => {
|
|
1177
1169
|
return {
|
|
1178
1170
|
...(input.Alias != null && { Alias: input.Alias }),
|
|
1179
|
-
...(input.Pages != null && { Pages:
|
|
1171
|
+
...(input.Pages != null && { Pages: se_QueryPages(input.Pages, context) }),
|
|
1180
1172
|
...(input.Text != null && { Text: input.Text }),
|
|
1181
1173
|
};
|
|
1182
1174
|
};
|
|
1183
|
-
const
|
|
1175
|
+
const se_QueryPages = (input, context) => {
|
|
1184
1176
|
return input
|
|
1185
1177
|
.filter((e) => e != null)
|
|
1186
1178
|
.map((entry) => {
|
|
1187
1179
|
return entry;
|
|
1188
1180
|
});
|
|
1189
1181
|
};
|
|
1190
|
-
const
|
|
1182
|
+
const se_S3Object = (input, context) => {
|
|
1191
1183
|
return {
|
|
1192
1184
|
...(input.Bucket != null && { Bucket: input.Bucket }),
|
|
1193
1185
|
...(input.Name != null && { Name: input.Name }),
|
|
1194
1186
|
...(input.Version != null && { Version: input.Version }),
|
|
1195
1187
|
};
|
|
1196
1188
|
};
|
|
1197
|
-
const
|
|
1189
|
+
const se_StartDocumentAnalysisRequest = (input, context) => {
|
|
1198
1190
|
return {
|
|
1199
1191
|
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1200
|
-
...(input.DocumentLocation != null && {
|
|
1201
|
-
|
|
1202
|
-
}),
|
|
1203
|
-
...(input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) }),
|
|
1192
|
+
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1193
|
+
...(input.FeatureTypes != null && { FeatureTypes: se_FeatureTypes(input.FeatureTypes, context) }),
|
|
1204
1194
|
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1205
1195
|
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1206
1196
|
...(input.NotificationChannel != null && {
|
|
1207
|
-
NotificationChannel:
|
|
1208
|
-
}),
|
|
1209
|
-
...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
|
|
1210
|
-
...(input.QueriesConfig != null && {
|
|
1211
|
-
QueriesConfig: serializeAws_json1_1QueriesConfig(input.QueriesConfig, context),
|
|
1197
|
+
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1212
1198
|
}),
|
|
1199
|
+
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1200
|
+
...(input.QueriesConfig != null && { QueriesConfig: se_QueriesConfig(input.QueriesConfig, context) }),
|
|
1213
1201
|
};
|
|
1214
1202
|
};
|
|
1215
|
-
const
|
|
1203
|
+
const se_StartDocumentTextDetectionRequest = (input, context) => {
|
|
1216
1204
|
return {
|
|
1217
1205
|
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1218
|
-
...(input.DocumentLocation != null && {
|
|
1219
|
-
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1220
|
-
}),
|
|
1206
|
+
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1221
1207
|
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1222
1208
|
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1223
1209
|
...(input.NotificationChannel != null && {
|
|
1224
|
-
NotificationChannel:
|
|
1210
|
+
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1225
1211
|
}),
|
|
1226
|
-
...(input.OutputConfig != null && { OutputConfig:
|
|
1212
|
+
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1227
1213
|
};
|
|
1228
1214
|
};
|
|
1229
|
-
const
|
|
1215
|
+
const se_StartExpenseAnalysisRequest = (input, context) => {
|
|
1230
1216
|
return {
|
|
1231
1217
|
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1232
|
-
...(input.DocumentLocation != null && {
|
|
1233
|
-
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1234
|
-
}),
|
|
1218
|
+
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1235
1219
|
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1236
1220
|
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1237
1221
|
...(input.NotificationChannel != null && {
|
|
1238
|
-
NotificationChannel:
|
|
1222
|
+
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1239
1223
|
}),
|
|
1240
|
-
...(input.OutputConfig != null && { OutputConfig:
|
|
1224
|
+
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1241
1225
|
};
|
|
1242
1226
|
};
|
|
1243
|
-
const
|
|
1227
|
+
const se_StartLendingAnalysisRequest = (input, context) => {
|
|
1244
1228
|
return {
|
|
1245
1229
|
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
1246
|
-
...(input.DocumentLocation != null && {
|
|
1247
|
-
DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
|
|
1248
|
-
}),
|
|
1230
|
+
...(input.DocumentLocation != null && { DocumentLocation: se_DocumentLocation(input.DocumentLocation, context) }),
|
|
1249
1231
|
...(input.JobTag != null && { JobTag: input.JobTag }),
|
|
1250
1232
|
...(input.KMSKeyId != null && { KMSKeyId: input.KMSKeyId }),
|
|
1251
1233
|
...(input.NotificationChannel != null && {
|
|
1252
|
-
NotificationChannel:
|
|
1234
|
+
NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
|
|
1253
1235
|
}),
|
|
1254
|
-
...(input.OutputConfig != null && { OutputConfig:
|
|
1236
|
+
...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
|
|
1255
1237
|
};
|
|
1256
1238
|
};
|
|
1257
|
-
const
|
|
1239
|
+
const de_AccessDeniedException = (output, context) => {
|
|
1258
1240
|
return {
|
|
1259
1241
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1260
1242
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1261
1243
|
};
|
|
1262
1244
|
};
|
|
1263
|
-
const
|
|
1245
|
+
const de_AnalyzeDocumentResponse = (output, context) => {
|
|
1264
1246
|
return {
|
|
1265
1247
|
AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
|
|
1266
|
-
Blocks: output.Blocks != null ?
|
|
1267
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1268
|
-
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1269
|
-
: undefined,
|
|
1248
|
+
Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
|
|
1249
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1270
1250
|
HumanLoopActivationOutput: output.HumanLoopActivationOutput != null
|
|
1271
|
-
?
|
|
1251
|
+
? de_HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
|
|
1272
1252
|
: undefined,
|
|
1273
1253
|
};
|
|
1274
1254
|
};
|
|
1275
|
-
const
|
|
1255
|
+
const de_AnalyzeExpenseResponse = (output, context) => {
|
|
1276
1256
|
return {
|
|
1277
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1278
|
-
|
|
1279
|
-
: undefined,
|
|
1280
|
-
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1281
|
-
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1282
|
-
: undefined,
|
|
1257
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1258
|
+
ExpenseDocuments: output.ExpenseDocuments != null ? de_ExpenseDocumentList(output.ExpenseDocuments, context) : undefined,
|
|
1283
1259
|
};
|
|
1284
1260
|
};
|
|
1285
|
-
const
|
|
1261
|
+
const de_AnalyzeIDDetections = (output, context) => {
|
|
1286
1262
|
return {
|
|
1287
1263
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1288
|
-
NormalizedValue: output.NormalizedValue != null
|
|
1289
|
-
? deserializeAws_json1_1NormalizedValue(output.NormalizedValue, context)
|
|
1290
|
-
: undefined,
|
|
1264
|
+
NormalizedValue: output.NormalizedValue != null ? de_NormalizedValue(output.NormalizedValue, context) : undefined,
|
|
1291
1265
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1292
1266
|
};
|
|
1293
1267
|
};
|
|
1294
|
-
const
|
|
1268
|
+
const de_AnalyzeIDResponse = (output, context) => {
|
|
1295
1269
|
return {
|
|
1296
1270
|
AnalyzeIDModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeIDModelVersion),
|
|
1297
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1298
|
-
|
|
1299
|
-
: undefined,
|
|
1300
|
-
IdentityDocuments: output.IdentityDocuments != null
|
|
1301
|
-
? deserializeAws_json1_1IdentityDocumentList(output.IdentityDocuments, context)
|
|
1302
|
-
: undefined,
|
|
1271
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1272
|
+
IdentityDocuments: output.IdentityDocuments != null ? de_IdentityDocumentList(output.IdentityDocuments, context) : undefined,
|
|
1303
1273
|
};
|
|
1304
1274
|
};
|
|
1305
|
-
const
|
|
1275
|
+
const de_BadDocumentException = (output, context) => {
|
|
1306
1276
|
return {
|
|
1307
1277
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1308
1278
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1309
1279
|
};
|
|
1310
1280
|
};
|
|
1311
|
-
const
|
|
1281
|
+
const de_Block = (output, context) => {
|
|
1312
1282
|
return {
|
|
1313
1283
|
BlockType: (0, smithy_client_1.expectString)(output.BlockType),
|
|
1314
1284
|
ColumnIndex: (0, smithy_client_1.expectInt32)(output.ColumnIndex),
|
|
1315
1285
|
ColumnSpan: (0, smithy_client_1.expectInt32)(output.ColumnSpan),
|
|
1316
1286
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1317
|
-
EntityTypes: output.EntityTypes != null ?
|
|
1318
|
-
Geometry: output.Geometry != null ?
|
|
1287
|
+
EntityTypes: output.EntityTypes != null ? de_EntityTypes(output.EntityTypes, context) : undefined,
|
|
1288
|
+
Geometry: output.Geometry != null ? de_Geometry(output.Geometry, context) : undefined,
|
|
1319
1289
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1320
1290
|
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1321
|
-
Query: output.Query != null ?
|
|
1322
|
-
Relationships: output.Relationships != null ?
|
|
1291
|
+
Query: output.Query != null ? de_Query(output.Query, context) : undefined,
|
|
1292
|
+
Relationships: output.Relationships != null ? de_RelationshipList(output.Relationships, context) : undefined,
|
|
1323
1293
|
RowIndex: (0, smithy_client_1.expectInt32)(output.RowIndex),
|
|
1324
1294
|
RowSpan: (0, smithy_client_1.expectInt32)(output.RowSpan),
|
|
1325
1295
|
SelectionStatus: (0, smithy_client_1.expectString)(output.SelectionStatus),
|
|
@@ -1327,18 +1297,18 @@ const deserializeAws_json1_1Block = (output, context) => {
|
|
|
1327
1297
|
TextType: (0, smithy_client_1.expectString)(output.TextType),
|
|
1328
1298
|
};
|
|
1329
1299
|
};
|
|
1330
|
-
const
|
|
1300
|
+
const de_BlockList = (output, context) => {
|
|
1331
1301
|
const retVal = (output || [])
|
|
1332
1302
|
.filter((e) => e != null)
|
|
1333
1303
|
.map((entry) => {
|
|
1334
1304
|
if (entry === null) {
|
|
1335
1305
|
return null;
|
|
1336
1306
|
}
|
|
1337
|
-
return
|
|
1307
|
+
return de_Block(entry, context);
|
|
1338
1308
|
});
|
|
1339
1309
|
return retVal;
|
|
1340
1310
|
};
|
|
1341
|
-
const
|
|
1311
|
+
const de_BoundingBox = (output, context) => {
|
|
1342
1312
|
return {
|
|
1343
1313
|
Height: (0, smithy_client_1.limitedParseFloat32)(output.Height),
|
|
1344
1314
|
Left: (0, smithy_client_1.limitedParseFloat32)(output.Left),
|
|
@@ -1346,68 +1316,62 @@ const deserializeAws_json1_1BoundingBox = (output, context) => {
|
|
|
1346
1316
|
Width: (0, smithy_client_1.limitedParseFloat32)(output.Width),
|
|
1347
1317
|
};
|
|
1348
1318
|
};
|
|
1349
|
-
const
|
|
1319
|
+
const de_DetectDocumentTextResponse = (output, context) => {
|
|
1350
1320
|
return {
|
|
1351
|
-
Blocks: output.Blocks != null ?
|
|
1321
|
+
Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
|
|
1352
1322
|
DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
|
|
1353
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1354
|
-
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1355
|
-
: undefined,
|
|
1323
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1356
1324
|
};
|
|
1357
1325
|
};
|
|
1358
|
-
const
|
|
1326
|
+
const de_DetectedSignature = (output, context) => {
|
|
1359
1327
|
return {
|
|
1360
1328
|
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1361
1329
|
};
|
|
1362
1330
|
};
|
|
1363
|
-
const
|
|
1331
|
+
const de_DetectedSignatureList = (output, context) => {
|
|
1364
1332
|
const retVal = (output || [])
|
|
1365
1333
|
.filter((e) => e != null)
|
|
1366
1334
|
.map((entry) => {
|
|
1367
1335
|
if (entry === null) {
|
|
1368
1336
|
return null;
|
|
1369
1337
|
}
|
|
1370
|
-
return
|
|
1338
|
+
return de_DetectedSignature(entry, context);
|
|
1371
1339
|
});
|
|
1372
1340
|
return retVal;
|
|
1373
1341
|
};
|
|
1374
|
-
const
|
|
1342
|
+
const de_DocumentGroup = (output, context) => {
|
|
1375
1343
|
return {
|
|
1376
|
-
DetectedSignatures: output.DetectedSignatures != null
|
|
1377
|
-
|
|
1378
|
-
: undefined,
|
|
1379
|
-
SplitDocuments: output.SplitDocuments != null
|
|
1380
|
-
? deserializeAws_json1_1SplitDocumentList(output.SplitDocuments, context)
|
|
1381
|
-
: undefined,
|
|
1344
|
+
DetectedSignatures: output.DetectedSignatures != null ? de_DetectedSignatureList(output.DetectedSignatures, context) : undefined,
|
|
1345
|
+
SplitDocuments: output.SplitDocuments != null ? de_SplitDocumentList(output.SplitDocuments, context) : undefined,
|
|
1382
1346
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1383
1347
|
UndetectedSignatures: output.UndetectedSignatures != null
|
|
1384
|
-
?
|
|
1348
|
+
? de_UndetectedSignatureList(output.UndetectedSignatures, context)
|
|
1385
1349
|
: undefined,
|
|
1386
1350
|
};
|
|
1387
1351
|
};
|
|
1388
|
-
const
|
|
1352
|
+
const de_DocumentGroupList = (output, context) => {
|
|
1389
1353
|
const retVal = (output || [])
|
|
1390
1354
|
.filter((e) => e != null)
|
|
1391
1355
|
.map((entry) => {
|
|
1392
1356
|
if (entry === null) {
|
|
1393
1357
|
return null;
|
|
1394
1358
|
}
|
|
1395
|
-
return
|
|
1359
|
+
return de_DocumentGroup(entry, context);
|
|
1396
1360
|
});
|
|
1397
1361
|
return retVal;
|
|
1398
1362
|
};
|
|
1399
|
-
const
|
|
1363
|
+
const de_DocumentMetadata = (output, context) => {
|
|
1400
1364
|
return {
|
|
1401
1365
|
Pages: (0, smithy_client_1.expectInt32)(output.Pages),
|
|
1402
1366
|
};
|
|
1403
1367
|
};
|
|
1404
|
-
const
|
|
1368
|
+
const de_DocumentTooLargeException = (output, context) => {
|
|
1405
1369
|
return {
|
|
1406
1370
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1407
1371
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1408
1372
|
};
|
|
1409
1373
|
};
|
|
1410
|
-
const
|
|
1374
|
+
const de_EntityTypes = (output, context) => {
|
|
1411
1375
|
const retVal = (output || [])
|
|
1412
1376
|
.filter((e) => e != null)
|
|
1413
1377
|
.map((entry) => {
|
|
@@ -1418,198 +1382,172 @@ const deserializeAws_json1_1EntityTypes = (output, context) => {
|
|
|
1418
1382
|
});
|
|
1419
1383
|
return retVal;
|
|
1420
1384
|
};
|
|
1421
|
-
const
|
|
1385
|
+
const de_ExpenseCurrency = (output, context) => {
|
|
1422
1386
|
return {
|
|
1423
1387
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1424
1388
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1425
1389
|
};
|
|
1426
1390
|
};
|
|
1427
|
-
const
|
|
1391
|
+
const de_ExpenseDetection = (output, context) => {
|
|
1428
1392
|
return {
|
|
1429
1393
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1430
|
-
Geometry: output.Geometry != null ?
|
|
1394
|
+
Geometry: output.Geometry != null ? de_Geometry(output.Geometry, context) : undefined,
|
|
1431
1395
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1432
1396
|
};
|
|
1433
1397
|
};
|
|
1434
|
-
const
|
|
1398
|
+
const de_ExpenseDocument = (output, context) => {
|
|
1435
1399
|
return {
|
|
1436
|
-
Blocks: output.Blocks != null ?
|
|
1400
|
+
Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
|
|
1437
1401
|
ExpenseIndex: (0, smithy_client_1.expectInt32)(output.ExpenseIndex),
|
|
1438
|
-
LineItemGroups: output.LineItemGroups != null
|
|
1439
|
-
|
|
1440
|
-
: undefined,
|
|
1441
|
-
SummaryFields: output.SummaryFields != null ? deserializeAws_json1_1ExpenseFieldList(output.SummaryFields, context) : undefined,
|
|
1402
|
+
LineItemGroups: output.LineItemGroups != null ? de_LineItemGroupList(output.LineItemGroups, context) : undefined,
|
|
1403
|
+
SummaryFields: output.SummaryFields != null ? de_ExpenseFieldList(output.SummaryFields, context) : undefined,
|
|
1442
1404
|
};
|
|
1443
1405
|
};
|
|
1444
|
-
const
|
|
1406
|
+
const de_ExpenseDocumentList = (output, context) => {
|
|
1445
1407
|
const retVal = (output || [])
|
|
1446
1408
|
.filter((e) => e != null)
|
|
1447
1409
|
.map((entry) => {
|
|
1448
1410
|
if (entry === null) {
|
|
1449
1411
|
return null;
|
|
1450
1412
|
}
|
|
1451
|
-
return
|
|
1413
|
+
return de_ExpenseDocument(entry, context);
|
|
1452
1414
|
});
|
|
1453
1415
|
return retVal;
|
|
1454
1416
|
};
|
|
1455
|
-
const
|
|
1417
|
+
const de_ExpenseField = (output, context) => {
|
|
1456
1418
|
return {
|
|
1457
|
-
Currency: output.Currency != null ?
|
|
1458
|
-
GroupProperties: output.GroupProperties != null
|
|
1459
|
-
|
|
1460
|
-
: undefined,
|
|
1461
|
-
LabelDetection: output.LabelDetection != null
|
|
1462
|
-
? deserializeAws_json1_1ExpenseDetection(output.LabelDetection, context)
|
|
1463
|
-
: undefined,
|
|
1419
|
+
Currency: output.Currency != null ? de_ExpenseCurrency(output.Currency, context) : undefined,
|
|
1420
|
+
GroupProperties: output.GroupProperties != null ? de_ExpenseGroupPropertyList(output.GroupProperties, context) : undefined,
|
|
1421
|
+
LabelDetection: output.LabelDetection != null ? de_ExpenseDetection(output.LabelDetection, context) : undefined,
|
|
1464
1422
|
PageNumber: (0, smithy_client_1.expectInt32)(output.PageNumber),
|
|
1465
|
-
Type: output.Type != null ?
|
|
1466
|
-
ValueDetection: output.ValueDetection != null
|
|
1467
|
-
? deserializeAws_json1_1ExpenseDetection(output.ValueDetection, context)
|
|
1468
|
-
: undefined,
|
|
1423
|
+
Type: output.Type != null ? de_ExpenseType(output.Type, context) : undefined,
|
|
1424
|
+
ValueDetection: output.ValueDetection != null ? de_ExpenseDetection(output.ValueDetection, context) : undefined,
|
|
1469
1425
|
};
|
|
1470
1426
|
};
|
|
1471
|
-
const
|
|
1427
|
+
const de_ExpenseFieldList = (output, context) => {
|
|
1472
1428
|
const retVal = (output || [])
|
|
1473
1429
|
.filter((e) => e != null)
|
|
1474
1430
|
.map((entry) => {
|
|
1475
1431
|
if (entry === null) {
|
|
1476
1432
|
return null;
|
|
1477
1433
|
}
|
|
1478
|
-
return
|
|
1434
|
+
return de_ExpenseField(entry, context);
|
|
1479
1435
|
});
|
|
1480
1436
|
return retVal;
|
|
1481
1437
|
};
|
|
1482
|
-
const
|
|
1438
|
+
const de_ExpenseGroupProperty = (output, context) => {
|
|
1483
1439
|
return {
|
|
1484
1440
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
1485
|
-
Types: output.Types != null ?
|
|
1441
|
+
Types: output.Types != null ? de_StringList(output.Types, context) : undefined,
|
|
1486
1442
|
};
|
|
1487
1443
|
};
|
|
1488
|
-
const
|
|
1444
|
+
const de_ExpenseGroupPropertyList = (output, context) => {
|
|
1489
1445
|
const retVal = (output || [])
|
|
1490
1446
|
.filter((e) => e != null)
|
|
1491
1447
|
.map((entry) => {
|
|
1492
1448
|
if (entry === null) {
|
|
1493
1449
|
return null;
|
|
1494
1450
|
}
|
|
1495
|
-
return
|
|
1451
|
+
return de_ExpenseGroupProperty(entry, context);
|
|
1496
1452
|
});
|
|
1497
1453
|
return retVal;
|
|
1498
1454
|
};
|
|
1499
|
-
const
|
|
1455
|
+
const de_ExpenseType = (output, context) => {
|
|
1500
1456
|
return {
|
|
1501
1457
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1502
1458
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1503
1459
|
};
|
|
1504
1460
|
};
|
|
1505
|
-
const
|
|
1461
|
+
const de_Extraction = (output, context) => {
|
|
1506
1462
|
return {
|
|
1507
|
-
ExpenseDocument: output.ExpenseDocument != null
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
IdentityDocument: output.IdentityDocument != null
|
|
1511
|
-
? deserializeAws_json1_1IdentityDocument(output.IdentityDocument, context)
|
|
1512
|
-
: undefined,
|
|
1513
|
-
LendingDocument: output.LendingDocument != null
|
|
1514
|
-
? deserializeAws_json1_1LendingDocument(output.LendingDocument, context)
|
|
1515
|
-
: undefined,
|
|
1463
|
+
ExpenseDocument: output.ExpenseDocument != null ? de_ExpenseDocument(output.ExpenseDocument, context) : undefined,
|
|
1464
|
+
IdentityDocument: output.IdentityDocument != null ? de_IdentityDocument(output.IdentityDocument, context) : undefined,
|
|
1465
|
+
LendingDocument: output.LendingDocument != null ? de_LendingDocument(output.LendingDocument, context) : undefined,
|
|
1516
1466
|
};
|
|
1517
1467
|
};
|
|
1518
|
-
const
|
|
1468
|
+
const de_ExtractionList = (output, context) => {
|
|
1519
1469
|
const retVal = (output || [])
|
|
1520
1470
|
.filter((e) => e != null)
|
|
1521
1471
|
.map((entry) => {
|
|
1522
1472
|
if (entry === null) {
|
|
1523
1473
|
return null;
|
|
1524
1474
|
}
|
|
1525
|
-
return
|
|
1475
|
+
return de_Extraction(entry, context);
|
|
1526
1476
|
});
|
|
1527
1477
|
return retVal;
|
|
1528
1478
|
};
|
|
1529
|
-
const
|
|
1479
|
+
const de_Geometry = (output, context) => {
|
|
1530
1480
|
return {
|
|
1531
|
-
BoundingBox: output.BoundingBox != null ?
|
|
1532
|
-
Polygon: output.Polygon != null ?
|
|
1481
|
+
BoundingBox: output.BoundingBox != null ? de_BoundingBox(output.BoundingBox, context) : undefined,
|
|
1482
|
+
Polygon: output.Polygon != null ? de_Polygon(output.Polygon, context) : undefined,
|
|
1533
1483
|
};
|
|
1534
1484
|
};
|
|
1535
|
-
const
|
|
1485
|
+
const de_GetDocumentAnalysisResponse = (output, context) => {
|
|
1536
1486
|
return {
|
|
1537
1487
|
AnalyzeDocumentModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeDocumentModelVersion),
|
|
1538
|
-
Blocks: output.Blocks != null ?
|
|
1539
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1540
|
-
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1541
|
-
: undefined,
|
|
1488
|
+
Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
|
|
1489
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1542
1490
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1543
1491
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1544
1492
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1545
|
-
Warnings: output.Warnings != null ?
|
|
1493
|
+
Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
|
|
1546
1494
|
};
|
|
1547
1495
|
};
|
|
1548
|
-
const
|
|
1496
|
+
const de_GetDocumentTextDetectionResponse = (output, context) => {
|
|
1549
1497
|
return {
|
|
1550
|
-
Blocks: output.Blocks != null ?
|
|
1498
|
+
Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
|
|
1551
1499
|
DetectDocumentTextModelVersion: (0, smithy_client_1.expectString)(output.DetectDocumentTextModelVersion),
|
|
1552
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1553
|
-
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1554
|
-
: undefined,
|
|
1500
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1555
1501
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1556
1502
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1557
1503
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1558
|
-
Warnings: output.Warnings != null ?
|
|
1504
|
+
Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
|
|
1559
1505
|
};
|
|
1560
1506
|
};
|
|
1561
|
-
const
|
|
1507
|
+
const de_GetExpenseAnalysisResponse = (output, context) => {
|
|
1562
1508
|
return {
|
|
1563
1509
|
AnalyzeExpenseModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeExpenseModelVersion),
|
|
1564
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1565
|
-
|
|
1566
|
-
: undefined,
|
|
1567
|
-
ExpenseDocuments: output.ExpenseDocuments != null
|
|
1568
|
-
? deserializeAws_json1_1ExpenseDocumentList(output.ExpenseDocuments, context)
|
|
1569
|
-
: undefined,
|
|
1510
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1511
|
+
ExpenseDocuments: output.ExpenseDocuments != null ? de_ExpenseDocumentList(output.ExpenseDocuments, context) : undefined,
|
|
1570
1512
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1571
1513
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1572
1514
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1573
|
-
Warnings: output.Warnings != null ?
|
|
1515
|
+
Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
|
|
1574
1516
|
};
|
|
1575
1517
|
};
|
|
1576
|
-
const
|
|
1518
|
+
const de_GetLendingAnalysisResponse = (output, context) => {
|
|
1577
1519
|
return {
|
|
1578
1520
|
AnalyzeLendingModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeLendingModelVersion),
|
|
1579
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1580
|
-
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1581
|
-
: undefined,
|
|
1521
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1582
1522
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1583
1523
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1584
|
-
Results: output.Results != null ?
|
|
1524
|
+
Results: output.Results != null ? de_LendingResultList(output.Results, context) : undefined,
|
|
1585
1525
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1586
|
-
Warnings: output.Warnings != null ?
|
|
1526
|
+
Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
|
|
1587
1527
|
};
|
|
1588
1528
|
};
|
|
1589
|
-
const
|
|
1529
|
+
const de_GetLendingAnalysisSummaryResponse = (output, context) => {
|
|
1590
1530
|
return {
|
|
1591
1531
|
AnalyzeLendingModelVersion: (0, smithy_client_1.expectString)(output.AnalyzeLendingModelVersion),
|
|
1592
|
-
DocumentMetadata: output.DocumentMetadata != null
|
|
1593
|
-
? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
|
|
1594
|
-
: undefined,
|
|
1532
|
+
DocumentMetadata: output.DocumentMetadata != null ? de_DocumentMetadata(output.DocumentMetadata, context) : undefined,
|
|
1595
1533
|
JobStatus: (0, smithy_client_1.expectString)(output.JobStatus),
|
|
1596
1534
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1597
|
-
Summary: output.Summary != null ?
|
|
1598
|
-
Warnings: output.Warnings != null ?
|
|
1535
|
+
Summary: output.Summary != null ? de_LendingSummary(output.Summary, context) : undefined,
|
|
1536
|
+
Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
|
|
1599
1537
|
};
|
|
1600
1538
|
};
|
|
1601
|
-
const
|
|
1539
|
+
const de_HumanLoopActivationOutput = (output, context) => {
|
|
1602
1540
|
return {
|
|
1603
1541
|
HumanLoopActivationConditionsEvaluationResults: output.HumanLoopActivationConditionsEvaluationResults != null
|
|
1604
1542
|
? new smithy_client_1.LazyJsonString(output.HumanLoopActivationConditionsEvaluationResults)
|
|
1605
1543
|
: undefined,
|
|
1606
1544
|
HumanLoopActivationReasons: output.HumanLoopActivationReasons != null
|
|
1607
|
-
?
|
|
1545
|
+
? de_HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
|
|
1608
1546
|
: undefined,
|
|
1609
1547
|
HumanLoopArn: (0, smithy_client_1.expectString)(output.HumanLoopArn),
|
|
1610
1548
|
};
|
|
1611
1549
|
};
|
|
1612
|
-
const
|
|
1550
|
+
const de_HumanLoopActivationReasons = (output, context) => {
|
|
1613
1551
|
const retVal = (output || [])
|
|
1614
1552
|
.filter((e) => e != null)
|
|
1615
1553
|
.map((entry) => {
|
|
@@ -1620,7 +1558,7 @@ const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
|
|
|
1620
1558
|
});
|
|
1621
1559
|
return retVal;
|
|
1622
1560
|
};
|
|
1623
|
-
const
|
|
1561
|
+
const de_HumanLoopQuotaExceededException = (output, context) => {
|
|
1624
1562
|
return {
|
|
1625
1563
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1626
1564
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -1629,52 +1567,50 @@ const deserializeAws_json1_1HumanLoopQuotaExceededException = (output, context)
|
|
|
1629
1567
|
ServiceCode: (0, smithy_client_1.expectString)(output.ServiceCode),
|
|
1630
1568
|
};
|
|
1631
1569
|
};
|
|
1632
|
-
const
|
|
1570
|
+
const de_IdempotentParameterMismatchException = (output, context) => {
|
|
1633
1571
|
return {
|
|
1634
1572
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1635
1573
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1636
1574
|
};
|
|
1637
1575
|
};
|
|
1638
|
-
const
|
|
1576
|
+
const de_IdentityDocument = (output, context) => {
|
|
1639
1577
|
return {
|
|
1640
|
-
Blocks: output.Blocks != null ?
|
|
1578
|
+
Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
|
|
1641
1579
|
DocumentIndex: (0, smithy_client_1.expectInt32)(output.DocumentIndex),
|
|
1642
1580
|
IdentityDocumentFields: output.IdentityDocumentFields != null
|
|
1643
|
-
?
|
|
1581
|
+
? de_IdentityDocumentFieldList(output.IdentityDocumentFields, context)
|
|
1644
1582
|
: undefined,
|
|
1645
1583
|
};
|
|
1646
1584
|
};
|
|
1647
|
-
const
|
|
1585
|
+
const de_IdentityDocumentField = (output, context) => {
|
|
1648
1586
|
return {
|
|
1649
|
-
Type: output.Type != null ?
|
|
1650
|
-
ValueDetection: output.ValueDetection != null
|
|
1651
|
-
? deserializeAws_json1_1AnalyzeIDDetections(output.ValueDetection, context)
|
|
1652
|
-
: undefined,
|
|
1587
|
+
Type: output.Type != null ? de_AnalyzeIDDetections(output.Type, context) : undefined,
|
|
1588
|
+
ValueDetection: output.ValueDetection != null ? de_AnalyzeIDDetections(output.ValueDetection, context) : undefined,
|
|
1653
1589
|
};
|
|
1654
1590
|
};
|
|
1655
|
-
const
|
|
1591
|
+
const de_IdentityDocumentFieldList = (output, context) => {
|
|
1656
1592
|
const retVal = (output || [])
|
|
1657
1593
|
.filter((e) => e != null)
|
|
1658
1594
|
.map((entry) => {
|
|
1659
1595
|
if (entry === null) {
|
|
1660
1596
|
return null;
|
|
1661
1597
|
}
|
|
1662
|
-
return
|
|
1598
|
+
return de_IdentityDocumentField(entry, context);
|
|
1663
1599
|
});
|
|
1664
1600
|
return retVal;
|
|
1665
1601
|
};
|
|
1666
|
-
const
|
|
1602
|
+
const de_IdentityDocumentList = (output, context) => {
|
|
1667
1603
|
const retVal = (output || [])
|
|
1668
1604
|
.filter((e) => e != null)
|
|
1669
1605
|
.map((entry) => {
|
|
1670
1606
|
if (entry === null) {
|
|
1671
1607
|
return null;
|
|
1672
1608
|
}
|
|
1673
|
-
return
|
|
1609
|
+
return de_IdentityDocument(entry, context);
|
|
1674
1610
|
});
|
|
1675
1611
|
return retVal;
|
|
1676
1612
|
};
|
|
1677
|
-
const
|
|
1613
|
+
const de_IdList = (output, context) => {
|
|
1678
1614
|
const retVal = (output || [])
|
|
1679
1615
|
.filter((e) => e != null)
|
|
1680
1616
|
.map((entry) => {
|
|
@@ -1685,167 +1621,157 @@ const deserializeAws_json1_1IdList = (output, context) => {
|
|
|
1685
1621
|
});
|
|
1686
1622
|
return retVal;
|
|
1687
1623
|
};
|
|
1688
|
-
const
|
|
1624
|
+
const de_InternalServerError = (output, context) => {
|
|
1689
1625
|
return {
|
|
1690
1626
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1691
1627
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1692
1628
|
};
|
|
1693
1629
|
};
|
|
1694
|
-
const
|
|
1630
|
+
const de_InvalidJobIdException = (output, context) => {
|
|
1695
1631
|
return {
|
|
1696
1632
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1697
1633
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1698
1634
|
};
|
|
1699
1635
|
};
|
|
1700
|
-
const
|
|
1636
|
+
const de_InvalidKMSKeyException = (output, context) => {
|
|
1701
1637
|
return {
|
|
1702
1638
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1703
1639
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1704
1640
|
};
|
|
1705
1641
|
};
|
|
1706
|
-
const
|
|
1642
|
+
const de_InvalidParameterException = (output, context) => {
|
|
1707
1643
|
return {
|
|
1708
1644
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1709
1645
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1710
1646
|
};
|
|
1711
1647
|
};
|
|
1712
|
-
const
|
|
1648
|
+
const de_InvalidS3ObjectException = (output, context) => {
|
|
1713
1649
|
return {
|
|
1714
1650
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1715
1651
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1716
1652
|
};
|
|
1717
1653
|
};
|
|
1718
|
-
const
|
|
1654
|
+
const de_LendingDetection = (output, context) => {
|
|
1719
1655
|
return {
|
|
1720
1656
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1721
|
-
Geometry: output.Geometry != null ?
|
|
1657
|
+
Geometry: output.Geometry != null ? de_Geometry(output.Geometry, context) : undefined,
|
|
1722
1658
|
SelectionStatus: (0, smithy_client_1.expectString)(output.SelectionStatus),
|
|
1723
1659
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1724
1660
|
};
|
|
1725
1661
|
};
|
|
1726
|
-
const
|
|
1662
|
+
const de_LendingDetectionList = (output, context) => {
|
|
1727
1663
|
const retVal = (output || [])
|
|
1728
1664
|
.filter((e) => e != null)
|
|
1729
1665
|
.map((entry) => {
|
|
1730
1666
|
if (entry === null) {
|
|
1731
1667
|
return null;
|
|
1732
1668
|
}
|
|
1733
|
-
return
|
|
1669
|
+
return de_LendingDetection(entry, context);
|
|
1734
1670
|
});
|
|
1735
1671
|
return retVal;
|
|
1736
1672
|
};
|
|
1737
|
-
const
|
|
1673
|
+
const de_LendingDocument = (output, context) => {
|
|
1738
1674
|
return {
|
|
1739
|
-
LendingFields: output.LendingFields != null ?
|
|
1740
|
-
SignatureDetections: output.SignatureDetections != null
|
|
1741
|
-
? deserializeAws_json1_1SignatureDetectionList(output.SignatureDetections, context)
|
|
1742
|
-
: undefined,
|
|
1675
|
+
LendingFields: output.LendingFields != null ? de_LendingFieldList(output.LendingFields, context) : undefined,
|
|
1676
|
+
SignatureDetections: output.SignatureDetections != null ? de_SignatureDetectionList(output.SignatureDetections, context) : undefined,
|
|
1743
1677
|
};
|
|
1744
1678
|
};
|
|
1745
|
-
const
|
|
1679
|
+
const de_LendingField = (output, context) => {
|
|
1746
1680
|
return {
|
|
1747
|
-
KeyDetection: output.KeyDetection != null ?
|
|
1681
|
+
KeyDetection: output.KeyDetection != null ? de_LendingDetection(output.KeyDetection, context) : undefined,
|
|
1748
1682
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1749
|
-
ValueDetections: output.ValueDetections != null
|
|
1750
|
-
? deserializeAws_json1_1LendingDetectionList(output.ValueDetections, context)
|
|
1751
|
-
: undefined,
|
|
1683
|
+
ValueDetections: output.ValueDetections != null ? de_LendingDetectionList(output.ValueDetections, context) : undefined,
|
|
1752
1684
|
};
|
|
1753
1685
|
};
|
|
1754
|
-
const
|
|
1686
|
+
const de_LendingFieldList = (output, context) => {
|
|
1755
1687
|
const retVal = (output || [])
|
|
1756
1688
|
.filter((e) => e != null)
|
|
1757
1689
|
.map((entry) => {
|
|
1758
1690
|
if (entry === null) {
|
|
1759
1691
|
return null;
|
|
1760
1692
|
}
|
|
1761
|
-
return
|
|
1693
|
+
return de_LendingField(entry, context);
|
|
1762
1694
|
});
|
|
1763
1695
|
return retVal;
|
|
1764
1696
|
};
|
|
1765
|
-
const
|
|
1697
|
+
const de_LendingResult = (output, context) => {
|
|
1766
1698
|
return {
|
|
1767
|
-
Extractions: output.Extractions != null ?
|
|
1699
|
+
Extractions: output.Extractions != null ? de_ExtractionList(output.Extractions, context) : undefined,
|
|
1768
1700
|
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
1769
|
-
PageClassification: output.PageClassification != null
|
|
1770
|
-
? deserializeAws_json1_1PageClassification(output.PageClassification, context)
|
|
1771
|
-
: undefined,
|
|
1701
|
+
PageClassification: output.PageClassification != null ? de_PageClassification(output.PageClassification, context) : undefined,
|
|
1772
1702
|
};
|
|
1773
1703
|
};
|
|
1774
|
-
const
|
|
1704
|
+
const de_LendingResultList = (output, context) => {
|
|
1775
1705
|
const retVal = (output || [])
|
|
1776
1706
|
.filter((e) => e != null)
|
|
1777
1707
|
.map((entry) => {
|
|
1778
1708
|
if (entry === null) {
|
|
1779
1709
|
return null;
|
|
1780
1710
|
}
|
|
1781
|
-
return
|
|
1711
|
+
return de_LendingResult(entry, context);
|
|
1782
1712
|
});
|
|
1783
1713
|
return retVal;
|
|
1784
1714
|
};
|
|
1785
|
-
const
|
|
1715
|
+
const de_LendingSummary = (output, context) => {
|
|
1786
1716
|
return {
|
|
1787
|
-
DocumentGroups: output.DocumentGroups != null
|
|
1788
|
-
? deserializeAws_json1_1DocumentGroupList(output.DocumentGroups, context)
|
|
1789
|
-
: undefined,
|
|
1717
|
+
DocumentGroups: output.DocumentGroups != null ? de_DocumentGroupList(output.DocumentGroups, context) : undefined,
|
|
1790
1718
|
UndetectedDocumentTypes: output.UndetectedDocumentTypes != null
|
|
1791
|
-
?
|
|
1719
|
+
? de_UndetectedDocumentTypeList(output.UndetectedDocumentTypes, context)
|
|
1792
1720
|
: undefined,
|
|
1793
1721
|
};
|
|
1794
1722
|
};
|
|
1795
|
-
const
|
|
1723
|
+
const de_LimitExceededException = (output, context) => {
|
|
1796
1724
|
return {
|
|
1797
1725
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1798
1726
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1799
1727
|
};
|
|
1800
1728
|
};
|
|
1801
|
-
const
|
|
1729
|
+
const de_LineItemFields = (output, context) => {
|
|
1802
1730
|
return {
|
|
1803
|
-
LineItemExpenseFields: output.LineItemExpenseFields != null
|
|
1804
|
-
? deserializeAws_json1_1ExpenseFieldList(output.LineItemExpenseFields, context)
|
|
1805
|
-
: undefined,
|
|
1731
|
+
LineItemExpenseFields: output.LineItemExpenseFields != null ? de_ExpenseFieldList(output.LineItemExpenseFields, context) : undefined,
|
|
1806
1732
|
};
|
|
1807
1733
|
};
|
|
1808
|
-
const
|
|
1734
|
+
const de_LineItemGroup = (output, context) => {
|
|
1809
1735
|
return {
|
|
1810
1736
|
LineItemGroupIndex: (0, smithy_client_1.expectInt32)(output.LineItemGroupIndex),
|
|
1811
|
-
LineItems: output.LineItems != null ?
|
|
1737
|
+
LineItems: output.LineItems != null ? de_LineItemList(output.LineItems, context) : undefined,
|
|
1812
1738
|
};
|
|
1813
1739
|
};
|
|
1814
|
-
const
|
|
1740
|
+
const de_LineItemGroupList = (output, context) => {
|
|
1815
1741
|
const retVal = (output || [])
|
|
1816
1742
|
.filter((e) => e != null)
|
|
1817
1743
|
.map((entry) => {
|
|
1818
1744
|
if (entry === null) {
|
|
1819
1745
|
return null;
|
|
1820
1746
|
}
|
|
1821
|
-
return
|
|
1747
|
+
return de_LineItemGroup(entry, context);
|
|
1822
1748
|
});
|
|
1823
1749
|
return retVal;
|
|
1824
1750
|
};
|
|
1825
|
-
const
|
|
1751
|
+
const de_LineItemList = (output, context) => {
|
|
1826
1752
|
const retVal = (output || [])
|
|
1827
1753
|
.filter((e) => e != null)
|
|
1828
1754
|
.map((entry) => {
|
|
1829
1755
|
if (entry === null) {
|
|
1830
1756
|
return null;
|
|
1831
1757
|
}
|
|
1832
|
-
return
|
|
1758
|
+
return de_LineItemFields(entry, context);
|
|
1833
1759
|
});
|
|
1834
1760
|
return retVal;
|
|
1835
1761
|
};
|
|
1836
|
-
const
|
|
1762
|
+
const de_NormalizedValue = (output, context) => {
|
|
1837
1763
|
return {
|
|
1838
1764
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1839
1765
|
ValueType: (0, smithy_client_1.expectString)(output.ValueType),
|
|
1840
1766
|
};
|
|
1841
1767
|
};
|
|
1842
|
-
const
|
|
1768
|
+
const de_PageClassification = (output, context) => {
|
|
1843
1769
|
return {
|
|
1844
|
-
PageNumber: output.PageNumber != null ?
|
|
1845
|
-
PageType: output.PageType != null ?
|
|
1770
|
+
PageNumber: output.PageNumber != null ? de_PredictionList(output.PageNumber, context) : undefined,
|
|
1771
|
+
PageType: output.PageType != null ? de_PredictionList(output.PageType, context) : undefined,
|
|
1846
1772
|
};
|
|
1847
1773
|
};
|
|
1848
|
-
const
|
|
1774
|
+
const de_PageList = (output, context) => {
|
|
1849
1775
|
const retVal = (output || [])
|
|
1850
1776
|
.filter((e) => e != null)
|
|
1851
1777
|
.map((entry) => {
|
|
@@ -1856,7 +1782,7 @@ const deserializeAws_json1_1PageList = (output, context) => {
|
|
|
1856
1782
|
});
|
|
1857
1783
|
return retVal;
|
|
1858
1784
|
};
|
|
1859
|
-
const
|
|
1785
|
+
const de_Pages = (output, context) => {
|
|
1860
1786
|
const retVal = (output || [])
|
|
1861
1787
|
.filter((e) => e != null)
|
|
1862
1788
|
.map((entry) => {
|
|
@@ -1867,54 +1793,54 @@ const deserializeAws_json1_1Pages = (output, context) => {
|
|
|
1867
1793
|
});
|
|
1868
1794
|
return retVal;
|
|
1869
1795
|
};
|
|
1870
|
-
const
|
|
1796
|
+
const de_Point = (output, context) => {
|
|
1871
1797
|
return {
|
|
1872
1798
|
X: (0, smithy_client_1.limitedParseFloat32)(output.X),
|
|
1873
1799
|
Y: (0, smithy_client_1.limitedParseFloat32)(output.Y),
|
|
1874
1800
|
};
|
|
1875
1801
|
};
|
|
1876
|
-
const
|
|
1802
|
+
const de_Polygon = (output, context) => {
|
|
1877
1803
|
const retVal = (output || [])
|
|
1878
1804
|
.filter((e) => e != null)
|
|
1879
1805
|
.map((entry) => {
|
|
1880
1806
|
if (entry === null) {
|
|
1881
1807
|
return null;
|
|
1882
1808
|
}
|
|
1883
|
-
return
|
|
1809
|
+
return de_Point(entry, context);
|
|
1884
1810
|
});
|
|
1885
1811
|
return retVal;
|
|
1886
1812
|
};
|
|
1887
|
-
const
|
|
1813
|
+
const de_Prediction = (output, context) => {
|
|
1888
1814
|
return {
|
|
1889
1815
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1890
1816
|
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1891
1817
|
};
|
|
1892
1818
|
};
|
|
1893
|
-
const
|
|
1819
|
+
const de_PredictionList = (output, context) => {
|
|
1894
1820
|
const retVal = (output || [])
|
|
1895
1821
|
.filter((e) => e != null)
|
|
1896
1822
|
.map((entry) => {
|
|
1897
1823
|
if (entry === null) {
|
|
1898
1824
|
return null;
|
|
1899
1825
|
}
|
|
1900
|
-
return
|
|
1826
|
+
return de_Prediction(entry, context);
|
|
1901
1827
|
});
|
|
1902
1828
|
return retVal;
|
|
1903
1829
|
};
|
|
1904
|
-
const
|
|
1830
|
+
const de_ProvisionedThroughputExceededException = (output, context) => {
|
|
1905
1831
|
return {
|
|
1906
1832
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
1907
1833
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1908
1834
|
};
|
|
1909
1835
|
};
|
|
1910
|
-
const
|
|
1836
|
+
const de_Query = (output, context) => {
|
|
1911
1837
|
return {
|
|
1912
1838
|
Alias: (0, smithy_client_1.expectString)(output.Alias),
|
|
1913
|
-
Pages: output.Pages != null ?
|
|
1839
|
+
Pages: output.Pages != null ? de_QueryPages(output.Pages, context) : undefined,
|
|
1914
1840
|
Text: (0, smithy_client_1.expectString)(output.Text),
|
|
1915
1841
|
};
|
|
1916
1842
|
};
|
|
1917
|
-
const
|
|
1843
|
+
const de_QueryPages = (output, context) => {
|
|
1918
1844
|
const retVal = (output || [])
|
|
1919
1845
|
.filter((e) => e != null)
|
|
1920
1846
|
.map((entry) => {
|
|
@@ -1925,78 +1851,78 @@ const deserializeAws_json1_1QueryPages = (output, context) => {
|
|
|
1925
1851
|
});
|
|
1926
1852
|
return retVal;
|
|
1927
1853
|
};
|
|
1928
|
-
const
|
|
1854
|
+
const de_Relationship = (output, context) => {
|
|
1929
1855
|
return {
|
|
1930
|
-
Ids: output.Ids != null ?
|
|
1856
|
+
Ids: output.Ids != null ? de_IdList(output.Ids, context) : undefined,
|
|
1931
1857
|
Type: (0, smithy_client_1.expectString)(output.Type),
|
|
1932
1858
|
};
|
|
1933
1859
|
};
|
|
1934
|
-
const
|
|
1860
|
+
const de_RelationshipList = (output, context) => {
|
|
1935
1861
|
const retVal = (output || [])
|
|
1936
1862
|
.filter((e) => e != null)
|
|
1937
1863
|
.map((entry) => {
|
|
1938
1864
|
if (entry === null) {
|
|
1939
1865
|
return null;
|
|
1940
1866
|
}
|
|
1941
|
-
return
|
|
1867
|
+
return de_Relationship(entry, context);
|
|
1942
1868
|
});
|
|
1943
1869
|
return retVal;
|
|
1944
1870
|
};
|
|
1945
|
-
const
|
|
1871
|
+
const de_SignatureDetection = (output, context) => {
|
|
1946
1872
|
return {
|
|
1947
1873
|
Confidence: (0, smithy_client_1.limitedParseFloat32)(output.Confidence),
|
|
1948
|
-
Geometry: output.Geometry != null ?
|
|
1874
|
+
Geometry: output.Geometry != null ? de_Geometry(output.Geometry, context) : undefined,
|
|
1949
1875
|
};
|
|
1950
1876
|
};
|
|
1951
|
-
const
|
|
1877
|
+
const de_SignatureDetectionList = (output, context) => {
|
|
1952
1878
|
const retVal = (output || [])
|
|
1953
1879
|
.filter((e) => e != null)
|
|
1954
1880
|
.map((entry) => {
|
|
1955
1881
|
if (entry === null) {
|
|
1956
1882
|
return null;
|
|
1957
1883
|
}
|
|
1958
|
-
return
|
|
1884
|
+
return de_SignatureDetection(entry, context);
|
|
1959
1885
|
});
|
|
1960
1886
|
return retVal;
|
|
1961
1887
|
};
|
|
1962
|
-
const
|
|
1888
|
+
const de_SplitDocument = (output, context) => {
|
|
1963
1889
|
return {
|
|
1964
1890
|
Index: (0, smithy_client_1.expectInt32)(output.Index),
|
|
1965
|
-
Pages: output.Pages != null ?
|
|
1891
|
+
Pages: output.Pages != null ? de_PageList(output.Pages, context) : undefined,
|
|
1966
1892
|
};
|
|
1967
1893
|
};
|
|
1968
|
-
const
|
|
1894
|
+
const de_SplitDocumentList = (output, context) => {
|
|
1969
1895
|
const retVal = (output || [])
|
|
1970
1896
|
.filter((e) => e != null)
|
|
1971
1897
|
.map((entry) => {
|
|
1972
1898
|
if (entry === null) {
|
|
1973
1899
|
return null;
|
|
1974
1900
|
}
|
|
1975
|
-
return
|
|
1901
|
+
return de_SplitDocument(entry, context);
|
|
1976
1902
|
});
|
|
1977
1903
|
return retVal;
|
|
1978
1904
|
};
|
|
1979
|
-
const
|
|
1905
|
+
const de_StartDocumentAnalysisResponse = (output, context) => {
|
|
1980
1906
|
return {
|
|
1981
1907
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1982
1908
|
};
|
|
1983
1909
|
};
|
|
1984
|
-
const
|
|
1910
|
+
const de_StartDocumentTextDetectionResponse = (output, context) => {
|
|
1985
1911
|
return {
|
|
1986
1912
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1987
1913
|
};
|
|
1988
1914
|
};
|
|
1989
|
-
const
|
|
1915
|
+
const de_StartExpenseAnalysisResponse = (output, context) => {
|
|
1990
1916
|
return {
|
|
1991
1917
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1992
1918
|
};
|
|
1993
1919
|
};
|
|
1994
|
-
const
|
|
1920
|
+
const de_StartLendingAnalysisResponse = (output, context) => {
|
|
1995
1921
|
return {
|
|
1996
1922
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
1997
1923
|
};
|
|
1998
1924
|
};
|
|
1999
|
-
const
|
|
1925
|
+
const de_StringList = (output, context) => {
|
|
2000
1926
|
const retVal = (output || [])
|
|
2001
1927
|
.filter((e) => e != null)
|
|
2002
1928
|
.map((entry) => {
|
|
@@ -2007,13 +1933,13 @@ const deserializeAws_json1_1StringList = (output, context) => {
|
|
|
2007
1933
|
});
|
|
2008
1934
|
return retVal;
|
|
2009
1935
|
};
|
|
2010
|
-
const
|
|
1936
|
+
const de_ThrottlingException = (output, context) => {
|
|
2011
1937
|
return {
|
|
2012
1938
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
2013
1939
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2014
1940
|
};
|
|
2015
1941
|
};
|
|
2016
|
-
const
|
|
1942
|
+
const de_UndetectedDocumentTypeList = (output, context) => {
|
|
2017
1943
|
const retVal = (output || [])
|
|
2018
1944
|
.filter((e) => e != null)
|
|
2019
1945
|
.map((entry) => {
|
|
@@ -2024,42 +1950,42 @@ const deserializeAws_json1_1UndetectedDocumentTypeList = (output, context) => {
|
|
|
2024
1950
|
});
|
|
2025
1951
|
return retVal;
|
|
2026
1952
|
};
|
|
2027
|
-
const
|
|
1953
|
+
const de_UndetectedSignature = (output, context) => {
|
|
2028
1954
|
return {
|
|
2029
1955
|
Page: (0, smithy_client_1.expectInt32)(output.Page),
|
|
2030
1956
|
};
|
|
2031
1957
|
};
|
|
2032
|
-
const
|
|
1958
|
+
const de_UndetectedSignatureList = (output, context) => {
|
|
2033
1959
|
const retVal = (output || [])
|
|
2034
1960
|
.filter((e) => e != null)
|
|
2035
1961
|
.map((entry) => {
|
|
2036
1962
|
if (entry === null) {
|
|
2037
1963
|
return null;
|
|
2038
1964
|
}
|
|
2039
|
-
return
|
|
1965
|
+
return de_UndetectedSignature(entry, context);
|
|
2040
1966
|
});
|
|
2041
1967
|
return retVal;
|
|
2042
1968
|
};
|
|
2043
|
-
const
|
|
1969
|
+
const de_UnsupportedDocumentException = (output, context) => {
|
|
2044
1970
|
return {
|
|
2045
1971
|
Code: (0, smithy_client_1.expectString)(output.Code),
|
|
2046
1972
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2047
1973
|
};
|
|
2048
1974
|
};
|
|
2049
|
-
const
|
|
1975
|
+
const de_Warning = (output, context) => {
|
|
2050
1976
|
return {
|
|
2051
1977
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
2052
|
-
Pages: output.Pages != null ?
|
|
1978
|
+
Pages: output.Pages != null ? de_Pages(output.Pages, context) : undefined,
|
|
2053
1979
|
};
|
|
2054
1980
|
};
|
|
2055
|
-
const
|
|
1981
|
+
const de_Warnings = (output, context) => {
|
|
2056
1982
|
const retVal = (output || [])
|
|
2057
1983
|
.filter((e) => e != null)
|
|
2058
1984
|
.map((entry) => {
|
|
2059
1985
|
if (entry === null) {
|
|
2060
1986
|
return null;
|
|
2061
1987
|
}
|
|
2062
|
-
return
|
|
1988
|
+
return de_Warning(entry, context);
|
|
2063
1989
|
});
|
|
2064
1990
|
return retVal;
|
|
2065
1991
|
};
|