Member Junction
    Preparing search index...

    Creating unit versions: build each version's draft and row identity, write it with Core's row writer, save it.

    Index

    Constructors

    Methods

    • Pure: the draft and row identity of the next version — changes over the previous draft, Version = latest + 1 under the same lineage root, the label version bumped exactly when the outcome definition changed, the ID left to the database. Throws when the previous or the changed draft does not parse.

      Parameters

      • lineage: {
            latestVersion: number;
            lineageRootId: string;
            previous: UnitDraft;
            previousLabelVersion: number;
        }
      • changes: Partial<UnitDraft>
      • actor: Actor

      Returns UnitVersionWrite