@aws-sdk/client-codeguru-reviewer 3.80.0 → 3.81.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 +11 -0
- package/dist-cjs/models/models_0.js +8 -2
- package/dist-cjs/protocols/Aws_restJson1.js +3 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +3 -0
- package/dist-types/models/models_0.d.ts +39 -2
- package/dist-types/ts3.4/models/models_0.d.ts +11 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.81.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.80.0...v3.81.0) (2022-04-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **client-codeguru-reviewer:** Amazon CodeGuru Reviewer now supports suppressing recommendations from being generated on specific files and directories. ([0aabfad](https://github.com/aws/aws-sdk-js-v3/commit/0aabfad35c348e5b5c4aa2c93827990ca1f9688b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.80.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.79.0...v3.80.0) (2022-04-28)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-sdk/client-codeguru-reviewer
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutRecommendationFeedbackResponse = exports.PutRecommendationFeedbackRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRepositoryAssociationsResponse = exports.RepositoryAssociationSummary = exports.ListRepositoryAssociationsRequest = exports.ListRecommendationsResponse = exports.RecommendationSummary = exports.Severity = exports.RuleMetadata = exports.RecommendationCategory = exports.ListRecommendationsRequest = exports.ListRecommendationFeedbackResponse = exports.RecommendationFeedbackSummary = exports.ListRecommendationFeedbackRequest = exports.ListCodeReviewsResponse = void 0;
|
|
3
|
+
exports.MetricsSummary = exports.ListCodeReviewsRequest = exports.DisassociateRepositoryResponse = exports.DisassociateRepositoryRequest = exports.NotFoundException = exports.DescribeRepositoryAssociationResponse = exports.DescribeRepositoryAssociationRequest = exports.DescribeRecommendationFeedbackResponse = exports.RecommendationFeedback = exports.Reaction = exports.DescribeRecommendationFeedbackRequest = exports.DescribeCodeReviewResponse = exports.DescribeCodeReviewRequest = exports.ResourceNotFoundException = exports.CreateCodeReviewResponse = exports.CodeReview = exports.Type = exports.JobState = exports.Metrics = exports.ConfigFileState = exports.CreateCodeReviewRequest = exports.CodeReviewType = exports.RepositoryAnalysis = exports.SourceCodeType = exports.S3BucketRepository = exports.RequestMetadata = exports.VendorName = exports.EventInfo = exports.CommitDiffSourceCodeType = exports.BranchDiffSourceCodeType = exports.RepositoryHeadSourceCodeType = exports.ValidationException = exports.ThrottlingException = exports.InternalServerException = exports.ConflictException = exports.AssociateRepositoryResponse = exports.RepositoryAssociation = exports.RepositoryAssociationState = exports.S3RepositoryDetails = exports.CodeArtifacts = exports.ProviderType = exports.AssociateRepositoryRequest = exports.Repository = exports.S3Repository = exports.CodeCommitRepository = exports.ThirdPartySourceRepository = exports.KMSKeyDetails = exports.EncryptionOption = exports.AnalysisType = exports.AccessDeniedException = void 0;
|
|
4
|
+
exports.UntagResourceResponse = exports.UntagResourceRequest = exports.TagResourceResponse = exports.TagResourceRequest = exports.PutRecommendationFeedbackResponse = exports.PutRecommendationFeedbackRequest = exports.ListTagsForResourceResponse = exports.ListTagsForResourceRequest = exports.ListRepositoryAssociationsResponse = exports.RepositoryAssociationSummary = exports.ListRepositoryAssociationsRequest = exports.ListRecommendationsResponse = exports.RecommendationSummary = exports.Severity = exports.RuleMetadata = exports.RecommendationCategory = exports.ListRecommendationsRequest = exports.ListRecommendationFeedbackResponse = exports.RecommendationFeedbackSummary = exports.ListRecommendationFeedbackRequest = exports.ListCodeReviewsResponse = exports.CodeReviewSummary = void 0;
|
|
5
5
|
const CodeGuruReviewerServiceException_1 = require("./CodeGuruReviewerServiceException");
|
|
6
6
|
class AccessDeniedException extends CodeGuruReviewerServiceException_1.CodeGuruReviewerServiceException {
|
|
7
7
|
constructor(opts) {
|
|
@@ -225,6 +225,12 @@ var CreateCodeReviewRequest;
|
|
|
225
225
|
...obj,
|
|
226
226
|
});
|
|
227
227
|
})(CreateCodeReviewRequest = exports.CreateCodeReviewRequest || (exports.CreateCodeReviewRequest = {}));
|
|
228
|
+
var ConfigFileState;
|
|
229
|
+
(function (ConfigFileState) {
|
|
230
|
+
ConfigFileState["ABSENT"] = "Absent";
|
|
231
|
+
ConfigFileState["PRESENT"] = "Present";
|
|
232
|
+
ConfigFileState["PRESENT_WITH_ERRORS"] = "PresentWithErrors";
|
|
233
|
+
})(ConfigFileState = exports.ConfigFileState || (exports.ConfigFileState = {}));
|
|
228
234
|
var Metrics;
|
|
229
235
|
(function (Metrics) {
|
|
230
236
|
Metrics.filterSensitiveLog = (obj) => ({
|
|
@@ -1387,6 +1387,7 @@ const deserializeAws_restJson1CodeReview = (output, context) => {
|
|
|
1387
1387
|
: undefined,
|
|
1388
1388
|
AssociationArn: (0, smithy_client_1.expectString)(output.AssociationArn),
|
|
1389
1389
|
CodeReviewArn: (0, smithy_client_1.expectString)(output.CodeReviewArn),
|
|
1390
|
+
ConfigFileState: (0, smithy_client_1.expectString)(output.ConfigFileState),
|
|
1390
1391
|
CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
|
|
1391
1392
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedTimeStamp)))
|
|
1392
1393
|
: undefined,
|
|
@@ -1467,12 +1468,14 @@ const deserializeAws_restJson1Metrics = (output, context) => {
|
|
|
1467
1468
|
return {
|
|
1468
1469
|
FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
|
|
1469
1470
|
MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
|
|
1471
|
+
SuppressedLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.SuppressedLinesOfCodeCount),
|
|
1470
1472
|
};
|
|
1471
1473
|
};
|
|
1472
1474
|
const deserializeAws_restJson1MetricsSummary = (output, context) => {
|
|
1473
1475
|
return {
|
|
1474
1476
|
FindingsCount: (0, smithy_client_1.expectLong)(output.FindingsCount),
|
|
1475
1477
|
MeteredLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.MeteredLinesOfCodeCount),
|
|
1478
|
+
SuppressedLinesOfCodeCount: (0, smithy_client_1.expectLong)(output.SuppressedLinesOfCodeCount),
|
|
1476
1479
|
};
|
|
1477
1480
|
};
|
|
1478
1481
|
const deserializeAws_restJson1Reactions = (output, context) => {
|
|
@@ -177,6 +177,12 @@ export var CreateCodeReviewRequest;
|
|
|
177
177
|
(function (CreateCodeReviewRequest) {
|
|
178
178
|
CreateCodeReviewRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
179
179
|
})(CreateCodeReviewRequest || (CreateCodeReviewRequest = {}));
|
|
180
|
+
export var ConfigFileState;
|
|
181
|
+
(function (ConfigFileState) {
|
|
182
|
+
ConfigFileState["ABSENT"] = "Absent";
|
|
183
|
+
ConfigFileState["PRESENT"] = "Present";
|
|
184
|
+
ConfigFileState["PRESENT_WITH_ERRORS"] = "PresentWithErrors";
|
|
185
|
+
})(ConfigFileState || (ConfigFileState = {}));
|
|
180
186
|
export var Metrics;
|
|
181
187
|
(function (Metrics) {
|
|
182
188
|
Metrics.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -1665,6 +1665,7 @@ var deserializeAws_restJson1CodeReview = function (output, context) {
|
|
|
1665
1665
|
: undefined,
|
|
1666
1666
|
AssociationArn: __expectString(output.AssociationArn),
|
|
1667
1667
|
CodeReviewArn: __expectString(output.CodeReviewArn),
|
|
1668
|
+
ConfigFileState: __expectString(output.ConfigFileState),
|
|
1668
1669
|
CreatedTimeStamp: output.CreatedTimeStamp !== undefined && output.CreatedTimeStamp !== null
|
|
1669
1670
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimeStamp)))
|
|
1670
1671
|
: undefined,
|
|
@@ -1745,12 +1746,14 @@ var deserializeAws_restJson1Metrics = function (output, context) {
|
|
|
1745
1746
|
return {
|
|
1746
1747
|
FindingsCount: __expectLong(output.FindingsCount),
|
|
1747
1748
|
MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount),
|
|
1749
|
+
SuppressedLinesOfCodeCount: __expectLong(output.SuppressedLinesOfCodeCount),
|
|
1748
1750
|
};
|
|
1749
1751
|
};
|
|
1750
1752
|
var deserializeAws_restJson1MetricsSummary = function (output, context) {
|
|
1751
1753
|
return {
|
|
1752
1754
|
FindingsCount: __expectLong(output.FindingsCount),
|
|
1753
1755
|
MeteredLinesOfCodeCount: __expectLong(output.MeteredLinesOfCodeCount),
|
|
1756
|
+
SuppressedLinesOfCodeCount: __expectLong(output.SuppressedLinesOfCodeCount),
|
|
1754
1757
|
};
|
|
1755
1758
|
};
|
|
1756
1759
|
var deserializeAws_restJson1Reactions = function (output, context) {
|
|
@@ -850,6 +850,11 @@ export declare namespace CreateCodeReviewRequest {
|
|
|
850
850
|
*/
|
|
851
851
|
const filterSensitiveLog: (obj: CreateCodeReviewRequest) => any;
|
|
852
852
|
}
|
|
853
|
+
export declare enum ConfigFileState {
|
|
854
|
+
ABSENT = "Absent",
|
|
855
|
+
PRESENT = "Present",
|
|
856
|
+
PRESENT_WITH_ERRORS = "PresentWithErrors"
|
|
857
|
+
}
|
|
853
858
|
/**
|
|
854
859
|
* <p>
|
|
855
860
|
* Information about the statistics from the code review.
|
|
@@ -858,11 +863,20 @@ export declare namespace CreateCodeReviewRequest {
|
|
|
858
863
|
export interface Metrics {
|
|
859
864
|
/**
|
|
860
865
|
* <p>
|
|
861
|
-
* <code>
|
|
866
|
+
* <code>MeteredLinesOfCodeCount</code> is the number of lines of code in the repository where the code review happened.
|
|
862
867
|
* This does not include non-code lines such as comments and blank lines.
|
|
863
868
|
* </p>
|
|
864
869
|
*/
|
|
865
870
|
MeteredLinesOfCodeCount?: number;
|
|
871
|
+
/**
|
|
872
|
+
* <p>
|
|
873
|
+
* <code>SuppressedLinesOfCodeCount</code> is the number of lines of code in the repository
|
|
874
|
+
* where the code review happened that CodeGuru Reviewer did not analyze. The lines suppressed in the
|
|
875
|
+
* analysis is based on the <code>excludeFiles</code> variable in the
|
|
876
|
+
* <code>aws-codeguru-reviewer.yml</code> file. This number does not include non-code lines
|
|
877
|
+
* such as comments and blank lines. </p>
|
|
878
|
+
*/
|
|
879
|
+
SuppressedLinesOfCodeCount?: number;
|
|
866
880
|
/**
|
|
867
881
|
* <p>
|
|
868
882
|
* Total number of recommendations found in the code review.
|
|
@@ -1005,10 +1019,16 @@ export interface CodeReview {
|
|
|
1005
1019
|
*/
|
|
1006
1020
|
Metrics?: Metrics;
|
|
1007
1021
|
/**
|
|
1008
|
-
* <p>
|
|
1022
|
+
* <p>The types of analysis performed during a repository analysis or a pull request review. You can specify either
|
|
1009
1023
|
* <code>Security</code>, <code>CodeQuality</code>, or both.</p>
|
|
1010
1024
|
*/
|
|
1011
1025
|
AnalysisTypes?: (AnalysisType | string)[];
|
|
1026
|
+
/**
|
|
1027
|
+
* <p>The state of the <code>aws-codeguru-reviewer.yml</code> configuration file that allows
|
|
1028
|
+
* the configuration of the CodeGuru Reviewer analysis. The file either exists, doesn't exist, or exists
|
|
1029
|
+
* with errors at the root directory of your repository.</p>
|
|
1030
|
+
*/
|
|
1031
|
+
ConfigFileState?: ConfigFileState | string;
|
|
1012
1032
|
}
|
|
1013
1033
|
export declare namespace CodeReview {
|
|
1014
1034
|
/**
|
|
@@ -1384,6 +1404,23 @@ export interface MetricsSummary {
|
|
|
1384
1404
|
* </p>
|
|
1385
1405
|
*/
|
|
1386
1406
|
MeteredLinesOfCodeCount?: number;
|
|
1407
|
+
/**
|
|
1408
|
+
* <p>Lines of code suppressed in the code review based on the <code>excludeFiles</code>
|
|
1409
|
+
* element in the <code>aws-codeguru-reviewer.yml</code> file. For full repository analyses,
|
|
1410
|
+
* this number includes all lines of code in the files that are suppressed. For pull requests,
|
|
1411
|
+
* this number only includes the <i>changed</i> lines of code that are
|
|
1412
|
+
* suppressed. In both cases, this number does not include non-code lines such as comments and
|
|
1413
|
+
* import statements. For example, if you initiate a full repository analysis on a repository
|
|
1414
|
+
* containing 5 files, each file with 100 lines of code, and 2 files are listed as excluded in
|
|
1415
|
+
* the <code>aws-codeguru-reviewer.yml</code> file, then
|
|
1416
|
+
* <code>SuppressedLinesOfCodeCount</code> returns 200 (2 * 100) as the total number of
|
|
1417
|
+
* lines of code suppressed. However, if you submit a pull request for the same repository,
|
|
1418
|
+
* then <code>SuppressedLinesOfCodeCount</code> only includes the lines in the 2 files
|
|
1419
|
+
* that changed. If only 1 of the 2 files changed in the pull request, then
|
|
1420
|
+
* <code>SuppressedLinesOfCodeCount</code> returns 100 (1 * 100) as the total number of
|
|
1421
|
+
* lines of code suppressed.</p>
|
|
1422
|
+
*/
|
|
1423
|
+
SuppressedLinesOfCodeCount?: number;
|
|
1387
1424
|
/**
|
|
1388
1425
|
* <p>
|
|
1389
1426
|
* Total number of recommendations found in the code review.
|
|
@@ -330,11 +330,18 @@ export declare namespace CreateCodeReviewRequest {
|
|
|
330
330
|
|
|
331
331
|
const filterSensitiveLog: (obj: CreateCodeReviewRequest) => any;
|
|
332
332
|
}
|
|
333
|
+
export declare enum ConfigFileState {
|
|
334
|
+
ABSENT = "Absent",
|
|
335
|
+
PRESENT = "Present",
|
|
336
|
+
PRESENT_WITH_ERRORS = "PresentWithErrors"
|
|
337
|
+
}
|
|
333
338
|
|
|
334
339
|
export interface Metrics {
|
|
335
340
|
|
|
336
341
|
MeteredLinesOfCodeCount?: number;
|
|
337
342
|
|
|
343
|
+
SuppressedLinesOfCodeCount?: number;
|
|
344
|
+
|
|
338
345
|
FindingsCount?: number;
|
|
339
346
|
}
|
|
340
347
|
export declare namespace Metrics {
|
|
@@ -383,6 +390,8 @@ export interface CodeReview {
|
|
|
383
390
|
Metrics?: Metrics;
|
|
384
391
|
|
|
385
392
|
AnalysisTypes?: (AnalysisType | string)[];
|
|
393
|
+
|
|
394
|
+
ConfigFileState?: ConfigFileState | string;
|
|
386
395
|
}
|
|
387
396
|
export declare namespace CodeReview {
|
|
388
397
|
|
|
@@ -534,6 +543,8 @@ export interface MetricsSummary {
|
|
|
534
543
|
|
|
535
544
|
MeteredLinesOfCodeCount?: number;
|
|
536
545
|
|
|
546
|
+
SuppressedLinesOfCodeCount?: number;
|
|
547
|
+
|
|
537
548
|
FindingsCount?: number;
|
|
538
549
|
}
|
|
539
550
|
export declare namespace MetricsSummary {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codeguru-reviewer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codeguru Reviewer Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.81.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.81.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.80.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.81.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.78.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.78.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.78.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-defaults-mode-browser": "3.78.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-node": "3.81.0",
|
|
47
47
|
"@aws-sdk/util-user-agent-browser": "3.78.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-node": "3.80.0",
|
|
49
49
|
"@aws-sdk/util-utf8-browser": "3.55.0",
|