| 162 | export type DbViewType = 'table' | 'board' |
| 163 | |
| 164 | export interface DbView { |
| 165 | id: string |
| 166 | name: string |
| 167 | type: DbViewType |
| 168 | filters: FilterRule[] |
| 169 | sorts: SortRule[] |
| 170 | // --- table --- |
| 171 | /** Ordered fieldIds (display order). */ |
| 172 | columnOrder?: string[] |
| 173 | hiddenFieldIds?: string[] |
| 174 | columnWidths?: Record<string, number> |
| 175 | // --- board --- |
| 176 | /** Must reference a `select` field. */ |
| 177 | groupByFieldId?: string |
| 178 | /** Order of board columns; values are SelectOption.value (+ EMPTY_GROUP). */ |
| 179 | boardColumnOrder?: string[] |
| 180 | /** Per-card visible fields. */ |
| 181 | cardFieldIds?: string[] |
| 182 | } |
| 183 | |
| 184 | /** The sidecar JSON written to `<Name>.base/schema.json`. */ |
| 185 | export interface DatabaseSidecar { |
nothing calls this directly
no outgoing calls
no test coverage detected