@aws-sdk/client-codecommit 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/DescribeMergeConflictsPaginator.js +2 -24
- package/dist-cjs/pagination/DescribePullRequestEventsPaginator.js +2 -24
- package/dist-cjs/pagination/GetCommentReactionsPaginator.js +2 -24
- package/dist-cjs/pagination/GetCommentsForComparedCommitPaginator.js +2 -24
- package/dist-cjs/pagination/GetCommentsForPullRequestPaginator.js +2 -24
- package/dist-cjs/pagination/GetDifferencesPaginator.js +2 -24
- package/dist-cjs/pagination/GetMergeConflictsPaginator.js +2 -24
- package/dist-cjs/pagination/ListApprovalRuleTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListBranchesPaginator.js +2 -23
- package/dist-cjs/pagination/ListFileCommitHistoryPaginator.js +2 -24
- package/dist-cjs/pagination/ListPullRequestsPaginator.js +2 -24
- package/dist-cjs/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -24
- package/dist-cjs/pagination/ListRepositoriesPaginator.js +2 -23
- package/dist-es/pagination/DescribeMergeConflictsPaginator.js +2 -23
- package/dist-es/pagination/DescribePullRequestEventsPaginator.js +2 -23
- package/dist-es/pagination/GetCommentReactionsPaginator.js +2 -23
- package/dist-es/pagination/GetCommentsForComparedCommitPaginator.js +2 -23
- package/dist-es/pagination/GetCommentsForPullRequestPaginator.js +2 -23
- package/dist-es/pagination/GetDifferencesPaginator.js +2 -23
- package/dist-es/pagination/GetMergeConflictsPaginator.js +2 -23
- package/dist-es/pagination/ListApprovalRuleTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.js +2 -23
- package/dist-es/pagination/ListBranchesPaginator.js +2 -22
- package/dist-es/pagination/ListFileCommitHistoryPaginator.js +2 -23
- package/dist-es/pagination/ListPullRequestsPaginator.js +2 -23
- package/dist-es/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.js +2 -23
- package/dist-es/pagination/ListRepositoriesPaginator.js +2 -22
- package/dist-types/pagination/DescribeMergeConflictsPaginator.d.ts +1 -1
- package/dist-types/pagination/DescribePullRequestEventsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCommentReactionsPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCommentsForComparedCommitPaginator.d.ts +1 -1
- package/dist-types/pagination/GetCommentsForPullRequestPaginator.d.ts +1 -1
- package/dist-types/pagination/GetDifferencesPaginator.d.ts +1 -1
- package/dist-types/pagination/GetMergeConflictsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListApprovalRuleTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListBranchesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListFileCommitHistoryPaginator.d.ts +1 -1
- package/dist-types/pagination/ListPullRequestsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +1 -1
- package/dist-types/pagination/ListRepositoriesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/DescribeMergeConflictsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/DescribePullRequestEventsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCommentReactionsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCommentsForComparedCommitPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetCommentsForPullRequestPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetDifferencesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/GetMergeConflictsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListApprovalRuleTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAssociatedApprovalRuleTemplatesForRepositoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListBranchesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListFileCommitHistoryPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListPullRequestsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRepositoriesForApprovalRuleTemplatePaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListRepositoriesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribeMergeConflicts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const DescribeMergeConflictsCommand_1 = require("../commands/DescribeMergeConflictsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribeMergeConflictsCommand_1.DescribeMergeConflictsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribeMergeConflicts(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["maxMergeHunks"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateDescribeMergeConflicts = paginateDescribeMergeConflicts;
|
|
7
|
+
exports.paginateDescribeMergeConflicts = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, DescribeMergeConflictsCommand_1.DescribeMergeConflictsCommand, "nextToken", "nextToken", "maxMergeHunks");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateDescribePullRequestEvents = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const DescribePullRequestEventsCommand_1 = require("../commands/DescribePullRequestEventsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new DescribePullRequestEventsCommand_1.DescribePullRequestEventsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateDescribePullRequestEvents(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateDescribePullRequestEvents = paginateDescribePullRequestEvents;
|
|
7
|
+
exports.paginateDescribePullRequestEvents = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, DescribePullRequestEventsCommand_1.DescribePullRequestEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetCommentReactions = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const GetCommentReactionsCommand_1 = require("../commands/GetCommentReactionsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetCommentReactionsCommand_1.GetCommentReactionsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetCommentReactions(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateGetCommentReactions = paginateGetCommentReactions;
|
|
7
|
+
exports.paginateGetCommentReactions = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetCommentReactionsCommand_1.GetCommentReactionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetCommentsForComparedCommit = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const GetCommentsForComparedCommitCommand_1 = require("../commands/GetCommentsForComparedCommitCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetCommentsForComparedCommitCommand_1.GetCommentsForComparedCommitCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetCommentsForComparedCommit(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateGetCommentsForComparedCommit = paginateGetCommentsForComparedCommit;
|
|
7
|
+
exports.paginateGetCommentsForComparedCommit = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetCommentsForComparedCommitCommand_1.GetCommentsForComparedCommitCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetCommentsForPullRequest = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const GetCommentsForPullRequestCommand_1 = require("../commands/GetCommentsForPullRequestCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetCommentsForPullRequestCommand_1.GetCommentsForPullRequestCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetCommentsForPullRequest(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateGetCommentsForPullRequest = paginateGetCommentsForPullRequest;
|
|
7
|
+
exports.paginateGetCommentsForPullRequest = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetCommentsForPullRequestCommand_1.GetCommentsForPullRequestCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetDifferences = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const GetDifferencesCommand_1 = require("../commands/GetDifferencesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetDifferencesCommand_1.GetDifferencesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetDifferences(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateGetDifferences = paginateGetDifferences;
|
|
7
|
+
exports.paginateGetDifferences = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetDifferencesCommand_1.GetDifferencesCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateGetMergeConflicts = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const GetMergeConflictsCommand_1 = require("../commands/GetMergeConflictsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new GetMergeConflictsCommand_1.GetMergeConflictsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateGetMergeConflicts(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["maxConflictFiles"] = config.pageSize;
|
|
16
|
-
if (config.client instanceof CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateGetMergeConflicts = paginateGetMergeConflicts;
|
|
7
|
+
exports.paginateGetMergeConflicts = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, GetMergeConflictsCommand_1.GetMergeConflictsCommand, "nextToken", "nextToken", "maxConflictFiles");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListApprovalRuleTemplates = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const ListApprovalRuleTemplatesCommand_1 = require("../commands/ListApprovalRuleTemplatesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListApprovalRuleTemplatesCommand_1.ListApprovalRuleTemplatesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListApprovalRuleTemplates(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateListApprovalRuleTemplates = paginateListApprovalRuleTemplates;
|
|
7
|
+
exports.paginateListApprovalRuleTemplates = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListApprovalRuleTemplatesCommand_1.ListApprovalRuleTemplatesCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListAssociatedApprovalRuleTemplatesForRepository = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1 = require("../commands/ListAssociatedApprovalRuleTemplatesForRepositoryCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1.ListAssociatedApprovalRuleTemplatesForRepositoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListAssociatedApprovalRuleTemplatesForRepository(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateListAssociatedApprovalRuleTemplatesForRepository = paginateListAssociatedApprovalRuleTemplatesForRepository;
|
|
7
|
+
exports.paginateListAssociatedApprovalRuleTemplatesForRepository = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListAssociatedApprovalRuleTemplatesForRepositoryCommand_1.ListAssociatedApprovalRuleTemplatesForRepositoryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListBranches = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const ListBranchesCommand_1 = require("../commands/ListBranchesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListBranchesCommand_1.ListBranchesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListBranches(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 CodeCommitClient_1.CodeCommitClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateListBranches = paginateListBranches;
|
|
7
|
+
exports.paginateListBranches = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListBranchesCommand_1.ListBranchesCommand, "nextToken", "nextToken", "");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListFileCommitHistory = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const ListFileCommitHistoryCommand_1 = require("../commands/ListFileCommitHistoryCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListFileCommitHistoryCommand_1.ListFileCommitHistoryCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListFileCommitHistory(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateListFileCommitHistory = paginateListFileCommitHistory;
|
|
7
|
+
exports.paginateListFileCommitHistory = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListFileCommitHistoryCommand_1.ListFileCommitHistoryCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListPullRequests = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const ListPullRequestsCommand_1 = require("../commands/ListPullRequestsCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListPullRequestsCommand_1.ListPullRequestsCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListPullRequests(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateListPullRequests = paginateListPullRequests;
|
|
7
|
+
exports.paginateListPullRequests = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListPullRequestsCommand_1.ListPullRequestsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,29 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRepositoriesForApprovalRuleTemplate = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const ListRepositoriesForApprovalRuleTemplateCommand_1 = require("../commands/ListRepositoriesForApprovalRuleTemplateCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRepositoriesForApprovalRuleTemplateCommand_1.ListRepositoriesForApprovalRuleTemplateCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRepositoriesForApprovalRuleTemplate(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 CodeCommitClient_1.CodeCommitClient) {
|
|
17
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateListRepositoriesForApprovalRuleTemplate = paginateListRepositoriesForApprovalRuleTemplate;
|
|
7
|
+
exports.paginateListRepositoriesForApprovalRuleTemplate = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListRepositoriesForApprovalRuleTemplateCommand_1.ListRepositoriesForApprovalRuleTemplateCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.paginateListRepositories = void 0;
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
4
5
|
const CodeCommitClient_1 = require("../CodeCommitClient");
|
|
5
6
|
const ListRepositoriesCommand_1 = require("../commands/ListRepositoriesCommand");
|
|
6
|
-
|
|
7
|
-
return await client.send(new ListRepositoriesCommand_1.ListRepositoriesCommand(input), ...args);
|
|
8
|
-
};
|
|
9
|
-
async function* paginateListRepositories(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 CodeCommitClient_1.CodeCommitClient) {
|
|
16
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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.paginateListRepositories = paginateListRepositories;
|
|
7
|
+
exports.paginateListRepositories = (0, core_1.createPaginator)(CodeCommitClient_1.CodeCommitClient, ListRepositoriesCommand_1.ListRepositoriesCommand, "nextToken", "nextToken", "");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { DescribeMergeConflictsCommand, } from "../commands/DescribeMergeConflictsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribeMergeConflictsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribeMergeConflicts(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["maxMergeHunks"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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 paginateDescribeMergeConflicts = createPaginator(CodeCommitClient, DescribeMergeConflictsCommand, "nextToken", "nextToken", "maxMergeHunks");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { DescribePullRequestEventsCommand, } from "../commands/DescribePullRequestEventsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new DescribePullRequestEventsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateDescribePullRequestEvents(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 CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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 paginateDescribePullRequestEvents = createPaginator(CodeCommitClient, DescribePullRequestEventsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { GetCommentReactionsCommand, } from "../commands/GetCommentReactionsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetCommentReactionsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetCommentReactions(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 CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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 paginateGetCommentReactions = createPaginator(CodeCommitClient, GetCommentReactionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { GetCommentsForComparedCommitCommand, } from "../commands/GetCommentsForComparedCommitCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetCommentsForComparedCommitCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetCommentsForComparedCommit(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 CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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 paginateGetCommentsForComparedCommit = createPaginator(CodeCommitClient, GetCommentsForComparedCommitCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { GetCommentsForPullRequestCommand, } from "../commands/GetCommentsForPullRequestCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetCommentsForPullRequestCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetCommentsForPullRequest(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 CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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 paginateGetCommentsForPullRequest = createPaginator(CodeCommitClient, GetCommentsForPullRequestCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { CodeCommitClient } from "../CodeCommitClient";
|
|
2
3
|
import { GetDifferencesCommand, } from "../commands/GetDifferencesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new GetDifferencesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateGetDifferences(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 CodeCommitClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected CodeCommit | CodeCommitClient");
|
|
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 paginateGetDifferences = createPaginator(CodeCommitClient, GetDifferencesCommand, "NextToken", "NextToken", "MaxResults");
|