@aws-sdk/client-amplifyuibuilder 3.350.0 → 3.352.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 +5 -5
@@ -10,15 +10,18 @@ import { ExchangeCodeForTokenCommandInput, ExchangeCodeForTokenCommandOutput } f
10
10
  import { ExportComponentsCommandInput, ExportComponentsCommandOutput } from "../commands/ExportComponentsCommand";
11
11
  import { ExportFormsCommandInput, ExportFormsCommandOutput } from "../commands/ExportFormsCommand";
12
12
  import { ExportThemesCommandInput, ExportThemesCommandOutput } from "../commands/ExportThemesCommand";
13
+ import { GetCodegenJobCommandInput, GetCodegenJobCommandOutput } from "../commands/GetCodegenJobCommand";
13
14
  import { GetComponentCommandInput, GetComponentCommandOutput } from "../commands/GetComponentCommand";
14
15
  import { GetFormCommandInput, GetFormCommandOutput } from "../commands/GetFormCommand";
15
16
  import { GetMetadataCommandInput, GetMetadataCommandOutput } from "../commands/GetMetadataCommand";
16
17
  import { GetThemeCommandInput, GetThemeCommandOutput } from "../commands/GetThemeCommand";
18
+ import { ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput } from "../commands/ListCodegenJobsCommand";
17
19
  import { ListComponentsCommandInput, ListComponentsCommandOutput } from "../commands/ListComponentsCommand";
18
20
  import { ListFormsCommandInput, ListFormsCommandOutput } from "../commands/ListFormsCommand";
19
21
  import { ListThemesCommandInput, ListThemesCommandOutput } from "../commands/ListThemesCommand";
20
22
  import { PutMetadataFlagCommandInput, PutMetadataFlagCommandOutput } from "../commands/PutMetadataFlagCommand";
21
23
  import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "../commands/RefreshTokenCommand";
24
+ import { StartCodegenJobCommandInput, StartCodegenJobCommandOutput } from "../commands/StartCodegenJobCommand";
22
25
  import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "../commands/UpdateComponentCommand";
23
26
  import { UpdateFormCommandInput, UpdateFormCommandOutput } from "../commands/UpdateFormCommand";
24
27
  import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "../commands/UpdateThemeCommand";
