Notes/src/services/meta/note_meta.ts

32 lines
896 B
TypeScript
Raw Normal View History

2025-02-15 01:02:24 +02:00
import type { NoteType } from "../../becca/entities/rows.js";
import type AttachmentMeta from "./attachment_meta.js";
import type AttributeMeta from "./attribute_meta.js";
2024-02-17 21:01:31 +02:00
export interface NoteMetaFile {
formatVersion: number;
appVersion: string;
files: NoteMeta[];
}
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[];
}