2021-04-07 12:33:16 +02:00
|
|
|
exports.UserStatus = {
|
|
|
|
ACTIVE: "active",
|
|
|
|
INACTIVE: "inactive",
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.Cookies = {
|
|
|
|
CurrentApp: "budibase:currentapp",
|
|
|
|
Auth: "budibase:auth",
|
2021-11-04 14:03:18 +01:00
|
|
|
Init: "budibase:init",
|
2022-01-17 15:52:10 +01:00
|
|
|
DatasourceAuth: "budibase:datasourceauth",
|
2021-07-15 17:20:31 +02:00
|
|
|
OIDC_CONFIG: "budibase:oidc:config",
|
2021-04-07 12:33:16 +02:00
|
|
|
}
|
2021-04-19 12:34:07 +02:00
|
|
|
|
2021-07-23 16:29:14 +02:00
|
|
|
exports.Headers = {
|
|
|
|
API_KEY: "x-budibase-api-key",
|
|
|
|
API_VER: "x-budibase-api-version",
|
|
|
|
APP_ID: "x-budibase-app-id",
|
|
|
|
TYPE: "x-budibase-type",
|
2021-08-05 10:59:08 +02:00
|
|
|
TENANT_ID: "x-budibase-tenant-id",
|
2021-12-17 15:08:48 +01:00
|
|
|
TOKEN: "x-budibase-token",
|
2022-01-25 23:54:50 +01:00
|
|
|
CSRF_TOKEN: "x-csrf-token",
|
2021-07-23 16:29:14 +02:00
|
|
|
}
|
|
|
|
|
2021-04-19 12:34:07 +02:00
|
|
|
exports.GlobalRoles = {
|
|
|
|
OWNER: "owner",
|
|
|
|
ADMIN: "admin",
|
|
|
|
BUILDER: "builder",
|
2021-08-05 10:59:08 +02:00
|
|
|
WORKSPACE_MANAGER: "workspace_manager",
|
2021-04-19 12:34:07 +02:00
|
|
|
}
|
2021-05-11 18:49:26 +02:00
|
|
|
|
|
|
|
exports.Configs = {
|
|
|
|
SETTINGS: "settings",
|
|
|
|
ACCOUNT: "account",
|
|
|
|
SMTP: "smtp",
|
|
|
|
GOOGLE: "google",
|
2021-07-07 14:41:09 +02:00
|
|
|
OIDC: "oidc",
|
2021-07-14 16:48:29 +02:00
|
|
|
OIDC_LOGOS: "logos_oidc",
|
2021-05-11 18:49:26 +02:00
|
|
|
}
|
2021-08-05 10:59:08 +02:00
|
|
|
|
2021-12-03 13:39:20 +01:00
|
|
|
exports.MAX_VALID_DATE = new Date(2147483647000)
|
2021-08-05 10:59:08 +02:00
|
|
|
exports.DEFAULT_TENANT_ID = "default"
|