2022-01-20 12:19:37 +01:00
|
|
|
/**
|
|
|
|
* Operator options for lucene queries
|
|
|
|
*/
|
|
|
|
export const OperatorOptions = {
|
|
|
|
Equals: {
|
|
|
|
value: "equal",
|
|
|
|
label: "Equals",
|
|
|
|
},
|
|
|
|
NotEquals: {
|
|
|
|
value: "notEqual",
|
|
|
|
label: "Not equals",
|
|
|
|
},
|
|
|
|
Empty: {
|
|
|
|
value: "empty",
|
|
|
|
label: "Is empty",
|
|
|
|
},
|
|
|
|
NotEmpty: {
|
|
|
|
value: "notEmpty",
|
|
|
|
label: "Is not empty",
|
|
|
|
},
|
|
|
|
StartsWith: {
|
|
|
|
value: "string",
|
|
|
|
label: "Starts with",
|
|
|
|
},
|
|
|
|
Like: {
|
|
|
|
value: "fuzzy",
|
|
|
|
label: "Like",
|
|
|
|
},
|
|
|
|
MoreThan: {
|
|
|
|
value: "rangeLow",
|
|
|
|
label: "More than",
|
|
|
|
},
|
|
|
|
LessThan: {
|
|
|
|
value: "rangeHigh",
|
|
|
|
label: "Less than",
|
|
|
|
},
|
|
|
|
Contains: {
|
|
|
|
value: "equal",
|
|
|
|
label: "Contains",
|
|
|
|
},
|
|
|
|
NotContains: {
|
|
|
|
value: "notEqual",
|
|
|
|
label: "Does Not Contain",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
// Cookie names
|
|
|
|
export const Cookies = {
|
|
|
|
Auth: "budibase:auth",
|
|
|
|
CurrentApp: "budibase:currentapp",
|
|
|
|
ReturnUrl: "budibase:returnurl",
|
|
|
|
}
|
|
|
|
|
|
|
|
// Table names
|
2022-01-20 10:40:53 +01:00
|
|
|
export const TableNames = {
|
|
|
|
USERS: "ta_users",
|
|
|
|
}
|
2022-01-18 10:39:19 +01:00
|
|
|
|
|
|
|
/**
|
2022-01-20 12:19:37 +01:00
|
|
|
* API version header attached to all requests.
|
|
|
|
* Version changelog:
|
2022-01-18 10:39:19 +01:00
|
|
|
* v1:
|
|
|
|
* - Coerce types for search endpoint
|
|
|
|
*/
|
2022-01-20 12:19:37 +01:00
|
|
|
export const ApiVersion = "1"
|
2022-04-28 16:13:33 +02:00
|
|
|
|
|
|
|
// Role IDs
|
|
|
|
export const Roles = {
|
|
|
|
ADMIN: "ADMIN",
|
|
|
|
POWER: "POWER",
|
|
|
|
BASIC: "BASIC",
|
|
|
|
PUBLIC: "PUBLIC",
|
|
|
|
BUILDER: "BUILDER",
|
|
|
|
}
|