@aws-sdk/client-amplifyuibuilder 3.170.0 → 3.171.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/CHANGELOG.md +11 -0
- package/dist-cjs/AmplifyUIBuilder.js +120 -0
- package/dist-cjs/commands/CreateFormCommand.js +36 -0
- package/dist-cjs/commands/DeleteFormCommand.js +36 -0
- package/dist-cjs/commands/ExportFormsCommand.js +36 -0
- package/dist-cjs/commands/GetFormCommand.js +36 -0
- package/dist-cjs/commands/GetMetadataCommand.js +36 -0
- package/dist-cjs/commands/ListFormsCommand.js +36 -0
- package/dist-cjs/commands/PutMetadataFlagCommand.js +36 -0
- package/dist-cjs/commands/UpdateFormCommand.js +36 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +254 -2
- package/dist-cjs/pagination/ExportFormsPaginator.js +35 -0
- package/dist-cjs/pagination/ListFormsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +979 -11
- package/dist-es/AmplifyUIBuilder.js +120 -0
- package/dist-es/commands/CreateFormCommand.js +39 -0
- package/dist-es/commands/DeleteFormCommand.js +39 -0
- package/dist-es/commands/ExportFormsCommand.js +39 -0
- package/dist-es/commands/GetFormCommand.js +39 -0
- package/dist-es/commands/GetMetadataCommand.js +39 -0
- package/dist-es/commands/ListFormsCommand.js +39 -0
- package/dist-es/commands/PutMetadataFlagCommand.js +39 -0
- package/dist-es/commands/UpdateFormCommand.js +39 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +141 -1
- package/dist-es/pagination/ExportFormsPaginator.js +74 -0
- package/dist-es/pagination/ListFormsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1142 -34
- package/dist-types/AmplifyUIBuilder.d.ts +56 -0
- package/dist-types/AmplifyUIBuilderClient.d.ts +10 -2
- package/dist-types/commands/CreateFormCommand.d.ts +35 -0
- package/dist-types/commands/DeleteFormCommand.d.ts +35 -0
- package/dist-types/commands/ExportFormsCommand.d.ts +35 -0
- package/dist-types/commands/GetFormCommand.d.ts +35 -0
- package/dist-types/commands/GetMetadataCommand.d.ts +35 -0
- package/dist-types/commands/ListFormsCommand.d.ts +35 -0
- package/dist-types/commands/PutMetadataFlagCommand.d.ts +35 -0
- package/dist-types/commands/UpdateFormCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +854 -24
- package/dist-types/pagination/ExportFormsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFormsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/AmplifyUIBuilder.d.ts +136 -14
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +48 -25
- package/dist-types/ts3.4/commands/CreateComponentCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/CreateFormCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/CreateThemeCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/DeleteComponentCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/DeleteFormCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteThemeCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ExchangeCodeForTokenCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ExportComponentsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ExportFormsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ExportThemesCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetComponentCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/GetFormCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetMetadataCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetThemeCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/ListFormsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListThemesCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/PutMetadataFlagCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/RefreshTokenCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/UpdateComponentCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/UpdateFormCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateThemeCommand.d.ts +0 -2
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/AmplifyUIBuilderServiceException.d.ts +0 -1
- package/dist-types/ts3.4/models/models_0.d.ts +347 -247
- package/dist-types/ts3.4/pagination/ExportFormsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListFormsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +96 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +0 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +0 -1
- package/package.json +26 -26
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator, __read } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { AmplifyUIBuilderServiceException as __BaseException } from "../models/AmplifyUIBuilderServiceException";
|
|
5
|
-
import { InternalServerException, InvalidParameterException, ResourceConflictException, ResourceNotFoundException, ServiceQuotaExceededException, } from "../models/models_0";
|
|
5
|
+
import { FieldPosition, FormStyleConfig, InternalServerException, InvalidParameterException, ResourceConflictException, ResourceNotFoundException, ServiceQuotaExceededException, UnauthorizedException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_restJson1CreateComponentCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
7
7
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
8
8
|
return __generator(this, function (_c) {
|
|
@@ -40,6 +40,43 @@ export var serializeAws_restJson1CreateComponentCommand = function (input, conte
|
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
}); };
|
|
43
|
+
export var serializeAws_restJson1CreateFormCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
45
|
+
return __generator(this, function (_c) {
|
|
46
|
+
switch (_c.label) {
|
|
47
|
+
case 0: return [4, context.endpoint()];
|
|
48
|
+
case 1:
|
|
49
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
50
|
+
headers = {
|
|
51
|
+
"content-type": "application/json",
|
|
52
|
+
};
|
|
53
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
54
|
+
"/app/{appId}/environment/{environmentName}/forms";
|
|
55
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
56
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
57
|
+
query = map({
|
|
58
|
+
clientToken: [, input.clientToken],
|
|
59
|
+
});
|
|
60
|
+
if (input.formToCreate !== undefined) {
|
|
61
|
+
body = serializeAws_restJson1CreateFormData(input.formToCreate, context);
|
|
62
|
+
}
|
|
63
|
+
if (body === undefined) {
|
|
64
|
+
body = {};
|
|
65
|
+
}
|
|
66
|
+
body = JSON.stringify(body);
|
|
67
|
+
return [2, new __HttpRequest({
|
|
68
|
+
protocol: protocol,
|
|
69
|
+
hostname: hostname,
|
|
70
|
+
port: port,
|
|
71
|
+
method: "POST",
|
|
72
|
+
headers: headers,
|
|
73
|
+
path: resolvedPath,
|
|
74
|
+
query: query,
|
|
75
|
+
body: body,
|
|
76
|
+
})];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}); };
|
|
43
80
|
export var serializeAws_restJson1CreateThemeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
81
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
45
82
|
return __generator(this, function (_c) {
|
|
@@ -102,6 +139,31 @@ export var serializeAws_restJson1DeleteComponentCommand = function (input, conte
|
|
|
102
139
|
}
|
|
103
140
|
});
|
|
104
141
|
}); };
|
|
142
|
+
export var serializeAws_restJson1DeleteFormCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
143
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
144
|
+
return __generator(this, function (_c) {
|
|
145
|
+
switch (_c.label) {
|
|
146
|
+
case 0: return [4, context.endpoint()];
|
|
147
|
+
case 1:
|
|
148
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
149
|
+
headers = {};
|
|
150
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
151
|
+
"/app/{appId}/environment/{environmentName}/forms/{id}";
|
|
152
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
153
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
154
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
155
|
+
return [2, new __HttpRequest({
|
|
156
|
+
protocol: protocol,
|
|
157
|
+
hostname: hostname,
|
|
158
|
+
port: port,
|
|
159
|
+
method: "DELETE",
|
|
160
|
+
headers: headers,
|
|
161
|
+
path: resolvedPath,
|
|
162
|
+
body: body,
|
|
163
|
+
})];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}); };
|
|
105
167
|
export var serializeAws_restJson1DeleteThemeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
106
168
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
107
169
|
return __generator(this, function (_c) {
|
|
@@ -186,6 +248,34 @@ export var serializeAws_restJson1ExportComponentsCommand = function (input, cont
|
|
|
186
248
|
}
|
|
187
249
|
});
|
|
188
250
|
}); };
|
|
251
|
+
export var serializeAws_restJson1ExportFormsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
252
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
253
|
+
return __generator(this, function (_c) {
|
|
254
|
+
switch (_c.label) {
|
|
255
|
+
case 0: return [4, context.endpoint()];
|
|
256
|
+
case 1:
|
|
257
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
258
|
+
headers = {};
|
|
259
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
260
|
+
"/export/app/{appId}/environment/{environmentName}/forms";
|
|
261
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
262
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
263
|
+
query = map({
|
|
264
|
+
nextToken: [, input.nextToken],
|
|
265
|
+
});
|
|
266
|
+
return [2, new __HttpRequest({
|
|
267
|
+
protocol: protocol,
|
|
268
|
+
hostname: hostname,
|
|
269
|
+
port: port,
|
|
270
|
+
method: "GET",
|
|
271
|
+
headers: headers,
|
|
272
|
+
path: resolvedPath,
|
|
273
|
+
query: query,
|
|
274
|
+
body: body,
|
|
275
|
+
})];
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
}); };
|
|
189
279
|
export var serializeAws_restJson1ExportThemesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
190
280
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
191
281
|
return __generator(this, function (_c) {
|
|
@@ -239,6 +329,55 @@ export var serializeAws_restJson1GetComponentCommand = function (input, context)
|
|
|
239
329
|
}
|
|
240
330
|
});
|
|
241
331
|
}); };
|
|
332
|
+
export var serializeAws_restJson1GetFormCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
333
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
334
|
+
return __generator(this, function (_c) {
|
|
335
|
+
switch (_c.label) {
|
|
336
|
+
case 0: return [4, context.endpoint()];
|
|
337
|
+
case 1:
|
|
338
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
339
|
+
headers = {};
|
|
340
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
341
|
+
"/app/{appId}/environment/{environmentName}/forms/{id}";
|
|
342
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
343
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
344
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
345
|
+
return [2, new __HttpRequest({
|
|
346
|
+
protocol: protocol,
|
|
347
|
+
hostname: hostname,
|
|
348
|
+
port: port,
|
|
349
|
+
method: "GET",
|
|
350
|
+
headers: headers,
|
|
351
|
+
path: resolvedPath,
|
|
352
|
+
body: body,
|
|
353
|
+
})];
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
}); };
|
|
357
|
+
export var serializeAws_restJson1GetMetadataCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
358
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
359
|
+
return __generator(this, function (_c) {
|
|
360
|
+
switch (_c.label) {
|
|
361
|
+
case 0: return [4, context.endpoint()];
|
|
362
|
+
case 1:
|
|
363
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
364
|
+
headers = {};
|
|
365
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
366
|
+
"/app/{appId}/environment/{environmentName}/metadata";
|
|
367
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
368
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
369
|
+
return [2, new __HttpRequest({
|
|
370
|
+
protocol: protocol,
|
|
371
|
+
hostname: hostname,
|
|
372
|
+
port: port,
|
|
373
|
+
method: "GET",
|
|
374
|
+
headers: headers,
|
|
375
|
+
path: resolvedPath,
|
|
376
|
+
body: body,
|
|
377
|
+
})];
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
}); };
|
|
242
381
|
export var serializeAws_restJson1GetThemeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
243
382
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
244
383
|
return __generator(this, function (_c) {
|
|
@@ -293,6 +432,35 @@ export var serializeAws_restJson1ListComponentsCommand = function (input, contex
|
|
|
293
432
|
}
|
|
294
433
|
});
|
|
295
434
|
}); };
|
|
435
|
+
export var serializeAws_restJson1ListFormsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
436
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
437
|
+
return __generator(this, function (_c) {
|
|
438
|
+
switch (_c.label) {
|
|
439
|
+
case 0: return [4, context.endpoint()];
|
|
440
|
+
case 1:
|
|
441
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
442
|
+
headers = {};
|
|
443
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
444
|
+
"/app/{appId}/environment/{environmentName}/forms";
|
|
445
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
446
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
447
|
+
query = map({
|
|
448
|
+
nextToken: [, input.nextToken],
|
|
449
|
+
maxResults: [function () { return input.maxResults !== void 0; }, function () { return input.maxResults.toString(); }],
|
|
450
|
+
});
|
|
451
|
+
return [2, new __HttpRequest({
|
|
452
|
+
protocol: protocol,
|
|
453
|
+
hostname: hostname,
|
|
454
|
+
port: port,
|
|
455
|
+
method: "GET",
|
|
456
|
+
headers: headers,
|
|
457
|
+
path: resolvedPath,
|
|
458
|
+
query: query,
|
|
459
|
+
body: body,
|
|
460
|
+
})];
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
}); };
|
|
296
464
|
export var serializeAws_restJson1ListThemesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
297
465
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
298
466
|
return __generator(this, function (_c) {
|
|
@@ -322,6 +490,40 @@ export var serializeAws_restJson1ListThemesCommand = function (input, context) {
|
|
|
322
490
|
}
|
|
323
491
|
});
|
|
324
492
|
}); };
|
|
493
|
+
export var serializeAws_restJson1PutMetadataFlagCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
494
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
495
|
+
return __generator(this, function (_c) {
|
|
496
|
+
switch (_c.label) {
|
|
497
|
+
case 0: return [4, context.endpoint()];
|
|
498
|
+
case 1:
|
|
499
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
500
|
+
headers = {
|
|
501
|
+
"content-type": "application/json",
|
|
502
|
+
};
|
|
503
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
504
|
+
"/app/{appId}/environment/{environmentName}/metadata/features/{featureName}";
|
|
505
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
506
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
507
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "featureName", function () { return input.featureName; }, "{featureName}", false);
|
|
508
|
+
if (input.body !== undefined) {
|
|
509
|
+
body = serializeAws_restJson1PutMetadataFlagBody(input.body, context);
|
|
510
|
+
}
|
|
511
|
+
if (body === undefined) {
|
|
512
|
+
body = {};
|
|
513
|
+
}
|
|
514
|
+
body = JSON.stringify(body);
|
|
515
|
+
return [2, new __HttpRequest({
|
|
516
|
+
protocol: protocol,
|
|
517
|
+
hostname: hostname,
|
|
518
|
+
port: port,
|
|
519
|
+
method: "PUT",
|
|
520
|
+
headers: headers,
|
|
521
|
+
path: resolvedPath,
|
|
522
|
+
body: body,
|
|
523
|
+
})];
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}); };
|
|
325
527
|
export var serializeAws_restJson1RefreshTokenCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
326
528
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, body;
|
|
327
529
|
return __generator(this, function (_c) {
|
|
@@ -391,6 +593,44 @@ export var serializeAws_restJson1UpdateComponentCommand = function (input, conte
|
|
|
391
593
|
}
|
|
392
594
|
});
|
|
393
595
|
}); };
|
|
596
|
+
export var serializeAws_restJson1UpdateFormCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
597
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
598
|
+
return __generator(this, function (_c) {
|
|
599
|
+
switch (_c.label) {
|
|
600
|
+
case 0: return [4, context.endpoint()];
|
|
601
|
+
case 1:
|
|
602
|
+
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
603
|
+
headers = {
|
|
604
|
+
"content-type": "application/json",
|
|
605
|
+
};
|
|
606
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
607
|
+
"/app/{appId}/environment/{environmentName}/forms/{id}";
|
|
608
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", function () { return input.appId; }, "{appId}", false);
|
|
609
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", function () { return input.environmentName; }, "{environmentName}", false);
|
|
610
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", function () { return input.id; }, "{id}", false);
|
|
611
|
+
query = map({
|
|
612
|
+
clientToken: [, input.clientToken],
|
|
613
|
+
});
|
|
614
|
+
if (input.updatedForm !== undefined) {
|
|
615
|
+
body = serializeAws_restJson1UpdateFormData(input.updatedForm, context);
|
|
616
|
+
}
|
|
617
|
+
if (body === undefined) {
|
|
618
|
+
body = {};
|
|
619
|
+
}
|
|
620
|
+
body = JSON.stringify(body);
|
|
621
|
+
return [2, new __HttpRequest({
|
|
622
|
+
protocol: protocol,
|
|
623
|
+
hostname: hostname,
|
|
624
|
+
port: port,
|
|
625
|
+
method: "PATCH",
|
|
626
|
+
headers: headers,
|
|
627
|
+
path: resolvedPath,
|
|
628
|
+
query: query,
|
|
629
|
+
body: body,
|
|
630
|
+
})];
|
|
631
|
+
}
|
|
632
|
+
});
|
|
633
|
+
}); };
|
|
394
634
|
export var serializeAws_restJson1UpdateThemeCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
395
635
|
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, query, body;
|
|
396
636
|
return __generator(this, function (_c) {
|
|
@@ -494,13 +734,13 @@ var deserializeAws_restJson1CreateComponentCommandError = function (output, cont
|
|
|
494
734
|
}
|
|
495
735
|
});
|
|
496
736
|
}); };
|
|
497
|
-
export var
|
|
737
|
+
export var deserializeAws_restJson1CreateFormCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
498
738
|
var contents, data, _a;
|
|
499
739
|
return __generator(this, function (_b) {
|
|
500
740
|
switch (_b.label) {
|
|
501
741
|
case 0:
|
|
502
742
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return [2,
|
|
743
|
+
return [2, deserializeAws_restJson1CreateFormCommandError(output, context)];
|
|
504
744
|
}
|
|
505
745
|
contents = map({
|
|
506
746
|
$metadata: deserializeMetadata(output),
|
|
@@ -509,12 +749,12 @@ export var deserializeAws_restJson1CreateThemeCommand = function (output, contex
|
|
|
509
749
|
return [4, parseBody(output.body, context)];
|
|
510
750
|
case 1:
|
|
511
751
|
data = _a.apply(void 0, [_b.sent()]);
|
|
512
|
-
contents.entity =
|
|
752
|
+
contents.entity = deserializeAws_restJson1Form(data, context);
|
|
513
753
|
return [2, contents];
|
|
514
754
|
}
|
|
515
755
|
});
|
|
516
756
|
}); };
|
|
517
|
-
var
|
|
757
|
+
var deserializeAws_restJson1CreateFormCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
518
758
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
519
759
|
var _c;
|
|
520
760
|
return __generator(this, function (_d) {
|
|
@@ -559,25 +799,27 @@ var deserializeAws_restJson1CreateThemeCommandError = function (output, context)
|
|
|
559
799
|
}
|
|
560
800
|
});
|
|
561
801
|
}); };
|
|
562
|
-
export var
|
|
563
|
-
var contents;
|
|
564
|
-
return __generator(this, function (
|
|
565
|
-
switch (
|
|
802
|
+
export var deserializeAws_restJson1CreateThemeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
803
|
+
var contents, data, _a;
|
|
804
|
+
return __generator(this, function (_b) {
|
|
805
|
+
switch (_b.label) {
|
|
566
806
|
case 0:
|
|
567
807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
568
|
-
return [2,
|
|
808
|
+
return [2, deserializeAws_restJson1CreateThemeCommandError(output, context)];
|
|
569
809
|
}
|
|
570
810
|
contents = map({
|
|
571
811
|
$metadata: deserializeMetadata(output),
|
|
572
812
|
});
|
|
573
|
-
|
|
813
|
+
_a = __expectObject;
|
|
814
|
+
return [4, parseBody(output.body, context)];
|
|
574
815
|
case 1:
|
|
575
|
-
_a.sent();
|
|
816
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
817
|
+
contents.entity = deserializeAws_restJson1Theme(data, context);
|
|
576
818
|
return [2, contents];
|
|
577
819
|
}
|
|
578
820
|
});
|
|
579
821
|
}); };
|
|
580
|
-
var
|
|
822
|
+
var deserializeAws_restJson1CreateThemeCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
581
823
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
582
824
|
var _c;
|
|
583
825
|
return __generator(this, function (_d) {
|
|
@@ -595,17 +837,21 @@ var deserializeAws_restJson1DeleteComponentCommandError = function (output, cont
|
|
|
595
837
|
case "com.amazonaws.amplifyuibuilder#InternalServerException": return [3, 2];
|
|
596
838
|
case "InvalidParameterException": return [3, 4];
|
|
597
839
|
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 4];
|
|
598
|
-
case "
|
|
599
|
-
case "com.amazonaws.amplifyuibuilder#
|
|
840
|
+
case "ResourceConflictException": return [3, 6];
|
|
841
|
+
case "com.amazonaws.amplifyuibuilder#ResourceConflictException": return [3, 6];
|
|
842
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
843
|
+
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException": return [3, 8];
|
|
600
844
|
}
|
|
601
|
-
return [3,
|
|
845
|
+
return [3, 10];
|
|
602
846
|
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
603
847
|
case 3: throw _d.sent();
|
|
604
848
|
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
605
849
|
case 5: throw _d.sent();
|
|
606
|
-
case 6: return [4,
|
|
850
|
+
case 6: return [4, deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
607
851
|
case 7: throw _d.sent();
|
|
608
|
-
case 8:
|
|
852
|
+
case 8: return [4, deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
853
|
+
case 9: throw _d.sent();
|
|
854
|
+
case 10:
|
|
609
855
|
parsedBody = parsedOutput.body;
|
|
610
856
|
throwDefaultError({
|
|
611
857
|
output: output,
|
|
@@ -613,8 +859,126 @@ var deserializeAws_restJson1DeleteComponentCommandError = function (output, cont
|
|
|
613
859
|
exceptionCtor: __BaseException,
|
|
614
860
|
errorCode: errorCode,
|
|
615
861
|
});
|
|
616
|
-
_d.label =
|
|
617
|
-
case
|
|
862
|
+
_d.label = 11;
|
|
863
|
+
case 11: return [2];
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
}); };
|
|
867
|
+
export var deserializeAws_restJson1DeleteComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
868
|
+
var contents;
|
|
869
|
+
return __generator(this, function (_a) {
|
|
870
|
+
switch (_a.label) {
|
|
871
|
+
case 0:
|
|
872
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
873
|
+
return [2, deserializeAws_restJson1DeleteComponentCommandError(output, context)];
|
|
874
|
+
}
|
|
875
|
+
contents = map({
|
|
876
|
+
$metadata: deserializeMetadata(output),
|
|
877
|
+
});
|
|
878
|
+
return [4, collectBody(output.body, context)];
|
|
879
|
+
case 1:
|
|
880
|
+
_a.sent();
|
|
881
|
+
return [2, contents];
|
|
882
|
+
}
|
|
883
|
+
});
|
|
884
|
+
}); };
|
|
885
|
+
var deserializeAws_restJson1DeleteComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
886
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
887
|
+
var _c;
|
|
888
|
+
return __generator(this, function (_d) {
|
|
889
|
+
switch (_d.label) {
|
|
890
|
+
case 0:
|
|
891
|
+
_a = [__assign({}, output)];
|
|
892
|
+
_c = {};
|
|
893
|
+
return [4, parseBody(output.body, context)];
|
|
894
|
+
case 1:
|
|
895
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
896
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
_b = errorCode;
|
|
898
|
+
switch (_b) {
|
|
899
|
+
case "InternalServerException": return [3, 2];
|
|
900
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException": return [3, 2];
|
|
901
|
+
case "InvalidParameterException": return [3, 4];
|
|
902
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 4];
|
|
903
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
904
|
+
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException": return [3, 6];
|
|
905
|
+
}
|
|
906
|
+
return [3, 8];
|
|
907
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
908
|
+
case 3: throw _d.sent();
|
|
909
|
+
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
910
|
+
case 5: throw _d.sent();
|
|
911
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
912
|
+
case 7: throw _d.sent();
|
|
913
|
+
case 8:
|
|
914
|
+
parsedBody = parsedOutput.body;
|
|
915
|
+
throwDefaultError({
|
|
916
|
+
output: output,
|
|
917
|
+
parsedBody: parsedBody,
|
|
918
|
+
exceptionCtor: __BaseException,
|
|
919
|
+
errorCode: errorCode,
|
|
920
|
+
});
|
|
921
|
+
_d.label = 9;
|
|
922
|
+
case 9: return [2];
|
|
923
|
+
}
|
|
924
|
+
});
|
|
925
|
+
}); };
|
|
926
|
+
export var deserializeAws_restJson1DeleteFormCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
927
|
+
var contents;
|
|
928
|
+
return __generator(this, function (_a) {
|
|
929
|
+
switch (_a.label) {
|
|
930
|
+
case 0:
|
|
931
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
932
|
+
return [2, deserializeAws_restJson1DeleteFormCommandError(output, context)];
|
|
933
|
+
}
|
|
934
|
+
contents = map({
|
|
935
|
+
$metadata: deserializeMetadata(output),
|
|
936
|
+
});
|
|
937
|
+
return [4, collectBody(output.body, context)];
|
|
938
|
+
case 1:
|
|
939
|
+
_a.sent();
|
|
940
|
+
return [2, contents];
|
|
941
|
+
}
|
|
942
|
+
});
|
|
943
|
+
}); };
|
|
944
|
+
var deserializeAws_restJson1DeleteFormCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
945
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
946
|
+
var _c;
|
|
947
|
+
return __generator(this, function (_d) {
|
|
948
|
+
switch (_d.label) {
|
|
949
|
+
case 0:
|
|
950
|
+
_a = [__assign({}, output)];
|
|
951
|
+
_c = {};
|
|
952
|
+
return [4, parseBody(output.body, context)];
|
|
953
|
+
case 1:
|
|
954
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
955
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
956
|
+
_b = errorCode;
|
|
957
|
+
switch (_b) {
|
|
958
|
+
case "InternalServerException": return [3, 2];
|
|
959
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException": return [3, 2];
|
|
960
|
+
case "InvalidParameterException": return [3, 4];
|
|
961
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 4];
|
|
962
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
963
|
+
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException": return [3, 6];
|
|
964
|
+
}
|
|
965
|
+
return [3, 8];
|
|
966
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
967
|
+
case 3: throw _d.sent();
|
|
968
|
+
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
969
|
+
case 5: throw _d.sent();
|
|
970
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
971
|
+
case 7: throw _d.sent();
|
|
972
|
+
case 8:
|
|
973
|
+
parsedBody = parsedOutput.body;
|
|
974
|
+
throwDefaultError({
|
|
975
|
+
output: output,
|
|
976
|
+
parsedBody: parsedBody,
|
|
977
|
+
exceptionCtor: __BaseException,
|
|
978
|
+
errorCode: errorCode,
|
|
979
|
+
});
|
|
980
|
+
_d.label = 9;
|
|
981
|
+
case 9: return [2];
|
|
618
982
|
}
|
|
619
983
|
});
|
|
620
984
|
}); };
|
|
@@ -802,6 +1166,69 @@ var deserializeAws_restJson1ExportComponentsCommandError = function (output, con
|
|
|
802
1166
|
}
|
|
803
1167
|
});
|
|
804
1168
|
}); };
|
|
1169
|
+
export var deserializeAws_restJson1ExportFormsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1170
|
+
var contents, data, _a, _b;
|
|
1171
|
+
return __generator(this, function (_c) {
|
|
1172
|
+
switch (_c.label) {
|
|
1173
|
+
case 0:
|
|
1174
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1175
|
+
return [2, deserializeAws_restJson1ExportFormsCommandError(output, context)];
|
|
1176
|
+
}
|
|
1177
|
+
contents = map({
|
|
1178
|
+
$metadata: deserializeMetadata(output),
|
|
1179
|
+
});
|
|
1180
|
+
_a = __expectNonNull;
|
|
1181
|
+
_b = __expectObject;
|
|
1182
|
+
return [4, parseBody(output.body, context)];
|
|
1183
|
+
case 1:
|
|
1184
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1185
|
+
if (data.entities != null) {
|
|
1186
|
+
contents.entities = deserializeAws_restJson1FormList(data.entities, context);
|
|
1187
|
+
}
|
|
1188
|
+
if (data.nextToken != null) {
|
|
1189
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1190
|
+
}
|
|
1191
|
+
return [2, contents];
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1194
|
+
}); };
|
|
1195
|
+
var deserializeAws_restJson1ExportFormsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1196
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1197
|
+
var _c;
|
|
1198
|
+
return __generator(this, function (_d) {
|
|
1199
|
+
switch (_d.label) {
|
|
1200
|
+
case 0:
|
|
1201
|
+
_a = [__assign({}, output)];
|
|
1202
|
+
_c = {};
|
|
1203
|
+
return [4, parseBody(output.body, context)];
|
|
1204
|
+
case 1:
|
|
1205
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1206
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1207
|
+
_b = errorCode;
|
|
1208
|
+
switch (_b) {
|
|
1209
|
+
case "InternalServerException": return [3, 2];
|
|
1210
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException": return [3, 2];
|
|
1211
|
+
case "InvalidParameterException": return [3, 4];
|
|
1212
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 4];
|
|
1213
|
+
}
|
|
1214
|
+
return [3, 6];
|
|
1215
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1216
|
+
case 3: throw _d.sent();
|
|
1217
|
+
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1218
|
+
case 5: throw _d.sent();
|
|
1219
|
+
case 6:
|
|
1220
|
+
parsedBody = parsedOutput.body;
|
|
1221
|
+
throwDefaultError({
|
|
1222
|
+
output: output,
|
|
1223
|
+
parsedBody: parsedBody,
|
|
1224
|
+
exceptionCtor: __BaseException,
|
|
1225
|
+
errorCode: errorCode,
|
|
1226
|
+
});
|
|
1227
|
+
_d.label = 7;
|
|
1228
|
+
case 7: return [2];
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
}); };
|
|
805
1232
|
export var deserializeAws_restJson1ExportThemesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
806
1233
|
var contents, data, _a, _b;
|
|
807
1234
|
return __generator(this, function (_c) {
|
|
@@ -926,6 +1353,127 @@ var deserializeAws_restJson1GetComponentCommandError = function (output, context
|
|
|
926
1353
|
}
|
|
927
1354
|
});
|
|
928
1355
|
}); };
|
|
1356
|
+
export var deserializeAws_restJson1GetFormCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1357
|
+
var contents, data, _a;
|
|
1358
|
+
return __generator(this, function (_b) {
|
|
1359
|
+
switch (_b.label) {
|
|
1360
|
+
case 0:
|
|
1361
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1362
|
+
return [2, deserializeAws_restJson1GetFormCommandError(output, context)];
|
|
1363
|
+
}
|
|
1364
|
+
contents = map({
|
|
1365
|
+
$metadata: deserializeMetadata(output),
|
|
1366
|
+
});
|
|
1367
|
+
_a = __expectObject;
|
|
1368
|
+
return [4, parseBody(output.body, context)];
|
|
1369
|
+
case 1:
|
|
1370
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
1371
|
+
contents.form = deserializeAws_restJson1Form(data, context);
|
|
1372
|
+
return [2, contents];
|
|
1373
|
+
}
|
|
1374
|
+
});
|
|
1375
|
+
}); };
|
|
1376
|
+
var deserializeAws_restJson1GetFormCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1377
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1378
|
+
var _c;
|
|
1379
|
+
return __generator(this, function (_d) {
|
|
1380
|
+
switch (_d.label) {
|
|
1381
|
+
case 0:
|
|
1382
|
+
_a = [__assign({}, output)];
|
|
1383
|
+
_c = {};
|
|
1384
|
+
return [4, parseBody(output.body, context)];
|
|
1385
|
+
case 1:
|
|
1386
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1387
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1388
|
+
_b = errorCode;
|
|
1389
|
+
switch (_b) {
|
|
1390
|
+
case "InternalServerException": return [3, 2];
|
|
1391
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException": return [3, 2];
|
|
1392
|
+
case "InvalidParameterException": return [3, 4];
|
|
1393
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 4];
|
|
1394
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1395
|
+
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException": return [3, 6];
|
|
1396
|
+
}
|
|
1397
|
+
return [3, 8];
|
|
1398
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1399
|
+
case 3: throw _d.sent();
|
|
1400
|
+
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1401
|
+
case 5: throw _d.sent();
|
|
1402
|
+
case 6: return [4, deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1403
|
+
case 7: throw _d.sent();
|
|
1404
|
+
case 8:
|
|
1405
|
+
parsedBody = parsedOutput.body;
|
|
1406
|
+
throwDefaultError({
|
|
1407
|
+
output: output,
|
|
1408
|
+
parsedBody: parsedBody,
|
|
1409
|
+
exceptionCtor: __BaseException,
|
|
1410
|
+
errorCode: errorCode,
|
|
1411
|
+
});
|
|
1412
|
+
_d.label = 9;
|
|
1413
|
+
case 9: return [2];
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
}); };
|
|
1417
|
+
export var deserializeAws_restJson1GetMetadataCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1418
|
+
var contents, data, _a, _b;
|
|
1419
|
+
return __generator(this, function (_c) {
|
|
1420
|
+
switch (_c.label) {
|
|
1421
|
+
case 0:
|
|
1422
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1423
|
+
return [2, deserializeAws_restJson1GetMetadataCommandError(output, context)];
|
|
1424
|
+
}
|
|
1425
|
+
contents = map({
|
|
1426
|
+
$metadata: deserializeMetadata(output),
|
|
1427
|
+
});
|
|
1428
|
+
_a = __expectNonNull;
|
|
1429
|
+
_b = __expectObject;
|
|
1430
|
+
return [4, parseBody(output.body, context)];
|
|
1431
|
+
case 1:
|
|
1432
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1433
|
+
if (data.features != null) {
|
|
1434
|
+
contents.features = deserializeAws_restJson1FeaturesMap(data.features, context);
|
|
1435
|
+
}
|
|
1436
|
+
return [2, contents];
|
|
1437
|
+
}
|
|
1438
|
+
});
|
|
1439
|
+
}); };
|
|
1440
|
+
var deserializeAws_restJson1GetMetadataCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1441
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1442
|
+
var _c;
|
|
1443
|
+
return __generator(this, function (_d) {
|
|
1444
|
+
switch (_d.label) {
|
|
1445
|
+
case 0:
|
|
1446
|
+
_a = [__assign({}, output)];
|
|
1447
|
+
_c = {};
|
|
1448
|
+
return [4, parseBody(output.body, context)];
|
|
1449
|
+
case 1:
|
|
1450
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1451
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1452
|
+
_b = errorCode;
|
|
1453
|
+
switch (_b) {
|
|
1454
|
+
case "InvalidParameterException": return [3, 2];
|
|
1455
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 2];
|
|
1456
|
+
case "UnauthorizedException": return [3, 4];
|
|
1457
|
+
case "com.amazonaws.amplifyuibuilder#UnauthorizedException": return [3, 4];
|
|
1458
|
+
}
|
|
1459
|
+
return [3, 6];
|
|
1460
|
+
case 2: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1461
|
+
case 3: throw _d.sent();
|
|
1462
|
+
case 4: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1463
|
+
case 5: throw _d.sent();
|
|
1464
|
+
case 6:
|
|
1465
|
+
parsedBody = parsedOutput.body;
|
|
1466
|
+
throwDefaultError({
|
|
1467
|
+
output: output,
|
|
1468
|
+
parsedBody: parsedBody,
|
|
1469
|
+
exceptionCtor: __BaseException,
|
|
1470
|
+
errorCode: errorCode,
|
|
1471
|
+
});
|
|
1472
|
+
_d.label = 7;
|
|
1473
|
+
case 7: return [2];
|
|
1474
|
+
}
|
|
1475
|
+
});
|
|
1476
|
+
}); };
|
|
929
1477
|
export var deserializeAws_restJson1GetThemeCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
930
1478
|
var contents, data, _a;
|
|
931
1479
|
return __generator(this, function (_b) {
|
|
@@ -1050,6 +1598,69 @@ var deserializeAws_restJson1ListComponentsCommandError = function (output, conte
|
|
|
1050
1598
|
}
|
|
1051
1599
|
});
|
|
1052
1600
|
}); };
|
|
1601
|
+
export var deserializeAws_restJson1ListFormsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1602
|
+
var contents, data, _a, _b;
|
|
1603
|
+
return __generator(this, function (_c) {
|
|
1604
|
+
switch (_c.label) {
|
|
1605
|
+
case 0:
|
|
1606
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1607
|
+
return [2, deserializeAws_restJson1ListFormsCommandError(output, context)];
|
|
1608
|
+
}
|
|
1609
|
+
contents = map({
|
|
1610
|
+
$metadata: deserializeMetadata(output),
|
|
1611
|
+
});
|
|
1612
|
+
_a = __expectNonNull;
|
|
1613
|
+
_b = __expectObject;
|
|
1614
|
+
return [4, parseBody(output.body, context)];
|
|
1615
|
+
case 1:
|
|
1616
|
+
data = _a.apply(void 0, [_b.apply(void 0, [_c.sent()]), "body"]);
|
|
1617
|
+
if (data.entities != null) {
|
|
1618
|
+
contents.entities = deserializeAws_restJson1FormSummaryList(data.entities, context);
|
|
1619
|
+
}
|
|
1620
|
+
if (data.nextToken != null) {
|
|
1621
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1622
|
+
}
|
|
1623
|
+
return [2, contents];
|
|
1624
|
+
}
|
|
1625
|
+
});
|
|
1626
|
+
}); };
|
|
1627
|
+
var deserializeAws_restJson1ListFormsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1628
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1629
|
+
var _c;
|
|
1630
|
+
return __generator(this, function (_d) {
|
|
1631
|
+
switch (_d.label) {
|
|
1632
|
+
case 0:
|
|
1633
|
+
_a = [__assign({}, output)];
|
|
1634
|
+
_c = {};
|
|
1635
|
+
return [4, parseBody(output.body, context)];
|
|
1636
|
+
case 1:
|
|
1637
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1638
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1639
|
+
_b = errorCode;
|
|
1640
|
+
switch (_b) {
|
|
1641
|
+
case "InternalServerException": return [3, 2];
|
|
1642
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException": return [3, 2];
|
|
1643
|
+
case "InvalidParameterException": return [3, 4];
|
|
1644
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 4];
|
|
1645
|
+
}
|
|
1646
|
+
return [3, 6];
|
|
1647
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1648
|
+
case 3: throw _d.sent();
|
|
1649
|
+
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1650
|
+
case 5: throw _d.sent();
|
|
1651
|
+
case 6:
|
|
1652
|
+
parsedBody = parsedOutput.body;
|
|
1653
|
+
throwDefaultError({
|
|
1654
|
+
output: output,
|
|
1655
|
+
parsedBody: parsedBody,
|
|
1656
|
+
exceptionCtor: __BaseException,
|
|
1657
|
+
errorCode: errorCode,
|
|
1658
|
+
});
|
|
1659
|
+
_d.label = 7;
|
|
1660
|
+
case 7: return [2];
|
|
1661
|
+
}
|
|
1662
|
+
});
|
|
1663
|
+
}); };
|
|
1053
1664
|
export var deserializeAws_restJson1ListThemesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1054
1665
|
var contents, data, _a, _b;
|
|
1055
1666
|
return __generator(this, function (_c) {
|
|
@@ -1113,6 +1724,61 @@ var deserializeAws_restJson1ListThemesCommandError = function (output, context)
|
|
|
1113
1724
|
}
|
|
1114
1725
|
});
|
|
1115
1726
|
}); };
|
|
1727
|
+
export var deserializeAws_restJson1PutMetadataFlagCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1728
|
+
var contents;
|
|
1729
|
+
return __generator(this, function (_a) {
|
|
1730
|
+
switch (_a.label) {
|
|
1731
|
+
case 0:
|
|
1732
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1733
|
+
return [2, deserializeAws_restJson1PutMetadataFlagCommandError(output, context)];
|
|
1734
|
+
}
|
|
1735
|
+
contents = map({
|
|
1736
|
+
$metadata: deserializeMetadata(output),
|
|
1737
|
+
});
|
|
1738
|
+
return [4, collectBody(output.body, context)];
|
|
1739
|
+
case 1:
|
|
1740
|
+
_a.sent();
|
|
1741
|
+
return [2, contents];
|
|
1742
|
+
}
|
|
1743
|
+
});
|
|
1744
|
+
}); };
|
|
1745
|
+
var deserializeAws_restJson1PutMetadataFlagCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1746
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1747
|
+
var _c;
|
|
1748
|
+
return __generator(this, function (_d) {
|
|
1749
|
+
switch (_d.label) {
|
|
1750
|
+
case 0:
|
|
1751
|
+
_a = [__assign({}, output)];
|
|
1752
|
+
_c = {};
|
|
1753
|
+
return [4, parseBody(output.body, context)];
|
|
1754
|
+
case 1:
|
|
1755
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1756
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1757
|
+
_b = errorCode;
|
|
1758
|
+
switch (_b) {
|
|
1759
|
+
case "InvalidParameterException": return [3, 2];
|
|
1760
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 2];
|
|
1761
|
+
case "UnauthorizedException": return [3, 4];
|
|
1762
|
+
case "com.amazonaws.amplifyuibuilder#UnauthorizedException": return [3, 4];
|
|
1763
|
+
}
|
|
1764
|
+
return [3, 6];
|
|
1765
|
+
case 2: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1766
|
+
case 3: throw _d.sent();
|
|
1767
|
+
case 4: return [4, deserializeAws_restJson1UnauthorizedExceptionResponse(parsedOutput, context)];
|
|
1768
|
+
case 5: throw _d.sent();
|
|
1769
|
+
case 6:
|
|
1770
|
+
parsedBody = parsedOutput.body;
|
|
1771
|
+
throwDefaultError({
|
|
1772
|
+
output: output,
|
|
1773
|
+
parsedBody: parsedBody,
|
|
1774
|
+
exceptionCtor: __BaseException,
|
|
1775
|
+
errorCode: errorCode,
|
|
1776
|
+
});
|
|
1777
|
+
_d.label = 7;
|
|
1778
|
+
case 7: return [2];
|
|
1779
|
+
}
|
|
1780
|
+
});
|
|
1781
|
+
}); };
|
|
1116
1782
|
export var deserializeAws_restJson1RefreshTokenCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1117
1783
|
var contents, data, _a, _b;
|
|
1118
1784
|
return __generator(this, function (_c) {
|
|
@@ -1139,7 +1805,60 @@ export var deserializeAws_restJson1RefreshTokenCommand = function (output, conte
|
|
|
1139
1805
|
}
|
|
1140
1806
|
});
|
|
1141
1807
|
}); };
|
|
1142
|
-
var deserializeAws_restJson1RefreshTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1808
|
+
var deserializeAws_restJson1RefreshTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1809
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1810
|
+
var _c;
|
|
1811
|
+
return __generator(this, function (_d) {
|
|
1812
|
+
switch (_d.label) {
|
|
1813
|
+
case 0:
|
|
1814
|
+
_a = [__assign({}, output)];
|
|
1815
|
+
_c = {};
|
|
1816
|
+
return [4, parseBody(output.body, context)];
|
|
1817
|
+
case 1:
|
|
1818
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1819
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1820
|
+
_b = errorCode;
|
|
1821
|
+
switch (_b) {
|
|
1822
|
+
case "InvalidParameterException": return [3, 2];
|
|
1823
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 2];
|
|
1824
|
+
}
|
|
1825
|
+
return [3, 4];
|
|
1826
|
+
case 2: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1827
|
+
case 3: throw _d.sent();
|
|
1828
|
+
case 4:
|
|
1829
|
+
parsedBody = parsedOutput.body;
|
|
1830
|
+
throwDefaultError({
|
|
1831
|
+
output: output,
|
|
1832
|
+
parsedBody: parsedBody,
|
|
1833
|
+
exceptionCtor: __BaseException,
|
|
1834
|
+
errorCode: errorCode,
|
|
1835
|
+
});
|
|
1836
|
+
_d.label = 5;
|
|
1837
|
+
case 5: return [2];
|
|
1838
|
+
}
|
|
1839
|
+
});
|
|
1840
|
+
}); };
|
|
1841
|
+
export var deserializeAws_restJson1UpdateComponentCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1842
|
+
var contents, data, _a;
|
|
1843
|
+
return __generator(this, function (_b) {
|
|
1844
|
+
switch (_b.label) {
|
|
1845
|
+
case 0:
|
|
1846
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1847
|
+
return [2, deserializeAws_restJson1UpdateComponentCommandError(output, context)];
|
|
1848
|
+
}
|
|
1849
|
+
contents = map({
|
|
1850
|
+
$metadata: deserializeMetadata(output),
|
|
1851
|
+
});
|
|
1852
|
+
_a = __expectObject;
|
|
1853
|
+
return [4, parseBody(output.body, context)];
|
|
1854
|
+
case 1:
|
|
1855
|
+
data = _a.apply(void 0, [_b.sent()]);
|
|
1856
|
+
contents.entity = deserializeAws_restJson1Component(data, context);
|
|
1857
|
+
return [2, contents];
|
|
1858
|
+
}
|
|
1859
|
+
});
|
|
1860
|
+
}); };
|
|
1861
|
+
var deserializeAws_restJson1UpdateComponentCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1143
1862
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1144
1863
|
var _c;
|
|
1145
1864
|
return __generator(this, function (_d) {
|
|
@@ -1153,13 +1872,21 @@ var deserializeAws_restJson1RefreshTokenCommandError = function (output, context
|
|
|
1153
1872
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1154
1873
|
_b = errorCode;
|
|
1155
1874
|
switch (_b) {
|
|
1156
|
-
case "
|
|
1157
|
-
case "com.amazonaws.amplifyuibuilder#
|
|
1875
|
+
case "InternalServerException": return [3, 2];
|
|
1876
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException": return [3, 2];
|
|
1877
|
+
case "InvalidParameterException": return [3, 4];
|
|
1878
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException": return [3, 4];
|
|
1879
|
+
case "ResourceConflictException": return [3, 6];
|
|
1880
|
+
case "com.amazonaws.amplifyuibuilder#ResourceConflictException": return [3, 6];
|
|
1158
1881
|
}
|
|
1159
|
-
return [3,
|
|
1160
|
-
case 2: return [4,
|
|
1882
|
+
return [3, 8];
|
|
1883
|
+
case 2: return [4, deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1161
1884
|
case 3: throw _d.sent();
|
|
1162
|
-
case 4:
|
|
1885
|
+
case 4: return [4, deserializeAws_restJson1InvalidParameterExceptionResponse(parsedOutput, context)];
|
|
1886
|
+
case 5: throw _d.sent();
|
|
1887
|
+
case 6: return [4, deserializeAws_restJson1ResourceConflictExceptionResponse(parsedOutput, context)];
|
|
1888
|
+
case 7: throw _d.sent();
|
|
1889
|
+
case 8:
|
|
1163
1890
|
parsedBody = parsedOutput.body;
|
|
1164
1891
|
throwDefaultError({
|
|
1165
1892
|
output: output,
|
|
@@ -1167,18 +1894,18 @@ var deserializeAws_restJson1RefreshTokenCommandError = function (output, context
|
|
|
1167
1894
|
exceptionCtor: __BaseException,
|
|
1168
1895
|
errorCode: errorCode,
|
|
1169
1896
|
});
|
|
1170
|
-
_d.label =
|
|
1171
|
-
case
|
|
1897
|
+
_d.label = 9;
|
|
1898
|
+
case 9: return [2];
|
|
1172
1899
|
}
|
|
1173
1900
|
});
|
|
1174
1901
|
}); };
|
|
1175
|
-
export var
|
|
1902
|
+
export var deserializeAws_restJson1UpdateFormCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1176
1903
|
var contents, data, _a;
|
|
1177
1904
|
return __generator(this, function (_b) {
|
|
1178
1905
|
switch (_b.label) {
|
|
1179
1906
|
case 0:
|
|
1180
1907
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1181
|
-
return [2,
|
|
1908
|
+
return [2, deserializeAws_restJson1UpdateFormCommandError(output, context)];
|
|
1182
1909
|
}
|
|
1183
1910
|
contents = map({
|
|
1184
1911
|
$metadata: deserializeMetadata(output),
|
|
@@ -1187,12 +1914,12 @@ export var deserializeAws_restJson1UpdateComponentCommand = function (output, co
|
|
|
1187
1914
|
return [4, parseBody(output.body, context)];
|
|
1188
1915
|
case 1:
|
|
1189
1916
|
data = _a.apply(void 0, [_b.sent()]);
|
|
1190
|
-
contents.entity =
|
|
1917
|
+
contents.entity = deserializeAws_restJson1Form(data, context);
|
|
1191
1918
|
return [2, contents];
|
|
1192
1919
|
}
|
|
1193
1920
|
});
|
|
1194
1921
|
}); };
|
|
1195
|
-
var
|
|
1922
|
+
var deserializeAws_restJson1UpdateFormCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1196
1923
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1197
1924
|
var _c;
|
|
1198
1925
|
return __generator(this, function (_d) {
|
|
@@ -1355,6 +2082,18 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1355
2082
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1356
2083
|
});
|
|
1357
2084
|
}); };
|
|
2085
|
+
var deserializeAws_restJson1UnauthorizedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2086
|
+
var contents, data, exception;
|
|
2087
|
+
return __generator(this, function (_a) {
|
|
2088
|
+
contents = map({});
|
|
2089
|
+
data = parsedOutput.body;
|
|
2090
|
+
if (data.message != null) {
|
|
2091
|
+
contents.message = __expectString(data.message);
|
|
2092
|
+
}
|
|
2093
|
+
exception = new UnauthorizedException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, contents));
|
|
2094
|
+
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
2095
|
+
});
|
|
2096
|
+
}); };
|
|
1358
2097
|
var serializeAws_restJson1ActionParameters = function (input, context) {
|
|
1359
2098
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.anchor != null && { anchor: serializeAws_restJson1ComponentProperty(input.anchor, context) })), (input.fields != null && { fields: serializeAws_restJson1ComponentProperties(input.fields, context) })), (input.global != null && { global: serializeAws_restJson1ComponentProperty(input.global, context) })), (input.id != null && { id: serializeAws_restJson1ComponentProperty(input.id, context) })), (input.model != null && { model: input.model })), (input.state != null && { state: serializeAws_restJson1MutationActionSetStateParameter(input.state, context) })), (input.target != null && { target: serializeAws_restJson1ComponentProperty(input.target, context) })), (input.type != null && { type: serializeAws_restJson1ComponentProperty(input.type, context) })), (input.url != null && { url: serializeAws_restJson1ComponentProperty(input.url, context) }));
|
|
1360
2099
|
};
|
|
@@ -1374,7 +2113,7 @@ var serializeAws_restJson1ComponentBindingPropertiesValue = function (input, con
|
|
|
1374
2113
|
})), (input.defaultValue != null && { defaultValue: input.defaultValue })), (input.type != null && { type: input.type }));
|
|
1375
2114
|
};
|
|
1376
2115
|
var serializeAws_restJson1ComponentBindingPropertiesValueProperties = function (input, context) {
|
|
1377
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.defaultValue != null && { defaultValue: input.defaultValue })), (input.field != null && { field: input.field })), (input.key != null && { key: input.key })), (input.model != null && { model: input.model })), (input.predicates != null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) })), (input.userAttribute != null && { userAttribute: input.userAttribute }));
|
|
2116
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bucket != null && { bucket: input.bucket })), (input.defaultValue != null && { defaultValue: input.defaultValue })), (input.field != null && { field: input.field })), (input.key != null && { key: input.key })), (input.model != null && { model: input.model })), (input.predicates != null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) })), (input.slotName != null && { slotName: input.slotName })), (input.userAttribute != null && { userAttribute: input.userAttribute }));
|
|
1378
2117
|
};
|
|
1379
2118
|
var serializeAws_restJson1ComponentChild = function (input, context) {
|
|
1380
2119
|
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.children != null && { children: serializeAws_restJson1ComponentChildList(input.children, context) })), (input.componentType != null && { componentType: input.componentType })), (input.events != null && { events: serializeAws_restJson1ComponentEvents(input.events, context) })), (input.name != null && { name: input.name })), (input.properties != null && {
|
|
@@ -1497,12 +2236,48 @@ var serializeAws_restJson1CreateComponentData = function (input, context) {
|
|
|
1497
2236
|
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1498
2237
|
})), (input.schemaVersion != null && { schemaVersion: input.schemaVersion })), (input.sourceId != null && { sourceId: input.sourceId })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.variants != null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }));
|
|
1499
2238
|
};
|
|
2239
|
+
var serializeAws_restJson1CreateFormData = function (input, context) {
|
|
2240
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cta != null && { cta: serializeAws_restJson1FormCTA(input.cta, context) })), (input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) })), (input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) })), (input.formActionType != null && { formActionType: input.formActionType })), (input.name != null && { name: input.name })), (input.schemaVersion != null && { schemaVersion: input.schemaVersion })), (input.sectionalElements != null && {
|
|
2241
|
+
sectionalElements: serializeAws_restJson1SectionalElementMap(input.sectionalElements, context),
|
|
2242
|
+
})), (input.style != null && { style: serializeAws_restJson1FormStyle(input.style, context) })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }));
|
|
2243
|
+
};
|
|
1500
2244
|
var serializeAws_restJson1CreateThemeData = function (input, context) {
|
|
1501
2245
|
return __assign(__assign(__assign(__assign({}, (input.name != null && { name: input.name })), (input.overrides != null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) })), (input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.values != null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }));
|
|
1502
2246
|
};
|
|
1503
2247
|
var serializeAws_restJson1ExchangeCodeForTokenRequestBody = function (input, context) {
|
|
1504
2248
|
return __assign(__assign({}, (input.code != null && { code: input.code })), (input.redirectUri != null && { redirectUri: input.redirectUri }));
|
|
1505
2249
|
};
|
|
2250
|
+
var serializeAws_restJson1FieldConfig = function (input, context) {
|
|
2251
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.excluded != null && { excluded: input.excluded })), (input.inputType != null && { inputType: serializeAws_restJson1FieldInputConfig(input.inputType, context) })), (input.label != null && { label: input.label })), (input.position != null && { position: serializeAws_restJson1FieldPosition(input.position, context) })), (input.validations != null && {
|
|
2252
|
+
validations: serializeAws_restJson1ValidationsList(input.validations, context),
|
|
2253
|
+
}));
|
|
2254
|
+
};
|
|
2255
|
+
var serializeAws_restJson1FieldInputConfig = function (input, context) {
|
|
2256
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.defaultChecked != null && { defaultChecked: input.defaultChecked })), (input.defaultCountryCode != null && { defaultCountryCode: input.defaultCountryCode })), (input.defaultValue != null && { defaultValue: input.defaultValue })), (input.descriptiveText != null && { descriptiveText: input.descriptiveText })), (input.maxValue != null && { maxValue: __serializeFloat(input.maxValue) })), (input.minValue != null && { minValue: __serializeFloat(input.minValue) })), (input.name != null && { name: input.name })), (input.placeholder != null && { placeholder: input.placeholder })), (input.readOnly != null && { readOnly: input.readOnly })), (input.required != null && { required: input.required })), (input.step != null && { step: __serializeFloat(input.step) })), (input.type != null && { type: input.type })), (input.value != null && { value: input.value })), (input.valueMappings != null && {
|
|
2257
|
+
valueMappings: serializeAws_restJson1ValueMappings(input.valueMappings, context),
|
|
2258
|
+
}));
|
|
2259
|
+
};
|
|
2260
|
+
var serializeAws_restJson1FieldPosition = function (input, context) {
|
|
2261
|
+
return FieldPosition.visit(input, {
|
|
2262
|
+
below: function (value) { return ({ below: value }); },
|
|
2263
|
+
fixed: function (value) { return ({ fixed: value }); },
|
|
2264
|
+
rightOf: function (value) { return ({ rightOf: value }); },
|
|
2265
|
+
_: function (name, value) { return ({ name: value }); },
|
|
2266
|
+
});
|
|
2267
|
+
};
|
|
2268
|
+
var serializeAws_restJson1FieldsMap = function (input, context) {
|
|
2269
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2270
|
+
var _b;
|
|
2271
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2272
|
+
if (value === null) {
|
|
2273
|
+
return acc;
|
|
2274
|
+
}
|
|
2275
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1FieldConfig(value, context), _b));
|
|
2276
|
+
}, {});
|
|
2277
|
+
};
|
|
2278
|
+
var serializeAws_restJson1FieldValidationConfiguration = function (input, context) {
|
|
2279
|
+
return __assign(__assign(__assign(__assign({}, (input.numValues != null && { numValues: serializeAws_restJson1NumValues(input.numValues, context) })), (input.strValues != null && { strValues: serializeAws_restJson1StrValues(input.strValues, context) })), (input.type != null && { type: input.type })), (input.validationMessage != null && { validationMessage: input.validationMessage }));
|
|
2280
|
+
};
|
|
1506
2281
|
var serializeAws_restJson1FormBindingElement = function (input, context) {
|
|
1507
2282
|
return __assign(__assign({}, (input.element != null && { element: input.element })), (input.property != null && { property: input.property }));
|
|
1508
2283
|
};
|
|
@@ -1516,6 +2291,34 @@ var serializeAws_restJson1FormBindings = function (input, context) {
|
|
|
1516
2291
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1FormBindingElement(value, context), _b));
|
|
1517
2292
|
}, {});
|
|
1518
2293
|
};
|
|
2294
|
+
var serializeAws_restJson1FormButton = function (input, context) {
|
|
2295
|
+
return __assign(__assign(__assign({}, (input.children != null && { children: input.children })), (input.excluded != null && { excluded: input.excluded })), (input.position != null && { position: serializeAws_restJson1FieldPosition(input.position, context) }));
|
|
2296
|
+
};
|
|
2297
|
+
var serializeAws_restJson1FormCTA = function (input, context) {
|
|
2298
|
+
return __assign(__assign(__assign(__assign({}, (input.cancel != null && { cancel: serializeAws_restJson1FormButton(input.cancel, context) })), (input.clear != null && { clear: serializeAws_restJson1FormButton(input.clear, context) })), (input.position != null && { position: input.position })), (input.submit != null && { submit: serializeAws_restJson1FormButton(input.submit, context) }));
|
|
2299
|
+
};
|
|
2300
|
+
var serializeAws_restJson1FormDataTypeConfig = function (input, context) {
|
|
2301
|
+
return __assign(__assign({}, (input.dataSourceType != null && { dataSourceType: input.dataSourceType })), (input.dataTypeName != null && { dataTypeName: input.dataTypeName }));
|
|
2302
|
+
};
|
|
2303
|
+
var serializeAws_restJson1FormInputValueProperty = function (input, context) {
|
|
2304
|
+
return __assign({}, (input.value != null && { value: input.value }));
|
|
2305
|
+
};
|
|
2306
|
+
var serializeAws_restJson1FormStyle = function (input, context) {
|
|
2307
|
+
return __assign(__assign(__assign({}, (input.horizontalGap != null && {
|
|
2308
|
+
horizontalGap: serializeAws_restJson1FormStyleConfig(input.horizontalGap, context),
|
|
2309
|
+
})), (input.outerPadding != null && {
|
|
2310
|
+
outerPadding: serializeAws_restJson1FormStyleConfig(input.outerPadding, context),
|
|
2311
|
+
})), (input.verticalGap != null && {
|
|
2312
|
+
verticalGap: serializeAws_restJson1FormStyleConfig(input.verticalGap, context),
|
|
2313
|
+
}));
|
|
2314
|
+
};
|
|
2315
|
+
var serializeAws_restJson1FormStyleConfig = function (input, context) {
|
|
2316
|
+
return FormStyleConfig.visit(input, {
|
|
2317
|
+
tokenReference: function (value) { return ({ tokenReference: value }); },
|
|
2318
|
+
value: function (value) { return ({ value: value }); },
|
|
2319
|
+
_: function (name, value) { return ({ name: value }); },
|
|
2320
|
+
});
|
|
2321
|
+
};
|
|
1519
2322
|
var serializeAws_restJson1IdentifierList = function (input, context) {
|
|
1520
2323
|
return input
|
|
1521
2324
|
.filter(function (e) { return e != null; })
|
|
@@ -1526,6 +2329,13 @@ var serializeAws_restJson1IdentifierList = function (input, context) {
|
|
|
1526
2329
|
var serializeAws_restJson1MutationActionSetStateParameter = function (input, context) {
|
|
1527
2330
|
return __assign(__assign(__assign({}, (input.componentName != null && { componentName: input.componentName })), (input.property != null && { property: input.property })), (input.set != null && { set: serializeAws_restJson1ComponentProperty(input.set, context) }));
|
|
1528
2331
|
};
|
|
2332
|
+
var serializeAws_restJson1NumValues = function (input, context) {
|
|
2333
|
+
return input
|
|
2334
|
+
.filter(function (e) { return e != null; })
|
|
2335
|
+
.map(function (entry) {
|
|
2336
|
+
return entry;
|
|
2337
|
+
});
|
|
2338
|
+
};
|
|
1529
2339
|
var serializeAws_restJson1Predicate = function (input, context) {
|
|
1530
2340
|
return __assign(__assign(__assign(__assign(__assign({}, (input.and != null && { and: serializeAws_restJson1PredicateList(input.and, context) })), (input.field != null && { field: input.field })), (input.operand != null && { operand: input.operand })), (input.operator != null && { operator: input.operator })), (input.or != null && { or: serializeAws_restJson1PredicateList(input.or, context) }));
|
|
1531
2341
|
};
|
|
@@ -1536,9 +2346,25 @@ var serializeAws_restJson1PredicateList = function (input, context) {
|
|
|
1536
2346
|
return serializeAws_restJson1Predicate(entry, context);
|
|
1537
2347
|
});
|
|
1538
2348
|
};
|
|
2349
|
+
var serializeAws_restJson1PutMetadataFlagBody = function (input, context) {
|
|
2350
|
+
return __assign({}, (input.newValue != null && { newValue: input.newValue }));
|
|
2351
|
+
};
|
|
1539
2352
|
var serializeAws_restJson1RefreshTokenRequestBody = function (input, context) {
|
|
1540
2353
|
return __assign({}, (input.token != null && { token: input.token }));
|
|
1541
2354
|
};
|
|
2355
|
+
var serializeAws_restJson1SectionalElement = function (input, context) {
|
|
2356
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.level != null && { level: input.level })), (input.orientation != null && { orientation: input.orientation })), (input.position != null && { position: serializeAws_restJson1FieldPosition(input.position, context) })), (input.text != null && { text: input.text })), (input.type != null && { type: input.type }));
|
|
2357
|
+
};
|
|
2358
|
+
var serializeAws_restJson1SectionalElementMap = function (input, context) {
|
|
2359
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
2360
|
+
var _b;
|
|
2361
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2362
|
+
if (value === null) {
|
|
2363
|
+
return acc;
|
|
2364
|
+
}
|
|
2365
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1SectionalElement(value, context), _b));
|
|
2366
|
+
}, {});
|
|
2367
|
+
};
|
|
1542
2368
|
var serializeAws_restJson1SortProperty = function (input, context) {
|
|
1543
2369
|
return __assign(__assign({}, (input.direction != null && { direction: input.direction })), (input.field != null && { field: input.field }));
|
|
1544
2370
|
};
|
|
@@ -1549,6 +2375,13 @@ var serializeAws_restJson1SortPropertyList = function (input, context) {
|
|
|
1549
2375
|
return serializeAws_restJson1SortProperty(entry, context);
|
|
1550
2376
|
});
|
|
1551
2377
|
};
|
|
2378
|
+
var serializeAws_restJson1StrValues = function (input, context) {
|
|
2379
|
+
return input
|
|
2380
|
+
.filter(function (e) { return e != null; })
|
|
2381
|
+
.map(function (entry) {
|
|
2382
|
+
return entry;
|
|
2383
|
+
});
|
|
2384
|
+
};
|
|
1552
2385
|
var serializeAws_restJson1Tags = function (input, context) {
|
|
1553
2386
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
1554
2387
|
var _b;
|
|
@@ -1581,9 +2414,36 @@ var serializeAws_restJson1UpdateComponentData = function (input, context) {
|
|
|
1581
2414
|
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1582
2415
|
})), (input.schemaVersion != null && { schemaVersion: input.schemaVersion })), (input.sourceId != null && { sourceId: input.sourceId })), (input.variants != null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }));
|
|
1583
2416
|
};
|
|
2417
|
+
var serializeAws_restJson1UpdateFormData = function (input, context) {
|
|
2418
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.cta != null && { cta: serializeAws_restJson1FormCTA(input.cta, context) })), (input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) })), (input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) })), (input.formActionType != null && { formActionType: input.formActionType })), (input.name != null && { name: input.name })), (input.schemaVersion != null && { schemaVersion: input.schemaVersion })), (input.sectionalElements != null && {
|
|
2419
|
+
sectionalElements: serializeAws_restJson1SectionalElementMap(input.sectionalElements, context),
|
|
2420
|
+
})), (input.style != null && { style: serializeAws_restJson1FormStyle(input.style, context) }));
|
|
2421
|
+
};
|
|
1584
2422
|
var serializeAws_restJson1UpdateThemeData = function (input, context) {
|
|
1585
2423
|
return __assign(__assign(__assign(__assign({}, (input.id != null && { id: input.id })), (input.name != null && { name: input.name })), (input.overrides != null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) })), (input.values != null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }));
|
|
1586
2424
|
};
|
|
2425
|
+
var serializeAws_restJson1ValidationsList = function (input, context) {
|
|
2426
|
+
return input
|
|
2427
|
+
.filter(function (e) { return e != null; })
|
|
2428
|
+
.map(function (entry) {
|
|
2429
|
+
return serializeAws_restJson1FieldValidationConfiguration(entry, context);
|
|
2430
|
+
});
|
|
2431
|
+
};
|
|
2432
|
+
var serializeAws_restJson1ValueMapping = function (input, context) {
|
|
2433
|
+
return __assign(__assign({}, (input.displayValue != null && {
|
|
2434
|
+
displayValue: serializeAws_restJson1FormInputValueProperty(input.displayValue, context),
|
|
2435
|
+
})), (input.value != null && { value: serializeAws_restJson1FormInputValueProperty(input.value, context) }));
|
|
2436
|
+
};
|
|
2437
|
+
var serializeAws_restJson1ValueMappingList = function (input, context) {
|
|
2438
|
+
return input
|
|
2439
|
+
.filter(function (e) { return e != null; })
|
|
2440
|
+
.map(function (entry) {
|
|
2441
|
+
return serializeAws_restJson1ValueMapping(entry, context);
|
|
2442
|
+
});
|
|
2443
|
+
};
|
|
2444
|
+
var serializeAws_restJson1ValueMappings = function (input, context) {
|
|
2445
|
+
return __assign({}, (input.values != null && { values: serializeAws_restJson1ValueMappingList(input.values, context) }));
|
|
2446
|
+
};
|
|
1587
2447
|
var deserializeAws_restJson1ActionParameters = function (output, context) {
|
|
1588
2448
|
return {
|
|
1589
2449
|
anchor: output.anchor != null ? deserializeAws_restJson1ComponentProperty(output.anchor, context) : undefined,
|
|
@@ -1649,6 +2509,7 @@ var deserializeAws_restJson1ComponentBindingPropertiesValueProperties = function
|
|
|
1649
2509
|
key: __expectString(output.key),
|
|
1650
2510
|
model: __expectString(output.model),
|
|
1651
2511
|
predicates: output.predicates != null ? deserializeAws_restJson1PredicateList(output.predicates, context) : undefined,
|
|
2512
|
+
slotName: __expectString(output.slotName),
|
|
1652
2513
|
userAttribute: __expectString(output.userAttribute),
|
|
1653
2514
|
};
|
|
1654
2515
|
};
|
|
@@ -1851,6 +2712,93 @@ var deserializeAws_restJson1ComponentVariantValues = function (output, context)
|
|
|
1851
2712
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
1852
2713
|
}, {});
|
|
1853
2714
|
};
|
|
2715
|
+
var deserializeAws_restJson1FeaturesMap = function (output, context) {
|
|
2716
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2717
|
+
var _b;
|
|
2718
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2719
|
+
if (value === null) {
|
|
2720
|
+
return acc;
|
|
2721
|
+
}
|
|
2722
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = __expectString(value), _b));
|
|
2723
|
+
}, {});
|
|
2724
|
+
};
|
|
2725
|
+
var deserializeAws_restJson1FieldConfig = function (output, context) {
|
|
2726
|
+
return {
|
|
2727
|
+
excluded: __expectBoolean(output.excluded),
|
|
2728
|
+
inputType: output.inputType != null ? deserializeAws_restJson1FieldInputConfig(output.inputType, context) : undefined,
|
|
2729
|
+
label: __expectString(output.label),
|
|
2730
|
+
position: output.position != null
|
|
2731
|
+
? deserializeAws_restJson1FieldPosition(__expectUnion(output.position), context)
|
|
2732
|
+
: undefined,
|
|
2733
|
+
validations: output.validations != null ? deserializeAws_restJson1ValidationsList(output.validations, context) : undefined,
|
|
2734
|
+
};
|
|
2735
|
+
};
|
|
2736
|
+
var deserializeAws_restJson1FieldInputConfig = function (output, context) {
|
|
2737
|
+
return {
|
|
2738
|
+
defaultChecked: __expectBoolean(output.defaultChecked),
|
|
2739
|
+
defaultCountryCode: __expectString(output.defaultCountryCode),
|
|
2740
|
+
defaultValue: __expectString(output.defaultValue),
|
|
2741
|
+
descriptiveText: __expectString(output.descriptiveText),
|
|
2742
|
+
maxValue: __limitedParseFloat32(output.maxValue),
|
|
2743
|
+
minValue: __limitedParseFloat32(output.minValue),
|
|
2744
|
+
name: __expectString(output.name),
|
|
2745
|
+
placeholder: __expectString(output.placeholder),
|
|
2746
|
+
readOnly: __expectBoolean(output.readOnly),
|
|
2747
|
+
required: __expectBoolean(output.required),
|
|
2748
|
+
step: __limitedParseFloat32(output.step),
|
|
2749
|
+
type: __expectString(output.type),
|
|
2750
|
+
value: __expectString(output.value),
|
|
2751
|
+
valueMappings: output.valueMappings != null ? deserializeAws_restJson1ValueMappings(output.valueMappings, context) : undefined,
|
|
2752
|
+
};
|
|
2753
|
+
};
|
|
2754
|
+
var deserializeAws_restJson1FieldPosition = function (output, context) {
|
|
2755
|
+
if (__expectString(output.below) !== undefined) {
|
|
2756
|
+
return { below: __expectString(output.below) };
|
|
2757
|
+
}
|
|
2758
|
+
if (__expectString(output.fixed) !== undefined) {
|
|
2759
|
+
return { fixed: __expectString(output.fixed) };
|
|
2760
|
+
}
|
|
2761
|
+
if (__expectString(output.rightOf) !== undefined) {
|
|
2762
|
+
return { rightOf: __expectString(output.rightOf) };
|
|
2763
|
+
}
|
|
2764
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2765
|
+
};
|
|
2766
|
+
var deserializeAws_restJson1FieldsMap = function (output, context) {
|
|
2767
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2768
|
+
var _b;
|
|
2769
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2770
|
+
if (value === null) {
|
|
2771
|
+
return acc;
|
|
2772
|
+
}
|
|
2773
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1FieldConfig(value, context), _b));
|
|
2774
|
+
}, {});
|
|
2775
|
+
};
|
|
2776
|
+
var deserializeAws_restJson1FieldValidationConfiguration = function (output, context) {
|
|
2777
|
+
return {
|
|
2778
|
+
numValues: output.numValues != null ? deserializeAws_restJson1NumValues(output.numValues, context) : undefined,
|
|
2779
|
+
strValues: output.strValues != null ? deserializeAws_restJson1StrValues(output.strValues, context) : undefined,
|
|
2780
|
+
type: __expectString(output.type),
|
|
2781
|
+
validationMessage: __expectString(output.validationMessage),
|
|
2782
|
+
};
|
|
2783
|
+
};
|
|
2784
|
+
var deserializeAws_restJson1Form = function (output, context) {
|
|
2785
|
+
return {
|
|
2786
|
+
appId: __expectString(output.appId),
|
|
2787
|
+
cta: output.cta != null ? deserializeAws_restJson1FormCTA(output.cta, context) : undefined,
|
|
2788
|
+
dataType: output.dataType != null ? deserializeAws_restJson1FormDataTypeConfig(output.dataType, context) : undefined,
|
|
2789
|
+
environmentName: __expectString(output.environmentName),
|
|
2790
|
+
fields: output.fields != null ? deserializeAws_restJson1FieldsMap(output.fields, context) : undefined,
|
|
2791
|
+
formActionType: __expectString(output.formActionType),
|
|
2792
|
+
id: __expectString(output.id),
|
|
2793
|
+
name: __expectString(output.name),
|
|
2794
|
+
schemaVersion: __expectString(output.schemaVersion),
|
|
2795
|
+
sectionalElements: output.sectionalElements != null
|
|
2796
|
+
? deserializeAws_restJson1SectionalElementMap(output.sectionalElements, context)
|
|
2797
|
+
: undefined,
|
|
2798
|
+
style: output.style != null ? deserializeAws_restJson1FormStyle(output.style, context) : undefined,
|
|
2799
|
+
tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
|
|
2800
|
+
};
|
|
2801
|
+
};
|
|
1854
2802
|
var deserializeAws_restJson1FormBindingElement = function (output, context) {
|
|
1855
2803
|
return {
|
|
1856
2804
|
element: __expectString(output.element),
|
|
@@ -1867,6 +2815,88 @@ var deserializeAws_restJson1FormBindings = function (output, context) {
|
|
|
1867
2815
|
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1FormBindingElement(value, context), _b));
|
|
1868
2816
|
}, {});
|
|
1869
2817
|
};
|
|
2818
|
+
var deserializeAws_restJson1FormButton = function (output, context) {
|
|
2819
|
+
return {
|
|
2820
|
+
children: __expectString(output.children),
|
|
2821
|
+
excluded: __expectBoolean(output.excluded),
|
|
2822
|
+
position: output.position != null
|
|
2823
|
+
? deserializeAws_restJson1FieldPosition(__expectUnion(output.position), context)
|
|
2824
|
+
: undefined,
|
|
2825
|
+
};
|
|
2826
|
+
};
|
|
2827
|
+
var deserializeAws_restJson1FormCTA = function (output, context) {
|
|
2828
|
+
return {
|
|
2829
|
+
cancel: output.cancel != null ? deserializeAws_restJson1FormButton(output.cancel, context) : undefined,
|
|
2830
|
+
clear: output.clear != null ? deserializeAws_restJson1FormButton(output.clear, context) : undefined,
|
|
2831
|
+
position: __expectString(output.position),
|
|
2832
|
+
submit: output.submit != null ? deserializeAws_restJson1FormButton(output.submit, context) : undefined,
|
|
2833
|
+
};
|
|
2834
|
+
};
|
|
2835
|
+
var deserializeAws_restJson1FormDataTypeConfig = function (output, context) {
|
|
2836
|
+
return {
|
|
2837
|
+
dataSourceType: __expectString(output.dataSourceType),
|
|
2838
|
+
dataTypeName: __expectString(output.dataTypeName),
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2841
|
+
var deserializeAws_restJson1FormInputValueProperty = function (output, context) {
|
|
2842
|
+
return {
|
|
2843
|
+
value: __expectString(output.value),
|
|
2844
|
+
};
|
|
2845
|
+
};
|
|
2846
|
+
var deserializeAws_restJson1FormList = function (output, context) {
|
|
2847
|
+
var retVal = (output || [])
|
|
2848
|
+
.filter(function (e) { return e != null; })
|
|
2849
|
+
.map(function (entry) {
|
|
2850
|
+
if (entry === null) {
|
|
2851
|
+
return null;
|
|
2852
|
+
}
|
|
2853
|
+
return deserializeAws_restJson1Form(entry, context);
|
|
2854
|
+
});
|
|
2855
|
+
return retVal;
|
|
2856
|
+
};
|
|
2857
|
+
var deserializeAws_restJson1FormStyle = function (output, context) {
|
|
2858
|
+
return {
|
|
2859
|
+
horizontalGap: output.horizontalGap != null
|
|
2860
|
+
? deserializeAws_restJson1FormStyleConfig(__expectUnion(output.horizontalGap), context)
|
|
2861
|
+
: undefined,
|
|
2862
|
+
outerPadding: output.outerPadding != null
|
|
2863
|
+
? deserializeAws_restJson1FormStyleConfig(__expectUnion(output.outerPadding), context)
|
|
2864
|
+
: undefined,
|
|
2865
|
+
verticalGap: output.verticalGap != null
|
|
2866
|
+
? deserializeAws_restJson1FormStyleConfig(__expectUnion(output.verticalGap), context)
|
|
2867
|
+
: undefined,
|
|
2868
|
+
};
|
|
2869
|
+
};
|
|
2870
|
+
var deserializeAws_restJson1FormStyleConfig = function (output, context) {
|
|
2871
|
+
if (__expectString(output.tokenReference) !== undefined) {
|
|
2872
|
+
return { tokenReference: __expectString(output.tokenReference) };
|
|
2873
|
+
}
|
|
2874
|
+
if (__expectString(output.value) !== undefined) {
|
|
2875
|
+
return { value: __expectString(output.value) };
|
|
2876
|
+
}
|
|
2877
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2878
|
+
};
|
|
2879
|
+
var deserializeAws_restJson1FormSummary = function (output, context) {
|
|
2880
|
+
return {
|
|
2881
|
+
appId: __expectString(output.appId),
|
|
2882
|
+
dataType: output.dataType != null ? deserializeAws_restJson1FormDataTypeConfig(output.dataType, context) : undefined,
|
|
2883
|
+
environmentName: __expectString(output.environmentName),
|
|
2884
|
+
formActionType: __expectString(output.formActionType),
|
|
2885
|
+
id: __expectString(output.id),
|
|
2886
|
+
name: __expectString(output.name),
|
|
2887
|
+
};
|
|
2888
|
+
};
|
|
2889
|
+
var deserializeAws_restJson1FormSummaryList = function (output, context) {
|
|
2890
|
+
var retVal = (output || [])
|
|
2891
|
+
.filter(function (e) { return e != null; })
|
|
2892
|
+
.map(function (entry) {
|
|
2893
|
+
if (entry === null) {
|
|
2894
|
+
return null;
|
|
2895
|
+
}
|
|
2896
|
+
return deserializeAws_restJson1FormSummary(entry, context);
|
|
2897
|
+
});
|
|
2898
|
+
return retVal;
|
|
2899
|
+
};
|
|
1870
2900
|
var deserializeAws_restJson1IdentifierList = function (output, context) {
|
|
1871
2901
|
var retVal = (output || [])
|
|
1872
2902
|
.filter(function (e) { return e != null; })
|
|
@@ -1885,6 +2915,17 @@ var deserializeAws_restJson1MutationActionSetStateParameter = function (output,
|
|
|
1885
2915
|
set: output.set != null ? deserializeAws_restJson1ComponentProperty(output.set, context) : undefined,
|
|
1886
2916
|
};
|
|
1887
2917
|
};
|
|
2918
|
+
var deserializeAws_restJson1NumValues = function (output, context) {
|
|
2919
|
+
var retVal = (output || [])
|
|
2920
|
+
.filter(function (e) { return e != null; })
|
|
2921
|
+
.map(function (entry) {
|
|
2922
|
+
if (entry === null) {
|
|
2923
|
+
return null;
|
|
2924
|
+
}
|
|
2925
|
+
return __expectInt32(entry);
|
|
2926
|
+
});
|
|
2927
|
+
return retVal;
|
|
2928
|
+
};
|
|
1888
2929
|
var deserializeAws_restJson1Predicate = function (output, context) {
|
|
1889
2930
|
return {
|
|
1890
2931
|
and: output.and != null ? deserializeAws_restJson1PredicateList(output.and, context) : undefined,
|
|
@@ -1905,6 +2946,27 @@ var deserializeAws_restJson1PredicateList = function (output, context) {
|
|
|
1905
2946
|
});
|
|
1906
2947
|
return retVal;
|
|
1907
2948
|
};
|
|
2949
|
+
var deserializeAws_restJson1SectionalElement = function (output, context) {
|
|
2950
|
+
return {
|
|
2951
|
+
level: __expectInt32(output.level),
|
|
2952
|
+
orientation: __expectString(output.orientation),
|
|
2953
|
+
position: output.position != null
|
|
2954
|
+
? deserializeAws_restJson1FieldPosition(__expectUnion(output.position), context)
|
|
2955
|
+
: undefined,
|
|
2956
|
+
text: __expectString(output.text),
|
|
2957
|
+
type: __expectString(output.type),
|
|
2958
|
+
};
|
|
2959
|
+
};
|
|
2960
|
+
var deserializeAws_restJson1SectionalElementMap = function (output, context) {
|
|
2961
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2962
|
+
var _b;
|
|
2963
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2964
|
+
if (value === null) {
|
|
2965
|
+
return acc;
|
|
2966
|
+
}
|
|
2967
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1SectionalElement(value, context), _b));
|
|
2968
|
+
}, {});
|
|
2969
|
+
};
|
|
1908
2970
|
var deserializeAws_restJson1SortProperty = function (output, context) {
|
|
1909
2971
|
return {
|
|
1910
2972
|
direction: __expectString(output.direction),
|
|
@@ -1922,6 +2984,17 @@ var deserializeAws_restJson1SortPropertyList = function (output, context) {
|
|
|
1922
2984
|
});
|
|
1923
2985
|
return retVal;
|
|
1924
2986
|
};
|
|
2987
|
+
var deserializeAws_restJson1StrValues = function (output, context) {
|
|
2988
|
+
var retVal = (output || [])
|
|
2989
|
+
.filter(function (e) { return e != null; })
|
|
2990
|
+
.map(function (entry) {
|
|
2991
|
+
if (entry === null) {
|
|
2992
|
+
return null;
|
|
2993
|
+
}
|
|
2994
|
+
return __expectString(entry);
|
|
2995
|
+
});
|
|
2996
|
+
return retVal;
|
|
2997
|
+
};
|
|
1925
2998
|
var deserializeAws_restJson1Tags = function (output, context) {
|
|
1926
2999
|
return Object.entries(output).reduce(function (acc, _a) {
|
|
1927
3000
|
var _b;
|
|
@@ -1998,6 +3071,41 @@ var deserializeAws_restJson1ThemeValuesList = function (output, context) {
|
|
|
1998
3071
|
});
|
|
1999
3072
|
return retVal;
|
|
2000
3073
|
};
|
|
3074
|
+
var deserializeAws_restJson1ValidationsList = function (output, context) {
|
|
3075
|
+
var retVal = (output || [])
|
|
3076
|
+
.filter(function (e) { return e != null; })
|
|
3077
|
+
.map(function (entry) {
|
|
3078
|
+
if (entry === null) {
|
|
3079
|
+
return null;
|
|
3080
|
+
}
|
|
3081
|
+
return deserializeAws_restJson1FieldValidationConfiguration(entry, context);
|
|
3082
|
+
});
|
|
3083
|
+
return retVal;
|
|
3084
|
+
};
|
|
3085
|
+
var deserializeAws_restJson1ValueMapping = function (output, context) {
|
|
3086
|
+
return {
|
|
3087
|
+
displayValue: output.displayValue != null
|
|
3088
|
+
? deserializeAws_restJson1FormInputValueProperty(output.displayValue, context)
|
|
3089
|
+
: undefined,
|
|
3090
|
+
value: output.value != null ? deserializeAws_restJson1FormInputValueProperty(output.value, context) : undefined,
|
|
3091
|
+
};
|
|
3092
|
+
};
|
|
3093
|
+
var deserializeAws_restJson1ValueMappingList = function (output, context) {
|
|
3094
|
+
var retVal = (output || [])
|
|
3095
|
+
.filter(function (e) { return e != null; })
|
|
3096
|
+
.map(function (entry) {
|
|
3097
|
+
if (entry === null) {
|
|
3098
|
+
return null;
|
|
3099
|
+
}
|
|
3100
|
+
return deserializeAws_restJson1ValueMapping(entry, context);
|
|
3101
|
+
});
|
|
3102
|
+
return retVal;
|
|
3103
|
+
};
|
|
3104
|
+
var deserializeAws_restJson1ValueMappings = function (output, context) {
|
|
3105
|
+
return {
|
|
3106
|
+
values: output.values != null ? deserializeAws_restJson1ValueMappingList(output.values, context) : undefined,
|
|
3107
|
+
};
|
|
3108
|
+
};
|
|
2001
3109
|
var deserializeMetadata = function (output) {
|
|
2002
3110
|
var _a;
|
|
2003
3111
|
return ({
|