@aws-sdk/client-service-catalog-appregistry 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 (23) hide show
  1. package/dist-cjs/pagination/ListApplicationsPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListAssociatedAttributeGroupsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListAssociatedResourcesPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListAttributeGroupsForApplicationPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListAttributeGroupsPaginator.js +2 -24
  6. package/dist-cjs/protocols/Aws_restJson1.js +143 -324
  7. package/dist-es/pagination/ListApplicationsPaginator.js +2 -23
  8. package/dist-es/pagination/ListAssociatedAttributeGroupsPaginator.js +2 -23
  9. package/dist-es/pagination/ListAssociatedResourcesPaginator.js +2 -23
  10. package/dist-es/pagination/ListAttributeGroupsForApplicationPaginator.js +2 -23
  11. package/dist-es/pagination/ListAttributeGroupsPaginator.js +2 -23
  12. package/dist-es/protocols/Aws_restJson1.js +144 -325
  13. package/dist-types/pagination/ListApplicationsPaginator.d.ts +1 -1
  14. package/dist-types/pagination/ListAssociatedAttributeGroupsPaginator.d.ts +1 -1
  15. package/dist-types/pagination/ListAssociatedResourcesPaginator.d.ts +1 -1
  16. package/dist-types/pagination/ListAttributeGroupsForApplicationPaginator.d.ts +1 -1
  17. package/dist-types/pagination/ListAttributeGroupsPaginator.d.ts +1 -1
  18. package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +3 -3
  19. package/dist-types/ts3.4/pagination/ListAssociatedAttributeGroupsPaginator.d.ts +3 -3
  20. package/dist-types/ts3.4/pagination/ListAssociatedResourcesPaginator.d.ts +3 -3
  21. package/dist-types/ts3.4/pagination/ListAttributeGroupsForApplicationPaginator.d.ts +3 -3
  22. package/dist-types/ts3.4/pagination/ListAttributeGroupsPaginator.d.ts +3 -3
  23. package/package.json +7 -6
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListApplications = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListApplicationsCommand_1 = require("../commands/ListApplicationsCommand");
5
6
  const ServiceCatalogAppRegistryClient_1 = require("../ServiceCatalogAppRegistryClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListApplicationsCommand_1.ListApplicationsCommand(input), ...args);
8
- };
9
- async function* paginateListApplications(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 ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
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.paginateListApplications = paginateListApplications;
7
+ exports.paginateListApplications = (0, core_1.createPaginator)(ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient, ListApplicationsCommand_1.ListApplicationsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssociatedAttributeGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAssociatedAttributeGroupsCommand_1 = require("../commands/ListAssociatedAttributeGroupsCommand");
5
6
  const ServiceCatalogAppRegistryClient_1 = require("../ServiceCatalogAppRegistryClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAssociatedAttributeGroupsCommand_1.ListAssociatedAttributeGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListAssociatedAttributeGroups(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 ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
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.paginateListAssociatedAttributeGroups = paginateListAssociatedAttributeGroups;
7
+ exports.paginateListAssociatedAttributeGroups = (0, core_1.createPaginator)(ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient, ListAssociatedAttributeGroupsCommand_1.ListAssociatedAttributeGroupsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAssociatedResources = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAssociatedResourcesCommand_1 = require("../commands/ListAssociatedResourcesCommand");
5
6
  const ServiceCatalogAppRegistryClient_1 = require("../ServiceCatalogAppRegistryClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAssociatedResourcesCommand_1.ListAssociatedResourcesCommand(input), ...args);
8
- };
9
- async function* paginateListAssociatedResources(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 ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
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.paginateListAssociatedResources = paginateListAssociatedResources;
7
+ exports.paginateListAssociatedResources = (0, core_1.createPaginator)(ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient, ListAssociatedResourcesCommand_1.ListAssociatedResourcesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAttributeGroupsForApplication = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAttributeGroupsForApplicationCommand_1 = require("../commands/ListAttributeGroupsForApplicationCommand");
5
6
  const ServiceCatalogAppRegistryClient_1 = require("../ServiceCatalogAppRegistryClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAttributeGroupsForApplicationCommand_1.ListAttributeGroupsForApplicationCommand(input), ...args);
8
- };
9
- async function* paginateListAttributeGroupsForApplication(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 ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
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.paginateListAttributeGroupsForApplication = paginateListAttributeGroupsForApplication;
7
+ exports.paginateListAttributeGroupsForApplication = (0, core_1.createPaginator)(ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient, ListAttributeGroupsForApplicationCommand_1.ListAttributeGroupsForApplicationCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAttributeGroups = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const ListAttributeGroupsCommand_1 = require("../commands/ListAttributeGroupsCommand");
5
6
  const ServiceCatalogAppRegistryClient_1 = require("../ServiceCatalogAppRegistryClient");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAttributeGroupsCommand_1.ListAttributeGroupsCommand(input), ...args);
8
- };
9
- async function* paginateListAttributeGroups(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 ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected ServiceCatalogAppRegistry | ServiceCatalogAppRegistryClient");
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.paginateListAttributeGroups = paginateListAttributeGroups;
7
+ exports.paginateListAttributeGroups = (0, core_1.createPaginator)(ServiceCatalogAppRegistryClient_1.ServiceCatalogAppRegistryClient, ListAttributeGroupsCommand_1.ListAttributeGroupsCommand, "nextToken", "nextToken", "maxResults");