@aws-sdk/client-amplifyuibuilder 3.348.0 → 3.351.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.
Files changed (41) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/AmplifyUIBuilder.js +6 -0
  3. package/dist-cjs/commands/GetCodegenJobCommand.js +46 -0
  4. package/dist-cjs/commands/ListCodegenJobsCommand.js +46 -0
  5. package/dist-cjs/commands/StartCodegenJobCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +80 -14
  8. package/dist-cjs/pagination/ListCodegenJobsPaginator.js +29 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +242 -1
  11. package/dist-es/AmplifyUIBuilder.js +6 -0
  12. package/dist-es/commands/GetCodegenJobCommand.js +42 -0
  13. package/dist-es/commands/ListCodegenJobsCommand.js +42 -0
  14. package/dist-es/commands/StartCodegenJobCommand.js +42 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +77 -12
  17. package/dist-es/pagination/ListCodegenJobsPaginator.js +25 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +236 -1
  20. package/dist-types/AmplifyUIBuilder.d.ts +21 -0
  21. package/dist-types/AmplifyUIBuilderClient.d.ts +5 -2
  22. package/dist-types/commands/CreateFormCommand.d.ts +1 -1
  23. package/dist-types/commands/GetCodegenJobCommand.d.ts +185 -0
  24. package/dist-types/commands/ListCodegenJobsCommand.d.ts +94 -0
  25. package/dist-types/commands/StartCodegenJobCommand.d.ts +271 -0
  26. package/dist-types/commands/index.d.ts +3 -0
  27. package/dist-types/models/models_0.d.ts +549 -28
  28. package/dist-types/pagination/ListCodegenJobsPaginator.d.ts +7 -0
  29. package/dist-types/pagination/index.d.ts +1 -0
  30. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  31. package/dist-types/ts3.4/AmplifyUIBuilder.d.ts +51 -0
  32. package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +18 -0
  33. package/dist-types/ts3.4/commands/GetCodegenJobCommand.d.ts +38 -0
  34. package/dist-types/ts3.4/commands/ListCodegenJobsCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/StartCodegenJobCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  37. package/dist-types/ts3.4/models/models_0.d.ts +201 -14
  38. package/dist-types/ts3.4/pagination/ListCodegenJobsPaginator.d.ts +11 -0
  39. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  40. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  41. package/package.json +4 -4
