meemup-library 1.1.23 → 1.1.25
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/interfaces/IApiShop.d.ts +2 -2
- package/dist/interfaces/IApiShop.js +2 -2
- package/dist/interfaces/IPointOfSaleSetting.d.ts +41 -0
- package/dist/interfaces/IPointOfSaleSetting.js +41 -0
- package/dist/interfaces/IPointOfSaleSettingFee.d.ts +17 -0
- package/dist/interfaces/IPointOfSaleSettingFee.js +1 -0
- package/dist/interfaces/IPointOfSaleSettingPrintsOnNewOrder.d.ts +4 -0
- package/dist/interfaces/IPointOfSaleSettingPrintsOnNewOrder.js +1 -0
- package/dist/interfaces/ISetting.d.ts +4 -1
- package/dist/interfaces/ISetting.js +4 -1
- package/dist/interfaces/pos/IPointOfSaleApiShop.d.ts +30 -0
- package/dist/interfaces/pos/IPointOfSaleApiShop.js +20 -0
- package/package.json +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import IProduct from "./IProduct";
|
|
2
2
|
import ICategory from "./ICategory";
|
|
3
3
|
import IExtra from "./IExtra";
|
|
4
|
-
import ISetting from "./ISetting";
|
|
5
4
|
import IGeneralInformation from "./IGeneralInformation";
|
|
6
5
|
import ITextValue from "./ITextValue";
|
|
7
6
|
import ICheckoutOption from "./ICheckoutOption";
|
|
@@ -10,12 +9,13 @@ import IPrintTemplate from "./IPrintTemplate";
|
|
|
10
9
|
import IOrderState from "./IOrderState";
|
|
11
10
|
import IStarMicronicPrinter from "./IStarMicronicPrinter";
|
|
12
11
|
import IBaseCustomer from "./IBaseCustomer";
|
|
12
|
+
import IPointOfSaleSetting from "./IPointOfSaleSetting";
|
|
13
13
|
interface IApiShop {
|
|
14
14
|
ok: boolean;
|
|
15
15
|
products: IProduct[];
|
|
16
16
|
categories: ICategory[];
|
|
17
17
|
extras: IExtra[];
|
|
18
|
-
setting:
|
|
18
|
+
setting: IPointOfSaleSetting;
|
|
19
19
|
generalInformation: IGeneralInformation;
|
|
20
20
|
customers: IBaseCustomer[];
|
|
21
21
|
printTemplates: IPrintTemplate[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { initSetting } from "./ISetting";
|
|
2
1
|
import { initGeneralInformation } from "./IGeneralInformation";
|
|
3
2
|
import { initCheckoutOption } from "./ICheckoutOption";
|
|
4
3
|
import { initGeneralItems } from "./IGeneralItems";
|
|
4
|
+
import { initPointOfSaleSetting } from "./IPointOfSaleSetting";
|
|
5
5
|
export const initApiShop = {
|
|
6
6
|
ok: false,
|
|
7
7
|
extras: [],
|
|
@@ -9,7 +9,7 @@ export const initApiShop = {
|
|
|
9
9
|
categories: [],
|
|
10
10
|
generalInformation: initGeneralInformation,
|
|
11
11
|
printTemplates: [],
|
|
12
|
-
setting:
|
|
12
|
+
setting: initPointOfSaleSetting,
|
|
13
13
|
products: [],
|
|
14
14
|
terminals: [],
|
|
15
15
|
checkoutOption: initCheckoutOption,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import IPointOfSaleSettingFee from "./IPointOfSaleSettingFee";
|
|
2
|
+
import IPointOfSaleSettingPrintsOnNewOrder from "./IPointOfSaleSettingPrintsOnNewOrder";
|
|
3
|
+
export default interface IPointOfSaleSetting {
|
|
4
|
+
sendOrderNotificationViaSMSToCustomer: boolean;
|
|
5
|
+
sendOrderNotificationViaEmailToCustomer: boolean;
|
|
6
|
+
autoPrintOnNewOrder: boolean;
|
|
7
|
+
autoPrintOnNewOrderWhen: number;
|
|
8
|
+
defaultPaymentMethod: number;
|
|
9
|
+
defaultOrderType: number;
|
|
10
|
+
customerMandatory: boolean;
|
|
11
|
+
checkDeliveryCoverageArea: boolean;
|
|
12
|
+
mergeProducts: boolean;
|
|
13
|
+
showNoPopupByDefault: number;
|
|
14
|
+
printsOnNewOrder: IPointOfSaleSettingPrintsOnNewOrder[];
|
|
15
|
+
currencySymbol: string;
|
|
16
|
+
tax: number;
|
|
17
|
+
minimumPreparationTime: number;
|
|
18
|
+
deliveryMinimumTime: number;
|
|
19
|
+
pickupFrom: number;
|
|
20
|
+
pickupMinimumTime: number;
|
|
21
|
+
roundCashPayments: number;
|
|
22
|
+
taxTitle: string;
|
|
23
|
+
skipTipping: boolean;
|
|
24
|
+
openCashDrawer: number;
|
|
25
|
+
openCashDrawerOnFailedPaymentPrint: boolean;
|
|
26
|
+
printCommand: number;
|
|
27
|
+
diningMinimumTime: number;
|
|
28
|
+
fees: IPointOfSaleSettingFee[];
|
|
29
|
+
firstPageAfterLogin: string;
|
|
30
|
+
dashboardAccess: boolean;
|
|
31
|
+
orderAccess: boolean;
|
|
32
|
+
logsAccess: boolean;
|
|
33
|
+
settingsAccess: boolean;
|
|
34
|
+
managementAccess: boolean;
|
|
35
|
+
printerAccess: boolean;
|
|
36
|
+
reportsAccess: boolean;
|
|
37
|
+
availablePaymentTypes: number[];
|
|
38
|
+
customerMandatoryType: number;
|
|
39
|
+
startingOrderNumberFrom: number;
|
|
40
|
+
}
|
|
41
|
+
export declare const initPointOfSaleSetting: IPointOfSaleSetting;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import EnumOrderType from "../enums/EnumOrderType";
|
|
2
|
+
import EnumPaymentType from "../enums/EnumPaymentType";
|
|
3
|
+
import EnumPrintCommand from "../enums/EnumPrintCommand";
|
|
4
|
+
export const initPointOfSaleSetting = {
|
|
5
|
+
sendOrderNotificationViaSMSToCustomer: false,
|
|
6
|
+
sendOrderNotificationViaEmailToCustomer: false,
|
|
7
|
+
autoPrintOnNewOrder: false,
|
|
8
|
+
autoPrintOnNewOrderWhen: 1,
|
|
9
|
+
defaultPaymentMethod: EnumPaymentType.cash,
|
|
10
|
+
defaultOrderType: EnumOrderType.dining,
|
|
11
|
+
customerMandatory: false,
|
|
12
|
+
checkDeliveryCoverageArea: false,
|
|
13
|
+
mergeProducts: false,
|
|
14
|
+
showNoPopupByDefault: 1,
|
|
15
|
+
printsOnNewOrder: [],
|
|
16
|
+
currencySymbol: "$",
|
|
17
|
+
tax: 13,
|
|
18
|
+
minimumPreparationTime: 0,
|
|
19
|
+
deliveryMinimumTime: 0,
|
|
20
|
+
pickupFrom: 0,
|
|
21
|
+
pickupMinimumTime: 0,
|
|
22
|
+
roundCashPayments: 0,
|
|
23
|
+
taxTitle: "HST",
|
|
24
|
+
skipTipping: false,
|
|
25
|
+
openCashDrawer: 1,
|
|
26
|
+
openCashDrawerOnFailedPaymentPrint: false,
|
|
27
|
+
printCommand: EnumPrintCommand.SYSTEM_PRINT,
|
|
28
|
+
diningMinimumTime: 15,
|
|
29
|
+
fees: [],
|
|
30
|
+
firstPageAfterLogin: "dashboard",
|
|
31
|
+
dashboardAccess: true,
|
|
32
|
+
orderAccess: true,
|
|
33
|
+
logsAccess: true,
|
|
34
|
+
settingsAccess: true,
|
|
35
|
+
managementAccess: true,
|
|
36
|
+
printerAccess: true,
|
|
37
|
+
reportsAccess: true,
|
|
38
|
+
availablePaymentTypes: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
39
|
+
customerMandatoryType: 1,
|
|
40
|
+
startingOrderNumberFrom: 1000
|
|
41
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import EnumOrderType from "../enums/EnumOrderType";
|
|
2
|
+
export default interface IPointOfSaleSettingFee {
|
|
3
|
+
type: number;
|
|
4
|
+
enabled: boolean;
|
|
5
|
+
calculationMode: number;
|
|
6
|
+
text: string;
|
|
7
|
+
orderTypes: EnumOrderType[];
|
|
8
|
+
paymentTypes: number;
|
|
9
|
+
minimumFee: number;
|
|
10
|
+
maximumFee: number;
|
|
11
|
+
percentage: number;
|
|
12
|
+
amount: number;
|
|
13
|
+
taxable: boolean;
|
|
14
|
+
taxPercentage: number;
|
|
15
|
+
minimumOrderAmount: number;
|
|
16
|
+
maximumOrderAmount: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -27,13 +27,16 @@ interface ISetting {
|
|
|
27
27
|
taxTitle: string;
|
|
28
28
|
fees: ICompanyFee[];
|
|
29
29
|
firstPageAfterLogin: "dashboard" | "order" | "logs" | "settings" | "management" | "printer" | "reports";
|
|
30
|
-
dashboardَAccess: boolean;
|
|
31
30
|
orderAccess: boolean;
|
|
32
31
|
logsAccess: boolean;
|
|
33
32
|
settingsAccess: boolean;
|
|
34
33
|
managementAccess: boolean;
|
|
35
34
|
printerAccess: boolean;
|
|
36
35
|
reportsAccess: boolean;
|
|
36
|
+
dashboardAccess: boolean;
|
|
37
|
+
availablePaymentTypes: number[];
|
|
38
|
+
customerMandatoryType: number;
|
|
39
|
+
startingOrderNumberFrom: number;
|
|
37
40
|
}
|
|
38
41
|
export default ISetting;
|
|
39
42
|
export declare const initSetting: ISetting;
|
|
@@ -28,11 +28,14 @@ export const initSetting = {
|
|
|
28
28
|
diningMinimumTime: 15,
|
|
29
29
|
fees: [],
|
|
30
30
|
firstPageAfterLogin: "dashboard",
|
|
31
|
-
|
|
31
|
+
dashboardAccess: true,
|
|
32
32
|
orderAccess: true,
|
|
33
33
|
logsAccess: true,
|
|
34
34
|
settingsAccess: true,
|
|
35
35
|
managementAccess: true,
|
|
36
36
|
printerAccess: true,
|
|
37
37
|
reportsAccess: true,
|
|
38
|
+
availablePaymentTypes: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
39
|
+
customerMandatoryType: 1,
|
|
40
|
+
startingOrderNumberFrom: 1000
|
|
38
41
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import IBaseCustomer from "../IBaseCustomer";
|
|
2
|
+
import ICategory from "../ICategory";
|
|
3
|
+
import ICheckoutOption from "../ICheckoutOption";
|
|
4
|
+
import IExtra from "../IExtra";
|
|
5
|
+
import IGeneralInformation from "../IGeneralInformation";
|
|
6
|
+
import IGeneralItems from "../IGeneralItems";
|
|
7
|
+
import IOrderState from "../IOrderState";
|
|
8
|
+
import IPointOfSaleSetting from "../IPointOfSaleSetting";
|
|
9
|
+
import IPrintTemplate from "../IPrintTemplate";
|
|
10
|
+
import IProduct from "../IProduct";
|
|
11
|
+
import IStarMicronicPrinter from "../IStarMicronicPrinter";
|
|
12
|
+
import ITextValue from "../ITextValue";
|
|
13
|
+
interface IPointOfSaleApiShop {
|
|
14
|
+
ok: boolean;
|
|
15
|
+
products: IProduct[];
|
|
16
|
+
categories: ICategory[];
|
|
17
|
+
extras: IExtra[];
|
|
18
|
+
setting: IPointOfSaleSetting;
|
|
19
|
+
generalInformation: IGeneralInformation;
|
|
20
|
+
customers: IBaseCustomer[];
|
|
21
|
+
printTemplates: IPrintTemplate[];
|
|
22
|
+
terminals: ITextValue[];
|
|
23
|
+
checkoutOption: ICheckoutOption;
|
|
24
|
+
generalItems: IGeneralItems;
|
|
25
|
+
starMicronicPrinters: IStarMicronicPrinter[];
|
|
26
|
+
driversNames: ITextValue[];
|
|
27
|
+
orderStates: IOrderState[];
|
|
28
|
+
}
|
|
29
|
+
export default IPointOfSaleApiShop;
|
|
30
|
+
export declare const initApiShop: IPointOfSaleApiShop;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { initCheckoutOption } from "../ICheckoutOption";
|
|
2
|
+
import { initGeneralInformation } from "../IGeneralInformation";
|
|
3
|
+
import { initGeneralItems } from "../IGeneralItems";
|
|
4
|
+
import { initPointOfSaleSetting } from "../IPointOfSaleSetting";
|
|
5
|
+
export const initApiShop = {
|
|
6
|
+
ok: false,
|
|
7
|
+
extras: [],
|
|
8
|
+
customers: [],
|
|
9
|
+
categories: [],
|
|
10
|
+
generalInformation: initGeneralInformation,
|
|
11
|
+
printTemplates: [],
|
|
12
|
+
setting: initPointOfSaleSetting,
|
|
13
|
+
products: [],
|
|
14
|
+
terminals: [],
|
|
15
|
+
checkoutOption: initCheckoutOption,
|
|
16
|
+
generalItems: initGeneralItems,
|
|
17
|
+
starMicronicPrinters: [],
|
|
18
|
+
driversNames: [],
|
|
19
|
+
orderStates: []
|
|
20
|
+
};
|