From 77a89538ff082483b9c8a1d4bfff9cbd9cbbc797 Mon Sep 17 00:00:00 2001 From: Lohitaksh Gupta Date: Thu, 31 Oct 2024 16:35:37 -0700 Subject: [PATCH] Releases/4.245.1 (#147) * All files have been added to the repo * 4.244.1 * Update package.json --------- Co-authored-by: TFS MiniLab Admin --- package-lock.json | 4 +- package.json | 2 +- src/Alert/Alert.ts | 2 +- src/Alert/AlertClient.ts | 2 +- src/FormInput/FormInput.ts | 8 ++++ src/TaskAgent/TaskAgent.ts | 5 +++ src/TestPlan/TestPlanClient.ts | 75 ++++++++++++++++++++++++++++++++++ 7 files changed, 93 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index aefa118..876d5cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "azure-devops-extension-api", - "version": "4.244.0", + "version": "4.244.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "azure-devops-extension-api", - "version": "4.244.0", + "version": "4.244.1", "license": "MIT", "dependencies": { "whatwg-fetch": "~3.0.0" diff --git a/package.json b/package.json index 6bfa8d5..a84ebcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "azure-devops-extension-api", - "version": "4.244.0", + "version": "4.245.1", "description": "REST client libraries and contracts for Azure DevOps web extension developers.", "repository": { "type": "git", diff --git a/src/Alert/Alert.ts b/src/Alert/Alert.ts index 18d7b8a..9437659 100644 --- a/src/Alert/Alert.ts +++ b/src/Alert/Alert.ts @@ -805,7 +805,7 @@ export interface SearchCriteria { */ alertType: AlertType; /** - * If provided, only return alerts at these confidence levels. \
Otherwise, return alerts at any confidence level. + * If provided, only return alerts at these confidence levels. \
Both High and Other need to be specified to fetch alerts of all confidence levels. \
Otherwise, return alerts with high confidence level. */ confidenceLevels: Confidence[]; /** diff --git a/src/Alert/AlertClient.ts b/src/Alert/AlertClient.ts index 0043951..8d30d8d 100644 --- a/src/Alert/AlertClient.ts +++ b/src/Alert/AlertClient.ts @@ -155,7 +155,7 @@ export class AlertRestClient extends RestClientBase { } /** - * Get instances of an alert. + * Get instances of an alert on a branch specified with \@ref. If \@ref is not provided, return instances of an alert on default branch(if the alert exist in default branch) or latest affected branch. * * @param project - Project ID or project name * @param alertId - ID of alert to retrieve diff --git a/src/FormInput/FormInput.ts b/src/FormInput/FormInput.ts index eddea8b..1cde35d 100644 --- a/src/FormInput/FormInput.ts +++ b/src/FormInput/FormInput.ts @@ -203,6 +203,14 @@ export interface InputValidation { * Gets or sets the error on pattern mismatch. */ patternMismatchErrorMessage: string; + /** + * Gets or sets the warning on pattern mismatch. + */ + patternMismatchWarningMessage: string; + /** + * Gets or sets the pattern to validate. + */ + warningPattern: string; } /** diff --git a/src/TaskAgent/TaskAgent.ts b/src/TaskAgent/TaskAgent.ts index 63c7ead..af1b13c 100644 --- a/src/TaskAgent/TaskAgent.ts +++ b/src/TaskAgent/TaskAgent.ts @@ -3881,3 +3881,8 @@ export interface VirtualMachineResource extends EnvironmentResource { export interface VirtualMachineResourceCreateParameters { virtualMachineResource: VirtualMachineResource; } + +export interface WorkloadIdentityFederationDetailsData { + federationIssuer: string; + federationSubject: string; +} diff --git a/src/TestPlan/TestPlanClient.ts b/src/TestPlan/TestPlanClient.ts index 5170a2c..f07eb2f 100644 --- a/src/TestPlan/TestPlanClient.ts +++ b/src/TestPlan/TestPlanClient.ts @@ -1094,6 +1094,81 @@ export class TestPlanRestClient extends RestClientBase { }); } + /** + * Get Deleted Test Suites for a Test Plan. + * + * @param project - Project ID or project name + * @param planId - ID of the test plan for which suites are requested. + * @param expand - Include the children suites and testers details. + * @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites. + * @param asTreeView - If the suites returned should be in a tree structure. + */ + public async getDeletedTestSuitesForPlan( + project: string, + planId: number, + expand?: TestPlan.SuiteExpand, + continuationToken?: string, + asTreeView?: boolean + ): Promise> { + + const queryValues: any = { + expand: expand, + continuationToken: continuationToken, + asTreeView: asTreeView + }; + + return this.beginRequest({ + apiVersion: "7.2-preview.1", + routeTemplate: "{project}/_apis/testplan/recycleBin/TestPlan/{planId}/TestSuite/{suiteId}", + routeValues: { + project: project, + planId: planId + }, + queryParams: queryValues, + returnRawResponse: true + }).then(async response => { + const body = >await response.text().then(deserializeVssJsonObject); + body.continuationToken = response.headers.get("x-ms-continuationtoken"); + return body; + }); + } + + /** + * Get Deleted Test Suites within a Project. + * + * @param project - Project ID or project name + * @param expand - Include the children suites and testers details. + * @param continuationToken - If the list of suites returned is not complete, a continuation token to query next batch of suites is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of test suites. + * @param asTreeView - If the suites returned should be in a tree structure. + */ + public async getDeletedTestSuitesForProject( + project: string, + expand?: TestPlan.SuiteExpand, + continuationToken?: string, + asTreeView?: boolean + ): Promise> { + + const queryValues: any = { + expand: expand, + continuationToken: continuationToken, + asTreeView: asTreeView + }; + + return this.beginRequest({ + apiVersion: "7.2-preview.1", + routeTemplate: "{project}/_apis/testplan/recycleBin/TestSuite/{suiteId}", + routeValues: { + project: project + }, + queryParams: queryValues, + returnRawResponse: true + }).then(async response => { + const body = >await response.text().then(deserializeVssJsonObject); + body.continuationToken = response.headers.get("x-ms-continuationtoken"); + return body; + }); + } + /** * Restores the deleted test suite *