meemup-library 1.6.3 → 1.6.5
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/enums/EnumPointOfSaleOrderItemSharingType.d.ts +7 -0
- package/dist/enums/EnumPointOfSaleOrderItemSharingType.js +8 -0
- package/dist/interfaces/IPrintTemplate.d.ts +6 -0
- package/dist/interfaces/IPrintTemplate.js +2 -0
- package/dist/interfaces/pos/IPointOfSaleOrderItem.d.ts +2 -0
- package/dist/interfaces/pos/IPointOfSaleOrderItem.js +3 -1
- package/dist/interfaces/pos/IPointOfSaleOrderTransaction.d.ts +1 -0
- package/dist/interfaces/pos/point-of-sale-order-item-seat.d.ts +2 -0
- package/package.json +2 -2
- package/dist/interfaces/pos/IPointOfSaleProductScreenState.d.ts +0 -15
- package/dist/interfaces/pos/IPointOfSaleProductScreenState.js +0 -12
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare enum EnumPointOfSaleOrderItemSharingType {
|
|
2
|
+
None = 0,// for delivery and pickup orders
|
|
3
|
+
Single = 1,// for dine-in (every seat specific integer count of product)
|
|
4
|
+
Shared = 2,// for dine-in (every seat specific percentage of product)
|
|
5
|
+
EqualSplit = 3
|
|
6
|
+
}
|
|
7
|
+
export default EnumPointOfSaleOrderItemSharingType;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var EnumPointOfSaleOrderItemSharingType;
|
|
2
|
+
(function (EnumPointOfSaleOrderItemSharingType) {
|
|
3
|
+
EnumPointOfSaleOrderItemSharingType[EnumPointOfSaleOrderItemSharingType["None"] = 0] = "None";
|
|
4
|
+
EnumPointOfSaleOrderItemSharingType[EnumPointOfSaleOrderItemSharingType["Single"] = 1] = "Single";
|
|
5
|
+
EnumPointOfSaleOrderItemSharingType[EnumPointOfSaleOrderItemSharingType["Shared"] = 2] = "Shared";
|
|
6
|
+
EnumPointOfSaleOrderItemSharingType[EnumPointOfSaleOrderItemSharingType["EqualSplit"] = 3] = "EqualSplit"; // for dine-in (every seat equal percentage of product)
|
|
7
|
+
})(EnumPointOfSaleOrderItemSharingType || (EnumPointOfSaleOrderItemSharingType = {}));
|
|
8
|
+
export default EnumPointOfSaleOrderItemSharingType;
|
|
@@ -65,5 +65,11 @@ export default interface IPrintTemplate {
|
|
|
65
65
|
printCustomerDetailsInLarge: boolean;
|
|
66
66
|
printASAPLabel: boolean;
|
|
67
67
|
skipWholePizzaToppingText: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* If enabled, products will be grouped and printed based on their assigned seats.
|
|
70
|
+
* This is primarily used for Dine-in orders.
|
|
71
|
+
*/
|
|
72
|
+
printProductsBySeat: boolean;
|
|
73
|
+
showSeatRatioInPrint: boolean;
|
|
68
74
|
}
|
|
69
75
|
export declare const initPrintTemplate: IPrintTemplate;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import EnumPointOfSaleOrderItemSharingType from "../../enums/EnumPointOfSaleOrderItemSharingType";
|
|
1
2
|
import IPointOfSaleOrderExtraItem from "./IPointOfSaleOrderExtraItem";
|
|
2
3
|
import PointOfSaleOrderItemSeat from "./point-of-sale-order-item-seat";
|
|
3
4
|
interface IPointOfSaleOrderItem {
|
|
@@ -29,6 +30,7 @@ interface IPointOfSaleOrderItem {
|
|
|
29
30
|
seats: PointOfSaleOrderItemSeat[];
|
|
30
31
|
_id?: string;
|
|
31
32
|
discount?: number;
|
|
33
|
+
sharingType: EnumPointOfSaleOrderItemSharingType;
|
|
32
34
|
}
|
|
33
35
|
export default IPointOfSaleOrderItem;
|
|
34
36
|
export declare const initPointOfSaleOrderItem: IPointOfSaleOrderItem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import EnumPointOfSaleOrderItemSharingType from "../../enums/EnumPointOfSaleOrderItemSharingType";
|
|
1
2
|
export const initPointOfSaleOrderItem = {
|
|
2
3
|
id: -1,
|
|
3
4
|
categoryId: -1,
|
|
@@ -24,5 +25,6 @@ export const initPointOfSaleOrderItem = {
|
|
|
24
25
|
taxable: false,
|
|
25
26
|
productName: "",
|
|
26
27
|
tags: [],
|
|
27
|
-
seats: []
|
|
28
|
+
seats: [],
|
|
29
|
+
sharingType: EnumPointOfSaleOrderItemSharingType.None,
|
|
28
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
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.6.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.6.5\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import TBaseExtra from "../../types/TBaseExtra";
|
|
2
|
-
import ISelectedProductExtra from "../ISelectedProductExtra";
|
|
3
|
-
export default interface IPointOfSaleProductScreenState {
|
|
4
|
-
id: number;
|
|
5
|
-
count: number;
|
|
6
|
-
selected: ISelectedProductExtra[];
|
|
7
|
-
note: string;
|
|
8
|
-
price: number;
|
|
9
|
-
wait: boolean;
|
|
10
|
-
problems: number[];
|
|
11
|
-
check: boolean;
|
|
12
|
-
base: TBaseExtra;
|
|
13
|
-
seats: string[];
|
|
14
|
-
}
|
|
15
|
-
export declare const initPointOfSaleProductScreenState: IPointOfSaleProductScreenState;
|