@aws-sdk/client-textract 3.306.0 → 3.309.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist-cjs/commands/AnalyzeDocumentCommand.js +2 -2
  2. package/dist-cjs/commands/AnalyzeExpenseCommand.js +2 -2
  3. package/dist-cjs/commands/AnalyzeIDCommand.js +2 -2
  4. package/dist-cjs/commands/DetectDocumentTextCommand.js +2 -2
  5. package/dist-cjs/commands/GetDocumentAnalysisCommand.js +2 -2
  6. package/dist-cjs/commands/GetDocumentTextDetectionCommand.js +2 -2
  7. package/dist-cjs/commands/GetExpenseAnalysisCommand.js +2 -2
  8. package/dist-cjs/commands/GetLendingAnalysisCommand.js +2 -2
  9. package/dist-cjs/commands/GetLendingAnalysisSummaryCommand.js +2 -2
  10. package/dist-cjs/commands/StartDocumentAnalysisCommand.js +2 -2
  11. package/dist-cjs/commands/StartDocumentTextDetectionCommand.js +2 -2
  12. package/dist-cjs/commands/StartExpenseAnalysisCommand.js +2 -2
  13. package/dist-cjs/commands/StartLendingAnalysisCommand.js +2 -2
  14. package/dist-cjs/protocols/Aws_json1_1.js +495 -569
  15. package/dist-es/commands/AnalyzeDocumentCommand.js +3 -3
  16. package/dist-es/commands/AnalyzeExpenseCommand.js +3 -3
  17. package/dist-es/commands/AnalyzeIDCommand.js +3 -3
  18. package/dist-es/commands/DetectDocumentTextCommand.js +3 -3
  19. package/dist-es/commands/GetDocumentAnalysisCommand.js +3 -3
  20. package/dist-es/commands/GetDocumentTextDetectionCommand.js +3 -3
  21. package/dist-es/commands/GetExpenseAnalysisCommand.js +3 -3
  22. package/dist-es/commands/GetLendingAnalysisCommand.js +3 -3
  23. package/dist-es/commands/GetLendingAnalysisSummaryCommand.js +3 -3
  24. package/dist-es/commands/StartDocumentAnalysisCommand.js +3 -3
  25. package/dist-es/commands/StartDocumentTextDetectionCommand.js +3 -3
  26. package/dist-es/commands/StartExpenseAnalysisCommand.js +3 -3
  27. package/dist-es/commands/StartLendingAnalysisCommand.js +3 -3
  28. package/dist-es/protocols/Aws_json1_1.js +468 -542
  29. package/dist-types/protocols/Aws_json1_1.d.ts +104 -26
  30. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +26 -26
  31. package/package.json +6 -6
