backup objs

 avatar
unknown
plain_text
a year ago
8.6 kB
1
Indexable
const getMenuAPI = {};

const getAllCategories = {
  food_preference: 'Veg',
  food_preference_id: 1,

  categories_data: [
    {
      id: 1,
      food_preference: 'Veg',
      food_preference_id: 1,
      title: 'All Meals',
      image_url: 'xyz.jpeg',
      category_id: 420,
    },
    {
      id: 2,
      food_preference: 'Veg',
      food_preference_id: 1,
      title: 'Salad Bowl',
      image_url: 'xyz.jpeg',
      category_id: 421,
    },
    {
      id: 3,
      food_preference: 'Veg',
      food_preference_id: 1,
      title: 'Grills',
      image_url: 'xyz.jpeg',
      category_id: 422,
    },
    {
      id: 4,
      food_preference: 'Veg',
      food_preference_id: 1,
      title: 'Smoothie',
      image_url: 'xyz.jpeg',
      category_id: 424,
    },
  ],
};

const getAllMeals = {
  category_id: 420,
  food_preference: 'Veg',
  food_preference_id: 1,
  // -------- if category_id & food_preference is not sent, show all meals, if present. show accordingly

  // meals_type: "Lunch/Dinner",------ meal_type will be utilized at the time of ordering & not here.

  meals_data: [
    {
      id: 1,
      meal_id: 420,
      title: 'Paneer & Veg Teriyaki Meal Bowl',
      description:
        'Healthy fried rice prepared with Brown Rice and served with Paneer and Veggies tossed in Teriyaki Sauce.',
      meal_image_url: 'image.png',
      food_preference: 'Veg',
      food_preference_id: 1,
    },
    {
      id: 2,
      meal_id: 421,
      title: 'Paneer & Veg Teriyaki Meal Bowl',
      description:
        'Healthy fried rice prepared with Brown Rice and served with Paneer and Veggies tossed in Teriyaki Sauce.',
      meal_image_url: 'image.png',
      food_preference: 'Veg',
      food_preference_id: 1,
    },
    {
      id: 3,
      meal_id: 422,
      title: 'Paneer & Veg Teriyaki Meal Bowl',
      description:
        'Healthy fried rice prepared with Brown Rice and served with Paneer and Veggies tossed in Teriyaki Sauce.',
      meal_image_url: 'image.png',
      food_preference: 'Veg',
      food_preference_id: 1,
    },
    {
      id: 4,
      meal_id: 423,
      title: 'Paneer & Veg Teriyaki Meal Bowl',
      description:
        'Healthy fried rice prepared with Brown Rice and served with Paneer and Veggies tossed in Teriyaki Sauce.',
      meal_image_url: 'image.png',
      food_preference: 'Veg',
      food_preference_id: 1,
    },
  ],
};

const getMealDetails = {
  //  for Meal Details popup
  meal_id: 420,
  meal_image_url: 'xyz',
  meal_name: 'Paneer & Veg Teriyaki Meal Bowl',
  meals_details: [
    {
      id: 1,
      title: 'Spiced Quinoa',
      meal_image_url: 'xyz',
      meal_stats: [
        {
          id: 1,
          title: 'Protein',
          value: 12,
        },
        {
          id: 1,
          title: 'Fat',
          value: 12,
        },
        {
          id: 1,
          title: 'Fibre',
          value: 12,
        },
        {
          id: 1,
          title: 'Carbs',
          value: 12,
        },
        {
          id: 1,
          title: 'Calories',
          value: 12,
        },
      ],
    },
    {
      id: 2,
      title: 'Spiced Quinoa',
      meal_stats: [
        {
          id: 1,
          title: 'Protein',
          value: 12,
        },
        {
          id: 1,
          title: 'Fat',
          value: 12,
        },
        {
          id: 1,
          title: 'Fibre',
          value: 12,
        },
        {
          id: 1,
          title: 'Carbs',
          value: 12,
        },
        {
          id: 1,
          title: 'Calories',
          value: 12,
        },
      ],
    },
  ],
};

