feat(react/widgets): port sql_result

This commit is contained in:
Elian Doran
2025-08-29 15:50:44 +03:00
parent 4df94d1f20
commit 735e91e636
7 changed files with 89 additions and 107 deletions

View File

@@ -1,4 +1,4 @@
import { AttachmentRow, AttributeRow, NoteType } from "./rows.js";
import { AttachmentRow, AttributeRow, BranchRow, NoteRow, NoteType } from "./rows.js";
type Response = {
success: true,
@@ -220,3 +220,17 @@ export type BacklinksResponse = ({
noteId: string;
excerpts: string[]
})[];
export type SqlExecuteResults = (object[] | object)[];
export interface SqlExecuteResponse {
success: boolean;
error?: string;
results: SqlExecuteResults;
}
export interface CreateChildrenResponse {
note: NoteRow;
branch: BranchRow;
}