import { IsDate } from 'class-validator';
import { TransformDate } from '../../../../../shared/decorators/class-transformer/transform-date.decorator';
import { MinDate } from '../../../../../shared/decorators/class-validator/min-date.decorator';
import { MealDto } from '../../../../../shared/dtos/meals/meal.dto';

export class RetrieveMealsForTheWeekQueryParamsDto {
  @TransformDate()
  @IsDate()
  @MinDate('1900-01-01')
  date: Date;
}

export class RetrieveMealsForTheWeek_MealsForTheDay {
  date: Date;
  meals: MealDto[];
}

export class RetrieveMealsForTheWeekResponseDto {
  data: RetrieveMealsForTheWeek_MealsForTheDay[];
}