const our_plansApi = {
  planDetails: {
    start_date: '12 Dec 2023',
    plan_id: 420,
    plan_duration: '7 Days',
    end_date: '31 March 2024',
    plan_duration_id: 4,
    price: '₹2598',
    // show per day price too
  },
  categories_data: [
    {
      id: 1,
      category_id: 12,
      title: 'Grills',
      food_preference: 'Veg', //  if food_preference is sent, show foods accordingly, else show all meals within category.
      food_preference_id: 1,
      repetition_days: '12 Days',
      meals_data: [
        {
          id: 1,
          meal_day: 'Mon-1',
          title: 'Grilled Paneer Makhani',
          meal_image_url: 'xyz',
          food_preference: 'Veg',
          food_preference_id: 1,
          calories_per_serving: 117,
          meal_stats: [
            {
              id: 1,
              title: 'protein',
              value: 12,
            },
            {
              id: 2,
              title: 'fibre',
              value: 12,
            },
            {
              id: 3,
              title: 'fat',
              value: 12,
            },
            {
              id: 4,
              title: 'carbs',
              value: 12,
            },
          ],
        },
        {
          id: 2,
          meal_day: 'Mon-1',
          title: 'Grilled Paneer Makhani',
          meal_image_url: 'xyz',
          food_preference: 'Veg',
          food_preference_id: 1,
          calories_per_serving: 117,
          meal_stats: [
            {
              id: 1,
              title: 'protein',
              value: 12,
            },
            {
              id: 2,
              title: 'fibre',
              value: 12,
            },
            {
              id: 3,
              title: 'fat',
              value: 12,
            },
            {
              id: 4,
              title: 'carbs',
              value: 12,
            },
          ],
        },
        {
          id: 3,
          meal_day: 'Mon-1',
          title: 'Grilled Paneer Makhani',
          meal_image_url: 'xyz',
          food_preference: 'Veg',
          food_preference_id: 1,
          calories_per_serving: 117,
          meal_stats: [
            {
              id: 1,
              title: 'protein',
              value: 12,
            },
            {
              id: 2,
              title: 'fibre',
              value: 12,
            },
            {
              id: 3,
              title: 'fat',
              value: 12,
            },
            {
              id: 4,
              title: 'carbs',
              value: 12,
            },
          ],
        },
      ],
    },
    {
      id: 2,
      category_id: 22,
      title: 'Salads',
      food_preference: 'Veg',
      food_preference_id: 1,
      repetition_days: '12 Days',
      meals_data: [
        {
          id: 1,
          meal_day: 'Mon-1',
          title: 'Grilled Paneer Makhani',
          meal_image_url: 'xyz',
          food_preference: 'Veg',
          food_preference_id: 1,
          calories_per_serving: 117,
          meal_stats: [
            {
              id: 1,
              title: 'protein',
              value: 12,
            },
            {
              id: 2,
              title: 'fibre',
              value: 12,
            },
            {
              id: 3,
              title: 'fat',
              value: 12,
            },
            {
              id: 4,
              title: 'carbs',
              value: 12,
            },
          ],
        },
        {
          id: 2,
          meal_day: 'Mon-1',
          title: 'Grilled Paneer Makhani',
          meal_image_url: 'xyz',
          food_preference: 'Veg',
          food_preference_id: 1,
          calories_per_serving: 117,
          meal_stats: [
            {
              id: 1,
              title: 'protein',
              value: 12,
            },
            {
              id: 2,
              title: 'fibre',
              value: 12,
            },
            {
              id: 3,
              title: 'fat',
              value: 12,
            },
            {
              id: 4,
              title: 'carbs',
              value: 12,
            },
          ],
        },
        {
          id: 3,
          meal_day: 'Mon-1',
          title: 'Grilled Paneer Makhani',
          meal_image_url: 'xyz',
          food_preference: 'Veg',
          food_preference_id: 1,
          calories_per_serving: 117,
          meal_stats: [
            {
              id: 1,
              title: 'protein',
              value: 12,
            },
            {
              id: 2,
              title: 'fibre',
              value: 12,
            },
            {
              id: 3,
              title: 'fat',
              value: 12,
            },
            {
              id: 4,
              title: 'carbs',
              value: 12,
            },
          ],
        },
      ],
    },
  ],
};
Editor is loading...
Leave a Comment