1
0
Fork 0
mirror of synced 2024-06-01 10:09:48 +12:00
budibase/qa-core/src/internal-api/fixtures/rows.ts

33 lines
612 B
TypeScript
Raw Normal View History

2022-10-19 22:35:00 +13:00
import { Row } from "@budibase/types"
export const generateNewRowForTable = (tableId: string): Row => {
2022-10-25 21:02:55 +13:00
return {
TestColumn: "TestRow",
tableId: tableId,
}
2022-10-19 22:42:57 +13:00
}
2022-12-24 05:03:02 +13:00
export const searchBody = (primaryDisplay: string): any => {
return {
bookmark: null,
limit: 10,
paginate: true,
query: {
contains: {},
containsAny: {},
empty: {},
equal: {},
fuzzy: {},
notContains: {},
notEmpty: {},
notEqual: {},
oneOf: {},
range: {},
string: {},
},
sort: primaryDisplay,
sortOrder: "ascending",
sortType: "string",
2022-12-24 05:03:02 +13:00
}
}