@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.
- package/dist-cjs/pagination/ListAccessTokensPaginator.js +2 -24
- package/dist-cjs/pagination/ListDevEnvironmentSessionsPaginator.js +2 -24
- package/dist-cjs/pagination/ListDevEnvironmentsPaginator.js +2 -24
- package/dist-cjs/pagination/ListEventLogsPaginator.js +2 -24
- package/dist-cjs/pagination/ListProjectsPaginator.js +2 -24
- package/dist-cjs/pagination/ListSourceRepositoriesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSourceRepositoryBranchesPaginator.js +2 -24
- package/dist-cjs/pagination/ListSpacesPaginator.js +2 -23
- package/dist-cjs/pagination/ListWorkflowRunsPaginator.js +2 -24
- package/dist-cjs/pagination/ListWorkflowsPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +241 -527
- package/dist-es/pagination/ListAccessTokensPaginator.js +2 -23
- package/dist-es/pagination/ListDevEnvironmentSessionsPaginator.js +2 -23
- package/dist-es/pagination/ListDevEnvironmentsPaginator.js +2 -23
- package/dist-es/pagination/ListEventLogsPaginator.js +2 -23
- package/dist-es/pagination/ListProjectsPaginator.js +2 -23
- package/dist-es/pagination/ListSourceRepositoriesPaginator.js +2 -23
- package/dist-es/pagination/ListSourceRepositoryBranchesPaginator.js +2 -23
- package/dist-es/pagination/ListSpacesPaginator.js +2 -22
- package/dist-es/pagination/ListWorkflowRunsPaginator.js +2 -23
- package/dist-es/pagination/ListWorkflowsPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +242 -528
- package/dist-types/pagination/ListAccessTokensPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevEnvironmentSessionsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListDevEnvironmentsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListEventLogsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListProjectsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSourceRepositoriesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSourceRepositoryBranchesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSpacesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListWorkflowsPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAccessTokensPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevEnvironmentSessionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListDevEnvironmentsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListEventLogsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListProjectsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSourceRepositoriesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSourceRepositoryBranchesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListSpacesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListWorkflowsPaginator.d.ts +3 -3
- package/package.json +6 -6
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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");
|