Notes/src/services/note-interface.ts

27 lines
840 B
TypeScript
Raw Normal View History

import { NoteType } from "../becca/entities/rows.js";
2024-03-17 21:29:57 +02:00
export interface NoteParams {
/** optionally can force specific noteId */
noteId?: string;
branchId?: string;
2024-03-17 21:29:57 +02:00
parentNoteId: string;
templateNoteId?: string;
title: string;
content: string | Buffer;
/** text, code, file, image, search, book, relationMap, canvas, webView */
2024-03-17 21:29:57 +02:00
type: NoteType;
/** default value is derived from default mimes for type */
mime?: string;
/** default is false */
isProtected?: boolean;
/** default is false */
isExpanded?: boolean;
/** default is empty string */
prefix?: string;
/** default is the last existing notePosition in a parent + 10 */
notePosition?: number;
dateCreated?: string;
utcDateCreated?: string;
ignoreForbiddenParents?: boolean;
target?: "into";
}