azure-devops-extension-api 4.250.0 → 4.252.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 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
  */
@@ -483,6 +505,23 @@ export declare enum ExpandOption {
483
505
  */
484
506
  ValidationFingerprint = 1
485
507
  }
508
+ /**
509
+ * Details for a legal review for a given component
510
+ */
511
+ export interface LegalReview {
512
+ /**
513
+ * The review id. This indicates the associated work item id for dev it's witness-dev and for prod it's ossmsft.
514
+ */
515
+ id: number;
516
+ /**
517
+ * The review state.
518
+ */
519
+ state: string;
520
+ /**
521
+ * The review web url.
522
+ */
523
+ webUrl: string;
524
+ }
486
525
  /**
487
526
  * License information for dependencies
488
527
  */
@@ -846,6 +885,10 @@ export interface SearchCriteria {
846
885
  * If provided with toolName, only return alerts detected by this tool. \<br /\>Otherwise, return alerts detected by all tools.
847
886
  */
848
887
  toolName: string;
888
+ /**
889
+ * 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.
890
+ */
891
+ validity: AlertValidityStatus;
849
892
  }
850
893
  export declare enum Severity {
851
894
  Low = 0,
@@ -934,10 +977,34 @@ export interface UxFilters {
934
977
  * Display alerts for specified tools. Show alerts for all tools if none are specified.
935
978
  */
936
979
  tools: Tool[];
980
+ /**
981
+ * Display alerts for specified validity. Show alerts for all validities if none are specified.
982
+ */
983
+ validity: AlertValidityStatus[];
937
984
  }
938
985
  export interface ValidationFingerprint {
986
+ /**
987
+ * The hash associated to the secret.
988
+ */
939
989
  validationFingerprintHash: string;
990
+ /**
991
+ * The JSON representation of the secret.
992
+ */
940
993
  validationFingerprintJson: string;
994
+ /**
995
+ * The date when the validity was last updated.
996
+ */
997
+ validityLastUpdatedDate: Date;
998
+ /**
999
+ * The result of the validation.
1000
+ */
1001
+ validityResult: string;
1002
+ }
1003
+ export declare enum ValidationStatus {
1004
+ None = 0,
1005
+ InProgress = 1,
1006
+ Completed = 2,
1007
+ Failed = 3
941
1008
  }
942
1009
  /**
943
1010
  * 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
  });
@@ -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={}))});
@@ -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
  *
@@ -54,6 +72,15 @@ export declare class AlertRestClient extends RestClientBase {
54
72
  * @param ref -
55
73
  */
56
74
  getAlertInstances(project: string, alertId: number, repository: string, ref?: string): Promise<Alert.AlertAnalysisInstance[]>;
75
+ /**
76
+ * Create legal review. This creates the legal review associated with the alert. It include the review work item url.
77
+ *
78
+ * @param project - Project ID or project name
79
+ * @param repository - Name or id of a repository for the legal alert
80
+ * @param alertId - Advance Security alert id of the legal alert to get the legal review
81
+ * @param ref -
82
+ */
83
+ createLegalReview(project: string, repository: string, alertId: number, ref?: string): Promise<Alert.LegalReview>;
57
84
  /**
58
85
  * Update alert metadata associations.
59
86
  *
@@ -71,28 +98,18 @@ export declare class AlertRestClient extends RestClientBase {
71
98
  * @param notificationFlag - Header to signal that this is a progress notification
72
99
  */
73
100
  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
101
  /**
93
102
  * Get the status of the Sarif processing job
94
103
  *
95
104
  * @param sarifId - Sarif ID returned when the Sarif was uploaded
96
105
  */
97
106
  getSarif(sarifId: number): Promise<Alert.SarifUploadStatus>;
107
+ /**
108
+ * Initiate the validation process for a given alert
109
+ *
110
+ * @param project - Project ID or project name
111
+ * @param repository - The name or ID of a repository
112
+ * @param alertId - The ID of the alert
113
+ */
114
+ initiateValidation(project: string, repository: string, alertId: number): Promise<Alert.ValidationStatus>;
98
115
  }
@@ -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
  *
@@ -216,6 +276,35 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
216
276
  });
217
277
  });
218
278
  };
