Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SiteEndpoint

Index

Constructors

constructor

Properties

Private Readonly client

client: BegetRequest

Methods

add

  • add(name: string): Promise<boolean>
  • Method creates new website with given name.

    Parameters

    • name: string

      name of directory with website (e.g. site.de);

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution. In case of a successful response the full path to directory with website will be name/public_html.

delete

  • delete(params: Pick<Website, "id">): Promise<boolean>
  • Method deletes website. If domains were linked to the website, they will be unlinked from it.

    Parameters

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution.

freeze

  • The method prohibits changing site files.

    Parameters

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution. Upon operation performance, the website will begin to open under the domain name within 5-10 minutes.

getList

isSiteFrozen

  • isSiteFrozen(params: Pick<LinkDomain, "site_id">): Promise<boolean>
  • The method returns the current status of the site, whether file editing is available.

    Parameters

    Returns Promise<boolean>

linkDomain

  • linkDomain(params: LinkDomain): Promise<boolean>
  • Method links domain to website.

    Parameters

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution. Upon operation performance, the website will begin to open under the domain name within 5-10 minutes.

Private method

  • method<T>(method: Methods["site"], data?: object): Promise<T>
  • Type parameters

    • T

    Parameters

    • method: Methods["site"]
    • Optional data: object

    Returns Promise<T>

unfreeze

  • unfreeze(params: Pick<Website, "id">): Promise<boolean>
  • The method allows changing site files.

    Parameters

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution. Upon operation performance, the website will begin to open under the domain name within 5-10 minutes.

unlinkDomain

  • unlinkDomain(params: Pick<LinkDomain, "domain_id">): Promise<boolean>
  • Method unlinks domain.

    Parameters

    Returns Promise<boolean>

    Returns property of successful or unsuccessful execution.

Generated using TypeDoc