@dxos/echo
    Preparing search index...

    Interface ValueChange<T>

    One change to an object, as Obj.getChanges returns it: the document change's metadata plus the value the change touched, as it read before and after. A plain, frozen record, not an entity.

    interface ValueChange<T> {
        actor: string;
        after: undefined | T;
        before: undefined | T;
        heads: readonly string[];
        key: string;
        message?: string;
        object: string;
        ops: number;
        property?: string;
        seq: number;
        source: "feed" | "document";
        time: number;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Properties

    actor: string = Schema.String

    Writer that made the change; for a document change, an Automerge actor, which is a device, not a member.

    after: undefined | T

    The value after the change; undefined where the change removed the property.

    before: undefined | T

    The value before the change; undefined where the object (or property) did not exist yet.

    heads: readonly string[]

    The document's frontier once the change applied; Obj.getVersion(obj, heads) reads the object as it left it.

    key: string = Schema.String

    Unique among a query's results: the Automerge change hash for a document change.

    message?: string

    The writer's commit message, if it gave one.

    object: string

    Id of the object the change touched.

    ops: number = Schema.Number

    Primitive writes in the change, at the storage's granularity: Automerge ops (a field set, a character inserted) for a document change; 1 for a feed block, which writes one whole object. Compare sums within one source.

    property?: string

    The property the history was filtered to, when Obj.getChanges was given one.

    seq: number = Schema.Number

    The actor's sequence number for this change.

    source: "feed" | "document" = ...

    Where the change is stored; only documents report changes today.

    time: number = Schema.Number

    The author's clock when the change was made, unix ms.