WIP jordan
This commit is contained in:
35
app/data/roles-seguros.ts
Normal file
35
app/data/roles-seguros.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
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' }
|
||||
]
|
||||
Reference in New Issue
Block a user