2022-11-17 06:23:12 +13:00
|
|
|
export enum UserStatus {
|
|
|
|
ACTIVE = "active",
|
|
|
|
INACTIVE = "inactive",
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum Cookie {
|
|
|
|
Auth = "budibase:auth",
|
|
|
|
Init = "budibase:init",
|
|
|
|
ACCOUNT_RETURN_URL = "budibase:account:returnurl",
|
|
|
|
DatasourceAuth = "budibase:datasourceauth",
|
|
|
|
OIDC_CONFIG = "budibase:oidc:config",
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum Header {
|
|
|
|
API_KEY = "x-budibase-api-key",
|
|
|
|
LICENSE_KEY = "x-budibase-license-key",
|
|
|
|
API_VER = "x-budibase-api-version",
|
|
|
|
APP_ID = "x-budibase-app-id",
|
2023-06-02 04:14:32 +12:00
|
|
|
SESSION_ID = "x-budibase-session-id",
|
2022-11-17 06:23:12 +13:00
|
|
|
TYPE = "x-budibase-type",
|
|
|
|
PREVIEW_ROLE = "x-budibase-role",
|
|
|
|
TENANT_ID = "x-budibase-tenant-id",
|
2023-07-13 23:36:50 +12:00
|
|
|
VERIFICATION_CODE = "x-budibase-verification-code",
|
|
|
|
RETURN_VERIFICATION_CODE = "x-budibase-return-verification-code",
|
2023-08-01 02:09:45 +12:00
|
|
|
RESET_PASSWORD_CODE = "x-budibase-reset-password-code",
|
|
|
|
RETURN_RESET_PASSWORD_CODE = "x-budibase-return-reset-password-code",
|
2022-11-17 06:23:12 +13:00
|
|
|
TOKEN = "x-budibase-token",
|
|
|
|
CSRF_TOKEN = "x-csrf-token",
|
2023-01-12 09:39:33 +13:00
|
|
|
CORRELATION_ID = "x-budibase-correlation-id",
|
2023-03-10 02:02:55 +13:00
|
|
|
AUTHORIZATION = "authorization",
|
2022-11-17 06:23:12 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
export enum GlobalRole {
|
|
|
|
OWNER = "owner",
|
|
|
|
ADMIN = "admin",
|
|
|
|
BUILDER = "builder",
|
|
|
|
WORKSPACE_MANAGER = "workspace_manager",
|
|
|
|
}
|
|
|
|
|
|
|
|
export enum Config {
|
|
|
|
SETTINGS = "settings",
|
|
|
|
ACCOUNT = "account",
|
|
|
|
SMTP = "smtp",
|
|
|
|
GOOGLE = "google",
|
|
|
|
OIDC = "oidc",
|
|
|
|
OIDC_LOGOS = "logos_oidc",
|
2023-03-28 05:58:32 +13:00
|
|
|
SCIM = "scim",
|
2022-11-17 06:23:12 +13:00
|
|
|
}
|
|
|
|
|
2023-02-18 05:26:55 +13:00
|
|
|
export const MIN_VALID_DATE = new Date(-2147483647000)
|
2022-11-17 06:23:12 +13:00
|
|
|
export const MAX_VALID_DATE = new Date(2147483647000)
|
|
|
|
export const DEFAULT_TENANT_ID = "default"
|