@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
package/README.md CHANGED
@@ -290,6 +290,14 @@ ExportThemes
290
290
 
291
291
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/classes/exportthemescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/exportthemescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/exportthemescommandoutput.html)
292
292
 
293
+ </details>
294
+ <details>
295
+ <summary>
296
+ GetCodegenJob
297
+ </summary>
298
+
299
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/classes/getcodegenjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/getcodegenjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/getcodegenjobcommandoutput.html)
300
+
293
301
  </details>
294
302
  <details>
295
303
  <summary>
@@ -322,6 +330,14 @@ GetTheme
322
330
 
323
331
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/classes/getthemecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/getthemecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/getthemecommandoutput.html)
324
332
 
333
+ </details>
334
+ <details>
335
+ <summary>
336
+ ListCodegenJobs
337
+ </summary>
338
+
339
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/classes/listcodegenjobscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/listcodegenjobscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/listcodegenjobscommandoutput.html)
340
+
325
341
  </details>
326
342
  <details>
327
343
  <summary>
@@ -362,6 +378,14 @@ RefreshToken
362
378
 
363
379
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/classes/refreshtokencommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/refreshtokencommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/refreshtokencommandoutput.html)
364
380
 
381
+ </details>
382
+ <details>
383
+ <summary>
384
+ StartCodegenJob
385
+ </summary>
386
+
387
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/classes/startcodegenjobcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/startcodegenjobcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-amplifyuibuilder/interfaces/startcodegenjobcommandoutput.html)
388
+
365
389
  </details>
366
390
  <details>
367
391
  <summary>
@@ -13,15 +13,18 @@ const ExchangeCodeForTokenCommand_1 = require("./commands/ExchangeCodeForTokenCo
13
13
  const ExportComponentsCommand_1 = require("./commands/ExportComponentsCommand");
14
14
  const ExportFormsCommand_1 = require("./commands/ExportFormsCommand");
15
15
  const ExportThemesCommand_1 = require("./commands/ExportThemesCommand");
16
+ const GetCodegenJobCommand_1 = require("./commands/GetCodegenJobCommand");
16
17
  const GetComponentCommand_1 = require("./commands/GetComponentCommand");
17
18
  const GetFormCommand_1 = require("./commands/GetFormCommand");
18
19
  const GetMetadataCommand_1 = require("./commands/GetMetadataCommand");
19
20
  const GetThemeCommand_1 = require("./commands/GetThemeCommand");
21
+ const ListCodegenJobsCommand_1 = require("./commands/ListCodegenJobsCommand");
20
22
  const ListComponentsCommand_1 = require("./commands/ListComponentsCommand");
21
23
  const ListFormsCommand_1 = require("./commands/ListFormsCommand");
22
24
  const ListThemesCommand_1 = require("./commands/ListThemesCommand");
23
25
  const PutMetadataFlagCommand_1 = require("./commands/PutMetadataFlagCommand");
24
26
  const RefreshTokenCommand_1 = require("./commands/RefreshTokenCommand");
27
+ const StartCodegenJobCommand_1 = require("./commands/StartCodegenJobCommand");
25
28
  const UpdateComponentCommand_1 = require("./commands/UpdateComponentCommand");
26
29
  const UpdateFormCommand_1 = require("./commands/UpdateFormCommand");
27
30
  const UpdateThemeCommand_1 = require("./commands/UpdateThemeCommand");
@@ -36,15 +39,18 @@ const commands = {
36
39
  ExportComponentsCommand: ExportComponentsCommand_1.ExportComponentsCommand,
37
40
  ExportFormsCommand: ExportFormsCommand_1.ExportFormsCommand,
38
41
  ExportThemesCommand: ExportThemesCommand_1.ExportThemesCommand,
42
+ GetCodegenJobCommand: GetCodegenJobCommand_1.GetCodegenJobCommand,
39
43
  GetComponentCommand: GetComponentCommand_1.GetComponentCommand,
40
44
  GetFormCommand: GetFormCommand_1.GetFormCommand,
41
45
  GetMetadataCommand: GetMetadataCommand_1.GetMetadataCommand,
42
46
  GetThemeCommand: GetThemeCommand_1.GetThemeCommand,
47
+ ListCodegenJobsCommand: ListCodegenJobsCommand_1.ListCodegenJobsCommand,
43
48
  ListComponentsCommand: ListComponentsCommand_1.ListComponentsCommand,
44
49
  ListFormsCommand: ListFormsCommand_1.ListFormsCommand,
45
50
  ListThemesCommand: ListThemesCommand_1.ListThemesCommand,
46
51
  PutMetadataFlagCommand: PutMetadataFlagCommand_1.PutMetadataFlagCommand,
47
52
  RefreshTokenCommand: RefreshTokenCommand_1.RefreshTokenCommand,
53
+ StartCodegenJobCommand: StartCodegenJobCommand_1.StartCodegenJobCommand,
48
54
  UpdateComponentCommand: UpdateComponentCommand_1.UpdateComponentCommand,
49
55
  UpdateFormCommand: UpdateFormCommand_1.UpdateFormCommand,
50
56
  UpdateThemeCommand: UpdateThemeCommand_1.UpdateThemeCommand,
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetCodegenJobCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class GetCodegenJobCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCodegenJobCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "AmplifyUIBuilderClient";
28
+ const commandName = "GetCodegenJobCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_GetCodegenJobCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_GetCodegenJobCommand)(output, context);
44
+ }
45
+ }
46
+ exports.GetCodegenJobCommand = GetCodegenJobCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListCodegenJobsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class ListCodegenJobsCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListCodegenJobsCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "AmplifyUIBuilderClient";
28
+ const commandName = "ListCodegenJobsCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_ListCodegenJobsCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_ListCodegenJobsCommand)(output, context);
44
+ }
45
+ }
46
+ exports.ListCodegenJobsCommand = ListCodegenJobsCommand;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StartCodegenJobCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
5
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
6
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
9
+ class StartCodegenJobCommand extends smithy_client_1.Command {
10
+ static getEndpointParameterInstructions() {
11
+ return {
12
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
13
+ Endpoint: { type: "builtInParams", name: "endpoint" },
14
+ Region: { type: "builtInParams", name: "region" },
15
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
16
+ };
17
+ }
18
+ constructor(input) {
19
+ super();
20
+ this.input = input;
21
+ }
22
+ resolveMiddleware(clientStack, configuration, options) {
23
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
24
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartCodegenJobCommand.getEndpointParameterInstructions()));
25
+ const stack = clientStack.concat(this.middlewareStack);
26
+ const { logger } = configuration;
27
+ const clientName = "AmplifyUIBuilderClient";
28
+ const commandName = "StartCodegenJobCommand";
29
+ const handlerExecutionContext = {
30
+ logger,
31
+ clientName,
32
+ commandName,
33
+ inputFilterSensitiveLog: (_) => _,
34
+ outputFilterSensitiveLog: (_) => _,
35
+ };
36
+ const { requestHandler } = configuration;
37
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
38
+ }
39
+ serialize(input, context) {
40
+ return (0, Aws_restJson1_1.se_StartCodegenJobCommand)(input, context);
41
+ }
42
+ deserialize(output, context) {
43
+ return (0, Aws_restJson1_1.de_StartCodegenJobCommand)(output, context);
44
+ }
45
+ }
46
+ exports.StartCodegenJobCommand = StartCodegenJobCommand;
@@ -11,15 +11,18 @@ tslib_1.__exportStar(require("./ExchangeCodeForTokenCommand"), exports);
11
11
  tslib_1.__exportStar(require("./ExportComponentsCommand"), exports);
