azure-devops-extension-api 4.247.0 → 4.248.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/bin/Git/Git.d.ts +4 -0
- package/bin/Management/Management.d.ts +4 -0
- package/bin/TestResults/TestResultsClient.d.ts +16 -1
- package/bin/TestResults/TestResultsClient.js +56 -1
- package/bin/TestResults/TestResultsClient.min.js +1 -1
- package/bin/package.json +1 -1
- package/package.json +1 -1
- package/src/Git/Git.ts +4 -0
- package/src/Management/Management.ts +4 -0
- package/src/TestResults/TestResultsClient.ts +56 -0
package/bin/Git/Git.d.ts
CHANGED
|
@@ -2047,6 +2047,10 @@ export interface GitPullRequestSearchCriteria {
|
|
|
2047
2047
|
* If set, search for pull requests into this branch.
|
|
2048
2048
|
*/
|
|
2049
2049
|
targetRefName: string;
|
|
2050
|
+
/**
|
|
2051
|
+
* If set, filters pull requests that contain the specified text in the title.
|
|
2052
|
+
*/
|
|
2053
|
+
title: string;
|
|
2050
2054
|
}
|
|
2051
2055
|
/**
|
|
2052
2056
|
* This class contains the metadata of a service/extension posting pull request status. Status can be associated with a pull request or an iteration.
|
|
@@ -4,6 +4,10 @@ export interface AdvSecEnablementFeatures {
|
|
|
4
4
|
* Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>Setting Dependabot enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
5
5
|
*/
|
|
6
6
|
dependabotEnabled: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Dependency Scanning enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If GHAzDO is NOT already enabled, behavior will depend on if GHAzDO is to be enabled/disabled. DependencyScanningEnabled will not affect anything in this scenario. \<br /\> If GHAzDO is to be disabled, the value of DependencyScanningEnabled will have no effect. \<br /\> Setting Dependency Scanning enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
9
|
+
*/
|
|
10
|
+
dependencyScanningEnabled: boolean;
|
|
7
11
|
/**
|
|
8
12
|
* ForceRepoSecretScanning will be set to true when Enabled, false when Disabled, and null when not set. \<br /\> If GHAzDO is NOT already enabled, behavior will depend on if GHAzDO is to be enabled/disabled. ForceRepoSecretScanning will not affect anything in this scenario. \<br /\> If GHAzDO is to be disabled, the value of ForceRepoSecretScan will have no effect. \<br /\> If GHAzDO is to be enabled for the first time on a repo, then ForceRepoSecretScanning will have no effect. \<br /\> If GHAzDO is to be enabled and the repo is already enabled, then ForceRepoSecretScanning will force the secret scanning job to be run if it is set to true. \<br /\> In all cases where ForceRepoSecretScanning is not expected to affect behavior, it will be set to false before being sent to Tfs.
|
|
9
13
|
*/
|
|
@@ -374,10 +374,11 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
374
374
|
* @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
|
|
375
375
|
* @param jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
|
|
376
376
|
* @param outcomes - List of outcome of results
|
|
377
|
+
* @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not.
|
|
377
378
|
* @param top - Maximum number of results to return
|
|
378
379
|
* @param continuationToken - Header to pass the continuationToken
|
|
379
380
|
*/
|
|
380
|
-
getTestResultsByPipeline(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, outcomes?: Test.TestOutcome[], top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>>;
|
|
381
|
+
getTestResultsByPipeline(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, outcomes?: Test.TestOutcome[], includeAllBuildRuns?: boolean, top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>>;
|
|
381
382
|
/**
|
|
382
383
|
* @param project - Project ID or project name
|
|
383
384
|
* @param releaseId -
|
|
@@ -896,6 +897,20 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
896
897
|
* @param runId - ID of the TestRun to add machines for
|
|
897
898
|
*/
|
|
898
899
|
getTestResultMachines(project: string, runId: number): Promise<Test.TestResultMachine[]>;
|
|
900
|
+
/**
|
|
901
|
+
* Gets full TestCaseResult objects with 1MRX details for the provided pipelineId
|
|
902
|
+
*
|
|
903
|
+
* @param project - Project ID or project name
|
|
904
|
+
* @param pipelineId - Pipeline Id. This is same as build Id.
|
|
905
|
+
* @param stageName - Name of the stage. Maximum supported length for name is 256 character.
|
|
906
|
+
* @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
|
|
907
|
+
* @param jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
|
|
908
|
+
* @param outcomes - List of outcome of results
|
|
909
|
+
* @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not. Defaults to false.
|
|
910
|
+
* @param top - Maximum number of results to return. Defaults to 10000.
|
|
911
|
+
* @param continuationToken - Header to pass the continuationToken
|
|
912
|
+
*/
|
|
913
|
+
getTestResultsByPipelineMRX(project: string, pipelineId: number, stageName?: string, phaseName?: string, jobName?: string, outcomes?: Test.TestOutcome[], includeAllBuildRuns?: boolean, top?: number, continuationToken?: String): Promise<WebApi.PagedList<Test.TestCaseResult>>;
|
|
899
914
|
/**
|
|
900
915
|
* Retrieves Test runs associated to a session
|
|
901
916
|
*
|
|
@@ -1284,10 +1284,11 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
1284
1284
|
* @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
|
|
1285
1285
|
* @param jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
|
|
1286
1286
|
* @param outcomes - List of outcome of results
|
|
1287
|
+
* @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not.
|
|
1287
1288
|
* @param top - Maximum number of results to return
|
|
1288
1289
|
* @param continuationToken - Header to pass the continuationToken
|
|
1289
1290
|
*/
|
|
1290
|
-
TestResultsRestClient.prototype.getTestResultsByPipeline = function (project, pipelineId, stageName, phaseName, jobName, outcomes, top, continuationToken) {
|
|
1291
|
+
TestResultsRestClient.prototype.getTestResultsByPipeline = function (project, pipelineId, stageName, phaseName, jobName, outcomes, includeAllBuildRuns, top, continuationToken) {
|
|
1291
1292
|
return __awaiter(this, void 0, void 0, function () {
|
|
1292
1293
|
var queryValues;
|
|
1293
1294
|
var _this = this;
|
|
@@ -1298,6 +1299,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
1298
1299
|
phaseName: phaseName,
|
|
1299
1300
|
jobName: jobName,
|
|
1300
1301
|
outcomes: outcomes && outcomes.join(","),
|
|
1302
|
+
includeAllBuildRuns: includeAllBuildRuns,
|
|
1301
1303
|
'$top': top
|
|
1302
1304
|
};
|
|
1303
1305
|
return [2 /*return*/, this.beginRequest({
|
|
@@ -3002,6 +3004,59 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
3002
3004
|
});
|
|
3003
3005
|
});
|
|
3004
3006
|
};
|
|
3007
|
+
/**
|
|
3008
|
+
* Gets full TestCaseResult objects with 1MRX details for the provided pipelineId
|
|
3009
|
+
*
|
|
3010
|
+
* @param project - Project ID or project name
|
|
3011
|
+
* @param pipelineId - Pipeline Id. This is same as build Id.
|
|
3012
|
+
* @param stageName - Name of the stage. Maximum supported length for name is 256 character.
|
|
3013
|
+
* @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
|
|
3014
|
+
* @param jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
|
|
3015
|
+
* @param outcomes - List of outcome of results
|
|
3016
|
+
* @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not. Defaults to false.
|
|
3017
|
+
* @param top - Maximum number of results to return. Defaults to 10000.
|
|
3018
|
+
* @param continuationToken - Header to pass the continuationToken
|
|
3019
|
+
*/
|
|
3020
|
+
TestResultsRestClient.prototype.getTestResultsByPipelineMRX = function (project, pipelineId, stageName, phaseName, jobName, outcomes, includeAllBuildRuns, top, continuationToken) {
|
|
3021
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3022
|
+
var queryValues;
|
|
3023
|
+
var _this = this;
|
|
3024
|
+
return __generator(this, function (_a) {
|
|
3025
|
+
queryValues = {
|
|
3026
|
+
pipelineId: pipelineId,
|
|
3027
|
+
stageName: stageName,
|
|
3028
|
+
phaseName: phaseName,
|
|
3029
|
+
jobName: jobName,
|
|
3030
|
+
outcomes: outcomes && outcomes.join(","),
|
|
3031
|
+
includeAllBuildRuns: includeAllBuildRuns,
|
|
3032
|
+
'$top': top
|
|
3033
|
+
};
|
|
3034
|
+
return [2 /*return*/, this.beginRequest({
|
|
3035
|
+
apiVersion: "7.2-preview.2",
|
|
3036
|
+
routeTemplate: "{project}/_apis/testresults/testsession/resultsbypipeline",
|
|
3037
|
+
routeValues: {
|
|
3038
|
+
project: project
|
|
3039
|
+
},
|
|
3040
|
+
customHeaders: {
|
|
3041
|
+
"x-ms-continuationtoken": continuationToken,
|
|
3042
|
+
},
|
|
3043
|
+
queryParams: queryValues,
|
|
3044
|
+
returnRawResponse: true
|
|
3045
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
3046
|
+
var body;
|
|
3047
|
+
return __generator(this, function (_a) {
|
|
3048
|
+
switch (_a.label) {
|
|
3049
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
3050
|
+
case 1:
|
|
3051
|
+
body = _a.sent();
|
|
3052
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
3053
|
+
return [2 /*return*/, body];
|
|
3054
|
+
}
|
|
3055
|
+
});
|
|
3056
|
+
}); })];
|
|
3057
|
+
});
|
|
3058
|
+
});
|
|
3059
|
+
};
|
|
3005
3060
|
/**
|
|
3006
3061
|
* Retrieves Test runs associated to a session
|
|
3007
3062
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{a(s.next(e))}catch(e){i(e)}}function u(e){try{a(s.throw(e))}catch(e){i(e)}}function a(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(o,u)}a((s=s.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(s)throw new TypeError("Generator is already executing.");for(;u;)try{if(s=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,n=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],n=0}finally{s=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var s,n,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestIterationResultAttachment=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={iterationId:n,actionPath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:o,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:i,body:e})]})})},t.prototype.deleteTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestIterationAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestIterationAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testSubResultId:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:n})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.fetchSourceCodeCoverageReport=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/sourceview",routeValues:{project:e},queryParams:r})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s,body:r})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/codecoverage",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.addCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:t},body:e})]})})},t.prototype.queryCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={scopeFilter:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:e},queryParams:r})]})})},t.prototype.deleteCustomFieldById=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/extensionfields/{testExtensionFieldId}",routeValues:{project:e,testExtensionFieldId:t}})]})})},t.prototype.updateCustomField=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:"PATCH",routeTemplate:"{project}/_apis/testresults/extensionfields/{testExtensionFieldId}",routeValues:{project:t},body:e})]})})},t.prototype.getFileLevelCodeCoverage=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/testresults/codecoverage/filecoverage",routeValues:{project:t},body:e})]})})},t.prototype.getFlakyTestResultsByBuildDefinitionId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildDefinitionId:t,minBuildCreatedDate:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/builddefinition",routeValues:{project:e},queryParams:s})]})})},t.prototype.getFlakyTestResultsByTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunMessageLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestPipelineMetrics=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,metricNames:i&&i.join(","),groupByNode:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/metrics",routeValues:{project:e},queryParams:u})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,s,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:s,$filter:n,$orderby:i,shouldIncludeResults:o,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbybuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={releaseId:t,releaseEnvId:r,publishContext:s,groupBy:n,$filter:i,$orderby:o,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbyrelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o,u=this;return __generator(this,function(a){return o={buildId:t,publishContext:r,fields:n&&n.join(","),continuationToken:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbybuild",routeValues:{project:e},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={releaseId:t,publishContext:r,releaseEnvId:n,fields:i&&i.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbyrelease",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queryTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={detailsToInclude:r},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.updateTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t,testCaseReferenceId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByQueryWiql=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={includeResultDetails:r,includeIterationDetails:s,$skip:n,$top:i},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/query",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={detailsToInclude:s},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t,testResultId:r},queryParams:n})]})})},t.prototype.getTestResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={buildId:t,publishContext:r,outcomes:n&&n.join(","),$top:i,continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbybuild",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByPipeline=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={pipelineId:t,stageName:r,phaseName:n,jobName:i,outcomes:o&&o.join(","),$top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a,p=this;return __generator(this,function(c){return a={releaseId:t,releaseEnvid:r,publishContext:n,outcomes:i&&i.join(","),$top:o,continuationToken:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbyrelease",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.testResultsGroupDetails=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,shouldIncludeFailedAndAbortedResults:i,queryGroupSummaryForInProgress:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsgroupDetails",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={buildId:t,publishContext:r,includeFailureDetails:s,buildToCompare:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybybuild",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsReportForPipeline=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={pipelineId:t,stageName:r,phaseName:s,jobName:n,includeFailureDetails:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybypipeline",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={releaseId:t,releaseEnvId:r,publishContext:s,includeFailureDetails:n,releaseToCompare:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrequirement",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeDetails:r,includeTags:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRuns=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={buildUri:t,owner:r,tmiRunId:s,planId:n,includeRunDetails:i,automated:o,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,n,i,o,u,a,p,c,l,d,_,h,v,f,m){return __awaiter(this,void 0,void 0,function(){var g,y=this;return __generator(this,function(T){return g={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:n,planIds:i&&i.join(","),isAutomated:o,publishContext:u,buildIds:a&&a.join(","),buildDefIds:p&&p.join(","),branchName:c,releaseIds:l&&l.join(","),releaseDefIds:d&&d.join(","),releaseEnvIds:_&&_.join(","),releaseEnvDefIds:h&&h.join(","),runTitle:v,$top:f,continuationToken:m},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:g,returnRawResponse:!0}).then(function(e){return __awaiter(y,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunSummaryByOutcome=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/runsummary",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestResultsSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={settingsType:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:e},queryParams:r})]})})},t.prototype.updatePipelinesTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:t},body:e})]})})},t.prototype.getSimilarTestResults=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={testSubResultId:s,$top:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",routeValues:{project:e,runId:t,testResultId:r},customHeaders:{"x-ms-continuationtoken":i},queryParams:o})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.getCoverageStatusBadge=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={branchName:r,label:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/status/{*definition}",routeValues:{project:e,definition:t},queryParams:n})]})})},t.prototype.getTestTagsForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagsForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateTestRunTags=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/tags",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestTagSummaryForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagSummaryForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:s})]})})},t.prototype.createBuildAttachmentInLogStore=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/uploadbuildattachments/{buildId}",routeValues:{project:t,buildId:r},body:e})]})})},t.prototype.createTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunLogStoreAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.createFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e,failureTypeId:t}})]})})},t.prototype.getFailureTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.getTestLogsForBuild=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={buildId:t,type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlog",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultLogs=function(e,t,r,n,i,o,u,a,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={type:n,directoryPath:i,fileNamePrefix:o,fetchMetaData:u,top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestSubResultLogs=function(e,t,r,n,i,o,u,a,p,c){return __awaiter(this,void 0,void 0,function(){var l,d=this;return __generator(this,function(_){return l={subResultId:n,type:i,directoryPath:o,fileNamePrefix:u,fetchMetaData:a,top:p},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":c},queryParams:l,returnRawResponse:!0}).then(function(e){return __awaiter(d,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestRunLogs=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlog",routeValues:{project:e,runId:t},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestLogStoreEndpointDetailsForBuildLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={build:t,type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForBuild=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,testLogStoreOperationType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:s})]})})},t.prototype.getTestLogStoreEndpointDetailsForResultLog=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={type:s,filePath:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.getTestLogStoreEndpointDetailsForSubResultLog=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,type:n,filePath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.testLogStoreEndpointDetailsForResult=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,filePath:n,type:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.getTestLogStoreEndpointDetailsForRunLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForRun=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testLogStoreOperationType:r,filePath:s,type:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:i})]})})},t.prototype.createTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:t},body:e})]})})},t.prototype.getTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSessionLayout=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={sessionId:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.createAnalysis=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/analysis",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.createEnvironment=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/environment",routeValues:{project:t},body:e})]})})},t.prototype.createEnvironmentAndMachine=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/machines",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.getTestSessionLayoutBySessionId=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session/{sessionId}/layout",routeValues:{project:e,sessionId:t}})]})})},t.prototype.createNotification=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.getSessionNotifications=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:e,sessionId:t}})]})})},t.prototype.addTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestSessionResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.createTestResultMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/machines",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultMachines=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/machines",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunsBySessionId=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/runs",routeValues:{project:e,sessionId:t}})]})})},t.prototype.updateTestRunsBySessionId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/runs",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/workitems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testName:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestResultWorkItemsById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:s,maxCompleteDate:n,days:i,$workItemCount:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/results/workitems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c83eaf52-edf3-4034-ae11-17d38f25404c",t}(r.RestClientBase);t.TestResultsRestClient=n});
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function s(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(s.prototype=r.prototype,new s)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))(function(n,i){function o(e){try{a(s.next(e))}catch(e){i(e)}}function u(e){try{a(s.throw(e))}catch(e){i(e)}}function a(e){e.done?n(e.value):new r(function(t){t(e.value)}).then(o,u)}a((s=s.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(s)throw new TypeError("Generator is already executing.");for(;u;)try{if(s=1,n&&(i=2&r[0]?n.return:r[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,r[1])).done)return i;switch(n=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return u.label++,{value:r[1],done:!1};case 5:u.label++,n=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],n=0}finally{s=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var s,n,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createTestIterationResultAttachment=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={iterationId:n,actionPath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:o,body:e})]})})},t.prototype.createTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},body:e})]})})},t.prototype.createTestSubResultAttachment=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:t,runId:r,testCaseResultId:s},queryParams:i,body:e})]})})},t.prototype.deleteTestResultAttachment=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestIterationAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestIterationAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={iterationId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestResultAttachmentContent=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestResultAttachments=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.getTestResultAttachmentZip=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s}})]})})},t.prototype.getTestSubResultAttachmentContent=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.getTestSubResultAttachments=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={testSubResultId:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r},queryParams:n})]})})},t.prototype.getTestSubResultAttachmentZip=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testSubResultId:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,testCaseResultId:r,attachmentId:s},queryParams:i})]})})},t.prototype.createTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getTestRunAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/attachments/{attachmentId}",routeValues:{project:e,runId:t,attachmentId:r}})]})})},t.prototype.getBugsLinkedToTestResult=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/bugs",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.fetchSourceCodeCoverageReport=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/sourceview",routeValues:{project:e},queryParams:r})]})})},t.prototype.getBuildCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.getCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,deltaBuildId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateCodeCoverageSummary=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/codecoverage",routeValues:{project:e},queryParams:s,body:r})]})})},t.prototype.getTestRunCodeCoverage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={flags:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/codecoverage",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.addCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:t},body:e})]})})},t.prototype.queryCustomFields=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={scopeFilter:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/extensionfields",routeValues:{project:e},queryParams:r})]})})},t.prototype.deleteCustomFieldById=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/extensionfields/{testExtensionFieldId}",routeValues:{project:e,testExtensionFieldId:t}})]})})},t.prototype.updateCustomField=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:"PATCH",routeTemplate:"{project}/_apis/testresults/extensionfields/{testExtensionFieldId}",routeValues:{project:t},body:e})]})})},t.prototype.getFileLevelCodeCoverage=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/testresults/codecoverage/filecoverage",routeValues:{project:t},body:e})]})})},t.prototype.getFlakyTestResultsByBuildDefinitionId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildDefinitionId:t,minBuildCreatedDate:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/builddefinition",routeValues:{project:e},queryParams:s})]})})},t.prototype.getFlakyTestResultsByTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/flakytestresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.queryTestResultHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/results/History",routeValues:{project:t},body:e})]})})},t.prototype.getTestRunMessageLogs=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/MessageLogs",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestPipelineMetrics=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,metricNames:i&&i.join(","),groupByNode:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/metrics",routeValues:{project:e},queryParams:u})]})})},t.prototype.getTestResultDetailsForBuild=function(e,t,r,s,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={buildId:t,publishContext:r,groupBy:s,$filter:n,$orderby:i,shouldIncludeResults:o,queryRunSummaryForInProgress:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbybuild",routeValues:{project:e},queryParams:a})]})})},t.prototype.getTestResultDetailsForRelease=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={releaseId:t,releaseEnvId:r,publishContext:s,groupBy:n,$filter:i,$orderby:o,shouldIncludeResults:u,queryRunSummaryForInProgress:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultdetailsbyrelease",routeValues:{project:e},queryParams:p})]})})},t.prototype.publishTestResultDocument=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/ResultDocument",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getResultGroupsByBuild=function(e,t,r,n,i){return __awaiter(this,void 0,void 0,function(){var o,u=this;return __generator(this,function(a){return o={buildId:t,publishContext:r,fields:n&&n.join(","),continuationToken:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbybuild",routeValues:{project:e},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getResultGroupsByRelease=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={releaseId:t,publishContext:r,releaseEnvId:n,fields:i&&i.join(","),continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultgroupsbyrelease",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queryTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={detailsToInclude:r},[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"POST",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.updateTestResultsMetaData=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.4",method:"PATCH",routeTemplate:"{project}/_apis/testresults/results/ResultMetaData/{testCaseReferenceId}",routeValues:{project:t,testCaseReferenceId:r},body:e})]})})},t.prototype.getTestResultsByQuery=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results",routeValues:{project:t},body:e})]})})},t.prototype.getTestResultsByQueryWiql=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={includeResultDetails:r,includeIterationDetails:s,$skip:n,$top:i},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/query",routeValues:{project:t},queryParams:o,body:e})]})})},t.prototype.addTestResultsToTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={detailsToInclude:s},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t,testResultId:r},queryParams:n})]})})},t.prototype.getTestResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResults=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultsByBuild=function(e,t,r,n,i,o){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(p){return u={buildId:t,publishContext:r,outcomes:n&&n.join(","),$top:i,continuationToken:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbybuild",routeValues:{project:e},queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByPipeline=function(e,t,r,n,i,o,u,a,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={pipelineId:t,stageName:r,phaseName:n,jobName:i,outcomes:o&&o.join(","),includeAllBuildRuns:u,$top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultsByRelease=function(e,t,r,n,i,o,u){return __awaiter(this,void 0,void 0,function(){var a,p=this;return __generator(this,function(c){return a={releaseId:t,releaseEnvid:r,publishContext:n,outcomes:i&&i.join(","),$top:o,continuationToken:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsbyrelease",routeValues:{project:e},queryParams:a,returnRawResponse:!0}).then(function(e){return __awaiter(p,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.testResultsGroupDetails=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={pipelineId:t,stageName:r,phaseName:s,jobName:n,shouldIncludeFailedAndAbortedResults:i,queryGroupSummaryForInProgress:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsgroupDetails",routeValues:{project:e},queryParams:u})]})})},t.prototype.queryTestResultsReportForBuild=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={buildId:t,publishContext:r,includeFailureDetails:s,buildToCompare:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybybuild",routeValues:{project:e},queryParams:i})]})})},t.prototype.queryTestResultsReportForPipeline=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={pipelineId:t,stageName:r,phaseName:s,jobName:n,includeFailureDetails:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybypipeline",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsReportForRelease=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={releaseId:t,releaseEnvId:r,publishContext:s,includeFailureDetails:n,releaseToCompare:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:e},queryParams:o})]})})},t.prototype.queryTestResultsSummaryForReleases=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrelease",routeValues:{project:t},body:e})]})})},t.prototype.queryTestSummaryByRequirement=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={workItemIds:r&&r.join(",")},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/resultsummarybyrequirement",routeValues:{project:t},queryParams:s,body:e})]})})},t.prototype.queryResultTrendForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByBuild",routeValues:{project:t},body:e})]})})},t.prototype.queryResultTrendForRelease=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/ResultTrendByRelease",routeValues:{project:t},body:e})]})})},t.prototype.createTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestRun=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunById=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={includeDetails:r,includeTags:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.getTestRuns=function(e,t,r,s,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={buildUri:t,owner:r,tmiRunId:s,planId:n,includeRunDetails:i,automated:o,$skip:u,$top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:p})]})})},t.prototype.queryTestRuns=function(e,t,r,n,i,o,u,a,p,c,l,d,_,h,v,f,m){return __awaiter(this,void 0,void 0,function(){var g,y=this;return __generator(this,function(T){return g={minLastUpdatedDate:t,maxLastUpdatedDate:r,state:n,planIds:i&&i.join(","),isAutomated:o,publishContext:u,buildIds:a&&a.join(","),buildDefIds:p&&p.join(","),branchName:c,releaseIds:l&&l.join(","),releaseDefIds:d&&d.join(","),releaseEnvIds:_&&_.join(","),releaseEnvDefIds:h&&h.join(","),runTitle:v,$top:f,continuationToken:m},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:e},queryParams:g,returnRawResponse:!0}).then(function(e){return __awaiter(y,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.updateTestRun=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestRunSummaryByOutcome=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/runsummary",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestResultsSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={settingsType:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:e},queryParams:r})]})})},t.prototype.updatePipelinesTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"{project}/_apis/testresults/settings",routeValues:{project:t},body:e})]})})},t.prototype.getSimilarTestResults=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={testSubResultId:s,$top:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testResultId}/SimilarTestResults",routeValues:{project:e,runId:t,testResultId:r},customHeaders:{"x-ms-continuationtoken":i},queryParams:o})]})})},t.prototype.getTestRunStatistics=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/statistics",routeValues:{project:e,runId:t}})]})})},t.prototype.getCoverageStatusBadge=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={branchName:r,label:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/codecoverage/status/{*definition}",routeValues:{project:e,definition:t},queryParams:n})]})})},t.prototype.getTestTagsForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagsForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tags",routeValues:{project:e},queryParams:s})]})})},t.prototype.updateTestRunTags=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/testresults/runs/{runId}/tags",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestTagSummaryForBuild=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestTagSummaryForRelease=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={releaseId:t,releaseEnvId:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/tagsummary",routeValues:{project:e},queryParams:s})]})})},t.prototype.createBuildAttachmentInLogStore=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/uploadbuildattachments/{buildId}",routeValues:{project:t,buildId:r},body:e})]})})},t.prototype.createTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.deleteTestRunLogStoreAttachment=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachmentContent=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.getTestRunLogStoreAttachments=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestRunLogStoreAttachmentZip=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={filename:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testattachments",routeValues:{project:e,runId:t},queryParams:s})]})})},t.prototype.createFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteFailureType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e,failureTypeId:t}})]})})},t.prototype.getFailureTypes=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testfailuretype/{failureTypeId}",routeValues:{project:e}})]})})},t.prototype.queryTestHistory=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/results/TestHistory",routeValues:{project:t},body:e})]})})},t.prototype.getTestLogsForBuild=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={buildId:t,type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlog",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestResultLogs=function(e,t,r,n,i,o,u,a,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={type:n,directoryPath:i,fileNamePrefix:o,fetchMetaData:u,top:a},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestSubResultLogs=function(e,t,r,n,i,o,u,a,p,c){return __awaiter(this,void 0,void 0,function(){var l,d=this;return __generator(this,function(_){return l={subResultId:n,type:i,directoryPath:o,fileNamePrefix:u,fetchMetaData:a,top:p},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlog",routeValues:{project:e,runId:t,resultId:r},customHeaders:{"x-ms-continuationtoken":c},queryParams:l,returnRawResponse:!0}).then(function(e){return __awaiter(d,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestRunLogs=function(e,t,r,n,i,o,u,a){return __awaiter(this,void 0,void 0,function(){var p,c=this;return __generator(this,function(l){return p={type:r,directoryPath:n,fileNamePrefix:i,fetchMetaData:o,top:u},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlog",routeValues:{project:e,runId:t},customHeaders:{"x-ms-continuationtoken":a},queryParams:p,returnRawResponse:!0}).then(function(e){return __awaiter(c,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestLogStoreEndpointDetailsForBuildLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={build:t,type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForBuild=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={buildId:t,testLogStoreOperationType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testlogstoreendpoint",routeValues:{project:e},queryParams:s})]})})},t.prototype.getTestLogStoreEndpointDetailsForResultLog=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={type:s,filePath:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:i})]})})},t.prototype.getTestLogStoreEndpointDetailsForSubResultLog=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,type:n,filePath:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.testLogStoreEndpointDetailsForResult=function(e,t,r,s,n,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={subResultId:s,filePath:n,type:i},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{resultId}/testlogstoreendpoint",routeValues:{project:e,runId:t,resultId:r},queryParams:o})]})})},t.prototype.getTestLogStoreEndpointDetailsForRunLog=function(e,t,r,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:r,filePath:s},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:n})]})})},t.prototype.testLogStoreEndpointDetailsForRun=function(e,t,r,s,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={testLogStoreOperationType:r,filePath:s,type:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/runs/{runId}/testlogstoreendpoint",routeValues:{project:e,runId:t},queryParams:i})]})})},t.prototype.createTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:t},body:e})]})})},t.prototype.getTestSession=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={buildId:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSessionLayout=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={sessionId:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session",routeValues:{project:e},queryParams:r})]})})},t.prototype.createAnalysis=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/analysis",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.createEnvironment=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/environment",routeValues:{project:t},body:e})]})})},t.prototype.createEnvironmentAndMachine=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/machines",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.getTestSessionLayoutBySessionId=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/session/{sessionId}/layout",routeValues:{project:e,sessionId:t}})]})})},t.prototype.createNotification=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.getSessionNotifications=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/notifications",routeValues:{project:e,sessionId:t}})]})})},t.prototype.addTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestSessionResults=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={detailsToInclude:r,$skip:s,$top:n,outcomes:i&&i.join(","),$newTestsOnly:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:e,runId:t},queryParams:u})]})})},t.prototype.updateTestResultsToTestRunSession=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/results/{testResultId}",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.createTestResultMachines=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/machines",routeValues:{project:t,runId:r},body:e})]})})},t.prototype.getTestResultMachines=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/runs/{runId}/machines",routeValues:{project:e,runId:t}})]})})},t.prototype.getTestResultsByPipelineMRX=function(e,t,r,n,i,o,u,a,p){return __awaiter(this,void 0,void 0,function(){var c,l=this;return __generator(this,function(d){return c={pipelineId:t,stageName:r,phaseName:n,jobName:i,outcomes:o&&o.join(","),includeAllBuildRuns:u,$top:a},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/resultsbypipeline",routeValues:{project:e},customHeaders:{"x-ms-continuationtoken":p},queryParams:c,returnRawResponse:!0}).then(function(e){return __awaiter(l,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(s.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getTestRunsBySessionId=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/runs",routeValues:{project:e,sessionId:t}})]})})},t.prototype.updateTestRunsBySessionId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/testresults/testsession/{sessionId}/runs",routeValues:{project:t,sessionId:r},body:e})]})})},t.prototype.createTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestSettings=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestSettingsById=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testSettingsId:t},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/testresults/testsettings",routeValues:{project:e},queryParams:r})]})})},t.prototype.addWorkItemToTestLinks=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/workitems",routeValues:{project:t},body:e})]})})},t.prototype.deleteTestMethodToWorkItemLink=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(n){return s={testName:t,workItemId:r},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:s})]})})},t.prototype.queryTestMethodLinkedWorkItems=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(s){return r={testName:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/testresults/testmethods/{testName}/workitems/{workItemId}",routeValues:{project:e},queryParams:r})]})})},t.prototype.getTestResultWorkItemsById=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/runs/{runId}/results/{testCaseResultId}/workitems",routeValues:{project:e,runId:t,testCaseResultId:r}})]})})},t.prototype.queryTestResultWorkItems=function(e,t,r,s,n,i,o){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={workItemCategory:t,automatedTestName:r,testCaseId:s,maxCompleteDate:n,days:i,$workItemCount:o},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"{project}/_apis/testresults/results/workitems",routeValues:{project:e},queryParams:u})]})})},t.RESOURCE_AREA_ID="c83eaf52-edf3-4034-ae11-17d38f25404c",t}(r.RestClientBase);t.TestResultsRestClient=n});
|
package/bin/package.json
CHANGED
package/package.json
CHANGED
package/src/Git/Git.ts
CHANGED
|
@@ -2158,6 +2158,10 @@ export interface GitPullRequestSearchCriteria {
|
|
|
2158
2158
|
* If set, search for pull requests into this branch.
|
|
2159
2159
|
*/
|
|
2160
2160
|
targetRefName: string;
|
|
2161
|
+
/**
|
|
2162
|
+
* If set, filters pull requests that contain the specified text in the title.
|
|
2163
|
+
*/
|
|
2164
|
+
title: string;
|
|
2161
2165
|
}
|
|
2162
2166
|
|
|
2163
2167
|
/**
|
|
@@ -11,6 +11,10 @@ export interface AdvSecEnablementFeatures {
|
|
|
11
11
|
* Dependabot enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\>When true, Dependabot will open PRs to support security updates for outdated dependencies. \<br /\>Setting Dependabot enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
12
12
|
*/
|
|
13
13
|
dependabotEnabled: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Dependency Scanning enablement status set to False when disabled and True when enabled; Null is never explicitly set. \<br /\> If GHAzDO is NOT already enabled, behavior will depend on if GHAzDO is to be enabled/disabled. DependencyScanningEnabled will not affect anything in this scenario. \<br /\> If GHAzDO is to be disabled, the value of DependencyScanningEnabled will have no effect. \<br /\> Setting Dependency Scanning enablement state is only supported for repo enablement and not org or project enablement at this time.
|
|
16
|
+
*/
|
|
17
|
+
dependencyScanningEnabled: boolean;
|
|
14
18
|
/**
|
|
15
19
|
* ForceRepoSecretScanning will be set to true when Enabled, false when Disabled, and null when not set. \<br /\> If GHAzDO is NOT already enabled, behavior will depend on if GHAzDO is to be enabled/disabled. ForceRepoSecretScanning will not affect anything in this scenario. \<br /\> If GHAzDO is to be disabled, the value of ForceRepoSecretScan will have no effect. \<br /\> If GHAzDO is to be enabled for the first time on a repo, then ForceRepoSecretScanning will have no effect. \<br /\> If GHAzDO is to be enabled and the repo is already enabled, then ForceRepoSecretScanning will force the secret scanning job to be run if it is set to true. \<br /\> In all cases where ForceRepoSecretScanning is not expected to affect behavior, it will be set to false before being sent to Tfs.
|
|
16
20
|
*/
|
|
@@ -1354,6 +1354,7 @@ export class TestResultsRestClient extends RestClientBase {
|
|
|
1354
1354
|
* @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
|
|
1355
1355
|
* @param jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
|
|
1356
1356
|
* @param outcomes - List of outcome of results
|
|
1357
|
+
* @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not.
|
|
1357
1358
|
* @param top - Maximum number of results to return
|
|
1358
1359
|
* @param continuationToken - Header to pass the continuationToken
|
|
1359
1360
|
*/
|
|
@@ -1364,6 +1365,7 @@ export class TestResultsRestClient extends RestClientBase {
|
|
|
1364
1365
|
phaseName?: string,
|
|
1365
1366
|
jobName?: string,
|
|
1366
1367
|
outcomes?: Test.TestOutcome[],
|
|
1368
|
+
includeAllBuildRuns?: boolean,
|
|
1367
1369
|
top?: number,
|
|
1368
1370
|
continuationToken?: String
|
|
1369
1371
|
): Promise<WebApi.PagedList<Test.ShallowTestCaseResult>> {
|
|
@@ -1374,6 +1376,7 @@ export class TestResultsRestClient extends RestClientBase {
|
|
|
1374
1376
|
phaseName: phaseName,
|
|
1375
1377
|
jobName: jobName,
|
|
1376
1378
|
outcomes: outcomes && outcomes.join(","),
|
|
1379
|
+
includeAllBuildRuns: includeAllBuildRuns,
|
|
1377
1380
|
'$top': top
|
|
1378
1381
|
};
|
|
1379
1382
|
|
|
@@ -3201,6 +3204,59 @@ export class TestResultsRestClient extends RestClientBase {
|
|
|
3201
3204
|
});
|
|
3202
3205
|
}
|
|
3203
3206
|
|
|
3207
|
+
/**
|
|
3208
|
+
* Gets full TestCaseResult objects with 1MRX details for the provided pipelineId
|
|
3209
|
+
*
|
|
3210
|
+
* @param project - Project ID or project name
|
|
3211
|
+
* @param pipelineId - Pipeline Id. This is same as build Id.
|
|
3212
|
+
* @param stageName - Name of the stage. Maximum supported length for name is 256 character.
|
|
3213
|
+
* @param phaseName - Name of the phase. Maximum supported length for name is 256 character.
|
|
3214
|
+
* @param jobName - Matrixing in YAML generates copies of a job with different inputs in matrix. JobName is the name of those input. Maximum supported length for name is 256 character.
|
|
3215
|
+
* @param outcomes - List of outcome of results
|
|
3216
|
+
* @param includeAllBuildRuns - Whether to include Test Runs from from all the build runs or not. Defaults to false.
|
|
3217
|
+
* @param top - Maximum number of results to return. Defaults to 10000.
|
|
3218
|
+
* @param continuationToken - Header to pass the continuationToken
|
|
3219
|
+
*/
|
|
3220
|
+
public async getTestResultsByPipelineMRX(
|
|
3221
|
+
project: string,
|
|
3222
|
+
pipelineId: number,
|
|
3223
|
+
stageName?: string,
|
|
3224
|
+
phaseName?: string,
|
|
3225
|
+
jobName?: string,
|
|
3226
|
+
outcomes?: Test.TestOutcome[],
|
|
3227
|
+
includeAllBuildRuns?: boolean,
|
|
3228
|
+
top?: number,
|
|
3229
|
+
continuationToken?: String
|
|
3230
|
+
): Promise<WebApi.PagedList<Test.TestCaseResult>> {
|
|
3231
|
+
|
|
3232
|
+
const queryValues: any = {
|
|
3233
|
+
pipelineId: pipelineId,
|
|
3234
|
+
stageName: stageName,
|
|
3235
|
+
phaseName: phaseName,
|
|
3236
|
+
jobName: jobName,
|
|
3237
|
+
outcomes: outcomes && outcomes.join(","),
|
|
3238
|
+
includeAllBuildRuns: includeAllBuildRuns,
|
|
3239
|
+
'$top': top
|
|
3240
|
+
};
|
|
3241
|
+
|
|
3242
|
+
return this.beginRequest<Response>({
|
|
3243
|
+
apiVersion: "7.2-preview.2",
|
|
3244
|
+
routeTemplate: "{project}/_apis/testresults/testsession/resultsbypipeline",
|
|
3245
|
+
routeValues: {
|
|
3246
|
+
project: project
|
|
3247
|
+
},
|
|
3248
|
+
customHeaders: {
|
|
3249
|
+
"x-ms-continuationtoken": continuationToken,
|
|
3250
|
+
},
|
|
3251
|
+
queryParams: queryValues,
|
|
3252
|
+
returnRawResponse: true
|
|
3253
|
+
}).then(async response => {
|
|
3254
|
+
const body = <WebApi.PagedList<Test.TestCaseResult>>await response.text().then(deserializeVssJsonObject);
|
|
3255
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
3256
|
+
return body;
|
|
3257
|
+
});
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3204
3260
|
/**
|
|
3205
3261
|
* Retrieves Test runs associated to a session
|
|
3206
3262
|
*
|