Helper class for interacting with the projects resouce.

Hierarchy

  • PageClient

Constructors

Properties

authToken: string
config: PageConfig
operationsClient: OperationsClient
subscriptionClient: SubscriptionClient

Methods

  • Parameters

    • deploymentDirLocation: string

    Returns Promise<string>

  • Parameters

    • deploymentArchivePath: string

    Returns Promise<void>

  • Parameters

    • projectLocation: string
    • projectName: string
    • isPublic: boolean
    • create: boolean
    • withThreads: boolean

    Returns Promise<Page>

  • Publishes a Wonderland Engine Project to the cloud, if a project with the same name already exists, then the project is overwritten else a new project is created.

    Parameters

    • projectLocation: string

      {string} relative or absolute location of your deployment files

    • projectName: string

      {string} your project name

    • isPublic: boolean

      {boolean} whether your project is public or not

    • withThreads: boolean

      {boolean} use threads headers or not for better performance

    Returns Promise<Page>

  • Delete a deployed page permanently. Warning, this operation is non-revertible and cannot be recovered.

    Parameters

    • projectName: string

      {string}

    Returns Promise<boolean>

  • Get an existing Wonderland engine page

    Parameters

    • pageName: string

      {string} your page project name

    Returns Promise<Page>

  • Lists your own project pages. You can also include the public resources available as well by setting listPublic flag to true

    Parameters

    • listPublic: boolean = false

      {boolean} whether to also list public pages or not

    Returns Promise<Page[]>

  • Alter the Links between Apis and Pages, by adding/removing a apiPath / apiName pair

    Parameters

    Returns Promise<Page>

  • Updates an existing Wonderland engine project

    Parameters

    • projectLocation: string

      {string} relative or absolute location of your deployment files

    • projectName: string

      {string} your project name

    • isPublic: boolean

      {boolean} whether your project is public or not

    • withThreads: boolean

      {boolean} use threads headers or not for better performance

    Returns Promise<Page>

Generated using TypeDoc