@@ -62,6 +65,10 @@ export declare const se_ExportFormsCommand: (input: ExportFormsCommandInput, con
62
65
  * serializeAws_restJson1ExportThemesCommand
63
66
  */
64
67
  export declare const se_ExportThemesCommand: (input: ExportThemesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
68
+ /**
69
+ * serializeAws_restJson1GetCodegenJobCommand
70
+ */
71
+ export declare const se_GetCodegenJobCommand: (input: GetCodegenJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
65
72
  /**
66
73
  * serializeAws_restJson1GetComponentCommand
67
74
  */
@@ -78,6 +85,10 @@ export declare const se_GetMetadataCommand: (input: GetMetadataCommandInput, con
78
85
  * serializeAws_restJson1GetThemeCommand
79
86
  */
80
87
  export declare const se_GetThemeCommand: (input: GetThemeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
88
+ /**
89
+ * serializeAws_restJson1ListCodegenJobsCommand
90
+ */
91
+ export declare const se_ListCodegenJobsCommand: (input: ListCodegenJobsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
81
92
  /**
82
93
  * serializeAws_restJson1ListComponentsCommand
83
94
  */
@@ -98,6 +109,10 @@ export declare const se_PutMetadataFlagCommand: (input: PutMetadataFlagCommandIn
98
109
  * serializeAws_restJson1RefreshTokenCommand
99
110
  */
100
111
  export declare const se_RefreshTokenCommand: (input: RefreshTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
112
+ /**
113
+ * serializeAws_restJson1StartCodegenJobCommand
114
+ */
115
+ export declare const se_StartCodegenJobCommand: (input: StartCodegenJobCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
101
116
  /**
102
117
  * serializeAws_restJson1UpdateComponentCommand
103
118
  */
@@ -150,6 +165,10 @@ export declare const de_ExportFormsCommand: (output: __HttpResponse, context: __
150
165
  * deserializeAws_restJson1ExportThemesCommand
151
166
  */
152
167
  export declare const de_ExportThemesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ExportThemesCommandOutput>;
168
+ /**
169
+ * deserializeAws_restJson1GetCodegenJobCommand
170
+ */
171
+ export declare const de_GetCodegenJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCodegenJobCommandOutput>;
153
172
  /**
154
173
  * deserializeAws_restJson1GetComponentCommand
155
174
  */
@@ -166,6 +185,10 @@ export declare const de_GetMetadataCommand: (output: __HttpResponse, context: __
166
185
  * deserializeAws_restJson1GetThemeCommand
167
186
  */
168
187
  export declare const de_GetThemeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetThemeCommandOutput>;
188
+ /**
189
+ * deserializeAws_restJson1ListCodegenJobsCommand
190
+ */
191
+ export declare const de_ListCodegenJobsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListCodegenJobsCommandOutput>;
169
192
  /**
170
193
  * deserializeAws_restJson1ListComponentsCommand
171
194
  */
@@ -186,6 +209,10 @@ export declare const de_PutMetadataFlagCommand: (output: __HttpResponse, context
186
209
  * deserializeAws_restJson1RefreshTokenCommand
187
210
  */
188
211
  export declare const de_RefreshTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RefreshTokenCommandOutput>;
212
+ /**
213
+ * deserializeAws_restJson1StartCodegenJobCommand
214
+ */
215
+ export declare const de_StartCodegenJobCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartCodegenJobCommandOutput>;
189
216
  /**
190
217
  * deserializeAws_restJson1UpdateComponentCommand
191
218
  */
@@ -40,6 +40,10 @@ import {
40
40
  ExportThemesCommandInput,
41
41
  ExportThemesCommandOutput,
42
42
  } from "./commands/ExportThemesCommand";
43
+ import {
44
+ GetCodegenJobCommandInput,
45
+ GetCodegenJobCommandOutput,
46
+ } from "./commands/GetCodegenJobCommand";
43
47
  import {
44
48
  GetComponentCommandInput,
45
49
  GetComponentCommandOutput,
@@ -56,6 +60,10 @@ import {
56
60
  GetThemeCommandInput,
57
61
  GetThemeCommandOutput,
58
62
  } from "./commands/GetThemeCommand";
63
+ import {
64
+ ListCodegenJobsCommandInput,
65
+ ListCodegenJobsCommandOutput,
66
+ } from "./commands/ListCodegenJobsCommand";
59
67
  import {
60
68
  ListComponentsCommandInput,
61
69
  ListComponentsCommandOutput,
@@ -76,6 +84,10 @@ import {
76
84
  RefreshTokenCommandInput,
77
85
  RefreshTokenCommandOutput,
78
86
  } from "./commands/RefreshTokenCommand";
87
+ import {
88
+ StartCodegenJobCommandInput,
89
+ StartCodegenJobCommandOutput,
90
+ } from "./commands/StartCodegenJobCommand";
79
91
  import {
80
92
  UpdateComponentCommandInput,
81
93
  UpdateComponentCommandOutput,
@@ -219,6 +231,19 @@ export interface AmplifyUIBuilder {
219
231
  options: __HttpHandlerOptions,
220
232
  cb: (err: any, data?: ExportThemesCommandOutput) => void
221
233
  ): void;
234
+ getCodegenJob(
235
+ args: GetCodegenJobCommandInput,
236
+ options?: __HttpHandlerOptions
237
+ ): Promise<GetCodegenJobCommandOutput>;
238
+ getCodegenJob(
239
+ args: GetCodegenJobCommandInput,
240
+ cb: (err: any, data?: GetCodegenJobCommandOutput) => void
241
+ ): void;
242
+ getCodegenJob(
243
+ args: GetCodegenJobCommandInput,
244
+ options: __HttpHandlerOptions,
245
+ cb: (err: any, data?: GetCodegenJobCommandOutput) => void
246
+ ): void;
222
247
  getComponent(
223
248
  args: GetComponentCommandInput,
224
249
  options?: __HttpHandlerOptions
@@ -271,6 +296,19 @@ export interface AmplifyUIBuilder {
271
296
  options: __HttpHandlerOptions,
272
297
  cb: (err: any, data?: GetThemeCommandOutput) => void
273
298
  ): void;
299
+ listCodegenJobs(
300
+ args: ListCodegenJobsCommandInput,
301
+ options?: __HttpHandlerOptions
302
+ ): Promise<ListCodegenJobsCommandOutput>;
303
+ listCodegenJobs(
304
+ args: ListCodegenJobsCommandInput,
305
+ cb: (err: any, data?: ListCodegenJobsCommandOutput) => void
306
+ ): void;
307
+ listCodegenJobs(
308
+ args: ListCodegenJobsCommandInput,
309
+ options: __HttpHandlerOptions,
310
+ cb: (err: any, data?: ListCodegenJobsCommandOutput) => void
311
+ ): void;
274
312
  listComponents(
275
313
  args: ListComponentsCommandInput,
276
314
  options?: __HttpHandlerOptions
@@ -336,6 +374,19 @@ export interface AmplifyUIBuilder {
336
374
  options: __HttpHandlerOptions,
337
375
  cb: (err: any, data?: RefreshTokenCommandOutput) => void
338
376
  ): void;
377
+ startCodegenJob(
378
+ args: StartCodegenJobCommandInput,
379
+ options?: __HttpHandlerOptions
380
+ ): Promise<StartCodegenJobCommandOutput>;
381
+ startCodegenJob(
382
+ args: StartCodegenJobCommandInput,
383
+ cb: (err: any, data?: StartCodegenJobCommandOutput) => void
384
+ ): void;
385
+ startCodegenJob(
386
+ args: StartCodegenJobCommandInput,
387
+ options: __HttpHandlerOptions,
388
+ cb: (err: any, data?: StartCodegenJobCommandOutput) => void
389
+ ): void;
339
390
  updateComponent(
340
391
  args: UpdateComponentCommandInput,
341
392
  options?: __HttpHandlerOptions
@@ -86,6 +86,10 @@ import {
86
86
  ExportThemesCommandInput,
87
87
  ExportThemesCommandOutput,
88
88
  } from "./commands/ExportThemesCommand";
89
+ import {
90
+ GetCodegenJobCommandInput,
91
+ GetCodegenJobCommandOutput,
92
+ } from "./commands/GetCodegenJobCommand";
89
93
  import {
90
94
  GetComponentCommandInput,
91
95
  GetComponentCommandOutput,
@@ -102,6 +106,10 @@ import {
102
106
  GetThemeCommandInput,
103
107
  GetThemeCommandOutput,
104
108
  } from "./commands/GetThemeCommand";
109
+ import {
110
+ ListCodegenJobsCommandInput,
111
+ ListCodegenJobsCommandOutput,
112
+ } from "./commands/ListCodegenJobsCommand";
105
113
  import {
106
114
  ListComponentsCommandInput,
107
115
  ListComponentsCommandOutput,
@@ -122,6 +130,10 @@ import {
122
130
  RefreshTokenCommandInput,
123
131
  RefreshTokenCommandOutput,
124
132
  } from "./commands/RefreshTokenCommand";
133
+ import {
134
+ StartCodegenJobCommandInput,
135
+ StartCodegenJobCommandOutput,
136
+ } from "./commands/StartCodegenJobCommand";
125
137
  import {
126
138
  UpdateComponentCommandInput,
127
139
  UpdateComponentCommandOutput,
@@ -151,15 +163,18 @@ export type ServiceInputTypes =
151
163
  | ExportComponentsCommandInput
152
164
  | ExportFormsCommandInput
153
165
  | ExportThemesCommandInput
166
+ | GetCodegenJobCommandInput
154
167
  | GetComponentCommandInput
155
168
  | GetFormCommandInput
156
169
  | GetMetadataCommandInput
157
170
  | GetThemeCommandInput
171
+ | ListCodegenJobsCommandInput
158
172
  | ListComponentsCommandInput
159
173
  | ListFormsCommandInput
160
174
  | ListThemesCommandInput
161
175
  | PutMetadataFlagCommandInput
162
176
  | RefreshTokenCommandInput
177
+ | StartCodegenJobCommandInput
163
178
  | UpdateComponentCommandInput
164
179
  | UpdateFormCommandInput
165
180
  | UpdateThemeCommandInput;
@@ -174,15 +189,18 @@ export type ServiceOutputTypes =
174
189
  | ExportComponentsCommandOutput
175
190
  | ExportFormsCommandOutput
176
191
  | ExportThemesCommandOutput
192
+ | GetCodegenJobCommandOutput
177
193
  | GetComponentCommandOutput
178
194
  | GetFormCommandOutput
179
195
  | GetMetadataCommandOutput
180
196
  | GetThemeCommandOutput
197
+ | ListCodegenJobsCommandOutput
181
198
  | ListComponentsCommandOutput
182
199
  | ListFormsCommandOutput
183
200
  | ListThemesCommandOutput
184
201
  | PutMetadataFlagCommandOutput
185
202
  | RefreshTokenCommandOutput
203
+ | StartCodegenJobCommandOutput
186
204
  | UpdateComponentCommandOutput
187
205
  | UpdateFormCommandOutput
188
206
  | UpdateThemeCommandOutput;
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ AmplifyUIBuilderClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AmplifyUIBuilderClient";
14
+ import {
15
+ GetCodegenJobRequest,
16
+ GetCodegenJobResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetCodegenJobCommandInput extends GetCodegenJobRequest {}
20
+ export interface GetCodegenJobCommandOutput
21
+ extends GetCodegenJobResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetCodegenJobCommand extends $Command<
24
+ GetCodegenJobCommandInput,
25
+ GetCodegenJobCommandOutput,
26
+ AmplifyUIBuilderClientResolvedConfig
27
+ > {
28
+ readonly input: GetCodegenJobCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetCodegenJobCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: AmplifyUIBuilderClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetCodegenJobCommandInput, GetCodegenJobCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ AmplifyUIBuilderClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AmplifyUIBuilderClient";
14
+ import {
15
+ ListCodegenJobsRequest,
16
+ ListCodegenJobsResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface ListCodegenJobsCommandInput extends ListCodegenJobsRequest {}
20
+ export interface ListCodegenJobsCommandOutput
21
+ extends ListCodegenJobsResponse,
22
+ __MetadataBearer {}
23
+ export declare class ListCodegenJobsCommand extends $Command<
24
+ ListCodegenJobsCommandInput,
25
+ ListCodegenJobsCommandOutput,
26
+ AmplifyUIBuilderClientResolvedConfig
27
+ > {
28
+ readonly input: ListCodegenJobsCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListCodegenJobsCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: AmplifyUIBuilderClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
2
+ import { Command as $Command } from "@aws-sdk/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@aws-sdk/types";
9
+ import {
10
+ AmplifyUIBuilderClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../AmplifyUIBuilderClient";
14
+ import {
15
+ StartCodegenJobRequest,
16
+ StartCodegenJobResponse,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface StartCodegenJobCommandInput extends StartCodegenJobRequest {}
20
+ export interface StartCodegenJobCommandOutput
21
+ extends StartCodegenJobResponse,
22
+ __MetadataBearer {}
23
+ export declare class StartCodegenJobCommand extends $Command<
24
+ StartCodegenJobCommandInput,
25
+ StartCodegenJobCommandOutput,
26
+ AmplifyUIBuilderClientResolvedConfig
27
+ > {
28
+ readonly input: StartCodegenJobCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: StartCodegenJobCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: AmplifyUIBuilderClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<StartCodegenJobCommandInput, StartCodegenJobCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -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";
@@ -8,14 +8,152 @@ export interface FormBindingElement {
8
8
  element: string | undefined;
9
9
  property: string | undefined;
10
10
  }
11
- export type SortDirection = "ASC" | "DESC";
12
- export interface SortProperty {
13
- field: string | undefined;
14
- direction: SortDirection | string | undefined;
11
+ export interface GetCodegenJobRequest {
12
+ appId: string | undefined;
13
+ environmentName: string | undefined;
14
+ id: string | undefined;
15
15
  }
16
- export interface ComponentVariant {
17
- variantValues?: Record<string, string>;
18
- overrides?: Record<string, Record<string, string>>;
16
+ export interface CodegenJobAsset {
17
+ downloadUrl?: string;
18
+ }
19
+ export interface CodegenFeatureFlags {
20
+ isRelationshipSupported?: boolean;
21
+ isNonModelSupported?: boolean;
22
+ }
23
+ export declare const CodegenJobGenericDataSourceType: {
24
+ readonly DATA_STORE: "DataStore";
25
+ };
26
+ export type CodegenJobGenericDataSourceType =
27
+ (typeof CodegenJobGenericDataSourceType)[keyof typeof CodegenJobGenericDataSourceType];
28
+ export interface CodegenGenericDataEnum {
29
+ values: string[] | undefined;
30
+ }
31
+ export declare const CodegenGenericDataFieldDataType: {
32
+ readonly AWS_DATE: "AWSDate";
33
+ readonly AWS_DATE_TIME: "AWSDateTime";
34
+ readonly AWS_EMAIL: "AWSEmail";
35
+ readonly AWS_IP_ADDRESS: "AWSIPAddress";
36
+ readonly AWS_JSON: "AWSJSON";
37
+ readonly AWS_PHONE: "AWSPhone";
38
+ readonly AWS_TIME: "AWSTime";
39
+ readonly AWS_TIMESTAMP: "AWSTimestamp";
40
+ readonly AWS_URL: "AWSURL";
41
+ readonly BOOLEAN: "Boolean";
42
+ readonly ENUM: "Enum";
43
+ readonly FLOAT: "Float";
44
+ readonly ID: "ID";
45
+ readonly INT: "Int";
46
+ readonly MODEL: "Model";
47
+ readonly NON_MODEL: "NonModel";
48
+ readonly STRING: "String";
49
+ };
50
+ export type CodegenGenericDataFieldDataType =
51
+ (typeof CodegenGenericDataFieldDataType)[keyof typeof CodegenGenericDataFieldDataType];
52
+ export declare const GenericDataRelationshipType: {
53
+ readonly BELONGS_TO: "BELONGS_TO";
54
+ readonly HAS_MANY: "HAS_MANY";
55
+ readonly HAS_ONE: "HAS_ONE";
56
+ };
57
+ export type GenericDataRelationshipType =
58
+ (typeof GenericDataRelationshipType)[keyof typeof GenericDataRelationshipType];
59
+ export interface CodegenGenericDataRelationshipType {
60
+ type: GenericDataRelationshipType | string | undefined;
61
+ relatedModelName: string | undefined;
62
+ relatedModelFields?: string[];
63
+ canUnlinkAssociatedModel?: boolean;
64
+ relatedJoinFieldName?: string;
65
+ relatedJoinTableName?: string;
66
+ belongsToFieldOnRelatedModel?: string;
67
+ associatedFields?: string[];
68
+ isHasManyIndex?: boolean;
69
+ }
70
+ export interface CodegenGenericDataField {
71
+ dataType: CodegenGenericDataFieldDataType | string | undefined;
72
+ dataTypeValue: string | undefined;
73
+ required: boolean | undefined;
74
+ readOnly: boolean | undefined;
75
+ isArray: boolean | undefined;
76
+ relationship?: CodegenGenericDataRelationshipType;
77
+ }
78
+ export interface CodegenGenericDataModel {
79
+ fields: Record<string, CodegenGenericDataField> | undefined;
80
+ isJoinTable?: boolean;
81
+ primaryKeys: string[] | undefined;
82
+ }
83
+ export interface CodegenGenericDataNonModel {
84
+ fields: Record<string, CodegenGenericDataField> | undefined;
85
+ }
86
+ export interface CodegenJobGenericDataSchema {
87
+ dataSourceType: CodegenJobGenericDataSourceType | string | undefined;
88
+ models: Record<string, CodegenGenericDataModel> | undefined;
89
+ enums: Record<string, CodegenGenericDataEnum> | undefined;
90
+ nonModels: Record<string, CodegenGenericDataNonModel> | undefined;
91
+ }
92
+ export declare const JSModule: {
93
+ readonly ES2020: "es2020";
94
+ readonly ESNEXT: "esnext";
95
+ };
96
+ export type JSModule = (typeof JSModule)[keyof typeof JSModule];
97
+ export declare const JSScript: {
98
+ readonly JS: "js";
99
+ readonly JSX: "jsx";
100
+ readonly TSX: "tsx";
101
+ };
102
+ export type JSScript = (typeof JSScript)[keyof typeof JSScript];
103
+ export declare const JSTarget: {
104
+ readonly ES2015: "es2015";
105
+ readonly ES2020: "es2020";
106
+ };
107
+ export type JSTarget = (typeof JSTarget)[keyof typeof JSTarget];
108
+ export interface ReactStartCodegenJobData {
109
+ module?: JSModule | string;
110
+ target?: JSTarget | string;
111
+ script?: JSScript | string;
112
+ renderTypeDeclarations?: boolean;
113
+ inlineSourceMap?: boolean;
114
+ }
115
+ export type CodegenJobRenderConfig =
116
+ | CodegenJobRenderConfig.ReactMember
117
+ | CodegenJobRenderConfig.$UnknownMember;
118
+ export declare namespace CodegenJobRenderConfig {
119
+ interface ReactMember {
120
+ react: ReactStartCodegenJobData;
121
+ $unknown?: never;
122
+ }
123
+ interface $UnknownMember {
124
+ react?: never;
125
+ $unknown: [string, any];
126
+ }
127
+ interface Visitor<T> {
128
+ react: (value: ReactStartCodegenJobData) => T;
129
+ _: (name: string, value: any) => T;
130
+ }
131
+ const visit: <T>(value: CodegenJobRenderConfig, visitor: Visitor<T>) => T;
132
+ }
133
+ export declare const CodegenJobStatus: {
134
+ readonly FAILED: "failed";
135
+ readonly IN_PROGRESS: "in_progress";
136
+ readonly SUCCEEDED: "succeeded";
137
+ };
138
+ export type CodegenJobStatus =
139
+ (typeof CodegenJobStatus)[keyof typeof CodegenJobStatus];
140
+ export interface CodegenJob {
141
+ id: string | undefined;
142
+ appId: string | undefined;
143
+ environmentName: string | undefined;
144
+ renderConfig?: CodegenJobRenderConfig;
145
+ genericDataSchema?: CodegenJobGenericDataSchema;
146
+ autoGenerateForms?: boolean;
147
+ features?: CodegenFeatureFlags;
148
+ status?: CodegenJobStatus | string;
149
+ statusMessage?: string;
150
+ asset?: CodegenJobAsset;
151
+ tags?: Record<string, string>;
152
+ createdAt?: Date;
153
+ modifiedAt?: Date;
154
+ }
155
+ export interface GetCodegenJobResponse {
156
+ job?: CodegenJob;
19
157
  }
20
158
  export declare class InternalServerException extends __BaseException {
21
159
  readonly name: "InternalServerException";
@@ -31,6 +169,62 @@ export declare class InvalidParameterException extends __BaseException {
31
169
  opts: __ExceptionOptionType<InvalidParameterException, __BaseException>
32
170
  );
33
171
  }
172
+ export declare class ResourceNotFoundException extends __BaseException {
173
+ readonly name: "ResourceNotFoundException";
174
+ readonly $fault: "client";
175
+ constructor(
176
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
177
+ );
178
+ }
179
+ export declare class ThrottlingException extends __BaseException {
180
+ readonly name: "ThrottlingException";
181
+ readonly $fault: "client";
182
+ constructor(
183
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
184
+ );
185
+ }
186
+ export interface ListCodegenJobsRequest {
187
+ appId: string | undefined;
188
+ environmentName: string | undefined;
189
+ nextToken?: string;
190
+ maxResults?: number;
191
+ }
192
+ export interface CodegenJobSummary {
193
+ appId: string | undefined;
194
+ environmentName: string | undefined;
195
+ id: string | undefined;
196
+ createdAt?: Date;
197
+ modifiedAt?: Date;
198
+ }
199
+ export interface ListCodegenJobsResponse {
200
+ entities: CodegenJobSummary[] | undefined;
201
+ nextToken?: string;
202
+ }
203
+ export interface StartCodegenJobData {
204
+ renderConfig: CodegenJobRenderConfig | undefined;
205
+ genericDataSchema?: CodegenJobGenericDataSchema;
206
+ autoGenerateForms?: boolean;
207
+ features?: CodegenFeatureFlags;
208
+ tags?: Record<string, string>;
209
+ }
210
+ export interface StartCodegenJobRequest {
211
+ appId: string | undefined;
212
+ environmentName: string | undefined;
213
+ clientToken?: string;
214
+ codegenJobToCreate: StartCodegenJobData | undefined;
215
+ }
216
+ export interface StartCodegenJobResponse {
217
+ entity?: CodegenJob;
218
+ }
219
+ export type SortDirection = "ASC" | "DESC";
220
+ export interface SortProperty {
221
+ field: string | undefined;
222
+ direction: SortDirection | string | undefined;
223
+ }
224
+ export interface ComponentVariant {
225
+ variantValues?: Record<string, string>;
226
+ overrides?: Record<string, Record<string, string>>;
227
+ }
34
228
  export declare class ResourceConflictException extends __BaseException {
35
229
  readonly name: "ResourceConflictException";
36
230
  readonly $fault: "client";
@@ -50,13 +244,6 @@ export interface DeleteComponentRequest {
50
244
  environmentName: string | undefined;
51
245
  id: string | undefined;
52
246
  }
53
- export declare class ResourceNotFoundException extends __BaseException {
54
- readonly name: "ResourceNotFoundException";
55
- readonly $fault: "client";
56
- constructor(
57
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
58
- );
59
- }
60
247
  export interface ExportComponentsRequest {
61
248
  appId: string | undefined;
62
249
  environmentName: string | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+ import {
3
+ ListCodegenJobsCommandInput,
4
+ ListCodegenJobsCommandOutput,
5
+ } from "../commands/ListCodegenJobsCommand";
6
+ import { AmplifyUIBuilderPaginationConfiguration } from "./Interfaces";
7
+ export declare function paginateListCodegenJobs(
8
+ config: AmplifyUIBuilderPaginationConfiguration,
9
+ input: ListCodegenJobsCommandInput,
10
+ ...additionalArguments: any
11
+ ): 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";