azure-devops-extension-api 2.221.0 → 2.222.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.
@@ -698,7 +698,7 @@ export declare class GitRestClient extends RestClientBase {
698
698
  */
699
699
  updatePullRequestIterationStatuses(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<void>;
700
700
  /**
701
- * Create a label for a specified pull request. The only required field is the name of the new label.
701
+ * 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).
702
702
  *
703
703
  * @param label - Label to assign to the pull request.
704
704
  * @param repositoryId - The repository ID of the pull request’s target branch.
@@ -708,7 +708,7 @@ export declare class GitRestClient extends RestClientBase {
708
708
  */
709
709
  createPullRequestLabel(label: TfsCore.WebApiCreateTagRequestData, repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
710
710
  /**
711
- * Removes a label from the set of those assigned to the pull request.
711
+ * Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
712
712
  *
713
713
  * @param repositoryId - The repository ID of the pull request’s target branch.
714
714
  * @param pullRequestId - ID of the pull request.
@@ -718,7 +718,7 @@ export declare class GitRestClient extends RestClientBase {
718
718
  */
719
719
  deletePullRequestLabels(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<void>;
720
720
  /**
721
- * Retrieves a single label that has been assigned to a pull request.
721
+ * Retrieves a single label (tag) that has been assigned to a pull request.
722
722
  *
723
723
  * @param repositoryId - The repository ID of the pull request’s target branch.
724
724
  * @param pullRequestId - ID of the pull request.
@@ -728,7 +728,7 @@ export declare class GitRestClient extends RestClientBase {
728
728
  */
729
729
  getPullRequestLabel(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
730
730
  /**
731
- * Get all the labels assigned to a pull request.
731
+ * Get all the labels (tags) assigned to a pull request.
732
732
  *
733
733
  * @param repositoryId - The repository ID of the pull request’s target branch.
734
734
  * @param pullRequestId - ID of the pull request.
package/Git/GitClient.js CHANGED
@@ -2084,7 +2084,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2084
2084
  });
2085
2085
  };
2086
2086
  /**
2087
- * Create a label for a specified pull request. The only required field is the name of the new label.
2087
+ * 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).
2088
2088
  *
2089
2089
  * @param label - Label to assign to the pull request.
2090
2090
  * @param repositoryId - The repository ID of the pull request’s target branch.
@@ -2115,7 +2115,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2115
2115
  });
2116
2116
  };
2117
2117
  /**
2118
- * Removes a label from the set of those assigned to the pull request.
2118
+ * Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
2119
2119
  *
2120
2120
  * @param repositoryId - The repository ID of the pull request’s target branch.
2121
2121
  * @param pullRequestId - ID of the pull request.
@@ -2146,7 +2146,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2146
2146
  });
2147
2147
  };
2148
2148
  /**
2149
- * Retrieves a single label that has been assigned to a pull request.
2149
+ * Retrieves a single label (tag) that has been assigned to a pull request.
2150
2150
  *
2151
2151
  * @param repositoryId - The repository ID of the pull request’s target branch.
2152
2152
  * @param pullRequestId - ID of the pull request.
@@ -2176,7 +2176,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
2176
2176
  });
2177
2177
  };
2178
2178
  /**
2179
- * Get all the labels assigned to a pull request.
2179
+ * Get all the labels (tags) assigned to a pull request.
2180
2180
  *
2181
2181
  * @param repositoryId - The repository ID of the pull request’s target branch.
2182
2182
  * @param pullRequestId - ID of the pull request.
@@ -2622,6 +2622,10 @@ export interface TaskCommandRestrictions {
2622
2622
  mode: TaskCommandMode;
2623
2623
  }
2624
2624
  export interface TaskCompletedEvent extends TaskEvent {
2625
+ /**
2626
+ * The api request was no delivered successfully
2627
+ */
2628
+ deliveryFailed: boolean;
2625
2629
  /**
2626
2630
  * The result of the task.
2627
2631
  */
package/Test/Test.d.ts CHANGED
@@ -3704,6 +3704,28 @@ export interface TestResultFailuresAnalysis {
3704
3704
  fixedTests: TestFailureDetails;
3705
3705
  newFailures: TestFailureDetails;
3706
3706
  }
3707
+ /**
3708
+ * The test failure type resource
3709
+ */
3710
+ export interface TestResultFailureType {
3711
+ /**
3712
+ * ID of the test failure type
3713
+ */
3714
+ id: number;
3715
+ /**
3716
+ * Name of the test failure type
3717
+ */
3718
+ name: string;
3719
+ }
3720
+ /**
3721
+ * The test failure type request model
3722
+ */
3723
+ export interface TestResultFailureTypeRequestModel {
3724
+ /**
3725
+ * Name of the test failure type
3726
+ */
3727
+ name: string;
3728
+ }
3707
3729
  /**
3708
3730
  * Group by for results
3709
3731
  */
@@ -589,7 +589,7 @@ export declare class TestResultsRestClient extends RestClientBase {
589
589
  * @param testResultFailureType -
590
590
  * @param project - Project ID or project name
591
591
  */
592
- createFailureType(testResultFailureType: Test.TestFailureType, project: string): Promise<Test.TestFailureType>;
592
+ createFailureType(testResultFailureType: Test.TestResultFailureTypeRequestModel, project: string): Promise<Test.TestResultFailureType>;
593
593
  /**
594
594
  * Deletes a test failure type with specified failureTypeId
595
595
  *
@@ -602,7 +602,7 @@ export declare class TestResultsRestClient extends RestClientBase {
602
602
  *
603
603
  * @param project - Project ID or project name
604
604
  */
605
- getFailureTypes(project: string): Promise<Test.TestFailureType[]>;
605
+ getFailureTypes(project: string): Promise<Test.TestResultFailureType[]>;
606
606
  /**
607
607
  * Get history of a test method using TestHistoryQuery
608
608
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azure-devops-extension-api",
3
- "version": "2.221.0",
3
+ "version": "2.222.0",
4
4
  "description": "REST client libraries and contracts for Azure DevOps web extension developers.",
5
5
  "repository": {
6
6
  "type": "git",