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

export const AdminPolicy = {
  impersonateCompany: ['SUPER_ADMIN'],
  manageAdmins: ['SUPER_ADMIN', 'ADMIN'],
  managePricingPlans: ['SUPER_ADMIN', 'ADMIN'],
  manageSubscriptions: ['SUPER_ADMIN', 'ADMIN', 'FINANCE'],
  performRefund: ['SUPER_ADMIN', 'ADMIN', 'FINANCE'],
  viewSensitiveCredentials: ['SUPER_ADMIN'],
} as const satisfies Record<string, readonly AdminRole[]>

export type AdminPolicyAction = keyof typeof AdminPolicy
