@aws-sdk/client-codeguru-reviewer 3.34.0 → 3.37.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/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/CodeGuruReviewer.js +0 -19
- package/dist-cjs/CodeGuruReviewerClient.js +35 -0
- package/dist-cjs/commands/AssociateRepositoryCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/CreateCodeReviewCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/DescribeCodeReviewCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/DescribeRecommendationFeedbackCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/DescribeRepositoryAssociationCommand.js +2 -32
- package/{dist/cjs → dist-cjs}/commands/DisassociateRepositoryCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ListCodeReviewsCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/ListRecommendationFeedbackCommand.js +2 -33
- package/{dist/cjs → dist-cjs}/commands/ListRecommendationsCommand.js +2 -29
- package/dist-cjs/commands/ListRepositoryAssociationsCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/PutRecommendationFeedbackCommand.js +2 -29
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -184
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListCodeReviewsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListRecommendationFeedbackPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListRecommendationsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/pagination/ListRepositoryAssociationsPaginator.js +0 -11
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +5 -11
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/cjs → dist-cjs}/waiters/waitForCodeReviewCompleted.js +4 -14
- package/{dist/cjs → dist-cjs}/waiters/waitForRepositoryAssociationSucceeded.js +4 -14
- package/{dist/es → dist-es}/CodeGuruReviewer.js +0 -1
- package/{dist/es → dist-es}/CodeGuruReviewerClient.js +1 -2
- package/{dist/es → dist-es}/commands/AssociateRepositoryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateCodeReviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeCodeReviewCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeRecommendationFeedbackCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeRepositoryAssociationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DisassociateRepositoryCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListCodeReviewsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListRecommendationFeedbackCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListRecommendationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListRepositoryAssociationsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutRecommendationFeedbackCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListCodeReviewsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListRecommendationFeedbackPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListRecommendationsPaginator.js +0 -1
- package/{dist/es → dist-es}/pagination/ListRepositoryAssociationsPaginator.js +0 -1
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForCodeReviewCompleted.js +1 -2
- package/{dist/es → dist-es}/waiters/waitForRepositoryAssociationSucceeded.js +1 -2
- package/{dist/types → dist-types}/CodeGuruReviewer.d.ts +1 -1
- package/{dist/types → dist-types}/CodeGuruReviewerClient.d.ts +8 -8
- package/{dist/types → dist-types}/commands/AssociateRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/CreateCodeReviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeCodeReviewCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRecommendationFeedbackCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DescribeRepositoryAssociationCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DisassociateRepositoryCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListCodeReviewsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRecommendationFeedbackCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRecommendationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListRepositoryAssociationsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/PutRecommendationFeedbackCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListCodeReviewsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRecommendationFeedbackPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRecommendationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListRepositoryAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/CodeGuruReviewer.d.ts +16 -127
- package/{dist/types → dist-types}/ts3.4/CodeGuruReviewerClient.d.ts +32 -112
- package/dist-types/ts3.4/commands/AssociateRepositoryCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateCodeReviewCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCodeReviewCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DescribeRecommendationFeedbackCommand.d.ts +4 -24
- package/dist-types/ts3.4/commands/DescribeRepositoryAssociationCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/DisassociateRepositoryCommand.d.ts +4 -22
- package/dist-types/ts3.4/commands/ListCodeReviewsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecommendationFeedbackCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRepositoryAssociationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutRecommendationFeedbackCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +838 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListCodeReviewsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRecommendationFeedbackPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRecommendationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListRepositoryAssociationsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +3 -7
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/waiters/waitForCodeReviewCompleted.d.ts +3 -10
- package/{dist/types → dist-types}/ts3.4/waiters/waitForRepositoryAssociationSucceeded.d.ts +3 -10
- package/{dist/types → dist-types}/waiters/waitForCodeReviewCompleted.d.ts +1 -1
- package/{dist/types → dist-types}/waiters/waitForRepositoryAssociationSucceeded.d.ts +1 -1
- package/package.json +46 -43
- package/CodeGuruReviewer.ts +0 -596
- package/CodeGuruReviewerClient.ts +0 -319
- package/commands/AssociateRepositoryCommand.ts +0 -118
- package/commands/CreateCodeReviewCommand.ts +0 -100
- package/commands/DescribeCodeReviewCommand.ts +0 -94
- package/commands/DescribeRecommendationFeedbackCommand.ts +0 -104
- package/commands/DescribeRepositoryAssociationCommand.ts +0 -104
- package/commands/DisassociateRepositoryCommand.ts +0 -94
- package/commands/ListCodeReviewsCommand.ts +0 -96
- package/commands/ListRecommendationFeedbackCommand.ts +0 -103
- package/commands/ListRecommendationsCommand.ts +0 -96
- package/commands/ListRepositoryAssociationsCommand.ts +0 -114
- package/commands/ListTagsForResourceCommand.ts +0 -94
- package/commands/PutRecommendationFeedbackCommand.ts +0 -99
- package/commands/TagResourceCommand.ts +0 -94
- package/commands/UntagResourceCommand.ts +0 -94
- package/dist/cjs/CodeGuruReviewer.js.map +0 -1
- package/dist/cjs/CodeGuruReviewerClient.js +0 -59
- package/dist/cjs/CodeGuruReviewerClient.js.map +0 -1
- package/dist/cjs/commands/AssociateRepositoryCommand.js +0 -85
- package/dist/cjs/commands/AssociateRepositoryCommand.js.map +0 -1
- package/dist/cjs/commands/CreateCodeReviewCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeCodeReviewCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRecommendationFeedbackCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeRepositoryAssociationCommand.js.map +0 -1
- package/dist/cjs/commands/DisassociateRepositoryCommand.js.map +0 -1
- package/dist/cjs/commands/ListCodeReviewsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRecommendationFeedbackCommand.js.map +0 -1
- package/dist/cjs/commands/ListRecommendationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListRepositoryAssociationsCommand.js +0 -78
- package/dist/cjs/commands/ListRepositoryAssociationsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/PutRecommendationFeedbackCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -94
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListCodeReviewsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRecommendationFeedbackPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRecommendationsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListRepositoryAssociationsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/cjs/waiters/waitForCodeReviewCompleted.js.map +0 -1
- package/dist/cjs/waiters/waitForRepositoryAssociationSucceeded.js.map +0 -1
- package/dist/es/CodeGuruReviewer.js.map +0 -1
- package/dist/es/CodeGuruReviewerClient.js.map +0 -1
- package/dist/es/commands/AssociateRepositoryCommand.js.map +0 -1
- package/dist/es/commands/CreateCodeReviewCommand.js.map +0 -1
- package/dist/es/commands/DescribeCodeReviewCommand.js.map +0 -1
- package/dist/es/commands/DescribeRecommendationFeedbackCommand.js.map +0 -1
- package/dist/es/commands/DescribeRepositoryAssociationCommand.js.map +0 -1
- package/dist/es/commands/DisassociateRepositoryCommand.js.map +0 -1
- package/dist/es/commands/ListCodeReviewsCommand.js.map +0 -1
- package/dist/es/commands/ListRecommendationFeedbackCommand.js.map +0 -1
- package/dist/es/commands/ListRecommendationsCommand.js.map +0 -1
- package/dist/es/commands/ListRepositoryAssociationsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/PutRecommendationFeedbackCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -25
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -94
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListCodeReviewsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRecommendationFeedbackPaginator.js.map +0 -1
- package/dist/es/pagination/ListRecommendationsPaginator.js.map +0 -1
- package/dist/es/pagination/ListRepositoryAssociationsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/es/waiters/waitForCodeReviewCompleted.js.map +0 -1
- package/dist/es/waiters/waitForRepositoryAssociationSucceeded.js.map +0 -1
- package/dist/types/ts3.4/commands/AssociateRepositoryCommand.d.ts +0 -59
- package/dist/types/ts3.4/commands/CreateCodeReviewCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/DescribeCodeReviewCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/DescribeRepositoryAssociationCommand.d.ts +0 -40
- package/dist/types/ts3.4/commands/ListCodeReviewsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListRecommendationFeedbackCommand.d.ts +0 -41
- package/dist/types/ts3.4/commands/ListRecommendationsCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/ListRepositoryAssociationsCommand.d.ts +0 -52
- package/dist/types/ts3.4/commands/ListTagsForResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/PutRecommendationFeedbackCommand.d.ts +0 -37
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -35
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2210
- package/endpoints.ts +0 -57
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2570
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListCodeReviewsPaginator.ts +0 -58
- package/pagination/ListRecommendationFeedbackPaginator.ts +0 -58
- package/pagination/ListRecommendationsPaginator.ts +0 -58
- package/pagination/ListRepositoryAssociationsPaginator.ts +0 -58
- package/protocols/Aws_restJson1.ts +0 -2525
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
- package/waiters/waitForCodeReviewCompleted.ts +0 -57
- package/waiters/waitForRepositoryAssociationSucceeded.ts +0 -60
package/pagination/Interfaces.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewer } from "../CodeGuruReviewer";
|
|
2
|
-
import { CodeGuruReviewerClient } from "../CodeGuruReviewerClient";
|
|
3
|
-
import { PaginationConfiguration } from "@aws-sdk/types";
|
|
4
|
-
|
|
5
|
-
export interface CodeGuruReviewerPaginationConfiguration extends PaginationConfiguration {
|
|
6
|
-
client: CodeGuruReviewer | CodeGuruReviewerClient;
|
|
7
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewer } from "../CodeGuruReviewer";
|
|
2
|
-
import { CodeGuruReviewerClient } from "../CodeGuruReviewerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListCodeReviewsCommand,
|
|
5
|
-
ListCodeReviewsCommandInput,
|
|
6
|
-
ListCodeReviewsCommandOutput,
|
|
7
|
-
} from "../commands/ListCodeReviewsCommand";
|
|
8
|
-
import { CodeGuruReviewerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodeGuruReviewerClient,
|
|
16
|
-
input: ListCodeReviewsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListCodeReviewsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListCodeReviewsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodeGuruReviewer,
|
|
27
|
-
input: ListCodeReviewsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListCodeReviewsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listCodeReviews(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListCodeReviews(
|
|
34
|
-
config: CodeGuruReviewerPaginationConfiguration,
|
|
35
|
-
input: ListCodeReviewsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListCodeReviewsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListCodeReviewsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodeGuruReviewer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeGuruReviewerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeGuruReviewer | CodeGuruReviewerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewer } from "../CodeGuruReviewer";
|
|
2
|
-
import { CodeGuruReviewerClient } from "../CodeGuruReviewerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListRecommendationFeedbackCommand,
|
|
5
|
-
ListRecommendationFeedbackCommandInput,
|
|
6
|
-
ListRecommendationFeedbackCommandOutput,
|
|
7
|
-
} from "../commands/ListRecommendationFeedbackCommand";
|
|
8
|
-
import { CodeGuruReviewerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodeGuruReviewerClient,
|
|
16
|
-
input: ListRecommendationFeedbackCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListRecommendationFeedbackCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListRecommendationFeedbackCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodeGuruReviewer,
|
|
27
|
-
input: ListRecommendationFeedbackCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListRecommendationFeedbackCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listRecommendationFeedback(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListRecommendationFeedback(
|
|
34
|
-
config: CodeGuruReviewerPaginationConfiguration,
|
|
35
|
-
input: ListRecommendationFeedbackCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListRecommendationFeedbackCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListRecommendationFeedbackCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodeGuruReviewer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeGuruReviewerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeGuruReviewer | CodeGuruReviewerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewer } from "../CodeGuruReviewer";
|
|
2
|
-
import { CodeGuruReviewerClient } from "../CodeGuruReviewerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListRecommendationsCommand,
|
|
5
|
-
ListRecommendationsCommandInput,
|
|
6
|
-
ListRecommendationsCommandOutput,
|
|
7
|
-
} from "../commands/ListRecommendationsCommand";
|
|
8
|
-
import { CodeGuruReviewerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodeGuruReviewerClient,
|
|
16
|
-
input: ListRecommendationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListRecommendationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListRecommendationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodeGuruReviewer,
|
|
27
|
-
input: ListRecommendationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListRecommendationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listRecommendations(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListRecommendations(
|
|
34
|
-
config: CodeGuruReviewerPaginationConfiguration,
|
|
35
|
-
input: ListRecommendationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListRecommendationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListRecommendationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodeGuruReviewer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeGuruReviewerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeGuruReviewer | CodeGuruReviewerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { CodeGuruReviewer } from "../CodeGuruReviewer";
|
|
2
|
-
import { CodeGuruReviewerClient } from "../CodeGuruReviewerClient";
|
|
3
|
-
import {
|
|
4
|
-
ListRepositoryAssociationsCommand,
|
|
5
|
-
ListRepositoryAssociationsCommandInput,
|
|
6
|
-
ListRepositoryAssociationsCommandOutput,
|
|
7
|
-
} from "../commands/ListRepositoryAssociationsCommand";
|
|
8
|
-
import { CodeGuruReviewerPaginationConfiguration } from "./Interfaces";
|
|
9
|
-
import { Paginator } from "@aws-sdk/types";
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @private
|
|
13
|
-
*/
|
|
14
|
-
const makePagedClientRequest = async (
|
|
15
|
-
client: CodeGuruReviewerClient,
|
|
16
|
-
input: ListRepositoryAssociationsCommandInput,
|
|
17
|
-
...args: any
|
|
18
|
-
): Promise<ListRepositoryAssociationsCommandOutput> => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
return await client.send(new ListRepositoryAssociationsCommand(input), ...args);
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* @private
|
|
24
|
-
*/
|
|
25
|
-
const makePagedRequest = async (
|
|
26
|
-
client: CodeGuruReviewer,
|
|
27
|
-
input: ListRepositoryAssociationsCommandInput,
|
|
28
|
-
...args: any
|
|
29
|
-
): Promise<ListRepositoryAssociationsCommandOutput> => {
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
return await client.listRepositoryAssociations(input, ...args);
|
|
32
|
-
};
|
|
33
|
-
export async function* paginateListRepositoryAssociations(
|
|
34
|
-
config: CodeGuruReviewerPaginationConfiguration,
|
|
35
|
-
input: ListRepositoryAssociationsCommandInput,
|
|
36
|
-
...additionalArguments: any
|
|
37
|
-
): Paginator<ListRepositoryAssociationsCommandOutput> {
|
|
38
|
-
// ToDo: replace with actual type instead of typeof input.NextToken
|
|
39
|
-
let token: typeof input.NextToken | undefined = config.startingToken || undefined;
|
|
40
|
-
let hasNext = true;
|
|
41
|
-
let page: ListRepositoryAssociationsCommandOutput;
|
|
42
|
-
while (hasNext) {
|
|
43
|
-
input.NextToken = token;
|
|
44
|
-
input["MaxResults"] = config.pageSize;
|
|
45
|
-
if (config.client instanceof CodeGuruReviewer) {
|
|
46
|
-
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
47
|
-
} else if (config.client instanceof CodeGuruReviewerClient) {
|
|
48
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
49
|
-
} else {
|
|
50
|
-
throw new Error("Invalid client, expected CodeGuruReviewer | CodeGuruReviewerClient");
|
|
51
|
-
}
|
|
52
|
-
yield page;
|
|
53
|
-
token = page.NextToken;
|
|
54
|
-
hasNext = !!token;
|
|
55
|
-
}
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|