azure-devops-extension-api 4.259.0 → 4.261.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/AdvancedSecurity.Reporting/Reporting.d.ts +6 -0
- package/AdvancedSecurity.Reporting/ReportingClient.d.ts +2 -1
- package/AdvancedSecurity.Reporting/ReportingClient.js +8 -2
- package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
- package/Alert/Alert.d.ts +8 -0
- package/Alert/AlertClient.d.ts +6 -0
- package/Alert/AlertClient.js +24 -4
- package/Alert/AlertClient.min.js +1 -1
- package/Build/Build.d.ts +4 -0
- package/Gallery/Gallery.d.ts +15 -3
- package/Gallery/Gallery.js +13 -1
- package/Gallery/Gallery.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +34 -22
- package/Test/Test.d.ts +55 -1
- package/Test/Test.js +4 -0
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +8 -0
- package/Test/TestClient.js +23 -0
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +6 -6
- package/TestResults/TestResultsClient.d.ts +11 -0
- package/TestResults/TestResultsClient.js +44 -0
- package/TestResults/TestResultsClient.min.js +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs1009203852923.json +1 -0
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +1 -1
- package/_manifest/spdx_2.2/manifest.cat +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.json +2224 -2224
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/package.json +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0825211641838.json +0 -1
|
@@ -62,6 +62,12 @@ export declare enum AlertType {
|
|
|
62
62
|
*/
|
|
63
63
|
License = 4
|
|
64
64
|
}
|
|
65
|
+
export interface EnablementFilterCriteria {
|
|
66
|
+
/**
|
|
67
|
+
* If provided, only return repos whose titles match this pattern.
|
|
68
|
+
*/
|
|
69
|
+
keywords: string;
|
|
70
|
+
}
|
|
65
71
|
export interface FilterCriteria {
|
|
66
72
|
/**
|
|
67
73
|
* If provided, only return summary data for alerts of this type. Otherwise, return summary data for alerts of all types.
|
|
@@ -13,6 +13,7 @@ export declare class ReportingRestClient extends RestClientBase {
|
|
|
13
13
|
*/
|
|
14
14
|
getAlertSummaryForOrg(criteria?: Reporting.FilterCriteria): Promise<Reporting.OrgAlertSummary>;
|
|
15
15
|
/**
|
|
16
|
+
* @param criteria -
|
|
16
17
|
*/
|
|
17
|
-
getEnablementSummaryForOrg(): Promise<Reporting.OrgEnablementSummary>;
|
|
18
|
+
getEnablementSummaryForOrg(criteria?: Reporting.EnablementFilterCriteria): Promise<Reporting.OrgEnablementSummary>;
|
|
18
19
|
}
|
|
@@ -95,16 +95,22 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
97
|
/**
|
|
98
|
+
* @param criteria -
|
|
98
99
|
*/
|
|
99
|
-
ReportingRestClient.prototype.getEnablementSummaryForOrg = function () {
|
|
100
|
+
ReportingRestClient.prototype.getEnablementSummaryForOrg = function (criteria) {
|
|
100
101
|
return __awaiter(this, void 0, void 0, function () {
|
|
102
|
+
var queryValues;
|
|
101
103
|
return __generator(this, function (_a) {
|
|
104
|
+
queryValues = {
|
|
105
|
+
criteria: criteria
|
|
106
|
+
};
|
|
102
107
|
return [2 /*return*/, this.beginRequest({
|
|
103
108
|
apiVersion: "7.2-preview.1",
|
|
104
109
|
routeTemplate: "_apis/Reporting/summary/{action}",
|
|
105
110
|
routeValues: {
|
|
106
111
|
action: "Enablement"
|
|
107
|
-
}
|
|
112
|
+
},
|
|
113
|
+
queryParams: queryValues
|
|
108
114
|
})];
|
|
109
115
|
});
|
|
110
116
|
});
|
|
@@ -1 +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 r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new r(function(e){e(t.value)}).then(a,u)}s((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=e.call(t,u)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[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"],function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getRiskUXComputedFilters=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/filters/{action}",routeValues:{action:"Alerts"}})]})})},e.prototype.getAlertSummaryForOrg=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(r){return e={criteria:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Alerts"},queryParams:e})]})})},e.prototype.getEnablementSummaryForOrg=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(
|
|
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 r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{s(n.next(t))}catch(t){i(t)}}function u(t){try{s(n.throw(t))}catch(t){i(t)}}function s(t){t.done?o(t.value):new r(function(e){e(t.value)}).then(a,u)}s((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=e.call(t,u)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,o,i,a,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[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"],function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getRiskUXComputedFilters=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/filters/{action}",routeValues:{action:"Alerts"}})]})})},e.prototype.getAlertSummaryForOrg=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(r){return e={criteria:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Alerts"},queryParams:e})]})})},e.prototype.getEnablementSummaryForOrg=function(t){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(r){return e={criteria:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Reporting/summary/{action}",routeValues:{action:"Enablement"},queryParams:e})]})})},e}(r.RestClientBase);e.ReportingRestClient=n});
|
package/Alert/Alert.d.ts
CHANGED
|
@@ -50,10 +50,18 @@ export interface Alert {
|
|
|
50
50
|
* This value is computed and returned by the service. It is a value based on the results from all analysis configurations. An example of a physical location is a file location.
|
|
51
51
|
*/
|
|
52
52
|
physicalLocations: PhysicalLocation[];
|
|
53
|
+
/**
|
|
54
|
+
* Identifier of the project where the alert was detected.
|
|
55
|
+
*/
|
|
56
|
+
projectId: string;
|
|
53
57
|
/**
|
|
54
58
|
* Relations between alerts and other artifacts.
|
|
55
59
|
*/
|
|
56
60
|
relations: RelationMetadata[];
|
|
61
|
+
/**
|
|
62
|
+
* Identifier of the repository where the alert was detected.
|
|
63
|
+
*/
|
|
64
|
+
repositoryId: string;
|
|
57
65
|
/**
|
|
58
66
|
* Repository URL where the alert was detected.
|
|
59
67
|
*/
|
package/Alert/AlertClient.d.ts
CHANGED
|
@@ -89,6 +89,12 @@ export declare class AlertRestClient extends RestClientBase {
|
|
|
89
89
|
* @param repository - The name or ID of the repository.
|
|
90
90
|
*/
|
|
91
91
|
updateAlertsMetadata(alertsMetadata: Alert.AlertMetadata[], project: string, repository: string): Promise<Alert.AlertMetadataChange[]>;
|
|
92
|
+
/**
|
|
93
|
+
* Get alerts by their IDs at the organization level. Only retruns alerts that the user has permission to view. Only returns alerts of sku plans that are enabled.
|
|
94
|
+
*
|
|
95
|
+
* @param alertIds - List of alert IDs to retrieve
|
|
96
|
+
*/
|
|
97
|
+
getOrgLevelAlertsByIds(alertIds: number[]): Promise<Alert.Alert[]>;
|
|
92
98
|
/**
|
|
93
99
|
* Upload a Sarif containing security alerts
|
|
94
100
|
*
|
package/Alert/AlertClient.js
CHANGED
|
@@ -75,7 +75,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
75
75
|
};
|
|
76
76
|
return [2 /*return*/, this.beginRequest({
|
|
77
77
|
apiVersion: "7.2-preview.1",
|
|
78
|
-
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/
|
|
78
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",
|
|
79
79
|
routeValues: {
|
|
80
80
|
project: project,
|
|
81
81
|
alertId: alertId,
|
|
@@ -111,7 +111,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
111
111
|
};
|
|
112
112
|
return [2 /*return*/, this.beginRequest({
|
|
113
113
|
apiVersion: "7.2-preview.1",
|
|
114
|
-
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/
|
|
114
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",
|
|
115
115
|
routeValues: {
|
|
116
116
|
project: project,
|
|
117
117
|
repository: repository
|
|
@@ -152,7 +152,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
152
152
|
};
|
|
153
153
|
return [2 /*return*/, this.beginRequest({
|
|
154
154
|
apiVersion: "7.2-preview.1",
|
|
155
|
-
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/
|
|
155
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",
|
|
156
156
|
routeValues: {
|
|
157
157
|
project: project,
|
|
158
158
|
alertId: alertId,
|
|
@@ -177,7 +177,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
177
177
|
return [2 /*return*/, this.beginRequest({
|
|
178
178
|
apiVersion: "7.2-preview.1",
|
|
179
179
|
method: "PATCH",
|
|
180
|
-
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/
|
|
180
|
+
routeTemplate: "{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",
|
|
181
181
|
routeValues: {
|
|
182
182
|
project: project,
|
|
183
183
|
alertId: alertId,
|
|
@@ -328,6 +328,26 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
330
|
};
|
|
331
|
+
/**
|
|
332
|
+
* Get alerts by their IDs at the organization level. Only retruns alerts that the user has permission to view. Only returns alerts of sku plans that are enabled.
|
|
333
|
+
*
|
|
334
|
+
* @param alertIds - List of alert IDs to retrieve
|
|
335
|
+
*/
|
|
336
|
+
AlertRestClient.prototype.getOrgLevelAlertsByIds = function (alertIds) {
|
|
337
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
338
|
+
var queryValues;
|
|
339
|
+
return __generator(this, function (_a) {
|
|
340
|
+
queryValues = {
|
|
341
|
+
alertIds: alertIds && alertIds.join(",")
|
|
342
|
+
};
|
|
343
|
+
return [2 /*return*/, this.beginRequest({
|
|
344
|
+
apiVersion: "7.2-preview.1",
|
|
345
|
+
routeTemplate: "_apis/Alert/alerts",
|
|
346
|
+
queryParams: queryValues
|
|
347
|
+
})];
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
};
|
|
331
351
|
/**
|
|
332
352
|
* Upload a Sarif containing security alerts
|
|
333
353
|
*
|
package/Alert/AlertClient.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function a(e){try{u(o.next(e))}catch(e){n(e)}}function s(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAlert=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function a(e){try{u(o.next(e))}catch(e){n(e)}}function s(e){try{u(o.throw(e))}catch(e){n(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,i,n,a,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAlert=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.getAlerts=function(e,t,r,i,n,a,s){return __awaiter(this,void 0,void 0,function(){var u,p=this;return __generator(this,function(c){return u={top:r,orderBy:i,criteria:n,expand:a,continuationToken:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,repository:t},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getAlertSarif=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={ref:o,expand:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:e,alertId:t,repository:r},queryParams:n})]})})},t.prototype.updateAlert=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}",routeValues:{project:t,alertId:r,repository:o},body:e})]})})},t.prototype.getBranches=function(e,t,r,o,i,n,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={alertType:r,continuationToken:o,branchNameContains:i,top:n,includePullRequestBranches:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Branches"},queryParams:s})]})})},t.prototype.getUxFilters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={alertType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/filters/{action}",routeValues:{project:e,repository:t,action:"Default"},queryParams:o})]})})},t.prototype.getAlertInstances=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Instances",routeValues:{project:e,alertId:t,repository:r},queryParams:i})]})})},t.prototype.createLegalReview=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={alertId:r,ref:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:e,repository:t},queryParams:i})]})})},t.prototype.updateAlertsMetadata=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/Metadata",routeValues:{project:t,repository:r},body:e})]})})},t.prototype.getOrgLevelAlertsByIds=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={alertIds:e&&e.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Alert/alerts",queryParams:t})]})})},t.prototype.uploadSarif=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/sarifs",routeValues:{project:t,repository:r},customHeaders:{"Content-Type":"application/octet-stream","X-AdvSec-NotificationSarif":o},body:e})]})})},t.prototype.getSarif=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Alert/Sarifs/{sarifId}",routeValues:{sarifId:e}})]})})},t.prototype.getValidityData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})]})})},t.prototype.initiateValidation=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/Alert/repositories/{repository}/alerts/{alertId}/Validate",routeValues:{project:e,repository:t,alertId:r}})]})})},t}(r.RestClientBase);t.AlertRestClient=i});
|
package/Build/Build.d.ts
CHANGED
|
@@ -2328,6 +2328,10 @@ export declare enum RepositoryCleanOptions {
|
|
|
2328
2328
|
* Represents a repository's webhook returned from a source provider.
|
|
2329
2329
|
*/
|
|
2330
2330
|
export interface RepositoryWebhook {
|
|
2331
|
+
/**
|
|
2332
|
+
* The status of last delivery attempt for the webhook.
|
|
2333
|
+
*/
|
|
2334
|
+
lastDeliveryStatus: number;
|
|
2331
2335
|
/**
|
|
2332
2336
|
* The friendly name of the repository.
|
|
2333
2337
|
*/
|
package/Gallery/Gallery.d.ts
CHANGED
|
@@ -808,9 +808,13 @@ export declare enum ExtensionQueryFlags {
|
|
|
808
808
|
*/
|
|
809
809
|
IncludeNameConflictInfo = 32768,
|
|
810
810
|
/**
|
|
811
|
-
* When retrieving versions from a query, return the details with both latest
|
|
811
|
+
* When retrieving versions from a query, return the details with both latest prerelease and stable version of the extensions that matched, if not prerelease 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
812
|
*/
|
|
813
813
|
IncludeLatestPrereleaseAndStableVersionOnly = 65536,
|
|
814
|
+
/**
|
|
815
|
+
* Include deleted extensions in the result set, and usage is only internal.
|
|
816
|
+
*/
|
|
817
|
+
IncludeDeleted = 131072,
|
|
814
818
|
/**
|
|
815
819
|
* 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.
|
|
816
820
|
*/
|
|
@@ -885,7 +889,11 @@ export declare enum ExtensionVersionFlags {
|
|
|
885
889
|
/**
|
|
886
890
|
* 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
|
|
887
891
|
*/
|
|
888
|
-
Prerelease = 2
|
|
892
|
+
Prerelease = 2,
|
|
893
|
+
/**
|
|
894
|
+
* This version has been deleted.
|
|
895
|
+
*/
|
|
896
|
+
Deleted = 4
|
|
889
897
|
}
|
|
890
898
|
/**
|
|
891
899
|
* One condition in a QueryFilter.
|
|
@@ -1087,7 +1095,11 @@ export declare enum PublishedExtensionFlags {
|
|
|
1087
1095
|
/**
|
|
1088
1096
|
* This flag is set for extensions we want to hide from Marketplace home and search pages. This will be used to override the exposure of builtIn flags.
|
|
1089
1097
|
*/
|
|
1090
|
-
Hidden = 32768
|
|
1098
|
+
Hidden = 32768,
|
|
1099
|
+
/**
|
|
1100
|
+
* This flag is set for extensions that are marked as deleted. The deleted flag is managed by the service and can't be supplied by the Extension Developers.
|
|
1101
|
+
*/
|
|
1102
|
+
Deleted = 65536
|
|
1091
1103
|
}
|
|
1092
1104
|
export interface Publisher extends PublisherBase {
|
|
1093
1105
|
_links: any;
|
package/Gallery/Gallery.js
CHANGED
|
@@ -317,9 +317,13 @@ define(["require", "exports"], function (require, exports) {
|
|
|
317
317
|
*/
|
|
318
318
|
ExtensionQueryFlags[ExtensionQueryFlags["IncludeNameConflictInfo"] = 32768] = "IncludeNameConflictInfo";
|
|
319
319
|
/**
|
|
320
|
-
* When retrieving versions from a query, return the details with both latest
|
|
320
|
+
* When retrieving versions from a query, return the details with both latest prerelease and stable version of the extensions that matched, if not prerelease 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
321
|
*/
|
|
322
322
|
ExtensionQueryFlags[ExtensionQueryFlags["IncludeLatestPrereleaseAndStableVersionOnly"] = 65536] = "IncludeLatestPrereleaseAndStableVersionOnly";
|
|
323
|
+
/**
|
|
324
|
+
* Include deleted extensions in the result set, and usage is only internal.
|
|
325
|
+
*/
|
|
326
|
+
ExtensionQueryFlags[ExtensionQueryFlags["IncludeDeleted"] = 131072] = "IncludeDeleted";
|
|
323
327
|
/**
|
|
324
328
|
* 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.
|
|
325
329
|
*/
|
|
@@ -357,6 +361,10 @@ define(["require", "exports"], function (require, exports) {
|
|
|
357
361
|
* 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
362
|
*/
|
|
359
363
|
ExtensionVersionFlags[ExtensionVersionFlags["Prerelease"] = 2] = "Prerelease";
|
|
364
|
+
/**
|
|
365
|
+
* This version has been deleted.
|
|
366
|
+
*/
|
|
367
|
+
ExtensionVersionFlags[ExtensionVersionFlags["Deleted"] = 4] = "Deleted";
|
|
360
368
|
})(ExtensionVersionFlags = exports.ExtensionVersionFlags || (exports.ExtensionVersionFlags = {}));
|
|
361
369
|
/**
|
|
362
370
|
* Type of event
|
|
@@ -455,6 +463,10 @@ define(["require", "exports"], function (require, exports) {
|
|
|
455
463
|
* This flag is set for extensions we want to hide from Marketplace home and search pages. This will be used to override the exposure of builtIn flags.
|
|
456
464
|
*/
|
|
457
465
|
PublishedExtensionFlags[PublishedExtensionFlags["Hidden"] = 32768] = "Hidden";
|
|
466
|
+
/**
|
|
467
|
+
* This flag is set for extensions that are marked as deleted. The deleted flag is managed by the service and can't be supplied by the Extension Developers.
|
|
468
|
+
*/
|
|
469
|
+
PublishedExtensionFlags[PublishedExtensionFlags["Deleted"] = 65536] = "Deleted";
|
|
458
470
|
})(PublishedExtensionFlags = exports.PublishedExtensionFlags || (exports.PublishedExtensionFlags = {}));
|
|
459
471
|
var PublisherFlags;
|
|
460
472
|
(function (PublisherFlags) {
|
package/Gallery/Gallery.min.js
CHANGED
|
@@ -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.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={}))});
|
|
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.IncludeDeleted=131072]="IncludeDeleted",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",e[e.Deleted=4]="Deleted"}(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",e[e.Deleted=65536]="Deleted"}(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/TaskAgent/TaskAgent.d.ts
CHANGED
|
@@ -2009,12 +2009,8 @@ export interface TaskAgentJob {
|
|
|
2009
2009
|
/**
|
|
2010
2010
|
* A job request for an agent.
|
|
2011
2011
|
*/
|
|
2012
|
-
export interface TaskAgentJobRequest {
|
|
2012
|
+
export interface TaskAgentJobRequest extends TaskAgentJobRequestRef {
|
|
2013
2013
|
agentSpecification: any;
|
|
2014
|
-
/**
|
|
2015
|
-
* The date/time this request was assigned.
|
|
2016
|
-
*/
|
|
2017
|
-
assignTime: Date;
|
|
2018
2014
|
/**
|
|
2019
2015
|
* Additional data about the request.
|
|
2020
2016
|
*/
|
|
@@ -2029,10 +2025,6 @@ export interface TaskAgentJobRequest {
|
|
|
2029
2025
|
* A list of demands required to fulfill this request.
|
|
2030
2026
|
*/
|
|
2031
2027
|
demands: Demand[];
|
|
2032
|
-
/**
|
|
2033
|
-
* The date/time this request was finished.
|
|
2034
|
-
*/
|
|
2035
|
-
finishTime: Date;
|
|
2036
2028
|
/**
|
|
2037
2029
|
* The host which triggered this request.
|
|
2038
2030
|
*/
|
|
@@ -2051,7 +2043,6 @@ export interface TaskAgentJobRequest {
|
|
|
2051
2043
|
lockedUntil: Date;
|
|
2052
2044
|
matchedAgents: TaskAgentReference[];
|
|
2053
2045
|
matchesAllAgentsInPool: boolean;
|
|
2054
|
-
orchestrationId: string;
|
|
2055
2046
|
/**
|
|
2056
2047
|
* The pipeline associated with this request
|
|
2057
2048
|
*/
|
|
@@ -2074,18 +2065,6 @@ export interface TaskAgentJobRequest {
|
|
|
2074
2065
|
* The ID of the queue this request targets
|
|
2075
2066
|
*/
|
|
2076
2067
|
queueId: number;
|
|
2077
|
-
/**
|
|
2078
|
-
* The date/time this request was queued.
|
|
2079
|
-
*/
|
|
2080
|
-
queueTime: Date;
|
|
2081
|
-
/**
|
|
2082
|
-
* The date/time this request was receieved by an agent.
|
|
2083
|
-
*/
|
|
2084
|
-
receiveTime: Date;
|
|
2085
|
-
/**
|
|
2086
|
-
* ID of the request.
|
|
2087
|
-
*/
|
|
2088
|
-
requestId: number;
|
|
2089
2068
|
/**
|
|
2090
2069
|
* The agent allocated for this request.
|
|
2091
2070
|
*/
|
|
@@ -2105,6 +2084,29 @@ export interface TaskAgentJobRequest {
|
|
|
2105
2084
|
statusMessage: string;
|
|
2106
2085
|
userDelayed: boolean;
|
|
2107
2086
|
}
|
|
2087
|
+
export interface TaskAgentJobRequestRef {
|
|
2088
|
+
/**
|
|
2089
|
+
* The date/time this request was assigned.
|
|
2090
|
+
*/
|
|
2091
|
+
assignTime: Date;
|
|
2092
|
+
/**
|
|
2093
|
+
* The date/time this request was finished.
|
|
2094
|
+
*/
|
|
2095
|
+
finishTime: Date;
|
|
2096
|
+
orchestrationId: string;
|
|
2097
|
+
/**
|
|
2098
|
+
* The date/time this request was queued.
|
|
2099
|
+
*/
|
|
2100
|
+
queueTime: Date;
|
|
2101
|
+
/**
|
|
2102
|
+
* The date/time this request was receieved by an agent.
|
|
2103
|
+
*/
|
|
2104
|
+
receiveTime: Date;
|
|
2105
|
+
/**
|
|
2106
|
+
* ID of the request.
|
|
2107
|
+
*/
|
|
2108
|
+
requestId: number;
|
|
2109
|
+
}
|
|
2108
2110
|
/**
|
|
2109
2111
|
* This is useful in getting a list of deployment targets, filtered by the result of their last job.
|
|
2110
2112
|
*/
|
|
@@ -2627,6 +2629,16 @@ export declare enum TaskAgentStatusFilter {
|
|
|
2627
2629
|
*/
|
|
2628
2630
|
All = 3
|
|
2629
2631
|
}
|
|
2632
|
+
export interface TaskAgentStatusUpdate {
|
|
2633
|
+
/**
|
|
2634
|
+
* Whether or not the agent is online.
|
|
2635
|
+
*/
|
|
2636
|
+
status: TaskAgentStatus;
|
|
2637
|
+
/**
|
|
2638
|
+
* Date on which the last connectivity status change occurred.
|
|
2639
|
+
*/
|
|
2640
|
+
statusChangedOn: Date;
|
|
2641
|
+
}
|
|
2630
2642
|
/**
|
|
2631
2643
|
* Details about an agent update.
|
|
2632
2644
|
*/
|
package/Test/Test.d.ts
CHANGED
|
@@ -141,6 +141,10 @@ export interface AnalysisFailureGroupReturn {
|
|
|
141
141
|
analysisFailureGroupId: number;
|
|
142
142
|
failureGroupUid: string;
|
|
143
143
|
}
|
|
144
|
+
export interface AttachmentReference {
|
|
145
|
+
fileName: string;
|
|
146
|
+
url: string;
|
|
147
|
+
}
|
|
144
148
|
/**
|
|
145
149
|
* The types of test attachments.
|
|
146
150
|
*/
|
|
@@ -952,7 +956,11 @@ export declare enum FlakyDetectionType {
|
|
|
952
956
|
/**
|
|
953
957
|
* Defines System detection type.
|
|
954
958
|
*/
|
|
955
|
-
System = 2
|
|
959
|
+
System = 2,
|
|
960
|
+
/**
|
|
961
|
+
* Defines Advanced System detection type.
|
|
962
|
+
*/
|
|
963
|
+
AdvanceSystem = 3
|
|
956
964
|
}
|
|
957
965
|
export interface FlakySettings {
|
|
958
966
|
/**
|
|
@@ -1301,6 +1309,10 @@ export interface Machine {
|
|
|
1301
1309
|
*/
|
|
1302
1310
|
timeline: Timeline[];
|
|
1303
1311
|
}
|
|
1312
|
+
export interface MetadataFile {
|
|
1313
|
+
metadataId: string;
|
|
1314
|
+
suites: SuiteMetadata[];
|
|
1315
|
+
}
|
|
1304
1316
|
/**
|
|
1305
1317
|
* Test summary metrics.
|
|
1306
1318
|
*/
|
|
@@ -2447,6 +2459,28 @@ export interface SourceViewBuildCoverage {
|
|
|
2447
2459
|
*/
|
|
2448
2460
|
folderCoverageData: FolderCoverageData;
|
|
2449
2461
|
}
|
|
2462
|
+
export interface StagedSuiteResponse {
|
|
2463
|
+
suiteId: number;
|
|
2464
|
+
suiteName: string;
|
|
2465
|
+
testCaseMetadata: StagedTestCaseMetadataResponse[];
|
|
2466
|
+
}
|
|
2467
|
+
export interface StagedSuitesRequestModel {
|
|
2468
|
+
suites: StagingSuiteRequest[];
|
|
2469
|
+
}
|
|
2470
|
+
export interface StagedSuitesResponseModel {
|
|
2471
|
+
metadataId: string;
|
|
2472
|
+
success: boolean;
|
|
2473
|
+
}
|
|
2474
|
+
export interface StagedTestCaseMetadataResponse {
|
|
2475
|
+
name: string;
|
|
2476
|
+
testCaseId: number;
|
|
2477
|
+
}
|
|
2478
|
+
export interface StagedTestCaseResponse {
|
|
2479
|
+
name: string;
|
|
2480
|
+
steps: string;
|
|
2481
|
+
suiteId: number;
|
|
2482
|
+
testCaseId: number;
|
|
2483
|
+
}
|
|
2450
2484
|
/**
|
|
2451
2485
|
* Stage in pipeline
|
|
2452
2486
|
*/
|
|
@@ -2460,6 +2494,11 @@ export interface StageReference {
|
|
|
2460
2494
|
*/
|
|
2461
2495
|
stageName: string;
|
|
2462
2496
|
}
|
|
2497
|
+
export interface StagingSuiteRequest {
|
|
2498
|
+
suiteId: number;
|
|
2499
|
+
suiteName: string;
|
|
2500
|
+
testCaseMetadata: TestCaseStagingMetadataRequest[];
|
|
2501
|
+
}
|
|
2463
2502
|
/**
|
|
2464
2503
|
* Suite create model
|
|
2465
2504
|
*/
|
|
@@ -2532,6 +2571,11 @@ export declare enum SuiteExpand {
|
|
|
2532
2571
|
*/
|
|
2533
2572
|
DefaultTesters = 2
|
|
2534
2573
|
}
|
|
2574
|
+
export interface SuiteMetadata {
|
|
2575
|
+
suiteId: number;
|
|
2576
|
+
suiteName: string;
|
|
2577
|
+
testCases: TestCaseFileInfo[];
|
|
2578
|
+
}
|
|
2535
2579
|
/**
|
|
2536
2580
|
* Test case for the suite.
|
|
2537
2581
|
*/
|
|
@@ -2770,6 +2814,11 @@ export interface TestAuthoringDetails {
|
|
|
2770
2814
|
suiteId: number;
|
|
2771
2815
|
testerId: string;
|
|
2772
2816
|
}
|
|
2817
|
+
export interface TestCaseFileInfo {
|
|
2818
|
+
fileName: string;
|
|
2819
|
+
name: string;
|
|
2820
|
+
testCaseId: number;
|
|
2821
|
+
}
|
|
2773
2822
|
export interface TestCaseMetadata2 {
|
|
2774
2823
|
container: string;
|
|
2775
2824
|
name: string;
|
|
@@ -3124,6 +3173,11 @@ export interface TestCaseResultUpdateModel {
|
|
|
3124
3173
|
testCasePriority: string;
|
|
3125
3174
|
testResult: ShallowReference;
|
|
3126
3175
|
}
|
|
3176
|
+
export interface TestCaseStagingMetadataRequest {
|
|
3177
|
+
name: string;
|
|
3178
|
+
steps: string[];
|
|
3179
|
+
testCaseId: number;
|
|
3180
|
+
}
|
|
3127
3181
|
/**
|
|
3128
3182
|
* Test configuration
|
|
3129
3183
|
*/
|
package/Test/Test.js
CHANGED
|
@@ -271,6 +271,10 @@ define(["require", "exports"], function (require, exports) {
|
|
|
271
271
|
* Defines System detection type.
|
|
272
272
|
*/
|
|
273
273
|
FlakyDetectionType[FlakyDetectionType["System"] = 2] = "System";
|
|
274
|
+
/**
|
|
275
|
+
* Defines Advanced System detection type.
|
|
276
|
+
*/
|
|
277
|
+
FlakyDetectionType[FlakyDetectionType["AdvanceSystem"] = 3] = "AdvanceSystem";
|
|
274
278
|
})(FlakyDetectionType = exports.FlakyDetectionType || (exports.FlakyDetectionType = {}));
|
|
275
279
|
/**
|
|
276
280
|
* Test summary metrics.
|
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",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={}))});
|
|
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",e[e.AdvanceSystem=3]="AdvanceSystem"}(t.FlakyDetectionType||(t.FlakyDetectionType={}));!function(e){e[e.All=1]="All",e[e.ResultSummary=2]="ResultSummary",e[e.ResultsAnalysis=3]="ResultsAnalysis",e[e.RunSummary=4]="RunSummary"}(t.Metrics||(t.Metrics={}));!function(e){e[e.Add=1]="Add",e[e.Delete=2]="Delete"}(t.OperationType||(t.OperationType={}));!function(e){e[e.None=0]="None",e[e.Iterations=1]="Iterations",e[e.WorkItems=2]="WorkItems",e[e.SubResults=4]="SubResults",e[e.Point=8]="Point"}(t.ResultDetails||(t.ResultDetails={}));!function(e){e[e.None=0]="None",e[e.Rerun=1]="Rerun",e[e.DataDriven=2]="DataDriven",e[e.OrderedTest=3]="OrderedTest",e[e.Generic=4]="Generic"}(t.ResultGroupType||(t.ResultGroupType={}));!function(e){e[e.Rerun=1]="Rerun",e[e.Flaky=2]="Flaky"}(t.ResultMetadata||(t.ResultMetadata={}));!function(e){e[e.None=0]="None",e[e.FlakyIdentifiers=1]="FlakyIdentifiers"}(t.ResultMetaDataDetails||(t.ResultMetaDataDetails={}));!function(e){e[e.TestSuite=0]="TestSuite",e[e.TestPlan=1]="TestPlan"}(t.ResultObjectType||(t.ResultObjectType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.Normal=1]="Normal",e[e.Blocking=2]="Blocking",e[e.Web=4]="Web",e[e.MtrRunInitiatedFromWeb=8]="MtrRunInitiatedFromWeb",e[e.RunWithDtlEnv=16]="RunWithDtlEnv",e[e.NoConfigRun=32]="NoConfigRun"}(t.RunType||(t.RunType={}));!function(e){e[e.Any=0]="Any",e[e.Tcm=1]="Tcm",e[e.Tfs=2]="Tfs"}(t.Service||(t.Service={}));!function(e){e[e.None=0]="None",e[e.Passed=1]="Passed",e[e.Failed=2]="Failed",e[e.Pending=3]="Pending"}(t.SessionResult||(t.SessionResult={}));!function(e){e[e.Children=1]="Children",e[e.DefaultTesters=2]="DefaultTesters"}(t.SuiteExpand||(t.SuiteExpand={}));!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(t.TCMServiceDataMigrationStatus||(t.TCMServiceDataMigrationStatus={}));!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(t.TestConfigurationState||(t.TestConfigurationState={}));!function(e){e[e.Run=0]="Run",e[e.Build=1]="Build",e[e.Release=2]="Release"}(t.TestLogScope||(t.TestLogScope={}));!function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.FileAlreadyExists=2]="FileAlreadyExists",e[e.InvalidInput=3]="InvalidInput",e[e.InvalidFileName=4]="InvalidFileName",e[e.InvalidContainer=5]="InvalidContainer",e[e.TransferFailed=6]="TransferFailed",e[e.FeatureDisabled=7]="FeatureDisabled",e[e.BuildDoesNotExist=8]="BuildDoesNotExist",e[e.RunDoesNotExist=9]="RunDoesNotExist",e[e.ContainerNotCreated=10]="ContainerNotCreated",e[e.APINotSupported=11]="APINotSupported",e[e.FileSizeExceeds=12]="FileSizeExceeds",e[e.ContainerNotFound=13]="ContainerNotFound",e[e.FileNotFound=14]="FileNotFound",e[e.DirectoryNotFound=15]="DirectoryNotFound",e[e.StorageCapacityExceeded=16]="StorageCapacityExceeded"}(t.TestLogStatusCode||(t.TestLogStatusCode={}));!function(e){e[e.Root=1]="Root",e[e.File=2]="File"}(t.TestLogStoreEndpointType||(t.TestLogStoreEndpointType={}));!function(e){e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.ReadAndCreate=3]="ReadAndCreate"}(t.TestLogStoreOperationType||(t.TestLogStoreOperationType={}));!function(e){e[e.GeneralAttachment=1]="GeneralAttachment",e[e.CodeCoverage=2]="CodeCoverage",e[e.TestImpact=3]="TestImpact",e[e.Intermediate=4]="Intermediate",e[e.System=5]="System",e[e.MergedCoverageFile=6]="MergedCoverageFile"}(t.TestLogType||(t.TestLogType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.None=1]="None",e[e.Passed=2]="Passed",e[e.Failed=3]="Failed",e[e.Inconclusive=4]="Inconclusive",e[e.Timeout=5]="Timeout",e[e.Aborted=6]="Aborted",e[e.Blocked=7]="Blocked",e[e.NotExecuted=8]="NotExecuted",e[e.Warning=9]="Warning",e[e.Error=10]="Error",e[e.NotApplicable=11]="NotApplicable",e[e.Paused=12]="Paused",e[e.InProgress=13]="InProgress",e[e.NotImpacted=14]="NotImpacted",e[e.MaxValue=14]="MaxValue"}(t.TestOutcome||(t.TestOutcome={}));!function(e){e[e.None=0]="None",e[e.Ready=1]="Ready",e[e.Completed=2]="Completed",e[e.NotReady=3]="NotReady",e[e.InProgress=4]="InProgress",e[e.MaxValue=4]="MaxValue"}(t.TestPointState||(t.TestPointState={}));!function(e){e[e.Branch=1]="Branch",e[e.Environment=2]="Environment"}(t.TestResultGroupBy||(t.TestResultGroupBy={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.Pipeline=3]="Pipeline"}(t.TestResultsContextType||(t.TestResultsContextType={}));!function(e){e[e.None=0]="None",e[e.Running=1]="Running",e[e.Completed=2]="Completed",e[e.Waiting=3]="Waiting",e[e.Cancelled=4]="Cancelled"}(t.TestResultsSessionState||(t.TestResultsSessionState={}));!function(e){e[e.All=1]="All",e[e.Flaky=2]="Flaky",e[e.NewTestLogging=3]="NewTestLogging"}(t.TestResultsSettingsType||(t.TestResultsSettingsType={}));!function(e){e[e.Passed=0]="Passed",e[e.Failed=1]="Failed",e[e.NotImpacted=2]="NotImpacted",e[e.Others=3]="Others"}(t.TestRunOutcome||(t.TestRunOutcome={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.All=3]="All"}(t.TestRunPublishContext||(t.TestRunPublishContext={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Aborted=4]="Aborted",e[e.Waiting=5]="Waiting",e[e.NeedsInvestigation=6]="NeedsInvestigation"}(t.TestRunState||(t.TestRunState={}));!function(e){e[e.None=0]="None",e[e.CreatingEnvironment=1]="CreatingEnvironment",e[e.RunningTests=2]="RunningTests",e[e.CanceledByUser=3]="CanceledByUser",e[e.AbortedBySystem=4]="AbortedBySystem",e[e.TimedOut=5]="TimedOut",e[e.PendingAnalysis=6]="PendingAnalysis",e[e.Analyzed=7]="Analyzed",e[e.CancellationInProgress=8]="CancellationInProgress"}(t.TestRunSubstate||(t.TestRunSubstate={}));!function(e){e[e.Unknown=0]="Unknown",e[e.XTDesktop=1]="XTDesktop",e[e.FeedbackDesktop=2]="FeedbackDesktop",e[e.XTWeb=3]="XTWeb",e[e.FeedbackWeb=4]="FeedbackWeb",e[e.XTDesktop2=5]="XTDesktop2",e[e.SessionInsightsForAll=6]="SessionInsightsForAll"}(t.TestSessionSource||(t.TestSessionSource={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Paused=3]="Paused",e[e.Completed=4]="Completed",e[e.Declined=5]="Declined"}(t.TestSessionState||(t.TestSessionState={}))});
|
package/Test/TestClient.d.ts
CHANGED
|
@@ -6,6 +6,14 @@ import * as WebApi from "../WebApi/WebApi";
|
|
|
6
6
|
export declare class TestRestClient extends RestClientBase {
|
|
7
7
|
constructor(options: IVssRestClientOptions);
|
|
8
8
|
static readonly RESOURCE_AREA_ID: string;
|
|
9
|
+
/**
|
|
10
|
+
* Processes a collection of test suites and returns a response model containing suite and test case details.
|
|
11
|
+
*
|
|
12
|
+
* @param request - The request model containing the test suites to be processed. Cannot be null.
|
|
13
|
+
* @param project - Project ID or project name
|
|
14
|
+
* @param workItemId -
|
|
15
|
+
*/
|
|
16
|
+
processSuitesForStaging(request: Test.StagedSuitesRequestModel, project: string, workItemId: number): Promise<Test.StagedSuitesResponseModel>;
|
|
9
17
|
/**
|
|
10
18
|
* Attach a file to test step result
|
|
11
19
|
*
|