server-ts: Port services/export/zip

This commit is contained in:
Elian Doran
2024-02-19 23:08:43 +02:00
parent 1728365fa1
commit 29d37c40c1
12 changed files with 176 additions and 167 deletions

View File

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