@open-tender/utils 0.4.79 → 0.4.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -283,7 +283,7 @@ const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints = false
283
283
  id: item.id,
284
284
  imageUrl: item.large_image_url,
285
285
  increment: item.increment,
286
- // index: null,
286
+ index: item.index,
287
287
  ingredients: item.ingredients,
288
288
  isSoldOut: isSoldOut,
289
289
  madeFor: simpleItem ? simpleItem.made_for || null : null,
@@ -53,6 +53,7 @@ export declare const makeOtherMenuSections: (displayedSections: MenuDisplayedSec
53
53
  exclude_from_builder: boolean;
54
54
  list_name: string | null;
55
55
  list_id: string | null;
56
+ index?: number | undefined;
56
57
  }[];
57
58
  }[];
58
59
  export declare const makeFlatCategories: (categories: MenuCategories) => {
@@ -100,6 +101,7 @@ export declare const makeFlatCategories: (categories: MenuCategories) => {
100
101
  exclude_from_builder: boolean;
101
102
  list_name: string | null;
102
103
  list_id: string | null;
104
+ index?: number | undefined;
103
105
  }[];
104
106
  app_image_url: string | null;
105
107
  appearance: import("@open-tender/types").MenuCategoryAppearance;
@@ -268,7 +268,7 @@ export const makeOrderItem = (item, isEdit, soldOut = [], simpleItem, hasPoints
268
268
  id: item.id,
269
269
  imageUrl: item.large_image_url,
270
270
  increment: item.increment,
271
- // index: null,
271
+ index: item.index,
272
272
  ingredients: item.ingredients,
273
273
  isSoldOut: isSoldOut,
274
274
  madeFor: simpleItem ? simpleItem.made_for || null : null,
@@ -53,6 +53,7 @@ export declare const makeOtherMenuSections: (displayedSections: MenuDisplayedSec
53
53
  exclude_from_builder: boolean;
54
54
  list_name: string | null;
55
55
  list_id: string | null;
56
+ index?: number | undefined;
56
57
  }[];
57
58
  }[];
58
59
  export declare const makeFlatCategories: (categories: MenuCategories) => {
@@ -100,6 +101,7 @@ export declare const makeFlatCategories: (categories: MenuCategories) => {
100
101
  exclude_from_builder: boolean;
101
102
  list_name: string | null;
102
103
  list_id: string | null;
104
+ index?: number | undefined;
103
105
  }[];
104
106
  app_image_url: string | null;
105
107
  appearance: import("@open-tender/types").MenuCategoryAppearance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.4.79",
3
+ "version": "0.4.80",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -36,7 +36,7 @@
36
36
  "private": false,
37
37
  "devDependencies": {
38
38
  "@emotion/react": "^11.10.4",
39
- "@open-tender/types": "^0.4.109",
39
+ "@open-tender/types": "^0.4.111",
40
40
  "@reduxjs/toolkit": "^1.8.5",
41
41
  "@types/google.maps": "^3.53.5",
42
42
  "@types/jest": "^29.5.11",