Member Junction
    Preparing search index...
    interface EntityHistory {
        Coverage: ChangeHistoryCoverage;
        ChangesAfter(recordKey: string, field: string, after: Date): number;
        CreatedAt(recordKey: string): Date;
        DeletedRecordAt(recordKey: string, before: Date): DeletedRecordRead;
        EarlierIncarnationEnd(recordKey: string, before: Date): DeletedRecordRead;
        RowsBefore(recordKey: string, before: Date): number;
        ValueAt(recordKey: string, field: string, before: Date): HistoryValue;
    }
    Index

    Properties

    Methods

    • Change rows at or after after that changed field or replaced the record: an Update that lists the field, a Delete, and a row of any type whose recorded value of the field differs from the row before it (a Create or Snapshot written after an untracked change carries the new value without listing it). The final Delete of a hard-deleted record (see DeletedRecordAt) is where its stored value is read from, so it counts only when it records a different value of the field.

      Parameters

      • recordKey: string
      • field: string
      • after: Date

      Returns number

    • When the record's history starts with its own Create row, the instant of that row: the record did not exist before it. Null when the history starts with any other row (a Snapshot: the record is older than its history; an Update or a Delete: it was created before tracking) or there is no history. A re-created record keeps its first creation.

      Parameters

      • recordKey: string

      Returns Date