import type { EmployeeRole } from '@rentaldrivego/database'

export const CompanyPolicy = {
  viewApiKey: ['OWNER'],
  regenerateApiKey: ['OWNER'],
  updateAccountingSettings: ['OWNER', 'MANAGER'],
  deletePricingRule: ['OWNER', 'MANAGER'],
  managePricingRules: ['OWNER', 'MANAGER'],
  manageTeam: ['OWNER', 'MANAGER'],
  viewBilling: ['OWNER', 'MANAGER'],
  manageBilling: ['OWNER'],
} as const satisfies Record<string, readonly EmployeeRole[]>

export type CompanyPolicyAction = keyof typeof CompanyPolicy
