UNPKG

@sanity/transaction-collator

Version:

Collate events from a series of transactions

43 lines 981 B
export declare type Mutation = { create?: { _id: string; }; createIfNotExists?: { _id: string; }; createOrReplace?: { _id: string; }; createSquashed?: { _id: string; authors: string[]; document: { _id: string; }; }; delete?: { id: string; }; patch?: { id: string; }; }; export declare type EventType = 'created' | 'edited' | 'published' | 'unpublished' | 'discardDraft' | 'truncated' | 'deleted' | 'restored' | 'unknown'; export declare type HistoryEvent = { displayDocumentId: string | null; documentIDs: string[]; endTime: string; rev: string; startTime: string; transactionIds: string[]; type: EventType; userIds: string[]; }; export declare type Transaction = { author: string; documentIDs: string[]; id: string; mutations: Mutation[]; timestamp: string; }; //# sourceMappingURL=types.d.ts.map