@gibme/starlink
    Preparing search index...

    Class RouterConfig

    Hierarchy

    • default
      • RouterConfig
    Index

    Constructors

    Properties

    baseUrl: "https://web-api.starlink.com" = 'https://web-api.starlink.com'
    client_id: string
    client_secret: string

    Accessors

    • get accountNumber(): string

      Returns string

    • get config(): any

      Returns any

    • set config(value: any): void

      Parameters

      • value: any

      Returns void

    • get configId(): string

      Returns string

    • get nickname(): string

      Returns string

    • set nickname(value: string): void

      Parameters

      • value: string

      Returns void

    Methods

    • Protected

      Performs an HTTP delete request against the Starlink Enterprise API

      Type Parameters

      Parameters

      • endpoint: string
      • params: Record<string, any> = {}

      Returns Promise<Type>

    • Protected

      Performs an HTTP get request against the Starlink Enterprise API

      Type Parameters

      Parameters

      • endpoint: string
      • params: Record<string, any> = {}

      Returns Promise<Type>

    Protectedpost

    • post<Type extends Starlink.Response = any>(
          endpoint: string,
          payload?: object,
      ): Promise<Type>
      Protected

      Performs an HTTP post request against the Starlink Enterprise API

      Type Parameters

      Parameters

      • endpoint: string
      • Optionalpayload: object

      Returns Promise<Type>

    • Protected

      Performs an HTTP put request against the Starlink Enterprise API

      Type Parameters

      Parameters

      • endpoint: string
      • Optionalpayload: string | object

      Returns Promise<Type>

    • Update the router configuration

      Any router assigned to this configuration will immediately receive the updated if they are online. If it is not online, the router will receive the update when it comes online.

      Returns Promise<boolean>

    • Converts the instance to a string (JSON encoded)

      Returns string