import { z } from 'zod';

export const FoodLabel = {
  NotSet: 0,
  Organic: 1,
  Vegetarian: 2,
  Vegan: 4,
  Halal: 8,
  Kashrut: 16,
  Pasteurised: 32,
  ExtendedShelfLife: 64,
  UltraHighTemperature: 128,
  RawFood: 256,
  NotSuitableForPregnantWomen: 512,
  NotSuitableForChildren: 1024,
  ContainsAlcolhol: 3584,
  ContainsCaffein: 5632,
  ContainsBeef: 8192,
  ContainsPork: 16384,
  ContainsFish: 32768,
  ContainsRawMilk: 66048,
} as const;

export const FoodLabelSchema = z.nativeEnum(FoodLabel).describe('Food label');

export type FoodLabel = z.infer<typeof FoodLabelSchema>;
