FavoriteRestClient class
Base class that should be used (derived from) to make requests to VSS REST apis
- Extends
function createFavorite(favorite: FavoriteCreateParameters): Promise<Favorite>
Parameters
- favorite
- FavoriteCreateParameters
Returns
Promise<Favorite>
function createFavoriteOfOwner(favorite: FavoriteCreateParameters, ownerScopeType: string, ownerScopeId: string): Promise<Favorite>
Parameters
- favorite
- FavoriteCreateParameters
- ownerScopeType
-
string
- ownerScopeId
-
string
Returns
Promise<Favorite>
function deleteFavoriteById(favoriteId: string, artifactType: string, artifactScopeType: string, artifactScopeId?: string): Promise<void>
Parameters
- favoriteId
-
string
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
Returns
Promise<void>
function deleteFavoriteOfOwnerById(favoriteId: string, ownerScopeType: string, ownerScopeId: string, artifactType: string, artifactScopeType: string, artifactScopeId?: string): Promise<void>
Parameters
- favoriteId
-
string
- ownerScopeType
-
string
- ownerScopeId
-
string
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
Returns
Promise<void>
function getFavoriteByArtifact(artifactType: string, artifactId: string, artifactScopeType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite>
Parameters
- artifactType
-
string
- artifactId
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Returns
Promise<Favorite>
function getFavoriteById(favoriteId: string, artifactScopeType: string, artifactType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite>
Parameters
- favoriteId
-
string
- artifactScopeType
-
string
- artifactType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Returns
Promise<Favorite>
function getFavoriteOfOwnerById(favoriteId: string, ownerScopeType: string, ownerScopeId: string, artifactScopeType: string, artifactType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite>
Parameters
- favoriteId
-
string
- ownerScopeType
-
string
- ownerScopeId
-
string
- artifactScopeType
-
string
- artifactType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Returns
Promise<Favorite>
function getFavoriteProviders(faultInMissingHost?: boolean): Promise<FavoriteProvider[]>
Parameters
- faultInMissingHost
-
boolean
Returns
Promise<FavoriteProvider[]>
function getFavorites(artifactType?: string, artifactScopeType?: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite[]>
Parameters
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Returns
Promise<Favorite[]>
function getFavoritesOfOwner(ownerScopeType: string, ownerScopeId: string, artifactType?: string, artifactScopeType?: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite[]>
Parameters
- ownerScopeType
-
string
- ownerScopeId
-
string
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Returns
Promise<Favorite[]>