azure-devops-extension-api
Advanced tools
Comparing version 1.146.1 to 1.147.0
@@ -53,2 +53,8 @@ import Identities = require("../Identities/Identities"); | ||
} | ||
export interface ProjectAvatar { | ||
/** | ||
* The avatar image represented as a byte array | ||
*/ | ||
image: number[]; | ||
} | ||
export declare enum ProjectChangeType { | ||
@@ -55,0 +61,0 @@ Modified = 0, |
@@ -10,2 +10,15 @@ import { IVssRestClientOptions } from "../Common/Context"; | ||
/** | ||
* Removes the avatar for the project | ||
* | ||
* @param projectId - The id or name of the project | ||
*/ | ||
removeProjectAvatar(projectId: string): Promise<void>; | ||
/** | ||
* Upload avatar for the project | ||
* | ||
* @param avatarBlob - | ||
* @param projectId - The id or name of the project | ||
*/ | ||
setProjectAvatar(avatarBlob: Core.ProjectAvatar, projectId: string): Promise<void>; | ||
/** | ||
* @param connectedServiceCreationData - | ||
@@ -12,0 +25,0 @@ * @param projectId - |
@@ -60,2 +60,42 @@ /* | ||
/** | ||
* Removes the avatar for the project | ||
* | ||
* @param projectId - The id or name of the project | ||
*/ | ||
CoreRestClient.prototype.removeProjectAvatar = function (projectId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.beginRequest({ | ||
apiVersion: "5.1-preview.1", | ||
method: "DELETE", | ||
routeTemplate: "_apis/projects/{projectId}/avatar", | ||
routeValues: { | ||
projectId: projectId | ||
} | ||
})]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Upload avatar for the project | ||
* | ||
* @param avatarBlob - | ||
* @param projectId - The id or name of the project | ||
*/ | ||
CoreRestClient.prototype.setProjectAvatar = function (avatarBlob, projectId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.beginRequest({ | ||
apiVersion: "5.1-preview.1", | ||
method: "PUT", | ||
routeTemplate: "_apis/projects/{projectId}/avatar", | ||
routeValues: { | ||
projectId: projectId | ||
}, | ||
body: avatarBlob | ||
})]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* @param connectedServiceCreationData - | ||
@@ -62,0 +102,0 @@ * @param projectId - |
@@ -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 u(e){try{s(o.next(e))}catch(e){n(e)}}function a(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(u,a)}s((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(;a;)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 a.label++,{value:r[1],done:!1};case 5:a.label++,i=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],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,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","../Common/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.createConnectedService=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:t},body:e})]})})},t.prototype.getConnectedServiceDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e,name:t}})]})})},t.prototype.getConnectedServices=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={kind:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.createIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.deleteIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t}})]})})},t.prototype.getIdentityMru=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:e}})]})})},t.prototype.updateIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.getTeamMembersWithExtendedProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$top:r,$skip:o},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{teamId}/members",routeValues:{projectId:e,teamId:t},queryParams:i})]})})},t.prototype.getProcessById=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}",routeValues:{processId:e}})]})})},t.prototype.getProcesses=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}"})]})})},t.prototype.getProjectCollection=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",routeValues:{collectionId:e}})]})})},t.prototype.getProjectCollections=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:e,$skip:t},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",queryParams:r})]})})},t.prototype.getProjectHistoryEntries=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={minRevision:e},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projectHistory",queryParams:t})]})})},t.prototype.getProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeCapabilities:t,includeHistory:r},[2,this.beginRequest({apiVersion:"5.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e},queryParams:o})]})})},t.prototype.getProjects=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={stateFilter:e,$top:t,$skip:r,continuationToken:o,getDefaultTeamImageUrl:i},[2,this.beginRequest({apiVersion:"5.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",queryParams:n})]})})},t.prototype.queueCreateProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.4",method:"POST",routeTemplate:"_apis/projects/{*projectId}",body:e})]})})},t.prototype.queueDeleteProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.4",method:"DELETE",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e}})]})})},t.prototype.updateProject=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.4",method:"PATCH",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:t},body:e})]})})},t.prototype.getProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={keys:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.setProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:t})]})})},t.prototype.createOrUpdateProxy=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"PUT",routeTemplate:"_apis/proxies",body:e})]})})},t.prototype.deleteProxy=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={proxyUrl:e,site:t},[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"DELETE",routeTemplate:"_apis/proxies",queryParams:r})]})})},t.prototype.getProxies=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={proxyUrl:e},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/proxies",queryParams:t})]})})},t.prototype.getAllTeams=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$mine:e,$top:t,$skip:r},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/teams",queryParams:o})]})})},t.prototype.createTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t},body:e})]})})},t.prototype.deleteTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeams=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$mine:t,$top:r,$skip:o},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e},queryParams:i})]})})},t.prototype.updateTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t,teamId:r},body:e})]})})},t.RESOURCE_AREA_ID="79134c72-4a58-4b42-976c-04e7115f32bf",t}(r.RestClientBase);t.CoreRestClient=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 u(e){try{s(o.next(e))}catch(e){n(e)}}function a(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(u,a)}s((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(;a;)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 a.label++,{value:r[1],done:!1};case 5:a.label++,i=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],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,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","../Common/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.removeProjectAvatar=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:e}})]})})},t.prototype.setProjectAvatar=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:t},body:e})]})})},t.prototype.createConnectedService=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:t},body:e})]})})},t.prototype.getConnectedServiceDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e,name:t}})]})})},t.prototype.getConnectedServices=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={kind:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.createIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.deleteIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t}})]})})},t.prototype.getIdentityMru=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:e}})]})})},t.prototype.updateIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.getTeamMembersWithExtendedProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$top:r,$skip:o},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{teamId}/members",routeValues:{projectId:e,teamId:t},queryParams:i})]})})},t.prototype.getProcessById=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}",routeValues:{processId:e}})]})})},t.prototype.getProcesses=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}"})]})})},t.prototype.getProjectCollection=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",routeValues:{collectionId:e}})]})})},t.prototype.getProjectCollections=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:e,$skip:t},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",queryParams:r})]})})},t.prototype.getProjectHistoryEntries=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={minRevision:e},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projectHistory",queryParams:t})]})})},t.prototype.getProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeCapabilities:t,includeHistory:r},[2,this.beginRequest({apiVersion:"5.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e},queryParams:o})]})})},t.prototype.getProjects=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={stateFilter:e,$top:t,$skip:r,continuationToken:o,getDefaultTeamImageUrl:i},[2,this.beginRequest({apiVersion:"5.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",queryParams:n})]})})},t.prototype.queueCreateProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.4",method:"POST",routeTemplate:"_apis/projects/{*projectId}",body:e})]})})},t.prototype.queueDeleteProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.4",method:"DELETE",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e}})]})})},t.prototype.updateProject=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.4",method:"PATCH",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:t},body:e})]})})},t.prototype.getProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={keys:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.setProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:t})]})})},t.prototype.createOrUpdateProxy=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"PUT",routeTemplate:"_apis/proxies",body:e})]})})},t.prototype.deleteProxy=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={proxyUrl:e,site:t},[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"DELETE",routeTemplate:"_apis/proxies",queryParams:r})]})})},t.prototype.getProxies=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={proxyUrl:e},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/proxies",queryParams:t})]})})},t.prototype.getAllTeams=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$mine:e,$top:t,$skip:r},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/teams",queryParams:o})]})})},t.prototype.createTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t},body:e})]})})},t.prototype.deleteTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeams=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$mine:t,$top:r,$skip:o},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e},queryParams:i})]})})},t.prototype.updateTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t,teamId:r},body:e})]})})},t.RESOURCE_AREA_ID="79134c72-4a58-4b42-976c-04e7115f32bf",t}(r.RestClientBase);t.CoreRestClient=o}); |
@@ -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","../Common/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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/commits/{commitId}/mergeBases",routeValues:{project:o,repositoryNameOrId:e,commitId:t},queryParams:u})]})})},t.prototype.createMergeRequest=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.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/merges/{mergeOperationId}",routeValues:{project:t,repositoryNameOrId:r},queryParams:i,body:e})]})})},t.prototype.getMergeRequest=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.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/merges/{mergeOperationId}",routeValues:{project:e,repositoryNameOrId:t,mergeOperationId:r},queryParams:i})]})})},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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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","../Common/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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/commits/{commitId}/mergeBases",routeValues:{project:o,repositoryNameOrId:e,commitId:t},queryParams:u})]})})},t.prototype.createMergeRequest=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.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/merges/{mergeOperationId}",routeValues:{project:t,repositoryNameOrId:r},queryParams:i,body:e})]})})},t.prototype.getMergeRequest=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.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/merges/{mergeOperationId}",routeValues:{project:e,repositoryNameOrId:t,mergeOperationId:r},queryParams:i})]})})},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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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,i,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(n){return u={top:i,skip:s},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/commits",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r},queryParams:u})]})})},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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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.1-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}); |
export * from "./Git"; | ||
export * from "./GitClient"; | ||
export * from "./GitServices"; |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "./Git", "./GitClient"], function (require, exports, Git_1, GitClient_1) { | ||
define(["require", "exports", "./Git", "./GitClient", "./GitServices"], function (require, exports, Git_1, GitClient_1, GitServices_1) { | ||
"use strict"; | ||
@@ -9,2 +9,3 @@ function __export(m) { | ||
__export(GitClient_1); | ||
__export(GitServices_1); | ||
}); |
@@ -1,1 +0,1 @@ | ||
define(["require","exports","./Git","./GitClient"],function(e,t,i,r){"use strict";function n(e){for(var i in e)t.hasOwnProperty(i)||(t[i]=e[i])}Object.defineProperty(t,"__esModule",{value:!0}),n(i),n(r)}); | ||
define(["require","exports","./Git","./GitClient","./GitServices"],function(e,i,t,r,n){"use strict";function o(e){for(var t in e)i.hasOwnProperty(t)||(i[t]=e[t])}Object.defineProperty(i,"__esModule",{value:!0}),o(t),o(r),o(n)}); |
@@ -1017,3 +1017,7 @@ import FormInput = require("../FormInput/FormInput"); | ||
*/ | ||
TeamSubscription = 8 | ||
TeamSubscription = 8, | ||
/** | ||
* For role based subscriptions, there is an expectation that there will always be at least one actor that matches | ||
*/ | ||
OneActorMatches = 16 | ||
} | ||
@@ -1020,0 +1024,0 @@ /** |
@@ -217,2 +217,6 @@ /* | ||
SubscriptionFlags[SubscriptionFlags["TeamSubscription"] = 8] = "TeamSubscription"; | ||
/** | ||
* For role based subscriptions, there is an expectation that there will always be at least one actor that matches | ||
*/ | ||
SubscriptionFlags[SubscriptionFlags["OneActorMatches"] = 16] = "OneActorMatches"; | ||
})(SubscriptionFlags = exports.SubscriptionFlags || (exports.SubscriptionFlags = {})); | ||
@@ -219,0 +223,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.NoDelivery=-1]="NoDelivery",e[e.EachMember=2]="EachMember"}(i.DefaultGroupDeliveryPreference||(i.DefaultGroupDeliveryPreference={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Queued=1]="Queued",e[e.InProgress=2]="InProgress",e[e.Cancelled=3]="Cancelled",e[e.Succeeded=4]="Succeeded",e[e.Failed=5]="Failed",e[e.TimedOut=6]="TimedOut",e[e.NotFound=7]="NotFound"}(i.EvaluationOperationStatus||(i.EvaluationOperationStatus={}));!function(e){e[e.None=0]="None",e[e.IncludeRemoteServices=2]="IncludeRemoteServices"}(i.EventPublisherQueryFlags||(i.EventPublisherQueryFlags={}));!function(e){e[e.None=0]="None",e[e.IncludeFields=1]="IncludeFields"}(i.EventTypeQueryFlags||(i.EventTypeQueryFlags={}));!function(e){e[e.None=0]="None",e[e.SuspendUnprocessed=1]="SuspendUnprocessed"}(i.NotificationOperation||(i.NotificationOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Follows=1]="Follows",e[e.Personal=2]="Personal",e[e.PersonalAlias=3]="PersonalAlias",e[e.DirectMember=4]="DirectMember",e[e.IndirectMember=5]="IndirectMember",e[e.GroupAlias=6]="GroupAlias",e[e.SubscriptionAlias=7]="SubscriptionAlias",e[e.SingleRole=8]="SingleRole",e[e.DirectMemberGroupRole=9]="DirectMemberGroupRole",e[e.InDirectMemberGroupRole=10]="InDirectMemberGroupRole",e[e.AliasMemberGroupRole=11]="AliasMemberGroupRole"}(i.NotificationReasonType||(i.NotificationReasonType={}));!function(e){e[e.NotificationBySubscription=0]="NotificationBySubscription",e[e.EventsByEventType=1]="EventsByEventType",e[e.NotificationByEventType=2]="NotificationByEventType",e[e.EventsByEventTypePerUser=3]="EventsByEventTypePerUser",e[e.NotificationByEventTypePerUser=4]="NotificationByEventTypePerUser",e[e.Events=5]="Events",e[e.Notifications=6]="Notifications",e[e.NotificationFailureBySubscription=7]="NotificationFailureBySubscription",e[e.UnprocessedRangeStart=100]="UnprocessedRangeStart",e[e.UnprocessedEventsByPublisher=101]="UnprocessedEventsByPublisher",e[e.UnprocessedEventDelayByPublisher=102]="UnprocessedEventDelayByPublisher",e[e.UnprocessedNotificationsByChannelByPublisher=103]="UnprocessedNotificationsByChannelByPublisher",e[e.UnprocessedNotificationDelayByChannelByPublisher=104]="UnprocessedNotificationDelayByChannelByPublisher",e[e.DelayRangeStart=200]="DelayRangeStart",e[e.TotalPipelineTime=201]="TotalPipelineTime",e[e.NotificationPipelineTime=202]="NotificationPipelineTime",e[e.EventPipelineTime=203]="EventPipelineTime",e[e.HourlyRangeStart=1e3]="HourlyRangeStart",e[e.HourlyNotificationBySubscription=1001]="HourlyNotificationBySubscription",e[e.HourlyEventsByEventTypePerUser=1002]="HourlyEventsByEventTypePerUser",e[e.HourlyEvents=1003]="HourlyEvents",e[e.HourlyNotifications=1004]="HourlyNotifications",e[e.HourlyUnprocessedEventsByPublisher=1101]="HourlyUnprocessedEventsByPublisher",e[e.HourlyUnprocessedEventDelayByPublisher=1102]="HourlyUnprocessedEventDelayByPublisher",e[e.HourlyUnprocessedNotificationsByChannelByPublisher=1103]="HourlyUnprocessedNotificationsByChannelByPublisher",e[e.HourlyUnprocessedNotificationDelayByChannelByPublisher=1104]="HourlyUnprocessedNotificationDelayByChannelByPublisher",e[e.HourlyTotalPipelineTime=1201]="HourlyTotalPipelineTime",e[e.HourlyNotificationPipelineTime=1202]="HourlyNotificationPipelineTime",e[e.HourlyEventPipelineTime=1203]="HourlyEventPipelineTime"}(i.NotificationStatisticType||(i.NotificationStatisticType={}));!function(e){e[e.NoDelivery=-1]="NoDelivery",e[e.PreferredEmailAddress=1]="PreferredEmailAddress",e[e.EachMember=2]="EachMember",e[e.UseDefault=3]="UseDefault"}(i.NotificationSubscriberDeliveryPreference||(i.NotificationSubscriberDeliveryPreference={}));!function(e){e[e.None=0]="None",e[e.DeliveryPreferencesEditable=2]="DeliveryPreferencesEditable",e[e.SupportsPreferredEmailAddressDelivery=4]="SupportsPreferredEmailAddressDelivery",e[e.SupportsEachMemberDelivery=8]="SupportsEachMemberDelivery",e[e.SupportsNoDelivery=16]="SupportsNoDelivery",e[e.IsUser=32]="IsUser",e[e.IsGroup=64]="IsGroup",e[e.IsTeam=128]="IsTeam"}(i.SubscriberFlags||(i.SubscriberFlags={}));!function(e){e[e.String=1]="String",e[e.Integer=2]="Integer",e[e.DateTime=3]="DateTime",e[e.PlainText=5]="PlainText",e[e.Html=7]="Html",e[e.TreePath=8]="TreePath",e[e.History=9]="History",e[e.Double=10]="Double",e[e.Guid=11]="Guid",e[e.Boolean=12]="Boolean",e[e.Identity=13]="Identity",e[e.PicklistInteger=14]="PicklistInteger",e[e.PicklistString=15]="PicklistString",e[e.PicklistDouble=16]="PicklistDouble",e[e.TeamProject=17]="TeamProject"}(i.SubscriptionFieldType||(i.SubscriptionFieldType={}));!function(e){e[e.None=0]="None",e[e.GroupSubscription=1]="GroupSubscription",e[e.ContributedSubscription=2]="ContributedSubscription",e[e.CanOptOut=4]="CanOptOut",e[e.TeamSubscription=8]="TeamSubscription"}(i.SubscriptionFlags||(i.SubscriptionFlags={}));!function(e){e[e.None=0]="None",e[e.View=1]="View",e[e.Edit=2]="Edit",e[e.Delete=4]="Delete"}(i.SubscriptionPermissions||(i.SubscriptionPermissions={}));!function(e){e[e.None=0]="None",e[e.IncludeInvalidSubscriptions=2]="IncludeInvalidSubscriptions",e[e.IncludeDeletedSubscriptions=4]="IncludeDeletedSubscriptions",e[e.IncludeFilterDetails=8]="IncludeFilterDetails",e[e.AlwaysReturnBasicInformation=16]="AlwaysReturnBasicInformation",e[e.IncludeSystemSubscriptions=32]="IncludeSystemSubscriptions"}(i.SubscriptionQueryFlags||(i.SubscriptionQueryFlags={}));!function(e){e[e.JailedByNotificationsVolume=-200]="JailedByNotificationsVolume",e[e.PendingDeletion=-100]="PendingDeletion",e[e.DisabledArgumentException=-12]="DisabledArgumentException",e[e.DisabledProjectInvalid=-11]="DisabledProjectInvalid",e[e.DisabledMissingPermissions=-10]="DisabledMissingPermissions",e[e.DisabledFromProbation=-9]="DisabledFromProbation",e[e.DisabledInactiveIdentity=-8]="DisabledInactiveIdentity",e[e.DisabledMessageQueueNotSupported=-7]="DisabledMessageQueueNotSupported",e[e.DisabledMissingIdentity=-6]="DisabledMissingIdentity",e[e.DisabledInvalidRoleExpression=-5]="DisabledInvalidRoleExpression",e[e.DisabledInvalidPathClause=-4]="DisabledInvalidPathClause",e[e.DisabledAsDuplicateOfDefault=-3]="DisabledAsDuplicateOfDefault",e[e.DisabledByAdmin=-2]="DisabledByAdmin",e[e.Disabled=-1]="Disabled",e[e.Enabled=0]="Enabled",e[e.EnabledOnProbation=1]="EnabledOnProbation"}(i.SubscriptionStatus||(i.SubscriptionStatus={}));!function(e){e[e.None=0]="None",e[e.IncludeUser=1]="IncludeUser",e[e.IncludeGroup=2]="IncludeGroup",e[e.IncludeUserAndGroup=4]="IncludeUserAndGroup",e[e.IncludeEventTypeInformation=22]="IncludeEventTypeInformation"}(i.SubscriptionTemplateQueryFlags||(i.SubscriptionTemplateQueryFlags={}));!function(e){e[e.User=0]="User",e[e.Team=1]="Team",e[e.Both=2]="Both",e[e.None=3]="None"}(i.SubscriptionTemplateType||(i.SubscriptionTemplateType={}))}); | ||
define(["require","exports"],function(e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});!function(e){e[e.NoDelivery=-1]="NoDelivery",e[e.EachMember=2]="EachMember"}(i.DefaultGroupDeliveryPreference||(i.DefaultGroupDeliveryPreference={}));!function(e){e[e.NotSet=0]="NotSet",e[e.Queued=1]="Queued",e[e.InProgress=2]="InProgress",e[e.Cancelled=3]="Cancelled",e[e.Succeeded=4]="Succeeded",e[e.Failed=5]="Failed",e[e.TimedOut=6]="TimedOut",e[e.NotFound=7]="NotFound"}(i.EvaluationOperationStatus||(i.EvaluationOperationStatus={}));!function(e){e[e.None=0]="None",e[e.IncludeRemoteServices=2]="IncludeRemoteServices"}(i.EventPublisherQueryFlags||(i.EventPublisherQueryFlags={}));!function(e){e[e.None=0]="None",e[e.IncludeFields=1]="IncludeFields"}(i.EventTypeQueryFlags||(i.EventTypeQueryFlags={}));!function(e){e[e.None=0]="None",e[e.SuspendUnprocessed=1]="SuspendUnprocessed"}(i.NotificationOperation||(i.NotificationOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Follows=1]="Follows",e[e.Personal=2]="Personal",e[e.PersonalAlias=3]="PersonalAlias",e[e.DirectMember=4]="DirectMember",e[e.IndirectMember=5]="IndirectMember",e[e.GroupAlias=6]="GroupAlias",e[e.SubscriptionAlias=7]="SubscriptionAlias",e[e.SingleRole=8]="SingleRole",e[e.DirectMemberGroupRole=9]="DirectMemberGroupRole",e[e.InDirectMemberGroupRole=10]="InDirectMemberGroupRole",e[e.AliasMemberGroupRole=11]="AliasMemberGroupRole"}(i.NotificationReasonType||(i.NotificationReasonType={}));!function(e){e[e.NotificationBySubscription=0]="NotificationBySubscription",e[e.EventsByEventType=1]="EventsByEventType",e[e.NotificationByEventType=2]="NotificationByEventType",e[e.EventsByEventTypePerUser=3]="EventsByEventTypePerUser",e[e.NotificationByEventTypePerUser=4]="NotificationByEventTypePerUser",e[e.Events=5]="Events",e[e.Notifications=6]="Notifications",e[e.NotificationFailureBySubscription=7]="NotificationFailureBySubscription",e[e.UnprocessedRangeStart=100]="UnprocessedRangeStart",e[e.UnprocessedEventsByPublisher=101]="UnprocessedEventsByPublisher",e[e.UnprocessedEventDelayByPublisher=102]="UnprocessedEventDelayByPublisher",e[e.UnprocessedNotificationsByChannelByPublisher=103]="UnprocessedNotificationsByChannelByPublisher",e[e.UnprocessedNotificationDelayByChannelByPublisher=104]="UnprocessedNotificationDelayByChannelByPublisher",e[e.DelayRangeStart=200]="DelayRangeStart",e[e.TotalPipelineTime=201]="TotalPipelineTime",e[e.NotificationPipelineTime=202]="NotificationPipelineTime",e[e.EventPipelineTime=203]="EventPipelineTime",e[e.HourlyRangeStart=1e3]="HourlyRangeStart",e[e.HourlyNotificationBySubscription=1001]="HourlyNotificationBySubscription",e[e.HourlyEventsByEventTypePerUser=1002]="HourlyEventsByEventTypePerUser",e[e.HourlyEvents=1003]="HourlyEvents",e[e.HourlyNotifications=1004]="HourlyNotifications",e[e.HourlyUnprocessedEventsByPublisher=1101]="HourlyUnprocessedEventsByPublisher",e[e.HourlyUnprocessedEventDelayByPublisher=1102]="HourlyUnprocessedEventDelayByPublisher",e[e.HourlyUnprocessedNotificationsByChannelByPublisher=1103]="HourlyUnprocessedNotificationsByChannelByPublisher",e[e.HourlyUnprocessedNotificationDelayByChannelByPublisher=1104]="HourlyUnprocessedNotificationDelayByChannelByPublisher",e[e.HourlyTotalPipelineTime=1201]="HourlyTotalPipelineTime",e[e.HourlyNotificationPipelineTime=1202]="HourlyNotificationPipelineTime",e[e.HourlyEventPipelineTime=1203]="HourlyEventPipelineTime"}(i.NotificationStatisticType||(i.NotificationStatisticType={}));!function(e){e[e.NoDelivery=-1]="NoDelivery",e[e.PreferredEmailAddress=1]="PreferredEmailAddress",e[e.EachMember=2]="EachMember",e[e.UseDefault=3]="UseDefault"}(i.NotificationSubscriberDeliveryPreference||(i.NotificationSubscriberDeliveryPreference={}));!function(e){e[e.None=0]="None",e[e.DeliveryPreferencesEditable=2]="DeliveryPreferencesEditable",e[e.SupportsPreferredEmailAddressDelivery=4]="SupportsPreferredEmailAddressDelivery",e[e.SupportsEachMemberDelivery=8]="SupportsEachMemberDelivery",e[e.SupportsNoDelivery=16]="SupportsNoDelivery",e[e.IsUser=32]="IsUser",e[e.IsGroup=64]="IsGroup",e[e.IsTeam=128]="IsTeam"}(i.SubscriberFlags||(i.SubscriberFlags={}));!function(e){e[e.String=1]="String",e[e.Integer=2]="Integer",e[e.DateTime=3]="DateTime",e[e.PlainText=5]="PlainText",e[e.Html=7]="Html",e[e.TreePath=8]="TreePath",e[e.History=9]="History",e[e.Double=10]="Double",e[e.Guid=11]="Guid",e[e.Boolean=12]="Boolean",e[e.Identity=13]="Identity",e[e.PicklistInteger=14]="PicklistInteger",e[e.PicklistString=15]="PicklistString",e[e.PicklistDouble=16]="PicklistDouble",e[e.TeamProject=17]="TeamProject"}(i.SubscriptionFieldType||(i.SubscriptionFieldType={}));!function(e){e[e.None=0]="None",e[e.GroupSubscription=1]="GroupSubscription",e[e.ContributedSubscription=2]="ContributedSubscription",e[e.CanOptOut=4]="CanOptOut",e[e.TeamSubscription=8]="TeamSubscription",e[e.OneActorMatches=16]="OneActorMatches"}(i.SubscriptionFlags||(i.SubscriptionFlags={}));!function(e){e[e.None=0]="None",e[e.View=1]="View",e[e.Edit=2]="Edit",e[e.Delete=4]="Delete"}(i.SubscriptionPermissions||(i.SubscriptionPermissions={}));!function(e){e[e.None=0]="None",e[e.IncludeInvalidSubscriptions=2]="IncludeInvalidSubscriptions",e[e.IncludeDeletedSubscriptions=4]="IncludeDeletedSubscriptions",e[e.IncludeFilterDetails=8]="IncludeFilterDetails",e[e.AlwaysReturnBasicInformation=16]="AlwaysReturnBasicInformation",e[e.IncludeSystemSubscriptions=32]="IncludeSystemSubscriptions"}(i.SubscriptionQueryFlags||(i.SubscriptionQueryFlags={}));!function(e){e[e.JailedByNotificationsVolume=-200]="JailedByNotificationsVolume",e[e.PendingDeletion=-100]="PendingDeletion",e[e.DisabledArgumentException=-12]="DisabledArgumentException",e[e.DisabledProjectInvalid=-11]="DisabledProjectInvalid",e[e.DisabledMissingPermissions=-10]="DisabledMissingPermissions",e[e.DisabledFromProbation=-9]="DisabledFromProbation",e[e.DisabledInactiveIdentity=-8]="DisabledInactiveIdentity",e[e.DisabledMessageQueueNotSupported=-7]="DisabledMessageQueueNotSupported",e[e.DisabledMissingIdentity=-6]="DisabledMissingIdentity",e[e.DisabledInvalidRoleExpression=-5]="DisabledInvalidRoleExpression",e[e.DisabledInvalidPathClause=-4]="DisabledInvalidPathClause",e[e.DisabledAsDuplicateOfDefault=-3]="DisabledAsDuplicateOfDefault",e[e.DisabledByAdmin=-2]="DisabledByAdmin",e[e.Disabled=-1]="Disabled",e[e.Enabled=0]="Enabled",e[e.EnabledOnProbation=1]="EnabledOnProbation"}(i.SubscriptionStatus||(i.SubscriptionStatus={}));!function(e){e[e.None=0]="None",e[e.IncludeUser=1]="IncludeUser",e[e.IncludeGroup=2]="IncludeGroup",e[e.IncludeUserAndGroup=4]="IncludeUserAndGroup",e[e.IncludeEventTypeInformation=22]="IncludeEventTypeInformation"}(i.SubscriptionTemplateQueryFlags||(i.SubscriptionTemplateQueryFlags={}));!function(e){e[e.User=0]="User",e[e.Team=1]="Team",e[e.Both=2]="Both",e[e.None=3]="None"}(i.SubscriptionTemplateType||(i.SubscriptionTemplateType={}))}); |
{ | ||
"name": "azure-devops-extension-api", | ||
"version": "1.146.1", | ||
"version": "1.147.0", | ||
"description": "REST client libraries and contracts for Azure DevOps web extension developers.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -32,48 +32,2 @@ /* | ||
})(AadLoginPromptOption = exports.AadLoginPromptOption || (exports.AadLoginPromptOption = {})); | ||
var ApprovalExecutionOrder; | ||
(function (ApprovalExecutionOrder) { | ||
/** | ||
* Indicates that the approvers can approve in any order. | ||
*/ | ||
ApprovalExecutionOrder[ApprovalExecutionOrder["AnyOrder"] = 0] = "AnyOrder"; | ||
/** | ||
* Indicates that the approvers can approve in sequential order. | ||
*/ | ||
ApprovalExecutionOrder[ApprovalExecutionOrder["InSequence"] = 1] = "InSequence"; | ||
})(ApprovalExecutionOrder = exports.ApprovalExecutionOrder || (exports.ApprovalExecutionOrder = {})); | ||
/** | ||
* Status of an approval as a whole or of an individual step. | ||
*/ | ||
var ApprovalStatus; | ||
(function (ApprovalStatus) { | ||
ApprovalStatus[ApprovalStatus["Undefined"] = 0] = "Undefined"; | ||
/** | ||
* Indicates the approval is Uninitiated. Used in case of in sequence order of execution where given approver is not yet actionable. | ||
*/ | ||
ApprovalStatus[ApprovalStatus["Uninitiated"] = 1] = "Uninitiated"; | ||
/** | ||
* Indicates the approval is Pending. | ||
*/ | ||
ApprovalStatus[ApprovalStatus["Pending"] = 2] = "Pending"; | ||
/** | ||
* Indicates the approval is Approved. | ||
*/ | ||
ApprovalStatus[ApprovalStatus["Approved"] = 4] = "Approved"; | ||
/** | ||
* Indicates the approval is Rejected. | ||
*/ | ||
ApprovalStatus[ApprovalStatus["Rejected"] = 8] = "Rejected"; | ||
/** | ||
* Indicates the approval is Reassigned. | ||
*/ | ||
ApprovalStatus[ApprovalStatus["Reassigned"] = 16] = "Reassigned"; | ||
/** | ||
* Indicates the approval is Skipped. | ||
*/ | ||
ApprovalStatus[ApprovalStatus["Skipped"] = 32] = "Skipped"; | ||
/** | ||
* Indicates the approval is Canceled. | ||
*/ | ||
ApprovalStatus[ApprovalStatus["Canceled"] = 64] = "Canceled"; | ||
})(ApprovalStatus = exports.ApprovalStatus || (exports.ApprovalStatus = {})); | ||
var AuditAction; | ||
@@ -80,0 +34,0 @@ (function (AuditAction) { |
@@ -1,1 +0,1 @@ | ||
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.AnyOrder=0]="AnyOrder",e[e.InSequence=1]="InSequence"}(n.ApprovalExecutionOrder||(n.ApprovalExecutionOrder={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Uninitiated=1]="Uninitiated",e[e.Pending=2]="Pending",e[e.Approved=4]="Approved",e[e.Rejected=8]="Rejected",e[e.Reassigned=16]="Reassigned",e[e.Skipped=32]="Skipped",e[e.Canceled=64]="Canceled"}(n.ApprovalStatus||(n.ApprovalStatus={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.ServiceGroupReferences=1]="ServiceGroupReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.ServiceGroupType||(n.ServiceGroupType={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}))}); | ||
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.NoOption=0]="NoOption",e[e.Login=1]="Login",e[e.SelectAccount=2]="SelectAccount",e[e.FreshLogin=3]="FreshLogin",e[e.FreshLoginWithMfa=4]="FreshLoginWithMfa"}(n.AadLoginPromptOption||(n.AadLoginPromptOption={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.DeploymentGroupActionFilter||(n.DeploymentGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.Machines=2]="Machines",e[e.Tags=4]="Tags"}(n.DeploymentGroupExpands||(n.DeploymentGroupExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest"}(n.DeploymentMachineExpands||(n.DeploymentMachineExpands={}));!function(e){e[e.None=0]="None",e[e.DeploymentGroups=2]="DeploymentGroups"}(n.DeploymentPoolSummaryExpands||(n.DeploymentPoolSummaryExpands={}));!function(e){e[e.None=0]="None",e[e.Capabilities=2]="Capabilities",e[e.AssignedRequest=4]="AssignedRequest",e[e.LastCompletedRequest=8]="LastCompletedRequest"}(n.DeploymentTargetExpands||(n.DeploymentTargetExpands={}));!function(e){e[e.None=0]="None",e[e.ServiceGroupReferences=1]="ServiceGroupReferences"}(n.EnvironmentExpands||(n.EnvironmentExpands={}));!function(e){e[e.Error=1]="Error",e[e.Warning=2]="Warning"}(n.IssueType||(n.IssueType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.MachineGroupActionFilter||(n.MachineGroupActionFilter={}));!function(e){e[e.Variable=1]="Variable",e[e.Regex=2]="Regex"}(n.MaskType||(n.MaskType={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatus||(n.PlanGroupStatus={}));!function(e){e[e.Running=1]="Running",e[e.Queued=2]="Queued",e[e.All=3]="All"}(n.PlanGroupStatusFilter||(n.PlanGroupStatusFilter={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.SecureFileActionFilter||(n.SecureFileActionFilter={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Generic=1]="Generic",e[e.VirtualMachine=2]="VirtualMachine",e[e.Kubernetes=4]="Kubernetes"}(n.ServiceGroupType||(n.ServiceGroupType={}));!function(e){e[e.Failed=1]="Failed",e[e.Passed=2]="Passed",e[e.NeverDeployed=4]="NeverDeployed",e[e.All=7]="All"}(n.TaskAgentJobResultFilter||(n.TaskAgentJobResultFilter={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentPoolActionFilter||(n.TaskAgentPoolActionFilter={}));!function(e){e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Canceled=4]="Canceled"}(n.TaskAgentPoolMaintenanceJobResult||(n.TaskAgentPoolMaintenanceJobResult={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Cancelling=4]="Cancelling",e[e.Queued=8]="Queued"}(n.TaskAgentPoolMaintenanceJobStatus||(n.TaskAgentPoolMaintenanceJobStatus={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.TaskAgentPoolMaintenanceScheduleDays||(n.TaskAgentPoolMaintenanceScheduleDays={}));!function(e){e[e.Automation=1]="Automation",e[e.Deployment=2]="Deployment"}(n.TaskAgentPoolType||(n.TaskAgentPoolType={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.TaskAgentQueueActionFilter||(n.TaskAgentQueueActionFilter={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online"}(n.TaskAgentStatus||(n.TaskAgentStatus={}));!function(e){e[e.Offline=1]="Offline",e[e.Online=2]="Online",e[e.All=3]="All"}(n.TaskAgentStatusFilter||(n.TaskAgentStatusFilter={}));!function(e){e[e.Manual=1]="Manual",e[e.MinAgentVersionRequired=2]="MinAgentVersionRequired"}(n.TaskAgentUpdateReasonType||(n.TaskAgentUpdateReasonType={}));!function(e){e[e.Preinstalled=1]="Preinstalled",e[e.ReceivedInstallOrUpdate=2]="ReceivedInstallOrUpdate",e[e.Installed=3]="Installed",e[e.ReceivedUninstall=4]="ReceivedUninstall",e[e.Uninstalled=5]="Uninstalled",e[e.RequestedUpdate=6]="RequestedUpdate",e[e.Updated=7]="Updated",e[e.AlreadyUpToDate=8]="AlreadyUpToDate",e[e.InlineUpdateReceived=9]="InlineUpdateReceived"}(n.TaskDefinitionStatus||(n.TaskDefinitionStatus={}));!function(e){e[e.None=0]="None",e[e.Tasks=2]="Tasks"}(n.TaskGroupExpands||(n.TaskGroupExpands={}));!function(e){e[e.CreatedOnAscending=0]="CreatedOnAscending",e[e.CreatedOnDescending=1]="CreatedOnDescending"}(n.TaskGroupQueryOrder||(n.TaskGroupQueryOrder={}));!function(e){e[e.Container=0]="Container",e[e.Job=1]="Job"}(n.TaskOrchestrationItemType||(n.TaskOrchestrationItemType={}));!function(e){e[e.InProgress=1]="InProgress",e[e.Queued=2]="Queued",e[e.Completed=4]="Completed"}(n.TaskOrchestrationPlanState||(n.TaskOrchestrationPlanState={}));!function(e){e[e.Succeeded=0]="Succeeded",e[e.SucceededWithIssues=1]="SucceededWithIssues",e[e.Failed=2]="Failed",e[e.Canceled=3]="Canceled",e[e.Skipped=4]="Skipped",e[e.Abandoned=5]="Abandoned"}(n.TaskResult||(n.TaskResult={}));!function(e){e[e.Pending=0]="Pending",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(n.TimelineRecordState||(n.TimelineRecordState={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending"}(n.VariableGroupQueryOrder||(n.VariableGroupQueryOrder={}))}); |
@@ -78,39 +78,2 @@ import { IVssRestClientOptions } from "../Common/Context"; | ||
/** | ||
* Create an approval. | ||
* | ||
* @param config - | ||
* @param project - Project ID or project name | ||
* @param approvalId - Id of the approval. | ||
*/ | ||
createApproval(config: TaskAgent.ApprovalConfig, project: string, approvalId: string): Promise<TaskAgent.Approval>; | ||
/** | ||
* Get an approval. | ||
* | ||
* @param project - Project ID or project name | ||
* @param approvalId - Id of the approval. | ||
*/ | ||
getApproval(project: string, approvalId: string): Promise<TaskAgent.Approval>; | ||
/** | ||
* Query approval steps. | ||
* | ||
* @param queryParameters - | ||
* @param project - Project ID or project name | ||
*/ | ||
querySteps(queryParameters: TaskAgent.ApprovalStepQueryParameters, project: string): Promise<TaskAgent.ApprovalStep[]>; | ||
/** | ||
* Update an approval. | ||
* | ||
* @param updateParameter - | ||
* @param project - Project ID or project name | ||
* @param approvalId - | ||
*/ | ||
updateApproval(updateParameter: TaskAgent.ApprovalStatusUpdateParameter, project: string, approvalId: string): Promise<TaskAgent.Approval>; | ||
/** | ||
* Update approval steps. | ||
* | ||
* @param updateParameters - | ||
* @param project - Project ID or project name | ||
*/ | ||
updateSteps(updateParameters: TaskAgent.ApprovalStatusUpdateParameter[], project: string): Promise<TaskAgent.ApprovalStep[]>; | ||
/** | ||
* Returns list of azure subscriptions | ||
@@ -250,24 +213,11 @@ * | ||
/** | ||
* Add an environment deployment execution history record. | ||
* | ||
* @param executionRecord - | ||
*/ | ||
addEnvironmentDeploymentExecutionRecord(executionRecord: TaskAgent.EnvironmentDeploymentExecutionRecord): Promise<TaskAgent.EnvironmentDeploymentExecutionRecord>; | ||
/** | ||
* Get environment deployment execution history | ||
* | ||
* @param project - Project ID or project name | ||
* @param environmentId - | ||
* @param scopeId - | ||
* @param serviceGroupId - | ||
* @param continuationToken - | ||
* @param top - | ||
*/ | ||
getEnvironmentDeploymentExecutionRecords(environmentId: number, scopeId?: string, serviceGroupId?: number, continuationToken?: string, top?: number): Promise<TaskAgent.EnvironmentDeploymentExecutionRecord[]>; | ||
getEnvironmentDeploymentExecutionRecords(project: string, environmentId: number, continuationToken?: string, top?: number): Promise<TaskAgent.EnvironmentDeploymentExecutionRecord[]>; | ||
/** | ||
* Updates environment deployment execution record | ||
* | ||
* @param executionRecord - Environment deployment execution record to update. | ||
*/ | ||
updateEnvironmentDeploymentExecutionRecord(executionRecord: TaskAgent.EnvironmentDeploymentExecutionRecord): Promise<TaskAgent.EnvironmentDeploymentExecutionRecord>; | ||
/** | ||
* Create an environment. | ||
@@ -336,4 +286,5 @@ * | ||
* @param requestId - | ||
* @param includeStatus - | ||
*/ | ||
getAgentRequest(poolId: number, requestId: number): Promise<TaskAgent.TaskAgentJobRequest>; | ||
getAgentRequest(poolId: number, requestId: number, includeStatus?: boolean): Promise<TaskAgent.TaskAgentJobRequest>; | ||
/** | ||
@@ -380,3 +331,3 @@ * @param poolId - | ||
*/ | ||
addServiceGroup(createParameters: TaskAgent.KubernetesServiceGroupCreateParameters, project: string, environmentId: number): Promise<TaskAgent.KubernetesServiceGroup>; | ||
addKubernetesServiceGroup(createParameters: TaskAgent.KubernetesServiceGroupCreateParameters, project: string, environmentId: number): Promise<TaskAgent.KubernetesServiceGroup>; | ||
/** | ||
@@ -387,3 +338,3 @@ * @param project - Project ID or project name | ||
*/ | ||
deleteServiceGroup(project: string, environmentId: number, serviceGroupId: number): Promise<void>; | ||
deleteKubernetesServiceGroup(project: string, environmentId: number, serviceGroupId: number): Promise<void>; | ||
/** | ||
@@ -394,3 +345,3 @@ * @param project - Project ID or project name | ||
*/ | ||
getServiceGroup(project: string, environmentId: number, serviceGroupId: number): Promise<TaskAgent.KubernetesServiceGroup>; | ||
getKubernetesServiceGroup(project: string, environmentId: number, serviceGroupId: number): Promise<TaskAgent.KubernetesServiceGroup>; | ||
/** | ||
@@ -401,3 +352,3 @@ * @param serviceGroup - | ||
*/ | ||
updateServiceGroup(serviceGroup: TaskAgent.KubernetesServiceGroup, project: string, environmentId: number): Promise<TaskAgent.KubernetesServiceGroup>; | ||
updateKubernetesServiceGroup(serviceGroup: TaskAgent.KubernetesServiceGroup, project: string, environmentId: number): Promise<TaskAgent.KubernetesServiceGroup>; | ||
/** | ||
@@ -1005,2 +956,34 @@ * @param project - Project ID or project name | ||
/** | ||
* @param createParameters - | ||
* @param project - Project ID or project name | ||
* @param environmentId - | ||
*/ | ||
addVirtualMachineGroup(createParameters: TaskAgent.VirtualMachineGroupCreateParameters, project: string, environmentId: number): Promise<TaskAgent.VirtualMachineGroup>; | ||
/** | ||
* @param project - Project ID or project name | ||
* @param environmentId - | ||
* @param serviceGroupId - | ||
*/ | ||
deleteVirtualMachineGroup(project: string, environmentId: number, serviceGroupId: number): Promise<void>; | ||
/** | ||
* @param project - Project ID or project name | ||
* @param environmentId - | ||
* @param serviceGroupId - | ||
*/ | ||
getVirtualMachineGroup(project: string, environmentId: number, serviceGroupId: number): Promise<TaskAgent.VirtualMachineGroup>; | ||
/** | ||
* @param serviceGroup - | ||
* @param project - Project ID or project name | ||
* @param environmentId - | ||
*/ | ||
updateVirtualMachineGroup(serviceGroup: TaskAgent.VirtualMachineGroup, project: string, environmentId: number): Promise<TaskAgent.VirtualMachineGroup>; | ||
/** | ||
* @param project - Project ID or project name | ||
* @param environmentId - | ||
* @param serviceGroupId - | ||
* @param continuationToken - | ||
* @param top - | ||
*/ | ||
getVirtualMachines(project: string, environmentId: number, serviceGroupId: number, continuationToken?: string, top?: number): Promise<TaskAgent.VirtualMachine[]>; | ||
/** | ||
* @param authenticationRequest - | ||
@@ -1020,2 +1003,5 @@ */ | ||
getVstsAadTenantId(): Promise<string>; | ||
/** | ||
*/ | ||
getYamlSchema(): Promise<any>; | ||
} |
@@ -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 u(e){try{a(o.next(e))}catch(e){n(e)}}function s(e){try{a(o.throw(e))}catch(e){n(e)}}function a(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,s)}a((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(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,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","../Common/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.addAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-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.1-preview.1",routeTemplate:"_apis/distributedtask/agentcloudtypes"})]})})},t.prototype.getAgentRequestsForQueue=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$top:t,continuationToken:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",routeValues:{queueId:e},queryParams:o})]})})},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.1-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.1-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.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t}})]})})},t.prototype.getAgent=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={includeCapabilities:r,includeAssignedRequest:o,propertyFilters:i&&i.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t},queryParams:n})]})})},t.prototype.getAgents=function(e,t,r,o,i,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={agentName:t,includeCapabilities:r,includeAssignedRequest:o,propertyFilters:i&&i.join(","),demands:n&&n.join(",")},[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:t,agentId:r},body:e})]})})},t.prototype.createApproval=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={approvalId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/approvals",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.getApproval=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={approvalId:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/approvals",routeValues:{project:e},queryParams:r})]})})},t.prototype.querySteps=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/approvals",routeValues:{project:t},body:e})]})})},t.prototype.updateApproval=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={approvalId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/approvals",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.updateSteps=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/approvals",routeValues:{project:t},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.1-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.1-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.1-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.1-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.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.getDeploymentGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={actionFilter:r,$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},t.prototype.getDeploymentGroups=function(e,t,r,o,i,n,u){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={name:t,actionFilter:r,$expand:o,continuationToken:i,$top:n,ids:u&&u.join(",")},[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.getDeploymentGroupsMetrics=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={deploymentGroupName:t,continuationToken:r,$top:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/deploymentgroupsmetrics",routeValues:{project:e},queryParams:i})]})})},t.prototype.getAgentRequestsForDeploymentMachine=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={machineId:r,completedRequestCount:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},t.prototype.getAgentRequestsForDeploymentMachines=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={machineIds:r&&r.join(","),completedRequestCount:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},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.1-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.1-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(o){return r={poolName:e,expands:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/deploymentPools/deploymentPoolsSummary",queryParams:r})]})})},t.prototype.getAgentRequestsForDeploymentTarget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={targetId:r,completedRequestCount:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},t.prototype.getAgentRequestsForDeploymentTargets=function(e,t,r,o,i,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={targetIds:r&&r.join(","),ownerId:o,completedOn:i,completedRequestCount:n},[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/endpoint",body:e})]})})},t.prototype.addEnvironmentDeploymentExecutionRecord=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/environments/{environmentId}/environmentdeploymentRecords",body:e})]})})},t.prototype.getEnvironmentDeploymentExecutionRecords=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={scopeId:t,serviceGroupId:r,continuationToken:o,top:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/environments/{environmentId}/environmentdeploymentRecords",routeValues:{environmentId:e},queryParams:n})]})})},t.prototype.updateEnvironmentDeploymentExecutionRecord=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/environments/{environmentId}/environmentdeploymentRecords",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.1-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.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e,environmentId:t}})]})})},t.prototype.getEnvironmentById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={expands:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e,environmentId:t},queryParams:o})]})})},t.prototype.getEnvironments=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={name:t,continuationToken:r,$top:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.updateEnvironment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:t,environmentId:r},body:e})]})})},t.prototype.getTaskHubLicenseDetails=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeEnterpriseUsersCount:t,includeHostedAgentMinutesCount:r},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"_apis/distributedtask/hublicense/{hubName}",routeValues:{hubName:e},queryParams:o})]})})},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.1-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.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/inputvalidation",body:e})]})})},t.prototype.deleteAgentRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={lockToken:r,result:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t},queryParams:i})]})})},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.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t}})]})})},t.prototype.getAgentRequests=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$top:t,continuationToken:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentRequestsForAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={agentId:t,completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentRequestsForAgents=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={agentIds:t&&t.join(","),completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentRequestsForPlan=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={planId:t,jobId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},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.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t},body:e})]})})},t.prototype.updateAgentRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={lockToken:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t,requestId:r},queryParams:i,body:e})]})})},t.prototype.addServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:t,environmentId:r},body:e})]})})},t.prototype.deleteServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:e,environmentId:t,serviceGroupId:r}})]})})},t.prototype.getServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:e,environmentId:t,serviceGroupId:r}})]})})},t.prototype.updateServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:t,environmentId:r},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.1-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.1-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.1-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 o;return __generator(this,function(i){return o={actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e,machineGroupId:t},queryParams:o})]})})},t.prototype.getDeploymentMachineGroups=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={machineGroupName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.updateDeploymentMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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 o;return __generator(this,function(i){return o={tagFilters:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",routeValues:{project:e,machineGroupId:t},queryParams:o})]})})},t.prototype.updateDeploymentMachineGroupMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t,machineId:r},queryParams:i})]})})},t.prototype.getDeploymentMachines=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tags:r&&r.join(","),name:o,$expand:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t},queryParams:n})]})})},t.prototype.replaceDeploymentMachine=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:o},body:e})]})})},t.prototype.updateDeploymentMachine=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:o},body:e})]})})},t.prototype.updateDeploymentMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-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(o){return r={definitionId:t},[2,this.beginRequest({apiVersion:"5.1-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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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 o;return __generator(this,function(i){return o={sessionId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e,messageId:t},queryParams:o})]})})},t.prototype.getMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={sessionId:t,lastMessageId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.refreshAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={agentId:t},[2,this.beginRequest({apiVersion:"5.1-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.1-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 o;return __generator(this,function(i){return o={requestId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:t},queryParams:o,body:e})]})})},t.prototype.getPackage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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 o;return __generator(this,function(i){return o={$top:r},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/distributedtask/packages/{packageType}/{platform}/{version}",routeValues:{packageType:e,platform:t},queryParams:o})]})})},t.prototype.getAgentPoolMetadata=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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 o;return __generator(this,function(i){return o={properties:t&&t.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentPools=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={poolName:e,properties:t&&t.join(","),poolType:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",queryParams:i})]})})},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.1-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:t},body:e})]})})},t.prototype.addAgentQueue=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={authorizePipelines:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:o,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.1-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.1-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 o;return __generator(this,function(i){return o={actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t,queueId:e},queryParams:o})]})})},t.prototype.getAgentQueues=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={queueName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getAgentQueuesByIds=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={queueIds:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:o})]})})},t.prototype.getAgentQueuesByNames=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={queueNames:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:o})]})})},t.prototype.getAgentCloudRequests=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-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.1-preview.1",routeTemplate:"_apis/distributedtask/resourcelimits"})]})})},t.prototype.getResourceUsage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={parallelismTag:e,poolIsHosted:t,includeRunningRequests:r},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/distributedtask/resourceusage",queryParams:o})]})})},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.1-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.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t}})]})})},t.prototype.downloadSecureFile=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={ticket:r,download:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:i})]})})},t.prototype.getSecureFile=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={includeDownloadTicket:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:i})]})})},t.prototype.getSecureFiles=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={namePattern:t,includeDownloadTickets:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getSecureFilesByIds=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={secureFileIds:t&&t.join(","),includeDownloadTickets:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getSecureFilesByNames=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={secureFileNames:t&&t.join(","),includeDownloadTickets:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.querySecureFilesByProperties=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={namePattern:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.updateSecureFile=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},body:e})]})})},t.prototype.uploadSecureFile=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={name:r,authorizePipelines:o},[2,this.beginRequest({apiVersion:"5.1-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.createAgentSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t,targetId:r},queryParams:i})]})})},t.prototype.getDeploymentTargets=function(e,t,r,o,i,n,u,s,a,p,d,c){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={tags:r&&r.join(","),name:o,partialNameMatch:i,$expand:n,agentStatus:u,agentJobResult:s,continuationToken:a,$top:p,enabled:d,propertyFilters:c&&c.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t},queryParams:l})]})})},t.prototype.replaceDeploymentTarget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:o},body:e})]})})},t.prototype.updateDeploymentTarget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:o},body:e})]})})},t.prototype.updateDeploymentTargets=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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 o;return __generator(this,function(i){return o={comment:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:o})]})})},t.prototype.getTaskGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={versionSpec:r,$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:i})]})})},t.prototype.getTaskGroupRevision=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={revision:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:o})]})})},t.prototype.getTaskGroups=function(e,t,r,o,i,n,u,s){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={expanded:r,taskIdFilter:o,deleted:i,$top:n,continuationToken:u,queryOrder:s},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:a})]})})},t.prototype.publishPreviewTaskGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={disablePriorVersions:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t,taskGroupId:r},queryParams:i,body:e})]})})},t.prototype.publishTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={parentTaskGroupId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},queryParams:o,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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e}})]})})},t.prototype.getTaskContentZip=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={visibility:r,scopeLocal:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:i})]})})},t.prototype.getTaskDefinition=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={visibility:r,scopeLocal:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:i})]})})},t.prototype.getTaskDefinitions=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={visibility:t,scopeLocal:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e},queryParams:o})]})})},t.prototype.updateAgentUpdateState=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={currentState:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}/updates",routeValues:{poolId:e,agentId:t},queryParams:o})]})})},t.prototype.updateAgentUserCapabilities=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e,groupId:t}})]})})},t.prototype.getVariableGroups=function(e,t,r,o,i,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={groupName:t,actionFilter:r,$top:o,continuationToken:i,queryOrder:n},[2,this.beginRequest({apiVersion:"5.1-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(o){return r={groupIds:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:t,groupId:r},body:e})]})})},t.prototype.querySharedProjectsForVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={project:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/variablegroupshare/{groupId}",routeValues:{groupId:e},queryParams:r})]})})},t.prototype.shareVariableGroupWithProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={fromProject:t,withProject:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/variablegroupshare/{groupId}",routeValues:{groupId:e},queryParams:o})]})})},t.prototype.acquireAccessToken=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth",body:e})]})})},t.prototype.createAadOAuthRequest=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tenantId:e,redirectUri:t,promptOption:r,completeCallbackPayload:o,completeCallbackByAuthCode:i},[2,this.beginRequest({apiVersion:"5.1-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.1-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth"})]})})},t.RESOURCE_AREA_ID="a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd",t}(r.RestClientBase);t.TaskAgentRestClient=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 u(e){try{a(o.next(e))}catch(e){n(e)}}function s(e){try{a(o.throw(e))}catch(e){n(e)}}function a(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,s)}a((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(;s;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(n=s.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){s.label=r[1];break}if(6===r[0]&&s.label<n[1]){s.label=n[1],n=r;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(r);break}n[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,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","../Common/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.addAgentCloud=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-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.1-preview.1",routeTemplate:"_apis/distributedtask/agentcloudtypes"})]})})},t.prototype.getAgentRequestsForQueue=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$top:t,continuationToken:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/queues/{queueId}/agentrequests/{requestId}",routeValues:{queueId:e},queryParams:o})]})})},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.1-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.1-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.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t}})]})})},t.prototype.getAgent=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={includeCapabilities:r,includeAssignedRequest:o,propertyFilters:i&&i.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}",routeValues:{poolId:e,agentId:t},queryParams:n})]})})},t.prototype.getAgents=function(e,t,r,o,i,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={agentName:t,includeCapabilities:r,includeAssignedRequest:o,propertyFilters:i&&i.join(","),demands:n&&n.join(",")},[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-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.1-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.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t}})]})})},t.prototype.getDeploymentGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={actionFilter:r,$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},t.prototype.getDeploymentGroups=function(e,t,r,o,i,n,u){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(a){return s={name:t,actionFilter:r,$expand:o,continuationToken:i,$top:n,ids:u&&u.join(",")},[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}",routeValues:{project:t,deploymentGroupId:r},body:e})]})})},t.prototype.getDeploymentGroupsMetrics=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={deploymentGroupName:t,continuationToken:r,$top:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/deploymentgroupsmetrics",routeValues:{project:e},queryParams:i})]})})},t.prototype.getAgentRequestsForDeploymentMachine=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={machineId:r,completedRequestCount:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},t.prototype.getAgentRequestsForDeploymentMachines=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={machineIds:r&&r.join(","),completedRequestCount:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentmachinejobrequests/{requestId}",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},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.1-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.1-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(o){return r={poolName:e,expands:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/deploymentPools/deploymentPoolsSummary",queryParams:r})]})})},t.prototype.getAgentRequestsForDeploymentTarget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={targetId:r,completedRequestCount:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/deploymentTargetJobRequests",routeValues:{project:e,deploymentGroupId:t},queryParams:i})]})})},t.prototype.getAgentRequestsForDeploymentTargets=function(e,t,r,o,i,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={targetIds:r&&r.join(","),ownerId:o,completedOn:i,completedRequestCount:n},[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/endpoint",body:e})]})})},t.prototype.getEnvironmentDeploymentExecutionRecords=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={continuationToken:r,top:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/environmentdeploymentRecords",routeValues:{project:e,environmentId:t},queryParams:i})]})})},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.1-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.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e,environmentId:t}})]})})},t.prototype.getEnvironmentById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={expands:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e,environmentId:t},queryParams:o})]})})},t.prototype.getEnvironments=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={name:t,continuationToken:r,$top:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.updateEnvironment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}",routeValues:{project:t,environmentId:r},body:e})]})})},t.prototype.getTaskHubLicenseDetails=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeEnterpriseUsersCount:t,includeHostedAgentMinutesCount:r},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"_apis/distributedtask/hublicense/{hubName}",routeValues:{hubName:e},queryParams:o})]})})},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.1-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.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/inputvalidation",body:e})]})})},t.prototype.deleteAgentRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={lockToken:r,result:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t},queryParams:i})]})})},t.prototype.getAgentRequest=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeStatus:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e,requestId:t},queryParams:o})]})})},t.prototype.getAgentRequests=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$top:t,continuationToken:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentRequestsForAgent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={agentId:t,completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentRequestsForAgents=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={agentIds:t&&t.join(","),completedRequestCount:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentRequestsForPlan=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={planId:t,jobId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:e},queryParams:o})]})})},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.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t},body:e})]})})},t.prototype.updateAgentRequest=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={lockToken:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}/jobrequests/{requestId}",routeValues:{poolId:t,requestId:r},queryParams:i,body:e})]})})},t.prototype.addKubernetesServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:t,environmentId:r},body:e})]})})},t.prototype.deleteKubernetesServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:e,environmentId:t,serviceGroupId:r}})]})})},t.prototype.getKubernetesServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:e,environmentId:t,serviceGroupId:r}})]})})},t.prototype.updateKubernetesServiceGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/kubernetes/{serviceGroupId}",routeValues:{project:t,environmentId:r},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.1-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.1-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.1-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 o;return __generator(this,function(i){return o={actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e,machineGroupId:t},queryParams:o})]})})},t.prototype.getDeploymentMachineGroups=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={machineGroupName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.updateDeploymentMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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 o;return __generator(this,function(i){return o={tagFilters:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/machinegroups/{machineGroupId}/machines",routeValues:{project:e,machineGroupId:t},queryParams:o})]})})},t.prototype.updateDeploymentMachineGroupMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t,machineId:r},queryParams:i})]})})},t.prototype.getDeploymentMachines=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tags:r&&r.join(","),name:o,$expand:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:e,deploymentGroupId:t},queryParams:n})]})})},t.prototype.replaceDeploymentMachine=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:o},body:e})]})})},t.prototype.updateDeploymentMachine=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/machines/{machineId}",routeValues:{project:t,deploymentGroupId:r,machineId:o},body:e})]})})},t.prototype.updateDeploymentMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-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(o){return r={definitionId:t},[2,this.beginRequest({apiVersion:"5.1-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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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 o;return __generator(this,function(i){return o={sessionId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e,messageId:t},queryParams:o})]})})},t.prototype.getMessage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={sessionId:t,lastMessageId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.refreshAgent=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={agentId:t},[2,this.beginRequest({apiVersion:"5.1-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.1-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 o;return __generator(this,function(i){return o={requestId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/pools/{poolId}/messages/{messageId}",routeValues:{poolId:t},queryParams:o,body:e})]})})},t.prototype.getPackage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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 o;return __generator(this,function(i){return o={$top:r},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/distributedtask/packages/{packageType}/{platform}/{version}",routeValues:{packageType:e,platform:t},queryParams:o})]})})},t.prototype.getAgentPoolMetadata=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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 o;return __generator(this,function(i){return o={properties:t&&t.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:e},queryParams:o})]})})},t.prototype.getAgentPools=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={poolName:e,properties:t&&t.join(","),poolType:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/pools/{poolId}",queryParams:i})]})})},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.1-preview.1",method:"PATCH",routeTemplate:"_apis/distributedtask/pools/{poolId}",routeValues:{poolId:t},body:e})]})})},t.prototype.addAgentQueue=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={authorizePipelines:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:o,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.1-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.1-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 o;return __generator(this,function(i){return o={actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t,queueId:e},queryParams:o})]})})},t.prototype.getAgentQueues=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={queueName:t,actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getAgentQueuesByIds=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={queueIds:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:o})]})})},t.prototype.getAgentQueuesByNames=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={queueNames:e&&e.join(","),actionFilter:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/queues/{queueId}",routeValues:{project:t},queryParams:o})]})})},t.prototype.getAgentCloudRequests=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/agentclouds/{agentCloudId}/requests/{agentCloudRequestId}",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.1-preview.1",routeTemplate:"_apis/distributedtask/resourcelimits"})]})})},t.prototype.getResourceUsage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={parallelismTag:e,poolIsHosted:t,includeRunningRequests:r},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"_apis/distributedtask/resourceusage",queryParams:o})]})})},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.1-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.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t}})]})})},t.prototype.downloadSecureFile=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={ticket:r,download:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:i})]})})},t.prototype.getSecureFile=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={includeDownloadTicket:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e,secureFileId:t},queryParams:i})]})})},t.prototype.getSecureFiles=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={namePattern:t,includeDownloadTickets:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getSecureFilesByIds=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={secureFileIds:t&&t.join(","),includeDownloadTickets:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.getSecureFilesByNames=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={secureFileNames:t&&t.join(","),includeDownloadTickets:r,actionFilter:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:e},queryParams:i})]})})},t.prototype.querySecureFilesByProperties=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={namePattern:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.updateSecureFile=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/securefiles/{secureFileId}",routeValues:{project:t},body:e})]})})},t.prototype.uploadSecureFile=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={name:r,authorizePipelines:o},[2,this.beginRequest({apiVersion:"5.1-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.createAgentSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t,targetId:r},queryParams:i})]})})},t.prototype.getDeploymentTargets=function(e,t,r,o,i,n,u,s,a,p,d,c){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={tags:r&&r.join(","),name:o,partialNameMatch:i,$expand:n,agentStatus:u,agentJobResult:s,continuationToken:a,$top:p,enabled:d,propertyFilters:c&&c.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:e,deploymentGroupId:t},queryParams:l})]})})},t.prototype.replaceDeploymentTarget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:o},body:e})]})})},t.prototype.updateDeploymentTarget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}/targets/{targetId}",routeValues:{project:t,deploymentGroupId:r,targetId:o},body:e})]})})},t.prototype.updateDeploymentTargets=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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 o;return __generator(this,function(i){return o={comment:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:o})]})})},t.prototype.getTaskGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={versionSpec:r,$expand:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:i})]})})},t.prototype.getTaskGroupRevision=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={revision:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:o})]})})},t.prototype.getTaskGroups=function(e,t,r,o,i,n,u,s){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={expanded:r,taskIdFilter:o,deleted:i,$top:n,continuationToken:u,queryOrder:s},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:e,taskGroupId:t},queryParams:a})]})})},t.prototype.publishPreviewTaskGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={disablePriorVersions:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t,taskGroupId:r},queryParams:i,body:e})]})})},t.prototype.publishTaskGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={parentTaskGroupId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/taskgroups/{taskGroupId}",routeValues:{project:t},queryParams:o,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.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-preview.1",method:"DELETE",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e}})]})})},t.prototype.getTaskContentZip=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={visibility:r,scopeLocal:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:i})]})})},t.prototype.getTaskDefinition=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={visibility:r,scopeLocal:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e,versionString:t},queryParams:i})]})})},t.prototype.getTaskDefinitions=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={visibility:t,scopeLocal:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/tasks/{taskId}/{versionString}",routeValues:{taskId:e},queryParams:o})]})})},t.prototype.updateAgentUpdateState=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={currentState:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"_apis/distributedtask/pools/{poolId}/agents/{agentId}/updates",routeValues:{poolId:e,agentId:t},queryParams:o})]})})},t.prototype.updateAgentUserCapabilities=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-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.1-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.1-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.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:e,groupId:t}})]})})},t.prototype.getVariableGroups=function(e,t,r,o,i,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={groupName:t,actionFilter:r,$top:o,continuationToken:i,queryOrder:n},[2,this.beginRequest({apiVersion:"5.1-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(o){return r={groupIds:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.1-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(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PUT",routeTemplate:"{project}/_apis/distributedtask/variablegroups/{groupId}",routeValues:{project:t,groupId:r},body:e})]})})},t.prototype.querySharedProjectsForVariableGroup=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={project:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/variablegroupshare/{groupId}",routeValues:{groupId:e},queryParams:r})]})})},t.prototype.shareVariableGroupWithProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={fromProject:t,withProject:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/variablegroupshare/{groupId}",routeValues:{groupId:e},queryParams:o})]})})},t.prototype.addVirtualMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{serviceGroupId}",routeValues:{project:t,environmentId:r},body:e})]})})},t.prototype.deleteVirtualMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{serviceGroupId}",routeValues:{project:e,environmentId:t,serviceGroupId:r}})]})})},t.prototype.getVirtualMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{serviceGroupId}",routeValues:{project:e,environmentId:t,serviceGroupId:r}})]})})},t.prototype.updateVirtualMachineGroup=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{serviceGroupId}",routeValues:{project:t,environmentId:r},body:e})]})})},t.prototype.getVirtualMachines=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={continuationToken:o,$top:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/distributedtask/environments/{environmentId}/providers/virtualmachinegroups/{serviceGroupId}/virtualmachines",routeValues:{project:e,environmentId:t,serviceGroupId:r},queryParams:n})]})})},t.prototype.acquireAccessToken=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth",body:e})]})})},t.prototype.createAadOAuthRequest=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={tenantId:e,redirectUri:t,promptOption:r,completeCallbackPayload:o,completeCallbackByAuthCode:i},[2,this.beginRequest({apiVersion:"5.1-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.1-preview.1",routeTemplate:"_apis/distributedtask/serviceendpointproxy/vstsaadoauth"})]})})},t.prototype.getYamlSchema=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"_apis/distributedtask/yamlschema"})]})})},t.RESOURCE_AREA_ID="a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd",t}(r.RestClientBase);t.TaskAgentRestClient=o}); |
@@ -267,7 +267,7 @@ /* | ||
TestLogStatusCode[TestLogStatusCode["FeatureDisabled"] = 7] = "FeatureDisabled"; | ||
TestLogStatusCode[TestLogStatusCode["BuildNotExist"] = 8] = "BuildNotExist"; | ||
TestLogStatusCode[TestLogStatusCode["RunNotExist"] = 9] = "RunNotExist"; | ||
TestLogStatusCode[TestLogStatusCode["BuildDoesNotExist"] = 8] = "BuildDoesNotExist"; | ||
TestLogStatusCode[TestLogStatusCode["RunDoesNotExist"] = 9] = "RunDoesNotExist"; | ||
TestLogStatusCode[TestLogStatusCode["ContainerNotCreated"] = 10] = "ContainerNotCreated"; | ||
TestLogStatusCode[TestLogStatusCode["APINotSupported"] = 11] = "APINotSupported"; | ||
TestLogStatusCode[TestLogStatusCode["FileSizeExceed"] = 12] = "FileSizeExceed"; | ||
TestLogStatusCode[TestLogStatusCode["FileSizeExceeds"] = 12] = "FileSizeExceeds"; | ||
TestLogStatusCode[TestLogStatusCode["ContainerNotFound"] = 13] = "ContainerNotFound"; | ||
@@ -274,0 +274,0 @@ })(TestLogStatusCode = exports.TestLogStatusCode || (exports.TestLogStatusCode = {})); |
@@ -1,1 +0,1 @@ | ||
define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.GeneralAttachment=0]="GeneralAttachment",e[e.AfnStrip=1]="AfnStrip",e[e.BugFilingData=2]="BugFilingData",e[e.CodeCoverage=3]="CodeCoverage",e[e.IntermediateCollectorData=4]="IntermediateCollectorData",e[e.RunConfig=5]="RunConfig",e[e.TestImpactDetails=6]="TestImpactDetails",e[e.TmiTestRunDeploymentFiles=7]="TmiTestRunDeploymentFiles",e[e.TmiTestRunReverseDeploymentFiles=8]="TmiTestRunReverseDeploymentFiles",e[e.TmiTestResultDetail=9]="TmiTestResultDetail",e[e.TmiTestRunSummary=10]="TmiTestRunSummary",e[e.ConsoleLog=11]="ConsoleLog"}(t.AttachmentType||(t.AttachmentType={}));!function(e){e[e.Failed=2]="Failed",e[e.InProgress=1]="InProgress",e[e.Queued=0]="Queued",e[e.Succeeded=3]="Succeeded"}(t.CloneOperationState||(t.CloneOperationState={}));!function(e){e[e.Modules=1]="Modules",e[e.Functions=2]="Functions",e[e.BlockData=4]="BlockData"}(t.CoverageQueryFlags||(t.CoverageQueryFlags={}));!function(e){e[e.Covered=0]="Covered",e[e.NotCovered=1]="NotCovered",e[e.PartiallyCovered=2]="PartiallyCovered"}(t.CoverageStatus||(t.CoverageStatus={}));!function(e){e[e.None=0]="None",e[e.TestRun=1]="TestRun",e[e.TestResult=2]="TestResult",e[e.System=4]="System",e[e.All=7]="All"}(t.CustomTestFieldScope||(t.CustomTestFieldScope={}));!function(e){e[e.Bit=2]="Bit",e[e.DateTime=4]="DateTime",e[e.Int=8]="Int",e[e.Float=6]="Float",e[e.String=12]="String",e[e.Guid=14]="Guid"}(t.CustomTestFieldType||(t.CustomTestFieldType={}));!function(e){e[e.None=0]="None",e[e.Iterations=1]="Iterations",e[e.WorkItems=2]="WorkItems",e[e.SubResults=4]="SubResults",e[e.Point=8]="Point"}(t.ResultDetails||(t.ResultDetails={}));!function(e){e[e.None=0]="None",e[e.Rerun=1]="Rerun",e[e.DataDriven=2]="DataDriven",e[e.OrderedTest=3]="OrderedTest",e[e.Generic=4]="Generic"}(t.ResultGroupType||(t.ResultGroupType={}));!function(e){e[e.TestSuite=0]="TestSuite",e[e.TestPlan=1]="TestPlan"}(t.ResultObjectType||(t.ResultObjectType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.Normal=1]="Normal",e[e.Blocking=2]="Blocking",e[e.Web=4]="Web",e[e.MtrRunInitiatedFromWeb=8]="MtrRunInitiatedFromWeb",e[e.RunWithDtlEnv=16]="RunWithDtlEnv",e[e.NoConfigRun=32]="NoConfigRun"}(t.RunType||(t.RunType={}));!function(e){e[e.Any=0]="Any",e[e.Tcm=1]="Tcm",e[e.Tfs=2]="Tfs"}(t.Service||(t.Service={}));!function(e){e[e.Children=1]="Children",e[e.DefaultTesters=2]="DefaultTesters"}(t.SuiteExpand||(t.SuiteExpand={}));!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(t.TCMServiceDataMigrationStatus||(t.TCMServiceDataMigrationStatus={}));!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(t.TestConfigurationState||(t.TestConfigurationState={}));!function(e){e[e.Run=0]="Run",e[e.Build=1]="Build"}(t.TestLogScope||(t.TestLogScope={}));!function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.FileAlreadyExists=2]="FileAlreadyExists",e[e.InvalidInput=3]="InvalidInput",e[e.InvalidFileName=4]="InvalidFileName",e[e.InvalidContainer=5]="InvalidContainer",e[e.TransferFailed=6]="TransferFailed",e[e.FeatureDisabled=7]="FeatureDisabled",e[e.BuildNotExist=8]="BuildNotExist",e[e.RunNotExist=9]="RunNotExist",e[e.ContainerNotCreated=10]="ContainerNotCreated",e[e.APINotSupported=11]="APINotSupported",e[e.FileSizeExceed=12]="FileSizeExceed",e[e.ContainerNotFound=13]="ContainerNotFound"}(t.TestLogStatusCode||(t.TestLogStatusCode={}));!function(e){e[e.Root=1]="Root",e[e.File=2]="File"}(t.TestLogStoreEndpointType||(t.TestLogStoreEndpointType={}));!function(e){e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.ReadAndCreate=3]="ReadAndCreate"}(t.TestLogStoreOperationType||(t.TestLogStoreOperationType={}));!function(e){e[e.GeneralAttachment=1]="GeneralAttachment",e[e.CodeCoverage=2]="CodeCoverage",e[e.TestImpact=3]="TestImpact",e[e.Intermediate=4]="Intermediate"}(t.TestLogType||(t.TestLogType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.None=1]="None",e[e.Passed=2]="Passed",e[e.Failed=3]="Failed",e[e.Inconclusive=4]="Inconclusive",e[e.Timeout=5]="Timeout",e[e.Aborted=6]="Aborted",e[e.Blocked=7]="Blocked",e[e.NotExecuted=8]="NotExecuted",e[e.Warning=9]="Warning",e[e.Error=10]="Error",e[e.NotApplicable=11]="NotApplicable",e[e.Paused=12]="Paused",e[e.InProgress=13]="InProgress",e[e.NotImpacted=14]="NotImpacted",e[e.MaxValue=14]="MaxValue"}(t.TestOutcome||(t.TestOutcome={}));!function(e){e[e.None=0]="None",e[e.Ready=1]="Ready",e[e.Completed=2]="Completed",e[e.NotReady=3]="NotReady",e[e.InProgress=4]="InProgress",e[e.MaxValue=4]="MaxValue"}(t.TestPointState||(t.TestPointState={}));!function(e){e[e.Branch=1]="Branch",e[e.Environment=2]="Environment"}(t.TestResultGroupBy||(t.TestResultGroupBy={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release"}(t.TestResultsContextType||(t.TestResultsContextType={}));!function(e){e[e.Passed=0]="Passed",e[e.Failed=1]="Failed",e[e.NotImpacted=2]="NotImpacted",e[e.Others=3]="Others"}(t.TestRunOutcome||(t.TestRunOutcome={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.All=3]="All"}(t.TestRunPublishContext||(t.TestRunPublishContext={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Aborted=4]="Aborted",e[e.Waiting=5]="Waiting",e[e.NeedsInvestigation=6]="NeedsInvestigation"}(t.TestRunState||(t.TestRunState={}));!function(e){e[e.None=0]="None",e[e.CreatingEnvironment=1]="CreatingEnvironment",e[e.RunningTests=2]="RunningTests",e[e.CanceledByUser=3]="CanceledByUser",e[e.AbortedBySystem=4]="AbortedBySystem",e[e.TimedOut=5]="TimedOut",e[e.PendingAnalysis=6]="PendingAnalysis",e[e.Analyzed=7]="Analyzed",e[e.CancellationInProgress=8]="CancellationInProgress"}(t.TestRunSubstate||(t.TestRunSubstate={}));!function(e){e[e.Unknown=0]="Unknown",e[e.XTDesktop=1]="XTDesktop",e[e.FeedbackDesktop=2]="FeedbackDesktop",e[e.XTWeb=3]="XTWeb",e[e.FeedbackWeb=4]="FeedbackWeb",e[e.XTDesktop2=5]="XTDesktop2",e[e.SessionInsightsForAll=6]="SessionInsightsForAll"}(t.TestSessionSource||(t.TestSessionSource={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Paused=3]="Paused",e[e.Completed=4]="Completed",e[e.Declined=5]="Declined"}(t.TestSessionState||(t.TestSessionState={}))}); | ||
define(["require","exports"],function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.GeneralAttachment=0]="GeneralAttachment",e[e.AfnStrip=1]="AfnStrip",e[e.BugFilingData=2]="BugFilingData",e[e.CodeCoverage=3]="CodeCoverage",e[e.IntermediateCollectorData=4]="IntermediateCollectorData",e[e.RunConfig=5]="RunConfig",e[e.TestImpactDetails=6]="TestImpactDetails",e[e.TmiTestRunDeploymentFiles=7]="TmiTestRunDeploymentFiles",e[e.TmiTestRunReverseDeploymentFiles=8]="TmiTestRunReverseDeploymentFiles",e[e.TmiTestResultDetail=9]="TmiTestResultDetail",e[e.TmiTestRunSummary=10]="TmiTestRunSummary",e[e.ConsoleLog=11]="ConsoleLog"}(t.AttachmentType||(t.AttachmentType={}));!function(e){e[e.Failed=2]="Failed",e[e.InProgress=1]="InProgress",e[e.Queued=0]="Queued",e[e.Succeeded=3]="Succeeded"}(t.CloneOperationState||(t.CloneOperationState={}));!function(e){e[e.Modules=1]="Modules",e[e.Functions=2]="Functions",e[e.BlockData=4]="BlockData"}(t.CoverageQueryFlags||(t.CoverageQueryFlags={}));!function(e){e[e.Covered=0]="Covered",e[e.NotCovered=1]="NotCovered",e[e.PartiallyCovered=2]="PartiallyCovered"}(t.CoverageStatus||(t.CoverageStatus={}));!function(e){e[e.None=0]="None",e[e.TestRun=1]="TestRun",e[e.TestResult=2]="TestResult",e[e.System=4]="System",e[e.All=7]="All"}(t.CustomTestFieldScope||(t.CustomTestFieldScope={}));!function(e){e[e.Bit=2]="Bit",e[e.DateTime=4]="DateTime",e[e.Int=8]="Int",e[e.Float=6]="Float",e[e.String=12]="String",e[e.Guid=14]="Guid"}(t.CustomTestFieldType||(t.CustomTestFieldType={}));!function(e){e[e.None=0]="None",e[e.Iterations=1]="Iterations",e[e.WorkItems=2]="WorkItems",e[e.SubResults=4]="SubResults",e[e.Point=8]="Point"}(t.ResultDetails||(t.ResultDetails={}));!function(e){e[e.None=0]="None",e[e.Rerun=1]="Rerun",e[e.DataDriven=2]="DataDriven",e[e.OrderedTest=3]="OrderedTest",e[e.Generic=4]="Generic"}(t.ResultGroupType||(t.ResultGroupType={}));!function(e){e[e.TestSuite=0]="TestSuite",e[e.TestPlan=1]="TestPlan"}(t.ResultObjectType||(t.ResultObjectType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.Normal=1]="Normal",e[e.Blocking=2]="Blocking",e[e.Web=4]="Web",e[e.MtrRunInitiatedFromWeb=8]="MtrRunInitiatedFromWeb",e[e.RunWithDtlEnv=16]="RunWithDtlEnv",e[e.NoConfigRun=32]="NoConfigRun"}(t.RunType||(t.RunType={}));!function(e){e[e.Any=0]="Any",e[e.Tcm=1]="Tcm",e[e.Tfs=2]="Tfs"}(t.Service||(t.Service={}));!function(e){e[e.Children=1]="Children",e[e.DefaultTesters=2]="DefaultTesters"}(t.SuiteExpand||(t.SuiteExpand={}));!function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(t.TCMServiceDataMigrationStatus||(t.TCMServiceDataMigrationStatus={}));!function(e){e[e.Active=1]="Active",e[e.Inactive=2]="Inactive"}(t.TestConfigurationState||(t.TestConfigurationState={}));!function(e){e[e.Run=0]="Run",e[e.Build=1]="Build"}(t.TestLogScope||(t.TestLogScope={}));!function(e){e[e.Success=0]="Success",e[e.Failed=1]="Failed",e[e.FileAlreadyExists=2]="FileAlreadyExists",e[e.InvalidInput=3]="InvalidInput",e[e.InvalidFileName=4]="InvalidFileName",e[e.InvalidContainer=5]="InvalidContainer",e[e.TransferFailed=6]="TransferFailed",e[e.FeatureDisabled=7]="FeatureDisabled",e[e.BuildDoesNotExist=8]="BuildDoesNotExist",e[e.RunDoesNotExist=9]="RunDoesNotExist",e[e.ContainerNotCreated=10]="ContainerNotCreated",e[e.APINotSupported=11]="APINotSupported",e[e.FileSizeExceeds=12]="FileSizeExceeds",e[e.ContainerNotFound=13]="ContainerNotFound"}(t.TestLogStatusCode||(t.TestLogStatusCode={}));!function(e){e[e.Root=1]="Root",e[e.File=2]="File"}(t.TestLogStoreEndpointType||(t.TestLogStoreEndpointType={}));!function(e){e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.ReadAndCreate=3]="ReadAndCreate"}(t.TestLogStoreOperationType||(t.TestLogStoreOperationType={}));!function(e){e[e.GeneralAttachment=1]="GeneralAttachment",e[e.CodeCoverage=2]="CodeCoverage",e[e.TestImpact=3]="TestImpact",e[e.Intermediate=4]="Intermediate"}(t.TestLogType||(t.TestLogType={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.None=1]="None",e[e.Passed=2]="Passed",e[e.Failed=3]="Failed",e[e.Inconclusive=4]="Inconclusive",e[e.Timeout=5]="Timeout",e[e.Aborted=6]="Aborted",e[e.Blocked=7]="Blocked",e[e.NotExecuted=8]="NotExecuted",e[e.Warning=9]="Warning",e[e.Error=10]="Error",e[e.NotApplicable=11]="NotApplicable",e[e.Paused=12]="Paused",e[e.InProgress=13]="InProgress",e[e.NotImpacted=14]="NotImpacted",e[e.MaxValue=14]="MaxValue"}(t.TestOutcome||(t.TestOutcome={}));!function(e){e[e.None=0]="None",e[e.Ready=1]="Ready",e[e.Completed=2]="Completed",e[e.NotReady=3]="NotReady",e[e.InProgress=4]="InProgress",e[e.MaxValue=4]="MaxValue"}(t.TestPointState||(t.TestPointState={}));!function(e){e[e.Branch=1]="Branch",e[e.Environment=2]="Environment"}(t.TestResultGroupBy||(t.TestResultGroupBy={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release"}(t.TestResultsContextType||(t.TestResultsContextType={}));!function(e){e[e.Passed=0]="Passed",e[e.Failed=1]="Failed",e[e.NotImpacted=2]="NotImpacted",e[e.Others=3]="Others"}(t.TestRunOutcome||(t.TestRunOutcome={}));!function(e){e[e.Build=1]="Build",e[e.Release=2]="Release",e[e.All=3]="All"}(t.TestRunPublishContext||(t.TestRunPublishContext={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Completed=3]="Completed",e[e.Aborted=4]="Aborted",e[e.Waiting=5]="Waiting",e[e.NeedsInvestigation=6]="NeedsInvestigation"}(t.TestRunState||(t.TestRunState={}));!function(e){e[e.None=0]="None",e[e.CreatingEnvironment=1]="CreatingEnvironment",e[e.RunningTests=2]="RunningTests",e[e.CanceledByUser=3]="CanceledByUser",e[e.AbortedBySystem=4]="AbortedBySystem",e[e.TimedOut=5]="TimedOut",e[e.PendingAnalysis=6]="PendingAnalysis",e[e.Analyzed=7]="Analyzed",e[e.CancellationInProgress=8]="CancellationInProgress"}(t.TestRunSubstate||(t.TestRunSubstate={}));!function(e){e[e.Unknown=0]="Unknown",e[e.XTDesktop=1]="XTDesktop",e[e.FeedbackDesktop=2]="FeedbackDesktop",e[e.XTWeb=3]="XTWeb",e[e.FeedbackWeb=4]="FeedbackWeb",e[e.XTDesktop2=5]="XTDesktop2",e[e.SessionInsightsForAll=6]="SessionInsightsForAll"}(t.TestSessionSource||(t.TestSessionSource={}));!function(e){e[e.Unspecified=0]="Unspecified",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Paused=3]="Paused",e[e.Completed=4]="Completed",e[e.Declined=5]="Declined"}(t.TestSessionState||(t.TestSessionState={}))}); |
@@ -1,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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function u(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(s,u)}a((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=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(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}var n,i,o,s,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getActionResults=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}/ActionResults/{actionPath}",routeValues:{project:e,runId:t,testCaseResultId:r,iterationId:n,actionPath:i}})]})})},t.prototype.createTestIterationResultAttachment=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={iterationId:i,actionPath:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},queryParams:s,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={testSubResultId:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},queryParams:o,body:e})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={testSubResultId:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:i})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={testSubResultId:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/CodeCoverage",routeValues:{project:e},queryParams:n})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/CodeCoverage",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/CodeCoverage",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={flags:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/CodeCoverage",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.addCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ExtensionFields",routeValues:{project:t},body:e})]})})},t.prototype.queryCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={scopeFilter:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ExtensionFields",routeValues:{project:e},queryParams:r})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestIteration=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={includeActionResults:i},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",routeValues:{project:e,runId:t,testCaseResultId:r,iterationId:n},queryParams:o})]})})},t.prototype.getTestIterations=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={includeActionResults:n},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:i})]})})},t.prototype.getLinkedWorkItemsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/LinkedWorkItemsQuery",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getResultParameters=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={paramName:i},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}/ParameterResults",routeValues:{project:e,runId:t,testCaseResultId:r,iterationId:n},queryParams:o})]})})},t.prototype.getPoint=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={witFields:i},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",routeValues:{project:e,planId:t,suiteId:r,pointIds:n},queryParams:o})]})})},t.prototype.getPoints=function(e,t,r,n,i,o,s,u,a,p){return __awaiter(this,void 0,void 0,function(){var d;return __generator(this,function(c){return d={witFields:n,configurationId:i,testCaseId:o,testPointIds:s,includePointDetails:u,$skip:a,$top:p},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",routeValues:{project:e,planId:t,suiteId:r},queryParams:d})]})})},t.prototype.updateTestPoints=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",routeValues:{project:t,planId:r,suiteId:n,pointIds:i},body:e})]})})},t.prototype.getPointsByQuery=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={$skip:r,$top:n},[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/test/Points",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,n,i,o,s,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:n,$filter:i,$orderby:o,shouldIncludeResults:s,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultDetailsByBuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,n,i,o,s,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(d){return p={releaseId:t,releaseEnvId:r,publishContext:n,groupBy:i,$filter:o,$orderby:s,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultDetailsByRelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={buildId:t,publishContext:r,fields:n&&n.join(","),continuationToken:i},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultGroupsByBuild",routeValues:{project:e},queryParams:o})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={releaseId:t,publishContext:r,releaseEnvId:n,fields:i&&i.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultGroupsByRelease",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestResultsMetaData=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/test/Results/ResultMetaData",routeValues:{project:t},body:e})]})})},t.prototype.getResultRetentionSettings=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultRetentionSettings",routeValues:{project:e}})]})})},t.prototype.updateResultRetentionSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/test/ResultRetentionSettings",routeValues:{project:t},body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.5",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={detailsToInclude:n},[2,this.beginRequest({apiVersion:"5.1-preview.5",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:i})]})})},t.prototype.getTestResults=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={detailsToInclude:r,$skip:n,$top:i,outcomes:o&&o.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.5",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.5",method:"PATCH",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.5",method:"POST",routeTemplate:"{project}/_apis/test/Results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={buildId:t,publishContext:r,outcomes:n&&n.join(","),$top:i,continuationToken:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultsByBuild",routeValues:{project:e},queryParams:s})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,n,i,o,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={releaseId:t,releaseEnvid:r,publishContext:n,outcomes:i&&i.join(","),$top:o,continuationToken:s},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultsByRelease",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={buildId:t,publishContext:r,includeFailureDetails:n,buildToCompare:i},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultSummaryByBuild",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={releaseId:t,releaseEnvId:r,publishContext:n,includeFailureDetails:i,releaseToCompare:o},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultSummaryByRelease",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/test/ResultSummaryByRelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ResultSummaryByRequirement",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeDetails:r},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRuns=function(e,t,r,n,i,o,s,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(d){return p={buildUri:t,owner:r,tmiRunId:n,planId:i,includeRunDetails:o,automated:s,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,n,i,o,s,u,a,p,d,c,l,_,h,v,m){return __awaiter(this,void 0,void 0,function(){var f;return __generator(this,function(R){return f={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:n,planIds:i&&i.join(","),isAutomated:o,publishContext:s,buildIds:u&&u.join(","),buildDefIds:a&&a.join(","),branchName:p,releaseIds:d&&d.join(","),releaseDefIds:c&&c.join(","),releaseEnvIds:l&&l.join(","),releaseEnvDefIds:_&&_.join(","),runTitle:h,$top:v,continuationToken:m},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e},queryParams:f})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.createTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,n;return __generator(this,function(i){return r=t.projectId||t.project,n=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/{team}/_apis/test/Session/{testSessionId}",routeValues:{project:r,team:n},body:e})]})})},t.prototype.getTestSessions=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,u,a;return __generator(this,function(p){return s={period:t,allSessions:r,includeAllProperties:n,source:i,includeOnlyCompletedSessions:o},u=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/{team}/_apis/test/Session/{testSessionId}",routeValues:{project:u,team:a},queryParams:s})]})})},t.prototype.updateTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,n;return __generator(this,function(i){return r=t.projectId||t.project,n=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/{team}/_apis/test/Session/{testSessionId}",routeValues:{project:r,team:n},body:e})]})})},t.prototype.deleteSharedParameter=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/SharedParameter/{sharedParameterId}",routeValues:{project:e,sharedParameterId:t}})]})})},t.prototype.deleteSharedStep=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/SharedStep/{sharedStepId}",routeValues:{project:e,sharedStepId:t}})]})})},t.prototype.addTestCasesToSuite=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n,action:"TestCases"}})]})})},t.prototype.getTestCaseById=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n,action:"TestCases"}})]})})},t.prototype.getTestCases=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,action:"TestCases"}})]})})},t.prototype.removeTestCasesFromSuiteUrl=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n,action:"TestCases"}})]})})},t.prototype.updateSuiteTestCases=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:t,planId:r,suiteId:n,testCaseIds:i,action:"TestCases"},body:e})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/test/Results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/TestSettings/{testSettingsId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/TestSettings/{testSettingsId}",routeValues:{project:e,testSettingsId:t}})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/TestSettings/{testSettingsId}",routeValues:{project:e,testSettingsId:t}})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/TestMethods/WorkItems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={testName:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,n,i,o,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:n,maxCompleteDate:i,days:o,$workItemCount:s},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Results/WorkItems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e",t}(r.RestClientBase);t.TestRestClient=n}); | ||
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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{a(n.next(e))}catch(e){o(e)}}function u(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(s,u)}a((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=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(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}var n,i,o,s,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getActionResults=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}/ActionResults/{actionPath}",routeValues:{project:e,runId:t,testCaseResultId:r,iterationId:n,actionPath:i}})]})})},t.prototype.createTestIterationResultAttachment=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={iterationId:i,actionPath:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},queryParams:s,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={testSubResultId:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},queryParams:o,body:e})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={testSubResultId:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:i})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={testSubResultId:i},[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/test/Runs/{runId}/Attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/CodeCoverage",routeValues:{project:e},queryParams:n})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/CodeCoverage",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/CodeCoverage",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={flags:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/CodeCoverage",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.addCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ExtensionFields",routeValues:{project:t},body:e})]})})},t.prototype.queryCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={scopeFilter:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ExtensionFields",routeValues:{project:e},queryParams:r})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestIteration=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={includeActionResults:i},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",routeValues:{project:e,runId:t,testCaseResultId:r,iterationId:n},queryParams:o})]})})},t.prototype.getTestIterations=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={includeActionResults:n},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:i})]})})},t.prototype.getLinkedWorkItemsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/LinkedWorkItemsQuery",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getResultParameters=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={paramName:i},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}/Iterations/{iterationId}/ParameterResults",routeValues:{project:e,runId:t,testCaseResultId:r,iterationId:n},queryParams:o})]})})},t.prototype.getPoint=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={witFields:i},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",routeValues:{project:e,planId:t,suiteId:r,pointIds:n},queryParams:o})]})})},t.prototype.getPoints=function(e,t,r,n,i,o,s,u,a,p){return __awaiter(this,void 0,void 0,function(){var d;return __generator(this,function(c){return d={witFields:n,configurationId:i,testCaseId:o,testPointIds:s,includePointDetails:u,$skip:a,$top:p},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",routeValues:{project:e,planId:t,suiteId:r},queryParams:d})]})})},t.prototype.updateTestPoints=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/Points/{pointIds}",routeValues:{project:t,planId:r,suiteId:n,pointIds:i},body:e})]})})},t.prototype.getPointsByQuery=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={$skip:r,$top:n},[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/test/Points",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,n,i,o,s,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:n,$filter:i,$orderby:o,shouldIncludeResults:s,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultDetailsByBuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,n,i,o,s,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(d){return p={releaseId:t,releaseEnvId:r,publishContext:n,groupBy:i,$filter:o,$orderby:s,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultDetailsByRelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={buildId:t,publishContext:r,fields:n&&n.join(","),continuationToken:i},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultGroupsByBuild",routeValues:{project:e},queryParams:o})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={releaseId:t,publishContext:r,releaseEnvId:n,fields:i&&i.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"5.1-preview.2",routeTemplate:"{project}/_apis/test/ResultGroupsByRelease",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestResultsMetaData=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/test/Results/ResultMetaData",routeValues:{project:t},body:e})]})})},t.prototype.getResultRetentionSettings=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultRetentionSettings",routeValues:{project:e}})]})})},t.prototype.updateResultRetentionSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/test/ResultRetentionSettings",routeValues:{project:t},body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.6",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={detailsToInclude:n},[2,this.beginRequest({apiVersion:"5.1-preview.6",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:i})]})})},t.prototype.getTestResults=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={detailsToInclude:r,$skip:n,$top:i,outcomes:o&&o.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.6",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.6",method:"PATCH",routeTemplate:"{project}/_apis/test/Runs/{runId}/Results/{testCaseResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.6",method:"POST",routeTemplate:"{project}/_apis/test/Results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={buildId:t,publishContext:r,outcomes:n&&n.join(","),$top:i,continuationToken:o},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultsByBuild",routeValues:{project:e},queryParams:s})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,n,i,o,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={releaseId:t,releaseEnvid:r,publishContext:n,outcomes:i&&i.join(","),$top:o,continuationToken:s},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/ResultsByRelease",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){return o={buildId:t,publishContext:r,includeFailureDetails:n,buildToCompare:i},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/ResultSummaryByBuild",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={releaseId:t,releaseEnvId:r,publishContext:n,includeFailureDetails:i,releaseToCompare:o},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/ResultSummaryByRelease",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/test/ResultSummaryByRelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ResultSummaryByRequirement",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}/Statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeDetails:r},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRuns=function(e,t,r,n,i,o,s,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(d){return p={buildUri:t,owner:r,tmiRunId:n,planId:i,includeRunDetails:o,automated:s,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,n,i,o,s,u,a,p,d,c,l,_,h,v,m){return __awaiter(this,void 0,void 0,function(){var f;return __generator(this,function(R){return f={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:n,planIds:i&&i.join(","),isAutomated:o,publishContext:s,buildIds:u&&u.join(","),buildDefIds:a&&a.join(","),branchName:p,releaseIds:d&&d.join(","),releaseDefIds:c&&c.join(","),releaseEnvIds:l&&l.join(","),releaseEnvDefIds:_&&_.join(","),runTitle:h,$top:v,continuationToken:m},[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:e},queryParams:f})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/test/Runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.createTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,n;return __generator(this,function(i){return r=t.projectId||t.project,n=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/{team}/_apis/test/Session/{testSessionId}",routeValues:{project:r,team:n},body:e})]})})},t.prototype.getTestSessions=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var s,u,a;return __generator(this,function(p){return s={period:t,allSessions:r,includeAllProperties:n,source:i,includeOnlyCompletedSessions:o},u=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/{team}/_apis/test/Session/{testSessionId}",routeValues:{project:u,team:a},queryParams:s})]})})},t.prototype.updateTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,n;return __generator(this,function(i){return r=t.projectId||t.project,n=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"PATCH",routeTemplate:"{project}/{team}/_apis/test/Session/{testSessionId}",routeValues:{project:r,team:n},body:e})]})})},t.prototype.deleteSharedParameter=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/SharedParameter/{sharedParameterId}",routeValues:{project:e,sharedParameterId:t}})]})})},t.prototype.deleteSharedStep=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/SharedStep/{sharedStepId}",routeValues:{project:e,sharedStepId:t}})]})})},t.prototype.addTestCasesToSuite=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n,action:"TestCases"}})]})})},t.prototype.getTestCaseById=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n,action:"TestCases"}})]})})},t.prototype.getTestCases=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.1-preview.3",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,action:"TestCases"}})]})})},t.prototype.removeTestCasesFromSuiteUrl=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n,action:"TestCases"}})]})})},t.prototype.updateSuiteTestCases=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/test/Plans/{planId}/Suites/{suiteId}/{action}/{testCaseIds}",routeValues:{project:t,planId:r,suiteId:n,testCaseIds:i,action:"TestCases"},body:e})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/test/Results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/TestSettings/{testSettingsId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/TestSettings/{testSettingsId}",routeValues:{project:e,testSettingsId:t}})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/TestSettings/{testSettingsId}",routeValues:{project:e,testSettingsId:t}})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/TestMethods/WorkItems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={testName:t},[2,this.beginRequest({apiVersion:"5.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/test/TestMethods/{testName}/WorkItems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,n,i,o,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:n,maxCompleteDate:i,days:o,$workItemCount:s},[2,this.beginRequest({apiVersion:"5.1-preview.1",routeTemplate:"{project}/_apis/test/Results/WorkItems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c2aa639c-3ccc-4740-b3b6-ce2a1e1d984e",t}(r.RestClientBase);t.TestRestClient=n}); |
@@ -117,10 +117,31 @@ import Graph = require("../Graph/Graph"); | ||
export interface IdentityRef extends Graph.GraphSubjectBase { | ||
/** | ||
* Deprecated - Can be retrieved by querying the Graph user referenced in the "self" entry of the IdentityRef "_links" dictionary | ||
*/ | ||
directoryAlias: string; | ||
id: string; | ||
/** | ||
* Deprecated - Available in the "avatar" entry of the IdentityRef "_links" dictionary | ||
*/ | ||
imageUrl: string; | ||
/** | ||
* Deprecated - Can be retrieved by querying the Graph membership state referenced in the "membershipState" entry of the GraphUser "_links" dictionary | ||
*/ | ||
inactive: boolean; | ||
/** | ||
* Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsAadUserType/Descriptor.IsAadGroupType) | ||
*/ | ||
isAadIdentity: boolean; | ||
/** | ||
* Deprecated - Can be inferred from the subject type of the descriptor (Descriptor.IsGroupType) | ||
*/ | ||
isContainer: boolean; | ||
isDeletedInOrigin: boolean; | ||
/** | ||
* Deprecated - not in use in most preexisting implementations of ToIdentityRef | ||
*/ | ||
profileUrl: string; | ||
/** | ||
* Deprecated - use Domain+PrincipalName instead | ||
*/ | ||
uniqueName: string; | ||
@@ -127,0 +148,0 @@ } |
@@ -15,4 +15,22 @@ import WebApi = require("../WebApi/WebApi"); | ||
*/ | ||
export interface AccountRecentActivityWorkItemModel { | ||
export interface AccountRecentActivityWorkItemModel extends AccountRecentActivityWorkItemModelBase { | ||
/** | ||
* Assigned To | ||
*/ | ||
assignedTo: string; | ||
} | ||
/** | ||
* Represents Work Item Recent Activity | ||
*/ | ||
export interface AccountRecentActivityWorkItemModel2 extends AccountRecentActivityWorkItemModelBase { | ||
/** | ||
* Assigned To | ||
*/ | ||
assignedTo: WebApi.IdentityRef; | ||
} | ||
/** | ||
* Represents Work Item Recent Activity | ||
*/ | ||
export interface AccountRecentActivityWorkItemModelBase { | ||
/** | ||
* Date of the last Activity by the user | ||
@@ -26,6 +44,2 @@ */ | ||
/** | ||
* Assigned To | ||
*/ | ||
assignedTo: string; | ||
/** | ||
* Last changed date of the work item | ||
@@ -302,2 +316,5 @@ */ | ||
export declare enum LinkQueryMode { | ||
/** | ||
* Returns flat list of work items. | ||
*/ | ||
WorkItems = 0, | ||
@@ -671,2 +688,6 @@ /** | ||
/** | ||
* Reference to a specific version of the comment added/edited/deleted in this revision. | ||
*/ | ||
commentVersionRef: WorkItemCommentVersionRef; | ||
/** | ||
* Map of field and values for the work item. | ||
@@ -776,3 +797,3 @@ */ | ||
/** | ||
* Collection of comments | ||
* Collection of comments. | ||
*/ | ||
@@ -798,2 +819,15 @@ export interface WorkItemComments extends WorkItemTrackingResource { | ||
/** | ||
* Represents the reference to a specific version of a comment on a Work Item. | ||
*/ | ||
export interface WorkItemCommentVersionRef extends WorkItemTrackingResourceReference { | ||
/** | ||
* The id assigned to the comment. | ||
*/ | ||
commentId: number; | ||
/** | ||
* The version number. | ||
*/ | ||
version: number; | ||
} | ||
/** | ||
* Full deleted work item object. Includes the work item itself. | ||
@@ -949,3 +983,3 @@ */ | ||
/** | ||
* Name of the operation. | ||
* Friendly name of the operation. | ||
*/ | ||
@@ -963,3 +997,3 @@ name: string; | ||
/** | ||
* The name of the field. | ||
* The friendly name of the field. | ||
*/ | ||
@@ -966,0 +1000,0 @@ name: string; |
@@ -129,2 +129,5 @@ /* | ||
(function (LinkQueryMode) { | ||
/** | ||
* Returns flat list of work items. | ||
*/ | ||
LinkQueryMode[LinkQueryMode["WorkItems"] = 0] = "WorkItems"; | ||
@@ -131,0 +134,0 @@ /** |
@@ -15,6 +15,6 @@ import { IVssRestClientOptions } from "../Common/Context"; | ||
/** | ||
* INTERNAL ONLY: USED BY ACCOUNT MY WORK PAGE. This returns Doing, Done, Follows and activity work items details. | ||
* Gets recent work item activities | ||
* | ||
*/ | ||
getRecentActivityData(): Promise<WorkItemTracking.AccountRecentActivityWorkItemModel[]>; | ||
getRecentActivityData(): Promise<WorkItemTracking.AccountRecentActivityWorkItemModel2[]>; | ||
/** | ||
@@ -21,0 +21,0 @@ * INTERNAL ONLY: USED BY ACCOUNT MY WORK PAGE. |
@@ -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","../Common/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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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,u=this;return __generator(this,function(a){return n={timePrecision:i,$top:o},[2,this.beginRequest({apiVersion:"5.0",method:"HEAD",routeTemplate:"{project}/{team}/_apis/wit/wiql/{id}",routeValues:{project:t,team:r,id:e},queryParams:n}).then(function(e){return __awaiter(u,void 0,void 0,function(){return __generator(this,function(t){return[2,Number(e.headers.get("X-Total-Count"))]})})})]})})},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",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",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",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",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",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",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",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",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",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",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,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={validateOnly:i,bypassRules:o,suppressNotifications:n,$expand:u},[2,this.beginRequest({apiVersion:"5.0",method:"POST",routeTemplate:"{project}/_apis/wit/workItems/${type}",routeValues:{project:t,type:r},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:a,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",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",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",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",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t},queryParams:u})]})})},t.prototype.updateWorkItem=function(e,t,r,i,o,n,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={validateOnly:i,bypassRules:o,suppressNotifications:n,$expand:u},[2,this.beginRequest({apiVersion:"5.0",method:"PATCH",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:r,id:t},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:a,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",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",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",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",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",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",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",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",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",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","../Common/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.2",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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",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,u=this;return __generator(this,function(a){return n={timePrecision:i,$top:o},[2,this.beginRequest({apiVersion:"5.0",method:"HEAD",routeTemplate:"{project}/{team}/_apis/wit/wiql/{id}",routeValues:{project:t,team:r,id:e},queryParams:n}).then(function(e){return __awaiter(u,void 0,void 0,function(){return __generator(this,function(t){return[2,Number(e.headers.get("X-Total-Count"))]})})})]})})},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",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",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",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",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",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",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",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",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",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",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,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={validateOnly:i,bypassRules:o,suppressNotifications:n,$expand:u},[2,this.beginRequest({apiVersion:"5.0",method:"POST",routeTemplate:"{project}/_apis/wit/workItems/${type}",routeValues:{project:t,type:r},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:a,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",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",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",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",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:t},queryParams:u})]})})},t.prototype.updateWorkItem=function(e,t,r,i,o,n,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={validateOnly:i,bypassRules:o,suppressNotifications:n,$expand:u},[2,this.beginRequest({apiVersion:"5.0",method:"PATCH",routeTemplate:"{project}/_apis/wit/workItems/{id}",routeValues:{project:r,id:t},customHeaders:{"Content-Type":"application/json-patch+json"},queryParams:a,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",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",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",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",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",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",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",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",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",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}); |
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
3589282
328
77207