On this page
Durable record of committed transactions, written as part of the commit. When
record rejects, the authority does not publish or acknowledge the commit.
capture returns the committed document after the transaction and is called
only when the journal needs a checkpoint. HistoryArchive from
@sheetwrite/core/history implements this interface.
Members
Methods
Stores one committed transaction; call capture only when a checkpoint is due.
Declaration
View full TypeScript declaration
export interface CommitJournal {
Referenced by
Public exports naming CommitJournal
interface CommittedTransaction {
baseRevision: number;
revision: number;
mutationId: string;
authorId: string;
time: number;
operations: readonly DocumentOp[];
restore?: RestoreProvenance;
} interface CommittedTransaction {
baseRevision : number ;
revision : number ;
mutationId : string ;
authorId : string ;
time : number ;
operations : readonly DocumentOp [];
restore ?: RestoreProvenance ;
} interface CommittedTransaction {
baseRevision : number ;
revision : number ;
mutationId : string ;
authorId : string ;
time : number ;
operations : readonly DocumentOp [];
restore ?: RestoreProvenance ;
} One transaction as the document authority committed it: its revisions, its author and its time. History archives record these, never optimistic edits. API reference interface WorkbookSnapshot {
schemaVersion: 1;
documentId?: string;
version?: number;
workbook: {
activeSheet: SheetId;
namedRanges?: NamedRangeSnapshot[];
xlsxSource?: XlsxSourceSnapshot;
calculation?: CalculationSettings;
dataModel?: DataModel;
queries?: SavedQuery[];
externalLinks?: ExternalLink[];
};
sheets: SheetSnapshot[];
} interface WorkbookSnapshot {
schemaVersion : 1 ;
documentId ?: string ;
version ?: number ;
workbook : {
activeSheet : SheetId ;
namedRanges ?: NamedRangeSnapshot [];
xlsxSource ?: XlsxSourceSnapshot ;
calculation ?: CalculationSettings ;
dataModel ?: DataModel ;
queries ?: SavedQuery [];
externalLinks ?: ExternalLink [];
};
sheets : SheetSnapshot [];
} interface WorkbookSnapshot {
schemaVersion : 1 ;
documentId ?: string ;
version ?: number ;
workbook : {
activeSheet : SheetId ;
namedRanges ?: NamedRangeSnapshot [];
xlsxSource ?: XlsxSourceSnapshot ;
calculation ?: CalculationSettings ;
dataModel ?: DataModel ;
queries ?: SavedQuery [];
externalLinks ?: ExternalLink [];
};
sheets : SheetSnapshot [];
} Schema-versioned serializable workbook document. API reference On this page