Only ui metadata fields

This commit is contained in:
Adria Navarro 2023-07-24 12:00:59 +02:00
parent e068e62eb1
commit 4e646bb463
2 changed files with 3 additions and 5 deletions

View File

@ -40,10 +40,8 @@ describe("/v2/views", () => {
order: SortOrder.DESCENDING, order: SortOrder.DESCENDING,
type: SortType.STRING, type: SortType.STRING,
}, },
schema: { columns: {
name: { name: {
name: "name",
type: FieldType.STRING,
visible: true, visible: true,
}, },
}, },

View File

@ -1,6 +1,6 @@
import { SortOrder, SortType } from "../../api" import { SortOrder, SortType } from "../../api"
import { SearchFilters } from "../../sdk" import { SearchFilters } from "../../sdk"
import { TableSchema } from "./table" import { TableSchema, UIFieldMetadata } from "./table"
export interface View { export interface View {
name: string name: string
@ -25,7 +25,7 @@ export interface ViewV2 {
order?: SortOrder order?: SortOrder
type?: SortType type?: SortType
} }
schema?: TableSchema columns?: Record<string, UIFieldMetadata>
} }
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema