import { AttributeRow, NoteType } from "./rows.js"; export interface AppInfo { appVersion: string; dbVersion: number; nodeVersion: string; syncVersion: number; buildDate: string; buildRevision: string; dataDirectory: string; clipperProtocolVersion: string; /** for timezone inference */ utcDateTime: string; } export interface DeleteNotesPreview { noteIdsToBeDeleted: string[]; brokenRelations: AttributeRow[]; } export interface RevisionItem { noteId: string; revisionId?: string; dateLastEdited?: string; contentLength?: number; type: NoteType; title: string; isProtected?: boolean; mime: string; } export interface RevisionPojo { revisionId?: string; noteId: string; type: NoteType; mime: string; isProtected?: boolean; title: string; blobId?: string; dateLastEdited?: string; dateCreated?: string; utcDateLastEdited?: string; utcDateCreated?: string; utcDateModified?: string; content?: string | Buffer; contentLength?: number; } export interface RecentChangesRow { noteId: string; date: string; } export interface BulkActionAffectedNotes { affectedNoteCount: number; }