2023-12-12 10:21:10 +01:00
|
|
|
export * from "./api"
|
2024-04-16 14:16:13 +02:00
|
|
|
export * from "./fields"
|
2023-12-12 10:21:10 +01:00
|
|
|
|
2023-03-09 09:50:26 +01:00
|
|
|
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 or equal to",
|
|
|
|
},
|
|
|
|
LessThan: {
|
|
|
|
value: "rangeHigh",
|
|
|
|
label: "Less than or equal to",
|
|
|
|
},
|
|
|
|
Contains: {
|
|
|
|
value: "contains",
|
|
|
|
label: "Contains",
|
|
|
|
},
|
|
|
|
NotContains: {
|
|
|
|
value: "notContains",
|
|
|
|
label: "Does not contain",
|
|
|
|
},
|
|
|
|
In: {
|
|
|
|
value: "oneOf",
|
|
|
|
label: "Is in",
|
|
|
|
},
|
|
|
|
ContainsAny: {
|
|
|
|
value: "containsAny",
|
|
|
|
label: "Has any",
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const SqlNumberTypeRangeMap = {
|
|
|
|
integer: {
|
|
|
|
max: 2147483647,
|
|
|
|
min: -2147483648,
|
|
|
|
},
|
|
|
|
int: {
|
|
|
|
max: 2147483647,
|
|
|
|
min: -2147483648,
|
|
|
|
},
|
|
|
|
smallint: {
|
|
|
|
max: 32767,
|
|
|
|
min: -32768,
|
|
|
|
},
|
|
|
|
mediumint: {
|
|
|
|
max: 8388607,
|
|
|
|
min: -8388608,
|
|
|
|
},
|
|
|
|
}
|
2023-05-31 11:21:50 +02:00
|
|
|
|
2023-05-31 18:03:14 +02:00
|
|
|
export enum SocketEvent {
|
|
|
|
UserUpdate = "UserUpdate",
|
|
|
|
UserDisconnect = "UserDisconnect",
|
|
|
|
Heartbeat = "Heartbeat",
|
2023-05-31 11:21:50 +02:00
|
|
|
}
|
|
|
|
|
2023-05-31 18:03:14 +02:00
|
|
|
export enum GridSocketEvent {
|
|
|
|
RowChange = "RowChange",
|
2023-08-17 17:04:56 +02:00
|
|
|
DatasourceChange = "DatasourceChange",
|
2023-07-31 12:21:11 +02:00
|
|
|
SelectDatasource = "SelectDatasource",
|
2023-05-31 18:03:14 +02:00
|
|
|
SelectCell = "SelectCell",
|
2023-05-31 11:21:50 +02:00
|
|
|
}
|
|
|
|
|
2023-05-31 18:03:14 +02:00
|
|
|
export enum BuilderSocketEvent {
|
|
|
|
SelectApp = "SelectApp",
|
|
|
|
TableChange = "TableChange",
|
|
|
|
DatasourceChange = "DatasourceChange",
|
2023-06-05 14:54:17 +02:00
|
|
|
LockTransfer = "LockTransfer",
|
2023-07-03 12:14:07 +02:00
|
|
|
ScreenChange = "ScreenChange",
|
|
|
|
AppMetadataChange = "AppMetadataChange",
|
2023-07-04 09:58:14 +02:00
|
|
|
SelectResource = "SelectResource",
|
2023-07-04 14:18:38 +02:00
|
|
|
AppPublishChange = "AppPublishChange",
|
2023-07-10 10:30:15 +02:00
|
|
|
AutomationChange = "AutomationChange",
|
2023-05-31 16:13:22 +02:00
|
|
|
}
|
|
|
|
|
2023-05-31 17:08:35 +02:00
|
|
|
export const SocketSessionTTL = 60
|
2023-07-24 13:02:24 +02:00
|
|
|
export const ValidQueryNameRegex = /^[^()]*$/
|
2023-07-20 13:21:09 +02:00
|
|
|
export const ValidColumnNameRegex = /^[_a-zA-Z0-9\s]*$/g
|
2024-03-13 15:29:50 +01:00
|
|
|
export const ValidSnippetNameRegex = /^[a-z_][a-z0-9_]*$/i
|
2023-11-21 11:40:25 +01:00
|
|
|
|
2024-02-13 16:14:03 +01:00
|
|
|
export const REBOOT_CRON = "@reboot"
|
|
|
|
|
2023-11-21 11:40:25 +01:00
|
|
|
export const InvalidFileExtensions = [
|
2023-11-21 12:26:25 +01:00
|
|
|
"7z",
|
2023-11-21 11:40:25 +01:00
|
|
|
"action",
|
|
|
|
"apk",
|
|
|
|
"app",
|
|
|
|
"bat",
|
|
|
|
"bin",
|
|
|
|
"cab",
|
|
|
|
"cmd",
|
|
|
|
"com",
|
|
|
|
"command",
|
|
|
|
"cpl",
|
|
|
|
"csh",
|
|
|
|
"ex_",
|
|
|
|
"exe",
|
|
|
|
"gadget",
|
|
|
|
"inf1",
|
|
|
|
"ins",
|
|
|
|
"inx",
|
|
|
|
"ipa",
|
|
|
|
"isu",
|
|
|
|
"job",
|
2023-11-21 12:41:32 +01:00
|
|
|
"js",
|
2023-11-21 11:40:25 +01:00
|
|
|
"jse",
|
|
|
|
"ksh",
|
|
|
|
"lnk",
|
|
|
|
"msc",
|
|
|
|
"msi",
|
|
|
|
"msp",
|
|
|
|
"mst",
|
|
|
|
"osx",
|
|
|
|
"out",
|
|
|
|
"paf",
|
2023-11-21 12:41:32 +01:00
|
|
|
"php",
|
2023-11-21 11:40:25 +01:00
|
|
|
"pif",
|
|
|
|
"prg",
|
|
|
|
"ps1",
|
|
|
|
"reg",
|
|
|
|
"rgs",
|
|
|
|
"run",
|
|
|
|
"scr",
|
|
|
|
"sct",
|
|
|
|
"shb",
|
|
|
|
"shs",
|
2023-11-21 12:26:25 +01:00
|
|
|
"tar",
|
2023-11-21 11:40:25 +01:00
|
|
|
"u3p",
|
|
|
|
"vb",
|
|
|
|
"vbe",
|
|
|
|
"vbs",
|
|
|
|
"vbscript",
|
2023-11-21 12:41:32 +01:00
|
|
|
"wasm",
|
2023-11-21 11:40:25 +01:00
|
|
|
"workflow",
|
|
|
|
"ws",
|
|
|
|
"wsf",
|
|
|
|
"wsh",
|
2023-11-21 12:26:25 +01:00
|
|
|
"zip",
|
2023-10-27 17:24:02 +02:00
|
|
|
]
|
2024-03-12 13:45:09 +01:00
|
|
|
|
|
|
|
export enum BpmCorrelationKey {
|
2024-03-14 13:15:35 +01:00
|
|
|
ONBOARDING = "budibase:onboarding:correlationkey",
|
2024-03-12 13:45:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum BpmInstanceKey {
|
2024-03-14 13:15:35 +01:00
|
|
|
ONBOARDING = "budibase:onboarding:instancekey",
|
2024-03-12 13:45:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum BpmStatusKey {
|
2024-03-14 13:15:35 +01:00
|
|
|
ONBOARDING = "budibase:onboarding:status",
|
2024-03-12 13:45:09 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum BpmStatusValue {
|
|
|
|
STARTED = "started",
|
|
|
|
COMPLETING_ACCOUNT_INFO = "completing_account_info",
|
2024-03-14 15:35:45 +01:00
|
|
|
VERIFYING_EMAIL = "verifying_email",
|
2024-03-12 13:45:09 +01:00
|
|
|
COMPLETED = "completed",
|
|
|
|
}
|
2024-06-24 15:31:27 +02:00
|
|
|
|
|
|
|
export const DEFAULT_BB_DATASOURCE_ID = "datasource_internal_bb_default"
|