azure-devops-extension-api 4.260.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/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/Git/GitClient.d.ts +1 -2
- package/Git/GitClient.js +1 -3
- package/Git/GitClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +34 -22
- package/Test/Test.d.ts +50 -0
- 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 +4 -4
- package/TestResults/TestResultsClient.d.ts +4 -0
- package/TestResults/TestResultsClient.js +18 -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 +2201 -2201
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/package.json +1 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0916171240337.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/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/Git/GitClient.d.ts
CHANGED
|
@@ -1212,12 +1212,11 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
1212
1212
|
* @param includeLinks - [optional] Specifies if referenceLinks should be included in the result. default is false.
|
|
1213
1213
|
* @param includeStatuses - [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false.
|
|
1214
1214
|
* @param includeMyBranches - [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter.
|
|
1215
|
-
* @param includeTargetBranches - [optional] Includes target branches defined by patterns in pull_request_targets.yml.
|
|
1216
1215
|
* @param latestStatusesOnly - [optional] True to include only the tip commit status for each ref. This option requires \`includeStatuses\` to be true. The default value is false.
|
|
1217
1216
|
* @param peelTags - [optional] Annotated tags will populate the PeeledObjectId property. default is false.
|
|
1218
1217
|
* @param filterContains - [optional] A filter to apply to the refs (contains).
|
|
1219
1218
|
*/
|
|
1220
|
-
getRefs(repositoryId: string, project?: string, filter?: string, includeLinks?: boolean, includeStatuses?: boolean, includeMyBranches?: boolean,
|
|
1219
|
+
getRefs(repositoryId: string, project?: string, filter?: string, includeLinks?: boolean, includeStatuses?: boolean, includeMyBranches?: boolean, latestStatusesOnly?: boolean, peelTags?: boolean, filterContains?: string): Promise<WebApi.PagedList<Git.GitRef>>;
|
|
1221
1220
|
/**
|
|
1222
1221
|
* Lock or Unlock a branch.
|
|
1223
1222
|
*
|
package/Git/GitClient.js
CHANGED
|
@@ -3539,12 +3539,11 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
3539
3539
|
* @param includeLinks - [optional] Specifies if referenceLinks should be included in the result. default is false.
|
|
3540
3540
|
* @param includeStatuses - [optional] Includes up to the first 1000 commit statuses for each ref. The default value is false.
|
|
3541
3541
|
* @param includeMyBranches - [optional] Includes only branches that the user owns, the branches the user favorites, and the default branch. The default value is false. Cannot be combined with the filter parameter.
|
|
3542
|
-
* @param includeTargetBranches - [optional] Includes target branches defined by patterns in pull_request_targets.yml.
|
|
3543
3542
|
* @param latestStatusesOnly - [optional] True to include only the tip commit status for each ref. This option requires \`includeStatuses\` to be true. The default value is false.
|
|
3544
3543
|
* @param peelTags - [optional] Annotated tags will populate the PeeledObjectId property. default is false.
|
|
3545
3544
|
* @param filterContains - [optional] A filter to apply to the refs (contains).
|
|
3546
3545
|
*/
|
|
3547
|
-
GitRestClient.prototype.getRefs = function (repositoryId, project, filter, includeLinks, includeStatuses, includeMyBranches,
|
|
3546
|
+
GitRestClient.prototype.getRefs = function (repositoryId, project, filter, includeLinks, includeStatuses, includeMyBranches, latestStatusesOnly, peelTags, filterContains) {
|
|
3548
3547
|
return __awaiter(this, void 0, void 0, function () {
|
|
3549
3548
|
var queryValues;
|
|
3550
3549
|
var _this = this;
|
|
@@ -3554,7 +3553,6 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
3554
3553
|
includeLinks: includeLinks,
|
|
3555
3554
|
includeStatuses: includeStatuses,
|
|
3556
3555
|
includeMyBranches: includeMyBranches,
|
|
3557
|
-
includeTargetBranches: includeTargetBranches,
|
|
3558
3556
|
latestStatusesOnly: latestStatusesOnly,
|
|
3559
3557
|
peelTags: peelTags,
|
|
3560
3558
|
filterContains: filterContains
|