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