Commit 0c340cf3 authored by Omar Luna Hernández's avatar Omar Luna Hernández
Browse files

Se agregan los campos de hora de apertura y cierre, días disponibles y la...

Se agregan los campos de hora de apertura y cierre, días disponibles y la fecha disponible, además se agregan algunos enumerados
parent a893107c
Loading
Loading
Loading
Loading
+31 −7
Original line number Diff line number Diff line
export interface PlaceFormValues{
  idTown: number;
    names: string[];
  name: string;
  descriptions: string[];
  latitude: number;
  longitude: number;
  openAt: number;
  closeAt: number;
  available: AvailableDays;
  imagesList: File[];
  startDate?: Date;
  endDate?: Date;
}

export enum AvailableDays {
  WEEKEND = 'weekend',
  ALL_DAYS = 'all_days',
  WEEKDAYS = 'weekdays',
  CUSTOM = 'custom'
}

export interface availableDaysOption{
  option: AvailableDays;
  name: string;
}

export const availableDaysList= [
  { option: AvailableDays.WEEKEND, name: 'Fines de semana' },
  { option: AvailableDays.ALL_DAYS, name: 'Todos los dias' },
  { option: AvailableDays.WEEKDAYS, name: 'Lunes a Viernes' },
  { option: AvailableDays.CUSTOM, name: 'Personalizado' }
];
 No newline at end of file