@aws-sdk/client-amplifyuibuilder 3.53.0 → 3.55.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 +27 -0
- package/README.md +8 -9
- package/dist-cjs/AmplifyUIBuilderClient.js +13 -13
- package/dist-cjs/commands/CreateComponentCommand.js +3 -3
- package/dist-cjs/commands/CreateThemeCommand.js +3 -3
- package/dist-cjs/commands/DeleteComponentCommand.js +3 -3
- package/dist-cjs/commands/DeleteThemeCommand.js +3 -3
- package/dist-cjs/commands/ExchangeCodeForTokenCommand.js +3 -3
- package/dist-cjs/commands/ExportComponentsCommand.js +3 -3
- package/dist-cjs/commands/ExportThemesCommand.js +3 -3
- package/dist-cjs/commands/GetComponentCommand.js +3 -3
- package/dist-cjs/commands/GetThemeCommand.js +3 -3
- package/dist-cjs/commands/ListComponentsCommand.js +3 -3
- package/dist-cjs/commands/ListThemesCommand.js +3 -3
- package/dist-cjs/commands/RefreshTokenCommand.js +3 -3
- package/dist-cjs/commands/UpdateComponentCommand.js +3 -3
- package/dist-cjs/commands/UpdateThemeCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +20 -2
- package/dist-cjs/pagination/ExportComponentsPaginator.js +34 -0
- package/dist-cjs/pagination/ExportThemesPaginator.js +34 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +277 -136
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/AmplifyUIBuilder.js +14 -14
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/pagination/ExportComponentsPaginator.js +73 -0
- package/dist-es/pagination/ExportThemesPaginator.js +73 -0
- package/dist-es/pagination/ListComponentsPaginator.js +4 -4
- package/dist-es/pagination/ListThemesPaginator.js +4 -4
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +139 -29
- package/dist-types/AmplifyUIBuilder.d.ts +14 -15
- package/dist-types/AmplifyUIBuilderClient.d.ts +10 -11
- package/dist-types/commands/ExportComponentsCommand.d.ts +1 -2
- package/dist-types/commands/ExportThemesCommand.d.ts +1 -2
- package/dist-types/commands/ListComponentsCommand.d.ts +2 -1
- package/dist-types/commands/ListThemesCommand.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +233 -42
- package/dist-types/pagination/ExportComponentsPaginator.d.ts +4 -0
- package/dist-types/pagination/ExportThemesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +87 -0
- package/dist-types/ts3.4/pagination/ExportComponentsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ExportThemesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -13,7 +13,7 @@ export var serializeAws_restJson1CreateComponentCommand = function (input, conte
|
|
|
13
13
|
headers = {
|
|
14
14
|
"content-type": "application/json",
|
|
15
15
|
};
|
|
16
|
-
resolvedPath = ""
|
|
16
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
17
17
|
"/app/{appId}/environment/{environmentName}/components";
|
|
18
18
|
if (input.appId !== undefined) {
|
|
19
19
|
labelValue = input.appId;
|
|
@@ -66,7 +66,7 @@ export var serializeAws_restJson1CreateThemeCommand = function (input, context)
|
|
|
66
66
|
headers = {
|
|
67
67
|
"content-type": "application/json",
|
|
68
68
|
};
|
|
69
|
-
resolvedPath = ""
|
|
69
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
70
70
|
"/app/{appId}/environment/{environmentName}/themes";
|
|
71
71
|
if (input.appId !== undefined) {
|
|
72
72
|
labelValue = input.appId;
|
|
@@ -117,7 +117,7 @@ export var serializeAws_restJson1DeleteComponentCommand = function (input, conte
|
|
|
117
117
|
case 1:
|
|
118
118
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
119
119
|
headers = {};
|
|
120
|
-
resolvedPath = ""
|
|
120
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
121
121
|
"/app/{appId}/environment/{environmentName}/components/{id}";
|
|
122
122
|
if (input.appId !== undefined) {
|
|
123
123
|
labelValue = input.appId;
|
|
@@ -169,7 +169,7 @@ export var serializeAws_restJson1DeleteThemeCommand = function (input, context)
|
|
|
169
169
|
case 1:
|
|
170
170
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
171
171
|
headers = {};
|
|
172
|
-
resolvedPath = ""
|
|
172
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
173
173
|
"/app/{appId}/environment/{environmentName}/themes/{id}";
|
|
174
174
|
if (input.appId !== undefined) {
|
|
175
175
|
labelValue = input.appId;
|
|
@@ -223,7 +223,7 @@ export var serializeAws_restJson1ExchangeCodeForTokenCommand = function (input,
|
|
|
223
223
|
headers = {
|
|
224
224
|
"content-type": "application/json",
|
|
225
225
|
};
|
|
226
|
-
resolvedPath = ""
|
|
226
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tokens/{provider}";
|
|
227
227
|
if (input.provider !== undefined) {
|
|
228
228
|
labelValue = input.provider;
|
|
229
229
|
if (labelValue.length <= 0) {
|
|
@@ -254,14 +254,14 @@ export var serializeAws_restJson1ExchangeCodeForTokenCommand = function (input,
|
|
|
254
254
|
});
|
|
255
255
|
}); };
|
|
256
256
|
export var serializeAws_restJson1ExportComponentsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
257
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
257
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
258
258
|
return __generator(this, function (_c) {
|
|
259
259
|
switch (_c.label) {
|
|
260
260
|
case 0: return [4, context.endpoint()];
|
|
261
261
|
case 1:
|
|
262
262
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
263
263
|
headers = {};
|
|
264
|
-
resolvedPath = ""
|
|
264
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
265
265
|
"/export/app/{appId}/environment/{environmentName}/components";
|
|
266
266
|
if (input.appId !== undefined) {
|
|
267
267
|
labelValue = input.appId;
|
|
@@ -283,6 +283,7 @@ export var serializeAws_restJson1ExportComponentsCommand = function (input, cont
|
|
|
283
283
|
else {
|
|
284
284
|
throw new Error("No value provided for input HTTP label: environmentName.");
|
|
285
285
|
}
|
|
286
|
+
query = __assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
286
287
|
return [2, new __HttpRequest({
|
|
287
288
|
protocol: protocol,
|
|
288
289
|
hostname: hostname,
|
|
@@ -290,20 +291,21 @@ export var serializeAws_restJson1ExportComponentsCommand = function (input, cont
|
|
|
290
291
|
method: "GET",
|
|
291
292
|
headers: headers,
|
|
292
293
|
path: resolvedPath,
|
|
294
|
+
query: query,
|
|
293
295
|
body: body,
|
|
294
296
|
})];
|
|
295
297
|
}
|
|
296
298
|
});
|
|
297
299
|
}); };
|
|
298
300
|
export var serializeAws_restJson1ExportThemesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
299
|
-
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, body;
|
|
301
|
+
var _a, hostname, _b, protocol, port, basePath, headers, resolvedPath, labelValue, labelValue, query, body;
|
|
300
302
|
return __generator(this, function (_c) {
|
|
301
303
|
switch (_c.label) {
|
|
302
304
|
case 0: return [4, context.endpoint()];
|
|
303
305
|
case 1:
|
|
304
306
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
305
307
|
headers = {};
|
|
306
|
-
resolvedPath = ""
|
|
308
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
307
309
|
"/export/app/{appId}/environment/{environmentName}/themes";
|
|
308
310
|
if (input.appId !== undefined) {
|
|
309
311
|
labelValue = input.appId;
|
|
@@ -325,6 +327,7 @@ export var serializeAws_restJson1ExportThemesCommand = function (input, context)
|
|
|
325
327
|
else {
|
|
326
328
|
throw new Error("No value provided for input HTTP label: environmentName.");
|
|
327
329
|
}
|
|
330
|
+
query = __assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken }));
|
|
328
331
|
return [2, new __HttpRequest({
|
|
329
332
|
protocol: protocol,
|
|
330
333
|
hostname: hostname,
|
|
@@ -332,6 +335,7 @@ export var serializeAws_restJson1ExportThemesCommand = function (input, context)
|
|
|
332
335
|
method: "GET",
|
|
333
336
|
headers: headers,
|
|
334
337
|
path: resolvedPath,
|
|
338
|
+
query: query,
|
|
335
339
|
body: body,
|
|
336
340
|
})];
|
|
337
341
|
}
|
|
@@ -345,7 +349,7 @@ export var serializeAws_restJson1GetComponentCommand = function (input, context)
|
|
|
345
349
|
case 1:
|
|
346
350
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
347
351
|
headers = {};
|
|
348
|
-
resolvedPath = ""
|
|
352
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
349
353
|
"/app/{appId}/environment/{environmentName}/components/{id}";
|
|
350
354
|
if (input.appId !== undefined) {
|
|
351
355
|
labelValue = input.appId;
|
|
@@ -397,7 +401,7 @@ export var serializeAws_restJson1GetThemeCommand = function (input, context) { r
|
|
|
397
401
|
case 1:
|
|
398
402
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
399
403
|
headers = {};
|
|
400
|
-
resolvedPath = ""
|
|
404
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
401
405
|
"/app/{appId}/environment/{environmentName}/themes/{id}";
|
|
402
406
|
if (input.appId !== undefined) {
|
|
403
407
|
labelValue = input.appId;
|
|
@@ -449,7 +453,7 @@ export var serializeAws_restJson1ListComponentsCommand = function (input, contex
|
|
|
449
453
|
case 1:
|
|
450
454
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
451
455
|
headers = {};
|
|
452
|
-
resolvedPath = ""
|
|
456
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
453
457
|
"/app/{appId}/environment/{environmentName}/components";
|
|
454
458
|
if (input.appId !== undefined) {
|
|
455
459
|
labelValue = input.appId;
|
|
@@ -493,7 +497,7 @@ export var serializeAws_restJson1ListThemesCommand = function (input, context) {
|
|
|
493
497
|
case 1:
|
|
494
498
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
495
499
|
headers = {};
|
|
496
|
-
resolvedPath = ""
|
|
500
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
497
501
|
"/app/{appId}/environment/{environmentName}/themes";
|
|
498
502
|
if (input.appId !== undefined) {
|
|
499
503
|
labelValue = input.appId;
|
|
@@ -539,7 +543,7 @@ export var serializeAws_restJson1RefreshTokenCommand = function (input, context)
|
|
|
539
543
|
headers = {
|
|
540
544
|
"content-type": "application/json",
|
|
541
545
|
};
|
|
542
|
-
resolvedPath = ""
|
|
546
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tokens/{provider}/refresh";
|
|
543
547
|
if (input.provider !== undefined) {
|
|
544
548
|
labelValue = input.provider;
|
|
545
549
|
if (labelValue.length <= 0) {
|
|
@@ -579,7 +583,7 @@ export var serializeAws_restJson1UpdateComponentCommand = function (input, conte
|
|
|
579
583
|
headers = {
|
|
580
584
|
"content-type": "application/json",
|
|
581
585
|
};
|
|
582
|
-
resolvedPath = ""
|
|
586
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
583
587
|
"/app/{appId}/environment/{environmentName}/components/{id}";
|
|
584
588
|
if (input.appId !== undefined) {
|
|
585
589
|
labelValue = input.appId;
|
|
@@ -642,7 +646,7 @@ export var serializeAws_restJson1UpdateThemeCommand = function (input, context)
|
|
|
642
646
|
headers = {
|
|
643
647
|
"content-type": "application/json",
|
|
644
648
|
};
|
|
645
|
-
resolvedPath = ""
|
|
649
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
646
650
|
"/app/{appId}/environment/{environmentName}/themes/{id}";
|
|
647
651
|
if (input.appId !== undefined) {
|
|
648
652
|
labelValue = input.appId;
|
|
@@ -1016,6 +1020,7 @@ export var deserializeAws_restJson1ExportComponentsCommand = function (output, c
|
|
|
1016
1020
|
contents = {
|
|
1017
1021
|
$metadata: deserializeMetadata(output),
|
|
1018
1022
|
entities: undefined,
|
|
1023
|
+
nextToken: undefined,
|
|
1019
1024
|
};
|
|
1020
1025
|
_a = __expectNonNull;
|
|
1021
1026
|
_b = __expectObject;
|
|
@@ -1025,6 +1030,9 @@ export var deserializeAws_restJson1ExportComponentsCommand = function (output, c
|
|
|
1025
1030
|
if (data.entities !== undefined && data.entities !== null) {
|
|
1026
1031
|
contents.entities = deserializeAws_restJson1ComponentList(data.entities, context);
|
|
1027
1032
|
}
|
|
1033
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1034
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1035
|
+
}
|
|
1028
1036
|
return [2, Promise.resolve(contents)];
|
|
1029
1037
|
}
|
|
1030
1038
|
});
|
|
@@ -1076,6 +1084,7 @@ export var deserializeAws_restJson1ExportThemesCommand = function (output, conte
|
|
|
1076
1084
|
contents = {
|
|
1077
1085
|
$metadata: deserializeMetadata(output),
|
|
1078
1086
|
entities: undefined,
|
|
1087
|
+
nextToken: undefined,
|
|
1079
1088
|
};
|
|
1080
1089
|
_a = __expectNonNull;
|
|
1081
1090
|
_b = __expectObject;
|
|
@@ -1085,6 +1094,9 @@ export var deserializeAws_restJson1ExportThemesCommand = function (output, conte
|
|
|
1085
1094
|
if (data.entities !== undefined && data.entities !== null) {
|
|
1086
1095
|
contents.entities = deserializeAws_restJson1ThemeList(data.entities, context);
|
|
1087
1096
|
}
|
|
1097
|
+
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1098
|
+
contents.nextToken = __expectString(data.nextToken);
|
|
1099
|
+
}
|
|
1088
1100
|
return [2, Promise.resolve(contents)];
|
|
1089
1101
|
}
|
|
1090
1102
|
});
|
|
@@ -1617,6 +1629,17 @@ var deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = function (pa
|
|
|
1617
1629
|
return [2, __decorateServiceException(exception, parsedOutput.body)];
|
|
1618
1630
|
});
|
|
1619
1631
|
}); };
|
|
1632
|
+
var serializeAws_restJson1ActionParameters = function (input, context) {
|
|
1633
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.anchor !== undefined &&
|
|
1634
|
+
input.anchor !== null && { anchor: serializeAws_restJson1ComponentProperty(input.anchor, context) })), (input.fields !== undefined &&
|
|
1635
|
+
input.fields !== null && { fields: serializeAws_restJson1ComponentProperties(input.fields, context) })), (input.global !== undefined &&
|
|
1636
|
+
input.global !== null && { global: serializeAws_restJson1ComponentProperty(input.global, context) })), (input.id !== undefined &&
|
|
1637
|
+
input.id !== null && { id: serializeAws_restJson1ComponentProperty(input.id, context) })), (input.model !== undefined && input.model !== null && { model: input.model })), (input.state !== undefined &&
|
|
1638
|
+
input.state !== null && { state: serializeAws_restJson1MutationActionSetStateParameter(input.state, context) })), (input.target !== undefined &&
|
|
1639
|
+
input.target !== null && { target: serializeAws_restJson1ComponentProperty(input.target, context) })), (input.type !== undefined &&
|
|
1640
|
+
input.type !== null && { type: serializeAws_restJson1ComponentProperty(input.type, context) })), (input.url !== undefined &&
|
|
1641
|
+
input.url !== null && { url: serializeAws_restJson1ComponentProperty(input.url, context) }));
|
|
1642
|
+
};
|
|
1620
1643
|
var serializeAws_restJson1ComponentBindingProperties = function (input, context) {
|
|
1621
1644
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
1622
1645
|
var _b;
|
|
@@ -1638,8 +1661,9 @@ var serializeAws_restJson1ComponentBindingPropertiesValueProperties = function (
|
|
|
1638
1661
|
input.predicates !== null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) })), (input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute }));
|
|
1639
1662
|
};
|
|
1640
1663
|
var serializeAws_restJson1ComponentChild = function (input, context) {
|
|
1641
|
-
return __assign(__assign(__assign(__assign({}, (input.children !== undefined &&
|
|
1642
|
-
input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) })), (input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType })), (input.
|
|
1664
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.children !== undefined &&
|
|
1665
|
+
input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) })), (input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType })), (input.events !== undefined &&
|
|
1666
|
+
input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.properties !== undefined &&
|
|
1643
1667
|
input.properties !== null && {
|
|
1644
1668
|
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1645
1669
|
}));
|
|
@@ -1665,8 +1689,8 @@ var serializeAws_restJson1ComponentCollectionProperties = function (input, conte
|
|
|
1665
1689
|
}, {});
|
|
1666
1690
|
};
|
|
1667
1691
|
var serializeAws_restJson1ComponentConditionProperty = function (input, context) {
|
|
1668
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.else !== undefined &&
|
|
1669
|
-
input.else !== null && { else: serializeAws_restJson1ComponentProperty(input.else, context) })), (input.field !== undefined && input.field !== null && { field: input.field })), (input.operand !== undefined && input.operand !== null && { operand: input.operand })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.property !== undefined && input.property !== null && { property: input.property })), (input.then !== undefined &&
|
|
1692
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.else !== undefined &&
|
|
1693
|
+
input.else !== null && { else: serializeAws_restJson1ComponentProperty(input.else, context) })), (input.field !== undefined && input.field !== null && { field: input.field })), (input.operand !== undefined && input.operand !== null && { operand: input.operand })), (input.operandType !== undefined && input.operandType !== null && { operandType: input.operandType })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.property !== undefined && input.property !== null && { property: input.property })), (input.then !== undefined &&
|
|
1670
1694
|
input.then !== null && { then: serializeAws_restJson1ComponentProperty(input.then, context) }));
|
|
1671
1695
|
};
|
|
1672
1696
|
var serializeAws_restJson1ComponentDataConfiguration = function (input, context) {
|
|
@@ -1675,6 +1699,20 @@ var serializeAws_restJson1ComponentDataConfiguration = function (input, context)
|
|
|
1675
1699
|
input.predicate !== null && { predicate: serializeAws_restJson1Predicate(input.predicate, context) })), (input.sort !== undefined &&
|
|
1676
1700
|
input.sort !== null && { sort: serializeAws_restJson1SortPropertyList(input.sort, context) }));
|
|
1677
1701
|
};
|
|
1702
|
+
var serializeAws_restJson1ComponentEvent = function (input, context) {
|
|
1703
|
+
return __assign(__assign({}, (input.action !== undefined && input.action !== null && { action: input.action })), (input.parameters !== undefined &&
|
|
1704
|
+
input.parameters !== null && { parameters: serializeAws_restJson1ActionParameters(input.parameters, context) }));
|
|
1705
|
+
};
|
|
1706
|
+
var serializeAws_restJson1ComponentEvents = function (input, context) {
|
|
1707
|
+
return Object.entries(input).reduce(function (acc, _a) {
|
|
1708
|
+
var _b;
|
|
1709
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
1710
|
+
if (value === null) {
|
|
1711
|
+
return acc;
|
|
1712
|
+
}
|
|
1713
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = serializeAws_restJson1ComponentEvent(value, context), _b));
|
|
1714
|
+
}, {});
|
|
1715
|
+
};
|
|
1678
1716
|
var serializeAws_restJson1ComponentOverrides = function (input, context) {
|
|
1679
1717
|
return Object.entries(input).reduce(function (acc, _a) {
|
|
1680
1718
|
var _b;
|
|
@@ -1706,18 +1744,18 @@ var serializeAws_restJson1ComponentProperties = function (input, context) {
|
|
|
1706
1744
|
}, {});
|
|
1707
1745
|
};
|
|
1708
1746
|
var serializeAws_restJson1ComponentProperty = function (input, context) {
|
|
1709
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bindingProperties !== undefined &&
|
|
1747
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bindingProperties !== undefined &&
|
|
1710
1748
|
input.bindingProperties !== null && {
|
|
1711
1749
|
bindingProperties: serializeAws_restJson1ComponentPropertyBindingProperties(input.bindingProperties, context),
|
|
1712
1750
|
})), (input.bindings !== undefined &&
|
|
1713
1751
|
input.bindings !== null && { bindings: serializeAws_restJson1FormBindings(input.bindings, context) })), (input.collectionBindingProperties !== undefined &&
|
|
1714
1752
|
input.collectionBindingProperties !== null && {
|
|
1715
1753
|
collectionBindingProperties: serializeAws_restJson1ComponentPropertyBindingProperties(input.collectionBindingProperties, context),
|
|
1716
|
-
})), (input.concat !== undefined &&
|
|
1754
|
+
})), (input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName })), (input.concat !== undefined &&
|
|
1717
1755
|
input.concat !== null && { concat: serializeAws_restJson1ComponentPropertyList(input.concat, context) })), (input.condition !== undefined &&
|
|
1718
1756
|
input.condition !== null && {
|
|
1719
1757
|
condition: serializeAws_restJson1ComponentConditionProperty(input.condition, context),
|
|
1720
|
-
})), (input.configured !== undefined && input.configured !== null && { configured: input.configured })), (input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue })), (input.event !== undefined && input.event !== null && { event: input.event })), (input.importedValue !== undefined && input.importedValue !== null && { importedValue: input.importedValue })), (input.model !== undefined && input.model !== null && { model: input.model })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute })), (input.value !== undefined && input.value !== null && { value: input.value }));
|
|
1758
|
+
})), (input.configured !== undefined && input.configured !== null && { configured: input.configured })), (input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue })), (input.event !== undefined && input.event !== null && { event: input.event })), (input.importedValue !== undefined && input.importedValue !== null && { importedValue: input.importedValue })), (input.model !== undefined && input.model !== null && { model: input.model })), (input.property !== undefined && input.property !== null && { property: input.property })), (input.type !== undefined && input.type !== null && { type: input.type })), (input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute })), (input.value !== undefined && input.value !== null && { value: input.value }));
|
|
1721
1759
|
};
|
|
1722
1760
|
var serializeAws_restJson1ComponentPropertyBindingProperties = function (input, context) {
|
|
1723
1761
|
return __assign(__assign({}, (input.field !== undefined && input.field !== null && { field: input.field })), (input.property !== undefined && input.property !== null && { property: input.property }));
|
|
@@ -1760,18 +1798,19 @@ var serializeAws_restJson1ComponentVariantValues = function (input, context) {
|
|
|
1760
1798
|
}, {});
|
|
1761
1799
|
};
|
|
1762
1800
|
var serializeAws_restJson1CreateComponentData = function (input, context) {
|
|
1763
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bindingProperties !== undefined &&
|
|
1801
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bindingProperties !== undefined &&
|
|
1764
1802
|
input.bindingProperties !== null && {
|
|
1765
1803
|
bindingProperties: serializeAws_restJson1ComponentBindingProperties(input.bindingProperties, context),
|
|
1766
1804
|
})), (input.children !== undefined &&
|
|
1767
1805
|
input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) })), (input.collectionProperties !== undefined &&
|
|
1768
1806
|
input.collectionProperties !== null && {
|
|
1769
1807
|
collectionProperties: serializeAws_restJson1ComponentCollectionProperties(input.collectionProperties, context),
|
|
1770
|
-
})), (input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType })), (input.
|
|
1808
|
+
})), (input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType })), (input.events !== undefined &&
|
|
1809
|
+
input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.overrides !== undefined &&
|
|
1771
1810
|
input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) })), (input.properties !== undefined &&
|
|
1772
1811
|
input.properties !== null && {
|
|
1773
1812
|
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1774
|
-
})), (input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.variants !== undefined &&
|
|
1813
|
+
})), (input.schemaVersion !== undefined && input.schemaVersion !== null && { schemaVersion: input.schemaVersion })), (input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) })), (input.variants !== undefined &&
|
|
1775
1814
|
input.variants !== null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }));
|
|
1776
1815
|
};
|
|
1777
1816
|
var serializeAws_restJson1CreateThemeData = function (input, context) {
|
|
@@ -1805,6 +1844,10 @@ var serializeAws_restJson1IdentifierList = function (input, context) {
|
|
|
1805
1844
|
return entry;
|
|
1806
1845
|
});
|
|
1807
1846
|
};
|
|
1847
|
+
var serializeAws_restJson1MutationActionSetStateParameter = function (input, context) {
|
|
1848
|
+
return __assign(__assign(__assign({}, (input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName })), (input.property !== undefined && input.property !== null && { property: input.property })), (input.set !== undefined &&
|
|
1849
|
+
input.set !== null && { set: serializeAws_restJson1ComponentProperty(input.set, context) }));
|
|
1850
|
+
};
|
|
1808
1851
|
var serializeAws_restJson1Predicate = function (input, context) {
|
|
1809
1852
|
return __assign(__assign(__assign(__assign(__assign({}, (input.and !== undefined &&
|
|
1810
1853
|
input.and !== null && { and: serializeAws_restJson1PredicateList(input.and, context) })), (input.field !== undefined && input.field !== null && { field: input.field })), (input.operand !== undefined && input.operand !== null && { operand: input.operand })), (input.operator !== undefined && input.operator !== null && { operator: input.operator })), (input.or !== undefined && input.or !== null && { or: serializeAws_restJson1PredicateList(input.or, context) }));
|
|
@@ -1864,18 +1907,19 @@ var serializeAws_restJson1ThemeValuesList = function (input, context) {
|
|
|
1864
1907
|
});
|
|
1865
1908
|
};
|
|
1866
1909
|
var serializeAws_restJson1UpdateComponentData = function (input, context) {
|
|
1867
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bindingProperties !== undefined &&
|
|
1910
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.bindingProperties !== undefined &&
|
|
1868
1911
|
input.bindingProperties !== null && {
|
|
1869
1912
|
bindingProperties: serializeAws_restJson1ComponentBindingProperties(input.bindingProperties, context),
|
|
1870
1913
|
})), (input.children !== undefined &&
|
|
1871
1914
|
input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) })), (input.collectionProperties !== undefined &&
|
|
1872
1915
|
input.collectionProperties !== null && {
|
|
1873
1916
|
collectionProperties: serializeAws_restJson1ComponentCollectionProperties(input.collectionProperties, context),
|
|
1874
|
-
})), (input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType })), (input.
|
|
1917
|
+
})), (input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType })), (input.events !== undefined &&
|
|
1918
|
+
input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) })), (input.id !== undefined && input.id !== null && { id: input.id })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.overrides !== undefined &&
|
|
1875
1919
|
input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) })), (input.properties !== undefined &&
|
|
1876
1920
|
input.properties !== null && {
|
|
1877
1921
|
properties: serializeAws_restJson1ComponentProperties(input.properties, context),
|
|
1878
|
-
})), (input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId })), (input.variants !== undefined &&
|
|
1922
|
+
})), (input.schemaVersion !== undefined && input.schemaVersion !== null && { schemaVersion: input.schemaVersion })), (input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId })), (input.variants !== undefined &&
|
|
1879
1923
|
input.variants !== null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }));
|
|
1880
1924
|
};
|
|
1881
1925
|
var serializeAws_restJson1UpdateThemeData = function (input, context) {
|
|
@@ -1883,6 +1927,35 @@ var serializeAws_restJson1UpdateThemeData = function (input, context) {
|
|
|
1883
1927
|
input.overrides !== null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) })), (input.values !== undefined &&
|
|
1884
1928
|
input.values !== null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }));
|
|
1885
1929
|
};
|
|
1930
|
+
var deserializeAws_restJson1ActionParameters = function (output, context) {
|
|
1931
|
+
return {
|
|
1932
|
+
anchor: output.anchor !== undefined && output.anchor !== null
|
|
1933
|
+
? deserializeAws_restJson1ComponentProperty(output.anchor, context)
|
|
1934
|
+
: undefined,
|
|
1935
|
+
fields: output.fields !== undefined && output.fields !== null
|
|
1936
|
+
? deserializeAws_restJson1ComponentProperties(output.fields, context)
|
|
1937
|
+
: undefined,
|
|
1938
|
+
global: output.global !== undefined && output.global !== null
|
|
1939
|
+
? deserializeAws_restJson1ComponentProperty(output.global, context)
|
|
1940
|
+
: undefined,
|
|
1941
|
+
id: output.id !== undefined && output.id !== null
|
|
1942
|
+
? deserializeAws_restJson1ComponentProperty(output.id, context)
|
|
1943
|
+
: undefined,
|
|
1944
|
+
model: __expectString(output.model),
|
|
1945
|
+
state: output.state !== undefined && output.state !== null
|
|
1946
|
+
? deserializeAws_restJson1MutationActionSetStateParameter(output.state, context)
|
|
1947
|
+
: undefined,
|
|
1948
|
+
target: output.target !== undefined && output.target !== null
|
|
1949
|
+
? deserializeAws_restJson1ComponentProperty(output.target, context)
|
|
1950
|
+
: undefined,
|
|
1951
|
+
type: output.type !== undefined && output.type !== null
|
|
1952
|
+
? deserializeAws_restJson1ComponentProperty(output.type, context)
|
|
1953
|
+
: undefined,
|
|
1954
|
+
url: output.url !== undefined && output.url !== null
|
|
1955
|
+
? deserializeAws_restJson1ComponentProperty(output.url, context)
|
|
1956
|
+
: undefined,
|
|
1957
|
+
};
|
|
1958
|
+
};
|
|
1886
1959
|
var deserializeAws_restJson1Component = function (output, context) {
|
|
1887
1960
|
return {
|
|
1888
1961
|
appId: __expectString(output.appId),
|
|
@@ -1900,6 +1973,9 @@ var deserializeAws_restJson1Component = function (output, context) {
|
|
|
1900
1973
|
? __expectNonNull(__parseRfc3339DateTime(output.createdAt))
|
|
1901
1974
|
: undefined,
|
|
1902
1975
|
environmentName: __expectString(output.environmentName),
|
|
1976
|
+
events: output.events !== undefined && output.events !== null
|
|
1977
|
+
? deserializeAws_restJson1ComponentEvents(output.events, context)
|
|
1978
|
+
: undefined,
|
|
1903
1979
|
id: __expectString(output.id),
|
|
1904
1980
|
modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
|
|
1905
1981
|
? __expectNonNull(__parseRfc3339DateTime(output.modifiedAt))
|
|
@@ -1911,6 +1987,7 @@ var deserializeAws_restJson1Component = function (output, context) {
|
|
|
1911
1987
|
properties: output.properties !== undefined && output.properties !== null
|
|
1912
1988
|
? deserializeAws_restJson1ComponentProperties(output.properties, context)
|
|
1913
1989
|
: undefined,
|
|
1990
|
+
schemaVersion: __expectString(output.schemaVersion),
|
|
1914
1991
|
sourceId: __expectString(output.sourceId),
|
|
1915
1992
|
tags: output.tags !== undefined && output.tags !== null
|
|
1916
1993
|
? deserializeAws_restJson1Tags(output.tags, context)
|
|
@@ -1958,6 +2035,9 @@ var deserializeAws_restJson1ComponentChild = function (output, context) {
|
|
|
1958
2035
|
? deserializeAws_restJson1ComponentChildList(output.children, context)
|
|
1959
2036
|
: undefined,
|
|
1960
2037
|
componentType: __expectString(output.componentType),
|
|
2038
|
+
events: output.events !== undefined && output.events !== null
|
|
2039
|
+
? deserializeAws_restJson1ComponentEvents(output.events, context)
|
|
2040
|
+
: undefined,
|
|
1961
2041
|
name: __expectString(output.name),
|
|
1962
2042
|
properties: output.properties !== undefined && output.properties !== null
|
|
1963
2043
|
? deserializeAws_restJson1ComponentProperties(output.properties, context)
|
|
@@ -1992,6 +2072,7 @@ var deserializeAws_restJson1ComponentConditionProperty = function (output, conte
|
|
|
1992
2072
|
: undefined,
|
|
1993
2073
|
field: __expectString(output.field),
|
|
1994
2074
|
operand: __expectString(output.operand),
|
|
2075
|
+
operandType: __expectString(output.operandType),
|
|
1995
2076
|
operator: __expectString(output.operator),
|
|
1996
2077
|
property: __expectString(output.property),
|
|
1997
2078
|
then: output.then !== undefined && output.then !== null
|
|
@@ -2013,6 +2094,24 @@ var deserializeAws_restJson1ComponentDataConfiguration = function (output, conte
|
|
|
2013
2094
|
: undefined,
|
|
2014
2095
|
};
|
|
2015
2096
|
};
|
|
2097
|
+
var deserializeAws_restJson1ComponentEvent = function (output, context) {
|
|
2098
|
+
return {
|
|
2099
|
+
action: __expectString(output.action),
|
|
2100
|
+
parameters: output.parameters !== undefined && output.parameters !== null
|
|
2101
|
+
? deserializeAws_restJson1ActionParameters(output.parameters, context)
|
|
2102
|
+
: undefined,
|
|
2103
|
+
};
|
|
2104
|
+
};
|
|
2105
|
+
var deserializeAws_restJson1ComponentEvents = function (output, context) {
|
|
2106
|
+
return Object.entries(output).reduce(function (acc, _a) {
|
|
2107
|
+
var _b;
|
|
2108
|
+
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
2109
|
+
if (value === null) {
|
|
2110
|
+
return acc;
|
|
2111
|
+
}
|
|
2112
|
+
return __assign(__assign({}, acc), (_b = {}, _b[key] = deserializeAws_restJson1ComponentEvent(value, context), _b));
|
|
2113
|
+
}, {});
|
|
2114
|
+
};
|
|
2016
2115
|
var deserializeAws_restJson1ComponentList = function (output, context) {
|
|
2017
2116
|
var retVal = (output || [])
|
|
2018
2117
|
.filter(function (e) { return e != null; })
|
|
@@ -2065,6 +2164,7 @@ var deserializeAws_restJson1ComponentProperty = function (output, context) {
|
|
|
2065
2164
|
collectionBindingProperties: output.collectionBindingProperties !== undefined && output.collectionBindingProperties !== null
|
|
2066
2165
|
? deserializeAws_restJson1ComponentPropertyBindingProperties(output.collectionBindingProperties, context)
|
|
2067
2166
|
: undefined,
|
|
2167
|
+
componentName: __expectString(output.componentName),
|
|
2068
2168
|
concat: output.concat !== undefined && output.concat !== null
|
|
2069
2169
|
? deserializeAws_restJson1ComponentPropertyList(output.concat, context)
|
|
2070
2170
|
: undefined,
|
|
@@ -2076,6 +2176,7 @@ var deserializeAws_restJson1ComponentProperty = function (output, context) {
|
|
|
2076
2176
|
event: __expectString(output.event),
|
|
2077
2177
|
importedValue: __expectString(output.importedValue),
|
|
2078
2178
|
model: __expectString(output.model),
|
|
2179
|
+
property: __expectString(output.property),
|
|
2079
2180
|
type: __expectString(output.type),
|
|
2080
2181
|
userAttribute: __expectString(output.userAttribute),
|
|
2081
2182
|
value: __expectString(output.value),
|
|
@@ -2176,6 +2277,15 @@ var deserializeAws_restJson1IdentifierList = function (output, context) {
|
|
|
2176
2277
|
});
|
|
2177
2278
|
return retVal;
|
|
2178
2279
|
};
|
|
2280
|
+
var deserializeAws_restJson1MutationActionSetStateParameter = function (output, context) {
|
|
2281
|
+
return {
|
|
2282
|
+
componentName: __expectString(output.componentName),
|
|
2283
|
+
property: __expectString(output.property),
|
|
2284
|
+
set: output.set !== undefined && output.set !== null
|
|
2285
|
+
? deserializeAws_restJson1ComponentProperty(output.set, context)
|
|
2286
|
+
: undefined,
|
|
2287
|
+
};
|
|
2288
|
+
};
|
|
2179
2289
|
var deserializeAws_restJson1Predicate = function (output, context) {
|
|
2180
2290
|
return {
|
|
2181
2291
|
and: output.and !== undefined && output.and !== null
|
|
@@ -15,16 +15,15 @@ import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/
|
|
|
15
15
|
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
|
|
16
16
|
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
|
|
17
17
|
/**
|
|
18
|
-
* <p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
19
|
-
* user interface (UI) component libraries and themes for use in your Amplify applications. You
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
18
|
+
* <p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
19
|
+
* and configuring user interface (UI) component libraries and themes for use in your Amplify applications. You can then connect these UI components to an application's
|
|
20
|
+
* backend Amazon Web Services resources.</p>
|
|
21
|
+
* <p>You can also use the Amplify Studio visual designer to create UI components
|
|
22
|
+
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
24
23
|
* <i>Amplify Docs</i>.</p>
|
|
25
|
-
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
26
|
-
* for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
27
|
-
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
|
|
24
|
+
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
25
|
+
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
26
|
+
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify User Guide</a>.</p>
|
|
28
27
|
*/
|
|
29
28
|
export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
30
29
|
/**
|
|
@@ -58,15 +57,13 @@ export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
|
58
57
|
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, cb: (err: any, data?: ExchangeCodeForTokenCommandOutput) => void): void;
|
|
59
58
|
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExchangeCodeForTokenCommandOutput) => void): void;
|
|
60
59
|
/**
|
|
61
|
-
* <p>Exports component configurations to code that is ready to integrate into an Amplify
|
|
62
|
-
* app.</p>
|
|
60
|
+
* <p>Exports component configurations to code that is ready to integrate into an Amplify app.</p>
|
|
63
61
|
*/
|
|
64
62
|
exportComponents(args: ExportComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ExportComponentsCommandOutput>;
|
|
65
63
|
exportComponents(args: ExportComponentsCommandInput, cb: (err: any, data?: ExportComponentsCommandOutput) => void): void;
|
|
66
64
|
exportComponents(args: ExportComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportComponentsCommandOutput) => void): void;
|
|
67
65
|
/**
|
|
68
|
-
* <p>Exports theme configurations to code that is ready to integrate into an Amplify
|
|
69
|
-
* app.</p>
|
|
66
|
+
* <p>Exports theme configurations to code that is ready to integrate into an Amplify app.</p>
|
|
70
67
|
*/
|
|
71
68
|
exportThemes(args: ExportThemesCommandInput, options?: __HttpHandlerOptions): Promise<ExportThemesCommandOutput>;
|
|
72
69
|
exportThemes(args: ExportThemesCommandInput, cb: (err: any, data?: ExportThemesCommandOutput) => void): void;
|
|
@@ -84,13 +81,15 @@ export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
|
84
81
|
getTheme(args: GetThemeCommandInput, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
85
82
|
getTheme(args: GetThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
86
83
|
/**
|
|
87
|
-
* <p>Retrieves a list of components for a specified Amplify app and backend
|
|
84
|
+
* <p>Retrieves a list of components for a specified Amplify app and backend
|
|
85
|
+
* environment.</p>
|
|
88
86
|
*/
|
|
89
87
|
listComponents(args: ListComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ListComponentsCommandOutput>;
|
|
90
88
|
listComponents(args: ListComponentsCommandInput, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
|
|
91
89
|
listComponents(args: ListComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
|
|
92
90
|
/**
|
|
93
|
-
* <p>Retrieves a list of themes for a specified Amplify app and backend
|
|
91
|
+
* <p>Retrieves a list of themes for a specified Amplify app and backend
|
|
92
|
+
* environment.</p>
|
|
94
93
|
*/
|
|
95
94
|
listThemes(args: ListThemesCommandInput, options?: __HttpHandlerOptions): Promise<ListThemesCommandOutput>;
|
|
96
95
|
listThemes(args: ListThemesCommandInput, cb: (err: any, data?: ListThemesCommandOutput) => void): void;
|
|
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
|
|
|
5
5
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
6
6
|
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
7
7
|
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
8
|
-
import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
8
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
|
|
9
9
|
import { CreateComponentCommandInput, CreateComponentCommandOutput } from "./commands/CreateComponentCommand";
|
|
10
10
|
import { CreateThemeCommandInput, CreateThemeCommandOutput } from "./commands/CreateThemeCommand";
|
|
11
11
|
import { DeleteComponentCommandInput, DeleteComponentCommandOutput } from "./commands/DeleteComponentCommand";
|
|
@@ -42,7 +42,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
42
42
|
* A function that can calculate the length of a request body.
|
|
43
43
|
* @internal
|
|
44
44
|
*/
|
|
45
|
-
bodyLengthChecker?:
|
|
45
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
46
46
|
/**
|
|
47
47
|
* A function that converts a stream into an array of bytes.
|
|
48
48
|
* @internal
|
|
@@ -140,16 +140,15 @@ declare type AmplifyUIBuilderClientResolvedConfigType = __SmithyResolvedConfigur
|
|
|
140
140
|
export interface AmplifyUIBuilderClientResolvedConfig extends AmplifyUIBuilderClientResolvedConfigType {
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
|
-
* <p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
144
|
-
* user interface (UI) component libraries and themes for use in your Amplify applications. You
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
143
|
+
* <p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
144
|
+
* and configuring user interface (UI) component libraries and themes for use in your Amplify applications. You can then connect these UI components to an application's
|
|
145
|
+
* backend Amazon Web Services resources.</p>
|
|
146
|
+
* <p>You can also use the Amplify Studio visual designer to create UI components
|
|
147
|
+
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
149
148
|
* <i>Amplify Docs</i>.</p>
|
|
150
|
-
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
151
|
-
* for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
152
|
-
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
|
|
149
|
+
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
150
|
+
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
151
|
+
* deploying an Amplify application to Amazon Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify User Guide</a>.</p>
|
|
153
152
|
*/
|
|
154
153
|
export declare class AmplifyUIBuilderClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AmplifyUIBuilderClientResolvedConfig> {
|
|
155
154
|
/**
|
|
@@ -7,8 +7,7 @@ export interface ExportComponentsCommandInput extends ExportComponentsRequest {
|
|
|
7
7
|
export interface ExportComponentsCommandOutput extends ExportComponentsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Exports component configurations to code that is ready to integrate into an Amplify
|
|
11
|
-
* app.</p>
|
|
10
|
+
* <p>Exports component configurations to code that is ready to integrate into an Amplify app.</p>
|
|
12
11
|
* @example
|
|
13
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
13
|
* ```javascript
|
|
@@ -7,8 +7,7 @@ export interface ExportThemesCommandInput extends ExportThemesRequest {
|
|
|
7
7
|
export interface ExportThemesCommandOutput extends ExportThemesResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Exports theme configurations to code that is ready to integrate into an Amplify
|
|
11
|
-
* app.</p>
|
|
10
|
+
* <p>Exports theme configurations to code that is ready to integrate into an Amplify app.</p>
|
|
12
11
|
* @example
|
|
13
12
|
* Use a bare-bones client and the command you need to make an API call.
|
|
14
13
|
* ```javascript
|
|
@@ -7,7 +7,8 @@ export interface ListComponentsCommandInput extends ListComponentsRequest {
|
|
|
7
7
|
export interface ListComponentsCommandOutput extends ListComponentsResponse, __MetadataBearer {
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
|
-
* <p>Retrieves a list of components for a specified Amplify app and backend
|
|
10
|
+
* <p>Retrieves a list of components for a specified Amplify app and backend
|
|
11
|
+
* environment.</p>
|
|
11
12
|
* @example
|
|
12
13
|
* Use a bare-bones client and the command you need to make an API call.
|
|
13
14
|
* ```javascript
|