@aws-sdk/client-amplifyuibuilder 3.476.0 → 3.478.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 (31) hide show
  1. package/dist-cjs/pagination/ExportComponentsPaginator.js +2 -23
  2. package/dist-cjs/pagination/ExportFormsPaginator.js +2 -23
  3. package/dist-cjs/pagination/ExportThemesPaginator.js +2 -23
  4. package/dist-cjs/pagination/ListCodegenJobsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListComponentsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListFormsPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListThemesPaginator.js +2 -24
  8. package/dist-cjs/protocols/Aws_restJson1.js +181 -390
  9. package/dist-es/pagination/ExportComponentsPaginator.js +2 -22
  10. package/dist-es/pagination/ExportFormsPaginator.js +2 -22
  11. package/dist-es/pagination/ExportThemesPaginator.js +2 -22
  12. package/dist-es/pagination/ListCodegenJobsPaginator.js +2 -23
  13. package/dist-es/pagination/ListComponentsPaginator.js +2 -23
  14. package/dist-es/pagination/ListFormsPaginator.js +2 -23
  15. package/dist-es/pagination/ListThemesPaginator.js +2 -23
  16. package/dist-es/protocols/Aws_restJson1.js +182 -391
  17. package/dist-types/pagination/ExportComponentsPaginator.d.ts +1 -1
  18. package/dist-types/pagination/ExportFormsPaginator.d.ts +1 -1
  19. package/dist-types/pagination/ExportThemesPaginator.d.ts +1 -1
  20. package/dist-types/pagination/ListCodegenJobsPaginator.d.ts +1 -1
  21. package/dist-types/pagination/ListComponentsPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListFormsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListThemesPaginator.d.ts +1 -1
  24. package/dist-types/ts3.4/pagination/ExportComponentsPaginator.d.ts +3 -3
  25. package/dist-types/ts3.4/pagination/ExportFormsPaginator.d.ts +3 -3
  26. package/dist-types/ts3.4/pagination/ExportThemesPaginator.d.ts +3 -3
  27. package/dist-types/ts3.4/pagination/ListCodegenJobsPaginator.d.ts +3 -3
  28. package/dist-types/ts3.4/pagination/ListComponentsPaginator.d.ts +3 -3
  29. package/dist-types/ts3.4/pagination/ListFormsPaginator.d.ts +3 -3
  30. package/dist-types/ts3.4/pagination/ListThemesPaginator.d.ts +3 -3
  31. package/package.json +7 -6
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateExportComponents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
6
  const ExportComponentsCommand_1 = require("../commands/ExportComponentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ExportComponentsCommand_1.ExportComponentsCommand(input), ...args);
8
- };
9
- async function* paginateExportComponents(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- if (config.client instanceof AmplifyUIBuilderClient_1.AmplifyUIBuilderClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.nextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateExportComponents = paginateExportComponents;
7
+ exports.paginateExportComponents = (0, core_1.createPaginator)(AmplifyUIBuilderClient_1.AmplifyUIBuilderClient, ExportComponentsCommand_1.ExportComponentsCommand, "nextToken", "nextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateExportForms = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
6
  const ExportFormsCommand_1 = require("../commands/ExportFormsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ExportFormsCommand_1.ExportFormsCommand(input), ...args);
8
- };
9
- async function* paginateExportForms(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- if (config.client instanceof AmplifyUIBuilderClient_1.AmplifyUIBuilderClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.nextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateExportForms = paginateExportForms;
7
+ exports.paginateExportForms = (0, core_1.createPaginator)(AmplifyUIBuilderClient_1.AmplifyUIBuilderClient, ExportFormsCommand_1.ExportFormsCommand, "nextToken", "nextToken", "");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateExportThemes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
6
  const ExportThemesCommand_1 = require("../commands/ExportThemesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ExportThemesCommand_1.ExportThemesCommand(input), ...args);
8
- };
9
- async function* paginateExportThemes(config, input, ...additionalArguments) {
10
- let token = config.startingToken || undefined;
11
- let hasNext = true;
12
- let page;
13
- while (hasNext) {
14
- input.nextToken = token;
15
- if (config.client instanceof AmplifyUIBuilderClient_1.AmplifyUIBuilderClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected AmplifyUIBuilder | AmplifyUIBuilderClient");
20
- }
21
- yield page;
22
- const prevToken = token;
23
- token = page.nextToken;
24
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
25
- }
26
- return undefined;
27
- }
28
- exports.paginateExportThemes = paginateExportThemes;
7
+ exports.paginateExportThemes = (0, core_1.createPaginator)(AmplifyUIBuilderClient_1.AmplifyUIBuilderClient, ExportThemesCommand_1.ExportThemesCommand, "nextToken", "nextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListCodegenJobs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
6
  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;
7
+ exports.paginateListCodegenJobs = (0, core_1.createPaginator)(AmplifyUIBuilderClient_1.AmplifyUIBuilderClient, ListCodegenJobsCommand_1.ListCodegenJobsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListComponents = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
6
  const ListComponentsCommand_1 = require("../commands/ListComponentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListComponentsCommand_1.ListComponentsCommand(input), ...args);
8
- };
9
- async function* paginateListComponents(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.paginateListComponents = paginateListComponents;
7
+ exports.paginateListComponents = (0, core_1.createPaginator)(AmplifyUIBuilderClient_1.AmplifyUIBuilderClient, ListComponentsCommand_1.ListComponentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListForms = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
6
  const ListFormsCommand_1 = require("../commands/ListFormsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListFormsCommand_1.ListFormsCommand(input), ...args);
8
- };
9
- async function* paginateListForms(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.paginateListForms = paginateListForms;
7
+ exports.paginateListForms = (0, core_1.createPaginator)(AmplifyUIBuilderClient_1.AmplifyUIBuilderClient, ListFormsCommand_1.ListFormsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListThemes = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const AmplifyUIBuilderClient_1 = require("../AmplifyUIBuilderClient");
5
6
  const ListThemesCommand_1 = require("../commands/ListThemesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListThemesCommand_1.ListThemesCommand(input), ...args);
8
- };
9
- async function* paginateListThemes(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.paginateListThemes = paginateListThemes;
7
+ exports.paginateListThemes = (0, core_1.createPaginator)(AmplifyUIBuilderClient_1.AmplifyUIBuilderClient, ListThemesCommand_1.ListThemesCommand, "nextToken", "nextToken", "maxResults");