feat: campo RETHUS con validación manual desde el admin

- Prisma schema: rethus_code y rethus_validated en tabla professionals
- Migración 0001: ALTER TABLE agrega ambas columnas
- DTO: rethus_code y rethus_validated en CreateProfessionalDto y UpdateProfessionalDto
- Service: nuevo método validateRethus, rethus_code incluido en requestProfessional
- Controller: endpoint POST /professionals/:id/validate-rethus (JWT protegido)
- Admin listado pendientes: columna RETHUS con ícono verde/amarillo y enlace al detalle
- Admin detalle profesional: card de validación RETHUS con botón consultar Minsalud y marcar como validado

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-06-27 18:23:55 -05:00
co-authored by Claude Sonnet 4.6
parent 46fcb57edf
commit c1e9dba2d1
7 changed files with 142 additions and 6 deletions
@@ -43,6 +43,13 @@ export class ProfessionalsController {
return this.pros.deny(id);
}
@Post(':id/validate-rethus')
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()
validateRethus(@Param('id') id: string) {
return this.pros.validateRethus(id);
}
@Get('me')
@UseGuards(JwtAuthGuard)
@ApiBearerAuth()