export type CartillaResponse = {
  planes: string[];
  especialidades: string[];
  provincias: string[];
  localidades: string[];
  zonas: string[];
};

export type SelectedPrestador = {
  nombre: string;
  especialidades: string[];
  lat?: number;
  lng?: number;
};

export type TypeCartillaResults = {
  data: Datos[];
  total_clinicas: number;
  meta: Meta;
};

export type Datos = {
  telefono: string;
  rubros: Rubro[];
  provincia: string;
  prestador: string;
  nombreDomicilio: string;
  lat: number;
  lng: number;
  localidad: string;
  especialidades: Especialidades[];
  domicilio: string;
  altura: string;
  activo: boolean;
};

export type Especialidades = {
  planes: Planes[];
  especialidad: string;
};

export type Planes = {
  nombre: Nombre;
};

export enum Nombre {
  PLANPREFERENCIAL30A49 = "PLAN PREFERENCIAL 30 a 49",
  PLANPREMIUM30A49 = "PLAN PREMIUM 30 a 49",
  PPREFEREN18A29 = "P PREFEREN 18 a 29",
  Plan100 = "Plan 100",
  Plan100Plus = "Plan 100 Plus",
  Plan200 = "Plan 200",
  Plan200Plus = "Plan 200 Plus",
  Plan300 = "Plan 300",
  Plan50 = "Plan 50",
  Plan605Plus = "Plan 605 Plus",
  Plan605Prueba = "Plan 605 prueba",
  Plan710 = "Plan 710",
  Plan710Plus = "Plan 710 Plus",
  PlanComunidadClasico = "PLAN COMUNIDAD CLASICO",
  PlanComunidadPlus = "PLAN COMUNIDAD PLUS",
  PlanEsencial = "PLAN ESENCIAL +",
  PlanEstandar = "PLAN ESTANDAR",
  PlanFamilia = "Plan Familia",
  PlanFamilia10 = "Plan Familia 10",
  PlanFamilia20 = "Plan Familia 20",
  PlanFamilia30 = "Plan Familia 30",
  PlanFlex = "PLAN FLEX",
  PlanFliaPlus = "Plan Flia Plus",
  PlanOftalmologico = "Plan Oftalmologico",
  PlanPreferencial = "PLAN PREFERENCIAL",
  PlanPreferencial70 = "PLAN PREFERENCIAL +70",
  PlanPremium = "PLAN PREMIUM",
  PlanPremium70 = "PLAN PREMIUM +70",
  PlanS100Plus = "Plan S100 Plus",
  PlanS200Plus = "Plan S200 Plus",
  PlanS605Plus = "Plan S605 Plus",
  PlanS710Plus = "Plan S710 Plus",
  PlanSenior = "Plan Senior",
  PlanSenior10 = "Plan senior 10",
  PlanSenior30 = "Plan Senior 30",
  Servicio24Hs = "Servicio 24 hs",
}

export type Rubro = {
  rubro: string;
};

export type Meta = {
  page: number;
  per_page: number;
  last_page: number;
};
