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
0
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.245.1 to 4.246.0

2

Alert/Alert.d.ts

@@ -772,3 +772,3 @@ import * as WebApi from "../WebApi/WebApi";

/**
* If provided, only return alerts at these confidence levels. \<br /\>Otherwise, return alerts at any confidence level.
* If provided, only return alerts at these confidence levels. \<br /\>Both High and Other need to be specified to fetch alerts of all confidence levels. \<br /\>Otherwise, return alerts with high confidence level.
*/

@@ -775,0 +775,0 @@ confidenceLevels: Confidence[];

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

/**
* Get instances of an alert.
* Get instances of an alert on a branch specified with \@ref. If \@ref is not provided, return instances of an alert on default branch(if the alert exist in default branch) or latest affected branch.
*

@@ -51,0 +51,0 @@ * @param project - Project ID or project name

@@ -190,3 +190,3 @@ /*

/**
* Get instances of an alert.
* Get instances of an alert on a branch specified with \@ref. If \@ref is not provided, return instances of an alert on default branch(if the alert exist in default branch) or latest affected branch.
*

@@ -193,0 +193,0 @@ * @param project - Project ID or project name

@@ -196,2 +196,10 @@ /**

patternMismatchErrorMessage: string;
/**
* Gets or sets the warning on pattern mismatch.
*/
patternMismatchWarningMessage: string;
/**
* Gets or sets the pattern to validate.
*/
warningPattern: string;
}

@@ -198,0 +206,0 @@ /**

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

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

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

/**
* Get Deleted Test Suites for a Test Plan.
*
* @param project - Project ID or project name
* @param planId - ID of the test plan for which suites are requested.
* @param expand - Include the children suites and testers details.
* @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
* @param asTreeView - If the suites returned should be in a tree structure.
*/
getDeletedTestSuitesForPlan(project: string, planId: number, expand?: TestPlan.SuiteExpand, continuationToken?: string, asTreeView?: boolean): Promise<WebApi.PagedList<TestPlan.TestSuite>>;
/**
* Get Deleted Test Suites within a Project.
*
* @param project - Project ID or project name
* @param expand - Include the children suites and testers details.
* @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites.
* @param asTreeView - If the suites returned should be in a tree structure.
*/
getDeletedTestSuitesForProject(project: string, expand?: TestPlan.SuiteExpand, continuationToken?: string, asTreeView?: boolean): Promise<WebApi.PagedList<TestPlan.TestSuite>>;
/**
* Restores the deleted test suite

@@ -326,0 +345,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 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.getDeletedTestPlans=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/recycleBin/TestPlan/{planId}",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.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});
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.getDeletedTestPlans=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/recycleBin/TestPlan/{planId}",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.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.getDeletedTestSuitesForPlan=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/recycleBin/TestPlan/{planId}/TestSuite/{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.getDeletedTestSuitesForProject=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var o,s=this;return __generator(this,function(a){return o={expand:t,continuationToken:n,asTreeView:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}",routeValues:{project:e},queryParams:o,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.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});

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