@aws-sdk/client-codecatalyst 3.477.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 (41) hide show
  1. package/dist-cjs/pagination/ListAccessTokensPaginator.js +2 -24
  2. package/dist-cjs/pagination/ListDevEnvironmentSessionsPaginator.js +2 -24
  3. package/dist-cjs/pagination/ListDevEnvironmentsPaginator.js +2 -24
  4. package/dist-cjs/pagination/ListEventLogsPaginator.js +2 -24
  5. package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
  6. package/dist-cjs/pagination/ListSourceRepositoriesPaginator.js +2 -24
  7. package/dist-cjs/pagination/ListSourceRepositoryBranchesPaginator.js +2 -24
  8. package/dist-cjs/pagination/ListSpacesPaginator.js +2 -23
  9. package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +2 -24
  10. package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
  11. package/dist-es/pagination/ListAccessTokensPaginator.js +2 -23
  12. package/dist-es/pagination/ListDevEnvironmentSessionsPaginator.js +2 -23
  13. package/dist-es/pagination/ListDevEnvironmentsPaginator.js +2 -23
  14. package/dist-es/pagination/ListEventLogsPaginator.js +2 -23
  15. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  16. package/dist-es/pagination/ListSourceRepositoriesPaginator.js +2 -23
  17. package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +2 -23
  18. package/dist-es/pagination/ListSpacesPaginator.js +2 -22
  19. package/dist-es/pagination/ListWorkflowRunsPaginator.js +2 -23
  20. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  21. package/dist-types/pagination/ListAccessTokensPaginator.d.ts +1 -1
  22. package/dist-types/pagination/ListDevEnvironmentSessionsPaginator.d.ts +1 -1
  23. package/dist-types/pagination/ListDevEnvironmentsPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListEventLogsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListSourceRepositoriesPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListSourceRepositoryBranchesPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListSpacesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  31. package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +3 -3
  32. package/dist-types/ts3.4/pagination/ListDevEnvironmentSessionsPaginator.d.ts +3 -3
  33. package/dist-types/ts3.4/pagination/ListDevEnvironmentsPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListEventLogsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListSourceRepositoriesPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListSourceRepositoryBranchesPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  41. package/package.json +4 -4
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListAccessTokens = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListAccessTokensCommand_1 = require("../commands/ListAccessTokensCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListAccessTokensCommand_1.ListAccessTokensCommand(input), ...args);
8
- };
9
- async function* paginateListAccessTokens(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListAccessTokens = paginateListAccessTokens;
7
+ exports.paginateListAccessTokens = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListAccessTokensCommand_1.ListAccessTokensCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDevEnvironmentSessions = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListDevEnvironmentSessionsCommand_1 = require("../commands/ListDevEnvironmentSessionsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDevEnvironmentSessionsCommand_1.ListDevEnvironmentSessionsCommand(input), ...args);
8
- };
9
- async function* paginateListDevEnvironmentSessions(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListDevEnvironmentSessions = paginateListDevEnvironmentSessions;
7
+ exports.paginateListDevEnvironmentSessions = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListDevEnvironmentSessionsCommand_1.ListDevEnvironmentSessionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListDevEnvironments = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListDevEnvironmentsCommand_1 = require("../commands/ListDevEnvironmentsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand(input), ...args);
8
- };
9
- async function* paginateListDevEnvironments(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListDevEnvironments = paginateListDevEnvironments;
7
+ exports.paginateListDevEnvironments = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListDevEnvironmentsCommand_1.ListDevEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListEventLogs = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListEventLogsCommand_1 = require("../commands/ListEventLogsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListEventLogsCommand_1.ListEventLogsCommand(input), ...args);
8
- };
9
- async function* paginateListEventLogs(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListEventLogs = paginateListEventLogs;
7
+ exports.paginateListEventLogs = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListEventLogsCommand_1.ListEventLogsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListProjects = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListProjectsCommand_1 = require("../commands/ListProjectsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListProjectsCommand_1.ListProjectsCommand(input), ...args);
8
- };
9
- async function* paginateListProjects(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListProjects = paginateListProjects;
7
+ exports.paginateListProjects = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListProjectsCommand_1.ListProjectsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSourceRepositories = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListSourceRepositoriesCommand_1 = require("../commands/ListSourceRepositoriesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand(input), ...args);
8
- };
9
- async function* paginateListSourceRepositories(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListSourceRepositories = paginateListSourceRepositories;
7
+ exports.paginateListSourceRepositories = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListSourceRepositoriesCommand_1.ListSourceRepositoriesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSourceRepositoryBranches = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListSourceRepositoryBranchesCommand_1 = require("../commands/ListSourceRepositoryBranchesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand(input), ...args);
8
- };
9
- async function* paginateListSourceRepositoryBranches(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListSourceRepositoryBranches = paginateListSourceRepositoryBranches;
7
+ exports.paginateListSourceRepositoryBranches = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListSourceRepositoryBranchesCommand_1.ListSourceRepositoryBranchesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,28 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListSpaces = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListSpacesCommand_1 = require("../commands/ListSpacesCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListSpacesCommand_1.ListSpacesCommand(input), ...args);
8
- };
9
- async function* paginateListSpaces(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 CodeCatalystClient_1.CodeCatalystClient) {
16
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
17
- }
18
- else {
19
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListSpaces = paginateListSpaces;
7
+ exports.paginateListSpaces = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListSpacesCommand_1.ListSpacesCommand, "nextToken", "nextToken", "");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkflowRuns = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListWorkflowRunsCommand_1 = require("../commands/ListWorkflowRunsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkflowRunsCommand_1.ListWorkflowRunsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkflowRuns(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListWorkflowRuns = paginateListWorkflowRuns;
7
+ exports.paginateListWorkflowRuns = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListWorkflowRunsCommand_1.ListWorkflowRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,29 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.paginateListWorkflows = void 0;
4
+ const core_1 = require("@smithy/core");
4
5
  const CodeCatalystClient_1 = require("../CodeCatalystClient");
5
6
  const ListWorkflowsCommand_1 = require("../commands/ListWorkflowsCommand");
6
- const makePagedClientRequest = async (client, input, ...args) => {
7
- return await client.send(new ListWorkflowsCommand_1.ListWorkflowsCommand(input), ...args);
8
- };
9
- async function* paginateListWorkflows(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 CodeCatalystClient_1.CodeCatalystClient) {
17
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
- }
19
- else {
20
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
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.paginateListWorkflows = paginateListWorkflows;
7
+ exports.paginateListWorkflows = (0, core_1.createPaginator)(CodeCatalystClient_1.CodeCatalystClient, ListWorkflowsCommand_1.ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListAccessTokensCommand, } from "../commands/ListAccessTokensCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListAccessTokensCommand(input), ...args);
5
- };
6
- export async function* paginateListAccessTokens(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListAccessTokens = createPaginator(CodeCatalystClient, ListAccessTokensCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListDevEnvironmentSessionsCommand, } from "../commands/ListDevEnvironmentSessionsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDevEnvironmentSessionsCommand(input), ...args);
5
- };
6
- export async function* paginateListDevEnvironmentSessions(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListDevEnvironmentSessions = createPaginator(CodeCatalystClient, ListDevEnvironmentSessionsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListDevEnvironmentsCommand, } from "../commands/ListDevEnvironmentsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListDevEnvironmentsCommand(input), ...args);
5
- };
6
- export async function* paginateListDevEnvironments(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListDevEnvironments = createPaginator(CodeCatalystClient, ListDevEnvironmentsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListEventLogsCommand, } from "../commands/ListEventLogsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListEventLogsCommand(input), ...args);
5
- };
6
- export async function* paginateListEventLogs(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListEventLogs = createPaginator(CodeCatalystClient, ListEventLogsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListProjectsCommand, } from "../commands/ListProjectsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListProjectsCommand(input), ...args);
5
- };
6
- export async function* paginateListProjects(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListProjects = createPaginator(CodeCatalystClient, ListProjectsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListSourceRepositoriesCommand, } from "../commands/ListSourceRepositoriesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSourceRepositoriesCommand(input), ...args);
5
- };
6
- export async function* paginateListSourceRepositories(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSourceRepositories = createPaginator(CodeCatalystClient, ListSourceRepositoriesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListSourceRepositoryBranchesCommand, } from "../commands/ListSourceRepositoryBranchesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSourceRepositoryBranchesCommand(input), ...args);
5
- };
6
- export async function* paginateListSourceRepositoryBranches(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListSourceRepositoryBranches = createPaginator(CodeCatalystClient, ListSourceRepositoryBranchesCommand, "nextToken", "nextToken", "maxResults");
@@ -1,24 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListSpacesCommand } from "../commands/ListSpacesCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListSpacesCommand(input), ...args);
5
- };
6
- export async function* paginateListSpaces(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- if (config.client instanceof CodeCatalystClient) {
13
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
14
- }
15
- else {
16
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
17
- }
18
- yield page;
19
- const prevToken = token;
20
- token = page.nextToken;
21
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
22
- }
23
- return undefined;
24
- }
4
+ export const paginateListSpaces = createPaginator(CodeCatalystClient, ListSpacesCommand, "nextToken", "nextToken", "");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListWorkflowRunsCommand, } from "../commands/ListWorkflowRunsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowRunsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflowRuns(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListWorkflowRuns = createPaginator(CodeCatalystClient, ListWorkflowRunsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,25 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
1
2
  import { CodeCatalystClient } from "../CodeCatalystClient";
2
3
  import { ListWorkflowsCommand, } from "../commands/ListWorkflowsCommand";
3
- const makePagedClientRequest = async (client, input, ...args) => {
4
- return await client.send(new ListWorkflowsCommand(input), ...args);
5
- };
6
- export async function* paginateListWorkflows(config, input, ...additionalArguments) {
7
- let token = config.startingToken || undefined;
8
- let hasNext = true;
9
- let page;
10
- while (hasNext) {
11
- input.nextToken = token;
12
- input["maxResults"] = config.pageSize;
13
- if (config.client instanceof CodeCatalystClient) {
14
- page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
- }
16
- else {
17
- throw new Error("Invalid client, expected CodeCatalyst | CodeCatalystClient");
18
- }
19
- yield page;
20
- const prevToken = token;
21
- token = page.nextToken;
22
- hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
- }
24
- return undefined;
25
- }
4
+ export const paginateListWorkflows = createPaginator(CodeCatalystClient, ListWorkflowsCommand, "nextToken", "nextToken", "maxResults");
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListAccessTokens(config: CodeCatalystPaginationConfiguration, input: ListAccessTokensCommandInput, ...additionalArguments: any): Paginator<ListAccessTokensCommandOutput>;
7
+ export declare const paginateListAccessTokens: (config: CodeCatalystPaginationConfiguration, input: ListAccessTokensCommandInput, ...rest: any[]) => Paginator<ListAccessTokensCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDevEnvironmentSessions(config: CodeCatalystPaginationConfiguration, input: ListDevEnvironmentSessionsCommandInput, ...additionalArguments: any): Paginator<ListDevEnvironmentSessionsCommandOutput>;
7
+ export declare const paginateListDevEnvironmentSessions: (config: CodeCatalystPaginationConfiguration, input: ListDevEnvironmentSessionsCommandInput, ...rest: any[]) => Paginator<ListDevEnvironmentSessionsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListDevEnvironments(config: CodeCatalystPaginationConfiguration, input: ListDevEnvironmentsCommandInput, ...additionalArguments: any): Paginator<ListDevEnvironmentsCommandOutput>;
7
+ export declare const paginateListDevEnvironments: (config: CodeCatalystPaginationConfiguration, input: ListDevEnvironmentsCommandInput, ...rest: any[]) => Paginator<ListDevEnvironmentsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListEventLogs(config: CodeCatalystPaginationConfiguration, input: ListEventLogsCommandInput, ...additionalArguments: any): Paginator<ListEventLogsCommandOutput>;
7
+ export declare const paginateListEventLogs: (config: CodeCatalystPaginationConfiguration, input: ListEventLogsCommandInput, ...rest: any[]) => Paginator<ListEventLogsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListProjects(config: CodeCatalystPaginationConfiguration, input: ListProjectsCommandInput, ...additionalArguments: any): Paginator<ListProjectsCommandOutput>;
7
+ export declare const paginateListProjects: (config: CodeCatalystPaginationConfiguration, input: ListProjectsCommandInput, ...rest: any[]) => Paginator<ListProjectsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSourceRepositories(config: CodeCatalystPaginationConfiguration, input: ListSourceRepositoriesCommandInput, ...additionalArguments: any): Paginator<ListSourceRepositoriesCommandOutput>;
7
+ export declare const paginateListSourceRepositories: (config: CodeCatalystPaginationConfiguration, input: ListSourceRepositoriesCommandInput, ...rest: any[]) => Paginator<ListSourceRepositoriesCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSourceRepositoryBranches(config: CodeCatalystPaginationConfiguration, input: ListSourceRepositoryBranchesCommandInput, ...additionalArguments: any): Paginator<ListSourceRepositoryBranchesCommandOutput>;
7
+ export declare const paginateListSourceRepositoryBranches: (config: CodeCatalystPaginationConfiguration, input: ListSourceRepositoryBranchesCommandInput, ...rest: any[]) => Paginator<ListSourceRepositoryBranchesCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListSpaces(config: CodeCatalystPaginationConfiguration, input: ListSpacesCommandInput, ...additionalArguments: any): Paginator<ListSpacesCommandOutput>;
7
+ export declare const paginateListSpaces: (config: CodeCatalystPaginationConfiguration, input: ListSpacesCommandInput, ...rest: any[]) => Paginator<ListSpacesCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListWorkflowRuns(config: CodeCatalystPaginationConfiguration, input: ListWorkflowRunsCommandInput, ...additionalArguments: any): Paginator<ListWorkflowRunsCommandOutput>;
7
+ export declare const paginateListWorkflowRuns: (config: CodeCatalystPaginationConfiguration, input: ListWorkflowRunsCommandInput, ...rest: any[]) => Paginator<ListWorkflowRunsCommandOutput>;
@@ -4,4 +4,4 @@ import { CodeCatalystPaginationConfiguration } from "./Interfaces";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare function paginateListWorkflows(config: CodeCatalystPaginationConfiguration, input: ListWorkflowsCommandInput, ...additionalArguments: any): Paginator<ListWorkflowsCommandOutput>;
7
+ export declare const paginateListWorkflows: (config: CodeCatalystPaginationConfiguration, input: ListWorkflowsCommandInput, ...rest: any[]) => Paginator<ListWorkflowsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListAccessTokensCommandOutput,
5
5
  } from "../commands/ListAccessTokensCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListAccessTokens(
7
+ export declare const paginateListAccessTokens: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListAccessTokensCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListAccessTokensCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListAccessTokensCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDevEnvironmentSessionsCommandOutput,
5
5
  } from "../commands/ListDevEnvironmentSessionsCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDevEnvironmentSessions(
7
+ export declare const paginateListDevEnvironmentSessions: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListDevEnvironmentSessionsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDevEnvironmentSessionsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDevEnvironmentSessionsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListDevEnvironmentsCommandOutput,
5
5
  } from "../commands/ListDevEnvironmentsCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListDevEnvironments(
7
+ export declare const paginateListDevEnvironments: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListDevEnvironmentsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListDevEnvironmentsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListDevEnvironmentsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListEventLogsCommandOutput,
5
5
  } from "../commands/ListEventLogsCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListEventLogs(
7
+ export declare const paginateListEventLogs: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListEventLogsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListEventLogsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListEventLogsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListProjectsCommandOutput,
5
5
  } from "../commands/ListProjectsCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListProjects(
