Notes/src/services/entity_changes_interface.ts

26 lines
527 B
TypeScript
Raw Normal View History

export interface EntityChange {
id?: number | null;
noteId?: string;
entityName: string;
entityId: string;
entity?: any;
2024-02-17 11:54:41 +02:00
positions?: Record<string, number>;
hash: string;
utcDateChanged?: string;
isSynced: boolean | 1 | 0;
isErased: boolean | 1 | 0;
componentId?: string | null;
changeId?: string | null;
instanceId?: string | null;
2024-02-18 13:10:51 +02:00
}
export interface EntityRow {
isDeleted?: boolean;
content?: Buffer | string;
}
export interface EntityChangeRecord {
entityChange: EntityChange;
entity?: EntityRow;
}