meemup-library 1.0.83 → 1.0.85
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/CustomerFacingDisplayPacketController.d.ts +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/interfaces/{ILocalSetting.d.ts → IPointOfSaleLocalSetting.d.ts} +5 -3
- package/dist/interfaces/{ILocalSetting.js → IPointOfSaleLocalSetting.js} +4 -2
- package/dist/interfaces/IPointOfSaleStore.d.ts +2 -2
- package/dist/interfaces/IStore.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import IPointOfSaleLocalSetting from "../interfaces/IPointOfSaleLocalSetting";
|
|
2
2
|
import ISetting from "../interfaces/ISetting";
|
|
3
3
|
import ICustomerFacingDisplayPacket from "../interfaces/cfds/ICustomerFacingDisplayPacket";
|
|
4
4
|
import IOrder from "../interfaces/order/IOrder";
|
|
5
5
|
declare const _default: {
|
|
6
|
-
code(order: IOrder, setting: ISetting, localSetting:
|
|
6
|
+
code(order: IOrder, setting: ISetting, localSetting: IPointOfSaleLocalSetting): ICustomerFacingDisplayPacket;
|
|
7
7
|
decode(data: string): ICustomerFacingDisplayPacket;
|
|
8
8
|
};
|
|
9
9
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export * from "./interfaces/IExtraItem";
|
|
|
57
57
|
export * from "./interfaces/IGeneralInformation";
|
|
58
58
|
export * from "./interfaces/IGeneralItems";
|
|
59
59
|
export * from "./interfaces/IKitchenScreenSetting";
|
|
60
|
-
export * from "./interfaces/
|
|
60
|
+
export * from "./interfaces/IPointOfSaleLocalSetting";
|
|
61
61
|
export * from "./interfaces/ILocation";
|
|
62
62
|
export * from "./interfaces/ILog";
|
|
63
63
|
export * from "./interfaces/ILogin";
|
package/dist/index.js
CHANGED
|
@@ -57,7 +57,7 @@ export * from "./interfaces/IExtraItem";
|
|
|
57
57
|
export * from "./interfaces/IGeneralInformation";
|
|
58
58
|
export * from "./interfaces/IGeneralItems";
|
|
59
59
|
export * from "./interfaces/IKitchenScreenSetting";
|
|
60
|
-
export * from "./interfaces/
|
|
60
|
+
export * from "./interfaces/IPointOfSaleLocalSetting";
|
|
61
61
|
export * from "./interfaces/ILocation";
|
|
62
62
|
export * from "./interfaces/ILog";
|
|
63
63
|
export * from "./interfaces/ILogin";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import ITextValue from "./ITextValue";
|
|
2
2
|
import EnumNewOrderWarning from "../enums/EnumNewOrderWarning";
|
|
3
3
|
import IPrinterAndPrintCount from "./IPrinterAndPrintCount";
|
|
4
|
-
interface
|
|
4
|
+
interface IPointOfSaleLocalSetting {
|
|
5
5
|
defaultTerminal: ITextValue;
|
|
6
6
|
deskCount: number;
|
|
7
7
|
useAppAsPrintAgent: boolean;
|
|
@@ -17,6 +17,8 @@ interface ILocalSetting {
|
|
|
17
17
|
dashboardDefaultTake: number;
|
|
18
18
|
dashboardTakePlus: number;
|
|
19
19
|
broadcastIpAddress: string;
|
|
20
|
+
timeoutAfterOnePeriodOfSyncLocalOrders: number;
|
|
21
|
+
timeoutAfterFailSyncOneLocalOrder: number;
|
|
20
22
|
}
|
|
21
|
-
export default
|
|
22
|
-
export declare const
|
|
23
|
+
export default IPointOfSaleLocalSetting;
|
|
24
|
+
export declare const initPointOfSaleLocalSetting: IPointOfSaleLocalSetting;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { INIT_TERMINAL } from "../statics";
|
|
2
2
|
import EnumNewOrderWarning from "../enums/EnumNewOrderWarning";
|
|
3
3
|
import { UDP_CUSTOMER_MONITOR_PRE_NAME } from "../statics";
|
|
4
|
-
export const
|
|
4
|
+
export const initPointOfSaleLocalSetting = {
|
|
5
5
|
defaultTerminal: INIT_TERMINAL,
|
|
6
6
|
deskCount: 10,
|
|
7
7
|
useAppAsPrintAgent: false,
|
|
@@ -16,5 +16,7 @@ export const initLocalSetting = {
|
|
|
16
16
|
findStarMicronicPrinterTimeout: 5,
|
|
17
17
|
dashboardDefaultTake: 5,
|
|
18
18
|
dashboardTakePlus: 10,
|
|
19
|
-
broadcastIpAddress: "127.0.0.255"
|
|
19
|
+
broadcastIpAddress: "127.0.0.255",
|
|
20
|
+
timeoutAfterOnePeriodOfSyncLocalOrders: 300,
|
|
21
|
+
timeoutAfterFailSyncOneLocalOrder: 15,
|
|
20
22
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import IAccount from "./IAccount";
|
|
2
|
-
import
|
|
2
|
+
import IPointOfSaleLocalSetting from "./IPointOfSaleLocalSetting";
|
|
3
3
|
import IOnlineOrderItem from "./IOnlineOrderItem";
|
|
4
4
|
import IOrderScreenState from "./IOrderScreenState";
|
|
5
5
|
import IPaymentStatusChanged from "./IPaymentStatusChanged";
|
|
@@ -16,7 +16,7 @@ interface IPointOfSaleStore {
|
|
|
16
16
|
isConnected: boolean;
|
|
17
17
|
productModals: IProductModalState[];
|
|
18
18
|
starMicronicTasks: IStarMicronicPrintTask[];
|
|
19
|
-
localSetting:
|
|
19
|
+
localSetting: IPointOfSaleLocalSetting;
|
|
20
20
|
customPayment: IPaymentStatusChanged;
|
|
21
21
|
workScreen: IWorkScreen;
|
|
22
22
|
}
|
|
@@ -15,7 +15,7 @@ import IGeneralItems from "./IGeneralItems";
|
|
|
15
15
|
import IProductModalState from "./IProductModalState";
|
|
16
16
|
import IPrintTemplate from "./IPrintTemplate";
|
|
17
17
|
import IStarMicronicPrintTask from "./IStarMicronicPrintTask";
|
|
18
|
-
import
|
|
18
|
+
import IPointOfSaleLocalSetting from "./IPointOfSaleLocalSetting";
|
|
19
19
|
import IOrderDetails from "./print/IOrderDetails";
|
|
20
20
|
import IOrderState from "./IOrderState";
|
|
21
21
|
import IPaymentStatusChanged from "./IPaymentStatusChanged";
|
|
@@ -44,7 +44,7 @@ interface IStore {
|
|
|
44
44
|
productModals: IProductModalState[];
|
|
45
45
|
starMicronicPrinters: IStarMicronicPrinter[];
|
|
46
46
|
starMicronicTasks: IStarMicronicPrintTask[];
|
|
47
|
-
localSetting:
|
|
47
|
+
localSetting: IPointOfSaleLocalSetting;
|
|
48
48
|
ordersDetails: IOrderDetails[];
|
|
49
49
|
driversNames: ITextValue[];
|
|
50
50
|
orderStates: IOrderState[];
|