chore(react): port data part of server API

This commit is contained in:
Elian Doran
2025-10-04 11:40:31 +03:00
parent b41042fec4
commit 09811d23f6
7 changed files with 212 additions and 163 deletions

View File

@@ -42,6 +42,7 @@ type Labels = {
// Note-type specific
webViewSrc: string;
readOnly: boolean;
mapType: string;
}
/**

View File

@@ -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>;
}