Class HSRecord<RecordData>

Type Parameters

Constructors

Properties

CLASS_NAME: "HSRecord" = 'HSRecord'
_applicationId: string = ''
_data: Record<string, any> = {}
_fids: Record<string, string> = {}
_fields: HSField[] = []
_hs: HighSystems
_tableId: string = ''
id: string

An internal id (guid) used for tracking/managing object instances

CLASS_NAME: "HSRecord" = 'HSRecord'
VERSION: string = VERSION
defaults: HSRecordOptions<{
    recordid: string;
}> = ...

The default settings of a HighSystems instance

Type declaration

  • recordid: string

Methods

  • Parameters

    • __namedParameters: HighSystemsRequest = {}

    Returns Promise<boolean>

  • Rebuild the HSRecord instance from serialized JSON

    Parameters

    Returns this

  • Type Parameters

    • T extends string | number | symbol

    Parameters

    • field: T

    Returns string

  • Parameters

    • field: string
    • byId: true

    Returns string

  • Parameters

    • field: string
    • Optional byId: false

    Returns string

  • Parameters

    • id: string
    • returnIndex: true

    Returns undefined | number

  • Parameters

    • id: string
    • Optional returnIndex: false

    Returns undefined | HSField

  • Parameters

    Returns Promise<Record<any, any>>

  • Parameters

    • __namedParameters: HighSystemsRequest = {}

    Returns Promise<HSField[]>

  • Parameters

    • __namedParameters: HighSystemsRequest & {
          fidsToSave?: (string | keyof RecordData)[];
      } = {}

    Returns Promise<Record<any, any>>

  • Type Parameters

    • F extends string | number | symbol

    Parameters

    Returns this

  • Type Parameters

    • F extends string

    Parameters

    Returns this

  • Parameters

    • applicationId: string

    Returns this

  • Type Parameters

    • T extends string | number | symbol

    Parameters

    • name: T
    • id: string

    Returns this

  • Parameters

    • name: string
    • id: string

    Returns this

  • Parameters

    • fields: Record<string, string>

    Returns this

  • Parameters

    • fields: HSField[]

    Returns this

  • Parameters

    • tableId: string

    Returns this

  • Returns a new HSRecord instance built off of options, that inherits configuration data from the passed in data argument.

    Type Parameters

    Parameters

    • options: Partial<HSRecordOptions<T>>

      HSRecord instance options

    • Optional data: Partial<T>

      Quick Base Record data

    Returns HSRecord<T>

Generated using TypeDoc