Source: app/util/proptypes/apiEntities/food.js

import PropTypes from 'prop-types';

/** @module */

/**
 * Reusable object to use in `propTypes` for a `food` prop.
 * @type {Object}
 * @category templating
 */
const FoodShape = {
  id: PropTypes.string,
  portionId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
  memberId: PropTypes.string,
  mealCategoryId: PropTypes.number,
  plannedDayId: PropTypes.string,
  planDateUtc: PropTypes.string,
  productId: PropTypes.string,
  productName: PropTypes.string,
  portionDescription: PropTypes.string,
  portionWeight: PropTypes.number,
  brandId: PropTypes.string,
  brandName: PropTypes.string,
  displayName: PropTypes.string,
  foodOptimisingCategory: PropTypes.string,
  synValue: PropTypes.number,
  synString: PropTypes.string,
  isF: PropTypes.bool,
  isC: PropTypes.bool,
  isS: PropTypes.bool,
  isP: PropTypes.bool,
  plannedRecipeId: PropTypes.string,
  dateCreatedUtc: PropTypes.string,
  lastUpdatedDateTimeUtc: PropTypes.string,
  multiplePortionOrFractionOfSynValue: PropTypes.number,
  ffHeId: PropTypes.number,
  healthyExtraSynned: PropTypes.bool,
};

export default FoodShape;