Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "8aa40520-446d-40e6-89f6-9c9f9ce44c48"

Methods

  • Get a single branch hierarchy at the given path with parents or children as specified.

    Parameters

    • path: string

      Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder.

    • Optionalproject: string

      Project ID or project name

    • OptionalincludeParent: boolean

      Return the parent branch, if there is one. Default: False

    • OptionalincludeChildren: boolean

      Return child branches, if there are any. Default: False

    Returns Promise<TfvcBranch>

  • Get a collection of branch roots -- first-level children, branches with no parents.

    Parameters

    • Optionalproject: string

      Project ID or project name

    • OptionalincludeParent: boolean

      Return the parent branch, if there is one. Default: False

    • OptionalincludeChildren: boolean

      Return the child branches for each root branch. Default: False

    • OptionalincludeDeleted: boolean

      Return deleted branches. Default: False

    • OptionalincludeLinks: boolean

      Return links. Default: False

    Returns Promise<TfvcBranch[]>

  • Get branch hierarchies below the specified scopePath

    Parameters

    • scopePath: string

      Full path to the branch. Default: $/ Examples: $/, $/MyProject, $/MyProject/SomeFolder.

    • Optionalproject: string

      Project ID or project name

    • OptionalincludeDeleted: boolean

      Return deleted branches. Default: False

    • OptionalincludeLinks: boolean

      Return links. Default: False

    Returns Promise<TfvcBranchRef[]>

  • Retrieve a Tfvc Changeset

    Parameters

    • id: number

      Changeset Id to retrieve.

    • Optionalproject: string

      Project ID or project name

    • OptionalmaxChangeCount: number

      Number of changes to return (maximum 100 changes) Default: 0

    • OptionalincludeDetails: boolean

      Include policy details and check-in notes in the response. Default: false

    • OptionalincludeWorkItems: boolean

      Include workitems. Default: false

    • OptionalmaxCommentLength: number

      Include details about associated work items in the response. Default: null

    • OptionalincludeSourceRename: boolean

      Include renames. Default: false

    • Optionalskip: number

      Number of results to skip. Default: null

    • Optionaltop: number

      The maximum number of results to return. Default: null

    • Optionalorderby: string

      Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order.

    • OptionalsearchCriteria: TfvcChangesetSearchCriteria

      Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null

    Returns Promise<TfvcChangeset>

  • Retrieve Tfvc Changesets

    Parameters

    • Optionalproject: string

      Project ID or project name

    • OptionalmaxCommentLength: number

      Include details about associated work items in the response. Default: null

    • Optionalskip: number

      Number of results to skip. Default: null

    • Optionaltop: number

      The maximum number of results to return. Default: null

    • Optionalorderby: string

      Results are sorted by ID in descending order by default. Use id asc to sort by ID in ascending order.

    • OptionalsearchCriteria: TfvcChangesetSearchCriteria

      Following criteria available (.itemPath, .version, .versionType, .versionOption, .author, .fromId, .toId, .fromDate, .toDate) Default: null

    Returns Promise<TfvcChangesetRef[]>

  • Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.

    Parameters

    • path: string

      Version control path of an individual item to return.

    • Optionalproject: string

      Project ID or project name

    • OptionalfileName: string

      file name of item returned.

    • Optionaldownload: boolean

      If true, create a downloadable attachment.

    • OptionalscopePath: string

      Version control path of a folder to return multiple items.

    • OptionalrecursionLevel: VersionControlRecursionType

      None (just the item), or OneLevel (contents of a folder).

    • OptionalversionDescriptor: TfvcVersionDescriptor

      Version descriptor. Default is null.

    • OptionalincludeContent: boolean

      Set to true to include item content when requesting json. Default is false.

    Returns Promise<TfvcItem>

  • Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.

    Parameters

    • path: string

      Version control path of an individual item to return.

    • Optionalproject: string

      Project ID or project name

    • OptionalfileName: string

      file name of item returned.

    • Optionaldownload: boolean

      If true, create a downloadable attachment.

    • OptionalscopePath: string

      Version control path of a folder to return multiple items.

    • OptionalrecursionLevel: VersionControlRecursionType

      None (just the item), or OneLevel (contents of a folder).

    • OptionalversionDescriptor: TfvcVersionDescriptor

      Version descriptor. Default is null.

    • OptionalincludeContent: boolean

      Set to true to include item content when requesting json. Default is false.

    Returns Promise<ReadableStream>

  • Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.

    Parameters

    • path: string

      Version control path of an individual item to return.

    • Optionalproject: string

      Project ID or project name

    • OptionalfileName: string

      file name of item returned.

    • Optionaldownload: boolean

      If true, create a downloadable attachment.

    • OptionalscopePath: string

      Version control path of a folder to return multiple items.

    • OptionalrecursionLevel: VersionControlRecursionType

      None (just the item), or OneLevel (contents of a folder).

    • OptionalversionDescriptor: TfvcVersionDescriptor

      Version descriptor. Default is null.

    • OptionalincludeContent: boolean

      Set to true to include item content when requesting json. Default is false.

    Returns Promise<ReadableStream>

  • Get Item Metadata and/or Content for a single item. The download parameter is to indicate whether the content should be available as a download or just sent as a stream in the response. Doesn't apply to zipped content which is always returned as a download.

    Parameters

    • path: string

      Version control path of an individual item to return.

    • Optionalproject: string

      Project ID or project name

    • OptionalfileName: string

      file name of item returned.

    • Optionaldownload: boolean

      If true, create a downloadable attachment.

    • OptionalscopePath: string

      Version control path of a folder to return multiple items.

    • OptionalrecursionLevel: VersionControlRecursionType

      None (just the item), or OneLevel (contents of a folder).

    • OptionalversionDescriptor: TfvcVersionDescriptor

      Version descriptor. Default is null.

    • OptionalincludeContent: boolean

      Set to true to include item content when requesting json. Default is false.

    Returns Promise<ReadableStream>