meemup-library 1.1.45 → 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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",