12
12
  tslib_1.__exportStar(require("./ExportFormsCommand"), exports);
13
13
  tslib_1.__exportStar(require("./ExportThemesCommand"), exports);
14
+ tslib_1.__exportStar(require("./GetCodegenJobCommand"), exports);
14
15
  tslib_1.__exportStar(require("./GetComponentCommand"), exports);
15
16
  tslib_1.__exportStar(require("./GetFormCommand"), exports);
16
17
  tslib_1.__exportStar(require("./GetMetadataCommand"), exports);
17
18
  tslib_1.__exportStar(require("./GetThemeCommand"), exports);
19
+ tslib_1.__exportStar(require("./ListCodegenJobsCommand"), exports);
18
20
  tslib_1.__exportStar(require("./ListComponentsCommand"), exports);
19
21
  tslib_1.__exportStar(require("./ListFormsCommand"), exports);
20
22
  tslib_1.__exportStar(require("./ListThemesCommand"), exports);
21
23
  tslib_1.__exportStar(require("./PutMetadataFlagCommand"), exports);
22
24
  tslib_1.__exportStar(require("./RefreshTokenCommand"), exports);
25
+ tslib_1.__exportStar(require("./StartCodegenJobCommand"), exports);
23
26
  tslib_1.__exportStar(require("./UpdateComponentCommand"), exports);
24
27
  tslib_1.__exportStar(require("./UpdateFormCommand"), exports);
25
28
  tslib_1.__exportStar(require("./UpdateThemeCommand"), exports);
