Persist columns in views
This commit is contained in:
parent
82e2385099
commit
28f4aef07f
|
@ -1,11 +1,5 @@
|
|||
import * as setup from "./utilities"
|
||||
import {
|
||||
FieldType,
|
||||
SortDirection,
|
||||
SortType,
|
||||
Table,
|
||||
ViewV2,
|
||||
} from "@budibase/types"
|
||||
import { FieldType, SortOrder, SortType, Table, ViewV2 } from "@budibase/types"
|
||||
import { generator, structures } from "@budibase/backend-core/tests"
|
||||
|
||||
function priceTable(): Table {
|
||||
|
@ -36,9 +30,10 @@ describe("/v2/views", () => {
|
|||
query: { allOr: false, equal: { field: "value" } },
|
||||
sort: {
|
||||
field: "fieldToSort",
|
||||
order: SortDirection.DESCENDING,
|
||||
order: SortOrder.DESCENDING,
|
||||
type: SortType.STRING,
|
||||
},
|
||||
columns: ["name"],
|
||||
}
|
||||
|
||||
afterAll(setup.afterAll)
|
||||
|
|
|
@ -23,6 +23,7 @@ export interface ViewV2 extends Document {
|
|||
order?: SortOrder
|
||||
type?: SortType
|
||||
}
|
||||
columns?: string[]
|
||||
}
|
||||
|
||||
export type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema
|
||||
|
|
Loading…
Reference in New Issue