import { NutrientIntake } from './intake.interface';

export type NutrientQuantity = number | 'Tr' | '*' | 'NA';
export type NutrientUnit = 'percents' | 'g' | 'mg' | 'mcg';

export interface Nutrient {
  name: string;
  quantityPer100: NutrientQuantity;
  unit: NutrientUnit;
  category?: string;
  intakes?: NutrientIntake;
}

export interface QuantifiedNutrient extends Nutrient {
  quantity: NutrientQuantity;
}

export interface ReferencedNutrient extends QuantifiedNutrient {
  vd: '*' | number;
}
