Hierarchy (View Summary)

Implements

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "bf7d82a0-8aa5-4613-94ef-6172a5ea01f3"

Methods

  • Uploads an attachment on a comment on a wiki page.

    Parameters

    • customHeaders: any
    • contentStream: ReadableStream

      Content to upload

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • pageId: number

      Wiki page ID.

    Returns Promise<CommentAttachment>

  • Delete a comment on a wiki page.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or name.

    • pageId: number

      Wiki page ID.

    • id: number

      Comment ID.

    Returns Promise<void>

  • Downloads an attachment on a comment on a wiki page.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • pageId: number

      Wiki page ID.

    • attachmentId: string

      Attachment ID.

    Returns Promise<ReadableStream>

  • Returns a comment associated with the Wiki Page.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • pageId: number

      Wiki page ID.

    • id: number

      ID of the comment to return.

    • OptionalexcludeDeleted: boolean

      Specify if the deleted comment should be skipped.

    • Optionalexpand: CommentExpandOptions

      Specifies the additional data retrieval options for comments.

    Returns Promise<Comment>

  • Gets a list of users who have reacted for the given wiki comment with a given reaction type. Supports paging, with a default page size of 100 users at a time.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • pageId: number

      Wiki page ID.

    • commentId: number

      ID of the associated comment

    • type: CommentReactionType

      Type of the reaction for which the engaged users are being requested

    • Optionaltop: number

      Number of enagaged users to be returned in a given page. Optional, defaults to 100

    • Optionalskip: number

      Number of engaged users to be skipped to page the next set of engaged users, defaults to 0

    Returns Promise<IdentityRef[]>

  • Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the Accept header sent in the request.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name..

    • id: number

      Wiki page ID.

    • OptionalrecursionLevel: VersionControlRecursionType

      Recursion level for subpages retrieval. Defaults to None (Optional).

    • OptionalincludeContent: boolean

      True to include the content of the page in the response for Json content type. Defaults to false (Optional)

    Returns Promise<ReadableStream>

  • Gets metadata or content of the wiki page for the provided page id. Content negotiation is done based on the Accept header sent in the request.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name..

    • id: number

      Wiki page ID.

    • OptionalrecursionLevel: VersionControlRecursionType

      Recursion level for subpages retrieval. Defaults to None (Optional).

    • OptionalincludeContent: boolean

      True to include the content of the page in the response for Json content type. Defaults to false (Optional)

    Returns Promise<ReadableStream>

  • Returns page detail corresponding to Page ID.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • pageId: number

      Wiki page ID.

    • OptionalpageViewsForDays: number

      last N days from the current day for which page views is to be returned. It's inclusive of current day.

    Returns Promise<WikiPageDetail>

  • Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the Accept header sent in the request.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • Optionalpath: string

      Wiki page path.

    • OptionalrecursionLevel: VersionControlRecursionType

      Recursion level for subpages retrieval. Defaults to None (Optional).

    • OptionalversionDescriptor: GitVersionDescriptor

      GitVersionDescriptor for the page. Defaults to the default branch (Optional).

    • OptionalincludeContent: boolean

      True to include the content of the page in the response for Json content type. Defaults to false (Optional)

    Returns Promise<ReadableStream>

  • Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the Accept header sent in the request.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • Optionalpath: string

      Wiki page path.

    • OptionalrecursionLevel: VersionControlRecursionType

      Recursion level for subpages retrieval. Defaults to None (Optional).

    • OptionalversionDescriptor: GitVersionDescriptor

      GitVersionDescriptor for the page. Defaults to the default branch (Optional).

    • OptionalincludeContent: boolean

      True to include the content of the page in the response for Json content type. Defaults to false (Optional)

    Returns Promise<ReadableStream>

  • Returns a pageable list of comments.

    Parameters

    • project: string

      Project ID or project name

    • wikiIdentifier: string

      Wiki ID or wiki name.

    • pageId: number

      Wiki page ID.

    • Optionaltop: number

      Max number of comments to return.

    • OptionalcontinuationToken: string

      Used to query for the next page of comments.

    • OptionalexcludeDeleted: boolean

      Specify if the deleted comments should be skipped.

    • Optionalexpand: CommentExpandOptions

      Specifies the additional data retrieval options for comments.

    • Optionalorder: CommentSortOrder

      Order in which the comments should be returned.

    • OptionalparentId: number

      CommentId of the parent comment.

    Returns Promise<CommentList>