azure-devops-extension-api 2.225.0 → 2.226.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.js +3 -3
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/BuildClient.js +97 -97
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.js +33 -33
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/DashboardClient.js +13 -13
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagementClient.js +25 -25
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/FavoriteClient.js +10 -10
- package/Favorite/FavoriteClient.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/FileContainerClient.js +4 -4
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/Gallery/GalleryClient.js +83 -83
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +17 -0
- package/Git/GitClient.d.ts +19 -9
- package/Git/GitClient.js +195 -169
- package/Git/GitClient.min.js +1 -1
- package/Graph/GraphClient.js +40 -40
- package/Graph/GraphClient.min.js +1 -1
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/NotificationClient.js +24 -24
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.js +1 -1
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/PipelinesClient.js +10 -10
- package/Pipelines/PipelinesClient.min.js +1 -1
- package/Policy/PolicyClient.js +12 -12
- 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/ReleaseClient.js +88 -88
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.js +25 -25
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgentClient.js +155 -155
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/TestClient.js +76 -76
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlanClient.js +42 -42
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.js +96 -96
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/TfvcClient.js +24 -24
- package/Tfvc/TfvcClient.min.js +1 -1
- package/Work/WorkClient.js +56 -56
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +3 -0
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +1 -1
- package/WorkItemTracking/WorkItemTrackingClient.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +57 -57
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +46 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +1 -1
|
@@ -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(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(T){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.createFailureType=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/testfailuretype/{failureTypeId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e,failureTypeId:t}})]})})},t.prototype.getFailureTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.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});
|
|
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.2-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.2-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.2-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.2-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.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: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.2-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.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: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.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,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/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.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: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.2-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.2-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.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(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.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.2-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.2-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.2-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.2-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.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:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunMessageLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestPipelineMetrics=function(e,t,r,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.2-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.2-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.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(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,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.2-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.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbyrelease",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-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.2-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t,testCaseReferenceId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByQueryWiql=function(e,t,r,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.2-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.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,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.2-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.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,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.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbybuild",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbyrelease",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-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.2-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.2-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.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:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"7.2-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.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r,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.2-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.2-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(T){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.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:g,returnRawResponse:!0}).then(function(e){return __awaiter(y,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunSummaryByOutcome=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/runsummary",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestResultsSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={settingsType:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:e},queryParams:r})]})})},t.prototype.updatePipelinesTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:t},body:e})]})})},t.prototype.getSimilarTestResults=function(e,t,r,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.2-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.2-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.2-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.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 n;return __generator(this,function(s){return n={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-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.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(n){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagSummaryForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-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.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/uploadbuildattachments/{buildId}",routeValues:{project:t,buildId:r},body:e})]})})},t.prototype.createTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams: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.2-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.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunLogStoreAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.createFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e,failureTypeId:t}})]})})},t.prototype.getFailureTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.getTestLogsForBuild=function(e,t,r,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.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlog",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":c},queryParams:l,returnRawResponse:!0}).then(function(e){return __awaiter(d,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlog",routeValues:{project:e,runId:t},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(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.2-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.2-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.2-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.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,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.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,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.2-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.2-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.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(n){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/workitems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(s){return n={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams: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.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestResultWorkItemsById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,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.2-preview.2",routeTemplate:"{project}/_apis/testresults/results/workitems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c83eaf52-edf3-4034-ae11-17d38f25404c",t}(r.RestClientBase);t.TestResultsRestClient=s});
|
package/Tfvc/TfvcClient.js
CHANGED
|
@@ -74,7 +74,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
74
74
|
includeChildren: includeChildren
|
|
75
75
|
};
|
|
76
76
|
return [2 /*return*/, this.beginRequest({
|
|
77
|
-
apiVersion: "7.
|
|
77
|
+
apiVersion: "7.2-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", "../Common/Util/Serial
|
|
|
104
104
|
includeLinks: includeLinks
|
|
105
105
|
};
|
|
106
106
|
return [2 /*return*/, this.beginRequest({
|
|
107
|
-
apiVersion: "7.
|
|
107
|
+
apiVersion: "7.2-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", "../Common/Util/Serial
|
|
|
132
132
|
includeLinks: includeLinks
|
|
133
133
|
};
|
|
134
134
|
return [2 /*return*/, this.beginRequest({
|
|
135
|
-
apiVersion: "7.
|
|
135
|
+
apiVersion: "7.2-preview.1",
|
|
136
136
|
routeTemplate: "{project}/_apis/tfvc/Branches/{*path}",
|
|
137
137
|
routeValues: {
|
|
138
138
|
project: project
|
|
@@ -159,7 +159,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
159
159
|
'$top': top
|
|
160
160
|
};
|
|
161
161
|
return [2 /*return*/, this.beginRequest({
|
|
162
|
-
apiVersion: "7.
|
|
162
|
+
apiVersion: "7.2-preview.1",
|
|
163
163
|
routeTemplate: "_apis/tfvc/changesets/{id}/changes",
|
|
164
164
|
routeValues: {
|
|
165
165
|
id: id
|
|
@@ -191,7 +191,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
191
191
|
return __awaiter(this, void 0, void 0, function () {
|
|
192
192
|
return __generator(this, function (_a) {
|
|
193
193
|
return [2 /*return*/, this.beginRequest({
|
|
194
|
-
apiVersion: "7.
|
|
194
|
+
apiVersion: "7.2-preview.3",
|
|
195
195
|
method: "POST",
|
|
196
196
|
routeTemplate: "{project}/_apis/tfvc/changesets/{id}",
|
|
197
197
|
routeValues: {
|
|
@@ -233,7 +233,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
233
233
|
searchCriteria: searchCriteria
|
|
234
234
|
};
|
|
235
235
|
return [2 /*return*/, this.beginRequest({
|
|
236
|
-
apiVersion: "7.
|
|
236
|
+
apiVersion: "7.2-preview.3",
|
|
237
237
|
routeTemplate: "{project}/_apis/tfvc/changesets/{id}",
|
|
238
238
|
routeValues: {
|
|
239
239
|
project: project,
|
|
@@ -266,7 +266,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
266
266
|
searchCriteria: searchCriteria
|
|
267
267
|
};
|
|
268
268
|
return [2 /*return*/, this.beginRequest({
|
|
269
|
-
apiVersion: "7.
|
|
269
|
+
apiVersion: "7.2-preview.3",
|
|
270
270
|
routeTemplate: "{project}/_apis/tfvc/changesets/{id}",
|
|
271
271
|
routeValues: {
|
|
272
272
|
project: project
|
|
@@ -285,7 +285,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
285
285
|
return __awaiter(this, void 0, void 0, function () {
|
|
286
286
|
return __generator(this, function (_a) {
|
|
287
287
|
return [2 /*return*/, this.beginRequest({
|
|
288
|
-
apiVersion: "7.
|
|
288
|
+
apiVersion: "7.2-preview.1",
|
|
289
289
|
method: "POST",
|
|
290
290
|
routeTemplate: "_apis/tfvc/ChangesetsBatch",
|
|
291
291
|
body: changesetsRequestData
|
|
@@ -302,7 +302,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
302
302
|
return __awaiter(this, void 0, void 0, function () {
|
|
303
303
|
return __generator(this, function (_a) {
|
|
304
304
|
return [2 /*return*/, this.beginRequest({
|
|
305
|
-
apiVersion: "7.
|
|
305
|
+
apiVersion: "7.2-preview.1",
|
|
306
306
|
routeTemplate: "_apis/tfvc/changesets/{id}/workItems",
|
|
307
307
|
routeValues: {
|
|
308
308
|
id: id
|
|
@@ -321,7 +321,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
321
321
|
return __awaiter(this, void 0, void 0, function () {
|
|
322
322
|
return __generator(this, function (_a) {
|
|
323
323
|
return [2 /*return*/, this.beginRequest({
|
|
324
|
-
apiVersion: "7.
|
|
324
|
+
apiVersion: "7.2-preview.1",
|
|
325
325
|
method: "POST",
|
|
326
326
|
routeTemplate: "{project}/_apis/tfvc/ItemBatch",
|
|
327
327
|
routeValues: {
|
|
@@ -342,7 +342,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
342
342
|
return __awaiter(this, void 0, void 0, function () {
|
|
343
343
|
return __generator(this, function (_a) {
|
|
344
344
|
return [2 /*return*/, this.beginRequest({
|
|
345
|
-
apiVersion: "7.
|
|
345
|
+
apiVersion: "7.2-preview.1",
|
|
346
346
|
method: "POST",
|
|
347
347
|
httpResponseType: "application/zip",
|
|
348
348
|
routeTemplate: "{project}/_apis/tfvc/ItemBatch",
|
|
@@ -380,7 +380,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
380
380
|
includeContent: includeContent
|
|
381
381
|
};
|
|
382
382
|
return [2 /*return*/, this.beginRequest({
|
|
383
|
-
apiVersion: "7.
|
|
383
|
+
apiVersion: "7.2-preview.1",
|
|
384
384
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
385
385
|
routeValues: {
|
|
386
386
|
project: project
|
|
@@ -416,7 +416,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
416
416
|
includeContent: includeContent
|
|
417
417
|
};
|
|
418
418
|
return [2 /*return*/, this.beginRequest({
|
|
419
|
-
apiVersion: "7.
|
|
419
|
+
apiVersion: "7.2-preview.1",
|
|
420
420
|
httpResponseType: "application/octet-stream",
|
|
421
421
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
422
422
|
routeValues: {
|
|
@@ -447,7 +447,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
447
447
|
versionDescriptor: versionDescriptor
|
|
448
448
|
};
|
|
449
449
|
return [2 /*return*/, this.beginRequest({
|
|
450
|
-
apiVersion: "7.
|
|
450
|
+
apiVersion: "7.2-preview.1",
|
|
451
451
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
452
452
|
routeValues: {
|
|
453
453
|
project: project
|
|
@@ -483,7 +483,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
483
483
|
includeContent: includeContent
|
|
484
484
|
};
|
|
485
485
|
return [2 /*return*/, this.beginRequest({
|
|
486
|
-
apiVersion: "7.
|
|
486
|
+
apiVersion: "7.2-preview.1",
|
|
487
487
|
httpResponseType: "text/plain",
|
|
488
488
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
489
489
|
routeValues: {
|
|
@@ -520,7 +520,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
520
520
|
includeContent: includeContent
|
|
521
521
|
};
|
|
522
522
|
return [2 /*return*/, this.beginRequest({
|
|
523
|
-
apiVersion: "7.
|
|
523
|
+
apiVersion: "7.2-preview.1",
|
|
524
524
|
httpResponseType: "application/zip",
|
|
525
525
|
routeTemplate: "{project}/_apis/tfvc/Items/{*path}",
|
|
526
526
|
routeValues: {
|
|
@@ -547,7 +547,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
547
547
|
'$skip': skip
|
|
548
548
|
};
|
|
549
549
|
return [2 /*return*/, this.beginRequest({
|
|
550
|
-
apiVersion: "7.
|
|
550
|
+
apiVersion: "7.2-preview.1",
|
|
551
551
|
routeTemplate: "_apis/tfvc/labels/{labelId}/items",
|
|
552
552
|
routeValues: {
|
|
553
553
|
labelId: labelId
|
|
@@ -572,7 +572,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
572
572
|
requestData: requestData
|
|
573
573
|
};
|
|
574
574
|
return [2 /*return*/, this.beginRequest({
|
|
575
|
-
apiVersion: "7.
|
|
575
|
+
apiVersion: "7.2-preview.1",
|
|
576
576
|
routeTemplate: "{project}/_apis/tfvc/Labels/{labelId}",
|
|
577
577
|
routeValues: {
|
|
578
578
|
project: project,
|
|
@@ -601,7 +601,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
601
601
|
'$skip': skip
|
|
602
602
|
};
|
|
603
603
|
return [2 /*return*/, this.beginRequest({
|
|
604
|
-
apiVersion: "7.
|
|
604
|
+
apiVersion: "7.2-preview.1",
|
|
605
605
|
routeTemplate: "{project}/_apis/tfvc/Labels/{labelId}",
|
|
606
606
|
routeValues: {
|
|
607
607
|
project: project
|
|
@@ -628,7 +628,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
628
628
|
'$skip': skip
|
|
629
629
|
};
|
|
630
630
|
return [2 /*return*/, this.beginRequest({
|
|
631
|
-
apiVersion: "7.
|
|
631
|
+
apiVersion: "7.2-preview.1",
|
|
632
632
|
routeTemplate: "_apis/tfvc/shelvesets/changes",
|
|
633
633
|
queryParams: queryValues
|
|
634
634
|
})];
|
|
@@ -650,7 +650,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
650
650
|
requestData: requestData
|
|
651
651
|
};
|
|
652
652
|
return [2 /*return*/, this.beginRequest({
|
|
653
|
-
apiVersion: "7.
|
|
653
|
+
apiVersion: "7.2-preview.1",
|
|
654
654
|
routeTemplate: "_apis/tfvc/shelvesets",
|
|
655
655
|
queryParams: queryValues
|
|
656
656
|
})];
|
|
@@ -674,7 +674,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
674
674
|
'$skip': skip
|
|
675
675
|
};
|
|
676
676
|
return [2 /*return*/, this.beginRequest({
|
|
677
|
-
apiVersion: "7.
|
|
677
|
+
apiVersion: "7.2-preview.1",
|
|
678
678
|
routeTemplate: "_apis/tfvc/shelvesets",
|
|
679
679
|
queryParams: queryValues
|
|
680
680
|
})];
|
|
@@ -694,7 +694,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
694
694
|
shelvesetId: shelvesetId
|
|
695
695
|
};
|
|
696
696
|
return [2 /*return*/, this.beginRequest({
|
|
697
|
-
apiVersion: "7.
|
|
697
|
+
apiVersion: "7.2-preview.1",
|
|
698
698
|
routeTemplate: "_apis/tfvc/shelvesets/workitems",
|
|
699
699
|
queryParams: queryValues
|
|
700
700
|
})];
|
|
@@ -715,7 +715,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
715
715
|
scopePath: scopePath
|
|
716
716
|
};
|
|
717
717
|
return [2 /*return*/, this.beginRequest({
|
|
718
|
-
apiVersion: "7.
|
|
718
|
+
apiVersion: "7.2-preview.1",
|
|
719
719
|
routeTemplate: "{project}/_apis/tfvc/stats",
|
|
720
720
|
routeValues: {
|
|
721
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","../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});
|
|
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.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:"7.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:"7.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 i,o=this;return __generator(this,function(a){return i={$skip:t,$top:r},[2,this.beginRequest({apiVersion:"7.2-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.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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:"7.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=i});
|