2022-01-20 12:19:37 +01:00
|
|
|
/**
|
|
|
|
* Operator options for lucene queries
|
|
|
|
*/
|
2023-03-09 09:50:26 +01:00
|
|
|
export { OperatorOptions, SqlNumberTypeRangeMap } from "@budibase/shared-core"
|
2022-01-20 12:19:37 +01:00
|
|
|
|
|
|
|
// Cookie names
|
|
|
|
export const Cookies = {
|
|
|
|
Auth: "budibase:auth",
|
|
|
|
CurrentApp: "budibase:currentapp",
|
|
|
|
ReturnUrl: "budibase:returnurl",
|
2022-09-15 12:59:46 +02:00
|
|
|
AccountReturnUrl: "budibase:account:returnurl",
|
2022-01-20 12:19:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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-08-03 16:16:26 +02:00
|
|
|
export const BudibaseRoles = {
|
|
|
|
AppUser: "appUser",
|
|
|
|
Developer: "developer",
|
|
|
|
Admin: "admin",
|
|
|
|
}
|
|
|
|
|
|
|
|
export const BudibaseRoleOptions = [
|
|
|
|
{ label: "App User", value: BudibaseRoles.AppUser },
|
|
|
|
{ label: "Developer", value: BudibaseRoles.Developer },
|
|
|
|
{ label: "Admin", value: BudibaseRoles.Admin },
|
2022-06-29 20:03:32 +02:00
|
|
|
]
|
|
|
|
|
2023-08-29 15:40:56 +02:00
|
|
|
export const BudibaseRoleOptionsNew = [
|
|
|
|
{
|
|
|
|
label: "Admin",
|
|
|
|
value: "admin",
|
|
|
|
subtitle: "Has full access to all apps and settings in your account",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: "Member",
|
|
|
|
value: "appUser",
|
|
|
|
subtitle: "Can only view apps they have access to",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2022-06-29 20:03:32 +02:00
|
|
|
export const BuilderRoleDescriptions = [
|
|
|
|
{
|
2022-08-03 16:16:26 +02:00
|
|
|
value: BudibaseRoles.AppUser,
|
2022-06-29 20:03:32 +02:00
|
|
|
icon: "User",
|
|
|
|
label: "App user - Only has access to published apps",
|
|
|
|
},
|
|
|
|
{
|
2022-08-03 16:16:26 +02:00
|
|
|
value: BudibaseRoles.Developer,
|
2022-06-29 20:03:32 +02:00
|
|
|
icon: "Hammer",
|
|
|
|
label: "Developer - Access to the app builder",
|
|
|
|
},
|
|
|
|
{
|
2022-08-03 16:16:26 +02:00
|
|
|
value: BudibaseRoles.Admin,
|
2022-06-29 20:03:32 +02:00
|
|
|
icon: "Draw",
|
|
|
|
label: "Admin - Full access",
|
|
|
|
},
|
|
|
|
]
|
|
|
|
|
2022-07-13 16:46:10 +02:00
|
|
|
export const PlanType = {
|
|
|
|
FREE: "free",
|
|
|
|
TEAM: "team",
|
2022-09-29 10:17:22 +02:00
|
|
|
PRO: "pro",
|
2022-07-13 16:46:10 +02:00
|
|
|
BUSINESS: "business",
|
|
|
|
ENTERPRISE: "enterprise",
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
2022-07-21 10:52:01 +02:00
|
|
|
export const Features = {
|
|
|
|
USER_GROUPS: "userGroups",
|
2022-10-24 16:00:00 +02:00
|
|
|
BACKUPS: "appBackups",
|
2023-01-26 16:34:03 +01:00
|
|
|
ENVIRONMENT_VARIABLES: "environmentVariables",
|
2023-02-13 10:47:08 +01:00
|
|
|
AUDIT_LOGS: "auditLogs",
|
2023-02-27 14:42:51 +01:00
|
|
|
ENFORCEABLE_SSO: "enforceableSSO",
|
2023-03-27 16:17:14 +02:00
|
|
|
BRANDING: "branding",
|
2023-03-21 13:13:19 +01:00
|
|
|
SCIM: "scim",
|
2023-05-24 15:41:58 +02:00
|
|
|
SYNC_AUTOMATIONS: "syncAutomations",
|
2023-08-24 12:38:12 +02:00
|
|
|
APP_BUILDERS: "appBuilders",
|
2022-07-21 10:52:01 +02:00
|
|
|
}
|
|
|
|
|
2022-04-28 16:13:33 +02:00
|
|
|
// Role IDs
|
|
|
|
export const Roles = {
|
|
|
|
ADMIN: "ADMIN",
|
|
|
|
POWER: "POWER",
|
|
|
|
BASIC: "BASIC",
|
|
|
|
PUBLIC: "PUBLIC",
|
|
|
|
BUILDER: "BUILDER",
|
2023-08-24 12:38:12 +02:00
|
|
|
CREATOR: "CREATOR",
|
2022-04-28 16:13:33 +02:00
|
|
|
}
|
2022-07-26 14:41:46 +02:00
|
|
|
|
2022-07-27 17:37:35 +02:00
|
|
|
export const Themes = [
|
|
|
|
{
|
|
|
|
class: "lightest",
|
|
|
|
name: "Lightest",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
class: "light",
|
|
|
|
name: "Light",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
class: "dark",
|
|
|
|
name: "Dark",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
class: "darkest",
|
|
|
|
name: "Darkest",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
class: "nord",
|
|
|
|
name: "Nord",
|
|
|
|
base: "darkest",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
class: "midnight",
|
|
|
|
name: "Midnight",
|
|
|
|
base: "darkest",
|
|
|
|
},
|
2022-07-26 14:41:46 +02:00
|
|
|
]
|
2023-01-23 20:18:02 +01:00
|
|
|
|
|
|
|
export const EventPublishType = {
|
|
|
|
ENV_VAR_UPGRADE_PANEL_OPENED: "environment_variable_upgrade_panel_opened",
|
|
|
|
}
|