From 73ecbbc95b18b6902a4bba2af7e25eac5522973d Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 15 Mar 2026 18:15:12 +0100 Subject: [PATCH] feat(bookstack) : add frontend BookStack DTOs Co-Authored-By: Claude Sonnet 4.6 --- frontend/services/dto/bookstack.ts | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 frontend/services/dto/bookstack.ts diff --git a/frontend/services/dto/bookstack.ts b/frontend/services/dto/bookstack.ts new file mode 100644 index 0000000..6c4514c --- /dev/null +++ b/frontend/services/dto/bookstack.ts @@ -0,0 +1,42 @@ +export type BookStackSettings = { + url: string | null + hasToken: boolean +} + +export type BookStackSettingsWrite = { + url: string | null + tokenId: string | null + tokenSecret: string | null +} + +export type BookStackTestResult = { + success: boolean +} + +export type BookStackShelf = { + id: number + name: string +} + +export type BookStackLink = { + id: number + bookstackId: number + bookstackType: 'page' | 'book' + title: string + url: string + createdAt: string +} + +export type BookStackLinkCreate = { + bookstackId: number + bookstackType: 'page' | 'book' + title: string + url: string +} + +export type BookStackSearchResult = { + id: number + type: 'page' | 'book' + name: string + url: string +}