azure-devops-extension-api 1.157.0 → 2.218.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 +201 -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/Common/CommonServices.d.ts +62 -0
- 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/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 +173 -28
- package/Git/GitClient.js +630 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +41 -2
- package/Graph/GraphClient.js +158 -37
- 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 +737 -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 +170 -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 s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(o,n){function i(e){try{a(s.next(e))}catch(e){n(e)}}function u(e){try{a(s.throw(e))}catch(e){n(e)}}function a(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(i,u)}a((s=s.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(i){return function(r){if(s)throw new TypeError("Generator is already executing.");for(;u;)try{if(s=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){u.label=r[1];break}if(6===r[0]&&u.label<n[1]){u.label=n[1],n=r;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(r);break}n[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],o=0}finally{s=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}var s,o,n,i,u={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestIterationResultAttachment=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={iterationId:o,actionPath:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:i,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testSubResultId:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:n,body:e})]})})},t.prototype.deleteTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testSubResultId:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:n})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={testSubResultId:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:o})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testSubResultId:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:n})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={buildId:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s,body:r})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={flags:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/codecoverage",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getFileLevelCodeCoverage=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",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/testresults/codecoverage/filecoverage",routeValues:{project:t},body:e})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunMessageLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestPipelineMetrics=function(e,t,r,s,o,n,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:o,metricNames:n&&n.join(","),groupByNode:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/metrics",routeValues:{project:e},queryParams:u})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,s,o,n,i,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:s,$filter:o,$orderby:n,shouldIncludeResults:i,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbybuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,s,o,n,i,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(l){return p={releaseId:t,releaseEnvId:r,publishContext:s,groupBy:o,$filter:n,$orderby:i,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbyrelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:t,publishContext:r,fields:s&&s.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbybuild",routeValues:{project:e},queryParams:n})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={releaseId:t,publishContext:r,releaseEnvId:s,fields:o&&o.join(","),continuationToken:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbyrelease",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={detailsToInclude:r},[2,this.beginRequest({apiVersion:"5.2-preview.3",method:"POST",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.updateTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t,testCaseReferenceId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByQueryWiql=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={includeResultDetails:r,includeIterationDetails:s,$skip:o,$top:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/query",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={detailsToInclude:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t,testResultId:r},queryParams:o})]})})},t.prototype.getTestResults=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={detailsToInclude:r,$skip:s,$top:o,outcomes:n&&n.join(",")},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:i})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={buildId:t,publishContext:r,outcomes:s&&s.join(","),$top:o,continuationToken:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbybuild",routeValues:{project:e},queryParams:i})]})})},t.prototype.getTestResultsByPipeline=function(e,t,r,s,o,n,i,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={pipelineId:t,stageName:r,phaseName:s,jobName:o,outcomes:n&&n.join(","),$top:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":u},queryParams:a})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,s,o,n,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={releaseId:t,releaseEnvid:r,publishContext:s,outcomes:o&&o.join(","),$top:n,continuationToken:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbyrelease",routeValues:{project:e},queryParams:u})]})})},t.prototype.testResultsGroupDetails=function(e,t,r,s,o,n,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:o,shouldIncludeFailedAndAbortedResults:n,queryGroupSummaryForInProgress:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsgroupDetails",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={buildId:t,publishContext:r,includeFailureDetails:s,buildToCompare:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybybuild",routeValues:{project:e},queryParams:n})]})})},t.prototype.queryTestResultsReportForPipeline=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={pipelineId:t,stageName:r,phaseName:s,jobName:o,includeFailureDetails:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybypipeline",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={releaseId:t,releaseEnvId:r,publishContext:s,includeFailureDetails:o,releaseToCompare:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrequirement",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={includeDetails:r,includeTags:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t},queryParams:o})]})})},t.prototype.getTestRuns=function(e,t,r,s,o,n,i,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(l){return p={buildUri:t,owner:r,tmiRunId:s,planId:o,includeRunDetails:n,automated:i,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,s,o,n,i,u,a,p,l,c,d,_,h,m,v){return __awaiter(this,void 0,void 0,function(){var f;return __generator(this,function(g){return f={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:s,planIds:o&&o.join(","),isAutomated:n,publishContext:i,buildIds:u&&u.join(","),buildDefIds:a&&a.join(","),branchName:p,releaseIds:l&&l.join(","),releaseDefIds:c&&c.join(","),releaseEnvIds:d&&d.join(","),releaseEnvDefIds:_&&_.join(","),runTitle:h,$top:m,continuationToken:v},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:f})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={settingsType:t},[2,this.beginRequest({apiVersion:"5.2-preview.3",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:e},queryParams:r})]})})},t.prototype.updatePipelinesTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:t},body:e})]})})},t.prototype.getSimilarTestResults=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={testSubResultId:s,$top:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",routeValues:{project:e,runId:t,testResultId:r},customHeaders:{"x-ms-continuationtoken":n},queryParams:i})]})})},t.prototype.getCoverageStatusBadge=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={branchName:r,label:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/status/{*definition}",routeValues:{project:e,definition:t},queryParams:o})]})})},t.prototype.getTestTagsForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagsForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateTestRunTags=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/tags",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestTagSummaryForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagSummaryForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.getTestLogsForBuild=function(e,t,r,s,o,n,i,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,type:r,directoryPath:s,fileNamePrefix:o,fetchMetaData:n,top:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlog",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":u},queryParams:a})]})})},t.prototype.getTestResultLogs=function(e,t,r,s,o,n,i,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(l){return p={type:s,directoryPath:o,fileNamePrefix:n,fetchMetaData:i,top:u},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":a},queryParams:p})]})})},t.prototype.getTestSubResultLogs=function(e,t,r,s,o,n,i,u,a,p){return __awaiter(this,void 0,void 0,function(){var l;return __generator(this,function(c){return l={subResultId:s,type:o,directoryPath:n,fileNamePrefix:i,fetchMetaData:u,top:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":p},queryParams:l})]})})},t.prototype.getTestRunLogs=function(e,t,r,s,o,n,i,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={type:r,directoryPath:s,fileNamePrefix:o,fetchMetaData:n,top:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlog",routeValues:{project:e,runId:t},customHeaders:{"x-ms-continuationtoken":u},queryParams:a})]})})},t.prototype.getTestLogStoreEndpointDetailsForBuildLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={build:t,type:r,filePath:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:o})]})})},t.prototype.testLogStoreEndpointDetailsForBuild=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={buildId:t,testLogStoreOperationType:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:s})]})})},t.prototype.getTestLogStoreEndpointDetailsForResultLog=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:s,filePath:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:n})]})})},t.prototype.getTestLogStoreEndpointDetailsForSubResultLog=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={subResultId:s,type:o,filePath:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.testLogStoreEndpointDetailsForResult=function(e,t,r,s,o,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={subResultId:s,filePath:o,type:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.getTestLogStoreEndpointDetailsForRunLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={type:r,filePath:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:o})]})})},t.prototype.testLogStoreEndpointDetailsForRun=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testLogStoreOperationType:r,filePath:s,type:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/workitems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testName:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,s,o,n,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:s,maxCompleteDate:o,days:n,$workItemCount:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/testresults/results/workitems",routeValues:{project:e},queryParams:u})]})})},t}(r.RestClientBase);t.TestResultsRestClient=s});
|
|
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(s,o){function i(e){try{a(n.next(e))}catch(e){o(e)}}function u(e){try{a(n.throw(e))}catch(e){o(e)}}function a(e){e.done?s(e.value):new r(function(t){t(e.value)}).then(i,u)}a((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(i){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,s&&(o=2&r[0]?s.return:r[0]?s.throw||((o=s.return)&&o.call(s),0):s.next)&&!(o=o.call(s,r[1])).done)return o;switch(s=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,s=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){u.label=r[1];break}if(6===r[0]&&u.label<o[1]){u.label=o[1],o=r;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(r);break}o[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],s=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}var n,s,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestIterationResultAttachment=function(e,t,r,n,s,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={iterationId:s,actionPath:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},queryParams:i,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={testSubResultId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:n},queryParams:o,body:e})]})})},t.prototype.deleteTestResultAttachment=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n}})]})})},t.prototype.getTestIterationAttachmentContent=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={iterationId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.getTestIterationAttachmentZip=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={iterationId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={testSubResultId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:s})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={testSubResultId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:n},queryParams:o})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:n})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={buildId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:n,body:r})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={flags:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/codecoverage",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getFileLevelCodeCoverage=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/testresults/codecoverage/filecoverage",routeValues:{project:t},body:e})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunMessageLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestPipelineMetrics=function(e,t,r,n,s,o,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:n,jobName:s,metricNames:o&&o.join(","),groupByNode:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/metrics",routeValues:{project:e},queryParams:u})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,n,s,o,i,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:n,$filter:s,$orderby:o,shouldIncludeResults:i,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbybuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,n,s,o,i,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={releaseId:t,releaseEnvId:r,publishContext:n,groupBy:s,$filter:o,$orderby:i,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbyrelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,s,o){return __awaiter(this,void 0,void 0,function(){var i,u=this;return __generator(this,function(a){return i={buildId:t,publishContext:r,fields:s&&s.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbybuild",routeValues:{project:e},queryParams:i,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,s,o,i){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={releaseId:t,publishContext:r,releaseEnvId:s,fields:o&&o.join(","),continuationToken:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbyrelease",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queryTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={detailsToInclude:r},[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"POST",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.updateTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t,testCaseReferenceId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByQueryWiql=function(e,t,r,n,s,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={includeResultDetails:r,includeIterationDetails:n,$skip:s,$top:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/query",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={detailsToInclude:n},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t,testResultId:r},queryParams:s})]})})},t.prototype.getTestResults=function(e,t,r,n,s,o,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:n,$top:s,outcomes:o&&o.join(","),$newTestsOnly:i},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,s,o,i){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={buildId:t,publishContext:r,outcomes:s&&s.join(","),$top:o,continuationToken:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbybuild",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByPipeline=function(e,t,r,s,o,i,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={pipelineId:t,stageName:r,phaseName:s,jobName:o,outcomes:i&&i.join(","),$top:u},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,s,o,i,u){return __awaiter(this,void 0,void 0,function(){var a,p=this;return __generator(this,function(c){return a={releaseId:t,releaseEnvid:r,publishContext:s,outcomes:o&&o.join(","),$top:i,continuationToken:u},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbyrelease",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.testResultsGroupDetails=function(e,t,r,n,s,o,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:n,jobName:s,shouldIncludeFailedAndAbortedResults:o,queryGroupSummaryForInProgress:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultsgroupDetails",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={buildId:t,publishContext:r,includeFailureDetails:n,buildToCompare:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybybuild",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsReportForPipeline=function(e,t,r,n,s,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={pipelineId:t,stageName:r,phaseName:n,jobName:s,includeFailureDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybypipeline",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,n,s,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={releaseId:t,releaseEnvId:r,publishContext:n,includeFailureDetails:s,releaseToCompare:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrequirement",routeValues:{project:t},queryParams:n,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={includeDetails:r,includeTags:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRuns=function(e,t,r,n,s,o,i,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={buildUri:t,owner:r,tmiRunId:n,planId:s,includeRunDetails:o,automated:i,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,s,o,i,u,a,p,c,l,d,_,h,v,m,f){return __awaiter(this,void 0,void 0,function(){var g,y=this;return __generator(this,function(R){return g={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:s,planIds:o&&o.join(","),isAutomated:i,publishContext:u,buildIds:a&&a.join(","),buildDefIds:p&&p.join(","),branchName:c,releaseIds:l&&l.join(","),releaseDefIds:d&&d.join(","),releaseEnvIds:_&&_.join(","),releaseEnvDefIds:h&&h.join(","),runTitle:v,$top:m,continuationToken:f},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:g,returnRawResponse:!0}).then(function(e){return __awaiter(y,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunSummaryByOutcome=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/runsummary",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestResultsSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={settingsType:t},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:e},queryParams:r})]})})},t.prototype.updatePipelinesTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:t},body:e})]})})},t.prototype.getSimilarTestResults=function(e,t,r,n,s,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={testSubResultId:n,$top:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",routeValues:{project:e,runId:t,testResultId:r},customHeaders:{"x-ms-continuationtoken":o},queryParams:i})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.getCoverageStatusBadge=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={branchName:r,label:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/status/{*definition}",routeValues:{project:e,definition:t},queryParams:s})]})})},t.prototype.getTestTagsForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagsForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:n})]})})},t.prototype.updateTestRunTags=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/tags",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestTagSummaryForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagSummaryForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:n})]})})},t.prototype.createBuildAttachmentInLogStore=function(e,t,r){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/testresults/uploadbuildattachments/{buildId}",routeValues:{project:t,buildId:r},body:e})]})})},t.prototype.createTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={filename:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRunLogStoreAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={filename:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRunLogStoreAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunLogStoreAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={filename:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.getTestLogsForBuild=function(e,t,r,s,o,i,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={buildId:t,type:r,directoryPath:s,fileNamePrefix:o,fetchMetaData:i,top:u},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/testlog",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultLogs=function(e,t,r,s,o,i,u,a,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={type:s,directoryPath:o,fileNamePrefix:i,fetchMetaData:u,top:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestSubResultLogs=function(e,t,r,s,o,i,u,a,p,c){return __awaiter(this,void 0,void 0,function(){var l,d=this;return __generator(this,function(_){return l={subResultId:s,type:o,directoryPath:i,fileNamePrefix:u,fetchMetaData:a,top:p},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":c},queryParams:l,returnRawResponse:!0}).then(function(e){return __awaiter(d,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestRunLogs=function(e,t,r,s,o,i,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={type:r,directoryPath:s,fileNamePrefix:o,fetchMetaData:i,top:u},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlog",routeValues:{project:e,runId:t},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestLogStoreEndpointDetailsForBuildLog=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={build:t,type:r,filePath:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:s})]})})},t.prototype.testLogStoreEndpointDetailsForBuild=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={buildId:t,testLogStoreOperationType:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:n})]})})},t.prototype.getTestLogStoreEndpointDetailsForResultLog=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={type:n,filePath:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.getTestLogStoreEndpointDetailsForSubResultLog=function(e,t,r,n,s,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={subResultId:n,type:s,filePath:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.testLogStoreEndpointDetailsForResult=function(e,t,r,n,s,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(u){return i={subResultId:n,filePath:s,type:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.getTestLogStoreEndpointDetailsForRunLog=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(o){return s={type:r,filePath:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.testLogStoreEndpointDetailsForRun=function(e,t,r,n,s){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={testLogStoreOperationType:r,filePath:n,type:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:o})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/workitems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:n})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={testName:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestResultWorkItemsById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,n,s,o,i){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:n,maxCompleteDate:s,days:o,$workItemCount:i},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/_apis/testresults/results/workitems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c83eaf52-edf3-4034-ae11-17d38f25404c",t}(r.RestClientBase);t.TestResultsRestClient=s});
|
package/Tfvc/Tfvc.d.ts
CHANGED
|
@@ -55,9 +55,17 @@ export interface GitRepository {
|
|
|
55
55
|
defaultBranch: string;
|
|
56
56
|
id: string;
|
|
57
57
|
/**
|
|
58
|
-
* True if the repository
|
|
58
|
+
* True if the repository is disabled. False otherwise.
|
|
59
|
+
*/
|
|
60
|
+
isDisabled: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* True if the repository was created as a fork.
|
|
59
63
|
*/
|
|
60
64
|
isFork: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* True if the repository is in maintenance. False otherwise.
|
|
67
|
+
*/
|
|
68
|
+
isInMaintenance: boolean;
|
|
61
69
|
name: string;
|
|
62
70
|
parentRepository: GitRepositoryRef;
|
|
63
71
|
project: TfsCore.TeamProjectReference;
|
package/Tfvc/TfvcClient.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IVssRestClientOptions } from "../Common/Context";
|
|
2
2
|
import { RestClientBase } from "../Common/RestClientBase";
|
|
3
3
|
import * as Tfvc from "../Tfvc/Tfvc";
|
|
4
|
+
import * as WebApi from "../WebApi/WebApi";
|
|
4
5
|
export declare class TfvcRestClient extends RestClientBase {
|
|
5
6
|
constructor(options: IVssRestClientOptions);
|
|
6
7
|
static readonly RESOURCE_AREA_ID: string;
|
|
@@ -39,7 +40,7 @@ export declare class TfvcRestClient extends RestClientBase {
|
|
|
39
40
|
* @param skip - Number of results to skip. Default: null
|
|
40
41
|
* @param top - The maximum number of results to return. Default: null
|
|
41
42
|
*/
|
|
42
|
-
getChangesetChanges(id?: number, skip?: number, top?: number): Promise<Tfvc.TfvcChange
|
|
43
|
+
getChangesetChanges(id?: number, skip?: number, top?: number): Promise<WebApi.PagedList<Tfvc.TfvcChange>>;
|
|
43
44
|
/**
|
|
44
45
|
* Create a new changeset.
|
|
45
46
|
*
|
|
@@ -183,7 +184,7 @@ export declare class TfvcRestClient extends RestClientBase {
|
|
|
183
184
|
*
|
|
184
185
|
* @param requestData - labelScope, name, owner, and itemLabelFilter
|
|
185
186
|
* @param project - Project ID or project name
|
|
186
|
-
* @param top - Max number of labels to return
|
|
187
|
+
* @param top - Max number of labels to return, defaults to 100 when undefined
|
|
187
188
|
* @param skip - Number of labels to skip
|
|
188
189
|
*/
|
|
189
190
|
getLabels(requestData: Tfvc.TfvcLabelRequestData, project?: string, top?: number, skip?: number): Promise<Tfvc.TfvcLabelRef[]>;
|
package/Tfvc/TfvcClient.js
CHANGED
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
|
|
51
|
+
define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serialization"], function (require, exports, RestClientBase_1, Serialization_1) {
|
|
52
52
|
"use strict";
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
var TfvcRestClient = /** @class */ (function (_super) {
|
|
@@ -74,7 +74,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
74
74
|
includeChildren: includeChildren
|
|
75
75
|
};
|
|
76
76
|
return [2 /*return*/, this.beginRequest({
|
|
77
|
-
apiVersion: "
|
|
77
|
+
apiVersion: "7.1-preview.1",
|
|
78
78
|
routeTemplate: "{project}/_apis/tfvc/Branches/{*path}",
|
|
79
79
|
routeValues: {
|
|
80
80
|
project: project
|
|
@@ -104,7 +104,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
104
104
|
includeLinks: includeLinks
|
|
105
105
|
};
|
|
106
106
|
return [2 /*return*/, this.beginRequest({
|
|
107
|
-
apiVersion: "
|
|
107
|
+
apiVersion: "7.1-preview.1",
|
|
108
108
|
routeTemplate: "{project}/_apis/tfvc/Branches/{*path}",
|
|
109
109
|
routeValues: {
|
|
110
110
|
project: project
|
|
@@ -132,7 +132,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
132
132
|
includeLinks: includeLinks
|
|
133
133
|
};
|
|
134
134
|
return [2 /*return*/, this.beginRequest({
|
|
135
|
-
apiVersion: "
|
|
135
|
+
apiVersion: "7.1-preview.1",
|
|
136
136
|
routeTemplate: "{project}/_apis/tfvc/Branches/{*path}",
|
|
137
137
|
routeValues: {
|
|
138
138
|
project: project
|
|
@@ -152,19 +152,32 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
152
152
|
TfvcRestClient.prototype.getChangesetChanges = function (id, skip, top) {
|
|
153
153
|
return __awaiter(this, void 0, void 0, function () {
|
|
154
154
|
var queryValues;
|
|
155
|
+
var _this = this;
|
|
155
156
|
return __generator(this, function (_a) {
|
|
156
157
|
queryValues = {
|
|
157
158
|
'$skip': skip,
|
|
158
159
|
'$top': top
|
|
159
160
|
};
|
|
160
161
|
return [2 /*return*/, this.beginRequest({
|
|
161
|
-
apiVersion: "
|
|
162
|
+
apiVersion: "7.1-preview.1",
|
|
162
163
|
routeTemplate: "_apis/tfvc/changesets/{id}/changes",
|
|
163
164
|
routeValues: {
|
|
164
165
|
id: id
|
|
165
166
|
},
|
|
166
|
-
queryParams: queryValues
|
|
167
|
-
|
|
167
|
+
queryParams: queryValues,
|
|
168
|
+
returnRawResponse: true
|
|
169
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
170
|
+
var body;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
switch (_a.label) {
|
|
173
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
174
|
+
case 1:
|
|
175
|
+
body = _a.sent();
|
|
176
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
177
|
+
return [2 /*return*/, body];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
}); })];
|
|
168
181
|
});
|
|
169
182
|
});
|
|
170
183
|
};
|
|
@@ -178,7 +191,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
178
191
|
return __awaiter(this, void 0, void 0, function () {
|
|
179
192
|
return __generator(this, function (_a) {
|
|
180
193
|
return [2 /*return*/, this.beginRequest({
|
|
181
|
-
apiVersion: "
|
|
194
|
+
apiVersion: "7.1-preview.3",
|
|
182
195
|
method: "POST",
|
|
183
196
|
routeTemplate: "{project}/_apis/tfvc/changesets/{id}",
|
|
184
197
|
routeValues: {
|
|
@@ -220,7 +233,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
220
233
|
searchCriteria: searchCriteria
|
|
221
234
|
};
|
|
222
235
|
return [2 /*return*/, this.beginRequest({
|
|
223
|
-
apiVersion: "
|
|
236
|
+
apiVersion: "7.1-preview.3",
|
|
224
237
|
routeTemplate: "{project}/_apis/tfvc/changesets/{id}",
|
|
225
238
|
routeValues: {
|
|
226
239
|
project: project,
|
|
@@ -253,7 +266,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
253
266
|
searchCriteria: searchCriteria
|
|
254
267
|
};
|
|
255
268
|
return [2 /*return*/, this.beginRequest({
|
|
256
|
-
apiVersion: "
|
|
269
|
+
apiVersion: "7.1-preview.3",
|
|
257
270
|
routeTemplate: "{project}/_apis/tfvc/changesets/{id}",
|
|
258
271
|
routeValues: {
|
|
259
272
|
project: project
|
|
@@ -272,7 +285,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
272
285
|
return __awaiter(this, void 0, void 0, function () {
|
|
273
286
|
return __generator(this, function (_a) {
|
|
274
287
|
return [2 /*return*/, this.beginRequest({
|
|
275
|
-
apiVersion: "
|
|
288
|
+
apiVersion: "7.1-preview.1",
|
|
276
289
|
method: "POST",
|
|
277
290
|
routeTemplate: "_apis/tfvc/ChangesetsBatch",
|
|
278
291
|
body: changesetsRequestData
|
|
@@ -289,7 +302,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
289
302
|
return __awaiter(this, void 0, void 0, function () {
|
|
290
303
|
return __generator(this, function (_a) {
|
|
291
304
|
return [2 /*return*/, this.beginRequest({
|
|
292
|
-
apiVersion: "
|
|
305
|
+
apiVersion: "7.1-preview.1",
|
|
293
306
|
routeTemplate: "_apis/tfvc/changesets/{id}/workItems",
|
|
294
307
|
routeValues: {
|
|
295
308
|
id: id
|
|
@@ -308,7 +321,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
308
321
|
return __awaiter(this, void 0, void 0, function () {
|
|
309
322
|
return __generator(this, function (_a) {
|
|
310
323
|
return [2 /*return*/, this.beginRequest({
|
|
311
|
-
apiVersion: "
|
|
324
|
+
apiVersion: "7.1-preview.1",
|
|
312
325
|
method: "POST",
|
|
313
326
|
routeTemplate: "{project}/_apis/tfvc/ItemBatch",
|
|
314
327
|
routeValues: {
|
|
@@ -329,7 +342,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
329
342
|
return __awaiter(this, void 0, void 0, function () {
|
|
330
343
|
return __generator(this, function (_a) {
|
|
331
344
|
return [2 /*return*/, this.beginRequest({
|
|
332
|
-
apiVersion: "
|
|
345
|
+
apiVersion: "7.1-preview.1",
|
|
333
346
|
method: "POST",
|
|
334
347
|
httpResponseType: "application/zip",
|
|
335
348
|
routeTemplate: "{project}/_apis/tfvc/ItemBatch",
|
|
@@ -367,7 +380,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
367
380
|
includeContent: includeContent
|
|
368
381
|
};
|
|
369
382
|
return [2 /*return*/, this.beginRequest({
|
|
370
|
-
apiVersion: "
|
|
383
|
+
apiVersion: "7.1-preview.1",
|
|
371
384
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
372
385
|
routeValues: {
|
|
373
386
|
project: project
|
|
@@ -403,7 +416,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
403
416
|
includeContent: includeContent
|
|
404
417
|
};
|
|
405
418
|
return [2 /*return*/, this.beginRequest({
|
|
406
|
-
apiVersion: "
|
|
419
|
+
apiVersion: "7.1-preview.1",
|
|
407
420
|
httpResponseType: "application/octet-stream",
|
|
408
421
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
409
422
|
routeValues: {
|
|
@@ -434,7 +447,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
434
447
|
versionDescriptor: versionDescriptor
|
|
435
448
|
};
|
|
436
449
|
return [2 /*return*/, this.beginRequest({
|
|
437
|
-
apiVersion: "
|
|
450
|
+
apiVersion: "7.1-preview.1",
|
|
438
451
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
439
452
|
routeValues: {
|
|
440
453
|
project: project
|
|
@@ -470,7 +483,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
470
483
|
includeContent: includeContent
|
|
471
484
|
};
|
|
472
485
|
return [2 /*return*/, this.beginRequest({
|
|
473
|
-
apiVersion: "
|
|
486
|
+
apiVersion: "7.1-preview.1",
|
|
474
487
|
httpResponseType: "text/plain",
|
|
475
488
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
476
489
|
routeValues: {
|
|
@@ -507,7 +520,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
507
520
|
includeContent: includeContent
|
|
508
521
|
};
|
|
509
522
|
return [2 /*return*/, this.beginRequest({
|
|
510
|
-
apiVersion: "
|
|
523
|
+
apiVersion: "7.1-preview.1",
|
|
511
524
|
httpResponseType: "application/zip",
|
|
512
525
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
513
526
|
routeValues: {
|
|
@@ -534,7 +547,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
534
547
|
'$skip': skip
|
|
535
548
|
};
|
|
536
549
|
return [2 /*return*/, this.beginRequest({
|
|
537
|
-
apiVersion: "
|
|
550
|
+
apiVersion: "7.1-preview.1",
|
|
538
551
|
routeTemplate: "_apis/tfvc/labels/{labelId}/items",
|
|
539
552
|
routeValues: {
|
|
540
553
|
labelId: labelId
|
|
@@ -559,7 +572,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
559
572
|
requestData: requestData
|
|
560
573
|
};
|
|
561
574
|
return [2 /*return*/, this.beginRequest({
|
|
562
|
-
apiVersion: "
|
|
575
|
+
apiVersion: "7.1-preview.1",
|
|
563
576
|
routeTemplate: "{project}/_apis/tfvc/Labels/{labelId}",
|
|
564
577
|
routeValues: {
|
|
565
578
|
project: project,
|
|
@@ -575,7 +588,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
575
588
|
*
|
|
576
589
|
* @param requestData - labelScope, name, owner, and itemLabelFilter
|
|
577
590
|
* @param project - Project ID or project name
|
|
578
|
-
* @param top - Max number of labels to return
|
|
591
|
+
* @param top - Max number of labels to return, defaults to 100 when undefined
|
|
579
592
|
* @param skip - Number of labels to skip
|
|
580
593
|
*/
|
|
581
594
|
TfvcRestClient.prototype.getLabels = function (requestData, project, top, skip) {
|
|
@@ -588,7 +601,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
588
601
|
'$skip': skip
|
|
589
602
|
};
|
|
590
603
|
return [2 /*return*/, this.beginRequest({
|
|
591
|
-
apiVersion: "
|
|
604
|
+
apiVersion: "7.1-preview.1",
|
|
592
605
|
routeTemplate: "{project}/_apis/tfvc/Labels/{labelId}",
|
|
593
606
|
routeValues: {
|
|
594
607
|
project: project
|
|
@@ -615,7 +628,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
615
628
|
'$skip': skip
|
|
616
629
|
};
|
|
617
630
|
return [2 /*return*/, this.beginRequest({
|
|
618
|
-
apiVersion: "
|
|
631
|
+
apiVersion: "7.1-preview.1",
|
|
619
632
|
routeTemplate: "_apis/tfvc/shelvesets/changes",
|
|
620
633
|
queryParams: queryValues
|
|
621
634
|
})];
|
|
@@ -637,7 +650,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
637
650
|
requestData: requestData
|
|
638
651
|
};
|
|
639
652
|
return [2 /*return*/, this.beginRequest({
|
|
640
|
-
apiVersion: "
|
|
653
|
+
apiVersion: "7.1-preview.1",
|
|
641
654
|
routeTemplate: "_apis/tfvc/shelvesets",
|
|
642
655
|
queryParams: queryValues
|
|
643
656
|
})];
|
|
@@ -661,7 +674,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
661
674
|
'$skip': skip
|
|
662
675
|
};
|
|
663
676
|
return [2 /*return*/, this.beginRequest({
|
|
664
|
-
apiVersion: "
|
|
677
|
+
apiVersion: "7.1-preview.1",
|
|
665
678
|
routeTemplate: "_apis/tfvc/shelvesets",
|
|
666
679
|
queryParams: queryValues
|
|
667
680
|
})];
|
|
@@ -681,7 +694,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
681
694
|
shelvesetId: shelvesetId
|
|
682
695
|
};
|
|
683
696
|
return [2 /*return*/, this.beginRequest({
|
|
684
|
-
apiVersion: "
|
|
697
|
+
apiVersion: "7.1-preview.1",
|
|
685
698
|
routeTemplate: "_apis/tfvc/shelvesets/workitems",
|
|
686
699
|
queryParams: queryValues
|
|
687
700
|
})];
|
|
@@ -702,7 +715,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
702
715
|
scopePath: scopePath
|
|
703
716
|
};
|
|
704
717
|
return [2 /*return*/, this.beginRequest({
|
|
705
|
-
apiVersion: "
|
|
718
|
+
apiVersion: "7.1-preview.1",
|
|
706
719
|
routeTemplate: "{project}/_apis/tfvc/stats",
|
|
707
720
|
routeValues: {
|
|
708
721
|
project: project
|
package/Tfvc/TfvcClient.min.js
CHANGED
|
@@ -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.getBranch=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={path:e,includeParent:r,includeChildren:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/Branches/{*path}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getBranches=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={includeParent:t,includeChildren:r,includeDeleted:n,includeLinks:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/Branches/{*path}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getBranchRefs=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={scopePath:e,includeDeleted:r,includeLinks:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/Branches/{*path}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getChangesetChanges=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={$skip:t,$top:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/tfvc/changesets/{id}/changes",routeValues:{id:e},queryParams:n})]})})},t.prototype.createChangeset=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.3",method:"POST",routeTemplate:"{project}/_apis/tfvc/changesets/{id}",routeValues:{project:t},body:e})]})})},t.prototype.getChangeset=function(e,t,r,n,i,o,a,s,u,p,c){return __awaiter(this,void 0,void 0,function(){var h;return __generator(this,function(l){return h={maxChangeCount:r,includeDetails:n,includeWorkItems:i,maxCommentLength:o,includeSourceRename:a,$skip:s,$top:u,$orderby:p,searchCriteria:c},[2,this.beginRequest({apiVersion:"5.2-preview.3",routeTemplate:"{project}/_apis/tfvc/changesets/{id}",routeValues:{project:t,id:e},queryParams:h})]})})},t.prototype.getChangesets=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={maxCommentLength:t,$skip:r,$top:n,$orderby:i,searchCriteria:o},[2,this.beginRequest({apiVersion:"5.2-preview.3",routeTemplate:"{project}/_apis/tfvc/changesets/{id}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getBatchedChangesets=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/tfvc/ChangesetsBatch",body:e})]})})},t.prototype.getChangesetWorkItems=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/tfvc/changesets/{id}/workItems",routeValues:{id:e}})]})})},t.prototype.getItemsBatch=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/tfvc/ItemBatch",routeValues:{project:t},body:e})]})})},t.prototype.getItemsBatchZip=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",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/tfvc/ItemBatch",routeValues:{project:t},body:e})]})})},t.prototype.getItem=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getItemContent=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getItems=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={scopePath:t,recursionLevel:r,includeLinks:n,versionDescriptor:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getItemText=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getItemZip=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getLabelItems=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={$top:t,$skip:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/tfvc/labels/{labelId}/items",routeValues:{labelId:e},queryParams:n})]})})},t.prototype.getLabel=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={requestData:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/Labels/{labelId}",routeValues:{project:r,labelId:e},queryParams:n})]})})},t.prototype.getLabels=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={requestData:e,$top:r,$skip:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/Labels/{labelId}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getShelvesetChanges=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={shelvesetId:e,$top:t,$skip:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/tfvc/shelvesets/changes",queryParams:n})]})})},t.prototype.getShelveset=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={shelvesetId:e,requestData:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/tfvc/shelvesets",queryParams:r})]})})},t.prototype.getShelvesets=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={requestData:e,$top:t,$skip:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/tfvc/shelvesets",queryParams:n})]})})},t.prototype.getShelvesetWorkItems=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={shelvesetId:e},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/tfvc/shelvesets/workitems",queryParams:t})]})})},t.prototype.getTfvcStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={scopePath:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/tfvc/stats",routeValues:{project:e},queryParams:r})]})})},t.RESOURCE_AREA_ID="8aa40520-446d-40e6-89f6-9c9f9ce44c48",t}(r.RestClientBase);t.TfvcRestClient=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 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","../Common/Util/Serialization"],function(e,t,r,n){"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.getBranch=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={path:e,includeParent:r,includeChildren:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/Branches/{*path}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getBranches=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={includeParent:t,includeChildren:r,includeDeleted:n,includeLinks:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/Branches/{*path}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getBranchRefs=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={scopePath:e,includeDeleted:r,includeLinks:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/Branches/{*path}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getChangesetChanges=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i,o=this;return __generator(this,function(a){return i={$skip:t,$top:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/tfvc/changesets/{id}/changes",routeValues:{id:e},queryParams:i,returnRawResponse:!0}).then(function(e){return __awaiter(o,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(n.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.createChangeset=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"{project}/_apis/tfvc/changesets/{id}",routeValues:{project:t},body:e})]})})},t.prototype.getChangeset=function(e,t,r,n,i,o,a,s,u,p,c){return __awaiter(this,void 0,void 0,function(){var h;return __generator(this,function(l){return h={maxChangeCount:r,includeDetails:n,includeWorkItems:i,maxCommentLength:o,includeSourceRename:a,$skip:s,$top:u,$orderby:p,searchCriteria:c},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/tfvc/changesets/{id}",routeValues:{project:t,id:e},queryParams:h})]})})},t.prototype.getChangesets=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={maxCommentLength:t,$skip:r,$top:n,$orderby:i,searchCriteria:o},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/_apis/tfvc/changesets/{id}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getBatchedChangesets=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/tfvc/ChangesetsBatch",body:e})]})})},t.prototype.getChangesetWorkItems=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/tfvc/changesets/{id}/workItems",routeValues:{id:e}})]})})},t.prototype.getItemsBatch=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/tfvc/ItemBatch",routeValues:{project:t},body:e})]})})},t.prototype.getItemsBatchZip=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/tfvc/ItemBatch",routeValues:{project:t},body:e})]})})},t.prototype.getItem=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getItemContent=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getItems=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={scopePath:t,recursionLevel:r,includeLinks:n,versionDescriptor:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:e},queryParams:o})]})})},t.prototype.getItemText=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getItemZip=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={path:e,fileName:r,download:n,scopePath:i,recursionLevel:o,versionDescriptor:a,includeContent:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/tfvc/Items/{*path}",routeValues:{project:t},queryParams:u})]})})},t.prototype.getLabelItems=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={$top:t,$skip:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/tfvc/labels/{labelId}/items",routeValues:{labelId:e},queryParams:n})]})})},t.prototype.getLabel=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={requestData:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/Labels/{labelId}",routeValues:{project:r,labelId:e},queryParams:n})]})})},t.prototype.getLabels=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={requestData:e,$top:r,$skip:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/Labels/{labelId}",routeValues:{project:t},queryParams:i})]})})},t.prototype.getShelvesetChanges=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={shelvesetId:e,$top:t,$skip:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/tfvc/shelvesets/changes",queryParams:n})]})})},t.prototype.getShelveset=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={shelvesetId:e,requestData:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/tfvc/shelvesets",queryParams:r})]})})},t.prototype.getShelvesets=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={requestData:e,$top:t,$skip:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/tfvc/shelvesets",queryParams:n})]})})},t.prototype.getShelvesetWorkItems=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={shelvesetId:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/tfvc/shelvesets/workitems",queryParams:t})]})})},t.prototype.getTfvcStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={scopePath:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/tfvc/stats",routeValues:{project:e},queryParams:r})]})})},t.RESOURCE_AREA_ID="8aa40520-446d-40e6-89f6-9c9f9ce44c48",t}(r.RestClientBase);t.TfvcRestClient=i});
|
package/WebApi/WebApi.d.ts
CHANGED
|
@@ -189,7 +189,14 @@ export declare enum Operation {
|
|
|
189
189
|
Copy = 4,
|
|
190
190
|
Test = 5
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
/**
|
|
193
|
+
* A list that contains a single page of results from a query.
|
|
194
|
+
*/
|
|
195
|
+
export interface PagedList<T> extends Array<T> {
|
|
196
|
+
/**
|
|
197
|
+
* A string that can be passed to the same endpoint that returned this PagedList in order to retrieve the next page of results.
|
|
198
|
+
*/
|
|
199
|
+
continuationToken: string | null;
|
|
193
200
|
}
|
|
194
201
|
/**
|
|
195
202
|
* Represents the public key portion of an RSA asymmetric key.
|
|
@@ -252,7 +259,13 @@ export interface ServiceEvent {
|
|
|
252
259
|
* A signed url allowing limited-time anonymous access to private resources.
|
|
253
260
|
*/
|
|
254
261
|
export interface SignedUrl {
|
|
262
|
+
/**
|
|
263
|
+
* Timestamp when access expires.
|
|
264
|
+
*/
|
|
255
265
|
signatureExpires: Date;
|
|
266
|
+
/**
|
|
267
|
+
* The URL to allow access to.
|
|
268
|
+
*/
|
|
256
269
|
url: string;
|
|
257
270
|
}
|
|
258
271
|
export interface TeamMember {
|
|
@@ -325,12 +338,18 @@ export interface VssJsonCollectionWrapper extends VssJsonCollectionWrapperBase {
|
|
|
325
338
|
value: any[];
|
|
326
339
|
}
|
|
327
340
|
/**
|
|
328
|
-
* This class is used to
|
|
341
|
+
* This class is used to serialize collections as a single JSON object on the wire.
|
|
329
342
|
*/
|
|
330
343
|
export interface VssJsonCollectionWrapperV<T> extends VssJsonCollectionWrapperBase {
|
|
344
|
+
/**
|
|
345
|
+
* The serialized item.
|
|
346
|
+
*/
|
|
331
347
|
value: T;
|
|
332
348
|
}
|
|
333
349
|
export interface VssJsonCollectionWrapperBase {
|
|
350
|
+
/**
|
|
351
|
+
* The number of serialized items.
|
|
352
|
+
*/
|
|
334
353
|
count: number;
|
|
335
354
|
}
|
|
336
355
|
/**
|
|
@@ -366,7 +385,7 @@ export interface VssNotificationEvent {
|
|
|
366
385
|
*/
|
|
367
386
|
processDelay: any;
|
|
368
387
|
/**
|
|
369
|
-
* Optional: A list of scopes which are
|
|
388
|
+
* Optional: A list of scopes which are relevant to the event.
|
|
370
389
|
*/
|
|
371
390
|
scopes: EventScope[];
|
|
372
391
|
/**
|