azure-devops-extension-api
Advanced tools
Comparing version 2.224.0 to 2.225.0
@@ -1,1 +0,1 @@ | ||
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,s){function n(e){try{p(o.next(e))}catch(e){s(e)}}function u(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(n,u)}p((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(n){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;u;)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 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(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){u.label=r[1];break}if(6===r[0]&&u.label<s[1]){u.label=s[1],s=r;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(r);break}s[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}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,n])}}var o,i,s,n,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.deleteEnablementStatus=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$allProjects:e,$includeBillableCommitters:t,projectIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/git/advsecEnablement",queryParams:o})]})})},t.prototype.getEnablementStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={projectIds:e,$billingDate:t,$skip:r,$take:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/git/advsecEnablement",queryParams:i})]})})},t.prototype.updateEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/git/advsecEnablement",body:e})]})})},t.prototype.getPermission=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$projectName:e,$repositoryId:t,$permission:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/git/advsecPermissions",queryParams:o})]})})},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:"7.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:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",routeValues:{project:e,repositoryId:t,objectId:r}})]})})},t.prototype.getBillableCommitters=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={$billingDate:t,$skip:r,$take:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:i})]})})},t.prototype.getBillableCommittersDetail=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={$includeDetails:t,$billingDate:r,$skip:o,$take:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:s})]})})},t.prototype.getEstimatedBillableCommitters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$estimateOnly:t,$repositoryId:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:o})]})})},t.prototype.getBlob=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},t.prototype.getBlobContent=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},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:"7.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 n;return __generator(this,function(u){return n={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},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:"7.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:"7.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:"7.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(n){return s={top:o,skip:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Changes",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:s})]})})},t.prototype.getCherryPickConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:e,cherryPickId:t,conflictId:r}})]})})},t.prototype.getCherryPickConflicts=function(e,t,r,i,s,n,u,p){return __awaiter(this,void 0,void 0,function(){var a,d=this;return __generator(this,function(c){return a={continuationToken:i,$top:s,excludeResolved:n,onlyResolved:u,includeObsolete:p},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:r,repositoryId:e,cherryPickId:t},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(d,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateCherryPickConflict=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:i,repositoryId:t,cherryPickId:r,conflictId:o},body:e})]})})},t.prototype.updateCherryPickConflicts=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:t,cherryPickId:r},body:e})]})})},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:"7.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:"7.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:"7.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:"7.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,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={diffCommonCommit:r,$top:o,$skip:i},s&&(u.baseVersionType=s.versionType,u.baseVersion=s.version,u.baseVersionOptions=s.versionOptions),n&&(u.targetVersionType=n.versionType,u.targetVersion=n.version,u.targetVersionOptions=n.versionOptions),[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/diffs/commits",routeValues:{project:t,repositoryId:e},queryParams:u})]})})},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:"7.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:"7.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 n;return __generator(this,function(u){return n={pushId:t,top:o,skip:i,includeLinks:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,repositoryId:e},queryParams:n})]})})},t.prototype.getCommitsBatch=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$skip:o,$top:i,includeStatuses:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/CommitsBatch",routeValues:{project:r,repositoryId:t},queryParams:n,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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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,n,u,p,a,d,c){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:d,sanitize:c},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getItemContent=function(e,t,r,o,i,s,n,u,p,a,d,c){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:d,sanitize:c},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getItems=function(e,t,r,o,i,s,n,u,p,a){return __awaiter(this,void 0,void 0,function(){var d;return __generator(this,function(c){return d={scopePath:r,recursionLevel:o,includeContentMetadata:i,latestProcessedChange:s,download:n,includeLinks:u,versionDescriptor:p,zipForUnix:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:t,repositoryId:e},queryParams:d})]})})},t.prototype.getItemText=function(e,t,r,o,i,s,n,u,p,a,d,c){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:d,sanitize:c},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getItemZip=function(e,t,r,o,i,s,n,u,p,a,d,c){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:d,sanitize:c},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},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:"7.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 n;return __generator(this,function(u){return n={otherCommitId:r,otherCollectionId:i,otherRepositoryId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/commits/{commitId}/mergeBases",routeValues:{project:o,repositoryNameOrId:e,commitId:t},queryParams:n})]})})},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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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 n;return __generator(this,function(u){return n={top:i,skip:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/commits",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r},queryParams:n})]})})},t.prototype.getPullRequestCommits=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i=this;return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/commits",routeValues:{project:r,repositoryId:e,pullRequestId:t},returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getPullRequestConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.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,n,u){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={$skip:o,$top:i,includeObsolete:s,excludeResolved:n,onlyResolved:u},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={$top:i,$skip:s,$compareTo:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/changes",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r},queryParams:u})]})})},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:"7.1-preview.2",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:"7.1-preview.2",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:"7.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:"7.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:"7.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:"7.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:"7.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(n){return s={projectId:i},[2,this.beginRequest({apiVersion:"7.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(n){return s={projectId:i},[2,this.beginRequest({apiVersion:"7.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(n){return s={projectId:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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.createUnmaterializedPullRequestReviewer=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",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:"7.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:"7.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:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestReviewer=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,reviewerId:o},body:e})]})})},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:"7.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:"7.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(n){return s={searchCriteria:t,maxCommentLength:r,$skip:o,$top:i},[2,this.beginRequest({apiVersion:"7.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:"7.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,n,u){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={maxCommentLength:o,$skip:i,$top:s,includeCommits:n,includeWorkItemRefs:u},[2,this.beginRequest({apiVersion:"7.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 n;return __generator(this,function(u){return n={searchCriteria:t,maxCommentLength:o,$skip:i,$top:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:e},queryParams:n})]})})},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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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(n){return[2,this.beginRequest({apiVersion:"7.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:"7.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 n;return __generator(this,function(u){return n={$iteration:i,$baseIteration:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,threadId:r},queryParams:n})]})})},t.prototype.getThreads=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={$iteration:o,$baseIteration:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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(n){return s={includeCommits:o,includeRefUpdates:i},[2,this.beginRequest({apiVersion:"7.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(n){return s={$skip:r,$top:o,searchCriteria:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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,i,s,n,u,p,a){return __awaiter(this,void 0,void 0,function(){var d,c=this;return __generator(this,function(l){return d={filter:r,includeLinks:i,includeStatuses:s,includeMyBranches:n,latestStatusesOnly:u,peelTags:p,filterContains:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:t,repositoryId:e},queryParams:d,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateRef=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filter:r,projectId:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getRevertConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:e,revertId:t,conflictId:r}})]})})},t.prototype.getRevertConflicts=function(e,t,r,i,s,n,u,p){return __awaiter(this,void 0,void 0,function(){var a,d=this;return __generator(this,function(c){return a={continuationToken:i,$top:s,excludeResolved:n,onlyResolved:u,includeObsolete:p},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:r,repositoryId:e,revertId:t},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(d,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateRevertConflict=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:i,repositoryId:t,revertId:r,conflictId:o},body:e})]})})},t.prototype.updateRevertConflicts=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:t,revertId:r},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:"7.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:"7.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:"7.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:"7.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 n;return __generator(this,function(u){return n={top:o,skip:i,latestOnly:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:n})]})})},t.prototype.getSuggestions=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.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 n;return __generator(this,function(u){return n={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},t.prototype.getTreeZip=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},t.RESOURCE_AREA_ID="4e080c62-fa21-4fbc-8fef-2a10a2b38049",t}(r.RestClientBase);t.GitRestClient=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 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 n(e){try{p(o.next(e))}catch(e){s(e)}}function u(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(n,u)}p((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(n){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;u;)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 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(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){u.label=r[1];break}if(6===r[0]&&u.label<s[1]){u.label=s[1],s=r;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(r);break}s[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}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,n])}}var o,i,s,n,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.deleteEnablementStatus=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$allProjects:e,$includeBillableCommitters:t,projectIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/git/advsecEnablement",queryParams:o})]})})},t.prototype.getEnablementStatus=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={projectIds:e,$billingDate:t,$skip:r,$take:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/git/advsecEnablement",queryParams:i})]})})},t.prototype.getEnableOnCreateHost=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={$enableOnCreateHost:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/git/advsecEnablement",queryParams:t})]})})},t.prototype.getEnableOnCreateProject=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={$enableOnCreateProjectId:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/git/advsecEnablement",queryParams:t})]})})},t.prototype.setEnableOnCreateHost=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={$enableOnCreateHost:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/git/advsecEnablement",queryParams:t})]})})},t.prototype.setEnableOnCreateProject=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$enableOnCreateProjectId:e,$enableOnStatus:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/git/advsecEnablement",queryParams:r})]})})},t.prototype.updateEnablementStatus=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/git/advsecEnablement",body:e})]})})},t.prototype.getPermission=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$projectName:e,$repositoryId:t,$permission:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/git/advsecPermissions",queryParams:o})]})})},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:"7.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:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/annotatedTags/{objectId}",routeValues:{project:e,repositoryId:t,objectId:r}})]})})},t.prototype.getBillableCommitters=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={$billingDate:t,$skip:r,$take:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:i})]})})},t.prototype.getBillableCommittersDetail=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={$includeDetails:t,$billingDate:r,$skip:o,$take:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:s})]})})},t.prototype.getEstimatedBillableCommitters=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$estimateOnly:t,$repositoryId:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:o})]})})},t.prototype.getBlob=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},t.prototype.getBlobContent=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},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:"7.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 n;return __generator(this,function(u){return n={download:o,fileName:i,resolveLfs:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Blobs/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},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:"7.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:"7.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:"7.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(n){return s={top:o,skip:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Changes",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:s})]})})},t.prototype.getCherryPickConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:e,cherryPickId:t,conflictId:r}})]})})},t.prototype.getCherryPickConflicts=function(e,t,r,i,s,n,u,p){return __awaiter(this,void 0,void 0,function(){var a,c=this;return __generator(this,function(d){return a={continuationToken:i,$top:s,excludeResolved:n,onlyResolved:u,includeObsolete:p},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:r,repositoryId:e,cherryPickId:t},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateCherryPickConflict=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:i,repositoryId:t,cherryPickId:r,conflictId:o},body:e})]})})},t.prototype.updateCherryPickConflicts=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/cherryPicks/{cherryPickId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:t,cherryPickId:r},body:e})]})})},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:"7.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:"7.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:"7.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:"7.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,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={diffCommonCommit:r,$top:o,$skip:i},s&&(u.baseVersionType=s.versionType,u.baseVersion=s.version,u.baseVersionOptions=s.versionOptions),n&&(u.targetVersionType=n.versionType,u.targetVersion=n.version,u.targetVersionOptions=n.versionOptions),[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/diffs/commits",routeValues:{project:t,repositoryId:e},queryParams:u})]})})},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:"7.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:"7.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 n;return __generator(this,function(u){return n={pushId:t,top:o,skip:i,includeLinks:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Commits/{commitId}",routeValues:{project:r,repositoryId:e},queryParams:n})]})})},t.prototype.getCommitsBatch=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$skip:o,$top:i,includeStatuses:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/CommitsBatch",routeValues:{project:r,repositoryId:t},queryParams:n,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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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,n,u,p,a,c,d){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getItemContent=function(e,t,r,o,i,s,n,u,p,a,c,d){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getItems=function(e,t,r,o,i,s,n,u,p,a){return __awaiter(this,void 0,void 0,function(){var c;return __generator(this,function(d){return c={scopePath:r,recursionLevel:o,includeContentMetadata:i,latestProcessedChange:s,download:n,includeLinks:u,versionDescriptor:p,zipForUnix:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:t,repositoryId:e},queryParams:c})]})})},t.prototype.getItemText=function(e,t,r,o,i,s,n,u,p,a,c,d){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getItemZip=function(e,t,r,o,i,s,n,u,p,a,c,d){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(_){return l={path:t,scopePath:o,recursionLevel:i,includeContentMetadata:s,latestProcessedChange:n,download:u,versionDescriptor:p,includeContent:a,resolveLfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Items/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},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:"7.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 n;return __generator(this,function(u){return n={otherCommitId:r,otherCollectionId:i,otherRepositoryId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/commits/{commitId}/mergeBases",routeValues:{project:o,repositoryNameOrId:e,commitId:t},queryParams:n})]})})},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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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 n;return __generator(this,function(u){return n={top:i,skip:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/commits",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r},queryParams:n})]})})},t.prototype.getPullRequestCommits=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i=this;return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/commits",routeValues:{project:r,repositoryId:e,pullRequestId:t},returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getPullRequestConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.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,n,u){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={$skip:o,$top:i,includeObsolete:s,excludeResolved:n,onlyResolved:u},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={$top:i,$skip:s,$compareTo:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/iterations/{iterationId}/changes",routeValues:{project:o,repositoryId:e,pullRequestId:t,iterationId:r},queryParams:u})]})})},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:"7.1-preview.2",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:"7.1-preview.2",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:"7.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:"7.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:"7.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:"7.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:"7.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(n){return s={projectId:i},[2,this.beginRequest({apiVersion:"7.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(n){return s={projectId:i},[2,this.beginRequest({apiVersion:"7.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(n){return s={projectId:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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.createUnmaterializedPullRequestReviewer=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",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:"7.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:"7.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:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:r,repositoryId:e,pullRequestId:t}})]})})},t.prototype.updatePullRequestReviewer=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/reviewers/{reviewerId}",routeValues:{project:i,repositoryId:t,pullRequestId:r,reviewerId:o},body:e})]})})},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:"7.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:"7.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(n){return s={searchCriteria:t,maxCommentLength:r,$skip:o,$top:i},[2,this.beginRequest({apiVersion:"7.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:"7.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,n,u){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(a){return p={maxCommentLength:o,$skip:i,$top:s,includeCommits:n,includeWorkItemRefs:u},[2,this.beginRequest({apiVersion:"7.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 n;return __generator(this,function(u){return n={searchCriteria:t,maxCommentLength:o,$skip:i,$top:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}",routeValues:{project:r,repositoryId:e},queryParams:n})]})})},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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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(n){return[2,this.beginRequest({apiVersion:"7.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:"7.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 n;return __generator(this,function(u){return n={$iteration:i,$baseIteration:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/pullRequests/{pullRequestId}/threads/{threadId}",routeValues:{project:o,repositoryId:e,pullRequestId:t,threadId:r},queryParams:n})]})})},t.prototype.getThreads=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={$iteration:o,$baseIteration:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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(n){return s={includeCommits:o,includeRefUpdates:i},[2,this.beginRequest({apiVersion:"7.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(n){return s={$skip:r,$top:o,searchCriteria:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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,i,s,n,u,p,a){return __awaiter(this,void 0,void 0,function(){var c,d=this;return __generator(this,function(l){return c={filter:r,includeLinks:i,includeStatuses:s,includeMyBranches:n,latestStatusesOnly:u,peelTags:p,filterContains:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/refs/{*filter}",routeValues:{project:t,repositoryId:e},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(d,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateRef=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filter:r,projectId:i},[2,this.beginRequest({apiVersion:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/Repositories/{repositoryId}",routeValues:{project:r,repositoryId:t},body:e})]})})},t.prototype.getRevertConflict=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:e,revertId:t,conflictId:r}})]})})},t.prototype.getRevertConflicts=function(e,t,r,i,s,n,u,p){return __awaiter(this,void 0,void 0,function(){var a,c=this;return __generator(this,function(d){return a={continuationToken:i,$top:s,excludeResolved:n,onlyResolved:u,includeObsolete:p},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:r,repositoryId:e,revertId:t},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateRevertConflict=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:i,repositoryId:t,revertId:r,conflictId:o},body:e})]})})},t.prototype.updateRevertConflicts=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/reverts/{revertId}/conflicts/{conflictId}",routeValues:{project:o,repositoryId:t,revertId:r},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:"7.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:"7.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:"7.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:"7.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 n;return __generator(this,function(u){return n={top:o,skip:i,latestOnly:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:n})]})})},t.prototype.getSuggestions=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.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 n;return __generator(this,function(u){return n={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},t.prototype.getTreeZip=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={projectId:o,recursive:i,fileName:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/Trees/{sha1}",routeValues:{project:r,repositoryId:e,sha1:t},queryParams:n})]})})},t.RESOURCE_AREA_ID="4e080c62-fa21-4fbc-8fef-2a10a2b38049",t}(r.RestClientBase);t.GitRestClient=i}); |
{ | ||
"name": "azure-devops-extension-api", | ||
"version": "2.224.0", | ||
"version": "2.225.0", | ||
"description": "REST client libraries and contracts for Azure DevOps web extension developers.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -225,2 +225,19 @@ import * as TfsCore from "../Core/Core"; | ||
} | ||
/** | ||
* Parameters for test case export operation | ||
*/ | ||
export interface ExportTestCaseParams { | ||
/** | ||
* Test Case IDs to exported | ||
*/ | ||
testCaseIds: number[]; | ||
/** | ||
* ID of test plan containing test cases | ||
*/ | ||
testPlanId: number; | ||
/** | ||
* ID of test suite containing test cases | ||
*/ | ||
testSuiteId: number; | ||
} | ||
export declare enum FailureType { | ||
@@ -227,0 +244,0 @@ None = 0, |
@@ -244,2 +244,9 @@ import { IVssRestClientOptions } from "../Common/Context"; | ||
/** | ||
* Exports a set of test cases from a suite to a file. Currently supported formats: xlsx | ||
* | ||
* @param exportTestCaseRequestBody - A ExportTestCaseParams object.ExportTestCaseParams | ||
* @param project - Project ID or project name | ||
*/ | ||
exportTestCases(exportTestCaseRequestBody: TestPlan.ExportTestCaseParams, project: string): Promise<ArrayBuffer>; | ||
/** | ||
* Delete a test case. | ||
@@ -246,0 +253,0 @@ * |
@@ -822,2 +822,24 @@ /* | ||
/** | ||
* Exports a set of test cases from a suite to a file. Currently supported formats: xlsx | ||
* | ||
* @param exportTestCaseRequestBody - A ExportTestCaseParams object.ExportTestCaseParams | ||
* @param project - Project ID or project name | ||
*/ | ||
TestPlanRestClient.prototype.exportTestCases = function (exportTestCaseRequestBody, project) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.beginRequest({ | ||
apiVersion: "7.1-preview.1", | ||
method: "POST", | ||
httpResponseType: "application/octet-stream", | ||
routeTemplate: "{project}/_apis/testplan/TestCases/TestCaseFile", | ||
routeValues: { | ||
project: project | ||
}, | ||
body: exportTestCaseRequestBody | ||
})]; | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Delete a test case. | ||
@@ -824,0 +846,0 @@ * |
@@ -1,1 +0,1 @@ | ||
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){s.label=n[1];break}if(6===n[0]&&s.label<o[1]){s.label=o[1],o=n;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(n);break}o[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,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.createTestConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestConfguration=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={testConfiguartionId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.getTestConfigurationById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e,testConfigurationId:t}})]})})},t.prototype.getTestConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestConfiguration=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={testConfiguartionId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getTestEntityCountByPlanId=function(e,t,n,r,i,o,a,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={states:n,outcome:r,configurations:i,testers:o,assignedTo:a,entity:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Count/{planId}",routeValues:{project:e,planId:t},queryParams:u})]})})},t.prototype.createTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlanById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlans=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var a,s=this;return __generator(this,function(u){return a={owner:t,continuationToken:n,includePlanDetails:i,filterActivePlans:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.getSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={suiteEntryType:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:e,suiteId:t},queryParams:r})]})})},t.prototype.reorderSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:t,suiteId:n},body:e})]})})},t.prototype.createBulkTestSuites=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{parentSuiteId}/bulk",routeValues:{project:t,planId:n,parentSuiteId:r},body:e})]})})},t.prototype.createTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.deleteTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n}})]})})},t.prototype.getTestSuiteById=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={expand:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.getTestSuitesForPlan=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var a,s=this;return __generator(this,function(u){return a={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getSuitesByTestCaseId=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={testCaseId:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/testplan/Suites",queryParams:t})]})})},t.prototype.addTestCasesToSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getTestCase=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={witFields:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n,testCaseId:r},queryParams:a})]})})},t.prototype.getTestCaseList=function(e,t,n,i,o,a,s,u,p,c,l){return __awaiter(this,void 0,void 0,function(){var d,_=this;return __generator(this,function(f){return d={testIds:i,configurationIds:o,witFields:a,continuationToken:s,returnIdentityRef:u,expand:p,excludeFlags:c,isRecursive:l},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:d,returnRawResponse:!0}).then(function(e){return __awaiter(_,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.removeTestCasesFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testCaseIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.removeTestCasesListFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.updateSuiteTestCases=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.cloneTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:t},body:e})]})})},t.prototype.getTestCaseCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.cloneTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.getPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={pointId:r,returnIdentityRef:i,includePointDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:a})]})})},t.prototype.getPointsList=function(e,t,n,i,o,a,s,u,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={testPointIds:i,testCaseId:o,continuationToken:a,returnIdentityRef:s,includePointDetails:u,isRecursive:p},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={includePointDetails:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:t,planId:n,suiteId:r},queryParams:a,body:e})]})})},t.prototype.cloneTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getSuiteCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.createTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariableById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariables=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestVariable=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t,testVariableId:n},body:e})]})})},t}(n.RestClientBase);t.TestPlanRestClient=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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){s.label=n[1];break}if(6===n[0]&&s.label<o[1]){s.label=o[1],o=n;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(n);break}o[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,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.createTestConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestConfguration=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={testConfiguartionId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.getTestConfigurationById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e,testConfigurationId:t}})]})})},t.prototype.getTestConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestConfiguration=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={testConfiguartionId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getTestEntityCountByPlanId=function(e,t,n,r,i,o,a,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={states:n,outcome:r,configurations:i,testers:o,assignedTo:a,entity:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Count/{planId}",routeValues:{project:e,planId:t},queryParams:u})]})})},t.prototype.createTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlanById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlans=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var a,s=this;return __generator(this,function(u){return a={owner:t,continuationToken:n,includePlanDetails:i,filterActivePlans:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.getSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={suiteEntryType:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:e,suiteId:t},queryParams:r})]})})},t.prototype.reorderSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:t,suiteId:n},body:e})]})})},t.prototype.createBulkTestSuites=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{parentSuiteId}/bulk",routeValues:{project:t,planId:n,parentSuiteId:r},body:e})]})})},t.prototype.createTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.deleteTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n}})]})})},t.prototype.getTestSuiteById=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={expand:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.getTestSuitesForPlan=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var a,s=this;return __generator(this,function(u){return a={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getSuitesByTestCaseId=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={testCaseId:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/testplan/Suites",queryParams:t})]})})},t.prototype.addTestCasesToSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getTestCase=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={witFields:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n,testCaseId:r},queryParams:a})]})})},t.prototype.getTestCaseList=function(e,t,n,i,o,a,s,u,p,c,l){return __awaiter(this,void 0,void 0,function(){var d,_=this;return __generator(this,function(h){return d={testIds:i,configurationIds:o,witFields:a,continuationToken:s,returnIdentityRef:u,expand:p,excludeFlags:c,isRecursive:l},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:d,returnRawResponse:!0}).then(function(e){return __awaiter(_,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.removeTestCasesFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testCaseIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.removeTestCasesListFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.updateSuiteTestCases=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.cloneTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:t},body:e})]})})},t.prototype.getTestCaseCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.exportTestCases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testplan/TestCases/TestCaseFile",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.cloneTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.getPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={pointId:r,returnIdentityRef:i,includePointDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:a})]})})},t.prototype.getPointsList=function(e,t,n,i,o,a,s,u,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={testPointIds:i,testCaseId:o,continuationToken:a,returnIdentityRef:s,includePointDetails:u,isRecursive:p},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={includePointDetails:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:t,planId:n,suiteId:r},queryParams:a,body:e})]})})},t.prototype.cloneTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getSuiteCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.createTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariableById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariables=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestVariable=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t,testVariableId:n},body:e})]})})},t}(n.RestClientBase);t.TestPlanRestClient=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
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
4526989
96950