azure-devops-extension-api 4.239.0 → 4.241.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.
@@ -0,0 +1,143 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ var __extends = (this && this.__extends) || (function () {
7
+ var extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10
+ return function (d, b) {
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ var __generator = (this && this.__generator) || function (thisArg, body) {
25
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
26
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
+ function verb(n) { return function (v) { return step([n, v]); }; }
28
+ function step(op) {
29
+ if (f) throw new TypeError("Generator is already executing.");
30
+ while (_) try {
31
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
32
+ if (y = 0, t) op = [op[0] & 2, t.value];
33
+ switch (op[0]) {
34
+ case 0: case 1: t = op; break;
35
+ case 4: _.label++; return { value: op[1], done: false };
36
+ case 5: _.label++; y = op[1]; op = [0]; continue;
37
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
38
+ default:
39
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
40
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
42
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
43
+ if (t[2]) _.ops.pop();
44
+ _.trys.pop(); continue;
45
+ }
46
+ op = body.call(thisArg, _);
47
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
48
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
+ }
50
+ };
51
+ define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
52
+ "use strict";
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ var ManagementInternalRestClient = /** @class */ (function (_super) {
55
+ __extends(ManagementInternalRestClient, _super);
56
+ function ManagementInternalRestClient(options) {
57
+ return _super.call(this, options) || this;
58
+ }
59
+ /**
60
+ * Delete the billing info for an organization.
61
+ *
62
+ * @param organizationId -
63
+ */
64
+ ManagementInternalRestClient.prototype.deleteBillingInfo = function (organizationId) {
65
+ return __awaiter(this, void 0, void 0, function () {
66
+ return __generator(this, function (_a) {
67
+ return [2 /*return*/, this.beginRequest({
68
+ apiVersion: "7.2-preview.1",
69
+ method: "DELETE",
70
+ routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
71
+ routeValues: {
72
+ organizationId: organizationId,
73
+ action: "Default"
74
+ }
75
+ })];
76
+ });
77
+ });
78
+ };
79
+ /**
80
+ * Delete the meter usage history from Primary SU for an organization.
81
+ *
82
+ * @param organizationId -
83
+ */
84
+ ManagementInternalRestClient.prototype.deleteMeterUsageHistory = function (organizationId) {
85
+ return __awaiter(this, void 0, void 0, function () {
86
+ return __generator(this, function (_a) {
87
+ return [2 /*return*/, this.beginRequest({
88
+ apiVersion: "7.2-preview.1",
89
+ method: "DELETE",
90
+ routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
91
+ routeValues: {
92
+ organizationId: organizationId,
93
+ action: "MeterUsageHistory"
94
+ }
95
+ })];
96
+ });
97
+ });
98
+ };
99
+ /**
100
+ * Get the billing info for an organization.
101
+ *
102
+ * @param organizationId - Organization ID to get billing info for.
103
+ */
104
+ ManagementInternalRestClient.prototype.getBillingInfo = function (organizationId) {
105
+ return __awaiter(this, void 0, void 0, function () {
106
+ return __generator(this, function (_a) {
107
+ return [2 /*return*/, this.beginRequest({
108
+ apiVersion: "7.2-preview.1",
109
+ routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
110
+ routeValues: {
111
+ organizationId: organizationId,
112
+ action: "Default"
113
+ }
114
+ })];
115
+ });
116
+ });
117
+ };
118
+ /**
119
+ * Save the billing info for an organization.
120
+ *
121
+ * @param billingInfo -
122
+ * @param organizationId -
123
+ */
124
+ ManagementInternalRestClient.prototype.saveBillingInfo = function (billingInfo, organizationId) {
125
+ return __awaiter(this, void 0, void 0, function () {
126
+ return __generator(this, function (_a) {
127
+ return [2 /*return*/, this.beginRequest({
128
+ apiVersion: "7.2-preview.1",
129
+ method: "POST",
130
+ routeTemplate: "{organizationId}/_apis/ManagementInternal/Billing/{action}",
131
+ routeValues: {
132
+ organizationId: organizationId,
133
+ action: "Default"
134
+ },
135
+ body: billingInfo
136
+ })];
137
+ });
138
+ });
139
+ };
140
+ return ManagementInternalRestClient;
141
+ }(RestClientBase_1.RestClientBase));
142
+ exports.ManagementInternalRestClient = ManagementInternalRestClient;
143
+ });
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function u(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(a,u)}l((r=r.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.deleteBillingInfo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"Default"}})]})})},e.prototype.deleteMeterUsageHistory=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"MeterUsageHistory"}})]})})},e.prototype.getBillingInfo=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:t,action:"Default"}})]})})},e.prototype.saveBillingInfo=function(t,e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{organizationId}/_apis/ManagementInternal/Billing/{action}",routeValues:{organizationId:e,action:"Default"},body:t})]})})},e}(n.RestClientBase);e.ManagementInternalRestClient=r});
@@ -2011,6 +2011,10 @@ export interface ProofOfPresenceTenant {
2011
2011
  * Gets name of protected tenant.
2012
2012
  */
2013
2013
  tenantName: string;
2014
+ /**
2015
+ * Gets timeout of protected tenant PoP check.
2016
+ */
2017
+ timeout: number;
2014
2018
  }
2015
2019
  export interface PropertySelector {
2016
2020
  /**
@@ -497,6 +497,10 @@ export interface ServiceEndpoint {
497
497
  * Gets or sets the identity reference for the user who created the Service endpoint.
498
498
  */
499
499
  createdBy: WebApi.IdentityRef;
500
+ /**
501
+ * Gets or sets the date, when the Service endpoint has been created.
502
+ */
503
+ creationDate: Date;
500
504
  data: {
501
505
  [key: string]: string;
502
506
  };
@@ -528,6 +532,14 @@ export interface ServiceEndpoint {
528
532
  * Indicates whether service endpoint is shared with other projects or not.
529
533
  */
530
534
  isShared: boolean;
535
+ /**
536
+ * Gets or sets the date, when the Service endpoint has been modified.
537
+ */
538
+ modificationDate: Date;
539
+ /**
540
+ * Gets or sets the identity reference for the user who did the latest modification of the Service endpoint.
541
+ */
542
+ modifiedBy: WebApi.IdentityRef;
531
543
  /**
532
544
  * Gets or sets the friendly name of the endpoint.
533
545
  */
@@ -629,6 +641,13 @@ export interface ServiceEndpointDetails {
629
641
  */
630
642
  url: string;
631
643
  }
644
+ export interface ServiceEndpointEvent {
645
+ authorization: EndpointAuthorization;
646
+ id: string;
647
+ name: string;
648
+ projectIds: string[];
649
+ type: string;
650
+ }
632
651
  /**
633
652
  * Represents service endpoint execution data.
634
653
  */
@@ -787,6 +806,15 @@ export interface ServiceEndpointRequestResult {
787
806
  */
788
807
  statusCode: string;
789
808
  }
809
+ /**
810
+ * Represents the details of service endpoint execution.
811
+ */
812
+ export interface ServiceEndpointTokenResult {
813
+ /**
814
+ * Gets the access token
815
+ */
816
+ accessToken: string;
817
+ }
790
818
  /**
791
819
  * Represents type of the service endpoint.
792
820
  */
@@ -54,6 +54,11 @@ export interface AgentQueueEvent {
54
54
  eventType: string;
55
55
  queue: TaskAgentQueue;
56
56
  }
57
+ export interface AgentQueueServiceHookEvent {
58
+ projectId: string;
59
+ queueId: number;
60
+ queueName: string;
61
+ }
57
62
  export interface AgentQueuesEvent {
58
63
  eventType: string;
59
64
  queues: TaskAgentQueue[];
@@ -1651,6 +1656,10 @@ export interface ServiceEndpoint {
1651
1656
  * Gets or sets the identity reference for the user who created the Service endpoint.
1652
1657
  */
1653
1658
  createdBy: WebApi.IdentityRef;
1659
+ /**
1660
+ * Gets or sets the date, when the Service endpoint has been created.
1661
+ */
1662
+ creationDate: Date;
1654
1663
  data: {
1655
1664
  [key: string]: string;
1656
1665
  };
@@ -1675,6 +1684,14 @@ export interface ServiceEndpoint {
1675
1684
  * Indicates whether service endpoint is shared with other projects or not.
1676
1685
  */
1677
1686
  isShared: boolean;
1687
+ /**
1688
+ * Gets or sets the date, when the Service endpoint has been modified.
1689
+ */
1690
+ modificationDate: Date;
1691
+ /**
1692
+ * Gets or sets the identity reference for the user who did the latest modification of the Service endpoint.
1693
+ */
1694
+ modifiedBy: WebApi.IdentityRef;
1678
1695
  /**
1679
1696
  * Gets or sets the friendly name of the endpoint.
1680
1697
  */
@@ -1841,6 +1858,16 @@ export interface ServiceEndpointType {
1841
1858
  */
1842
1859
  uiContributionId: string;
1843
1860
  }
1861
+ export declare enum StageTriggerType {
1862
+ /**
1863
+ * Stage starts automatically
1864
+ */
1865
+ Automatic = 0,
1866
+ /**
1867
+ * Stage starts on manual run
1868
+ */
1869
+ Manual = 1
1870
+ }
1844
1871
  /**
1845
1872
  * A task agent.
1846
1873
  */
@@ -3272,7 +3299,9 @@ export declare enum TaskResult {
3272
3299
  Failed = 2,
3273
3300
  Canceled = 3,
3274
3301
  Skipped = 4,
3275
- Abandoned = 5
3302
+ Abandoned = 5,
3303
+ ManuallyQueued = 6,
3304
+ DependentOnManualQueue = 7
3276
3305
  }
3277
3306
  export interface TaskSourceDefinition extends DistributedTaskCommon.TaskSourceDefinitionBase {
3278
3307
  }
@@ -306,6 +306,17 @@ define(["require", "exports"], function (require, exports) {
306
306
  SecureFileActionFilter[SecureFileActionFilter["Manage"] = 2] = "Manage";
307
307
  SecureFileActionFilter[SecureFileActionFilter["Use"] = 16] = "Use";
308
308
  })(SecureFileActionFilter = exports.SecureFileActionFilter || (exports.SecureFileActionFilter = {}));
309
+ var StageTriggerType;
310
+ (function (StageTriggerType) {
311
+ /**
312
+ * Stage starts automatically
313
+ */
314
+ StageTriggerType[StageTriggerType["Automatic"] = 0] = "Automatic";
315
+ /**
316
+ * Stage starts on manual run
317
+ */
318
+ StageTriggerType[StageTriggerType["Manual"] = 1] = "Manual";
319
+ })(StageTriggerType = exports.StageTriggerType || (exports.StageTriggerType = {}));
309
320
  /**
310
321
  * This is useful in getting a list of deployment targets, filtered by the result of their last job.
311
322
  */
@@ -529,6 +540,8 @@ define(["require", "exports"], function (require, exports) {
529
540
  TaskResult[TaskResult["Canceled"] = 3] = "Canceled";
530
541
  TaskResult[TaskResult["Skipped"] = 4] = "Skipped";
531
542
  TaskResult[TaskResult["Abandoned"] = 5] = "Abandoned";
543
+ TaskResult[TaskResult["ManuallyQueued"] = 6] = "ManuallyQueued";
544
+ TaskResult[TaskResult["DependentOnManualQueue"] = 7] = "DependentOnManualQueue";
532
545
  })(TaskResult = exports.TaskResult || (exports.TaskResult = {}));
533
546
  /**
534
547
  * The state of the timeline record.
@@ -1 +1 @@
1
- define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.Task=0]="Task",e[e.Feature=1]="Feature"}(n.DemandSourceType||(n.DemandSourceType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups",e[e.Resource=4]="Resource"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.Enabled=1]="Enabled",e[e.Online=2]="Online",e[e.Assigned=4]="Assigned"}(n.ElasticAgentState||(n.ElasticAgentState={}));!function(e){e[e.None=0]="None",e[e.Healthy=1]="Healthy",e[e.Creating=2]="Creating",e[e.Deleting=3]="Deleting",e[e.Failed=4]="Failed",e[e.Stopped=5]="Stopped",e[e.Reimaging=6]="Reimaging",e[e.UnhealthyVm=7]="UnhealthyVm",e[e.UnhealthyVmssVm=8]="UnhealthyVmssVm"}(n.ElasticComputeState||(n.ElasticComputeState={}));!function(e){e[e.None=0]="None",e[e.New=1]="New",e[e.CreatingCompute=2]="CreatingCompute",e[e.StartingAgent=3]="StartingAgent",e[e.Idle=4]="Idle",e[e.Assigned=5]="Assigned",e[e.Offline=6]="Offline",e[e.PendingReimage=7]="PendingReimage",e[e.PendingDelete=8]="PendingDelete",e[e.Saved=9]="Saved",e[e.DeletingCompute=10]="DeletingCompute",e[e.Deleted=11]="Deleted",e[e.Lost=12]="Lost",e[e.ReimagingCompute=13]="ReimagingCompute",e[e.RestartingAgent=14]="RestartingAgent",e[e.FailedToStartPendingDelete=15]="FailedToStartPendingDelete",e[e.FailedToRestartPendingDelete=16]="FailedToRestartPendingDelete",e[e.FailedVMPendingDelete=17]="FailedVMPendingDelete",e[e.AssignedPendingDelete=18]="AssignedPendingDelete",e[e.RetryDelete=19]="RetryDelete",e[e.UnhealthyVm=20]="UnhealthyVm",e[e.UnhealthyVmPendingDelete=21]="UnhealthyVmPendingDelete"}(n.ElasticNodeState||(n.ElasticNodeState={}));!function(e){e[e.Online=0]="Online",e[e.Offline=1]="Offline",e[e.Unhealthy=2]="Unhealthy",e[e.New=3]="New"}(n.ElasticPoolState||(n.ElasticPoolState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.EnvironmentActionFilter||(n.EnvironmentActionFilter={}));!function(e){e[e.None=0]="None",e[e.ResourceReferences=1]="ResourceReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.EnvironmentResourceType||(n.EnvironmentResourceType={}));!function(e){e[e.RunLatest=0]="RunLatest",e[e.Sequential=1]="Sequential",e[e.BranchRunLatest=2]="BranchRunLatest",e[e.Parallel=3]="Parallel"}(n.ExclusiveLockType||(n.ExclusiveLockType={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info"}(n.LogLevel||(n.LogLevel={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Windows=0]="Windows",e[e.Linux=1]="Linux"}(n.OperatingSystemType||(n.OperatingSystemType={}));!function(e){e[e.ConfigurationJob=0]="ConfigurationJob",e[e.SizingJob=1]="SizingJob",e[e.IncreaseCapacity=2]="IncreaseCapacity",e[e.Reimage=3]="Reimage",e[e.DeleteVMs=4]="DeleteVMs"}(n.OperationType||(n.OperationType={}));!function(e){e[e.Uniform=0]="Uniform",e[e.Flexible=1]="Flexible"}(n.OrchestrationType||(n.OrchestrationType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.Queued=0]="Queued",e[e.InUse=1]="InUse",e[e.Finished=2]="Finished",e[e.TimedOut=3]="TimedOut",e[e.Canceled=4]="Canceled",e[e.Abandoned=5]="Abandoned",e[e.WaitingOnChecks=6]="WaitingOnChecks"}(n.ResourceLockStatus||(n.ResourceLockStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.Task=1]="Task",e[e.Action=2]="Action"}(n.TaskAgentJobStepType||(n.TaskAgentJobStepType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.None=0]="None",e[e.ElasticPool=1]="ElasticPool",e[e.SingleUseAgents=2]="SingleUseAgents",e[e.PreserveAgentOnJobFailure=4]="PreserveAgentOnJobFailure"}(n.TaskAgentPoolOptions||(n.TaskAgentPoolOptions={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.None=0]="None",e[e.BumpRequestToTop=1]="BumpRequestToTop"}(n.TaskAgentRequestUpdateOptions||(n.TaskAgentRequestUpdateOptions={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired",e[e.Downgrade=3]="Downgrade"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Any=0]="Any",e[e.Restricted=1]="Restricted"}(n.TaskCommandMode||(n.TaskCommandMode={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed",e[e.Throttled=8]="Throttled"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}))});
1
+ define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.Task=0]="Task",e[e.Feature=1]="Feature"}(n.DemandSourceType||(n.DemandSourceType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups",e[e.Resource=4]="Resource"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.Enabled=1]="Enabled",e[e.Online=2]="Online",e[e.Assigned=4]="Assigned"}(n.ElasticAgentState||(n.ElasticAgentState={}));!function(e){e[e.None=0]="None",e[e.Healthy=1]="Healthy",e[e.Creating=2]="Creating",e[e.Deleting=3]="Deleting",e[e.Failed=4]="Failed",e[e.Stopped=5]="Stopped",e[e.Reimaging=6]="Reimaging",e[e.UnhealthyVm=7]="UnhealthyVm",e[e.UnhealthyVmssVm=8]="UnhealthyVmssVm"}(n.ElasticComputeState||(n.ElasticComputeState={}));!function(e){e[e.None=0]="None",e[e.New=1]="New",e[e.CreatingCompute=2]="CreatingCompute",e[e.StartingAgent=3]="StartingAgent",e[e.Idle=4]="Idle",e[e.Assigned=5]="Assigned",e[e.Offline=6]="Offline",e[e.PendingReimage=7]="PendingReimage",e[e.PendingDelete=8]="PendingDelete",e[e.Saved=9]="Saved",e[e.DeletingCompute=10]="DeletingCompute",e[e.Deleted=11]="Deleted",e[e.Lost=12]="Lost",e[e.ReimagingCompute=13]="ReimagingCompute",e[e.RestartingAgent=14]="RestartingAgent",e[e.FailedToStartPendingDelete=15]="FailedToStartPendingDelete",e[e.FailedToRestartPendingDelete=16]="FailedToRestartPendingDelete",e[e.FailedVMPendingDelete=17]="FailedVMPendingDelete",e[e.AssignedPendingDelete=18]="AssignedPendingDelete",e[e.RetryDelete=19]="RetryDelete",e[e.UnhealthyVm=20]="UnhealthyVm",e[e.UnhealthyVmPendingDelete=21]="UnhealthyVmPendingDelete"}(n.ElasticNodeState||(n.ElasticNodeState={}));!function(e){e[e.Online=0]="Online",e[e.Offline=1]="Offline",e[e.Unhealthy=2]="Unhealthy",e[e.New=3]="New"}(n.ElasticPoolState||(n.ElasticPoolState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.EnvironmentActionFilter||(n.EnvironmentActionFilter={}));!function(e){e[e.None=0]="None",e[e.ResourceReferences=1]="ResourceReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.EnvironmentResourceType||(n.EnvironmentResourceType={}));!function(e){e[e.RunLatest=0]="RunLatest",e[e.Sequential=1]="Sequential",e[e.BranchRunLatest=2]="BranchRunLatest",e[e.Parallel=3]="Parallel"}(n.ExclusiveLockType||(n.ExclusiveLockType={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info"}(n.LogLevel||(n.LogLevel={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Windows=0]="Windows",e[e.Linux=1]="Linux"}(n.OperatingSystemType||(n.OperatingSystemType={}));!function(e){e[e.ConfigurationJob=0]="ConfigurationJob",e[e.SizingJob=1]="SizingJob",e[e.IncreaseCapacity=2]="IncreaseCapacity",e[e.Reimage=3]="Reimage",e[e.DeleteVMs=4]="DeleteVMs"}(n.OperationType||(n.OperationType={}));!function(e){e[e.Uniform=0]="Uniform",e[e.Flexible=1]="Flexible"}(n.OrchestrationType||(n.OrchestrationType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.Queued=0]="Queued",e[e.InUse=1]="InUse",e[e.Finished=2]="Finished",e[e.TimedOut=3]="TimedOut",e[e.Canceled=4]="Canceled",e[e.Abandoned=5]="Abandoned",e[e.WaitingOnChecks=6]="WaitingOnChecks"}(n.ResourceLockStatus||(n.ResourceLockStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Automatic=0]="Automatic",e[e.Manual=1]="Manual"}(n.StageTriggerType||(n.StageTriggerType={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.Task=1]="Task",e[e.Action=2]="Action"}(n.TaskAgentJobStepType||(n.TaskAgentJobStepType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.None=0]="None",e[e.ElasticPool=1]="ElasticPool",e[e.SingleUseAgents=2]="SingleUseAgents",e[e.PreserveAgentOnJobFailure=4]="PreserveAgentOnJobFailure"}(n.TaskAgentPoolOptions||(n.TaskAgentPoolOptions={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.None=0]="None",e[e.BumpRequestToTop=1]="BumpRequestToTop"}(n.TaskAgentRequestUpdateOptions||(n.TaskAgentRequestUpdateOptions={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired",e[e.Downgrade=3]="Downgrade"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Any=0]="Any",e[e.Restricted=1]="Restricted"}(n.TaskCommandMode||(n.TaskCommandMode={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed",e[e.Throttled=8]="Throttled"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned",e[e.ManuallyQueued=6]="ManuallyQueued",e[e.DependentOnManualQueue=7]="DependentOnManualQueue"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}))});
package/Test/Test.d.ts CHANGED
@@ -137,6 +137,10 @@ export interface AggregatedRunsByState {
137
137
  runsCount: number;
138
138
  state: TestRunState;
139
139
  }
140
+ export interface AnalysisFailureGroupReturn {
141
+ analysisFailureGroupId: number;
142
+ failureGroupUid: string;
143
+ }
140
144
  /**
141
145
  * The types of test attachments.
142
146
  */
@@ -168,6 +172,16 @@ export interface BatchResponse {
168
172
  responses: Response[];
169
173
  status: string;
170
174
  }
175
+ export interface BranchCoverage {
176
+ /**
177
+ * number of covered branches
178
+ */
179
+ coveredbranches: number;
180
+ /**
181
+ * total number of branches
182
+ */
183
+ totalbranches: number;
184
+ }
171
185
  /**
172
186
  * BuildConfiguration Details.
173
187
  */
@@ -2573,6 +2587,37 @@ export interface TestActionResultModel extends TestResultModelBase {
2573
2587
  */
2574
2588
  url: string;
2575
2589
  }
2590
+ /**
2591
+ * Test analysis failure group object
2592
+ */
2593
+ export interface TestAnalysisFailureGroup {
2594
+ /**
2595
+ * classification category of the group Allowable values: 'Critical', 'System', 'Discounted'
2596
+ */
2597
+ classificationCategory: string;
2598
+ /**
2599
+ * analysis group dimensions
2600
+ */
2601
+ dimensions: {
2602
+ [key: string]: any;
2603
+ };
2604
+ /**
2605
+ * reason for the analysis category
2606
+ */
2607
+ displayReason: string;
2608
+ /**
2609
+ * title of the analysis category display
2610
+ */
2611
+ displayTitle: string;
2612
+ /**
2613
+ * analysis failure group id
2614
+ */
2615
+ failureGroupId: number;
2616
+ /**
2617
+ * unique id across the object
2618
+ */
2619
+ uid: string;
2620
+ }
2576
2621
  export interface TestAttachment {
2577
2622
  /**
2578
2623
  * Attachment type.
@@ -2683,6 +2728,10 @@ export interface TestCaseResult {
2683
2728
  * Test attachment ID of action recording.
2684
2729
  */
2685
2730
  afnStripId: number;
2731
+ /**
2732
+ * AnalysisFailureGroups
2733
+ */
2734
+ analysisFailureGroups: TestAnalysisFailureGroup[];
2686
2735
  /**
2687
2736
  * Reference to area path of test.
2688
2737
  */
@@ -4866,6 +4915,23 @@ export interface TestSession {
4866
4915
  */
4867
4916
  url: string;
4868
4917
  }
4918
+ /**
4919
+ * Test session anaylsis
4920
+ */
4921
+ export interface TestSessionAnalysis {
4922
+ /**
4923
+ * session analysis engine
4924
+ */
4925
+ analysisEngine: string;
4926
+ /**
4927
+ * analysis failure groups
4928
+ */
4929
+ analysisFailureGroups: TestAnalysisFailureGroup[];
4930
+ /**
4931
+ * session analysis type
4932
+ */
4933
+ analysisType: string;
4934
+ }
4869
4935
  /**
4870
4936
  * Test session environment
4871
4937
  */
@@ -809,6 +809,14 @@ export declare class TestResultsRestClient extends RestClientBase {
809
809
  * @param sessionId -
810
810
  */
811
811
  getTestSessionLayout(project: string, sessionId: string): Promise<any[]>;
812
+ /**
813
+ * Creates Session Analysis object in TCM data store for a given session
814
+ *
815
+ * @param analysis - Session Analysis details
816
+ * @param project - Project ID or project name
817
+ * @param sessionId - ID of Session to add Notification
818
+ */
819
+ createAnalysis(analysis: Test.TestSessionAnalysis[], project: string, sessionId: number): Promise<Test.AnalysisFailureGroupReturn[]>;
812
820
  /**
813
821
  * Creates Environment object in TCM data store
814
822
  *
@@ -2763,6 +2763,29 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2763
2763
  });
2764
2764
  });
2765
2765
  };
2766
+ /**
2767
+ * Creates Session Analysis object in TCM data store for a given session
2768
+ *
2769
+ * @param analysis - Session Analysis details
2770
+ * @param project - Project ID or project name
2771
+ * @param sessionId - ID of Session to add Notification
2772
+ */
2773
+ TestResultsRestClient.prototype.createAnalysis = function (analysis, project, sessionId) {
2774
+ return __awaiter(this, void 0, void 0, function () {
2775
+ return __generator(this, function (_a) {
2776
+ return [2 /*return*/, this.beginRequest({
2777
+ apiVersion: "7.2-preview.2",
2778
+ method: "POST",
2779
+ routeTemplate: "{project}/_apis/testresults/testsession/{sessionId}/analysis",
2780
+ routeValues: {
2781
+ project: project,
2782
+ sessionId: sessionId
2783
+ },
2784
+ body: analysis
2785
+ })];
2786
+ });
2787
+ });
2788
+ };
2766
2789
  /**
2767
2790
  * Creates Environment object in TCM data store
2768
2791
  *