/
effective_wiki
/
web-client
Обзор
Документация
Войти
/
effective_wiki
/
web-client
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
src/types/database-types.ts
81 строка
2 KB
Andrey Lila
fix: deduce the amount of requests when initializing the database
18 дек 2025, 15:26
18 дек 2025, 15:26
fc3db5c
Код
Авторство
О чём код?
import { DataSource } from "./datasource-types"; import { PropertySchemaMap } from "./property-types"; import { View, ViewType } from "./view-types"; export interface DatabaseParent { type: "pageId" | "workspace"; pageId?: string; workspace?: boolean; } export interface ViewSort { property: string; direction: "asc" | "desc"; } export interface ViewFilter { property: string; operator: string; // eslint-disable-next-line @typescript-eslint/no-explicit-any value?: any; } export interface InitialViewSettings { title?: string; type?: ViewType; visible_columns?: string[]; sort?: ViewSort[]; filter?: ViewFilter[]; } export interface CreateDatabaseRequest { title: string; workspace_id: string; // uuid parent: DatabaseParent; properties: PropertySchemaMap; createdBy: string; description?: string; initial_view?: InitialViewSettings; data_source_name?: string; } export interface Database { id: string; title: string; description?: string; workspace_id: string; parent: DatabaseParent; properties: PropertySchemaMap; createdAt: string; updatedAt: string; } export interface CreateDatabaseResponse { database: Database; data_source: DataSource; views: View[]; } export interface ListDatabasesRequest { workspace_id?: string; parent_page_id?: string; limit?: number; offset?: number; } export interface ListDatabasesResponse { databases: Database[]; total: number; } export interface GetDatabaseResponse { database: Database; data_sources: DataSource[]; views: View[]; } export interface UpdateDatabaseRequest { title?: string; description?: string; updatedBy: string; }