@gibme/starlink
    Preparing search index...

    Class Router

    Hierarchy

    • default
      • Router
    Index

    Constructors

    Properties

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

    Accessors

    • get accountNumber(): null | string

      Returns null | string

    • get configId(): null | string

      Returns null | string

    • get directLinkToDish(): boolean

      Returns boolean

    • get hardwareVersion(): string

      Returns string

    • get lastBonded(): null | Date

      Returns null | Date

    • get nickname(): null | string

      Returns null | string

    • get routerId(): string

      Returns string

    • get userTerminalId(): string

      Returns string

    Methods

    • Assign a configuration to the router

      Parameters

      • configId: string

      Returns Promise<boolean>

    • 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>

    • Remove the configuration assignment of the router

      Returns Promise<boolean>

    • Converts the instance to a string (JSON encoded)

      Returns string