import { Id } from '@win2win/shared';

export enum VisitaEstado {
  CANCELADA = -1,
  PLANIFICADA = 0,
  INICIADA = 1,
  FINALIZADA = 2,
}

export enum VisitaTipo {
  VENTA = 1,
  COBRO = 2,
  GESTION = 3,
  ENTREGA = 4,
}

export enum VisitaForma {
  PRESENCIAL = 1,
  TELEFONICA = 2,
  VIRTUAL = 3,
}

export interface Visitas {
  ID_VISITA: Id;
  COD_EMP_MVX: number;
  TIPO_VISITA: VisitaTipo;
  FORMA_VISITA: VisitaForma;
  ID_USUARIO: number;
  ID_RUTA: number;
  ESTADO: VisitaEstado;
  ID_CLIENTE: number;
  ID_CONTACTO: number;
  ID_CAPTACION: number;
  PROPS: Record<string, any>;
  TITULO: string;
  FECHA_VISITA: Date | string;
  HORA_VISITA: Date | string;
  FECHA_PLANIFICADA: Date | string;
  FECHA_INICIADA: Date | string;
  FECHA_FINALIZADA: Date | string;
  FECHA_CANCELADA: Date | string;
  DURACION: number;
  ID_EJECUTOR: number;
  ID_RESPONSABLE: number;
  FECHA_CREADO: Date | string;
  FECHA_UPD: Date | string;
  R_CLIENTES: any;
  R_USUARIO: any;
  R_CONTACTO: any;
  R_CAPTACION: any;
}
