meemup-library 1.2.16 → 1.2.18

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.
@@ -125,7 +125,8 @@ export default new class ProductModalController {
125
125
  text: `${extraItem.quantity}x ${extraItem.title}`,
126
126
  cartItemId: -1,
127
127
  extraItemTitle: extraItem.title,
128
- extraTitle: ((_a = extras.find(i => i.id === extra.extraId)) === null || _a === void 0 ? void 0 : _a.title) + ""
128
+ extraTitle: ((_a = extras.find(i => i.id === extra.extraId)) === null || _a === void 0 ? void 0 : _a.title) + "",
129
+ extraItemOptionId: extraItem.optionId
129
130
  });
130
131
  });
131
132
  });
@@ -213,7 +214,8 @@ export default new class ProductModalController {
213
214
  oldId: extraItemModel.oldId,
214
215
  packagingCost: extraItemModel.packagingCost,
215
216
  weight: extraItemModel.weight,
216
- options: extraItemModel.options
217
+ options: extraItemModel.options,
218
+ optionId: it.extraItemOptionId
217
219
  });
218
220
  }
219
221
  });
@@ -3,5 +3,6 @@ import IExtraItem from "./IExtraItem";
3
3
  interface ISelectedExtraItem extends IExtraItem {
4
4
  quantity: number;
5
5
  pizzaSide: EnumPizzaSide;
6
+ optionId: number;
6
7
  }
7
8
  export default ISelectedExtraItem;
@@ -1,6 +1 @@
1
1
  export {};
2
- // export const initSelectedExtraItem: ISelectedExtraItem = {
3
- // ...initDExtraItem,
4
- // quantity: 0,
5
- // pizzaSide: EnumPizzaSide.none
6
- // };
@@ -3,5 +3,6 @@ interface IStarMicronicPrinter {
3
3
  value: string;
4
4
  macAddress: string;
5
5
  cashDrawerPlugged: boolean;
6
+ serialNumber: string;
6
7
  }
7
8
  export default IStarMicronicPrinter;
@@ -1,5 +1,6 @@
1
1
  interface IDProductDefaultExtraItem {
2
2
  extraItemId: number;
3
+ extraItemOptionId: number;
3
4
  side: number;
4
5
  quantity: number;
5
6
  priority: number;
@@ -10,5 +10,6 @@ interface IOrderExtraItem {
10
10
  totalAmount: number;
11
11
  pizzaSide: number;
12
12
  text: string;
13
+ extraItemOptionId: number;
13
14
  }
14
15
  export default IOrderExtraItem;
@@ -10,5 +10,7 @@ interface IOrderDetailProductsExtra {
10
10
  priority: number;
11
11
  pizzaSide: number;
12
12
  text: string;
13
+ extraItemOptionId: number | null;
14
+ extraItemOptionTitle: string;
13
15
  }
14
16
  export default IOrderDetailProductsExtra;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.2.16\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.2.18\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"