azure-devops-extension-api
Advanced tools
Comparing version 0.141.15 to 0.142.0
@@ -15,2 +15,9 @@ import { IVssRestClientOptions } from "../core/Context"; | ||
/** | ||
* Deletes a board. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} id - Board identifier. | ||
*/ | ||
deleteBoard(project: string, id: number): Promise<void>; | ||
/** | ||
* Returns information for a board given its unique identifier. | ||
@@ -36,3 +43,3 @@ * | ||
*/ | ||
updateBoard(updatedBoard: Boards.UpdateBoard, project: string, id: number, eTag: String): Promise<Boards.NoContentResponse>; | ||
updateBoard(updatedBoard: Boards.UpdateBoard, project: string, id: number, eTag: String): Promise<Boards.BoardResponse>; | ||
/** | ||
@@ -52,5 +59,5 @@ * Creates a new column on a board. | ||
* @param {string} id - Column identifier. | ||
* @param {String} eTag - Column Latest Changed Date | ||
* @param {boolean} forceDeleteItems - Boolean indicating if items are to be force deleted during the column delete. | ||
*/ | ||
deleteBoardColumn(project: string, board: number, id: string, eTag: String): Promise<Boards.NoContentResponse>; | ||
deleteBoardColumn(project: string, board: number, id: string, forceDeleteItems: boolean): Promise<void>; | ||
/** | ||
@@ -90,2 +97,10 @@ * Gets column data for a board given its identifier. | ||
/** | ||
* Deletes an item in a board. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} board - Board identifier. | ||
* @param {string} id - Item unique identifier to delete. | ||
*/ | ||
deleteBoardItem(project: string, board: number, id: string): Promise<void>; | ||
/** | ||
* Gets data for a single board's item. | ||
@@ -97,3 +112,3 @@ * | ||
*/ | ||
getBoardItem(project: string, board: number, id: string): Promise<Boards.BoardItem>; | ||
getBoardItem(project: string, board: number, id: string): Promise<Boards.BoardItemResponse>; | ||
/** | ||
@@ -105,3 +120,3 @@ * Get items information for a board given its identifier. | ||
*/ | ||
getBoardItems(project: string, board: number): Promise<Boards.BoardItemReference[]>; | ||
getBoardItems(project: string, board: number): Promise<Boards.BoardItemCollectionResponse>; | ||
/** | ||
@@ -131,5 +146,5 @@ * Updates a single item in a board. | ||
* @param {string} id - Row identifier. | ||
* @param {String} eTag - Row Latest Changed Date | ||
* @param {boolean} forceDeleteItems - Boolean indicating if items are to be force deleted during the row delete. | ||
*/ | ||
deleteBoardRow(project: string, board: number, id: string, eTag: String): Promise<Boards.NoContentResponse>; | ||
deleteBoardRow(project: string, board: number, id: string, forceDeleteItems: boolean): Promise<void>; | ||
/** | ||
@@ -136,0 +151,0 @@ * Gets a row given its identifier and board. |
@@ -81,2 +81,23 @@ /* | ||
/** | ||
* Deletes a board. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} id - Board identifier. | ||
*/ | ||
BoardsRestClient.prototype.deleteBoard = function (project, id) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.beginRequest({ | ||
apiVersion: "5.0-preview.1", | ||
method: "DELETE", | ||
routeTemplate: "{project}/_apis/boards/boards/{id}", | ||
routeValues: { | ||
project: project, | ||
id: id | ||
} | ||
})]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Returns information for a board given its unique identifier. | ||
@@ -175,7 +196,11 @@ * | ||
* @param {string} id - Column identifier. | ||
* @param {String} eTag - Column Latest Changed Date | ||
* @param {boolean} forceDeleteItems - Boolean indicating if items are to be force deleted during the column delete. | ||
*/ | ||
BoardsRestClient.prototype.deleteBoardColumn = function (project, board, id, eTag) { | ||
BoardsRestClient.prototype.deleteBoardColumn = function (project, board, id, forceDeleteItems) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var queryValues; | ||
return __generator(this, function (_a) { | ||
queryValues = { | ||
forceDeleteItems: forceDeleteItems | ||
}; | ||
return [2 /*return*/, this.beginRequest({ | ||
@@ -190,5 +215,3 @@ apiVersion: "5.0-preview.1", | ||
}, | ||
customHeaders: { | ||
"ETag": eTag, | ||
} | ||
queryParams: queryValues | ||
})]; | ||
@@ -293,2 +316,25 @@ }); | ||
/** | ||
* Deletes an item in a board. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} board - Board identifier. | ||
* @param {string} id - Item unique identifier to delete. | ||
*/ | ||
BoardsRestClient.prototype.deleteBoardItem = function (project, board, id) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.beginRequest({ | ||
apiVersion: "5.0-preview.1", | ||
method: "DELETE", | ||
routeTemplate: "{project}/_apis/boards/boards/{board}/items/{*id}", | ||
routeValues: { | ||
project: project, | ||
board: board, | ||
id: id | ||
} | ||
})]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Gets data for a single board's item. | ||
@@ -393,7 +439,11 @@ * | ||
* @param {string} id - Row identifier. | ||
* @param {String} eTag - Row Latest Changed Date | ||
* @param {boolean} forceDeleteItems - Boolean indicating if items are to be force deleted during the row delete. | ||
*/ | ||
BoardsRestClient.prototype.deleteBoardRow = function (project, board, id, eTag) { | ||
BoardsRestClient.prototype.deleteBoardRow = function (project, board, id, forceDeleteItems) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var queryValues; | ||
return __generator(this, function (_a) { | ||
queryValues = { | ||
forceDeleteItems: forceDeleteItems | ||
}; | ||
return [2 /*return*/, this.beginRequest({ | ||
@@ -408,5 +458,3 @@ apiVersion: "5.0-preview.1", | ||
}, | ||
customHeaders: { | ||
"ETag": eTag, | ||
} | ||
queryParams: queryValues | ||
})]; | ||
@@ -413,0 +461,0 @@ }); |
@@ -1,1 +0,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{s(o.next(e))}catch(e){n(e)}}function u(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((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(;u;)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 u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){u.label=r[1];break}if(6===r[0]&&u.label<n[1]){u.label=n[1],n=r;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(r);break}n[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}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,u={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","../core/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createBoard=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:t},body:e})]})})},t.prototype.getBoard=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:e,id:t}})]})})},t.prototype.getBoards=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:e}})]})})},t.prototype.updateBoard=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:t,id:r},customHeaders:{ETag:o},body:e})]})})},t.prototype.createBoardColumn=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:t,board:r},body:e})]})})},t.prototype.deleteBoardColumn=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:e,board:t,id:r},customHeaders:{ETag:o}})]})})},t.prototype.getBoardColumn=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:e,board:t,id:r}})]})})},t.prototype.getBoardColumns=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:e,board:t}})]})})},t.prototype.updateBoardColumn=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:t,board:r,id:o},customHeaders:{ETag:i},body:e})]})})},t.prototype.createBoardItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:t,board:r},body:e})]})})},t.prototype.getBoardItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:e,board:t,id:r}})]})})},t.prototype.getBoardItems=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:e,board:t}})]})})},t.prototype.updateBoardItem=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:t,board:r,id:o},customHeaders:{ETag:i},body:e})]})})},t.prototype.createBoardRow=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:t,board:r},body:e})]})})},t.prototype.deleteBoardRow=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:e,board:t,id:r},customHeaders:{ETag:o}})]})})},t.prototype.getBoardRow=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:e,board:t,id:r}})]})})},t.prototype.getBoardRows=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:e,board:t}})]})})},t.prototype.updateBoardRow=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:t,board:r,id:o},customHeaders:{ETag:i},body:e})]})})},t.RESOURCE_AREA_ID="11635d5f-a4f9-43ea-a48b-d56be43fee0f",t}(r.RestClientBase);t.BoardsRestClient=o}); | ||
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{s(o.next(e))}catch(e){n(e)}}function u(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,u)}s((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(;u;)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 u.label++,{value:r[1],done:!1};case 5:u.label++,i=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){u.label=r[1];break}if(6===r[0]&&u.label<n[1]){u.label=n[1],n=r;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(r);break}n[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}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,u={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","../core/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createBoard=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:t},body:e})]})})},t.prototype.deleteBoard=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:e,id:t}})]})})},t.prototype.getBoard=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:e,id:t}})]})})},t.prototype.getBoards=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:e}})]})})},t.prototype.updateBoard=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/boards/boards/{id}",routeValues:{project:t,id:r},customHeaders:{ETag:o},body:e})]})})},t.prototype.createBoardColumn=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:t,board:r},body:e})]})})},t.prototype.deleteBoardColumn=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={forceDeleteItems:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:e,board:t,id:r},queryParams:i})]})})},t.prototype.getBoardColumn=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:e,board:t,id:r}})]})})},t.prototype.getBoardColumns=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:e,board:t}})]})})},t.prototype.updateBoardColumn=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/boards/boards/{board}/columns/{id}",routeValues:{project:t,board:r,id:o},customHeaders:{ETag:i},body:e})]})})},t.prototype.createBoardItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:t,board:r},body:e})]})})},t.prototype.deleteBoardItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:e,board:t,id:r}})]})})},t.prototype.getBoardItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:e,board:t,id:r}})]})})},t.prototype.getBoardItems=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:e,board:t}})]})})},t.prototype.updateBoardItem=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/boards/boards/{board}/items/{*id}",routeValues:{project:t,board:r,id:o},customHeaders:{ETag:i},body:e})]})})},t.prototype.createBoardRow=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:t,board:r},body:e})]})})},t.prototype.deleteBoardRow=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={forceDeleteItems:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:e,board:t,id:r},queryParams:i})]})})},t.prototype.getBoardRow=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:e,board:t,id:r}})]})})},t.prototype.getBoardRows=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:e,board:t}})]})})},t.prototype.updateBoardRow=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/boards/boards/{board}/rows/{id}",routeValues:{project:t,board:r,id:o},customHeaders:{ETag:i},body:e})]})})},t.RESOURCE_AREA_ID="11635d5f-a4f9-43ea-a48b-d56be43fee0f",t}(r.RestClientBase);t.BoardsRestClient=o}); |
@@ -19,15 +19,15 @@ import { IVssRestClientOptions } from "../core/Context"; | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} buildId - The ID of the build. | ||
* @param {string} artifactName - The name of the artifact. | ||
* @param {string} project - Project ID or project name | ||
*/ | ||
getArtifact(buildId: number, artifactName: string, project?: string): Promise<Build.BuildArtifact>; | ||
getArtifact(project: string, buildId: number, artifactName: string): Promise<Build.BuildArtifact>; | ||
/** | ||
* Gets a specific artifact for a build. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} buildId - The ID of the build. | ||
* @param {string} artifactName - The name of the artifact. | ||
* @param {string} project - Project ID or project name | ||
*/ | ||
getArtifactContentZip(buildId: number, artifactName: string, project?: string): Promise<ArrayBuffer>; | ||
getArtifactContentZip(project: string, buildId: number, artifactName: string): Promise<ArrayBuffer>; | ||
/** | ||
@@ -439,24 +439,2 @@ * Gets all artifacts for a build. | ||
/** | ||
* Gets a list of related work items for a list of commits. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {string} providerName - The name of the source provider. | ||
* @param {string[]} commits - The comma separated list of vendor-specific identifiers of commits/check-ins. | ||
* @param {string} repositoryId - If specified, the vendor-specific identifier or the name of the repository that contains the commits or the pull request. | ||
* @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. | ||
* @param {number} top - Integer specifying the maximum number of work items to return. | ||
*/ | ||
getRelatedWorkItemsForCommits(project: string, providerName: string, commits: string[], repositoryId?: string, serviceEndpointId?: string, top?: number): Promise<Build.SourceRelatedWorkItem[]>; | ||
/** | ||
* Gets a list of related work items for a particular Pull Request. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {string} providerName - The name of the source provider. | ||
* @param {string} pullRequestId - The vendor-specific identifier of a Pull Request object. | ||
* @param {string} repositoryId - If specified, the vendor-specific identifier or the name of the repository that contains the commits or the pull request. | ||
* @param {string} serviceEndpointId - If specified, the ID of the service endpoint to query. Can only be omitted for providers that do not use service endpoints, e.g. TFVC or TFGit. | ||
* @param {number} top - Integer specifying the maximum number of work items to return. | ||
*/ | ||
getRelatedWorkItemsForPullRequest(project: string, providerName: string, pullRequestId: string, repositoryId?: string, serviceEndpointId?: string, top?: number): Promise<Build.SourceRelatedWorkItem[]>; | ||
/** | ||
* Gets a build report. | ||
@@ -463,0 +441,0 @@ * |
@@ -1,1 +0,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 i in t)t.hasOwnProperty(i)&&(e[i]=t[i])};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(o,n){function u(e){try{s(r.next(e))}catch(e){n(e)}}function a(e){try{s(r.throw(e))}catch(e){n(e)}}function s(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(u,a)}s((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function i(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}var r,o,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createArtifact=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:i,buildId:t},body:e})]})})},t.prototype.getArtifact=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={artifactName:t},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:i,buildId:e},queryParams:r})]})})},t.prototype.getArtifactContentZip=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={artifactName:t},[2,this.beginRequest({apiVersion:"5.0-preview.3",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:i,buildId:e},queryParams:r})]})})},t.prototype.getArtifacts=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:t,buildId:e}})]})})},t.prototype.getFile=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={artifactName:t,fileId:i,fileName:r},[2,this.beginRequest({apiVersion:"5.0-preview.3",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:o,buildId:e},queryParams:n})]})})},t.prototype.getAttachments=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/builds/{buildId}/attachments/{type}",routeValues:{project:e,buildId:t,type:i}})]})})},t.prototype.getAttachment=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(u){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/build/builds/{buildId}/{timelineId}/{recordId}/attachments/{type}/{name}",routeValues:{project:e,buildId:t,timelineId:i,recordId:r,type:o,name:n}})]})})},t.prototype.getBadge=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={branchName:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/public/build/definitions/{project}/{definitionId}/badge",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.listBranches=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={serviceEndpointId:i,repository:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/branches",routeValues:{project:e,providerName:t},queryParams:o})]})})},t.prototype.getBuildBadge=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={repoId:i,branchName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/repos/{repoType}/badge",routeValues:{project:e,repoType:t},queryParams:o})]})})},t.prototype.getBuildBadgeData=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={repoId:i,branchName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/repos/{repoType}/badge",routeValues:{project:e,repoType:t},queryParams:o})]})})},t.prototype.deleteBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"DELETE",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t,buildId:e}})]})})},t.prototype.getBuild=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={propertyFilters:i},[2,this.beginRequest({apiVersion:"5.0-preview.4",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t,buildId:e},queryParams:r})]})})},t.prototype.getBuilds=function(e,t,i,r,o,n,u,a,s,p,d,c,l,_,f,h,v,b,g,m,y){return __awaiter(this,void 0,void 0,function(){var w;return __generator(this,function(j){return w={definitions:t&&t.join(","),queues:i&&i.join(","),buildNumber:r,minTime:o,maxTime:n,requestedFor:u,reasonFilter:a,statusFilter:s,resultFilter:p,tagFilters:d&&d.join(","),properties:c&&c.join(","),$top:l,continuationToken:_,maxBuildsPerDefinition:f,deletedFilter:h,queryOrder:v,branchName:b,buildIds:g&&g.join(","),repositoryId:m,repositoryType:y},[2,this.beginRequest({apiVersion:"5.0-preview.4",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:e},queryParams:w})]})})},t.prototype.queueBuild=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={ignoreWarnings:i,checkInTicket:r,sourceBuildId:o},[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.updateBuild=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={retry:r},[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:i,buildId:t},queryParams:o,body:e})]})})},t.prototype.updateBuilds=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t},body:e})]})})},t.prototype.getBuildChanges=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={continuationToken:i,$top:r,includeSourceChange:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/changes",routeValues:{project:e,buildId:t},queryParams:n})]})})},t.prototype.getChangesBetweenBuilds=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fromBuildId:t,toBuildId:i,$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/changes",routeValues:{project:e},queryParams:o})]})})},t.prototype.getBuildController=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/build/Controllers/{controllerId}",routeValues:{controllerId:e}})]})})},t.prototype.getBuildControllers=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(i){return t={name:e},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/build/Controllers/{controllerId}",queryParams:t})]})})},t.prototype.createDefinition=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={definitionToCloneId:i,definitionToCloneRevision:r},[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"POST",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.deleteDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"DELETE",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:t,definitionId:e}})]})})},t.prototype.getDefinition=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={revision:i,minMetricsTime:r,propertyFilters:o&&o.join(","),includeLatestBuilds:n},[2,this.beginRequest({apiVersion:"5.0-preview.6",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:t,definitionId:e},queryParams:u})]})})},t.prototype.getDefinitions=function(e,t,i,r,o,n,u,a,s,p,d,c,l,_,f,h,v){return __awaiter(this,void 0,void 0,function(){var b;return __generator(this,function(g){return b={name:t,repositoryId:i,repositoryType:r,queryOrder:o,$top:n,continuationToken:u,minMetricsTime:a,definitionIds:s&&s.join(","),path:p,builtAfter:d,notBuiltAfter:c,includeAllProperties:l,includeLatestBuilds:_,taskIdFilter:f,processType:h,yamlFilename:v},[2,this.beginRequest({apiVersion:"5.0-preview.6",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:e},queryParams:b})]})})},t.prototype.restoreDefinition=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={deleted:t},[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"PATCH",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:i,definitionId:e},queryParams:r})]})})},t.prototype.updateDefinition=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={secretsSourceDefinitionId:r,secretsSourceDefinitionRevision:o},[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"PUT",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:i,definitionId:t},queryParams:n,body:e})]})})},t.prototype.getFileContents=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={serviceEndpointId:i,repository:r,commitOrBranch:o,path:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/fileContents",routeValues:{project:e,providerName:t},queryParams:u})]})})},t.prototype.createFolder=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:t,path:i},body:e})]})})},t.prototype.deleteFolder=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:e,path:t}})]})})},t.prototype.getFolders=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={queryOrder:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:e,path:t},queryParams:r})]})})},t.prototype.updateFolder=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:t,path:i},body:e})]})})},t.prototype.getLatestBuild=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={branchName:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/latest/{*definition}",routeValues:{project:e,definition:t},queryParams:r})]})})},t.prototype.getBuildLog=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={startLine:r,endLine:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t,logId:i},queryParams:n})]})})},t.prototype.getBuildLogLines=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={startLine:r,endLine:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t,logId:i},queryParams:n})]})})},t.prototype.getBuildLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t}})]})})},t.prototype.getBuildLogsZip=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t}})]})})},t.prototype.getBuildLogZip=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={startLine:r,endLine:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t,logId:i},queryParams:n})]})})},t.prototype.getProjectMetrics=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={minMetricsTime:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/Metrics/{metricAggregationType}",routeValues:{project:e,metricAggregationType:t},queryParams:r})]})})},t.prototype.getDefinitionMetrics=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={minMetricsTime:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/Metrics",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.getBuildOptionDefinitions=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/options",routeValues:{project:e}})]})})},t.prototype.getPathContents=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={serviceEndpointId:i,repository:r,commitOrBranch:o,path:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/pathContents",routeValues:{project:e,providerName:t},queryParams:u})]})})},t.prototype.getBuildProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={filter:i&&i.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/builds/{buildId}/properties",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.updateBuildProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/builds/{buildId}/properties",routeValues:{project:t,buildId:i},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.getDefinitionProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={filter:i&&i.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/properties",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.updateDefinitionProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/properties",routeValues:{project:t,definitionId:i},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.getPullRequest=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={repositoryId:r,serviceEndpointId:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/pullRequests/{pullRequestId}",routeValues:{project:e,providerName:t,pullRequestId:i},queryParams:n})]})})},t.prototype.getRelatedWorkItemsForCommits=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={commits:i&&i.join(","),repositoryId:r,serviceEndpointId:o,$top:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/relatedWorkItems",routeValues:{project:e,providerName:t},queryParams:u})]})})},t.prototype.getRelatedWorkItemsForPullRequest=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pullRequestId:i,repositoryId:r,serviceEndpointId:o,$top:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/relatedWorkItems",routeValues:{project:e,providerName:t},queryParams:u})]})})},t.prototype.getBuildReport=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={type:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/report",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.getBuildReportHtmlContent=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={type:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"text/html",routeTemplate:"{project}/_apis/build/builds/{buildId}/report",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.listRepositories=function(e,t,i,r,o,n,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={serviceEndpointId:i,repository:r,resultSet:o,pageResults:n,continuationToken:u},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/repositories",routeValues:{project:e,providerName:t},queryParams:a})]})})},t.prototype.authorizeDefinitionResources=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/resources",routeValues:{project:t,definitionId:i},body:e})]})})},t.prototype.getDefinitionResources=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/resources",routeValues:{project:e,definitionId:t}})]})})},t.prototype.getResourceUsage=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/build/ResourceUsage"})]})})},t.prototype.getDefinitionRevisions=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/revisions",routeValues:{project:e,definitionId:t}})]})})},t.prototype.getBuildSettings=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/settings",routeValues:{project:e}})]})})},t.prototype.updateBuildSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/settings",routeValues:{project:t},body:e})]})})},t.prototype.listSourceProviders=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders",routeValues:{project:e}})]})})},t.prototype.getStatusBadge=function(e,t,i,r,o,n,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={branchName:i,stageName:r,jobName:o,configuration:n,label:u},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/status/{*definition}",routeValues:{project:e,definition:t},queryParams:a})]})})},t.prototype.addBuildTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:e,buildId:t,tag:i}})]})})},t.prototype.addBuildTags=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:t,buildId:i},body:e})]})})},t.prototype.deleteBuildTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:e,buildId:t,tag:i}})]})})},t.prototype.getBuildTags=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:e,buildId:t}})]})})},t.prototype.addDefinitionTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:e,definitionId:t,tag:i}})]})})},t.prototype.addDefinitionTags=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:t,definitionId:i},body:e})]})})},t.prototype.deleteDefinitionTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:e,definitionId:t,tag:i}})]})})},t.prototype.getDefinitionTags=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={revision:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.getTags=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/tags",routeValues:{project:e}})]})})},t.prototype.deleteTemplate=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:e,templateId:t}})]})})},t.prototype.getTemplate=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:e,templateId:t}})]})})},t.prototype.getTemplates=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:e}})]})})},t.prototype.saveTemplate=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"PUT",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:t,templateId:i},body:e})]})})},t.prototype.getTicketedArtifactContentZip=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={projectId:t,artifactName:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/public/build/builds/{buildId}/ticketedArtifacts",routeValues:{buildId:e},customHeaders:{"X-VSS-DownloadTicket":r},queryParams:o})]})})},t.prototype.getTicketedLogsContentZip=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={projectId:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/public/build/builds/{buildId}/ticketedLogs",routeValues:{buildId:e},customHeaders:{"X-VSS-DownloadTicket":i},queryParams:r})]})})},t.prototype.getBuildTimeline=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={changeId:r,planId:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/Timeline/{timelineId}",routeValues:{project:e,buildId:t,timelineId:i},queryParams:n})]})})},t.prototype.restoreWebhooks=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={serviceEndpointId:r,repository:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/webhooks",routeValues:{project:t,providerName:i},queryParams:n,body:e})]})})},t.prototype.listWebhooks=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={serviceEndpointId:i,repository:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/webhooks",routeValues:{project:e,providerName:t},queryParams:o})]})})},t.prototype.getBuildWorkItemsRefs=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/workitems",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.getBuildWorkItemsRefsFromCommits=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}/workitems",routeValues:{project:t,buildId:i},queryParams:o,body:e})]})})},t.prototype.getWorkItemsBetweenBuilds=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fromBuildId:t,toBuildId:i,$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/workitems",routeValues:{project:e},queryParams:o})]})})},t.RESOURCE_AREA_ID="965220d5-5bb9-42cf-8d67-9b146df2a5a4",t}(i.RestClientBase);t.BuildRestClient=r}); | ||
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(o,n){function u(e){try{s(r.next(e))}catch(e){n(e)}}function a(e){try{s(r.throw(e))}catch(e){n(e)}}function s(e){e.done?o(e.value):new i(function(t){t(e.value)}).then(u,a)}s((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function i(i){return function(u){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,o&&(n=2&i[0]?o.return:i[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,i[1])).done)return n;switch(o=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,o=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],o=0}finally{r=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}var r,o,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createArtifact=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:i,buildId:t},body:e})]})})},t.prototype.getArtifact=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={artifactName:i},[2,this.beginRequest({apiVersion:"5.0-preview.4",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.getArtifactContentZip=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={artifactName:i},[2,this.beginRequest({apiVersion:"5.0-preview.4",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.getArtifacts=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.4",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:t,buildId:e}})]})})},t.prototype.getFile=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={artifactName:t,fileId:i,fileName:r},[2,this.beginRequest({apiVersion:"5.0-preview.4",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/build/builds/{buildId}/artifacts/{artifactName}",routeValues:{project:o,buildId:e},queryParams:n})]})})},t.prototype.getAttachments=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/builds/{buildId}/attachments/{type}",routeValues:{project:e,buildId:t,type:i}})]})})},t.prototype.getAttachment=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(u){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/build/builds/{buildId}/{timelineId}/{recordId}/attachments/{type}/{name}",routeValues:{project:e,buildId:t,timelineId:i,recordId:r,type:o,name:n}})]})})},t.prototype.getBadge=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={branchName:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/public/build/definitions/{project}/{definitionId}/badge",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.listBranches=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={serviceEndpointId:i,repository:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/branches",routeValues:{project:e,providerName:t},queryParams:o})]})})},t.prototype.getBuildBadge=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={repoId:i,branchName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/repos/{repoType}/badge",routeValues:{project:e,repoType:t},queryParams:o})]})})},t.prototype.getBuildBadgeData=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={repoId:i,branchName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/repos/{repoType}/badge",routeValues:{project:e,repoType:t},queryParams:o})]})})},t.prototype.deleteBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"DELETE",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t,buildId:e}})]})})},t.prototype.getBuild=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={propertyFilters:i},[2,this.beginRequest({apiVersion:"5.0-preview.4",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t,buildId:e},queryParams:r})]})})},t.prototype.getBuilds=function(e,t,i,r,o,n,u,a,s,p,d,c,l,_,f,h,v,b,g,m,y){return __awaiter(this,void 0,void 0,function(){var w;return __generator(this,function(j){return w={definitions:t&&t.join(","),queues:i&&i.join(","),buildNumber:r,minTime:o,maxTime:n,requestedFor:u,reasonFilter:a,statusFilter:s,resultFilter:p,tagFilters:d&&d.join(","),properties:c&&c.join(","),$top:l,continuationToken:_,maxBuildsPerDefinition:f,deletedFilter:h,queryOrder:v,branchName:b,buildIds:g&&g.join(","),repositoryId:m,repositoryType:y},[2,this.beginRequest({apiVersion:"5.0-preview.4",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:e},queryParams:w})]})})},t.prototype.queueBuild=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={ignoreWarnings:i,checkInTicket:r,sourceBuildId:o},[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.updateBuild=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={retry:r},[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:i,buildId:t},queryParams:o,body:e})]})})},t.prototype.updateBuilds=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/build/builds/{buildId}",routeValues:{project:t},body:e})]})})},t.prototype.getBuildChanges=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={continuationToken:i,$top:r,includeSourceChange:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/changes",routeValues:{project:e,buildId:t},queryParams:n})]})})},t.prototype.getChangesBetweenBuilds=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fromBuildId:t,toBuildId:i,$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/changes",routeValues:{project:e},queryParams:o})]})})},t.prototype.getBuildController=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/build/Controllers/{controllerId}",routeValues:{controllerId:e}})]})})},t.prototype.getBuildControllers=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(i){return t={name:e},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/build/Controllers/{controllerId}",queryParams:t})]})})},t.prototype.createDefinition=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={definitionToCloneId:i,definitionToCloneRevision:r},[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"POST",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.deleteDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"DELETE",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:t,definitionId:e}})]})})},t.prototype.getDefinition=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={revision:i,minMetricsTime:r,propertyFilters:o&&o.join(","),includeLatestBuilds:n},[2,this.beginRequest({apiVersion:"5.0-preview.6",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:t,definitionId:e},queryParams:u})]})})},t.prototype.getDefinitions=function(e,t,i,r,o,n,u,a,s,p,d,c,l,_,f,h,v){return __awaiter(this,void 0,void 0,function(){var b;return __generator(this,function(g){return b={name:t,repositoryId:i,repositoryType:r,queryOrder:o,$top:n,continuationToken:u,minMetricsTime:a,definitionIds:s&&s.join(","),path:p,builtAfter:d,notBuiltAfter:c,includeAllProperties:l,includeLatestBuilds:_,taskIdFilter:f,processType:h,yamlFilename:v},[2,this.beginRequest({apiVersion:"5.0-preview.6",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:e},queryParams:b})]})})},t.prototype.restoreDefinition=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={deleted:t},[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"PATCH",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:i,definitionId:e},queryParams:r})]})})},t.prototype.updateDefinition=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={secretsSourceDefinitionId:r,secretsSourceDefinitionRevision:o},[2,this.beginRequest({apiVersion:"5.0-preview.6",method:"PUT",routeTemplate:"{project}/_apis/build/definitions/{definitionId}",routeValues:{project:i,definitionId:t},queryParams:n,body:e})]})})},t.prototype.getFileContents=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={serviceEndpointId:i,repository:r,commitOrBranch:o,path:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/fileContents",routeValues:{project:e,providerName:t},queryParams:u})]})})},t.prototype.createFolder=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:t,path:i},body:e})]})})},t.prototype.deleteFolder=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:e,path:t}})]})})},t.prototype.getFolders=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={queryOrder:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:e,path:t},queryParams:r})]})})},t.prototype.updateFolder=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/build/folders/{*path}",routeValues:{project:t,path:i},body:e})]})})},t.prototype.getLatestBuild=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={branchName:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/latest/{*definition}",routeValues:{project:e,definition:t},queryParams:r})]})})},t.prototype.getBuildLog=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={startLine:r,endLine:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t,logId:i},queryParams:n})]})})},t.prototype.getBuildLogLines=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={startLine:r,endLine:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t,logId:i},queryParams:n})]})})},t.prototype.getBuildLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t}})]})})},t.prototype.getBuildLogsZip=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t}})]})})},t.prototype.getBuildLogZip=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={startLine:r,endLine:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/build/builds/{buildId}/logs/{logId}",routeValues:{project:e,buildId:t,logId:i},queryParams:n})]})})},t.prototype.getProjectMetrics=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={minMetricsTime:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/Metrics/{metricAggregationType}",routeValues:{project:e,metricAggregationType:t},queryParams:r})]})})},t.prototype.getDefinitionMetrics=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={minMetricsTime:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/Metrics",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.getBuildOptionDefinitions=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/options",routeValues:{project:e}})]})})},t.prototype.getPathContents=function(e,t,i,r,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={serviceEndpointId:i,repository:r,commitOrBranch:o,path:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/pathContents",routeValues:{project:e,providerName:t},queryParams:u})]})})},t.prototype.getBuildProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={filter:i&&i.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/builds/{buildId}/properties",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.updateBuildProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/builds/{buildId}/properties",routeValues:{project:t,buildId:i},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.getDefinitionProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={filter:i&&i.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/properties",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.updateDefinitionProperties=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/properties",routeValues:{project:t,definitionId:i},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.getPullRequest=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={repositoryId:r,serviceEndpointId:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/pullRequests/{pullRequestId}",routeValues:{project:e,providerName:t,pullRequestId:i},queryParams:n})]})})},t.prototype.getBuildReport=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={type:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/report",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.getBuildReportHtmlContent=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={type:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",httpResponseType:"text/html",routeTemplate:"{project}/_apis/build/builds/{buildId}/report",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.listRepositories=function(e,t,i,r,o,n,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={serviceEndpointId:i,repository:r,resultSet:o,pageResults:n,continuationToken:u},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/repositories",routeValues:{project:e,providerName:t},queryParams:a})]})})},t.prototype.authorizeDefinitionResources=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/resources",routeValues:{project:t,definitionId:i},body:e})]})})},t.prototype.getDefinitionResources=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/resources",routeValues:{project:e,definitionId:t}})]})})},t.prototype.getResourceUsage=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/build/ResourceUsage"})]})})},t.prototype.getDefinitionRevisions=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/definitions/{definitionId}/revisions",routeValues:{project:e,definitionId:t}})]})})},t.prototype.getBuildSettings=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/settings",routeValues:{project:e}})]})})},t.prototype.updateBuildSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/build/settings",routeValues:{project:t},body:e})]})})},t.prototype.listSourceProviders=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders",routeValues:{project:e}})]})})},t.prototype.getStatusBadge=function(e,t,i,r,o,n,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={branchName:i,stageName:r,jobName:o,configuration:n,label:u},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/build/status/{*definition}",routeValues:{project:e,definition:t},queryParams:a})]})})},t.prototype.addBuildTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:e,buildId:t,tag:i}})]})})},t.prototype.addBuildTags=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:t,buildId:i},body:e})]})})},t.prototype.deleteBuildTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:e,buildId:t,tag:i}})]})})},t.prototype.getBuildTags=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/tags/{*tag}",routeValues:{project:e,buildId:t}})]})})},t.prototype.addDefinitionTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:e,definitionId:t,tag:i}})]})})},t.prototype.addDefinitionTags=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:t,definitionId:i},body:e})]})})},t.prototype.deleteDefinitionTag=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:e,definitionId:t,tag:i}})]})})},t.prototype.getDefinitionTags=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={revision:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/definitions/{DefinitionId}/tags/{*tag}",routeValues:{project:e,definitionId:t},queryParams:r})]})})},t.prototype.getTags=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/tags",routeValues:{project:e}})]})})},t.prototype.deleteTemplate=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:e,templateId:t}})]})})},t.prototype.getTemplate=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:e,templateId:t}})]})})},t.prototype.getTemplates=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:e}})]})})},t.prototype.saveTemplate=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"PUT",routeTemplate:"{project}/_apis/build/definitions/templates/{templateId}",routeValues:{project:t,templateId:i},body:e})]})})},t.prototype.getTicketedArtifactContentZip=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={projectId:t,artifactName:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/public/build/builds/{buildId}/ticketedArtifacts",routeValues:{buildId:e},customHeaders:{"X-VSS-DownloadTicket":r},queryParams:o})]})})},t.prototype.getTicketedLogsContentZip=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={projectId:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/public/build/builds/{buildId}/ticketedLogs",routeValues:{buildId:e},customHeaders:{"X-VSS-DownloadTicket":i},queryParams:r})]})})},t.prototype.getBuildTimeline=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={changeId:r,planId:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/Timeline/{timelineId}",routeValues:{project:e,buildId:t,timelineId:i},queryParams:n})]})})},t.prototype.restoreWebhooks=function(e,t,i,r,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={serviceEndpointId:r,repository:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/webhooks",routeValues:{project:t,providerName:i},queryParams:n,body:e})]})})},t.prototype.listWebhooks=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={serviceEndpointId:i,repository:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/sourceProviders/{providerName}/webhooks",routeValues:{project:e,providerName:t},queryParams:o})]})})},t.prototype.getBuildWorkItemsRefs=function(e,t,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/builds/{buildId}/workitems",routeValues:{project:e,buildId:t},queryParams:r})]})})},t.prototype.getBuildWorkItemsRefsFromCommits=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/build/builds/{buildId}/workitems",routeValues:{project:t,buildId:i},queryParams:o,body:e})]})})},t.prototype.getWorkItemsBetweenBuilds=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fromBuildId:t,toBuildId:i,$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/build/workitems",routeValues:{project:e},queryParams:o})]})})},t.RESOURCE_AREA_ID="965220d5-5bb9-42cf-8d67-9b146df2a5a4",t}(i.RestClientBase);t.BuildRestClient=r}); |
@@ -104,3 +104,3 @@ import { IVssRestClientOptions } from "../core/Context"; | ||
/** | ||
* Queues a project to be deleted. API only supports soft delete for the hosted clients. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. | ||
* Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. | ||
* | ||
@@ -107,0 +107,0 @@ * @param {string} projectId - The project id of the project to delete. |
@@ -378,3 +378,3 @@ /* | ||
/** | ||
* Queues a project to be deleted. API only supports soft delete for the hosted clients. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. | ||
* Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. | ||
* | ||
@@ -381,0 +381,0 @@ * @param {string} projectId - The project id of the project to delete. |
@@ -1,1 +0,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,s){function u(e){try{p(o.next(e))}catch(e){s(e)}}function n(e){try{p(o.throw(e))}catch(e){s(e)}}function p(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,n)}p((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,i&&(s=2&r[0]?i.return:r[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,i=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){n=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(6===r[0]&&n.label<s[1]){n.label=s[1],s=r;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(r);break}s[2]&&n.ops.pop(),n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e],i=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,s,u,n={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createAnnotatedTag=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getAnnotatedTag=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",routeValues:{project:e,repositoryId:t,objectId:r}})]})})},t.prototype.getBlob=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getBlobContent=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getBlobsZip=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={filename:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:t},queryParams:i,body:e})]})})},t.prototype.getBlobZip=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getBranch=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={name:t,baseVersionDescriptor:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/stats/branches",routeValues:{project:r,repositoryId:e},queryParams:i})]})})},t.prototype.getBranches=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={baseVersionDescriptor:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/stats/branches",routeValues:{project:t,repositoryId:e},queryParams:o})]})})},t.prototype.getBranchStatsBatch=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/stats/branches",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getChanges=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={top:o,skip:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Changes",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:s})]})})},t.prototype.getCherryPickRelationships=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/cherryPickRelationships/{commitId}",routeValues:{project:r,repositoryNameOrId:e,commitId:t},queryParams:i})]})})},t.prototype.createCherryPick=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getCherryPick=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",routeValues:{project:e,cherryPickId:t,repositoryId:r}})]})})},t.prototype.getCherryPickForRefName=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={refName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",routeValues:{project:e,repositoryId:t},queryParams:o})]})})},t.prototype.getCommit=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={changeCount:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:i})]})})},t.prototype.getCommits=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={searchCriteria:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,repositoryId:e},queryParams:o})]})})},t.prototype.getPushCommits=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={pushId:t,top:o,skip:i,includeLinks:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,repositoryId:e},queryParams:u})]})})},t.prototype.getCommitsBatch=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={$skip:o,$top:i,includeStatuses:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/CommitsBatch",routeValues:{project:r,repositoryId:t},queryParams:u,body:e})]})})},t.prototype.getDeletedRepositories=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/DeletedRepositories",routeValues:{project:e}})]})})},t.prototype.getForks=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forks/{collectionId}",routeValues:{project:r,repositoryNameOrId:e,collectionId:t},queryParams:i})]})})},t.prototype.createForkSyncRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",routeValues:{project:r,repositoryNameOrId:t},queryParams:i,body:e})]})})},t.prototype.getForkSyncRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",routeValues:{project:r,repositoryNameOrId:e,forkSyncOperationId:t},queryParams:i})]})})},t.prototype.getForkSyncRequests=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeAbandoned:r,includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",routeValues:{project:t,repositoryNameOrId:e},queryParams:i})]})})},t.prototype.createImportRequest=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getImportRequest=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:e,repositoryId:t,importRequestId:r}})]})})},t.prototype.queryImportRequests=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeAbandoned:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:e,repositoryId:t},queryParams:o})]})})},t.prototype.updateImportRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:t,repositoryId:r,importRequestId:o},body:e})]})})},t.prototype.getItem=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItemContent=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItems=function(e,t,r,o,i,s,u,n,p){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(d){return a={scopePath:r,recursionLevel:o,includeContentMetadata:i,latestProcessedChange:s,download:u,includeLinks:n,versionDescriptor:p},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:t,repositoryId:e},queryParams:a})]})})},t.prototype.getItemText=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItemZip=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItemsBatch=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/ItemsBatch",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getMergeBases=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={otherCommitId:r,otherCollectionId:i,otherRepositoryId:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/commits/{commitId}/mergeBases",routeValues:{project:o,repositoryNameOrId:e,commitId:t},queryParams:u})]})})},t.prototype.createAttachment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:i,fileName:t,repositoryId:r,pullRequestId:o},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})]})})},t.prototype.deleteAttachment=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:o,fileName:e,repositoryId:t,pullRequestId:r}})]})})},t.prototype.getAttachmentContent=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:o,fileName:e,repositoryId:t,pullRequestId:r}})]})})},t.prototype.getAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.getAttachmentZip=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:o,fileName:e,repositoryId:t,pullRequestId:r}})]})})},t.prototype.createLike=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.deleteLike=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getLikes=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getPullRequestIterationCommits=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/commits",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r}})]})})},t.prototype.getPullRequestCommits=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/commits",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.getPullRequestConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,conflictId:r}})]})})},t.prototype.getPullRequestConflicts=function(e,t,r,o,i,s,u,n){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={$skip:o,$top:i,includeObsolete:s,excludeResolved:u,onlyResolved:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:p})]})})},t.prototype.updatePullRequestConflict=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,conflictId:o},body:e})]})})},t.prototype.updatePullRequestConflicts=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.getPullRequestIterationChanges=function(e,t,r,o,i,s,u){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(p){return n={$top:i,$skip:s,$compareTo:u},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/changes",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r},queryParams:n})]})})},t.prototype.getPullRequestIteration=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r}})]})})},t.prototype.getPullRequestIterations=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeCommits:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:i})]})})},t.prototype.createPullRequestIterationStatus=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,iterationId:o},body:e})]})})},t.prototype.deletePullRequestIterationStatus=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,iterationId:r,statusId:o}})]})})},t.prototype.getPullRequestIterationStatus=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,iterationId:r,statusId:o}})]})})},t.prototype.getPullRequestIterationStatuses=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r}})]})})},t.prototype.updatePullRequestIterationStatuses=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,iterationId:o},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.createPullRequestLabel=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:o,repositoryId:t,pullRequestId:r},queryParams:s,body:e})]})})},t.prototype.deletePullRequestLabels=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:o,repositoryId:e,pullRequestId:t,labelIdOrName:r},queryParams:s})]})})},t.prototype.getPullRequestLabel=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:o,repositoryId:e,pullRequestId:t,labelIdOrName:r},queryParams:s})]})})},t.prototype.getPullRequestLabels=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={projectId:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:i})]})})},t.prototype.getPullRequestProperties=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/properties",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/properties",routeValues:{project:o,repositoryId:t,pullRequestId:r},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.getPullRequestQuery=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequestQuery",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.createPullRequestReviewer=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,reviewerId:o},body:e})]})})},t.prototype.createPullRequestReviewers=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.deletePullRequestReviewer=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,reviewerId:r}})]})})},t.prototype.getPullRequestReviewer=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,reviewerId:r}})]})})},t.prototype.getPullRequestReviewers=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestReviewers=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.getPullRequestById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/PullRequests/{pullRequestId}",routeValues:{project:t,pullRequestId:e}})]})})},t.prototype.getPullRequestsByProject=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={searchCriteria:t,maxCommentLength:r,$skip:o,$top:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/PullRequests",routeValues:{project:e},queryParams:s})]})})},t.prototype.createPullRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={supportsIterations:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:t},queryParams:i,body:e})]})})},t.prototype.getPullRequest=function(e,t,r,o,i,s,u,n){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={maxCommentLength:o,$skip:i,$top:s,includeCommits:u,includeWorkItemRefs:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:p})]})})},t.prototype.getPullRequests=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={searchCriteria:t,maxCommentLength:o,$skip:i,$top:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:e},queryParams:u})]})})},t.prototype.updatePullRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.sharePullRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/share",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.createPullRequestStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.deletePullRequestStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,statusId:r}})]})})},t.prototype.getPullRequestStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,statusId:r}})]})})},t.prototype.getPullRequestStatuses=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestStatuses=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.createComment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,threadId:o},body:e})]})})},t.prototype.deleteComment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getComment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getComments=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,threadId:r}})]})})},t.prototype.updateComment=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(u){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:s,repositoryId:t,pullRequestId:r,threadId:o,commentId:i},body:e})]})})},t.prototype.createThread=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.getPullRequestThread=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={$iteration:i,$baseIteration:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,threadId:r},queryParams:u})]})})},t.prototype.getThreads=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={$iteration:o,$baseIteration:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:s})]})})},t.prototype.updateThread=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,threadId:o},body:e})]})})},t.prototype.getPullRequestWorkItemRefs=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/workitems",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.createPush=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getPush=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={includeCommits:o,includeRefUpdates:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",routeValues:{project:r,repositoryId:e,pushId:t},queryParams:s})]})})},t.prototype.getPushes=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={$skip:r,$top:o,searchCriteria:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",routeValues:{project:t,repositoryId:e},queryParams:s})]})})},t.prototype.deleteRepositoryFromRecycleBin=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/recycleBin/repositories/{repositoryId}",routeValues:{project:e,repositoryId:t}})]})})},t.prototype.getRecycleBinRepositories=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/recycleBin/repositories/{repositoryId}",routeValues:{project:e}})]})})},t.prototype.restoreRepositoryFromRecycleBin=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/recycleBin/repositories/{repositoryId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getRefs=function(e,t,r,o,i,s,u,n,p){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(d){return a={filter:r,includeLinks:o,includeStatuses:i,includeMyBranches:s,latestStatusesOnly:u,peelTags:n,filterContains:p},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:t,repositoryId:e},queryParams:a})]})})},t.prototype.updateRef=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={filter:r,projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:o,repositoryId:t},queryParams:s,body:e})]})})},t.prototype.updateRefs=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={projectId:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:r,repositoryId:t},queryParams:i,body:e})]})})},t.prototype.createFavorite=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteRefFavorite=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e,favoriteId:t}})]})})},t.prototype.getRefFavorite=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e,favoriteId:t}})]})})},t.prototype.getRefFavorites=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={repositoryId:t,identityId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.createRepository=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={sourceRef:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.deleteRepository=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:t,repositoryId:e}})]})})},t.prototype.getRepositories=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:t,includeAllUrls:r,includeHidden:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getRepository=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:t,repositoryId:e}})]})})},t.prototype.getRepositoryWithParent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeParent:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:r,repositoryId:e},queryParams:o})]})})},t.prototype.updateRepository=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.createRevert=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getRevert=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",routeValues:{project:e,revertId:t,repositoryId:r}})]})})},t.prototype.getRevertForRefName=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={refName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",routeValues:{project:e,repositoryId:t},queryParams:o})]})})},t.prototype.createCommitStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:o,commitId:t,repositoryId:r},body:e})]})})},t.prototype.getStatuses=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={top:o,skip:i,latestOnly:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:u})]})})},t.prototype.getSuggestions=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/suggestions",routeValues:{project:t,repositoryId:e}})]})})},t.prototype.getTree=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getTreeZip=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.RESOURCE_AREA_ID="4e080c62-fa21-4fbc-8fef-2a10a2b38049",t}(r.RestClientBase);t.GitRestClient=o}); | ||
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,s){function u(e){try{p(o.next(e))}catch(e){s(e)}}function n(e){try{p(o.throw(e))}catch(e){s(e)}}function p(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,n)}p((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,i&&(s=2&r[0]?i.return:r[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=r;break;case 4:return n.label++,{value:r[1],done:!1};case 5:n.label++,i=r[1],r=[0];continue;case 7:r=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){n=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){n.label=r[1];break}if(6===r[0]&&n.label<s[1]){n.label=s[1],s=r;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(r);break}s[2]&&n.ops.pop(),n.trys.pop();continue}r=t.call(e,n)}catch(e){r=[6,e],i=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,s,u,n={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createAnnotatedTag=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getAnnotatedTag=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",routeValues:{project:e,repositoryId:t,objectId:r}})]})})},t.prototype.getBlob=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getBlobContent=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getBlobsZip=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={filename:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:t},queryParams:i,body:e})]})})},t.prototype.getBlobZip=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getBranch=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={name:t,baseVersionDescriptor:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/stats/branches",routeValues:{project:r,repositoryId:e},queryParams:i})]})})},t.prototype.getBranches=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={baseVersionDescriptor:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/stats/branches",routeValues:{project:t,repositoryId:e},queryParams:o})]})})},t.prototype.getBranchStatsBatch=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/stats/branches",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getChanges=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={top:o,skip:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Changes",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:s})]})})},t.prototype.getCherryPickRelationships=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/cherryPickRelationships/{commitId}",routeValues:{project:r,repositoryNameOrId:e,commitId:t},queryParams:i})]})})},t.prototype.createCherryPick=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getCherryPick=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",routeValues:{project:e,cherryPickId:t,repositoryId:r}})]})})},t.prototype.getCherryPickForRefName=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={refName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}",routeValues:{project:e,repositoryId:t},queryParams:o})]})})},t.prototype.getCommitDiffs=function(e,t,r,o,i,s,u){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(p){return n={diffCommonCommit:r,$top:o,$skip:i,baseVersionDescriptor:s,targetVersionDescriptor:u},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/diffs/commits",routeValues:{project:t,repositoryId:e},queryParams:n})]})})},t.prototype.getCommit=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={changeCount:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:i})]})})},t.prototype.getCommits=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={searchCriteria:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,repositoryId:e},queryParams:o})]})})},t.prototype.getPushCommits=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={pushId:t,top:o,skip:i,includeLinks:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,repositoryId:e},queryParams:u})]})})},t.prototype.getCommitsBatch=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={$skip:o,$top:i,includeStatuses:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/CommitsBatch",routeValues:{project:r,repositoryId:t},queryParams:u,body:e})]})})},t.prototype.getDeletedRepositories=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/DeletedRepositories",routeValues:{project:e}})]})})},t.prototype.getFileDiffs=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/FileDiffs",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getForks=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forks/{collectionId}",routeValues:{project:r,repositoryNameOrId:e,collectionId:t},queryParams:i})]})})},t.prototype.createForkSyncRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",routeValues:{project:r,repositoryNameOrId:t},queryParams:i,body:e})]})})},t.prototype.getForkSyncRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",routeValues:{project:r,repositoryNameOrId:e,forkSyncOperationId:t},queryParams:i})]})})},t.prototype.getForkSyncRequests=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeAbandoned:r,includeLinks:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",routeValues:{project:t,repositoryNameOrId:e},queryParams:i})]})})},t.prototype.createImportRequest=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getImportRequest=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:e,repositoryId:t,importRequestId:r}})]})})},t.prototype.queryImportRequests=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeAbandoned:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:e,repositoryId:t},queryParams:o})]})})},t.prototype.updateImportRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/importRequests/{importRequestId}",routeValues:{project:t,repositoryId:r,importRequestId:o},body:e})]})})},t.prototype.getItem=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItemContent=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItems=function(e,t,r,o,i,s,u,n,p){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(d){return a={scopePath:r,recursionLevel:o,includeContentMetadata:i,latestProcessedChange:s,download:u,includeLinks:n,versionDescriptor:p},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:t,repositoryId:e},queryParams:a})]})})},t.prototype.getItemText=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItemZip=function(e,t,r,o,i,s,u,n,p,a,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:u,download:n,versionDescriptor:p,includeContent:a,resolveLfs:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:c})]})})},t.prototype.getItemsBatch=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/ItemsBatch",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getMergeBases=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={otherCommitId:r,otherCollectionId:i,otherRepositoryId:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/commits/{commitId}/mergeBases",routeValues:{project:o,repositoryNameOrId:e,commitId:t},queryParams:u})]})})},t.prototype.createAttachment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:i,fileName:t,repositoryId:r,pullRequestId:o},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})]})})},t.prototype.deleteAttachment=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:o,fileName:e,repositoryId:t,pullRequestId:r}})]})})},t.prototype.getAttachmentContent=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:o,fileName:e,repositoryId:t,pullRequestId:r}})]})})},t.prototype.getAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.getAttachmentZip=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/attachments/{fileName}",routeValues:{project:o,fileName:e,repositoryId:t,pullRequestId:r}})]})})},t.prototype.createLike=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.deleteLike=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getLikes=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}/likes",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getPullRequestIterationCommits=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/commits",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r}})]})})},t.prototype.getPullRequestCommits=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/commits",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.getPullRequestConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,conflictId:r}})]})})},t.prototype.getPullRequestConflicts=function(e,t,r,o,i,s,u,n){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={$skip:o,$top:i,includeObsolete:s,excludeResolved:u,onlyResolved:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:p})]})})},t.prototype.updatePullRequestConflict=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,conflictId:o},body:e})]})})},t.prototype.updatePullRequestConflicts=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.getPullRequestIterationChanges=function(e,t,r,o,i,s,u){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(p){return n={$top:i,$skip:s,$compareTo:u},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/changes",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r},queryParams:n})]})})},t.prototype.getPullRequestIteration=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r}})]})})},t.prototype.getPullRequestIterations=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeCommits:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:i})]})})},t.prototype.createPullRequestIterationStatus=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,iterationId:o},body:e})]})})},t.prototype.deletePullRequestIterationStatus=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,iterationId:r,statusId:o}})]})})},t.prototype.getPullRequestIterationStatus=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,iterationId:r,statusId:o}})]})})},t.prototype.getPullRequestIterationStatuses=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r}})]})})},t.prototype.updatePullRequestIterationStatuses=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/statuses/{statusId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,iterationId:o},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.createPullRequestLabel=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:o,repositoryId:t,pullRequestId:r},queryParams:s,body:e})]})})},t.prototype.deletePullRequestLabels=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:o,repositoryId:e,pullRequestId:t,labelIdOrName:r},queryParams:s})]})})},t.prototype.getPullRequestLabel=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:o,repositoryId:e,pullRequestId:t,labelIdOrName:r},queryParams:s})]})})},t.prototype.getPullRequestLabels=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={projectId:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/labels/{labelIdOrName}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:i})]})})},t.prototype.getPullRequestProperties=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/properties",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/properties",routeValues:{project:o,repositoryId:t,pullRequestId:r},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.getPullRequestQuery=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequestQuery",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.createPullRequestReviewer=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,reviewerId:o},body:e})]})})},t.prototype.createPullRequestReviewers=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.deletePullRequestReviewer=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,reviewerId:r}})]})})},t.prototype.getPullRequestReviewer=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,reviewerId:r}})]})})},t.prototype.getPullRequestReviewers=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestReviewers=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.getPullRequestById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/PullRequests/{pullRequestId}",routeValues:{project:t,pullRequestId:e}})]})})},t.prototype.getPullRequestsByProject=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={searchCriteria:t,maxCommentLength:r,$skip:o,$top:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/PullRequests",routeValues:{project:e},queryParams:s})]})})},t.prototype.createPullRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={supportsIterations:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:t},queryParams:i,body:e})]})})},t.prototype.getPullRequest=function(e,t,r,o,i,s,u,n){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={maxCommentLength:o,$skip:i,$top:s,includeCommits:u,includeWorkItemRefs:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:p})]})})},t.prototype.getPullRequests=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={searchCriteria:t,maxCommentLength:o,$skip:i,$top:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:e},queryParams:u})]})})},t.prototype.updatePullRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/PullRequests/{pullRequestId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.sharePullRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/share",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.createPullRequestStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.deletePullRequestStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,statusId:r}})]})})},t.prototype.getPullRequestStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,statusId:r}})]})})},t.prototype.getPullRequestStatuses=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestStatuses=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/statuses/{statusId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},customHeaders:{"Content-Type":"application/json-patch+json"},body:e})]})})},t.prototype.createComment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,threadId:o},body:e})]})})},t.prototype.deleteComment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getComment=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:i,repositoryId:e,pullRequestId:t,threadId:r,commentId:o}})]})})},t.prototype.getComments=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,threadId:r}})]})})},t.prototype.updateComment=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(u){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}/comments/{commentId}",routeValues:{project:s,repositoryId:t,pullRequestId:r,threadId:o,commentId:i},body:e})]})})},t.prototype.createThread=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:o,repositoryId:t,pullRequestId:r},body:e})]})})},t.prototype.getPullRequestThread=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={$iteration:i,$baseIteration:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,threadId:r},queryParams:u})]})})},t.prototype.getThreads=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={$iteration:o,$baseIteration:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:r,repositoryId:e,pullRequestId:t},queryParams:s})]})})},t.prototype.updateThread=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,threadId:o},body:e})]})})},t.prototype.getPullRequestWorkItemRefs=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/workitems",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.createPush=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getPush=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={includeCommits:o,includeRefUpdates:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",routeValues:{project:r,repositoryId:e,pushId:t},queryParams:s})]})})},t.prototype.getPushes=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={$skip:r,$top:o,searchCriteria:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pushes/{pushId}",routeValues:{project:t,repositoryId:e},queryParams:s})]})})},t.prototype.deleteRepositoryFromRecycleBin=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/recycleBin/repositories/{repositoryId}",routeValues:{project:e,repositoryId:t}})]})})},t.prototype.getRecycleBinRepositories=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/recycleBin/repositories/{repositoryId}",routeValues:{project:e}})]})})},t.prototype.restoreRepositoryFromRecycleBin=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/recycleBin/repositories/{repositoryId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getRefs=function(e,t,r,o,i,s,u,n,p){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(d){return a={filter:r,includeLinks:o,includeStatuses:i,includeMyBranches:s,latestStatusesOnly:u,peelTags:n,filterContains:p},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:t,repositoryId:e},queryParams:a})]})})},t.prototype.updateRef=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={filter:r,projectId:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:o,repositoryId:t},queryParams:s,body:e})]})})},t.prototype.updateRefs=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={projectId:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:r,repositoryId:t},queryParams:i,body:e})]})})},t.prototype.createFavorite=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteRefFavorite=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e,favoriteId:t}})]})})},t.prototype.getRefFavorite=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e,favoriteId:t}})]})})},t.prototype.getRefFavorites=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={repositoryId:t,identityId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.createRepository=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={sourceRef:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.deleteRepository=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:t,repositoryId:e}})]})})},t.prototype.getRepositories=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={includeLinks:t,includeAllUrls:r,includeHidden:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getRepository=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:t,repositoryId:e}})]})})},t.prototype.getRepositoryWithParent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeParent:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:r,repositoryId:e},queryParams:o})]})})},t.prototype.updateRepository=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.createRevert=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",routeValues:{project:t,repositoryId:r},body:e})]})})},t.prototype.getRevert=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",routeValues:{project:e,revertId:t,repositoryId:r}})]})})},t.prototype.getRevertForRefName=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={refName:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}",routeValues:{project:e,repositoryId:t},queryParams:o})]})})},t.prototype.createCommitStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:o,commitId:t,repositoryId:r},body:e})]})})},t.prototype.getStatuses=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={top:o,skip:i,latestOnly:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:u})]})})},t.prototype.getSuggestions=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/suggestions",routeValues:{project:t,repositoryId:e}})]})})},t.prototype.getTree=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.prototype.getTreeZip=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:u})]})})},t.RESOURCE_AREA_ID="4e080c62-fa21-4fbc-8fef-2a10a2b38049",t}(r.RestClientBase);t.GitRestClient=o}); |
@@ -7,2 +7,3 @@ import { IVssRestClientOptions } from "../core/Context"; | ||
constructor(options: IVssRestClientOptions); | ||
static readonly RESOURCE_AREA_ID: string; | ||
/** | ||
@@ -9,0 +10,0 @@ */ |
@@ -765,2 +765,3 @@ /* | ||
}; | ||
GraphRestClient.RESOURCE_AREA_ID = "bb1e7ec9-e901-4b68-999a-de7012b920f8"; | ||
return GraphRestClient; | ||
@@ -767,0 +768,0 @@ }(RestClientBase_1.RestClientBase)); |
@@ -1,1 +0,1 @@ | ||
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])};return function(r,t){function i(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,r,t,i){return new(t||(t=Promise))(function(o,n){function s(e){try{a(i.next(e))}catch(e){n(e)}}function u(e){try{a(i.throw(e))}catch(e){n(e)}}function a(e){e.done?o(e.value):new t(function(r){r(e.value)}).then(s,u)}a((i=i.apply(e,r||[])).next())})},__generator=this&&this.__generator||function(e,r){function t(t){return function(s){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(n=2&t[0]?o.return:t[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,t[1])).done)return n;switch(o=0,n&&(t=[2&t[0],n.value]),t[0]){case 0:case 1:n=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,o=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!n||t[1]>n[0]&&t[1]<n[3])){u.label=t[1];break}if(6===t[0]&&u.label<n[1]){u.label=n[1],n=t;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(t);break}n[2]&&u.ops.pop(),u.trys.pop();continue}t=r.call(e,u)}catch(e){t=[6,e],o=0}finally{i=n=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,s])}}var i,o,n,s,u={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../core/RestClientBase"],function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function r(r){return e.call(this,r)||this}return __extends(r,e),r.prototype.getCachePolicies=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/CachePolicies"})]})})},r.prototype.getDescriptor=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Descriptors/{storageKey}",routeValues:{storageKey:e}})]})})},r.prototype.getFederatedProviderData=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={providerName:r,versionHint:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/FederatedProviderData/{subjectDescriptor}",routeValues:{subjectDescriptor:e},queryParams:i})]})})},r.prototype.getGlobalExtendedProperties=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/GraphGlobalExtendedPropertyBatch",body:e})]})})},r.prototype.writeGlobalExtendedProperties=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/Graph/GraphGlobalExtendedPropertyBatch",body:e})]})})},r.prototype.createGroup=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={scopeDescriptor:r,groupDescriptors:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",queryParams:i,body:e})]})})},r.prototype.deleteGroup=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",routeValues:{groupDescriptor:e}})]})})},r.prototype.findGroupsBySearchFactor=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={searchFactor:e,searchValue:r,forceDomainQualification:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",queryParams:i})]})})},r.prototype.getGroup=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",routeValues:{groupDescriptor:e}})]})})},r.prototype.updateGroup=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",routeValues:{groupDescriptor:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:r})]})})},r.prototype.lookupMembers=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/MemberLookup",body:e})]})})},r.prototype.findMembersBySearchFactor=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={searchFactor:e,searchValue:r,forceDomainQualification:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Members",queryParams:i})]})})},r.prototype.getMemberByCuid=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Members/{memberCuid}",routeValues:{memberCuid:e}})]})})},r.prototype.getMemberByDescriptor=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Members/{memberDescriptor}",routeValues:{memberDescriptor:e}})]})})},r.prototype.addMembership=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.checkMembershipExistence=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"HEAD",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.getMembership=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.removeMembership=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.listMemberships=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={direction:r,depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}",routeValues:{subjectDescriptor:e},queryParams:i})]})})},r.prototype.getMembershipState=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/MembershipStates/{subjectDescriptor}",routeValues:{subjectDescriptor:e}})]})})},r.prototype.lookupMembershipTraversals=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={direction:r,depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/MembershipTraversals/{subjectDescriptor}",queryParams:i,body:e})]})})},r.prototype.traverseMemberships=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={direction:r,depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/MembershipTraversals/{subjectDescriptor}",routeValues:{subjectDescriptor:e},queryParams:i})]})})},r.prototype.getProviderInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}/ProviderInfo",routeValues:{userDescriptor:e}})]})})},r.prototype.createScope=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:r},body:e})]})})},r.prototype.deleteScope=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:e}})]})})},r.prototype.getScope=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:e}})]})})},r.prototype.updateScope=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:r})]})})},r.prototype.getIdentityShardingState=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/ShardingState"})]})})},r.prototype.getStorageKey=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/StorageKeys/{subjectDescriptor}",routeValues:{subjectDescriptor:e}})]})})},r.prototype.lookupSubjects=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/SubjectLookup",body:e})]})})},r.prototype.getSubject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Subjects/{subjectDescriptor}",routeValues:{subjectDescriptor:e}})]})})},r.prototype.createUser=function(e,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(i){return t={groupDescriptors:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/Users/{userDescriptor}",queryParams:t,body:e})]})})},r.prototype.deleteUser=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Users/{userDescriptor}",routeValues:{userDescriptor:e}})]})})},r.prototype.findUsersBySearchFactor=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={searchFactor:e,searchValue:r,forceDomainQualification:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}",queryParams:i})]})})},r.prototype.getCuidBasedUserByLegacyDescriptor=function(e){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(t){return r={cuidBasedUserLegacyDescriptor:e},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}",queryParams:r})]})})},r.prototype.getUser=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}",routeValues:{userDescriptor:e}})]})})},r}(t.RestClientBase);r.GraphRestClient=i}); | ||
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])};return function(r,t){function i(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,r,t,i){return new(t||(t=Promise))(function(o,n){function s(e){try{a(i.next(e))}catch(e){n(e)}}function u(e){try{a(i.throw(e))}catch(e){n(e)}}function a(e){e.done?o(e.value):new t(function(r){r(e.value)}).then(s,u)}a((i=i.apply(e,r||[])).next())})},__generator=this&&this.__generator||function(e,r){function t(t){return function(s){return function(t){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(n=2&t[0]?o.return:t[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,t[1])).done)return n;switch(o=0,n&&(t=[2&t[0],n.value]),t[0]){case 0:case 1:n=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,o=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!n||t[1]>n[0]&&t[1]<n[3])){u.label=t[1];break}if(6===t[0]&&u.label<n[1]){u.label=n[1],n=t;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(t);break}n[2]&&u.ops.pop(),u.trys.pop();continue}t=r.call(e,u)}catch(e){t=[6,e],o=0}finally{i=n=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}([t,s])}}var i,o,n,s,u={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../core/RestClientBase"],function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=function(e){function r(r){return e.call(this,r)||this}return __extends(r,e),r.prototype.getCachePolicies=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/CachePolicies"})]})})},r.prototype.getDescriptor=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Descriptors/{storageKey}",routeValues:{storageKey:e}})]})})},r.prototype.getFederatedProviderData=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={providerName:r,versionHint:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/FederatedProviderData/{subjectDescriptor}",routeValues:{subjectDescriptor:e},queryParams:i})]})})},r.prototype.getGlobalExtendedProperties=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/GraphGlobalExtendedPropertyBatch",body:e})]})})},r.prototype.writeGlobalExtendedProperties=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/Graph/GraphGlobalExtendedPropertyBatch",body:e})]})})},r.prototype.createGroup=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={scopeDescriptor:r,groupDescriptors:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",queryParams:i,body:e})]})})},r.prototype.deleteGroup=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",routeValues:{groupDescriptor:e}})]})})},r.prototype.findGroupsBySearchFactor=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={searchFactor:e,searchValue:r,forceDomainQualification:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",queryParams:i})]})})},r.prototype.getGroup=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",routeValues:{groupDescriptor:e}})]})})},r.prototype.updateGroup=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/Graph/Groups/{groupDescriptor}",routeValues:{groupDescriptor:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:r})]})})},r.prototype.lookupMembers=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/MemberLookup",body:e})]})})},r.prototype.findMembersBySearchFactor=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={searchFactor:e,searchValue:r,forceDomainQualification:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Members",queryParams:i})]})})},r.prototype.getMemberByCuid=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Members/{memberCuid}",routeValues:{memberCuid:e}})]})})},r.prototype.getMemberByDescriptor=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Members/{memberDescriptor}",routeValues:{memberDescriptor:e}})]})})},r.prototype.addMembership=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.checkMembershipExistence=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"HEAD",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.getMembership=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.removeMembership=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",routeValues:{subjectDescriptor:e,containerDescriptor:r}})]})})},r.prototype.listMemberships=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={direction:r,depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Memberships/{subjectDescriptor}",routeValues:{subjectDescriptor:e},queryParams:i})]})})},r.prototype.getMembershipState=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/MembershipStates/{subjectDescriptor}",routeValues:{subjectDescriptor:e}})]})})},r.prototype.lookupMembershipTraversals=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={direction:r,depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/MembershipTraversals/{subjectDescriptor}",queryParams:i,body:e})]})})},r.prototype.traverseMemberships=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={direction:r,depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/MembershipTraversals/{subjectDescriptor}",routeValues:{subjectDescriptor:e},queryParams:i})]})})},r.prototype.getProviderInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}/ProviderInfo",routeValues:{userDescriptor:e}})]})})},r.prototype.createScope=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:r},body:e})]})})},r.prototype.deleteScope=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:e}})]})})},r.prototype.getScope=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:e}})]})})},r.prototype.updateScope=function(e,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/Graph/Scopes/{scopeDescriptor}",routeValues:{scopeDescriptor:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:r})]})})},r.prototype.getIdentityShardingState=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/ShardingState"})]})})},r.prototype.getStorageKey=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/StorageKeys/{subjectDescriptor}",routeValues:{subjectDescriptor:e}})]})})},r.prototype.lookupSubjects=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/SubjectLookup",body:e})]})})},r.prototype.getSubject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Subjects/{subjectDescriptor}",routeValues:{subjectDescriptor:e}})]})})},r.prototype.createUser=function(e,r){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(i){return t={groupDescriptors:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/Graph/Users/{userDescriptor}",queryParams:t,body:e})]})})},r.prototype.deleteUser=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/Graph/Users/{userDescriptor}",routeValues:{userDescriptor:e}})]})})},r.prototype.findUsersBySearchFactor=function(e,r,t){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={searchFactor:e,searchValue:r,forceDomainQualification:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}",queryParams:i})]})})},r.prototype.getCuidBasedUserByLegacyDescriptor=function(e){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(t){return r={cuidBasedUserLegacyDescriptor:e},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}",queryParams:r})]})})},r.prototype.getUser=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/Graph/Users/{userDescriptor}",routeValues:{userDescriptor:e}})]})})},r.RESOURCE_AREA_ID="bb1e7ec9-e901-4b68-999a-de7012b920f8",r}(t.RestClientBase);r.GraphRestClient=i}); |
@@ -206,3 +206,41 @@ import { IVssRestClientOptions } from "../core/Context"; | ||
/** | ||
* Create an environment. | ||
* | ||
* @param {TaskAgent.EnvironmentCreateParameter} environmentCreateParameter - Environment to create. | ||
* @param {string} project - Project ID or project name | ||
*/ | ||
addEnvironment(environmentCreateParameter: TaskAgent.EnvironmentCreateParameter, project: string): Promise<TaskAgent.Environment>; | ||
/** | ||
* Delete the specified environment. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} environmentId - ID of the environment. | ||
*/ | ||
deleteEnvironment(project: string, environmentId: number): Promise<void>; | ||
/** | ||
* Get an environment by its ID. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {number} environmentId - ID of the environment. | ||
*/ | ||
getEnvironmentById(project: string, environmentId: number): Promise<TaskAgent.Environment>; | ||
/** | ||
* Get all environments. | ||
* | ||
* @param {string} project - Project ID or project name | ||
* @param {string} name | ||
* @param {string} continuationToken | ||
* @param {number} top | ||
*/ | ||
getEnvironments(project: string, name?: string, continuationToken?: string, top?: number): Promise<TaskAgent.Environment[]>; | ||
/** | ||
* Update the specified environment. | ||
* | ||
* @param {TaskAgent.EnvironmentUpdateParameter} environmentUpdateParameter - Environment data to update. | ||
* @param {string} project - Project ID or project name | ||
* @param {number} environmentId - ID of the environment. | ||
*/ | ||
updateEnvironment(environmentUpdateParameter: TaskAgent.EnvironmentUpdateParameter, project: string, environmentId: number): Promise<TaskAgent.Environment>; | ||
/** | ||
* @param {string} project - Project ID or project name | ||
* @param {string} endpointId | ||
@@ -209,0 +247,0 @@ * @param {number} top |
@@ -1,1 +0,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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,n){function u(e){try{a(i.next(e))}catch(e){n(e)}}function s(e){try{a(i.throw(e))}catch(e){n(e)}}function a(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,s)}a((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=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++,o=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],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var i,o,n,u,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,r){"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.addAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}",body:e})]})})},t.prototype.deleteAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}",routeValues:{agentCloudId:e}})]})})},t.prototype.getAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}",routeValues:{agentCloudId:e}})]})})},t.prototype.getAgentClouds=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}"})]})})},t.prototype.getAgentCloudTypes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentcloudtypes"})]})})},t.prototype.queueAgentRequest=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",routeValues:{queueId:t},body:e})]})})},t.prototype.addAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:t},body:e})]})})},t.prototype.deleteAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t}})]})})},t.prototype.getAgent=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={includeCapabilities:r,includeAssignedRequest:i,propertyFilters:o&&o.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t},queryParams:n})]})})},t.prototype.getAgents=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={agentName:t,includeCapabilities:r,includeAssignedRequest:i,propertyFilters:o&&o.join(","),demands:n&&n.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e},queryParams:u})]})})},t.prototype.replaceAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:t,agentId:r},body:e})]})})},t.prototype.updateAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:t,agentId:r},body:e})]})})},t.prototype.getAzureManagementGroups=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/azurermmanagementgroups"})]})})},t.prototype.getAzureSubscriptions=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/azurermsubscriptions"})]})})},t.prototype.generateDeploymentGroupAccessToken=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroupaccesstoken/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.addDeploymentGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteDeploymentGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.getDeploymentGroup=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={actionFilter:r,$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.getDeploymentGroups=function(e,t,r,i,o,n,u){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={name:t,actionFilter:r,$expand:i,continuationToken:o,$top:n,ids:u&&u.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateDeploymentGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.getDeploymentGroupsMetrics=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={deploymentGroupName:t,continuationToken:r,$top:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/deploymentgroupsmetrics",routeValues:{project:e},queryParams:o})]})})},t.prototype.getAgentRequestsForDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={machineId:r,completedRequestCount:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.getAgentRequestsForDeploymentMachines=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={machineIds:r&&r.join(","),completedRequestCount:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.refreshDeploymentMachines=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinemessages",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.generateDeploymentPoolAccessToken=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/deploymentpoolaccesstoken/{poolId}",routeValues:{poolId:e}})]})})},t.prototype.getDeploymentPoolsSummary=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={poolName:e,expands:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/deploymentPools/deploymentPoolsSummary",queryParams:r})]})})},t.prototype.getAgentRequestsForDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={targetId:r,completedRequestCount:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.getAgentRequestsForDeploymentTargets=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={targetIds:r&&r.join(","),ownerId:i,completedOn:o,completedRequestCount:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",routeValues:{project:e,deploymentGroupId:t},queryParams:u})]})})},t.prototype.refreshDeploymentTargets=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetMessages",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.queryEndpoint=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/endpoint",body:e})]})})},t.prototype.getServiceEndpointExecutionRecords=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={top:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}/executionhistory",routeValues:{project:e,endpointId:t},queryParams:i})]})})},t.prototype.addServiceEndpointExecutionRecords=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/executionhistory",routeValues:{project:t},body:e})]})})},t.prototype.getTaskHubLicenseDetails=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={includeEnterpriseUsersCount:t,includeHostedAgentMinutesCount:r},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"_apis/distributedtask/hublicense/{hubName}",routeValues:{hubName:e},queryParams:i})]})})},t.prototype.updateTaskHubLicenseDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"PUT",routeTemplate:"_apis/distributedtask/hublicense/{hubName}",routeValues:{hubName:t},body:e})]})})},t.prototype.validateInputs=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/inputvalidation",body:e})]})})},t.prototype.deleteAgentRequest=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={lockToken:r,result:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t},queryParams:o})]})})},t.prototype.getAgentRequest=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t}})]})})},t.prototype.getAgentRequestsForAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={agentId:t,completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.getAgentRequestsForAgents=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={agentIds:t&&t.join(","),completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.getAgentRequestsForPlan=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={planId:t,jobId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.queueAgentRequestByPool=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t},body:e})]})})},t.prototype.updateAgentRequest=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={lockToken:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t,requestId:r},queryParams:o,body:e})]})})},t.prototype.generateDeploymentMachineGroupAccessToken=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/machinegroupaccesstoken/{machineGroupId}",routeValues:{project:e,machineGroupId:t}})]})})},t.prototype.addDeploymentMachineGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteDeploymentMachineGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e,machineGroupId:t}})]})})},t.prototype.getDeploymentMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e,machineGroupId:t},queryParams:i})]})})},t.prototype.getDeploymentMachineGroups=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={machineGroupName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.updateDeploymentMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:t,machineGroupId:r},body:e})]})})},t.prototype.getDeploymentMachineGroupMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={tagFilters:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",routeValues:{project:e,machineGroupId:t},queryParams:i})]})})},t.prototype.updateDeploymentMachineGroupMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",routeValues:{project:t,machineGroupId:r},body:e})]})})},t.prototype.addDeploymentMachine=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.deleteDeploymentMachine=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t,machineId:r}})]})})},t.prototype.getDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t,machineId:r},queryParams:o})]})})},t.prototype.getDeploymentMachines=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tags:r&&r.join(","),name:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t},queryParams:n})]})})},t.prototype.replaceDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:i},body:e})]})})},t.prototype.updateDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:i},body:e})]})})},t.prototype.updateDeploymentMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.createAgentPoolMaintenanceDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:t},body:e})]})})},t.prototype.deleteAgentPoolMaintenanceDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:e,definitionId:t}})]})})},t.prototype.getAgentPoolMaintenanceDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:e,definitionId:t}})]})})},t.prototype.getAgentPoolMaintenanceDefinitions=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:e}})]})})},t.prototype.updateAgentPoolMaintenanceDefinition=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:t,definitionId:r},body:e})]})})},t.prototype.deleteAgentPoolMaintenanceJob=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e,jobId:t}})]})})},t.prototype.getAgentPoolMaintenanceJob=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e,jobId:t}})]})})},t.prototype.getAgentPoolMaintenanceJobLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e,jobId:t}})]})})},t.prototype.getAgentPoolMaintenanceJobs=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={definitionId:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e},queryParams:r})]})})},t.prototype.queueAgentPoolMaintenanceJob=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:t},body:e})]})})},t.prototype.updateAgentPoolMaintenanceJob=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:t,jobId:r},body:e})]})})},t.prototype.deleteMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={sessionId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e,messageId:t},queryParams:i})]})})},t.prototype.getMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={sessionId:t,lastMessageId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.refreshAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={agentId:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e},queryParams:r})]})})},t.prototype.refreshAgents=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e}})]})})},t.prototype.sendMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={requestId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:t},queryParams:i,body:e})]})})},t.prototype.getPackage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/distributedtask/packages/{packageType}/{platform}/{version}",routeValues:{packageType:e,platform:t,version:r}})]})})},t.prototype.getPackages=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/distributedtask/packages/{packageType}/{platform}/{version}",routeValues:{packageType:e,platform:t},queryParams:i})]})})},t.prototype.getAgentPoolMetadata=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"_apis/distributedtask/pools/{poolId}/poolmetadata",routeValues:{poolId:e}})]})})},t.prototype.addAgentPool=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}",body:e})]})})},t.prototype.deleteAgentPool=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:e}})]})})},t.prototype.getAgentPool=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={properties:t&&t.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.getAgentPools=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={poolName:e,properties:t&&t.join(","),poolType:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",queryParams:o})]})})},t.prototype.updateAgentPool=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:t},body:e})]})})},t.prototype.addAgentQueue=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},body:e})]})})},t.prototype.createTeamProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:e}})]})})},t.prototype.deleteAgentQueue=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t,queueId:e}})]})})},t.prototype.getAgentQueue=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t,queueId:e},queryParams:i})]})})},t.prototype.getAgentQueues=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={queueName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getAgentQueuesByIds=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={queueIds:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getAgentQueuesByNames=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={queueNames:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getAgentCloudRequests=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}/requests",routeValues:{agentCloudId:e}})]})})},t.prototype.getResourceLimits=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/resourcelimits"})]})})},t.prototype.getResourceUsage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={parallelismTag:e,poolIsHosted:t,includeRunningRequests:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/distributedtask/resourceusage",queryParams:i})]})})},t.prototype.getTaskGroupHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}/revisions",routeValues:{project:e,taskGroupId:t}})]})})},t.prototype.deleteSecureFile=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t}})]})})},t.prototype.downloadSecureFile=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={ticket:r,download:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:o})]})})},t.prototype.getSecureFile=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={includeDownloadTicket:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:o})]})})},t.prototype.getSecureFiles=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={namePattern:t,includeDownloadTickets:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getSecureFilesByIds=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={secureFileIds:t&&t.join(","),includeDownloadTickets:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getSecureFilesByNames=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={secureFileNames:t&&t.join(","),includeDownloadTickets:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.querySecureFilesByProperties=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={namePattern:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.updateSecureFile=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t,secureFileId:r},body:e})]})})},t.prototype.updateSecureFiles=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},body:e})]})})},t.prototype.uploadSecureFile=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={name:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:i,body:e,isRawData:!0})]})})},t.prototype.executeServiceEndpointRequest=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={endpointId:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpointproxy",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.queryServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpointproxy",routeValues:{project:t},body:e})]})})},t.prototype.createServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e,endpointId:t}})]})})},t.prototype.getServiceEndpointDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e,endpointId:t}})]})})},t.prototype.getServiceEndpoints=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={type:t,authSchemes:r&&r.join(","),endpointIds:i&&i.join(","),includeFailed:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.getServiceEndpointsByNames=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={endpointNames:t&&t.join(","),type:r,authSchemes:i&&i.join(","),includeFailed:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateServiceEndpoint=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={operation:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:t,endpointId:r},queryParams:o,body:e})]})})},t.prototype.updateServiceEndpoints=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:t},body:e})]})})},t.prototype.getServiceEndpointTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={type:e,scheme:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointtypes",queryParams:r})]})})},t.prototype.createAgentSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/sessions/{sessionId}",routeValues:{poolId:t},body:e})]})})},t.prototype.deleteAgentSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/sessions/{sessionId}",routeValues:{poolId:e,sessionId:t}})]})})},t.prototype.addDeploymentTarget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.deleteDeploymentTarget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t,targetId:r}})]})})},t.prototype.getDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t,targetId:r},queryParams:o})]})})},t.prototype.getDeploymentTargets=function(e,t,r,i,o,n,u,s,a,p,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={tags:r&&r.join(","),name:i,partialNameMatch:o,$expand:n,agentStatus:u,agentJobResult:s,continuationToken:a,$top:p,enabled:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t},queryParams:c})]})})},t.prototype.replaceDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:i},body:e})]})})},t.prototype.updateDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:i},body:e})]})})},t.prototype.updateDeploymentTargets=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.addTaskGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={comment:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:i})]})})},t.prototype.getTaskGroup=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={versionSpec:r,$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:o})]})})},t.prototype.getTaskGroupRevision=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={revision:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:i})]})})},t.prototype.getTaskGroups=function(e,t,r,i,o,n,u,s){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={expanded:r,taskIdFilter:i,deleted:o,$top:n,continuationToken:u,queryOrder:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:a})]})})},t.prototype.publishPreviewTaskGroup=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={disablePriorVersions:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t,taskGroupId:r},queryParams:o,body:e})]})})},t.prototype.publishTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={parentTaskGroupId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.undeleteTaskGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.updateTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t,taskGroupId:r},body:e})]})})},t.prototype.deleteTaskDefinition=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e}})]})})},t.prototype.getTaskContentZip=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={visibility:r,scopeLocal:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:o})]})})},t.prototype.getTaskDefinition=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={visibility:r,scopeLocal:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:o})]})})},t.prototype.getTaskDefinitions=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={visibility:t,scopeLocal:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e},queryParams:i})]})})},t.prototype.updateAgentUpdateState=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={currentState:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}/updates",routeValues:{poolId:e,agentId:t},queryParams:i})]})})},t.prototype.updateAgentUserCapabilities=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}/usercapabilities",routeValues:{poolId:t,agentId:r},body:e})]})})},t.prototype.addVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e,groupId:t}})]})})},t.prototype.getVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e,groupId:t}})]})})},t.prototype.getVariableGroups=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={groupName:t,actionFilter:r,$top:i,continuationToken:o,queryOrder:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e},queryParams:u})]})})},t.prototype.getVariableGroupsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={groupIds:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateVariableGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:t,groupId:r},body:e})]})})},t.prototype.acquireAccessToken=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth",body:e})]})})},t.prototype.createAadOAuthRequest=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tenantId:e,redirectUri:t,promptOption:r,completeCallbackPayload:i,completeCallbackByAuthCode:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth",queryParams:n})]})})},t.prototype.getVstsAadTenantId=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth"})]})})},t.RESOURCE_AREA_ID="a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd",t}(r.RestClientBase);t.TaskAgentRestClient=i}); | ||
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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,n){function u(e){try{a(i.next(e))}catch(e){n(e)}}function s(e){try{a(i.throw(e))}catch(e){n(e)}}function a(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,s)}a((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;s;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=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++,o=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],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var i,o,n,u,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,r){"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.addAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}",body:e})]})})},t.prototype.deleteAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}",routeValues:{agentCloudId:e}})]})})},t.prototype.getAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}",routeValues:{agentCloudId:e}})]})})},t.prototype.getAgentClouds=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}"})]})})},t.prototype.getAgentCloudTypes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentcloudtypes"})]})})},t.prototype.queueAgentRequest=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",routeValues:{queueId:t},body:e})]})})},t.prototype.addAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:t},body:e})]})})},t.prototype.deleteAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t}})]})})},t.prototype.getAgent=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={includeCapabilities:r,includeAssignedRequest:i,propertyFilters:o&&o.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t},queryParams:n})]})})},t.prototype.getAgents=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={agentName:t,includeCapabilities:r,includeAssignedRequest:i,propertyFilters:o&&o.join(","),demands:n&&n.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e},queryParams:u})]})})},t.prototype.replaceAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:t,agentId:r},body:e})]})})},t.prototype.updateAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:t,agentId:r},body:e})]})})},t.prototype.getAzureManagementGroups=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/azurermmanagementgroups"})]})})},t.prototype.getAzureSubscriptions=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/azurermsubscriptions"})]})})},t.prototype.generateDeploymentGroupAccessToken=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroupaccesstoken/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.addDeploymentGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteDeploymentGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.getDeploymentGroup=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={actionFilter:r,$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.getDeploymentGroups=function(e,t,r,i,o,n,u){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={name:t,actionFilter:r,$expand:i,continuationToken:o,$top:n,ids:u&&u.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateDeploymentGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.getDeploymentGroupsMetrics=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={deploymentGroupName:t,continuationToken:r,$top:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/deploymentgroupsmetrics",routeValues:{project:e},queryParams:o})]})})},t.prototype.getAgentRequestsForDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={machineId:r,completedRequestCount:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.getAgentRequestsForDeploymentMachines=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={machineIds:r&&r.join(","),completedRequestCount:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.refreshDeploymentMachines=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinemessages",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.generateDeploymentPoolAccessToken=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/deploymentpoolaccesstoken/{poolId}",routeValues:{poolId:e}})]})})},t.prototype.getDeploymentPoolsSummary=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={poolName:e,expands:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/deploymentPools/deploymentPoolsSummary",queryParams:r})]})})},t.prototype.getAgentRequestsForDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={targetId:r,completedRequestCount:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",routeValues:{project:e,deploymentGroupId:t},queryParams:o})]})})},t.prototype.getAgentRequestsForDeploymentTargets=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={targetIds:r&&r.join(","),ownerId:i,completedOn:o,completedRequestCount:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",routeValues:{project:e,deploymentGroupId:t},queryParams:u})]})})},t.prototype.refreshDeploymentTargets=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetMessages",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.queryEndpoint=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/endpoint",body:e})]})})},t.prototype.addEnvironment=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteEnvironment=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e,environmentId:t}})]})})},t.prototype.getEnvironmentById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e,environmentId:t}})]})})},t.prototype.getEnvironments=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={name:t,continuationToken:r,$top:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.updateEnvironment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:t,environmentId:r},body:e})]})})},t.prototype.getServiceEndpointExecutionRecords=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={top:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}/executionhistory",routeValues:{project:e,endpointId:t},queryParams:i})]})})},t.prototype.addServiceEndpointExecutionRecords=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/executionhistory",routeValues:{project:t},body:e})]})})},t.prototype.getTaskHubLicenseDetails=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={includeEnterpriseUsersCount:t,includeHostedAgentMinutesCount:r},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"_apis/distributedtask/hublicense/{hubName}",routeValues:{hubName:e},queryParams:i})]})})},t.prototype.updateTaskHubLicenseDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"PUT",routeTemplate:"_apis/distributedtask/hublicense/{hubName}",routeValues:{hubName:t},body:e})]})})},t.prototype.validateInputs=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/inputvalidation",body:e})]})})},t.prototype.deleteAgentRequest=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={lockToken:r,result:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t},queryParams:o})]})})},t.prototype.getAgentRequest=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t}})]})})},t.prototype.getAgentRequestsForAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={agentId:t,completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.getAgentRequestsForAgents=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={agentIds:t&&t.join(","),completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.getAgentRequestsForPlan=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={planId:t,jobId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.queueAgentRequestByPool=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t},body:e})]})})},t.prototype.updateAgentRequest=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={lockToken:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t,requestId:r},queryParams:o,body:e})]})})},t.prototype.generateDeploymentMachineGroupAccessToken=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/machinegroupaccesstoken/{machineGroupId}",routeValues:{project:e,machineGroupId:t}})]})})},t.prototype.addDeploymentMachineGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteDeploymentMachineGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e,machineGroupId:t}})]})})},t.prototype.getDeploymentMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e,machineGroupId:t},queryParams:i})]})})},t.prototype.getDeploymentMachineGroups=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={machineGroupName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.updateDeploymentMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:t,machineGroupId:r},body:e})]})})},t.prototype.getDeploymentMachineGroupMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={tagFilters:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",routeValues:{project:e,machineGroupId:t},queryParams:i})]})})},t.prototype.updateDeploymentMachineGroupMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",routeValues:{project:t,machineGroupId:r},body:e})]})})},t.prototype.addDeploymentMachine=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.deleteDeploymentMachine=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t,machineId:r}})]})})},t.prototype.getDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t,machineId:r},queryParams:o})]})})},t.prototype.getDeploymentMachines=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tags:r&&r.join(","),name:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t},queryParams:n})]})})},t.prototype.replaceDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:i},body:e})]})})},t.prototype.updateDeploymentMachine=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:i},body:e})]})})},t.prototype.updateDeploymentMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.createAgentPoolMaintenanceDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:t},body:e})]})})},t.prototype.deleteAgentPoolMaintenanceDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:e,definitionId:t}})]})})},t.prototype.getAgentPoolMaintenanceDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:e,definitionId:t}})]})})},t.prototype.getAgentPoolMaintenanceDefinitions=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:e}})]})})},t.prototype.updateAgentPoolMaintenanceDefinition=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancedefinitions/{definitionId}",routeValues:{poolId:t,definitionId:r},body:e})]})})},t.prototype.deleteAgentPoolMaintenanceJob=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e,jobId:t}})]})})},t.prototype.getAgentPoolMaintenanceJob=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e,jobId:t}})]})})},t.prototype.getAgentPoolMaintenanceJobLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e,jobId:t}})]})})},t.prototype.getAgentPoolMaintenanceJobs=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={definitionId:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:e},queryParams:r})]})})},t.prototype.queueAgentPoolMaintenanceJob=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:t},body:e})]})})},t.prototype.updateAgentPoolMaintenanceJob=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/maintenancejobs/{jobId}",routeValues:{poolId:t,jobId:r},body:e})]})})},t.prototype.deleteMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={sessionId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e,messageId:t},queryParams:i})]})})},t.prototype.getMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={sessionId:t,lastMessageId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.refreshAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={agentId:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e},queryParams:r})]})})},t.prototype.refreshAgents=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e}})]})})},t.prototype.sendMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={requestId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:t},queryParams:i,body:e})]})})},t.prototype.getPackage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/distributedtask/packages/{packageType}/{platform}/{version}",routeValues:{packageType:e,platform:t,version:r}})]})})},t.prototype.getPackages=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={$top:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/distributedtask/packages/{packageType}/{platform}/{version}",routeValues:{packageType:e,platform:t},queryParams:i})]})})},t.prototype.getAgentPoolMetadata=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"_apis/distributedtask/pools/{poolId}/poolmetadata",routeValues:{poolId:e}})]})})},t.prototype.addAgentPool=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}",body:e})]})})},t.prototype.deleteAgentPool=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:e}})]})})},t.prototype.getAgentPool=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={properties:t&&t.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:e},queryParams:i})]})})},t.prototype.getAgentPools=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={poolName:e,properties:t&&t.join(","),poolType:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",queryParams:o})]})})},t.prototype.updateAgentPool=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:t},body:e})]})})},t.prototype.addAgentQueue=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},body:e})]})})},t.prototype.createTeamProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:e}})]})})},t.prototype.deleteAgentQueue=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t,queueId:e}})]})})},t.prototype.getAgentQueue=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t,queueId:e},queryParams:i})]})})},t.prototype.getAgentQueues=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={queueName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getAgentQueuesByIds=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={queueIds:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getAgentQueuesByNames=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={queueNames:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getAgentCloudRequests=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}/requests",routeValues:{agentCloudId:e}})]})})},t.prototype.getResourceLimits=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/resourcelimits"})]})})},t.prototype.getResourceUsage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={parallelismTag:e,poolIsHosted:t,includeRunningRequests:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/distributedtask/resourceusage",queryParams:i})]})})},t.prototype.getTaskGroupHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}/revisions",routeValues:{project:e,taskGroupId:t}})]})})},t.prototype.deleteSecureFile=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t}})]})})},t.prototype.downloadSecureFile=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={ticket:r,download:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:o})]})})},t.prototype.getSecureFile=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={includeDownloadTicket:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:o})]})})},t.prototype.getSecureFiles=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={namePattern:t,includeDownloadTickets:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getSecureFilesByIds=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={secureFileIds:t&&t.join(","),includeDownloadTickets:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getSecureFilesByNames=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={secureFileNames:t&&t.join(","),includeDownloadTickets:r,actionFilter:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.querySecureFilesByProperties=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={namePattern:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.updateSecureFile=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t,secureFileId:r},body:e})]})})},t.prototype.updateSecureFiles=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},body:e})]})})},t.prototype.uploadSecureFile=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={name:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:i,body:e,isRawData:!0})]})})},t.prototype.executeServiceEndpointRequest=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={endpointId:r},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpointproxy",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.queryServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpointproxy",routeValues:{project:t},body:e})]})})},t.prototype.createServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e,endpointId:t}})]})})},t.prototype.getServiceEndpointDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e,endpointId:t}})]})})},t.prototype.getServiceEndpoints=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={type:t,authSchemes:r&&r.join(","),endpointIds:i&&i.join(","),includeFailed:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.getServiceEndpointsByNames=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={endpointNames:t&&t.join(","),type:r,authSchemes:i&&i.join(","),includeFailed:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateServiceEndpoint=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={operation:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:t,endpointId:r},queryParams:o,body:e})]})})},t.prototype.updateServiceEndpoints=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/serviceendpoints/{endpointId}",routeValues:{project:t},body:e})]})})},t.prototype.getServiceEndpointTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={type:e,scheme:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointtypes",queryParams:r})]})})},t.prototype.createAgentSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/sessions/{sessionId}",routeValues:{poolId:t},body:e})]})})},t.prototype.deleteAgentSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/sessions/{sessionId}",routeValues:{poolId:e,sessionId:t}})]})})},t.prototype.addDeploymentTarget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.deleteDeploymentTarget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t,targetId:r}})]})})},t.prototype.getDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t,targetId:r},queryParams:o})]})})},t.prototype.getDeploymentTargets=function(e,t,r,i,o,n,u,s,a,p,d){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(l){return c={tags:r&&r.join(","),name:i,partialNameMatch:o,$expand:n,agentStatus:u,agentJobResult:s,continuationToken:a,$top:p,enabled:d},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t},queryParams:c})]})})},t.prototype.replaceDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:i},body:e})]})})},t.prototype.updateDeploymentTarget=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:i},body:e})]})})},t.prototype.updateDeploymentTargets=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.addTaskGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={comment:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:i})]})})},t.prototype.getTaskGroup=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={versionSpec:r,$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:o})]})})},t.prototype.getTaskGroupRevision=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={revision:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:i})]})})},t.prototype.getTaskGroups=function(e,t,r,i,o,n,u,s){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={expanded:r,taskIdFilter:i,deleted:o,$top:n,continuationToken:u,queryOrder:s},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:a})]})})},t.prototype.publishPreviewTaskGroup=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={disablePriorVersions:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t,taskGroupId:r},queryParams:o,body:e})]})})},t.prototype.publishTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={parentTaskGroupId:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.undeleteTaskGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},body:e})]})})},t.prototype.updateTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t,taskGroupId:r},body:e})]})})},t.prototype.deleteTaskDefinition=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e}})]})})},t.prototype.getTaskContentZip=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={visibility:r,scopeLocal:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:o})]})})},t.prototype.getTaskDefinition=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={visibility:r,scopeLocal:i},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:o})]})})},t.prototype.getTaskDefinitions=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={visibility:t,scopeLocal:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e},queryParams:i})]})})},t.prototype.updateAgentUpdateState=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={currentState:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}/updates",routeValues:{poolId:e,agentId:t},queryParams:i})]})})},t.prototype.updateAgentUserCapabilities=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}/usercapabilities",routeValues:{poolId:t,agentId:r},body:e})]})})},t.prototype.addVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e,groupId:t}})]})})},t.prototype.getVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e,groupId:t}})]})})},t.prototype.getVariableGroups=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={groupName:t,actionFilter:r,$top:i,continuationToken:o,queryOrder:n},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e},queryParams:u})]})})},t.prototype.getVariableGroupsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={groupIds:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateVariableGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:t,groupId:r},body:e})]})})},t.prototype.acquireAccessToken=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth",body:e})]})})},t.prototype.createAadOAuthRequest=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tenantId:e,redirectUri:t,promptOption:r,completeCallbackPayload:i,completeCallbackByAuthCode:o},[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth",queryParams:n})]})})},t.prototype.getVstsAadTenantId=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth"})]})})},t.RESOURCE_AREA_ID="a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd",t}(r.RestClientBase);t.TaskAgentRestClient=i}); |
@@ -584,3 +584,3 @@ import { IVssRestClientOptions } from "../core/Context"; | ||
/** | ||
* Query Test Runs based on filters. | ||
* Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate. | ||
* | ||
@@ -603,3 +603,3 @@ * @param {string} project - Project ID or project name | ||
* @param {number} top - Number of runs to be queried. Limit is 100 | ||
* @param {string} continuationToken - continuationToken received from previous batch or null for first batch. | ||
* @param {string} continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user. | ||
*/ | ||
@@ -606,0 +606,0 @@ queryTestRuns(project: string, minLastUpdatedDate: Date, maxLastUpdatedDate: Date, state?: Test.TestRunState, planIds?: number[], isAutomated?: boolean, publishContext?: Test.TestRunPublishContext, buildIds?: number[], buildDefIds?: number[], branchName?: string, releaseIds?: number[], releaseDefIds?: number[], releaseEnvIds?: number[], releaseEnvDefIds?: number[], runTitle?: string, top?: number, continuationToken?: string): Promise<Test.TestRun[]>; |
@@ -216,2 +216,9 @@ import { IVssRestClientOptions } from "../core/Context"; | ||
/** | ||
* Gets a list of queries by ids (Maximum 1000) | ||
* | ||
* @param {WorkItemTracking.QueryBatchGetRequest} queryGetRequest | ||
* @param {string} project - Project ID or project name | ||
*/ | ||
getQueriesBatch(queryGetRequest: WorkItemTracking.QueryBatchGetRequest, project: string): Promise<WorkItemTracking.QueryHierarchyItem[]>; | ||
/** | ||
* Destroys the specified work item permanently from the Recycle Bin. This action can not be undone. | ||
@@ -351,4 +358,5 @@ * | ||
* @param {boolean} timePrecision - Whether or not to use time precision. | ||
* @param {number} top - The max number of results to return. | ||
*/ | ||
getQueryResultCount(id: string, project?: string, team?: string, timePrecision?: boolean): Promise<number>; | ||
getQueryResultCount(id: string, project?: string, team?: string, timePrecision?: boolean, top?: number): Promise<number>; | ||
/** | ||
@@ -361,4 +369,5 @@ * Gets the results of the query given the query ID. | ||
* @param {boolean} timePrecision - Whether or not to use time precision. | ||
* @param {number} top - The max number of results to return. | ||
*/ | ||
queryById(id: string, project?: string, team?: string, timePrecision?: boolean): Promise<WorkItemTracking.WorkItemQueryResult>; | ||
queryById(id: string, project?: string, team?: string, timePrecision?: boolean, top?: number): Promise<WorkItemTracking.WorkItemQueryResult>; | ||
/** | ||
@@ -365,0 +374,0 @@ * Get a work item icon given the friendly name and icon color. |
@@ -1,1 +0,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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,n){function u(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var i,o,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,r){"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.getAccountMyWorkData=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={$queryOption:e},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/work/accountMyWork",queryParams:t})]})})},t.prototype.getRecentActivityData=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/work/accountMyWorkRecentActivity"})]})})},t.prototype.getRecentMentions=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/work/accountRecentMentions"})]})})},t.prototype.getWorkArtifactLinkTypes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/artifactLinkTypes"})]})})},t.prototype.queryWorkItemsForArtifactUris=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/wit/artifactUriQuery",routeValues:{project:t},body:e})]})})},t.prototype.createAttachment=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fileName:r,uploadType:i,areaPath:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"POST",routeTemplate:"{project}/_apis/wit/attachments/{id}",routeValues:{project:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:n,body:e,isRawData:!0})]})})},t.prototype.getAttachmentContent=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fileName:r,download:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/wit/attachments/{id}",routeValues:{project:t,id:e},queryParams:o})]})})},t.prototype.getAttachmentZip=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fileName:r,download:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/wit/attachments/{id}",routeValues:{project:t,id:e},queryParams:o})]})})},t.prototype.getClassificationNodes=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={ids:t&&t.join(","),$depth:r,errorPolicy:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/classificationNodes",routeValues:{project:e},queryParams:o})]})})},t.prototype.getRootNodes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={$depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/classificationNodes",routeValues:{project:e},queryParams:r})]})})},t.prototype.createOrUpdateClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:t,structureGroup:r,path:i},body:e})]})})},t.prototype.deleteClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$reclassifyId:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:e,structureGroup:t,path:r},queryParams:o})]})})},t.prototype.getClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$depth:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:e,structureGroup:t,path:r},queryParams:o})]})})},t.prototype.updateClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:t,structureGroup:r,path:i},body:e})]})})},t.prototype.getComment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItems/{id}/comments/{revision}",routeValues:{project:r,id:e,revision:t}})]})})},t.prototype.getComments=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fromRevision:r,$top:i,order:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItems/{id}/comments/{revision}",routeValues:{project:t,id:e},queryParams:n})]})})},t.prototype.createField=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:t},body:e})]})})},t.prototype.deleteField=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:t,fieldNameOrRefName:e}})]})})},t.prototype.getField=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:t,fieldNameOrRefName:e}})]})})},t.prototype.getFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={$expand:t},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:e},queryParams:r})]})})},t.prototype.createQuery=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:t,query:r},body:e})]})})},t.prototype.deleteQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e,query:t}})]})})},t.prototype.getQueries=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:t,$depth:r,$includeDeleted:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getQuery=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$expand:r,$depth:i,$includeDeleted:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e,query:t},queryParams:n})]})})},t.prototype.searchQueries=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$filter:t,$top:r,$expand:i,$includeDeleted:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateQuery=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$undeleteDescendants:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:t,query:r},queryParams:o,body:e})]})})},t.prototype.destroyWorkItem=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:t,id:e}})]})})},t.prototype.getDeletedWorkItem=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:t,id:e}})]})})},t.prototype.getDeletedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={ids:e&&e.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:t},queryParams:r})]})})},t.prototype.getDeletedWorkItemShallowReferences=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:e}})]})})},t.prototype.restoreWorkItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:r,id:t},body:e})]})})},t.prototype.getRevision=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/revisions/{revisionNumber}",routeValues:{project:r,id:e,revisionNumber:t},queryParams:o})]})})},t.prototype.getRevisions=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$top:r,$skip:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/revisions/{revisionNumber}",routeValues:{project:t,id:e},queryParams:n})]})})},t.prototype.evaluateRulesOnField=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"_apis/wit/$ruleEngine",body:e})]})})},t.prototype.createTemplate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/{team}/_apis/wit/templates",routeValues:{project:t,team:r},body:e})]})})},t.prototype.getTemplates=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={workitemtypename:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/{team}/_apis/wit/templates",routeValues:{project:e,team:t},queryParams:i})]})})},t.prototype.deleteTemplate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/{team}/_apis/wit/templates/{templateId}",routeValues:{project:e,team:t,templateId:r}})]})})},t.prototype.getTemplate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/{team}/_apis/wit/templates/{templateId}",routeValues:{project:e,team:t,templateId:r}})]})})},t.prototype.replaceTemplate=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/{team}/_apis/wit/templates/{templateId}",routeValues:{project:t,team:r,templateId:i},body:e})]})})},t.prototype.getUpdate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/updates/{updateNumber}",routeValues:{project:r,id:e,updateNumber:t}})]})})},t.prototype.getUpdates=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$top:r,$skip:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/updates/{updateNumber}",routeValues:{project:t,id:e},queryParams:o})]})})},t.prototype.queryByWiql=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={timePrecision:i,$top:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/{team}/_apis/wit/wiql",routeValues:{project:t,team:r},queryParams:n,body:e})]})})},t.prototype.getQueryResultCount=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={timePrecision:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"HEAD",routeTemplate:"{project}/{team}/_apis/wit/wiql/{id}",routeValues:{project:t,team:r,id:e},queryParams:o})]})})},t.prototype.queryById=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={timePrecision:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/{team}/_apis/wit/wiql/{id}",routeValues:{project:t,team:r,id:e},queryParams:o})]})})},t.prototype.getWorkItemIconJson=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={color:t,v:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/workItemIcons/{icon}",routeValues:{icon:e},queryParams:i})]})})},t.prototype.getWorkItemIcons=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/workItemIcons/{icon}"})]})})},t.prototype.getWorkItemIconSvg=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={color:t,v:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"image/svg+xml",routeTemplate:"_apis/wit/workItemIcons/{icon}",routeValues:{icon:e},queryParams:i})]})})},t.prototype.getWorkItemIconXaml=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={color:t,v:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"image/xaml+xml",routeTemplate:"_apis/wit/workItemIcons/{icon}",routeValues:{icon:e},queryParams:i})]})})},t.prototype.getReportingLinksByLinkType=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={linkTypes:t&&t.join(","),types:r&&r.join(","),continuationToken:i,startDateTime:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/reporting/workItemLinks",routeValues:{project:e},queryParams:n})]})})},t.prototype.getRelationType=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/wit/workItemRelationTypes/{relation}",routeValues:{relation:e}})]})})},t.prototype.getRelationTypes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/wit/workItemRelationTypes/{relation}"})]})})},t.prototype.readReportingRevisionsGet=function(e,t,r,i,o,n,u,a,s,p,c,_){return __awaiter(this,void 0,void 0,function(){var d;return __generator(this,function(l){return d={fields:t&&t.join(","),types:r&&r.join(","),continuationToken:i,startDateTime:o,includeIdentityRef:n,includeDeleted:u,includeTagRef:a,includeLatestOnly:s,$expand:p,includeDiscussionChangesOnly:c,$maxPageSize:_},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/reporting/workItemRevisions",routeValues:{project:e},queryParams:d})]})})},t.prototype.readReportingRevisionsPost=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={continuationToken:r,startDateTime:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/reporting/workItemRevisions",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.createWorkItem=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={validateOnly:i,bypassRules:o,suppressNotifications:n},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"POST",routeTemplate:"{project}/_apis/wit/workItems/${type}",routeValues:{project:t,type:r},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:u,body:e})]})})},t.prototype.getWorkItemTemplate=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fields:r,asOf:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/${type}",routeValues:{project:e,type:t},queryParams:n})]})})},t.prototype.deleteWorkItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={destroy:r},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t,id:e},queryParams:i})]})})},t.prototype.getWorkItem=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fields:r&&r.join(","),asOf:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t,id:e},queryParams:n})]})})},t.prototype.getWorkItems=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={ids:e&&e.join(","),fields:r&&r.join(","),asOf:i,$expand:o,errorPolicy:n},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t},queryParams:u})]})})},t.prototype.updateWorkItem=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={validateOnly:i,bypassRules:o,suppressNotifications:n},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:r,id:t},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:u,body:e})]})})},t.prototype.getWorkItemsBatch=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/wit/workItemsBatch",routeValues:{project:t},body:e})]})})},t.prototype.getWorkItemStateColors=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/work/workitemStateColor",body:e})]})})},t.prototype.getWorkItemNextStatesOnCheckinAction=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={ids:e&&e.join(","),action:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/workItemTransitions",queryParams:r})]})})},t.prototype.getWorkItemTypeCategories=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypeCategories/{category}",routeValues:{project:e}})]})})},t.prototype.getWorkItemTypeCategory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypeCategories/{category}",routeValues:{project:e,category:t}})]})})},t.prototype.getWorkItemTypeColors=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/work/workitemTypeColor",body:e})]})})},t.prototype.getWorkItemTypeColorAndIcons=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/wit/workItemTypeColorAndIcon",body:e})]})})},t.prototype.getWorkItemType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypes/{type}",routeValues:{project:e,type:t}})]})})},t.prototype.getWorkItemTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypes/{type}",routeValues:{project:e}})]})})},t.prototype.getWorkItemTypeFieldsWithReferences=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={$expand:r},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workitemtypes/{type}/fields/{field}",routeValues:{project:e,type:t},queryParams:i})]})})},t.prototype.getWorkItemTypeFieldWithReferences=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workitemtypes/{type}/fields/{field}",routeValues:{project:e,type:t,field:r},queryParams:o})]})})},t.prototype.getWorkItemTypeStates=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/wit/workitemtypes/{type}/states",routeValues:{project:e,type:t}})]})})},t.prototype.exportWorkItemTypeDefinition=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={exportGlobalLists:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/wit/workItemTypeTemplate/{type}",routeValues:{project:e,type:t},queryParams:i})]})})},t.prototype.updateWorkItemTypeDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/wit/workItemTypeTemplate/{type}",routeValues:{project:t},body:e})]})})},t.RESOURCE_AREA_ID="5264459e-e5e0-4bd8-b118-0985e68a4ec5",t}(r.RestClientBase);t.WorkItemTrackingRestClient=i}); | ||
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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,n){function u(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,o=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var i,o,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../core/RestClientBase"],function(e,t,r){"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.getAccountMyWorkData=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={$queryOption:e},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/work/accountMyWork",queryParams:t})]})})},t.prototype.getRecentActivityData=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/work/accountMyWorkRecentActivity"})]})})},t.prototype.getRecentMentions=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/work/accountRecentMentions"})]})})},t.prototype.getWorkArtifactLinkTypes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/artifactLinkTypes"})]})})},t.prototype.queryWorkItemsForArtifactUris=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/wit/artifactUriQuery",routeValues:{project:t},body:e})]})})},t.prototype.createAttachment=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fileName:r,uploadType:i,areaPath:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"POST",routeTemplate:"{project}/_apis/wit/attachments/{id}",routeValues:{project:t},customHeaders:{"Content-Type":"application/octet-stream"},queryParams:n,body:e,isRawData:!0})]})})},t.prototype.getAttachmentContent=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fileName:r,download:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/wit/attachments/{id}",routeValues:{project:t,id:e},queryParams:o})]})})},t.prototype.getAttachmentZip=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={fileName:r,download:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/wit/attachments/{id}",routeValues:{project:t,id:e},queryParams:o})]})})},t.prototype.getClassificationNodes=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={ids:t&&t.join(","),$depth:r,errorPolicy:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/classificationNodes",routeValues:{project:e},queryParams:o})]})})},t.prototype.getRootNodes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={$depth:t},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/classificationNodes",routeValues:{project:e},queryParams:r})]})})},t.prototype.createOrUpdateClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:t,structureGroup:r,path:i},body:e})]})})},t.prototype.deleteClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$reclassifyId:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:e,structureGroup:t,path:r},queryParams:o})]})})},t.prototype.getClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$depth:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:e,structureGroup:t,path:r},queryParams:o})]})})},t.prototype.updateClassificationNode=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wit/classificationNodes/{structureGroup}/{*path}",routeValues:{project:t,structureGroup:r,path:i},body:e})]})})},t.prototype.getComment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItems/{id}/comments/{revision}",routeValues:{project:r,id:e,revision:t}})]})})},t.prototype.getComments=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fromRevision:r,$top:i,order:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItems/{id}/comments/{revision}",routeValues:{project:t,id:e},queryParams:n})]})})},t.prototype.createField=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:t},body:e})]})})},t.prototype.deleteField=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:t,fieldNameOrRefName:e}})]})})},t.prototype.getField=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:t,fieldNameOrRefName:e}})]})})},t.prototype.getFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={$expand:t},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/fields/{fieldNameOrRefName}",routeValues:{project:e},queryParams:r})]})})},t.prototype.createQuery=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:t,query:r},body:e})]})})},t.prototype.deleteQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e,query:t}})]})})},t.prototype.getQueries=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:t,$depth:r,$includeDeleted:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getQuery=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$expand:r,$depth:i,$includeDeleted:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e,query:t},queryParams:n})]})})},t.prototype.searchQueries=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$filter:t,$top:r,$expand:i,$includeDeleted:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateQuery=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$undeleteDescendants:i},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wit/queries/{*query}",routeValues:{project:t,query:r},queryParams:o,body:e})]})})},t.prototype.getQueriesBatch=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/wit/queriesBatch",routeValues:{project:t},body:e})]})})},t.prototype.destroyWorkItem=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:t,id:e}})]})})},t.prototype.getDeletedWorkItem=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:t,id:e}})]})})},t.prototype.getDeletedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={ids:e&&e.join(",")},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:t},queryParams:r})]})})},t.prototype.getDeletedWorkItemShallowReferences=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:e}})]})})},t.prototype.restoreWorkItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wit/recyclebin/{id}",routeValues:{project:r,id:t},body:e})]})})},t.prototype.getRevision=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/revisions/{revisionNumber}",routeValues:{project:r,id:e,revisionNumber:t},queryParams:o})]})})},t.prototype.getRevisions=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$top:r,$skip:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/revisions/{revisionNumber}",routeValues:{project:t,id:e},queryParams:n})]})})},t.prototype.evaluateRulesOnField=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"_apis/wit/$ruleEngine",body:e})]})})},t.prototype.createTemplate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/{team}/_apis/wit/templates",routeValues:{project:t,team:r},body:e})]})})},t.prototype.getTemplates=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={workitemtypename:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/{team}/_apis/wit/templates",routeValues:{project:e,team:t},queryParams:i})]})})},t.prototype.deleteTemplate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"DELETE",routeTemplate:"{project}/{team}/_apis/wit/templates/{templateId}",routeValues:{project:e,team:t,templateId:r}})]})})},t.prototype.getTemplate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/{team}/_apis/wit/templates/{templateId}",routeValues:{project:e,team:t,templateId:r}})]})})},t.prototype.replaceTemplate=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"PUT",routeTemplate:"{project}/{team}/_apis/wit/templates/{templateId}",routeValues:{project:t,team:r,templateId:i},body:e})]})})},t.prototype.getUpdate=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/updates/{updateNumber}",routeValues:{project:r,id:e,updateNumber:t}})]})})},t.prototype.getUpdates=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$top:r,$skip:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}/updates/{updateNumber}",routeValues:{project:t,id:e},queryParams:o})]})})},t.prototype.queryByWiql=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={timePrecision:i,$top:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/{team}/_apis/wit/wiql",routeValues:{project:t,team:r},queryParams:n,body:e})]})})},t.prototype.getQueryResultCount=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={timePrecision:i,$top:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"HEAD",routeTemplate:"{project}/{team}/_apis/wit/wiql/{id}",routeValues:{project:t,team:r,id:e},queryParams:n})]})})},t.prototype.queryById=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={timePrecision:i,$top:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/{team}/_apis/wit/wiql/{id}",routeValues:{project:t,team:r,id:e},queryParams:n})]})})},t.prototype.getWorkItemIconJson=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={color:t,v:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/workItemIcons/{icon}",routeValues:{icon:e},queryParams:i})]})})},t.prototype.getWorkItemIcons=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/workItemIcons/{icon}"})]})})},t.prototype.getWorkItemIconSvg=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={color:t,v:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"image/svg+xml",routeTemplate:"_apis/wit/workItemIcons/{icon}",routeValues:{icon:e},queryParams:i})]})})},t.prototype.getWorkItemIconXaml=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={color:t,v:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",httpResponseType:"image/xaml+xml",routeTemplate:"_apis/wit/workItemIcons/{icon}",routeValues:{icon:e},queryParams:i})]})})},t.prototype.getReportingLinksByLinkType=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={linkTypes:t&&t.join(","),types:r&&r.join(","),continuationToken:i,startDateTime:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/reporting/workItemLinks",routeValues:{project:e},queryParams:n})]})})},t.prototype.getRelationType=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/wit/workItemRelationTypes/{relation}",routeValues:{relation:e}})]})})},t.prototype.getRelationTypes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"_apis/wit/workItemRelationTypes/{relation}"})]})})},t.prototype.readReportingRevisionsGet=function(e,t,r,i,o,n,u,a,s,p,c,_){return __awaiter(this,void 0,void 0,function(){var d;return __generator(this,function(l){return d={fields:t&&t.join(","),types:r&&r.join(","),continuationToken:i,startDateTime:o,includeIdentityRef:n,includeDeleted:u,includeTagRef:a,includeLatestOnly:s,$expand:p,includeDiscussionChangesOnly:c,$maxPageSize:_},[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/reporting/workItemRevisions",routeValues:{project:e},queryParams:d})]})})},t.prototype.readReportingRevisionsPost=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={continuationToken:r,startDateTime:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.2",method:"POST",routeTemplate:"{project}/_apis/wit/reporting/workItemRevisions",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.createWorkItem=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={validateOnly:i,bypassRules:o,suppressNotifications:n},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"POST",routeTemplate:"{project}/_apis/wit/workItems/${type}",routeValues:{project:t,type:r},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:u,body:e})]})})},t.prototype.getWorkItemTemplate=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fields:r,asOf:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/${type}",routeValues:{project:e,type:t},queryParams:n})]})})},t.prototype.deleteWorkItem=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={destroy:r},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t,id:e},queryParams:i})]})})},t.prototype.getWorkItem=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={fields:r&&r.join(","),asOf:i,$expand:o},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t,id:e},queryParams:n})]})})},t.prototype.getWorkItems=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={ids:e&&e.join(","),fields:r&&r.join(","),asOf:i,$expand:o,errorPolicy:n},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t},queryParams:u})]})})},t.prototype.updateWorkItem=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={validateOnly:i,bypassRules:o,suppressNotifications:n},[2,this.beginRequest({apiVersion:"5.0-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:r,id:t},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:u,body:e})]})})},t.prototype.getWorkItemsBatch=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/wit/workItemsBatch",routeValues:{project:t},body:e})]})})},t.prototype.getWorkItemStateColors=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/work/workitemStateColor",body:e})]})})},t.prototype.getWorkItemNextStatesOnCheckinAction=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={ids:e&&e.join(","),action:t},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"_apis/wit/workItemTransitions",queryParams:r})]})})},t.prototype.getWorkItemTypeCategories=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypeCategories/{category}",routeValues:{project:e}})]})})},t.prototype.getWorkItemTypeCategory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypeCategories/{category}",routeValues:{project:e,category:t}})]})})},t.prototype.getWorkItemTypeColors=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/work/workitemTypeColor",body:e})]})})},t.prototype.getWorkItemTypeColorAndIcons=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"_apis/wit/workItemTypeColorAndIcon",body:e})]})})},t.prototype.getWorkItemType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypes/{type}",routeValues:{project:e,type:t}})]})})},t.prototype.getWorkItemTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.0-preview.2",routeTemplate:"{project}/_apis/wit/workItemTypes/{type}",routeValues:{project:e}})]})})},t.prototype.getWorkItemTypeFieldsWithReferences=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={$expand:r},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workitemtypes/{type}/fields/{field}",routeValues:{project:e,type:t},queryParams:i})]})})},t.prototype.getWorkItemTypeFieldWithReferences=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={$expand:i},[2,this.beginRequest({apiVersion:"5.0-preview.3",routeTemplate:"{project}/_apis/wit/workitemtypes/{type}/fields/{field}",routeValues:{project:e,type:t,field:r},queryParams:o})]})})},t.prototype.getWorkItemTypeStates=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/wit/workitemtypes/{type}/states",routeValues:{project:e,type:t}})]})})},t.prototype.exportWorkItemTypeDefinition=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={exportGlobalLists:r},[2,this.beginRequest({apiVersion:"5.0-preview.1",routeTemplate:"{project}/_apis/wit/workItemTypeTemplate/{type}",routeValues:{project:e,type:t},queryParams:i})]})})},t.prototype.updateWorkItemTypeDefinition=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.0-preview.1",method:"POST",routeTemplate:"{project}/_apis/wit/workItemTypeTemplate/{type}",routeValues:{project:t},body:e})]})})},t.RESOURCE_AREA_ID="5264459e-e5e0-4bd8-b118-0985e68a4ec5",t}(r.RestClientBase);t.WorkItemTrackingRestClient=i}); |
@@ -41,3 +41,3 @@ /* | ||
}; | ||
define(["require", "exports", "./Fetch", "./Serialization", "./Url"], function (require, exports, Fetch_1, Serialization_1, Url_1) { | ||
define(["require", "exports", "./Fetch", "./Util/Serialization", "./Util/Url"], function (require, exports, Fetch_1, Serialization_1, Url_1) { | ||
"use strict"; | ||
@@ -44,0 +44,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,1 +0,1 @@ | ||
var __awaiter=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){t.done?n(t.value):new r(function(e){e(t.value)}).then(a,s)}u((o=o.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,n,i,a,s={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","./Fetch","./Serialization","./Url"],function(t,e,r,o,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._options=t||{},"string"==typeof this._options.rootPath?this._rootPath=Promise.resolve(this._options.rootPath):this._rootPath=this._options.rootPath||Promise.resolve("/")}return t.prototype.getRootPath=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this._rootPath]})})},t.prototype.beginRequest=function(t){return __awaiter(this,void 0,void 0,function(){var e=this;return __generator(this,function(r){return[2,this._rootPath.then(function(r){var o=r+n.replaceRouteValues(t.routeTemplate,t.routeValues||{});if(t.queryParams){var i=new n.Uri(o);i.addQueryParams(t.queryParams),o=i.absoluteUri}return e._issueRequest(o,t.apiVersion,t)})]})})},t.prototype._issueRequest=function(t,e,n){var i={};i.method=n.method||"GET",i.mode="cors",!n.isRawData&&n.body&&"GET"!==i.method.toUpperCase()?i.body=JSON.stringify(n.body):i.body=n.body;var a=n.httpResponseType||"application/json",s=a+";api-version="+e+";excludeUrls=true;enumsAsNumbers=true;msDateFormat=true;noArrayWrap=true";i.headers=Object.assign({Accept:s,"Content-Type":n.body&&"application/json"},n.customHeaders);var u={authTokenProvider:this._options.authTokenProvider,sessionId:this._options.sessionId,command:n.command||this._options.command};return r.issueRequest(t,i,u).then(function(t){return n.returnRawResponse?t:a.toLowerCase().indexOf("json")>=0?t.text().then(o.deserializeVssJsonObject):"text/plain"===a.toLowerCase()?t.text():t.arrayBuffer()})},t}();e.RestClientBase=i}); | ||
var __awaiter=this&&this.__awaiter||function(t,e,r,o){return new(r||(r=Promise))(function(n,i){function a(t){try{u(o.next(t))}catch(t){i(t)}}function s(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){t.done?n(t.value):new r(function(e){e(t.value)}).then(a,s)}u((o=o.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,n=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],n=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var o,n,i,a,s={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","./Fetch","./Util/Serialization","./Util/Url"],function(t,e,r,o,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._options=t||{},"string"==typeof this._options.rootPath?this._rootPath=Promise.resolve(this._options.rootPath):this._rootPath=this._options.rootPath||Promise.resolve("/")}return t.prototype.getRootPath=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this._rootPath]})})},t.prototype.beginRequest=function(t){return __awaiter(this,void 0,void 0,function(){var e=this;return __generator(this,function(r){return[2,this._rootPath.then(function(r){var o=r+n.replaceRouteValues(t.routeTemplate,t.routeValues||{});if(t.queryParams){var i=new n.Uri(o);i.addQueryParams(t.queryParams),o=i.absoluteUri}return e._issueRequest(o,t.apiVersion,t)})]})})},t.prototype._issueRequest=function(t,e,n){var i={};i.method=n.method||"GET",i.mode="cors",!n.isRawData&&n.body&&"GET"!==i.method.toUpperCase()?i.body=JSON.stringify(n.body):i.body=n.body;var a=n.httpResponseType||"application/json",s=a+";api-version="+e+";excludeUrls=true;enumsAsNumbers=true;msDateFormat=true;noArrayWrap=true";i.headers=Object.assign({Accept:s,"Content-Type":n.body&&"application/json"},n.customHeaders);var u={authTokenProvider:this._options.authTokenProvider,sessionId:this._options.sessionId,command:n.command||this._options.command};return r.issueRequest(t,i,u).then(function(t){return n.returnRawResponse?t:a.toLowerCase().indexOf("json")>=0?t.text().then(o.deserializeVssJsonObject):"text/plain"===a.toLowerCase()?t.text():t.arrayBuffer()})},t}();e.RestClientBase=i}); |
{ | ||
"name": "azure-devops-extension-api", | ||
"version": "0.141.15", | ||
"version": "0.142.0", | ||
"description": "REST client libraries and contracts for Azure DevOps web extension developers.", | ||
@@ -24,3 +24,3 @@ "repository": { | ||
"dependencies": { | ||
"azure-devops-extension-sdk": "~2.0.1" | ||
"azure-devops-extension-sdk": "~2.0.2" | ||
}, | ||
@@ -27,0 +27,0 @@ "devDependencies": { |
@@ -21,3 +21,3 @@ /* | ||
*/ | ||
export interface BoardColumn extends BoardColumnReference { | ||
export interface BoardColumn extends BoardColumnBase { | ||
/** | ||
@@ -28,16 +28,30 @@ * Links to other related objects. | ||
/** | ||
* Board column description. | ||
* Id of the resource. | ||
*/ | ||
description: string; | ||
id: string; | ||
/** | ||
* Order of this board column with respect to other columns in the board. | ||
* Next column identifier. | ||
*/ | ||
order: number; | ||
nextColumnId: string; | ||
/** | ||
* Board column properties. | ||
* Full http link to the resource. | ||
*/ | ||
properties: { [key: string] : string; }; | ||
url: string; | ||
} | ||
/** | ||
* Provides base properties that describe a column in a board. | ||
*/ | ||
export interface BoardColumnBase { | ||
/** | ||
* Board column description. | ||
*/ | ||
description: string; | ||
/** | ||
* Name of the column. | ||
*/ | ||
name: string; | ||
} | ||
/** | ||
* Response collection for board column actions. | ||
@@ -47,2 +61,6 @@ */ | ||
/** | ||
* Links to other related objects. | ||
*/ | ||
_links: any; | ||
/** | ||
* The resulting collection of BoardColumn. | ||
@@ -60,25 +78,52 @@ */ | ||
*/ | ||
export interface BoardColumnCreate { | ||
export interface BoardColumnCreate extends BoardColumnBase { | ||
/** | ||
* New column description. | ||
* Next column identifier or supported directive: $left or $right. | ||
*/ | ||
description: string; | ||
nextColumnId: string; | ||
} | ||
/** | ||
* INTERNAL. Event that is fired when a column is added. | ||
*/ | ||
export interface BoardColumnCreatedRealtimeEvent extends RealtimeBoardEvent { | ||
/** | ||
* New column name. | ||
* Gets the column identifier. | ||
*/ | ||
name: string; | ||
columnId: string; | ||
/** | ||
* Next column identifier or supported directive: $left or $right. | ||
* The latest ETag for the column. | ||
*/ | ||
eTag: string; | ||
/** | ||
* Gets the identifier of the next column. | ||
*/ | ||
nextColumnId: string; | ||
} | ||
export interface BoardColumnReference extends EntityReference { | ||
/** | ||
* Describes a list of columns to create on a board. | ||
*/ | ||
export interface BoardColumnCreateList { | ||
/** | ||
* Id of the resource. | ||
* New columns. | ||
*/ | ||
id: string; | ||
columns: BoardColumnBase[]; | ||
/** | ||
* Next column identifier or supported directive: $top or $bottom. | ||
*/ | ||
nextColumnId: string; | ||
} | ||
/** | ||
* INTERNAL. Event that is fired when a column is deleted. | ||
*/ | ||
export interface BoardColumnDeletedRealtimeEvent extends RealtimeBoardEvent { | ||
/** | ||
* Gets the column identifier. | ||
*/ | ||
columnId: string; | ||
} | ||
/** | ||
* Response for board column actions. | ||
@@ -104,2 +149,20 @@ */ | ||
/** | ||
* INTERNAL. Event that is fired when a column is updated. | ||
*/ | ||
export interface BoardColumnUpdatedRealtimeEvent extends RealtimeBoardEvent { | ||
/** | ||
* Gets the column identifier. | ||
*/ | ||
columnId: string; | ||
/** | ||
* The latest ETag for the column. | ||
*/ | ||
eTag: string; | ||
/** | ||
* Gets the identifier of the next column. | ||
*/ | ||
nextColumnId: string; | ||
} | ||
/** | ||
* Provides properties that describe an item in a board. | ||
@@ -121,2 +184,6 @@ */ | ||
/** | ||
* Next item unique identifier. | ||
*/ | ||
nextItemUniqueId: string; | ||
/** | ||
* Board row id for this item. | ||
@@ -128,2 +195,54 @@ */ | ||
/** | ||
* INTERNAL. Event that is fired when a board item is added. | ||
*/ | ||
export interface BoardItemAddedRealtimeEvent extends RealtimeBoardEvent { | ||
/** | ||
* The column id where the item was added. | ||
*/ | ||
columnId: string; | ||
/** | ||
* The latest ETag for the item. | ||
*/ | ||
itemETag: string; | ||
/** | ||
* The id of the added item | ||
*/ | ||
itemId: string; | ||
/** | ||
* The type of the added item | ||
*/ | ||
itemType: string; | ||
/** | ||
* The unique id of the added item. | ||
*/ | ||
itemUniqueId: string; | ||
/** | ||
* The unique id of the next item in the list. | ||
*/ | ||
nextItemUniqueId: string; | ||
/** | ||
* The row id where the item was added. | ||
*/ | ||
rowId: string; | ||
} | ||
/** | ||
* Response collection for board items actions. | ||
*/ | ||
export interface BoardItemCollectionResponse { | ||
/** | ||
* Links to other related objects. | ||
*/ | ||
_links: any; | ||
/** | ||
* The resulting collection of BoardItem. | ||
*/ | ||
boardItems: BoardItem[]; | ||
/** | ||
* The last change date and time for all items in the collection. | ||
*/ | ||
eTag: string[]; | ||
} | ||
/** | ||
* Provides properties that describe an item's identifier and type in a board. | ||
@@ -142,2 +261,28 @@ */ | ||
/** | ||
* INTERNAL. Event that is fired when a board item moves. | ||
*/ | ||
export interface BoardItemMovedRealtimeEvent extends RealtimeBoardEvent { | ||
/** | ||
* The column id where the item was moved. | ||
*/ | ||
columnId: string; | ||
/** | ||
* The latest ETag for the item. | ||
*/ | ||
itemETag: string; | ||
/** | ||
* The unique id of the moved item. | ||
*/ | ||
itemUniqueId: string; | ||
/** | ||
* The unique id of the next item in the list. | ||
*/ | ||
nextItemUniqueId: string; | ||
/** | ||
* The row id where the item was moved. | ||
*/ | ||
rowId: string; | ||
} | ||
export interface BoardItemReference extends BoardItemIdAndType { | ||
@@ -155,2 +300,12 @@ /** | ||
/** | ||
* INTERNAL. Event that is fired when a board item is removed. | ||
*/ | ||
export interface BoardItemRemovedRealtimeEvent extends RealtimeBoardEvent { | ||
/** | ||
* The unique id of the moved item. | ||
*/ | ||
itemUniqueId: string; | ||
} | ||
/** | ||
* Provides a response for board item actions. | ||
@@ -193,3 +348,3 @@ */ | ||
*/ | ||
export interface BoardRow extends BoardRowReference { | ||
export interface BoardRow extends BoardRowBase { | ||
/** | ||
@@ -200,8 +355,26 @@ * Links to other related objects. | ||
/** | ||
* Order of this row with respect to other rows in the board. | ||
* Id of the resource. | ||
*/ | ||
order: number; | ||
id: string; | ||
/** | ||
* Next row identifier. | ||
*/ | ||
nextRowId: string; | ||
/** | ||
* Full http link to the resource. | ||
*/ | ||
url: string; | ||
} | ||
/** | ||
* Provides properties that describe a row in a board. | ||
*/ | ||
export interface BoardRowBase { | ||
/** | ||
* Row name. | ||
*/ | ||
name: string; | ||
} | ||
/** | ||
* Response collection for board row actions. | ||
@@ -211,2 +384,6 @@ */ | ||
/** | ||
* Links to other related objects. | ||
*/ | ||
_links: any; | ||
/** | ||
* The resulting collection of BoardRow. | ||
@@ -224,8 +401,4 @@ */ | ||
*/ | ||
export interface BoardRowCreate { | ||
export interface BoardRowCreate extends BoardRowBase { | ||
/** | ||
* New row name. | ||
*/ | ||
name: string; | ||
/** | ||
* Next row identifier or supported directive: $top or $bottom. | ||
@@ -236,7 +409,14 @@ */ | ||
export interface BoardRowReference extends EntityReference { | ||
/** | ||
* Describes a list of rows to create on a board. | ||
*/ | ||
export interface BoardRowCreateList { | ||
/** | ||
* Id of the resource. | ||
* Next row identifier or supported directive: $top or $bottom. | ||
*/ | ||
id: string; | ||
nextRowId: string; | ||
/** | ||
* New rows. | ||
*/ | ||
rows: BoardRowBase[]; | ||
} | ||
@@ -322,2 +502,24 @@ | ||
/** | ||
* Base type for real time board events. All board events should inherit from this class. | ||
*/ | ||
export interface RealtimeBoardEvent { | ||
/** | ||
* The Board ID of the event | ||
*/ | ||
boardId: number; | ||
/** | ||
* A unique ID for events, used for logging and tracing. | ||
*/ | ||
eventId: string; | ||
/** | ||
* The Project ID of the board. | ||
*/ | ||
projectId: string; | ||
/** | ||
* The type of this event, so the client can disambiguate | ||
*/ | ||
type: string; | ||
} | ||
export interface UpdateBoard { | ||
@@ -324,0 +526,0 @@ /** |
@@ -41,2 +41,16 @@ /* | ||
/** | ||
* Type of process customization on a collection. | ||
*/ | ||
export const enum ProcessCustomizationType { | ||
/** | ||
* Customization based on project-scoped xml customization | ||
*/ | ||
Xml = 0, | ||
/** | ||
* Customization based on process inheritance | ||
*/ | ||
Inherited = 1 | ||
} | ||
export interface ProcessReference { | ||
@@ -94,2 +108,3 @@ name: string; | ||
Organization = 1, | ||
Enterprise = 1, | ||
Public = 2, | ||
@@ -198,5 +213,5 @@ SystemPrivate = 3 | ||
/** | ||
* True if collection supports inherited process customization model. | ||
* Process customzation type on this collection. It can be Xml or Inherited. | ||
*/ | ||
enableInheritedProcessCustomization: boolean; | ||
processCustomizationType: ProcessCustomizationType; | ||
/** | ||
@@ -203,0 +218,0 @@ * Project collection state. |
@@ -1164,3 +1164,7 @@ /* | ||
*/ | ||
AlwaysReturnBasicInformation = 16 | ||
AlwaysReturnBasicInformation = 16, | ||
/** | ||
* Include system subscriptions. | ||
*/ | ||
IncludeSystemSubscriptions = 32 | ||
} | ||
@@ -1167,0 +1171,0 @@ |
@@ -406,2 +406,3 @@ /* | ||
alias: string; | ||
tagFilters: TagFilter[]; | ||
} | ||
@@ -813,2 +814,3 @@ | ||
rank: number; | ||
refName: string; | ||
workflowTasks: WorkflowTask[]; | ||
@@ -903,3 +905,4 @@ } | ||
Undefined = 0, | ||
DeploymentGroupRedeploy = 1 | ||
DeploymentGroupRedeploy = 1, | ||
RollbackRedeploy = 2 | ||
} | ||
@@ -2342,2 +2345,6 @@ | ||
export interface TagFilter { | ||
pattern: string; | ||
} | ||
export interface TaskOrchestrationPlanGroupReference { | ||
@@ -2344,0 +2351,0 @@ planGroup: string; |
@@ -375,2 +375,6 @@ /* | ||
/** | ||
* Owner of the endpoint Supported values are "library", "agentcloud" | ||
*/ | ||
owner: string; | ||
/** | ||
* Gets or sets the identity reference for the readers group of the service endpoint. | ||
@@ -377,0 +381,0 @@ */ |
@@ -537,2 +537,6 @@ /* | ||
/** | ||
* Additional data that needs to be sent as part of notification to complement the Resource data in the Event | ||
*/ | ||
notificationData: { [key: string] : string; }; | ||
/** | ||
* Gets or sets the array of older supported resource versions. | ||
@@ -539,0 +543,0 @@ */ |
@@ -563,2 +563,65 @@ /* | ||
/** | ||
* Environment. | ||
*/ | ||
export interface Environment { | ||
/** | ||
* Identity reference of the user who created the Environment. | ||
*/ | ||
createdBy: WebApi.IdentityRef; | ||
/** | ||
* Creation time of the Environment | ||
*/ | ||
createdOn: Date; | ||
/** | ||
* Description of the Environment. | ||
*/ | ||
description: string; | ||
/** | ||
* Id of the Environment | ||
*/ | ||
id: number; | ||
/** | ||
* Identity reference of the user who last modified the Environment. | ||
*/ | ||
lastModifiedBy: WebApi.IdentityRef; | ||
/** | ||
* Last modified time of the Environment | ||
*/ | ||
lastModifiedOn: Date; | ||
/** | ||
* Name of the Environment. | ||
*/ | ||
name: string; | ||
serviceGroups: ServiceGroupReference[]; | ||
} | ||
/** | ||
* Properties to create Environment. | ||
*/ | ||
export interface EnvironmentCreateParameter { | ||
/** | ||
* Description of the environment. | ||
*/ | ||
description: string; | ||
/** | ||
* Name of the environment. | ||
*/ | ||
name: string; | ||
} | ||
/** | ||
* Properties to update Environment. | ||
*/ | ||
export interface EnvironmentUpdateParameter { | ||
/** | ||
* Description of the environment. | ||
*/ | ||
description: string; | ||
/** | ||
* Name of the environment. | ||
*/ | ||
name: string; | ||
} | ||
export interface EventsConfig { | ||
@@ -1081,2 +1144,38 @@ } | ||
/** | ||
* ServiceGroupReference. | ||
*/ | ||
export interface ServiceGroupReference { | ||
/** | ||
* Id of the Service Group. | ||
*/ | ||
id: number; | ||
/** | ||
* Name of the service group. | ||
*/ | ||
name: string; | ||
/** | ||
* Type of the service group. | ||
*/ | ||
type: ServiceGroupType; | ||
} | ||
/** | ||
* EnvironmentServiceGroupType. | ||
*/ | ||
export const enum ServiceGroupType { | ||
/** | ||
* Unknown service group type | ||
*/ | ||
Generic = 1, | ||
/** | ||
* Virtual machine service group type | ||
*/ | ||
VirtualMachine = 2, | ||
/** | ||
* AzureKubernetes service group type | ||
*/ | ||
AzureKubernetes = 4 | ||
} | ||
export interface TaskAgent extends TaskAgentReference { | ||
@@ -1206,2 +1305,3 @@ /** | ||
matchedAgents: TaskAgentReference[]; | ||
orchestrationId: string; | ||
owner: TaskOrchestrationOwner; | ||
@@ -2145,2 +2245,3 @@ planGroup: string; | ||
implementation: TaskOrchestrationContainer; | ||
initializationLog: TaskLogReference; | ||
requestedById: string; | ||
@@ -2147,0 +2248,0 @@ requestedForId: string; |
@@ -375,2 +375,28 @@ /* | ||
/** | ||
* Describes a request to get a list of queries | ||
*/ | ||
export interface QueryBatchGetRequest { | ||
/** | ||
* The expand parameters for queries. Possible options are { None, Wiql, Clauses, All, Minimal } | ||
*/ | ||
$expand: QueryExpand; | ||
/** | ||
* The flag to control error policy in a query batch request. Possible options are { Fail, Omit }. | ||
*/ | ||
errorPolicy: QueryErrorPolicy; | ||
/** | ||
* The requested query ids | ||
*/ | ||
ids: string[]; | ||
} | ||
/** | ||
* Enum to control error policy in a query batch request. | ||
*/ | ||
export const enum QueryErrorPolicy { | ||
Fail = 1, | ||
Omit = 2 | ||
} | ||
/** | ||
* Determines which set of additional query properties to display | ||
@@ -377,0 +403,0 @@ */ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3227234
68095