PassioFoodItem

FieldDescriptionType

id

Unique identifier for the food item

PassioID

name

Name of the food item

string

details

Additional details or description of the food item

string

iconId

Icon identifier for the food item

PassioID | string

amount

Amount of the food item (e.g., quantity, volume)

PassioFoodAmount

ingredients

List of ingredients used in the food item

PassioIngredient[]

nutrientsSelectedSize

Nutritional information for the food item

PassioNutrients

nutrientsReference

Reference nutritional information for comparison

PassioNutrients

nutrients

Additional nutritional information

PassioNutrients

weight

Weight of the food item, measured in units of mass

UnitMass

isOpenFood

Boolean indicating whether the data is sourced from openfood.org

boolean

export interface PassioFoodItem {
  // Unique identifier for the food item
  id: PassioID

  // Name of the food item
  name: string

  // Additional details or description of the food item
  details: string

  // Icon identifier for the food item
  iconId: PassioID | string

  // Amount of the food item (e.g., quantity, volume)
  amount: PassioFoodAmount

  // List of ingredients used in the food item
  ingredients?: PassioIngredient[]

  // Nutritional information for the food item
  nutrientsSelectedSize: PassioNutrients

  // Reference nutritional information for comparison
  nutrientsReference: PassioNutrients

  // Reference nutritional information for comparison
  nutrients: PassioNutrients

  // Weight of the food item, measured in units of mass
  weight: UnitMass

  /**
   * food item credits to openfood.org when the data is coming from them
   */
  isOpenFood?: boolean
}

Last updated