diff --git a/packages/server/src/api/routes/tests/viewV2.spec.ts b/packages/server/src/api/routes/tests/viewV2.spec.ts index 5af82996b0..480580eb86 100644 --- a/packages/server/src/api/routes/tests/viewV2.spec.ts +++ b/packages/server/src/api/routes/tests/viewV2.spec.ts @@ -40,10 +40,8 @@ describe("/v2/views", () => { order: SortOrder.DESCENDING, type: SortType.STRING, }, - schema: { + columns: { name: { - name: "name", - type: FieldType.STRING, visible: true, }, }, diff --git a/packages/types/src/documents/app/view.ts b/packages/types/src/documents/app/view.ts index 73037150d0..aeef95ed5b 100644 --- a/packages/types/src/documents/app/view.ts +++ b/packages/types/src/documents/app/view.ts @@ -1,6 +1,6 @@ import { SortOrder, SortType } from "../../api" import { SearchFilters } from "../../sdk" -import { TableSchema } from "./table" +import { TableSchema, UIFieldMetadata } from "./table" export interface View { name: string @@ -25,7 +25,7 @@ export interface ViewV2 { order?: SortOrder type?: SortType } - schema?: TableSchema + columns?: Record } export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema