@gibme/starlink
    Preparing search index...

    Class UserTerminal

    Hierarchy

    • default
      • UserTerminal
    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 active(): boolean

      Returns boolean

    • get dishSerialNumber(): string

      Returns string

    • get kitSerialNumber(): string

      Returns string

    • get nickname(): null | string

      Returns null | string

    • get serviceLineNumber(): null | string

      Returns null | string

    • get userTerminalId(): string

      Returns string

    Methods

    • Adds the terminal to the service line specified

      Parameters

      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>

    • Removes the terminal from it's assigned service line

      Returns Promise<boolean>

    • Converts the instance to a string (JSON encoded)

      Returns string