279
+ /**
280
+ * Create legal review. This creates the legal review associated with the alert. It include the review work item url.
281
+ *
282
+ * @param project - Project ID or project name
283
+ * @param repository - Name or id of a repository for the legal alert
284
+ * @param alertId - Advance Security alert id of the legal alert to get the legal review
285
+ * @param ref -
286
+ */
287
+ AlertRestClient.prototype.createLegalReview = function (project, repository, alertId, ref) {
288
+ return __awaiter(this, void 0, void 0, function () {
289
+ var queryValues;
290
+ return __generator(this, function (_a) {
291
+ queryValues = {
292
+ alertId: alertId,
293
+ ref: ref
294
+ };
295
+ return [2 /*return*/, this.beginRequest({
296
+ apiVersion: "7.2-preview.1",
297
+ method: "POST",
298
+ routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",
299
+ routeValues: {
300
+ project: project,
301
+ repository: repository
302
+ },
303
+ queryParams: queryValues
304
+ })];
305
+ });
306
+ });
307
+ };
219
308
  /**
220
309
  * Update alert metadata associations.
221
310
  *
@@ -268,78 +357,41 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
268
357
  });
269
358
  };
270
359
  /**
271
- * Returns the branches for which analysis results were submitted.
360
+ * Get the status of the Sarif processing job
272
361
  *
273
- * @param project - Project ID or project name
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.
362
+ * @param sarifId - Sarif ID returned when the Sarif was uploaded
280
363
  */
281
- AlertRestClient.prototype.getBranches = function (project, repository, alertType, continuationToken, branchNameContains, top, includePullRequestBranches) {
364
+ AlertRestClient.prototype.getSarif = function (sarifId) {
282
365
  return __awaiter(this, void 0, void 0, function () {
283
- var queryValues;
284
366
  return __generator(this, function (_a) {
285
- queryValues = {
286
- alertType: alertType,
287
- continuationToken: continuationToken,
288
- branchNameContains: branchNameContains,
289
- top: top,
290
- includePullRequestBranches: includePullRequestBranches
291
- };
292
367
  return [2 /*return*/, this.beginRequest({
293
- apiVersion: "7.2-preview.1",
294
- routeTemplate: "{project}/_apis/Alert/repositories/{repository}/filters/{action}",
368
+ apiVersion: "7.2-preview.2",
369
+ routeTemplate: "_apis/Alert/Sarifs/{sarifId}",
295
370
  routeValues: {
296
- project: project,
297
- repository: repository,
298
- action: "Branches"
299
- },
300
- queryParams: queryValues
371
+ sarifId: sarifId
372
+ }
301
373
  })];
302
374
  });
303
375
  });
304
376
  };
305
377
  /**
378
+ * Initiate the validation process for a given alert
379
+ *
306
380
  * @param project - Project ID or project name
307
- * @param repository -
308
- * @param alertType -
381
+ * @param repository - The name or ID of a repository
382
+ * @param alertId - The ID of the alert
309
383
  */