7
+ export declare const paginateListProjects: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListProjectsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListProjectsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListProjectsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListSourceRepositoriesCommandOutput,
5
5
  } from "../commands/ListSourceRepositoriesCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListSourceRepositories(
7
+ export declare const paginateListSourceRepositories: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListSourceRepositoriesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListSourceRepositoriesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListSourceRepositoriesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListSourceRepositoryBranchesCommandOutput,
5
5
  } from "../commands/ListSourceRepositoryBranchesCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListSourceRepositoryBranches(
7
+ export declare const paginateListSourceRepositoryBranches: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListSourceRepositoryBranchesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListSourceRepositoryBranchesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListSourceRepositoryBranchesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListSpacesCommandOutput,
5
5
  } from "../commands/ListSpacesCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListSpaces(
7
+ export declare const paginateListSpaces: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListSpacesCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListSpacesCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListSpacesCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListWorkflowRunsCommandOutput,
5
5
  } from "../commands/ListWorkflowRunsCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListWorkflowRuns(
7
+ export declare const paginateListWorkflowRuns: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListWorkflowRunsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListWorkflowRunsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListWorkflowRunsCommandOutput>;
@@ -4,8 +4,8 @@ import {
4
4
  ListWorkflowsCommandOutput,
5
5
  } from "../commands/ListWorkflowsCommand";
