@aws-sdk/client-amplifyuibuilder 3.303.0 → 3.309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/CreateComponentCommand.js +2 -2
- package/dist-cjs/commands/CreateFormCommand.js +2 -2
- package/dist-cjs/commands/CreateThemeCommand.js +2 -2
- package/dist-cjs/commands/DeleteComponentCommand.js +2 -2
- package/dist-cjs/commands/DeleteFormCommand.js +2 -2
- package/dist-cjs/commands/DeleteThemeCommand.js +2 -2
- package/dist-cjs/commands/ExchangeCodeForTokenCommand.js +2 -2
- package/dist-cjs/commands/ExportComponentsCommand.js +2 -2
- package/dist-cjs/commands/ExportFormsCommand.js +2 -2
- package/dist-cjs/commands/ExportThemesCommand.js +2 -2
- package/dist-cjs/commands/GetComponentCommand.js +2 -2
- package/dist-cjs/commands/GetFormCommand.js +2 -2
- package/dist-cjs/commands/GetMetadataCommand.js +2 -2
- package/dist-cjs/commands/GetThemeCommand.js +2 -2
- package/dist-cjs/commands/ListComponentsCommand.js +2 -2
- package/dist-cjs/commands/ListFormsCommand.js +2 -2
- package/dist-cjs/commands/ListThemesCommand.js +2 -2
- package/dist-cjs/commands/PutMetadataFlagCommand.js +2 -2
- package/dist-cjs/commands/RefreshTokenCommand.js +2 -2
- package/dist-cjs/commands/UpdateComponentCommand.js +2 -2
- package/dist-cjs/commands/UpdateFormCommand.js +2 -2
- package/dist-cjs/commands/UpdateThemeCommand.js +2 -2
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/protocols/Aws_restJson1.js +647 -572
- package/dist-es/commands/CreateComponentCommand.js +3 -3
- package/dist-es/commands/CreateFormCommand.js +3 -3
- package/dist-es/commands/CreateThemeCommand.js +3 -3
- package/dist-es/commands/DeleteComponentCommand.js +3 -3
- package/dist-es/commands/DeleteFormCommand.js +3 -3
- package/dist-es/commands/DeleteThemeCommand.js +3 -3
- package/dist-es/commands/ExchangeCodeForTokenCommand.js +3 -3
- package/dist-es/commands/ExportComponentsCommand.js +3 -3
- package/dist-es/commands/ExportFormsCommand.js +3 -3
- package/dist-es/commands/ExportThemesCommand.js +3 -3
- package/dist-es/commands/GetComponentCommand.js +3 -3
- package/dist-es/commands/GetFormCommand.js +3 -3
- package/dist-es/commands/GetMetadataCommand.js +3 -3
- package/dist-es/commands/GetThemeCommand.js +3 -3
- package/dist-es/commands/ListComponentsCommand.js +3 -3
- package/dist-es/commands/ListFormsCommand.js +3 -3
- package/dist-es/commands/ListThemesCommand.js +3 -3
- package/dist-es/commands/PutMetadataFlagCommand.js +3 -3
- package/dist-es/commands/RefreshTokenCommand.js +3 -3
- package/dist-es/commands/UpdateComponentCommand.js +3 -3
- package/dist-es/commands/UpdateFormCommand.js +3 -3
- package/dist-es/commands/UpdateThemeCommand.js +3 -3
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +602 -527
- package/dist-types/AmplifyUIBuilder.d.ts +1 -1
- package/dist-types/commands/CreateComponentCommand.d.ts +2 -0
- package/dist-types/commands/CreateFormCommand.d.ts +38 -4
- package/dist-types/commands/ExchangeCodeForTokenCommand.d.ts +1 -0
- package/dist-types/commands/PutMetadataFlagCommand.d.ts +1 -1
- package/dist-types/commands/RefreshTokenCommand.d.ts +1 -0
- package/dist-types/commands/UpdateComponentCommand.d.ts +2 -0
- package/dist-types/commands/UpdateFormCommand.d.ts +38 -4
- package/dist-types/models/models_0.d.ts +567 -404
- package/dist-types/protocols/Aws_restJson1.d.ts +176 -44
- package/dist-types/ts3.4/models/models_0.d.ts +136 -92
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -44
- package/package.json +29 -29
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectBoolean a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AmplifyUIBuilderServiceException as __BaseException } from "../models/AmplifyUIBuilderServiceException";
|
|
5
5
|
import { FieldPosition, FormStyleConfig, InternalServerException, InvalidParameterException, ResourceConflictException, ResourceNotFoundException, ServiceQuotaExceededException, UnauthorizedException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateComponentCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -17,7 +17,7 @@ export const serializeAws_restJson1CreateComponentCommand = async (input, contex
|
|
|
17
17
|
});
|
|
18
18
|
let body;
|
|
19
19
|
if (input.componentToCreate !== undefined) {
|
|
20
|
-
body =
|
|
20
|
+
body = se_CreateComponentData(input.componentToCreate, context);
|
|
21
21
|
}
|
|
22
22
|
if (body === undefined) {
|
|
23
23
|
body = {};
|
|
@@ -34,7 +34,7 @@ export const serializeAws_restJson1CreateComponentCommand = async (input, contex
|
|
|
34
34
|
body,
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
|
-
export const
|
|
37
|
+
export const se_CreateFormCommand = async (input, context) => {
|
|
38
38
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
39
39
|
const headers = {
|
|
40
40
|
"content-type": "application/json",
|
|
@@ -48,7 +48,7 @@ export const serializeAws_restJson1CreateFormCommand = async (input, context) =>
|
|
|
48
48
|
});
|
|
49
49
|
let body;
|
|
50
50
|
if (input.formToCreate !== undefined) {
|
|
51
|
-
body =
|
|
51
|
+
body = se_CreateFormData(input.formToCreate, context);
|
|
52
52
|
}
|
|
53
53
|
if (body === undefined) {
|
|
54
54
|
body = {};
|
|
@@ -65,7 +65,7 @@ export const serializeAws_restJson1CreateFormCommand = async (input, context) =>
|
|
|
65
65
|
body,
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
|
-
export const
|
|
68
|
+
export const se_CreateThemeCommand = async (input, context) => {
|
|
69
69
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
70
70
|
const headers = {
|
|
71
71
|
"content-type": "application/json",
|
|
@@ -79,7 +79,7 @@ export const serializeAws_restJson1CreateThemeCommand = async (input, context) =
|
|
|
79
79
|
});
|
|
80
80
|
let body;
|
|
81
81
|
if (input.themeToCreate !== undefined) {
|
|
82
|
-
body =
|
|
82
|
+
body = se_CreateThemeData(input.themeToCreate, context);
|
|
83
83
|
}
|
|
84
84
|
if (body === undefined) {
|
|
85
85
|
body = {};
|
|
@@ -96,7 +96,7 @@ export const serializeAws_restJson1CreateThemeCommand = async (input, context) =
|
|
|
96
96
|
body,
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
-
export const
|
|
99
|
+
export const se_DeleteComponentCommand = async (input, context) => {
|
|
100
100
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
101
101
|
const headers = {};
|
|
102
102
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -115,7 +115,7 @@ export const serializeAws_restJson1DeleteComponentCommand = async (input, contex
|
|
|
115
115
|
body,
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
|
-
export const
|
|
118
|
+
export const se_DeleteFormCommand = async (input, context) => {
|
|
119
119
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
120
|
const headers = {};
|
|
121
121
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -134,7 +134,7 @@ export const serializeAws_restJson1DeleteFormCommand = async (input, context) =>
|
|
|
134
134
|
body,
|
|
135
135
|
});
|
|
136
136
|
};
|
|
137
|
-
export const
|
|
137
|
+
export const se_DeleteThemeCommand = async (input, context) => {
|
|
138
138
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
139
139
|
const headers = {};
|
|
140
140
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -153,7 +153,7 @@ export const serializeAws_restJson1DeleteThemeCommand = async (input, context) =
|
|
|
153
153
|
body,
|
|
154
154
|
});
|
|
155
155
|
};
|
|
156
|
-
export const
|
|
156
|
+
export const se_ExchangeCodeForTokenCommand = async (input, context) => {
|
|
157
157
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
158
158
|
const headers = {
|
|
159
159
|
"content-type": "application/json",
|
|
@@ -162,7 +162,7 @@ export const serializeAws_restJson1ExchangeCodeForTokenCommand = async (input, c
|
|
|
162
162
|
resolvedPath = __resolvedPath(resolvedPath, input, "provider", () => input.provider, "{provider}", false);
|
|
163
163
|
let body;
|
|
164
164
|
if (input.request !== undefined) {
|
|
165
|
-
body =
|
|
165
|
+
body = se_ExchangeCodeForTokenRequestBody(input.request, context);
|
|
166
166
|
}
|
|
167
167
|
if (body === undefined) {
|
|
168
168
|
body = {};
|
|
@@ -178,7 +178,7 @@ export const serializeAws_restJson1ExchangeCodeForTokenCommand = async (input, c
|
|
|
178
178
|
body,
|
|
179
179
|
});
|
|
180
180
|
};
|
|
181
|
-
export const
|
|
181
|
+
export const se_ExportComponentsCommand = async (input, context) => {
|
|
182
182
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
183
183
|
const headers = {};
|
|
184
184
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -200,7 +200,7 @@ export const serializeAws_restJson1ExportComponentsCommand = async (input, conte
|
|
|
200
200
|
body,
|
|
201
201
|
});
|
|
202
202
|
};
|
|
203
|
-
export const
|
|
203
|
+
export const se_ExportFormsCommand = async (input, context) => {
|
|
204
204
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
205
205
|
const headers = {};
|
|
206
206
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -222,7 +222,7 @@ export const serializeAws_restJson1ExportFormsCommand = async (input, context) =
|
|
|
222
222
|
body,
|
|
223
223
|
});
|
|
224
224
|
};
|
|
225
|
-
export const
|
|
225
|
+
export const se_ExportThemesCommand = async (input, context) => {
|
|
226
226
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
227
227
|
const headers = {};
|
|
228
228
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -244,7 +244,7 @@ export const serializeAws_restJson1ExportThemesCommand = async (input, context)
|
|
|
244
244
|
body,
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
|
-
export const
|
|
247
|
+
export const se_GetComponentCommand = async (input, context) => {
|
|
248
248
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
249
249
|
const headers = {};
|
|
250
250
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -263,7 +263,7 @@ export const serializeAws_restJson1GetComponentCommand = async (input, context)
|
|
|
263
263
|
body,
|
|
264
264
|
});
|
|
265
265
|
};
|
|
266
|
-
export const
|
|
266
|
+
export const se_GetFormCommand = async (input, context) => {
|
|
267
267
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
268
268
|
const headers = {};
|
|
269
269
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -282,7 +282,7 @@ export const serializeAws_restJson1GetFormCommand = async (input, context) => {
|
|
|
282
282
|
body,
|
|
283
283
|
});
|
|
284
284
|
};
|
|
285
|
-
export const
|
|
285
|
+
export const se_GetMetadataCommand = async (input, context) => {
|
|
286
286
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
287
287
|
const headers = {};
|
|
288
288
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -300,7 +300,7 @@ export const serializeAws_restJson1GetMetadataCommand = async (input, context) =
|
|
|
300
300
|
body,
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
|
-
export const
|
|
303
|
+
export const se_GetThemeCommand = async (input, context) => {
|
|
304
304
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
305
305
|
const headers = {};
|
|
306
306
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -319,7 +319,7 @@ export const serializeAws_restJson1GetThemeCommand = async (input, context) => {
|
|
|
319
319
|
body,
|
|
320
320
|
});
|
|
321
321
|
};
|
|
322
|
-
export const
|
|
322
|
+
export const se_ListComponentsCommand = async (input, context) => {
|
|
323
323
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
324
324
|
const headers = {};
|
|
325
325
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -342,7 +342,7 @@ export const serializeAws_restJson1ListComponentsCommand = async (input, context
|
|
|
342
342
|
body,
|
|
343
343
|
});
|
|
344
344
|
};
|
|
345
|
-
export const
|
|
345
|
+
export const se_ListFormsCommand = async (input, context) => {
|
|
346
346
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
347
347
|
const headers = {};
|
|
348
348
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -365,7 +365,7 @@ export const serializeAws_restJson1ListFormsCommand = async (input, context) =>
|
|
|
365
365
|
body,
|
|
366
366
|
});
|
|
367
367
|
};
|
|
368
|
-
export const
|
|
368
|
+
export const se_ListThemesCommand = async (input, context) => {
|
|
369
369
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
370
370
|
const headers = {};
|
|
371
371
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -388,7 +388,7 @@ export const serializeAws_restJson1ListThemesCommand = async (input, context) =>
|
|
|
388
388
|
body,
|
|
389
389
|
});
|
|
390
390
|
};
|
|
391
|
-
export const
|
|
391
|
+
export const se_PutMetadataFlagCommand = async (input, context) => {
|
|
392
392
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
393
393
|
const headers = {
|
|
394
394
|
"content-type": "application/json",
|
|
@@ -400,7 +400,7 @@ export const serializeAws_restJson1PutMetadataFlagCommand = async (input, contex
|
|
|
400
400
|
resolvedPath = __resolvedPath(resolvedPath, input, "featureName", () => input.featureName, "{featureName}", false);
|
|
401
401
|
let body;
|
|
402
402
|
if (input.body !== undefined) {
|
|
403
|
-
body =
|
|
403
|
+
body = se_PutMetadataFlagBody(input.body, context);
|
|
404
404
|
}
|
|
405
405
|
if (body === undefined) {
|
|
406
406
|
body = {};
|
|
@@ -416,7 +416,7 @@ export const serializeAws_restJson1PutMetadataFlagCommand = async (input, contex
|
|
|
416
416
|
body,
|
|
417
417
|
});
|
|
418
418
|
};
|
|
419
|
-
export const
|
|
419
|
+
export const se_RefreshTokenCommand = async (input, context) => {
|
|
420
420
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
421
421
|
const headers = {
|
|
422
422
|
"content-type": "application/json",
|
|
@@ -425,7 +425,7 @@ export const serializeAws_restJson1RefreshTokenCommand = async (input, context)
|
|
|
425
425
|
resolvedPath = __resolvedPath(resolvedPath, input, "provider", () => input.provider, "{provider}", false);
|
|
426
426
|
let body;
|
|
427
427
|
if (input.refreshTokenBody !== undefined) {
|
|
428
|
-
body =
|
|
428
|
+
body = se_RefreshTokenRequestBody(input.refreshTokenBody, context);
|
|
429
429
|
}
|
|
430
430
|
if (body === undefined) {
|
|
431
431
|
body = {};
|
|
@@ -441,7 +441,7 @@ export const serializeAws_restJson1RefreshTokenCommand = async (input, context)
|
|
|
441
441
|
body,
|
|
442
442
|
});
|
|
443
443
|
};
|
|
444
|
-
export const
|
|
444
|
+
export const se_UpdateComponentCommand = async (input, context) => {
|
|
445
445
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
446
446
|
const headers = {
|
|
447
447
|
"content-type": "application/json",
|
|
@@ -456,7 +456,7 @@ export const serializeAws_restJson1UpdateComponentCommand = async (input, contex
|
|
|
456
456
|
});
|
|
457
457
|
let body;
|
|
458
458
|
if (input.updatedComponent !== undefined) {
|
|
459
|
-
body =
|
|
459
|
+
body = se_UpdateComponentData(input.updatedComponent, context);
|
|
460
460
|
}
|
|
461
461
|
if (body === undefined) {
|
|
462
462
|
body = {};
|
|
@@ -473,7 +473,7 @@ export const serializeAws_restJson1UpdateComponentCommand = async (input, contex
|
|
|
473
473
|
body,
|
|
474
474
|
});
|
|
475
475
|
};
|
|
476
|
-
export const
|
|
476
|
+
export const se_UpdateFormCommand = async (input, context) => {
|
|
477
477
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
478
478
|
const headers = {
|
|
479
479
|
"content-type": "application/json",
|
|
@@ -488,7 +488,7 @@ export const serializeAws_restJson1UpdateFormCommand = async (input, context) =>
|
|
|
488
488
|
});
|
|
489
489
|
let body;
|
|
490
490
|
if (input.updatedForm !== undefined) {
|
|
491
|
-
body =
|
|
491
|
+
body = se_UpdateFormData(input.updatedForm, context);
|
|
492
492
|
}
|
|
493
493
|
if (body === undefined) {
|
|
494
494
|
body = {};
|
|
@@ -505,7 +505,7 @@ export const serializeAws_restJson1UpdateFormCommand = async (input, context) =>
|
|
|
505
505
|
body,
|
|
506
506
|
});
|
|
507
507
|
};
|
|
508
|
-
export const
|
|
508
|
+
export const se_UpdateThemeCommand = async (input, context) => {
|
|
509
509
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
510
510
|
const headers = {
|
|
511
511
|
"content-type": "application/json",
|
|
@@ -520,7 +520,7 @@ export const serializeAws_restJson1UpdateThemeCommand = async (input, context) =
|
|
|
520
520
|
});
|
|
521
521
|
let body;
|
|
522
522
|
if (input.updatedTheme !== undefined) {
|
|
523
|
-
body =
|
|
523
|
+
body = se_UpdateThemeData(input.updatedTheme, context);
|
|
524
524
|
}
|
|
525
525
|
if (body === undefined) {
|
|
526
526
|
body = {};
|
|
@@ -537,18 +537,18 @@ export const serializeAws_restJson1UpdateThemeCommand = async (input, context) =
|
|
|
537
537
|
body,
|
|
538
538
|
});
|
|
539
539
|
};
|
|
540
|
-
export const
|
|
540
|
+
export const de_CreateComponentCommand = async (output, context) => {
|
|
541
541
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
542
|
-
return
|
|
542
|
+
return de_CreateComponentCommandError(output, context);
|
|
543
543
|
}
|
|
544
544
|
const contents = map({
|
|
545
545
|
$metadata: deserializeMetadata(output),
|
|
546
546
|
});
|
|
547
547
|
const data = __expectObject(await parseBody(output.body, context));
|
|
548
|
-
contents.entity =
|
|
548
|
+
contents.entity = de_Component(data, context);
|
|
549
549
|
return contents;
|
|
550
550
|
};
|
|
551
|
-
const
|
|
551
|
+
const de_CreateComponentCommandError = async (output, context) => {
|
|
552
552
|
const parsedOutput = {
|
|
553
553
|
...output,
|
|
554
554
|
body: await parseErrorBody(output.body, context),
|
|
@@ -557,16 +557,16 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
557
557
|
switch (errorCode) {
|
|
558
558
|
case "InternalServerException":
|
|
559
559
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
560
|
-
throw await
|
|
560
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
561
561
|
case "InvalidParameterException":
|
|
562
562
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
563
|
-
throw await
|
|
563
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
564
564
|
case "ResourceConflictException":
|
|
565
565
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
566
|
-
throw await
|
|
566
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
567
567
|
case "ServiceQuotaExceededException":
|
|
568
568
|
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
|
|
569
|
-
throw await
|
|
569
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
570
570
|
default:
|
|
571
571
|
const parsedBody = parsedOutput.body;
|
|
572
572
|
throwDefaultError({
|
|
@@ -577,18 +577,18 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
577
577
|
});
|
|
578
578
|
}
|
|
579
579
|
};
|
|
580
|
-
export const
|
|
580
|
+
export const de_CreateFormCommand = async (output, context) => {
|
|
581
581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
582
|
-
return
|
|
582
|
+
return de_CreateFormCommandError(output, context);
|
|
583
583
|
}
|
|
584
584
|
const contents = map({
|
|
585
585
|
$metadata: deserializeMetadata(output),
|
|
586
586
|
});
|
|
587
587
|
const data = __expectObject(await parseBody(output.body, context));
|
|
588
|
-
contents.entity =
|
|
588
|
+
contents.entity = de_Form(data, context);
|
|
589
589
|
return contents;
|
|
590
590
|
};
|
|
591
|
-
const
|
|
591
|
+
const de_CreateFormCommandError = async (output, context) => {
|
|
592
592
|
const parsedOutput = {
|
|
593
593
|
...output,
|
|
594
594
|
body: await parseErrorBody(output.body, context),
|
|
@@ -597,16 +597,16 @@ const deserializeAws_restJson1CreateFormCommandError = async (output, context) =
|
|
|
597
597
|
switch (errorCode) {
|
|
598
598
|
case "InternalServerException":
|
|
599
599
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
600
|
-
throw await
|
|
600
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
601
601
|
case "InvalidParameterException":
|
|
602
602
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
603
|
-
throw await
|
|
603
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
604
604
|
case "ResourceConflictException":
|
|
605
605
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
606
|
-
throw await
|
|
606
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
607
607
|
case "ServiceQuotaExceededException":
|
|
608
608
|
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
|
|
609
|
-
throw await
|
|
609
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
610
610
|
default:
|
|
611
611
|
const parsedBody = parsedOutput.body;
|
|
612
612
|
throwDefaultError({
|
|
@@ -617,18 +617,18 @@ const deserializeAws_restJson1CreateFormCommandError = async (output, context) =
|
|
|
617
617
|
});
|
|
618
618
|
}
|
|
619
619
|
};
|
|
620
|
-
export const
|
|
620
|
+
export const de_CreateThemeCommand = async (output, context) => {
|
|
621
621
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
622
|
-
return
|
|
622
|
+
return de_CreateThemeCommandError(output, context);
|
|
623
623
|
}
|
|
624
624
|
const contents = map({
|
|
625
625
|
$metadata: deserializeMetadata(output),
|
|
626
626
|
});
|
|
627
627
|
const data = __expectObject(await parseBody(output.body, context));
|
|
628
|
-
contents.entity =
|
|
628
|
+
contents.entity = de_Theme(data, context);
|
|
629
629
|
return contents;
|
|
630
630
|
};
|
|
631
|
-
const
|
|
631
|
+
const de_CreateThemeCommandError = async (output, context) => {
|
|
632
632
|
const parsedOutput = {
|
|
633
633
|
...output,
|
|
634
634
|
body: await parseErrorBody(output.body, context),
|
|
@@ -637,16 +637,16 @@ const deserializeAws_restJson1CreateThemeCommandError = async (output, context)
|
|
|
637
637
|
switch (errorCode) {
|
|
638
638
|
case "InternalServerException":
|
|
639
639
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
640
|
-
throw await
|
|
640
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
641
641
|
case "InvalidParameterException":
|
|
642
642
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
643
|
-
throw await
|
|
643
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
644
644
|
case "ResourceConflictException":
|
|
645
645
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
646
|
-
throw await
|
|
646
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
647
647
|
case "ServiceQuotaExceededException":
|
|
648
648
|
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
|
|
649
|
-
throw await
|
|
649
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
650
650
|
default:
|
|
651
651
|
const parsedBody = parsedOutput.body;
|
|
652
652
|
throwDefaultError({
|
|
@@ -657,9 +657,9 @@ const deserializeAws_restJson1CreateThemeCommandError = async (output, context)
|
|
|
657
657
|
});
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
|
-
export const
|
|
660
|
+
export const de_DeleteComponentCommand = async (output, context) => {
|
|
661
661
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
662
|
-
return
|
|
662
|
+
return de_DeleteComponentCommandError(output, context);
|
|
663
663
|
}
|
|
664
664
|
const contents = map({
|
|
665
665
|
$metadata: deserializeMetadata(output),
|
|
@@ -667,7 +667,7 @@ export const deserializeAws_restJson1DeleteComponentCommand = async (output, con
|
|
|
667
667
|
await collectBody(output.body, context);
|
|
668
668
|
return contents;
|
|
669
669
|
};
|
|
670
|
-
const
|
|
670
|
+
const de_DeleteComponentCommandError = async (output, context) => {
|
|
671
671
|
const parsedOutput = {
|
|
672
672
|
...output,
|
|
673
673
|
body: await parseErrorBody(output.body, context),
|
|
@@ -676,13 +676,13 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
676
676
|
switch (errorCode) {
|
|
677
677
|
case "InternalServerException":
|
|
678
678
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
679
|
-
throw await
|
|
679
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
680
680
|
case "InvalidParameterException":
|
|
681
681
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
682
|
-
throw await
|
|
682
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
683
683
|
case "ResourceNotFoundException":
|
|
684
684
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
685
|
-
throw await
|
|
685
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
686
686
|
default:
|
|
687
687
|
const parsedBody = parsedOutput.body;
|
|
688
688
|
throwDefaultError({
|
|
@@ -693,9 +693,9 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
693
693
|
});
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
|
-
export const
|
|
696
|
+
export const de_DeleteFormCommand = async (output, context) => {
|
|
697
697
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
698
|
-
return
|
|
698
|
+
return de_DeleteFormCommandError(output, context);
|
|
699
699
|
}
|
|
700
700
|
const contents = map({
|
|
701
701
|
$metadata: deserializeMetadata(output),
|
|
@@ -703,7 +703,7 @@ export const deserializeAws_restJson1DeleteFormCommand = async (output, context)
|
|
|
703
703
|
await collectBody(output.body, context);
|
|
704
704
|
return contents;
|
|
705
705
|
};
|
|
706
|
-
const
|
|
706
|
+
const de_DeleteFormCommandError = async (output, context) => {
|
|
707
707
|
const parsedOutput = {
|
|
708
708
|
...output,
|
|
709
709
|
body: await parseErrorBody(output.body, context),
|
|
@@ -712,13 +712,13 @@ const deserializeAws_restJson1DeleteFormCommandError = async (output, context) =
|
|
|
712
712
|
switch (errorCode) {
|
|
713
713
|
case "InternalServerException":
|
|
714
714
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
715
|
-
throw await
|
|
715
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
716
716
|
case "InvalidParameterException":
|
|
717
717
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
718
|
-
throw await
|
|
718
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
719
719
|
case "ResourceNotFoundException":
|
|
720
720
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
721
|
-
throw await
|
|
721
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
722
722
|
default:
|
|
723
723
|
const parsedBody = parsedOutput.body;
|
|
724
724
|
throwDefaultError({
|
|
@@ -729,9 +729,9 @@ const deserializeAws_restJson1DeleteFormCommandError = async (output, context) =
|
|
|
729
729
|
});
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
|
-
export const
|
|
732
|
+
export const de_DeleteThemeCommand = async (output, context) => {
|
|
733
733
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
734
|
-
return
|
|
734
|
+
return de_DeleteThemeCommandError(output, context);
|
|
735
735
|
}
|
|
736
736
|
const contents = map({
|
|
737
737
|
$metadata: deserializeMetadata(output),
|
|
@@ -739,7 +739,7 @@ export const deserializeAws_restJson1DeleteThemeCommand = async (output, context
|
|
|
739
739
|
await collectBody(output.body, context);
|
|
740
740
|
return contents;
|
|
741
741
|
};
|
|
742
|
-
const
|
|
742
|
+
const de_DeleteThemeCommandError = async (output, context) => {
|
|
743
743
|
const parsedOutput = {
|
|
744
744
|
...output,
|
|
745
745
|
body: await parseErrorBody(output.body, context),
|
|
@@ -748,13 +748,13 @@ const deserializeAws_restJson1DeleteThemeCommandError = async (output, context)
|
|
|
748
748
|
switch (errorCode) {
|
|
749
749
|
case "InternalServerException":
|
|
750
750
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
752
752
|
case "InvalidParameterException":
|
|
753
753
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
754
|
-
throw await
|
|
754
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
755
755
|
case "ResourceNotFoundException":
|
|
756
756
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
757
|
-
throw await
|
|
757
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
758
758
|
default:
|
|
759
759
|
const parsedBody = parsedOutput.body;
|
|
760
760
|
throwDefaultError({
|
|
@@ -765,9 +765,9 @@ const deserializeAws_restJson1DeleteThemeCommandError = async (output, context)
|
|
|
765
765
|
});
|
|
766
766
|
}
|
|
767
767
|
};
|
|
768
|
-
export const
|
|
768
|
+
export const de_ExchangeCodeForTokenCommand = async (output, context) => {
|
|
769
769
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
770
|
-
return
|
|
770
|
+
return de_ExchangeCodeForTokenCommandError(output, context);
|
|
771
771
|
}
|
|
772
772
|
const contents = map({
|
|
773
773
|
$metadata: deserializeMetadata(output),
|
|
@@ -784,7 +784,7 @@ export const deserializeAws_restJson1ExchangeCodeForTokenCommand = async (output
|
|
|
784
784
|
}
|
|
785
785
|
return contents;
|
|
786
786
|
};
|
|
787
|
-
const
|
|
787
|
+
const de_ExchangeCodeForTokenCommandError = async (output, context) => {
|
|
788
788
|
const parsedOutput = {
|
|
789
789
|
...output,
|
|
790
790
|
body: await parseErrorBody(output.body, context),
|
|
@@ -793,7 +793,7 @@ const deserializeAws_restJson1ExchangeCodeForTokenCommandError = async (output,
|
|
|
793
793
|
switch (errorCode) {
|
|
794
794
|
case "InvalidParameterException":
|
|
795
795
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
796
|
-
throw await
|
|
796
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
797
797
|
default:
|
|
798
798
|
const parsedBody = parsedOutput.body;
|
|
799
799
|
throwDefaultError({
|
|
@@ -804,23 +804,23 @@ const deserializeAws_restJson1ExchangeCodeForTokenCommandError = async (output,
|
|
|
804
804
|
});
|
|
805
805
|
}
|
|
806
806
|
};
|
|
807
|
-
export const
|
|
807
|
+
export const de_ExportComponentsCommand = async (output, context) => {
|
|
808
808
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
809
|
-
return
|
|
809
|
+
return de_ExportComponentsCommandError(output, context);
|
|
810
810
|
}
|
|
811
811
|
const contents = map({
|
|
812
812
|
$metadata: deserializeMetadata(output),
|
|
813
813
|
});
|
|
814
814
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
815
815
|
if (data.entities != null) {
|
|
816
|
-
contents.entities =
|
|
816
|
+
contents.entities = de_ComponentList(data.entities, context);
|
|
817
817
|
}
|
|
818
818
|
if (data.nextToken != null) {
|
|
819
819
|
contents.nextToken = __expectString(data.nextToken);
|
|
820
820
|
}
|
|
821
821
|
return contents;
|
|
822
822
|
};
|
|
823
|
-
const
|
|
823
|
+
const de_ExportComponentsCommandError = async (output, context) => {
|
|
824
824
|
const parsedOutput = {
|
|
825
825
|
...output,
|
|
826
826
|
body: await parseErrorBody(output.body, context),
|
|
@@ -829,10 +829,10 @@ const deserializeAws_restJson1ExportComponentsCommandError = async (output, cont
|
|
|
829
829
|
switch (errorCode) {
|
|
830
830
|
case "InternalServerException":
|
|
831
831
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
832
|
-
throw await
|
|
832
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
833
833
|
case "InvalidParameterException":
|
|
834
834
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
835
|
-
throw await
|
|
835
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
836
836
|
default:
|
|
837
837
|
const parsedBody = parsedOutput.body;
|
|
838
838
|
throwDefaultError({
|
|
@@ -843,23 +843,23 @@ const deserializeAws_restJson1ExportComponentsCommandError = async (output, cont
|
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
845
|
};
|
|
846
|
-
export const
|
|
846
|
+
export const de_ExportFormsCommand = async (output, context) => {
|
|
847
847
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
848
|
-
return
|
|
848
|
+
return de_ExportFormsCommandError(output, context);
|
|
849
849
|
}
|
|
850
850
|
const contents = map({
|
|
851
851
|
$metadata: deserializeMetadata(output),
|
|
852
852
|
});
|
|
853
853
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
854
854
|
if (data.entities != null) {
|
|
855
|
-
contents.entities =
|
|
855
|
+
contents.entities = de_FormList(data.entities, context);
|
|
856
856
|
}
|
|
857
857
|
if (data.nextToken != null) {
|
|
858
858
|
contents.nextToken = __expectString(data.nextToken);
|
|
859
859
|
}
|
|
860
860
|
return contents;
|
|
861
861
|
};
|
|
862
|
-
const
|
|
862
|
+
const de_ExportFormsCommandError = async (output, context) => {
|
|
863
863
|
const parsedOutput = {
|
|
864
864
|
...output,
|
|
865
865
|
body: await parseErrorBody(output.body, context),
|
|
@@ -868,10 +868,10 @@ const deserializeAws_restJson1ExportFormsCommandError = async (output, context)
|
|
|
868
868
|
switch (errorCode) {
|
|
869
869
|
case "InternalServerException":
|
|
870
870
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
871
|
-
throw await
|
|
871
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
872
872
|
case "InvalidParameterException":
|
|
873
873
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
874
|
-
throw await
|
|
874
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
875
875
|
default:
|
|
876
876
|
const parsedBody = parsedOutput.body;
|
|
877
877
|
throwDefaultError({
|
|
@@ -882,23 +882,23 @@ const deserializeAws_restJson1ExportFormsCommandError = async (output, context)
|
|
|
882
882
|
});
|
|
883
883
|
}
|
|
884
884
|
};
|
|
885
|
-
export const
|
|
885
|
+
export const de_ExportThemesCommand = async (output, context) => {
|
|
886
886
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
887
|
-
return
|
|
887
|
+
return de_ExportThemesCommandError(output, context);
|
|
888
888
|
}
|
|
889
889
|
const contents = map({
|
|
890
890
|
$metadata: deserializeMetadata(output),
|
|
891
891
|
});
|
|
892
892
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
893
893
|
if (data.entities != null) {
|
|
894
|
-
contents.entities =
|
|
894
|
+
contents.entities = de_ThemeList(data.entities, context);
|
|
895
895
|
}
|
|
896
896
|
if (data.nextToken != null) {
|
|
897
897
|
contents.nextToken = __expectString(data.nextToken);
|
|
898
898
|
}
|
|
899
899
|
return contents;
|
|
900
900
|
};
|
|
901
|
-
const
|
|
901
|
+
const de_ExportThemesCommandError = async (output, context) => {
|
|
902
902
|
const parsedOutput = {
|
|
903
903
|
...output,
|
|
904
904
|
body: await parseErrorBody(output.body, context),
|
|
@@ -907,10 +907,10 @@ const deserializeAws_restJson1ExportThemesCommandError = async (output, context)
|
|
|
907
907
|
switch (errorCode) {
|
|
908
908
|
case "InternalServerException":
|
|
909
909
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
910
|
-
throw await
|
|
910
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
911
911
|
case "InvalidParameterException":
|
|
912
912
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
913
|
-
throw await
|
|
913
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
914
914
|
default:
|
|
915
915
|
const parsedBody = parsedOutput.body;
|
|
916
916
|
throwDefaultError({
|
|
@@ -921,18 +921,18 @@ const deserializeAws_restJson1ExportThemesCommandError = async (output, context)
|
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
};
|
|
924
|
-
export const
|
|
924
|
+
export const de_GetComponentCommand = async (output, context) => {
|
|
925
925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
926
|
-
return
|
|
926
|
+
return de_GetComponentCommandError(output, context);
|
|
927
927
|
}
|
|
928
928
|
const contents = map({
|
|
929
929
|
$metadata: deserializeMetadata(output),
|
|
930
930
|
});
|
|
931
931
|
const data = __expectObject(await parseBody(output.body, context));
|
|
932
|
-
contents.component =
|
|
932
|
+
contents.component = de_Component(data, context);
|
|
933
933
|
return contents;
|
|
934
934
|
};
|
|
935
|
-
const
|
|
935
|
+
const de_GetComponentCommandError = async (output, context) => {
|
|
936
936
|
const parsedOutput = {
|
|
937
937
|
...output,
|
|
938
938
|
body: await parseErrorBody(output.body, context),
|
|
@@ -941,13 +941,13 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
941
941
|
switch (errorCode) {
|
|
942
942
|
case "InternalServerException":
|
|
943
943
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
944
|
-
throw await
|
|
944
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
945
945
|
case "InvalidParameterException":
|
|
946
946
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
947
|
-
throw await
|
|
947
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
948
948
|
case "ResourceNotFoundException":
|
|
949
949
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
950
|
-
throw await
|
|
950
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
951
951
|
default:
|
|
952
952
|
const parsedBody = parsedOutput.body;
|
|
953
953
|
throwDefaultError({
|
|
@@ -958,18 +958,18 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
};
|
|
961
|
-
export const
|
|
961
|
+
export const de_GetFormCommand = async (output, context) => {
|
|
962
962
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
963
|
-
return
|
|
963
|
+
return de_GetFormCommandError(output, context);
|
|
964
964
|
}
|
|
965
965
|
const contents = map({
|
|
966
966
|
$metadata: deserializeMetadata(output),
|
|
967
967
|
});
|
|
968
968
|
const data = __expectObject(await parseBody(output.body, context));
|
|
969
|
-
contents.form =
|
|
969
|
+
contents.form = de_Form(data, context);
|
|
970
970
|
return contents;
|
|
971
971
|
};
|
|
972
|
-
const
|
|
972
|
+
const de_GetFormCommandError = async (output, context) => {
|
|
973
973
|
const parsedOutput = {
|
|
974
974
|
...output,
|
|
975
975
|
body: await parseErrorBody(output.body, context),
|
|
@@ -978,13 +978,13 @@ const deserializeAws_restJson1GetFormCommandError = async (output, context) => {
|
|
|
978
978
|
switch (errorCode) {
|
|
979
979
|
case "InternalServerException":
|
|
980
980
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
981
|
-
throw await
|
|
981
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
982
982
|
case "InvalidParameterException":
|
|
983
983
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
984
|
-
throw await
|
|
984
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
985
985
|
case "ResourceNotFoundException":
|
|
986
986
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
987
|
-
throw await
|
|
987
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
988
988
|
default:
|
|
989
989
|
const parsedBody = parsedOutput.body;
|
|
990
990
|
throwDefaultError({
|
|
@@ -995,20 +995,20 @@ const deserializeAws_restJson1GetFormCommandError = async (output, context) => {
|
|
|
995
995
|
});
|
|
996
996
|
}
|
|
997
997
|
};
|
|
998
|
-
export const
|
|
998
|
+
export const de_GetMetadataCommand = async (output, context) => {
|
|
999
999
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1000
|
-
return
|
|
1000
|
+
return de_GetMetadataCommandError(output, context);
|
|
1001
1001
|
}
|
|
1002
1002
|
const contents = map({
|
|
1003
1003
|
$metadata: deserializeMetadata(output),
|
|
1004
1004
|
});
|
|
1005
1005
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1006
1006
|
if (data.features != null) {
|
|
1007
|
-
contents.features =
|
|
1007
|
+
contents.features = de_FeaturesMap(data.features, context);
|
|
1008
1008
|
}
|
|
1009
1009
|
return contents;
|
|
1010
1010
|
};
|
|
1011
|
-
const
|
|
1011
|
+
const de_GetMetadataCommandError = async (output, context) => {
|
|
1012
1012
|
const parsedOutput = {
|
|
1013
1013
|
...output,
|
|
1014
1014
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1017,10 +1017,10 @@ const deserializeAws_restJson1GetMetadataCommandError = async (output, context)
|
|
|
1017
1017
|
switch (errorCode) {
|
|
1018
1018
|
case "InvalidParameterException":
|
|
1019
1019
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1020
|
-
throw await
|
|
1020
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1021
1021
|
case "UnauthorizedException":
|
|
1022
1022
|
case "com.amazonaws.amplifyuibuilder#UnauthorizedException":
|
|
1023
|
-
throw await
|
|
1023
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1024
1024
|
default:
|
|
1025
1025
|
const parsedBody = parsedOutput.body;
|
|
1026
1026
|
throwDefaultError({
|
|
@@ -1031,18 +1031,18 @@ const deserializeAws_restJson1GetMetadataCommandError = async (output, context)
|
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
};
|
|
1034
|
-
export const
|
|
1034
|
+
export const de_GetThemeCommand = async (output, context) => {
|
|
1035
1035
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1036
|
-
return
|
|
1036
|
+
return de_GetThemeCommandError(output, context);
|
|
1037
1037
|
}
|
|
1038
1038
|
const contents = map({
|
|
1039
1039
|
$metadata: deserializeMetadata(output),
|
|
1040
1040
|
});
|
|
1041
1041
|
const data = __expectObject(await parseBody(output.body, context));
|
|
1042
|
-
contents.theme =
|
|
1042
|
+
contents.theme = de_Theme(data, context);
|
|
1043
1043
|
return contents;
|
|
1044
1044
|
};
|
|
1045
|
-
const
|
|
1045
|
+
const de_GetThemeCommandError = async (output, context) => {
|
|
1046
1046
|
const parsedOutput = {
|
|
1047
1047
|
...output,
|
|
1048
1048
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1051,13 +1051,13 @@ const deserializeAws_restJson1GetThemeCommandError = async (output, context) =>
|
|
|
1051
1051
|
switch (errorCode) {
|
|
1052
1052
|
case "InternalServerException":
|
|
1053
1053
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1054
|
-
throw await
|
|
1054
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1055
1055
|
case "InvalidParameterException":
|
|
1056
1056
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1057
|
-
throw await
|
|
1057
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1058
1058
|
case "ResourceNotFoundException":
|
|
1059
1059
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
1060
|
-
throw await
|
|
1060
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1061
1061
|
default:
|
|
1062
1062
|
const parsedBody = parsedOutput.body;
|
|
1063
1063
|
throwDefaultError({
|
|
@@ -1068,23 +1068,23 @@ const deserializeAws_restJson1GetThemeCommandError = async (output, context) =>
|
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
1070
|
};
|
|
1071
|
-
export const
|
|
1071
|
+
export const de_ListComponentsCommand = async (output, context) => {
|
|
1072
1072
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1073
|
-
return
|
|
1073
|
+
return de_ListComponentsCommandError(output, context);
|
|
1074
1074
|
}
|
|
1075
1075
|
const contents = map({
|
|
1076
1076
|
$metadata: deserializeMetadata(output),
|
|
1077
1077
|
});
|
|
1078
1078
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1079
1079
|
if (data.entities != null) {
|
|
1080
|
-
contents.entities =
|
|
1080
|
+
contents.entities = de_ComponentSummaryList(data.entities, context);
|
|
1081
1081
|
}
|
|
1082
1082
|
if (data.nextToken != null) {
|
|
1083
1083
|
contents.nextToken = __expectString(data.nextToken);
|
|
1084
1084
|
}
|
|
1085
1085
|
return contents;
|
|
1086
1086
|
};
|
|
1087
|
-
const
|
|
1087
|
+
const de_ListComponentsCommandError = async (output, context) => {
|
|
1088
1088
|
const parsedOutput = {
|
|
1089
1089
|
...output,
|
|
1090
1090
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1093,10 +1093,10 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
1093
1093
|
switch (errorCode) {
|
|
1094
1094
|
case "InternalServerException":
|
|
1095
1095
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1096
|
-
throw await
|
|
1096
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1097
1097
|
case "InvalidParameterException":
|
|
1098
1098
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1099
|
-
throw await
|
|
1099
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1100
1100
|
default:
|
|
1101
1101
|
const parsedBody = parsedOutput.body;
|
|
1102
1102
|
throwDefaultError({
|
|
@@ -1107,23 +1107,23 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
};
|
|
1110
|
-
export const
|
|
1110
|
+
export const de_ListFormsCommand = async (output, context) => {
|
|
1111
1111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1112
|
-
return
|
|
1112
|
+
return de_ListFormsCommandError(output, context);
|
|
1113
1113
|
}
|
|
1114
1114
|
const contents = map({
|
|
1115
1115
|
$metadata: deserializeMetadata(output),
|
|
1116
1116
|
});
|
|
1117
1117
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1118
1118
|
if (data.entities != null) {
|
|
1119
|
-
contents.entities =
|
|
1119
|
+
contents.entities = de_FormSummaryList(data.entities, context);
|
|
1120
1120
|
}
|
|
1121
1121
|
if (data.nextToken != null) {
|
|
1122
1122
|
contents.nextToken = __expectString(data.nextToken);
|
|
1123
1123
|
}
|
|
1124
1124
|
return contents;
|
|
1125
1125
|
};
|
|
1126
|
-
const
|
|
1126
|
+
const de_ListFormsCommandError = async (output, context) => {
|
|
1127
1127
|
const parsedOutput = {
|
|
1128
1128
|
...output,
|
|
1129
1129
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1132,10 +1132,10 @@ const deserializeAws_restJson1ListFormsCommandError = async (output, context) =>
|
|
|
1132
1132
|
switch (errorCode) {
|
|
1133
1133
|
case "InternalServerException":
|
|
1134
1134
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1135
|
-
throw await
|
|
1135
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1136
1136
|
case "InvalidParameterException":
|
|
1137
1137
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1138
|
-
throw await
|
|
1138
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1139
1139
|
default:
|
|
1140
1140
|
const parsedBody = parsedOutput.body;
|
|
1141
1141
|
throwDefaultError({
|
|
@@ -1146,23 +1146,23 @@ const deserializeAws_restJson1ListFormsCommandError = async (output, context) =>
|
|
|
1146
1146
|
});
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
|
-
export const
|
|
1149
|
+
export const de_ListThemesCommand = async (output, context) => {
|
|
1150
1150
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
|
-
return
|
|
1151
|
+
return de_ListThemesCommandError(output, context);
|
|
1152
1152
|
}
|
|
1153
1153
|
const contents = map({
|
|
1154
1154
|
$metadata: deserializeMetadata(output),
|
|
1155
1155
|
});
|
|
1156
1156
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1157
1157
|
if (data.entities != null) {
|
|
1158
|
-
contents.entities =
|
|
1158
|
+
contents.entities = de_ThemeSummaryList(data.entities, context);
|
|
1159
1159
|
}
|
|
1160
1160
|
if (data.nextToken != null) {
|
|
1161
1161
|
contents.nextToken = __expectString(data.nextToken);
|
|
1162
1162
|
}
|
|
1163
1163
|
return contents;
|
|
1164
1164
|
};
|
|
1165
|
-
const
|
|
1165
|
+
const de_ListThemesCommandError = async (output, context) => {
|
|
1166
1166
|
const parsedOutput = {
|
|
1167
1167
|
...output,
|
|
1168
1168
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1171,10 +1171,10 @@ const deserializeAws_restJson1ListThemesCommandError = async (output, context) =
|
|
|
1171
1171
|
switch (errorCode) {
|
|
1172
1172
|
case "InternalServerException":
|
|
1173
1173
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1174
|
-
throw await
|
|
1174
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1175
1175
|
case "InvalidParameterException":
|
|
1176
1176
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1177
|
-
throw await
|
|
1177
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1178
1178
|
default:
|
|
1179
1179
|
const parsedBody = parsedOutput.body;
|
|
1180
1180
|
throwDefaultError({
|
|
@@ -1185,9 +1185,9 @@ const deserializeAws_restJson1ListThemesCommandError = async (output, context) =
|
|
|
1185
1185
|
});
|
|
1186
1186
|
}
|
|
1187
1187
|
};
|
|
1188
|
-
export const
|
|
1188
|
+
export const de_PutMetadataFlagCommand = async (output, context) => {
|
|
1189
1189
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1190
|
-
return
|
|
1190
|
+
return de_PutMetadataFlagCommandError(output, context);
|
|
1191
1191
|
}
|
|
1192
1192
|
const contents = map({
|
|
1193
1193
|
$metadata: deserializeMetadata(output),
|
|
@@ -1195,7 +1195,7 @@ export const deserializeAws_restJson1PutMetadataFlagCommand = async (output, con
|
|
|
1195
1195
|
await collectBody(output.body, context);
|
|
1196
1196
|
return contents;
|
|
1197
1197
|
};
|
|
1198
|
-
const
|
|
1198
|
+
const de_PutMetadataFlagCommandError = async (output, context) => {
|
|
1199
1199
|
const parsedOutput = {
|
|
1200
1200
|
...output,
|
|
1201
1201
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1204,10 +1204,10 @@ const deserializeAws_restJson1PutMetadataFlagCommandError = async (output, conte
|
|
|
1204
1204
|
switch (errorCode) {
|
|
1205
1205
|
case "InvalidParameterException":
|
|
1206
1206
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1207
|
-
throw await
|
|
1207
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1208
1208
|
case "UnauthorizedException":
|
|
1209
1209
|
case "com.amazonaws.amplifyuibuilder#UnauthorizedException":
|
|
1210
|
-
throw await
|
|
1210
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1211
1211
|
default:
|
|
1212
1212
|
const parsedBody = parsedOutput.body;
|
|
1213
1213
|
throwDefaultError({
|
|
@@ -1218,9 +1218,9 @@ const deserializeAws_restJson1PutMetadataFlagCommandError = async (output, conte
|
|
|
1218
1218
|
});
|
|
1219
1219
|
}
|
|
1220
1220
|
};
|
|
1221
|
-
export const
|
|
1221
|
+
export const de_RefreshTokenCommand = async (output, context) => {
|
|
1222
1222
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1223
|
-
return
|
|
1223
|
+
return de_RefreshTokenCommandError(output, context);
|
|
1224
1224
|
}
|
|
1225
1225
|
const contents = map({
|
|
1226
1226
|
$metadata: deserializeMetadata(output),
|
|
@@ -1234,7 +1234,7 @@ export const deserializeAws_restJson1RefreshTokenCommand = async (output, contex
|
|
|
1234
1234
|
}
|
|
1235
1235
|
return contents;
|
|
1236
1236
|
};
|
|
1237
|
-
const
|
|
1237
|
+
const de_RefreshTokenCommandError = async (output, context) => {
|
|
1238
1238
|
const parsedOutput = {
|
|
1239
1239
|
...output,
|
|
1240
1240
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1243,7 +1243,7 @@ const deserializeAws_restJson1RefreshTokenCommandError = async (output, context)
|
|
|
1243
1243
|
switch (errorCode) {
|
|
1244
1244
|
case "InvalidParameterException":
|
|
1245
1245
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1246
|
-
throw await
|
|
1246
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1247
1247
|
default:
|
|
1248
1248
|
const parsedBody = parsedOutput.body;
|
|
1249
1249
|
throwDefaultError({
|
|
@@ -1254,18 +1254,18 @@ const deserializeAws_restJson1RefreshTokenCommandError = async (output, context)
|
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
1256
|
};
|
|
1257
|
-
export const
|
|
1257
|
+
export const de_UpdateComponentCommand = async (output, context) => {
|
|
1258
1258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1259
|
-
return
|
|
1259
|
+
return de_UpdateComponentCommandError(output, context);
|
|
1260
1260
|
}
|
|
1261
1261
|
const contents = map({
|
|
1262
1262
|
$metadata: deserializeMetadata(output),
|
|
1263
1263
|
});
|
|
1264
1264
|
const data = __expectObject(await parseBody(output.body, context));
|
|
1265
|
-
contents.entity =
|
|
1265
|
+
contents.entity = de_Component(data, context);
|
|
1266
1266
|
return contents;
|
|
1267
1267
|
};
|
|
1268
|
-
const
|
|
1268
|
+
const de_UpdateComponentCommandError = async (output, context) => {
|
|
1269
1269
|
const parsedOutput = {
|
|
1270
1270
|
...output,
|
|
1271
1271
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1274,13 +1274,13 @@ const deserializeAws_restJson1UpdateComponentCommandError = async (output, conte
|
|
|
1274
1274
|
switch (errorCode) {
|
|
1275
1275
|
case "InternalServerException":
|
|
1276
1276
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1277
|
-
throw await
|
|
1277
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1278
1278
|
case "InvalidParameterException":
|
|
1279
1279
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1280
|
-
throw await
|
|
1280
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1281
1281
|
case "ResourceConflictException":
|
|
1282
1282
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
1283
|
-
throw await
|
|
1283
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1284
1284
|
default:
|
|
1285
1285
|
const parsedBody = parsedOutput.body;
|
|
1286
1286
|
throwDefaultError({
|
|
@@ -1291,18 +1291,18 @@ const deserializeAws_restJson1UpdateComponentCommandError = async (output, conte
|
|
|
1291
1291
|
});
|
|
1292
1292
|
}
|
|
1293
1293
|
};
|
|
1294
|
-
export const
|
|
1294
|
+
export const de_UpdateFormCommand = async (output, context) => {
|
|
1295
1295
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
|
-
return
|
|
1296
|
+
return de_UpdateFormCommandError(output, context);
|
|
1297
1297
|
}
|
|
1298
1298
|
const contents = map({
|
|
1299
1299
|
$metadata: deserializeMetadata(output),
|
|
1300
1300
|
});
|
|
1301
1301
|
const data = __expectObject(await parseBody(output.body, context));
|
|
1302
|
-
contents.entity =
|
|
1302
|
+
contents.entity = de_Form(data, context);
|
|
1303
1303
|
return contents;
|
|
1304
1304
|
};
|
|
1305
|
-
const
|
|
1305
|
+
const de_UpdateFormCommandError = async (output, context) => {
|
|
1306
1306
|
const parsedOutput = {
|
|
1307
1307
|
...output,
|
|
1308
1308
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1311,13 +1311,13 @@ const deserializeAws_restJson1UpdateFormCommandError = async (output, context) =
|
|
|
1311
1311
|
switch (errorCode) {
|
|
1312
1312
|
case "InternalServerException":
|
|
1313
1313
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1314
|
-
throw await
|
|
1314
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1315
1315
|
case "InvalidParameterException":
|
|
1316
1316
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1317
|
-
throw await
|
|
1317
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1318
1318
|
case "ResourceConflictException":
|
|
1319
1319
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
1320
|
-
throw await
|
|
1320
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1321
1321
|
default:
|
|
1322
1322
|
const parsedBody = parsedOutput.body;
|
|
1323
1323
|
throwDefaultError({
|
|
@@ -1328,18 +1328,18 @@ const deserializeAws_restJson1UpdateFormCommandError = async (output, context) =
|
|
|
1328
1328
|
});
|
|
1329
1329
|
}
|
|
1330
1330
|
};
|
|
1331
|
-
export const
|
|
1331
|
+
export const de_UpdateThemeCommand = async (output, context) => {
|
|
1332
1332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1333
|
-
return
|
|
1333
|
+
return de_UpdateThemeCommandError(output, context);
|
|
1334
1334
|
}
|
|
1335
1335
|
const contents = map({
|
|
1336
1336
|
$metadata: deserializeMetadata(output),
|
|
1337
1337
|
});
|
|
1338
1338
|
const data = __expectObject(await parseBody(output.body, context));
|
|
1339
|
-
contents.entity =
|
|
1339
|
+
contents.entity = de_Theme(data, context);
|
|
1340
1340
|
return contents;
|
|
1341
1341
|
};
|
|
1342
|
-
const
|
|
1342
|
+
const de_UpdateThemeCommandError = async (output, context) => {
|
|
1343
1343
|
const parsedOutput = {
|
|
1344
1344
|
...output,
|
|
1345
1345
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1348,13 +1348,13 @@ const deserializeAws_restJson1UpdateThemeCommandError = async (output, context)
|
|
|
1348
1348
|
switch (errorCode) {
|
|
1349
1349
|
case "InternalServerException":
|
|
1350
1350
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1351
|
-
throw await
|
|
1351
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1352
1352
|
case "InvalidParameterException":
|
|
1353
1353
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1354
|
-
throw await
|
|
1354
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1355
1355
|
case "ResourceConflictException":
|
|
1356
1356
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
1357
|
-
throw await
|
|
1357
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1358
1358
|
default:
|
|
1359
1359
|
const parsedBody = parsedOutput.body;
|
|
1360
1360
|
throwDefaultError({
|
|
@@ -1366,7 +1366,7 @@ const deserializeAws_restJson1UpdateThemeCommandError = async (output, context)
|
|
|
1366
1366
|
}
|
|
1367
1367
|
};
|
|
1368
1368
|
const map = __map;
|
|
1369
|
-
const
|
|
1369
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1370
1370
|
const contents = map({});
|
|
1371
1371
|
const data = parsedOutput.body;
|
|
1372
1372
|
if (data.message != null) {
|
|
@@ -1378,7 +1378,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1378
1378
|
});
|
|
1379
1379
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1380
1380
|
};
|
|
1381
|
-
const
|
|
1381
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1382
1382
|
const contents = map({});
|
|
1383
1383
|
const data = parsedOutput.body;
|
|
1384
1384
|
if (data.message != null) {
|
|
@@ -1390,7 +1390,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
1390
1390
|
});
|
|
1391
1391
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1392
1392
|
};
|
|
1393
|
-
const
|
|
1393
|
+
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
1394
1394
|
const contents = map({});
|
|
1395
1395
|
const data = parsedOutput.body;
|
|
1396
1396
|
if (data.message != null) {
|
|
@@ -1402,7 +1402,7 @@ const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedO
|
|
|
1402
1402
|
});
|
|
1403
1403
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1404
1404
|
};
|
|
1405
|
-
const
|
|
1405
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1406
1406
|
const contents = map({});
|
|
1407
1407
|
const data = parsedOutput.body;
|
|
1408
1408
|
if (data.message != null) {
|
|
@@ -1414,7 +1414,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1414
1414
|
});
|
|
1415
1415
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1416
1416
|
};
|
|
1417
|
-
const
|
|
1417
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1418
1418
|
const contents = map({});
|
|
1419
1419
|
const data = parsedOutput.body;
|
|
1420
1420
|
if (data.message != null) {
|
|
@@ -1426,7 +1426,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1426
1426
|
});
|
|
1427
1427
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1428
1428
|
};
|
|
1429
|
-
const
|
|
1429
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1430
1430
|
const contents = map({});
|
|
1431
1431
|
const data = parsedOutput.body;
|
|
1432
1432
|
if (data.message != null) {
|
|
@@ -1438,122 +1438,120 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1438
1438
|
});
|
|
1439
1439
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1440
1440
|
};
|
|
1441
|
-
const
|
|
1441
|
+
const se_ActionParameters = (input, context) => {
|
|
1442
1442
|
return {
|
|
1443
|
-
...(input.anchor != null && { anchor:
|
|
1444
|
-
...(input.fields != null && { fields:
|
|
1445
|
-
...(input.global != null && { global:
|
|
1446
|
-
...(input.id != null && { id:
|
|
1443
|
+
...(input.anchor != null && { anchor: se_ComponentProperty(input.anchor, context) }),
|
|
1444
|
+
...(input.fields != null && { fields: se_ComponentProperties(input.fields, context) }),
|
|
1445
|
+
...(input.global != null && { global: se_ComponentProperty(input.global, context) }),
|
|
1446
|
+
...(input.id != null && { id: se_ComponentProperty(input.id, context) }),
|
|
1447
1447
|
...(input.model != null && { model: input.model }),
|
|
1448
|
-
...(input.state != null && { state:
|
|
1449
|
-
...(input.target != null && { target:
|
|
1450
|
-
...(input.type != null && { type:
|
|
1451
|
-
...(input.url != null && { url:
|
|
1448
|
+
...(input.state != null && { state: se_MutationActionSetStateParameter(input.state, context) }),
|
|
1449
|
+
...(input.target != null && { target: se_ComponentProperty(input.target, context) }),
|
|
1450
|
+
...(input.type != null && { type: se_ComponentProperty(input.type, context) }),
|
|
1451
|
+
...(input.url != null && { url: se_ComponentProperty(input.url, context) }),
|
|
1452
1452
|
};
|
|
1453
1453
|
};
|
|
1454
|
-
const
|
|
1454
|
+
const se_ComponentBindingProperties = (input, context) => {
|
|
1455
1455
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1456
1456
|
if (value === null) {
|
|
1457
1457
|
return acc;
|
|
1458
1458
|
}
|
|
1459
|
-
acc[key] =
|
|
1459
|
+
acc[key] = se_ComponentBindingPropertiesValue(value, context);
|
|
1460
1460
|
return acc;
|
|
1461
1461
|
}, {});
|
|
1462
1462
|
};
|
|
1463
|
-
const
|
|
1463
|
+
const se_ComponentBindingPropertiesValue = (input, context) => {
|
|
1464
1464
|
return {
|
|
1465
1465
|
...(input.bindingProperties != null && {
|
|
1466
|
-
bindingProperties:
|
|
1466
|
+
bindingProperties: se_ComponentBindingPropertiesValueProperties(input.bindingProperties, context),
|
|
1467
1467
|
}),
|
|
1468
1468
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1469
1469
|
...(input.type != null && { type: input.type }),
|
|
1470
1470
|
};
|
|
1471
1471
|
};
|
|
1472
|
-
const
|
|
1472
|
+
const se_ComponentBindingPropertiesValueProperties = (input, context) => {
|
|
1473
1473
|
return {
|
|
1474
1474
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
1475
1475
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1476
1476
|
...(input.field != null && { field: input.field }),
|
|
1477
1477
|
...(input.key != null && { key: input.key }),
|
|
1478
1478
|
...(input.model != null && { model: input.model }),
|
|
1479
|
-
...(input.predicates != null && { predicates:
|
|
1479
|
+
...(input.predicates != null && { predicates: se_PredicateList(input.predicates, context) }),
|
|
1480
1480
|
...(input.slotName != null && { slotName: input.slotName }),
|
|
1481
1481
|
...(input.userAttribute != null && { userAttribute: input.userAttribute }),
|
|
1482
1482
|
};
|
|
1483
1483
|
};
|
|
1484
|
-
const
|
|
1484
|
+
const se_ComponentChild = (input, context) => {
|
|
1485
1485
|
return {
|
|
1486
|
-
...(input.children != null && { children:
|
|
1486
|
+
...(input.children != null && { children: se_ComponentChildList(input.children, context) }),
|
|
1487
1487
|
...(input.componentType != null && { componentType: input.componentType }),
|
|
1488
|
-
...(input.events != null && { events:
|
|
1488
|
+
...(input.events != null && { events: se_ComponentEvents(input.events, context) }),
|
|
1489
1489
|
...(input.name != null && { name: input.name }),
|
|
1490
|
-
...(input.properties != null && {
|
|
1491
|
-
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1492
|
-
}),
|
|
1490
|
+
...(input.properties != null && { properties: se_ComponentProperties(input.properties, context) }),
|
|
1493
1491
|
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
1494
1492
|
};
|
|
1495
1493
|
};
|
|
1496
|
-
const
|
|
1494
|
+
const se_ComponentChildList = (input, context) => {
|
|
1497
1495
|
return input
|
|
1498
1496
|
.filter((e) => e != null)
|
|
1499
1497
|
.map((entry) => {
|
|
1500
|
-
return
|
|
1498
|
+
return se_ComponentChild(entry, context);
|
|
1501
1499
|
});
|
|
1502
1500
|
};
|
|
1503
|
-
const
|
|
1501
|
+
const se_ComponentCollectionProperties = (input, context) => {
|
|
1504
1502
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1505
1503
|
if (value === null) {
|
|
1506
1504
|
return acc;
|
|
1507
1505
|
}
|
|
1508
|
-
acc[key] =
|
|
1506
|
+
acc[key] = se_ComponentDataConfiguration(value, context);
|
|
1509
1507
|
return acc;
|
|
1510
1508
|
}, {});
|
|
1511
1509
|
};
|
|
1512
|
-
const
|
|
1510
|
+
const se_ComponentConditionProperty = (input, context) => {
|
|
1513
1511
|
return {
|
|
1514
|
-
...(input.else != null && { else:
|
|
1512
|
+
...(input.else != null && { else: se_ComponentProperty(input.else, context) }),
|
|
1515
1513
|
...(input.field != null && { field: input.field }),
|
|
1516
1514
|
...(input.operand != null && { operand: input.operand }),
|
|
1517
1515
|
...(input.operandType != null && { operandType: input.operandType }),
|
|
1518
1516
|
...(input.operator != null && { operator: input.operator }),
|
|
1519
1517
|
...(input.property != null && { property: input.property }),
|
|
1520
|
-
...(input.then != null && { then:
|
|
1518
|
+
...(input.then != null && { then: se_ComponentProperty(input.then, context) }),
|
|
1521
1519
|
};
|
|
1522
1520
|
};
|
|
1523
|
-
const
|
|
1521
|
+
const se_ComponentDataConfiguration = (input, context) => {
|
|
1524
1522
|
return {
|
|
1525
|
-
...(input.identifiers != null && { identifiers:
|
|
1523
|
+
...(input.identifiers != null && { identifiers: se_IdentifierList(input.identifiers, context) }),
|
|
1526
1524
|
...(input.model != null && { model: input.model }),
|
|
1527
|
-
...(input.predicate != null && { predicate:
|
|
1528
|
-
...(input.sort != null && { sort:
|
|
1525
|
+
...(input.predicate != null && { predicate: se_Predicate(input.predicate, context) }),
|
|
1526
|
+
...(input.sort != null && { sort: se_SortPropertyList(input.sort, context) }),
|
|
1529
1527
|
};
|
|
1530
1528
|
};
|
|
1531
|
-
const
|
|
1529
|
+
const se_ComponentEvent = (input, context) => {
|
|
1532
1530
|
return {
|
|
1533
1531
|
...(input.action != null && { action: input.action }),
|
|
1534
1532
|
...(input.bindingEvent != null && { bindingEvent: input.bindingEvent }),
|
|
1535
|
-
...(input.parameters != null && { parameters:
|
|
1533
|
+
...(input.parameters != null && { parameters: se_ActionParameters(input.parameters, context) }),
|
|
1536
1534
|
};
|
|
1537
1535
|
};
|
|
1538
|
-
const
|
|
1536
|
+
const se_ComponentEvents = (input, context) => {
|
|
1539
1537
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1540
1538
|
if (value === null) {
|
|
1541
1539
|
return acc;
|
|
1542
1540
|
}
|
|
1543
|
-
acc[key] =
|
|
1541
|
+
acc[key] = se_ComponentEvent(value, context);
|
|
1544
1542
|
return acc;
|
|
1545
1543
|
}, {});
|
|
1546
1544
|
};
|
|
1547
|
-
const
|
|
1545
|
+
const se_ComponentOverrides = (input, context) => {
|
|
1548
1546
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1549
1547
|
if (value === null) {
|
|
1550
1548
|
return acc;
|
|
1551
1549
|
}
|
|
1552
|
-
acc[key] =
|
|
1550
|
+
acc[key] = se_ComponentOverridesValue(value, context);
|
|
1553
1551
|
return acc;
|
|
1554
1552
|
}, {});
|
|
1555
1553
|
};
|
|
1556
|
-
const
|
|
1554
|
+
const se_ComponentOverridesValue = (input, context) => {
|
|
1557
1555
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1558
1556
|
if (value === null) {
|
|
1559
1557
|
return acc;
|
|
@@ -1562,29 +1560,27 @@ const serializeAws_restJson1ComponentOverridesValue = (input, context) => {
|
|
|
1562
1560
|
return acc;
|
|
1563
1561
|
}, {});
|
|
1564
1562
|
};
|
|
1565
|
-
const
|
|
1563
|
+
const se_ComponentProperties = (input, context) => {
|
|
1566
1564
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1567
1565
|
if (value === null) {
|
|
1568
1566
|
return acc;
|
|
1569
1567
|
}
|
|
1570
|
-
acc[key] =
|
|
1568
|
+
acc[key] = se_ComponentProperty(value, context);
|
|
1571
1569
|
return acc;
|
|
1572
1570
|
}, {});
|
|
1573
1571
|
};
|
|
1574
|
-
const
|
|
1572
|
+
const se_ComponentProperty = (input, context) => {
|
|
1575
1573
|
return {
|
|
1576
1574
|
...(input.bindingProperties != null && {
|
|
1577
|
-
bindingProperties:
|
|
1575
|
+
bindingProperties: se_ComponentPropertyBindingProperties(input.bindingProperties, context),
|
|
1578
1576
|
}),
|
|
1579
|
-
...(input.bindings != null && { bindings:
|
|
1577
|
+
...(input.bindings != null && { bindings: se_FormBindings(input.bindings, context) }),
|
|
1580
1578
|
...(input.collectionBindingProperties != null && {
|
|
1581
|
-
collectionBindingProperties:
|
|
1579
|
+
collectionBindingProperties: se_ComponentPropertyBindingProperties(input.collectionBindingProperties, context),
|
|
1582
1580
|
}),
|
|
1583
1581
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
1584
|
-
...(input.concat != null && { concat:
|
|
1585
|
-
...(input.condition != null && {
|
|
1586
|
-
condition: serializeAws_restJson1ComponentConditionProperty(input.condition, context),
|
|
1587
|
-
}),
|
|
1582
|
+
...(input.concat != null && { concat: se_ComponentPropertyList(input.concat, context) }),
|
|
1583
|
+
...(input.condition != null && { condition: se_ComponentConditionProperty(input.condition, context) }),
|
|
1588
1584
|
...(input.configured != null && { configured: input.configured }),
|
|
1589
1585
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1590
1586
|
...(input.event != null && { event: input.event }),
|
|
@@ -1596,35 +1592,33 @@ const serializeAws_restJson1ComponentProperty = (input, context) => {
|
|
|
1596
1592
|
...(input.value != null && { value: input.value }),
|
|
1597
1593
|
};
|
|
1598
1594
|
};
|
|
1599
|
-
const
|
|
1595
|
+
const se_ComponentPropertyBindingProperties = (input, context) => {
|
|
1600
1596
|
return {
|
|
1601
1597
|
...(input.field != null && { field: input.field }),
|
|
1602
1598
|
...(input.property != null && { property: input.property }),
|
|
1603
1599
|
};
|
|
1604
1600
|
};
|
|
1605
|
-
const
|
|
1601
|
+
const se_ComponentPropertyList = (input, context) => {
|
|
1606
1602
|
return input
|
|
1607
1603
|
.filter((e) => e != null)
|
|
1608
1604
|
.map((entry) => {
|
|
1609
|
-
return
|
|
1605
|
+
return se_ComponentProperty(entry, context);
|
|
1610
1606
|
});
|
|
1611
1607
|
};
|
|
1612
|
-
const
|
|
1608
|
+
const se_ComponentVariant = (input, context) => {
|
|
1613
1609
|
return {
|
|
1614
|
-
...(input.overrides != null && { overrides:
|
|
1615
|
-
...(input.variantValues != null && {
|
|
1616
|
-
variantValues: serializeAws_restJson1ComponentVariantValues(input.variantValues, context),
|
|
1617
|
-
}),
|
|
1610
|
+
...(input.overrides != null && { overrides: se_ComponentOverrides(input.overrides, context) }),
|
|
1611
|
+
...(input.variantValues != null && { variantValues: se_ComponentVariantValues(input.variantValues, context) }),
|
|
1618
1612
|
};
|
|
1619
1613
|
};
|
|
1620
|
-
const
|
|
1614
|
+
const se_ComponentVariants = (input, context) => {
|
|
1621
1615
|
return input
|
|
1622
1616
|
.filter((e) => e != null)
|
|
1623
1617
|
.map((entry) => {
|
|
1624
|
-
return
|
|
1618
|
+
return se_ComponentVariant(entry, context);
|
|
1625
1619
|
});
|
|
1626
1620
|
};
|
|
1627
|
-
const
|
|
1621
|
+
const se_ComponentVariantValues = (input, context) => {
|
|
1628
1622
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1629
1623
|
if (value === null) {
|
|
1630
1624
|
return acc;
|
|
@@ -1633,74 +1627,75 @@ const serializeAws_restJson1ComponentVariantValues = (input, context) => {
|
|
|
1633
1627
|
return acc;
|
|
1634
1628
|
}, {});
|
|
1635
1629
|
};
|
|
1636
|
-
const
|
|
1630
|
+
const se_CreateComponentData = (input, context) => {
|
|
1637
1631
|
return {
|
|
1638
1632
|
...(input.bindingProperties != null && {
|
|
1639
|
-
bindingProperties:
|
|
1633
|
+
bindingProperties: se_ComponentBindingProperties(input.bindingProperties, context),
|
|
1640
1634
|
}),
|
|
1641
|
-
...(input.children != null && { children:
|
|
1635
|
+
...(input.children != null && { children: se_ComponentChildList(input.children, context) }),
|
|
1642
1636
|
...(input.collectionProperties != null && {
|
|
1643
|
-
collectionProperties:
|
|
1637
|
+
collectionProperties: se_ComponentCollectionProperties(input.collectionProperties, context),
|
|
1644
1638
|
}),
|
|
1645
1639
|
...(input.componentType != null && { componentType: input.componentType }),
|
|
1646
|
-
...(input.events != null && { events:
|
|
1640
|
+
...(input.events != null && { events: se_ComponentEvents(input.events, context) }),
|
|
1647
1641
|
...(input.name != null && { name: input.name }),
|
|
1648
|
-
...(input.overrides != null && { overrides:
|
|
1649
|
-
...(input.properties != null && {
|
|
1650
|
-
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1651
|
-
}),
|
|
1642
|
+
...(input.overrides != null && { overrides: se_ComponentOverrides(input.overrides, context) }),
|
|
1643
|
+
...(input.properties != null && { properties: se_ComponentProperties(input.properties, context) }),
|
|
1652
1644
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1653
1645
|
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
1654
|
-
...(input.tags != null && { tags:
|
|
1655
|
-
...(input.variants != null && { variants:
|
|
1646
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1647
|
+
...(input.variants != null && { variants: se_ComponentVariants(input.variants, context) }),
|
|
1656
1648
|
};
|
|
1657
1649
|
};
|
|
1658
|
-
const
|
|
1650
|
+
const se_CreateFormData = (input, context) => {
|
|
1659
1651
|
return {
|
|
1660
|
-
...(input.cta != null && { cta:
|
|
1661
|
-
...(input.dataType != null && { dataType:
|
|
1662
|
-
...(input.fields != null && { fields:
|
|
1652
|
+
...(input.cta != null && { cta: se_FormCTA(input.cta, context) }),
|
|
1653
|
+
...(input.dataType != null && { dataType: se_FormDataTypeConfig(input.dataType, context) }),
|
|
1654
|
+
...(input.fields != null && { fields: se_FieldsMap(input.fields, context) }),
|
|
1663
1655
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
1656
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1664
1657
|
...(input.name != null && { name: input.name }),
|
|
1665
1658
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1666
1659
|
...(input.sectionalElements != null && {
|
|
1667
|
-
sectionalElements:
|
|
1660
|
+
sectionalElements: se_SectionalElementMap(input.sectionalElements, context),
|
|
1668
1661
|
}),
|
|
1669
|
-
...(input.style != null && { style:
|
|
1670
|
-
...(input.tags != null && { tags:
|
|
1662
|
+
...(input.style != null && { style: se_FormStyle(input.style, context) }),
|
|
1663
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1671
1664
|
};
|
|
1672
1665
|
};
|
|
1673
|
-
const
|
|
1666
|
+
const se_CreateThemeData = (input, context) => {
|
|
1674
1667
|
return {
|
|
1675
1668
|
...(input.name != null && { name: input.name }),
|
|
1676
|
-
...(input.overrides != null && { overrides:
|
|
1677
|
-
...(input.tags != null && { tags:
|
|
1678
|
-
...(input.values != null && { values:
|
|
1669
|
+
...(input.overrides != null && { overrides: se_ThemeValuesList(input.overrides, context) }),
|
|
1670
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1671
|
+
...(input.values != null && { values: se_ThemeValuesList(input.values, context) }),
|
|
1679
1672
|
};
|
|
1680
1673
|
};
|
|
1681
|
-
const
|
|
1674
|
+
const se_ExchangeCodeForTokenRequestBody = (input, context) => {
|
|
1682
1675
|
return {
|
|
1676
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1683
1677
|
...(input.code != null && { code: input.code }),
|
|
1684
1678
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
1685
1679
|
};
|
|
1686
1680
|
};
|
|
1687
|
-
const
|
|
1681
|
+
const se_FieldConfig = (input, context) => {
|
|
1688
1682
|
return {
|
|
1689
1683
|
...(input.excluded != null && { excluded: input.excluded }),
|
|
1690
|
-
...(input.inputType != null && { inputType:
|
|
1684
|
+
...(input.inputType != null && { inputType: se_FieldInputConfig(input.inputType, context) }),
|
|
1691
1685
|
...(input.label != null && { label: input.label }),
|
|
1692
|
-
...(input.position != null && { position:
|
|
1693
|
-
...(input.validations != null && {
|
|
1694
|
-
validations: serializeAws_restJson1ValidationsList(input.validations, context),
|
|
1695
|
-
}),
|
|
1686
|
+
...(input.position != null && { position: se_FieldPosition(input.position, context) }),
|
|
1687
|
+
...(input.validations != null && { validations: se_ValidationsList(input.validations, context) }),
|
|
1696
1688
|
};
|
|
1697
1689
|
};
|
|
1698
|
-
const
|
|
1690
|
+
const se_FieldInputConfig = (input, context) => {
|
|
1699
1691
|
return {
|
|
1700
1692
|
...(input.defaultChecked != null && { defaultChecked: input.defaultChecked }),
|
|
1701
1693
|
...(input.defaultCountryCode != null && { defaultCountryCode: input.defaultCountryCode }),
|
|
1702
1694
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1703
1695
|
...(input.descriptiveText != null && { descriptiveText: input.descriptiveText }),
|
|
1696
|
+
...(input.fileUploaderConfig != null && {
|
|
1697
|
+
fileUploaderConfig: se_FileUploaderFieldConfig(input.fileUploaderConfig, context),
|
|
1698
|
+
}),
|
|
1704
1699
|
...(input.isArray != null && { isArray: input.isArray }),
|
|
1705
1700
|
...(input.maxValue != null && { maxValue: __serializeFloat(input.maxValue) }),
|
|
1706
1701
|
...(input.minValue != null && { minValue: __serializeFloat(input.minValue) }),
|
|
@@ -1711,12 +1706,10 @@ const serializeAws_restJson1FieldInputConfig = (input, context) => {
|
|
|
1711
1706
|
...(input.step != null && { step: __serializeFloat(input.step) }),
|
|
1712
1707
|
...(input.type != null && { type: input.type }),
|
|
1713
1708
|
...(input.value != null && { value: input.value }),
|
|
1714
|
-
...(input.valueMappings != null && {
|
|
1715
|
-
valueMappings: serializeAws_restJson1ValueMappings(input.valueMappings, context),
|
|
1716
|
-
}),
|
|
1709
|
+
...(input.valueMappings != null && { valueMappings: se_ValueMappings(input.valueMappings, context) }),
|
|
1717
1710
|
};
|
|
1718
1711
|
};
|
|
1719
|
-
const
|
|
1712
|
+
const se_FieldPosition = (input, context) => {
|
|
1720
1713
|
return FieldPosition.visit(input, {
|
|
1721
1714
|
below: (value) => ({ below: value }),
|
|
1722
1715
|
fixed: (value) => ({ fixed: value }),
|
|
@@ -1724,170 +1717,216 @@ const serializeAws_restJson1FieldPosition = (input, context) => {
|
|
|
1724
1717
|
_: (name, value) => ({ name: value }),
|
|
1725
1718
|
});
|
|
1726
1719
|
};
|
|
1727
|
-
const
|
|
1720
|
+
const se_FieldsMap = (input, context) => {
|
|
1728
1721
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1729
1722
|
if (value === null) {
|
|
1730
1723
|
return acc;
|
|
1731
1724
|
}
|
|
1732
|
-
acc[key] =
|
|
1725
|
+
acc[key] = se_FieldConfig(value, context);
|
|
1733
1726
|
return acc;
|
|
1734
1727
|
}, {});
|
|
1735
1728
|
};
|
|
1736
|
-
const
|
|
1729
|
+
const se_FieldValidationConfiguration = (input, context) => {
|
|
1737
1730
|
return {
|
|
1738
|
-
...(input.numValues != null && { numValues:
|
|
1739
|
-
...(input.strValues != null && { strValues:
|
|
1731
|
+
...(input.numValues != null && { numValues: se_NumValues(input.numValues, context) }),
|
|
1732
|
+
...(input.strValues != null && { strValues: se_StrValues(input.strValues, context) }),
|
|
1740
1733
|
...(input.type != null && { type: input.type }),
|
|
1741
1734
|
...(input.validationMessage != null && { validationMessage: input.validationMessage }),
|
|
1742
1735
|
};
|
|
1743
1736
|
};
|
|
1744
|
-
const
|
|
1737
|
+
const se_FileUploaderFieldConfig = (input, context) => {
|
|
1738
|
+
return {
|
|
1739
|
+
...(input.acceptedFileTypes != null && { acceptedFileTypes: se_StrValues(input.acceptedFileTypes, context) }),
|
|
1740
|
+
...(input.accessLevel != null && { accessLevel: input.accessLevel }),
|
|
1741
|
+
...(input.isResumable != null && { isResumable: input.isResumable }),
|
|
1742
|
+
...(input.maxFileCount != null && { maxFileCount: input.maxFileCount }),
|
|
1743
|
+
...(input.maxSize != null && { maxSize: input.maxSize }),
|
|
1744
|
+
...(input.showThumbnails != null && { showThumbnails: input.showThumbnails }),
|
|
1745
|
+
};
|
|
1746
|
+
};
|
|
1747
|
+
const se_FormBindingElement = (input, context) => {
|
|
1745
1748
|
return {
|
|
1746
1749
|
...(input.element != null && { element: input.element }),
|
|
1747
1750
|
...(input.property != null && { property: input.property }),
|
|
1748
1751
|
};
|
|
1749
1752
|
};
|
|
1750
|
-
const
|
|
1753
|
+
const se_FormBindings = (input, context) => {
|
|
1751
1754
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1752
1755
|
if (value === null) {
|
|
1753
1756
|
return acc;
|
|
1754
1757
|
}
|
|
1755
|
-
acc[key] =
|
|
1758
|
+
acc[key] = se_FormBindingElement(value, context);
|
|
1756
1759
|
return acc;
|
|
1757
1760
|
}, {});
|
|
1758
1761
|
};
|
|
1759
|
-
const
|
|
1762
|
+
const se_FormButton = (input, context) => {
|
|
1760
1763
|
return {
|
|
1761
1764
|
...(input.children != null && { children: input.children }),
|
|
1762
1765
|
...(input.excluded != null && { excluded: input.excluded }),
|
|
1763
|
-
...(input.position != null && { position:
|
|
1766
|
+
...(input.position != null && { position: se_FieldPosition(input.position, context) }),
|
|
1764
1767
|
};
|
|
1765
1768
|
};
|
|
1766
|
-
const
|
|
1769
|
+
const se_FormCTA = (input, context) => {
|
|
1767
1770
|
return {
|
|
1768
|
-
...(input.cancel != null && { cancel:
|
|
1769
|
-
...(input.clear != null && { clear:
|
|
1771
|
+
...(input.cancel != null && { cancel: se_FormButton(input.cancel, context) }),
|
|
1772
|
+
...(input.clear != null && { clear: se_FormButton(input.clear, context) }),
|
|
1770
1773
|
...(input.position != null && { position: input.position }),
|
|
1771
|
-
...(input.submit != null && { submit:
|
|
1774
|
+
...(input.submit != null && { submit: se_FormButton(input.submit, context) }),
|
|
1772
1775
|
};
|
|
1773
1776
|
};
|
|
1774
|
-
const
|
|
1777
|
+
const se_FormDataTypeConfig = (input, context) => {
|
|
1775
1778
|
return {
|
|
1776
1779
|
...(input.dataSourceType != null && { dataSourceType: input.dataSourceType }),
|
|
1777
1780
|
...(input.dataTypeName != null && { dataTypeName: input.dataTypeName }),
|
|
1778
1781
|
};
|
|
1779
1782
|
};
|
|
1780
|
-
const
|
|
1783
|
+
const se_FormInputBindingProperties = (input, context) => {
|
|
1784
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1785
|
+
if (value === null) {
|
|
1786
|
+
return acc;
|
|
1787
|
+
}
|
|
1788
|
+
acc[key] = se_FormInputBindingPropertiesValue(value, context);
|
|
1789
|
+
return acc;
|
|
1790
|
+
}, {});
|
|
1791
|
+
};
|
|
1792
|
+
const se_FormInputBindingPropertiesValue = (input, context) => {
|
|
1781
1793
|
return {
|
|
1782
|
-
...(input.
|
|
1794
|
+
...(input.bindingProperties != null && {
|
|
1795
|
+
bindingProperties: se_FormInputBindingPropertiesValueProperties(input.bindingProperties, context),
|
|
1796
|
+
}),
|
|
1797
|
+
...(input.type != null && { type: input.type }),
|
|
1783
1798
|
};
|
|
1784
1799
|
};
|
|
1785
|
-
const
|
|
1800
|
+
const se_FormInputBindingPropertiesValueProperties = (input, context) => {
|
|
1786
1801
|
return {
|
|
1787
|
-
...(input.
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
verticalGap: serializeAws_restJson1FormStyleConfig(input.verticalGap, context),
|
|
1802
|
+
...(input.model != null && { model: input.model }),
|
|
1803
|
+
};
|
|
1804
|
+
};
|
|
1805
|
+
const se_FormInputValueProperty = (input, context) => {
|
|
1806
|
+
return {
|
|
1807
|
+
...(input.bindingProperties != null && {
|
|
1808
|
+
bindingProperties: se_FormInputValuePropertyBindingProperties(input.bindingProperties, context),
|
|
1795
1809
|
}),
|
|
1810
|
+
...(input.concat != null && { concat: se_FormInputValuePropertyList(input.concat, context) }),
|
|
1811
|
+
...(input.value != null && { value: input.value }),
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
const se_FormInputValuePropertyBindingProperties = (input, context) => {
|
|
1815
|
+
return {
|
|
1816
|
+
...(input.field != null && { field: input.field }),
|
|
1817
|
+
...(input.property != null && { property: input.property }),
|
|
1818
|
+
};
|
|
1819
|
+
};
|
|
1820
|
+
const se_FormInputValuePropertyList = (input, context) => {
|
|
1821
|
+
return input
|
|
1822
|
+
.filter((e) => e != null)
|
|
1823
|
+
.map((entry) => {
|
|
1824
|
+
return se_FormInputValueProperty(entry, context);
|
|
1825
|
+
});
|
|
1826
|
+
};
|
|
1827
|
+
const se_FormStyle = (input, context) => {
|
|
1828
|
+
return {
|
|
1829
|
+
...(input.horizontalGap != null && { horizontalGap: se_FormStyleConfig(input.horizontalGap, context) }),
|
|
1830
|
+
...(input.outerPadding != null && { outerPadding: se_FormStyleConfig(input.outerPadding, context) }),
|
|
1831
|
+
...(input.verticalGap != null && { verticalGap: se_FormStyleConfig(input.verticalGap, context) }),
|
|
1796
1832
|
};
|
|
1797
1833
|
};
|
|
1798
|
-
const
|
|
1834
|
+
const se_FormStyleConfig = (input, context) => {
|
|
1799
1835
|
return FormStyleConfig.visit(input, {
|
|
1800
1836
|
tokenReference: (value) => ({ tokenReference: value }),
|
|
1801
1837
|
value: (value) => ({ value: value }),
|
|
1802
1838
|
_: (name, value) => ({ name: value }),
|
|
1803
1839
|
});
|
|
1804
1840
|
};
|
|
1805
|
-
const
|
|
1841
|
+
const se_IdentifierList = (input, context) => {
|
|
1806
1842
|
return input
|
|
1807
1843
|
.filter((e) => e != null)
|
|
1808
1844
|
.map((entry) => {
|
|
1809
1845
|
return entry;
|
|
1810
1846
|
});
|
|
1811
1847
|
};
|
|
1812
|
-
const
|
|
1848
|
+
const se_MutationActionSetStateParameter = (input, context) => {
|
|
1813
1849
|
return {
|
|
1814
1850
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
1815
1851
|
...(input.property != null && { property: input.property }),
|
|
1816
|
-
...(input.set != null && { set:
|
|
1852
|
+
...(input.set != null && { set: se_ComponentProperty(input.set, context) }),
|
|
1817
1853
|
};
|
|
1818
1854
|
};
|
|
1819
|
-
const
|
|
1855
|
+
const se_NumValues = (input, context) => {
|
|
1820
1856
|
return input
|
|
1821
1857
|
.filter((e) => e != null)
|
|
1822
1858
|
.map((entry) => {
|
|
1823
1859
|
return entry;
|
|
1824
1860
|
});
|
|
1825
1861
|
};
|
|
1826
|
-
const
|
|
1862
|
+
const se_Predicate = (input, context) => {
|
|
1827
1863
|
return {
|
|
1828
|
-
...(input.and != null && { and:
|
|
1864
|
+
...(input.and != null && { and: se_PredicateList(input.and, context) }),
|
|
1829
1865
|
...(input.field != null && { field: input.field }),
|
|
1830
1866
|
...(input.operand != null && { operand: input.operand }),
|
|
1867
|
+
...(input.operandType != null && { operandType: input.operandType }),
|
|
1831
1868
|
...(input.operator != null && { operator: input.operator }),
|
|
1832
|
-
...(input.or != null && { or:
|
|
1869
|
+
...(input.or != null && { or: se_PredicateList(input.or, context) }),
|
|
1833
1870
|
};
|
|
1834
1871
|
};
|
|
1835
|
-
const
|
|
1872
|
+
const se_PredicateList = (input, context) => {
|
|
1836
1873
|
return input
|
|
1837
1874
|
.filter((e) => e != null)
|
|
1838
1875
|
.map((entry) => {
|
|
1839
|
-
return
|
|
1876
|
+
return se_Predicate(entry, context);
|
|
1840
1877
|
});
|
|
1841
1878
|
};
|
|
1842
|
-
const
|
|
1879
|
+
const se_PutMetadataFlagBody = (input, context) => {
|
|
1843
1880
|
return {
|
|
1844
1881
|
...(input.newValue != null && { newValue: input.newValue }),
|
|
1845
1882
|
};
|
|
1846
1883
|
};
|
|
1847
|
-
const
|
|
1884
|
+
const se_RefreshTokenRequestBody = (input, context) => {
|
|
1848
1885
|
return {
|
|
1886
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1849
1887
|
...(input.token != null && { token: input.token }),
|
|
1850
1888
|
};
|
|
1851
1889
|
};
|
|
1852
|
-
const
|
|
1890
|
+
const se_SectionalElement = (input, context) => {
|
|
1853
1891
|
return {
|
|
1892
|
+
...(input.excluded != null && { excluded: input.excluded }),
|
|
1854
1893
|
...(input.level != null && { level: input.level }),
|
|
1855
1894
|
...(input.orientation != null && { orientation: input.orientation }),
|
|
1856
|
-
...(input.position != null && { position:
|
|
1895
|
+
...(input.position != null && { position: se_FieldPosition(input.position, context) }),
|
|
1857
1896
|
...(input.text != null && { text: input.text }),
|
|
1858
1897
|
...(input.type != null && { type: input.type }),
|
|
1859
1898
|
};
|
|
1860
1899
|
};
|
|
1861
|
-
const
|
|
1900
|
+
const se_SectionalElementMap = (input, context) => {
|
|
1862
1901
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1863
1902
|
if (value === null) {
|
|
1864
1903
|
return acc;
|
|
1865
1904
|
}
|
|
1866
|
-
acc[key] =
|
|
1905
|
+
acc[key] = se_SectionalElement(value, context);
|
|
1867
1906
|
return acc;
|
|
1868
1907
|
}, {});
|
|
1869
1908
|
};
|
|
1870
|
-
const
|
|
1909
|
+
const se_SortProperty = (input, context) => {
|
|
1871
1910
|
return {
|
|
1872
1911
|
...(input.direction != null && { direction: input.direction }),
|
|
1873
1912
|
...(input.field != null && { field: input.field }),
|
|
1874
1913
|
};
|
|
1875
1914
|
};
|
|
1876
|
-
const
|
|
1915
|
+
const se_SortPropertyList = (input, context) => {
|
|
1877
1916
|
return input
|
|
1878
1917
|
.filter((e) => e != null)
|
|
1879
1918
|
.map((entry) => {
|
|
1880
|
-
return
|
|
1919
|
+
return se_SortProperty(entry, context);
|
|
1881
1920
|
});
|
|
1882
1921
|
};
|
|
1883
|
-
const
|
|
1922
|
+
const se_StrValues = (input, context) => {
|
|
1884
1923
|
return input
|
|
1885
1924
|
.filter((e) => e != null)
|
|
1886
1925
|
.map((entry) => {
|
|
1887
1926
|
return entry;
|
|
1888
1927
|
});
|
|
1889
1928
|
};
|
|
1890
|
-
const
|
|
1929
|
+
const se_Tags = (input, context) => {
|
|
1891
1930
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1892
1931
|
if (value === null) {
|
|
1893
1932
|
return acc;
|
|
@@ -1896,250 +1935,248 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1896
1935
|
return acc;
|
|
1897
1936
|
}, {});
|
|
1898
1937
|
};
|
|
1899
|
-
const
|
|
1938
|
+
const se_ThemeValue = (input, context) => {
|
|
1900
1939
|
return {
|
|
1901
|
-
...(input.children != null && { children:
|
|
1940
|
+
...(input.children != null && { children: se_ThemeValuesList(input.children, context) }),
|
|
1902
1941
|
...(input.value != null && { value: input.value }),
|
|
1903
1942
|
};
|
|
1904
1943
|
};
|
|
1905
|
-
const
|
|
1944
|
+
const se_ThemeValues = (input, context) => {
|
|
1906
1945
|
return {
|
|
1907
1946
|
...(input.key != null && { key: input.key }),
|
|
1908
|
-
...(input.value != null && { value:
|
|
1947
|
+
...(input.value != null && { value: se_ThemeValue(input.value, context) }),
|
|
1909
1948
|
};
|
|
1910
1949
|
};
|
|
1911
|
-
const
|
|
1950
|
+
const se_ThemeValuesList = (input, context) => {
|
|
1912
1951
|
return input
|
|
1913
1952
|
.filter((e) => e != null)
|
|
1914
1953
|
.map((entry) => {
|
|
1915
|
-
return
|
|
1954
|
+
return se_ThemeValues(entry, context);
|
|
1916
1955
|
});
|
|
1917
1956
|
};
|
|
1918
|
-
const
|
|
1957
|
+
const se_UpdateComponentData = (input, context) => {
|
|
1919
1958
|
return {
|
|
1920
1959
|
...(input.bindingProperties != null && {
|
|
1921
|
-
bindingProperties:
|
|
1960
|
+
bindingProperties: se_ComponentBindingProperties(input.bindingProperties, context),
|
|
1922
1961
|
}),
|
|
1923
|
-
...(input.children != null && { children:
|
|
1962
|
+
...(input.children != null && { children: se_ComponentChildList(input.children, context) }),
|
|
1924
1963
|
...(input.collectionProperties != null && {
|
|
1925
|
-
collectionProperties:
|
|
1964
|
+
collectionProperties: se_ComponentCollectionProperties(input.collectionProperties, context),
|
|
1926
1965
|
}),
|
|
1927
1966
|
...(input.componentType != null && { componentType: input.componentType }),
|
|
1928
|
-
...(input.events != null && { events:
|
|
1967
|
+
...(input.events != null && { events: se_ComponentEvents(input.events, context) }),
|
|
1929
1968
|
...(input.id != null && { id: input.id }),
|
|
1930
1969
|
...(input.name != null && { name: input.name }),
|
|
1931
|
-
...(input.overrides != null && { overrides:
|
|
1932
|
-
...(input.properties != null && {
|
|
1933
|
-
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1934
|
-
}),
|
|
1970
|
+
...(input.overrides != null && { overrides: se_ComponentOverrides(input.overrides, context) }),
|
|
1971
|
+
...(input.properties != null && { properties: se_ComponentProperties(input.properties, context) }),
|
|
1935
1972
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1936
1973
|
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
1937
|
-
...(input.variants != null && { variants:
|
|
1974
|
+
...(input.variants != null && { variants: se_ComponentVariants(input.variants, context) }),
|
|
1938
1975
|
};
|
|
1939
1976
|
};
|
|
1940
|
-
const
|
|
1977
|
+
const se_UpdateFormData = (input, context) => {
|
|
1941
1978
|
return {
|
|
1942
|
-
...(input.cta != null && { cta:
|
|
1943
|
-
...(input.dataType != null && { dataType:
|
|
1944
|
-
...(input.fields != null && { fields:
|
|
1979
|
+
...(input.cta != null && { cta: se_FormCTA(input.cta, context) }),
|
|
1980
|
+
...(input.dataType != null && { dataType: se_FormDataTypeConfig(input.dataType, context) }),
|
|
1981
|
+
...(input.fields != null && { fields: se_FieldsMap(input.fields, context) }),
|
|
1945
1982
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
1983
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1946
1984
|
...(input.name != null && { name: input.name }),
|
|
1947
1985
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1948
1986
|
...(input.sectionalElements != null && {
|
|
1949
|
-
sectionalElements:
|
|
1987
|
+
sectionalElements: se_SectionalElementMap(input.sectionalElements, context),
|
|
1950
1988
|
}),
|
|
1951
|
-
...(input.style != null && { style:
|
|
1989
|
+
...(input.style != null && { style: se_FormStyle(input.style, context) }),
|
|
1952
1990
|
};
|
|
1953
1991
|
};
|
|
1954
|
-
const
|
|
1992
|
+
const se_UpdateThemeData = (input, context) => {
|
|
1955
1993
|
return {
|
|
1956
1994
|
...(input.id != null && { id: input.id }),
|
|
1957
1995
|
...(input.name != null && { name: input.name }),
|
|
1958
|
-
...(input.overrides != null && { overrides:
|
|
1959
|
-
...(input.values != null && { values:
|
|
1996
|
+
...(input.overrides != null && { overrides: se_ThemeValuesList(input.overrides, context) }),
|
|
1997
|
+
...(input.values != null && { values: se_ThemeValuesList(input.values, context) }),
|
|
1960
1998
|
};
|
|
1961
1999
|
};
|
|
1962
|
-
const
|
|
2000
|
+
const se_ValidationsList = (input, context) => {
|
|
1963
2001
|
return input
|
|
1964
2002
|
.filter((e) => e != null)
|
|
1965
2003
|
.map((entry) => {
|
|
1966
|
-
return
|
|
2004
|
+
return se_FieldValidationConfiguration(entry, context);
|
|
1967
2005
|
});
|
|
1968
2006
|
};
|
|
1969
|
-
const
|
|
2007
|
+
const se_ValueMapping = (input, context) => {
|
|
1970
2008
|
return {
|
|
1971
|
-
...(input.displayValue != null && {
|
|
1972
|
-
|
|
1973
|
-
}),
|
|
1974
|
-
...(input.value != null && { value: serializeAws_restJson1FormInputValueProperty(input.value, context) }),
|
|
2009
|
+
...(input.displayValue != null && { displayValue: se_FormInputValueProperty(input.displayValue, context) }),
|
|
2010
|
+
...(input.value != null && { value: se_FormInputValueProperty(input.value, context) }),
|
|
1975
2011
|
};
|
|
1976
2012
|
};
|
|
1977
|
-
const
|
|
2013
|
+
const se_ValueMappingList = (input, context) => {
|
|
1978
2014
|
return input
|
|
1979
2015
|
.filter((e) => e != null)
|
|
1980
2016
|
.map((entry) => {
|
|
1981
|
-
return
|
|
2017
|
+
return se_ValueMapping(entry, context);
|
|
1982
2018
|
});
|
|
1983
2019
|
};
|
|
1984
|
-
const
|
|
2020
|
+
const se_ValueMappings = (input, context) => {
|
|
1985
2021
|
return {
|
|
1986
|
-
...(input.
|
|
2022
|
+
...(input.bindingProperties != null && {
|
|
2023
|
+
bindingProperties: se_FormInputBindingProperties(input.bindingProperties, context),
|
|
2024
|
+
}),
|
|
2025
|
+
...(input.values != null && { values: se_ValueMappingList(input.values, context) }),
|
|
1987
2026
|
};
|
|
1988
2027
|
};
|
|
1989
|
-
const
|
|
2028
|
+
const de_ActionParameters = (output, context) => {
|
|
1990
2029
|
return {
|
|
1991
|
-
anchor: output.anchor != null ?
|
|
1992
|
-
fields: output.fields != null ?
|
|
1993
|
-
global: output.global != null ?
|
|
1994
|
-
id: output.id != null ?
|
|
2030
|
+
anchor: output.anchor != null ? de_ComponentProperty(output.anchor, context) : undefined,
|
|
2031
|
+
fields: output.fields != null ? de_ComponentProperties(output.fields, context) : undefined,
|
|
2032
|
+
global: output.global != null ? de_ComponentProperty(output.global, context) : undefined,
|
|
2033
|
+
id: output.id != null ? de_ComponentProperty(output.id, context) : undefined,
|
|
1995
2034
|
model: __expectString(output.model),
|
|
1996
|
-
state: output.state != null ?
|
|
1997
|
-
target: output.target != null ?
|
|
1998
|
-
type: output.type != null ?
|
|
1999
|
-
url: output.url != null ?
|
|
2035
|
+
state: output.state != null ? de_MutationActionSetStateParameter(output.state, context) : undefined,
|
|
2036
|
+
target: output.target != null ? de_ComponentProperty(output.target, context) : undefined,
|
|
2037
|
+
type: output.type != null ? de_ComponentProperty(output.type, context) : undefined,
|
|
2038
|
+
url: output.url != null ? de_ComponentProperty(output.url, context) : undefined,
|
|
2000
2039
|
};
|
|
2001
2040
|
};
|
|
2002
|
-
const
|
|
2041
|
+
const de_Component = (output, context) => {
|
|
2003
2042
|
return {
|
|
2004
2043
|
appId: __expectString(output.appId),
|
|
2005
|
-
bindingProperties: output.bindingProperties != null
|
|
2006
|
-
|
|
2007
|
-
: undefined,
|
|
2008
|
-
children: output.children != null ? deserializeAws_restJson1ComponentChildList(output.children, context) : undefined,
|
|
2044
|
+
bindingProperties: output.bindingProperties != null ? de_ComponentBindingProperties(output.bindingProperties, context) : undefined,
|
|
2045
|
+
children: output.children != null ? de_ComponentChildList(output.children, context) : undefined,
|
|
2009
2046
|
collectionProperties: output.collectionProperties != null
|
|
2010
|
-
?
|
|
2047
|
+
? de_ComponentCollectionProperties(output.collectionProperties, context)
|
|
2011
2048
|
: undefined,
|
|
2012
2049
|
componentType: __expectString(output.componentType),
|
|
2013
2050
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
2014
2051
|
environmentName: __expectString(output.environmentName),
|
|
2015
|
-
events: output.events != null ?
|
|
2052
|
+
events: output.events != null ? de_ComponentEvents(output.events, context) : undefined,
|
|
2016
2053
|
id: __expectString(output.id),
|
|
2017
2054
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.modifiedAt)) : undefined,
|
|
2018
2055
|
name: __expectString(output.name),
|
|
2019
|
-
overrides: output.overrides != null ?
|
|
2020
|
-
properties: output.properties != null ?
|
|
2056
|
+
overrides: output.overrides != null ? de_ComponentOverrides(output.overrides, context) : undefined,
|
|
2057
|
+
properties: output.properties != null ? de_ComponentProperties(output.properties, context) : undefined,
|
|
2021
2058
|
schemaVersion: __expectString(output.schemaVersion),
|
|
2022
2059
|
sourceId: __expectString(output.sourceId),
|
|
2023
|
-
tags: output.tags != null ?
|
|
2024
|
-
variants: output.variants != null ?
|
|
2060
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2061
|
+
variants: output.variants != null ? de_ComponentVariants(output.variants, context) : undefined,
|
|
2025
2062
|
};
|
|
2026
2063
|
};
|
|
2027
|
-
const
|
|
2064
|
+
const de_ComponentBindingProperties = (output, context) => {
|
|
2028
2065
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2029
2066
|
if (value === null) {
|
|
2030
2067
|
return acc;
|
|
2031
2068
|
}
|
|
2032
|
-
acc[key] =
|
|
2069
|
+
acc[key] = de_ComponentBindingPropertiesValue(value, context);
|
|
2033
2070
|
return acc;
|
|
2034
2071
|
}, {});
|
|
2035
2072
|
};
|
|
2036
|
-
const
|
|
2073
|
+
const de_ComponentBindingPropertiesValue = (output, context) => {
|
|
2037
2074
|
return {
|
|
2038
2075
|
bindingProperties: output.bindingProperties != null
|
|
2039
|
-
?
|
|
2076
|
+
? de_ComponentBindingPropertiesValueProperties(output.bindingProperties, context)
|
|
2040
2077
|
: undefined,
|
|
2041
2078
|
defaultValue: __expectString(output.defaultValue),
|
|
2042
2079
|
type: __expectString(output.type),
|
|
2043
2080
|
};
|
|
2044
2081
|
};
|
|
2045
|
-
const
|
|
2082
|
+
const de_ComponentBindingPropertiesValueProperties = (output, context) => {
|
|
2046
2083
|
return {
|
|
2047
2084
|
bucket: __expectString(output.bucket),
|
|
2048
2085
|
defaultValue: __expectString(output.defaultValue),
|
|
2049
2086
|
field: __expectString(output.field),
|
|
2050
2087
|
key: __expectString(output.key),
|
|
2051
2088
|
model: __expectString(output.model),
|
|
2052
|
-
predicates: output.predicates != null ?
|
|
2089
|
+
predicates: output.predicates != null ? de_PredicateList(output.predicates, context) : undefined,
|
|
2053
2090
|
slotName: __expectString(output.slotName),
|
|
2054
2091
|
userAttribute: __expectString(output.userAttribute),
|
|
2055
2092
|
};
|
|
2056
2093
|
};
|
|
2057
|
-
const
|
|
2094
|
+
const de_ComponentChild = (output, context) => {
|
|
2058
2095
|
return {
|
|
2059
|
-
children: output.children != null ?
|
|
2096
|
+
children: output.children != null ? de_ComponentChildList(output.children, context) : undefined,
|
|
2060
2097
|
componentType: __expectString(output.componentType),
|
|
2061
|
-
events: output.events != null ?
|
|
2098
|
+
events: output.events != null ? de_ComponentEvents(output.events, context) : undefined,
|
|
2062
2099
|
name: __expectString(output.name),
|
|
2063
|
-
properties: output.properties != null ?
|
|
2100
|
+
properties: output.properties != null ? de_ComponentProperties(output.properties, context) : undefined,
|
|
2064
2101
|
sourceId: __expectString(output.sourceId),
|
|
2065
2102
|
};
|
|
2066
2103
|
};
|
|
2067
|
-
const
|
|
2104
|
+
const de_ComponentChildList = (output, context) => {
|
|
2068
2105
|
const retVal = (output || [])
|
|
2069
2106
|
.filter((e) => e != null)
|
|
2070
2107
|
.map((entry) => {
|
|
2071
2108
|
if (entry === null) {
|
|
2072
2109
|
return null;
|
|
2073
2110
|
}
|
|
2074
|
-
return
|
|
2111
|
+
return de_ComponentChild(entry, context);
|
|
2075
2112
|
});
|
|
2076
2113
|
return retVal;
|
|
2077
2114
|
};
|
|
2078
|
-
const
|
|
2115
|
+
const de_ComponentCollectionProperties = (output, context) => {
|
|
2079
2116
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2080
2117
|
if (value === null) {
|
|
2081
2118
|
return acc;
|
|
2082
2119
|
}
|
|
2083
|
-
acc[key] =
|
|
2120
|
+
acc[key] = de_ComponentDataConfiguration(value, context);
|
|
2084
2121
|
return acc;
|
|
2085
2122
|
}, {});
|
|
2086
2123
|
};
|
|
2087
|
-
const
|
|
2124
|
+
const de_ComponentConditionProperty = (output, context) => {
|
|
2088
2125
|
return {
|
|
2089
|
-
else: output.else != null ?
|
|
2126
|
+
else: output.else != null ? de_ComponentProperty(output.else, context) : undefined,
|
|
2090
2127
|
field: __expectString(output.field),
|
|
2091
2128
|
operand: __expectString(output.operand),
|
|
2092
2129
|
operandType: __expectString(output.operandType),
|
|
2093
2130
|
operator: __expectString(output.operator),
|
|
2094
2131
|
property: __expectString(output.property),
|
|
2095
|
-
then: output.then != null ?
|
|
2132
|
+
then: output.then != null ? de_ComponentProperty(output.then, context) : undefined,
|
|
2096
2133
|
};
|
|
2097
2134
|
};
|
|
2098
|
-
const
|
|
2135
|
+
const de_ComponentDataConfiguration = (output, context) => {
|
|
2099
2136
|
return {
|
|
2100
|
-
identifiers: output.identifiers != null ?
|
|
2137
|
+
identifiers: output.identifiers != null ? de_IdentifierList(output.identifiers, context) : undefined,
|
|
2101
2138
|
model: __expectString(output.model),
|
|
2102
|
-
predicate: output.predicate != null ?
|
|
2103
|
-
sort: output.sort != null ?
|
|
2139
|
+
predicate: output.predicate != null ? de_Predicate(output.predicate, context) : undefined,
|
|
2140
|
+
sort: output.sort != null ? de_SortPropertyList(output.sort, context) : undefined,
|
|
2104
2141
|
};
|
|
2105
2142
|
};
|
|
2106
|
-
const
|
|
2143
|
+
const de_ComponentEvent = (output, context) => {
|
|
2107
2144
|
return {
|
|
2108
2145
|
action: __expectString(output.action),
|
|
2109
2146
|
bindingEvent: __expectString(output.bindingEvent),
|
|
2110
|
-
parameters: output.parameters != null ?
|
|
2147
|
+
parameters: output.parameters != null ? de_ActionParameters(output.parameters, context) : undefined,
|
|
2111
2148
|
};
|
|
2112
2149
|
};
|
|
2113
|
-
const
|
|
2150
|
+
const de_ComponentEvents = (output, context) => {
|
|
2114
2151
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2115
2152
|
if (value === null) {
|
|
2116
2153
|
return acc;
|
|
2117
2154
|
}
|
|
2118
|
-
acc[key] =
|
|
2155
|
+
acc[key] = de_ComponentEvent(value, context);
|
|
2119
2156
|
return acc;
|
|
2120
2157
|
}, {});
|
|
2121
2158
|
};
|
|
2122
|
-
const
|
|
2159
|
+
const de_ComponentList = (output, context) => {
|
|
2123
2160
|
const retVal = (output || [])
|
|
2124
2161
|
.filter((e) => e != null)
|
|
2125
2162
|
.map((entry) => {
|
|
2126
2163
|
if (entry === null) {
|
|
2127
2164
|
return null;
|
|
2128
2165
|
}
|
|
2129
|
-
return
|
|
2166
|
+
return de_Component(entry, context);
|
|
2130
2167
|
});
|
|
2131
2168
|
return retVal;
|
|
2132
2169
|
};
|
|
2133
|
-
const
|
|
2170
|
+
const de_ComponentOverrides = (output, context) => {
|
|
2134
2171
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2135
2172
|
if (value === null) {
|
|
2136
2173
|
return acc;
|
|
2137
2174
|
}
|
|
2138
|
-
acc[key] =
|
|
2175
|
+
acc[key] = de_ComponentOverridesValue(value, context);
|
|
2139
2176
|
return acc;
|
|
2140
2177
|
}, {});
|
|
2141
2178
|
};
|
|
2142
|
-
const
|
|
2179
|
+
const de_ComponentOverridesValue = (output, context) => {
|
|
2143
2180
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2144
2181
|
if (value === null) {
|
|
2145
2182
|
return acc;
|
|
@@ -2148,29 +2185,27 @@ const deserializeAws_restJson1ComponentOverridesValue = (output, context) => {
|
|
|
2148
2185
|
return acc;
|
|
2149
2186
|
}, {});
|
|
2150
2187
|
};
|
|
2151
|
-
const
|
|
2188
|
+
const de_ComponentProperties = (output, context) => {
|
|
2152
2189
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2153
2190
|
if (value === null) {
|
|
2154
2191
|
return acc;
|
|
2155
2192
|
}
|
|
2156
|
-
acc[key] =
|
|
2193
|
+
acc[key] = de_ComponentProperty(value, context);
|
|
2157
2194
|
return acc;
|
|
2158
2195
|
}, {});
|
|
2159
2196
|
};
|
|
2160
|
-
const
|
|
2197
|
+
const de_ComponentProperty = (output, context) => {
|
|
2161
2198
|
return {
|
|
2162
2199
|
bindingProperties: output.bindingProperties != null
|
|
2163
|
-
?
|
|
2200
|
+
? de_ComponentPropertyBindingProperties(output.bindingProperties, context)
|
|
2164
2201
|
: undefined,
|
|
2165
|
-
bindings: output.bindings != null ?
|
|
2202
|
+
bindings: output.bindings != null ? de_FormBindings(output.bindings, context) : undefined,
|
|
2166
2203
|
collectionBindingProperties: output.collectionBindingProperties != null
|
|
2167
|
-
?
|
|
2204
|
+
? de_ComponentPropertyBindingProperties(output.collectionBindingProperties, context)
|
|
2168
2205
|
: undefined,
|
|
2169
2206
|
componentName: __expectString(output.componentName),
|
|
2170
|
-
concat: output.concat != null ?
|
|
2171
|
-
condition: output.condition != null
|
|
2172
|
-
? deserializeAws_restJson1ComponentConditionProperty(output.condition, context)
|
|
2173
|
-
: undefined,
|
|
2207
|
+
concat: output.concat != null ? de_ComponentPropertyList(output.concat, context) : undefined,
|
|
2208
|
+
condition: output.condition != null ? de_ComponentConditionProperty(output.condition, context) : undefined,
|
|
2174
2209
|
configured: __expectBoolean(output.configured),
|
|
2175
2210
|
defaultValue: __expectString(output.defaultValue),
|
|
2176
2211
|
event: __expectString(output.event),
|
|
@@ -2182,24 +2217,24 @@ const deserializeAws_restJson1ComponentProperty = (output, context) => {
|
|
|
2182
2217
|
value: __expectString(output.value),
|
|
2183
2218
|
};
|
|
2184
2219
|
};
|
|
2185
|
-
const
|
|
2220
|
+
const de_ComponentPropertyBindingProperties = (output, context) => {
|
|
2186
2221
|
return {
|
|
2187
2222
|
field: __expectString(output.field),
|
|
2188
2223
|
property: __expectString(output.property),
|
|
2189
2224
|
};
|
|
2190
2225
|
};
|
|
2191
|
-
const
|
|
2226
|
+
const de_ComponentPropertyList = (output, context) => {
|
|
2192
2227
|
const retVal = (output || [])
|
|
2193
2228
|
.filter((e) => e != null)
|
|
2194
2229
|
.map((entry) => {
|
|
2195
2230
|
if (entry === null) {
|
|
2196
2231
|
return null;
|
|
2197
2232
|
}
|
|
2198
|
-
return
|
|
2233
|
+
return de_ComponentProperty(entry, context);
|
|
2199
2234
|
});
|
|
2200
2235
|
return retVal;
|
|
2201
2236
|
};
|
|
2202
|
-
const
|
|
2237
|
+
const de_ComponentSummary = (output, context) => {
|
|
2203
2238
|
return {
|
|
2204
2239
|
appId: __expectString(output.appId),
|
|
2205
2240
|
componentType: __expectString(output.componentType),
|
|
@@ -2208,37 +2243,35 @@ const deserializeAws_restJson1ComponentSummary = (output, context) => {
|
|
|
2208
2243
|
name: __expectString(output.name),
|
|
2209
2244
|
};
|
|
2210
2245
|
};
|
|
2211
|
-
const
|
|
2246
|
+
const de_ComponentSummaryList = (output, context) => {
|
|
2212
2247
|
const retVal = (output || [])
|
|
2213
2248
|
.filter((e) => e != null)
|
|
2214
2249
|
.map((entry) => {
|
|
2215
2250
|
if (entry === null) {
|
|
2216
2251
|
return null;
|
|
2217
2252
|
}
|
|
2218
|
-
return
|
|
2253
|
+
return de_ComponentSummary(entry, context);
|
|
2219
2254
|
});
|
|
2220
2255
|
return retVal;
|
|
2221
2256
|
};
|
|
2222
|
-
const
|
|
2257
|
+
const de_ComponentVariant = (output, context) => {
|
|
2223
2258
|
return {
|
|
2224
|
-
overrides: output.overrides != null ?
|
|
2225
|
-
variantValues: output.variantValues != null
|
|
2226
|
-
? deserializeAws_restJson1ComponentVariantValues(output.variantValues, context)
|
|
2227
|
-
: undefined,
|
|
2259
|
+
overrides: output.overrides != null ? de_ComponentOverrides(output.overrides, context) : undefined,
|
|
2260
|
+
variantValues: output.variantValues != null ? de_ComponentVariantValues(output.variantValues, context) : undefined,
|
|
2228
2261
|
};
|
|
2229
2262
|
};
|
|
2230
|
-
const
|
|
2263
|
+
const de_ComponentVariants = (output, context) => {
|
|
2231
2264
|
const retVal = (output || [])
|
|
2232
2265
|
.filter((e) => e != null)
|
|
2233
2266
|
.map((entry) => {
|
|
2234
2267
|
if (entry === null) {
|
|
2235
2268
|
return null;
|
|
2236
2269
|
}
|
|
2237
|
-
return
|
|
2270
|
+
return de_ComponentVariant(entry, context);
|
|
2238
2271
|
});
|
|
2239
2272
|
return retVal;
|
|
2240
2273
|
};
|
|
2241
|
-
const
|
|
2274
|
+
const de_ComponentVariantValues = (output, context) => {
|
|
2242
2275
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2243
2276
|
if (value === null) {
|
|
2244
2277
|
return acc;
|
|
@@ -2247,7 +2280,7 @@ const deserializeAws_restJson1ComponentVariantValues = (output, context) => {
|
|
|
2247
2280
|
return acc;
|
|
2248
2281
|
}, {});
|
|
2249
2282
|
};
|
|
2250
|
-
const
|
|
2283
|
+
const de_FeaturesMap = (output, context) => {
|
|
2251
2284
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2252
2285
|
if (value === null) {
|
|
2253
2286
|
return acc;
|
|
@@ -2256,23 +2289,22 @@ const deserializeAws_restJson1FeaturesMap = (output, context) => {
|
|
|
2256
2289
|
return acc;
|
|
2257
2290
|
}, {});
|
|
2258
2291
|
};
|
|
2259
|
-
const
|
|
2292
|
+
const de_FieldConfig = (output, context) => {
|
|
2260
2293
|
return {
|
|
2261
2294
|
excluded: __expectBoolean(output.excluded),
|
|
2262
|
-
inputType: output.inputType != null ?
|
|
2295
|
+
inputType: output.inputType != null ? de_FieldInputConfig(output.inputType, context) : undefined,
|
|
2263
2296
|
label: __expectString(output.label),
|
|
2264
|
-
position: output.position != null
|
|
2265
|
-
|
|
2266
|
-
: undefined,
|
|
2267
|
-
validations: output.validations != null ? deserializeAws_restJson1ValidationsList(output.validations, context) : undefined,
|
|
2297
|
+
position: output.position != null ? de_FieldPosition(__expectUnion(output.position), context) : undefined,
|
|
2298
|
+
validations: output.validations != null ? de_ValidationsList(output.validations, context) : undefined,
|
|
2268
2299
|
};
|
|
2269
2300
|
};
|
|
2270
|
-
const
|
|
2301
|
+
const de_FieldInputConfig = (output, context) => {
|
|
2271
2302
|
return {
|
|
2272
2303
|
defaultChecked: __expectBoolean(output.defaultChecked),
|
|
2273
2304
|
defaultCountryCode: __expectString(output.defaultCountryCode),
|
|
2274
2305
|
defaultValue: __expectString(output.defaultValue),
|
|
2275
2306
|
descriptiveText: __expectString(output.descriptiveText),
|
|
2307
|
+
fileUploaderConfig: output.fileUploaderConfig != null ? de_FileUploaderFieldConfig(output.fileUploaderConfig, context) : undefined,
|
|
2276
2308
|
isArray: __expectBoolean(output.isArray),
|
|
2277
2309
|
maxValue: __limitedParseFloat32(output.maxValue),
|
|
2278
2310
|
minValue: __limitedParseFloat32(output.minValue),
|
|
@@ -2283,10 +2315,10 @@ const deserializeAws_restJson1FieldInputConfig = (output, context) => {
|
|
|
2283
2315
|
step: __limitedParseFloat32(output.step),
|
|
2284
2316
|
type: __expectString(output.type),
|
|
2285
2317
|
value: __expectString(output.value),
|
|
2286
|
-
valueMappings: output.valueMappings != null ?
|
|
2318
|
+
valueMappings: output.valueMappings != null ? de_ValueMappings(output.valueMappings, context) : undefined,
|
|
2287
2319
|
};
|
|
2288
2320
|
};
|
|
2289
|
-
const
|
|
2321
|
+
const de_FieldPosition = (output, context) => {
|
|
2290
2322
|
if (__expectString(output.below) !== undefined) {
|
|
2291
2323
|
return { below: __expectString(output.below) };
|
|
2292
2324
|
}
|
|
@@ -2298,109 +2330,153 @@ const deserializeAws_restJson1FieldPosition = (output, context) => {
|
|
|
2298
2330
|
}
|
|
2299
2331
|
return { $unknown: Object.entries(output)[0] };
|
|
2300
2332
|
};
|
|
2301
|
-
const
|
|
2333
|
+
const de_FieldsMap = (output, context) => {
|
|
2302
2334
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2303
2335
|
if (value === null) {
|
|
2304
2336
|
return acc;
|
|
2305
2337
|
}
|
|
2306
|
-
acc[key] =
|
|
2338
|
+
acc[key] = de_FieldConfig(value, context);
|
|
2307
2339
|
return acc;
|
|
2308
2340
|
}, {});
|
|
2309
2341
|
};
|
|
2310
|
-
const
|
|
2342
|
+
const de_FieldValidationConfiguration = (output, context) => {
|
|
2311
2343
|
return {
|
|
2312
|
-
numValues: output.numValues != null ?
|
|
2313
|
-
strValues: output.strValues != null ?
|
|
2344
|
+
numValues: output.numValues != null ? de_NumValues(output.numValues, context) : undefined,
|
|
2345
|
+
strValues: output.strValues != null ? de_StrValues(output.strValues, context) : undefined,
|
|
2314
2346
|
type: __expectString(output.type),
|
|
2315
2347
|
validationMessage: __expectString(output.validationMessage),
|
|
2316
2348
|
};
|
|
2317
2349
|
};
|
|
2318
|
-
const
|
|
2350
|
+
const de_FileUploaderFieldConfig = (output, context) => {
|
|
2351
|
+
return {
|
|
2352
|
+
acceptedFileTypes: output.acceptedFileTypes != null ? de_StrValues(output.acceptedFileTypes, context) : undefined,
|
|
2353
|
+
accessLevel: __expectString(output.accessLevel),
|
|
2354
|
+
isResumable: __expectBoolean(output.isResumable),
|
|
2355
|
+
maxFileCount: __expectInt32(output.maxFileCount),
|
|
2356
|
+
maxSize: __expectInt32(output.maxSize),
|
|
2357
|
+
showThumbnails: __expectBoolean(output.showThumbnails),
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
const de_Form = (output, context) => {
|
|
2319
2361
|
return {
|
|
2320
2362
|
appId: __expectString(output.appId),
|
|
2321
|
-
cta: output.cta != null ?
|
|
2322
|
-
dataType: output.dataType != null ?
|
|
2363
|
+
cta: output.cta != null ? de_FormCTA(output.cta, context) : undefined,
|
|
2364
|
+
dataType: output.dataType != null ? de_FormDataTypeConfig(output.dataType, context) : undefined,
|
|
2323
2365
|
environmentName: __expectString(output.environmentName),
|
|
2324
|
-
fields: output.fields != null ?
|
|
2366
|
+
fields: output.fields != null ? de_FieldsMap(output.fields, context) : undefined,
|
|
2325
2367
|
formActionType: __expectString(output.formActionType),
|
|
2326
2368
|
id: __expectString(output.id),
|
|
2369
|
+
labelDecorator: __expectString(output.labelDecorator),
|
|
2327
2370
|
name: __expectString(output.name),
|
|
2328
2371
|
schemaVersion: __expectString(output.schemaVersion),
|
|
2329
|
-
sectionalElements: output.sectionalElements != null
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
style: output.style != null ? deserializeAws_restJson1FormStyle(output.style, context) : undefined,
|
|
2333
|
-
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2372
|
+
sectionalElements: output.sectionalElements != null ? de_SectionalElementMap(output.sectionalElements, context) : undefined,
|
|
2373
|
+
style: output.style != null ? de_FormStyle(output.style, context) : undefined,
|
|
2374
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2334
2375
|
};
|
|
2335
2376
|
};
|
|
2336
|
-
const
|
|
2377
|
+
const de_FormBindingElement = (output, context) => {
|
|
2337
2378
|
return {
|
|
2338
2379
|
element: __expectString(output.element),
|
|
2339
2380
|
property: __expectString(output.property),
|
|
2340
2381
|
};
|
|
2341
2382
|
};
|
|
2342
|
-
const
|
|
2383
|
+
const de_FormBindings = (output, context) => {
|
|
2343
2384
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2344
2385
|
if (value === null) {
|
|
2345
2386
|
return acc;
|
|
2346
2387
|
}
|
|
2347
|
-
acc[key] =
|
|
2388
|
+
acc[key] = de_FormBindingElement(value, context);
|
|
2348
2389
|
return acc;
|
|
2349
2390
|
}, {});
|
|
2350
2391
|
};
|
|
2351
|
-
const
|
|
2392
|
+
const de_FormButton = (output, context) => {
|
|
2352
2393
|
return {
|
|
2353
2394
|
children: __expectString(output.children),
|
|
2354
2395
|
excluded: __expectBoolean(output.excluded),
|
|
2355
|
-
position: output.position != null
|
|
2356
|
-
? deserializeAws_restJson1FieldPosition(__expectUnion(output.position), context)
|
|
2357
|
-
: undefined,
|
|
2396
|
+
position: output.position != null ? de_FieldPosition(__expectUnion(output.position), context) : undefined,
|
|
2358
2397
|
};
|
|
2359
2398
|
};
|
|
2360
|
-
const
|
|
2399
|
+
const de_FormCTA = (output, context) => {
|
|
2361
2400
|
return {
|
|
2362
|
-
cancel: output.cancel != null ?
|
|
2363
|
-
clear: output.clear != null ?
|
|
2401
|
+
cancel: output.cancel != null ? de_FormButton(output.cancel, context) : undefined,
|
|
2402
|
+
clear: output.clear != null ? de_FormButton(output.clear, context) : undefined,
|
|
2364
2403
|
position: __expectString(output.position),
|
|
2365
|
-
submit: output.submit != null ?
|
|
2404
|
+
submit: output.submit != null ? de_FormButton(output.submit, context) : undefined,
|
|
2366
2405
|
};
|
|
2367
2406
|
};
|
|
2368
|
-
const
|
|
2407
|
+
const de_FormDataTypeConfig = (output, context) => {
|
|
2369
2408
|
return {
|
|
2370
2409
|
dataSourceType: __expectString(output.dataSourceType),
|
|
2371
2410
|
dataTypeName: __expectString(output.dataTypeName),
|
|
2372
2411
|
};
|
|
2373
2412
|
};
|
|
2374
|
-
const
|
|
2413
|
+
const de_FormInputBindingProperties = (output, context) => {
|
|
2414
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2415
|
+
if (value === null) {
|
|
2416
|
+
return acc;
|
|
2417
|
+
}
|
|
2418
|
+
acc[key] = de_FormInputBindingPropertiesValue(value, context);
|
|
2419
|
+
return acc;
|
|
2420
|
+
}, {});
|
|
2421
|
+
};
|
|
2422
|
+
const de_FormInputBindingPropertiesValue = (output, context) => {
|
|
2423
|
+
return {
|
|
2424
|
+
bindingProperties: output.bindingProperties != null
|
|
2425
|
+
? de_FormInputBindingPropertiesValueProperties(output.bindingProperties, context)
|
|
2426
|
+
: undefined,
|
|
2427
|
+
type: __expectString(output.type),
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
const de_FormInputBindingPropertiesValueProperties = (output, context) => {
|
|
2375
2431
|
return {
|
|
2432
|
+
model: __expectString(output.model),
|
|
2433
|
+
};
|
|
2434
|
+
};
|
|
2435
|
+
const de_FormInputValueProperty = (output, context) => {
|
|
2436
|
+
return {
|
|
2437
|
+
bindingProperties: output.bindingProperties != null
|
|
2438
|
+
? de_FormInputValuePropertyBindingProperties(output.bindingProperties, context)
|
|
2439
|
+
: undefined,
|
|
2440
|
+
concat: output.concat != null ? de_FormInputValuePropertyList(output.concat, context) : undefined,
|
|
2376
2441
|
value: __expectString(output.value),
|
|
2377
2442
|
};
|
|
2378
2443
|
};
|
|
2379
|
-
const
|
|
2444
|
+
const de_FormInputValuePropertyBindingProperties = (output, context) => {
|
|
2445
|
+
return {
|
|
2446
|
+
field: __expectString(output.field),
|
|
2447
|
+
property: __expectString(output.property),
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
2450
|
+
const de_FormInputValuePropertyList = (output, context) => {
|
|
2451
|
+
const retVal = (output || [])
|
|
2452
|
+
.filter((e) => e != null)
|
|
2453
|
+
.map((entry) => {
|
|
2454
|
+
if (entry === null) {
|
|
2455
|
+
return null;
|
|
2456
|
+
}
|
|
2457
|
+
return de_FormInputValueProperty(entry, context);
|
|
2458
|
+
});
|
|
2459
|
+
return retVal;
|
|
2460
|
+
};
|
|
2461
|
+
const de_FormList = (output, context) => {
|
|
2380
2462
|
const retVal = (output || [])
|
|
2381
2463
|
.filter((e) => e != null)
|
|
2382
2464
|
.map((entry) => {
|
|
2383
2465
|
if (entry === null) {
|
|
2384
2466
|
return null;
|
|
2385
2467
|
}
|
|
2386
|
-
return
|
|
2468
|
+
return de_Form(entry, context);
|
|
2387
2469
|
});
|
|
2388
2470
|
return retVal;
|
|
2389
2471
|
};
|
|
2390
|
-
const
|
|
2472
|
+
const de_FormStyle = (output, context) => {
|
|
2391
2473
|
return {
|
|
2392
|
-
horizontalGap: output.horizontalGap != null
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
outerPadding: output.outerPadding != null
|
|
2396
|
-
? deserializeAws_restJson1FormStyleConfig(__expectUnion(output.outerPadding), context)
|
|
2397
|
-
: undefined,
|
|
2398
|
-
verticalGap: output.verticalGap != null
|
|
2399
|
-
? deserializeAws_restJson1FormStyleConfig(__expectUnion(output.verticalGap), context)
|
|
2400
|
-
: undefined,
|
|
2474
|
+
horizontalGap: output.horizontalGap != null ? de_FormStyleConfig(__expectUnion(output.horizontalGap), context) : undefined,
|
|
2475
|
+
outerPadding: output.outerPadding != null ? de_FormStyleConfig(__expectUnion(output.outerPadding), context) : undefined,
|
|
2476
|
+
verticalGap: output.verticalGap != null ? de_FormStyleConfig(__expectUnion(output.verticalGap), context) : undefined,
|
|
2401
2477
|
};
|
|
2402
2478
|
};
|
|
2403
|
-
const
|
|
2479
|
+
const de_FormStyleConfig = (output, context) => {
|
|
2404
2480
|
if (__expectString(output.tokenReference) !== undefined) {
|
|
2405
2481
|
return { tokenReference: __expectString(output.tokenReference) };
|
|
2406
2482
|
}
|
|
@@ -2409,28 +2485,28 @@ const deserializeAws_restJson1FormStyleConfig = (output, context) => {
|
|
|
2409
2485
|
}
|
|
2410
2486
|
return { $unknown: Object.entries(output)[0] };
|
|
2411
2487
|
};
|
|
2412
|
-
const
|
|
2488
|
+
const de_FormSummary = (output, context) => {
|
|
2413
2489
|
return {
|
|
2414
2490
|
appId: __expectString(output.appId),
|
|
2415
|
-
dataType: output.dataType != null ?
|
|
2491
|
+
dataType: output.dataType != null ? de_FormDataTypeConfig(output.dataType, context) : undefined,
|
|
2416
2492
|
environmentName: __expectString(output.environmentName),
|
|
2417
2493
|
formActionType: __expectString(output.formActionType),
|
|
2418
2494
|
id: __expectString(output.id),
|
|
2419
2495
|
name: __expectString(output.name),
|
|
2420
2496
|
};
|
|
2421
2497
|
};
|
|
2422
|
-
const
|
|
2498
|
+
const de_FormSummaryList = (output, context) => {
|
|
2423
2499
|
const retVal = (output || [])
|
|
2424
2500
|
.filter((e) => e != null)
|
|
2425
2501
|
.map((entry) => {
|
|
2426
2502
|
if (entry === null) {
|
|
2427
2503
|
return null;
|
|
2428
2504
|
}
|
|
2429
|
-
return
|
|
2505
|
+
return de_FormSummary(entry, context);
|
|
2430
2506
|
});
|
|
2431
2507
|
return retVal;
|
|
2432
2508
|
};
|
|
2433
|
-
const
|
|
2509
|
+
const de_IdentifierList = (output, context) => {
|
|
2434
2510
|
const retVal = (output || [])
|
|
2435
2511
|
.filter((e) => e != null)
|
|
2436
2512
|
.map((entry) => {
|
|
@@ -2441,14 +2517,14 @@ const deserializeAws_restJson1IdentifierList = (output, context) => {
|
|
|
2441
2517
|
});
|
|
2442
2518
|
return retVal;
|
|
2443
2519
|
};
|
|
2444
|
-
const
|
|
2520
|
+
const de_MutationActionSetStateParameter = (output, context) => {
|
|
2445
2521
|
return {
|
|
2446
2522
|
componentName: __expectString(output.componentName),
|
|
2447
2523
|
property: __expectString(output.property),
|
|
2448
|
-
set: output.set != null ?
|
|
2524
|
+
set: output.set != null ? de_ComponentProperty(output.set, context) : undefined,
|
|
2449
2525
|
};
|
|
2450
2526
|
};
|
|
2451
|
-
const
|
|
2527
|
+
const de_NumValues = (output, context) => {
|
|
2452
2528
|
const retVal = (output || [])
|
|
2453
2529
|
.filter((e) => e != null)
|
|
2454
2530
|
.map((entry) => {
|
|
@@ -2459,64 +2535,64 @@ const deserializeAws_restJson1NumValues = (output, context) => {
|
|
|
2459
2535
|
});
|
|
2460
2536
|
return retVal;
|
|
2461
2537
|
};
|
|
2462
|
-
const
|
|
2538
|
+
const de_Predicate = (output, context) => {
|
|
2463
2539
|
return {
|
|
2464
|
-
and: output.and != null ?
|
|
2540
|
+
and: output.and != null ? de_PredicateList(output.and, context) : undefined,
|
|
2465
2541
|
field: __expectString(output.field),
|
|
2466
2542
|
operand: __expectString(output.operand),
|
|
2543
|
+
operandType: __expectString(output.operandType),
|
|
2467
2544
|
operator: __expectString(output.operator),
|
|
2468
|
-
or: output.or != null ?
|
|
2545
|
+
or: output.or != null ? de_PredicateList(output.or, context) : undefined,
|
|
2469
2546
|
};
|
|
2470
2547
|
};
|
|
2471
|
-
const
|
|
2548
|
+
const de_PredicateList = (output, context) => {
|
|
2472
2549
|
const retVal = (output || [])
|
|
2473
2550
|
.filter((e) => e != null)
|
|
2474
2551
|
.map((entry) => {
|
|
2475
2552
|
if (entry === null) {
|
|
2476
2553
|
return null;
|
|
2477
2554
|
}
|
|
2478
|
-
return
|
|
2555
|
+
return de_Predicate(entry, context);
|
|
2479
2556
|
});
|
|
2480
2557
|
return retVal;
|
|
2481
2558
|
};
|
|
2482
|
-
const
|
|
2559
|
+
const de_SectionalElement = (output, context) => {
|
|
2483
2560
|
return {
|
|
2561
|
+
excluded: __expectBoolean(output.excluded),
|
|
2484
2562
|
level: __expectInt32(output.level),
|
|
2485
2563
|
orientation: __expectString(output.orientation),
|
|
2486
|
-
position: output.position != null
|
|
2487
|
-
? deserializeAws_restJson1FieldPosition(__expectUnion(output.position), context)
|
|
2488
|
-
: undefined,
|
|
2564
|
+
position: output.position != null ? de_FieldPosition(__expectUnion(output.position), context) : undefined,
|
|
2489
2565
|
text: __expectString(output.text),
|
|
2490
2566
|
type: __expectString(output.type),
|
|
2491
2567
|
};
|
|
2492
2568
|
};
|
|
2493
|
-
const
|
|
2569
|
+
const de_SectionalElementMap = (output, context) => {
|
|
2494
2570
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2495
2571
|
if (value === null) {
|
|
2496
2572
|
return acc;
|
|
2497
2573
|
}
|
|
2498
|
-
acc[key] =
|
|
2574
|
+
acc[key] = de_SectionalElement(value, context);
|
|
2499
2575
|
return acc;
|
|
2500
2576
|
}, {});
|
|
2501
2577
|
};
|
|
2502
|
-
const
|
|
2578
|
+
const de_SortProperty = (output, context) => {
|
|
2503
2579
|
return {
|
|
2504
2580
|
direction: __expectString(output.direction),
|
|
2505
2581
|
field: __expectString(output.field),
|
|
2506
2582
|
};
|
|
2507
2583
|
};
|
|
2508
|
-
const
|
|
2584
|
+
const de_SortPropertyList = (output, context) => {
|
|
2509
2585
|
const retVal = (output || [])
|
|
2510
2586
|
.filter((e) => e != null)
|
|
2511
2587
|
.map((entry) => {
|
|
2512
2588
|
if (entry === null) {
|
|
2513
2589
|
return null;
|
|
2514
2590
|
}
|
|
2515
|
-
return
|
|
2591
|
+
return de_SortProperty(entry, context);
|
|
2516
2592
|
});
|
|
2517
2593
|
return retVal;
|
|
2518
2594
|
};
|
|
2519
|
-
const
|
|
2595
|
+
const de_StrValues = (output, context) => {
|
|
2520
2596
|
const retVal = (output || [])
|
|
2521
2597
|
.filter((e) => e != null)
|
|
2522
2598
|
.map((entry) => {
|
|
@@ -2527,7 +2603,7 @@ const deserializeAws_restJson1StrValues = (output, context) => {
|
|
|
2527
2603
|
});
|
|
2528
2604
|
return retVal;
|
|
2529
2605
|
};
|
|
2530
|
-
const
|
|
2606
|
+
const de_Tags = (output, context) => {
|
|
2531
2607
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2532
2608
|
if (value === null) {
|
|
2533
2609
|
return acc;
|
|
@@ -2536,7 +2612,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2536
2612
|
return acc;
|
|
2537
2613
|
}, {});
|
|
2538
2614
|
};
|
|
2539
|
-
const
|
|
2615
|
+
const de_Theme = (output, context) => {
|
|
2540
2616
|
return {
|
|
2541
2617
|
appId: __expectString(output.appId),
|
|
2542
2618
|
createdAt: output.createdAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.createdAt)) : undefined,
|
|
@@ -2544,23 +2620,23 @@ const deserializeAws_restJson1Theme = (output, context) => {
|
|
|
2544
2620
|
id: __expectString(output.id),
|
|
2545
2621
|
modifiedAt: output.modifiedAt != null ? __expectNonNull(__parseRfc3339DateTimeWithOffset(output.modifiedAt)) : undefined,
|
|
2546
2622
|
name: __expectString(output.name),
|
|
2547
|
-
overrides: output.overrides != null ?
|
|
2548
|
-
tags: output.tags != null ?
|
|
2549
|
-
values: output.values != null ?
|
|
2623
|
+
overrides: output.overrides != null ? de_ThemeValuesList(output.overrides, context) : undefined,
|
|
2624
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2625
|
+
values: output.values != null ? de_ThemeValuesList(output.values, context) : undefined,
|
|
2550
2626
|
};
|
|
2551
2627
|
};
|
|
2552
|
-
const
|
|
2628
|
+
const de_ThemeList = (output, context) => {
|
|
2553
2629
|
const retVal = (output || [])
|
|
2554
2630
|
.filter((e) => e != null)
|
|
2555
2631
|
.map((entry) => {
|
|
2556
2632
|
if (entry === null) {
|
|
2557
2633
|
return null;
|
|
2558
2634
|
}
|
|
2559
|
-
return
|
|
2635
|
+
return de_Theme(entry, context);
|
|
2560
2636
|
});
|
|
2561
2637
|
return retVal;
|
|
2562
2638
|
};
|
|
2563
|
-
const
|
|
2639
|
+
const de_ThemeSummary = (output, context) => {
|
|
2564
2640
|
return {
|
|
2565
2641
|
appId: __expectString(output.appId),
|
|
2566
2642
|
environmentName: __expectString(output.environmentName),
|
|
@@ -2568,73 +2644,72 @@ const deserializeAws_restJson1ThemeSummary = (output, context) => {
|
|
|
2568
2644
|
name: __expectString(output.name),
|
|
2569
2645
|
};
|
|
2570
2646
|
};
|
|
2571
|
-
const
|
|
2647
|
+
const de_ThemeSummaryList = (output, context) => {
|
|
2572
2648
|
const retVal = (output || [])
|
|
2573
2649
|
.filter((e) => e != null)
|
|
2574
2650
|
.map((entry) => {
|
|
2575
2651
|
if (entry === null) {
|
|
2576
2652
|
return null;
|
|
2577
2653
|
}
|
|
2578
|
-
return
|
|
2654
|
+
return de_ThemeSummary(entry, context);
|
|
2579
2655
|
});
|
|
2580
2656
|
return retVal;
|
|
2581
2657
|
};
|
|
2582
|
-
const
|
|
2658
|
+
const de_ThemeValue = (output, context) => {
|
|
2583
2659
|
return {
|
|
2584
|
-
children: output.children != null ?
|
|
2660
|
+
children: output.children != null ? de_ThemeValuesList(output.children, context) : undefined,
|
|
2585
2661
|
value: __expectString(output.value),
|
|
2586
2662
|
};
|
|
2587
2663
|
};
|
|
2588
|
-
const
|
|
2664
|
+
const de_ThemeValues = (output, context) => {
|
|
2589
2665
|
return {
|
|
2590
2666
|
key: __expectString(output.key),
|
|
2591
|
-
value: output.value != null ?
|
|
2667
|
+
value: output.value != null ? de_ThemeValue(output.value, context) : undefined,
|
|
2592
2668
|
};
|
|
2593
2669
|
};
|
|
2594
|
-
const
|
|
2670
|
+
const de_ThemeValuesList = (output, context) => {
|
|
2595
2671
|
const retVal = (output || [])
|
|
2596
2672
|
.filter((e) => e != null)
|
|
2597
2673
|
.map((entry) => {
|
|
2598
2674
|
if (entry === null) {
|
|
2599
2675
|
return null;
|
|
2600
2676
|
}
|
|
2601
|
-
return
|
|
2677
|
+
return de_ThemeValues(entry, context);
|
|
2602
2678
|
});
|
|
2603
2679
|
return retVal;
|
|
2604
2680
|
};
|
|
2605
|
-
const
|
|
2681
|
+
const de_ValidationsList = (output, context) => {
|
|
2606
2682
|
const retVal = (output || [])
|
|
2607
2683
|
.filter((e) => e != null)
|
|
2608
2684
|
.map((entry) => {
|
|
2609
2685
|
if (entry === null) {
|
|
2610
2686
|
return null;
|
|
2611
2687
|
}
|
|
2612
|
-
return
|
|
2688
|
+
return de_FieldValidationConfiguration(entry, context);
|
|
2613
2689
|
});
|
|
2614
2690
|
return retVal;
|
|
2615
2691
|
};
|
|
2616
|
-
const
|
|
2692
|
+
const de_ValueMapping = (output, context) => {
|
|
2617
2693
|
return {
|
|
2618
|
-
displayValue: output.displayValue != null
|
|
2619
|
-
|
|
2620
|
-
: undefined,
|
|
2621
|
-
value: output.value != null ? deserializeAws_restJson1FormInputValueProperty(output.value, context) : undefined,
|
|
2694
|
+
displayValue: output.displayValue != null ? de_FormInputValueProperty(output.displayValue, context) : undefined,
|
|
2695
|
+
value: output.value != null ? de_FormInputValueProperty(output.value, context) : undefined,
|
|
2622
2696
|
};
|
|
2623
2697
|
};
|
|
2624
|
-
const
|
|
2698
|
+
const de_ValueMappingList = (output, context) => {
|
|
2625
2699
|
const retVal = (output || [])
|
|
2626
2700
|
.filter((e) => e != null)
|
|
2627
2701
|
.map((entry) => {
|
|
2628
2702
|
if (entry === null) {
|
|
2629
2703
|
return null;
|
|
2630
2704
|
}
|
|
2631
|
-
return
|
|
2705
|
+
return de_ValueMapping(entry, context);
|
|
2632
2706
|
});
|
|
2633
2707
|
return retVal;
|
|
2634
2708
|
};
|
|
2635
|
-
const
|
|
2709
|
+
const de_ValueMappings = (output, context) => {
|
|
2636
2710
|
return {
|
|
2637
|
-
|
|
2711
|
+
bindingProperties: output.bindingProperties != null ? de_FormInputBindingProperties(output.bindingProperties, context) : undefined,
|
|
2712
|
+
values: output.values != null ? de_ValueMappingList(output.values, context) : undefined,
|
|
2638
2713
|
};
|
|
2639
2714
|
};
|
|
2640
2715
|
const deserializeMetadata = (output) => ({
|