| 
									
										
										
										
											2025-08-06 17:10:18 +03:00
										 |  |  | import { AttributeRow, NoteType } from "./rows.js"; | 
					
						
							| 
									
										
										
										
											2025-08-05 18:05:41 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-08-03 16:22:54 +03:00
										 |  |  | export interface AppInfo { | 
					
						
							|  |  |  |     appVersion: string; | 
					
						
							|  |  |  |     dbVersion: number; | 
					
						
							|  |  |  |     nodeVersion: string; | 
					
						
							|  |  |  |     syncVersion: number; | 
					
						
							|  |  |  |     buildDate: string; | 
					
						
							|  |  |  |     buildRevision: string; | 
					
						
							|  |  |  |     dataDirectory: string; | 
					
						
							|  |  |  |     clipperProtocolVersion: string; | 
					
						
							|  |  |  |     /** for timezone inference */ | 
					
						
							|  |  |  |     utcDateTime: string; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-05 18:05:41 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | export interface DeleteNotesPreview { | 
					
						
							|  |  |  |     noteIdsToBeDeleted: string[]; | 
					
						
							|  |  |  |     brokenRelations: AttributeRow[]; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-06 17:10:18 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | export interface RevisionItem { | 
					
						
							|  |  |  |     noteId: string; | 
					
						
							|  |  |  |     revisionId?: string; | 
					
						
							|  |  |  |     dateLastEdited?: string; | 
					
						
							|  |  |  |     contentLength?: number; | 
					
						
							|  |  |  |     type: NoteType; | 
					
						
							|  |  |  |     title: string; | 
					
						
							|  |  |  |     isProtected?: boolean; | 
					
						
							|  |  |  |     mime: string; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-06 18:10:02 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 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<ArrayBufferLike>; | 
					
						
							|  |  |  |     contentLength?: number; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-06 22:22:11 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | export interface RecentChangesRow { | 
					
						
							|  |  |  |     noteId: string; | 
					
						
							|  |  |  |     date: string; | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2025-08-07 20:08:51 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | export interface BulkActionAffectedNotes { | 
					
						
							|  |  |  |     affectedNoteCount: number; | 
					
						
							|  |  |  | } |