@vestra-player/sdk - v1.11.3
    Preparing search index...

    Type Alias PropertyWriteExperimental

    PropertyWrite:
        | { value: Json; seq?: number; more?: boolean }
        | { patch: { base: number; seq: number; ops: RowOp[] }; more?: boolean }

    One write of a view property as the player takes it: a whole value, or a row patch of a list.

    Type Declaration

    • { value: Json; seq?: number; more?: boolean }
      • value: Json

        The property's new value.

      • Optionalseq?: number

        This write's number, which later patches name as their base.

      • Optionalmore?: boolean

        A part of a whole value sent in parts, not the last.

    • { patch: { base: number; seq: number; ops: RowOp[] }; more?: boolean }
      • patch: { base: number; seq: number; ops: RowOp[] }

        Row operations on a list property.

        • base: number

          The seq of the write they apply on (0: the initial properties).

        • seq: number

          This patch's own number (1 or more).

        • ops: RowOp[]

          The operations, applied in order.

      • Optionalmore?: boolean

        A part of a whole value sent in parts, not the last.

    Part of the wire protocol, which is not semver: this type changes with versions. { value } replaces the property; to a player that takes row patches it carries a seq that later patches apply on. { patch: { base, seq, ops } } applies ops on the write numbered base (0: the view's initial properties) and is numbered seq itself; the player refuses it with stale when the property changed since base. more marks a part of a whole value sent in several, not the last: the player shows the value at the last part. The SDK writes these for set() and bind(); a plugin writes them with WireView.write.

    The property items becomes a list of two rows; a later patch with base: 7 applies on it.

    const write: PropertyWrite = { value: [{ id: "a" }, { id: "b" }], seq: 7 };
    

    1.7.0