All files constants.ts

100% Statements 45/45
100% Branches 0/0
100% Functions 0/0
100% Lines 45/45

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 461x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x  
export const USER_ROLES = ["user", "staff", "admin", "superadmin"] as const
 
export const STAFF_ROLES = ["staff", "admin", "superadmin"] as const
 
export const ADMIN_ROLES = ["admin", "superadmin"] as const
 
export const USER_STATUSES = ["active", "disabled"] as const
 
export const APP_SOURCES = [
  "dashboard",
  "discord-bot",
  "kick-bot",
  "ws-relay",
  "backend",
] as const
 
export const PLANS = ["free", "pro", "team", "enterprise"] as const
 
export const ENTITLEMENT_SOURCES = [
  "stripe",
  "discord",
  "manual",
  "promo",
  "internal",
] as const
 
export const ENTITLEMENT_STATUSES = [
  "active",
  "trialing",
  "past_due",
  "cancelled",
  "expired",
] as const
 
export const LOG_LEVELS = ["debug", "info", "warn", "error"] as const
 
export type UserRole = (typeof USER_ROLES)[number]
export type StaffRole = (typeof STAFF_ROLES)[number]
export type AdminRole = (typeof ADMIN_ROLES)[number]
export type UserStatus = (typeof USER_STATUSES)[number]
export type AppSource = (typeof APP_SOURCES)[number]
export type Plan = (typeof PLANS)[number]
export type EntitlementSource = (typeof ENTITLEMENT_SOURCES)[number]
export type EntitlementStatus = (typeof ENTITLEMENT_STATUSES)[number]
export type LogLevel = (typeof LOG_LEVELS)[number]