From 7652d8e9d558cfa071fba24952a93a9af81dae56 Mon Sep 17 00:00:00 2001 From: TFS MiniLab Admin Date: Thu, 6 Jul 2023 20:06:25 +0000 Subject: [PATCH] All files have been added to the repo --- src/Git/GitClient.ts | 8 ++++---- src/TaskAgent/TaskAgent.ts | 4 ++++ src/Test/Test.ts | 24 ++++++++++++++++++++++++ src/TestResults/TestResultsClient.ts | 10 +++++----- 4 files changed, 37 insertions(+), 9 deletions(-) diff --git a/src/Git/GitClient.ts b/src/Git/GitClient.ts index ad42924..609a4aa 100644 --- a/src/Git/GitClient.ts +++ b/src/Git/GitClient.ts @@ -2299,7 +2299,7 @@ export class GitRestClient extends RestClientBase { } /** - * Create a label for a specified pull request. The only required field is the name of the new label. + * Create a tag (if that does not exists yet) and add that as a label (tag) for a specified pull request. The only required field is the name of the new label (tag). * * @param label - Label to assign to the pull request. * @param repositoryId - The repository ID of the pull request’s target branch. @@ -2334,7 +2334,7 @@ export class GitRestClient extends RestClientBase { } /** - * Removes a label from the set of those assigned to the pull request. + * Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted. * * @param repositoryId - The repository ID of the pull request’s target branch. * @param pullRequestId - ID of the pull request. @@ -2369,7 +2369,7 @@ export class GitRestClient extends RestClientBase { } /** - * Retrieves a single label that has been assigned to a pull request. + * Retrieves a single label (tag) that has been assigned to a pull request. * * @param repositoryId - The repository ID of the pull request’s target branch. * @param pullRequestId - ID of the pull request. @@ -2403,7 +2403,7 @@ export class GitRestClient extends RestClientBase { } /** - * Get all the labels assigned to a pull request. + * Get all the labels (tags) assigned to a pull request. * * @param repositoryId - The repository ID of the pull request’s target branch. * @param pullRequestId - ID of the pull request. diff --git a/src/TaskAgent/TaskAgent.ts b/src/TaskAgent/TaskAgent.ts index 22526c7..c150767 100644 --- a/src/TaskAgent/TaskAgent.ts +++ b/src/TaskAgent/TaskAgent.ts @@ -2774,6 +2774,10 @@ export interface TaskCommandRestrictions { } export interface TaskCompletedEvent extends TaskEvent { + /** + * The api request was no delivered successfully + */ + deliveryFailed: boolean; /** * The result of the task. */ diff --git a/src/Test/Test.ts b/src/Test/Test.ts index 48f2815..70268d0 100644 --- a/src/Test/Test.ts +++ b/src/Test/Test.ts @@ -3884,6 +3884,30 @@ export interface TestResultFailuresAnalysis { newFailures: TestFailureDetails; } +/** + * The test failure type resource + */ +export interface TestResultFailureType { + /** + * ID of the test failure type + */ + id: number; + /** + * Name of the test failure type + */ + name: string; +} + +/** + * The test failure type request model + */ +export interface TestResultFailureTypeRequestModel { + /** + * Name of the test failure type + */ + name: string; +} + /** * Group by for results */ diff --git a/src/TestResults/TestResultsClient.ts b/src/TestResults/TestResultsClient.ts index 545cc33..ff36aa5 100644 --- a/src/TestResults/TestResultsClient.ts +++ b/src/TestResults/TestResultsClient.ts @@ -2164,11 +2164,11 @@ export class TestResultsRestClient extends RestClientBase { * @param project - Project ID or project name */ public async createFailureType( - testResultFailureType: Test.TestFailureType, + testResultFailureType: Test.TestResultFailureTypeRequestModel, project: string - ): Promise { + ): Promise { - return this.beginRequest({ + return this.beginRequest({ apiVersion: "7.1-preview.1", method: "POST", routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}", @@ -2208,9 +2208,9 @@ export class TestResultsRestClient extends RestClientBase { */ public async getFailureTypes( project: string - ): Promise { + ): Promise { - return this.beginRequest({ + return this.beginRequest({ apiVersion: "7.1-preview.1", routeTemplate: "{project}/_apis/testresults/testfailuretype/{failureTypeId}", routeValues: {