6
6
  import { CodeCatalystPaginationConfiguration } from "./Interfaces";
7
- export declare function paginateListWorkflows(
7
+ export declare const paginateListWorkflows: (
8
8
  config: CodeCatalystPaginationConfiguration,
9
9
  input: ListWorkflowsCommandInput,
10
- ...additionalArguments: any
11
- ): Paginator<ListWorkflowsCommandOutput>;
10
+ ...rest: any[]
11
+ ) => Paginator<ListWorkflowsCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codecatalyst",
3
3
  "description": "AWS SDK for JavaScript Codecatalyst Client for Node.js, Browser and React Native",
4
- "version": "3.477.0",
4
+ "version": "3.478.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -24,11 +24,11 @@
24
24
  "@aws-sdk/middleware-host-header": "3.468.0",
25
25
  "@aws-sdk/middleware-logger": "3.468.0",
26
26
  "@aws-sdk/middleware-recursion-detection": "3.468.0",
27
- "@aws-sdk/middleware-user-agent": "3.470.0",
27
+ "@aws-sdk/middleware-user-agent": "3.478.0",
28
28
  "@aws-sdk/region-config-resolver": "3.470.0",
29
- "@aws-sdk/token-providers": "3.470.0",
29
+ "@aws-sdk/token-providers": "3.478.0",
30
30
  "@aws-sdk/types": "3.468.0",
31
- "@aws-sdk/util-endpoints": "3.470.0",
31
+ "@aws-sdk/util-endpoints": "3.478.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.468.0",
33
33
  "@aws-sdk/util-user-agent-node": "3.470.0",
34
34
  "@smithy/config-resolver": "^2.0.21",