Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

azure-devops-extension-api

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

azure-devops-extension-api - npm Package Compare versions

Comparing version 4.236.0 to 4.237.0

27

Alert/Alert.d.ts

@@ -48,2 +48,6 @@ import * as WebApi from "../WebApi/WebApi";

/**
* Relations between alerts and other artifacts.
*/
relations: RelationMetadata[];
/**
* Repository URL where the alert was detected.

@@ -182,2 +186,8 @@ */

/**
* Properties of the pipeline.
*/
additionalProperties: {
[key: string]: any;
};
/**
* Reference to a git object, e.g. branch ref.

@@ -483,4 +493,14 @@ */

export declare enum MetadataOperation {
Add = 0,
Remove = 1
/**
* Represents the defualt value if the operation is not specified or not supported.
*/
None = 0,
/**
* Represents the addition of the metadata.
*/
Add = 1,
/**
* Represents the removal of the metadata.
*/
Remove = 2
}

@@ -509,2 +529,5 @@ /**

phaseId: string;
properties: {
[key: string]: any;
};
}

@@ -511,0 +534,0 @@ export interface Region {

@@ -163,4 +163,14 @@ /*

(function (MetadataOperation) {
MetadataOperation[MetadataOperation["Add"] = 0] = "Add";
MetadataOperation[MetadataOperation["Remove"] = 1] = "Remove";
/**
* Represents the defualt value if the operation is not specified or not supported.
*/
MetadataOperation[MetadataOperation["None"] = 0] = "None";
/**
* Represents the addition of the metadata.
*/
MetadataOperation[MetadataOperation["Add"] = 1] = "Add";
/**
* Represents the removal of the metadata.
*/
MetadataOperation[MetadataOperation["Remove"] = 2] = "Remove";
})(MetadataOperation = exports.MetadataOperation || (exports.MetadataOperation = {}));

@@ -167,0 +177,0 @@ /**

2

Alert/Alert.min.js

@@ -1,1 +0,1 @@

define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code"}(n.AlertType||(n.AlertType={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.Add=0]="Add",e[e.Remove=1]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}))});
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.Secret=2]="Secret",e[e.Code=3]="Code"}(n.AlertType||(n.AlertType={}));!function(e){e[e.Default=0]="Default",e[e.AdoPipeline=1]="AdoPipeline"}(n.AnalysisConfigurationType||(n.AnalysisConfigurationType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.NuGet=1]="NuGet",e[e.Npm=2]="Npm",e[e.Maven=3]="Maven",e[e.Git=4]="Git",e[e.Other=5]="Other",e[e.RubyGems=6]="RubyGems",e[e.Cargo=7]="Cargo",e[e.Pip=8]="Pip",e[e.File=9]="File",e[e.Go=10]="Go",e[e.DockerImage=11]="DockerImage",e[e.Pod=12]="Pod",e[e.Linux=13]="Linux",e[e.Conda=14]="Conda",e[e.DockerReference=15]="DockerReference",e[e.Vcpkg=16]="Vcpkg"}(n.ComponentType||(n.ComponentType={}));!function(e){e[e.High=0]="High",e[e.Other=1]="Other"}(n.Confidence||(n.Confidence={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Fixed=1]="Fixed",e[e.AcceptedRisk=2]="AcceptedRisk",e[e.FalsePositive=3]="FalsePositive"}(n.DismissalType||(n.DismissalType={}));!function(e){e[e.None=0]="None",e[e.ValidationFingerprint=1]="ValidationFingerprint"}(n.ExpandOption||(n.ExpandOption={}));!function(e){e[e.None=0]="None",e[e.Created=1]="Created",e[e.Updated=2]="Updated",e[e.Deleted=3]="Deleted"}(n.MetadataChangeType||(n.MetadataChangeType={}));!function(e){e[e.None=0]="None",e[e.Add=1]="Add",e[e.Remove=2]="Remove"}(n.MetadataOperation||(n.MetadataOperation={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Dependency=1]="Dependency",e[e.VersionControl=2]="VersionControl"}(n.ResultType||(n.ResultType={}));!function(e){e[e.New=0]="New",e[e.Queued=1]="Queued",e[e.Completed=2]="Completed",e[e.Failed=3]="Failed"}(n.SarifJobStatus||(n.SarifJobStatus={}));!function(e){e[e.Low=0]="Low",e[e.Medium=1]="Medium",e[e.High=2]="High",e[e.Critical=3]="Critical",e[e.Note=4]="Note",e[e.Warning=5]="Warning",e[e.Error=6]="Error"}(n.Severity||(n.Severity={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Active=1]="Active",e[e.Dismissed=2]="Dismissed",e[e.Fixed=4]="Fixed",e[e.AutoDismissed=8]="AutoDismissed"}(n.State||(n.State={}))});

@@ -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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.1",method:"POST",routeTemplate:"_apis/git/advsecEnablement",body:e})]})})},t.prototype.getEstimatedBillablePushersOrg=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/git/advsecEstimate"})]})})},t.prototype.getEstimatedBillablePushersProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/advsecEstimate",routeValues:{project:e}})]})})},t.prototype.getEstimatedBillableCommittersRepo=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/advsecEstimate",routeValues:{project:e,repositoryId:t}})]})})},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.2-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.2-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.2-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.2-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:i})]})})},t.prototype.getBillableCommittersDetail=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$includeDetails:t,$billingDate:r},[2,this.beginRequest({apiVersion:"7.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.3",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.2-preview.3",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.2-preview.3",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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-preview.1",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getRefFavoritesForProject=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={identityId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/favorites/refsForProject",routeValues:{project:e},queryParams:r})]})})},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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:n})]})})},t.prototype.getSuggestions=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={preferCompareBranch:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/suggestions",routeValues:{project:t,repositoryId:e},queryParams:o})]})})},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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.1",method:"POST",routeTemplate:"_apis/git/advsecEnablement",body:e})]})})},t.prototype.getEstimatedBillablePushersOrg=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/git/advsecEstimate"})]})})},t.prototype.getEstimatedBillablePushersProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/advsecEstimate",routeValues:{project:e}})]})})},t.prototype.getEstimatedBillableCommittersRepo=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/advsecEstimate",routeValues:{project:e,repositoryId:t}})]})})},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.2-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.2-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.2-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.2-preview.1",routeTemplate:"{project}/_apis/git/billableCommitters",routeValues:{project:e},queryParams:i})]})})},t.prototype.getBillableCommittersDetail=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$includeDetails:t,$billingDate:r},[2,this.beginRequest({apiVersion:"7.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryNameOrId}/forkSyncRequests/{forkSyncOperationId}",routeValues:{project:t,repositoryNameOrId:e},queryParams:i})]})})},t.prototype.getHfsItem=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,resolveHfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getHfsItemContent=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,resolveHfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getHfsItemText=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,resolveHfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},t.prototype.getHfsItemZip=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,resolveHfs:c,sanitize:d},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/HfsItems/{*path}",routeValues:{project:r,repositoryId:e},queryParams:l})]})})},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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.3",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.2-preview.3",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.2-preview.3",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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-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.2-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.2-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.2-preview.1",routeTemplate:"{project}/_apis/git/favorites/refs/{favoriteId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getRefFavoritesForProject=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={identityId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/favorites/refsForProject",routeValues:{project:e},queryParams:r})]})})},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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",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.2-preview.2",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}/Statuses",routeValues:{project:r,commitId:e,repositoryId:t},queryParams:n})]})})},t.prototype.getSuggestions=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={preferCompareBranch:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/git/repositories/{repositoryId}/suggestions",routeValues:{project:t,repositoryId:e},queryParams:o})]})})},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.2-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.2-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});
import * as WebApi from "../WebApi/WebApi";
export interface AdvSecEnablementFeatures {
/**
* Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>If includeAllProperties in the request is false, this value will be null.
*/
dependabotEnabled: boolean;
}
export interface AdvSecEnablementSettings {

@@ -29,9 +35,9 @@ /**

/**
* Includes additional features that can be enabled alongside Advanced Security
*/
advSecEnablementFeatures: AdvSecEnablementFeatures;
/**
* When true, pushes containing secrets will be blocked. \<br /\>When false, pushes are scanned for secrets and are not blocked. \<br /\>If includeAllProperties in the request is false, this value will be null.
*/
blockPushes: boolean;
/**
* Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>If includeAllProperties in the request is false, this value will be null.
*/
dependabotEnabled: boolean;
}

