2025-02-15 01:02:24 +02:00
|
|
|
import type { NoteType } from "../../becca/entities/rows.js";
|
2025-01-09 18:36:24 +02:00
|
|
|
import type AttachmentMeta from "./attachment_meta.js";
|
|
|
|
import type AttributeMeta from "./attribute_meta.js";
|
2024-02-17 21:01:31 +02:00
|
|
|
|
2025-02-02 13:55:15 +02:00
|
|
|
export interface NoteMetaFile {
|
|
|
|
formatVersion: number;
|
|
|
|
appVersion: string;
|
|
|
|
files: NoteMeta[];
|
|
|
|
}
|
|
|
|
|
2025-01-09 18:36:24 +02:00
|
|
|
export default interface NoteMeta {
|
2025-02-07 20:27:22 +02:00
|
|
|
noteId?: string;
|
2024-02-19 23:08:43 +02:00
|
|
|
notePath?: string[];
|
|
|
|
isClone?: boolean;
|
2025-02-07 20:27:22 +02:00
|
|
|
title?: string;
|
2024-02-19 23:08:43 +02:00
|
|
|
notePosition?: number;
|
|
|
|
prefix?: string | null;
|
|
|
|
isExpanded?: boolean;
|
2025-02-15 01:02:24 +02:00
|
|
|
type?: NoteType;
|
2024-02-19 23:08:43 +02:00
|
|
|
mime?: string;
|
2024-02-17 21:01:31 +02:00
|
|
|
/** 'html' or 'markdown', applicable to text notes only */
|
2024-02-19 23:08:43 +02:00
|
|
|
format?: "html" | "markdown";
|
2024-02-17 21:01:31 +02:00
|
|
|
dataFileName: string;
|
2024-02-19 23:08:43 +02:00
|
|
|
dirFileName?: string;
|
2024-02-17 21:01:31 +02:00
|
|
|
/** this file should not be imported (e.g., HTML navigation) */
|
2024-02-19 23:08:43 +02:00
|
|
|
noImport?: boolean;
|
2024-04-03 22:46:14 +03:00
|
|
|
isImportRoot?: boolean;
|
2024-02-19 23:08:43 +02:00
|
|
|
attributes?: AttributeMeta[];
|
|
|
|
attachments?: AttachmentMeta[];
|
2024-02-17 21:01:31 +02:00
|
|
|
children?: NoteMeta[];
|
|
|
|
}
|