meemup-library 1.1.77 → 1.1.78

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.
@@ -0,0 +1,6 @@
1
+ declare enum EnumPickupInstruction {
2
+ None = 0,
3
+ Packed = 1,
4
+ Serving = 2
5
+ }
6
+ export default EnumPickupInstruction;
@@ -0,0 +1,7 @@
1
+ var EnumPickupInstruction;
2
+ (function (EnumPickupInstruction) {
3
+ EnumPickupInstruction[EnumPickupInstruction["None"] = 0] = "None";
4
+ EnumPickupInstruction[EnumPickupInstruction["Packed"] = 1] = "Packed";
5
+ EnumPickupInstruction[EnumPickupInstruction["Serving"] = 2] = "Serving";
6
+ })(EnumPickupInstruction || (EnumPickupInstruction = {}));
7
+ export default EnumPickupInstruction;
@@ -26,6 +26,7 @@ interface ICategory {
26
26
  spiciness: number;
27
27
  priority: number;
28
28
  allergicStuffs: number[];
29
+ color: string;
29
30
  }
30
31
  export declare const initCategory: ICategory;
31
32
  export default ICategory;
@@ -24,5 +24,6 @@ export const initCategory = {
24
24
  halal: false,
25
25
  spiciness: 0,
26
26
  priority: 0,
27
- allergicStuffs: []
27
+ allergicStuffs: [],
28
+ color: "transparent"
28
29
  };
@@ -51,6 +51,7 @@ export default interface IProduct {
51
51
  menuId: number;
52
52
  packagingCosts: number;
53
53
  depositCost: number;
54
+ thumbnailImage: string;
54
55
  weight: number;
55
56
  size: number;
56
57
  dimensions: {
@@ -37,6 +37,9 @@ interface ISetting {
37
37
  availablePaymentTypes: number[];
38
38
  customerMandatoryType: number;
39
39
  startingOrderNumberFrom: number;
40
+ additionalPickupInstructions: boolean;
41
+ coloredTiles: boolean;
42
+ displayImages: boolean;
40
43
  }
41
44
  export default ISetting;
42
45
  export declare const initSetting: ISetting;
@@ -37,5 +37,8 @@ export const initSetting = {
37
37
  reportsAccess: true,
38
38
  availablePaymentTypes: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
39
39
  customerMandatoryType: 1,
40
- startingOrderNumberFrom: 1000
40
+ startingOrderNumberFrom: 1000,
41
+ additionalPickupInstructions: false,
42
+ coloredTiles: false,
43
+ displayImages: false,
41
44
  };
@@ -8,6 +8,7 @@ import TOrderPayStatus from "../../types/TOrderPayStatus";
8
8
  import EnumPaymentState from "../../enums/EnumPaymentState";
9
9
  import ICalculateFeeResult from "../ICalculateFeeResult";
10
10
  import IOrderDetails from "../print/IOrderDetails";
11
+ import EnumPickupInstruction from "../../enums/EnumPickupInstruction";
11
12
  interface IOrder {
12
13
  id: number;
13
14
  number: number;
@@ -74,6 +75,7 @@ interface IOrder {
74
75
  freeze: boolean;
75
76
  numberOfAttempts: number;
76
77
  referenceId: string;
78
+ additionalPickupInstructions: EnumPickupInstruction;
77
79
  }
78
80
  export default IOrder;
79
81
  export declare const initOrder: IOrder;
@@ -5,6 +5,7 @@ import EnumTipType from "../../enums/EnumTipType";
5
5
  import EnumPaymentType from "../../enums/EnumPaymentType";
6
6
  import { INIT_TERMINAL } from "../../statics";
7
7
  import EnumPaymentState from "../../enums/EnumPaymentState";
8
+ import EnumPickupInstruction from "../../enums/EnumPickupInstruction";
8
9
  export const initOrder = {
9
10
  id: -1,
10
11
  number: 0,
@@ -79,7 +80,8 @@ export const initOrder = {
79
80
  showCashCalculatorWindow: true,
80
81
  freeze: false,
81
82
  numberOfAttempts: 0,
82
- referenceId: ""
83
+ referenceId: "",
84
+ additionalPickupInstructions: EnumPickupInstruction.Packed
83
85
  // previousTotalAmount: 0,
84
86
  // previousOrderAmount : 0,
85
87
  // previousPaymentState: EnumPaymentState.NOT_PAID
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.1.77",
3
+ "version": "1.1.78",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",