Update types
This commit is contained in:
parent
658d4b01b0
commit
e29db10a77
|
@ -25,12 +25,6 @@ interface BaseRelationshipFieldMetadata
|
|||
tableId: string
|
||||
tableRev?: string
|
||||
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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { SearchFilter, SortOrder, SortType } from "../../api"
|
||||
import { RelationSchemaField, UIFieldMetadata } from "./table"
|
||||
import { UIFieldMetadata } from "./table"
|
||||
import { Document } from "../document"
|
||||
import { DBView } from "../../sdk"
|
||||
|
||||
|
@ -35,7 +35,12 @@ export interface View {
|
|||
|
||||
export type ViewFieldMetadata = UIFieldMetadata & {
|
||||
readonly?: boolean
|
||||
schema?: Record<string, RelationSchemaField>
|
||||
columns?: Record<string, RelationSchemaField>
|
||||
}
|
||||
|
||||
type RelationSchemaField = {
|
||||
visible?: boolean
|
||||
readonly?: boolean
|
||||
}
|
||||
|
||||
export interface ViewV2 {
|
||||
|
|
Loading…
Reference in New Issue