@@ -0,0 +1,94 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
5
+ import { ListCodegenJobsRequest, ListCodegenJobsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListCodegenJobsCommand}.
14
+ */
15
+ export interface ListCodegenJobsCommandInput extends ListCodegenJobsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListCodegenJobsCommand}.
21
+ */
22
+ export interface ListCodegenJobsCommandOutput extends ListCodegenJobsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Retrieves a list of code generation jobs for a specified Amplify app and backend environment.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { AmplifyUIBuilderClient, ListCodegenJobsCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
31
+ * // const { AmplifyUIBuilderClient, ListCodegenJobsCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
32
+ * const client = new AmplifyUIBuilderClient(config);
33
+ * const input = { // ListCodegenJobsRequest
34
+ * appId: "STRING_VALUE", // required
35
+ * environmentName: "STRING_VALUE", // required
36
+ * nextToken: "STRING_VALUE",
37
+ * maxResults: Number("int"),
38
+ * };
39
+ * const command = new ListCodegenJobsCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // ListCodegenJobsResponse
42
+ * // entities: [ // CodegenJobSummaryList // required
43
+ * // { // CodegenJobSummary
44
+ * // appId: "STRING_VALUE", // required
45
+ * // environmentName: "STRING_VALUE", // required
46
+ * // id: "STRING_VALUE", // required
47
+ * // createdAt: new Date("TIMESTAMP"),
48
+ * // modifiedAt: new Date("TIMESTAMP"),
49
+ * // },
50
+ * // ],
51
+ * // nextToken: "STRING_VALUE",
52
+ * // };
53
+ *
54
+ * ```
55
+ *
56
+ * @param ListCodegenJobsCommandInput - {@link ListCodegenJobsCommandInput}
57
+ * @returns {@link ListCodegenJobsCommandOutput}
58
+ * @see {@link ListCodegenJobsCommandInput} for command's `input` shape.
59
+ * @see {@link ListCodegenJobsCommandOutput} for command's `response` shape.
60
+ * @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
61
+ *
62
+ * @throws {@link InternalServerException} (server fault)
63
+ * <p>An internal error has occurred. Please retry your request.</p>
64
+ *
65
+ * @throws {@link InvalidParameterException} (client fault)
66
+ * <p>An invalid or out-of-range value was supplied for the input parameter.</p>
67
+ *
68
+ * @throws {@link ThrottlingException} (client fault)
69
+ * <p>The request was denied due to request throttling.</p>
70
+ *
71
+ * @throws {@link AmplifyUIBuilderServiceException}
72
+ * <p>Base exception class for all service exceptions from AmplifyUIBuilder service.</p>
73
+ *
74
+ */
75
+ export declare class ListCodegenJobsCommand extends $Command<ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
76
+ readonly input: ListCodegenJobsCommandInput;
77
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
78
+ /**
79
+ * @public
80
+ */
81
+ constructor(input: ListCodegenJobsCommandInput);
82
+ /**
83
+ * @internal
84
+ */
85
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput>;
86
+ /**
87
+ * @internal
88
+ */
89
+ private serialize;
90
+ /**
91
+ * @internal
92
+ */
93
+ private deserialize;
94
+ }
@@ -0,0 +1,271 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
4
+ import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
5
+ import { StartCodegenJobRequest, StartCodegenJobResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartCodegenJobCommand}.
14
+ */
15
+ export interface StartCodegenJobCommandInput extends StartCodegenJobRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartCodegenJobCommand}.
21
+ */
22
+ export interface StartCodegenJobCommandOutput extends StartCodegenJobResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Starts a code generation job for for a specified Amplify app and backend environment.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { AmplifyUIBuilderClient, StartCodegenJobCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
31
+ * // const { AmplifyUIBuilderClient, StartCodegenJobCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
32
+ * const client = new AmplifyUIBuilderClient(config);
33
+ * const input = { // StartCodegenJobRequest
34
+ * appId: "STRING_VALUE", // required
35
+ * environmentName: "STRING_VALUE", // required
36
+ * clientToken: "STRING_VALUE",
37
+ * codegenJobToCreate: { // StartCodegenJobData
38
+ * renderConfig: { // CodegenJobRenderConfig Union: only one key present
39
+ * react: { // ReactStartCodegenJobData
40
+ * module: "es2020" || "esnext",
41
+ * target: "es2015" || "es2020",
42
+ * script: "jsx" || "tsx" || "js",
43
+ * renderTypeDeclarations: true || false,
44
+ * inlineSourceMap: true || false,
45
+ * },
46
+ * },
47
+ * genericDataSchema: { // CodegenJobGenericDataSchema
48
+ * dataSourceType: "DataStore", // required
49
+ * models: { // CodegenGenericDataModels // required
50
+ * "<keys>": { // CodegenGenericDataModel
51
+ * fields: { // CodegenGenericDataFields // required
52
+ * "<keys>": { // CodegenGenericDataField
53
+ * dataType: "ID" || "String" || "Int" || "Float" || "AWSDate" || "AWSTime" || "AWSDateTime" || "AWSTimestamp" || "AWSEmail" || "AWSURL" || "AWSIPAddress" || "Boolean" || "AWSJSON" || "AWSPhone" || "Enum" || "Model" || "NonModel", // required
54
+ * dataTypeValue: "STRING_VALUE", // required
55
+ * required: true || false, // required
56
+ * readOnly: true || false, // required
57
+ * isArray: true || false, // required
58
+ * relationship: { // CodegenGenericDataRelationshipType
59
+ * type: "HAS_MANY" || "HAS_ONE" || "BELONGS_TO", // required
60
+ * relatedModelName: "STRING_VALUE", // required
61
+ * relatedModelFields: [ // RelatedModelFieldsList
62
+ * "STRING_VALUE",
63
+ * ],
64
+ * canUnlinkAssociatedModel: true || false,
65
+ * relatedJoinFieldName: "STRING_VALUE",
66
+ * relatedJoinTableName: "STRING_VALUE",
67
+ * belongsToFieldOnRelatedModel: "STRING_VALUE",
68
+ * associatedFields: [ // AssociatedFieldsList
69
+ * "STRING_VALUE",
70
+ * ],
71
+ * isHasManyIndex: true || false,
72
+ * },
73
+ * },
74
+ * },
75
+ * isJoinTable: true || false,
76
+ * primaryKeys: [ // CodegenPrimaryKeysList // required
77
+ * "STRING_VALUE",
78
+ * ],
79
+ * },
80
+ * },
81
+ * enums: { // CodegenGenericDataEnums // required
82
+ * "<keys>": { // CodegenGenericDataEnum
83
+ * values: [ // CodegenGenericDataEnumValuesList // required
84
+ * "STRING_VALUE",
85
+ * ],
86
+ * },
87
+ * },
88
+ * nonModels: { // CodegenGenericDataNonModels // required
89
+ * "<keys>": { // CodegenGenericDataNonModel
90
+ * fields: { // CodegenGenericDataNonModelFields // required
91
+ * "<keys>": {
92
+ * dataType: "ID" || "String" || "Int" || "Float" || "AWSDate" || "AWSTime" || "AWSDateTime" || "AWSTimestamp" || "AWSEmail" || "AWSURL" || "AWSIPAddress" || "Boolean" || "AWSJSON" || "AWSPhone" || "Enum" || "Model" || "NonModel", // required
93
+ * dataTypeValue: "STRING_VALUE", // required
94
+ * required: true || false, // required
95
+ * readOnly: true || false, // required
96
+ * isArray: true || false, // required
97
+ * relationship: {
98
+ * type: "HAS_MANY" || "HAS_ONE" || "BELONGS_TO", // required
99
+ * relatedModelName: "STRING_VALUE", // required
100
+ * relatedModelFields: [
101
+ * "STRING_VALUE",
102
+ * ],
103
+ * canUnlinkAssociatedModel: true || false,
104
+ * relatedJoinFieldName: "STRING_VALUE",
105
+ * relatedJoinTableName: "STRING_VALUE",
106
+ * belongsToFieldOnRelatedModel: "STRING_VALUE",
107
+ * associatedFields: [
108
+ * "STRING_VALUE",
109
+ * ],
110
+ * isHasManyIndex: true || false,
111
+ * },
112
+ * },
113
+ * },
114
+ * },
115
+ * },
116
+ * },
117
+ * autoGenerateForms: true || false,
118
+ * features: { // CodegenFeatureFlags
119
+ * isRelationshipSupported: true || false,
120
+ * isNonModelSupported: true || false,
121
+ * },
122
+ * tags: { // Tags
123
+ * "<keys>": "STRING_VALUE",
124
+ * },
125
+ * },
126
+ * };
127
+ * const command = new StartCodegenJobCommand(input);
128
+ * const response = await client.send(command);
129
+ * // { // StartCodegenJobResponse
130
+ * // entity: { // CodegenJob
131
+ * // id: "STRING_VALUE", // required
132
+ * // appId: "STRING_VALUE", // required
133
+ * // environmentName: "STRING_VALUE", // required
134
+ * // renderConfig: { // CodegenJobRenderConfig Union: only one key present
135
+ * // react: { // ReactStartCodegenJobData
136
+ * // module: "es2020" || "esnext",
137
+ * // target: "es2015" || "es2020",
138
+ * // script: "jsx" || "tsx" || "js",
139
+ * // renderTypeDeclarations: true || false,
140
+ * // inlineSourceMap: true || false,
141
+ * // },
142
+ * // },
143
+ * // genericDataSchema: { // CodegenJobGenericDataSchema
144
+ * // dataSourceType: "DataStore", // required
145
+ * // models: { // CodegenGenericDataModels // required
146
+ * // "<keys>": { // CodegenGenericDataModel
147
+ * // fields: { // CodegenGenericDataFields // required
148
+ * // "<keys>": { // CodegenGenericDataField
149
+ * // dataType: "ID" || "String" || "Int" || "Float" || "AWSDate" || "AWSTime" || "AWSDateTime" || "AWSTimestamp" || "AWSEmail" || "AWSURL" || "AWSIPAddress" || "Boolean" || "AWSJSON" || "AWSPhone" || "Enum" || "Model" || "NonModel", // required
150
+ * // dataTypeValue: "STRING_VALUE", // required
151
+ * // required: true || false, // required
152
+ * // readOnly: true || false, // required
153
+ * // isArray: true || false, // required
154
+ * // relationship: { // CodegenGenericDataRelationshipType
155
+ * // type: "HAS_MANY" || "HAS_ONE" || "BELONGS_TO", // required
156
+ * // relatedModelName: "STRING_VALUE", // required
157
+ * // relatedModelFields: [ // RelatedModelFieldsList
158
+ * // "STRING_VALUE",
159
+ * // ],
160
+ * // canUnlinkAssociatedModel: true || false,
161
+ * // relatedJoinFieldName: "STRING_VALUE",
162
+ * // relatedJoinTableName: "STRING_VALUE",
163
+ * // belongsToFieldOnRelatedModel: "STRING_VALUE",
164
+ * // associatedFields: [ // AssociatedFieldsList
165
+ * // "STRING_VALUE",
166
+ * // ],
167
+ * // isHasManyIndex: true || false,
168
+ * // },
169
+ * // },
170
+ * // },
171
+ * // isJoinTable: true || false,
172
+ * // primaryKeys: [ // CodegenPrimaryKeysList // required
173
+ * // "STRING_VALUE",
174
+ * // ],
175
+ * // },
176
+ * // },
177
+ * // enums: { // CodegenGenericDataEnums // required
178
+ * // "<keys>": { // CodegenGenericDataEnum
179
+ * // values: [ // CodegenGenericDataEnumValuesList // required
180
+ * // "STRING_VALUE",
181
+ * // ],
182
+ * // },
183
+ * // },
184
+ * // nonModels: { // CodegenGenericDataNonModels // required
185
+ * // "<keys>": { // CodegenGenericDataNonModel
186
+ * // fields: { // CodegenGenericDataNonModelFields // required
187
+ * // "<keys>": {
188
+ * // dataType: "ID" || "String" || "Int" || "Float" || "AWSDate" || "AWSTime" || "AWSDateTime" || "AWSTimestamp" || "AWSEmail" || "AWSURL" || "AWSIPAddress" || "Boolean" || "AWSJSON" || "AWSPhone" || "Enum" || "Model" || "NonModel", // required
189
+ * // dataTypeValue: "STRING_VALUE", // required
190
+ * // required: true || false, // required
191
+ * // readOnly: true || false, // required
192
+ * // isArray: true || false, // required
193
+ * // relationship: {
194
+ * // type: "HAS_MANY" || "HAS_ONE" || "BELONGS_TO", // required
195
+ * // relatedModelName: "STRING_VALUE", // required
196
+ * // relatedModelFields: [
197
+ * // "STRING_VALUE",
198
+ * // ],
199
+ * // canUnlinkAssociatedModel: true || false,
200
+ * // relatedJoinFieldName: "STRING_VALUE",
201
+ * // relatedJoinTableName: "STRING_VALUE",
202
+ * // belongsToFieldOnRelatedModel: "STRING_VALUE",
203
+ * // associatedFields: [
204
+ * // "STRING_VALUE",
205
+ * // ],
206
+ * // isHasManyIndex: true || false,
207
+ * // },
208
+ * // },
209
+ * // },
210
+ * // },
211
+ * // },
212
+ * // },
213
+ * // autoGenerateForms: true || false,
214
+ * // features: { // CodegenFeatureFlags
215
+ * // isRelationshipSupported: true || false,
216
+ * // isNonModelSupported: true || false,
217
+ * // },
218
+ * // status: "in_progress" || "failed" || "succeeded",
219
+ * // statusMessage: "STRING_VALUE",
220
+ * // asset: { // CodegenJobAsset
221
+ * // downloadUrl: "STRING_VALUE",
222
+ * // },
223
+ * // tags: { // Tags
224
+ * // "<keys>": "STRING_VALUE",
225
+ * // },
226
+ * // createdAt: new Date("TIMESTAMP"),
227
+ * // modifiedAt: new Date("TIMESTAMP"),
228
+ * // },
229
+ * // };
230
+ *
231
+ * ```
232
+ *
233
+ * @param StartCodegenJobCommandInput - {@link StartCodegenJobCommandInput}
234
+ * @returns {@link StartCodegenJobCommandOutput}
235
+ * @see {@link StartCodegenJobCommandInput} for command's `input` shape.
236
+ * @see {@link StartCodegenJobCommandOutput} for command's `response` shape.
237
+ * @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
238
+ *
239
+ * @throws {@link InternalServerException} (server fault)
240
+ * <p>An internal error has occurred. Please retry your request.</p>
241
+ *
242
+ * @throws {@link InvalidParameterException} (client fault)
243
+ * <p>An invalid or out-of-range value was supplied for the input parameter.</p>
244
+ *
245
+ * @throws {@link ThrottlingException} (client fault)
246
+ * <p>The request was denied due to request throttling.</p>
247
+ *
248
+ * @throws {@link AmplifyUIBuilderServiceException}
249
+ * <p>Base exception class for all service exceptions from AmplifyUIBuilder service.</p>
250
+ *
251
+ */
252
+ export declare class StartCodegenJobCommand extends $Command<StartCodegenJobCommandInput, StartCodegenJobCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
253
+ readonly input: StartCodegenJobCommandInput;
254
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
255
+ /**
256
+ * @public
257
+ */
258
+ constructor(input: StartCodegenJobCommandInput);
259
+ /**
260
+ * @internal
261
+ */
262
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartCodegenJobCommandInput, StartCodegenJobCommandOutput>;
263
+ /**
264
+ * @internal
265
+ */
266
+ private serialize;
267
+ /**
268
+ * @internal
269
+ */
270
+ private deserialize;
271
+ }
@@ -8,15 +8,18 @@ export * from "./ExchangeCodeForTokenCommand";
8
8
  export * from "./ExportComponentsCommand";
9
9
  export * from "./ExportFormsCommand";
10
10
  export * from "./ExportThemesCommand";
11
+ export * from "./GetCodegenJobCommand";
11
12
  export * from "./GetComponentCommand";
12
13
  export * from "./GetFormCommand";
13
14
  export * from "./GetMetadataCommand";
14
15
  export * from "./GetThemeCommand";
16
+ export * from "./ListCodegenJobsCommand";
15
17
  export * from "./ListComponentsCommand";
16
18
  export * from "./ListFormsCommand";
17
19
  export * from "./ListThemesCommand";
18
20
  export * from "./PutMetadataFlagCommand";
19
21
  export * from "./RefreshTokenCommand";
22
+ export * from "./StartCodegenJobCommand";
20
23
  export * from "./UpdateComponentCommand";
21
24
  export * from "./UpdateFormCommand";
22
25
  export * from "./UpdateThemeCommand";