Hierarchy (View Summary)

Implements

Constructors

Properties

Methods

addAssetForEditExtensionDraft addAssetForNewExtensionDraft associateAzurePublisher createAcceptHeader createCategory createDraftForEditExtension createDraftForNewExtension createExtension createExtensionJson createExtensionWithPublisher createExtensionWithPublisherJson createPublisher createQuestion createRequestOptions createResponse createReview createSupportRequest deleteExtension deleteExtensionById deletePublisher deletePublisherAsset deleteQuestion deleteResponse deleteReview extensionValidator fetchDomainToken formatResponse generateKey getAcquisitionOptions getAsset getAssetAuthenticated getAssetByName getAssetFromEditExtensionDraft getAssetFromNewExtensionDraft getAssetWithToken getCategories getCategoryDetails getCategoryTree getCertificate getContentVerificationLog getExtension getExtensionById getExtensionDailyStats getExtensionDailyStatsAnonymous getExtensionEvents getExtensionReports getGalleryUserSettings getPackage getPublisher getPublisherAsset getPublisherWithoutToken getQuestions getReviews getReviewsSummary getRootCategories getSigningKey getVerificationLog incrementExtensionDailyStat performEditExtensionDraftOperation performNewExtensionDraftOperation publishExtensionEvents publishExtensionWithPublisherSignature queryAssociatedAzurePublisher queryExtensions queryPublishers reportQuestion requestAcquisition sendNotifications setGalleryUserSettings shareExtension shareExtensionById shareExtensionWithHost unshareExtension unshareExtensionById unshareExtensionWithHost updateExtension updateExtensionById updateExtensionByIdJson updateExtensionJson updateExtensionProperties updateExtensionStatistics updatePayloadInDraftForEditExtension updatePayloadInDraftForNewExtension updatePublisher updatePublisherAsset updatePublisherMembers updateQuestion updateResponse updateReview updateVSCodeWebExtensionStatistics verifyDomainToken

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "69d21c00-f135-441b-b5ce-3626378e0819"

