PassioFoodItem

Field
Description
Type

refCode

unique identifier for the food item

RefCode

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[]

ingredientWeight

Weight of the food item, measured in units of mass

UnitMass

isOpenFood

Boolean indicating whether the data is sourced from openfood.org

boolean

id

string



export interface PassioFoodItem {
  // Reference code of Passio food item
  refCode: RefCode

  // 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[]

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

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

  /**
   * food item credits to openfood.org when the data is coming from them
   * Show food license name
   */
  openFoodLicense?: string

  id: string
}

Last updated