Notes/src/services/entity_changes_interface.ts

28 lines
574 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;
2024-04-03 20:47:41 +03:00
utcDateModified?: string;
utcDateCreated?: 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 {
2024-04-02 23:55:02 +03:00
entityChange: EntityChange;
entity?: EntityRow;
2024-02-18 13:10:51 +02:00
}