meemup-library 1.1.14 → 1.1.16

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.
@@ -154,7 +154,7 @@ export default new class ProductModalController {
154
154
  return product.posName === "" ? product.name : product.posName;
155
155
  }
156
156
  productImage(product) {
157
- return product.imageName === null ? "" : product.imageName;
157
+ return product.imageFullPath === null ? "" : product.imageFullPath;
158
158
  }
159
159
  productPrice(product, orderType) {
160
160
  switch (orderType) {
@@ -0,0 +1,6 @@
1
+ declare enum EnumShowCategoryExtras {
2
+ NO = 0,
3
+ BEFORE = 1,
4
+ AFTER = 2
5
+ }
6
+ export default EnumShowCategoryExtras;
@@ -0,0 +1,7 @@
1
+ var EnumShowCategoryExtras;
2
+ (function (EnumShowCategoryExtras) {
3
+ EnumShowCategoryExtras[EnumShowCategoryExtras["NO"] = 0] = "NO";
4
+ EnumShowCategoryExtras[EnumShowCategoryExtras["BEFORE"] = 1] = "BEFORE";
5
+ EnumShowCategoryExtras[EnumShowCategoryExtras["AFTER"] = 2] = "AFTER";
6
+ })(EnumShowCategoryExtras || (EnumShowCategoryExtras = {}));
7
+ export default EnumShowCategoryExtras;
@@ -0,0 +1,8 @@
1
+ declare enum EnumTransferStatus {
2
+ PENDING = 0,
3
+ CANCELED = 1,
4
+ IN_TRANSIT = 2,
5
+ FAILED = 3,
6
+ DONE = 4
7
+ }
8
+ export default EnumTransferStatus;
@@ -0,0 +1,9 @@
1
+ var EnumTransferStatus;
2
+ (function (EnumTransferStatus) {
3
+ EnumTransferStatus[EnumTransferStatus["PENDING"] = 0] = "PENDING";
4
+ EnumTransferStatus[EnumTransferStatus["CANCELED"] = 1] = "CANCELED";
5
+ EnumTransferStatus[EnumTransferStatus["IN_TRANSIT"] = 2] = "IN_TRANSIT";
6
+ EnumTransferStatus[EnumTransferStatus["FAILED"] = 3] = "FAILED";
7
+ EnumTransferStatus[EnumTransferStatus["DONE"] = 4] = "DONE";
8
+ })(EnumTransferStatus || (EnumTransferStatus = {}));
9
+ export default EnumTransferStatus;
@@ -1,8 +1,10 @@
1
+ import IAllergicStuffs from "./IAllergicStuffs";
1
2
  import IProductExtra from "./IProductExtra";
2
- interface IProduct {
3
+ export default interface IProduct {
3
4
  id: number;
4
5
  available: boolean;
5
6
  notAvailableToDate: string | null;
7
+ displayWhenNotAvailable: boolean;
6
8
  name: string;
7
9
  posName: string;
8
10
  kitchenReceiptName: string;
@@ -10,38 +12,40 @@ interface IProduct {
10
12
  extrasDescription: string;
11
13
  minOrderQuantity: number;
12
14
  maxOrderQuantity: number;
15
+ availableIn: number;
13
16
  deliveryPrice: number;
17
+ diningPrice: number;
14
18
  pickupPrice: number;
19
+ availableForOrderingType: number;
15
20
  color: string | null;
16
21
  eanBarcode: string;
17
- imageFullPath: string;
22
+ imageFullPath: string | null;
23
+ imageBase64: string | null;
18
24
  preperationTime: string;
19
25
  showFromDate: string | null;
20
26
  showFromTime: string | null;
21
27
  showToDate: string | null;
22
28
  showToTime: string | null;
29
+ onlyOnWeekDays: number | null;
23
30
  vegetarian: boolean;
31
+ vegan: boolean;
24
32
  organic: boolean;
25
33
  halal: boolean;
26
34
  spiciness: number;
27
35
  showCategoryExtras: boolean;
28
- mainCategoryId: number;
29
- extras: IProductExtra[];
36
+ deleted: boolean;
37
+ mainCategoryId: number | null | "";
38
+ allergicStuffsId: number[];
39
+ allergicStuffs: IAllergicStuffs[];
30
40
  inMultipleCategories: boolean;
31
41
  categories: number[];
32
42
  containsAlcohol: boolean;
33
- vegan: boolean;
34
43
  calories: number;
35
- availableIn: number;
36
44
  points: number;
37
45
  chosenExtraItemsMode: number;
38
- customizable: boolean;
46
+ extras: IProductExtra[];
39
47
  defaultExtraItems: any[];
40
- diningPrice: number;
41
- availableForOrdering: number;
42
- imageName: string;
43
- onlyOnWeekDays: number | null;
44
- allergicStuffs: number[];
48
+ customizable: boolean;
45
49
  displayOnKitchenDisplay: boolean;
50
+ menuId: number;
46
51
  }
47
- export default IProduct;
@@ -3,6 +3,8 @@ interface ISpecificPayment {
3
3
  skipTipping: boolean;
4
4
  remark: string;
5
5
  device: number | null;
6
+ taxIsIncluded: boolean;
7
+ printReceipt: boolean;
6
8
  }
7
9
  export declare const initSpecificPayment: ISpecificPayment;
8
10
  export default ISpecificPayment;
@@ -2,5 +2,7 @@ export const initSpecificPayment = {
2
2
  amount: "",
3
3
  device: null,
4
4
  remark: "",
5
- skipTipping: true
5
+ skipTipping: true,
6
+ printReceipt: true,
7
+ taxIsIncluded: false
6
8
  };
@@ -4,6 +4,7 @@ interface IDProduct {
4
4
  id: number;
5
5
  available: boolean;
6
6
  notAvailableToDate: string | null;
7
+ displayWhenNotAvailable: boolean;
7
8
  name: string;
8
9
  posName: string;
9
10
  kitchenReceiptName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",