@@ -38,0 +44,0 @@ /**

{
"name": "azure-devops-extension-api",
"version": "4.236.0",
"version": "4.237.0",
"description": "REST client libraries and contracts for Azure DevOps web extension developers.",

@@ -5,0 +5,0 @@ "repository": {

@@ -544,2 +544,16 @@ /*

})(ManualInterventionStatus = exports.ManualInterventionStatus || (exports.ManualInterventionStatus = {}));
/**
* Describes manual intervention status
*/
var ManualInterventionType;
(function (ManualInterventionType) {
/**
* The manual intervention server task.
*/
ManualInterventionType[ManualInterventionType["Task"] = 1] = "Task";
/**
* The manual intervention proof of presence server task.
*/
ManualInterventionType[ManualInterventionType["ProofOfPresence"] = 2] = "ProofOfPresence";
})(ManualInterventionType = exports.ManualInterventionType || (exports.ManualInterventionType = {}));
var ParallelExecutionTypes;

@@ -546,0 +560,0 @@ (function (ParallelExecutionTypes) {

@@ -1,1 +0,1 @@

define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.XamlBuild=0]="XamlBuild",e[e.Build=1]="Build",e[e.Jenkins=2]="Jenkins",e[e.FileShare=3]="FileShare",e[e.Nuget=4]="Nuget",e[e.TfsOnPrem=5]="TfsOnPrem",e[e.GitHub=6]="GitHub",e[e.TFGit=7]="TFGit",e[e.ExternalTfsBuild=8]="ExternalTfsBuild",e[e.Custom=9]="Custom",e[e.Tfvc=10]="Tfvc"}(n.AgentArtifactType||(n.AgentArtifactType={}));!function(e){e[e.BeforeGates=1]="BeforeGates",e[e.AfterSuccessfulGates=2]="AfterSuccessfulGates",e[e.AfterGatesAlways=4]="AfterGatesAlways"}(n.ApprovalExecutionOrder||(n.ApprovalExecutionOrder={}));!function(e){e[e.None=0]="None",e[e.ManualApprovals=1]="ManualApprovals",e[e.AutomatedApprovals=2]="AutomatedApprovals",e[e.ApprovalSnapshots=4]="ApprovalSnapshots",e[e.All=7]="All"}(n.ApprovalFilters||(n.ApprovalFilters={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Pending=1]="Pending",e[e.Approved=2]="Approved",e[e.Rejected=4]="Rejected",e[e.Reassigned=6]="Reassigned",e[e.Canceled=7]="Canceled",e[e.Skipped=8]="Skipped"}(n.ApprovalStatus||(n.ApprovalStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.PreDeploy=1]="PreDeploy",e[e.PostDeploy=2]="PostDeploy",e[e.All=3]="All"}(n.ApprovalType||(n.ApprovalType={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.RevalidateApproverIdentity=0]="RevalidateApproverIdentity",e[e.OnBehalfOf=1]="OnBehalfOf"}(n.AuthorizationHeaderFor||(n.AuthorizationHeaderFor={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Event=1]="Event",e[e.EnvironmentState=2]="EnvironmentState",e[e.Artifact=4]="Artifact"}(n.ConditionType||(n.ConditionType={}));!function(e){e[e.Automatic=0]="Automatic",e[e.DeploymentSubmitter=1]="DeploymentSubmitter",e[e.FirstPreDeploymentApprover=2]="FirstPreDeploymentApprover"}(n.DeploymentAuthorizationOwner||(n.DeploymentAuthorizationOwner={}));!function(e){e[e.All=0]="All",e[e.DeploymentOnly=1]="DeploymentOnly",e[e.Approvals=2]="Approvals",e[e.Artifacts=4]="Artifacts"}(n.DeploymentExpands||(n.DeploymentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Queued=1]="Queued",e[e.Scheduled=2]="Scheduled",e[e.Pending=4]="Pending",e[e.Approved=8]="Approved",e[e.Rejected=16]="Rejected",e[e.Deferred=32]="Deferred",e[e.QueuedForAgent=64]="QueuedForAgent",e[e.PhaseInProgress=128]="PhaseInProgress",e[e.PhaseSucceeded=256]="PhaseSucceeded",e[e.PhasePartiallySucceeded=512]="PhasePartiallySucceeded",e[e.PhaseFailed=1024]="PhaseFailed",e[e.Canceled=2048]="Canceled",e[e.PhaseCanceled=4096]="PhaseCanceled",e[e.ManualInterventionPending=8192]="ManualInterventionPending",e[e.QueuedForPipeline=16384]="QueuedForPipeline",e[e.Cancelling=32768]="Cancelling",e[e.EvaluatingGates=65536]="EvaluatingGates",e[e.GateFailed=131072]="GateFailed",e[e.All=258047]="All"}(n.DeploymentOperationStatus||(n.DeploymentOperationStatus={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.Automated=2]="Automated",e[e.Scheduled=4]="Scheduled",e[e.RedeployTrigger=8]="RedeployTrigger"}(n.DeploymentReason||(n.DeploymentReason={}));!function(e){e[e.Regular=1]="Regular",e[e.FailingSince=2]="FailingSince"}(n.DeploymentsQueryType||(n.DeploymentsQueryType={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotDeployed=1]="NotDeployed",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.PartiallySucceeded=8]="PartiallySucceeded",e[e.Failed=16]="Failed",e[e.All=31]="All"}(n.DeploymentStatus||(n.DeploymentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Succeeded=8]="Succeeded",e[e.Failed=16]="Failed",e[e.Canceled=32]="Canceled",e[e.Skipped=64]="Skipped",e[e.Cancelling=128]="Cancelling"}(n.DeployPhaseStatus||(n.DeployPhaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.AgentBasedDeployment=1]="AgentBasedDeployment",e[e.RunOnServer=2]="RunOnServer",e[e.MachineGroupBasedDeployment=4]="MachineGroupBasedDeployment",e[e.DeploymentGates=8]="DeploymentGates"}(n.DeployPhaseTypes||(n.DeployPhaseTypes={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Canceled=8]="Canceled",e[e.Rejected=16]="Rejected",e[e.Queued=32]="Queued",e[e.Scheduled=64]="Scheduled",e[e.PartiallySucceeded=128]="PartiallySucceeded"}(n.EnvironmentStatus||(n.EnvironmentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.DeploymentGroupRedeploy=1]="DeploymentGroupRedeploy",e[e.RollbackRedeploy=2]="RollbackRedeploy"}(n.EnvironmentTriggerType||(n.EnvironmentTriggerType={}));!function(e){e[e.None=0]="None",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(n.FolderPathQueryOrder||(n.FolderPathQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Failed=8]="Failed",e[e.Canceled=16]="Canceled"}(n.GateStatus||(n.GateStatus={}));!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.System=2]="System"}(n.IssueSource||(n.IssueSource={}));!function(e){e[e.Details=0]="Details",e[e.Environments=1]="Environments",e[e.Issues=2]="Issues",e[e.TestResults=3]="TestResults",e[e.WorkItems=4]="WorkItems",e[e.ReleaseInfo=5]="ReleaseInfo"}(n.MailSectionType||(n.MailSectionType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.Rejected=2]="Rejected",e[e.Approved=4]="Approved",e[e.Canceled=8]="Canceled"}(n.ManualInterventionStatus||(n.ManualInterventionStatus={}));!function(e){e[e.None=0]="None",e[e.MultiConfiguration=1]="MultiConfiguration",e[e.MultiMachine=2]="MultiMachine"}(n.ParallelExecutionTypes||(n.ParallelExecutionTypes={}));!function(e){e[e.Designer=1]="Designer",e[e.Yaml=2]="Yaml"}(n.PipelineProcessTypes||(n.PipelineProcessTypes={}));!function(e){e[e.Inclusion=0]="Inclusion",e[e.Exclusion=1]="Exclusion"}(n.PropertySelectorType||(n.PropertySelectorType={}));!function(e){e[e.None=0]="None",e[e.TfsGit=1]="TfsGit",e[e.GitHub=2]="GitHub"}(n.PullRequestSystemType||(n.PullRequestSystemType={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Triggers=8]="Triggers",e[e.Variables=16]="Variables",e[e.Tags=32]="Tags",e[e.LastRelease=64]="LastRelease"}(n.ReleaseDefinitionExpands||(n.ReleaseDefinitionExpands={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending",e[e.NameAscending=2]="NameAscending",e[e.NameDescending=3]="NameDescending"}(n.ReleaseDefinitionQueryOrder||(n.ReleaseDefinitionQueryOrder={}));!function(e){e[e.Undefined=0]="Undefined",e[e.RestApi=1]="RestApi",e[e.UserInterface=2]="UserInterface",e[e.Ibiza=4]="Ibiza",e[e.PortalExtensionApi=8]="PortalExtensionApi"}(n.ReleaseDefinitionSource||(n.ReleaseDefinitionSource={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.ReleaseEnvironmentExpands||(n.ReleaseEnvironmentExpands={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Approvals=8]="Approvals",e[e.ManualInterventions=16]="ManualInterventions",e[e.Variables=32]="Variables",e[e.Tags=64]="Tags"}(n.ReleaseExpands||(n.ReleaseExpands={}));!function(e){e[e.Descending=0]="Descending",e[e.Ascending=1]="Ascending"}(n.ReleaseQueryOrder||(n.ReleaseQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.Schedule=3]="Schedule",e[e.PullRequest=4]="PullRequest"}(n.ReleaseReason||(n.ReleaseReason={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Draft=1]="Draft",e[e.Active=2]="Active",e[e.Abandoned=4]="Abandoned"}(n.ReleaseStatus||(n.ReleaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.ArtifactSource=1]="ArtifactSource",e[e.Schedule=2]="Schedule",e[e.SourceRepo=3]="SourceRepo",e[e.ContainerImage=4]="ContainerImage",e[e.Package=5]="Package",e[e.PullRequest=6]="PullRequest"}(n.ReleaseTriggerType||(n.ReleaseTriggerType={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.ScheduleDays||(n.ScheduleDays={}));!function(e){e[e.ServiceAccount=1]="ServiceAccount",e[e.RequestingUser=2]="RequestingUser"}(n.SenderType||(n.SenderType={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.SingleReleaseExpands||(n.SingleReleaseExpands={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Success=3]="Success",e[e.Failure=4]="Failure",e[e.Canceled=5]="Canceled",e[e.Skipped=6]="Skipped",e[e.Succeeded=7]="Succeeded",e[e.Failed=8]="Failed",e[e.PartiallySucceeded=9]="PartiallySucceeded"}(n.TaskStatus||(n.TaskStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.TFSGit=1]="TFSGit"}(n.YamlFileSourceTypes||(n.YamlFileSourceTypes={}))});
define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.XamlBuild=0]="XamlBuild",e[e.Build=1]="Build",e[e.Jenkins=2]="Jenkins",e[e.FileShare=3]="FileShare",e[e.Nuget=4]="Nuget",e[e.TfsOnPrem=5]="TfsOnPrem",e[e.GitHub=6]="GitHub",e[e.TFGit=7]="TFGit",e[e.ExternalTfsBuild=8]="ExternalTfsBuild",e[e.Custom=9]="Custom",e[e.Tfvc=10]="Tfvc"}(n.AgentArtifactType||(n.AgentArtifactType={}));!function(e){e[e.BeforeGates=1]="BeforeGates",e[e.AfterSuccessfulGates=2]="AfterSuccessfulGates",e[e.AfterGatesAlways=4]="AfterGatesAlways"}(n.ApprovalExecutionOrder||(n.ApprovalExecutionOrder={}));!function(e){e[e.None=0]="None",e[e.ManualApprovals=1]="ManualApprovals",e[e.AutomatedApprovals=2]="AutomatedApprovals",e[e.ApprovalSnapshots=4]="ApprovalSnapshots",e[e.All=7]="All"}(n.ApprovalFilters||(n.ApprovalFilters={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Pending=1]="Pending",e[e.Approved=2]="Approved",e[e.Rejected=4]="Rejected",e[e.Reassigned=6]="Reassigned",e[e.Canceled=7]="Canceled",e[e.Skipped=8]="Skipped"}(n.ApprovalStatus||(n.ApprovalStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.PreDeploy=1]="PreDeploy",e[e.PostDeploy=2]="PostDeploy",e[e.All=3]="All"}(n.ApprovalType||(n.ApprovalType={}));!function(e){e[e.Add=1]="Add",e[e.Update=2]="Update",e[e.Delete=3]="Delete",e[e.Undelete=4]="Undelete"}(n.AuditAction||(n.AuditAction={}));!function(e){e[e.RevalidateApproverIdentity=0]="RevalidateApproverIdentity",e[e.OnBehalfOf=1]="OnBehalfOf"}(n.AuthorizationHeaderFor||(n.AuthorizationHeaderFor={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Event=1]="Event",e[e.EnvironmentState=2]="EnvironmentState",e[e.Artifact=4]="Artifact"}(n.ConditionType||(n.ConditionType={}));!function(e){e[e.Automatic=0]="Automatic",e[e.DeploymentSubmitter=1]="DeploymentSubmitter",e[e.FirstPreDeploymentApprover=2]="FirstPreDeploymentApprover"}(n.DeploymentAuthorizationOwner||(n.DeploymentAuthorizationOwner={}));!function(e){e[e.All=0]="All",e[e.DeploymentOnly=1]="DeploymentOnly",e[e.Approvals=2]="Approvals",e[e.Artifacts=4]="Artifacts"}(n.DeploymentExpands||(n.DeploymentExpands={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Queued=1]="Queued",e[e.Scheduled=2]="Scheduled",e[e.Pending=4]="Pending",e[e.Approved=8]="Approved",e[e.Rejected=16]="Rejected",e[e.Deferred=32]="Deferred",e[e.QueuedForAgent=64]="QueuedForAgent",e[e.PhaseInProgress=128]="PhaseInProgress",e[e.PhaseSucceeded=256]="PhaseSucceeded",e[e.PhasePartiallySucceeded=512]="PhasePartiallySucceeded",e[e.PhaseFailed=1024]="PhaseFailed",e[e.Canceled=2048]="Canceled",e[e.PhaseCanceled=4096]="PhaseCanceled",e[e.ManualInterventionPending=8192]="ManualInterventionPending",e[e.QueuedForPipeline=16384]="QueuedForPipeline",e[e.Cancelling=32768]="Cancelling",e[e.EvaluatingGates=65536]="EvaluatingGates",e[e.GateFailed=131072]="GateFailed",e[e.All=258047]="All"}(n.DeploymentOperationStatus||(n.DeploymentOperationStatus={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.Automated=2]="Automated",e[e.Scheduled=4]="Scheduled",e[e.RedeployTrigger=8]="RedeployTrigger"}(n.DeploymentReason||(n.DeploymentReason={}));!function(e){e[e.Regular=1]="Regular",e[e.FailingSince=2]="FailingSince"}(n.DeploymentsQueryType||(n.DeploymentsQueryType={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotDeployed=1]="NotDeployed",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.PartiallySucceeded=8]="PartiallySucceeded",e[e.Failed=16]="Failed",e[e.All=31]="All"}(n.DeploymentStatus||(n.DeploymentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.PartiallySucceeded=4]="PartiallySucceeded",e[e.Succeeded=8]="Succeeded",e[e.Failed=16]="Failed",e[e.Canceled=32]="Canceled",e[e.Skipped=64]="Skipped",e[e.Cancelling=128]="Cancelling"}(n.DeployPhaseStatus||(n.DeployPhaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.AgentBasedDeployment=1]="AgentBasedDeployment",e[e.RunOnServer=2]="RunOnServer",e[e.MachineGroupBasedDeployment=4]="MachineGroupBasedDeployment",e[e.DeploymentGates=8]="DeploymentGates"}(n.DeployPhaseTypes||(n.DeployPhaseTypes={}));!function(e){e[e.Undefined=0]="Undefined",e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Canceled=8]="Canceled",e[e.Rejected=16]="Rejected",e[e.Queued=32]="Queued",e[e.Scheduled=64]="Scheduled",e[e.PartiallySucceeded=128]="PartiallySucceeded"}(n.EnvironmentStatus||(n.EnvironmentStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.DeploymentGroupRedeploy=1]="DeploymentGroupRedeploy",e[e.RollbackRedeploy=2]="RollbackRedeploy"}(n.EnvironmentTriggerType||(n.EnvironmentTriggerType={}));!function(e){e[e.None=0]="None",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"}(n.FolderPathQueryOrder||(n.FolderPathQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Succeeded=4]="Succeeded",e[e.Failed=8]="Failed",e[e.Canceled=16]="Canceled"}(n.GateStatus||(n.GateStatus={}));!function(e){e[e.None=0]="None",e[e.User=1]="User",e[e.System=2]="System"}(n.IssueSource||(n.IssueSource={}));!function(e){e[e.Details=0]="Details",e[e.Environments=1]="Environments",e[e.Issues=2]="Issues",e[e.TestResults=3]="TestResults",e[e.WorkItems=4]="WorkItems",e[e.ReleaseInfo=5]="ReleaseInfo"}(n.MailSectionType||(n.MailSectionType={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.Rejected=2]="Rejected",e[e.Approved=4]="Approved",e[e.Canceled=8]="Canceled"}(n.ManualInterventionStatus||(n.ManualInterventionStatus={}));!function(e){e[e.Task=1]="Task",e[e.ProofOfPresence=2]="ProofOfPresence"}(n.ManualInterventionType||(n.ManualInterventionType={}));!function(e){e[e.None=0]="None",e[e.MultiConfiguration=1]="MultiConfiguration",e[e.MultiMachine=2]="MultiMachine"}(n.ParallelExecutionTypes||(n.ParallelExecutionTypes={}));!function(e){e[e.Designer=1]="Designer",e[e.Yaml=2]="Yaml"}(n.PipelineProcessTypes||(n.PipelineProcessTypes={}));!function(e){e[e.Inclusion=0]="Inclusion",e[e.Exclusion=1]="Exclusion"}(n.PropertySelectorType||(n.PropertySelectorType={}));!function(e){e[e.None=0]="None",e[e.TfsGit=1]="TfsGit",e[e.GitHub=2]="GitHub"}(n.PullRequestSystemType||(n.PullRequestSystemType={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Triggers=8]="Triggers",e[e.Variables=16]="Variables",e[e.Tags=32]="Tags",e[e.LastRelease=64]="LastRelease"}(n.ReleaseDefinitionExpands||(n.ReleaseDefinitionExpands={}));!function(e){e[e.IdAscending=0]="IdAscending",e[e.IdDescending=1]="IdDescending",e[e.NameAscending=2]="NameAscending",e[e.NameDescending=3]="NameDescending"}(n.ReleaseDefinitionQueryOrder||(n.ReleaseDefinitionQueryOrder={}));!function(e){e[e.Undefined=0]="Undefined",e[e.RestApi=1]="RestApi",e[e.UserInterface=2]="UserInterface",e[e.Ibiza=4]="Ibiza",e[e.PortalExtensionApi=8]="PortalExtensionApi"}(n.ReleaseDefinitionSource||(n.ReleaseDefinitionSource={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.ReleaseEnvironmentExpands||(n.ReleaseEnvironmentExpands={}));!function(e){e[e.None=0]="None",e[e.Environments=2]="Environments",e[e.Artifacts=4]="Artifacts",e[e.Approvals=8]="Approvals",e[e.ManualInterventions=16]="ManualInterventions",e[e.Variables=32]="Variables",e[e.Tags=64]="Tags"}(n.ReleaseExpands||(n.ReleaseExpands={}));!function(e){e[e.Descending=0]="Descending",e[e.Ascending=1]="Ascending"}(n.ReleaseQueryOrder||(n.ReleaseQueryOrder={}));!function(e){e[e.None=0]="None",e[e.Manual=1]="Manual",e[e.ContinuousIntegration=2]="ContinuousIntegration",e[e.Schedule=3]="Schedule",e[e.PullRequest=4]="PullRequest"}(n.ReleaseReason||(n.ReleaseReason={}));!function(e){e[e.Undefined=0]="Undefined",e[e.Draft=1]="Draft",e[e.Active=2]="Active",e[e.Abandoned=4]="Abandoned"}(n.ReleaseStatus||(n.ReleaseStatus={}));!function(e){e[e.Undefined=0]="Undefined",e[e.ArtifactSource=1]="ArtifactSource",e[e.Schedule=2]="Schedule",e[e.SourceRepo=3]="SourceRepo",e[e.ContainerImage=4]="ContainerImage",e[e.Package=5]="Package",e[e.PullRequest=6]="PullRequest"}(n.ReleaseTriggerType||(n.ReleaseTriggerType={}));!function(e){e[e.None=0]="None",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=4]="Wednesday",e[e.Thursday=8]="Thursday",e[e.Friday=16]="Friday",e[e.Saturday=32]="Saturday",e[e.Sunday=64]="Sunday",e[e.All=127]="All"}(n.ScheduleDays||(n.ScheduleDays={}));!function(e){e[e.ServiceAccount=1]="ServiceAccount",e[e.RequestingUser=2]="RequestingUser"}(n.SenderType||(n.SenderType={}));!function(e){e[e.None=0]="None",e[e.Tasks=1]="Tasks"}(n.SingleReleaseExpands||(n.SingleReleaseExpands={}));!function(e){e[e.Unknown=0]="Unknown",e[e.Pending=1]="Pending",e[e.InProgress=2]="InProgress",e[e.Success=3]="Success",e[e.Failure=4]="Failure",e[e.Canceled=5]="Canceled",e[e.Skipped=6]="Skipped",e[e.Succeeded=7]="Succeeded",e[e.Failed=8]="Failed",e[e.PartiallySucceeded=9]="PartiallySucceeded"}(n.TaskStatus||(n.TaskStatus={}));!function(e){e[e.None=0]="None",e[e.Manage=2]="Manage",e[e.Use=16]="Use"}(n.VariableGroupActionFilter||(n.VariableGroupActionFilter={}));!function(e){e[e.None=0]="None",e[e.TFSGit=1]="TFSGit"}(n.YamlFileSourceTypes||(n.YamlFileSourceTypes={}))});

@@ -213,3 +213,3 @@ import { IVssRestClientOptions } from "../Common/Context";

* @param maxModifiedTime - List the deployments with LastModified time \<= maxModifiedTime.
* @param deploymentStatus - List the deployments with given deployment status. Defult is 'All'.
* @param deploymentStatus - List the deployments with given deployment status. Default is 'All'.
* @param operationStatus - List the deployments with given operation status. Default is 'All'.

@@ -216,0 +216,0 @@ * @param latestAttemptsOnly - 'true' to include deployments with latest attempt only. Default is 'false'.

@@ -1011,3 +1011,3 @@ import { IVssRestClientOptions } from "../Common/Context";

* @param groupIds - Comma separated list of Ids of variable groups.
* @param loadSecrets -
* @param loadSecrets - Flag indicating if the secrets within variable groups should be loaded.
*/

@@ -1014,0 +1014,0 @@ getVariableGroupsById(project: string, groupIds: number[], loadSecrets?: boolean): Promise<TaskAgent.VariableGroup[]>;

@@ -779,2 +779,11 @@ import * as TfsCore from "../Core/Core";

/**
* Test Plan/Suite restore request body params
*/
export interface TestPlanAndSuiteRestoreModel {
/**
* Indicates whether the deleted test plan/suite should be restored.
*/
isDeleted: boolean;
}
/**
* The test plan create parameters.

@@ -781,0 +790,0 @@ */

@@ -258,2 +258,10 @@ import { IVssRestClientOptions } from "../Common/Context";

/**
* Restore deleted test plan
*
* @param restoreModel - The model containing the restore information
* @param project - Project ID or project name
* @param planId - The ID of the test plan to restore
*/
restoreDeletedTestPlan(restoreModel: TestPlan.TestPlanAndSuiteRestoreModel, project: string, planId: number): Promise<void>;
/**
* Clone test plan

@@ -310,2 +318,10 @@ *

/**
* Restore deleted test suite
*
* @param payload - The model containing the restore information
* @param project - Project ID or project name
* @param suiteId - The ID of the test suite to restore
*/
restoreDeletedTestSuite(payload: TestPlan.TestPlanAndSuiteRestoreModel, project: string, suiteId: number): Promise<void>;
/**
* Clone test suite

@@ -312,0 +328,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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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 s(e){try{u(r.next(e))}catch(e){o(e)}}function a(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(s,a)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}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,s])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};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.2-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.2-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.2-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.2-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.2-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,s,a){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:s,entity:a},[2,this.beginRequest({apiVersion:"7.2-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.2-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.2-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.2-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 s,a=this;return __generator(this,function(u){return s={owner:t,continuationToken:n,includePlanDetails:i,filterActivePlans:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,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.2-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.2-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.2-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.2-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.2-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.2-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.2-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 s,a=this;return __generator(this,function(u){return s={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t},queryParams:s,returnRawResponse:!0}).then(function(e){return __awaiter(a,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.2-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.2-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.2-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 s;return __generator(this,function(a){return s={witFields:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n,testCaseId:r},queryParams:s})]})})},t.prototype.getTestCaseList=function(e,t,n,i,o,s,a,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:s,continuationToken:a,returnIdentityRef:u,expand:p,excludeFlags:c,isRecursive:l},[2,this.beginRequest({apiVersion:"7.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.restoreDeletedTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/recycleBin/TestPlan/{planId}",routeValues:{project:t,planId:n},body:e})]})})},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.2-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.2-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 s;return __generator(this,function(a){return s={pointId:r,returnIdentityRef:i,includePointDetails:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:s})]})})},t.prototype.getPointsList=function(e,t,n,i,o,s,a,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:s,returnIdentityRef:a,includePointDetails:u,isRecursive:p},[2,this.beginRequest({apiVersion:"7.2-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 s;return __generator(this,function(a){return s={includePointDetails:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:t,planId:n,suiteId:r},queryParams:s,body:e})]})})},t.prototype.restoreDeletedTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",routeValues:{project:t,suiteId:n},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.2-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.2-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.2-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.2-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.2-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.2-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.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t,testVariableId:n},body:e})]})})},t}(n.RestClientBase);t.TestPlanRestClient=i});

@@ -810,2 +810,9 @@ import { IVssRestClientOptions } from "../Common/Context";

/**
* Retrieves TestResultsSession Layout object in TCM data store
*
* @param project - Project ID or project name
* @param sessionId - Retrieve session object.
*/
getTestSessionLayoutBySessionId(project: string, sessionId: number): Promise<any[]>;
/**
* Creates Notification object in TCM data store for a given session

@@ -812,0 +819,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 s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{a(s.next(e))}catch(e){i(e)}}function u(e){try{a(s.throw(e))}catch(e){i(e)}}function a(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(o,u)}a((s=s.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(s)throw new TypeError("Generator is already executing.");for(;u;)try{if(s=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,n=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],n=0}finally{s=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var s,n,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestIterationResultAttachment=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={iterationId:n,actionPath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:o,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:i,body:e})]})})},t.prototype.deleteTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestIterationAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestIterationAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testSubResultId:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:n})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.fetchSourceCodeCoverageReport=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/sourceview",routeValues:{project:e},queryParams:r})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s,body:r})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/codecoverage",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.addCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:t},body:e})]})})},t.prototype.queryCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={scopeFilter:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:e},queryParams:r})]})})},t.prototype.getFileLevelCodeCoverage=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/testresults/codecoverage/filecoverage",routeValues:{project:t},body:e})]})})},t.prototype.getFlakyTestResultsByBuildDefinitionId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildDefinitionId:t,minBuildCreatedDate:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/builddefinition",routeValues:{project:e},queryParams:s})]})})},t.prototype.getFlakyTestResultsByTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunMessageLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestPipelineMetrics=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,metricNames:i&&i.join(","),groupByNode:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/metrics",routeValues:{project:e},queryParams:u})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,s,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:s,$filter:n,$orderby:i,shouldIncludeResults:o,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbybuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={releaseId:t,releaseEnvId:r,publishContext:s,groupBy:n,$filter:i,$orderby:o,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbyrelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o,u=this;return __generator(this,function(a){return o={buildId:t,publishContext:r,fields:n&&n.join(","),continuationToken:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbybuild",routeValues:{project:e},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={releaseId:t,publishContext:r,releaseEnvId:n,fields:i&&i.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbyrelease",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queryTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={detailsToInclude:r},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.updateTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t,testCaseReferenceId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByQueryWiql=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={includeResultDetails:r,includeIterationDetails:s,$skip:n,$top:i},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/query",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={detailsToInclude:s},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t,testResultId:r},queryParams:n})]})})},t.prototype.getTestResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={buildId:t,publishContext:r,outcomes:n&&n.join(","),$top:i,continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbybuild",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByPipeline=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={pipelineId:t,stageName:r,phaseName:n,jobName:i,outcomes:o&&o.join(","),$top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a,p=this;return __generator(this,function(c){return a={releaseId:t,releaseEnvid:r,publishContext:n,outcomes:i&&i.join(","),$top:o,continuationToken:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbyrelease",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.testResultsGroupDetails=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,shouldIncludeFailedAndAbortedResults:i,queryGroupSummaryForInProgress:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsgroupDetails",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={buildId:t,publishContext:r,includeFailureDetails:s,buildToCompare:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybybuild",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsReportForPipeline=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={pipelineId:t,stageName:r,phaseName:s,jobName:n,includeFailureDetails:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybypipeline",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={releaseId:t,releaseEnvId:r,publishContext:s,includeFailureDetails:n,releaseToCompare:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrequirement",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeDetails:r,includeTags:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRuns=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={buildUri:t,owner:r,tmiRunId:s,planId:n,includeRunDetails:i,automated:o,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,n,i,o,u,a,p,c,l,d,_,h,v,f,m){return __awaiter(this,void 0,void 0,function(){var g,y=this;return __generator(this,function(T){return g={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:n,planIds:i&&i.join(","),isAutomated:o,publishContext:u,buildIds:a&&a.join(","),buildDefIds:p&&p.join(","),branchName:c,releaseIds:l&&l.join(","),releaseDefIds:d&&d.join(","),releaseEnvIds:_&&_.join(","),releaseEnvDefIds:h&&h.join(","),runTitle:v,$top:f,continuationToken:m},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:g,returnRawResponse:!0}).then(function(e){return __awaiter(y,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunSummaryByOutcome=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/runsummary",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestResultsSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={settingsType:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:e},queryParams:r})]})})},t.prototype.updatePipelinesTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:t},body:e})]})})},t.prototype.getSimilarTestResults=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={testSubResultId:s,$top:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",routeValues:{project:e,runId:t,testResultId:r},customHeaders:{"x-ms-continuationtoken":i},queryParams:o})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.getCoverageStatusBadge=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={branchName:r,label:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/status/{*definition}",routeValues:{project:e,definition:t},queryParams:n})]})})},t.prototype.getTestTagsForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagsForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateTestRunTags=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/tags",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestTagSummaryForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagSummaryForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:s})]})})},t.prototype.createBuildAttachmentInLogStore=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/uploadbuildattachments/{buildId}",routeValues:{project:t,buildId:r},body:e})]})})},t.prototype.createTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunLogStoreAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.createFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e,failureTypeId:t}})]})})},t.prototype.getFailureTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.getTestLogsForBuild=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={buildId:t,type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlog",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultLogs=function(e,t,r,n,i,o,u,a,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={type:n,directoryPath:i,fileNamePrefix:o,fetchMetaData:u,top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestSubResultLogs=function(e,t,r,n,i,o,u,a,p,c){return __awaiter(this,void 0,void 0,function(){var l,d=this;return __generator(this,function(_){return l={subResultId:n,type:i,directoryPath:o,fileNamePrefix:u,fetchMetaData:a,top:p},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":c},queryParams:l,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestRunLogs=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlog",routeValues:{project:e,runId:t},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestLogStoreEndpointDetailsForBuildLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={build:t,type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForBuild=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,testLogStoreOperationType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:s})]})})},t.prototype.getTestLogStoreEndpointDetailsForResultLog=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={type:s,filePath:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.getTestLogStoreEndpointDetailsForSubResultLog=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,type:n,filePath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.testLogStoreEndpointDetailsForResult=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,filePath:n,type:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.getTestLogStoreEndpointDetailsForRunLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForRun=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testLogStoreOperationType:r,filePath:s,type:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:i})]})})},t.prototype.getTestRunsBySessionId=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/runs",routeValues:{project:e,sessionId:t}})]})})},t.prototype.createTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:t},body:e})]})})},t.prototype.getTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSessionLayout=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={sessionId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.createEnvironment=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/environment",routeValues:{project:t},body:e})]})})},t.prototype.createNotification=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.getSessionNotifications=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:e,sessionId:t}})]})})},t.prototype.addTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestSessionResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/workitems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testName:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestResultWorkItemsById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:s,maxCompleteDate:n,days:i,$workItemCount:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/results/workitems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c83eaf52-edf3-4034-ae11-17d38f25404c",t}(r.RestClientBase);t.TestResultsRestClient=n});
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{a(s.next(e))}catch(e){i(e)}}function u(e){try{a(s.throw(e))}catch(e){i(e)}}function a(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(o,u)}a((s=s.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(s)throw new TypeError("Generator is already executing.");for(;u;)try{if(s=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,n=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],n=0}finally{s=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var s,n,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestIterationResultAttachment=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={iterationId:n,actionPath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:o,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:i,body:e})]})})},t.prototype.deleteTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestIterationAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestIterationAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testSubResultId:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:n})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.fetchSourceCodeCoverageReport=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/sourceview",routeValues:{project:e},queryParams:r})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s,body:r})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/codecoverage",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.addCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:t},body:e})]})})},t.prototype.queryCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={scopeFilter:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:e},queryParams:r})]})})},t.prototype.getFileLevelCodeCoverage=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/testresults/codecoverage/filecoverage",routeValues:{project:t},body:e})]})})},t.prototype.getFlakyTestResultsByBuildDefinitionId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildDefinitionId:t,minBuildCreatedDate:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/builddefinition",routeValues:{project:e},queryParams:s})]})})},t.prototype.getFlakyTestResultsByTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunMessageLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestPipelineMetrics=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,metricNames:i&&i.join(","),groupByNode:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/metrics",routeValues:{project:e},queryParams:u})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,s,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:s,$filter:n,$orderby:i,shouldIncludeResults:o,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbybuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={releaseId:t,releaseEnvId:r,publishContext:s,groupBy:n,$filter:i,$orderby:o,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbyrelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o,u=this;return __generator(this,function(a){return o={buildId:t,publishContext:r,fields:n&&n.join(","),continuationToken:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbybuild",routeValues:{project:e},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={releaseId:t,publishContext:r,releaseEnvId:n,fields:i&&i.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbyrelease",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queryTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={detailsToInclude:r},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.updateTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t,testCaseReferenceId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByQueryWiql=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={includeResultDetails:r,includeIterationDetails:s,$skip:n,$top:i},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/query",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={detailsToInclude:s},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t,testResultId:r},queryParams:n})]})})},t.prototype.getTestResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={buildId:t,publishContext:r,outcomes:n&&n.join(","),$top:i,continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbybuild",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByPipeline=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={pipelineId:t,stageName:r,phaseName:n,jobName:i,outcomes:o&&o.join(","),$top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a,p=this;return __generator(this,function(c){return a={releaseId:t,releaseEnvid:r,publishContext:n,outcomes:i&&i.join(","),$top:o,continuationToken:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbyrelease",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.testResultsGroupDetails=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,shouldIncludeFailedAndAbortedResults:i,queryGroupSummaryForInProgress:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsgroupDetails",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={buildId:t,publishContext:r,includeFailureDetails:s,buildToCompare:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybybuild",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsReportForPipeline=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={pipelineId:t,stageName:r,phaseName:s,jobName:n,includeFailureDetails:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybypipeline",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={releaseId:t,releaseEnvId:r,publishContext:s,includeFailureDetails:n,releaseToCompare:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrequirement",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeDetails:r,includeTags:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRuns=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={buildUri:t,owner:r,tmiRunId:s,planId:n,includeRunDetails:i,automated:o,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,n,i,o,u,a,p,c,l,d,_,h,v,f,m){return __awaiter(this,void 0,void 0,function(){var g,y=this;return __generator(this,function(T){return g={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:n,planIds:i&&i.join(","),isAutomated:o,publishContext:u,buildIds:a&&a.join(","),buildDefIds:p&&p.join(","),branchName:c,releaseIds:l&&l.join(","),releaseDefIds:d&&d.join(","),releaseEnvIds:_&&_.join(","),releaseEnvDefIds:h&&h.join(","),runTitle:v,$top:f,continuationToken:m},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:g,returnRawResponse:!0}).then(function(e){return __awaiter(y,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunSummaryByOutcome=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/runsummary",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestResultsSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={settingsType:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:e},queryParams:r})]})})},t.prototype.updatePipelinesTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:t},body:e})]})})},t.prototype.getSimilarTestResults=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={testSubResultId:s,$top:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",routeValues:{project:e,runId:t,testResultId:r},customHeaders:{"x-ms-continuationtoken":i},queryParams:o})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.getCoverageStatusBadge=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={branchName:r,label:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/status/{*definition}",routeValues:{project:e,definition:t},queryParams:n})]})})},t.prototype.getTestTagsForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagsForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateTestRunTags=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/tags",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestTagSummaryForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagSummaryForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:s})]})})},t.prototype.createBuildAttachmentInLogStore=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/uploadbuildattachments/{buildId}",routeValues:{project:t,buildId:r},body:e})]})})},t.prototype.createTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunLogStoreAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.createFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e,failureTypeId:t}})]})})},t.prototype.getFailureTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.getTestLogsForBuild=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={buildId:t,type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlog",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultLogs=function(e,t,r,n,i,o,u,a,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={type:n,directoryPath:i,fileNamePrefix:o,fetchMetaData:u,top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestSubResultLogs=function(e,t,r,n,i,o,u,a,p,c){return __awaiter(this,void 0,void 0,function(){var l,d=this;return __generator(this,function(_){return l={subResultId:n,type:i,directoryPath:o,fileNamePrefix:u,fetchMetaData:a,top:p},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":c},queryParams:l,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestRunLogs=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlog",routeValues:{project:e,runId:t},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,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(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestLogStoreEndpointDetailsForBuildLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={build:t,type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForBuild=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,testLogStoreOperationType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:s})]})})},t.prototype.getTestLogStoreEndpointDetailsForResultLog=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={type:s,filePath:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.getTestLogStoreEndpointDetailsForSubResultLog=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,type:n,filePath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.testLogStoreEndpointDetailsForResult=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,filePath:n,type:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.getTestLogStoreEndpointDetailsForRunLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForRun=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testLogStoreOperationType:r,filePath:s,type:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:i})]})})},t.prototype.getTestRunsBySessionId=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/runs",routeValues:{project:e,sessionId:t}})]})})},t.prototype.createTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:t},body:e})]})})},t.prototype.getTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSessionLayout=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={sessionId:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.createEnvironment=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/environment",routeValues:{project:t},body:e})]})})},t.prototype.getTestSessionLayoutBySessionId=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session/{sessionId}/layout",routeValues:{project:e,sessionId:t}})]})})},t.prototype.createNotification=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.getSessionNotifications=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:e,sessionId:t}})]})})},t.prototype.addTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestSessionResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/workitems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testName:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestResultWorkItemsById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:s,maxCompleteDate:n,days:i,$workItemCount:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/results/workitems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c83eaf52-edf3-4034-ae11-17d38f25404c",t}(r.RestClientBase);t.TestResultsRestClient=n});

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc