@aws-sdk/client-amplifyuibuilder 3.306.0 → 3.310.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/commands/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/protocols/Aws_restJson1.js +556 -608
- 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/protocols/Aws_restJson1.js +511 -563
- package/dist-types/protocols/Aws_restJson1.d.ts +176 -44
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -44
- package/package.json +35 -35
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_UpdateThemeCommand = exports.de_UpdateFormCommand = exports.de_UpdateComponentCommand = exports.de_RefreshTokenCommand = exports.de_PutMetadataFlagCommand = exports.de_ListThemesCommand = exports.de_ListFormsCommand = exports.de_ListComponentsCommand = exports.de_GetThemeCommand = exports.de_GetMetadataCommand = exports.de_GetFormCommand = exports.de_GetComponentCommand = exports.de_ExportThemesCommand = exports.de_ExportFormsCommand = exports.de_ExportComponentsCommand = exports.de_ExchangeCodeForTokenCommand = exports.de_DeleteThemeCommand = exports.de_DeleteFormCommand = exports.de_DeleteComponentCommand = exports.de_CreateThemeCommand = exports.de_CreateFormCommand = exports.de_CreateComponentCommand = exports.se_UpdateThemeCommand = exports.se_UpdateFormCommand = exports.se_UpdateComponentCommand = exports.se_RefreshTokenCommand = exports.se_PutMetadataFlagCommand = exports.se_ListThemesCommand = exports.se_ListFormsCommand = exports.se_ListComponentsCommand = exports.se_GetThemeCommand = exports.se_GetMetadataCommand = exports.se_GetFormCommand = exports.se_GetComponentCommand = exports.se_ExportThemesCommand = exports.se_ExportFormsCommand = exports.se_ExportComponentsCommand = exports.se_ExchangeCodeForTokenCommand = exports.se_DeleteThemeCommand = exports.se_DeleteFormCommand = exports.se_DeleteComponentCommand = exports.se_CreateThemeCommand = exports.se_CreateFormCommand = exports.se_CreateComponentCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const uuid_1 = require("uuid");
|
|
7
7
|
const AmplifyUIBuilderServiceException_1 = require("../models/AmplifyUIBuilderServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_CreateComponentCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -20,7 +20,7 @@ const serializeAws_restJson1CreateComponentCommand = async (input, context) => {
|
|
|
20
20
|
});
|
|
21
21
|
let body;
|
|
22
22
|
if (input.componentToCreate !== undefined) {
|
|
23
|
-
body =
|
|
23
|
+
body = se_CreateComponentData(input.componentToCreate, context);
|
|
24
24
|
}
|
|
25
25
|
if (body === undefined) {
|
|
26
26
|
body = {};
|
|
@@ -37,8 +37,8 @@ const serializeAws_restJson1CreateComponentCommand = async (input, context) => {
|
|
|
37
37
|
body,
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
exports.
|
|
41
|
-
const
|
|
40
|
+
exports.se_CreateComponentCommand = se_CreateComponentCommand;
|
|
41
|
+
const se_CreateFormCommand = async (input, context) => {
|
|
42
42
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
43
43
|
const headers = {
|
|
44
44
|
"content-type": "application/json",
|
|
@@ -52,7 +52,7 @@ const serializeAws_restJson1CreateFormCommand = async (input, context) => {
|
|
|
52
52
|
});
|
|
53
53
|
let body;
|
|
54
54
|
if (input.formToCreate !== undefined) {
|
|
55
|
-
body =
|
|
55
|
+
body = se_CreateFormData(input.formToCreate, context);
|
|
56
56
|
}
|
|
57
57
|
if (body === undefined) {
|
|
58
58
|
body = {};
|
|
@@ -69,8 +69,8 @@ const serializeAws_restJson1CreateFormCommand = async (input, context) => {
|
|
|
69
69
|
body,
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
|
-
exports.
|
|
73
|
-
const
|
|
72
|
+
exports.se_CreateFormCommand = se_CreateFormCommand;
|
|
73
|
+
const se_CreateThemeCommand = async (input, context) => {
|
|
74
74
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
75
75
|
const headers = {
|
|
76
76
|
"content-type": "application/json",
|
|
@@ -84,7 +84,7 @@ const serializeAws_restJson1CreateThemeCommand = async (input, context) => {
|
|
|
84
84
|
});
|
|
85
85
|
let body;
|
|
86
86
|
if (input.themeToCreate !== undefined) {
|
|
87
|
-
body =
|
|
87
|
+
body = se_CreateThemeData(input.themeToCreate, context);
|
|
88
88
|
}
|
|
89
89
|
if (body === undefined) {
|
|
90
90
|
body = {};
|
|
@@ -101,8 +101,8 @@ const serializeAws_restJson1CreateThemeCommand = async (input, context) => {
|
|
|
101
101
|
body,
|
|
102
102
|
});
|
|
103
103
|
};
|
|
104
|
-
exports.
|
|
105
|
-
const
|
|
104
|
+
exports.se_CreateThemeCommand = se_CreateThemeCommand;
|
|
105
|
+
const se_DeleteComponentCommand = async (input, context) => {
|
|
106
106
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
107
107
|
const headers = {};
|
|
108
108
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -121,8 +121,8 @@ const serializeAws_restJson1DeleteComponentCommand = async (input, context) => {
|
|
|
121
121
|
body,
|
|
122
122
|
});
|
|
123
123
|
};
|
|
124
|
-
exports.
|
|
125
|
-
const
|
|
124
|
+
exports.se_DeleteComponentCommand = se_DeleteComponentCommand;
|
|
125
|
+
const se_DeleteFormCommand = async (input, context) => {
|
|
126
126
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
127
127
|
const headers = {};
|
|
128
128
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -141,8 +141,8 @@ const serializeAws_restJson1DeleteFormCommand = async (input, context) => {
|
|
|
141
141
|
body,
|
|
142
142
|
});
|
|
143
143
|
};
|
|
144
|
-
exports.
|
|
145
|
-
const
|
|
144
|
+
exports.se_DeleteFormCommand = se_DeleteFormCommand;
|
|
145
|
+
const se_DeleteThemeCommand = async (input, context) => {
|
|
146
146
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
147
147
|
const headers = {};
|
|
148
148
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -161,8 +161,8 @@ const serializeAws_restJson1DeleteThemeCommand = async (input, context) => {
|
|
|
161
161
|
body,
|
|
162
162
|
});
|
|
163
163
|
};
|
|
164
|
-
exports.
|
|
165
|
-
const
|
|
164
|
+
exports.se_DeleteThemeCommand = se_DeleteThemeCommand;
|
|
165
|
+
const se_ExchangeCodeForTokenCommand = async (input, context) => {
|
|
166
166
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
167
167
|
const headers = {
|
|
168
168
|
"content-type": "application/json",
|
|
@@ -171,7 +171,7 @@ const serializeAws_restJson1ExchangeCodeForTokenCommand = async (input, context)
|
|
|
171
171
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "provider", () => input.provider, "{provider}", false);
|
|
172
172
|
let body;
|
|
173
173
|
if (input.request !== undefined) {
|
|
174
|
-
body =
|
|
174
|
+
body = se_ExchangeCodeForTokenRequestBody(input.request, context);
|
|
175
175
|
}
|
|
176
176
|
if (body === undefined) {
|
|
177
177
|
body = {};
|
|
@@ -187,8 +187,8 @@ const serializeAws_restJson1ExchangeCodeForTokenCommand = async (input, context)
|
|
|
187
187
|
body,
|
|
188
188
|
});
|
|
189
189
|
};
|
|
190
|
-
exports.
|
|
191
|
-
const
|
|
190
|
+
exports.se_ExchangeCodeForTokenCommand = se_ExchangeCodeForTokenCommand;
|
|
191
|
+
const se_ExportComponentsCommand = async (input, context) => {
|
|
192
192
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
193
193
|
const headers = {};
|
|
194
194
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -210,8 +210,8 @@ const serializeAws_restJson1ExportComponentsCommand = async (input, context) =>
|
|
|
210
210
|
body,
|
|
211
211
|
});
|
|
212
212
|
};
|
|
213
|
-
exports.
|
|
214
|
-
const
|
|
213
|
+
exports.se_ExportComponentsCommand = se_ExportComponentsCommand;
|
|
214
|
+
const se_ExportFormsCommand = async (input, context) => {
|
|
215
215
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
216
216
|
const headers = {};
|
|
217
217
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -233,8 +233,8 @@ const serializeAws_restJson1ExportFormsCommand = async (input, context) => {
|
|
|
233
233
|
body,
|
|
234
234
|
});
|
|
235
235
|
};
|
|
236
|
-
exports.
|
|
237
|
-
const
|
|
236
|
+
exports.se_ExportFormsCommand = se_ExportFormsCommand;
|
|
237
|
+
const se_ExportThemesCommand = async (input, context) => {
|
|
238
238
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
239
239
|
const headers = {};
|
|
240
240
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -256,8 +256,8 @@ const serializeAws_restJson1ExportThemesCommand = async (input, context) => {
|
|
|
256
256
|
body,
|
|
257
257
|
});
|
|
258
258
|
};
|
|
259
|
-
exports.
|
|
260
|
-
const
|
|
259
|
+
exports.se_ExportThemesCommand = se_ExportThemesCommand;
|
|
260
|
+
const se_GetComponentCommand = async (input, context) => {
|
|
261
261
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
262
262
|
const headers = {};
|
|
263
263
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -276,8 +276,8 @@ const serializeAws_restJson1GetComponentCommand = async (input, context) => {
|
|
|
276
276
|
body,
|
|
277
277
|
});
|
|
278
278
|
};
|
|
279
|
-
exports.
|
|
280
|
-
const
|
|
279
|
+
exports.se_GetComponentCommand = se_GetComponentCommand;
|
|
280
|
+
const se_GetFormCommand = async (input, context) => {
|
|
281
281
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
282
282
|
const headers = {};
|
|
283
283
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -296,8 +296,8 @@ const serializeAws_restJson1GetFormCommand = async (input, context) => {
|
|
|
296
296
|
body,
|
|
297
297
|
});
|
|
298
298
|
};
|
|
299
|
-
exports.
|
|
300
|
-
const
|
|
299
|
+
exports.se_GetFormCommand = se_GetFormCommand;
|
|
300
|
+
const se_GetMetadataCommand = async (input, context) => {
|
|
301
301
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
302
302
|
const headers = {};
|
|
303
303
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -315,8 +315,8 @@ const serializeAws_restJson1GetMetadataCommand = async (input, context) => {
|
|
|
315
315
|
body,
|
|
316
316
|
});
|
|
317
317
|
};
|
|
318
|
-
exports.
|
|
319
|
-
const
|
|
318
|
+
exports.se_GetMetadataCommand = se_GetMetadataCommand;
|
|
319
|
+
const se_GetThemeCommand = async (input, context) => {
|
|
320
320
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
321
321
|
const headers = {};
|
|
322
322
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -335,8 +335,8 @@ const serializeAws_restJson1GetThemeCommand = async (input, context) => {
|
|
|
335
335
|
body,
|
|
336
336
|
});
|
|
337
337
|
};
|
|
338
|
-
exports.
|
|
339
|
-
const
|
|
338
|
+
exports.se_GetThemeCommand = se_GetThemeCommand;
|
|
339
|
+
const se_ListComponentsCommand = async (input, context) => {
|
|
340
340
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
341
341
|
const headers = {};
|
|
342
342
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -359,8 +359,8 @@ const serializeAws_restJson1ListComponentsCommand = async (input, context) => {
|
|
|
359
359
|
body,
|
|
360
360
|
});
|
|
361
361
|
};
|
|
362
|
-
exports.
|
|
363
|
-
const
|
|
362
|
+
exports.se_ListComponentsCommand = se_ListComponentsCommand;
|
|
363
|
+
const se_ListFormsCommand = async (input, context) => {
|
|
364
364
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
365
365
|
const headers = {};
|
|
366
366
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -383,8 +383,8 @@ const serializeAws_restJson1ListFormsCommand = async (input, context) => {
|
|
|
383
383
|
body,
|
|
384
384
|
});
|
|
385
385
|
};
|
|
386
|
-
exports.
|
|
387
|
-
const
|
|
386
|
+
exports.se_ListFormsCommand = se_ListFormsCommand;
|
|
387
|
+
const se_ListThemesCommand = async (input, context) => {
|
|
388
388
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
389
389
|
const headers = {};
|
|
390
390
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -407,8 +407,8 @@ const serializeAws_restJson1ListThemesCommand = async (input, context) => {
|
|
|
407
407
|
body,
|
|
408
408
|
});
|
|
409
409
|
};
|
|
410
|
-
exports.
|
|
411
|
-
const
|
|
410
|
+
exports.se_ListThemesCommand = se_ListThemesCommand;
|
|
411
|
+
const se_PutMetadataFlagCommand = async (input, context) => {
|
|
412
412
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
413
413
|
const headers = {
|
|
414
414
|
"content-type": "application/json",
|
|
@@ -420,7 +420,7 @@ const serializeAws_restJson1PutMetadataFlagCommand = async (input, context) => {
|
|
|
420
420
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "featureName", () => input.featureName, "{featureName}", false);
|
|
421
421
|
let body;
|
|
422
422
|
if (input.body !== undefined) {
|
|
423
|
-
body =
|
|
423
|
+
body = se_PutMetadataFlagBody(input.body, context);
|
|
424
424
|
}
|
|
425
425
|
if (body === undefined) {
|
|
426
426
|
body = {};
|
|
@@ -436,8 +436,8 @@ const serializeAws_restJson1PutMetadataFlagCommand = async (input, context) => {
|
|
|
436
436
|
body,
|
|
437
437
|
});
|
|
438
438
|
};
|
|
439
|
-
exports.
|
|
440
|
-
const
|
|
439
|
+
exports.se_PutMetadataFlagCommand = se_PutMetadataFlagCommand;
|
|
440
|
+
const se_RefreshTokenCommand = async (input, context) => {
|
|
441
441
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
442
442
|
const headers = {
|
|
443
443
|
"content-type": "application/json",
|
|
@@ -446,7 +446,7 @@ const serializeAws_restJson1RefreshTokenCommand = async (input, context) => {
|
|
|
446
446
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "provider", () => input.provider, "{provider}", false);
|
|
447
447
|
let body;
|
|
448
448
|
if (input.refreshTokenBody !== undefined) {
|
|
449
|
-
body =
|
|
449
|
+
body = se_RefreshTokenRequestBody(input.refreshTokenBody, context);
|
|
450
450
|
}
|
|
451
451
|
if (body === undefined) {
|
|
452
452
|
body = {};
|
|
@@ -462,8 +462,8 @@ const serializeAws_restJson1RefreshTokenCommand = async (input, context) => {
|
|
|
462
462
|
body,
|
|
463
463
|
});
|
|
464
464
|
};
|
|
465
|
-
exports.
|
|
466
|
-
const
|
|
465
|
+
exports.se_RefreshTokenCommand = se_RefreshTokenCommand;
|
|
466
|
+
const se_UpdateComponentCommand = async (input, context) => {
|
|
467
467
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
468
468
|
const headers = {
|
|
469
469
|
"content-type": "application/json",
|
|
@@ -478,7 +478,7 @@ const serializeAws_restJson1UpdateComponentCommand = async (input, context) => {
|
|
|
478
478
|
});
|
|
479
479
|
let body;
|
|
480
480
|
if (input.updatedComponent !== undefined) {
|
|
481
|
-
body =
|
|
481
|
+
body = se_UpdateComponentData(input.updatedComponent, context);
|
|
482
482
|
}
|
|
483
483
|
if (body === undefined) {
|
|
484
484
|
body = {};
|
|
@@ -495,8 +495,8 @@ const serializeAws_restJson1UpdateComponentCommand = async (input, context) => {
|
|
|
495
495
|
body,
|
|
496
496
|
});
|
|
497
497
|
};
|
|
498
|
-
exports.
|
|
499
|
-
const
|
|
498
|
+
exports.se_UpdateComponentCommand = se_UpdateComponentCommand;
|
|
499
|
+
const se_UpdateFormCommand = async (input, context) => {
|
|
500
500
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
501
501
|
const headers = {
|
|
502
502
|
"content-type": "application/json",
|
|
@@ -511,7 +511,7 @@ const serializeAws_restJson1UpdateFormCommand = async (input, context) => {
|
|
|
511
511
|
});
|
|
512
512
|
let body;
|
|
513
513
|
if (input.updatedForm !== undefined) {
|
|
514
|
-
body =
|
|
514
|
+
body = se_UpdateFormData(input.updatedForm, context);
|
|
515
515
|
}
|
|
516
516
|
if (body === undefined) {
|
|
517
517
|
body = {};
|
|
@@ -528,8 +528,8 @@ const serializeAws_restJson1UpdateFormCommand = async (input, context) => {
|
|
|
528
528
|
body,
|
|
529
529
|
});
|
|
530
530
|
};
|
|
531
|
-
exports.
|
|
532
|
-
const
|
|
531
|
+
exports.se_UpdateFormCommand = se_UpdateFormCommand;
|
|
532
|
+
const se_UpdateThemeCommand = async (input, context) => {
|
|
533
533
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
534
534
|
const headers = {
|
|
535
535
|
"content-type": "application/json",
|
|
@@ -544,7 +544,7 @@ const serializeAws_restJson1UpdateThemeCommand = async (input, context) => {
|
|
|
544
544
|
});
|
|
545
545
|
let body;
|
|
546
546
|
if (input.updatedTheme !== undefined) {
|
|
547
|
-
body =
|
|
547
|
+
body = se_UpdateThemeData(input.updatedTheme, context);
|
|
548
548
|
}
|
|
549
549
|
if (body === undefined) {
|
|
550
550
|
body = {};
|
|
@@ -561,20 +561,20 @@ const serializeAws_restJson1UpdateThemeCommand = async (input, context) => {
|
|
|
561
561
|
body,
|
|
562
562
|
});
|
|
563
563
|
};
|
|
564
|
-
exports.
|
|
565
|
-
const
|
|
564
|
+
exports.se_UpdateThemeCommand = se_UpdateThemeCommand;
|
|
565
|
+
const de_CreateComponentCommand = async (output, context) => {
|
|
566
566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
567
|
-
return
|
|
567
|
+
return de_CreateComponentCommandError(output, context);
|
|
568
568
|
}
|
|
569
569
|
const contents = map({
|
|
570
570
|
$metadata: deserializeMetadata(output),
|
|
571
571
|
});
|
|
572
572
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
573
|
-
contents.entity =
|
|
573
|
+
contents.entity = de_Component(data, context);
|
|
574
574
|
return contents;
|
|
575
575
|
};
|
|
576
|
-
exports.
|
|
577
|
-
const
|
|
576
|
+
exports.de_CreateComponentCommand = de_CreateComponentCommand;
|
|
577
|
+
const de_CreateComponentCommandError = async (output, context) => {
|
|
578
578
|
const parsedOutput = {
|
|
579
579
|
...output,
|
|
580
580
|
body: await parseErrorBody(output.body, context),
|
|
@@ -583,16 +583,16 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
583
583
|
switch (errorCode) {
|
|
584
584
|
case "InternalServerException":
|
|
585
585
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
586
|
-
throw await
|
|
586
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
587
587
|
case "InvalidParameterException":
|
|
588
588
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
589
|
-
throw await
|
|
589
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
590
590
|
case "ResourceConflictException":
|
|
591
591
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
592
|
-
throw await
|
|
592
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
593
593
|
case "ServiceQuotaExceededException":
|
|
594
594
|
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
|
|
595
|
-
throw await
|
|
595
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
596
596
|
default:
|
|
597
597
|
const parsedBody = parsedOutput.body;
|
|
598
598
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -603,19 +603,19 @@ const deserializeAws_restJson1CreateComponentCommandError = async (output, conte
|
|
|
603
603
|
});
|
|
604
604
|
}
|
|
605
605
|
};
|
|
606
|
-
const
|
|
606
|
+
const de_CreateFormCommand = async (output, context) => {
|
|
607
607
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
608
|
-
return
|
|
608
|
+
return de_CreateFormCommandError(output, context);
|
|
609
609
|
}
|
|
610
610
|
const contents = map({
|
|
611
611
|
$metadata: deserializeMetadata(output),
|
|
612
612
|
});
|
|
613
613
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
614
|
-
contents.entity =
|
|
614
|
+
contents.entity = de_Form(data, context);
|
|
615
615
|
return contents;
|
|
616
616
|
};
|
|
617
|
-
exports.
|
|
618
|
-
const
|
|
617
|
+
exports.de_CreateFormCommand = de_CreateFormCommand;
|
|
618
|
+
const de_CreateFormCommandError = async (output, context) => {
|
|
619
619
|
const parsedOutput = {
|
|
620
620
|
...output,
|
|
621
621
|
body: await parseErrorBody(output.body, context),
|
|
@@ -624,16 +624,16 @@ const deserializeAws_restJson1CreateFormCommandError = async (output, context) =
|
|
|
624
624
|
switch (errorCode) {
|
|
625
625
|
case "InternalServerException":
|
|
626
626
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
627
|
-
throw await
|
|
627
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
628
628
|
case "InvalidParameterException":
|
|
629
629
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
630
|
-
throw await
|
|
630
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
631
631
|
case "ResourceConflictException":
|
|
632
632
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
633
|
-
throw await
|
|
633
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
634
634
|
case "ServiceQuotaExceededException":
|
|
635
635
|
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
|
|
636
|
-
throw await
|
|
636
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
637
637
|
default:
|
|
638
638
|
const parsedBody = parsedOutput.body;
|
|
639
639
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -644,19 +644,19 @@ const deserializeAws_restJson1CreateFormCommandError = async (output, context) =
|
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
|
-
const
|
|
647
|
+
const de_CreateThemeCommand = async (output, context) => {
|
|
648
648
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
649
|
-
return
|
|
649
|
+
return de_CreateThemeCommandError(output, context);
|
|
650
650
|
}
|
|
651
651
|
const contents = map({
|
|
652
652
|
$metadata: deserializeMetadata(output),
|
|
653
653
|
});
|
|
654
654
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
655
|
-
contents.entity =
|
|
655
|
+
contents.entity = de_Theme(data, context);
|
|
656
656
|
return contents;
|
|
657
657
|
};
|
|
658
|
-
exports.
|
|
659
|
-
const
|
|
658
|
+
exports.de_CreateThemeCommand = de_CreateThemeCommand;
|
|
659
|
+
const de_CreateThemeCommandError = async (output, context) => {
|
|
660
660
|
const parsedOutput = {
|
|
661
661
|
...output,
|
|
662
662
|
body: await parseErrorBody(output.body, context),
|
|
@@ -665,16 +665,16 @@ const deserializeAws_restJson1CreateThemeCommandError = async (output, context)
|
|
|
665
665
|
switch (errorCode) {
|
|
666
666
|
case "InternalServerException":
|
|
667
667
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
668
|
-
throw await
|
|
668
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
669
669
|
case "InvalidParameterException":
|
|
670
670
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
671
|
-
throw await
|
|
671
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
672
672
|
case "ResourceConflictException":
|
|
673
673
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
674
|
-
throw await
|
|
674
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
675
675
|
case "ServiceQuotaExceededException":
|
|
676
676
|
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
|
|
677
|
-
throw await
|
|
677
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
678
678
|
default:
|
|
679
679
|
const parsedBody = parsedOutput.body;
|
|
680
680
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -685,9 +685,9 @@ const deserializeAws_restJson1CreateThemeCommandError = async (output, context)
|
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
const
|
|
688
|
+
const de_DeleteComponentCommand = async (output, context) => {
|
|
689
689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
690
|
-
return
|
|
690
|
+
return de_DeleteComponentCommandError(output, context);
|
|
691
691
|
}
|
|
692
692
|
const contents = map({
|
|
693
693
|
$metadata: deserializeMetadata(output),
|
|
@@ -695,8 +695,8 @@ const deserializeAws_restJson1DeleteComponentCommand = async (output, context) =
|
|
|
695
695
|
await collectBody(output.body, context);
|
|
696
696
|
return contents;
|
|
697
697
|
};
|
|
698
|
-
exports.
|
|
699
|
-
const
|
|
698
|
+
exports.de_DeleteComponentCommand = de_DeleteComponentCommand;
|
|
699
|
+
const de_DeleteComponentCommandError = async (output, context) => {
|
|
700
700
|
const parsedOutput = {
|
|
701
701
|
...output,
|
|
702
702
|
body: await parseErrorBody(output.body, context),
|
|
@@ -705,13 +705,13 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
705
705
|
switch (errorCode) {
|
|
706
706
|
case "InternalServerException":
|
|
707
707
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
708
|
-
throw await
|
|
708
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
709
709
|
case "InvalidParameterException":
|
|
710
710
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
711
|
-
throw await
|
|
711
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
712
712
|
case "ResourceNotFoundException":
|
|
713
713
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
714
|
-
throw await
|
|
714
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
715
715
|
default:
|
|
716
716
|
const parsedBody = parsedOutput.body;
|
|
717
717
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -722,9 +722,9 @@ const deserializeAws_restJson1DeleteComponentCommandError = async (output, conte
|
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
};
|
|
725
|
-
const
|
|
725
|
+
const de_DeleteFormCommand = async (output, context) => {
|
|
726
726
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
727
|
-
return
|
|
727
|
+
return de_DeleteFormCommandError(output, context);
|
|
728
728
|
}
|
|
729
729
|
const contents = map({
|
|
730
730
|
$metadata: deserializeMetadata(output),
|
|
@@ -732,8 +732,8 @@ const deserializeAws_restJson1DeleteFormCommand = async (output, context) => {
|
|
|
732
732
|
await collectBody(output.body, context);
|
|
733
733
|
return contents;
|
|
734
734
|
};
|
|
735
|
-
exports.
|
|
736
|
-
const
|
|
735
|
+
exports.de_DeleteFormCommand = de_DeleteFormCommand;
|
|
736
|
+
const de_DeleteFormCommandError = async (output, context) => {
|
|
737
737
|
const parsedOutput = {
|
|
738
738
|
...output,
|
|
739
739
|
body: await parseErrorBody(output.body, context),
|
|
@@ -742,13 +742,13 @@ const deserializeAws_restJson1DeleteFormCommandError = async (output, context) =
|
|
|
742
742
|
switch (errorCode) {
|
|
743
743
|
case "InternalServerException":
|
|
744
744
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
745
|
-
throw await
|
|
745
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
746
746
|
case "InvalidParameterException":
|
|
747
747
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
748
|
-
throw await
|
|
748
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
749
749
|
case "ResourceNotFoundException":
|
|
750
750
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
751
|
-
throw await
|
|
751
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
752
752
|
default:
|
|
753
753
|
const parsedBody = parsedOutput.body;
|
|
754
754
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -759,9 +759,9 @@ const deserializeAws_restJson1DeleteFormCommandError = async (output, context) =
|
|
|
759
759
|
});
|
|
760
760
|
}
|
|
761
761
|
};
|
|
762
|
-
const
|
|
762
|
+
const de_DeleteThemeCommand = async (output, context) => {
|
|
763
763
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
764
|
-
return
|
|
764
|
+
return de_DeleteThemeCommandError(output, context);
|
|
765
765
|
}
|
|
766
766
|
const contents = map({
|
|
767
767
|
$metadata: deserializeMetadata(output),
|
|
@@ -769,8 +769,8 @@ const deserializeAws_restJson1DeleteThemeCommand = async (output, context) => {
|
|
|
769
769
|
await collectBody(output.body, context);
|
|
770
770
|
return contents;
|
|
771
771
|
};
|
|
772
|
-
exports.
|
|
773
|
-
const
|
|
772
|
+
exports.de_DeleteThemeCommand = de_DeleteThemeCommand;
|
|
773
|
+
const de_DeleteThemeCommandError = async (output, context) => {
|
|
774
774
|
const parsedOutput = {
|
|
775
775
|
...output,
|
|
776
776
|
body: await parseErrorBody(output.body, context),
|
|
@@ -779,13 +779,13 @@ const deserializeAws_restJson1DeleteThemeCommandError = async (output, context)
|
|
|
779
779
|
switch (errorCode) {
|
|
780
780
|
case "InternalServerException":
|
|
781
781
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
782
|
-
throw await
|
|
782
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
783
783
|
case "InvalidParameterException":
|
|
784
784
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
785
|
-
throw await
|
|
785
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
786
786
|
case "ResourceNotFoundException":
|
|
787
787
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
788
|
-
throw await
|
|
788
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
789
789
|
default:
|
|
790
790
|
const parsedBody = parsedOutput.body;
|
|
791
791
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -796,9 +796,9 @@ const deserializeAws_restJson1DeleteThemeCommandError = async (output, context)
|
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
|
-
const
|
|
799
|
+
const de_ExchangeCodeForTokenCommand = async (output, context) => {
|
|
800
800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
801
|
-
return
|
|
801
|
+
return de_ExchangeCodeForTokenCommandError(output, context);
|
|
802
802
|
}
|
|
803
803
|
const contents = map({
|
|
804
804
|
$metadata: deserializeMetadata(output),
|
|
@@ -815,8 +815,8 @@ const deserializeAws_restJson1ExchangeCodeForTokenCommand = async (output, conte
|
|
|
815
815
|
}
|
|
816
816
|
return contents;
|
|
817
817
|
};
|
|
818
|
-
exports.
|
|
819
|
-
const
|
|
818
|
+
exports.de_ExchangeCodeForTokenCommand = de_ExchangeCodeForTokenCommand;
|
|
819
|
+
const de_ExchangeCodeForTokenCommandError = async (output, context) => {
|
|
820
820
|
const parsedOutput = {
|
|
821
821
|
...output,
|
|
822
822
|
body: await parseErrorBody(output.body, context),
|
|
@@ -825,7 +825,7 @@ const deserializeAws_restJson1ExchangeCodeForTokenCommandError = async (output,
|
|
|
825
825
|
switch (errorCode) {
|
|
826
826
|
case "InvalidParameterException":
|
|
827
827
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
828
|
-
throw await
|
|
828
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
829
829
|
default:
|
|
830
830
|
const parsedBody = parsedOutput.body;
|
|
831
831
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -836,24 +836,24 @@ const deserializeAws_restJson1ExchangeCodeForTokenCommandError = async (output,
|
|
|
836
836
|
});
|
|
837
837
|
}
|
|
838
838
|
};
|
|
839
|
-
const
|
|
839
|
+
const de_ExportComponentsCommand = async (output, context) => {
|
|
840
840
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
841
|
-
return
|
|
841
|
+
return de_ExportComponentsCommandError(output, context);
|
|
842
842
|
}
|
|
843
843
|
const contents = map({
|
|
844
844
|
$metadata: deserializeMetadata(output),
|
|
845
845
|
});
|
|
846
846
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
847
847
|
if (data.entities != null) {
|
|
848
|
-
contents.entities =
|
|
848
|
+
contents.entities = de_ComponentList(data.entities, context);
|
|
849
849
|
}
|
|
850
850
|
if (data.nextToken != null) {
|
|
851
851
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
852
852
|
}
|
|
853
853
|
return contents;
|
|
854
854
|
};
|
|
855
|
-
exports.
|
|
856
|
-
const
|
|
855
|
+
exports.de_ExportComponentsCommand = de_ExportComponentsCommand;
|
|
856
|
+
const de_ExportComponentsCommandError = async (output, context) => {
|
|
857
857
|
const parsedOutput = {
|
|
858
858
|
...output,
|
|
859
859
|
body: await parseErrorBody(output.body, context),
|
|
@@ -862,10 +862,10 @@ const deserializeAws_restJson1ExportComponentsCommandError = async (output, cont
|
|
|
862
862
|
switch (errorCode) {
|
|
863
863
|
case "InternalServerException":
|
|
864
864
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
865
|
-
throw await
|
|
865
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
866
866
|
case "InvalidParameterException":
|
|
867
867
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
868
|
-
throw await
|
|
868
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
869
869
|
default:
|
|
870
870
|
const parsedBody = parsedOutput.body;
|
|
871
871
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -876,24 +876,24 @@ const deserializeAws_restJson1ExportComponentsCommandError = async (output, cont
|
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
|
-
const
|
|
879
|
+
const de_ExportFormsCommand = async (output, context) => {
|
|
880
880
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
881
|
-
return
|
|
881
|
+
return de_ExportFormsCommandError(output, context);
|
|
882
882
|
}
|
|
883
883
|
const contents = map({
|
|
884
884
|
$metadata: deserializeMetadata(output),
|
|
885
885
|
});
|
|
886
886
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
887
887
|
if (data.entities != null) {
|
|
888
|
-
contents.entities =
|
|
888
|
+
contents.entities = de_FormList(data.entities, context);
|
|
889
889
|
}
|
|
890
890
|
if (data.nextToken != null) {
|
|
891
891
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
892
892
|
}
|
|
893
893
|
return contents;
|
|
894
894
|
};
|
|
895
|
-
exports.
|
|
896
|
-
const
|
|
895
|
+
exports.de_ExportFormsCommand = de_ExportFormsCommand;
|
|
896
|
+
const de_ExportFormsCommandError = async (output, context) => {
|
|
897
897
|
const parsedOutput = {
|
|
898
898
|
...output,
|
|
899
899
|
body: await parseErrorBody(output.body, context),
|
|
@@ -902,10 +902,10 @@ const deserializeAws_restJson1ExportFormsCommandError = async (output, context)
|
|
|
902
902
|
switch (errorCode) {
|
|
903
903
|
case "InternalServerException":
|
|
904
904
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
905
|
-
throw await
|
|
905
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
906
906
|
case "InvalidParameterException":
|
|
907
907
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
908
|
-
throw await
|
|
908
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
909
909
|
default:
|
|
910
910
|
const parsedBody = parsedOutput.body;
|
|
911
911
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -916,24 +916,24 @@ const deserializeAws_restJson1ExportFormsCommandError = async (output, context)
|
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
918
|
};
|
|
919
|
-
const
|
|
919
|
+
const de_ExportThemesCommand = async (output, context) => {
|
|
920
920
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
-
return
|
|
921
|
+
return de_ExportThemesCommandError(output, context);
|
|
922
922
|
}
|
|
923
923
|
const contents = map({
|
|
924
924
|
$metadata: deserializeMetadata(output),
|
|
925
925
|
});
|
|
926
926
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
927
927
|
if (data.entities != null) {
|
|
928
|
-
contents.entities =
|
|
928
|
+
contents.entities = de_ThemeList(data.entities, context);
|
|
929
929
|
}
|
|
930
930
|
if (data.nextToken != null) {
|
|
931
931
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
932
932
|
}
|
|
933
933
|
return contents;
|
|
934
934
|
};
|
|
935
|
-
exports.
|
|
936
|
-
const
|
|
935
|
+
exports.de_ExportThemesCommand = de_ExportThemesCommand;
|
|
936
|
+
const de_ExportThemesCommandError = async (output, context) => {
|
|
937
937
|
const parsedOutput = {
|
|
938
938
|
...output,
|
|
939
939
|
body: await parseErrorBody(output.body, context),
|
|
@@ -942,10 +942,10 @@ const deserializeAws_restJson1ExportThemesCommandError = async (output, context)
|
|
|
942
942
|
switch (errorCode) {
|
|
943
943
|
case "InternalServerException":
|
|
944
944
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
945
|
-
throw await
|
|
945
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
946
946
|
case "InvalidParameterException":
|
|
947
947
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
948
|
-
throw await
|
|
948
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
949
949
|
default:
|
|
950
950
|
const parsedBody = parsedOutput.body;
|
|
951
951
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -956,19 +956,19 @@ const deserializeAws_restJson1ExportThemesCommandError = async (output, context)
|
|
|
956
956
|
});
|
|
957
957
|
}
|
|
958
958
|
};
|
|
959
|
-
const
|
|
959
|
+
const de_GetComponentCommand = async (output, context) => {
|
|
960
960
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
961
|
-
return
|
|
961
|
+
return de_GetComponentCommandError(output, context);
|
|
962
962
|
}
|
|
963
963
|
const contents = map({
|
|
964
964
|
$metadata: deserializeMetadata(output),
|
|
965
965
|
});
|
|
966
966
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
967
|
-
contents.component =
|
|
967
|
+
contents.component = de_Component(data, context);
|
|
968
968
|
return contents;
|
|
969
969
|
};
|
|
970
|
-
exports.
|
|
971
|
-
const
|
|
970
|
+
exports.de_GetComponentCommand = de_GetComponentCommand;
|
|
971
|
+
const de_GetComponentCommandError = async (output, context) => {
|
|
972
972
|
const parsedOutput = {
|
|
973
973
|
...output,
|
|
974
974
|
body: await parseErrorBody(output.body, context),
|
|
@@ -977,13 +977,13 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
977
977
|
switch (errorCode) {
|
|
978
978
|
case "InternalServerException":
|
|
979
979
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
980
|
-
throw await
|
|
980
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
981
981
|
case "InvalidParameterException":
|
|
982
982
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
983
|
-
throw await
|
|
983
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
984
984
|
case "ResourceNotFoundException":
|
|
985
985
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
986
|
-
throw await
|
|
986
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
987
987
|
default:
|
|
988
988
|
const parsedBody = parsedOutput.body;
|
|
989
989
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -994,19 +994,19 @@ const deserializeAws_restJson1GetComponentCommandError = async (output, context)
|
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
|
-
const
|
|
997
|
+
const de_GetFormCommand = async (output, context) => {
|
|
998
998
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
999
|
-
return
|
|
999
|
+
return de_GetFormCommandError(output, context);
|
|
1000
1000
|
}
|
|
1001
1001
|
const contents = map({
|
|
1002
1002
|
$metadata: deserializeMetadata(output),
|
|
1003
1003
|
});
|
|
1004
1004
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1005
|
-
contents.form =
|
|
1005
|
+
contents.form = de_Form(data, context);
|
|
1006
1006
|
return contents;
|
|
1007
1007
|
};
|
|
1008
|
-
exports.
|
|
1009
|
-
const
|
|
1008
|
+
exports.de_GetFormCommand = de_GetFormCommand;
|
|
1009
|
+
const de_GetFormCommandError = async (output, context) => {
|
|
1010
1010
|
const parsedOutput = {
|
|
1011
1011
|
...output,
|
|
1012
1012
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1015,13 +1015,13 @@ const deserializeAws_restJson1GetFormCommandError = async (output, context) => {
|
|
|
1015
1015
|
switch (errorCode) {
|
|
1016
1016
|
case "InternalServerException":
|
|
1017
1017
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1018
|
-
throw await
|
|
1018
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1019
1019
|
case "InvalidParameterException":
|
|
1020
1020
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1021
|
-
throw await
|
|
1021
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1022
1022
|
case "ResourceNotFoundException":
|
|
1023
1023
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
1024
|
-
throw await
|
|
1024
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1025
1025
|
default:
|
|
1026
1026
|
const parsedBody = parsedOutput.body;
|
|
1027
1027
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1032,21 +1032,21 @@ const deserializeAws_restJson1GetFormCommandError = async (output, context) => {
|
|
|
1032
1032
|
});
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
|
-
const
|
|
1035
|
+
const de_GetMetadataCommand = async (output, context) => {
|
|
1036
1036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
-
return
|
|
1037
|
+
return de_GetMetadataCommandError(output, context);
|
|
1038
1038
|
}
|
|
1039
1039
|
const contents = map({
|
|
1040
1040
|
$metadata: deserializeMetadata(output),
|
|
1041
1041
|
});
|
|
1042
1042
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1043
1043
|
if (data.features != null) {
|
|
1044
|
-
contents.features =
|
|
1044
|
+
contents.features = de_FeaturesMap(data.features, context);
|
|
1045
1045
|
}
|
|
1046
1046
|
return contents;
|
|
1047
1047
|
};
|
|
1048
|
-
exports.
|
|
1049
|
-
const
|
|
1048
|
+
exports.de_GetMetadataCommand = de_GetMetadataCommand;
|
|
1049
|
+
const de_GetMetadataCommandError = async (output, context) => {
|
|
1050
1050
|
const parsedOutput = {
|
|
1051
1051
|
...output,
|
|
1052
1052
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1055,10 +1055,10 @@ const deserializeAws_restJson1GetMetadataCommandError = async (output, context)
|
|
|
1055
1055
|
switch (errorCode) {
|
|
1056
1056
|
case "InvalidParameterException":
|
|
1057
1057
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1058
|
-
throw await
|
|
1058
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1059
1059
|
case "UnauthorizedException":
|
|
1060
1060
|
case "com.amazonaws.amplifyuibuilder#UnauthorizedException":
|
|
1061
|
-
throw await
|
|
1061
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1062
1062
|
default:
|
|
1063
1063
|
const parsedBody = parsedOutput.body;
|
|
1064
1064
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1069,19 +1069,19 @@ const deserializeAws_restJson1GetMetadataCommandError = async (output, context)
|
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
};
|
|
1072
|
-
const
|
|
1072
|
+
const de_GetThemeCommand = async (output, context) => {
|
|
1073
1073
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1074
|
-
return
|
|
1074
|
+
return de_GetThemeCommandError(output, context);
|
|
1075
1075
|
}
|
|
1076
1076
|
const contents = map({
|
|
1077
1077
|
$metadata: deserializeMetadata(output),
|
|
1078
1078
|
});
|
|
1079
1079
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1080
|
-
contents.theme =
|
|
1080
|
+
contents.theme = de_Theme(data, context);
|
|
1081
1081
|
return contents;
|
|
1082
1082
|
};
|
|
1083
|
-
exports.
|
|
1084
|
-
const
|
|
1083
|
+
exports.de_GetThemeCommand = de_GetThemeCommand;
|
|
1084
|
+
const de_GetThemeCommandError = async (output, context) => {
|
|
1085
1085
|
const parsedOutput = {
|
|
1086
1086
|
...output,
|
|
1087
1087
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1090,13 +1090,13 @@ const deserializeAws_restJson1GetThemeCommandError = async (output, context) =>
|
|
|
1090
1090
|
switch (errorCode) {
|
|
1091
1091
|
case "InternalServerException":
|
|
1092
1092
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1093
|
-
throw await
|
|
1093
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1094
1094
|
case "InvalidParameterException":
|
|
1095
1095
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1096
|
-
throw await
|
|
1096
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1097
1097
|
case "ResourceNotFoundException":
|
|
1098
1098
|
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
1099
|
-
throw await
|
|
1099
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1100
1100
|
default:
|
|
1101
1101
|
const parsedBody = parsedOutput.body;
|
|
1102
1102
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1107,24 +1107,24 @@ const deserializeAws_restJson1GetThemeCommandError = async (output, context) =>
|
|
|
1107
1107
|
});
|
|
1108
1108
|
}
|
|
1109
1109
|
};
|
|
1110
|
-
const
|
|
1110
|
+
const de_ListComponentsCommand = async (output, context) => {
|
|
1111
1111
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1112
|
-
return
|
|
1112
|
+
return de_ListComponentsCommandError(output, context);
|
|
1113
1113
|
}
|
|
1114
1114
|
const contents = map({
|
|
1115
1115
|
$metadata: deserializeMetadata(output),
|
|
1116
1116
|
});
|
|
1117
1117
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1118
1118
|
if (data.entities != null) {
|
|
1119
|
-
contents.entities =
|
|
1119
|
+
contents.entities = de_ComponentSummaryList(data.entities, context);
|
|
1120
1120
|
}
|
|
1121
1121
|
if (data.nextToken != null) {
|
|
1122
1122
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1123
1123
|
}
|
|
1124
1124
|
return contents;
|
|
1125
1125
|
};
|
|
1126
|
-
exports.
|
|
1127
|
-
const
|
|
1126
|
+
exports.de_ListComponentsCommand = de_ListComponentsCommand;
|
|
1127
|
+
const de_ListComponentsCommandError = async (output, context) => {
|
|
1128
1128
|
const parsedOutput = {
|
|
1129
1129
|
...output,
|
|
1130
1130
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1133,10 +1133,10 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
1133
1133
|
switch (errorCode) {
|
|
1134
1134
|
case "InternalServerException":
|
|
1135
1135
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1136
|
-
throw await
|
|
1136
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1137
1137
|
case "InvalidParameterException":
|
|
1138
1138
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1139
|
-
throw await
|
|
1139
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1140
1140
|
default:
|
|
1141
1141
|
const parsedBody = parsedOutput.body;
|
|
1142
1142
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1147,24 +1147,24 @@ const deserializeAws_restJson1ListComponentsCommandError = async (output, contex
|
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
};
|
|
1150
|
-
const
|
|
1150
|
+
const de_ListFormsCommand = async (output, context) => {
|
|
1151
1151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1152
|
-
return
|
|
1152
|
+
return de_ListFormsCommandError(output, context);
|
|
1153
1153
|
}
|
|
1154
1154
|
const contents = map({
|
|
1155
1155
|
$metadata: deserializeMetadata(output),
|
|
1156
1156
|
});
|
|
1157
1157
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1158
1158
|
if (data.entities != null) {
|
|
1159
|
-
contents.entities =
|
|
1159
|
+
contents.entities = de_FormSummaryList(data.entities, context);
|
|
1160
1160
|
}
|
|
1161
1161
|
if (data.nextToken != null) {
|
|
1162
1162
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1163
1163
|
}
|
|
1164
1164
|
return contents;
|
|
1165
1165
|
};
|
|
1166
|
-
exports.
|
|
1167
|
-
const
|
|
1166
|
+
exports.de_ListFormsCommand = de_ListFormsCommand;
|
|
1167
|
+
const de_ListFormsCommandError = async (output, context) => {
|
|
1168
1168
|
const parsedOutput = {
|
|
1169
1169
|
...output,
|
|
1170
1170
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1173,10 +1173,10 @@ const deserializeAws_restJson1ListFormsCommandError = async (output, context) =>
|
|
|
1173
1173
|
switch (errorCode) {
|
|
1174
1174
|
case "InternalServerException":
|
|
1175
1175
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1176
|
-
throw await
|
|
1176
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1177
1177
|
case "InvalidParameterException":
|
|
1178
1178
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1179
|
-
throw await
|
|
1179
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1180
1180
|
default:
|
|
1181
1181
|
const parsedBody = parsedOutput.body;
|
|
1182
1182
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1187,24 +1187,24 @@ const deserializeAws_restJson1ListFormsCommandError = async (output, context) =>
|
|
|
1187
1187
|
});
|
|
1188
1188
|
}
|
|
1189
1189
|
};
|
|
1190
|
-
const
|
|
1190
|
+
const de_ListThemesCommand = async (output, context) => {
|
|
1191
1191
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1192
|
-
return
|
|
1192
|
+
return de_ListThemesCommandError(output, context);
|
|
1193
1193
|
}
|
|
1194
1194
|
const contents = map({
|
|
1195
1195
|
$metadata: deserializeMetadata(output),
|
|
1196
1196
|
});
|
|
1197
1197
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1198
1198
|
if (data.entities != null) {
|
|
1199
|
-
contents.entities =
|
|
1199
|
+
contents.entities = de_ThemeSummaryList(data.entities, context);
|
|
1200
1200
|
}
|
|
1201
1201
|
if (data.nextToken != null) {
|
|
1202
1202
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1203
1203
|
}
|
|
1204
1204
|
return contents;
|
|
1205
1205
|
};
|
|
1206
|
-
exports.
|
|
1207
|
-
const
|
|
1206
|
+
exports.de_ListThemesCommand = de_ListThemesCommand;
|
|
1207
|
+
const de_ListThemesCommandError = async (output, context) => {
|
|
1208
1208
|
const parsedOutput = {
|
|
1209
1209
|
...output,
|
|
1210
1210
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1213,10 +1213,10 @@ const deserializeAws_restJson1ListThemesCommandError = async (output, context) =
|
|
|
1213
1213
|
switch (errorCode) {
|
|
1214
1214
|
case "InternalServerException":
|
|
1215
1215
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1216
|
-
throw await
|
|
1216
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1217
1217
|
case "InvalidParameterException":
|
|
1218
1218
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1219
|
-
throw await
|
|
1219
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1220
1220
|
default:
|
|
1221
1221
|
const parsedBody = parsedOutput.body;
|
|
1222
1222
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1227,9 +1227,9 @@ const deserializeAws_restJson1ListThemesCommandError = async (output, context) =
|
|
|
1227
1227
|
});
|
|
1228
1228
|
}
|
|
1229
1229
|
};
|
|
1230
|
-
const
|
|
1230
|
+
const de_PutMetadataFlagCommand = async (output, context) => {
|
|
1231
1231
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1232
|
-
return
|
|
1232
|
+
return de_PutMetadataFlagCommandError(output, context);
|
|
1233
1233
|
}
|
|
1234
1234
|
const contents = map({
|
|
1235
1235
|
$metadata: deserializeMetadata(output),
|
|
@@ -1237,8 +1237,8 @@ const deserializeAws_restJson1PutMetadataFlagCommand = async (output, context) =
|
|
|
1237
1237
|
await collectBody(output.body, context);
|
|
1238
1238
|
return contents;
|
|
1239
1239
|
};
|
|
1240
|
-
exports.
|
|
1241
|
-
const
|
|
1240
|
+
exports.de_PutMetadataFlagCommand = de_PutMetadataFlagCommand;
|
|
1241
|
+
const de_PutMetadataFlagCommandError = async (output, context) => {
|
|
1242
1242
|
const parsedOutput = {
|
|
1243
1243
|
...output,
|
|
1244
1244
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1247,10 +1247,10 @@ const deserializeAws_restJson1PutMetadataFlagCommandError = async (output, conte
|
|
|
1247
1247
|
switch (errorCode) {
|
|
1248
1248
|
case "InvalidParameterException":
|
|
1249
1249
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1250
|
-
throw await
|
|
1250
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1251
1251
|
case "UnauthorizedException":
|
|
1252
1252
|
case "com.amazonaws.amplifyuibuilder#UnauthorizedException":
|
|
1253
|
-
throw await
|
|
1253
|
+
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
1254
1254
|
default:
|
|
1255
1255
|
const parsedBody = parsedOutput.body;
|
|
1256
1256
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1261,9 +1261,9 @@ const deserializeAws_restJson1PutMetadataFlagCommandError = async (output, conte
|
|
|
1261
1261
|
});
|
|
1262
1262
|
}
|
|
1263
1263
|
};
|
|
1264
|
-
const
|
|
1264
|
+
const de_RefreshTokenCommand = async (output, context) => {
|
|
1265
1265
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1266
|
-
return
|
|
1266
|
+
return de_RefreshTokenCommandError(output, context);
|
|
1267
1267
|
}
|
|
1268
1268
|
const contents = map({
|
|
1269
1269
|
$metadata: deserializeMetadata(output),
|
|
@@ -1277,8 +1277,8 @@ const deserializeAws_restJson1RefreshTokenCommand = async (output, context) => {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
return contents;
|
|
1279
1279
|
};
|
|
1280
|
-
exports.
|
|
1281
|
-
const
|
|
1280
|
+
exports.de_RefreshTokenCommand = de_RefreshTokenCommand;
|
|
1281
|
+
const de_RefreshTokenCommandError = async (output, context) => {
|
|
1282
1282
|
const parsedOutput = {
|
|
1283
1283
|
...output,
|
|
1284
1284
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1287,7 +1287,7 @@ const deserializeAws_restJson1RefreshTokenCommandError = async (output, context)
|
|
|
1287
1287
|
switch (errorCode) {
|
|
1288
1288
|
case "InvalidParameterException":
|
|
1289
1289
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1290
|
-
throw await
|
|
1290
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1291
1291
|
default:
|
|
1292
1292
|
const parsedBody = parsedOutput.body;
|
|
1293
1293
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1298,19 +1298,19 @@ const deserializeAws_restJson1RefreshTokenCommandError = async (output, context)
|
|
|
1298
1298
|
});
|
|
1299
1299
|
}
|
|
1300
1300
|
};
|
|
1301
|
-
const
|
|
1301
|
+
const de_UpdateComponentCommand = async (output, context) => {
|
|
1302
1302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1303
|
-
return
|
|
1303
|
+
return de_UpdateComponentCommandError(output, context);
|
|
1304
1304
|
}
|
|
1305
1305
|
const contents = map({
|
|
1306
1306
|
$metadata: deserializeMetadata(output),
|
|
1307
1307
|
});
|
|
1308
1308
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1309
|
-
contents.entity =
|
|
1309
|
+
contents.entity = de_Component(data, context);
|
|
1310
1310
|
return contents;
|
|
1311
1311
|
};
|
|
1312
|
-
exports.
|
|
1313
|
-
const
|
|
1312
|
+
exports.de_UpdateComponentCommand = de_UpdateComponentCommand;
|
|
1313
|
+
const de_UpdateComponentCommandError = async (output, context) => {
|
|
1314
1314
|
const parsedOutput = {
|
|
1315
1315
|
...output,
|
|
1316
1316
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1319,13 +1319,13 @@ const deserializeAws_restJson1UpdateComponentCommandError = async (output, conte
|
|
|
1319
1319
|
switch (errorCode) {
|
|
1320
1320
|
case "InternalServerException":
|
|
1321
1321
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1322
|
-
throw await
|
|
1322
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1323
1323
|
case "InvalidParameterException":
|
|
1324
1324
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1325
|
-
throw await
|
|
1325
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1326
1326
|
case "ResourceConflictException":
|
|
1327
1327
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
1328
|
-
throw await
|
|
1328
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1329
1329
|
default:
|
|
1330
1330
|
const parsedBody = parsedOutput.body;
|
|
1331
1331
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1336,19 +1336,19 @@ const deserializeAws_restJson1UpdateComponentCommandError = async (output, conte
|
|
|
1336
1336
|
});
|
|
1337
1337
|
}
|
|
1338
1338
|
};
|
|
1339
|
-
const
|
|
1339
|
+
const de_UpdateFormCommand = async (output, context) => {
|
|
1340
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
1341
|
+
return de_UpdateFormCommandError(output, context);
|
|
1342
1342
|
}
|
|
1343
1343
|
const contents = map({
|
|
1344
1344
|
$metadata: deserializeMetadata(output),
|
|
1345
1345
|
});
|
|
1346
1346
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1347
|
-
contents.entity =
|
|
1347
|
+
contents.entity = de_Form(data, context);
|
|
1348
1348
|
return contents;
|
|
1349
1349
|
};
|
|
1350
|
-
exports.
|
|
1351
|
-
const
|
|
1350
|
+
exports.de_UpdateFormCommand = de_UpdateFormCommand;
|
|
1351
|
+
const de_UpdateFormCommandError = async (output, context) => {
|
|
1352
1352
|
const parsedOutput = {
|
|
1353
1353
|
...output,
|
|
1354
1354
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1357,13 +1357,13 @@ const deserializeAws_restJson1UpdateFormCommandError = async (output, context) =
|
|
|
1357
1357
|
switch (errorCode) {
|
|
1358
1358
|
case "InternalServerException":
|
|
1359
1359
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1360
|
-
throw await
|
|
1360
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1361
1361
|
case "InvalidParameterException":
|
|
1362
1362
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1363
|
-
throw await
|
|
1363
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1364
1364
|
case "ResourceConflictException":
|
|
1365
1365
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
1366
|
-
throw await
|
|
1366
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1367
1367
|
default:
|
|
1368
1368
|
const parsedBody = parsedOutput.body;
|
|
1369
1369
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1374,19 +1374,19 @@ const deserializeAws_restJson1UpdateFormCommandError = async (output, context) =
|
|
|
1374
1374
|
});
|
|
1375
1375
|
}
|
|
1376
1376
|
};
|
|
1377
|
-
const
|
|
1377
|
+
const de_UpdateThemeCommand = async (output, context) => {
|
|
1378
1378
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1379
|
-
return
|
|
1379
|
+
return de_UpdateThemeCommandError(output, context);
|
|
1380
1380
|
}
|
|
1381
1381
|
const contents = map({
|
|
1382
1382
|
$metadata: deserializeMetadata(output),
|
|
1383
1383
|
});
|
|
1384
1384
|
const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
|
|
1385
|
-
contents.entity =
|
|
1385
|
+
contents.entity = de_Theme(data, context);
|
|
1386
1386
|
return contents;
|
|
1387
1387
|
};
|
|
1388
|
-
exports.
|
|
1389
|
-
const
|
|
1388
|
+
exports.de_UpdateThemeCommand = de_UpdateThemeCommand;
|
|
1389
|
+
const de_UpdateThemeCommandError = async (output, context) => {
|
|
1390
1390
|
const parsedOutput = {
|
|
1391
1391
|
...output,
|
|
1392
1392
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1395,13 +1395,13 @@ const deserializeAws_restJson1UpdateThemeCommandError = async (output, context)
|
|
|
1395
1395
|
switch (errorCode) {
|
|
1396
1396
|
case "InternalServerException":
|
|
1397
1397
|
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1398
|
-
throw await
|
|
1398
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1399
1399
|
case "InvalidParameterException":
|
|
1400
1400
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1401
|
-
throw await
|
|
1401
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1402
1402
|
case "ResourceConflictException":
|
|
1403
1403
|
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
1404
|
-
throw await
|
|
1404
|
+
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
1405
1405
|
default:
|
|
1406
1406
|
const parsedBody = parsedOutput.body;
|
|
1407
1407
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1413,7 +1413,7 @@ const deserializeAws_restJson1UpdateThemeCommandError = async (output, context)
|
|
|
1413
1413
|
}
|
|
1414
1414
|
};
|
|
1415
1415
|
const map = smithy_client_1.map;
|
|
1416
|
-
const
|
|
1416
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1417
1417
|
const contents = map({});
|
|
1418
1418
|
const data = parsedOutput.body;
|
|
1419
1419
|
if (data.message != null) {
|
|
@@ -1425,7 +1425,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
1425
1425
|
});
|
|
1426
1426
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1427
1427
|
};
|
|
1428
|
-
const
|
|
1428
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
1429
1429
|
const contents = map({});
|
|
1430
1430
|
const data = parsedOutput.body;
|
|
1431
1431
|
if (data.message != null) {
|
|
@@ -1437,7 +1437,7 @@ const deserializeAws_restJson1InvalidParameterExceptionResponse = async (parsedO
|
|
|
1437
1437
|
});
|
|
1438
1438
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1439
1439
|
};
|
|
1440
|
-
const
|
|
1440
|
+
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
1441
1441
|
const contents = map({});
|
|
1442
1442
|
const data = parsedOutput.body;
|
|
1443
1443
|
if (data.message != null) {
|
|
@@ -1449,7 +1449,7 @@ const deserializeAws_restJson1ResourceConflictExceptionResponse = async (parsedO
|
|
|
1449
1449
|
});
|
|
1450
1450
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1451
1451
|
};
|
|
1452
|
-
const
|
|
1452
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1453
1453
|
const contents = map({});
|
|
1454
1454
|
const data = parsedOutput.body;
|
|
1455
1455
|
if (data.message != null) {
|
|
@@ -1461,7 +1461,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1461
1461
|
});
|
|
1462
1462
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1463
1463
|
};
|
|
1464
|
-
const
|
|
1464
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1465
1465
|
const contents = map({});
|
|
1466
1466
|
const data = parsedOutput.body;
|
|
1467
1467
|
if (data.message != null) {
|
|
@@ -1473,7 +1473,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1473
1473
|
});
|
|
1474
1474
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1475
1475
|
};
|
|
1476
|
-
const
|
|
1476
|
+
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1477
1477
|
const contents = map({});
|
|
1478
1478
|
const data = parsedOutput.body;
|
|
1479
1479
|
if (data.message != null) {
|
|
@@ -1485,122 +1485,120 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
|
|
|
1485
1485
|
});
|
|
1486
1486
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1487
1487
|
};
|
|
1488
|
-
const
|
|
1488
|
+
const se_ActionParameters = (input, context) => {
|
|
1489
1489
|
return {
|
|
1490
|
-
...(input.anchor != null && { anchor:
|
|
1491
|
-
...(input.fields != null && { fields:
|
|
1492
|
-
...(input.global != null && { global:
|
|
1493
|
-
...(input.id != null && { id:
|
|
1490
|
+
...(input.anchor != null && { anchor: se_ComponentProperty(input.anchor, context) }),
|
|
1491
|
+
...(input.fields != null && { fields: se_ComponentProperties(input.fields, context) }),
|
|
1492
|
+
...(input.global != null && { global: se_ComponentProperty(input.global, context) }),
|
|
1493
|
+
...(input.id != null && { id: se_ComponentProperty(input.id, context) }),
|
|
1494
1494
|
...(input.model != null && { model: input.model }),
|
|
1495
|
-
...(input.state != null && { state:
|
|
1496
|
-
...(input.target != null && { target:
|
|
1497
|
-
...(input.type != null && { type:
|
|
1498
|
-
...(input.url != null && { url:
|
|
1495
|
+
...(input.state != null && { state: se_MutationActionSetStateParameter(input.state, context) }),
|
|
1496
|
+
...(input.target != null && { target: se_ComponentProperty(input.target, context) }),
|
|
1497
|
+
...(input.type != null && { type: se_ComponentProperty(input.type, context) }),
|
|
1498
|
+
...(input.url != null && { url: se_ComponentProperty(input.url, context) }),
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
1501
|
-
const
|
|
1501
|
+
const se_ComponentBindingProperties = (input, context) => {
|
|
1502
1502
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1503
1503
|
if (value === null) {
|
|
1504
1504
|
return acc;
|
|
1505
1505
|
}
|
|
1506
|
-
acc[key] =
|
|
1506
|
+
acc[key] = se_ComponentBindingPropertiesValue(value, context);
|
|
1507
1507
|
return acc;
|
|
1508
1508
|
}, {});
|
|
1509
1509
|
};
|
|
1510
|
-
const
|
|
1510
|
+
const se_ComponentBindingPropertiesValue = (input, context) => {
|
|
1511
1511
|
return {
|
|
1512
1512
|
...(input.bindingProperties != null && {
|
|
1513
|
-
bindingProperties:
|
|
1513
|
+
bindingProperties: se_ComponentBindingPropertiesValueProperties(input.bindingProperties, context),
|
|
1514
1514
|
}),
|
|
1515
1515
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1516
1516
|
...(input.type != null && { type: input.type }),
|
|
1517
1517
|
};
|
|
1518
1518
|
};
|
|
1519
|
-
const
|
|
1519
|
+
const se_ComponentBindingPropertiesValueProperties = (input, context) => {
|
|
1520
1520
|
return {
|
|
1521
1521
|
...(input.bucket != null && { bucket: input.bucket }),
|
|
1522
1522
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1523
1523
|
...(input.field != null && { field: input.field }),
|
|
1524
1524
|
...(input.key != null && { key: input.key }),
|
|
1525
1525
|
...(input.model != null && { model: input.model }),
|
|
1526
|
-
...(input.predicates != null && { predicates:
|
|
1526
|
+
...(input.predicates != null && { predicates: se_PredicateList(input.predicates, context) }),
|
|
1527
1527
|
...(input.slotName != null && { slotName: input.slotName }),
|
|
1528
1528
|
...(input.userAttribute != null && { userAttribute: input.userAttribute }),
|
|
1529
1529
|
};
|
|
1530
1530
|
};
|
|
1531
|
-
const
|
|
1531
|
+
const se_ComponentChild = (input, context) => {
|
|
1532
1532
|
return {
|
|
1533
|
-
...(input.children != null && { children:
|
|
1533
|
+
...(input.children != null && { children: se_ComponentChildList(input.children, context) }),
|
|
1534
1534
|
...(input.componentType != null && { componentType: input.componentType }),
|
|
1535
|
-
...(input.events != null && { events:
|
|
1535
|
+
...(input.events != null && { events: se_ComponentEvents(input.events, context) }),
|
|
1536
1536
|
...(input.name != null && { name: input.name }),
|
|
1537
|
-
...(input.properties != null && {
|
|
1538
|
-
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1539
|
-
}),
|
|
1537
|
+
...(input.properties != null && { properties: se_ComponentProperties(input.properties, context) }),
|
|
1540
1538
|
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
1541
1539
|
};
|
|
1542
1540
|
};
|
|
1543
|
-
const
|
|
1541
|
+
const se_ComponentChildList = (input, context) => {
|
|
1544
1542
|
return input
|
|
1545
1543
|
.filter((e) => e != null)
|
|
1546
1544
|
.map((entry) => {
|
|
1547
|
-
return
|
|
1545
|
+
return se_ComponentChild(entry, context);
|
|
1548
1546
|
});
|
|
1549
1547
|
};
|
|
1550
|
-
const
|
|
1548
|
+
const se_ComponentCollectionProperties = (input, context) => {
|
|
1551
1549
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1552
1550
|
if (value === null) {
|
|
1553
1551
|
return acc;
|
|
1554
1552
|
}
|
|
1555
|
-
acc[key] =
|
|
1553
|
+
acc[key] = se_ComponentDataConfiguration(value, context);
|
|
1556
1554
|
return acc;
|
|
1557
1555
|
}, {});
|
|
1558
1556
|
};
|
|
1559
|
-
const
|
|
1557
|
+
const se_ComponentConditionProperty = (input, context) => {
|
|
1560
1558
|
return {
|
|
1561
|
-
...(input.else != null && { else:
|
|
1559
|
+
...(input.else != null && { else: se_ComponentProperty(input.else, context) }),
|
|
1562
1560
|
...(input.field != null && { field: input.field }),
|
|
1563
1561
|
...(input.operand != null && { operand: input.operand }),
|
|
1564
1562
|
...(input.operandType != null && { operandType: input.operandType }),
|
|
1565
1563
|
...(input.operator != null && { operator: input.operator }),
|
|
1566
1564
|
...(input.property != null && { property: input.property }),
|
|
1567
|
-
...(input.then != null && { then:
|
|
1565
|
+
...(input.then != null && { then: se_ComponentProperty(input.then, context) }),
|
|
1568
1566
|
};
|
|
1569
1567
|
};
|
|
1570
|
-
const
|
|
1568
|
+
const se_ComponentDataConfiguration = (input, context) => {
|
|
1571
1569
|
return {
|
|
1572
|
-
...(input.identifiers != null && { identifiers:
|
|
1570
|
+
...(input.identifiers != null && { identifiers: se_IdentifierList(input.identifiers, context) }),
|
|
1573
1571
|
...(input.model != null && { model: input.model }),
|
|
1574
|
-
...(input.predicate != null && { predicate:
|
|
1575
|
-
...(input.sort != null && { sort:
|
|
1572
|
+
...(input.predicate != null && { predicate: se_Predicate(input.predicate, context) }),
|
|
1573
|
+
...(input.sort != null && { sort: se_SortPropertyList(input.sort, context) }),
|
|
1576
1574
|
};
|
|
1577
1575
|
};
|
|
1578
|
-
const
|
|
1576
|
+
const se_ComponentEvent = (input, context) => {
|
|
1579
1577
|
return {
|
|
1580
1578
|
...(input.action != null && { action: input.action }),
|
|
1581
1579
|
...(input.bindingEvent != null && { bindingEvent: input.bindingEvent }),
|
|
1582
|
-
...(input.parameters != null && { parameters:
|
|
1580
|
+
...(input.parameters != null && { parameters: se_ActionParameters(input.parameters, context) }),
|
|
1583
1581
|
};
|
|
1584
1582
|
};
|
|
1585
|
-
const
|
|
1583
|
+
const se_ComponentEvents = (input, context) => {
|
|
1586
1584
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1587
1585
|
if (value === null) {
|
|
1588
1586
|
return acc;
|
|
1589
1587
|
}
|
|
1590
|
-
acc[key] =
|
|
1588
|
+
acc[key] = se_ComponentEvent(value, context);
|
|
1591
1589
|
return acc;
|
|
1592
1590
|
}, {});
|
|
1593
1591
|
};
|
|
1594
|
-
const
|
|
1592
|
+
const se_ComponentOverrides = (input, context) => {
|
|
1595
1593
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1596
1594
|
if (value === null) {
|
|
1597
1595
|
return acc;
|
|
1598
1596
|
}
|
|
1599
|
-
acc[key] =
|
|
1597
|
+
acc[key] = se_ComponentOverridesValue(value, context);
|
|
1600
1598
|
return acc;
|
|
1601
1599
|
}, {});
|
|
1602
1600
|
};
|
|
1603
|
-
const
|
|
1601
|
+
const se_ComponentOverridesValue = (input, context) => {
|
|
1604
1602
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1605
1603
|
if (value === null) {
|
|
1606
1604
|
return acc;
|
|
@@ -1609,29 +1607,27 @@ const serializeAws_restJson1ComponentOverridesValue = (input, context) => {
|
|
|
1609
1607
|
return acc;
|
|
1610
1608
|
}, {});
|
|
1611
1609
|
};
|
|
1612
|
-
const
|
|
1610
|
+
const se_ComponentProperties = (input, context) => {
|
|
1613
1611
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1614
1612
|
if (value === null) {
|
|
1615
1613
|
return acc;
|
|
1616
1614
|
}
|
|
1617
|
-
acc[key] =
|
|
1615
|
+
acc[key] = se_ComponentProperty(value, context);
|
|
1618
1616
|
return acc;
|
|
1619
1617
|
}, {});
|
|
1620
1618
|
};
|
|
1621
|
-
const
|
|
1619
|
+
const se_ComponentProperty = (input, context) => {
|
|
1622
1620
|
return {
|
|
1623
1621
|
...(input.bindingProperties != null && {
|
|
1624
|
-
bindingProperties:
|
|
1622
|
+
bindingProperties: se_ComponentPropertyBindingProperties(input.bindingProperties, context),
|
|
1625
1623
|
}),
|
|
1626
|
-
...(input.bindings != null && { bindings:
|
|
1624
|
+
...(input.bindings != null && { bindings: se_FormBindings(input.bindings, context) }),
|
|
1627
1625
|
...(input.collectionBindingProperties != null && {
|
|
1628
|
-
collectionBindingProperties:
|
|
1626
|
+
collectionBindingProperties: se_ComponentPropertyBindingProperties(input.collectionBindingProperties, context),
|
|
1629
1627
|
}),
|
|
1630
1628
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
1631
|
-
...(input.concat != null && { concat:
|
|
1632
|
-
...(input.condition != null && {
|
|
1633
|
-
condition: serializeAws_restJson1ComponentConditionProperty(input.condition, context),
|
|
1634
|
-
}),
|
|
1629
|
+
...(input.concat != null && { concat: se_ComponentPropertyList(input.concat, context) }),
|
|
1630
|
+
...(input.condition != null && { condition: se_ComponentConditionProperty(input.condition, context) }),
|
|
1635
1631
|
...(input.configured != null && { configured: input.configured }),
|
|
1636
1632
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1637
1633
|
...(input.event != null && { event: input.event }),
|
|
@@ -1643,35 +1639,33 @@ const serializeAws_restJson1ComponentProperty = (input, context) => {
|
|
|
1643
1639
|
...(input.value != null && { value: input.value }),
|
|
1644
1640
|
};
|
|
1645
1641
|
};
|
|
1646
|
-
const
|
|
1642
|
+
const se_ComponentPropertyBindingProperties = (input, context) => {
|
|
1647
1643
|
return {
|
|
1648
1644
|
...(input.field != null && { field: input.field }),
|
|
1649
1645
|
...(input.property != null && { property: input.property }),
|
|
1650
1646
|
};
|
|
1651
1647
|
};
|
|
1652
|
-
const
|
|
1648
|
+
const se_ComponentPropertyList = (input, context) => {
|
|
1653
1649
|
return input
|
|
1654
1650
|
.filter((e) => e != null)
|
|
1655
1651
|
.map((entry) => {
|
|
1656
|
-
return
|
|
1652
|
+
return se_ComponentProperty(entry, context);
|
|
1657
1653
|
});
|
|
1658
1654
|
};
|
|
1659
|
-
const
|
|
1655
|
+
const se_ComponentVariant = (input, context) => {
|
|
1660
1656
|
return {
|
|
1661
|
-
...(input.overrides != null && { overrides:
|
|
1662
|
-
...(input.variantValues != null && {
|
|
1663
|
-
variantValues: serializeAws_restJson1ComponentVariantValues(input.variantValues, context),
|
|
1664
|
-
}),
|
|
1657
|
+
...(input.overrides != null && { overrides: se_ComponentOverrides(input.overrides, context) }),
|
|
1658
|
+
...(input.variantValues != null && { variantValues: se_ComponentVariantValues(input.variantValues, context) }),
|
|
1665
1659
|
};
|
|
1666
1660
|
};
|
|
1667
|
-
const
|
|
1661
|
+
const se_ComponentVariants = (input, context) => {
|
|
1668
1662
|
return input
|
|
1669
1663
|
.filter((e) => e != null)
|
|
1670
1664
|
.map((entry) => {
|
|
1671
|
-
return
|
|
1665
|
+
return se_ComponentVariant(entry, context);
|
|
1672
1666
|
});
|
|
1673
1667
|
};
|
|
1674
|
-
const
|
|
1668
|
+
const se_ComponentVariantValues = (input, context) => {
|
|
1675
1669
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1676
1670
|
if (value === null) {
|
|
1677
1671
|
return acc;
|
|
@@ -1680,78 +1674,74 @@ const serializeAws_restJson1ComponentVariantValues = (input, context) => {
|
|
|
1680
1674
|
return acc;
|
|
1681
1675
|
}, {});
|
|
1682
1676
|
};
|
|
1683
|
-
const
|
|
1677
|
+
const se_CreateComponentData = (input, context) => {
|
|
1684
1678
|
return {
|
|
1685
1679
|
...(input.bindingProperties != null && {
|
|
1686
|
-
bindingProperties:
|
|
1680
|
+
bindingProperties: se_ComponentBindingProperties(input.bindingProperties, context),
|
|
1687
1681
|
}),
|
|
1688
|
-
...(input.children != null && { children:
|
|
1682
|
+
...(input.children != null && { children: se_ComponentChildList(input.children, context) }),
|
|
1689
1683
|
...(input.collectionProperties != null && {
|
|
1690
|
-
collectionProperties:
|
|
1684
|
+
collectionProperties: se_ComponentCollectionProperties(input.collectionProperties, context),
|
|
1691
1685
|
}),
|
|
1692
1686
|
...(input.componentType != null && { componentType: input.componentType }),
|
|
1693
|
-
...(input.events != null && { events:
|
|
1687
|
+
...(input.events != null && { events: se_ComponentEvents(input.events, context) }),
|
|
1694
1688
|
...(input.name != null && { name: input.name }),
|
|
1695
|
-
...(input.overrides != null && { overrides:
|
|
1696
|
-
...(input.properties != null && {
|
|
1697
|
-
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1698
|
-
}),
|
|
1689
|
+
...(input.overrides != null && { overrides: se_ComponentOverrides(input.overrides, context) }),
|
|
1690
|
+
...(input.properties != null && { properties: se_ComponentProperties(input.properties, context) }),
|
|
1699
1691
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1700
1692
|
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
1701
|
-
...(input.tags != null && { tags:
|
|
1702
|
-
...(input.variants != null && { variants:
|
|
1693
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1694
|
+
...(input.variants != null && { variants: se_ComponentVariants(input.variants, context) }),
|
|
1703
1695
|
};
|
|
1704
1696
|
};
|
|
1705
|
-
const
|
|
1697
|
+
const se_CreateFormData = (input, context) => {
|
|
1706
1698
|
return {
|
|
1707
|
-
...(input.cta != null && { cta:
|
|
1708
|
-
...(input.dataType != null && { dataType:
|
|
1709
|
-
...(input.fields != null && { fields:
|
|
1699
|
+
...(input.cta != null && { cta: se_FormCTA(input.cta, context) }),
|
|
1700
|
+
...(input.dataType != null && { dataType: se_FormDataTypeConfig(input.dataType, context) }),
|
|
1701
|
+
...(input.fields != null && { fields: se_FieldsMap(input.fields, context) }),
|
|
1710
1702
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
1711
1703
|
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1712
1704
|
...(input.name != null && { name: input.name }),
|
|
1713
1705
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1714
1706
|
...(input.sectionalElements != null && {
|
|
1715
|
-
sectionalElements:
|
|
1707
|
+
sectionalElements: se_SectionalElementMap(input.sectionalElements, context),
|
|
1716
1708
|
}),
|
|
1717
|
-
...(input.style != null && { style:
|
|
1718
|
-
...(input.tags != null && { tags:
|
|
1709
|
+
...(input.style != null && { style: se_FormStyle(input.style, context) }),
|
|
1710
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1719
1711
|
};
|
|
1720
1712
|
};
|
|
1721
|
-
const
|
|
1713
|
+
const se_CreateThemeData = (input, context) => {
|
|
1722
1714
|
return {
|
|
1723
1715
|
...(input.name != null && { name: input.name }),
|
|
1724
|
-
...(input.overrides != null && { overrides:
|
|
1725
|
-
...(input.tags != null && { tags:
|
|
1726
|
-
...(input.values != null && { values:
|
|
1716
|
+
...(input.overrides != null && { overrides: se_ThemeValuesList(input.overrides, context) }),
|
|
1717
|
+
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
1718
|
+
...(input.values != null && { values: se_ThemeValuesList(input.values, context) }),
|
|
1727
1719
|
};
|
|
1728
1720
|
};
|
|
1729
|
-
const
|
|
1721
|
+
const se_ExchangeCodeForTokenRequestBody = (input, context) => {
|
|
1730
1722
|
return {
|
|
1731
1723
|
...(input.clientId != null && { clientId: input.clientId }),
|
|
1732
1724
|
...(input.code != null && { code: input.code }),
|
|
1733
1725
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
1734
1726
|
};
|
|
1735
1727
|
};
|
|
1736
|
-
const
|
|
1728
|
+
const se_FieldConfig = (input, context) => {
|
|
1737
1729
|
return {
|
|
1738
1730
|
...(input.excluded != null && { excluded: input.excluded }),
|
|
1739
|
-
...(input.inputType != null && { inputType:
|
|
1731
|
+
...(input.inputType != null && { inputType: se_FieldInputConfig(input.inputType, context) }),
|
|
1740
1732
|
...(input.label != null && { label: input.label }),
|
|
1741
|
-
...(input.position != null && { position:
|
|
1742
|
-
...(input.validations != null && {
|
|
1743
|
-
validations: serializeAws_restJson1ValidationsList(input.validations, context),
|
|
1744
|
-
}),
|
|
1733
|
+
...(input.position != null && { position: se_FieldPosition(input.position, context) }),
|
|
1734
|
+
...(input.validations != null && { validations: se_ValidationsList(input.validations, context) }),
|
|
1745
1735
|
};
|
|
1746
1736
|
};
|
|
1747
|
-
const
|
|
1737
|
+
const se_FieldInputConfig = (input, context) => {
|
|
1748
1738
|
return {
|
|
1749
1739
|
...(input.defaultChecked != null && { defaultChecked: input.defaultChecked }),
|
|
1750
1740
|
...(input.defaultCountryCode != null && { defaultCountryCode: input.defaultCountryCode }),
|
|
1751
1741
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1752
1742
|
...(input.descriptiveText != null && { descriptiveText: input.descriptiveText }),
|
|
1753
1743
|
...(input.fileUploaderConfig != null && {
|
|
1754
|
-
fileUploaderConfig:
|
|
1744
|
+
fileUploaderConfig: se_FileUploaderFieldConfig(input.fileUploaderConfig, context),
|
|
1755
1745
|
}),
|
|
1756
1746
|
...(input.isArray != null && { isArray: input.isArray }),
|
|
1757
1747
|
...(input.maxValue != null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
|
|
@@ -1763,12 +1753,10 @@ const serializeAws_restJson1FieldInputConfig = (input, context) => {
|
|
|
1763
1753
|
...(input.step != null && { step: (0, smithy_client_1.serializeFloat)(input.step) }),
|
|
1764
1754
|
...(input.type != null && { type: input.type }),
|
|
1765
1755
|
...(input.value != null && { value: input.value }),
|
|
1766
|
-
...(input.valueMappings != null && {
|
|
1767
|
-
valueMappings: serializeAws_restJson1ValueMappings(input.valueMappings, context),
|
|
1768
|
-
}),
|
|
1756
|
+
...(input.valueMappings != null && { valueMappings: se_ValueMappings(input.valueMappings, context) }),
|
|
1769
1757
|
};
|
|
1770
1758
|
};
|
|
1771
|
-
const
|
|
1759
|
+
const se_FieldPosition = (input, context) => {
|
|
1772
1760
|
return models_0_1.FieldPosition.visit(input, {
|
|
1773
1761
|
below: (value) => ({ below: value }),
|
|
1774
1762
|
fixed: (value) => ({ fixed: value }),
|
|
@@ -1776,28 +1764,26 @@ const serializeAws_restJson1FieldPosition = (input, context) => {
|
|
|
1776
1764
|
_: (name, value) => ({ name: value }),
|
|
1777
1765
|
});
|
|
1778
1766
|
};
|
|
1779
|
-
const
|
|
1767
|
+
const se_FieldsMap = (input, context) => {
|
|
1780
1768
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1781
1769
|
if (value === null) {
|
|
1782
1770
|
return acc;
|
|
1783
1771
|
}
|
|
1784
|
-
acc[key] =
|
|
1772
|
+
acc[key] = se_FieldConfig(value, context);
|
|
1785
1773
|
return acc;
|
|
1786
1774
|
}, {});
|
|
1787
1775
|
};
|
|
1788
|
-
const
|
|
1776
|
+
const se_FieldValidationConfiguration = (input, context) => {
|
|
1789
1777
|
return {
|
|
1790
|
-
...(input.numValues != null && { numValues:
|
|
1791
|
-
...(input.strValues != null && { strValues:
|
|
1778
|
+
...(input.numValues != null && { numValues: se_NumValues(input.numValues, context) }),
|
|
1779
|
+
...(input.strValues != null && { strValues: se_StrValues(input.strValues, context) }),
|
|
1792
1780
|
...(input.type != null && { type: input.type }),
|
|
1793
1781
|
...(input.validationMessage != null && { validationMessage: input.validationMessage }),
|
|
1794
1782
|
};
|
|
1795
1783
|
};
|
|
1796
|
-
const
|
|
1784
|
+
const se_FileUploaderFieldConfig = (input, context) => {
|
|
1797
1785
|
return {
|
|
1798
|
-
...(input.acceptedFileTypes != null && {
|
|
1799
|
-
acceptedFileTypes: serializeAws_restJson1StrValues(input.acceptedFileTypes, context),
|
|
1800
|
-
}),
|
|
1786
|
+
...(input.acceptedFileTypes != null && { acceptedFileTypes: se_StrValues(input.acceptedFileTypes, context) }),
|
|
1801
1787
|
...(input.accessLevel != null && { accessLevel: input.accessLevel }),
|
|
1802
1788
|
...(input.isResumable != null && { isResumable: input.isResumable }),
|
|
1803
1789
|
...(input.maxFileCount != null && { maxFileCount: input.maxFileCount }),
|
|
@@ -1805,195 +1791,189 @@ const serializeAws_restJson1FileUploaderFieldConfig = (input, context) => {
|
|
|
1805
1791
|
...(input.showThumbnails != null && { showThumbnails: input.showThumbnails }),
|
|
1806
1792
|
};
|
|
1807
1793
|
};
|
|
1808
|
-
const
|
|
1794
|
+
const se_FormBindingElement = (input, context) => {
|
|
1809
1795
|
return {
|
|
1810
1796
|
...(input.element != null && { element: input.element }),
|
|
1811
1797
|
...(input.property != null && { property: input.property }),
|
|
1812
1798
|
};
|
|
1813
1799
|
};
|
|
1814
|
-
const
|
|
1800
|
+
const se_FormBindings = (input, context) => {
|
|
1815
1801
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1816
1802
|
if (value === null) {
|
|
1817
1803
|
return acc;
|
|
1818
1804
|
}
|
|
1819
|
-
acc[key] =
|
|
1805
|
+
acc[key] = se_FormBindingElement(value, context);
|
|
1820
1806
|
return acc;
|
|
1821
1807
|
}, {});
|
|
1822
1808
|
};
|
|
1823
|
-
const
|
|
1809
|
+
const se_FormButton = (input, context) => {
|
|
1824
1810
|
return {
|
|
1825
1811
|
...(input.children != null && { children: input.children }),
|
|
1826
1812
|
...(input.excluded != null && { excluded: input.excluded }),
|
|
1827
|
-
...(input.position != null && { position:
|
|
1813
|
+
...(input.position != null && { position: se_FieldPosition(input.position, context) }),
|
|
1828
1814
|
};
|
|
1829
1815
|
};
|
|
1830
|
-
const
|
|
1816
|
+
const se_FormCTA = (input, context) => {
|
|
1831
1817
|
return {
|
|
1832
|
-
...(input.cancel != null && { cancel:
|
|
1833
|
-
...(input.clear != null && { clear:
|
|
1818
|
+
...(input.cancel != null && { cancel: se_FormButton(input.cancel, context) }),
|
|
1819
|
+
...(input.clear != null && { clear: se_FormButton(input.clear, context) }),
|
|
1834
1820
|
...(input.position != null && { position: input.position }),
|
|
1835
|
-
...(input.submit != null && { submit:
|
|
1821
|
+
...(input.submit != null && { submit: se_FormButton(input.submit, context) }),
|
|
1836
1822
|
};
|
|
1837
1823
|
};
|
|
1838
|
-
const
|
|
1824
|
+
const se_FormDataTypeConfig = (input, context) => {
|
|
1839
1825
|
return {
|
|
1840
1826
|
...(input.dataSourceType != null && { dataSourceType: input.dataSourceType }),
|
|
1841
1827
|
...(input.dataTypeName != null && { dataTypeName: input.dataTypeName }),
|
|
1842
1828
|
};
|
|
1843
1829
|
};
|
|
1844
|
-
const
|
|
1830
|
+
const se_FormInputBindingProperties = (input, context) => {
|
|
1845
1831
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1846
1832
|
if (value === null) {
|
|
1847
1833
|
return acc;
|
|
1848
1834
|
}
|
|
1849
|
-
acc[key] =
|
|
1835
|
+
acc[key] = se_FormInputBindingPropertiesValue(value, context);
|
|
1850
1836
|
return acc;
|
|
1851
1837
|
}, {});
|
|
1852
1838
|
};
|
|
1853
|
-
const
|
|
1839
|
+
const se_FormInputBindingPropertiesValue = (input, context) => {
|
|
1854
1840
|
return {
|
|
1855
1841
|
...(input.bindingProperties != null && {
|
|
1856
|
-
bindingProperties:
|
|
1842
|
+
bindingProperties: se_FormInputBindingPropertiesValueProperties(input.bindingProperties, context),
|
|
1857
1843
|
}),
|
|
1858
1844
|
...(input.type != null && { type: input.type }),
|
|
1859
1845
|
};
|
|
1860
1846
|
};
|
|
1861
|
-
const
|
|
1847
|
+
const se_FormInputBindingPropertiesValueProperties = (input, context) => {
|
|
1862
1848
|
return {
|
|
1863
1849
|
...(input.model != null && { model: input.model }),
|
|
1864
1850
|
};
|
|
1865
1851
|
};
|
|
1866
|
-
const
|
|
1852
|
+
const se_FormInputValueProperty = (input, context) => {
|
|
1867
1853
|
return {
|
|
1868
1854
|
...(input.bindingProperties != null && {
|
|
1869
|
-
bindingProperties:
|
|
1855
|
+
bindingProperties: se_FormInputValuePropertyBindingProperties(input.bindingProperties, context),
|
|
1870
1856
|
}),
|
|
1871
|
-
...(input.concat != null && { concat:
|
|
1857
|
+
...(input.concat != null && { concat: se_FormInputValuePropertyList(input.concat, context) }),
|
|
1872
1858
|
...(input.value != null && { value: input.value }),
|
|
1873
1859
|
};
|
|
1874
1860
|
};
|
|
1875
|
-
const
|
|
1861
|
+
const se_FormInputValuePropertyBindingProperties = (input, context) => {
|
|
1876
1862
|
return {
|
|
1877
1863
|
...(input.field != null && { field: input.field }),
|
|
1878
1864
|
...(input.property != null && { property: input.property }),
|
|
1879
1865
|
};
|
|
1880
1866
|
};
|
|
1881
|
-
const
|
|
1867
|
+
const se_FormInputValuePropertyList = (input, context) => {
|
|
1882
1868
|
return input
|
|
1883
1869
|
.filter((e) => e != null)
|
|
1884
1870
|
.map((entry) => {
|
|
1885
|
-
return
|
|
1871
|
+
return se_FormInputValueProperty(entry, context);
|
|
1886
1872
|
});
|
|
1887
1873
|
};
|
|
1888
|
-
const
|
|
1874
|
+
const se_FormStyle = (input, context) => {
|
|
1889
1875
|
return {
|
|
1890
|
-
...(input.horizontalGap != null && {
|
|
1891
|
-
|
|
1892
|
-
}),
|
|
1893
|
-
...(input.outerPadding != null && {
|
|
1894
|
-
outerPadding: serializeAws_restJson1FormStyleConfig(input.outerPadding, context),
|
|
1895
|
-
}),
|
|
1896
|
-
...(input.verticalGap != null && {
|
|
1897
|
-
verticalGap: serializeAws_restJson1FormStyleConfig(input.verticalGap, context),
|
|
1898
|
-
}),
|
|
1876
|
+
...(input.horizontalGap != null && { horizontalGap: se_FormStyleConfig(input.horizontalGap, context) }),
|
|
1877
|
+
...(input.outerPadding != null && { outerPadding: se_FormStyleConfig(input.outerPadding, context) }),
|
|
1878
|
+
...(input.verticalGap != null && { verticalGap: se_FormStyleConfig(input.verticalGap, context) }),
|
|
1899
1879
|
};
|
|
1900
1880
|
};
|
|
1901
|
-
const
|
|
1881
|
+
const se_FormStyleConfig = (input, context) => {
|
|
1902
1882
|
return models_0_1.FormStyleConfig.visit(input, {
|
|
1903
1883
|
tokenReference: (value) => ({ tokenReference: value }),
|
|
1904
1884
|
value: (value) => ({ value: value }),
|
|
1905
1885
|
_: (name, value) => ({ name: value }),
|
|
1906
1886
|
});
|
|
1907
1887
|
};
|
|
1908
|
-
const
|
|
1888
|
+
const se_IdentifierList = (input, context) => {
|
|
1909
1889
|
return input
|
|
1910
1890
|
.filter((e) => e != null)
|
|
1911
1891
|
.map((entry) => {
|
|
1912
1892
|
return entry;
|
|
1913
1893
|
});
|
|
1914
1894
|
};
|
|
1915
|
-
const
|
|
1895
|
+
const se_MutationActionSetStateParameter = (input, context) => {
|
|
1916
1896
|
return {
|
|
1917
1897
|
...(input.componentName != null && { componentName: input.componentName }),
|
|
1918
1898
|
...(input.property != null && { property: input.property }),
|
|
1919
|
-
...(input.set != null && { set:
|
|
1899
|
+
...(input.set != null && { set: se_ComponentProperty(input.set, context) }),
|
|
1920
1900
|
};
|
|
1921
1901
|
};
|
|
1922
|
-
const
|
|
1902
|
+
const se_NumValues = (input, context) => {
|
|
1923
1903
|
return input
|
|
1924
1904
|
.filter((e) => e != null)
|
|
1925
1905
|
.map((entry) => {
|
|
1926
1906
|
return entry;
|
|
1927
1907
|
});
|
|
1928
1908
|
};
|
|
1929
|
-
const
|
|
1909
|
+
const se_Predicate = (input, context) => {
|
|
1930
1910
|
return {
|
|
1931
|
-
...(input.and != null && { and:
|
|
1911
|
+
...(input.and != null && { and: se_PredicateList(input.and, context) }),
|
|
1932
1912
|
...(input.field != null && { field: input.field }),
|
|
1933
1913
|
...(input.operand != null && { operand: input.operand }),
|
|
1934
1914
|
...(input.operandType != null && { operandType: input.operandType }),
|
|
1935
1915
|
...(input.operator != null && { operator: input.operator }),
|
|
1936
|
-
...(input.or != null && { or:
|
|
1916
|
+
...(input.or != null && { or: se_PredicateList(input.or, context) }),
|
|
1937
1917
|
};
|
|
1938
1918
|
};
|
|
1939
|
-
const
|
|
1919
|
+
const se_PredicateList = (input, context) => {
|
|
1940
1920
|
return input
|
|
1941
1921
|
.filter((e) => e != null)
|
|
1942
1922
|
.map((entry) => {
|
|
1943
|
-
return
|
|
1923
|
+
return se_Predicate(entry, context);
|
|
1944
1924
|
});
|
|
1945
1925
|
};
|
|
1946
|
-
const
|
|
1926
|
+
const se_PutMetadataFlagBody = (input, context) => {
|
|
1947
1927
|
return {
|
|
1948
1928
|
...(input.newValue != null && { newValue: input.newValue }),
|
|
1949
1929
|
};
|
|
1950
1930
|
};
|
|
1951
|
-
const
|
|
1931
|
+
const se_RefreshTokenRequestBody = (input, context) => {
|
|
1952
1932
|
return {
|
|
1953
1933
|
...(input.clientId != null && { clientId: input.clientId }),
|
|
1954
1934
|
...(input.token != null && { token: input.token }),
|
|
1955
1935
|
};
|
|
1956
1936
|
};
|
|
1957
|
-
const
|
|
1937
|
+
const se_SectionalElement = (input, context) => {
|
|
1958
1938
|
return {
|
|
1959
1939
|
...(input.excluded != null && { excluded: input.excluded }),
|
|
1960
1940
|
...(input.level != null && { level: input.level }),
|
|
1961
1941
|
...(input.orientation != null && { orientation: input.orientation }),
|
|
1962
|
-
...(input.position != null && { position:
|
|
1942
|
+
...(input.position != null && { position: se_FieldPosition(input.position, context) }),
|
|
1963
1943
|
...(input.text != null && { text: input.text }),
|
|
1964
1944
|
...(input.type != null && { type: input.type }),
|
|
1965
1945
|
};
|
|
1966
1946
|
};
|
|
1967
|
-
const
|
|
1947
|
+
const se_SectionalElementMap = (input, context) => {
|
|
1968
1948
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1969
1949
|
if (value === null) {
|
|
1970
1950
|
return acc;
|
|
1971
1951
|
}
|
|
1972
|
-
acc[key] =
|
|
1952
|
+
acc[key] = se_SectionalElement(value, context);
|
|
1973
1953
|
return acc;
|
|
1974
1954
|
}, {});
|
|
1975
1955
|
};
|
|
1976
|
-
const
|
|
1956
|
+
const se_SortProperty = (input, context) => {
|
|
1977
1957
|
return {
|
|
1978
1958
|
...(input.direction != null && { direction: input.direction }),
|
|
1979
1959
|
...(input.field != null && { field: input.field }),
|
|
1980
1960
|
};
|
|
1981
1961
|
};
|
|
1982
|
-
const
|
|
1962
|
+
const se_SortPropertyList = (input, context) => {
|
|
1983
1963
|
return input
|
|
1984
1964
|
.filter((e) => e != null)
|
|
1985
1965
|
.map((entry) => {
|
|
1986
|
-
return
|
|
1966
|
+
return se_SortProperty(entry, context);
|
|
1987
1967
|
});
|
|
1988
1968
|
};
|
|
1989
|
-
const
|
|
1969
|
+
const se_StrValues = (input, context) => {
|
|
1990
1970
|
return input
|
|
1991
1971
|
.filter((e) => e != null)
|
|
1992
1972
|
.map((entry) => {
|
|
1993
1973
|
return entry;
|
|
1994
1974
|
});
|
|
1995
1975
|
};
|
|
1996
|
-
const
|
|
1976
|
+
const se_Tags = (input, context) => {
|
|
1997
1977
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1998
1978
|
if (value === null) {
|
|
1999
1979
|
return acc;
|
|
@@ -2002,254 +1982,248 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
2002
1982
|
return acc;
|
|
2003
1983
|
}, {});
|
|
2004
1984
|
};
|
|
2005
|
-
const
|
|
1985
|
+
const se_ThemeValue = (input, context) => {
|
|
2006
1986
|
return {
|
|
2007
|
-
...(input.children != null && { children:
|
|
1987
|
+
...(input.children != null && { children: se_ThemeValuesList(input.children, context) }),
|
|
2008
1988
|
...(input.value != null && { value: input.value }),
|
|
2009
1989
|
};
|
|
2010
1990
|
};
|
|
2011
|
-
const
|
|
1991
|
+
const se_ThemeValues = (input, context) => {
|
|
2012
1992
|
return {
|
|
2013
1993
|
...(input.key != null && { key: input.key }),
|
|
2014
|
-
...(input.value != null && { value:
|
|
1994
|
+
...(input.value != null && { value: se_ThemeValue(input.value, context) }),
|
|
2015
1995
|
};
|
|
2016
1996
|
};
|
|
2017
|
-
const
|
|
1997
|
+
const se_ThemeValuesList = (input, context) => {
|
|
2018
1998
|
return input
|
|
2019
1999
|
.filter((e) => e != null)
|
|
2020
2000
|
.map((entry) => {
|
|
2021
|
-
return
|
|
2001
|
+
return se_ThemeValues(entry, context);
|
|
2022
2002
|
});
|
|
2023
2003
|
};
|
|
2024
|
-
const
|
|
2004
|
+
const se_UpdateComponentData = (input, context) => {
|
|
2025
2005
|
return {
|
|
2026
2006
|
...(input.bindingProperties != null && {
|
|
2027
|
-
bindingProperties:
|
|
2007
|
+
bindingProperties: se_ComponentBindingProperties(input.bindingProperties, context),
|
|
2028
2008
|
}),
|
|
2029
|
-
...(input.children != null && { children:
|
|
2009
|
+
...(input.children != null && { children: se_ComponentChildList(input.children, context) }),
|
|
2030
2010
|
...(input.collectionProperties != null && {
|
|
2031
|
-
collectionProperties:
|
|
2011
|
+
collectionProperties: se_ComponentCollectionProperties(input.collectionProperties, context),
|
|
2032
2012
|
}),
|
|
2033
2013
|
...(input.componentType != null && { componentType: input.componentType }),
|
|
2034
|
-
...(input.events != null && { events:
|
|
2014
|
+
...(input.events != null && { events: se_ComponentEvents(input.events, context) }),
|
|
2035
2015
|
...(input.id != null && { id: input.id }),
|
|
2036
2016
|
...(input.name != null && { name: input.name }),
|
|
2037
|
-
...(input.overrides != null && { overrides:
|
|
2038
|
-
...(input.properties != null && {
|
|
2039
|
-
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
2040
|
-
}),
|
|
2017
|
+
...(input.overrides != null && { overrides: se_ComponentOverrides(input.overrides, context) }),
|
|
2018
|
+
...(input.properties != null && { properties: se_ComponentProperties(input.properties, context) }),
|
|
2041
2019
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
2042
2020
|
...(input.sourceId != null && { sourceId: input.sourceId }),
|
|
2043
|
-
...(input.variants != null && { variants:
|
|
2021
|
+
...(input.variants != null && { variants: se_ComponentVariants(input.variants, context) }),
|
|
2044
2022
|
};
|
|
2045
2023
|
};
|
|
2046
|
-
const
|
|
2024
|
+
const se_UpdateFormData = (input, context) => {
|
|
2047
2025
|
return {
|
|
2048
|
-
...(input.cta != null && { cta:
|
|
2049
|
-
...(input.dataType != null && { dataType:
|
|
2050
|
-
...(input.fields != null && { fields:
|
|
2026
|
+
...(input.cta != null && { cta: se_FormCTA(input.cta, context) }),
|
|
2027
|
+
...(input.dataType != null && { dataType: se_FormDataTypeConfig(input.dataType, context) }),
|
|
2028
|
+
...(input.fields != null && { fields: se_FieldsMap(input.fields, context) }),
|
|
2051
2029
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
2052
2030
|
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
2053
2031
|
...(input.name != null && { name: input.name }),
|
|
2054
2032
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
2055
2033
|
...(input.sectionalElements != null && {
|
|
2056
|
-
sectionalElements:
|
|
2034
|
+
sectionalElements: se_SectionalElementMap(input.sectionalElements, context),
|
|
2057
2035
|
}),
|
|
2058
|
-
...(input.style != null && { style:
|
|
2036
|
+
...(input.style != null && { style: se_FormStyle(input.style, context) }),
|
|
2059
2037
|
};
|
|
2060
2038
|
};
|
|
2061
|
-
const
|
|
2039
|
+
const se_UpdateThemeData = (input, context) => {
|
|
2062
2040
|
return {
|
|
2063
2041
|
...(input.id != null && { id: input.id }),
|
|
2064
2042
|
...(input.name != null && { name: input.name }),
|
|
2065
|
-
...(input.overrides != null && { overrides:
|
|
2066
|
-
...(input.values != null && { values:
|
|
2043
|
+
...(input.overrides != null && { overrides: se_ThemeValuesList(input.overrides, context) }),
|
|
2044
|
+
...(input.values != null && { values: se_ThemeValuesList(input.values, context) }),
|
|
2067
2045
|
};
|
|
2068
2046
|
};
|
|
2069
|
-
const
|
|
2047
|
+
const se_ValidationsList = (input, context) => {
|
|
2070
2048
|
return input
|
|
2071
2049
|
.filter((e) => e != null)
|
|
2072
2050
|
.map((entry) => {
|
|
2073
|
-
return
|
|
2051
|
+
return se_FieldValidationConfiguration(entry, context);
|
|
2074
2052
|
});
|
|
2075
2053
|
};
|
|
2076
|
-
const
|
|
2054
|
+
const se_ValueMapping = (input, context) => {
|
|
2077
2055
|
return {
|
|
2078
|
-
...(input.displayValue != null && {
|
|
2079
|
-
|
|
2080
|
-
}),
|
|
2081
|
-
...(input.value != null && { value: serializeAws_restJson1FormInputValueProperty(input.value, context) }),
|
|
2056
|
+
...(input.displayValue != null && { displayValue: se_FormInputValueProperty(input.displayValue, context) }),
|
|
2057
|
+
...(input.value != null && { value: se_FormInputValueProperty(input.value, context) }),
|
|
2082
2058
|
};
|
|
2083
2059
|
};
|
|
2084
|
-
const
|
|
2060
|
+
const se_ValueMappingList = (input, context) => {
|
|
2085
2061
|
return input
|
|
2086
2062
|
.filter((e) => e != null)
|
|
2087
2063
|
.map((entry) => {
|
|
2088
|
-
return
|
|
2064
|
+
return se_ValueMapping(entry, context);
|
|
2089
2065
|
});
|
|
2090
2066
|
};
|
|
2091
|
-
const
|
|
2067
|
+
const se_ValueMappings = (input, context) => {
|
|
2092
2068
|
return {
|
|
2093
2069
|
...(input.bindingProperties != null && {
|
|
2094
|
-
bindingProperties:
|
|
2070
|
+
bindingProperties: se_FormInputBindingProperties(input.bindingProperties, context),
|
|
2095
2071
|
}),
|
|
2096
|
-
...(input.values != null && { values:
|
|
2072
|
+
...(input.values != null && { values: se_ValueMappingList(input.values, context) }),
|
|
2097
2073
|
};
|
|
2098
2074
|
};
|
|
2099
|
-
const
|
|
2075
|
+
const de_ActionParameters = (output, context) => {
|
|
2100
2076
|
return {
|
|
2101
|
-
anchor: output.anchor != null ?
|
|
2102
|
-
fields: output.fields != null ?
|
|
2103
|
-
global: output.global != null ?
|
|
2104
|
-
id: output.id != null ?
|
|
2077
|
+
anchor: output.anchor != null ? de_ComponentProperty(output.anchor, context) : undefined,
|
|
2078
|
+
fields: output.fields != null ? de_ComponentProperties(output.fields, context) : undefined,
|
|
2079
|
+
global: output.global != null ? de_ComponentProperty(output.global, context) : undefined,
|
|
2080
|
+
id: output.id != null ? de_ComponentProperty(output.id, context) : undefined,
|
|
2105
2081
|
model: (0, smithy_client_1.expectString)(output.model),
|
|
2106
|
-
state: output.state != null ?
|
|
2107
|
-
target: output.target != null ?
|
|
2108
|
-
type: output.type != null ?
|
|
2109
|
-
url: output.url != null ?
|
|
2082
|
+
state: output.state != null ? de_MutationActionSetStateParameter(output.state, context) : undefined,
|
|
2083
|
+
target: output.target != null ? de_ComponentProperty(output.target, context) : undefined,
|
|
2084
|
+
type: output.type != null ? de_ComponentProperty(output.type, context) : undefined,
|
|
2085
|
+
url: output.url != null ? de_ComponentProperty(output.url, context) : undefined,
|
|
2110
2086
|
};
|
|
2111
2087
|
};
|
|
2112
|
-
const
|
|
2088
|
+
const de_Component = (output, context) => {
|
|
2113
2089
|
return {
|
|
2114
2090
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
2115
|
-
bindingProperties: output.bindingProperties != null
|
|
2116
|
-
|
|
2117
|
-
: undefined,
|
|
2118
|
-
children: output.children != null ? deserializeAws_restJson1ComponentChildList(output.children, context) : undefined,
|
|
2091
|
+
bindingProperties: output.bindingProperties != null ? de_ComponentBindingProperties(output.bindingProperties, context) : undefined,
|
|
2092
|
+
children: output.children != null ? de_ComponentChildList(output.children, context) : undefined,
|
|
2119
2093
|
collectionProperties: output.collectionProperties != null
|
|
2120
|
-
?
|
|
2094
|
+
? de_ComponentCollectionProperties(output.collectionProperties, context)
|
|
2121
2095
|
: undefined,
|
|
2122
2096
|
componentType: (0, smithy_client_1.expectString)(output.componentType),
|
|
2123
2097
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
2124
2098
|
environmentName: (0, smithy_client_1.expectString)(output.environmentName),
|
|
2125
|
-
events: output.events != null ?
|
|
2099
|
+
events: output.events != null ? de_ComponentEvents(output.events, context) : undefined,
|
|
2126
2100
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2127
2101
|
modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.modifiedAt)) : undefined,
|
|
2128
2102
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2129
|
-
overrides: output.overrides != null ?
|
|
2130
|
-
properties: output.properties != null ?
|
|
2103
|
+
overrides: output.overrides != null ? de_ComponentOverrides(output.overrides, context) : undefined,
|
|
2104
|
+
properties: output.properties != null ? de_ComponentProperties(output.properties, context) : undefined,
|
|
2131
2105
|
schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
2132
2106
|
sourceId: (0, smithy_client_1.expectString)(output.sourceId),
|
|
2133
|
-
tags: output.tags != null ?
|
|
2134
|
-
variants: output.variants != null ?
|
|
2107
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2108
|
+
variants: output.variants != null ? de_ComponentVariants(output.variants, context) : undefined,
|
|
2135
2109
|
};
|
|
2136
2110
|
};
|
|
2137
|
-
const
|
|
2111
|
+
const de_ComponentBindingProperties = (output, context) => {
|
|
2138
2112
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2139
2113
|
if (value === null) {
|
|
2140
2114
|
return acc;
|
|
2141
2115
|
}
|
|
2142
|
-
acc[key] =
|
|
2116
|
+
acc[key] = de_ComponentBindingPropertiesValue(value, context);
|
|
2143
2117
|
return acc;
|
|
2144
2118
|
}, {});
|
|
2145
2119
|
};
|
|
2146
|
-
const
|
|
2120
|
+
const de_ComponentBindingPropertiesValue = (output, context) => {
|
|
2147
2121
|
return {
|
|
2148
2122
|
bindingProperties: output.bindingProperties != null
|
|
2149
|
-
?
|
|
2123
|
+
? de_ComponentBindingPropertiesValueProperties(output.bindingProperties, context)
|
|
2150
2124
|
: undefined,
|
|
2151
2125
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
2152
2126
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2153
2127
|
};
|
|
2154
2128
|
};
|
|
2155
|
-
const
|
|
2129
|
+
const de_ComponentBindingPropertiesValueProperties = (output, context) => {
|
|
2156
2130
|
return {
|
|
2157
2131
|
bucket: (0, smithy_client_1.expectString)(output.bucket),
|
|
2158
2132
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
2159
2133
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2160
2134
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
2161
2135
|
model: (0, smithy_client_1.expectString)(output.model),
|
|
2162
|
-
predicates: output.predicates != null ?
|
|
2136
|
+
predicates: output.predicates != null ? de_PredicateList(output.predicates, context) : undefined,
|
|
2163
2137
|
slotName: (0, smithy_client_1.expectString)(output.slotName),
|
|
2164
2138
|
userAttribute: (0, smithy_client_1.expectString)(output.userAttribute),
|
|
2165
2139
|
};
|
|
2166
2140
|
};
|
|
2167
|
-
const
|
|
2141
|
+
const de_ComponentChild = (output, context) => {
|
|
2168
2142
|
return {
|
|
2169
|
-
children: output.children != null ?
|
|
2143
|
+
children: output.children != null ? de_ComponentChildList(output.children, context) : undefined,
|
|
2170
2144
|
componentType: (0, smithy_client_1.expectString)(output.componentType),
|
|
2171
|
-
events: output.events != null ?
|
|
2145
|
+
events: output.events != null ? de_ComponentEvents(output.events, context) : undefined,
|
|
2172
2146
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2173
|
-
properties: output.properties != null ?
|
|
2147
|
+
properties: output.properties != null ? de_ComponentProperties(output.properties, context) : undefined,
|
|
2174
2148
|
sourceId: (0, smithy_client_1.expectString)(output.sourceId),
|
|
2175
2149
|
};
|
|
2176
2150
|
};
|
|
2177
|
-
const
|
|
2151
|
+
const de_ComponentChildList = (output, context) => {
|
|
2178
2152
|
const retVal = (output || [])
|
|
2179
2153
|
.filter((e) => e != null)
|
|
2180
2154
|
.map((entry) => {
|
|
2181
2155
|
if (entry === null) {
|
|
2182
2156
|
return null;
|
|
2183
2157
|
}
|
|
2184
|
-
return
|
|
2158
|
+
return de_ComponentChild(entry, context);
|
|
2185
2159
|
});
|
|
2186
2160
|
return retVal;
|
|
2187
2161
|
};
|
|
2188
|
-
const
|
|
2162
|
+
const de_ComponentCollectionProperties = (output, context) => {
|
|
2189
2163
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2190
2164
|
if (value === null) {
|
|
2191
2165
|
return acc;
|
|
2192
2166
|
}
|
|
2193
|
-
acc[key] =
|
|
2167
|
+
acc[key] = de_ComponentDataConfiguration(value, context);
|
|
2194
2168
|
return acc;
|
|
2195
2169
|
}, {});
|
|
2196
2170
|
};
|
|
2197
|
-
const
|
|
2171
|
+
const de_ComponentConditionProperty = (output, context) => {
|
|
2198
2172
|
return {
|
|
2199
|
-
else: output.else != null ?
|
|
2173
|
+
else: output.else != null ? de_ComponentProperty(output.else, context) : undefined,
|
|
2200
2174
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2201
2175
|
operand: (0, smithy_client_1.expectString)(output.operand),
|
|
2202
2176
|
operandType: (0, smithy_client_1.expectString)(output.operandType),
|
|
2203
2177
|
operator: (0, smithy_client_1.expectString)(output.operator),
|
|
2204
2178
|
property: (0, smithy_client_1.expectString)(output.property),
|
|
2205
|
-
then: output.then != null ?
|
|
2179
|
+
then: output.then != null ? de_ComponentProperty(output.then, context) : undefined,
|
|
2206
2180
|
};
|
|
2207
2181
|
};
|
|
2208
|
-
const
|
|
2182
|
+
const de_ComponentDataConfiguration = (output, context) => {
|
|
2209
2183
|
return {
|
|
2210
|
-
identifiers: output.identifiers != null ?
|
|
2184
|
+
identifiers: output.identifiers != null ? de_IdentifierList(output.identifiers, context) : undefined,
|
|
2211
2185
|
model: (0, smithy_client_1.expectString)(output.model),
|
|
2212
|
-
predicate: output.predicate != null ?
|
|
2213
|
-
sort: output.sort != null ?
|
|
2186
|
+
predicate: output.predicate != null ? de_Predicate(output.predicate, context) : undefined,
|
|
2187
|
+
sort: output.sort != null ? de_SortPropertyList(output.sort, context) : undefined,
|
|
2214
2188
|
};
|
|
2215
2189
|
};
|
|
2216
|
-
const
|
|
2190
|
+
const de_ComponentEvent = (output, context) => {
|
|
2217
2191
|
return {
|
|
2218
2192
|
action: (0, smithy_client_1.expectString)(output.action),
|
|
2219
2193
|
bindingEvent: (0, smithy_client_1.expectString)(output.bindingEvent),
|
|
2220
|
-
parameters: output.parameters != null ?
|
|
2194
|
+
parameters: output.parameters != null ? de_ActionParameters(output.parameters, context) : undefined,
|
|
2221
2195
|
};
|
|
2222
2196
|
};
|
|
2223
|
-
const
|
|
2197
|
+
const de_ComponentEvents = (output, context) => {
|
|
2224
2198
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2225
2199
|
if (value === null) {
|
|
2226
2200
|
return acc;
|
|
2227
2201
|
}
|
|
2228
|
-
acc[key] =
|
|
2202
|
+
acc[key] = de_ComponentEvent(value, context);
|
|
2229
2203
|
return acc;
|
|
2230
2204
|
}, {});
|
|
2231
2205
|
};
|
|
2232
|
-
const
|
|
2206
|
+
const de_ComponentList = (output, context) => {
|
|
2233
2207
|
const retVal = (output || [])
|
|
2234
2208
|
.filter((e) => e != null)
|
|
2235
2209
|
.map((entry) => {
|
|
2236
2210
|
if (entry === null) {
|
|
2237
2211
|
return null;
|
|
2238
2212
|
}
|
|
2239
|
-
return
|
|
2213
|
+
return de_Component(entry, context);
|
|
2240
2214
|
});
|
|
2241
2215
|
return retVal;
|
|
2242
2216
|
};
|
|
2243
|
-
const
|
|
2217
|
+
const de_ComponentOverrides = (output, context) => {
|
|
2244
2218
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2245
2219
|
if (value === null) {
|
|
2246
2220
|
return acc;
|
|
2247
2221
|
}
|
|
2248
|
-
acc[key] =
|
|
2222
|
+
acc[key] = de_ComponentOverridesValue(value, context);
|
|
2249
2223
|
return acc;
|
|
2250
2224
|
}, {});
|
|
2251
2225
|
};
|
|
2252
|
-
const
|
|
2226
|
+
const de_ComponentOverridesValue = (output, context) => {
|
|
2253
2227
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2254
2228
|
if (value === null) {
|
|
2255
2229
|
return acc;
|
|
@@ -2258,29 +2232,27 @@ const deserializeAws_restJson1ComponentOverridesValue = (output, context) => {
|
|
|
2258
2232
|
return acc;
|
|
2259
2233
|
}, {});
|
|
2260
2234
|
};
|
|
2261
|
-
const
|
|
2235
|
+
const de_ComponentProperties = (output, context) => {
|
|
2262
2236
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2263
2237
|
if (value === null) {
|
|
2264
2238
|
return acc;
|
|
2265
2239
|
}
|
|
2266
|
-
acc[key] =
|
|
2240
|
+
acc[key] = de_ComponentProperty(value, context);
|
|
2267
2241
|
return acc;
|
|
2268
2242
|
}, {});
|
|
2269
2243
|
};
|
|
2270
|
-
const
|
|
2244
|
+
const de_ComponentProperty = (output, context) => {
|
|
2271
2245
|
return {
|
|
2272
2246
|
bindingProperties: output.bindingProperties != null
|
|
2273
|
-
?
|
|
2247
|
+
? de_ComponentPropertyBindingProperties(output.bindingProperties, context)
|
|
2274
2248
|
: undefined,
|
|
2275
|
-
bindings: output.bindings != null ?
|
|
2249
|
+
bindings: output.bindings != null ? de_FormBindings(output.bindings, context) : undefined,
|
|
2276
2250
|
collectionBindingProperties: output.collectionBindingProperties != null
|
|
2277
|
-
?
|
|
2251
|
+
? de_ComponentPropertyBindingProperties(output.collectionBindingProperties, context)
|
|
2278
2252
|
: undefined,
|
|
2279
2253
|
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
2280
|
-
concat: output.concat != null ?
|
|
2281
|
-
condition: output.condition != null
|
|
2282
|
-
? deserializeAws_restJson1ComponentConditionProperty(output.condition, context)
|
|
2283
|
-
: undefined,
|
|
2254
|
+
concat: output.concat != null ? de_ComponentPropertyList(output.concat, context) : undefined,
|
|
2255
|
+
condition: output.condition != null ? de_ComponentConditionProperty(output.condition, context) : undefined,
|
|
2284
2256
|
configured: (0, smithy_client_1.expectBoolean)(output.configured),
|
|
2285
2257
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
2286
2258
|
event: (0, smithy_client_1.expectString)(output.event),
|
|
@@ -2292,24 +2264,24 @@ const deserializeAws_restJson1ComponentProperty = (output, context) => {
|
|
|
2292
2264
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2293
2265
|
};
|
|
2294
2266
|
};
|
|
2295
|
-
const
|
|
2267
|
+
const de_ComponentPropertyBindingProperties = (output, context) => {
|
|
2296
2268
|
return {
|
|
2297
2269
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2298
2270
|
property: (0, smithy_client_1.expectString)(output.property),
|
|
2299
2271
|
};
|
|
2300
2272
|
};
|
|
2301
|
-
const
|
|
2273
|
+
const de_ComponentPropertyList = (output, context) => {
|
|
2302
2274
|
const retVal = (output || [])
|
|
2303
2275
|
.filter((e) => e != null)
|
|
2304
2276
|
.map((entry) => {
|
|
2305
2277
|
if (entry === null) {
|
|
2306
2278
|
return null;
|
|
2307
2279
|
}
|
|
2308
|
-
return
|
|
2280
|
+
return de_ComponentProperty(entry, context);
|
|
2309
2281
|
});
|
|
2310
2282
|
return retVal;
|
|
2311
2283
|
};
|
|
2312
|
-
const
|
|
2284
|
+
const de_ComponentSummary = (output, context) => {
|
|
2313
2285
|
return {
|
|
2314
2286
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
2315
2287
|
componentType: (0, smithy_client_1.expectString)(output.componentType),
|
|
@@ -2318,37 +2290,35 @@ const deserializeAws_restJson1ComponentSummary = (output, context) => {
|
|
|
2318
2290
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2319
2291
|
};
|
|
2320
2292
|
};
|
|
2321
|
-
const
|
|
2293
|
+
const de_ComponentSummaryList = (output, context) => {
|
|
2322
2294
|
const retVal = (output || [])
|
|
2323
2295
|
.filter((e) => e != null)
|
|
2324
2296
|
.map((entry) => {
|
|
2325
2297
|
if (entry === null) {
|
|
2326
2298
|
return null;
|
|
2327
2299
|
}
|
|
2328
|
-
return
|
|
2300
|
+
return de_ComponentSummary(entry, context);
|
|
2329
2301
|
});
|
|
2330
2302
|
return retVal;
|
|
2331
2303
|
};
|
|
2332
|
-
const
|
|
2304
|
+
const de_ComponentVariant = (output, context) => {
|
|
2333
2305
|
return {
|
|
2334
|
-
overrides: output.overrides != null ?
|
|
2335
|
-
variantValues: output.variantValues != null
|
|
2336
|
-
? deserializeAws_restJson1ComponentVariantValues(output.variantValues, context)
|
|
2337
|
-
: undefined,
|
|
2306
|
+
overrides: output.overrides != null ? de_ComponentOverrides(output.overrides, context) : undefined,
|
|
2307
|
+
variantValues: output.variantValues != null ? de_ComponentVariantValues(output.variantValues, context) : undefined,
|
|
2338
2308
|
};
|
|
2339
2309
|
};
|
|
2340
|
-
const
|
|
2310
|
+
const de_ComponentVariants = (output, context) => {
|
|
2341
2311
|
const retVal = (output || [])
|
|
2342
2312
|
.filter((e) => e != null)
|
|
2343
2313
|
.map((entry) => {
|
|
2344
2314
|
if (entry === null) {
|
|
2345
2315
|
return null;
|
|
2346
2316
|
}
|
|
2347
|
-
return
|
|
2317
|
+
return de_ComponentVariant(entry, context);
|
|
2348
2318
|
});
|
|
2349
2319
|
return retVal;
|
|
2350
2320
|
};
|
|
2351
|
-
const
|
|
2321
|
+
const de_ComponentVariantValues = (output, context) => {
|
|
2352
2322
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2353
2323
|
if (value === null) {
|
|
2354
2324
|
return acc;
|
|
@@ -2357,7 +2327,7 @@ const deserializeAws_restJson1ComponentVariantValues = (output, context) => {
|
|
|
2357
2327
|
return acc;
|
|
2358
2328
|
}, {});
|
|
2359
2329
|
};
|
|
2360
|
-
const
|
|
2330
|
+
const de_FeaturesMap = (output, context) => {
|
|
2361
2331
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2362
2332
|
if (value === null) {
|
|
2363
2333
|
return acc;
|
|
@@ -2366,26 +2336,22 @@ const deserializeAws_restJson1FeaturesMap = (output, context) => {
|
|
|
2366
2336
|
return acc;
|
|
2367
2337
|
}, {});
|
|
2368
2338
|
};
|
|
2369
|
-
const
|
|
2339
|
+
const de_FieldConfig = (output, context) => {
|
|
2370
2340
|
return {
|
|
2371
2341
|
excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
|
|
2372
|
-
inputType: output.inputType != null ?
|
|
2342
|
+
inputType: output.inputType != null ? de_FieldInputConfig(output.inputType, context) : undefined,
|
|
2373
2343
|
label: (0, smithy_client_1.expectString)(output.label),
|
|
2374
|
-
position: output.position != null
|
|
2375
|
-
|
|
2376
|
-
: undefined,
|
|
2377
|
-
validations: output.validations != null ? deserializeAws_restJson1ValidationsList(output.validations, context) : undefined,
|
|
2344
|
+
position: output.position != null ? de_FieldPosition((0, smithy_client_1.expectUnion)(output.position), context) : undefined,
|
|
2345
|
+
validations: output.validations != null ? de_ValidationsList(output.validations, context) : undefined,
|
|
2378
2346
|
};
|
|
2379
2347
|
};
|
|
2380
|
-
const
|
|
2348
|
+
const de_FieldInputConfig = (output, context) => {
|
|
2381
2349
|
return {
|
|
2382
2350
|
defaultChecked: (0, smithy_client_1.expectBoolean)(output.defaultChecked),
|
|
2383
2351
|
defaultCountryCode: (0, smithy_client_1.expectString)(output.defaultCountryCode),
|
|
2384
2352
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
2385
2353
|
descriptiveText: (0, smithy_client_1.expectString)(output.descriptiveText),
|
|
2386
|
-
fileUploaderConfig: output.fileUploaderConfig != null
|
|
2387
|
-
? deserializeAws_restJson1FileUploaderFieldConfig(output.fileUploaderConfig, context)
|
|
2388
|
-
: undefined,
|
|
2354
|
+
fileUploaderConfig: output.fileUploaderConfig != null ? de_FileUploaderFieldConfig(output.fileUploaderConfig, context) : undefined,
|
|
2389
2355
|
isArray: (0, smithy_client_1.expectBoolean)(output.isArray),
|
|
2390
2356
|
maxValue: (0, smithy_client_1.limitedParseFloat32)(output.maxValue),
|
|
2391
2357
|
minValue: (0, smithy_client_1.limitedParseFloat32)(output.minValue),
|
|
@@ -2396,10 +2362,10 @@ const deserializeAws_restJson1FieldInputConfig = (output, context) => {
|
|
|
2396
2362
|
step: (0, smithy_client_1.limitedParseFloat32)(output.step),
|
|
2397
2363
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2398
2364
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2399
|
-
valueMappings: output.valueMappings != null ?
|
|
2365
|
+
valueMappings: output.valueMappings != null ? de_ValueMappings(output.valueMappings, context) : undefined,
|
|
2400
2366
|
};
|
|
2401
2367
|
};
|
|
2402
|
-
const
|
|
2368
|
+
const de_FieldPosition = (output, context) => {
|
|
2403
2369
|
if ((0, smithy_client_1.expectString)(output.below) !== undefined) {
|
|
2404
2370
|
return { below: (0, smithy_client_1.expectString)(output.below) };
|
|
2405
2371
|
}
|
|
@@ -2411,28 +2377,26 @@ const deserializeAws_restJson1FieldPosition = (output, context) => {
|
|
|
2411
2377
|
}
|
|
2412
2378
|
return { $unknown: Object.entries(output)[0] };
|
|
2413
2379
|
};
|
|
2414
|
-
const
|
|
2380
|
+
const de_FieldsMap = (output, context) => {
|
|
2415
2381
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2416
2382
|
if (value === null) {
|
|
2417
2383
|
return acc;
|
|
2418
2384
|
}
|
|
2419
|
-
acc[key] =
|
|
2385
|
+
acc[key] = de_FieldConfig(value, context);
|
|
2420
2386
|
return acc;
|
|
2421
2387
|
}, {});
|
|
2422
2388
|
};
|
|
2423
|
-
const
|
|
2389
|
+
const de_FieldValidationConfiguration = (output, context) => {
|
|
2424
2390
|
return {
|
|
2425
|
-
numValues: output.numValues != null ?
|
|
2426
|
-
strValues: output.strValues != null ?
|
|
2391
|
+
numValues: output.numValues != null ? de_NumValues(output.numValues, context) : undefined,
|
|
2392
|
+
strValues: output.strValues != null ? de_StrValues(output.strValues, context) : undefined,
|
|
2427
2393
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2428
2394
|
validationMessage: (0, smithy_client_1.expectString)(output.validationMessage),
|
|
2429
2395
|
};
|
|
2430
2396
|
};
|
|
2431
|
-
const
|
|
2397
|
+
const de_FileUploaderFieldConfig = (output, context) => {
|
|
2432
2398
|
return {
|
|
2433
|
-
acceptedFileTypes: output.acceptedFileTypes != null
|
|
2434
|
-
? deserializeAws_restJson1StrValues(output.acceptedFileTypes, context)
|
|
2435
|
-
: undefined,
|
|
2399
|
+
acceptedFileTypes: output.acceptedFileTypes != null ? de_StrValues(output.acceptedFileTypes, context) : undefined,
|
|
2436
2400
|
accessLevel: (0, smithy_client_1.expectString)(output.accessLevel),
|
|
2437
2401
|
isResumable: (0, smithy_client_1.expectBoolean)(output.isResumable),
|
|
2438
2402
|
maxFileCount: (0, smithy_client_1.expectInt32)(output.maxFileCount),
|
|
@@ -2440,136 +2404,126 @@ const deserializeAws_restJson1FileUploaderFieldConfig = (output, context) => {
|
|
|
2440
2404
|
showThumbnails: (0, smithy_client_1.expectBoolean)(output.showThumbnails),
|
|
2441
2405
|
};
|
|
2442
2406
|
};
|
|
2443
|
-
const
|
|
2407
|
+
const de_Form = (output, context) => {
|
|
2444
2408
|
return {
|
|
2445
2409
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
2446
|
-
cta: output.cta != null ?
|
|
2447
|
-
dataType: output.dataType != null ?
|
|
2410
|
+
cta: output.cta != null ? de_FormCTA(output.cta, context) : undefined,
|
|
2411
|
+
dataType: output.dataType != null ? de_FormDataTypeConfig(output.dataType, context) : undefined,
|
|
2448
2412
|
environmentName: (0, smithy_client_1.expectString)(output.environmentName),
|
|
2449
|
-
fields: output.fields != null ?
|
|
2413
|
+
fields: output.fields != null ? de_FieldsMap(output.fields, context) : undefined,
|
|
2450
2414
|
formActionType: (0, smithy_client_1.expectString)(output.formActionType),
|
|
2451
2415
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2452
2416
|
labelDecorator: (0, smithy_client_1.expectString)(output.labelDecorator),
|
|
2453
2417
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2454
2418
|
schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
2455
|
-
sectionalElements: output.sectionalElements != null
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
style: output.style != null ? deserializeAws_restJson1FormStyle(output.style, context) : undefined,
|
|
2459
|
-
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2419
|
+
sectionalElements: output.sectionalElements != null ? de_SectionalElementMap(output.sectionalElements, context) : undefined,
|
|
2420
|
+
style: output.style != null ? de_FormStyle(output.style, context) : undefined,
|
|
2421
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2460
2422
|
};
|
|
2461
2423
|
};
|
|
2462
|
-
const
|
|
2424
|
+
const de_FormBindingElement = (output, context) => {
|
|
2463
2425
|
return {
|
|
2464
2426
|
element: (0, smithy_client_1.expectString)(output.element),
|
|
2465
2427
|
property: (0, smithy_client_1.expectString)(output.property),
|
|
2466
2428
|
};
|
|
2467
2429
|
};
|
|
2468
|
-
const
|
|
2430
|
+
const de_FormBindings = (output, context) => {
|
|
2469
2431
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2470
2432
|
if (value === null) {
|
|
2471
2433
|
return acc;
|
|
2472
2434
|
}
|
|
2473
|
-
acc[key] =
|
|
2435
|
+
acc[key] = de_FormBindingElement(value, context);
|
|
2474
2436
|
return acc;
|
|
2475
2437
|
}, {});
|
|
2476
2438
|
};
|
|
2477
|
-
const
|
|
2439
|
+
const de_FormButton = (output, context) => {
|
|
2478
2440
|
return {
|
|
2479
2441
|
children: (0, smithy_client_1.expectString)(output.children),
|
|
2480
2442
|
excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
|
|
2481
|
-
position: output.position != null
|
|
2482
|
-
? deserializeAws_restJson1FieldPosition((0, smithy_client_1.expectUnion)(output.position), context)
|
|
2483
|
-
: undefined,
|
|
2443
|
+
position: output.position != null ? de_FieldPosition((0, smithy_client_1.expectUnion)(output.position), context) : undefined,
|
|
2484
2444
|
};
|
|
2485
2445
|
};
|
|
2486
|
-
const
|
|
2446
|
+
const de_FormCTA = (output, context) => {
|
|
2487
2447
|
return {
|
|
2488
|
-
cancel: output.cancel != null ?
|
|
2489
|
-
clear: output.clear != null ?
|
|
2448
|
+
cancel: output.cancel != null ? de_FormButton(output.cancel, context) : undefined,
|
|
2449
|
+
clear: output.clear != null ? de_FormButton(output.clear, context) : undefined,
|
|
2490
2450
|
position: (0, smithy_client_1.expectString)(output.position),
|
|
2491
|
-
submit: output.submit != null ?
|
|
2451
|
+
submit: output.submit != null ? de_FormButton(output.submit, context) : undefined,
|
|
2492
2452
|
};
|
|
2493
2453
|
};
|
|
2494
|
-
const
|
|
2454
|
+
const de_FormDataTypeConfig = (output, context) => {
|
|
2495
2455
|
return {
|
|
2496
2456
|
dataSourceType: (0, smithy_client_1.expectString)(output.dataSourceType),
|
|
2497
2457
|
dataTypeName: (0, smithy_client_1.expectString)(output.dataTypeName),
|
|
2498
2458
|
};
|
|
2499
2459
|
};
|
|
2500
|
-
const
|
|
2460
|
+
const de_FormInputBindingProperties = (output, context) => {
|
|
2501
2461
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2502
2462
|
if (value === null) {
|
|
2503
2463
|
return acc;
|
|
2504
2464
|
}
|
|
2505
|
-
acc[key] =
|
|
2465
|
+
acc[key] = de_FormInputBindingPropertiesValue(value, context);
|
|
2506
2466
|
return acc;
|
|
2507
2467
|
}, {});
|
|
2508
2468
|
};
|
|
2509
|
-
const
|
|
2469
|
+
const de_FormInputBindingPropertiesValue = (output, context) => {
|
|
2510
2470
|
return {
|
|
2511
2471
|
bindingProperties: output.bindingProperties != null
|
|
2512
|
-
?
|
|
2472
|
+
? de_FormInputBindingPropertiesValueProperties(output.bindingProperties, context)
|
|
2513
2473
|
: undefined,
|
|
2514
2474
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2515
2475
|
};
|
|
2516
2476
|
};
|
|
2517
|
-
const
|
|
2477
|
+
const de_FormInputBindingPropertiesValueProperties = (output, context) => {
|
|
2518
2478
|
return {
|
|
2519
2479
|
model: (0, smithy_client_1.expectString)(output.model),
|
|
2520
2480
|
};
|
|
2521
2481
|
};
|
|
2522
|
-
const
|
|
2482
|
+
const de_FormInputValueProperty = (output, context) => {
|
|
2523
2483
|
return {
|
|
2524
2484
|
bindingProperties: output.bindingProperties != null
|
|
2525
|
-
?
|
|
2485
|
+
? de_FormInputValuePropertyBindingProperties(output.bindingProperties, context)
|
|
2526
2486
|
: undefined,
|
|
2527
|
-
concat: output.concat != null ?
|
|
2487
|
+
concat: output.concat != null ? de_FormInputValuePropertyList(output.concat, context) : undefined,
|
|
2528
2488
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2529
2489
|
};
|
|
2530
2490
|
};
|
|
2531
|
-
const
|
|
2491
|
+
const de_FormInputValuePropertyBindingProperties = (output, context) => {
|
|
2532
2492
|
return {
|
|
2533
2493
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2534
2494
|
property: (0, smithy_client_1.expectString)(output.property),
|
|
2535
2495
|
};
|
|
2536
2496
|
};
|
|
2537
|
-
const
|
|
2497
|
+
const de_FormInputValuePropertyList = (output, context) => {
|
|
2538
2498
|
const retVal = (output || [])
|
|
2539
2499
|
.filter((e) => e != null)
|
|
2540
2500
|
.map((entry) => {
|
|
2541
2501
|
if (entry === null) {
|
|
2542
2502
|
return null;
|
|
2543
2503
|
}
|
|
2544
|
-
return
|
|
2504
|
+
return de_FormInputValueProperty(entry, context);
|
|
2545
2505
|
});
|
|
2546
2506
|
return retVal;
|
|
2547
2507
|
};
|
|
2548
|
-
const
|
|
2508
|
+
const de_FormList = (output, context) => {
|
|
2549
2509
|
const retVal = (output || [])
|
|
2550
2510
|
.filter((e) => e != null)
|
|
2551
2511
|
.map((entry) => {
|
|
2552
2512
|
if (entry === null) {
|
|
2553
2513
|
return null;
|
|
2554
2514
|
}
|
|
2555
|
-
return
|
|
2515
|
+
return de_Form(entry, context);
|
|
2556
2516
|
});
|
|
2557
2517
|
return retVal;
|
|
2558
2518
|
};
|
|
2559
|
-
const
|
|
2519
|
+
const de_FormStyle = (output, context) => {
|
|
2560
2520
|
return {
|
|
2561
|
-
horizontalGap: output.horizontalGap != null
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
outerPadding: output.outerPadding != null
|
|
2565
|
-
? deserializeAws_restJson1FormStyleConfig((0, smithy_client_1.expectUnion)(output.outerPadding), context)
|
|
2566
|
-
: undefined,
|
|
2567
|
-
verticalGap: output.verticalGap != null
|
|
2568
|
-
? deserializeAws_restJson1FormStyleConfig((0, smithy_client_1.expectUnion)(output.verticalGap), context)
|
|
2569
|
-
: undefined,
|
|
2521
|
+
horizontalGap: output.horizontalGap != null ? de_FormStyleConfig((0, smithy_client_1.expectUnion)(output.horizontalGap), context) : undefined,
|
|
2522
|
+
outerPadding: output.outerPadding != null ? de_FormStyleConfig((0, smithy_client_1.expectUnion)(output.outerPadding), context) : undefined,
|
|
2523
|
+
verticalGap: output.verticalGap != null ? de_FormStyleConfig((0, smithy_client_1.expectUnion)(output.verticalGap), context) : undefined,
|
|
2570
2524
|
};
|
|
2571
2525
|
};
|
|
2572
|
-
const
|
|
2526
|
+
const de_FormStyleConfig = (output, context) => {
|
|
2573
2527
|
if ((0, smithy_client_1.expectString)(output.tokenReference) !== undefined) {
|
|
2574
2528
|
return { tokenReference: (0, smithy_client_1.expectString)(output.tokenReference) };
|
|
2575
2529
|
}
|
|
@@ -2578,28 +2532,28 @@ const deserializeAws_restJson1FormStyleConfig = (output, context) => {
|
|
|
2578
2532
|
}
|
|
2579
2533
|
return { $unknown: Object.entries(output)[0] };
|
|
2580
2534
|
};
|
|
2581
|
-
const
|
|
2535
|
+
const de_FormSummary = (output, context) => {
|
|
2582
2536
|
return {
|
|
2583
2537
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
2584
|
-
dataType: output.dataType != null ?
|
|
2538
|
+
dataType: output.dataType != null ? de_FormDataTypeConfig(output.dataType, context) : undefined,
|
|
2585
2539
|
environmentName: (0, smithy_client_1.expectString)(output.environmentName),
|
|
2586
2540
|
formActionType: (0, smithy_client_1.expectString)(output.formActionType),
|
|
2587
2541
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2588
2542
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2589
2543
|
};
|
|
2590
2544
|
};
|
|
2591
|
-
const
|
|
2545
|
+
const de_FormSummaryList = (output, context) => {
|
|
2592
2546
|
const retVal = (output || [])
|
|
2593
2547
|
.filter((e) => e != null)
|
|
2594
2548
|
.map((entry) => {
|
|
2595
2549
|
if (entry === null) {
|
|
2596
2550
|
return null;
|
|
2597
2551
|
}
|
|
2598
|
-
return
|
|
2552
|
+
return de_FormSummary(entry, context);
|
|
2599
2553
|
});
|
|
2600
2554
|
return retVal;
|
|
2601
2555
|
};
|
|
2602
|
-
const
|
|
2556
|
+
const de_IdentifierList = (output, context) => {
|
|
2603
2557
|
const retVal = (output || [])
|
|
2604
2558
|
.filter((e) => e != null)
|
|
2605
2559
|
.map((entry) => {
|
|
@@ -2610,14 +2564,14 @@ const deserializeAws_restJson1IdentifierList = (output, context) => {
|
|
|
2610
2564
|
});
|
|
2611
2565
|
return retVal;
|
|
2612
2566
|
};
|
|
2613
|
-
const
|
|
2567
|
+
const de_MutationActionSetStateParameter = (output, context) => {
|
|
2614
2568
|
return {
|
|
2615
2569
|
componentName: (0, smithy_client_1.expectString)(output.componentName),
|
|
2616
2570
|
property: (0, smithy_client_1.expectString)(output.property),
|
|
2617
|
-
set: output.set != null ?
|
|
2571
|
+
set: output.set != null ? de_ComponentProperty(output.set, context) : undefined,
|
|
2618
2572
|
};
|
|
2619
2573
|
};
|
|
2620
|
-
const
|
|
2574
|
+
const de_NumValues = (output, context) => {
|
|
2621
2575
|
const retVal = (output || [])
|
|
2622
2576
|
.filter((e) => e != null)
|
|
2623
2577
|
.map((entry) => {
|
|
@@ -2628,66 +2582,64 @@ const deserializeAws_restJson1NumValues = (output, context) => {
|
|
|
2628
2582
|
});
|
|
2629
2583
|
return retVal;
|
|
2630
2584
|
};
|
|
2631
|
-
const
|
|
2585
|
+
const de_Predicate = (output, context) => {
|
|
2632
2586
|
return {
|
|
2633
|
-
and: output.and != null ?
|
|
2587
|
+
and: output.and != null ? de_PredicateList(output.and, context) : undefined,
|
|
2634
2588
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2635
2589
|
operand: (0, smithy_client_1.expectString)(output.operand),
|
|
2636
2590
|
operandType: (0, smithy_client_1.expectString)(output.operandType),
|
|
2637
2591
|
operator: (0, smithy_client_1.expectString)(output.operator),
|
|
2638
|
-
or: output.or != null ?
|
|
2592
|
+
or: output.or != null ? de_PredicateList(output.or, context) : undefined,
|
|
2639
2593
|
};
|
|
2640
2594
|
};
|
|
2641
|
-
const
|
|
2595
|
+
const de_PredicateList = (output, context) => {
|
|
2642
2596
|
const retVal = (output || [])
|
|
2643
2597
|
.filter((e) => e != null)
|
|
2644
2598
|
.map((entry) => {
|
|
2645
2599
|
if (entry === null) {
|
|
2646
2600
|
return null;
|
|
2647
2601
|
}
|
|
2648
|
-
return
|
|
2602
|
+
return de_Predicate(entry, context);
|
|
2649
2603
|
});
|
|
2650
2604
|
return retVal;
|
|
2651
2605
|
};
|
|
2652
|
-
const
|
|
2606
|
+
const de_SectionalElement = (output, context) => {
|
|
2653
2607
|
return {
|
|
2654
2608
|
excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
|
|
2655
2609
|
level: (0, smithy_client_1.expectInt32)(output.level),
|
|
2656
2610
|
orientation: (0, smithy_client_1.expectString)(output.orientation),
|
|
2657
|
-
position: output.position != null
|
|
2658
|
-
? deserializeAws_restJson1FieldPosition((0, smithy_client_1.expectUnion)(output.position), context)
|
|
2659
|
-
: undefined,
|
|
2611
|
+
position: output.position != null ? de_FieldPosition((0, smithy_client_1.expectUnion)(output.position), context) : undefined,
|
|
2660
2612
|
text: (0, smithy_client_1.expectString)(output.text),
|
|
2661
2613
|
type: (0, smithy_client_1.expectString)(output.type),
|
|
2662
2614
|
};
|
|
2663
2615
|
};
|
|
2664
|
-
const
|
|
2616
|
+
const de_SectionalElementMap = (output, context) => {
|
|
2665
2617
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2666
2618
|
if (value === null) {
|
|
2667
2619
|
return acc;
|
|
2668
2620
|
}
|
|
2669
|
-
acc[key] =
|
|
2621
|
+
acc[key] = de_SectionalElement(value, context);
|
|
2670
2622
|
return acc;
|
|
2671
2623
|
}, {});
|
|
2672
2624
|
};
|
|
2673
|
-
const
|
|
2625
|
+
const de_SortProperty = (output, context) => {
|
|
2674
2626
|
return {
|
|
2675
2627
|
direction: (0, smithy_client_1.expectString)(output.direction),
|
|
2676
2628
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2677
2629
|
};
|
|
2678
2630
|
};
|
|
2679
|
-
const
|
|
2631
|
+
const de_SortPropertyList = (output, context) => {
|
|
2680
2632
|
const retVal = (output || [])
|
|
2681
2633
|
.filter((e) => e != null)
|
|
2682
2634
|
.map((entry) => {
|
|
2683
2635
|
if (entry === null) {
|
|
2684
2636
|
return null;
|
|
2685
2637
|
}
|
|
2686
|
-
return
|
|
2638
|
+
return de_SortProperty(entry, context);
|
|
2687
2639
|
});
|
|
2688
2640
|
return retVal;
|
|
2689
2641
|
};
|
|
2690
|
-
const
|
|
2642
|
+
const de_StrValues = (output, context) => {
|
|
2691
2643
|
const retVal = (output || [])
|
|
2692
2644
|
.filter((e) => e != null)
|
|
2693
2645
|
.map((entry) => {
|
|
@@ -2698,7 +2650,7 @@ const deserializeAws_restJson1StrValues = (output, context) => {
|
|
|
2698
2650
|
});
|
|
2699
2651
|
return retVal;
|
|
2700
2652
|
};
|
|
2701
|
-
const
|
|
2653
|
+
const de_Tags = (output, context) => {
|
|
2702
2654
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2703
2655
|
if (value === null) {
|
|
2704
2656
|
return acc;
|
|
@@ -2707,7 +2659,7 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
2707
2659
|
return acc;
|
|
2708
2660
|
}, {});
|
|
2709
2661
|
};
|
|
2710
|
-
const
|
|
2662
|
+
const de_Theme = (output, context) => {
|
|
2711
2663
|
return {
|
|
2712
2664
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
2713
2665
|
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.createdAt)) : undefined,
|
|
@@ -2715,23 +2667,23 @@ const deserializeAws_restJson1Theme = (output, context) => {
|
|
|
2715
2667
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2716
2668
|
modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output.modifiedAt)) : undefined,
|
|
2717
2669
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2718
|
-
overrides: output.overrides != null ?
|
|
2719
|
-
tags: output.tags != null ?
|
|
2720
|
-
values: output.values != null ?
|
|
2670
|
+
overrides: output.overrides != null ? de_ThemeValuesList(output.overrides, context) : undefined,
|
|
2671
|
+
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2672
|
+
values: output.values != null ? de_ThemeValuesList(output.values, context) : undefined,
|
|
2721
2673
|
};
|
|
2722
2674
|
};
|
|
2723
|
-
const
|
|
2675
|
+
const de_ThemeList = (output, context) => {
|
|
2724
2676
|
const retVal = (output || [])
|
|
2725
2677
|
.filter((e) => e != null)
|
|
2726
2678
|
.map((entry) => {
|
|
2727
2679
|
if (entry === null) {
|
|
2728
2680
|
return null;
|
|
2729
2681
|
}
|
|
2730
|
-
return
|
|
2682
|
+
return de_Theme(entry, context);
|
|
2731
2683
|
});
|
|
2732
2684
|
return retVal;
|
|
2733
2685
|
};
|
|
2734
|
-
const
|
|
2686
|
+
const de_ThemeSummary = (output, context) => {
|
|
2735
2687
|
return {
|
|
2736
2688
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
2737
2689
|
environmentName: (0, smithy_client_1.expectString)(output.environmentName),
|
|
@@ -2739,76 +2691,72 @@ const deserializeAws_restJson1ThemeSummary = (output, context) => {
|
|
|
2739
2691
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2740
2692
|
};
|
|
2741
2693
|
};
|
|
2742
|
-
const
|
|
2694
|
+
const de_ThemeSummaryList = (output, context) => {
|
|
2743
2695
|
const retVal = (output || [])
|
|
2744
2696
|
.filter((e) => e != null)
|
|
2745
2697
|
.map((entry) => {
|
|
2746
2698
|
if (entry === null) {
|
|
2747
2699
|
return null;
|
|
2748
2700
|
}
|
|
2749
|
-
return
|
|
2701
|
+
return de_ThemeSummary(entry, context);
|
|
2750
2702
|
});
|
|
2751
2703
|
return retVal;
|
|
2752
2704
|
};
|
|
2753
|
-
const
|
|
2705
|
+
const de_ThemeValue = (output, context) => {
|
|
2754
2706
|
return {
|
|
2755
|
-
children: output.children != null ?
|
|
2707
|
+
children: output.children != null ? de_ThemeValuesList(output.children, context) : undefined,
|
|
2756
2708
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2757
2709
|
};
|
|
2758
2710
|
};
|
|
2759
|
-
const
|
|
2711
|
+
const de_ThemeValues = (output, context) => {
|
|
2760
2712
|
return {
|
|
2761
2713
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
2762
|
-
value: output.value != null ?
|
|
2714
|
+
value: output.value != null ? de_ThemeValue(output.value, context) : undefined,
|
|
2763
2715
|
};
|
|
2764
2716
|
};
|
|
2765
|
-
const
|
|
2717
|
+
const de_ThemeValuesList = (output, context) => {
|
|
2766
2718
|
const retVal = (output || [])
|
|
2767
2719
|
.filter((e) => e != null)
|
|
2768
2720
|
.map((entry) => {
|
|
2769
2721
|
if (entry === null) {
|
|
2770
2722
|
return null;
|
|
2771
2723
|
}
|
|
2772
|
-
return
|
|
2724
|
+
return de_ThemeValues(entry, context);
|
|
2773
2725
|
});
|
|
2774
2726
|
return retVal;
|
|
2775
2727
|
};
|
|
2776
|
-
const
|
|
2728
|
+
const de_ValidationsList = (output, context) => {
|
|
2777
2729
|
const retVal = (output || [])
|
|
2778
2730
|
.filter((e) => e != null)
|
|
2779
2731
|
.map((entry) => {
|
|
2780
2732
|
if (entry === null) {
|
|
2781
2733
|
return null;
|
|
2782
2734
|
}
|
|
2783
|
-
return
|
|
2735
|
+
return de_FieldValidationConfiguration(entry, context);
|
|
2784
2736
|
});
|
|
2785
2737
|
return retVal;
|
|
2786
2738
|
};
|
|
2787
|
-
const
|
|
2739
|
+
const de_ValueMapping = (output, context) => {
|
|
2788
2740
|
return {
|
|
2789
|
-
displayValue: output.displayValue != null
|
|
2790
|
-
|
|
2791
|
-
: undefined,
|
|
2792
|
-
value: output.value != null ? deserializeAws_restJson1FormInputValueProperty(output.value, context) : undefined,
|
|
2741
|
+
displayValue: output.displayValue != null ? de_FormInputValueProperty(output.displayValue, context) : undefined,
|
|
2742
|
+
value: output.value != null ? de_FormInputValueProperty(output.value, context) : undefined,
|
|
2793
2743
|
};
|
|
2794
2744
|
};
|
|
2795
|
-
const
|
|
2745
|
+
const de_ValueMappingList = (output, context) => {
|
|
2796
2746
|
const retVal = (output || [])
|
|
2797
2747
|
.filter((e) => e != null)
|
|
2798
2748
|
.map((entry) => {
|
|
2799
2749
|
if (entry === null) {
|
|
2800
2750
|
return null;
|
|
2801
2751
|
}
|
|
2802
|
-
return
|
|
2752
|
+
return de_ValueMapping(entry, context);
|
|
2803
2753
|
});
|
|
2804
2754
|
return retVal;
|
|
2805
2755
|
};
|
|
2806
|
-
const
|
|
2756
|
+
const de_ValueMappings = (output, context) => {
|
|
2807
2757
|
return {
|
|
2808
|
-
bindingProperties: output.bindingProperties != null
|
|
2809
|
-
|
|
2810
|
-
: undefined,
|
|
2811
|
-
values: output.values != null ? deserializeAws_restJson1ValueMappingList(output.values, context) : undefined,
|
|
2758
|
+
bindingProperties: output.bindingProperties != null ? de_FormInputBindingProperties(output.bindingProperties, context) : undefined,
|
|
2759
|
+
values: output.values != null ? de_ValueMappingList(output.values, context) : undefined,
|
|
2812
2760
|
};
|
|
2813
2761
|
};
|
|
2814
2762
|
const deserializeMetadata = (output) => ({
|