2025-01-13 23:18:10 +02:00
|
|
|
import type FAttachment from "../entities/fattachment.js";
|
|
|
|
|
import type FAttribute from "../entities/fattribute.js";
|
|
|
|
|
import type FBlob from "../entities/fblob.js";
|
|
|
|
|
import type FBranch from "../entities/fbranch.js";
|
|
|
|
|
import type FNote from "../entities/fnote.js";
|
2024-07-25 20:36:15 +03:00
|
|
|
|
|
|
|
|
export interface Froca {
|
|
|
|
|
notes: Record<string, FNote>;
|
|
|
|
|
branches: Record<string, FBranch>;
|
|
|
|
|
attributes: Record<string, FAttribute>;
|
|
|
|
|
attachments: Record<string, FAttachment>;
|
2025-05-07 21:15:32 +03:00
|
|
|
blobPromises: Record<string, Promise<void | FBlob | null> | null>;
|
2024-07-25 20:36:15 +03:00
|
|
|
|
2025-04-18 10:36:51 +03:00
|
|
|
getBlob(entityType: string, entityId: string): Promise<FBlob | null>;
|
2024-07-25 20:36:15 +03:00
|
|
|
getNote(noteId: string, silentNotFoundError?: boolean): Promise<FNote | null>;
|
2025-12-03 19:16:58 +02:00
|
|
|
getNoteFromCache(noteId: string): FNote | undefined;
|
2024-07-25 20:36:15 +03:00
|
|
|
getNotesFromCache(noteIds: string[], silentNotFoundError?: boolean): FNote[];
|
|
|
|
|
getNotes(noteIds: string[], silentNotFoundError?: boolean): Promise<FNote[]>;
|
|
|
|
|
|
|
|
|
|
getBranch(branchId: string, silentNotFoundError?: boolean): FBranch | undefined;
|
|
|
|
|
getBranches(branchIds: string[], silentNotFoundError?: boolean): FBranch[];
|
|
|
|
|
|
|
|
|
|
getAttachmentsForNote(noteId: string): Promise<FAttachment[]>;
|
2025-01-09 18:07:02 +02:00
|
|
|
}
|