@gibme/starlink
    Preparing search index...

    Class ServiceLine

    Hierarchy

    • default
      • ServiceLine
    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 addressReferenceId(): string

      Returns string

    • get delayedProductId(): null | string

      Returns null | string

    • get endDate(): null | Date

      Returns null | Date

    • get nickname(): null | string

      Returns null | string

    • set nickname(value: string): void

      Parameters

      • value: string

      Returns void

    • get optInProductId(): null | string

      Returns null | string

    • get productReferenceId(): string

      Returns string

    • set productReferenceId(value: string): void

      Parameters

      • value: string

      Returns void

    • get publicIp(): boolean

      Returns boolean

    • set publicIp(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get serviceLineNumber(): string

      Returns string

    • get startDate(): null | Date

      Returns null | Date

    Methods

    • Adds the specified terminal to this service line

      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>

    • Fetches all historical partial subscription periods by asset for the last 1 month(s) plus the current cycle. Does not include the incomplete period corresponding to the service line's current product

      Returns Promise<{ periodEnd: Date; periodStart: Date; productReferenceId: string }[]>

    • 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 specified terminal from this service line

      Parameters

      Returns Promise<boolean>

    • Attempts to save any changes to the nickname, productReferenceId, or publicIp

      Returns Promise<boolean>

    • Converts the instance to a string (JSON encoded)

      Returns string