import { HistoryResponse } from "sync-ql"; import { DataFilterType } from "./filter.type"; export type DataColumnFix = 'left' | 'right'; export type DataColumnAlign = 'left' | 'right' | 'inherit' | 'center' | 'justify'; export type DataSortType = 'asc' | 'desc'; export type HistoryChanges = HistoryResponse; export interface DataColumn { name: string, label?: string, as?: string, table?: string, schema?: string, fix?: DataColumnFix, align?: DataColumnAlign, width?: number, minWidth?: number, maxWidth?: number, const?: boolean, hidden?: boolean, disabled?: (row: any) => boolean, readonly?: boolean, sort?: DataSortType | 'disabled', filter?: DataFilterType | [DataFilterType, DataFilterType], history?: (column: DataColumn, row: any) => Promise, }