310
- AlertRestClient.prototype.getUxFilters = function (project, repository, alertType) {
384
+ AlertRestClient.prototype.initiateValidation = function (project, repository, alertId) {
311
385
  return __awaiter(this, void 0, void 0, function () {
312
- var queryValues;
313
386
  return __generator(this, function (_a) {
314
- queryValues = {
315
- alertType: alertType
316
- };
317
387
  return [2 /*return*/, this.beginRequest({
318
388
  apiVersion: "7.2-preview.1",
319
- routeTemplate: "{project}/_apis/Alert/repositories/{repository}/filters/{action}",
389
+ method: "POST",
390
+ routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",
320
391
  routeValues: {
321
392
  project: project,
322
393
  repository: repository,
323
- action: "Default"
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
394
+ alertId: alertId
343
395
  }
344
396
  })];
345
397
  });
@@ -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.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.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.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}(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.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
@@ -2945,6 +2945,10 @@ export interface TimelineRecord {
2945
2945
  * The queue ID of the queue that the operation ran on.
2946
2946
  */
2947
2947
  queueId: number;
2948
+ /**
2949
+ * The ref name
2950
+ */
2951
+ refName: string;
2948
2952
  /**
2949
2953
  * The result.
2950
2954
  */
@@ -807,6 +807,10 @@ export declare enum ExtensionQueryFlags {
807
807
  * Include the details if an extension is in conflict list or not Currently being used for VSCode extensions.
808
808
  */
809
809
  IncludeNameConflictInfo = 32768,
810
+ /**
811
+ * When retrieving versions from a query, return the details with both latest prelease and stable version of the extensions that matched, if not prelease version, only return stable version. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
812
+ */
813
+ IncludeLatestPrereleaseAndStableVersionOnly = 65536,
810
814
  /**
811
815
  * AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
812
816
  */
@@ -875,9 +879,13 @@ export declare enum ExtensionVersionFlags {
875
879
  */
876
880
  None = 0,
877
881
  /**
878
- * The Validated flag for a version means the extension version has passed validation and can be used..
882
+ * The Validated flag for a version means the extension version has passed validation and can be used.
883
+ */
884
+ Validated = 1,
885
+ /**
886
+ * The Prerelease flag for a version means the extension version is prerelease. This flag is runtime only. We need backfill this flag to database in the future, here is a tracking task: https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/2234733
879
887
  */
880
- Validated = 1
888
+ Prerelease = 2
881
889
  }
882
890
  /**
883
891
  * One condition in a QueryFilter.
@@ -316,6 +316,10 @@ define(["require", "exports"], function (require, exports) {
316
316
  * Include the details if an extension is in conflict list or not Currently being used for VSCode extensions.
317
317
  */
318
318
  ExtensionQueryFlags[ExtensionQueryFlags["IncludeNameConflictInfo"] = 32768] = "IncludeNameConflictInfo";
319
+ /**
320
+ * When retrieving versions from a query, return the details with both latest prelease and stable version of the extensions that matched, if not prelease version, only return stable version. This is useful when the caller doesn't need all the published versions. It will save a significant size in the returned payload.
321
+ */
322
+ ExtensionQueryFlags[ExtensionQueryFlags["IncludeLatestPrereleaseAndStableVersionOnly"] = 65536] = "IncludeLatestPrereleaseAndStableVersionOnly";
319
323
  /**
320
324
  * AllAttributes is designed to be a mask that defines all sub-elements of the extension should be returned. NOTE: This is not actually All flags. This is now locked to the set defined since changing this enum would be a breaking change and would change the behavior of anyone using it. Try not to use this value when making calls to the service, instead be explicit about the options required.
321
325
  */
@@ -346,9 +350,13 @@ define(["require", "exports"], function (require, exports) {
346
350
  */
347
351
  ExtensionVersionFlags[ExtensionVersionFlags["None"] = 0] = "None";
348
352
  /**
349
- * The Validated flag for a version means the extension version has passed validation and can be used..
353
+ * The Validated flag for a version means the extension version has passed validation and can be used.
350
354
  */
351
355
  ExtensionVersionFlags[ExtensionVersionFlags["Validated"] = 1] = "Validated";
356
+ /**
357
+ * The Prerelease flag for a version means the extension version is prerelease. This flag is runtime only. We need backfill this flag to database in the future, here is a tracking task: https://dev.azure.com/mseng/AzureDevOps/_workitems/edit/2234733
358
+ */
359
+ ExtensionVersionFlags[ExtensionVersionFlags["Prerelease"] = 2] = "Prerelease";
352
360
  })(ExtensionVersionFlags = exports.ExtensionVersionFlags || (exports.ExtensionVersionFlags = {}));
353
361
  /**
354
362
  * Type of event
@@ -1 +1 @@
1
- define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Me=1]="Me",e[e.All=2]="All"}(i.AcquisitionAssignmentType||(i.AcquisitionAssignmentType={}));!function(e){e[e.Disallow=0]="Disallow",e[e.Allow=1]="Allow",e[e.Completed=3]="Completed"}(i.AcquisitionOperationState||(i.AcquisitionOperationState={}));!function(e){e[e.Get=0]="Get",e[e.Install=1]="Install",e[e.Buy=2]="Buy",e[e.Try=3]="Try",e[e.Request=4]="Request",e[e.None=5]="None",e[e.PurchaseRequest=6]="PurchaseRequest"}(i.AcquisitionOperationType||(i.AcquisitionOperationType={}));!function(e){e[e.General=1]="General",e[e.Abusive=2]="Abusive",e[e.Spam=4]="Spam"}(i.ConcernCategory||(i.ConcernCategory={}));!function(e){e[e.Publish=1]="Publish",e[e.Cancel=2]="Cancel"}(i.DraftPatchOperation||(i.DraftPatchOperation={}));!function(e){e[e.Unpublished=1]="Unpublished",e[e.Published=2]="Published",e[e.Cancelled=3]="Cancelled",e[e.Error=4]="Error"}(i.DraftStateType||(i.DraftStateType={}));!function(e){e[e.Exe=1]="Exe",e[e.Msi=2]="Msi",e[e.Vsix=3]="Vsix",e[e.ReferralLink=4]="ReferralLink"}(i.ExtensionDeploymentTechnology||(i.ExtensionDeploymentTechnology={}));!function(e){e[e.Uninstall=1]="Uninstall",e[e.Install=2]="Install",e[e.Review=3]="Review",e[e.Acquisition=4]="Acquisition",e[e.Sales=5]="Sales",e[e.Other=999]="Other"}(i.ExtensionLifecycleEventType||(i.ExtensionLifecycleEventType={}));!function(e){e[e.None=0]="None",e[e.Private=1]="Private",e[e.Public=2]="Public",e[e.Preview=4]="Preview",e[e.Released=8]="Released",e[e.FirstParty=16]="FirstParty",e[e.All=31]="All"}(i.ExtensionPolicyFlags||(i.ExtensionPolicyFlags={}));!function(e){e[e.Tag=1]="Tag",e[e.DisplayName=2]="DisplayName",e[e.Private=3]="Private",e[e.Id=4]="Id",e[e.Category=5]="Category",e[e.ContributionType=6]="ContributionType",e[e.Name=7]="Name",e[e.InstallationTarget=8]="InstallationTarget",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.FeaturedInCategory=11]="FeaturedInCategory",e[e.ExcludeWithFlags=12]="ExcludeWithFlags",e[e.IncludeWithFlags=13]="IncludeWithFlags",e[e.Lcid=14]="Lcid",e[e.InstallationTargetVersion=15]="InstallationTargetVersion",e[e.InstallationTargetVersionRange=16]="InstallationTargetVersionRange",e[e.VsixMetadata=17]="VsixMetadata",e[e.PublisherName=18]="PublisherName",e[e.PublisherDisplayName=19]="PublisherDisplayName",e[e.IncludeWithPublisherFlags=20]="IncludeWithPublisherFlags",e[e.OrganizationSharedWith=21]="OrganizationSharedWith",e[e.ProductArchitecture=22]="ProductArchitecture",e[e.TargetPlatform=23]="TargetPlatform",e[e.ExtensionName=24]="ExtensionName"}(i.ExtensionQueryFilterType||(i.ExtensionQueryFilterType={}));!function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.UseFallbackAssetUri=1024]="UseFallbackAssetUri",e[e.IncludeMetadata=2048]="IncludeMetadata",e[e.IncludeMinimalPayloadForVsIde=4096]="IncludeMinimalPayloadForVsIde",e[e.IncludeLcids=8192]="IncludeLcids",e[e.IncludeSharedOrganizations=16384]="IncludeSharedOrganizations",e[e.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo",e[e.AllAttributes=16863]="AllAttributes"}(i.ExtensionQueryFlags||(i.ExtensionQueryFlags={}));!function(e){e[e.None=0]="None",e[e.Set=1]="Set",e[e.Increment=2]="Increment",e[e.Decrement=3]="Decrement",e[e.Delete=4]="Delete"}(i.ExtensionStatisticOperation||(i.ExtensionStatisticOperation={}));!function(e){e[e.Daily=1]="Daily"}(i.ExtensionStatsAggregateType||(i.ExtensionStatsAggregateType={}));!function(e){e[e.None=0]="None",e[e.Validated=1]="Validated"}(i.ExtensionVersionFlags||(i.ExtensionVersionFlags={}));!function(e){e[e.ReviewNotification=1]="ReviewNotification",e[e.QnaNotification=2]="QnaNotification",e[e.CustomerContactNotification=3]="CustomerContactNotification",e[e.PublisherMemberUpdateNotification=4]="PublisherMemberUpdateNotification"}(i.NotificationTemplateType||(i.NotificationTemplateType={}));!function(e){e[e.Backward=1]="Backward",e[e.Forward=2]="Forward"}(i.PagingDirection||(i.PagingDirection={}));!function(e){e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.BuiltIn=2]="BuiltIn",e[e.Validated=4]="Validated",e[e.Trusted=8]="Trusted",e[e.Paid=16]="Paid",e[e.Public=256]="Public",e[e.MultiVersion=512]="MultiVersion",e[e.System=1024]="System",e[e.Preview=2048]="Preview",e[e.Unpublished=4096]="Unpublished",e[e.Trial=8192]="Trial",e[e.Locked=16384]="Locked",e[e.Hidden=32768]="Hidden"}(i.PublishedExtensionFlags||(i.PublishedExtensionFlags={}));!function(e){e[e.UnChanged=1073741824]="UnChanged",e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.Verified=2]="Verified",e[e.Certified=4]="Certified",e[e.ServiceFlags=7]="ServiceFlags"}(i.PublisherFlags||(i.PublisherFlags={}));!function(e){e[e.Read=1]="Read",e[e.UpdateExtension=2]="UpdateExtension",e[e.CreatePublisher=4]="CreatePublisher",e[e.PublishExtension=8]="PublishExtension",e[e.Admin=16]="Admin",e[e.TrustedPartner=32]="TrustedPartner",e[e.PrivateRead=64]="PrivateRead",e[e.DeleteExtension=128]="DeleteExtension",e[e.EditSettings=256]="EditSettings",e[e.ViewPermissions=512]="ViewPermissions",e[e.ManagePermissions=1024]="ManagePermissions",e[e.DeletePublisher=2048]="DeletePublisher"}(i.PublisherPermissions||(i.PublisherPermissions={}));!function(e){e[e.None=0]="None",e[e.IncludeExtensions=1]="IncludeExtensions",e[e.IncludeEmailAddress=2]="IncludeEmailAddress"}(i.PublisherQueryFlags||(i.PublisherQueryFlags={}));!function(e){e[e.Assigned=1]="Assigned",e[e.Inherited=2]="Inherited"}(i.PublisherRoleAccess||(i.PublisherRoleAccess={}));!function(e){e[e.None=0]="None",e[e.VerificationPending=1]="VerificationPending",e[e.CertificationPending=2]="CertificationPending",e[e.CertificationRejected=4]="CertificationRejected",e[e.CertificationRevoked=8]="CertificationRevoked"}(i.PublisherState||(i.PublisherState={}));!function(e){e[e.None=0]="None",e[e.UserEditable=1]="UserEditable",e[e.PublisherCreated=2]="PublisherCreated"}(i.QnAItemStatus||(i.QnAItemStatus={}));!function(e){e[e.Completed=0]="Completed",e[e.Failed=1]="Failed",e[e.Inprogress=2]="Inprogress",e[e.Skipped=3]="Skipped"}(i.RestApiResponseStatus||(i.RestApiResponseStatus={}));!function(e){e[e.Create=1]="Create",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(i.ReviewEventOperation||(i.ReviewEventOperation={}));!function(e){e[e.None=0]="None",e[e.FilterEmptyReviews=1]="FilterEmptyReviews",e[e.FilterEmptyUserNames=2]="FilterEmptyUserNames"}(i.ReviewFilterOptions||(i.ReviewFilterOptions={}));!function(e){e[e.FlagReview=1]="FlagReview",e[e.UpdateReview=2]="UpdateReview",e[e.ReplyToReview=3]="ReplyToReview",e[e.AdminResponseForReview=4]="AdminResponseForReview",e[e.DeleteAdminReply=5]="DeleteAdminReply",e[e.DeletePublisherReply=6]="DeletePublisherReply"}(i.ReviewPatchOperation||(i.ReviewPatchOperation={}));!function(e){e[e.Review=1]="Review",e[e.PublisherReply=2]="PublisherReply",e[e.AdminReply=3]="AdminReply"}(i.ReviewResourceType||(i.ReviewResourceType={}));!function(e){e[e.Relevance=0]="Relevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.Publisher=3]="Publisher",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.TrendingDaily=7]="TrendingDaily",e[e.TrendingWeekly=8]="TrendingWeekly",e[e.TrendingMonthly=9]="TrendingMonthly",e[e.ReleaseDate=10]="ReleaseDate",e[e.Author=11]="Author",e[e.WeightedRating=12]="WeightedRating"}(i.SortByType||(i.SortByType={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(i.SortOrderType||(i.SortOrderType={}));!function(e){e[e.Install=1]="Install",e[e.Update=2]="Update",e[e.Uninstall=3]="Uninstall"}(i.VSCodeWebExtensionStatisicsType||(i.VSCodeWebExtensionStatisicsType={}))});
1
+ define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Me=1]="Me",e[e.All=2]="All"}(i.AcquisitionAssignmentType||(i.AcquisitionAssignmentType={}));!function(e){e[e.Disallow=0]="Disallow",e[e.Allow=1]="Allow",e[e.Completed=3]="Completed"}(i.AcquisitionOperationState||(i.AcquisitionOperationState={}));!function(e){e[e.Get=0]="Get",e[e.Install=1]="Install",e[e.Buy=2]="Buy",e[e.Try=3]="Try",e[e.Request=4]="Request",e[e.None=5]="None",e[e.PurchaseRequest=6]="PurchaseRequest"}(i.AcquisitionOperationType||(i.AcquisitionOperationType={}));!function(e){e[e.General=1]="General",e[e.Abusive=2]="Abusive",e[e.Spam=4]="Spam"}(i.ConcernCategory||(i.ConcernCategory={}));!function(e){e[e.Publish=1]="Publish",e[e.Cancel=2]="Cancel"}(i.DraftPatchOperation||(i.DraftPatchOperation={}));!function(e){e[e.Unpublished=1]="Unpublished",e[e.Published=2]="Published",e[e.Cancelled=3]="Cancelled",e[e.Error=4]="Error"}(i.DraftStateType||(i.DraftStateType={}));!function(e){e[e.Exe=1]="Exe",e[e.Msi=2]="Msi",e[e.Vsix=3]="Vsix",e[e.ReferralLink=4]="ReferralLink"}(i.ExtensionDeploymentTechnology||(i.ExtensionDeploymentTechnology={}));!function(e){e[e.Uninstall=1]="Uninstall",e[e.Install=2]="Install",e[e.Review=3]="Review",e[e.Acquisition=4]="Acquisition",e[e.Sales=5]="Sales",e[e.Other=999]="Other"}(i.ExtensionLifecycleEventType||(i.ExtensionLifecycleEventType={}));!function(e){e[e.None=0]="None",e[e.Private=1]="Private",e[e.Public=2]="Public",e[e.Preview=4]="Preview",e[e.Released=8]="Released",e[e.FirstParty=16]="FirstParty",e[e.All=31]="All"}(i.ExtensionPolicyFlags||(i.ExtensionPolicyFlags={}));!function(e){e[e.Tag=1]="Tag",e[e.DisplayName=2]="DisplayName",e[e.Private=3]="Private",e[e.Id=4]="Id",e[e.Category=5]="Category",e[e.ContributionType=6]="ContributionType",e[e.Name=7]="Name",e[e.InstallationTarget=8]="InstallationTarget",e[e.Featured=9]="Featured",e[e.SearchText=10]="SearchText",e[e.FeaturedInCategory=11]="FeaturedInCategory",e[e.ExcludeWithFlags=12]="ExcludeWithFlags",e[e.IncludeWithFlags=13]="IncludeWithFlags",e[e.Lcid=14]="Lcid",e[e.InstallationTargetVersion=15]="InstallationTargetVersion",e[e.InstallationTargetVersionRange=16]="InstallationTargetVersionRange",e[e.VsixMetadata=17]="VsixMetadata",e[e.PublisherName=18]="PublisherName",e[e.PublisherDisplayName=19]="PublisherDisplayName",e[e.IncludeWithPublisherFlags=20]="IncludeWithPublisherFlags",e[e.OrganizationSharedWith=21]="OrganizationSharedWith",e[e.ProductArchitecture=22]="ProductArchitecture",e[e.TargetPlatform=23]="TargetPlatform",e[e.ExtensionName=24]="ExtensionName"}(i.ExtensionQueryFilterType||(i.ExtensionQueryFilterType={}));!function(e){e[e.None=0]="None",e[e.IncludeVersions=1]="IncludeVersions",e[e.IncludeFiles=2]="IncludeFiles",e[e.IncludeCategoryAndTags=4]="IncludeCategoryAndTags",e[e.IncludeSharedAccounts=8]="IncludeSharedAccounts",e[e.IncludeVersionProperties=16]="IncludeVersionProperties",e[e.ExcludeNonValidated=32]="ExcludeNonValidated",e[e.IncludeInstallationTargets=64]="IncludeInstallationTargets",e[e.IncludeAssetUri=128]="IncludeAssetUri",e[e.IncludeStatistics=256]="IncludeStatistics",e[e.IncludeLatestVersionOnly=512]="IncludeLatestVersionOnly",e[e.UseFallbackAssetUri=1024]="UseFallbackAssetUri",e[e.IncludeMetadata=2048]="IncludeMetadata",e[e.IncludeMinimalPayloadForVsIde=4096]="IncludeMinimalPayloadForVsIde",e[e.IncludeLcids=8192]="IncludeLcids",e[e.IncludeSharedOrganizations=16384]="IncludeSharedOrganizations",e[e.IncludeNameConflictInfo=32768]="IncludeNameConflictInfo",e[e.IncludeLatestPrereleaseAndStableVersionOnly=65536]="IncludeLatestPrereleaseAndStableVersionOnly",e[e.AllAttributes=16863]="AllAttributes"}(i.ExtensionQueryFlags||(i.ExtensionQueryFlags={}));!function(e){e[e.None=0]="None",e[e.Set=1]="Set",e[e.Increment=2]="Increment",e[e.Decrement=3]="Decrement",e[e.Delete=4]="Delete"}(i.ExtensionStatisticOperation||(i.ExtensionStatisticOperation={}));!function(e){e[e.Daily=1]="Daily"}(i.ExtensionStatsAggregateType||(i.ExtensionStatsAggregateType={}));!function(e){e[e.None=0]="None",e[e.Validated=1]="Validated",e[e.Prerelease=2]="Prerelease"}(i.ExtensionVersionFlags||(i.ExtensionVersionFlags={}));!function(e){e[e.ReviewNotification=1]="ReviewNotification",e[e.QnaNotification=2]="QnaNotification",e[e.CustomerContactNotification=3]="CustomerContactNotification",e[e.PublisherMemberUpdateNotification=4]="PublisherMemberUpdateNotification"}(i.NotificationTemplateType||(i.NotificationTemplateType={}));!function(e){e[e.Backward=1]="Backward",e[e.Forward=2]="Forward"}(i.PagingDirection||(i.PagingDirection={}));!function(e){e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.BuiltIn=2]="BuiltIn",e[e.Validated=4]="Validated",e[e.Trusted=8]="Trusted",e[e.Paid=16]="Paid",e[e.Public=256]="Public",e[e.MultiVersion=512]="MultiVersion",e[e.System=1024]="System",e[e.Preview=2048]="Preview",e[e.Unpublished=4096]="Unpublished",e[e.Trial=8192]="Trial",e[e.Locked=16384]="Locked",e[e.Hidden=32768]="Hidden"}(i.PublishedExtensionFlags||(i.PublishedExtensionFlags={}));!function(e){e[e.UnChanged=1073741824]="UnChanged",e[e.None=0]="None",e[e.Disabled=1]="Disabled",e[e.Verified=2]="Verified",e[e.Certified=4]="Certified",e[e.ServiceFlags=7]="ServiceFlags"}(i.PublisherFlags||(i.PublisherFlags={}));!function(e){e[e.Read=1]="Read",e[e.UpdateExtension=2]="UpdateExtension",e[e.CreatePublisher=4]="CreatePublisher",e[e.PublishExtension=8]="PublishExtension",e[e.Admin=16]="Admin",e[e.TrustedPartner=32]="TrustedPartner",e[e.PrivateRead=64]="PrivateRead",e[e.DeleteExtension=128]="DeleteExtension",e[e.EditSettings=256]="EditSettings",e[e.ViewPermissions=512]="ViewPermissions",e[e.ManagePermissions=1024]="ManagePermissions",e[e.DeletePublisher=2048]="DeletePublisher"}(i.PublisherPermissions||(i.PublisherPermissions={}));!function(e){e[e.None=0]="None",e[e.IncludeExtensions=1]="IncludeExtensions",e[e.IncludeEmailAddress=2]="IncludeEmailAddress"}(i.PublisherQueryFlags||(i.PublisherQueryFlags={}));!function(e){e[e.Assigned=1]="Assigned",e[e.Inherited=2]="Inherited"}(i.PublisherRoleAccess||(i.PublisherRoleAccess={}));!function(e){e[e.None=0]="None",e[e.VerificationPending=1]="VerificationPending",e[e.CertificationPending=2]="CertificationPending",e[e.CertificationRejected=4]="CertificationRejected",e[e.CertificationRevoked=8]="CertificationRevoked"}(i.PublisherState||(i.PublisherState={}));!function(e){e[e.None=0]="None",e[e.UserEditable=1]="UserEditable",e[e.PublisherCreated=2]="PublisherCreated"}(i.QnAItemStatus||(i.QnAItemStatus={}));!function(e){e[e.Completed=0]="Completed",e[e.Failed=1]="Failed",e[e.Inprogress=2]="Inprogress",e[e.Skipped=3]="Skipped"}(i.RestApiResponseStatus||(i.RestApiResponseStatus={}));!function(e){e[e.Create=1]="Create",e[e.Update=2]="Update",e[e.Delete=3]="Delete"}(i.ReviewEventOperation||(i.ReviewEventOperation={}));!function(e){e[e.None=0]="None",e[e.FilterEmptyReviews=1]="FilterEmptyReviews",e[e.FilterEmptyUserNames=2]="FilterEmptyUserNames"}(i.ReviewFilterOptions||(i.ReviewFilterOptions={}));!function(e){e[e.FlagReview=1]="FlagReview",e[e.UpdateReview=2]="UpdateReview",e[e.ReplyToReview=3]="ReplyToReview",e[e.AdminResponseForReview=4]="AdminResponseForReview",e[e.DeleteAdminReply=5]="DeleteAdminReply",e[e.DeletePublisherReply=6]="DeletePublisherReply"}(i.ReviewPatchOperation||(i.ReviewPatchOperation={}));!function(e){e[e.Review=1]="Review",e[e.PublisherReply=2]="PublisherReply",e[e.AdminReply=3]="AdminReply"}(i.ReviewResourceType||(i.ReviewResourceType={}));!function(e){e[e.Relevance=0]="Relevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.Publisher=3]="Publisher",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.TrendingDaily=7]="TrendingDaily",e[e.TrendingWeekly=8]="TrendingWeekly",e[e.TrendingMonthly=9]="TrendingMonthly",e[e.ReleaseDate=10]="ReleaseDate",e[e.Author=11]="Author",e[e.WeightedRating=12]="WeightedRating"}(i.SortByType||(i.SortByType={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(i.SortOrderType||(i.SortOrderType={}));!function(e){e[e.Install=1]="Install",e[e.Update=2]="Update",e[e.Uninstall=3]="Uninstall"}(i.VSCodeWebExtensionStatisicsType||(i.VSCodeWebExtensionStatisicsType={}))});
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 GHAzDO is NOT already enabled, behavior will depend on if GHAzDO is to be enabled/disabled. DependencyScanningEnabled will not affect anything in this scenario. \<br /\> If GHAzDO is to be disabled, the value of DependencyScanningEnabled 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.
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
- dependencyScanningEnabled: boolean;
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={}))});
@@ -183,6 +183,132 @@ 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
+ * Fully qualified name of test executed.
196
+ */
197
+ automatedTestName: string;
198
+ /**
199
+ * Container to which test belongs.
200
+ */
201
+ automatedTestStorage: string;
202
+ /**
203
+ * Shallow reference to build associated with test result.
204
+ */
205
+ build: Test.ShallowReference;
206
+ /**
207
+ * Machine name where test executed.
208
+ */
209
+ computerName: string;
210
+ /**
211
+ * Reference to test configuration. Type ShallowReference.
212
+ */
213
+ configuration: Test.ShallowReference;
214
+ /**
215
+ * Array of custom data for additional categorization of the test result. Value of the CustomTestField cannot be more than 1KB.
216
+ */
217
+ customFields: Test.CustomTestField[];
218
+ /**
219
+ * Duration of test execution in milliseconds. If not provided value will be set as CompletedDate - StartedDate
220
+ */
221
+ durationInMs: number;
222
+ /**
223
+ * Error message in test execution.
224
+ */
225
+ errorMessage: string;
226
+ /**
227
+ * ID of a test result.
228
+ */
229
+ id: number;
230
+ /**
231
+ * Test outcome of test result. Valid values = (Unspecified, None, Passed, Failed, Inconclusive, Timeout, Aborted, Blocked, NotExecuted, Warning, Error, NotApplicable, Paused, InProgress, NotImpacted)
232
+ */
233
+ outcome: string;
234
+ /**
235
+ * Reference to test owner.
236
+ */
237
+ owner: WebApi.IdentityRef;
238
+ /**
239
+ * Priority of test executed.
240
+ */
241
+ priority: number;
242
+ /**
243
+ * Stacktrace with maxSize= 1000 chars.
244
+ */
245
+ stackTrace: string;
246
+ /**
247
+ * Reference to the test executed.
248
+ */
249
+ testCase: Test.ShallowReference;
250
+ /**
251
+ * Reference ID of test used by test result. Type TestResultMetaData
252
+ */
253
+ testCaseReferenceId: number;
254
+ /**
255
+ * Reference to test run.
256
+ */
257
+ testRun: Test.ShallowReference;
258
+ /**
259
+ * Reference to test suite test case workitem is part of.
260
+ */
261
+ testSuite: Test.ShallowReference;
262
+ }
263
+ /**
264
+ * This data model is used in AllTestRunsViewDataProvider and provides Test Run Data
265
+ */
266
+ export interface CustomTestRunData {
267
+ /**
268
+ * Build Number.
269
+ */
270
+ buildNumber: string;
271
+ /**
272
+ * Completed date time of the run.
273
+ */
274
+ completedDate: string;
275
+ /**
276
+ * Duration of the run execution in milliseconds
277
+ */
278
+ durationInMs: number;
279
+ /**
280
+ * No. of tests failed in the run
281
+ */
282
+ failedTestsCount: number;
283
+ /**
284
+ * ID of the Test run.
285
+ */
286
+ id: number;
287
+ /**
288
+ * Name of the Test run.
289
+ */
290
+ name: string;
291
+ /**
292
+ * Pass rate of the run
293
+ */
294
+ passRate: string;
295
+ /**
296
+ * Start date time of the run.
297
+ */
298
+ startedDate: string;
299
+ /**
300
+ * The state of the run. Type TestRunState Valid states - Unspecified ,NotStarted, InProgress, Completed, Waiting, Aborted, NeedsInvestigation
301
+ */
302
+ state: string;
303
+ /**
304
+ * Id of the Test plan associated with this Test run.
305
+ */
306
+ testPlanId: number;
307
+ /**
308
+ * Name of the Test plan associated with this Test run.
309
+ */
310
+ testPlanName: string;
311
+ }
186
312
  /**
187
313
  * Destination Test Plan create parameters
188
314
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-devops-extension-api",
3
- "version": "4.250.0",
3
+ "version": "4.252.0",
4
4
  "description": "REST client libraries and contracts for Azure DevOps web extension developers.",
5
5
  "repository": {
6
6
  "type": "git",