Update types
This commit is contained in:
parent
658d4b01b0
commit
e29db10a77
2 changed files with 7 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue