Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "79134c72-4a58-4b42-976c-04e7115f32bf"

Methods

  • Delete a team.

    Parameters

    • projectId: string

      The name or ID (GUID) of the team project containing the team to delete.

    • teamId: string

      The name or ID of the team to delete.

    Returns Promise<void>

  • Get a list of all teams.

    Parameters

    • Optionalmine: boolean

      If true, then return all teams requesting user is member. Otherwise return all teams user has read access.

    • Optionaltop: number

      Maximum number of teams to return.

    • Optionalskip: number

      Number of teams to skip.

    • OptionalexpandIdentity: boolean

      A value indicating whether or not to expand Identity information in the result WebApiTeam object.

    Returns Promise<WebApiTeam[]>

  • Get project with the specified id or name, optionally including capabilities.

    Parameters

    • projectId: string
    • OptionalincludeCapabilities: boolean

      Include capabilities (such as source control) in the team project result (default: false).

    • OptionalincludeHistory: boolean

      Search within renamed projects (that had such name in the past).

    Returns Promise<TeamProject>

  • Get all projects in the organization that the authenticated user has access to.

    Parameters

    • OptionalstateFilter: any

      Filter on team projects in a specific team project state (default: WellFormed).

    • Optionaltop: number
    • Optionalskip: number
    • OptionalcontinuationToken: number

      Pointer that shows how many projects already been fetched.

    • OptionalgetDefaultTeamImageUrl: boolean

    Returns Promise<PagedList<TeamProjectReference>>

  • Gets list of user readable teams in a project and teams user is member of (excluded from readable list).

    Parameters

    • projectId: string

      The name or ID (GUID) of the team project containing the teams to retrieve.

    • OptionalexpandIdentity: boolean

      A value indicating whether or not to expand Identity information in the result WebApiTeam object.

    • Optionaltop: number

      Maximum number of teams to return.

    • Optionalskip: number

      Number of teams to skip.

    Returns Promise<CategorizedWebApiTeams>

  • Get a specific team.

    Parameters

    • projectId: string

      The name or ID (GUID) of the team project containing the team.

    • teamId: string

      The name or ID (GUID) of the team.

    • OptionalexpandIdentity: boolean

      A value indicating whether or not to expand Identity information in the result WebApiTeam object.

    Returns Promise<WebApiTeam>

  • Get a list of teams.

    Parameters

    • projectId: string
    • Optionalmine: boolean

      If true return all the teams requesting user is member, otherwise return all the teams user has read access.

    • Optionaltop: number

      Maximum number of teams to return.

    • Optionalskip: number

      Number of teams to skip.

    • OptionalexpandIdentity: boolean

      A value indicating whether or not to expand Identity information in the result WebApiTeam object.

    Returns Promise<WebApiTeam[]>

  • Create, update, and delete team project properties.

    Parameters

    • customHeaders: any
    • projectId: string

      The team project ID.

    • patchDocument: JsonPatchDocument

      A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name.

    Returns Promise<void>