Skip to content
Sheetwrite

@sheetwrite/core

CommittedTransactioninterface

Report a problem

On this page

One transaction as the document authority committed it: its revisions, its author and its time. History archives record these, never optimistic edits.

Members

Properties

baseRevision: number;

Revision the transaction applies to.

revision: number;

Revision after the transaction; an atomic batch advances up to 16 revisions.

mutationId: string;

Stable mutation ID of the commit, at most 256 code units.

authorId: string;

Authenticated ID of the person who made the change, at most 256 code units.

time: number;

Commit time in milliseconds since the epoch; never before the previous commit.

operations: readonly DocumentOp[];

The committed document operations, in order.

optional

Present when the transaction restores a history version.

Declaration

View full TypeScript declaration
export interface CommittedTransaction {
baseRevision: number;
revision: number;
mutationId: string;
authorId: string;
time: number;
operations: readonly DocumentOp[];
restore?: RestoreProvenance;
}

Referenced by

Public exports naming CommittedTransaction