import { IsInt, Min } from 'class-validator';
import { TransformNumber } from '../../../shared/decorators/class-transformer/transform-number.decorator';
import { NutrientPer100GramsDto } from '../../../shared/dtos/nutrients/nutrient-per-100-grams.dto';

export class RetrieveIngredientsParamsDto {
  @TransformNumber()
  @IsInt()
  @Min(1)
  id: number;
}
export class RetrieveIngredients_Ingredient {
  id: number;
  name: string;
  kcalPer100: string;
  quantity: number;
  category: string;
  nutrients: NutrientPer100GramsDto[];
}

export class RetrieveIngredientsResponseDto {
  data: RetrieveIngredients_Ingredient[];
}
