new features, bookstack
This commit is contained in:
36
frontend/src/types/bookstack.types.ts
Normal file
36
frontend/src/types/bookstack.types.ts
Normal file
@@ -0,0 +1,36 @@
|
||||
export interface BookStackPage {
|
||||
id: number;
|
||||
name: string;
|
||||
slug: string;
|
||||
book_id: number;
|
||||
book_slug: string;
|
||||
chapter_id: number;
|
||||
draft: boolean;
|
||||
template: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
url: string;
|
||||
book?: { name: string };
|
||||
updatedBy?: { name: string };
|
||||
}
|
||||
|
||||
export interface BookStackSearchResult {
|
||||
id: number;
|
||||
name: string;
|
||||
slug: string;
|
||||
book_id: number;
|
||||
book_slug: string;
|
||||
url: string;
|
||||
preview_html: { content: string };
|
||||
tags: { name: string; value: string; order: number }[];
|
||||
}
|
||||
|
||||
export interface BookStackRecentResponse {
|
||||
configured: boolean;
|
||||
data: BookStackPage[];
|
||||
}
|
||||
|
||||
export interface BookStackSearchResponse {
|
||||
configured: boolean;
|
||||
data: BookStackSearchResult[];
|
||||
}
|
||||
Reference in New Issue
Block a user