azure-devops-extension-sdk
Advanced tools
Comparing version 1.141.7 to 1.141.8
{ | ||
"name": "azure-devops-extension-sdk", | ||
"version": "1.141.7", | ||
"version": "1.141.8", | ||
"description": "Azure DevOps web extension JavaScript library and types.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -88,7 +88,2 @@ export as namespace DevOps; | ||
type: HostType; | ||
/** | ||
* URI of the current DevOps host (organization) | ||
*/ | ||
uri: string; | ||
} | ||
@@ -221,7 +216,12 @@ | ||
/** | ||
* Service for interacting with the host window's navigation (URLs, new windows, etc.) | ||
* Service for interacting with the extension data service | ||
*/ | ||
HostNavigationService = "ms.vss-features.host-navigation-service", | ||
ExtensionDataService = "ms.vss-features.extension-data-service", | ||
/** | ||
* Service for showing global message banners at the top of the page | ||
*/ | ||
GlobalMessagesService = "ms.vss-tfs-web.tfs-global-messages-service", | ||
/** | ||
* Service for opening dialogs in the host frame | ||
@@ -232,2 +232,7 @@ */ | ||
/** | ||
* Service for interacting with the host window's navigation (URLs, new windows, etc.) | ||
*/ | ||
HostNavigationService = "ms.vss-features.host-navigation-service", | ||
/** | ||
* Service for opening panels in the host frame | ||
@@ -238,5 +243,5 @@ */ | ||
/** | ||
* Service for interacting with the extension data service | ||
* Service for getting URLs/locations from the host context | ||
*/ | ||
ExtensionDataService = "ms.vss-features.extension-data-service", | ||
LocationService = "ms.vss-features.location-service", | ||
@@ -246,8 +251,3 @@ /** | ||
*/ | ||
ProjectPageService = "ms.vss-tfs-web.tfs-page-data-service", | ||
/** | ||
* Service for showing global message banners at the top of the page | ||
*/ | ||
GlobalMessagesService = "ms.vss-tfs-web.tfs-global-messages-service" | ||
ProjectPageService = "ms.vss-tfs-web.tfs-page-data-service" | ||
} | ||
@@ -311,2 +311,47 @@ | ||
/** | ||
* Host level for a VSS service | ||
*/ | ||
export declare const enum TeamFoundationHostType { | ||
/** | ||
* The Deployment host | ||
*/ | ||
Deployment = 1, | ||
/** | ||
* The Enterprise host | ||
*/ | ||
Enterprise = 2, | ||
/** | ||
* The project collection host | ||
*/ | ||
ProjectCollection = 4 | ||
} | ||
/** | ||
* Service for external content to get locations | ||
*/ | ||
export interface ILocationService { | ||
/** | ||
* Gets the location for the host frame's context with an optional | ||
* | ||
* @param serviceInstanceType The GUID of the service instance type to lookup | ||
* @param hostType The host type to lookup (defaults to the host type of the current page data) | ||
*/ | ||
getServiceLocation(serviceInstanceType?: string, hostType?: TeamFoundationHostType): Promise<string | undefined>; | ||
/** | ||
* Attemps to create a url for the specified route template and paramaters. The url will include host path. | ||
* For example, if the page url is https://dev.azure.com/foo and you try to create admin settings url for project "bar", | ||
* the output will be /foo/bar/_admin. | ||
* | ||
* This will asynchronously fetch a route contribution if it has not been included in page data. | ||
* | ||
* @param routeId Id of the route contribution | ||
* @param routeValues Route value replacements | ||
* @param hostPath Optional host path to use rather than the default host path for the page. | ||
*/ | ||
routeUrl(routeId: string, routeValues?: { [key: string]: string }, hostPath?: string): Promise<string | undefined>; | ||
} | ||
/** | ||
* Options for showing host dialogs | ||
@@ -313,0 +358,0 @@ */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73954
1293