@aws-sdk/client-amplifyuibuilder 3.315.0 → 3.316.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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AmplifyUIBuilder = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AmplifyUIBuilderClient_1 = require("./AmplifyUIBuilderClient");
|
|
5
6
|
const CreateComponentCommand_1 = require("./commands/CreateComponentCommand");
|
|
6
7
|
const CreateFormCommand_1 = require("./commands/CreateFormCommand");
|
|
@@ -24,314 +25,31 @@ const RefreshTokenCommand_1 = require("./commands/RefreshTokenCommand");
|
|
|
24
25
|
const UpdateComponentCommand_1 = require("./commands/UpdateComponentCommand");
|
|
25
26
|
const UpdateFormCommand_1 = require("./commands/UpdateFormCommand");
|
|
26
27
|
const UpdateThemeCommand_1 = require("./commands/UpdateThemeCommand");
|
|
28
|
+
const commands = {
|
|
29
|
+
CreateComponentCommand: CreateComponentCommand_1.CreateComponentCommand,
|
|
30
|
+
CreateFormCommand: CreateFormCommand_1.CreateFormCommand,
|
|
31
|
+
CreateThemeCommand: CreateThemeCommand_1.CreateThemeCommand,
|
|
32
|
+
DeleteComponentCommand: DeleteComponentCommand_1.DeleteComponentCommand,
|
|
33
|
+
DeleteFormCommand: DeleteFormCommand_1.DeleteFormCommand,
|
|
34
|
+
DeleteThemeCommand: DeleteThemeCommand_1.DeleteThemeCommand,
|
|
35
|
+
ExchangeCodeForTokenCommand: ExchangeCodeForTokenCommand_1.ExchangeCodeForTokenCommand,
|
|
36
|
+
ExportComponentsCommand: ExportComponentsCommand_1.ExportComponentsCommand,
|
|
37
|
+
ExportFormsCommand: ExportFormsCommand_1.ExportFormsCommand,
|
|
38
|
+
ExportThemesCommand: ExportThemesCommand_1.ExportThemesCommand,
|
|
39
|
+
GetComponentCommand: GetComponentCommand_1.GetComponentCommand,
|
|
40
|
+
GetFormCommand: GetFormCommand_1.GetFormCommand,
|
|
41
|
+
GetMetadataCommand: GetMetadataCommand_1.GetMetadataCommand,
|
|
42
|
+
GetThemeCommand: GetThemeCommand_1.GetThemeCommand,
|
|
43
|
+
ListComponentsCommand: ListComponentsCommand_1.ListComponentsCommand,
|
|
44
|
+
ListFormsCommand: ListFormsCommand_1.ListFormsCommand,
|
|
45
|
+
ListThemesCommand: ListThemesCommand_1.ListThemesCommand,
|
|
46
|
+
PutMetadataFlagCommand: PutMetadataFlagCommand_1.PutMetadataFlagCommand,
|
|
47
|
+
RefreshTokenCommand: RefreshTokenCommand_1.RefreshTokenCommand,
|
|
48
|
+
UpdateComponentCommand: UpdateComponentCommand_1.UpdateComponentCommand,
|
|
49
|
+
UpdateFormCommand: UpdateFormCommand_1.UpdateFormCommand,
|
|
50
|
+
UpdateThemeCommand: UpdateThemeCommand_1.UpdateThemeCommand,
|
|
51
|
+
};
|
|
27
52
|
class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
28
|
-
createComponent(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new CreateComponentCommand_1.CreateComponentCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
createForm(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new CreateFormCommand_1.CreateFormCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
createTheme(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new CreateThemeCommand_1.CreateThemeCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
deleteComponent(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new DeleteComponentCommand_1.DeleteComponentCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
deleteForm(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new DeleteFormCommand_1.DeleteFormCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
deleteTheme(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new DeleteThemeCommand_1.DeleteThemeCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
exchangeCodeForToken(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new ExchangeCodeForTokenCommand_1.ExchangeCodeForTokenCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
exportComponents(args, optionsOrCb, cb) {
|
|
127
|
-
const command = new ExportComponentsCommand_1.ExportComponentsCommand(args);
|
|
128
|
-
if (typeof optionsOrCb === "function") {
|
|
129
|
-
this.send(command, optionsOrCb);
|
|
130
|
-
}
|
|
131
|
-
else if (typeof cb === "function") {
|
|
132
|
-
if (typeof optionsOrCb !== "object")
|
|
133
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
134
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
return this.send(command, optionsOrCb);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
exportForms(args, optionsOrCb, cb) {
|
|
141
|
-
const command = new ExportFormsCommand_1.ExportFormsCommand(args);
|
|
142
|
-
if (typeof optionsOrCb === "function") {
|
|
143
|
-
this.send(command, optionsOrCb);
|
|
144
|
-
}
|
|
145
|
-
else if (typeof cb === "function") {
|
|
146
|
-
if (typeof optionsOrCb !== "object")
|
|
147
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
148
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
return this.send(command, optionsOrCb);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
exportThemes(args, optionsOrCb, cb) {
|
|
155
|
-
const command = new ExportThemesCommand_1.ExportThemesCommand(args);
|
|
156
|
-
if (typeof optionsOrCb === "function") {
|
|
157
|
-
this.send(command, optionsOrCb);
|
|
158
|
-
}
|
|
159
|
-
else if (typeof cb === "function") {
|
|
160
|
-
if (typeof optionsOrCb !== "object")
|
|
161
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
162
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
return this.send(command, optionsOrCb);
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
getComponent(args, optionsOrCb, cb) {
|
|
169
|
-
const command = new GetComponentCommand_1.GetComponentCommand(args);
|
|
170
|
-
if (typeof optionsOrCb === "function") {
|
|
171
|
-
this.send(command, optionsOrCb);
|
|
172
|
-
}
|
|
173
|
-
else if (typeof cb === "function") {
|
|
174
|
-
if (typeof optionsOrCb !== "object")
|
|
175
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
176
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
177
|
-
}
|
|
178
|
-
else {
|
|
179
|
-
return this.send(command, optionsOrCb);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
getForm(args, optionsOrCb, cb) {
|
|
183
|
-
const command = new GetFormCommand_1.GetFormCommand(args);
|
|
184
|
-
if (typeof optionsOrCb === "function") {
|
|
185
|
-
this.send(command, optionsOrCb);
|
|
186
|
-
}
|
|
187
|
-
else if (typeof cb === "function") {
|
|
188
|
-
if (typeof optionsOrCb !== "object")
|
|
189
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
190
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
return this.send(command, optionsOrCb);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
getMetadata(args, optionsOrCb, cb) {
|
|
197
|
-
const command = new GetMetadataCommand_1.GetMetadataCommand(args);
|
|
198
|
-
if (typeof optionsOrCb === "function") {
|
|
199
|
-
this.send(command, optionsOrCb);
|
|
200
|
-
}
|
|
201
|
-
else if (typeof cb === "function") {
|
|
202
|
-
if (typeof optionsOrCb !== "object")
|
|
203
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
204
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
205
|
-
}
|
|
206
|
-
else {
|
|
207
|
-
return this.send(command, optionsOrCb);
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
getTheme(args, optionsOrCb, cb) {
|
|
211
|
-
const command = new GetThemeCommand_1.GetThemeCommand(args);
|
|
212
|
-
if (typeof optionsOrCb === "function") {
|
|
213
|
-
this.send(command, optionsOrCb);
|
|
214
|
-
}
|
|
215
|
-
else if (typeof cb === "function") {
|
|
216
|
-
if (typeof optionsOrCb !== "object")
|
|
217
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
218
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
219
|
-
}
|
|
220
|
-
else {
|
|
221
|
-
return this.send(command, optionsOrCb);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
listComponents(args, optionsOrCb, cb) {
|
|
225
|
-
const command = new ListComponentsCommand_1.ListComponentsCommand(args);
|
|
226
|
-
if (typeof optionsOrCb === "function") {
|
|
227
|
-
this.send(command, optionsOrCb);
|
|
228
|
-
}
|
|
229
|
-
else if (typeof cb === "function") {
|
|
230
|
-
if (typeof optionsOrCb !== "object")
|
|
231
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
232
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
return this.send(command, optionsOrCb);
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
listForms(args, optionsOrCb, cb) {
|
|
239
|
-
const command = new ListFormsCommand_1.ListFormsCommand(args);
|
|
240
|
-
if (typeof optionsOrCb === "function") {
|
|
241
|
-
this.send(command, optionsOrCb);
|
|
242
|
-
}
|
|
243
|
-
else if (typeof cb === "function") {
|
|
244
|
-
if (typeof optionsOrCb !== "object")
|
|
245
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
246
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
247
|
-
}
|
|
248
|
-
else {
|
|
249
|
-
return this.send(command, optionsOrCb);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
listThemes(args, optionsOrCb, cb) {
|
|
253
|
-
const command = new ListThemesCommand_1.ListThemesCommand(args);
|
|
254
|
-
if (typeof optionsOrCb === "function") {
|
|
255
|
-
this.send(command, optionsOrCb);
|
|
256
|
-
}
|
|
257
|
-
else if (typeof cb === "function") {
|
|
258
|
-
if (typeof optionsOrCb !== "object")
|
|
259
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
260
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
return this.send(command, optionsOrCb);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
putMetadataFlag(args, optionsOrCb, cb) {
|
|
267
|
-
const command = new PutMetadataFlagCommand_1.PutMetadataFlagCommand(args);
|
|
268
|
-
if (typeof optionsOrCb === "function") {
|
|
269
|
-
this.send(command, optionsOrCb);
|
|
270
|
-
}
|
|
271
|
-
else if (typeof cb === "function") {
|
|
272
|
-
if (typeof optionsOrCb !== "object")
|
|
273
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
274
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
return this.send(command, optionsOrCb);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
refreshToken(args, optionsOrCb, cb) {
|
|
281
|
-
const command = new RefreshTokenCommand_1.RefreshTokenCommand(args);
|
|
282
|
-
if (typeof optionsOrCb === "function") {
|
|
283
|
-
this.send(command, optionsOrCb);
|
|
284
|
-
}
|
|
285
|
-
else if (typeof cb === "function") {
|
|
286
|
-
if (typeof optionsOrCb !== "object")
|
|
287
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
288
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
289
|
-
}
|
|
290
|
-
else {
|
|
291
|
-
return this.send(command, optionsOrCb);
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
updateComponent(args, optionsOrCb, cb) {
|
|
295
|
-
const command = new UpdateComponentCommand_1.UpdateComponentCommand(args);
|
|
296
|
-
if (typeof optionsOrCb === "function") {
|
|
297
|
-
this.send(command, optionsOrCb);
|
|
298
|
-
}
|
|
299
|
-
else if (typeof cb === "function") {
|
|
300
|
-
if (typeof optionsOrCb !== "object")
|
|
301
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
302
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
303
|
-
}
|
|
304
|
-
else {
|
|
305
|
-
return this.send(command, optionsOrCb);
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
updateForm(args, optionsOrCb, cb) {
|
|
309
|
-
const command = new UpdateFormCommand_1.UpdateFormCommand(args);
|
|
310
|
-
if (typeof optionsOrCb === "function") {
|
|
311
|
-
this.send(command, optionsOrCb);
|
|
312
|
-
}
|
|
313
|
-
else if (typeof cb === "function") {
|
|
314
|
-
if (typeof optionsOrCb !== "object")
|
|
315
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
316
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
317
|
-
}
|
|
318
|
-
else {
|
|
319
|
-
return this.send(command, optionsOrCb);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
updateTheme(args, optionsOrCb, cb) {
|
|
323
|
-
const command = new UpdateThemeCommand_1.UpdateThemeCommand(args);
|
|
324
|
-
if (typeof optionsOrCb === "function") {
|
|
325
|
-
this.send(command, optionsOrCb);
|
|
326
|
-
}
|
|
327
|
-
else if (typeof cb === "function") {
|
|
328
|
-
if (typeof optionsOrCb !== "object")
|
|
329
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
330
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
331
|
-
}
|
|
332
|
-
else {
|
|
333
|
-
return this.send(command, optionsOrCb);
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
53
|
}
|
|
337
54
|
exports.AmplifyUIBuilder = AmplifyUIBuilder;
|
|
55
|
+
(0, smithy_client_1.createAggregatedClient)(commands, AmplifyUIBuilder);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createAggregatedClient } from "@aws-sdk/smithy-client";
|
|
1
2
|
import { AmplifyUIBuilderClient } from "./AmplifyUIBuilderClient";
|
|
2
3
|
import { CreateComponentCommand, } from "./commands/CreateComponentCommand";
|
|
3
4
|
import { CreateFormCommand } from "./commands/CreateFormCommand";
|
|
@@ -21,313 +22,30 @@ import { RefreshTokenCommand, } from "./commands/RefreshTokenCommand";
|
|
|
21
22
|
import { UpdateComponentCommand, } from "./commands/UpdateComponentCommand";
|
|
22
23
|
import { UpdateFormCommand } from "./commands/UpdateFormCommand";
|
|
23
24
|
import { UpdateThemeCommand } from "./commands/UpdateThemeCommand";
|
|
25
|
+
const commands = {
|
|
26
|
+
CreateComponentCommand,
|
|
27
|
+
CreateFormCommand,
|
|
28
|
+
CreateThemeCommand,
|
|
29
|
+
DeleteComponentCommand,
|
|
30
|
+
DeleteFormCommand,
|
|
31
|
+
DeleteThemeCommand,
|
|
32
|
+
ExchangeCodeForTokenCommand,
|
|
33
|
+
ExportComponentsCommand,
|
|
34
|
+
ExportFormsCommand,
|
|
35
|
+
ExportThemesCommand,
|
|
36
|
+
GetComponentCommand,
|
|
37
|
+
GetFormCommand,
|
|
38
|
+
GetMetadataCommand,
|
|
39
|
+
GetThemeCommand,
|
|
40
|
+
ListComponentsCommand,
|
|
41
|
+
ListFormsCommand,
|
|
42
|
+
ListThemesCommand,
|
|
43
|
+
PutMetadataFlagCommand,
|
|
44
|
+
RefreshTokenCommand,
|
|
45
|
+
UpdateComponentCommand,
|
|
46
|
+
UpdateFormCommand,
|
|
47
|
+
UpdateThemeCommand,
|
|
48
|
+
};
|
|
24
49
|
export class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
25
|
-
createComponent(args, optionsOrCb, cb) {
|
|
26
|
-
const command = new CreateComponentCommand(args);
|
|
27
|
-
if (typeof optionsOrCb === "function") {
|
|
28
|
-
this.send(command, optionsOrCb);
|
|
29
|
-
}
|
|
30
|
-
else if (typeof cb === "function") {
|
|
31
|
-
if (typeof optionsOrCb !== "object")
|
|
32
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
33
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
return this.send(command, optionsOrCb);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
createForm(args, optionsOrCb, cb) {
|
|
40
|
-
const command = new CreateFormCommand(args);
|
|
41
|
-
if (typeof optionsOrCb === "function") {
|
|
42
|
-
this.send(command, optionsOrCb);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof cb === "function") {
|
|
45
|
-
if (typeof optionsOrCb !== "object")
|
|
46
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
47
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
return this.send(command, optionsOrCb);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
createTheme(args, optionsOrCb, cb) {
|
|
54
|
-
const command = new CreateThemeCommand(args);
|
|
55
|
-
if (typeof optionsOrCb === "function") {
|
|
56
|
-
this.send(command, optionsOrCb);
|
|
57
|
-
}
|
|
58
|
-
else if (typeof cb === "function") {
|
|
59
|
-
if (typeof optionsOrCb !== "object")
|
|
60
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
61
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
return this.send(command, optionsOrCb);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
deleteComponent(args, optionsOrCb, cb) {
|
|
68
|
-
const command = new DeleteComponentCommand(args);
|
|
69
|
-
if (typeof optionsOrCb === "function") {
|
|
70
|
-
this.send(command, optionsOrCb);
|
|
71
|
-
}
|
|
72
|
-
else if (typeof cb === "function") {
|
|
73
|
-
if (typeof optionsOrCb !== "object")
|
|
74
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
75
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
return this.send(command, optionsOrCb);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
deleteForm(args, optionsOrCb, cb) {
|
|
82
|
-
const command = new DeleteFormCommand(args);
|
|
83
|
-
if (typeof optionsOrCb === "function") {
|
|
84
|
-
this.send(command, optionsOrCb);
|
|
85
|
-
}
|
|
86
|
-
else if (typeof cb === "function") {
|
|
87
|
-
if (typeof optionsOrCb !== "object")
|
|
88
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
89
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
return this.send(command, optionsOrCb);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
deleteTheme(args, optionsOrCb, cb) {
|
|
96
|
-
const command = new DeleteThemeCommand(args);
|
|
97
|
-
if (typeof optionsOrCb === "function") {
|
|
98
|
-
this.send(command, optionsOrCb);
|
|
99
|
-
}
|
|
100
|
-
else if (typeof cb === "function") {
|
|
101
|
-
if (typeof optionsOrCb !== "object")
|
|
102
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
103
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
return this.send(command, optionsOrCb);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
exchangeCodeForToken(args, optionsOrCb, cb) {
|
|
110
|
-
const command = new ExchangeCodeForTokenCommand(args);
|
|
111
|
-
if (typeof optionsOrCb === "function") {
|
|
112
|
-
this.send(command, optionsOrCb);
|
|
113
|
-
}
|
|
114
|
-
else if (typeof cb === "function") {
|
|
115
|
-
if (typeof optionsOrCb !== "object")
|
|
116
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
117
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
return this.send(command, optionsOrCb);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
exportComponents(args, optionsOrCb, cb) {
|
|
124
|
-
const command = new ExportComponentsCommand(args);
|
|
125
|
-
if (typeof optionsOrCb === "function") {
|
|
126
|
-
this.send(command, optionsOrCb);
|
|
127
|
-
}
|
|
128
|
-
else if (typeof cb === "function") {
|
|
129
|
-
if (typeof optionsOrCb !== "object")
|
|
130
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
131
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
132
|
-
}
|
|
133
|
-
else {
|
|
134
|
-
return this.send(command, optionsOrCb);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
exportForms(args, optionsOrCb, cb) {
|
|
138
|
-
const command = new ExportFormsCommand(args);
|
|
139
|
-
if (typeof optionsOrCb === "function") {
|
|
140
|
-
this.send(command, optionsOrCb);
|
|
141
|
-
}
|
|
142
|
-
else if (typeof cb === "function") {
|
|
143
|
-
if (typeof optionsOrCb !== "object")
|
|
144
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
145
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
146
|
-
}
|
|
147
|
-
else {
|
|
148
|
-
return this.send(command, optionsOrCb);
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
exportThemes(args, optionsOrCb, cb) {
|
|
152
|
-
const command = new ExportThemesCommand(args);
|
|
153
|
-
if (typeof optionsOrCb === "function") {
|
|
154
|
-
this.send(command, optionsOrCb);
|
|
155
|
-
}
|
|
156
|
-
else if (typeof cb === "function") {
|
|
157
|
-
if (typeof optionsOrCb !== "object")
|
|
158
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
159
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
return this.send(command, optionsOrCb);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
getComponent(args, optionsOrCb, cb) {
|
|
166
|
-
const command = new GetComponentCommand(args);
|
|
167
|
-
if (typeof optionsOrCb === "function") {
|
|
168
|
-
this.send(command, optionsOrCb);
|
|
169
|
-
}
|
|
170
|
-
else if (typeof cb === "function") {
|
|
171
|
-
if (typeof optionsOrCb !== "object")
|
|
172
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
173
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
return this.send(command, optionsOrCb);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
getForm(args, optionsOrCb, cb) {
|
|
180
|
-
const command = new GetFormCommand(args);
|
|
181
|
-
if (typeof optionsOrCb === "function") {
|
|
182
|
-
this.send(command, optionsOrCb);
|
|
183
|
-
}
|
|
184
|
-
else if (typeof cb === "function") {
|
|
185
|
-
if (typeof optionsOrCb !== "object")
|
|
186
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
187
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
return this.send(command, optionsOrCb);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
getMetadata(args, optionsOrCb, cb) {
|
|
194
|
-
const command = new GetMetadataCommand(args);
|
|
195
|
-
if (typeof optionsOrCb === "function") {
|
|
196
|
-
this.send(command, optionsOrCb);
|
|
197
|
-
}
|
|
198
|
-
else if (typeof cb === "function") {
|
|
199
|
-
if (typeof optionsOrCb !== "object")
|
|
200
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
201
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
202
|
-
}
|
|
203
|
-
else {
|
|
204
|
-
return this.send(command, optionsOrCb);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
getTheme(args, optionsOrCb, cb) {
|
|
208
|
-
const command = new GetThemeCommand(args);
|
|
209
|
-
if (typeof optionsOrCb === "function") {
|
|
210
|
-
this.send(command, optionsOrCb);
|
|
211
|
-
}
|
|
212
|
-
else if (typeof cb === "function") {
|
|
213
|
-
if (typeof optionsOrCb !== "object")
|
|
214
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
215
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
return this.send(command, optionsOrCb);
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
listComponents(args, optionsOrCb, cb) {
|
|
222
|
-
const command = new ListComponentsCommand(args);
|
|
223
|
-
if (typeof optionsOrCb === "function") {
|
|
224
|
-
this.send(command, optionsOrCb);
|
|
225
|
-
}
|
|
226
|
-
else if (typeof cb === "function") {
|
|
227
|
-
if (typeof optionsOrCb !== "object")
|
|
228
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
229
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
return this.send(command, optionsOrCb);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
listForms(args, optionsOrCb, cb) {
|
|
236
|
-
const command = new ListFormsCommand(args);
|
|
237
|
-
if (typeof optionsOrCb === "function") {
|
|
238
|
-
this.send(command, optionsOrCb);
|
|
239
|
-
}
|
|
240
|
-
else if (typeof cb === "function") {
|
|
241
|
-
if (typeof optionsOrCb !== "object")
|
|
242
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
243
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
return this.send(command, optionsOrCb);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
listThemes(args, optionsOrCb, cb) {
|
|
250
|
-
const command = new ListThemesCommand(args);
|
|
251
|
-
if (typeof optionsOrCb === "function") {
|
|
252
|
-
this.send(command, optionsOrCb);
|
|
253
|
-
}
|
|
254
|
-
else if (typeof cb === "function") {
|
|
255
|
-
if (typeof optionsOrCb !== "object")
|
|
256
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
257
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
return this.send(command, optionsOrCb);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
putMetadataFlag(args, optionsOrCb, cb) {
|
|
264
|
-
const command = new PutMetadataFlagCommand(args);
|
|
265
|
-
if (typeof optionsOrCb === "function") {
|
|
266
|
-
this.send(command, optionsOrCb);
|
|
267
|
-
}
|
|
268
|
-
else if (typeof cb === "function") {
|
|
269
|
-
if (typeof optionsOrCb !== "object")
|
|
270
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
271
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
272
|
-
}
|
|
273
|
-
else {
|
|
274
|
-
return this.send(command, optionsOrCb);
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
refreshToken(args, optionsOrCb, cb) {
|
|
278
|
-
const command = new RefreshTokenCommand(args);
|
|
279
|
-
if (typeof optionsOrCb === "function") {
|
|
280
|
-
this.send(command, optionsOrCb);
|
|
281
|
-
}
|
|
282
|
-
else if (typeof cb === "function") {
|
|
283
|
-
if (typeof optionsOrCb !== "object")
|
|
284
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
285
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
return this.send(command, optionsOrCb);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
updateComponent(args, optionsOrCb, cb) {
|
|
292
|
-
const command = new UpdateComponentCommand(args);
|
|
293
|
-
if (typeof optionsOrCb === "function") {
|
|
294
|
-
this.send(command, optionsOrCb);
|
|
295
|
-
}
|
|
296
|
-
else if (typeof cb === "function") {
|
|
297
|
-
if (typeof optionsOrCb !== "object")
|
|
298
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
299
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
300
|
-
}
|
|
301
|
-
else {
|
|
302
|
-
return this.send(command, optionsOrCb);
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
updateForm(args, optionsOrCb, cb) {
|
|
306
|
-
const command = new UpdateFormCommand(args);
|
|
307
|
-
if (typeof optionsOrCb === "function") {
|
|
308
|
-
this.send(command, optionsOrCb);
|
|
309
|
-
}
|
|
310
|
-
else if (typeof cb === "function") {
|
|
311
|
-
if (typeof optionsOrCb !== "object")
|
|
312
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
313
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
return this.send(command, optionsOrCb);
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
updateTheme(args, optionsOrCb, cb) {
|
|
320
|
-
const command = new UpdateThemeCommand(args);
|
|
321
|
-
if (typeof optionsOrCb === "function") {
|
|
322
|
-
this.send(command, optionsOrCb);
|
|
323
|
-
}
|
|
324
|
-
else if (typeof cb === "function") {
|
|
325
|
-
if (typeof optionsOrCb !== "object")
|
|
326
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
327
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
return this.send(command, optionsOrCb);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
50
|
}
|
|
51
|
+
createAggregatedClient(commands, AmplifyUIBuilder);
|
|
@@ -22,173 +22,151 @@ import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/
|
|
|
22
22
|
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
|
|
23
23
|
import { UpdateFormCommandInput, UpdateFormCommandOutput } from "./commands/UpdateFormCommand";
|
|
24
24
|
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
|
|
25
|
-
|
|
26
|
-
* @public
|
|
27
|
-
* <p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
28
|
-
* 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
|
|
29
|
-
* backend Amazon Web Services resources.</p>
|
|
30
|
-
* <p>You can also use the Amplify Studio visual designer to create UI components
|
|
31
|
-
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
32
|
-
* <i>Amplify Docs</i>.</p>
|
|
33
|
-
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
34
|
-
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
35
|
-
* 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>
|
|
36
|
-
*/
|
|
37
|
-
export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
25
|
+
export interface AmplifyUIBuilder {
|
|
38
26
|
/**
|
|
39
|
-
* @
|
|
40
|
-
* <p>Creates a new component for an Amplify app.</p>
|
|
27
|
+
* @see {@link CreateComponentCommand}
|
|
41
28
|
*/
|
|
42
29
|
createComponent(args: CreateComponentCommandInput, options?: __HttpHandlerOptions): Promise<CreateComponentCommandOutput>;
|
|
43
30
|
createComponent(args: CreateComponentCommandInput, cb: (err: any, data?: CreateComponentCommandOutput) => void): void;
|
|
44
31
|
createComponent(args: CreateComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateComponentCommandOutput) => void): void;
|
|
45
32
|
/**
|
|
46
|
-
* @
|
|
47
|
-
* <p>Creates a new form for an Amplify app.</p>
|
|
33
|
+
* @see {@link CreateFormCommand}
|
|
48
34
|
*/
|
|
49
35
|
createForm(args: CreateFormCommandInput, options?: __HttpHandlerOptions): Promise<CreateFormCommandOutput>;
|
|
50
36
|
createForm(args: CreateFormCommandInput, cb: (err: any, data?: CreateFormCommandOutput) => void): void;
|
|
51
37
|
createForm(args: CreateFormCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateFormCommandOutput) => void): void;
|
|
52
38
|
/**
|
|
53
|
-
* @
|
|
54
|
-
* <p>Creates a theme to apply to the components in an Amplify app.</p>
|
|
39
|
+
* @see {@link CreateThemeCommand}
|
|
55
40
|
*/
|
|
56
41
|
createTheme(args: CreateThemeCommandInput, options?: __HttpHandlerOptions): Promise<CreateThemeCommandOutput>;
|
|
57
42
|
createTheme(args: CreateThemeCommandInput, cb: (err: any, data?: CreateThemeCommandOutput) => void): void;
|
|
58
43
|
createTheme(args: CreateThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateThemeCommandOutput) => void): void;
|
|
59
44
|
/**
|
|
60
|
-
* @
|
|
61
|
-
* <p>Deletes a component from an Amplify app.</p>
|
|
45
|
+
* @see {@link DeleteComponentCommand}
|
|
62
46
|
*/
|
|
63
47
|
deleteComponent(args: DeleteComponentCommandInput, options?: __HttpHandlerOptions): Promise<DeleteComponentCommandOutput>;
|
|
64
48
|
deleteComponent(args: DeleteComponentCommandInput, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
|
|
65
49
|
deleteComponent(args: DeleteComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteComponentCommandOutput) => void): void;
|
|
66
50
|
/**
|
|
67
|
-
* @
|
|
68
|
-
* <p>Deletes a form from an Amplify app.</p>
|
|
51
|
+
* @see {@link DeleteFormCommand}
|
|
69
52
|
*/
|
|
70
53
|
deleteForm(args: DeleteFormCommandInput, options?: __HttpHandlerOptions): Promise<DeleteFormCommandOutput>;
|
|
71
54
|
deleteForm(args: DeleteFormCommandInput, cb: (err: any, data?: DeleteFormCommandOutput) => void): void;
|
|
72
55
|
deleteForm(args: DeleteFormCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteFormCommandOutput) => void): void;
|
|
73
56
|
/**
|
|
74
|
-
* @
|
|
75
|
-
* <p>Deletes a theme from an Amplify app.</p>
|
|
57
|
+
* @see {@link DeleteThemeCommand}
|
|
76
58
|
*/
|
|
77
59
|
deleteTheme(args: DeleteThemeCommandInput, options?: __HttpHandlerOptions): Promise<DeleteThemeCommandOutput>;
|
|
78
60
|
deleteTheme(args: DeleteThemeCommandInput, cb: (err: any, data?: DeleteThemeCommandOutput) => void): void;
|
|
79
61
|
deleteTheme(args: DeleteThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteThemeCommandOutput) => void): void;
|
|
80
62
|
/**
|
|
81
|
-
* @
|
|
82
|
-
* <p>Exchanges an access code for a token.</p>
|
|
63
|
+
* @see {@link ExchangeCodeForTokenCommand}
|
|
83
64
|
*/
|
|
84
65
|
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, options?: __HttpHandlerOptions): Promise<ExchangeCodeForTokenCommandOutput>;
|
|
85
66
|
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, cb: (err: any, data?: ExchangeCodeForTokenCommandOutput) => void): void;
|
|
86
67
|
exchangeCodeForToken(args: ExchangeCodeForTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExchangeCodeForTokenCommandOutput) => void): void;
|
|
87
68
|
/**
|
|
88
|
-
* @
|
|
89
|
-
* <p>Exports component configurations to code that is ready to integrate into an Amplify app.</p>
|
|
69
|
+
* @see {@link ExportComponentsCommand}
|
|
90
70
|
*/
|
|
91
71
|
exportComponents(args: ExportComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ExportComponentsCommandOutput>;
|
|
92
72
|
exportComponents(args: ExportComponentsCommandInput, cb: (err: any, data?: ExportComponentsCommandOutput) => void): void;
|
|
93
73
|
exportComponents(args: ExportComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportComponentsCommandOutput) => void): void;
|
|
94
74
|
/**
|
|
95
|
-
* @
|
|
96
|
-
* <p>Exports form configurations to code that is ready to integrate into an Amplify app.</p>
|
|
75
|
+
* @see {@link ExportFormsCommand}
|
|
97
76
|
*/
|
|
98
77
|
exportForms(args: ExportFormsCommandInput, options?: __HttpHandlerOptions): Promise<ExportFormsCommandOutput>;
|
|
99
78
|
exportForms(args: ExportFormsCommandInput, cb: (err: any, data?: ExportFormsCommandOutput) => void): void;
|
|
100
79
|
exportForms(args: ExportFormsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportFormsCommandOutput) => void): void;
|
|
101
80
|
/**
|
|
102
|
-
* @
|
|
103
|
-
* <p>Exports theme configurations to code that is ready to integrate into an Amplify app.</p>
|
|
81
|
+
* @see {@link ExportThemesCommand}
|
|
104
82
|
*/
|
|
105
83
|
exportThemes(args: ExportThemesCommandInput, options?: __HttpHandlerOptions): Promise<ExportThemesCommandOutput>;
|
|
106
84
|
exportThemes(args: ExportThemesCommandInput, cb: (err: any, data?: ExportThemesCommandOutput) => void): void;
|
|
107
85
|
exportThemes(args: ExportThemesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportThemesCommandOutput) => void): void;
|
|
108
86
|
/**
|
|
109
|
-
* @
|
|
110
|
-
* <p>Returns an existing component for an Amplify app.</p>
|
|
87
|
+
* @see {@link GetComponentCommand}
|
|
111
88
|
*/
|
|
112
89
|
getComponent(args: GetComponentCommandInput, options?: __HttpHandlerOptions): Promise<GetComponentCommandOutput>;
|
|
113
90
|
getComponent(args: GetComponentCommandInput, cb: (err: any, data?: GetComponentCommandOutput) => void): void;
|
|
114
91
|
getComponent(args: GetComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetComponentCommandOutput) => void): void;
|
|
115
92
|
/**
|
|
116
|
-
* @
|
|
117
|
-
* <p>Returns an existing form for an Amplify app.</p>
|
|
93
|
+
* @see {@link GetFormCommand}
|
|
118
94
|
*/
|
|
119
95
|
getForm(args: GetFormCommandInput, options?: __HttpHandlerOptions): Promise<GetFormCommandOutput>;
|
|
120
96
|
getForm(args: GetFormCommandInput, cb: (err: any, data?: GetFormCommandOutput) => void): void;
|
|
121
97
|
getForm(args: GetFormCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFormCommandOutput) => void): void;
|
|
122
98
|
/**
|
|
123
|
-
* @
|
|
124
|
-
* <p>Returns existing metadata for an Amplify app.</p>
|
|
99
|
+
* @see {@link GetMetadataCommand}
|
|
125
100
|
*/
|
|
126
101
|
getMetadata(args: GetMetadataCommandInput, options?: __HttpHandlerOptions): Promise<GetMetadataCommandOutput>;
|
|
127
102
|
getMetadata(args: GetMetadataCommandInput, cb: (err: any, data?: GetMetadataCommandOutput) => void): void;
|
|
128
103
|
getMetadata(args: GetMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMetadataCommandOutput) => void): void;
|
|
129
104
|
/**
|
|
130
|
-
* @
|
|
131
|
-
* <p>Returns an existing theme for an Amplify app.</p>
|
|
105
|
+
* @see {@link GetThemeCommand}
|
|
132
106
|
*/
|
|
133
107
|
getTheme(args: GetThemeCommandInput, options?: __HttpHandlerOptions): Promise<GetThemeCommandOutput>;
|
|
134
108
|
getTheme(args: GetThemeCommandInput, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
135
109
|
getTheme(args: GetThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
136
110
|
/**
|
|
137
|
-
* @
|
|
138
|
-
* <p>Retrieves a list of components for a specified Amplify app and backend
|
|
139
|
-
* environment.</p>
|
|
111
|
+
* @see {@link ListComponentsCommand}
|
|
140
112
|
*/
|
|
141
113
|
listComponents(args: ListComponentsCommandInput, options?: __HttpHandlerOptions): Promise<ListComponentsCommandOutput>;
|
|
142
114
|
listComponents(args: ListComponentsCommandInput, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
|
|
143
115
|
listComponents(args: ListComponentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComponentsCommandOutput) => void): void;
|
|
144
116
|
/**
|
|
145
|
-
* @
|
|
146
|
-
* <p>Retrieves a list of forms for a specified Amplify app and backend environment.</p>
|
|
117
|
+
* @see {@link ListFormsCommand}
|
|
147
118
|
*/
|
|
148
119
|
listForms(args: ListFormsCommandInput, options?: __HttpHandlerOptions): Promise<ListFormsCommandOutput>;
|
|
149
120
|
listForms(args: ListFormsCommandInput, cb: (err: any, data?: ListFormsCommandOutput) => void): void;
|
|
150
121
|
listForms(args: ListFormsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListFormsCommandOutput) => void): void;
|
|
151
122
|
/**
|
|
152
|
-
* @
|
|
153
|
-
* <p>Retrieves a list of themes for a specified Amplify app and backend
|
|
154
|
-
* environment.</p>
|
|
123
|
+
* @see {@link ListThemesCommand}
|
|
155
124
|
*/
|
|
156
125
|
listThemes(args: ListThemesCommandInput, options?: __HttpHandlerOptions): Promise<ListThemesCommandOutput>;
|
|
157
126
|
listThemes(args: ListThemesCommandInput, cb: (err: any, data?: ListThemesCommandOutput) => void): void;
|
|
158
127
|
listThemes(args: ListThemesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListThemesCommandOutput) => void): void;
|
|
159
128
|
/**
|
|
160
|
-
* @
|
|
161
|
-
* <p>Stores the metadata information about a feature on a form.</p>
|
|
129
|
+
* @see {@link PutMetadataFlagCommand}
|
|
162
130
|
*/
|
|
163
131
|
putMetadataFlag(args: PutMetadataFlagCommandInput, options?: __HttpHandlerOptions): Promise<PutMetadataFlagCommandOutput>;
|
|
164
132
|
putMetadataFlag(args: PutMetadataFlagCommandInput, cb: (err: any, data?: PutMetadataFlagCommandOutput) => void): void;
|
|
165
133
|
putMetadataFlag(args: PutMetadataFlagCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutMetadataFlagCommandOutput) => void): void;
|
|
166
134
|
/**
|
|
167
|
-
* @
|
|
168
|
-
* <p>Refreshes a previously issued access token that might have expired.</p>
|
|
135
|
+
* @see {@link RefreshTokenCommand}
|
|
169
136
|
*/
|
|
170
137
|
refreshToken(args: RefreshTokenCommandInput, options?: __HttpHandlerOptions): Promise<RefreshTokenCommandOutput>;
|
|
171
138
|
refreshToken(args: RefreshTokenCommandInput, cb: (err: any, data?: RefreshTokenCommandOutput) => void): void;
|
|
172
139
|
refreshToken(args: RefreshTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RefreshTokenCommandOutput) => void): void;
|
|
173
140
|
/**
|
|
174
|
-
* @
|
|
175
|
-
* <p>Updates an existing component.</p>
|
|
141
|
+
* @see {@link UpdateComponentCommand}
|
|
176
142
|
*/
|
|
177
143
|
updateComponent(args: UpdateComponentCommandInput, options?: __HttpHandlerOptions): Promise<UpdateComponentCommandOutput>;
|
|
178
144
|
updateComponent(args: UpdateComponentCommandInput, cb: (err: any, data?: UpdateComponentCommandOutput) => void): void;
|
|
179
145
|
updateComponent(args: UpdateComponentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateComponentCommandOutput) => void): void;
|
|
180
146
|
/**
|
|
181
|
-
* @
|
|
182
|
-
* <p>Updates an existing form.</p>
|
|
147
|
+
* @see {@link UpdateFormCommand}
|
|
183
148
|
*/
|
|
184
149
|
updateForm(args: UpdateFormCommandInput, options?: __HttpHandlerOptions): Promise<UpdateFormCommandOutput>;
|
|
185
150
|
updateForm(args: UpdateFormCommandInput, cb: (err: any, data?: UpdateFormCommandOutput) => void): void;
|
|
186
151
|
updateForm(args: UpdateFormCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateFormCommandOutput) => void): void;
|
|
187
152
|
/**
|
|
188
|
-
* @
|
|
189
|
-
* <p>Updates an existing theme.</p>
|
|
153
|
+
* @see {@link UpdateThemeCommand}
|
|
190
154
|
*/
|
|
191
155
|
updateTheme(args: UpdateThemeCommandInput, options?: __HttpHandlerOptions): Promise<UpdateThemeCommandOutput>;
|
|
192
156
|
updateTheme(args: UpdateThemeCommandInput, cb: (err: any, data?: UpdateThemeCommandOutput) => void): void;
|
|
193
157
|
updateTheme(args: UpdateThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateThemeCommandOutput) => void): void;
|
|
194
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* <p>The Amplify UI Builder API provides a programmatic interface for creating
|
|
162
|
+
* 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
|
|
163
|
+
* backend Amazon Web Services resources.</p>
|
|
164
|
+
* <p>You can also use the Amplify Studio visual designer to create UI components
|
|
165
|
+
* and model data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a> in the
|
|
166
|
+
* <i>Amplify Docs</i>.</p>
|
|
167
|
+
* <p>The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and
|
|
168
|
+
* documentation for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify Framework</a>. For more information about
|
|
169
|
+
* 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>
|
|
170
|
+
*/
|
|
171
|
+
export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient implements AmplifyUIBuilder {
|
|
172
|
+
}
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
UpdateThemeCommandInput,
|
|
89
89
|
UpdateThemeCommandOutput,
|
|
90
90
|
} from "./commands/UpdateThemeCommand";
|
|
91
|
-
export
|
|
91
|
+
export interface AmplifyUIBuilder {
|
|
92
92
|
createComponent(
|
|
93
93
|
args: CreateComponentCommandInput,
|
|
94
94
|
options?: __HttpHandlerOptions
|
|
@@ -376,3 +376,6 @@ export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
|
376
376
|
cb: (err: any, data?: UpdateThemeCommandOutput) => void
|
|
377
377
|
): void;
|
|
378
378
|
}
|
|
379
|
+
export declare class AmplifyUIBuilder
|
|
380
|
+
extends AmplifyUIBuilderClient
|
|
381
|
+
implements AmplifyUIBuilder {}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amplifyuibuilder",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amplifyuibuilder Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.316.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.316.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.316.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.310.0",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
43
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
+
"@aws-sdk/smithy-client": "3.316.0",
|
|
44
44
|
"@aws-sdk/types": "3.310.0",
|
|
45
45
|
"@aws-sdk/url-parser": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-base64": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
50
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
49
|
+
"@aws-sdk/util-defaults-mode-browser": "3.316.0",
|
|
50
|
+
"@aws-sdk/util-defaults-mode-node": "3.316.0",
|
|
51
51
|
"@aws-sdk/util-endpoints": "3.310.0",
|
|
52
52
|
"@aws-sdk/util-retry": "3.310.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|