azure-devops-extension-api 1.158.0 → 2.220.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accounts/AccountsClient.d.ts +1 -1
- package/Accounts/AccountsClient.js +4 -4
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/Build.d.ts +205 -3
- package/Build/Build.js +6 -2
- package/Build/Build.min.js +1 -1
- package/Build/BuildClient.d.ts +121 -13
- package/Build/BuildClient.js +468 -101
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/Contributions.d.ts +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.d.ts +2 -2
- package/Core/CoreClient.js +49 -36
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/Dashboard.d.ts +79 -2
- package/Dashboard/Dashboard.js +10 -0
- package/Dashboard/Dashboard.min.js +1 -1
- package/Dashboard/DashboardClient.d.ts +2 -2
- package/Dashboard/DashboardClient.js +15 -15
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.js +27 -27
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/Favorite.d.ts +124 -0
- package/Favorite/Favorite.js +9 -0
- package/Favorite/Favorite.min.js +1 -0
- package/Favorite/FavoriteClient.d.ts +78 -0
- package/Favorite/FavoriteClient.js +314 -0
- package/Favorite/FavoriteClient.min.js +1 -0
- package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
- package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
- package/FeatureManagement/FeatureManagementClient.js +9 -9
- package/FeatureManagement/FeatureManagementClient.min.js +1 -1
- package/FileContainer/FileContainer.d.ts +22 -0
- package/FileContainer/FileContainer.js +8 -0
- package/FileContainer/FileContainer.min.js +1 -1
- package/FileContainer/FileContainerClient.d.ts +5 -2
- package/FileContainer/FileContainerClient.js +13 -7
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/FormInput/FormInput.d.ts +1 -1
- package/Gallery/Gallery.d.ts +92 -7
- package/Gallery/Gallery.js +25 -3
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +41 -9
- package/Gallery/GalleryClient.js +211 -90
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +121 -7
- package/Git/Git.js +2 -1
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +182 -28
- package/Git/GitClient.js +657 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +42 -3
- package/Graph/GraphClient.js +159 -38
- package/Graph/GraphClient.min.js +1 -1
- package/Identities/Identities.d.ts +15 -0
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/Notification.d.ts +3 -3
- package/Notification/NotificationClient.d.ts +6 -0
- package/Notification/NotificationClient.js +40 -23
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.d.ts +1 -1
- package/Operations/OperationsClient.js +2 -2
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +318 -0
- package/Pipelines/Pipelines.js +82 -0
- package/Pipelines/Pipelines.min.js +1 -0
- package/Pipelines/PipelinesClient.d.ts +92 -0
- package/Pipelines/PipelinesClient.js +325 -0
- package/Pipelines/PipelinesClient.min.js +1 -0
- package/Policy/Policy.d.ts +4 -0
- package/Policy/PolicyClient.d.ts +3 -3
- package/Policy/PolicyClient.js +30 -19
- package/Policy/PolicyClient.min.js +1 -1
- package/Profile/ProfileClient.js +12 -12
- package/Profile/ProfileClient.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
- package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
- package/Release/Release.d.ts +81 -7
- package/Release/Release.js +11 -0
- package/Release/Release.min.js +1 -1
- package/Release/ReleaseClient.d.ts +31 -5
- package/Release/ReleaseClient.js +223 -95
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
- package/ServiceEndpoint/ServiceEndpoint.js +1 -0
- package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
- package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +2 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +740 -17
- package/TaskAgent/TaskAgent.js +133 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/TaskAgent/TaskAgentClient.d.ts +28 -16
- package/TaskAgent/TaskAgentClient.js +336 -195
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/Test.d.ts +96 -25
- package/Test/Test.js +8 -0
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +17 -34
- package/Test/TestClient.js +163 -152
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +215 -18
- package/TestPlan/TestPlan.js +47 -1
- package/TestPlan/TestPlan.min.js +1 -1
- package/TestPlan/TestPlanClient.d.ts +48 -14
- package/TestPlan/TestPlanClient.js +255 -74
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +112 -27
- package/TestResults/TestResultsClient.js +518 -134
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +9 -1
- package/Tfvc/TfvcClient.d.ts +3 -2
- package/Tfvc/TfvcClient.js +41 -28
- package/Tfvc/TfvcClient.min.js +1 -1
- package/WebApi/WebApi.d.ts +22 -3
- package/Wiki/Wiki.d.ts +51 -0
- package/Wiki/WikiClient.d.ts +18 -0
- package/Wiki/WikiClient.js +71 -1
- package/Wiki/WikiClient.min.js +1 -1
- package/Work/Work.d.ts +68 -1
- package/Work/WorkClient.d.ts +10 -3
- package/Work/WorkClient.js +78 -58
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
- package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
- package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(a,s)}u((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break}o[2]&&s.ops.pop(),s.trys.pop();continue}r=t.call(e,s)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.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 r;return __generator(this,function(n){return r={testConfiguartionId:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestConfigurationById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.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 r;return __generator(this,function(n){return r={continuationToken:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateTestConfiguration=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testConfiguartionId:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.getTestPointCountByPlanId=function(e,t,r,n,i,o,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={states:r,outcome:n,configurations:i,testers:o,assignedTo:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/Count/{planId}",routeValues:{project:e,planId:t},queryParams:s})]})})},t.prototype.createTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.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(r){return[2,this.beginRequest({apiVersion:"5.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(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlans=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={owner:t,continuationToken:r,includePlanDetails:n,filterActivePlans:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e},queryParams:o})]})})},t.prototype.updateTestPlan=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t,planId:r},body:e})]})})},t.prototype.getSuiteEntries=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={suiteEntryType:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:e,suiteId:t},queryParams:n})]})})},t.prototype.reorderSuiteEntries=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:t,suiteId:r},body:e})]})})},t.prototype.createTestSuite=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:r},body:e})]})})},t.prototype.deleteTestSuite=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:r}})]})})},t.prototype.getTestSuiteById=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={expand:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:r},queryParams:i})]})})},t.prototype.getTestSuitesForPlan=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={expand:r,continuationToken:n,asTreeView:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t},queryParams:o})]})})},t.prototype.updateTestSuite=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:r,suiteId:n},body:e})]})})},t.prototype.getSuitesByTestCaseId=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={testCaseId:e},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/testplan/Suites",queryParams:t})]})})},t.prototype.addTestCasesToSuite=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",routeValues:{project:t,planId:r,suiteId:n},body:e})]})})},t.prototype.getTestCase=function(e,t,r,n,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:"5.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n},queryParams:a})]})})},t.prototype.getTestCaseList=function(e,t,r,n,i,o,a,s,u,p){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(d){return l={testIds:n,configurationIds:i,witFields:o,continuationToken:a,returnIdentityRef:s,expand:u,excludeFlags:p},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r},queryParams:l})]})})},t.prototype.removeTestCasesFromSuite=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",routeValues:{project:e,planId:t,suiteId:r,testCaseIds:n}})]})})},t.prototype.updateSuiteTestCases=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseIds}",routeValues:{project:t,planId:r,suiteId:n},body:e})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.cloneTestPlan=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={deepClone:r},[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.getCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.getPoints=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={returnIdentityRef:i,includePointDetails:o},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:r,pointIds:n},queryParams:a})]})})},t.prototype.getPointsList=function(e,t,r,n,i,o,a,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={testPointIds:n,testCaseId:i,continuationToken:o,returnIdentityRef:a,includePointDetails:s},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:r},queryParams:u})]})})},t.prototype.updateTestPoints=function(e,t,r,n,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:"5.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:t,planId:r,suiteId:n},queryParams:a,body:e})]})})},t.prototype.cloneTestSuite=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={deepClone:r},[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.getSuiteCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.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(r){return[2,this.beginRequest({apiVersion:"5.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(r){return[2,this.beginRequest({apiVersion:"5.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(r){return[2,this.beginRequest({apiVersion:"5.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 r;return __generator(this,function(n){return r={continuationToken:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.updateTestVariable=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t,testVariableId:r},body:e})]})})},t}(r.RestClientBase);t.TestPlanRestClient=n});
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(a){return function(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,i=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){s=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){s.label=n[1];break}if(6===n[0]&&s.label<o[1]){s.label=o[1],o=n;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(n);break}o[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,a])}}var r,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestConfguration=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(r){return n={testConfiguartionId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.getTestConfigurationById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e,testConfigurationId:t}})]})})},t.prototype.getTestConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestConfiguration=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={testConfiguartionId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Configurations/{testConfigurationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getTestEntityCountByPlanId=function(e,t,n,r,i,o,a,s){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={states:n,outcome:r,configurations:i,testers:o,assignedTo:a,entity:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Count/{planId}",routeValues:{project:e,planId:t},queryParams:u})]})})},t.prototype.createTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestPlan=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlanById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e,planId:t}})]})})},t.prototype.getTestPlans=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var a,s=this;return __generator(this,function(u){return a={owner:t,continuationToken:n,includePlanDetails:i,filterActivePlans:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.getSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={suiteEntryType:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:e,suiteId:t},queryParams:r})]})})},t.prototype.reorderSuiteEntries=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/SuiteEntry/{suiteId}",routeValues:{project:t,suiteId:n},body:e})]})})},t.prototype.createBulkTestSuites=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{parentSuiteId}/bulk",routeValues:{project:t,planId:n,parentSuiteId:r},body:e})]})})},t.prototype.createTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n},body:e})]})})},t.prototype.deleteTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n}})]})})},t.prototype.getTestSuiteById=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={expand:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.getTestSuitesForPlan=function(e,t,n,i,o){return __awaiter(this,void 0,void 0,function(){var a,s=this;return __generator(this,function(u){return a={expand:n,continuationToken:i,asTreeView:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:e,planId:t},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(s,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getSuitesByTestCaseId=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(n){return t={testCaseId:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/testplan/Suites",queryParams:t})]})})},t.prototype.addTestCasesToSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.getTestCase=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={witFields:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n,testCaseId:r},queryParams:a})]})})},t.prototype.getTestCaseList=function(e,t,n,i,o,a,s,u,p,c,l){return __awaiter(this,void 0,void 0,function(){var d,_=this;return __generator(this,function(f){return d={testIds:i,configurationIds:o,witFields:a,continuationToken:s,returnIdentityRef:u,expand:p,excludeFlags:c,isRecursive:l},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:d,returnRawResponse:!0}).then(function(e){return __awaiter(_,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.removeTestCasesFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testCaseIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.removeTestCasesListFromSuite=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testIds:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:e,planId:t,suiteId:n},queryParams:i})]})})},t.prototype.updateSuiteTestCases=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestCase/{testCaseId}",routeValues:{project:t,planId:n,suiteId:r},body:e})]})})},t.prototype.cloneTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:t},body:e})]})})},t.prototype.getTestCaseCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/TestCases/CloneTestCaseOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.deleteTestCase=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/TestCases/{testCaseId}",routeValues:{project:e,testCaseId:t}})]})})},t.prototype.cloneTestPlan=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.getPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={pointId:r,returnIdentityRef:i,includePointDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:a})]})})},t.prototype.getPointsList=function(e,t,n,i,o,a,s,u,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={testPointIds:i,testCaseId:o,continuationToken:a,returnIdentityRef:s,includePointDetails:u,isRecursive:p},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:e,planId:t,suiteId:n},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestPoints=function(e,t,n,r,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={includePointDetails:i,returnIdentityRef:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Plans/{planId}/Suites/{suiteId}/TestPoint/{pointIds}",routeValues:{project:t,planId:n,suiteId:r},queryParams:a,body:e})]})})},t.prototype.cloneTestSuite=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={deepClone:n},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:t},queryParams:r,body:e})]})})},t.prototype.getSuiteCloneInformation=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testplan/Suites/CloneOperation/{cloneOperationId}",routeValues:{project:e,cloneOperationId:t}})]})})},t.prototype.createTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestVariable=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariableById=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e,testVariableId:t}})]})})},t.prototype.getTestVariables=function(e,t){return __awaiter(this,void 0,void 0,function(){var n,i=this;return __generator(this,function(o){return n={continuationToken:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:e},queryParams:n,returnRawResponse:!0}).then(function(e){return __awaiter(i,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestVariable=function(e,t,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testplan/Variables/{testVariableId}",routeValues:{project:t,testVariableId:n},body:e})]})})},t}(n.RestClientBase);t.TestPlanRestClient=i});
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { IVssRestClientOptions } from "../Common/Context";
|
|
2
2
|
import { RestClientBase } from "../Common/RestClientBase";
|
|
3
3
|
import * as Test from "../Test/Test";
|
|
4
|
+
import * as WebApi from "../WebApi/WebApi";
|
|
4
5
|
export declare class TestResultsRestClient extends RestClientBase {
|
|
5
6
|
constructor(options: IVssRestClientOptions);
|
|
7
|
+
static readonly RESOURCE_AREA_ID: string;
|
|
6
8
|
/**
|
|
7
9
|
* @param attachmentRequestModel -
|
|
8
10
|
* @param project - Project ID or project name
|
|
@@ -34,6 +36,26 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
34
36
|
* @param attachmentId -
|
|
35
37
|
*/
|
|
36
38
|
deleteTestResultAttachment(project: string, runId: number, testCaseResultId: number, attachmentId: number): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Returns a test iteration attachment
|
|
41
|
+
*
|
|
42
|
+
* @param project - Project ID or project name
|
|
43
|
+
* @param runId -
|
|
44
|
+
* @param testCaseResultId -
|
|
45
|
+
* @param attachmentId -
|
|
46
|
+
* @param iterationId -
|
|
47
|
+
*/
|
|
48
|
+
getTestIterationAttachmentContent(project: string, runId: number, testCaseResultId: number, attachmentId: number, iterationId: number): Promise<ArrayBuffer>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a test iteration attachment
|
|
51
|
+
*
|
|
52
|
+
* @param project - Project ID or project name
|
|
53
|
+
* @param runId -
|
|
54
|
+
* @param testCaseResultId -
|
|
55
|
+
* @param attachmentId -
|
|
56
|
+
* @param iterationId -
|
|
57
|
+
*/
|
|
58
|
+
getTestIterationAttachmentZip(project: string, runId: number, testCaseResultId: number, attachmentId: number, iterationId: number): Promise<ArrayBuffer>;
|
|
37
59
|
/**
|
|
38
60
|
* Returns a test result attachment
|
|
39
61
|
*
|
|
@@ -219,7 +241,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
219
241
|
* @param fields -
|
|
220
242
|
* @param continuationToken -
|
|
221
243
|
*/
|
|
222
|
-
getResultGroupsByBuild(project: string, buildId: number, publishContext: string, fields?: string[], continuationToken?: string): Promise<Test.FieldDetailsForTestResults
|
|
244
|
+
getResultGroupsByBuild(project: string, buildId: number, publishContext: string, fields?: string[], continuationToken?: string): Promise<WebApi.PagedList<Test.FieldDetailsForTestResults>>;
|
|
223
245
|
/**
|
|
224
246
|
* @param project - Project ID or project name
|
|
225
247
|
* @param releaseId -
|
|
@@ -228,11 +250,11 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
228
250
|
* @param fields -
|
|
229
251
|
* @param continuationToken -
|
|
230
252
|
*/
|
|
231
|
-
getResultGroupsByRelease(project: string, releaseId: number, publishContext: string, releaseEnvId?: number, fields?: string[], continuationToken?: string): Promise<Test.FieldDetailsForTestResults
|
|
253
|
+
getResultGroupsByRelease(project: string, releaseId: number, publishContext: string, releaseEnvId?: number, fields?: string[], continuationToken?: string): Promise<WebApi.PagedList<Test.FieldDetailsForTestResults>>;
|
|
232
254
|
/**
|
|
233
255
|
* Get list of test Result meta data details for corresponding testcasereferenceId
|
|
234
256
|
*
|
|
235
|
-
* @param testCaseReferenceIds -
|
|
257
|
+
* @param testCaseReferenceIds - TestCaseReference Ids of the test Result to be queried, comma separated list of valid ids (limit no. of ids 200).
|
|
236
258
|
* @param project - Project ID or project name
|
|
237
259
|
* @param detailsToInclude - Details to include with test results metadata. Default is None. Other values are FlakyIdentifiers.
|
|
238
260
|
*/
|
|
@@ -279,8 +301,9 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
279
301
|
* @param skip -
|
|
280
302
|
* @param top -
|
|
281
303
|
* @param outcomes -
|
|
304
|
+
* @param newTestsOnly -
|
|
282
305
|
*/
|
|
283
|
-
getTestResults(project: string, runId: number, detailsToInclude?: Test.ResultDetails, skip?: number, top?: number, outcomes?: Test.TestOutcome[]): Promise<Test.TestCaseResult[]>;
|
|
306
|
+
getTestResults(project: string, runId: number, detailsToInclude?: Test.ResultDetails, skip?: number, top?: number, outcomes?: Test.TestOutcome[], newTestsOnly?: boolean): Promise<Test.TestCaseResult[]>;
|
|
284
307
|
/**
|
|
285
308
|
* @param results -
|
|
286
309
|
* @param project - Project ID or project name
|
|
@@ -295,7 +318,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
295
318
|
* @param top -
|
|
296
319
|
* @param continuationToken -
|
|
297
320
|
*/
|
|
298
|
-
getTestResultsByBuild(project: string, buildId: number, publishContext?: string, outcomes?: Test.TestOutcome[], top?: number, continuationToken?: string): Promise<Test.ShallowTestCaseResult
|
|
321
|
+
getTestResultsByBuild(project: string, buildId: number, publishContext?: string, outcomes?: Test.TestOutcome[], top?: number, continuationToken?: string): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>>;
|
|
299
322
|
/**
|
|
300
323
|
* Get a list of results.
|
|
301
324
|
*
|
|
@@ -308,7 +331,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
308
331
|
* @param top - Maximum number of results to return
|
|
309
332
|
* @param continuationToken - Header to pass the continuationToken
|
|
310
333
|
*/
|
|
311
|
-
getTestResultsByPipeline(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, outcomes?: Test.TestOutcome[], top?: number, continuationToken?: String): Promise<Test.ShallowTestCaseResult
|
|
334
|
+
getTestResultsByPipeline(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, outcomes?: Test.TestOutcome[], top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>>;
|
|
312
335
|
/**
|
|
313
336
|
* @param project - Project ID or project name
|
|
314
337
|
* @param releaseId -
|
|
@@ -318,7 +341,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
318
341
|
* @param top -
|
|
319
342
|
* @param continuationToken -
|
|
320
343
|
*/
|
|
321
|
-
getTestResultsByRelease(project: string, releaseId: number, releaseEnvid?: number, publishContext?: string, outcomes?: Test.TestOutcome[], top?: number, continuationToken?: string): Promise<Test.ShallowTestCaseResult
|
|
344
|
+
getTestResultsByRelease(project: string, releaseId: number, releaseEnvid?: number, publishContext?: string, outcomes?: Test.TestOutcome[], top?: number, continuationToken?: string): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>>;
|
|
322
345
|
/**
|
|
323
346
|
* Get all the available groups details and for these groups get failed and aborted results.
|
|
324
347
|
*
|
|
@@ -380,13 +403,6 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
380
403
|
* @param project - Project ID or project name
|
|
381
404
|
*/
|
|
382
405
|
queryResultTrendForRelease(filter: Test.TestResultTrendFilter, project: string): Promise<Test.AggregatedDataForResultTrend[]>;
|
|
383
|
-
/**
|
|
384
|
-
* Get test run statistics , used when we want to get summary of a run by outcome.
|
|
385
|
-
*
|
|
386
|
-
* @param project - Project ID or project name
|
|
387
|
-
* @param runId - ID of the run to get.
|
|
388
|
-
*/
|
|
389
|
-
getTestRunStatistics(project: string, runId: number): Promise<Test.TestRunStatistic>;
|
|
390
406
|
/**
|
|
391
407
|
* @param testRun -
|
|
392
408
|
* @param project - Project ID or project name
|
|
@@ -423,27 +439,34 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
423
439
|
* @param minLastUpdatedDate - Minimum Last Modified Date of run to be queried (Mandatory).
|
|
424
440
|
* @param maxLastUpdatedDate - Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
|
|
425
441
|
* @param state - Current state of the Runs to be queried.
|
|
426
|
-
* @param planIds - Plan Ids of the Runs to be queried, comma
|
|
442
|
+
* @param planIds - Plan Ids of the Runs to be queried, comma separated list of valid ids.
|
|
427
443
|
* @param isAutomated - Automation type of the Runs to be queried.
|
|
428
444
|
* @param publishContext - PublishContext of the Runs to be queried.
|
|
429
|
-
* @param buildIds - Build Ids of the Runs to be queried, comma
|
|
430
|
-
* @param buildDefIds - Build Definition Ids of the Runs to be queried, comma
|
|
445
|
+
* @param buildIds - Build Ids of the Runs to be queried, comma separated list of valid ids.
|
|
446
|
+
* @param buildDefIds - Build Definition Ids of the Runs to be queried, comma separated list of valid ids.
|
|
431
447
|
* @param branchName - Source Branch name of the Runs to be queried.
|
|
432
|
-
* @param releaseIds - Release Ids of the Runs to be queried, comma
|
|
433
|
-
* @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma
|
|
434
|
-
* @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma
|
|
435
|
-
* @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma
|
|
448
|
+
* @param releaseIds - Release Ids of the Runs to be queried, comma separated list of valid ids.
|
|
449
|
+
* @param releaseDefIds - Release Definition Ids of the Runs to be queried, comma separated list of valid ids.
|
|
450
|
+
* @param releaseEnvIds - Release Environment Ids of the Runs to be queried, comma separated list of valid ids.
|
|
451
|
+
* @param releaseEnvDefIds - Release Environment Definition Ids of the Runs to be queried, comma separated list of valid ids.
|
|
436
452
|
* @param runTitle - Run Title of the Runs to be queried.
|
|
437
453
|
* @param top - Number of runs to be queried. Limit is 100
|
|
438
454
|
* @param continuationToken - continuationToken received from previous batch or null for first batch. It is not supposed to be created (or altered, if received from last batch) by user.
|
|
439
455
|
*/
|
|
440
|
-
queryTestRuns(project: string, minLastUpdatedDate: Date, maxLastUpdatedDate: Date, state?: Test.TestRunState, planIds?: number[], isAutomated?: boolean, publishContext?: Test.TestRunPublishContext, buildIds?: number[], buildDefIds?: number[], branchName?: string, releaseIds?: number[], releaseDefIds?: number[], releaseEnvIds?: number[], releaseEnvDefIds?: number[], runTitle?: string, top?: number, continuationToken?: string): Promise<Test.TestRun
|
|
456
|
+
queryTestRuns(project: string, minLastUpdatedDate: Date, maxLastUpdatedDate: Date, state?: Test.TestRunState, planIds?: number[], isAutomated?: boolean, publishContext?: Test.TestRunPublishContext, buildIds?: number[], buildDefIds?: number[], branchName?: string, releaseIds?: number[], releaseDefIds?: number[], releaseEnvIds?: number[], releaseEnvDefIds?: number[], runTitle?: string, top?: number, continuationToken?: string): Promise<WebApi.PagedList<Test.TestRun>>;
|
|
441
457
|
/**
|
|
442
458
|
* @param runUpdateModel -
|
|
443
459
|
* @param project - Project ID or project name
|
|
444
460
|
* @param runId -
|
|
445
461
|
*/
|
|
446
462
|
updateTestRun(runUpdateModel: Test.RunUpdateModel, project: string, runId: number): Promise<Test.TestRun>;
|
|
463
|
+
/**
|
|
464
|
+
* Get test run summary, used when we want to get summary of a run by outcome. Test run should be in completed state.
|
|
465
|
+
*
|
|
466
|
+
* @param project - Project ID or project name
|
|
467
|
+
* @param runId - ID of the run to get.
|
|
468
|
+
*/
|
|
469
|
+
getTestRunSummaryByOutcome(project: string, runId: number): Promise<Test.TestRunStatistic>;
|
|
447
470
|
/**
|
|
448
471
|
* Get TestResultsSettings data
|
|
449
472
|
*
|
|
@@ -469,6 +492,13 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
469
492
|
* @param continuationToken - Header to pass the continuationToken
|
|
470
493
|
*/
|
|
471
494
|
getSimilarTestResults(project: string, runId: number, testResultId: number, testSubResultId: number, top?: number, continuationToken?: String): Promise<Test.TestCaseResult[]>;
|
|
495
|
+
/**
|
|
496
|
+
* Get test run statistics , used when we want to get summary of a run by outcome.
|
|
497
|
+
*
|
|
498
|
+
* @param project - Project ID or project name
|
|
499
|
+
* @param runId - ID of the run to get.
|
|
500
|
+
*/
|
|
501
|
+
getTestRunStatistics(project: string, runId: number): Promise<Test.TestRunStatistic>;
|
|
472
502
|
/**
|
|
473
503
|
* \<p\>Gets the coverage status for the last successful build of a definition, optionally scoped to a specific branch\</p\>
|
|
474
504
|
*
|
|
@@ -506,6 +536,53 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
506
536
|
* @param releaseEnvId -
|
|
507
537
|
*/
|
|
508
538
|
getTestTagSummaryForRelease(project: string, releaseId: number, releaseEnvId: number): Promise<Test.TestTagSummary>;
|
|
539
|
+
/**
|
|
540
|
+
* Creates an attachment in the LogStore for the specified buildId.
|
|
541
|
+
*
|
|
542
|
+
* @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
|
|
543
|
+
* @param project - Project ID or project name
|
|
544
|
+
* @param buildId - BuildId
|
|
545
|
+
*/
|
|
546
|
+
createBuildAttachmentInLogStore(attachmentRequestModel: Test.TestAttachmentRequestModel, project: string, buildId: number): Promise<void>;
|
|
547
|
+
/**
|
|
548
|
+
* Creates an attachment in the LogStore for the specified runId.
|
|
549
|
+
*
|
|
550
|
+
* @param attachmentRequestModel - Contains attachment info like stream, filename, comment, attachmentType
|
|
551
|
+
* @param project - Project ID or project name
|
|
552
|
+
* @param runId - Test RunId
|
|
553
|
+
*/
|
|
554
|
+
createTestRunLogStoreAttachment(attachmentRequestModel: Test.TestAttachmentRequestModel, project: string, runId: number): Promise<Test.TestLogStoreAttachmentReference>;
|
|
555
|
+
/**
|
|
556
|
+
* Deletes the attachment with the specified filename for the specified runId from the LogStore.
|
|
557
|
+
*
|
|
558
|
+
* @param project - Project ID or project name
|
|
559
|
+
* @param runId - Test RunId
|
|
560
|
+
* @param filename - Attachment FileName
|
|
561
|
+
*/
|
|
562
|
+
deleteTestRunLogStoreAttachment(project: string, runId: number, filename: string): Promise<void>;
|
|
563
|
+
/**
|
|
564
|
+
* Returns the attachment with the specified filename for the specified runId from the LogStore.
|
|
565
|
+
*
|
|
566
|
+
* @param project - Project ID or project name
|
|
567
|
+
* @param runId - Test RunId
|
|
568
|
+
* @param filename - Attachment FileName
|
|
569
|
+
*/
|
|
570
|
+
getTestRunLogStoreAttachmentContent(project: string, runId: number, filename: string): Promise<ArrayBuffer>;
|
|
571
|
+
/**
|
|
572
|
+
* Returns a list of attachments for the specified runId from the LogStore.
|
|
573
|
+
*
|
|
574
|
+
* @param project - Project ID or project name
|
|
575
|
+
* @param runId - Test RunId
|
|
576
|
+
*/
|
|
577
|
+
getTestRunLogStoreAttachments(project: string, runId: number): Promise<Test.TestLogStoreAttachment[]>;
|
|
578
|
+
/**
|
|
579
|
+
* Returns the attachment with the specified filename for the specified runId from the LogStore.
|
|
580
|
+
*
|
|
581
|
+
* @param project - Project ID or project name
|
|
582
|
+
* @param runId - Test RunId
|
|
583
|
+
* @param filename - Attachment FileName
|
|
584
|
+
*/
|
|
585
|
+
getTestRunLogStoreAttachmentZip(project: string, runId: number, filename: string): Promise<ArrayBuffer>;
|
|
509
586
|
/**
|
|
510
587
|
* Get history of a test method using TestHistoryQuery
|
|
511
588
|
*
|
|
@@ -525,7 +602,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
525
602
|
* @param top - Number of test attachments reference to return
|
|
526
603
|
* @param continuationToken - Header to pass the continuationToken
|
|
527
604
|
*/
|
|
528
|
-
getTestLogsForBuild(project: string, buildId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<Test.TestLog
|
|
605
|
+
getTestLogsForBuild(project: string, buildId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.TestLog>>;
|
|
529
606
|
/**
|
|
530
607
|
* Get list of test result attachments reference
|
|
531
608
|
*
|
|
@@ -539,7 +616,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
539
616
|
* @param top - Numbe of attachments reference to return
|
|
540
617
|
* @param continuationToken - Header to pass the continuationToken
|
|
541
618
|
*/
|
|
542
|
-
getTestResultLogs(project: string, runId: number, resultId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<Test.TestLog
|
|
619
|
+
getTestResultLogs(project: string, runId: number, resultId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.TestLog>>;
|
|
543
620
|
/**
|
|
544
621
|
* Get list of test subresult attachments reference
|
|
545
622
|
*
|
|
@@ -554,7 +631,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
554
631
|
* @param top - Number of attachments reference to return
|
|
555
632
|
* @param continuationToken - Header to pass the continuationToken
|
|
556
633
|
*/
|
|
557
|
-
getTestSubResultLogs(project: string, runId: number, resultId: number, subResultId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<Test.TestLog
|
|
634
|
+
getTestSubResultLogs(project: string, runId: number, resultId: number, subResultId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.TestLog>>;
|
|
558
635
|
/**
|
|
559
636
|
* Get list of test run attachments reference
|
|
560
637
|
*
|
|
@@ -567,7 +644,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
567
644
|
* @param top - Number of attachments reference to return
|
|
568
645
|
* @param continuationToken - Header to pass the continuationToken
|
|
569
646
|
*/
|
|
570
|
-
getTestRunLogs(project: string, runId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<Test.TestLog
|
|
647
|
+
getTestRunLogs(project: string, runId: number, type: Test.TestLogType, directoryPath?: string, fileNamePrefix?: string, fetchMetaData?: boolean, top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.TestLog>>;
|
|
571
648
|
/**
|
|
572
649
|
* Get SAS Uri of a build attachment
|
|
573
650
|
*
|
|
@@ -669,7 +746,15 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
669
746
|
queryTestMethodLinkedWorkItems(project: string, testName: string): Promise<Test.TestToWorkItemLinks>;
|
|
670
747
|
/**
|
|
671
748
|
* @param project - Project ID or project name
|
|
672
|
-
* @param
|
|
749
|
+
* @param runId -
|
|
750
|
+
* @param testCaseResultId -
|
|
751
|
+
*/
|
|
752
|
+
getTestResultWorkItemsById(project: string, runId: number, testCaseResultId: number): Promise<Test.WorkItemReference[]>;
|
|
753
|
+
/**
|
|
754
|
+
* Query Test Result WorkItems based on filter
|
|
755
|
+
*
|
|
756
|
+
* @param project - Project ID or project name
|
|
757
|
+
* @param workItemCategory - can take values Microsoft.BugCategory or all(for getting all workitems)
|
|
673
758
|
* @param automatedTestName -
|
|
674
759
|
* @param testCaseId -
|
|
675
760
|
* @param maxCompleteDate -
|