@@ -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 serializeAws_json1_1AnalyzeDocumentCommand = async (input, context) => {
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(serializeAws_json1_1AnalyzeDocumentRequest(input, context));
11
+ body = JSON.stringify(se_AnalyzeDocumentRequest(input, context));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
- export const serializeAws_json1_1AnalyzeExpenseCommand = async (input, context) => {
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(serializeAws_json1_1AnalyzeExpenseRequest(input, context));
20
+ body = JSON.stringify(se_AnalyzeExpenseRequest(input, context));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
- export const serializeAws_json1_1AnalyzeIDCommand = async (input, context) => {
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(serializeAws_json1_1AnalyzeIDRequest(input, context));
29
+ body = JSON.stringify(se_AnalyzeIDRequest(input, context));
30
30
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
31
  };
32
- export const serializeAws_json1_1DetectDocumentTextCommand = async (input, context) => {
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(serializeAws_json1_1DetectDocumentTextRequest(input, context));
38
+ body = JSON.stringify(se_DetectDocumentTextRequest(input, context));
39
39
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
40
40
  };
41
- export const serializeAws_json1_1GetDocumentAnalysisCommand = async (input, context) => {
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(serializeAws_json1_1GetDocumentAnalysisRequest(input, context));
47
+ body = JSON.stringify(se_GetDocumentAnalysisRequest(input, context));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
- export const serializeAws_json1_1GetDocumentTextDetectionCommand = async (input, context) => {
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(serializeAws_json1_1GetDocumentTextDetectionRequest(input, context));
56
+ body = JSON.stringify(se_GetDocumentTextDetectionRequest(input, context));
57
57
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
58
58
  };
59
- export const serializeAws_json1_1GetExpenseAnalysisCommand = async (input, context) => {
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(serializeAws_json1_1GetExpenseAnalysisRequest(input, context));
65
+ body = JSON.stringify(se_GetExpenseAnalysisRequest(input, context));
66
66
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
67
67
  };
68
- export const serializeAws_json1_1GetLendingAnalysisCommand = async (input, context) => {
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(serializeAws_json1_1GetLendingAnalysisRequest(input, context));
74
+ body = JSON.stringify(se_GetLendingAnalysisRequest(input, context));
75
75
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
76
76
  };
77
- export const serializeAws_json1_1GetLendingAnalysisSummaryCommand = async (input, context) => {
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(serializeAws_json1_1GetLendingAnalysisSummaryRequest(input, context));
83
+ body = JSON.stringify(se_GetLendingAnalysisSummaryRequest(input, context));
84
84
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
85
85
  };
86
- export const serializeAws_json1_1StartDocumentAnalysisCommand = async (input, context) => {
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(serializeAws_json1_1StartDocumentAnalysisRequest(input, context));
92
+ body = JSON.stringify(se_StartDocumentAnalysisRequest(input, context));
93
93
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
94
94
  };
95
- export const serializeAws_json1_1StartDocumentTextDetectionCommand = async (input, context) => {
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(serializeAws_json1_1StartDocumentTextDetectionRequest(input, context));
101
+ body = JSON.stringify(se_StartDocumentTextDetectionRequest(input, context));
102
102
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
103
103
  };
104
- export const serializeAws_json1_1StartExpenseAnalysisCommand = async (input, context) => {
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(serializeAws_json1_1StartExpenseAnalysisRequest(input, context));
110
+ body = JSON.stringify(se_StartExpenseAnalysisRequest(input, context));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
- export const serializeAws_json1_1StartLendingAnalysisCommand = async (input, context) => {
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(serializeAws_json1_1StartLendingAnalysisRequest(input, context));
119
+ body = JSON.stringify(se_StartLendingAnalysisRequest(input, context));
120
120
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
121
121
  };
122
- export const deserializeAws_json1_1AnalyzeDocumentCommand = async (output, context) => {
122
+ export const de_AnalyzeDocumentCommand = async (output, context) => {
123
123
  if (output.statusCode >= 300) {
124
- return deserializeAws_json1_1AnalyzeDocumentCommandError(output, context);
124
+ return de_AnalyzeDocumentCommandError(output, context);
125
125
  }
126
126
  const data = await parseBody(output.body, context);
127
127
  let contents = {};
128
- contents = deserializeAws_json1_1AnalyzeDocumentResponse(data, context);
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 deserializeAws_json1_1AnalyzeDocumentCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
144
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
145
145
  case "BadDocumentException":
146
146
  case "com.amazonaws.textract#BadDocumentException":
147
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
147
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
148
148
  case "DocumentTooLargeException":
149
149
  case "com.amazonaws.textract#DocumentTooLargeException":
150
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
150
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
151
151
  case "HumanLoopQuotaExceededException":
152
152
  case "com.amazonaws.textract#HumanLoopQuotaExceededException":
153
- throw await deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse(parsedOutput, context);
153
+ throw await de_HumanLoopQuotaExceededExceptionRes(parsedOutput, context);
154
154
  case "InternalServerError":
155
155
  case "com.amazonaws.textract#InternalServerError":
156
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
156
+ throw await de_InternalServerErrorRes(parsedOutput, context);
157
157
  case "InvalidParameterException":
158
158
  case "com.amazonaws.textract#InvalidParameterException":
159
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
159
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
160
160
  case "InvalidS3ObjectException":
161
161
  case "com.amazonaws.textract#InvalidS3ObjectException":
162
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
162
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
163
163
  case "ProvisionedThroughputExceededException":
164
164
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
165
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
165
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
166
166
  case "ThrottlingException":
167
167
  case "com.amazonaws.textract#ThrottlingException":
168
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
168
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
169
169
  case "UnsupportedDocumentException":
170
170
  case "com.amazonaws.textract#UnsupportedDocumentException":
171
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1AnalyzeExpenseCommand = async (output, context) => {
182
+ export const de_AnalyzeExpenseCommand = async (output, context) => {
183
183
  if (output.statusCode >= 300) {
184
- return deserializeAws_json1_1AnalyzeExpenseCommandError(output, context);
184
+ return de_AnalyzeExpenseCommandError(output, context);
185
185
  }
186
186
  const data = await parseBody(output.body, context);
187
187
  let contents = {};
188
- contents = deserializeAws_json1_1AnalyzeExpenseResponse(data, context);
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 deserializeAws_json1_1AnalyzeExpenseCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
204
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
205
205
  case "BadDocumentException":
206
206
  case "com.amazonaws.textract#BadDocumentException":
207
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
207
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
208
208
  case "DocumentTooLargeException":
209
209
  case "com.amazonaws.textract#DocumentTooLargeException":
210
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
210
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
211
211
  case "InternalServerError":
212
212
  case "com.amazonaws.textract#InternalServerError":
213
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
213
+ throw await de_InternalServerErrorRes(parsedOutput, context);
214
214
  case "InvalidParameterException":
215
215
  case "com.amazonaws.textract#InvalidParameterException":
216
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
216
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
217
217
  case "InvalidS3ObjectException":
218
218
  case "com.amazonaws.textract#InvalidS3ObjectException":
219
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
219
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
220
220
  case "ProvisionedThroughputExceededException":
221
221
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
222
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
222
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
223
223
  case "ThrottlingException":
224
224
  case "com.amazonaws.textract#ThrottlingException":
225
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
225
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
226
226
  case "UnsupportedDocumentException":
227
227
  case "com.amazonaws.textract#UnsupportedDocumentException":
228
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1AnalyzeIDCommand = async (output, context) => {
239
+ export const de_AnalyzeIDCommand = async (output, context) => {
240
240
  if (output.statusCode >= 300) {
241
- return deserializeAws_json1_1AnalyzeIDCommandError(output, context);
241
+ return de_AnalyzeIDCommandError(output, context);
242
242
  }
243
243
  const data = await parseBody(output.body, context);
244
244
  let contents = {};
245
- contents = deserializeAws_json1_1AnalyzeIDResponse(data, context);
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 deserializeAws_json1_1AnalyzeIDCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
261
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
262
262
  case "BadDocumentException":
263
263
  case "com.amazonaws.textract#BadDocumentException":
264
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
264
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
265
265
  case "DocumentTooLargeException":
266
266
  case "com.amazonaws.textract#DocumentTooLargeException":
267
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
267
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
268
268
  case "InternalServerError":
269
269
  case "com.amazonaws.textract#InternalServerError":
270
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
270
+ throw await de_InternalServerErrorRes(parsedOutput, context);
271
271
  case "InvalidParameterException":
272
272
  case "com.amazonaws.textract#InvalidParameterException":
273
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
273
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
274
274
  case "InvalidS3ObjectException":
275
275
  case "com.amazonaws.textract#InvalidS3ObjectException":
276
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
276
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
277
277
  case "ProvisionedThroughputExceededException":
278
278
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
279
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
279
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
280
280
  case "ThrottlingException":
281
281
  case "com.amazonaws.textract#ThrottlingException":
282
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
282
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
283
283
  case "UnsupportedDocumentException":
284
284
  case "com.amazonaws.textract#UnsupportedDocumentException":
285
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1DetectDocumentTextCommand = async (output, context) => {
296
+ export const de_DetectDocumentTextCommand = async (output, context) => {
297
297
  if (output.statusCode >= 300) {
298
- return deserializeAws_json1_1DetectDocumentTextCommandError(output, context);
298
+ return de_DetectDocumentTextCommandError(output, context);
299
299
  }
300
300
  const data = await parseBody(output.body, context);
301
301
  let contents = {};
302
- contents = deserializeAws_json1_1DetectDocumentTextResponse(data, context);
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 deserializeAws_json1_1DetectDocumentTextCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
318
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
319
319
  case "BadDocumentException":
320
320
  case "com.amazonaws.textract#BadDocumentException":
321
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
321
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
322
322
  case "DocumentTooLargeException":
323
323
  case "com.amazonaws.textract#DocumentTooLargeException":
324
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
324
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
325
325
  case "InternalServerError":
326
326
  case "com.amazonaws.textract#InternalServerError":
327
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
327
+ throw await de_InternalServerErrorRes(parsedOutput, context);
328
328
  case "InvalidParameterException":
329
329
  case "com.amazonaws.textract#InvalidParameterException":
330
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
330
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
331
331
  case "InvalidS3ObjectException":
332
332
  case "com.amazonaws.textract#InvalidS3ObjectException":
333
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
333
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
334
334
  case "ProvisionedThroughputExceededException":
335
335
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
336
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
336
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
337
337
  case "ThrottlingException":
338
338
  case "com.amazonaws.textract#ThrottlingException":
339
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
339
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
340
340
  case "UnsupportedDocumentException":
341
341
  case "com.amazonaws.textract#UnsupportedDocumentException":
342
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1GetDocumentAnalysisCommand = async (output, context) => {
353
+ export const de_GetDocumentAnalysisCommand = async (output, context) => {
354
354
  if (output.statusCode >= 300) {
355
- return deserializeAws_json1_1GetDocumentAnalysisCommandError(output, context);
355
+ return de_GetDocumentAnalysisCommandError(output, context);
356
356
  }
357
357
  const data = await parseBody(output.body, context);
358
358
  let contents = {};
359
- contents = deserializeAws_json1_1GetDocumentAnalysisResponse(data, context);
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 deserializeAws_json1_1GetDocumentAnalysisCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
375
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
376
376
  case "InternalServerError":
377
377
  case "com.amazonaws.textract#InternalServerError":
378
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
378
+ throw await de_InternalServerErrorRes(parsedOutput, context);
379
379
  case "InvalidJobIdException":
380
380
  case "com.amazonaws.textract#InvalidJobIdException":
381
- throw await deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context);
381
+ throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
382
382
  case "InvalidKMSKeyException":
383
383
  case "com.amazonaws.textract#InvalidKMSKeyException":
384
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
384
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
385
385
  case "InvalidParameterException":
386
386
  case "com.amazonaws.textract#InvalidParameterException":
387
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
387
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
388
388
  case "InvalidS3ObjectException":
389
389
  case "com.amazonaws.textract#InvalidS3ObjectException":
390
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
390
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
391
391
  case "ProvisionedThroughputExceededException":
392
392
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
393
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
393
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
394
394
  case "ThrottlingException":
395
395
  case "com.amazonaws.textract#ThrottlingException":
396
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1GetDocumentTextDetectionCommand = async (output, context) => {
407
+ export const de_GetDocumentTextDetectionCommand = async (output, context) => {
408
408
  if (output.statusCode >= 300) {
409
- return deserializeAws_json1_1GetDocumentTextDetectionCommandError(output, context);
409
+ return de_GetDocumentTextDetectionCommandError(output, context);
410
410
  }
411
411
  const data = await parseBody(output.body, context);
412
412
  let contents = {};
413
- contents = deserializeAws_json1_1GetDocumentTextDetectionResponse(data, context);
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 deserializeAws_json1_1GetDocumentTextDetectionCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
429
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
430
430
  case "InternalServerError":
431
431
  case "com.amazonaws.textract#InternalServerError":
432
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
432
+ throw await de_InternalServerErrorRes(parsedOutput, context);
433
433
  case "InvalidJobIdException":
434
434
  case "com.amazonaws.textract#InvalidJobIdException":
435
- throw await deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context);
435
+ throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
436
436
  case "InvalidKMSKeyException":
437
437
  case "com.amazonaws.textract#InvalidKMSKeyException":
438
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
438
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
439
439
  case "InvalidParameterException":
440
440
  case "com.amazonaws.textract#InvalidParameterException":
441
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
441
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
442
442
  case "InvalidS3ObjectException":
443
443
  case "com.amazonaws.textract#InvalidS3ObjectException":
444
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
444
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
445
445
  case "ProvisionedThroughputExceededException":
446
446
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
447
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
447
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
448
448
  case "ThrottlingException":
449
449
  case "com.amazonaws.textract#ThrottlingException":
450
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1GetExpenseAnalysisCommand = async (output, context) => {
461
+ export const de_GetExpenseAnalysisCommand = async (output, context) => {
462
462
  if (output.statusCode >= 300) {
463
- return deserializeAws_json1_1GetExpenseAnalysisCommandError(output, context);
463
+ return de_GetExpenseAnalysisCommandError(output, context);
464
464
  }
465
465
  const data = await parseBody(output.body, context);
466
466
  let contents = {};
467
- contents = deserializeAws_json1_1GetExpenseAnalysisResponse(data, context);
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 deserializeAws_json1_1GetExpenseAnalysisCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
483
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
484
484
  case "InternalServerError":
485
485
  case "com.amazonaws.textract#InternalServerError":
486
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
486
+ throw await de_InternalServerErrorRes(parsedOutput, context);
487
487
  case "InvalidJobIdException":
488
488
  case "com.amazonaws.textract#InvalidJobIdException":
489
- throw await deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context);
489
+ throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
490
490
  case "InvalidKMSKeyException":
491
491
  case "com.amazonaws.textract#InvalidKMSKeyException":
492
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
492
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
493
493
  case "InvalidParameterException":
494
494
  case "com.amazonaws.textract#InvalidParameterException":
495
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
495
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
496
496
  case "InvalidS3ObjectException":
497
497
  case "com.amazonaws.textract#InvalidS3ObjectException":
498
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
498
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
499
499
  case "ProvisionedThroughputExceededException":
500
500
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
501
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
501
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
502
502
  case "ThrottlingException":
503
503
  case "com.amazonaws.textract#ThrottlingException":
504
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1GetLendingAnalysisCommand = async (output, context) => {
515
+ export const de_GetLendingAnalysisCommand = async (output, context) => {
516
516
  if (output.statusCode >= 300) {
517
- return deserializeAws_json1_1GetLendingAnalysisCommandError(output, context);
517
+ return de_GetLendingAnalysisCommandError(output, context);
518
518
  }
519
519
  const data = await parseBody(output.body, context);
520
520
  let contents = {};
521
- contents = deserializeAws_json1_1GetLendingAnalysisResponse(data, context);
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 deserializeAws_json1_1GetLendingAnalysisCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
537
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
538
538
  case "InternalServerError":
539
539
  case "com.amazonaws.textract#InternalServerError":
540
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
540
+ throw await de_InternalServerErrorRes(parsedOutput, context);
541
541
  case "InvalidJobIdException":
542
542
  case "com.amazonaws.textract#InvalidJobIdException":
543
- throw await deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context);
543
+ throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
544
544
  case "InvalidKMSKeyException":
545
545
  case "com.amazonaws.textract#InvalidKMSKeyException":
546
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
546
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
547
547
  case "InvalidParameterException":
548
548
  case "com.amazonaws.textract#InvalidParameterException":
549
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
549
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
550
550
  case "InvalidS3ObjectException":
551
551
  case "com.amazonaws.textract#InvalidS3ObjectException":
552
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
552
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
553
553
  case "ProvisionedThroughputExceededException":
554
554
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
555
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
555
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
556
556
  case "ThrottlingException":
557
557
  case "com.amazonaws.textract#ThrottlingException":
558
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1GetLendingAnalysisSummaryCommand = async (output, context) => {
569
+ export const de_GetLendingAnalysisSummaryCommand = async (output, context) => {
570
570
  if (output.statusCode >= 300) {
571
- return deserializeAws_json1_1GetLendingAnalysisSummaryCommandError(output, context);
571
+ return de_GetLendingAnalysisSummaryCommandError(output, context);
572
572
  }
573
573
  const data = await parseBody(output.body, context);
574
574
  let contents = {};
575
- contents = deserializeAws_json1_1GetLendingAnalysisSummaryResponse(data, context);
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 deserializeAws_json1_1GetLendingAnalysisSummaryCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
591
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
592
592
  case "InternalServerError":
593
593
  case "com.amazonaws.textract#InternalServerError":
594
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
594
+ throw await de_InternalServerErrorRes(parsedOutput, context);
595
595
  case "InvalidJobIdException":
596
596
  case "com.amazonaws.textract#InvalidJobIdException":
597
- throw await deserializeAws_json1_1InvalidJobIdExceptionResponse(parsedOutput, context);
597
+ throw await de_InvalidJobIdExceptionRes(parsedOutput, context);
598
598
  case "InvalidKMSKeyException":
599
599
  case "com.amazonaws.textract#InvalidKMSKeyException":
600
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
600
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
601
601
  case "InvalidParameterException":
602
602
  case "com.amazonaws.textract#InvalidParameterException":
603
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
603
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
604
604
  case "InvalidS3ObjectException":
605
605
  case "com.amazonaws.textract#InvalidS3ObjectException":
606
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
606
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
607
607
  case "ProvisionedThroughputExceededException":
608
608
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
609
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
609
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
610
610
  case "ThrottlingException":
611
611
  case "com.amazonaws.textract#ThrottlingException":
612
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1StartDocumentAnalysisCommand = async (output, context) => {
623
+ export const de_StartDocumentAnalysisCommand = async (output, context) => {
624
624
  if (output.statusCode >= 300) {
625
- return deserializeAws_json1_1StartDocumentAnalysisCommandError(output, context);
625
+ return de_StartDocumentAnalysisCommandError(output, context);
626
626
  }
627
627
  const data = await parseBody(output.body, context);
628
628
  let contents = {};
629
- contents = deserializeAws_json1_1StartDocumentAnalysisResponse(data, context);
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 deserializeAws_json1_1StartDocumentAnalysisCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
645
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
646
646
  case "BadDocumentException":
647
647
  case "com.amazonaws.textract#BadDocumentException":
648
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
648
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
649
649
  case "DocumentTooLargeException":
650
650
  case "com.amazonaws.textract#DocumentTooLargeException":
651
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
651
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
652
652
  case "IdempotentParameterMismatchException":
653
653
  case "com.amazonaws.textract#IdempotentParameterMismatchException":
654
- throw await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
654
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
655
655
  case "InternalServerError":
656
656
  case "com.amazonaws.textract#InternalServerError":
657
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
657
+ throw await de_InternalServerErrorRes(parsedOutput, context);
658
658
  case "InvalidKMSKeyException":
659
659
  case "com.amazonaws.textract#InvalidKMSKeyException":
660
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
660
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
661
661
  case "InvalidParameterException":
662
662
  case "com.amazonaws.textract#InvalidParameterException":
663
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
663
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
664
664
  case "InvalidS3ObjectException":
665
665
  case "com.amazonaws.textract#InvalidS3ObjectException":
666
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
666
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
667
667
  case "LimitExceededException":
668
668
  case "com.amazonaws.textract#LimitExceededException":
669
- throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
669
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
670
670
  case "ProvisionedThroughputExceededException":
671
671
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
672
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
672
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
673
673
  case "ThrottlingException":
674
674
  case "com.amazonaws.textract#ThrottlingException":
675
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
675
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
676
676
  case "UnsupportedDocumentException":
677
677
  case "com.amazonaws.textract#UnsupportedDocumentException":
678
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1StartDocumentTextDetectionCommand = async (output, context) => {
689
+ export const de_StartDocumentTextDetectionCommand = async (output, context) => {
690
690
  if (output.statusCode >= 300) {
691
- return deserializeAws_json1_1StartDocumentTextDetectionCommandError(output, context);
691
+ return de_StartDocumentTextDetectionCommandError(output, context);
692
692
  }
693
693
  const data = await parseBody(output.body, context);
694
694
  let contents = {};
695
- contents = deserializeAws_json1_1StartDocumentTextDetectionResponse(data, context);
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 deserializeAws_json1_1StartDocumentTextDetectionCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
711
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
712
712
  case "BadDocumentException":
713
713
  case "com.amazonaws.textract#BadDocumentException":
714
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
714
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
715
715
  case "DocumentTooLargeException":
716
716
  case "com.amazonaws.textract#DocumentTooLargeException":
717
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
717
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
718
718
  case "IdempotentParameterMismatchException":
719
719
  case "com.amazonaws.textract#IdempotentParameterMismatchException":
720
- throw await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
720
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
721
721
  case "InternalServerError":
722
722
  case "com.amazonaws.textract#InternalServerError":
723
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
723
+ throw await de_InternalServerErrorRes(parsedOutput, context);
724
724
  case "InvalidKMSKeyException":
725
725
  case "com.amazonaws.textract#InvalidKMSKeyException":
726
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
726
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
727
727
  case "InvalidParameterException":
728
728
  case "com.amazonaws.textract#InvalidParameterException":
729
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
729
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
730
730
  case "InvalidS3ObjectException":
731
731
  case "com.amazonaws.textract#InvalidS3ObjectException":
732
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
732
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
733
733
  case "LimitExceededException":
734
734
  case "com.amazonaws.textract#LimitExceededException":
735
- throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
735
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
736
736
  case "ProvisionedThroughputExceededException":
737
737
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
738
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
738
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
739
739
  case "ThrottlingException":
740
740
  case "com.amazonaws.textract#ThrottlingException":
741
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
741
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
742
742
  case "UnsupportedDocumentException":
743
743
  case "com.amazonaws.textract#UnsupportedDocumentException":
744
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1StartExpenseAnalysisCommand = async (output, context) => {
755
+ export const de_StartExpenseAnalysisCommand = async (output, context) => {
756
756
  if (output.statusCode >= 300) {
757
- return deserializeAws_json1_1StartExpenseAnalysisCommandError(output, context);
757
+ return de_StartExpenseAnalysisCommandError(output, context);
758
758
  }
759
759
  const data = await parseBody(output.body, context);
760
760
  let contents = {};
761
- contents = deserializeAws_json1_1StartExpenseAnalysisResponse(data, context);
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 deserializeAws_json1_1StartExpenseAnalysisCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
777
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
778
778
  case "BadDocumentException":
779
779
  case "com.amazonaws.textract#BadDocumentException":
780
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
780
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
781
781
  case "DocumentTooLargeException":
782
782
  case "com.amazonaws.textract#DocumentTooLargeException":
783
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
783
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
784
784
  case "IdempotentParameterMismatchException":
785
785
  case "com.amazonaws.textract#IdempotentParameterMismatchException":
786
- throw await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
786
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
787
787
  case "InternalServerError":
788
788
  case "com.amazonaws.textract#InternalServerError":
789
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
789
+ throw await de_InternalServerErrorRes(parsedOutput, context);
790
790
  case "InvalidKMSKeyException":
791
791
  case "com.amazonaws.textract#InvalidKMSKeyException":
792
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
792
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
793
793
  case "InvalidParameterException":
794
794
  case "com.amazonaws.textract#InvalidParameterException":
795
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
795
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
796
796
  case "InvalidS3ObjectException":
797
797
  case "com.amazonaws.textract#InvalidS3ObjectException":
798
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
798
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
799
799
  case "LimitExceededException":
800
800
  case "com.amazonaws.textract#LimitExceededException":
801
- throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
801
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
802
802
  case "ProvisionedThroughputExceededException":
803
803
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
804
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
804
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
805
805
  case "ThrottlingException":
806
806
  case "com.amazonaws.textract#ThrottlingException":
807
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
807
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
808
808
  case "UnsupportedDocumentException":
809
809
  case "com.amazonaws.textract#UnsupportedDocumentException":
810
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1StartLendingAnalysisCommand = async (output, context) => {
821
+ export const de_StartLendingAnalysisCommand = async (output, context) => {
822
822
  if (output.statusCode >= 300) {
823
- return deserializeAws_json1_1StartLendingAnalysisCommandError(output, context);
823
+ return de_StartLendingAnalysisCommandError(output, context);
824
824
  }
825
825
  const data = await parseBody(output.body, context);
826
826
  let contents = {};
827
- contents = deserializeAws_json1_1StartLendingAnalysisResponse(data, context);
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 deserializeAws_json1_1StartLendingAnalysisCommandError = async (output, context) => {
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 deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
843
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
844
844
  case "BadDocumentException":
845
845
  case "com.amazonaws.textract#BadDocumentException":
846
- throw await deserializeAws_json1_1BadDocumentExceptionResponse(parsedOutput, context);
846
+ throw await de_BadDocumentExceptionRes(parsedOutput, context);
847
847
  case "DocumentTooLargeException":
848
848
  case "com.amazonaws.textract#DocumentTooLargeException":
849
- throw await deserializeAws_json1_1DocumentTooLargeExceptionResponse(parsedOutput, context);
849
+ throw await de_DocumentTooLargeExceptionRes(parsedOutput, context);
850
850
  case "IdempotentParameterMismatchException":
851
851
  case "com.amazonaws.textract#IdempotentParameterMismatchException":
852
- throw await deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse(parsedOutput, context);
852
+ throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
853
853
  case "InternalServerError":
854
854
  case "com.amazonaws.textract#InternalServerError":
855
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
855
+ throw await de_InternalServerErrorRes(parsedOutput, context);
856
856
  case "InvalidKMSKeyException":
857
857
  case "com.amazonaws.textract#InvalidKMSKeyException":
858
- throw await deserializeAws_json1_1InvalidKMSKeyExceptionResponse(parsedOutput, context);
858
+ throw await de_InvalidKMSKeyExceptionRes(parsedOutput, context);
859
859
  case "InvalidParameterException":
860
860
  case "com.amazonaws.textract#InvalidParameterException":
861
- throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
861
+ throw await de_InvalidParameterExceptionRes(parsedOutput, context);
862
862
  case "InvalidS3ObjectException":
863
863
  case "com.amazonaws.textract#InvalidS3ObjectException":
864
- throw await deserializeAws_json1_1InvalidS3ObjectExceptionResponse(parsedOutput, context);
864
+ throw await de_InvalidS3ObjectExceptionRes(parsedOutput, context);
865
865
  case "LimitExceededException":
866
866
  case "com.amazonaws.textract#LimitExceededException":
867
- throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
867
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
868
868
  case "ProvisionedThroughputExceededException":
869
869
  case "com.amazonaws.textract#ProvisionedThroughputExceededException":
870
- throw await deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
870
+ throw await de_ProvisionedThroughputExceededExceptionRes(parsedOutput, context);
871
871
  case "ThrottlingException":
872
872
  case "com.amazonaws.textract#ThrottlingException":
873
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
873
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
874
874
  case "UnsupportedDocumentException":
875
875
  case "com.amazonaws.textract#UnsupportedDocumentException":
876
- throw await deserializeAws_json1_1UnsupportedDocumentExceptionResponse(parsedOutput, context);
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 deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
887
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
888
888
  const body = parsedOutput.body;
889
- const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
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 deserializeAws_json1_1BadDocumentExceptionResponse = async (parsedOutput, context) => {
896
+ const de_BadDocumentExceptionRes = async (parsedOutput, context) => {
897
897
  const body = parsedOutput.body;
898
- const deserialized = deserializeAws_json1_1BadDocumentException(body, context);
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 deserializeAws_json1_1DocumentTooLargeExceptionResponse = async (parsedOutput, context) => {
905
+ const de_DocumentTooLargeExceptionRes = async (parsedOutput, context) => {
906
906
  const body = parsedOutput.body;
907
- const deserialized = deserializeAws_json1_1DocumentTooLargeException(body, context);
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 deserializeAws_json1_1HumanLoopQuotaExceededExceptionResponse = async (parsedOutput, context) => {
914
+ const de_HumanLoopQuotaExceededExceptionRes = async (parsedOutput, context) => {
915
915
  const body = parsedOutput.body;
916
- const deserialized = deserializeAws_json1_1HumanLoopQuotaExceededException(body, context);
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 deserializeAws_json1_1IdempotentParameterMismatchExceptionResponse = async (parsedOutput, context) => {
923
+ const de_IdempotentParameterMismatchExceptionRes = async (parsedOutput, context) => {
924
924
  const body = parsedOutput.body;
925
- const deserialized = deserializeAws_json1_1IdempotentParameterMismatchException(body, context);
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 deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
932
+ const de_InternalServerErrorRes = async (parsedOutput, context) => {
933
933
  const body = parsedOutput.body;
934
- const deserialized = deserializeAws_json1_1InternalServerError(body, context);
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 deserializeAws_json1_1InvalidJobIdExceptionResponse = async (parsedOutput, context) => {
941
+ const de_InvalidJobIdExceptionRes = async (parsedOutput, context) => {
942
942
  const body = parsedOutput.body;
943
- const deserialized = deserializeAws_json1_1InvalidJobIdException(body, context);
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 deserializeAws_json1_1InvalidKMSKeyExceptionResponse = async (parsedOutput, context) => {
950
+ const de_InvalidKMSKeyExceptionRes = async (parsedOutput, context) => {
951
951
  const body = parsedOutput.body;
952
- const deserialized = deserializeAws_json1_1InvalidKMSKeyException(body, context);
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 deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
959
+ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
960
960
  const body = parsedOutput.body;
961
- const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
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 deserializeAws_json1_1InvalidS3ObjectExceptionResponse = async (parsedOutput, context) => {
968
+ const de_InvalidS3ObjectExceptionRes = async (parsedOutput, context) => {
969
969
  const body = parsedOutput.body;
970
- const deserialized = deserializeAws_json1_1InvalidS3ObjectException(body, context);
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 deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
977
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
978
978
  const body = parsedOutput.body;
979
- const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
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 deserializeAws_json1_1ProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => {
986
+ const de_ProvisionedThroughputExceededExceptionRes = async (parsedOutput, context) => {
987
987
  const body = parsedOutput.body;
988
- const deserialized = deserializeAws_json1_1ProvisionedThroughputExceededException(body, context);
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 deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
995
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
996
996
  const body = parsedOutput.body;
997
- const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
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 deserializeAws_json1_1UnsupportedDocumentExceptionResponse = async (parsedOutput, context) => {
1004
+ const de_UnsupportedDocumentExceptionRes = async (parsedOutput, context) => {
1005
1005
  const body = parsedOutput.body;
1006
- const deserialized = deserializeAws_json1_1UnsupportedDocumentException(body, context);
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 serializeAws_json1_1AnalyzeDocumentRequest = (input, context) => {
1013
+ const se_AnalyzeDocumentRequest = (input, context) => {
1014
1014
  return {
1015
- ...(input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }),
1016
- ...(input.FeatureTypes != null && { FeatureTypes: serializeAws_json1_1FeatureTypes(input.FeatureTypes, context) }),
1017
- ...(input.HumanLoopConfig != null && {
1018
- HumanLoopConfig: serializeAws_json1_1HumanLoopConfig(input.HumanLoopConfig, context),
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 serializeAws_json1_1AnalyzeExpenseRequest = (input, context) => {
1021
+ const se_AnalyzeExpenseRequest = (input, context) => {
1026
1022
  return {
1027
- ...(input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }),
1023
+ ...(input.Document != null && { Document: se_Document(input.Document, context) }),
1028
1024
  };
1029
1025
  };
1030
- const serializeAws_json1_1AnalyzeIDRequest = (input, context) => {
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 serializeAws_json1_1ContentClassifiers = (input, context) => {
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 serializeAws_json1_1DetectDocumentTextRequest = (input, context) => {
1038
+ const se_DetectDocumentTextRequest = (input, context) => {
1045
1039
  return {
1046
- ...(input.Document != null && { Document: serializeAws_json1_1Document(input.Document, context) }),
1040
+ ...(input.Document != null && { Document: se_Document(input.Document, context) }),
1047
1041
  };
1048
1042
  };
1049
- const serializeAws_json1_1Document = (input, context) => {
1043
+ const se_Document = (input, context) => {
1050
1044
  return {
1051
1045
  ...(input.Bytes != null && { Bytes: context.base64Encoder(input.Bytes) }),
1052
- ...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
1046
+ ...(input.S3Object != null && { S3Object: se_S3Object(input.S3Object, context) }),
1053
1047
  };
1054
1048
  };
1055
- const serializeAws_json1_1DocumentLocation = (input, context) => {
1049
+ const se_DocumentLocation = (input, context) => {
1056
1050
  return {
1057
- ...(input.S3Object != null && { S3Object: serializeAws_json1_1S3Object(input.S3Object, context) }),
1051
+ ...(input.S3Object != null && { S3Object: se_S3Object(input.S3Object, context) }),
1058
1052
  };
1059
1053
  };
1060
- const serializeAws_json1_1DocumentPages = (input, context) => {
1054
+ const se_DocumentPages = (input, context) => {
1061
1055
  return input
1062
1056
  .filter((e) => e != null)
1063
1057
  .map((entry) => {
1064
- return serializeAws_json1_1Document(entry, context);
1058
+ return se_Document(entry, context);
1065
1059
  });
1066
1060
  };
1067
- const serializeAws_json1_1FeatureTypes = (input, context) => {
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 serializeAws_json1_1GetDocumentAnalysisRequest = (input, context) => {
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 serializeAws_json1_1GetDocumentTextDetectionRequest = (input, context) => {
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 serializeAws_json1_1GetExpenseAnalysisRequest = (input, context) => {
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 serializeAws_json1_1GetLendingAnalysisRequest = (input, context) => {
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 serializeAws_json1_1GetLendingAnalysisSummaryRequest = (input, context) => {
1096
+ const se_GetLendingAnalysisSummaryRequest = (input, context) => {
1103
1097
  return {
1104
1098
  ...(input.JobId != null && { JobId: input.JobId }),
1105
1099
  };
1106
1100
  };
1107
- const serializeAws_json1_1HumanLoopConfig = (input, context) => {
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 serializeAws_json1_1HumanLoopDataAttributes = (input, context) => {
1108
+ const se_HumanLoopDataAttributes = (input, context) => {
1117
1109
  return {
1118
1110
  ...(input.ContentClassifiers != null && {
1119
- ContentClassifiers: serializeAws_json1_1ContentClassifiers(input.ContentClassifiers, context),
1111
+ ContentClassifiers: se_ContentClassifiers(input.ContentClassifiers, context),
1120
1112
  }),
1121
1113
  };
1122
1114
  };
1123
- const serializeAws_json1_1NotificationChannel = (input, context) => {
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 serializeAws_json1_1OutputConfig = (input, context) => {
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 serializeAws_json1_1Queries = (input, context) => {
1127
+ const se_Queries = (input, context) => {
1136
1128
  return input
1137
1129
  .filter((e) => e != null)
1138
1130
  .map((entry) => {
1139
- return serializeAws_json1_1Query(entry, context);
1131
+ return se_Query(entry, context);
1140
1132
  });
1141
1133
  };
1142
- const serializeAws_json1_1QueriesConfig = (input, context) => {
1134
+ const se_QueriesConfig = (input, context) => {
1143
1135
  return {
1144
- ...(input.Queries != null && { Queries: serializeAws_json1_1Queries(input.Queries, context) }),
1136
+ ...(input.Queries != null && { Queries: se_Queries(input.Queries, context) }),
1145
1137
  };
1146
1138
  };
1147
- const serializeAws_json1_1Query = (input, context) => {
1139
+ const se_Query = (input, context) => {
1148
1140
  return {
1149
1141
  ...(input.Alias != null && { Alias: input.Alias }),
1150
- ...(input.Pages != null && { Pages: serializeAws_json1_1QueryPages(input.Pages, context) }),
1142
+ ...(input.Pages != null && { Pages: se_QueryPages(input.Pages, context) }),
1151
1143
  ...(input.Text != null && { Text: input.Text }),
1152
1144
  };
1153
1145
  };
1154
- const serializeAws_json1_1QueryPages = (input, context) => {
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 serializeAws_json1_1S3Object = (input, context) => {
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 serializeAws_json1_1StartDocumentAnalysisRequest = (input, context) => {
1160
+ const se_StartDocumentAnalysisRequest = (input, context) => {
1169
1161
  return {
1170
1162
  ...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
1171
- ...(input.DocumentLocation != null && {
1172
- DocumentLocation: serializeAws_json1_1DocumentLocation(input.DocumentLocation, context),
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: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
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 serializeAws_json1_1StartDocumentTextDetectionRequest = (input, context) => {
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: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
1181
+ NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
1196
1182
  }),
1197
- ...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
1183
+ ...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
1198
1184
  };
1199
1185
  };
1200
- const serializeAws_json1_1StartExpenseAnalysisRequest = (input, context) => {
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: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
1193
+ NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
1210
1194
  }),
1211
- ...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
1195
+ ...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
1212
1196
  };
1213
1197
  };
1214
- const serializeAws_json1_1StartLendingAnalysisRequest = (input, context) => {
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: serializeAws_json1_1NotificationChannel(input.NotificationChannel, context),
1205
+ NotificationChannel: se_NotificationChannel(input.NotificationChannel, context),
1224
1206
  }),
1225
- ...(input.OutputConfig != null && { OutputConfig: serializeAws_json1_1OutputConfig(input.OutputConfig, context) }),
1207
+ ...(input.OutputConfig != null && { OutputConfig: se_OutputConfig(input.OutputConfig, context) }),
1226
1208
  };
1227
1209
  };
1228
- const deserializeAws_json1_1AccessDeniedException = (output, context) => {
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 deserializeAws_json1_1AnalyzeDocumentResponse = (output, context) => {
1216
+ const de_AnalyzeDocumentResponse = (output, context) => {
1235
1217
  return {
1236
1218
  AnalyzeDocumentModelVersion: __expectString(output.AnalyzeDocumentModelVersion),
1237
- Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
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
- ? deserializeAws_json1_1HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
1222
+ ? de_HumanLoopActivationOutput(output.HumanLoopActivationOutput, context)
1243
1223
  : undefined,
1244
1224
  };
1245
1225
  };
1246
- const deserializeAws_json1_1AnalyzeExpenseResponse = (output, context) => {
1226
+ const de_AnalyzeExpenseResponse = (output, context) => {
1247
1227
  return {
1248
- DocumentMetadata: output.DocumentMetadata != null
1249
- ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
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 deserializeAws_json1_1AnalyzeIDDetections = (output, context) => {
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 deserializeAws_json1_1AnalyzeIDResponse = (output, context) => {
1239
+ const de_AnalyzeIDResponse = (output, context) => {
1266
1240
  return {
1267
1241
  AnalyzeIDModelVersion: __expectString(output.AnalyzeIDModelVersion),
1268
- DocumentMetadata: output.DocumentMetadata != null
1269
- ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
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 deserializeAws_json1_1BadDocumentException = (output, context) => {
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 deserializeAws_json1_1Block = (output, context) => {
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 ? deserializeAws_json1_1EntityTypes(output.EntityTypes, context) : undefined,
1289
- Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
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 ? deserializeAws_json1_1Query(output.Query, context) : undefined,
1293
- Relationships: output.Relationships != null ? deserializeAws_json1_1RelationshipList(output.Relationships, context) : undefined,
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 deserializeAws_json1_1BlockList = (output, context) => {
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 deserializeAws_json1_1Block(entry, context);
1278
+ return de_Block(entry, context);
1309
1279
  });
1310
1280
  return retVal;
1311
1281
  };
1312
- const deserializeAws_json1_1BoundingBox = (output, context) => {
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 deserializeAws_json1_1DetectDocumentTextResponse = (output, context) => {
1290
+ const de_DetectDocumentTextResponse = (output, context) => {
1321
1291
  return {
1322
- Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
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 deserializeAws_json1_1DetectedSignature = (output, context) => {
1297
+ const de_DetectedSignature = (output, context) => {
1330
1298
  return {
1331
1299
  Page: __expectInt32(output.Page),
1332
1300
  };
1333
1301
  };
1334
- const deserializeAws_json1_1DetectedSignatureList = (output, context) => {
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 deserializeAws_json1_1DetectedSignature(entry, context);
1309
+ return de_DetectedSignature(entry, context);
1342
1310
  });
1343
1311
  return retVal;
1344
1312
  };
1345
- const deserializeAws_json1_1DocumentGroup = (output, context) => {
1313
+ const de_DocumentGroup = (output, context) => {
1346
1314
  return {
1347
- DetectedSignatures: output.DetectedSignatures != null
1348
- ? deserializeAws_json1_1DetectedSignatureList(output.DetectedSignatures, context)
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
- ? deserializeAws_json1_1UndetectedSignatureList(output.UndetectedSignatures, context)
1319
+ ? de_UndetectedSignatureList(output.UndetectedSignatures, context)
1356
1320
  : undefined,
1357
1321
  };
1358
1322
  };
1359
- const deserializeAws_json1_1DocumentGroupList = (output, context) => {
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 deserializeAws_json1_1DocumentGroup(entry, context);
1330
+ return de_DocumentGroup(entry, context);
1367
1331
  });
1368
1332
  return retVal;
1369
1333
  };
1370
- const deserializeAws_json1_1DocumentMetadata = (output, context) => {
1334
+ const de_DocumentMetadata = (output, context) => {
1371
1335
  return {
1372
1336
  Pages: __expectInt32(output.Pages),
1373
1337
  };
1374
1338
  };
1375
- const deserializeAws_json1_1DocumentTooLargeException = (output, context) => {
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 deserializeAws_json1_1EntityTypes = (output, context) => {
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 deserializeAws_json1_1ExpenseCurrency = (output, context) => {
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 deserializeAws_json1_1ExpenseDetection = (output, context) => {
1362
+ const de_ExpenseDetection = (output, context) => {
1399
1363
  return {
1400
1364
  Confidence: __limitedParseFloat32(output.Confidence),
1401
- Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
1365
+ Geometry: output.Geometry != null ? de_Geometry(output.Geometry, context) : undefined,
1402
1366
  Text: __expectString(output.Text),
1403
1367
  };
1404
1368
  };
1405
- const deserializeAws_json1_1ExpenseDocument = (output, context) => {
1369
+ const de_ExpenseDocument = (output, context) => {
1406
1370
  return {
1407
- Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
1371
+ Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
1408
1372
  ExpenseIndex: __expectInt32(output.ExpenseIndex),
1409
- LineItemGroups: output.LineItemGroups != null
1410
- ? deserializeAws_json1_1LineItemGroupList(output.LineItemGroups, context)
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 deserializeAws_json1_1ExpenseDocumentList = (output, context) => {
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 deserializeAws_json1_1ExpenseDocument(entry, context);
1384
+ return de_ExpenseDocument(entry, context);
1423
1385
  });
1424
1386
  return retVal;
1425
1387
  };
1426
- const deserializeAws_json1_1ExpenseField = (output, context) => {
1388
+ const de_ExpenseField = (output, context) => {
1427
1389
  return {
1428
- Currency: output.Currency != null ? deserializeAws_json1_1ExpenseCurrency(output.Currency, context) : undefined,
1429
- GroupProperties: output.GroupProperties != null
1430
- ? deserializeAws_json1_1ExpenseGroupPropertyList(output.GroupProperties, context)
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 ? deserializeAws_json1_1ExpenseType(output.Type, context) : undefined,
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 deserializeAws_json1_1ExpenseFieldList = (output, context) => {
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 deserializeAws_json1_1ExpenseField(entry, context);
1405
+ return de_ExpenseField(entry, context);
1450
1406
  });
1451
1407
  return retVal;
1452
1408
  };
1453
- const deserializeAws_json1_1ExpenseGroupProperty = (output, context) => {
1409
+ const de_ExpenseGroupProperty = (output, context) => {
1454
1410
  return {
1455
1411
  Id: __expectString(output.Id),
1456
- Types: output.Types != null ? deserializeAws_json1_1StringList(output.Types, context) : undefined,
1412
+ Types: output.Types != null ? de_StringList(output.Types, context) : undefined,
1457
1413
  };
1458
1414
  };
1459
- const deserializeAws_json1_1ExpenseGroupPropertyList = (output, context) => {
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 deserializeAws_json1_1ExpenseGroupProperty(entry, context);
1422
+ return de_ExpenseGroupProperty(entry, context);
1467
1423
  });
1468
1424
  return retVal;
1469
1425
  };
1470
- const deserializeAws_json1_1ExpenseType = (output, context) => {
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 deserializeAws_json1_1Extraction = (output, context) => {
1432
+ const de_Extraction = (output, context) => {
1477
1433
  return {
1478
- ExpenseDocument: output.ExpenseDocument != null
1479
- ? deserializeAws_json1_1ExpenseDocument(output.ExpenseDocument, context)
1480
- : undefined,
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 deserializeAws_json1_1ExtractionList = (output, context) => {
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 deserializeAws_json1_1Extraction(entry, context);
1446
+ return de_Extraction(entry, context);
1497
1447
  });
1498
1448
  return retVal;
1499
1449
  };
1500
- const deserializeAws_json1_1Geometry = (output, context) => {
1450
+ const de_Geometry = (output, context) => {
1501
1451
  return {
1502
- BoundingBox: output.BoundingBox != null ? deserializeAws_json1_1BoundingBox(output.BoundingBox, context) : undefined,
1503
- Polygon: output.Polygon != null ? deserializeAws_json1_1Polygon(output.Polygon, context) : undefined,
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 deserializeAws_json1_1GetDocumentAnalysisResponse = (output, context) => {
1456
+ const de_GetDocumentAnalysisResponse = (output, context) => {
1507
1457
  return {
1508
1458
  AnalyzeDocumentModelVersion: __expectString(output.AnalyzeDocumentModelVersion),
1509
- Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
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 ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
1464
+ Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
1517
1465
  };
1518
1466
  };
1519
- const deserializeAws_json1_1GetDocumentTextDetectionResponse = (output, context) => {
1467
+ const de_GetDocumentTextDetectionResponse = (output, context) => {
1520
1468
  return {
1521
- Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
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 ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
1475
+ Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
1530
1476
  };
1531
1477
  };
1532
- const deserializeAws_json1_1GetExpenseAnalysisResponse = (output, context) => {
1478
+ const de_GetExpenseAnalysisResponse = (output, context) => {
1533
1479
  return {
1534
1480
  AnalyzeExpenseModelVersion: __expectString(output.AnalyzeExpenseModelVersion),
1535
- DocumentMetadata: output.DocumentMetadata != null
1536
- ? deserializeAws_json1_1DocumentMetadata(output.DocumentMetadata, context)
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 ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
1486
+ Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
1545
1487
  };
1546
1488
  };
1547
- const deserializeAws_json1_1GetLendingAnalysisResponse = (output, context) => {
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 ? deserializeAws_json1_1LendingResultList(output.Results, context) : undefined,
1495
+ Results: output.Results != null ? de_LendingResultList(output.Results, context) : undefined,
1556
1496
  StatusMessage: __expectString(output.StatusMessage),
1557
- Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
1497
+ Warnings: output.Warnings != null ? de_Warnings(output.Warnings, context) : undefined,
1558
1498
  };
1559
1499
  };
1560
- const deserializeAws_json1_1GetLendingAnalysisSummaryResponse = (output, context) => {
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 ? deserializeAws_json1_1LendingSummary(output.Summary, context) : undefined,
1569
- Warnings: output.Warnings != null ? deserializeAws_json1_1Warnings(output.Warnings, context) : undefined,
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 deserializeAws_json1_1HumanLoopActivationOutput = (output, context) => {
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
- ? deserializeAws_json1_1HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
1516
+ ? de_HumanLoopActivationReasons(output.HumanLoopActivationReasons, context)
1579
1517
  : undefined,
1580
1518
  HumanLoopArn: __expectString(output.HumanLoopArn),
1581
1519
  };
1582
1520
  };
1583
- const deserializeAws_json1_1HumanLoopActivationReasons = (output, context) => {
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 deserializeAws_json1_1HumanLoopQuotaExceededException = (output, context) => {
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 deserializeAws_json1_1IdempotentParameterMismatchException = (output, context) => {
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 deserializeAws_json1_1IdentityDocument = (output, context) => {
1547
+ const de_IdentityDocument = (output, context) => {
1610
1548
  return {
1611
- Blocks: output.Blocks != null ? deserializeAws_json1_1BlockList(output.Blocks, context) : undefined,
1549
+ Blocks: output.Blocks != null ? de_BlockList(output.Blocks, context) : undefined,
1612
1550
  DocumentIndex: __expectInt32(output.DocumentIndex),
1613
1551
  IdentityDocumentFields: output.IdentityDocumentFields != null
1614
- ? deserializeAws_json1_1IdentityDocumentFieldList(output.IdentityDocumentFields, context)
1552
+ ? de_IdentityDocumentFieldList(output.IdentityDocumentFields, context)
1615
1553
  : undefined,
1616
1554
  };
1617
1555
  };
1618
- const deserializeAws_json1_1IdentityDocumentField = (output, context) => {
1556
+ const de_IdentityDocumentField = (output, context) => {
1619
1557
  return {
1620
- Type: output.Type != null ? deserializeAws_json1_1AnalyzeIDDetections(output.Type, context) : undefined,
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 deserializeAws_json1_1IdentityDocumentFieldList = (output, context) => {
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 deserializeAws_json1_1IdentityDocumentField(entry, context);
1569
+ return de_IdentityDocumentField(entry, context);
1634
1570
  });
1635
1571
  return retVal;
1636
1572
  };
1637
- const deserializeAws_json1_1IdentityDocumentList = (output, context) => {
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 deserializeAws_json1_1IdentityDocument(entry, context);
1580
+ return de_IdentityDocument(entry, context);
1645
1581
  });
1646
1582
  return retVal;
1647
1583
  };
1648
- const deserializeAws_json1_1IdList = (output, context) => {
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 deserializeAws_json1_1InternalServerError = (output, context) => {
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 deserializeAws_json1_1InvalidJobIdException = (output, context) => {
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 deserializeAws_json1_1InvalidKMSKeyException = (output, context) => {
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 deserializeAws_json1_1InvalidParameterException = (output, context) => {
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 deserializeAws_json1_1InvalidS3ObjectException = (output, context) => {
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 deserializeAws_json1_1LendingDetection = (output, context) => {
1625
+ const de_LendingDetection = (output, context) => {
1690
1626
  return {
1691
1627
  Confidence: __limitedParseFloat32(output.Confidence),
1692
- Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
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 deserializeAws_json1_1LendingDetectionList = (output, context) => {
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 deserializeAws_json1_1LendingDetection(entry, context);
1640
+ return de_LendingDetection(entry, context);
1705
1641
  });
1706
1642
  return retVal;
1707
1643
  };
1708
- const deserializeAws_json1_1LendingDocument = (output, context) => {
1644
+ const de_LendingDocument = (output, context) => {
1709
1645
  return {
1710
- LendingFields: output.LendingFields != null ? deserializeAws_json1_1LendingFieldList(output.LendingFields, context) : undefined,
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 deserializeAws_json1_1LendingField = (output, context) => {
1650
+ const de_LendingField = (output, context) => {
1717
1651
  return {
1718
- KeyDetection: output.KeyDetection != null ? deserializeAws_json1_1LendingDetection(output.KeyDetection, context) : undefined,
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 deserializeAws_json1_1LendingFieldList = (output, context) => {
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 deserializeAws_json1_1LendingField(entry, context);
1664
+ return de_LendingField(entry, context);
1733
1665
  });
1734
1666
  return retVal;
1735
1667
  };
1736
- const deserializeAws_json1_1LendingResult = (output, context) => {
1668
+ const de_LendingResult = (output, context) => {
1737
1669
  return {
1738
- Extractions: output.Extractions != null ? deserializeAws_json1_1ExtractionList(output.Extractions, context) : undefined,
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 deserializeAws_json1_1LendingResultList = (output, context) => {
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 deserializeAws_json1_1LendingResult(entry, context);
1682
+ return de_LendingResult(entry, context);
1753
1683
  });
1754
1684
  return retVal;
1755
1685
  };
1756
- const deserializeAws_json1_1LendingSummary = (output, context) => {
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
- ? deserializeAws_json1_1UndetectedDocumentTypeList(output.UndetectedDocumentTypes, context)
1690
+ ? de_UndetectedDocumentTypeList(output.UndetectedDocumentTypes, context)
1763
1691
  : undefined,
1764
1692
  };
1765
1693
  };
1766
- const deserializeAws_json1_1LimitExceededException = (output, context) => {
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 deserializeAws_json1_1LineItemFields = (output, context) => {
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 deserializeAws_json1_1LineItemGroup = (output, context) => {
1705
+ const de_LineItemGroup = (output, context) => {
1780
1706
  return {
1781
1707
  LineItemGroupIndex: __expectInt32(output.LineItemGroupIndex),
1782
- LineItems: output.LineItems != null ? deserializeAws_json1_1LineItemList(output.LineItems, context) : undefined,
1708
+ LineItems: output.LineItems != null ? de_LineItemList(output.LineItems, context) : undefined,
1783
1709
  };
1784
1710
  };
1785
- const deserializeAws_json1_1LineItemGroupList = (output, context) => {
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 deserializeAws_json1_1LineItemGroup(entry, context);
1718
+ return de_LineItemGroup(entry, context);
1793
1719
  });
1794
1720
  return retVal;
1795
1721
  };
1796
- const deserializeAws_json1_1LineItemList = (output, context) => {
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 deserializeAws_json1_1LineItemFields(entry, context);
1729
+ return de_LineItemFields(entry, context);
1804
1730
  });
1805
1731
  return retVal;
1806
1732
  };
1807
- const deserializeAws_json1_1NormalizedValue = (output, context) => {
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 deserializeAws_json1_1PageClassification = (output, context) => {
1739
+ const de_PageClassification = (output, context) => {
1814
1740
  return {
1815
- PageNumber: output.PageNumber != null ? deserializeAws_json1_1PredictionList(output.PageNumber, context) : undefined,
1816
- PageType: output.PageType != null ? deserializeAws_json1_1PredictionList(output.PageType, context) : undefined,
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 deserializeAws_json1_1PageList = (output, context) => {
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 deserializeAws_json1_1Pages = (output, context) => {
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 deserializeAws_json1_1Point = (output, context) => {
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 deserializeAws_json1_1Polygon = (output, context) => {
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 deserializeAws_json1_1Point(entry, context);
1780
+ return de_Point(entry, context);
1855
1781
  });
1856
1782
  return retVal;
1857
1783
  };
1858
- const deserializeAws_json1_1Prediction = (output, context) => {
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 deserializeAws_json1_1PredictionList = (output, context) => {
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 deserializeAws_json1_1Prediction(entry, context);
1797
+ return de_Prediction(entry, context);
1872
1798
  });
1873
1799
  return retVal;
1874
1800
  };
1875
- const deserializeAws_json1_1ProvisionedThroughputExceededException = (output, context) => {
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 deserializeAws_json1_1Query = (output, context) => {
1807
+ const de_Query = (output, context) => {
1882
1808
  return {
1883
1809
  Alias: __expectString(output.Alias),
1884
- Pages: output.Pages != null ? deserializeAws_json1_1QueryPages(output.Pages, context) : undefined,
1810
+ Pages: output.Pages != null ? de_QueryPages(output.Pages, context) : undefined,
1885
1811
  Text: __expectString(output.Text),
1886
1812
  };
1887
1813
  };
1888
- const deserializeAws_json1_1QueryPages = (output, context) => {
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 deserializeAws_json1_1Relationship = (output, context) => {
1825
+ const de_Relationship = (output, context) => {
1900
1826
  return {
1901
- Ids: output.Ids != null ? deserializeAws_json1_1IdList(output.Ids, context) : undefined,
1827
+ Ids: output.Ids != null ? de_IdList(output.Ids, context) : undefined,
1902
1828
  Type: __expectString(output.Type),
1903
1829
  };
1904
1830
  };
1905
- const deserializeAws_json1_1RelationshipList = (output, context) => {
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 deserializeAws_json1_1Relationship(entry, context);
1838
+ return de_Relationship(entry, context);
1913
1839
  });
1914
1840
  return retVal;
1915
1841
  };
1916
- const deserializeAws_json1_1SignatureDetection = (output, context) => {
1842
+ const de_SignatureDetection = (output, context) => {
1917
1843
  return {
1918
1844
  Confidence: __limitedParseFloat32(output.Confidence),
1919
- Geometry: output.Geometry != null ? deserializeAws_json1_1Geometry(output.Geometry, context) : undefined,
1845
+ Geometry: output.Geometry != null ? de_Geometry(output.Geometry, context) : undefined,
1920
1846
  };
1921
1847
  };
1922
- const deserializeAws_json1_1SignatureDetectionList = (output, context) => {
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 deserializeAws_json1_1SignatureDetection(entry, context);
1855
+ return de_SignatureDetection(entry, context);
1930
1856
  });
1931
1857
  return retVal;
1932
1858
  };
1933
- const deserializeAws_json1_1SplitDocument = (output, context) => {
1859
+ const de_SplitDocument = (output, context) => {
1934
1860
  return {
1935
1861
  Index: __expectInt32(output.Index),
1936
- Pages: output.Pages != null ? deserializeAws_json1_1PageList(output.Pages, context) : undefined,
1862
+ Pages: output.Pages != null ? de_PageList(output.Pages, context) : undefined,
1937
1863
  };
1938
1864
  };
1939
- const deserializeAws_json1_1SplitDocumentList = (output, context) => {
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 deserializeAws_json1_1SplitDocument(entry, context);
1872
+ return de_SplitDocument(entry, context);
1947
1873
  });
1948
1874
  return retVal;
1949
1875
  };
1950
- const deserializeAws_json1_1StartDocumentAnalysisResponse = (output, context) => {
1876
+ const de_StartDocumentAnalysisResponse = (output, context) => {
1951
1877
  return {
1952
1878
  JobId: __expectString(output.JobId),
1953
1879
  };
1954
1880
  };
1955
- const deserializeAws_json1_1StartDocumentTextDetectionResponse = (output, context) => {
1881
+ const de_StartDocumentTextDetectionResponse = (output, context) => {
1956
1882
  return {
1957
1883
  JobId: __expectString(output.JobId),
1958
1884
  };
1959
1885
  };
1960
- const deserializeAws_json1_1StartExpenseAnalysisResponse = (output, context) => {
1886
+ const de_StartExpenseAnalysisResponse = (output, context) => {
1961
1887
  return {
1962
1888
  JobId: __expectString(output.JobId),
1963
1889
  };
1964
1890
  };
1965
- const deserializeAws_json1_1StartLendingAnalysisResponse = (output, context) => {
1891
+ const de_StartLendingAnalysisResponse = (output, context) => {
1966
1892
  return {
1967
1893
  JobId: __expectString(output.JobId),
1968
1894
  };
1969
1895
  };
1970
- const deserializeAws_json1_1StringList = (output, context) => {
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 deserializeAws_json1_1ThrottlingException = (output, context) => {
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 deserializeAws_json1_1UndetectedDocumentTypeList = (output, context) => {
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 deserializeAws_json1_1UndetectedSignature = (output, context) => {
1924
+ const de_UndetectedSignature = (output, context) => {
1999
1925
  return {
2000
1926
  Page: __expectInt32(output.Page),
2001
1927
  };
2002
1928
  };
2003
- const deserializeAws_json1_1UndetectedSignatureList = (output, context) => {
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 deserializeAws_json1_1UndetectedSignature(entry, context);
1936
+ return de_UndetectedSignature(entry, context);
2011
1937
  });
2012
1938
  return retVal;
2013
1939
  };
2014
- const deserializeAws_json1_1UnsupportedDocumentException = (output, context) => {
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 deserializeAws_json1_1Warning = (output, context) => {
1946
+ const de_Warning = (output, context) => {
2021
1947
  return {
2022
1948
  ErrorCode: __expectString(output.ErrorCode),
2023
- Pages: output.Pages != null ? deserializeAws_json1_1Pages(output.Pages, context) : undefined,
1949
+ Pages: output.Pages != null ? de_Pages(output.Pages, context) : undefined,
2024
1950
  };
2025
1951
  };
2026
- const deserializeAws_json1_1Warnings = (output, context) => {
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 deserializeAws_json1_1Warning(entry, context);
1959
+ return de_Warning(entry, context);
2034
1960
  });
2035
1961
  return retVal;
2036
1962
  };