Files
policy-ui/app/data/roles-seguros.ts
Jordan Weingarten 67482f6629 WIP jordan
2026-04-16 11:11:44 -05:00

36 lines
1.4 KiB
TypeScript

import type { RoleRow, SegurosPermissionKey } from '~/types/roles'
function all(v: boolean): Record<SegurosPermissionKey, boolean> {
return {
profile: v,
portfolio: v,
layers: v,
tasks: v,
billing: v,
analytics: v,
support: v
}
}
export const ROLES_SEGUROS_SEED: RoleRow[] = [
{ id: 5, description: 'Agente de Ventas', active: true, seguros: all(true) },
{ id: 4, description: 'Supervisor de Ventas', active: true, seguros: all(true) },
{ id: 3, description: 'Configurador', active: true, seguros: all(false) },
{ id: 2, description: 'Supervisor', active: true, seguros: all(false) },
{ id: 1, description: 'Superadministrator', active: true, seguros: all(false) }
]
export const SEGUROS_PERMISSION_COLUMNS: {
key: SegurosPermissionKey
icon: string
label: string
}[] = [
{ key: 'profile', icon: 'i-heroicons-user', label: 'Perfil' },
{ key: 'portfolio', icon: 'i-heroicons-folder', label: 'Cartera / pólizas' },
{ key: 'layers', icon: 'i-heroicons-squares-2x2', label: 'Capas / duplicados' },
{ key: 'tasks', icon: 'i-heroicons-clipboard-document-check', label: 'Tareas / checklist' },
{ key: 'billing', icon: 'i-heroicons-currency-dollar', label: 'Cobros / primas' },
{ key: 'analytics', icon: 'i-heroicons-chart-pie', label: 'Indicadores' },
{ key: 'support', icon: 'i-heroicons-chat-bubble-left-right', label: 'Soporte' }
]