Notes/src/services/meta/note_meta.ts

25 lines
723 B
TypeScript
Raw Normal View History

import type AttachmentMeta from "./attachment_meta.js";
import type AttributeMeta from "./attribute_meta.js";
2024-02-17 21:01:31 +02:00
export default interface NoteMeta {
2024-02-19 23:08:43 +02:00
noteId?: string;
notePath?: string[];
isClone?: boolean;
title?: string;
notePosition?: number;
prefix?: string | null;
isExpanded?: boolean;
type?: string;
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[];
}