meemup-library 1.0.73 → 1.0.75
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.d.ts +1 -1
- package/dist/interfaces/IApiShop.d.ts +0 -2
- package/dist/interfaces/IApiShop.js +0 -2
- package/dist/interfaces/IPaymentStatusChanged.d.ts +2 -2
- package/dist/interfaces/IPointOfSaleStore.d.ts +24 -0
- package/dist/interfaces/IPointOfSaleStore.js +1 -0
- package/dist/interfaces/IPrintTemplate.d.ts +2 -2
- package/dist/interfaces/IProductModalState.d.ts +1 -1
- package/dist/interfaces/ISaveOrder.d.ts +1 -1
- package/dist/interfaces/IWorkScreen.d.ts +3 -0
- package/dist/interfaces/IWorkScreen.js +2 -0
- package/dist/interfaces/order/IOrder.d.ts +2 -2
- package/dist/types/TBaseExtra.d.ts +2 -1
- package/dist/types/TOrderPayStatus.d.ts +2 -0
- package/dist/types/TOrderPayStatus.js +1 -0
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import ISelectedProductExtra from "../interfaces/ISelectedProductExtra";
|
|
|
5
5
|
import ITextValue from "../interfaces/ITextValue";
|
|
6
6
|
import IDExtraItem from "../interfaces/database/IDExtraItem";
|
|
7
7
|
import IDExtra from "../interfaces/database/IDExtra";
|
|
8
|
-
import
|
|
8
|
+
import TBaseExtra from "../types/TBaseExtra";
|
|
9
9
|
import IOrderItem from "../interfaces/order/IOrderItem";
|
|
10
10
|
import IDProduct from "../interfaces/database/IDProduct";
|
|
11
11
|
import IProduct from "../interfaces/IProduct";
|
|
@@ -3,7 +3,6 @@ import ICategory from "./ICategory";
|
|
|
3
3
|
import IExtra from "./IExtra";
|
|
4
4
|
import ISetting from "./ISetting";
|
|
5
5
|
import IGeneralInformation from "./IGeneralInformation";
|
|
6
|
-
import ISystem from "./ISystem";
|
|
7
6
|
import ICustomer from "./ICustomer";
|
|
8
7
|
import ITextValue from "./ITextValue";
|
|
9
8
|
import ICheckoutOption from "./ICheckoutOption";
|
|
@@ -18,7 +17,6 @@ interface IApiShop {
|
|
|
18
17
|
extras: IExtra[];
|
|
19
18
|
setting: ISetting;
|
|
20
19
|
generalInformation: IGeneralInformation;
|
|
21
|
-
system: ISystem;
|
|
22
20
|
customers: ICustomer[];
|
|
23
21
|
printTemplates: IPrintTemplate[];
|
|
24
22
|
terminals: ITextValue[];
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { initSetting } from "./ISetting";
|
|
2
2
|
import { initGeneralInformation } from "./IGeneralInformation";
|
|
3
|
-
import { initSystem } from "./ISystem";
|
|
4
3
|
import { initCheckoutOption } from "./ICheckoutOption";
|
|
5
4
|
import { initGeneralItems } from "./IGeneralItems";
|
|
6
5
|
export const initApiShop = {
|
|
7
6
|
ok: false,
|
|
8
7
|
extras: [],
|
|
9
|
-
system: initSystem,
|
|
10
8
|
customers: [],
|
|
11
9
|
categories: [],
|
|
12
10
|
generalInformation: initGeneralInformation,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import TOrderPayStatus from "../types/TOrderPayStatus";
|
|
2
2
|
interface IPaymentStatusChanged {
|
|
3
3
|
message: string;
|
|
4
|
-
status:
|
|
4
|
+
status: TOrderPayStatus;
|
|
5
5
|
paymentToken: string;
|
|
6
6
|
}
|
|
7
7
|
export default IPaymentStatusChanged;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import IAccount from "./IAccount";
|
|
2
|
+
import ILocalSetting from "./ILocalSetting";
|
|
3
|
+
import IOnlineOrderItem from "./IOnlineOrderItem";
|
|
4
|
+
import IOrderScreenState from "./IOrderScreenState";
|
|
5
|
+
import IPaymentStatusChanged from "./IPaymentStatusChanged";
|
|
6
|
+
import IProductModalState from "./IProductModalState";
|
|
7
|
+
import IStarMicronicPrintTask from "./IStarMicronicPrintTask";
|
|
8
|
+
import IWorkScreen from "./IWorkScreen";
|
|
9
|
+
import IOrder from "./order/IOrder";
|
|
10
|
+
interface IPointOfSaleStore {
|
|
11
|
+
account: IAccount;
|
|
12
|
+
orderScreen: IOrderScreenState;
|
|
13
|
+
order: IOrder;
|
|
14
|
+
onlineOrders: IOnlineOrderItem[];
|
|
15
|
+
localOrders: IOrder[];
|
|
16
|
+
orders: IOrder[];
|
|
17
|
+
isConnected: boolean;
|
|
18
|
+
productModals: IProductModalState[];
|
|
19
|
+
starMicronicTasks: IStarMicronicPrintTask[];
|
|
20
|
+
localSetting: ILocalSetting;
|
|
21
|
+
customPayment: IPaymentStatusChanged;
|
|
22
|
+
workScreen: IWorkScreen;
|
|
23
|
+
}
|
|
24
|
+
export default IPointOfSaleStore;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -37,9 +37,9 @@ export default interface IPrintTemplate {
|
|
|
37
37
|
sortProducts: number;
|
|
38
38
|
showCategoryTitle: boolean;
|
|
39
39
|
printOnlyCertainCategories: boolean;
|
|
40
|
-
printOnlyCertainCategoriesList:
|
|
40
|
+
printOnlyCertainCategoriesList: any[];
|
|
41
41
|
printOnlyCertainProducts: boolean;
|
|
42
|
-
printOnlyCertainProductsList:
|
|
42
|
+
printOnlyCertainProductsList: any[];
|
|
43
43
|
textEnd: string;
|
|
44
44
|
textEndCenter: boolean;
|
|
45
45
|
promoCode: string | null;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import TApiStatus from "../types/TApiStatus";
|
|
1
2
|
import IOrderDetails from "./print/IOrderDetails";
|
|
2
3
|
interface IWorkScreen {
|
|
3
4
|
screen: string;
|
|
4
5
|
waitLogOut: boolean;
|
|
5
6
|
waitDestroyToken: boolean;
|
|
6
7
|
waitSyncLocalOrders: boolean;
|
|
8
|
+
apiOnlineOrders: TApiStatus;
|
|
9
|
+
apiShop: TApiStatus;
|
|
7
10
|
detail: IOrderDetails | null;
|
|
8
11
|
}
|
|
9
12
|
export default IWorkScreen;
|
|
@@ -4,7 +4,7 @@ import EnumOrderType from "../../enums/EnumOrderType";
|
|
|
4
4
|
import EnumTipType from "../../enums/EnumTipType";
|
|
5
5
|
import IOrderItem from "./IOrderItem";
|
|
6
6
|
import EnumPaymentType from "../../enums/EnumPaymentType";
|
|
7
|
-
import
|
|
7
|
+
import TOrderPayStatus from "../../types/TOrderPayStatus";
|
|
8
8
|
import EnumPaymentState from "../../enums/EnumPaymentState";
|
|
9
9
|
import ICalculateFeeResult from "../ICalculateFeeResult";
|
|
10
10
|
import IOrderDetails from "../print/IOrderDetails";
|
|
@@ -64,7 +64,7 @@ interface IOrder {
|
|
|
64
64
|
sync: boolean;
|
|
65
65
|
paymentToken: string;
|
|
66
66
|
deviceId: string | null;
|
|
67
|
-
status:
|
|
67
|
+
status: TOrderPayStatus;
|
|
68
68
|
message: string;
|
|
69
69
|
onlyForPayment: boolean;
|
|
70
70
|
displayOnKitchenDisplay: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import ISelectedProductExtra from "../interfaces/ISelectedProductExtra";
|
|
2
2
|
import IDExtra from "../interfaces/database/IDExtra";
|
|
3
|
-
|
|
3
|
+
type TBaseExtra = [ISelectedProductExtra | undefined, IDExtra | undefined];
|
|
4
|
+
export default TBaseExtra;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|