meemup-library 1.1.44 → 1.1.46

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 EnumNotifyOnlineStoreNewOrder {
2
+ NO_ACTION = 0,
3
+ ONLY_NOTIFY = 1,
4
+ NOTIFY_AND_OPEN_IF_POSSIBLE = 2
5
+ }
6
+ export default EnumNotifyOnlineStoreNewOrder;
@@ -0,0 +1,7 @@
1
+ var EnumNotifyOnlineStoreNewOrder;
2
+ (function (EnumNotifyOnlineStoreNewOrder) {
3
+ EnumNotifyOnlineStoreNewOrder[EnumNotifyOnlineStoreNewOrder["NO_ACTION"] = 0] = "NO_ACTION";
4
+ EnumNotifyOnlineStoreNewOrder[EnumNotifyOnlineStoreNewOrder["ONLY_NOTIFY"] = 1] = "ONLY_NOTIFY";
5
+ EnumNotifyOnlineStoreNewOrder[EnumNotifyOnlineStoreNewOrder["NOTIFY_AND_OPEN_IF_POSSIBLE"] = 2] = "NOTIFY_AND_OPEN_IF_POSSIBLE";
6
+ })(EnumNotifyOnlineStoreNewOrder || (EnumNotifyOnlineStoreNewOrder = {}));
7
+ export default EnumNotifyOnlineStoreNewOrder;
@@ -1,6 +1,7 @@
1
1
  import ITextValue from "./ITextValue";
2
2
  import EnumNewOrderWarning from "../enums/EnumNewOrderWarning";
3
3
  import IPrinterAndPrintCount from "./IPrinterAndPrintCount";
4
+ import EnumNotifyOnlineStoreNewOrder from "../enums/EnumNotifyOnlineStoreNewOrder";
4
5
  interface IPointOfSaleLocalSetting {
5
6
  defaultTerminal: ITextValue;
6
7
  deskCount: number;
@@ -19,6 +20,7 @@ interface IPointOfSaleLocalSetting {
19
20
  broadcastIpAddress: string;
20
21
  timeoutAfterOnePeriodOfSyncLocalOrders: number;
21
22
  timeoutAfterFailSyncOneLocalOrder: number;
23
+ actionForOnlineStoreNewOrder: EnumNotifyOnlineStoreNewOrder;
22
24
  defaultCashPaymentState: number;
23
25
  defaultTerminalPaymentState: number;
24
26
  }
@@ -2,6 +2,7 @@ import { INIT_TERMINAL } from "../statics";
2
2
  import EnumNewOrderWarning from "../enums/EnumNewOrderWarning";
3
3
  import { UDP_CUSTOMER_MONITOR_PRE_NAME } from "../statics";
4
4
  import EnumPaymentState from "../enums/EnumPaymentState";
5
+ import EnumNotifyOnlineStoreNewOrder from "../enums/EnumNotifyOnlineStoreNewOrder";
5
6
  export const initPointOfSaleLocalSetting = {
6
7
  defaultTerminal: INIT_TERMINAL,
7
8
  deskCount: 10,
@@ -20,6 +21,7 @@ export const initPointOfSaleLocalSetting = {
20
21
  broadcastIpAddress: "127.0.0.255",
21
22
  timeoutAfterOnePeriodOfSyncLocalOrders: 300,
22
23
  timeoutAfterFailSyncOneLocalOrder: 15,
24
+ actionForOnlineStoreNewOrder: EnumNotifyOnlineStoreNewOrder.ONLY_NOTIFY,
23
25
  // defaultPaymentState: EnumPaymentState.NOT_PAID,
24
26
  defaultCashPaymentState: EnumPaymentState.NOT_PAID,
25
27
  defaultTerminalPaymentState: EnumPaymentState.PAID,
@@ -34,7 +34,7 @@ interface IOrder {
34
34
  province: string;
35
35
  longitude: number;
36
36
  latitude: number;
37
- desk: string;
37
+ tableNo: string;
38
38
  products: IOrderItem[];
39
39
  tipType: EnumTipType;
40
40
  tip: number;
@@ -34,7 +34,7 @@ export const initOrder = {
34
34
  province: "",
35
35
  longitude: 0,
36
36
  latitude: 0,
37
- desk: "",
37
+ tableNo: "",
38
38
  //items
39
39
  products: [],
40
40
  //tip
@@ -45,7 +45,7 @@ interface IOrderDetailOrder {
45
45
  zoneId?: number | null;
46
46
  displayOnKitchenDisplay: boolean;
47
47
  items: IOrderDetailOrderItem[];
48
- table?: number;
48
+ tableNo: string;
49
49
  }
50
50
  export default IOrderDetailOrder;
51
51
  export declare const initOrderDetailOrder: IOrderDetailOrder;
@@ -45,5 +45,6 @@ export const initOrderDetailOrder = {
45
45
  canCancel: false,
46
46
  displayOnKitchenDisplay: true,
47
47
  items: [],
48
- zoneId: null
48
+ zoneId: null,
49
+ tableNo: ""
49
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.1.44",
3
+ "version": "1.1.46",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",