mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| 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<ArrayBufferLike>;
 | |
|     contentLength?: number;
 | |
| }
 | |
| 
 | |
| export interface RecentChangeRow {
 | |
|     noteId: string;
 | |
|     current_isDeleted: boolean;
 | |
|     current_deleteId: string;
 | |
|     current_title: string;
 | |
|     current_isProtected: boolean;
 | |
|     title: string;
 | |
|     utcDate: string;
 | |
|     date: string;
 | |
|     canBeUndeleted?: boolean;
 | |
| }
 | |
| 
 | |
| export interface BulkActionAffectedNotes {
 | |
|     affectedNoteCount: number;
 | |
| }
 | |
| 
 | |
| export interface DatabaseCheckIntegrityResponse {
 | |
|     results: {
 | |
|         integrity_check: string;
 | |
|     }[];
 | |
| }
 |