IFClite TypeScript API
    Preparing search index...

    Class AutomergeHistorySidecar

    Implements

    Index
    • The entry whose at is closest to (and not after) at.

      Parameters

      • at: string | Date
      • Optionalbranch: string

      Returns Promise<HistoryEntry | null>

    • Create a new branch off fromEntryId (defaults to head of main).

      Parameters

      • name: string
      • OptionalfromEntryId: string

      Returns Promise<BranchInfo>

    • Remove all entries / branches.

      Returns Promise<void>

    • Per-entity-id diff between two entries.

      Parameters

      • fromEntryId: string
      • toEntryId: string

      Returns Promise<HistoryDiff>

    • Replace the internal doc. Used by tests + restore flows.

      Parameters

      • serialised: Uint8Array

      Returns void

    • Merge branch into into. Returns a synthetic merge entry — apps compute the merged snapshot themselves (typically by replaying Y-update logs through mergeBranch).

      Parameters

      • branch: string
      • into: string
      • mergedSnapshot: IfcxFile

      Returns Promise<HistoryEntry>

    • Append a new entry to a branch (default 'main').

      Parameters

      • input: {
            authorClientId?: number;
            branch?: string;
            diff?: IfcxFile;
            label?: string;
            snapshot: IfcxFile;
        }

      Returns Promise<HistoryEntry>

    • Serialise the entire history doc. Use to persist across restarts.

      Returns Uint8Array