Class QBRecord<RecordData>

Type Parameters

Hierarchy

  • QBRecord

Constructors

Properties

CLASS_NAME: "QBRecord" = 'QBRecord'
_data: Record<any, any> = {}
_fids: Record<any, number> = {}
_fields: QBField<Record<any, any>>[] = []
_qb: QuickBase
_tableId: string = ''
id: string

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

CLASS_NAME: "QBRecord" = 'QBRecord'
VERSION: string = VERSION
defaults: QBRecordOptions<{
    primaryKey: number;
    recordid: number;
}> = ...

The default settings of a QuickBase instance

Methods

  • Parameters

    • __namedParameters: QuickBaseRequest = {}

    Returns Promise<QuickBaseResponseDeleteRecords>

  • Type Parameters

    • F extends string | number | symbol

    Parameters

    • field: F

    Returns RecordData[F]

  • Type Parameters

    • F extends string

    Parameters

    • field: F

    Returns F extends keyof RecordData ? RecordData[F] : any

  • Type Parameters

    • T extends string | number | symbol

    Parameters

    • field: T

    Returns number

  • Parameters

    • field: number
    • byId: true

    Returns string

  • Parameters

    • field: string | number
    • Optional byId: false

    Returns number

  • Parameters

    • id: number
    • returnIndex: true

    Returns undefined | number

  • Parameters

    • id: number
    • Optional returnIndex: false

    Returns undefined | QBField<Record<any, any>>

  • Returns QBField<Record<any, any>>[]

  • Parameters

    • __namedParameters: QuickBaseRequest = {}

    Returns Promise<void>

  • Parameters

    • __namedParameters: QuickBaseRequest = {}

    Returns Promise<QBField<Record<any, any>>[]>

  • Parameters

    • __namedParameters: QuickBaseRequest & {
          fidsToSave?: (number | keyof RecordData)[];
          mergeFieldId?: number;
      } = {}

    Returns Promise<Record<any, any>>

  • Type Parameters

    • F extends string | number | symbol

    Parameters

    • field: F
    • value: RecordData[F]

    Returns QBRecord<RecordData>

  • Type Parameters

    • F extends string

    Parameters

    • field: F
    • value: F extends keyof RecordData ? RecordData[F] : any

    Returns QBRecord<RecordData>

  • Type Parameters

    • T extends string | number | symbol

    Parameters

    • name: T
    • id: number

    Returns QBRecord<RecordData>

  • Parameters

    • name: string | number
    • id: number

    Returns QBRecord<RecordData>

  • Parameters

    • fields: QBField<Record<any, any>>[]

    Returns QBRecord<RecordData>

  • Serialize the QBRecord instance into JSON

    Parameters

    • Optional fidsToConvert: (string | number)[]

    Returns QBRecordJSON<RecordData>

Generated using TypeDoc