azure-devops-extension-api 4.264.0 → 4.265.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/Alert/Alert.d.ts +30 -0
- package/Alert/Alert.js +14 -0
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +16 -0
- package/Alert/AlertClient.js +45 -0
- package/Alert/AlertClient.min.js +1 -1
- package/Management/Management.d.ts +32 -0
- package/TestPlan/TestPlan.d.ts +41 -0
- package/TestResults/TestResultsClient.d.ts +10 -7
- package/TestResults/TestResultsClient.js +14 -10
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Work/Work.d.ts +1 -0
- package/_manifest/spdx_2.2/ESRPClientLogs1223223059101.json +1 -0
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +1 -1
- package/_manifest/spdx_2.2/manifest.cat +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.json +2155 -2155
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/package.json +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs1209213734125.json +0 -1
package/Alert/Alert.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ export interface Alert {
|
|
|
34
34
|
* Reference to a git object, e.g. branch ref.
|
|
35
35
|
*/
|
|
36
36
|
gitRef: string;
|
|
37
|
+
/**
|
|
38
|
+
* Value indicates whether the alert comes from a SARIF uploaded by a trusted source.
|
|
39
|
+
*/
|
|
40
|
+
hasTrustedSourceOrigin: boolean;
|
|
37
41
|
/**
|
|
38
42
|
* This value is computed and returned by the service. This value represents the first time the vulnerability was introduced.
|
|
39
43
|
*/
|
|
@@ -147,6 +151,19 @@ export interface AlertMetadata {
|
|
|
147
151
|
*/
|
|
148
152
|
metadata: Metadata[];
|
|
149
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* Alert metadata.
|
|
156
|
+
*/
|
|
157
|
+
export interface AlertMetadataBatchRequest {
|
|
158
|
+
/**
|
|
159
|
+
* List of alert IDs.
|
|
160
|
+
*/
|
|
161
|
+
alertIds: number[];
|
|
162
|
+
/**
|
|
163
|
+
* The flag to control error policy in a bulk get work items request. Possible options are \{Fail, Omit\}.
|
|
164
|
+
*/
|
|
165
|
+
errorPolicy: AlertMetadataErrorPolicy;
|
|
166
|
+
}
|
|
150
167
|
/**
|
|
151
168
|
* Used to represent an update in a relationship between an alert and an artifact.
|
|
152
169
|
*/
|
|
@@ -160,6 +177,19 @@ export interface AlertMetadataChange {
|
|
|
160
177
|
*/
|
|
161
178
|
metadataChange: MetadataChange;
|
|
162
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Enum to control error policy in a bulk get alert metadata items request.
|
|
182
|
+
*/
|
|
183
|
+
export declare enum AlertMetadataErrorPolicy {
|
|
184
|
+
/**
|
|
185
|
+
* Fail error policy: if an alert id is not found, the whole request fails.
|
|
186
|
+
*/
|
|
187
|
+
Fail = 1,
|
|
188
|
+
/**
|
|
189
|
+
* Omit error policy: if an alert id is not found, it will be omitted from the results.
|
|
190
|
+
*/
|
|
191
|
+
Omit = 2
|
|
192
|
+
}
|
|
163
193
|
export interface AlertStateUpdate {
|
|
164
194
|
dismissedComment: string;
|
|
165
195
|
dismissedReason: DismissalType;
|
package/Alert/Alert.js
CHANGED
|
@@ -17,6 +17,20 @@ define(["require", "exports"], function (require, exports) {
|
|
|
17
17
|
*/
|
|
18
18
|
AlertListExpandOption[AlertListExpandOption["Minimal"] = 1] = "Minimal";
|
|
19
19
|
})(AlertListExpandOption = exports.AlertListExpandOption || (exports.AlertListExpandOption = {}));
|
|
20
|
+
/**
|
|
21
|
+
* Enum to control error policy in a bulk get alert metadata items request.
|
|
22
|
+
*/
|
|
23
|
+
var AlertMetadataErrorPolicy;
|
|
24
|
+
(function (AlertMetadataErrorPolicy) {
|
|
25
|
+
/**
|
|
26
|
+
* Fail error policy: if an alert id is not found, the whole request fails.
|
|
27
|
+
*/
|
|
28
|
+
AlertMetadataErrorPolicy[AlertMetadataErrorPolicy["Fail"] = 1] = "Fail";
|
|
29
|
+
/**
|
|
30
|
+
* Omit error policy: if an alert id is not found, it will be omitted from the results.
|
|
31
|
+
*/
|
|
32
|
+
AlertMetadataErrorPolicy[AlertMetadataErrorPolicy["Omit"] = 2] = "Omit";
|
|
33
|
+
})(AlertMetadataErrorPolicy = exports.AlertMetadataErrorPolicy || (exports.AlertMetadataErrorPolicy = {}));
|
|
20
34
|
var AlertType;
|
|
21
35
|
(function (AlertType) {
|
|
22
36
|
/**
|
package/Alert/Alert.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal"}(n.AlertListExpandOption||(n.AlertListExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License"}(n.AlertType||(n.AlertType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(n.AlertValidationRequestStatus||(n.AlertValidationRequestStatus={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(n.DependencyKind||(n.DependencyKind={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(n.LicenseState||(n.LicenseState={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(n.LicenseType||(n.LicenseType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Requeued=4]="Requeued"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}));!function(e){e[e.None=0]="None",e[e.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive",e[e.ValidationNotSupported=4]="ValidationNotSupported",e[e.TransientError=5]="TransientError"}(n.ValidationResult||(n.ValidationResult={}))});
|
|
1
|
+
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Minimal=1]="Minimal"}(n.AlertListExpandOption||(n.AlertListExpandOption={}));!function(e){e[e.Fail=1]="Fail",e[e.Omit=2]="Omit"}(n.AlertMetadataErrorPolicy||(n.AlertMetadataErrorPolicy={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code",e[e.License=4]="License"}(n.AlertType||(n.AlertType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed"}(n.AlertValidationRequestStatus||(n.AlertValidationRequestStatus={}));!function(e){e[e.None=0]="None",e[e.Unknown=1]="Unknown",e[e.Active=2]="Active",e[e.Inactive=3]="Inactive"}(n.AlertValidityStatus||(n.AlertValidityStatus={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.RootDependency=1]="RootDependency",e[e.Component=2]="Component",e[e.VulnerableDependency=3]="VulnerableDependency"}(n.DependencyKind||(n.DependencyKind={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive",e[e.AgreedToGuidance=4]="AgreedToGuidance",e[e.ToolUpgrade=5]="ToolUpgrade",e[e.NotDistributed=6]="NotDistributed"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NotHarvested=1]="NotHarvested",e[e.Harvested=2]="Harvested"}(n.LicenseState||(n.LicenseState={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Permissive=1]="Permissive",e[e.WeakCopyleft=2]="WeakCopyleft",e[e.StrongCopyleft=3]="StrongCopyleft",e[e.NetworkCopyleft=4]="NetworkCopyleft",e[e.Other=5]="Other",e[e.NoAssertion=6]="NoAssertion"}(n.LicenseType||(n.LicenseType={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed",e[e.Requeued=4]="Requeued"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error",e[e.Undefined=7]="Undefined"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}));!function(e){e[e.None=0]="None",e[e.Exploitable=1]="Exploitable",e[e.NotExploitable=2]="NotExploitable",e[e.Inconclusive=3]="Inconclusive",e[e.ValidationNotSupported=4]="ValidationNotSupported",e[e.TransientError=5]="TransientError"}(n.ValidationResult||(n.ValidationResult={}))});
|
package/Alert/AlertClient.d.ts
CHANGED
|
@@ -89,6 +89,22 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
89
89
|
* @param repository - The name or ID of the repository.
|
|
90
90
|
*/
|
|
91
91
|
updateAlertsMetadata(alertsMetadata: Alert.AlertMetadata[], project: string, repository: string): Promise<Alert.AlertMetadataChange[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Get an alert metadata.
|
|
94
|
+
*
|
|
95
|
+
* @param project - Project ID or project name
|
|
96
|
+
* @param alertId - ID of alert to retrieve
|
|
97
|
+
* @param repository - Name or id of a repository that alert is part of
|
|
98
|
+
*/
|
|
99
|
+
getAlertMetadata(project: string, alertId: number, repository: string): Promise<Alert.AlertMetadata>;
|
|
100
|
+
/**
|
|
101
|
+
* Get alerts metadata.
|
|
102
|
+
*
|
|
103
|
+
* @param alertMetadataBatchRequest -
|
|
104
|
+
* @param project - Project ID or project name
|
|
105
|
+
* @param repository - Name or id of a repository that alert is part of
|
|
106
|
+
*/
|
|
107
|
+
getAlertMetadataBatch(alertMetadataBatchRequest: Alert.AlertMetadataBatchRequest, project: string, repository: string): Promise<Alert.AlertMetadata[]>;
|
|
92
108
|
/**
|
|
93
109
|
* Get alerts by their IDs at the organization level. Only retruns alerts that the user has permission to view. Only returns alerts of sku plans that are enabled.
|
|
94
110
|
*
|
package/Alert/AlertClient.js
CHANGED
|
@@ -328,6 +328,51 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* Get an alert metadata.
|
|
333
|
+
*
|
|
334
|
+
* @param project - Project ID or project name
|
|
335
|
+
* @param alertId - ID of alert to retrieve
|
|
336
|
+
* @param repository - Name or id of a repository that alert is part of
|
|
337
|
+
*/
|
|
338
|
+
AlertRestClient.prototype.getAlertMetadata = function (project, alertId, repository) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
340
|
+
return __generator(this, function (_a) {
|
|
341
|
+
return [2 /*return*/, this.beginRequest({
|
|
342
|
+
apiVersion: "7.2-preview.1",
|
|
343
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/metadata",
|
|
344
|
+
routeValues: {
|
|
345
|
+
project: project,
|
|
346
|
+
alertId: alertId,
|
|
347
|
+
repository: repository
|
|
348
|
+
}
|
|
349
|
+
})];
|
|
350
|
+
});
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
/**
|
|
354
|
+
* Get alerts metadata.
|
|
355
|
+
*
|
|
356
|
+
* @param alertMetadataBatchRequest -
|
|
357
|
+
* @param project - Project ID or project name
|
|
358
|
+
* @param repository - Name or id of a repository that alert is part of
|
|
359
|
+
*/
|
|
360
|
+
AlertRestClient.prototype.getAlertMetadataBatch = function (alertMetadataBatchRequest, project, repository) {
|
|
361
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
362
|
+
return __generator(this, function (_a) {
|
|
363
|
+
return [2 /*return*/, this.beginRequest({
|
|
364
|
+
apiVersion: "7.2-preview.1",
|
|
365
|
+
method: "POST",
|
|
366
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/MetadataBatch",
|
|
367
|
+
routeValues: {
|
|
368
|
+
project: project,
|
|
369
|
+
repository: repository
|
|
370
|
+
},
|
|
371
|
+
body: alertMetadataBatchRequest
|
|
372
|
+
})];
|
|
373
|
+
});
|
|
374
|
+
});
|
|
375
|
+
};
|
|
331
376
|
/**
|
|
332
377
|
* Get alerts by their IDs at the organization level. Only retruns alerts that the user has permission to view. Only returns alerts of sku plans that are enabled.
|
|
333
378
|
*
|
package/Alert/AlertClient.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function a(e){try{u(o.next(e))}catch(e){n(e)}}function s(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAlert=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.getAlerts=function(e,t,r,i,n,a,s){return __awaiter(this,void 0,void 0,function(){var u,p=this;return __generator(this,function(c){return u={top:r,orderBy:i,criteria:n,expand:a,continuationToken:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getAlertSarif=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.updateAlert=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:t,alertId:r,repository:o},body:e})]})})},t.prototype.getBranches=function(e,t,r,o,i,n,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={alertType:r,continuationToken:o,branchNameContains:i,top:n,includePullRequestBranches:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:s})]})})},t.prototype.getUxFilters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={alertType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:o})]})})},t.prototype.getAlertInstances=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:i})]})})},t.prototype.createLegalReview=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={alertId:r,ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:e,repository:t},queryParams:i})]})})},t.prototype.updateAlertsMetadata=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getOrgLevelAlertsByIds=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={alertIds:e&&e.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})]})})},t.prototype.uploadSarif=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/sarifs",routeValues:{project:t,repository:r},customHeaders:{"Content-Type":"application/octet-stream","X-AdvSec-NotificationSarif":o},body:e})]})})},t.prototype.getSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})]})})},t.prototype.uploadOrgSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",customHeaders:{"Content-Type":"application/octet-stream"},body:e})]})})},t.prototype.getValidityData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})]})})},t.prototype.initiateValidation=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})]})})},t}(r.RestClientBase);t.AlertRestClient=i});
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function a(e){try{u(o.next(e))}catch(e){n(e)}}function s(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAlert=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.getAlerts=function(e,t,r,i,n,a,s){return __awaiter(this,void 0,void 0,function(){var u,p=this;return __generator(this,function(c){return u={top:r,orderBy:i,criteria:n,expand:a,continuationToken:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getAlertSarif=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.updateAlert=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:t,alertId:r,repository:o},body:e})]})})},t.prototype.getBranches=function(e,t,r,o,i,n,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={alertType:r,continuationToken:o,branchNameContains:i,top:n,includePullRequestBranches:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:s})]})})},t.prototype.getUxFilters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={alertType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:o})]})})},t.prototype.getAlertInstances=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:i})]})})},t.prototype.createLegalReview=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={alertId:r,ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:e,repository:t},queryParams:i})]})})},t.prototype.updateAlertsMetadata=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getAlertMetadata=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/metadata",routeValues:{project:e,alertId:t,repository:r}})]})})},t.prototype.getAlertMetadataBatch=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/MetadataBatch",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getOrgLevelAlertsByIds=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={alertIds:e&&e.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})]})})},t.prototype.uploadSarif=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/sarifs",routeValues:{project:t,repository:r},customHeaders:{"Content-Type":"application/octet-stream","X-AdvSec-NotificationSarif":o},body:e})]})})},t.prototype.getSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})]})})},t.prototype.uploadOrgSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",customHeaders:{"Content-Type":"application/octet-stream"},body:e})]})})},t.prototype.getValidityData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})]})})},t.prototype.initiateValidation=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})]})})},t}(r.RestClientBase);t.AlertRestClient=i});
|
|
@@ -18,6 +18,22 @@ export interface AdvSecEnablementFeatures {
|
|
|
18
18
|
dependencyScanningInjectionEnabled: boolean;
|
|
19
19
|
}
|
|
20
20
|
export interface AdvSecEnablementSettings {
|
|
21
|
+
/**
|
|
22
|
+
* Automatically enable blocking of pushes that contain secrets. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
23
|
+
*/
|
|
24
|
+
enableBlockPushesOnCreate: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Automatically enable CodeQL. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
27
|
+
*/
|
|
28
|
+
enableCodeQLOnCreate: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Automatically enable Dependabot. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
31
|
+
*/
|
|
32
|
+
enableDependabotOnCreate: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Automatically enable Dependency Scanning Injection. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
35
|
+
*/
|
|
36
|
+
enableDependencyScanningInjectionOnCreate: boolean;
|
|
21
37
|
/**
|
|
22
38
|
* Automatically enable Advanced Security on newly created repositories.
|
|
23
39
|
*/
|
|
@@ -25,6 +41,22 @@ export interface AdvSecEnablementSettings {
|
|
|
25
41
|
reposEnablementStatus: AdvSecEnablementStatus[];
|
|
26
42
|
}
|
|
27
43
|
export interface AdvSecEnablementSettingsUpdate extends AdvSecEnablementStatusUpdate {
|
|
44
|
+
/**
|
|
45
|
+
* Automatically enable blocking of pushes that contain secrets. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
46
|
+
*/
|
|
47
|
+
enableBlockPushesOnCreate: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Automatically enable CodeQL. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
50
|
+
*/
|
|
51
|
+
enableCodeQLOnCreate: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Automatically enable Dependabot. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
54
|
+
*/
|
|
55
|
+
enableDependabotOnCreate: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Automatically enable Dependency Scanning Injection. If EnableOnCreate is not enabled this feature cannot be enabled.
|
|
58
|
+
*/
|
|
59
|
+
enableDependencyScanningInjectionOnCreate: boolean;
|
|
28
60
|
/**
|
|
29
61
|
* Automatically enable Advanced Security on newly created repositories.
|
|
30
62
|
*/
|
package/TestPlan/TestPlan.d.ts
CHANGED
|
@@ -838,6 +838,47 @@ export interface TestCaseData {
|
|
|
838
838
|
*/
|
|
839
839
|
title: string;
|
|
840
840
|
}
|
|
841
|
+
/**
|
|
842
|
+
* This data model is used in TestCaseLatestOutcomeDataProvider and provides latest outcome data for test case
|
|
843
|
+
*/
|
|
844
|
+
export interface TestCaseLatestOutcomeData {
|
|
845
|
+
/**
|
|
846
|
+
* Date when the test result was completed.
|
|
847
|
+
*/
|
|
848
|
+
completedDate: Date;
|
|
849
|
+
/**
|
|
850
|
+
* Reference to test configuration.
|
|
851
|
+
*/
|
|
852
|
+
configurationId: number;
|
|
853
|
+
/**
|
|
854
|
+
* Date when the test result was last updated.
|
|
855
|
+
*/
|
|
856
|
+
lastUpdatedDate: Date;
|
|
857
|
+
/**
|
|
858
|
+
* Outcome of the test case. Valid values = (Unspecified, None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, NotExecuted, Warning, Error, NotApplicable, Paused, InProgress, NotImpacted)
|
|
859
|
+
*/
|
|
860
|
+
outcome: string;
|
|
861
|
+
/**
|
|
862
|
+
* Test Point ID whose outcome is represented by this object.
|
|
863
|
+
*/
|
|
864
|
+
pointId: number;
|
|
865
|
+
/**
|
|
866
|
+
* Test Case ID whose outcome is represented by this object.
|
|
867
|
+
*/
|
|
868
|
+
testCaseId: number;
|
|
869
|
+
/**
|
|
870
|
+
* Reference ID of test used by test result.
|
|
871
|
+
*/
|
|
872
|
+
testCaseReferenceId: number;
|
|
873
|
+
/**
|
|
874
|
+
* Test Result ID whose outcome is represented by this object.
|
|
875
|
+
*/
|
|
876
|
+
testResultId: number;
|
|
877
|
+
/**
|
|
878
|
+
* Test Run ID whose outcome is represented by this object.
|
|
879
|
+
*/
|
|
880
|
+
testRunId: number;
|
|
881
|
+
}
|
|
841
882
|
/**
|
|
842
883
|
* Test Case Reference
|
|
843
884
|
*/
|
|
@@ -221,12 +221,13 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
221
221
|
*/
|
|
222
222
|
getFileLevelCodeCoverage(fileCoverageRequest: Test.FileCoverageRequest, project: string): Promise<string>;
|
|
223
223
|
/**
|
|
224
|
-
* Delete flaky test case reference IDs by branch information
|
|
224
|
+
* Delete flaky test case reference IDs by branch and repository information
|
|
225
225
|
*
|
|
226
226
|
* @param project - Project ID or project name
|
|
227
|
-
* @param
|
|
227
|
+
* @param repositoryId - Guid of the repository
|
|
228
|
+
* @param branchInfo - Branch information containing name and type Note: Operations on protected branches such as 'master' or 'main' are not supported.
|
|
228
229
|
*/
|
|
229
|
-
deleteFlakyTestCaseRefIdsByBranch(project: string, branchInfo: Test.BranchInfo): Promise<number>;
|
|
230
|
+
deleteFlakyTestCaseRefIdsByBranch(project: string, repositoryId: string, branchInfo: Test.BranchInfo): Promise<number>;
|
|
230
231
|
/**
|
|
231
232
|
* @param project - Project ID or project name
|
|
232
233
|
* @param repositoryId -
|
|
@@ -983,12 +984,14 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
983
984
|
*/
|
|
984
985
|
getTestSettingsById(project: string, testSettingsId: number): Promise<Test.TestSettings>;
|
|
985
986
|
/**
|
|
987
|
+
* Calculate Test Weighted Score for given comman separated list of Test Runs Ids.
|
|
988
|
+
*
|
|
986
989
|
* @param project - Project ID or project name
|
|
987
|
-
* @param
|
|
988
|
-
* @param includeAllOutcomes -
|
|
989
|
-
* @param onlyFlakyResults -
|
|
990
|
+
* @param runIds - Comman Separated Test Run Ids. Maximum 100 supported.
|
|
991
|
+
* @param includeAllOutcomes - Include all test results outcome for TWS Calculation. By default, false is considered
|
|
992
|
+
* @param onlyFlakyResults - Option to return only flaky test results identified as flaky. By default, true is passed
|
|
990
993
|
*/
|
|
991
|
-
|
|
994
|
+
getTestWeightedScoreByTestRun(project: string, runIds: string, includeAllOutcomes?: boolean, onlyFlakyResults?: boolean): Promise<Test.TestCaseResult[]>;
|
|
992
995
|
/**
|
|
993
996
|
* @param workItemToTestLinks -
|
|
994
997
|
* @param project - Project ID or project name
|
|
@@ -761,12 +761,13 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
761
761
|
});
|
|
762
762
|
};
|
|
763
763
|
/**
|
|
764
|
-
* Delete flaky test case reference IDs by branch information
|
|
764
|
+
* Delete flaky test case reference IDs by branch and repository information
|
|
765
765
|
*
|
|
766
766
|
* @param project - Project ID or project name
|
|
767
|
-
* @param
|
|
767
|
+
* @param repositoryId - Guid of the repository
|
|
768
|
+
* @param branchInfo - Branch information containing name and type Note: Operations on protected branches such as 'master' or 'main' are not supported.
|
|
768
769
|
*/
|
|
769
|
-
TestResultsRestClient.prototype.deleteFlakyTestCaseRefIdsByBranch = function (project, branchInfo) {
|
|
770
|
+
TestResultsRestClient.prototype.deleteFlakyTestCaseRefIdsByBranch = function (project, repositoryId, branchInfo) {
|
|
770
771
|
return __awaiter(this, void 0, void 0, function () {
|
|
771
772
|
var queryValues;
|
|
772
773
|
return __generator(this, function (_a) {
|
|
@@ -778,7 +779,8 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
778
779
|
method: "DELETE",
|
|
779
780
|
routeTemplate: "{project}/_apis/testresults/flakytestresults/repositories/{repositoryId}",
|
|
780
781
|
routeValues: {
|
|
781
|
-
project: project
|
|
782
|
+
project: project,
|
|
783
|
+
repositoryId: repositoryId
|
|
782
784
|
},
|
|
783
785
|
queryParams: queryValues
|
|
784
786
|
})];
|
|
@@ -3296,12 +3298,14 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
3296
3298
|
});
|
|
3297
3299
|
};
|
|
3298
3300
|
/**
|
|
3301
|
+
* Calculate Test Weighted Score for given comman separated list of Test Runs Ids.
|
|
3302
|
+
*
|
|
3299
3303
|
* @param project - Project ID or project name
|
|
3300
|
-
* @param
|
|
3301
|
-
* @param includeAllOutcomes -
|
|
3302
|
-
* @param onlyFlakyResults -
|
|
3304
|
+
* @param runIds - Comman Separated Test Run Ids. Maximum 100 supported.
|
|
3305
|
+
* @param includeAllOutcomes - Include all test results outcome for TWS Calculation. By default, false is considered
|
|
3306
|
+
* @param onlyFlakyResults - Option to return only flaky test results identified as flaky. By default, true is passed
|
|
3303
3307
|
*/
|
|
3304
|
-
TestResultsRestClient.prototype.
|
|
3308
|
+
TestResultsRestClient.prototype.getTestWeightedScoreByTestRun = function (project, runIds, includeAllOutcomes, onlyFlakyResults) {
|
|
3305
3309
|
return __awaiter(this, void 0, void 0, function () {
|
|
3306
3310
|
var queryValues;
|
|
3307
3311
|
return __generator(this, function (_a) {
|
|
@@ -3311,10 +3315,10 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
3311
3315
|
};
|
|
3312
3316
|
return [2 /*return*/, this.beginRequest({
|
|
3313
3317
|
apiVersion: "7.2-preview.7",
|
|
3314
|
-
routeTemplate: "{project}/_apis/testresults/testweightedscore/{
|
|
3318
|
+
routeTemplate: "{project}/_apis/testresults/testweightedscore/{runIds}",
|
|
3315
3319
|
routeValues: {
|
|
3316
3320
|
project: project,
|
|
3317
|
-
|
|
3321
|
+
runIds: runIds
|
|
3318
3322
|
},
|
|
3319
3323
|
queryParams: queryValues
|
|
3320
3324
|
})];
|