An SDK for the Altitude platform.

Export

Hierarchy

  • Altitude

Constructors

Properties

apiClient: _AltitudeApiClient
authClient: AuthClient
axios: AxiosInstance = globalAxios

Methods

  • Returns

    A void promise

    Parameters

    • siteId: string

      The id of the site that the environment belongs to.

    • environmentName: string

      The name of the environment to delete. Delete Environment

    Returns Promise<void>

  • Throws

    Will throw an error is branch name is not specified.

    Returns

    A Promise of details of the created deployment job.

    Parameters

    • body: DeploySiteBody

      Request body containing branch name and optional git ref.

    • siteId: string

      The id of the site to deploy.

    Returns Promise<SiteDeployment>

  • Get all sites within an organisation.

    Throws

    Throws error if a field is missing.

    Returns

    A Promise of an object containing an array of sites.

    Returns Promise<Sites>

  • Get all branches associated with a site.

    Throws

    Returns

    A Promise of branch names for a given site, including the default branch.

    Parameters

    • siteId: string

      The id of the site which the the branches are associated with.

    Returns Promise<Branches>

  • Get details of a deployment.

    Throws

    Returns

    A Promise of a site deployment.

    Parameters

    • siteId: string

      The id of the site the deployment is for.

    • deploymentId: string

      The id of the deployment.

    Returns Promise<SiteDeployment>

  • Get environment by name.

    Throws

    Returns

    A promise of an environment with the given name from the given site.

    Parameters

    • siteId: string

      The id of the site which the environment is associated with.

    • envName: string

      The name of the environment being searched for.

    Returns Promise<CliEnvironmentEntity>

  • Get all environment names associated with a site.

    Throws

    Returns

    A promise of environment names for a given site.

    Parameters

    • siteId: string

      The id of the site which the environments are associated with.

    Returns Promise<{
        id: string;
        name: string;
    }[]>

Generated using TypeDoc