Methods

  • Parameters

    • customHeaders: any
    • contentStream: ReadableStream

      Content to upload

    • publisherName: string
    • product: String

      Header to pass the product type of the payload file

    • OptionalfileName: String

      Header to pass the filename of the uploaded data

    Returns Promise<ExtensionDraft>

  • Creates a new response for a given question for an extension.

    Parameters

    • response: Response

      Response to be created for the extension.

    • publisherName: string

      Name of the publisher who published the extension.

    • extensionName: string

      Name of the extension.

    • questionId: number

      Identifier of the question for which response is to be created for the extension.

    Returns Promise<Response>

  • Deletes an existing question and all its associated responses for an extension. (soft delete)

    Parameters

    • publisherName: string

      Name of the publisher who published the extension.

    • extensionName: string

      Name of the extension.

    • questionId: number

      Identifier of the question to be deleted for the extension.

    Returns Promise<void>

  • Deletes a response for an extension. (soft delete)

    Parameters

    • publisherName: string

      Name of the publisher who published the extension.

    • extensionName: string

      Name of the extension.

    • questionId: number

      Identifies the question whose response is to be deleted.

    • responseId: number

      Identifies the response to be deleted.

    Returns Promise<void>

  • Deletes a review

    Parameters

    • pubName: string

      Name of the publisher who published the extension

    • extName: string

      Name of the extension

    • reviewId: number

      Id of the review which needs to be updated

    Returns Promise<void>

  • Parameters

    • customHeaders: any
    • extensionId: string
    • version: string
    • assetType: string
    • OptionalaccountToken: string
    • OptionalacceptDefault: boolean
    • OptionalaccountTokenHeader: String

      Header to pass the account token

    Returns Promise<ReadableStream>

  • Parameters

    • customHeaders: any
    • publisherName: string
    • extensionName: string
    • version: string
    • assetType: string
    • OptionalaccountToken: string
    • OptionalaccountTokenHeader: String

      Header to pass the account token

    Returns Promise<ReadableStream>

  • Parameters

    • customHeaders: any
    • publisherName: string
    • extensionName: string
    • version: string
    • assetType: string
    • OptionalaccountToken: string
    • OptionalacceptDefault: boolean
    • OptionalaccountTokenHeader: String

      Header to pass the account token

    Returns Promise<ReadableStream>

  • Parameters

    • customHeaders: any
    • publisherName: string
    • extensionName: string
    • version: string
    • assetType: string
    • OptionalassetToken: string
    • OptionalaccountToken: string
    • OptionalacceptDefault: boolean
    • OptionalaccountTokenHeader: String

      Header to pass the account token

    Returns Promise<ReadableStream>

  • Parameters

    • product: string
    • categoryId: string
    • Optionallcid: number
    • Optionalsource: string
    • OptionalproductVersion: string
    • Optionalskus: string
    • OptionalsubSkus: string
    • OptionalproductArchitecture: string

    Returns Promise<ProductCategory>

  • This route/location id only supports HTTP POST anonymously, so that the page view daily stat can be incremented from Marketplace client. Trying to call GET on this route should result in an exception. Without this explicit implementation, calling GET on this public route invokes the above GET implementation GetExtensionDailyStats.

    Parameters

    • publisherName: string

      Name of the publisher

    • extensionName: string

      Name of the extension

    • version: string

      Version of the extension

    Returns Promise<ExtensionDailyStats>

  • Get install/uninstall events of an extension. If both count and afterDate parameters are specified, count takes precedence.

    Parameters

    • publisherName: string

      Name of the publisher

    • extensionName: string

      Name of the extension

    • Optionalcount: number

      Count of events to fetch, applies to each event type.

    • OptionalafterDate: Date

      Fetch events that occurred on or after this date

    • Optionalinclude: string

      Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events

    • OptionalincludeProperty: string

      Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events

    Returns Promise<ExtensionEvents>

  • Returns extension reports

    Parameters

    • publisherName: string

      Name of the publisher who published the extension

    • extensionName: string

      Name of the extension

    • Optionaldays: number

      Last n days report. If afterDate and days are specified, days will take priority

    • Optionalcount: number

      Number of events to be returned

    • OptionalafterDate: Date

      Use if you want to fetch events newer than the specified date

    Returns Promise<any>

  • Get all setting entries for the given user/all-users scope

    Parameters

    • userScope: string

      User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.

    • Optionalkey: string

      Optional key under which to filter all the entries

    Returns Promise<{ [key: string]: any }>

  • This endpoint gets hit when you download a VSTS extension from the Web UI

    Parameters

    • customHeaders: any
    • publisherName: string
    • extensionName: string
    • version: string
    • OptionalaccountToken: string
    • OptionalacceptDefault: boolean
    • OptionalaccountTokenHeader: String

      Header to pass the account token

    Returns Promise<ReadableStream>

  • Get publisher asset like logo as a stream

    Parameters

    • publisherName: string

      Internal name of the publisher

    • OptionalassetType: string

      Type of asset. Default value is 'logo'.

    Returns Promise<ReadableStream>

  • Returns a list of questions with their responses associated with an extension.

    Parameters

    • publisherName: string

      Name of the publisher who published the extension.

    • extensionName: string

      Name of the extension.

    • Optionalcount: number

      Number of questions to retrieve (defaults to 10).

    • Optionalpage: number

      Page number from which set of questions are to be retrieved.

    • OptionalafterDate: Date

      If provided, results questions are returned which were posted after this date

    Returns Promise<QuestionsResult>

  • Returns a list of reviews associated with an extension

    Parameters

    • publisherName: string

      Name of the publisher who published the extension

    • extensionName: string

      Name of the extension

    • Optionalcount: number

      Number of reviews to retrieve (defaults to 5)

    • OptionalfilterOptions: ReviewFilterOptions

      FilterOptions to filter out empty reviews etcetera, defaults to none

    • OptionalbeforeDate: Date

      Use if you want to fetch reviews older than the specified date, defaults to null

    • OptionalafterDate: Date

      Use if you want to fetch reviews newer than the specified date, defaults to null

    Returns Promise<ReviewsResult>

  • Returns a summary of the reviews

    Parameters

    • pubName: string

      Name of the publisher who published the extension

    • extName: string

      Name of the extension

    • OptionalbeforeDate: Date

      Use if you want to fetch summary of reviews older than the specified date, defaults to null

    • OptionalafterDate: Date

      Use if you want to fetch summary of reviews newer than the specified date, defaults to null

    Returns Promise<ReviewSummary>

  • Parameters

    • publisherName: string
    • extensionName: string
    • version: string
    • OptionaltargetPlatform: string

    Returns Promise<ReadableStream>

  • Increments a daily statistic associated with the extension

    Parameters

    • publisherName: string

      Name of the publisher

    • extensionName: string

      Name of the extension

    • version: string

      Version of the extension

    • statType: string

      Type of stat to increment

    • OptionaltargetPlatform: string

    Returns Promise<void>

  • Flags a concern with an existing question for an extension.

    Parameters

    • concern: Concern

      User reported concern with a question for the extension.

    • pubName: string

      Name of the publisher who published the extension.

    • extName: string

      Name of the extension.

    • questionId: number

      Identifier of the question to be updated for the extension.

    Returns Promise<Concern>

  • Set all setting entries for the given user/all-users scope

    Parameters

    • entries: { [key: string]: any }

      A key-value pair of all settings that need to be set

    • userScope: string

      User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.

    Returns Promise<void>

  • REST endpoint to update an extension.

    Parameters

    • customHeaders: any
    • contentStream: ReadableStream

      Content to upload

    • publisherName: string

      Name of the publisher

    • extensionName: string

      Name of the extension

    • OptionalextensionType: string
    • OptionalreCaptchaToken: string
    • OptionalbypassScopeCheck: boolean

      This parameter decides if the scope change check needs to be invoked or not

    Returns Promise<PublishedExtension>

  • Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values.

    Parameters

    • customHeaders: any
    • contentStream: ReadableStream

      Content to upload

    • publisherName: string

      Internal name of the publisher

    • OptionalassetType: string

      Type of asset. Default value is 'logo'.

    • OptionalfileName: String

      Header to pass the filename of the uploaded data

    Returns Promise<{ [key: string]: string }>

  • Updates an existing question for an extension.

    Parameters

    • question: Question

      Updated question to be set for the extension.

    • publisherName: string

      Name of the publisher who published the extension.

    • extensionName: string

      Name of the extension.

    • questionId: number

      Identifier of the question to be updated for the extension.

    Returns Promise<Question>

  • Updates an existing response for a given question for an extension.

    Parameters

    • response: Response

      Updated response to be set for the extension.

    • publisherName: string

      Name of the publisher who published the extension.

    • extensionName: string

      Name of the extension.

    • questionId: number

      Identifier of the question for which response is to be updated for the extension.

    • responseId: number

      Identifier of the response which has to be updated.

    Returns Promise<Response>