@aws-sdk/client-codecatalyst 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 (43) 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-cjs/protocols/Aws_restJson1.js +241 -527
  12. package/dist-es/pagination/ListAccessTokensPaginator.js +2 -23
  13. package/dist-es/pagination/ListDevEnvironmentSessionsPaginator.js +2 -23
  14. package/dist-es/pagination/ListDevEnvironmentsPaginator.js +2 -23
  15. package/dist-es/pagination/ListEventLogsPaginator.js +2 -23
  16. package/dist-es/pagination/ListProjectsPaginator.js +2 -23
  17. package/dist-es/pagination/ListSourceRepositoriesPaginator.js +2 -23
  18. package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +2 -23
  19. package/dist-es/pagination/ListSpacesPaginator.js +2 -22
  20. package/dist-es/pagination/ListWorkflowRunsPaginator.js +2 -23
  21. package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
  22. package/dist-es/protocols/Aws_restJson1.js +242 -528
  23. package/dist-types/pagination/ListAccessTokensPaginator.d.ts +1 -1
  24. package/dist-types/pagination/ListDevEnvironmentSessionsPaginator.d.ts +1 -1
  25. package/dist-types/pagination/ListDevEnvironmentsPaginator.d.ts +1 -1
  26. package/dist-types/pagination/ListEventLogsPaginator.d.ts +1 -1
  27. package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
  28. package/dist-types/pagination/ListSourceRepositoriesPaginator.d.ts +1 -1
  29. package/dist-types/pagination/ListSourceRepositoryBranchesPaginator.d.ts +1 -1
  30. package/dist-types/pagination/ListSpacesPaginator.d.ts +1 -1
  31. package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +1 -1
  32. package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
  33. package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +3 -3
  34. package/dist-types/ts3.4/pagination/ListDevEnvironmentSessionsPaginator.d.ts +3 -3
  35. package/dist-types/ts3.4/pagination/ListDevEnvironmentsPaginator.d.ts +3 -3
  36. package/dist-types/ts3.4/pagination/ListEventLogsPaginator.d.ts +3 -3
  37. package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
  38. package/dist-types/ts3.4/pagination/ListSourceRepositoriesPaginator.d.ts +3 -3
  39. package/dist-types/ts3.4/pagination/ListSourceRepositoryBranchesPaginator.d.ts +3 -3
  40. package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +3 -3
  41. package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +3 -3
  42. package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
  43. package/package.json +6 -6
@@ -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");