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",
|
|
|
|
TableChange = "TableChange",
|
|
|
|
SelectTable = "SelectTable",
|
|
|
|
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-05-31 16:13:22 +02:00
|
|
|
}
|
|
|
|
|
2023-05-31 17:08:35 +02:00
|
|
|
export const SocketSessionTTL = 60
|
2023-07-20 13:21:09 +02:00
|
|
|
export const ValidColumnNameRegex = /^[_a-zA-Z0-9\s]*$/g
|