UNPKG

@levo-so/client

Version:

<img alt="Levo" src="https://static.levocdn.com/png/Levo-Logo.png" width="50" height="50">

40 lines (39 loc) 992 B
import type { JsonValue } from '@levo.libraries/types'; import type { LemaField } from './field'; export type LemaIndex = { name: string; columns: string[]; kind: 'FULLTEXT' | 'UNIQUE'; }; type collection = { id: string; identifier: string | null; name: string; description: string | null; key: string; icon: JsonValue | null; title_field: string | null; email_field: string | null; hidden: boolean; readonly: boolean; requires_signin: boolean; allow_draft: boolean; allow_multiple: boolean; allow_edit: boolean; settings: JsonValue; module_name: string | null; created_by: string | null; updated_by: string | null; created_at: Date; updated_at: Date; on_submit: JsonValue[]; on_update: JsonValue[]; }; export type LemaCollection = Partial<collection> & { key: string; workspace_id?: string; fields: LemaField[]; indexes?: LemaIndex[]; with_visit?: boolean; }; export {};