@@ -1,8 +1,61 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.LabelDecorator = exports.FormActionType = exports.StorageAccessLevel = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ResourceNotFoundException = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.InvalidParameterException = exports.InternalServerException = void 0;
3
+ exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.LabelDecorator = exports.FormActionType = exports.StorageAccessLevel = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidParameterException = exports.InternalServerException = exports.CodegenJobStatus = exports.CodegenJobRenderConfig = exports.JSTarget = exports.JSScript = exports.JSModule = exports.GenericDataRelationshipType = exports.CodegenGenericDataFieldDataType = exports.CodegenJobGenericDataSourceType = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const AmplifyUIBuilderServiceException_1 = require("./AmplifyUIBuilderServiceException");
6
+ exports.CodegenJobGenericDataSourceType = {
7
+ DATA_STORE: "DataStore",
8
+ };
9
+ exports.CodegenGenericDataFieldDataType = {
10
+ AWS_DATE: "AWSDate",
11
+ AWS_DATE_TIME: "AWSDateTime",
12
+ AWS_EMAIL: "AWSEmail",
13
+ AWS_IP_ADDRESS: "AWSIPAddress",
14
+ AWS_JSON: "AWSJSON",
15
+ AWS_PHONE: "AWSPhone",
16
+ AWS_TIME: "AWSTime",
17
+ AWS_TIMESTAMP: "AWSTimestamp",
18
+ AWS_URL: "AWSURL",
19
+ BOOLEAN: "Boolean",
20
+ ENUM: "Enum",
21
+ FLOAT: "Float",
22
+ ID: "ID",
23
+ INT: "Int",
24
+ MODEL: "Model",
25
+ NON_MODEL: "NonModel",
26
+ STRING: "String",
27
+ };
28
+ exports.GenericDataRelationshipType = {
29
+ BELONGS_TO: "BELONGS_TO",
30
+ HAS_MANY: "HAS_MANY",
31
+ HAS_ONE: "HAS_ONE",
32
+ };
33
+ exports.JSModule = {
34
+ ES2020: "es2020",
35
+ ESNEXT: "esnext",
36
+ };
37
+ exports.JSScript = {
38
+ JS: "js",
39
+ JSX: "jsx",
40
+ TSX: "tsx",
41
+ };
42
+ exports.JSTarget = {
43
+ ES2015: "es2015",
44
+ ES2020: "es2020",
45
+ };
46
+ var CodegenJobRenderConfig;
47
+ (function (CodegenJobRenderConfig) {
48
+ CodegenJobRenderConfig.visit = (value, visitor) => {
49
+ if (value.react !== undefined)
50
+ return visitor.react(value.react);
51
+ return visitor._(value.$unknown[0], value.$unknown[1]);
52
+ };
53
+ })(CodegenJobRenderConfig = exports.CodegenJobRenderConfig || (exports.CodegenJobRenderConfig = {}));
54
+ exports.CodegenJobStatus = {
55
+ FAILED: "failed",
56
+ IN_PROGRESS: "in_progress",
57
+ SUCCEEDED: "succeeded",
58
+ };
6
59
  class InternalServerException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
7
60
  constructor(opts) {
8
61
  super({
@@ -29,6 +82,32 @@ class InvalidParameterException extends AmplifyUIBuilderServiceException_1.Ampli
29
82
  }
30
83
  }
31
84
  exports.InvalidParameterException = InvalidParameterException;
85
+ class ResourceNotFoundException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
86
+ constructor(opts) {
87
+ super({
88
+ name: "ResourceNotFoundException",
89
+ $fault: "client",
90
+ ...opts,
91
+ });
92
+ this.name = "ResourceNotFoundException";
93
+ this.$fault = "client";
94
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
95
+ }
96
+ }
97
+ exports.ResourceNotFoundException = ResourceNotFoundException;
98
+ class ThrottlingException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
99
+ constructor(opts) {
100
+ super({
101
+ name: "ThrottlingException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ this.name = "ThrottlingException";
106
+ this.$fault = "client";
107
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
108
+ }
109
+ }
110
+ exports.ThrottlingException = ThrottlingException;
32
111
  class ResourceConflictException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
33
112
  constructor(opts) {
34
113
  super({
@@ -55,19 +134,6 @@ class ServiceQuotaExceededException extends AmplifyUIBuilderServiceException_1.A
55
134
  }
56
135
  }
57
136
  exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
58
- class ResourceNotFoundException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
59
- constructor(opts) {
60
- super({
61
- name: "ResourceNotFoundException",
62
- $fault: "client",
63
- ...opts,
64
- });
65
- this.name = "ResourceNotFoundException";
66
- this.$fault = "client";
67
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
68
- }
69
- }
70
- exports.ResourceNotFoundException = ResourceNotFoundException;
71
137
  exports.TokenProviders = {
72
138
  FIGMA: "figma",
73
139
  };
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListCodegenJobs = void 0;
4
+ const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
+ const ListCodegenJobsCommand_1 = require("../commands/ListCodegenJobsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListCodegenJobsCommand_1.ListCodegenJobsCommand(input), ...args);
8
+ };
9
+ async function* paginateListCodegenJobs(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.nextToken = token;
15
+ input["maxResults"] = config.pageSize;
16
+ if (config.client instanceof AmplifyUIBuilderClient_1.AmplifyUIBuilderClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.nextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListCodegenJobs = paginateListCodegenJobs;
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./ExportComponentsPaginator"), exports);
5
5
  tslib_1.__exportStar(require("./ExportFormsPaginator"), exports);
6
6
  tslib_1.__exportStar(require("./ExportThemesPaginator"), exports);
7
7
  tslib_1.__exportStar(require("./Interfaces"), exports);
8
+ tslib_1.__exportStar(require("./ListCodegenJobsPaginator"), exports);
8
9
  tslib_1.__exportStar(require("./ListComponentsPaginator"), exports);
9
10
  tslib_1.__exportStar(require("./ListFormsPaginator"), exports);
10
11
  tslib_1.__exportStar(require("./ListThemesPaginator"), exports);