@aws-sdk/client-amplifyuibuilder 3.350.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.
- package/README.md +24 -0
- package/dist-cjs/AmplifyUIBuilder.js +6 -0
- package/dist-cjs/commands/GetCodegenJobCommand.js +46 -0
- package/dist-cjs/commands/ListCodegenJobsCommand.js +46 -0
- package/dist-cjs/commands/StartCodegenJobCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +80 -14
- package/dist-cjs/pagination/ListCodegenJobsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +242 -1
- package/dist-es/AmplifyUIBuilder.js +6 -0
- package/dist-es/commands/GetCodegenJobCommand.js +42 -0
- package/dist-es/commands/ListCodegenJobsCommand.js +42 -0
- package/dist-es/commands/StartCodegenJobCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +77 -12
- package/dist-es/pagination/ListCodegenJobsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +236 -1
- package/dist-types/AmplifyUIBuilder.d.ts +21 -0
- package/dist-types/AmplifyUIBuilderClient.d.ts +5 -2
- package/dist-types/commands/CreateFormCommand.d.ts +1 -1
- package/dist-types/commands/GetCodegenJobCommand.d.ts +185 -0
- package/dist-types/commands/ListCodegenJobsCommand.d.ts +94 -0
- package/dist-types/commands/StartCodegenJobCommand.d.ts +271 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +549 -28
- package/dist-types/pagination/ListCodegenJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/AmplifyUIBuilder.d.ts +51 -0
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetCodegenJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCodegenJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartCodegenJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +201 -14
- package/dist-types/ts3.4/pagination/ListCodegenJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -32,37 +32,395 @@ export interface FormBindingElement {
|
|
|
32
32
|
/**
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export interface GetCodegenJobRequest {
|
|
36
|
+
/**
|
|
37
|
+
* <p>The unique ID of the Amplify app associated with the code generation job.</p>
|
|
38
|
+
*/
|
|
39
|
+
appId: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* <p>The name of the backend environment that is a part of the Amplify app associated with the code generation job.</p>
|
|
42
|
+
*/
|
|
43
|
+
environmentName: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* <p>The unique ID of the code generation job.</p>
|
|
46
|
+
*/
|
|
47
|
+
id: string | undefined;
|
|
48
|
+
}
|
|
36
49
|
/**
|
|
37
50
|
* @public
|
|
38
|
-
* <p>Describes
|
|
51
|
+
* <p>Describes an asset for a code generation job.</p>
|
|
39
52
|
*/
|
|
40
|
-
export interface
|
|
53
|
+
export interface CodegenJobAsset {
|
|
41
54
|
/**
|
|
42
|
-
* <p>The
|
|
55
|
+
* <p>The URL to use to access the asset.</p>
|
|
43
56
|
*/
|
|
44
|
-
|
|
57
|
+
downloadUrl?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* @public
|
|
61
|
+
* <p>Describes the feature flags that you can specify for a code generation job.</p>
|
|
62
|
+
*/
|
|
63
|
+
export interface CodegenFeatureFlags {
|
|
45
64
|
/**
|
|
46
|
-
* <p>
|
|
65
|
+
* <p>Specifes whether a code generation job supports data relationships.</p>
|
|
47
66
|
*/
|
|
48
|
-
|
|
67
|
+
isRelationshipSupported?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Specifies whether a code generation job supports non models.</p>
|
|
70
|
+
*/
|
|
71
|
+
isNonModelSupported?: boolean;
|
|
49
72
|
}
|
|
50
73
|
/**
|
|
51
74
|
* @public
|
|
52
|
-
*
|
|
75
|
+
* @enum
|
|
53
76
|
*/
|
|
54
|
-
export
|
|
77
|
+
export declare const CodegenJobGenericDataSourceType: {
|
|
78
|
+
readonly DATA_STORE: "DataStore";
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export type CodegenJobGenericDataSourceType = (typeof CodegenJobGenericDataSourceType)[keyof typeof CodegenJobGenericDataSourceType];
|
|
84
|
+
/**
|
|
85
|
+
* @public
|
|
86
|
+
* <p>Describes the enums in a generic data schema.</p>
|
|
87
|
+
*/
|
|
88
|
+
export interface CodegenGenericDataEnum {
|
|
55
89
|
/**
|
|
56
|
-
* <p>The
|
|
57
|
-
* <code>tags</code> as a valid property for <code>variantValues</code>.</p>
|
|
90
|
+
* <p>The list of enum values in the generic data schema.</p>
|
|
58
91
|
*/
|
|
59
|
-
|
|
92
|
+
values: string[] | undefined;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @public
|
|
96
|
+
* @enum
|
|
97
|
+
*/
|
|
98
|
+
export declare const CodegenGenericDataFieldDataType: {
|
|
99
|
+
readonly AWS_DATE: "AWSDate";
|
|
100
|
+
readonly AWS_DATE_TIME: "AWSDateTime";
|
|
101
|
+
readonly AWS_EMAIL: "AWSEmail";
|
|
102
|
+
readonly AWS_IP_ADDRESS: "AWSIPAddress";
|
|
103
|
+
readonly AWS_JSON: "AWSJSON";
|
|
104
|
+
readonly AWS_PHONE: "AWSPhone";
|
|
105
|
+
readonly AWS_TIME: "AWSTime";
|
|
106
|
+
readonly AWS_TIMESTAMP: "AWSTimestamp";
|
|
107
|
+
readonly AWS_URL: "AWSURL";
|
|
108
|
+
readonly BOOLEAN: "Boolean";
|
|
109
|
+
readonly ENUM: "Enum";
|
|
110
|
+
readonly FLOAT: "Float";
|
|
111
|
+
readonly ID: "ID";
|
|
112
|
+
readonly INT: "Int";
|
|
113
|
+
readonly MODEL: "Model";
|
|
114
|
+
readonly NON_MODEL: "NonModel";
|
|
115
|
+
readonly STRING: "String";
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
export type CodegenGenericDataFieldDataType = (typeof CodegenGenericDataFieldDataType)[keyof typeof CodegenGenericDataFieldDataType];
|
|
121
|
+
/**
|
|
122
|
+
* @public
|
|
123
|
+
* @enum
|
|
124
|
+
*/
|
|
125
|
+
export declare const GenericDataRelationshipType: {
|
|
126
|
+
readonly BELONGS_TO: "BELONGS_TO";
|
|
127
|
+
readonly HAS_MANY: "HAS_MANY";
|
|
128
|
+
readonly HAS_ONE: "HAS_ONE";
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export type GenericDataRelationshipType = (typeof GenericDataRelationshipType)[keyof typeof GenericDataRelationshipType];
|
|
134
|
+
/**
|
|
135
|
+
* @public
|
|
136
|
+
* <p>Describes the relationship between generic data models.</p>
|
|
137
|
+
*/
|
|
138
|
+
export interface CodegenGenericDataRelationshipType {
|
|
60
139
|
/**
|
|
61
|
-
* <p>The
|
|
62
|
-
* of the component. You can't specify <code>tags</code> as a valid property for
|
|
63
|
-
* <code>overrides</code>.</p>
|
|
140
|
+
* <p>The data relationship type.</p>
|
|
64
141
|
*/
|
|
65
|
-
|
|
142
|
+
type: GenericDataRelationshipType | string | undefined;
|
|
143
|
+
/**
|
|
144
|
+
* <p>The name of the related model in the data relationship.</p>
|
|
145
|
+
*/
|
|
146
|
+
relatedModelName: string | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* <p>The related model fields in the data relationship.</p>
|
|
149
|
+
*/
|
|
150
|
+
relatedModelFields?: string[];
|
|
151
|
+
/**
|
|
152
|
+
* <p>Specifies whether the relationship can unlink the associated model.</p>
|
|
153
|
+
*/
|
|
154
|
+
canUnlinkAssociatedModel?: boolean;
|
|
155
|
+
/**
|
|
156
|
+
* <p>The name of the related join field in the data relationship.</p>
|
|
157
|
+
*/
|
|
158
|
+
relatedJoinFieldName?: string;
|
|
159
|
+
/**
|
|
160
|
+
* <p>The name of the related join table in the data relationship.</p>
|
|
161
|
+
*/
|
|
162
|
+
relatedJoinTableName?: string;
|
|
163
|
+
/**
|
|
164
|
+
* <p>The value of the <code>belongsTo</code> field on the related data model. </p>
|
|
165
|
+
*/
|
|
166
|
+
belongsToFieldOnRelatedModel?: string;
|
|
167
|
+
/**
|
|
168
|
+
* <p>The associated fields of the data relationship.</p>
|
|
169
|
+
*/
|
|
170
|
+
associatedFields?: string[];
|
|
171
|
+
/**
|
|
172
|
+
* <p>Specifies whether the <code>@index</code> directive is supported for a <code>hasMany</code> data relationship.</p>
|
|
173
|
+
*/
|
|
174
|
+
isHasManyIndex?: boolean;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @public
|
|
178
|
+
* <p>Describes a field in a generic data schema.</p>
|
|
179
|
+
*/
|
|
180
|
+
export interface CodegenGenericDataField {
|
|
181
|
+
/**
|
|
182
|
+
* <p>The data type for the generic data field.</p>
|
|
183
|
+
*/
|
|
184
|
+
dataType: CodegenGenericDataFieldDataType | string | undefined;
|
|
185
|
+
/**
|
|
186
|
+
* <p>The value of the data type for the generic data field.</p>
|
|
187
|
+
*/
|
|
188
|
+
dataTypeValue: string | undefined;
|
|
189
|
+
/**
|
|
190
|
+
* <p>Specifies whether the generic data field is required.</p>
|
|
191
|
+
*/
|
|
192
|
+
required: boolean | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* <p>Specifies whether the generic data field is read-only.</p>
|
|
195
|
+
*/
|
|
196
|
+
readOnly: boolean | undefined;
|
|
197
|
+
/**
|
|
198
|
+
* <p>Specifies whether the generic data field is an array.</p>
|
|
199
|
+
*/
|
|
200
|
+
isArray: boolean | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* <p>The relationship of the generic data schema.</p>
|
|
203
|
+
*/
|
|
204
|
+
relationship?: CodegenGenericDataRelationshipType;
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* @public
|
|
208
|
+
* <p>Describes a model in a generic data schema.</p>
|
|
209
|
+
*/
|
|
210
|
+
export interface CodegenGenericDataModel {
|
|
211
|
+
/**
|
|
212
|
+
* <p>The fields in the generic data model.</p>
|
|
213
|
+
*/
|
|
214
|
+
fields: Record<string, CodegenGenericDataField> | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* <p>Specifies whether the generic data model is a join table.</p>
|
|
217
|
+
*/
|
|
218
|
+
isJoinTable?: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* <p>The primary keys of the generic data model.</p>
|
|
221
|
+
*/
|
|
222
|
+
primaryKeys: string[] | undefined;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* @public
|
|
226
|
+
* <p>Describes a non-model in a generic data schema.</p>
|
|
227
|
+
*/
|
|
228
|
+
export interface CodegenGenericDataNonModel {
|
|
229
|
+
/**
|
|
230
|
+
* <p>The fields in a generic data schema non model.</p>
|
|
231
|
+
*/
|
|
232
|
+
fields: Record<string, CodegenGenericDataField> | undefined;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* @public
|
|
236
|
+
* <p>Describes the data schema for a code generation job.</p>
|
|
237
|
+
*/
|
|
238
|
+
export interface CodegenJobGenericDataSchema {
|
|
239
|
+
/**
|
|
240
|
+
* <p>The type of the data source for the schema. Currently, the only valid value is an Amplify <code>DataStore</code>.</p>
|
|
241
|
+
*/
|
|
242
|
+
dataSourceType: CodegenJobGenericDataSourceType | string | undefined;
|
|
243
|
+
/**
|
|
244
|
+
* <p>The name of a <code>CodegenGenericDataModel</code>.</p>
|
|
245
|
+
*/
|
|
246
|
+
models: Record<string, CodegenGenericDataModel> | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* <p>The name of a <code>CodegenGenericDataEnum</code>.</p>
|
|
249
|
+
*/
|
|
250
|
+
enums: Record<string, CodegenGenericDataEnum> | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* <p>The name of a <code>CodegenGenericDataNonModel</code>.</p>
|
|
253
|
+
*/
|
|
254
|
+
nonModels: Record<string, CodegenGenericDataNonModel> | undefined;
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* @public
|
|
258
|
+
* @enum
|
|
259
|
+
*/
|
|
260
|
+
export declare const JSModule: {
|
|
261
|
+
readonly ES2020: "es2020";
|
|
262
|
+
readonly ESNEXT: "esnext";
|
|
263
|
+
};
|
|
264
|
+
/**
|
|
265
|
+
* @public
|
|
266
|
+
*/
|
|
267
|
+
export type JSModule = (typeof JSModule)[keyof typeof JSModule];
|
|
268
|
+
/**
|
|
269
|
+
* @public
|
|
270
|
+
* @enum
|
|
271
|
+
*/
|
|
272
|
+
export declare const JSScript: {
|
|
273
|
+
readonly JS: "js";
|
|
274
|
+
readonly JSX: "jsx";
|
|
275
|
+
readonly TSX: "tsx";
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* @public
|
|
279
|
+
*/
|
|
280
|
+
export type JSScript = (typeof JSScript)[keyof typeof JSScript];
|
|
281
|
+
/**
|
|
282
|
+
* @public
|
|
283
|
+
* @enum
|
|
284
|
+
*/
|
|
285
|
+
export declare const JSTarget: {
|
|
286
|
+
readonly ES2015: "es2015";
|
|
287
|
+
readonly ES2020: "es2020";
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* @public
|
|
291
|
+
*/
|
|
292
|
+
export type JSTarget = (typeof JSTarget)[keyof typeof JSTarget];
|
|
293
|
+
/**
|
|
294
|
+
* @public
|
|
295
|
+
* <p>Describes the code generation job configuration for a React project.</p>
|
|
296
|
+
*/
|
|
297
|
+
export interface ReactStartCodegenJobData {
|
|
298
|
+
/**
|
|
299
|
+
* <p>The JavaScript module type.</p>
|
|
300
|
+
*/
|
|
301
|
+
module?: JSModule | string;
|
|
302
|
+
/**
|
|
303
|
+
* <p>The ECMAScript specification to use.</p>
|
|
304
|
+
*/
|
|
305
|
+
target?: JSTarget | string;
|
|
306
|
+
/**
|
|
307
|
+
* <p>The file type to use for a JavaScript project.</p>
|
|
308
|
+
*/
|
|
309
|
+
script?: JSScript | string;
|
|
310
|
+
/**
|
|
311
|
+
* <p>Specifies whether the code generation job should render type declaration files.</p>
|
|
312
|
+
*/
|
|
313
|
+
renderTypeDeclarations?: boolean;
|
|
314
|
+
/**
|
|
315
|
+
* <p>Specifies whether the code generation job should render inline source maps.</p>
|
|
316
|
+
*/
|
|
317
|
+
inlineSourceMap?: boolean;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @public
|
|
321
|
+
* <p>Describes the configuration information for rendering the UI component associated the code generation job.</p>
|
|
322
|
+
*/
|
|
323
|
+
export type CodegenJobRenderConfig = CodegenJobRenderConfig.ReactMember | CodegenJobRenderConfig.$UnknownMember;
|
|
324
|
+
/**
|
|
325
|
+
* @public
|
|
326
|
+
*/
|
|
327
|
+
export declare namespace CodegenJobRenderConfig {
|
|
328
|
+
/**
|
|
329
|
+
* <p>The name of the <code>ReactStartCodegenJobData</code> object.</p>
|
|
330
|
+
*/
|
|
331
|
+
interface ReactMember {
|
|
332
|
+
react: ReactStartCodegenJobData;
|
|
333
|
+
$unknown?: never;
|
|
334
|
+
}
|
|
335
|
+
interface $UnknownMember {
|
|
336
|
+
react?: never;
|
|
337
|
+
$unknown: [string, any];
|
|
338
|
+
}
|
|
339
|
+
interface Visitor<T> {
|
|
340
|
+
react: (value: ReactStartCodegenJobData) => T;
|
|
341
|
+
_: (name: string, value: any) => T;
|
|
342
|
+
}
|
|
343
|
+
const visit: <T>(value: CodegenJobRenderConfig, visitor: Visitor<T>) => T;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* @public
|
|
347
|
+
* @enum
|
|
348
|
+
*/
|
|
349
|
+
export declare const CodegenJobStatus: {
|
|
350
|
+
readonly FAILED: "failed";
|
|
351
|
+
readonly IN_PROGRESS: "in_progress";
|
|
352
|
+
readonly SUCCEEDED: "succeeded";
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* @public
|
|
356
|
+
*/
|
|
357
|
+
export type CodegenJobStatus = (typeof CodegenJobStatus)[keyof typeof CodegenJobStatus];
|
|
358
|
+
/**
|
|
359
|
+
* @public
|
|
360
|
+
* <p>Describes the configuration for a code generation job that is associated with an Amplify app.</p>
|
|
361
|
+
*/
|
|
362
|
+
export interface CodegenJob {
|
|
363
|
+
/**
|
|
364
|
+
* <p>The unique ID for the code generation job.</p>
|
|
365
|
+
*/
|
|
366
|
+
id: string | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* <p>The ID of the Amplify app associated with the code generation job.</p>
|
|
369
|
+
*/
|
|
370
|
+
appId: string | undefined;
|
|
371
|
+
/**
|
|
372
|
+
* <p>The name of the backend environment associated with the code generation job.</p>
|
|
373
|
+
*/
|
|
374
|
+
environmentName: string | undefined;
|
|
375
|
+
/**
|
|
376
|
+
* <p>Describes the configuration information for rendering the UI component associated the code generation job.</p>
|
|
377
|
+
*/
|
|
378
|
+
renderConfig?: CodegenJobRenderConfig;
|
|
379
|
+
/**
|
|
380
|
+
* <p>Describes the data schema for a code generation job.</p>
|
|
381
|
+
*/
|
|
382
|
+
genericDataSchema?: CodegenJobGenericDataSchema;
|
|
383
|
+
/**
|
|
384
|
+
* <p>Specifies whether to autogenerate forms in the code generation job.</p>
|
|
385
|
+
*/
|
|
386
|
+
autoGenerateForms?: boolean;
|
|
387
|
+
/**
|
|
388
|
+
* <p>Describes the feature flags that you can specify for a code generation job.</p>
|
|
389
|
+
*/
|
|
390
|
+
features?: CodegenFeatureFlags;
|
|
391
|
+
/**
|
|
392
|
+
* <p>The status of the code generation job.</p>
|
|
393
|
+
*/
|
|
394
|
+
status?: CodegenJobStatus | string;
|
|
395
|
+
/**
|
|
396
|
+
* <p>The customized status message for the code generation job.</p>
|
|
397
|
+
*/
|
|
398
|
+
statusMessage?: string;
|
|
399
|
+
/**
|
|
400
|
+
* <p>The <code>CodegenJobAsset</code> to use for the code generation job.</p>
|
|
401
|
+
*/
|
|
402
|
+
asset?: CodegenJobAsset;
|
|
403
|
+
/**
|
|
404
|
+
* <p>One or more key-value pairs to use when tagging the code generation job.</p>
|
|
405
|
+
*/
|
|
406
|
+
tags?: Record<string, string>;
|
|
407
|
+
/**
|
|
408
|
+
* <p>The time that the code generation job was created.</p>
|
|
409
|
+
*/
|
|
410
|
+
createdAt?: Date;
|
|
411
|
+
/**
|
|
412
|
+
* <p>The time that the code generation job was modified.</p>
|
|
413
|
+
*/
|
|
414
|
+
modifiedAt?: Date;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @public
|
|
418
|
+
*/
|
|
419
|
+
export interface GetCodegenJobResponse {
|
|
420
|
+
/**
|
|
421
|
+
* <p>The configuration settings for the code generation job.</p>
|
|
422
|
+
*/
|
|
423
|
+
job?: CodegenJob;
|
|
66
424
|
}
|
|
67
425
|
/**
|
|
68
426
|
* @public
|
|
@@ -88,6 +446,181 @@ export declare class InvalidParameterException extends __BaseException {
|
|
|
88
446
|
*/
|
|
89
447
|
constructor(opts: __ExceptionOptionType<InvalidParameterException, __BaseException>);
|
|
90
448
|
}
|
|
449
|
+
/**
|
|
450
|
+
* @public
|
|
451
|
+
* <p>The requested resource does not exist, or access was denied.</p>
|
|
452
|
+
*/
|
|
453
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
454
|
+
readonly name: "ResourceNotFoundException";
|
|
455
|
+
readonly $fault: "client";
|
|
456
|
+
/**
|
|
457
|
+
* @internal
|
|
458
|
+
*/
|
|
459
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* @public
|
|
463
|
+
* <p>The request was denied due to request throttling.</p>
|
|
464
|
+
*/
|
|
465
|
+
export declare class ThrottlingException extends __BaseException {
|
|
466
|
+
readonly name: "ThrottlingException";
|
|
467
|
+
readonly $fault: "client";
|
|
468
|
+
/**
|
|
469
|
+
* @internal
|
|
470
|
+
*/
|
|
471
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* @public
|
|
475
|
+
*/
|
|
476
|
+
export interface ListCodegenJobsRequest {
|
|
477
|
+
/**
|
|
478
|
+
* <p>The unique ID for the Amplify app.</p>
|
|
479
|
+
*/
|
|
480
|
+
appId: string | undefined;
|
|
481
|
+
/**
|
|
482
|
+
* <p>The name of the backend environment that is a part of the Amplify app.</p>
|
|
483
|
+
*/
|
|
484
|
+
environmentName: string | undefined;
|
|
485
|
+
/**
|
|
486
|
+
* <p>The token to request the next page of results.</p>
|
|
487
|
+
*/
|
|
488
|
+
nextToken?: string;
|
|
489
|
+
/**
|
|
490
|
+
* <p>The maximum number of jobs to retrieve.</p>
|
|
491
|
+
*/
|
|
492
|
+
maxResults?: number;
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @public
|
|
496
|
+
* <p>A summary of the basic information about the code generation job.</p>
|
|
497
|
+
*/
|
|
498
|
+
export interface CodegenJobSummary {
|
|
499
|
+
/**
|
|
500
|
+
* <p>The unique ID of the Amplify app associated with the code generation job.</p>
|
|
501
|
+
*/
|
|
502
|
+
appId: string | undefined;
|
|
503
|
+
/**
|
|
504
|
+
* <p>The name of the backend environment associated with the code generation job.</p>
|
|
505
|
+
*/
|
|
506
|
+
environmentName: string | undefined;
|
|
507
|
+
/**
|
|
508
|
+
* <p>The unique ID for the code generation job summary.</p>
|
|
509
|
+
*/
|
|
510
|
+
id: string | undefined;
|
|
511
|
+
/**
|
|
512
|
+
* <p>The time that the code generation job summary was created.</p>
|
|
513
|
+
*/
|
|
514
|
+
createdAt?: Date;
|
|
515
|
+
/**
|
|
516
|
+
* <p>The time that the code generation job summary was modified.</p>
|
|
517
|
+
*/
|
|
518
|
+
modifiedAt?: Date;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* @public
|
|
522
|
+
*/
|
|
523
|
+
export interface ListCodegenJobsResponse {
|
|
524
|
+
/**
|
|
525
|
+
* <p>The list of code generation jobs for the Amplify app.</p>
|
|
526
|
+
*/
|
|
527
|
+
entities: CodegenJobSummary[] | undefined;
|
|
528
|
+
/**
|
|
529
|
+
* <p>The pagination token that's included if more results are available.</p>
|
|
530
|
+
*/
|
|
531
|
+
nextToken?: string;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* @public
|
|
535
|
+
* <p>The code generation job resource configuration.</p>
|
|
536
|
+
*/
|
|
537
|
+
export interface StartCodegenJobData {
|
|
538
|
+
/**
|
|
539
|
+
* <p>The code generation configuration for the codegen job.</p>
|
|
540
|
+
*/
|
|
541
|
+
renderConfig: CodegenJobRenderConfig | undefined;
|
|
542
|
+
/**
|
|
543
|
+
* <p>The data schema to use for a code generation job.</p>
|
|
544
|
+
*/
|
|
545
|
+
genericDataSchema?: CodegenJobGenericDataSchema;
|
|
546
|
+
/**
|
|
547
|
+
* <p>Specifies whether to autogenerate forms in the code generation job.</p>
|
|
548
|
+
*/
|
|
549
|
+
autoGenerateForms?: boolean;
|
|
550
|
+
/**
|
|
551
|
+
* <p>The feature flags for a code generation job.</p>
|
|
552
|
+
*/
|
|
553
|
+
features?: CodegenFeatureFlags;
|
|
554
|
+
/**
|
|
555
|
+
* <p>One or more key-value pairs to use when tagging the code generation job data.</p>
|
|
556
|
+
*/
|
|
557
|
+
tags?: Record<string, string>;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* @public
|
|
561
|
+
*/
|
|
562
|
+
export interface StartCodegenJobRequest {
|
|
563
|
+
/**
|
|
564
|
+
* <p>The unique ID for the Amplify app.</p>
|
|
565
|
+
*/
|
|
566
|
+
appId: string | undefined;
|
|
567
|
+
/**
|
|
568
|
+
* <p>The name of the backend environment that is a part of the Amplify app.</p>
|
|
569
|
+
*/
|
|
570
|
+
environmentName: string | undefined;
|
|
571
|
+
/**
|
|
572
|
+
* <p>The idempotency token used to ensure that the code generation job request completes only once.</p>
|
|
573
|
+
*/
|
|
574
|
+
clientToken?: string;
|
|
575
|
+
/**
|
|
576
|
+
* <p>The code generation job resource configuration.</p>
|
|
577
|
+
*/
|
|
578
|
+
codegenJobToCreate: StartCodegenJobData | undefined;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* @public
|
|
582
|
+
*/
|
|
583
|
+
export interface StartCodegenJobResponse {
|
|
584
|
+
/**
|
|
585
|
+
* <p>The code generation job for a UI component that is associated with an Amplify app.</p>
|
|
586
|
+
*/
|
|
587
|
+
entity?: CodegenJob;
|
|
588
|
+
}
|
|
589
|
+
/**
|
|
590
|
+
* @public
|
|
591
|
+
*/
|
|
592
|
+
export type SortDirection = "ASC" | "DESC";
|
|
593
|
+
/**
|
|
594
|
+
* @public
|
|
595
|
+
* <p>Describes how to sort the data that you bind to a component.</p>
|
|
596
|
+
*/
|
|
597
|
+
export interface SortProperty {
|
|
598
|
+
/**
|
|
599
|
+
* <p>The field to perform the sort on.</p>
|
|
600
|
+
*/
|
|
601
|
+
field: string | undefined;
|
|
602
|
+
/**
|
|
603
|
+
* <p>The direction of the sort, either ascending or descending.</p>
|
|
604
|
+
*/
|
|
605
|
+
direction: SortDirection | string | undefined;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* @public
|
|
609
|
+
* <p>Describes the style configuration of a unique variation of a main component.</p>
|
|
610
|
+
*/
|
|
611
|
+
export interface ComponentVariant {
|
|
612
|
+
/**
|
|
613
|
+
* <p>The combination of variants that comprise this variant. You can't specify
|
|
614
|
+
* <code>tags</code> as a valid property for <code>variantValues</code>.</p>
|
|
615
|
+
*/
|
|
616
|
+
variantValues?: Record<string, string>;
|
|
617
|
+
/**
|
|
618
|
+
* <p>The properties of the component variant that can be overriden when customizing an instance
|
|
619
|
+
* of the component. You can't specify <code>tags</code> as a valid property for
|
|
620
|
+
* <code>overrides</code>.</p>
|
|
621
|
+
*/
|
|
622
|
+
overrides?: Record<string, Record<string, string>>;
|
|
623
|
+
}
|
|
91
624
|
/**
|
|
92
625
|
* @public
|
|
93
626
|
* <p>The resource specified in the request conflicts with an existing resource.</p>
|
|
@@ -132,18 +665,6 @@ export interface DeleteComponentRequest {
|
|
|
132
665
|
*/
|
|
133
666
|
id: string | undefined;
|
|
134
667
|
}
|
|
135
|
-
/**
|
|
136
|
-
* @public
|
|
137
|
-
* <p>The requested resource does not exist, or access was denied.</p>
|
|
138
|
-
*/
|
|
139
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
140
|
-
readonly name: "ResourceNotFoundException";
|
|
141
|
-
readonly $fault: "client";
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
*/
|
|
145
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
146
|
-
}
|
|
147
668
|
/**
|
|
148
669
|
* @public
|
|
149
670
|
*/
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Paginator } from "@aws-sdk/types";
|
|
2
|
+
import { ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput } from "../commands/ListCodegenJobsCommand";
|
|
3
|
+
import { AmplifyUIBuilderPaginationConfiguration } from "./Interfaces";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare function paginateListCodegenJobs(config: AmplifyUIBuilderPaginationConfiguration, input: ListCodegenJobsCommandInput, ...additionalArguments: any): Paginator<ListCodegenJobsCommandOutput>;
|
|
@@ -2,6 +2,7 @@ export * from "./ExportComponentsPaginator";
|
|
|
2
2
|
export * from "./ExportFormsPaginator";
|
|
3
3
|
export * from "./ExportThemesPaginator";
|
|
4
4
|
export * from "./Interfaces";
|
|
5
|
+
export * from "./ListCodegenJobsPaginator";
|
|
5
6
|
export * from "./ListComponentsPaginator";
|
|
6
7
|
export * from "./ListFormsPaginator";
|
|
7
8
|
export * from "./ListThemesPaginator";
|