mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
chore(react): port data part of server API
This commit is contained in:
@@ -42,6 +42,7 @@ type Labels = {
|
||||
// Note-type specific
|
||||
webViewSrc: string;
|
||||
readOnly: boolean;
|
||||
mapType: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -260,3 +260,16 @@ export interface RelationMapPostResponse {
|
||||
relations: RelationMapRelation[];
|
||||
inverseRelations: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface NoteMapLink {
|
||||
key: string;
|
||||
sourceNoteId: string;
|
||||
targetNoteId: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface NoteMapPostResponse {
|
||||
notes: string[];
|
||||
links: NoteMapLink[];
|
||||
noteIdToDescendantCountMap: Record<string, number>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user