mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
27 lines
840 B
TypeScript
27 lines
840 B
TypeScript
import { NoteType } from "../becca/entities/rows.js";
|
|
|
|
export interface NoteParams {
|
|
/** optionally can force specific noteId */
|
|
noteId?: string;
|
|
branchId?: string;
|
|
parentNoteId: string;
|
|
templateNoteId?: string;
|
|
title: string;
|
|
content: string | Buffer;
|
|
/** text, code, file, image, search, book, relationMap, canvas, webView */
|
|
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";
|
|
} |