azure-devops-extension-api 4.250.0 → 4.251.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 +50 -0
- package/Alert/Alert.js +13 -0
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +26 -18
- package/Alert/AlertClient.js +75 -52
- package/Alert/AlertClient.min.js +1 -1
- package/Build/Build.d.ts +4 -0
- package/Git/Git.d.ts +8 -0
- package/Management/Management.d.ts +6 -2
- package/Test/Test.d.ts +7 -3
- package/Test/Test.js +4 -0
- package/Test/Test.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +86 -0
- package/package.json +1 -1
package/Alert/Alert.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as WebApi from "../WebApi/WebApi";
|
|
2
2
|
export interface Alert {
|
|
3
|
+
/**
|
|
4
|
+
* Additional properties of this alert.
|
|
5
|
+
*/
|
|
6
|
+
additionalProperties: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
3
9
|
/**
|
|
4
10
|
* Identifier for the alert. It is unique within Azure DevOps organization.
|
|
5
11
|
*/
|
|
@@ -76,6 +82,10 @@ export interface Alert {
|
|
|
76
82
|
* ValidationFingerprints for the secret liveness check. Only returned on demand in Get API with Expand parameter set to be ValidationFingerprint (not returned in List API)
|
|
77
83
|
*/
|
|
78
84
|
validationFingerprints: ValidationFingerprint[];
|
|
85
|
+
/**
|
|
86
|
+
* Validity details of an alert. Currently, this is only applicable to secret alerts. In case of secret alerts, the validity status and time is computed by looking at the liveness results for validation fingerprints associated to an alert.
|
|
87
|
+
*/
|
|
88
|
+
validityDetails: AlertValidityInfo;
|
|
79
89
|
}
|
|
80
90
|
/**
|
|
81
91
|
* Summary of the state of the alert for a given analysis configuration.
|
|
@@ -169,6 +179,18 @@ export declare enum AlertType {
|
|
|
169
179
|
*/
|
|
170
180
|
License = 4
|
|
171
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Validity data for an alert that will be part of Alerts APIs and UI.
|
|
184
|
+
*/
|
|
185
|
+
export interface AlertValidityInfo {
|
|
186
|
+
validityLastCheckedDate: Date;
|
|
187
|
+
validityStatus: AlertValidityStatus;
|
|
188
|
+
}
|
|
189
|
+
export declare enum AlertValidityStatus {
|
|
190
|
+
Unknown = 0,
|
|
191
|
+
Active = 1,
|
|
192
|
+
Inactive = 2
|
|
193
|
+
}
|
|
172
194
|
/**
|
|
173
195
|
* AnalysisConfiguration class models a build definition.
|
|
174
196
|
*/
|
|
@@ -846,6 +868,10 @@ export interface SearchCriteria {
|
|
|
846
868
|
* If provided with toolName, only return alerts detected by this tool. \<br /\>Otherwise, return alerts detected by all tools.
|
|
847
869
|
*/
|
|
848
870
|
toolName: string;
|
|
871
|
+
/**
|
|
872
|
+
* If provided, only return alerts with the validity specified here. If the validity status is Unknown, fetch alerts of all validity results. \<br /\>Only applicable for secret alerts.
|
|
873
|
+
*/
|
|
874
|
+
validity: AlertValidityStatus;
|
|
849
875
|
}
|
|
850
876
|
export declare enum Severity {
|
|
851
877
|
Low = 0,
|
|
@@ -934,10 +960,34 @@ export interface UxFilters {
|
|
|
934
960
|
* Display alerts for specified tools. Show alerts for all tools if none are specified.
|
|
935
961
|
*/
|
|
936
962
|
tools: Tool[];
|
|
963
|
+
/**
|
|
964
|
+
* Display alerts for specified validity. Show alerts for all validities if none are specified.
|
|
965
|
+
*/
|
|
966
|
+
validity: AlertValidityStatus[];
|
|
937
967
|
}
|
|
938
968
|
export interface ValidationFingerprint {
|
|
969
|
+
/**
|
|
970
|
+
* The hash associated to the secret.
|
|
971
|
+
*/
|
|
939
972
|
validationFingerprintHash: string;
|
|
973
|
+
/**
|
|
974
|
+
* The JSON representation of the secret.
|
|
975
|
+
*/
|
|
940
976
|
validationFingerprintJson: string;
|
|
977
|
+
/**
|
|
978
|
+
* The date when the validity was last updated.
|
|
979
|
+
*/
|
|
980
|
+
validityLastUpdatedDate: Date;
|
|
981
|
+
/**
|
|
982
|
+
* The result of the validation.
|
|
983
|
+
*/
|
|
984
|
+
validityResult: string;
|
|
985
|
+
}
|
|
986
|
+
export declare enum ValidationStatus {
|
|
987
|
+
None = 0,
|
|
988
|
+
InProgress = 1,
|
|
989
|
+
Completed = 2,
|
|
990
|
+
Failed = 3
|
|
941
991
|
}
|
|
942
992
|
/**
|
|
943
993
|
* Information for locating files in a source control system
|
package/Alert/Alert.js
CHANGED
|
@@ -40,6 +40,12 @@ define(["require", "exports"], function (require, exports) {
|
|
|
40
40
|
*/
|
|
41
41
|
AlertType[AlertType["License"] = 4] = "License";
|
|
42
42
|
})(AlertType = exports.AlertType || (exports.AlertType = {}));
|
|
43
|
+
var AlertValidityStatus;
|
|
44
|
+
(function (AlertValidityStatus) {
|
|
45
|
+
AlertValidityStatus[AlertValidityStatus["Unknown"] = 0] = "Unknown";
|
|
46
|
+
AlertValidityStatus[AlertValidityStatus["Active"] = 1] = "Active";
|
|
47
|
+
AlertValidityStatus[AlertValidityStatus["Inactive"] = 2] = "Inactive";
|
|
48
|
+
})(AlertValidityStatus = exports.AlertValidityStatus || (exports.AlertValidityStatus = {}));
|
|
43
49
|
var AnalysisConfigurationType;
|
|
44
50
|
(function (AnalysisConfigurationType) {
|
|
45
51
|
/**
|
|
@@ -298,4 +304,11 @@ define(["require", "exports"], function (require, exports) {
|
|
|
298
304
|
*/
|
|
299
305
|
State[State["AutoDismissed"] = 8] = "AutoDismissed";
|
|
300
306
|
})(State = exports.State || (exports.State = {}));
|
|
307
|
+
var ValidationStatus;
|
|
308
|
+
(function (ValidationStatus) {
|
|
309
|
+
ValidationStatus[ValidationStatus["None"] = 0] = "None";
|
|
310
|
+
ValidationStatus[ValidationStatus["InProgress"] = 1] = "InProgress";
|
|
311
|
+
ValidationStatus[ValidationStatus["Completed"] = 2] = "Completed";
|
|
312
|
+
ValidationStatus[ValidationStatus["Failed"] = 3] = "Failed";
|
|
313
|
+
})(ValidationStatus = exports.ValidationStatus || (exports.ValidationStatus = {}));
|
|
301
314
|
});
|
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.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"}(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.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={}))});
|
|
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.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Inactive=2]="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"}(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.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.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(n.ValidationStatus||(n.ValidationStatus={}))});
|
package/Alert/AlertClient.d.ts
CHANGED
|
@@ -45,6 +45,24 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
45
45
|
* @param repository - The name or ID of the repository
|
|
46
46
|
*/
|
|
47
47
|
updateAlert(stateUpdate: Alert.AlertStateUpdate, project: string, alertId: number, repository: string): Promise<Alert.Alert>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the branches for which analysis results were submitted.
|
|
50
|
+
*
|
|
51
|
+
* @param project - Project ID or project name
|
|
52
|
+
* @param repository -
|
|
53
|
+
* @param alertType - The type of alert: Dependency Scanning (1), Secret (2), Code QL (3), etc.
|
|
54
|
+
* @param continuationToken - A string variable that represents the branch name and is used to fetch branches that follow it in alphabetical order.
|
|
55
|
+
* @param branchNameContains - A string variable used to fetch branches that contain this string anywhere in the branch name, case insensitive.
|
|
56
|
+
* @param top - An int variable used to return the top k branches that satisfy the search criteria.
|
|
57
|
+
* @param includePullRequestBranches - A bool variable indicating whether or not to include pull request branches.
|
|
58
|
+
*/
|
|
59
|
+
getBranches(project: string, repository: string, alertType: Alert.AlertType, continuationToken?: string, branchNameContains?: string, top?: number, includePullRequestBranches?: boolean): Promise<Alert.Branch[]>;
|
|
60
|
+
/**
|
|
61
|
+
* @param project - Project ID or project name
|
|
62
|
+
* @param repository -
|
|
63
|
+
* @param alertType -
|
|
64
|
+
*/
|
|
65
|
+
getUxFilters(project: string, repository: string, alertType: Alert.AlertType): Promise<Alert.UxFilters>;
|
|
48
66
|
/**
|
|
49
67
|
* Get instances of an alert on a branch specified with \@ref. If \@ref is not provided, return instances of an alert on default branch(if the alert exist in default branch) or latest affected branch.
|
|
50
68
|
*
|
|
@@ -71,28 +89,18 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
71
89
|
* @param notificationFlag - Header to signal that this is a progress notification
|
|
72
90
|
*/
|
|
73
91
|
uploadSarif(content: string, project: string, repository: string, notificationFlag?: String): Promise<number>;
|
|
74
|
-
/**
|
|
75
|
-
* Returns the branches for which analysis results were submitted.
|
|
76
|
-
*
|
|
77
|
-
* @param project - Project ID or project name
|
|
78
|
-
* @param repository -
|
|
79
|
-
* @param alertType - The type of alert: Dependency Scanning (1), Secret (2), Code QL (3), etc.
|
|
80
|
-
* @param continuationToken - A string variable that represents the branch name and is used to fetch branches that follow it in alphabetical order.
|
|
81
|
-
* @param branchNameContains - A string variable used to fetch branches that contain this string anywhere in the branch name, case insensitive.
|
|
82
|
-
* @param top - An int variable used to return the top k branches that satisfy the search criteria.
|
|
83
|
-
* @param includePullRequestBranches - A bool variable indicating whether or not to include pull request branches.
|
|
84
|
-
*/
|
|
85
|
-
getBranches(project: string, repository: string, alertType: Alert.AlertType, continuationToken?: string, branchNameContains?: string, top?: number, includePullRequestBranches?: boolean): Promise<Alert.Branch[]>;
|
|
86
|
-
/**
|
|
87
|
-
* @param project - Project ID or project name
|
|
88
|
-
* @param repository -
|
|
89
|
-
* @param alertType -
|
|
90
|
-
*/
|
|
91
|
-
getUxFilters(project: string, repository: string, alertType: Alert.AlertType): Promise<Alert.UxFilters>;
|
|
92
92
|
/**
|
|
93
93
|
* Get the status of the Sarif processing job
|
|
94
94
|
*
|
|
95
95
|
* @param sarifId - Sarif ID returned when the Sarif was uploaded
|
|
96
96
|
*/
|
|
97
97
|
getSarif(sarifId: number): Promise<Alert.SarifUploadStatus>;
|
|
98
|
+
/**
|
|
99
|
+
* Initiate the validation process for a given alert
|
|
100
|
+
*
|
|
101
|
+
* @param project - Project ID or project name
|
|
102
|
+
* @param repository - The name or ID of a repository
|
|
103
|
+
* @param alertId - The ID of the alert
|
|
104
|
+
*/
|
|
105
|
+
initiateValidation(project: string, repository: string, alertId: number): Promise<Alert.ValidationStatus>;
|
|
98
106
|
}
|
package/Alert/AlertClient.js
CHANGED
|
@@ -188,6 +188,66 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
188
188
|
});
|
|
189
189
|
});
|
|
190
190
|
};
|
|
191
|
+
/**
|
|
192
|
+
* Returns the branches for which analysis results were submitted.
|
|
193
|
+
*
|
|
194
|
+
* @param project - Project ID or project name
|
|
195
|
+
* @param repository -
|
|
196
|
+
* @param alertType - The type of alert: Dependency Scanning (1), Secret (2), Code QL (3), etc.
|
|
197
|
+
* @param continuationToken - A string variable that represents the branch name and is used to fetch branches that follow it in alphabetical order.
|
|
198
|
+
* @param branchNameContains - A string variable used to fetch branches that contain this string anywhere in the branch name, case insensitive.
|
|
199
|
+
* @param top - An int variable used to return the top k branches that satisfy the search criteria.
|
|
200
|
+
* @param includePullRequestBranches - A bool variable indicating whether or not to include pull request branches.
|
|
201
|
+
*/
|
|
202
|
+
AlertRestClient.prototype.getBranches = function (project, repository, alertType, continuationToken, branchNameContains, top, includePullRequestBranches) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
204
|
+
var queryValues;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
queryValues = {
|
|
207
|
+
alertType: alertType,
|
|
208
|
+
continuationToken: continuationToken,
|
|
209
|
+
branchNameContains: branchNameContains,
|
|
210
|
+
top: top,
|
|
211
|
+
includePullRequestBranches: includePullRequestBranches
|
|
212
|
+
};
|
|
213
|
+
return [2 /*return*/, this.beginRequest({
|
|
214
|
+
apiVersion: "7.2-preview.1",
|
|
215
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/filters/{action}",
|
|
216
|
+
routeValues: {
|
|
217
|
+
project: project,
|
|
218
|
+
repository: repository,
|
|
219
|
+
action: "Branches"
|
|
220
|
+
},
|
|
221
|
+
queryParams: queryValues
|
|
222
|
+
})];
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* @param project - Project ID or project name
|
|
228
|
+
* @param repository -
|
|
229
|
+
* @param alertType -
|
|
230
|
+
*/
|
|
231
|
+
AlertRestClient.prototype.getUxFilters = function (project, repository, alertType) {
|
|
232
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
233
|
+
var queryValues;
|
|
234
|
+
return __generator(this, function (_a) {
|
|
235
|
+
queryValues = {
|
|
236
|
+
alertType: alertType
|
|
237
|
+
};
|
|
238
|
+
return [2 /*return*/, this.beginRequest({
|
|
239
|
+
apiVersion: "7.2-preview.1",
|
|
240
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/filters/{action}",
|
|
241
|
+
routeValues: {
|
|
242
|
+
project: project,
|
|
243
|
+
repository: repository,
|
|
244
|
+
action: "Default"
|
|
245
|
+
},
|
|
246
|
+
queryParams: queryValues
|
|
247
|
+
})];
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
};
|
|
191
251
|
/**
|
|
192
252
|
* Get instances of an alert on a branch specified with \@ref. If \@ref is not provided, return instances of an alert on default branch(if the alert exist in default branch) or latest affected branch.
|
|
193
253
|
*
|
|
@@ -268,78 +328,41 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
268
328
|
});
|
|
269
329
|
};
|
|
270
330
|
/**
|
|
271
|
-
*
|
|
331
|
+
* Get the status of the Sarif processing job
|
|
272
332
|
*
|
|
273
|
-
* @param
|
|
274
|
-
* @param repository -
|
|
275
|
-
* @param alertType - The type of alert: Dependency Scanning (1), Secret (2), Code QL (3), etc.
|
|
276
|
-
* @param continuationToken - A string variable that represents the branch name and is used to fetch branches that follow it in alphabetical order.
|
|
277
|
-
* @param branchNameContains - A string variable used to fetch branches that contain this string anywhere in the branch name, case insensitive.
|
|
278
|
-
* @param top - An int variable used to return the top k branches that satisfy the search criteria.
|
|
279
|
-
* @param includePullRequestBranches - A bool variable indicating whether or not to include pull request branches.
|
|
333
|
+
* @param sarifId - Sarif ID returned when the Sarif was uploaded
|
|
280
334
|
*/
|
|
281
|
-
AlertRestClient.prototype.
|
|
335
|
+
AlertRestClient.prototype.getSarif = function (sarifId) {
|
|
282
336
|
return __awaiter(this, void 0, void 0, function () {
|
|
283
|
-
var queryValues;
|
|
284
337
|
return __generator(this, function (_a) {
|
|
285
|
-
queryValues = {
|
|
286
|
-
alertType: alertType,
|
|
287
|
-
continuationToken: continuationToken,
|
|
288
|
-
branchNameContains: branchNameContains,
|
|
289
|
-
top: top,
|
|
290
|
-
includePullRequestBranches: includePullRequestBranches
|
|
291
|
-
};
|
|
292
338
|
return [2 /*return*/, this.beginRequest({
|
|
293
|
-
apiVersion: "7.2-preview.
|
|
294
|
-
routeTemplate: "
|
|
339
|
+
apiVersion: "7.2-preview.2",
|
|
340
|
+
routeTemplate: "_apis/Alert/Sarifs/{sarifId}",
|
|
295
341
|
routeValues: {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
action: "Branches"
|
|
299
|
-
},
|
|
300
|
-
queryParams: queryValues
|
|
342
|
+
sarifId: sarifId
|
|
343
|
+
}
|
|
301
344
|
})];
|
|
302
345
|
});
|
|
303
346
|
});
|
|
304
347
|
};
|
|
305
348
|
/**
|
|
349
|
+
* Initiate the validation process for a given alert
|
|
350
|
+
*
|
|
306
351
|
* @param project - Project ID or project name
|
|
307
|
-
* @param repository -
|
|
308
|
-
* @param
|
|
352
|
+
* @param repository - The name or ID of a repository
|
|
353
|
+
* @param alertId - The ID of the alert
|
|
309
354
|
*/
|
|
310
|
-
AlertRestClient.prototype.
|
|
355
|
+
AlertRestClient.prototype.initiateValidation = function (project, repository, alertId) {
|
|
311
356
|
return __awaiter(this, void 0, void 0, function () {
|
|
312
|
-
var queryValues;
|
|
313
357
|
return __generator(this, function (_a) {
|
|
314
|
-
queryValues = {
|
|
315
|
-
alertType: alertType
|
|
316
|
-
};
|
|
317
358
|
return [2 /*return*/, this.beginRequest({
|
|
318
359
|
apiVersion: "7.2-preview.1",
|
|
319
|
-
|
|
360
|
+
method: "POST",
|
|
361
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",
|
|
320
362
|
routeValues: {
|
|
321
363
|
project: project,
|
|
322
364
|
repository: repository,
|
|
323
|
-
|
|
324
|
-
},
|
|
325
|
-
queryParams: queryValues
|
|
326
|
-
})];
|
|
327
|
-
});
|
|
328
|
-
});
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* Get the status of the Sarif processing job
|
|
332
|
-
*
|
|
333
|
-
* @param sarifId - Sarif ID returned when the Sarif was uploaded
|
|
334
|
-
*/
|
|
335
|
-
AlertRestClient.prototype.getSarif = function (sarifId) {
|
|
336
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
337
|
-
return __generator(this, function (_a) {
|
|
338
|
-
return [2 /*return*/, this.beginRequest({
|
|
339
|
-
apiVersion: "7.2-preview.2",
|
|
340
|
-
routeTemplate: "_apis/Alert/Sarifs/{sarifId}",
|
|
341
|
-
routeValues: {
|
|
342
|
-
sarifId: sarifId
|
|
365
|
+
alertId: alertId
|
|
343
366
|
}
|
|
344
367
|
})];
|
|
345
368
|
});
|
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.
|
|
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.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.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.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});
|
package/Build/Build.d.ts
CHANGED
package/Git/Git.d.ts
CHANGED
|
@@ -20,6 +20,10 @@ export interface AdvSecEnablementStatus {
|
|
|
20
20
|
* True if Dependabot is enabled for the repository, false if it is disabled.
|
|
21
21
|
*/
|
|
22
22
|
dependabotEnabled: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* True if Dependency Scanning injection is enabled for the repository, false if it is disabled.
|
|
25
|
+
*/
|
|
26
|
+
dependencyScanningInjectionEnabled: boolean;
|
|
23
27
|
/**
|
|
24
28
|
* Enabled status 0 disabled, 1 enabled, Null never explicitly set, always whatever project is, ya this should probably be an enum somewhere
|
|
25
29
|
*/
|
|
@@ -38,6 +42,10 @@ export interface AdvSecEnablementUpdate {
|
|
|
38
42
|
* New Dependabot status.
|
|
39
43
|
*/
|
|
40
44
|
newDependabotStatus: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* New Dependency Scanning injection enablement status.
|
|
47
|
+
*/
|
|
48
|
+
newDependencyScanningInjectionEnablementStatus: boolean;
|
|
41
49
|
/**
|
|
42
50
|
* New status
|
|
43
51
|
*/
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as WebApi from "../WebApi/WebApi";
|
|
2
2
|
export interface AdvSecEnablementFeatures {
|
|
3
|
+
/**
|
|
4
|
+
* Auto enablement of AdvSec for new projects or repos will be enabled when set to true and will be unchanged when set to false.
|
|
5
|
+
*/
|
|
6
|
+
autoEnableNewProjectOrRepos: boolean;
|
|
3
7
|
/**
|
|
4
8
|
* CodeQL enablement status set to False when disabled and True when enabled; Null is never explicitly set.
|
|
5
9
|
*/
|
|
@@ -9,9 +13,9 @@ export interface AdvSecEnablementFeatures {
|
|
|
9
13
|
*/
|
|
10
14
|
dependabotEnabled: boolean;
|
|
11
15
|
/**
|
|
12
|
-
* Dependency Scanning enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If
|
|
16
|
+
* Dependency Scanning Injection enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If Advanced Security is NOT already enabled, behavior will depend on if Advanced Security is to be enabled/disabled. DependencyScanningInjectionEnabled will not affect anything in this scenario. \<br /\> If Advanced Security is to be disabled, the value of DependencyScanningInjectionEnabled will have no effect. \<br /\> Setting Dependency Scanning enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
13
17
|
*/
|
|
14
|
-
|
|
18
|
+
dependencyScanningInjectionEnabled: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* ForceRepoSecretScanning will be set to true when Enabled, false when Disabled, and null when not set. \<br /\> If GHAzDO is NOT already enabled, behavior will depend on if GHAzDO is to be enabled/disabled. ForceRepoSecretScanning will not affect anything in this scenario. \<br /\> If GHAzDO is to be disabled, the value of ForceRepoSecretScan will have no effect. \<br /\> If GHAzDO is to be enabled for the first time on a repo, then ForceRepoSecretScanning will have no effect. \<br /\> If GHAzDO is to be enabled and the repo is already enabled, then ForceRepoSecretScanning will force the secret scanning job to be run if it is set to true. \<br /\> In all cases where ForceRepoSecretScanning is not expected to affect behavior, it will be set to false before being sent to Tfs.
|
|
17
21
|
*/
|
package/Test/Test.d.ts
CHANGED
|
@@ -2346,7 +2346,11 @@ export declare enum SessionResult {
|
|
|
2346
2346
|
/**
|
|
2347
2347
|
* Session result with Failed
|
|
2348
2348
|
*/
|
|
2349
|
-
Failed = 2
|
|
2349
|
+
Failed = 2,
|
|
2350
|
+
/**
|
|
2351
|
+
* Session result still Pending
|
|
2352
|
+
*/
|
|
2353
|
+
Pending = 3
|
|
2350
2354
|
}
|
|
2351
2355
|
/**
|
|
2352
2356
|
* SessionSourcePipeline
|
|
@@ -2410,7 +2414,7 @@ export interface SharedStepModel {
|
|
|
2410
2414
|
*/
|
|
2411
2415
|
export interface Source {
|
|
2412
2416
|
/**
|
|
2413
|
-
* Source links Valid values for "type" property = (SessionInfo)
|
|
2417
|
+
* Source links Valid values for "type" property = (SessionInfo, ResubmitSession)
|
|
2414
2418
|
*/
|
|
2415
2419
|
links: Link[];
|
|
2416
2420
|
/**
|
|
@@ -2931,7 +2935,7 @@ export interface TestCaseResult {
|
|
|
2931
2935
|
*/
|
|
2932
2936
|
layoutUid: string;
|
|
2933
2937
|
/**
|
|
2934
|
-
* Links Valid values for "type" property = (MoreInfo, ResultInvestigation, TestInfo)
|
|
2938
|
+
* Links Valid values for "type" property = (BucketInvestigation, MoreInfo, ResultInvestigation, TestInfo)
|
|
2935
2939
|
*/
|
|
2936
2940
|
links: Link[];
|
|
2937
2941
|
/**
|
package/Test/Test.js
CHANGED
|
@@ -441,6 +441,10 @@ define(["require", "exports"], function (require, exports) {
|
|
|
441
441
|
* Session result with Failed
|
|
442
442
|
*/
|
|
443
443
|
SessionResult[SessionResult["Failed"] = 2] = "Failed";
|
|
444
|
+
/**
|
|
445
|
+
* Session result still Pending
|
|
446
|
+
*/
|
|
447
|
+
SessionResult[SessionResult["Pending"] = 3] = "Pending";
|
|
444
448
|
})(SessionResult = exports.SessionResult || (exports.SessionResult = {}));
|
|
445
449
|
/**
|
|
446
450
|
* Option to get details in response
|
package/Test/Test.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.GeneralAttachment=0]="GeneralAttachment",e[e.AfnStrip=1]="AfnStrip",e[e.BugFilingData=2]="BugFilingData",e[e.CodeCoverage=3]="CodeCoverage",e[e.IntermediateCollectorData=4]="IntermediateCollectorData",e[e.RunConfig=5]="RunConfig",e[e.TestImpactDetails=6]="TestImpactDetails",e[e.TmiTestRunDeploymentFiles=7]="TmiTestRunDeploymentFiles",e[e.TmiTestRunReverseDeploymentFiles=8]="TmiTestRunReverseDeploymentFiles",e[e.TmiTestResultDetail=9]="TmiTestResultDetail",e[e.TmiTestRunSummary=10]="TmiTestRunSummary",e[e.ConsoleLog=11]="ConsoleLog"}(t.AttachmentType||(t.AttachmentType={}));!function(e){e[e.Failed=2]="Failed",e[e.InProgress=1]="InProgress",e[e.Queued=0]="Queued",e[e.Succeeded=3]="Succeeded"}(t.CloneOperationState||(t.CloneOperationState={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Finalized=2]="Finalized",e[e.Pending=3]="Pending",e[e.UpdateRequestQueued=4]="UpdateRequestQueued",e[e.NoModulesFound=5]="NoModulesFound",e[e.NumberOfFilesExceeded=6]="NumberOfFilesExceeded",e[e.NoInputFiles=7]="NoInputFiles",e[e.BuildCancelled=8]="BuildCancelled",e[e.FailedJobs=9]="FailedJobs",e[e.ModuleMergeJobTimeout=10]="ModuleMergeJobTimeout",e[e.CodeCoverageSuccess=11]="CodeCoverageSuccess",e[e.InvalidBuildConfiguration=12]="InvalidBuildConfiguration",e[e.CoverageAnalyzerBuildNotFound=13]="CoverageAnalyzerBuildNotFound",e[e.FailedToRequeue=14]="FailedToRequeue",e[e.BuildBailedOut=15]="BuildBailedOut",e[e.NoCodeCoverageTask=16]="NoCodeCoverageTask",e[e.MergeJobFailed=17]="MergeJobFailed",e[e.MergeInvokerJobFailed=18]="MergeInvokerJobFailed",e[e.MonitorJobFailed=19]="MonitorJobFailed",e[e.ModuleMergeInvokerJobTimeout=20]="ModuleMergeInvokerJobTimeout",e[e.MonitorJobTimeout=21]="MonitorJobTimeout",e[e.InvalidCoverageInput=22]="InvalidCoverageInput"}(t.CoverageDetailedSummaryStatus||(t.CoverageDetailedSummaryStatus={}));!function(e){e[e.Modules=1]="Modules",e[e.Functions=2]="Functions",e[e.BlockData=4]="BlockData"}(t.CoverageQueryFlags||(t.CoverageQueryFlags={}));!function(e){e[e.Covered=0]="Covered",e[e.NotCovered=1]="NotCovered",e[e.PartiallyCovered=2]="PartiallyCovered"}(t.CoverageStatus||(t.CoverageStatus={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Finalized=3]="Finalized",e[e.Pending=4]="Pending",e[e.UpdateRequestQueued=5]="UpdateRequestQueued"}(t.CoverageSummaryStatus||(t.CoverageSummaryStatus={}));!function(e){e[e.None=0]="None",e[e.TestRun=1]="TestRun",e[e.TestResult=2]="TestResult",e[e.TestRunAndTestResult=3]="TestRunAndTestResult",e[e.System=4]="System",e[e.All=7]="All"}(t.CustomTestFieldScope||(t.CustomTestFieldScope={}));!function(e){e[e.Bit=2]="Bit",e[e.DateTime=4]="DateTime",e[e.Int=8]="Int",e[e.Float=6]="Float",e[e.String=12]="String",e[e.Guid=14]="Guid"}(t.CustomTestFieldType||(t.CustomTestFieldType={}));!function(e){e[e.Custom=1]="Custom",e[e.System=2]="System"}(t.FlakyDetectionType||(t.FlakyDetectionType={}));!function(e){e[e.All=1]="All",e[e.ResultSummary=2]="ResultSummary",e[e.ResultsAnalysis=3]="ResultsAnalysis",e[e.RunSummary=4]="RunSummary"}(t.Metrics||(t.Metrics={}));!function(e){e[e.Add=1]="Add",e[e.Delete=2]="Delete"}(t.OperationType||(t.OperationType={}));!function(e){e[e.None=0]="None",e[e.Iterations=1]="Iterations",e[e.WorkItems=2]="WorkItems",e[e.SubResults=4]="SubResults",e[e.Point=8]="Point"}(t.ResultDetails||(t.ResultDetails={}));!function(e){e[e.None=0]="None",e[e.Rerun=1]="Rerun",e[e.DataDriven=2]="DataDriven",e[e.OrderedTest=3]="OrderedTest",e[e.Generic=4]="Generic"}(t.ResultGroupType||(t.ResultGroupType={}));!function(e){e[e.Rerun=1]="Rerun",e[e.Flaky=2]="Flaky"}(t.ResultMetadata||(t.ResultMetadata={}));!function(e){e[e.None=0]="None",e[e.FlakyIdentifiers=1]="FlakyIdentifiers"}(t.ResultMetaDataDetails||(t.ResultMetaDataDetails={}));!function(e){e[e.TestSuite=0]="TestSuite",e[e.TestPlan=1]="TestPlan"}(t.ResultObjectType||(t.ResultObjectType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.Normal=1]="Normal",e[e.Blocking=2]="Blocking",e[e.Web=4]="Web",e[e.MtrRunInitiatedFromWeb=8]="MtrRunInitiatedFromWeb",e[e.RunWithDtlEnv=16]="RunWithDtlEnv",e[e.NoConfigRun=32]="NoConfigRun"}(t.RunType||(t.RunType={}));!function(e){e[e.Any=0]="Any",e[e.Tcm=1]="Tcm",e[e.Tfs=2]="Tfs"}(t.Service||(t.Service={}));!function(e){e[e.None=0]="None",e[e.Passed=1]="Passed",e[e.Failed=2]="Failed"}(t.SessionResult||(t.SessionResult={}));!function(e){e[e.Children=1]="Children",e[e.DefaultTesters=2]="DefaultTesters"}(t.SuiteExpand||(t.SuiteExpand={}));!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(t.TCMServiceDataMigrationStatus||(t.TCMServiceDataMigrationStatus={}));!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(t.TestConfigurationState||(t.TestConfigurationState={}));!function(e){e[e.Run=0]="Run",e[e.Build=1]="Build",e[e.Release=2]="Release"}(t.TestLogScope||(t.TestLogScope={}));!function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.FileAlreadyExists=2]="FileAlreadyExists",e[e.InvalidInput=3]="InvalidInput",e[e.InvalidFileName=4]="InvalidFileName",e[e.InvalidContainer=5]="InvalidContainer",e[e.TransferFailed=6]="TransferFailed",e[e.FeatureDisabled=7]="FeatureDisabled",e[e.BuildDoesNotExist=8]="BuildDoesNotExist",e[e.RunDoesNotExist=9]="RunDoesNotExist",e[e.ContainerNotCreated=10]="ContainerNotCreated",e[e.APINotSupported=11]="APINotSupported",e[e.FileSizeExceeds=12]="FileSizeExceeds",e[e.ContainerNotFound=13]="ContainerNotFound",e[e.FileNotFound=14]="FileNotFound",e[e.DirectoryNotFound=15]="DirectoryNotFound",e[e.StorageCapacityExceeded=16]="StorageCapacityExceeded"}(t.TestLogStatusCode||(t.TestLogStatusCode={}));!function(e){e[e.Root=1]="Root",e[e.File=2]="File"}(t.TestLogStoreEndpointType||(t.TestLogStoreEndpointType={}));!function(e){e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.ReadAndCreate=3]="ReadAndCreate"}(t.TestLogStoreOperationType||(t.TestLogStoreOperationType={}));!function(e){e[e.GeneralAttachment=1]="GeneralAttachment",e[e.CodeCoverage=2]="CodeCoverage",e[e.TestImpact=3]="TestImpact",e[e.Intermediate=4]="Intermediate",e[e.System=5]="System",e[e.MergedCoverageFile=6]="MergedCoverageFile"}(t.TestLogType||(t.TestLogType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.None=1]="None",e[e.Passed=2]="Passed",e[e.Failed=3]="Failed",e[e.Inconclusive=4]="Inconclusive",e[e.Timeout=5]="Timeout",e[e.Aborted=6]="Aborted",e[e.Blocked=7]="Blocked",e[e.NotExecuted=8]="NotExecuted",e[e.Warning=9]="Warning",e[e.Error=10]="Error",e[e.NotApplicable=11]="NotApplicable",e[e.Paused=12]="Paused",e[e.InProgress=13]="InProgress",e[e.NotImpacted=14]="NotImpacted",e[e.MaxValue=14]="MaxValue"}(t.TestOutcome||(t.TestOutcome={}));!function(e){e[e.None=0]="None",e[e.Ready=1]="Ready",e[e.Completed=2]="Completed",e[e.NotReady=3]="NotReady",e[e.InProgress=4]="InProgress",e[e.MaxValue=4]="MaxValue"}(t.TestPointState||(t.TestPointState={}));!function(e){e[e.Branch=1]="Branch",e[e.Environment=2]="Environment"}(t.TestResultGroupBy||(t.TestResultGroupBy={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.Pipeline=3]="Pipeline"}(t.TestResultsContextType||(t.TestResultsContextType={}));!function(e){e[e.None=0]="None",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e[e.Waiting=3]="Waiting",e[e.Cancelled=4]="Cancelled"}(t.TestResultsSessionState||(t.TestResultsSessionState={}));!function(e){e[e.All=1]="All",e[e.Flaky=2]="Flaky",e[e.NewTestLogging=3]="NewTestLogging"}(t.TestResultsSettingsType||(t.TestResultsSettingsType={}));!function(e){e[e.Passed=0]="Passed",e[e.Failed=1]="Failed",e[e.NotImpacted=2]="NotImpacted",e[e.Others=3]="Others"}(t.TestRunOutcome||(t.TestRunOutcome={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.All=3]="All"}(t.TestRunPublishContext||(t.TestRunPublishContext={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Aborted=4]="Aborted",e[e.Waiting=5]="Waiting",e[e.NeedsInvestigation=6]="NeedsInvestigation"}(t.TestRunState||(t.TestRunState={}));!function(e){e[e.None=0]="None",e[e.CreatingEnvironment=1]="CreatingEnvironment",e[e.RunningTests=2]="RunningTests",e[e.CanceledByUser=3]="CanceledByUser",e[e.AbortedBySystem=4]="AbortedBySystem",e[e.TimedOut=5]="TimedOut",e[e.PendingAnalysis=6]="PendingAnalysis",e[e.Analyzed=7]="Analyzed",e[e.CancellationInProgress=8]="CancellationInProgress"}(t.TestRunSubstate||(t.TestRunSubstate={}));!function(e){e[e.Unknown=0]="Unknown",e[e.XTDesktop=1]="XTDesktop",e[e.FeedbackDesktop=2]="FeedbackDesktop",e[e.XTWeb=3]="XTWeb",e[e.FeedbackWeb=4]="FeedbackWeb",e[e.XTDesktop2=5]="XTDesktop2",e[e.SessionInsightsForAll=6]="SessionInsightsForAll"}(t.TestSessionSource||(t.TestSessionSource={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Paused=3]="Paused",e[e.Completed=4]="Completed",e[e.Declined=5]="Declined"}(t.TestSessionState||(t.TestSessionState={}))});
|
|
1
|
+
define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.GeneralAttachment=0]="GeneralAttachment",e[e.AfnStrip=1]="AfnStrip",e[e.BugFilingData=2]="BugFilingData",e[e.CodeCoverage=3]="CodeCoverage",e[e.IntermediateCollectorData=4]="IntermediateCollectorData",e[e.RunConfig=5]="RunConfig",e[e.TestImpactDetails=6]="TestImpactDetails",e[e.TmiTestRunDeploymentFiles=7]="TmiTestRunDeploymentFiles",e[e.TmiTestRunReverseDeploymentFiles=8]="TmiTestRunReverseDeploymentFiles",e[e.TmiTestResultDetail=9]="TmiTestResultDetail",e[e.TmiTestRunSummary=10]="TmiTestRunSummary",e[e.ConsoleLog=11]="ConsoleLog"}(t.AttachmentType||(t.AttachmentType={}));!function(e){e[e.Failed=2]="Failed",e[e.InProgress=1]="InProgress",e[e.Queued=0]="Queued",e[e.Succeeded=3]="Succeeded"}(t.CloneOperationState||(t.CloneOperationState={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Finalized=2]="Finalized",e[e.Pending=3]="Pending",e[e.UpdateRequestQueued=4]="UpdateRequestQueued",e[e.NoModulesFound=5]="NoModulesFound",e[e.NumberOfFilesExceeded=6]="NumberOfFilesExceeded",e[e.NoInputFiles=7]="NoInputFiles",e[e.BuildCancelled=8]="BuildCancelled",e[e.FailedJobs=9]="FailedJobs",e[e.ModuleMergeJobTimeout=10]="ModuleMergeJobTimeout",e[e.CodeCoverageSuccess=11]="CodeCoverageSuccess",e[e.InvalidBuildConfiguration=12]="InvalidBuildConfiguration",e[e.CoverageAnalyzerBuildNotFound=13]="CoverageAnalyzerBuildNotFound",e[e.FailedToRequeue=14]="FailedToRequeue",e[e.BuildBailedOut=15]="BuildBailedOut",e[e.NoCodeCoverageTask=16]="NoCodeCoverageTask",e[e.MergeJobFailed=17]="MergeJobFailed",e[e.MergeInvokerJobFailed=18]="MergeInvokerJobFailed",e[e.MonitorJobFailed=19]="MonitorJobFailed",e[e.ModuleMergeInvokerJobTimeout=20]="ModuleMergeInvokerJobTimeout",e[e.MonitorJobTimeout=21]="MonitorJobTimeout",e[e.InvalidCoverageInput=22]="InvalidCoverageInput"}(t.CoverageDetailedSummaryStatus||(t.CoverageDetailedSummaryStatus={}));!function(e){e[e.Modules=1]="Modules",e[e.Functions=2]="Functions",e[e.BlockData=4]="BlockData"}(t.CoverageQueryFlags||(t.CoverageQueryFlags={}));!function(e){e[e.Covered=0]="Covered",e[e.NotCovered=1]="NotCovered",e[e.PartiallyCovered=2]="PartiallyCovered"}(t.CoverageStatus||(t.CoverageStatus={}));!function(e){e[e.None=0]="None",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Finalized=3]="Finalized",e[e.Pending=4]="Pending",e[e.UpdateRequestQueued=5]="UpdateRequestQueued"}(t.CoverageSummaryStatus||(t.CoverageSummaryStatus={}));!function(e){e[e.None=0]="None",e[e.TestRun=1]="TestRun",e[e.TestResult=2]="TestResult",e[e.TestRunAndTestResult=3]="TestRunAndTestResult",e[e.System=4]="System",e[e.All=7]="All"}(t.CustomTestFieldScope||(t.CustomTestFieldScope={}));!function(e){e[e.Bit=2]="Bit",e[e.DateTime=4]="DateTime",e[e.Int=8]="Int",e[e.Float=6]="Float",e[e.String=12]="String",e[e.Guid=14]="Guid"}(t.CustomTestFieldType||(t.CustomTestFieldType={}));!function(e){e[e.Custom=1]="Custom",e[e.System=2]="System"}(t.FlakyDetectionType||(t.FlakyDetectionType={}));!function(e){e[e.All=1]="All",e[e.ResultSummary=2]="ResultSummary",e[e.ResultsAnalysis=3]="ResultsAnalysis",e[e.RunSummary=4]="RunSummary"}(t.Metrics||(t.Metrics={}));!function(e){e[e.Add=1]="Add",e[e.Delete=2]="Delete"}(t.OperationType||(t.OperationType={}));!function(e){e[e.None=0]="None",e[e.Iterations=1]="Iterations",e[e.WorkItems=2]="WorkItems",e[e.SubResults=4]="SubResults",e[e.Point=8]="Point"}(t.ResultDetails||(t.ResultDetails={}));!function(e){e[e.None=0]="None",e[e.Rerun=1]="Rerun",e[e.DataDriven=2]="DataDriven",e[e.OrderedTest=3]="OrderedTest",e[e.Generic=4]="Generic"}(t.ResultGroupType||(t.ResultGroupType={}));!function(e){e[e.Rerun=1]="Rerun",e[e.Flaky=2]="Flaky"}(t.ResultMetadata||(t.ResultMetadata={}));!function(e){e[e.None=0]="None",e[e.FlakyIdentifiers=1]="FlakyIdentifiers"}(t.ResultMetaDataDetails||(t.ResultMetaDataDetails={}));!function(e){e[e.TestSuite=0]="TestSuite",e[e.TestPlan=1]="TestPlan"}(t.ResultObjectType||(t.ResultObjectType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.Normal=1]="Normal",e[e.Blocking=2]="Blocking",e[e.Web=4]="Web",e[e.MtrRunInitiatedFromWeb=8]="MtrRunInitiatedFromWeb",e[e.RunWithDtlEnv=16]="RunWithDtlEnv",e[e.NoConfigRun=32]="NoConfigRun"}(t.RunType||(t.RunType={}));!function(e){e[e.Any=0]="Any",e[e.Tcm=1]="Tcm",e[e.Tfs=2]="Tfs"}(t.Service||(t.Service={}));!function(e){e[e.None=0]="None",e[e.Passed=1]="Passed",e[e.Failed=2]="Failed",e[e.Pending=3]="Pending"}(t.SessionResult||(t.SessionResult={}));!function(e){e[e.Children=1]="Children",e[e.DefaultTesters=2]="DefaultTesters"}(t.SuiteExpand||(t.SuiteExpand={}));!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(t.TCMServiceDataMigrationStatus||(t.TCMServiceDataMigrationStatus={}));!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(t.TestConfigurationState||(t.TestConfigurationState={}));!function(e){e[e.Run=0]="Run",e[e.Build=1]="Build",e[e.Release=2]="Release"}(t.TestLogScope||(t.TestLogScope={}));!function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.FileAlreadyExists=2]="FileAlreadyExists",e[e.InvalidInput=3]="InvalidInput",e[e.InvalidFileName=4]="InvalidFileName",e[e.InvalidContainer=5]="InvalidContainer",e[e.TransferFailed=6]="TransferFailed",e[e.FeatureDisabled=7]="FeatureDisabled",e[e.BuildDoesNotExist=8]="BuildDoesNotExist",e[e.RunDoesNotExist=9]="RunDoesNotExist",e[e.ContainerNotCreated=10]="ContainerNotCreated",e[e.APINotSupported=11]="APINotSupported",e[e.FileSizeExceeds=12]="FileSizeExceeds",e[e.ContainerNotFound=13]="ContainerNotFound",e[e.FileNotFound=14]="FileNotFound",e[e.DirectoryNotFound=15]="DirectoryNotFound",e[e.StorageCapacityExceeded=16]="StorageCapacityExceeded"}(t.TestLogStatusCode||(t.TestLogStatusCode={}));!function(e){e[e.Root=1]="Root",e[e.File=2]="File"}(t.TestLogStoreEndpointType||(t.TestLogStoreEndpointType={}));!function(e){e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.ReadAndCreate=3]="ReadAndCreate"}(t.TestLogStoreOperationType||(t.TestLogStoreOperationType={}));!function(e){e[e.GeneralAttachment=1]="GeneralAttachment",e[e.CodeCoverage=2]="CodeCoverage",e[e.TestImpact=3]="TestImpact",e[e.Intermediate=4]="Intermediate",e[e.System=5]="System",e[e.MergedCoverageFile=6]="MergedCoverageFile"}(t.TestLogType||(t.TestLogType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.None=1]="None",e[e.Passed=2]="Passed",e[e.Failed=3]="Failed",e[e.Inconclusive=4]="Inconclusive",e[e.Timeout=5]="Timeout",e[e.Aborted=6]="Aborted",e[e.Blocked=7]="Blocked",e[e.NotExecuted=8]="NotExecuted",e[e.Warning=9]="Warning",e[e.Error=10]="Error",e[e.NotApplicable=11]="NotApplicable",e[e.Paused=12]="Paused",e[e.InProgress=13]="InProgress",e[e.NotImpacted=14]="NotImpacted",e[e.MaxValue=14]="MaxValue"}(t.TestOutcome||(t.TestOutcome={}));!function(e){e[e.None=0]="None",e[e.Ready=1]="Ready",e[e.Completed=2]="Completed",e[e.NotReady=3]="NotReady",e[e.InProgress=4]="InProgress",e[e.MaxValue=4]="MaxValue"}(t.TestPointState||(t.TestPointState={}));!function(e){e[e.Branch=1]="Branch",e[e.Environment=2]="Environment"}(t.TestResultGroupBy||(t.TestResultGroupBy={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.Pipeline=3]="Pipeline"}(t.TestResultsContextType||(t.TestResultsContextType={}));!function(e){e[e.None=0]="None",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e[e.Waiting=3]="Waiting",e[e.Cancelled=4]="Cancelled"}(t.TestResultsSessionState||(t.TestResultsSessionState={}));!function(e){e[e.All=1]="All",e[e.Flaky=2]="Flaky",e[e.NewTestLogging=3]="NewTestLogging"}(t.TestResultsSettingsType||(t.TestResultsSettingsType={}));!function(e){e[e.Passed=0]="Passed",e[e.Failed=1]="Failed",e[e.NotImpacted=2]="NotImpacted",e[e.Others=3]="Others"}(t.TestRunOutcome||(t.TestRunOutcome={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.All=3]="All"}(t.TestRunPublishContext||(t.TestRunPublishContext={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Aborted=4]="Aborted",e[e.Waiting=5]="Waiting",e[e.NeedsInvestigation=6]="NeedsInvestigation"}(t.TestRunState||(t.TestRunState={}));!function(e){e[e.None=0]="None",e[e.CreatingEnvironment=1]="CreatingEnvironment",e[e.RunningTests=2]="RunningTests",e[e.CanceledByUser=3]="CanceledByUser",e[e.AbortedBySystem=4]="AbortedBySystem",e[e.TimedOut=5]="TimedOut",e[e.PendingAnalysis=6]="PendingAnalysis",e[e.Analyzed=7]="Analyzed",e[e.CancellationInProgress=8]="CancellationInProgress"}(t.TestRunSubstate||(t.TestRunSubstate={}));!function(e){e[e.Unknown=0]="Unknown",e[e.XTDesktop=1]="XTDesktop",e[e.FeedbackDesktop=2]="FeedbackDesktop",e[e.XTWeb=3]="XTWeb",e[e.FeedbackWeb=4]="FeedbackWeb",e[e.XTDesktop2=5]="XTDesktop2",e[e.SessionInsightsForAll=6]="SessionInsightsForAll"}(t.TestSessionSource||(t.TestSessionSource={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Paused=3]="Paused",e[e.Completed=4]="Completed",e[e.Declined=5]="Declined"}(t.TestSessionState||(t.TestSessionState={}))});
|
package/TestPlan/TestPlan.d.ts
CHANGED
|
@@ -183,6 +183,92 @@ export interface Configuration {
|
|
|
183
183
|
*/
|
|
184
184
|
configurationId: number;
|
|
185
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* This data model is used in TestRunDataProvider and provides the TestCaseResultsData for a Test run
|
|
188
|
+
*/
|
|
189
|
+
export interface CustomTestCaseResultData {
|
|
190
|
+
/**
|
|
191
|
+
* Reference to area path of test.
|
|
192
|
+
*/
|
|
193
|
+
area: Test.ShallowReference;
|
|
194
|
+
/**
|
|
195
|
+
* Reference to test configuration. Type ShallowReference.
|
|
196
|
+
*/
|
|
197
|
+
configuration: Test.ShallowReference;
|
|
198
|
+
/**
|
|
199
|
+
* Array of custom data for additional categorization of the test result. Value of the CustomTestField cannot be more than 1KB.
|
|
200
|
+
*/
|
|
201
|
+
customFields: Test.CustomTestField[];
|
|
202
|
+
/**
|
|
203
|
+
* Duration of test execution in milliseconds. If not provided value will be set as CompletedDate - StartedDate
|
|
204
|
+
*/
|
|
205
|
+
durationInMs: number;
|
|
206
|
+
/**
|
|
207
|
+
* ID of a test result.
|
|
208
|
+
*/
|
|
209
|
+
id: number;
|
|
210
|
+
/**
|
|
211
|
+
* Test outcome of test result. Valid values = (Unspecified, None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, NotExecuted, Warning, Error, NotApplicable, Paused, InProgress, NotImpacted)
|
|
212
|
+
*/
|
|
213
|
+
outcome: string;
|
|
214
|
+
/**
|
|
215
|
+
* Reference to test owner.
|
|
216
|
+
*/
|
|
217
|
+
owner: WebApi.IdentityRef;
|
|
218
|
+
/**
|
|
219
|
+
* Priority of test executed.
|
|
220
|
+
*/
|
|
221
|
+
priority: number;
|
|
222
|
+
/**
|
|
223
|
+
* Reference to the test executed.
|
|
224
|
+
*/
|
|
225
|
+
testCase: Test.ShallowReference;
|
|
226
|
+
/**
|
|
227
|
+
* Reference to test suite test case workitem is part of.
|
|
228
|
+
*/
|
|
229
|
+
testSuite: Test.ShallowReference;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* This data model is used in AllTestRunsViewDataProvider and provides Test Run Data
|
|
233
|
+
*/
|
|
234
|
+
export interface CustomTestRunData {
|
|
235
|
+
/**
|
|
236
|
+
* Build Number.
|
|
237
|
+
*/
|
|
238
|
+
buildNumber: string;
|
|
239
|
+
/**
|
|
240
|
+
* Completed date time of the run.
|
|
241
|
+
*/
|
|
242
|
+
completedDate: string;
|
|
243
|
+
/**
|
|
244
|
+
* Duration of the run execution in milliseconds
|
|
245
|
+
*/
|
|
246
|
+
durationInMs: number;
|
|
247
|
+
/**
|
|
248
|
+
* No. of tests failed in the run
|
|
249
|
+
*/
|
|
250
|
+
failedTestsCount: number;
|
|
251
|
+
/**
|
|
252
|
+
* ID of the test run.
|
|
253
|
+
*/
|
|
254
|
+
id: number;
|
|
255
|
+
/**
|
|
256
|
+
* Name of the test run.
|
|
257
|
+
*/
|
|
258
|
+
name: string;
|
|
259
|
+
/**
|
|
260
|
+
* Pass rate of the run
|
|
261
|
+
*/
|
|
262
|
+
passRate: string;
|
|
263
|
+
/**
|
|
264
|
+
* Start date time of the run.
|
|
265
|
+
*/
|
|
266
|
+
startedDate: string;
|
|
267
|
+
/**
|
|
268
|
+
* The state of the run. Type TestRunState Valid states - Unspecified ,NotStarted, InProgress, Completed, Waiting, Aborted, NeedsInvestigation
|
|
269
|
+
*/
|
|
270
|
+
state: string;
|
|
271
|
+
}
|
|
186
272
|
/**
|
|
187
273
|
* Destination Test Plan create parameters
|
|
188
274
|
*/
|