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",
|
2023-01-16 22:51:55 +13:00
|
|
|
sortType: "string",
|
2022-12-24 05:03:02 +13:00
|
|
|
}
|
2023-01-16 22:51:55 +13:00
|
|
|
}
|