import { Entity, Professional } from './entity-models'; export interface VisitAnswer { pregunta: { descripcion: string; pk: number; tipo: number; }; respuesta_tipo: { valor: unknown; }; } export interface VisitChapter { capitulo: { pk: number; nombre: string; }; fecha: string; fiscalizacion: number; observacion?: string[]; respuestas: VisitAnswer[]; } export interface IAnnexFile { url: string; fileName: string; displayName: string; } export interface Annex { nombre: string; archivos: string[]; pregunta: number; nombre_archivos?: string[]; files?: IAnnexFile[]; } export interface Visit { id: number; capitulos?: string | VisitChapter[]; entidad?: Entity; fecha: Date; nombreEstablecimiento: string; nombreProductor: string; identificacionProductor: string; profesional: Professional; ruta: string; estadoEmail: number; destinatarios: string[]; anexos: Annex[]; anexosTemp: string[]; enEdicion: boolean; estado: { id: string; }; estadoId: string; loading?: boolean; statedClass?: string; savingStatusChange?: boolean; }