server-ts: Port services/meta/*

This commit is contained in:
Elian Doran
2024-02-17 21:01:31 +02:00
parent 748a551def
commit 45582ebaac
7 changed files with 46 additions and 69 deletions

View File

@@ -0,0 +1,24 @@
import AttributeMeta = require("./attribute_meta");
interface NoteMeta {
noteId: string;
notePath: string;
isClone: boolean;
title: string;
notePosition: number;
prefix: string;
isExpanded: boolean;
type: string;
mime: string;
/** 'html' or 'markdown', applicable to text notes only */
format: "html" | "markdown";
dataFileName: string;
dirFileName: string;
/** this file should not be imported (e.g., HTML navigation) */
noImport: boolean;
attributes: AttributeMeta[];
attachments: AttributeMeta[];
children?: NoteMeta[];
}
export = NoteMeta;