meemup-library 1.5.16 → 1.5.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.
- package/dist/controllers/ProductModalController.js +5 -0
- package/dist/interfaces/pos/IPointOfSaleApiShop.d.ts +2 -0
- package/dist/interfaces/pos/IPointOfSaleApiShop.js +2 -1
- package/dist/interfaces/pos/IPointOfSaleOrder.d.ts +1 -4
- package/dist/interfaces/pos/IPointOfSaleOrder.js +5 -4
- package/dist/interfaces/pos/IPointOfSaleOrderItem.d.ts +3 -0
- package/package.json +2 -2
|
@@ -155,6 +155,11 @@ export default new class ProductModalController {
|
|
|
155
155
|
taxable: product.taxable,
|
|
156
156
|
productName: product.name,
|
|
157
157
|
tags: product.tags,
|
|
158
|
+
bundleGroup: "",
|
|
159
|
+
bundleId: null,
|
|
160
|
+
bundleMainItem: false,
|
|
161
|
+
discount: 0,
|
|
162
|
+
_id: ""
|
|
158
163
|
};
|
|
159
164
|
}
|
|
160
165
|
productName(product) {
|
|
@@ -18,6 +18,7 @@ import IPointOfSaleRestaurantTable from "./IPointOfSaleRestaurantTable";
|
|
|
18
18
|
import IPointOfSaleCashDrawer from "./IPointOfSaleCashDrawer";
|
|
19
19
|
import IManagementSystem from "../management/IManagementSystem";
|
|
20
20
|
import IEmergencyBrake from "../IEmergencyBrake";
|
|
21
|
+
import IBundleProduct from "../management/bundle-product/bundle-product";
|
|
21
22
|
interface IPointOfSaleApiShop {
|
|
22
23
|
ok: boolean;
|
|
23
24
|
products: IProduct[];
|
|
@@ -43,6 +44,7 @@ interface IPointOfSaleApiShop {
|
|
|
43
44
|
generalSetting: IManagementSystem;
|
|
44
45
|
preOrderCount: number;
|
|
45
46
|
emergencyBrake: IEmergencyBrake;
|
|
47
|
+
bundleProducts: IBundleProduct[];
|
|
46
48
|
}
|
|
47
49
|
export default IPointOfSaleApiShop;
|
|
48
50
|
export declare const initApiShop: IPointOfSaleApiShop;
|
|
@@ -75,13 +75,10 @@ interface IPointOfSaleOrder {
|
|
|
75
75
|
deviceId: string | null;
|
|
76
76
|
status: TOrderPayStatus;
|
|
77
77
|
message: string;
|
|
78
|
-
onlyForPayment: boolean;
|
|
79
78
|
displayOnKitchenDisplay: boolean;
|
|
80
79
|
skipTipping: boolean;
|
|
81
80
|
detail: IOrderDetails | null;
|
|
82
81
|
showCashCalculatorWindow: boolean;
|
|
83
|
-
freeze: boolean;
|
|
84
|
-
numberOfAttempts: number;
|
|
85
82
|
referenceId: string;
|
|
86
83
|
additionalPickupInstructions: EnumPickupInstruction;
|
|
87
84
|
pickupInstructions: string;
|
|
@@ -93,7 +90,7 @@ interface IPointOfSaleOrder {
|
|
|
93
90
|
elavonTransaction: object | null;
|
|
94
91
|
via: "Pos" | "Online store" | string;
|
|
95
92
|
channel: EnumChannels;
|
|
96
|
-
|
|
93
|
+
ignoreBundles: number[];
|
|
97
94
|
}
|
|
98
95
|
export default IPointOfSaleOrder;
|
|
99
96
|
export declare const initOrder: IPointOfSaleOrder;
|
|
@@ -80,13 +80,13 @@ export const initOrder = {
|
|
|
80
80
|
deviceId: INIT_TERMINAL.value,
|
|
81
81
|
status: null,
|
|
82
82
|
message: "",
|
|
83
|
-
onlyForPayment: false,
|
|
83
|
+
// onlyForPayment: false,
|
|
84
84
|
displayOnKitchenDisplay: true,
|
|
85
85
|
skipTipping: false,
|
|
86
86
|
detail: null,
|
|
87
87
|
showCashCalculatorWindow: true,
|
|
88
|
-
freeze: false,
|
|
89
|
-
numberOfAttempts: 0,
|
|
88
|
+
// freeze: false,
|
|
89
|
+
// numberOfAttempts: 0,
|
|
90
90
|
referenceId: "",
|
|
91
91
|
additionalPickupInstructions: EnumPickupInstruction.Packed,
|
|
92
92
|
pickupInstructions: "",
|
|
@@ -98,5 +98,6 @@ export const initOrder = {
|
|
|
98
98
|
elavonTransaction: null,
|
|
99
99
|
via: "Pos",
|
|
100
100
|
channel: EnumChannels.POS,
|
|
101
|
-
forceRefresh: -1,
|
|
101
|
+
// forceRefresh: -1,
|
|
102
|
+
ignoreBundles: []
|
|
102
103
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.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.5.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.5.18\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|