budibase/packages/backend-core/src/constants.js

42 lines
874 B
JavaScript
Raw Normal View History

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",
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",
TENANT_ID: "x-budibase-tenant-id",
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",
WORKSPACE_MANAGER: "workspace_manager",
2021-04-19 12:34:07 +02:00
}
exports.Configs = {
SETTINGS: "settings",
ACCOUNT: "account",
SMTP: "smtp",
GOOGLE: "google",
OIDC: "oidc",
OIDC_LOGOS: "logos_oidc",
}
2021-12-03 13:39:20 +01:00
exports.MAX_VALID_DATE = new Date(2147483647000)
exports.DEFAULT_TENANT_ID = "default"