@aws-sdk/client-amplifyuibuilder 3.169.0 → 3.171.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist-cjs/AmplifyUIBuilder.js +120 -0
- package/dist-cjs/commands/CreateFormCommand.js +36 -0
- package/dist-cjs/commands/DeleteFormCommand.js +36 -0
- package/dist-cjs/commands/ExportFormsCommand.js +36 -0
- package/dist-cjs/commands/GetFormCommand.js +36 -0
- package/dist-cjs/commands/GetMetadataCommand.js +36 -0
- package/dist-cjs/commands/ListFormsCommand.js +36 -0
- package/dist-cjs/commands/PutMetadataFlagCommand.js +36 -0
- package/dist-cjs/commands/UpdateFormCommand.js +36 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +254 -2
- package/dist-cjs/pagination/ExportFormsPaginator.js +35 -0
- package/dist-cjs/pagination/ListFormsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_restJson1.js +979 -11
- package/dist-es/AmplifyUIBuilder.js +120 -0
- package/dist-es/commands/CreateFormCommand.js +39 -0
- package/dist-es/commands/DeleteFormCommand.js +39 -0
- package/dist-es/commands/ExportFormsCommand.js +39 -0
- package/dist-es/commands/GetFormCommand.js +39 -0
- package/dist-es/commands/GetMetadataCommand.js +39 -0
- package/dist-es/commands/ListFormsCommand.js +39 -0
- package/dist-es/commands/PutMetadataFlagCommand.js +39 -0
- package/dist-es/commands/UpdateFormCommand.js +39 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +141 -1
- package/dist-es/pagination/ExportFormsPaginator.js +74 -0
- package/dist-es/pagination/ListFormsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1142 -34
- package/dist-types/AmplifyUIBuilder.d.ts +56 -0
- package/dist-types/AmplifyUIBuilderClient.d.ts +10 -2
- package/dist-types/commands/CreateFormCommand.d.ts +35 -0
- package/dist-types/commands/DeleteFormCommand.d.ts +35 -0
- package/dist-types/commands/ExportFormsCommand.d.ts +35 -0
- package/dist-types/commands/GetFormCommand.d.ts +35 -0
- package/dist-types/commands/GetMetadataCommand.d.ts +35 -0
- package/dist-types/commands/ListFormsCommand.d.ts +35 -0
- package/dist-types/commands/PutMetadataFlagCommand.d.ts +35 -0
- package/dist-types/commands/UpdateFormCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +854 -24
- package/dist-types/pagination/ExportFormsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListFormsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +24 -0
- package/dist-types/ts3.4/AmplifyUIBuilder.d.ts +378 -75
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +237 -87
- package/dist-types/ts3.4/commands/CreateComponentCommand.d.ts +35 -17
- package/dist-types/ts3.4/commands/CreateFormCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/CreateThemeCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/DeleteComponentCommand.d.ts +30 -17
- package/dist-types/ts3.4/commands/DeleteFormCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/DeleteThemeCommand.d.ts +30 -17
- package/dist-types/ts3.4/commands/ExchangeCodeForTokenCommand.d.ts +39 -17
- package/dist-types/ts3.4/commands/ExportComponentsCommand.d.ts +35 -17
- package/dist-types/ts3.4/commands/ExportFormsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ExportThemesCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/GetComponentCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/GetFormCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetMetadataCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/GetThemeCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/ListComponentsCommand.d.ts +35 -17
- package/dist-types/ts3.4/commands/ListFormsCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/ListThemesCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/PutMetadataFlagCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/RefreshTokenCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/UpdateComponentCommand.d.ts +35 -17
- package/dist-types/ts3.4/commands/UpdateFormCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateThemeCommand.d.ts +32 -17
- package/dist-types/ts3.4/commands/index.d.ts +22 -14
- package/dist-types/ts3.4/endpoints.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +6 -6
- package/dist-types/ts3.4/models/AmplifyUIBuilderServiceException.d.ts +7 -6
- package/dist-types/ts3.4/models/index.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +849 -698
- package/dist-types/ts3.4/pagination/ExportComponentsPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ExportFormsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ExportThemesPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -6
- package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/ListFormsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListThemesPaginator.d.ts +11 -4
- package/dist-types/ts3.4/pagination/index.d.ts +7 -5
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +269 -44
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +67 -38
- package/dist-types/ts3.4/runtimeConfig.d.ts +67 -38
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +68 -37
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +12 -11
- package/package.json +34 -34
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.171.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.170.0...v3.171.0) (2022-09-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-amplifyuibuilder:** Amplify Studio UIBuilder is introducing forms functionality. Forms can be configured from Data Store models, JSON, or from scratch. These forms can then be generated in your project and used like any other React components. ([d09d5fc](https://github.com/aws/aws-sdk-js-v3/commit/d09d5fc36b8f644dfab99c0952ecb773be768a48))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.170.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.169.0...v3.170.0) (2022-09-13)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-amplifyuibuilder
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [3.169.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.168.0...v3.169.0) (2022-09-12)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @aws-sdk/client-amplifyuibuilder
|
|
@@ -3,18 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AmplifyUIBuilder = void 0;
|
|
4
4
|
const AmplifyUIBuilderClient_1 = require("./AmplifyUIBuilderClient");
|
|
5
5
|
const CreateComponentCommand_1 = require("./commands/CreateComponentCommand");
|
|
6
|
+
const CreateFormCommand_1 = require("./commands/CreateFormCommand");
|
|
6
7
|
const CreateThemeCommand_1 = require("./commands/CreateThemeCommand");
|
|
7
8
|
const DeleteComponentCommand_1 = require("./commands/DeleteComponentCommand");
|
|
9
|
+
const DeleteFormCommand_1 = require("./commands/DeleteFormCommand");
|
|
8
10
|
const DeleteThemeCommand_1 = require("./commands/DeleteThemeCommand");
|
|
9
11
|
const ExchangeCodeForTokenCommand_1 = require("./commands/ExchangeCodeForTokenCommand");
|
|
10
12
|
const ExportComponentsCommand_1 = require("./commands/ExportComponentsCommand");
|
|
13
|
+
const ExportFormsCommand_1 = require("./commands/ExportFormsCommand");
|
|
11
14
|
const ExportThemesCommand_1 = require("./commands/ExportThemesCommand");
|
|
12
15
|
const GetComponentCommand_1 = require("./commands/GetComponentCommand");
|
|
16
|
+
const GetFormCommand_1 = require("./commands/GetFormCommand");
|
|
17
|
+
const GetMetadataCommand_1 = require("./commands/GetMetadataCommand");
|
|
13
18
|
const GetThemeCommand_1 = require("./commands/GetThemeCommand");
|
|
14
19
|
const ListComponentsCommand_1 = require("./commands/ListComponentsCommand");
|
|
20
|
+
const ListFormsCommand_1 = require("./commands/ListFormsCommand");
|
|
15
21
|
const ListThemesCommand_1 = require("./commands/ListThemesCommand");
|
|
22
|
+
const PutMetadataFlagCommand_1 = require("./commands/PutMetadataFlagCommand");
|
|
16
23
|
const RefreshTokenCommand_1 = require("./commands/RefreshTokenCommand");
|
|
17
24
|
const UpdateComponentCommand_1 = require("./commands/UpdateComponentCommand");
|
|
25
|
+
const UpdateFormCommand_1 = require("./commands/UpdateFormCommand");
|
|
18
26
|
const UpdateThemeCommand_1 = require("./commands/UpdateThemeCommand");
|
|
19
27
|
class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
20
28
|
createComponent(args, optionsOrCb, cb) {
|
|
@@ -31,6 +39,20 @@ class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
|
31
39
|
return this.send(command, optionsOrCb);
|
|
32
40
|
}
|
|
33
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
|
+
}
|
|
34
56
|
createTheme(args, optionsOrCb, cb) {
|
|
35
57
|
const command = new CreateThemeCommand_1.CreateThemeCommand(args);
|
|
36
58
|
if (typeof optionsOrCb === "function") {
|
|
@@ -59,6 +81,20 @@ class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
|
59
81
|
return this.send(command, optionsOrCb);
|
|
60
82
|
}
|
|
61
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
|
+
}
|
|
62
98
|
deleteTheme(args, optionsOrCb, cb) {
|
|
63
99
|
const command = new DeleteThemeCommand_1.DeleteThemeCommand(args);
|
|
64
100
|
if (typeof optionsOrCb === "function") {
|
|
@@ -101,6 +137,20 @@ class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
|
101
137
|
return this.send(command, optionsOrCb);
|
|
102
138
|
}
|
|
103
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
|
+
}
|
|
104
154
|
exportThemes(args, optionsOrCb, cb) {
|
|
105
155
|
const command = new ExportThemesCommand_1.ExportThemesCommand(args);
|
|
106
156
|
if (typeof optionsOrCb === "function") {
|
|
@@ -129,6 +179,34 @@ class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
|
129
179
|
return this.send(command, optionsOrCb);
|
|
130
180
|
}
|
|
131
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
|
+
}
|
|
132
210
|
getTheme(args, optionsOrCb, cb) {
|
|
133
211
|
const command = new GetThemeCommand_1.GetThemeCommand(args);
|
|
134
212
|
if (typeof optionsOrCb === "function") {
|
|
@@ -157,6 +235,20 @@ class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
|
157
235
|
return this.send(command, optionsOrCb);
|
|
158
236
|
}
|
|
159
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
|
+
}
|
|
160
252
|
listThemes(args, optionsOrCb, cb) {
|
|
161
253
|
const command = new ListThemesCommand_1.ListThemesCommand(args);
|
|
162
254
|
if (typeof optionsOrCb === "function") {
|
|
@@ -171,6 +263,20 @@ class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
|
171
263
|
return this.send(command, optionsOrCb);
|
|
172
264
|
}
|
|
173
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
|
+
}
|
|
174
280
|
refreshToken(args, optionsOrCb, cb) {
|
|
175
281
|
const command = new RefreshTokenCommand_1.RefreshTokenCommand(args);
|
|
176
282
|
if (typeof optionsOrCb === "function") {
|
|
@@ -199,6 +305,20 @@ class AmplifyUIBuilder extends AmplifyUIBuilderClient_1.AmplifyUIBuilderClient {
|
|
|
199
305
|
return this.send(command, optionsOrCb);
|
|
200
306
|
}
|
|
201
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
|
+
}
|
|
202
322
|
updateTheme(args, optionsOrCb, cb) {
|
|
203
323
|
const command = new UpdateThemeCommand_1.UpdateThemeCommand(args);
|
|
204
324
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateFormCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class CreateFormCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "CreateFormCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.CreateFormRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.CreateFormResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1CreateFormCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1CreateFormCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.CreateFormCommand = CreateFormCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteFormCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DeleteFormCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "DeleteFormCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.DeleteFormRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1DeleteFormCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteFormCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.DeleteFormCommand = DeleteFormCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExportFormsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ExportFormsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "ExportFormsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ExportFormsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ExportFormsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ExportFormsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ExportFormsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ExportFormsCommand = ExportFormsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetFormCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetFormCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "GetFormCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetFormRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetFormResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetFormCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetFormCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetFormCommand = GetFormCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetMetadataCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class GetMetadataCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "GetMetadataCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.GetMetadataRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.GetMetadataResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1GetMetadataCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1GetMetadataCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.GetMetadataCommand = GetMetadataCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListFormsCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class ListFormsCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "ListFormsCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.ListFormsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.ListFormsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ListFormsCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ListFormsCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.ListFormsCommand = ListFormsCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PutMetadataFlagCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class PutMetadataFlagCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "PutMetadataFlagCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.PutMetadataFlagRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: (output) => output,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1PutMetadataFlagCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1PutMetadataFlagCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.PutMetadataFlagCommand = PutMetadataFlagCommand;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateFormCommand = void 0;
|
|
4
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
5
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const models_0_1 = require("../models/models_0");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class UpdateFormCommand extends smithy_client_1.Command {
|
|
9
|
+
constructor(input) {
|
|
10
|
+
super();
|
|
11
|
+
this.input = input;
|
|
12
|
+
}
|
|
13
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
15
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
const { logger } = configuration;
|
|
17
|
+
const clientName = "AmplifyUIBuilderClient";
|
|
18
|
+
const commandName = "UpdateFormCommand";
|
|
19
|
+
const handlerExecutionContext = {
|
|
20
|
+
logger,
|
|
21
|
+
clientName,
|
|
22
|
+
commandName,
|
|
23
|
+
inputFilterSensitiveLog: models_0_1.UpdateFormRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: models_0_1.UpdateFormResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
const { requestHandler } = configuration;
|
|
27
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
28
|
+
}
|
|
29
|
+
serialize(input, context) {
|
|
30
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1UpdateFormCommand)(input, context);
|
|
31
|
+
}
|
|
32
|
+
deserialize(output, context) {
|
|
33
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateFormCommand)(output, context);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.UpdateFormCommand = UpdateFormCommand;
|
|
@@ -2,16 +2,24 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreateComponentCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateFormCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateThemeCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DeleteComponentCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./DeleteFormCommand"), exports);
|
|
7
9
|
tslib_1.__exportStar(require("./DeleteThemeCommand"), exports);
|
|
8
10
|
tslib_1.__exportStar(require("./ExchangeCodeForTokenCommand"), exports);
|
|
9
11
|
tslib_1.__exportStar(require("./ExportComponentsCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./ExportFormsCommand"), exports);
|
|
10
13
|
tslib_1.__exportStar(require("./ExportThemesCommand"), exports);
|
|
11
14
|
tslib_1.__exportStar(require("./GetComponentCommand"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./GetFormCommand"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./GetMetadataCommand"), exports);
|
|
12
17
|
tslib_1.__exportStar(require("./GetThemeCommand"), exports);
|
|
13
18
|
tslib_1.__exportStar(require("./ListComponentsCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListFormsCommand"), exports);
|
|
14
20
|
tslib_1.__exportStar(require("./ListThemesCommand"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./PutMetadataFlagCommand"), exports);
|
|
15
22
|
tslib_1.__exportStar(require("./RefreshTokenCommand"), exports);
|
|
16
23
|
tslib_1.__exportStar(require("./UpdateComponentCommand"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./UpdateFormCommand"), exports);
|
|
17
25
|
tslib_1.__exportStar(require("./UpdateThemeCommand"), exports);
|