1
0
Fork 0
mirror of synced 2024-09-20 11:27:56 +12:00

Update types

This commit is contained in:
Adria Navarro 2024-08-28 11:24:00 +02:00
parent 658d4b01b0
commit e29db10a77
2 changed files with 7 additions and 8 deletions

View file

@ -25,12 +25,6 @@ interface BaseRelationshipFieldMetadata
tableId: string tableId: string
tableRev?: string tableRev?: string
subtype?: AutoFieldSubType.CREATED_BY | AutoFieldSubType.UPDATED_BY subtype?: AutoFieldSubType.CREATED_BY | AutoFieldSubType.UPDATED_BY
schema?: Record<string, RelationSchemaField>
}
export type RelationSchemaField = {
visible?: boolean
readonly?: boolean
} }
// External tables use junction tables, internal tables don't require them // External tables use junction tables, internal tables don't require them

View file

@ -1,5 +1,5 @@
import { SearchFilter, SortOrder, SortType } from "../../api" import { SearchFilter, SortOrder, SortType } from "../../api"
import { RelationSchemaField, UIFieldMetadata } from "./table" import { UIFieldMetadata } from "./table"
import { Document } from "../document" import { Document } from "../document"
import { DBView } from "../../sdk" import { DBView } from "../../sdk"
@ -35,7 +35,12 @@ export interface View {
export type ViewFieldMetadata = UIFieldMetadata & { export type ViewFieldMetadata = UIFieldMetadata & {
readonly?: boolean readonly?: boolean
schema?: Record<string, RelationSchemaField> columns?: Record<string, RelationSchemaField>
}
type RelationSchemaField = {
visible?: boolean
readonly?: boolean
} }
export interface ViewV2 { export interface ViewV2 {