Retention removes automatic markers, or one explicitly selected named marker.
Members
Properties
expectedGeneration: number;Generation the writer read; refuse the call when storage is at another one.
beforeTime: number;Remove automatic versions made before this time, in milliseconds since the Unix epoch.
deleteVersionId?: string;optional
ID of one named version to remove as well.
targetBytes?: number;optional
Keep removing the oldest automatic versions until storage is at or under this size in bytes.
documentId: string;ID of the document whose history the call is about.
The archive's limits; the adapter must refuse work that goes over them.
signal?: AbortSignal;optional
Aborts when the archive stops waiting for the call.
Declaration
View full TypeScript declaration
export interface HistoryPruneRequest { expectedGeneration: number; beforeTime: number; deleteVersionId?: string; targetBytes?: number; documentId: string; signal?: AbortSignal;}Referenced by
Public exports naming HistoryPruneRequest
AtomicHistoryStorage@sheetwrite/coreHistoryStorageAdapter@sheetwrite/core