Change view columns for schema
This commit is contained in:
parent
de9b74fd81
commit
e068e62eb1
|
@ -40,7 +40,13 @@ describe("/v2/views", () => {
|
|||
order: SortOrder.DESCENDING,
|
||||
type: SortType.STRING,
|
||||
},
|
||||
columns: ["name"],
|
||||
schema: {
|
||||
name: {
|
||||
name: "name",
|
||||
type: FieldType.STRING,
|
||||
visible: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
afterAll(setup.afterAll)
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import { SortOrder, SortType } from "../../api"
|
||||
import { SearchFilters } from "../../sdk"
|
||||
import { TableSchema } from "./table"
|
||||
|
||||
export interface View {
|
||||
name: string
|
||||
|
@ -24,7 +25,7 @@ export interface ViewV2 {
|
|||
order?: SortOrder
|
||||
type?: SortType
|
||||
}
|
||||
columns?: string[]
|
||||
schema?: TableSchema
|
||||
}
|
||||
|
||||
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema
|
||||
|
|
Loading…
Reference in New Issue