Class RecordVersion

Hierarchy

  • SchemaMember
    • RecordVersion

Constructors

Properties

[SC]: Schema
_fields: FieldValueSet
_type: string
built: boolean = false

Accessors

  • get address(): string
  • Returns string

  • get deleted(): undefined | boolean
  • Returns undefined | boolean

  • get id(): string
  • Returns string

  • get key(): undefined | string
  • Returns undefined | string

  • Returns string[]

  • get lseq(): undefined | number
  • Returns undefined | number

  • get path(): string
  • Returns string

  • Returns Schema

  • get seq(): undefined | number
  • Returns undefined | number

  • get shortAddress(): string
  • Returns string

  • get timestamp(): string | 0
  • Returns string | 0

  • get type(): string
  • Returns string

Methods

  • _build(force?: boolean): void
  • Parameters

    • force: boolean = false

    Returns void

  • allTypes(): string[]
  • Returns string[]

  • get(fieldName: string): any
  • Parameters

    • fieldName: string

    Returns any

  • getField(fieldName: string): undefined | Field
  • Parameters

    • fieldName: string

    Returns undefined | Field

  • getMany(fieldName: string): any[]
  • Parameters

    • fieldName: string

    Returns any[]

  • getOne(fieldName: string): any
  • Parameters

    • fieldName: string

    Returns any

  • getType(): undefined | Type
  • Returns undefined | Type

  • hasField(fieldName: string): boolean
  • Parameters

    • fieldName: string

    Returns boolean

  • hasType(typeAddress: string): boolean
  • Parameters

    • typeAddress: string

    Returns boolean

  • mapFields(name: string, fn: ((field: any) => void)): void[]
  • Parameters

    • name: string
    • fn: ((field: any) => void)
        • (field: any): void
        • Parameters

          • field: any

          Returns void

    Returns void[]

  • toJSON(): { deleted: undefined | boolean; id: string; key: undefined | string; links: string[]; lseq: undefined | number; seq: undefined | number; timestamp: string | number; type: string; value: RecordValue }
  • Returns { deleted: undefined | boolean; id: string; key: undefined | string; links: string[]; lseq: undefined | number; seq: undefined | number; timestamp: string | number; type: string; value: RecordValue }

    • deleted: undefined | boolean
    • id: string
    • key: undefined | string
    • links: string[]
    • lseq: undefined | number
    • seq: undefined | number
    • timestamp: string | number
    • type: string
    • value: RecordValue

Generated using TypeDoc