meemup-library 1.5.55 → 1.5.56

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,7 @@
1
+ declare enum EnumKioskPaymentMode {
2
+ None = 0,
3
+ Stripe = 1,
4
+ Elavon = 2,
5
+ Pax = 3
6
+ }
7
+ export default EnumKioskPaymentMode;
@@ -0,0 +1,8 @@
1
+ var EnumKioskPaymentMode;
2
+ (function (EnumKioskPaymentMode) {
3
+ EnumKioskPaymentMode[EnumKioskPaymentMode["None"] = 0] = "None";
4
+ EnumKioskPaymentMode[EnumKioskPaymentMode["Stripe"] = 1] = "Stripe";
5
+ EnumKioskPaymentMode[EnumKioskPaymentMode["Elavon"] = 2] = "Elavon";
6
+ EnumKioskPaymentMode[EnumKioskPaymentMode["Pax"] = 3] = "Pax";
7
+ })(EnumKioskPaymentMode || (EnumKioskPaymentMode = {}));
8
+ export default EnumKioskPaymentMode;
@@ -0,0 +1,95 @@
1
+ import EnumKioskPaymentMode from "../../enums/EnumKioskPaymentMode";
2
+ import EnumOrderType from "../../enums/EnumOrderType";
3
+ import EnumPaymentType from "../../enums/EnumPaymentType";
4
+ import IPointOfSaleStarMicronicConnection from "../pos/IPointOfSaleStarMicronicConnection";
5
+ export default interface IKioskDeviceSetting {
6
+ name: string;
7
+ deviceName: string;
8
+ deviceId: string;
9
+ deviceType: string;
10
+ brand: string;
11
+ applicationName: string;
12
+ buildNumber: string;
13
+ buildId: string;
14
+ host: string;
15
+ hardware: string;
16
+ ipAddress: string;
17
+ macAddress: string;
18
+ serialNumber: string;
19
+ baseOs: string;
20
+ systemVersion: string;
21
+ version: string;
22
+ productGridColumns: number;
23
+ productGridItemAspectRatio: number;
24
+ categoryBoxWidth: number;
25
+ categoryItemAspectRatio: number;
26
+ categoryGridSelectedItemIconSize: number;
27
+ extraGridColumns: number;
28
+ extraGridItemAspectRatio: number;
29
+ extraGridSelectedItemIconSize: number;
30
+ categoryDisplayMode: number;
31
+ productDisplayMode: number;
32
+ order: {
33
+ defaultTableId: number;
34
+ defaultOrderType: EnumOrderType;
35
+ defaultPaymentType: EnumPaymentType;
36
+ showCustomerPhoneInput: boolean;
37
+ showCustomerEmailInput: boolean;
38
+ showCustomerNameInput: boolean;
39
+ mandatoryPhoneNumber: boolean;
40
+ mandatoryEmail: boolean;
41
+ mandatoryFirstName: boolean;
42
+ mandatoryTableId: boolean;
43
+ canChangeOrderType: boolean;
44
+ canChangeTable: boolean;
45
+ canChangePaymentType: boolean;
46
+ orderNumberStartFrom: number;
47
+ payLater: boolean;
48
+ payNow: boolean;
49
+ };
50
+ print: {
51
+ service: boolean;
52
+ autoPrintWhenOrderPaid: boolean;
53
+ autoPrintWhenOrderSaved: boolean;
54
+ count: number;
55
+ templateId: number;
56
+ connection: IPointOfSaleStarMicronicConnection | null;
57
+ photoFormat: boolean;
58
+ reprintButton: {
59
+ display: boolean;
60
+ text: string;
61
+ };
62
+ };
63
+ elavon: {
64
+ address: string;
65
+ port: number;
66
+ name: string;
67
+ };
68
+ payment: {
69
+ stripeDeviceId: number;
70
+ mode: EnumKioskPaymentMode;
71
+ };
72
+ suggestion: {
73
+ mostSales: {
74
+ display: boolean;
75
+ maxCount: number;
76
+ itemWidth: number;
77
+ itemAspectRatio: number;
78
+ iconSize: number;
79
+ };
80
+ recommends: {
81
+ display: boolean;
82
+ maxCount: number;
83
+ itemHeight: number;
84
+ itemAspectRatio: number;
85
+ iconSize: number;
86
+ };
87
+ suggestionProducts: {
88
+ display: boolean;
89
+ itemWidth: number;
90
+ itemAspectRatio: number;
91
+ iconSize: number;
92
+ };
93
+ };
94
+ }
95
+ export declare const initKioskDeviceSetting: IKioskDeviceSetting;
@@ -0,0 +1,94 @@
1
+ import EnumKioskPaymentMode from "../../enums/EnumKioskPaymentMode";
2
+ import EnumOrderType from "../../enums/EnumOrderType";
3
+ import EnumPaymentType from "../../enums/EnumPaymentType";
4
+ export const initKioskDeviceSetting = {
5
+ name: 'device',
6
+ deviceName: '',
7
+ deviceId: '',
8
+ deviceType: '',
9
+ brand: '',
10
+ applicationName: '',
11
+ buildNumber: '',
12
+ buildId: '',
13
+ host: '',
14
+ hardware: '',
15
+ ipAddress: '',
16
+ macAddress: '',
17
+ serialNumber: '',
18
+ baseOs: '',
19
+ systemVersion: '',
20
+ version: '',
21
+ productGridColumns: 3,
22
+ productGridItemAspectRatio: 0.75,
23
+ categoryBoxWidth: 100,
24
+ categoryItemAspectRatio: 0.65,
25
+ categoryGridSelectedItemIconSize: 80,
26
+ extraGridColumns: 3,
27
+ extraGridItemAspectRatio: 0.9,
28
+ extraGridSelectedItemIconSize: 100,
29
+ print: {
30
+ service: true,
31
+ autoPrintWhenOrderPaid: true,
32
+ autoPrintWhenOrderSaved: true,
33
+ count: 1,
34
+ templateId: -1,
35
+ connection: null,
36
+ photoFormat: false,
37
+ reprintButton: {
38
+ display: false,
39
+ text: 'Re-Print',
40
+ },
41
+ },
42
+ elavon: {
43
+ address: '127.0.0.1',
44
+ port: 8000,
45
+ name: 'Elavon device',
46
+ },
47
+ categoryDisplayMode: 1,
48
+ productDisplayMode: 1,
49
+ order: {
50
+ defaultTableId: -1,
51
+ defaultOrderType: EnumOrderType.pickup,
52
+ defaultPaymentType: EnumPaymentType.DebitMachine,
53
+ showCustomerPhoneInput: false,
54
+ showCustomerEmailInput: false,
55
+ showCustomerNameInput: false,
56
+ mandatoryPhoneNumber: false,
57
+ mandatoryEmail: false,
58
+ mandatoryFirstName: false,
59
+ // mandatoryLastName: false,
60
+ mandatoryTableId: false,
61
+ canChangeOrderType: false,
62
+ canChangeTable: false,
63
+ canChangePaymentType: false,
64
+ orderNumberStartFrom: 1000,
65
+ payLater: false,
66
+ payNow: true,
67
+ },
68
+ payment: {
69
+ stripeDeviceId: -1,
70
+ mode: EnumKioskPaymentMode.Elavon
71
+ },
72
+ suggestion: {
73
+ mostSales: {
74
+ display: true,
75
+ maxCount: 20,
76
+ itemWidth: 200,
77
+ itemAspectRatio: 0.75,
78
+ iconSize: 100
79
+ },
80
+ recommends: {
81
+ display: true,
82
+ maxCount: 20,
83
+ itemHeight: 100,
84
+ itemAspectRatio: 2.6,
85
+ iconSize: 90
86
+ },
87
+ suggestionProducts: {
88
+ display: true,
89
+ itemWidth: 200,
90
+ itemAspectRatio: 0.75,
91
+ iconSize: 100
92
+ },
93
+ }
94
+ };
@@ -0,0 +1,40 @@
1
+ import ITextValue from "../ITextValue";
2
+ import IPointOfSaleSettingFee from "../pos/IPointOfSaleSettingFee";
3
+ import IPointOfSaleSettingRewardProgram from "../pos/IPointOfSaleSettingRewardProgram";
4
+ export default interface IKioskGlobalSetting {
5
+ tax: number;
6
+ taxTitle: string;
7
+ currencySymbol: string;
8
+ fees: IPointOfSaleSettingFee[];
9
+ rewardProgram: IPointOfSaleSettingRewardProgram;
10
+ categories: ITextValue[];
11
+ homePage: {
12
+ logo: string | null;
13
+ buttonText: string | null;
14
+ description: string | null;
15
+ items: any[];
16
+ };
17
+ backgroundImages: string | null;
18
+ autoPrintOnNewOrder: boolean;
19
+ coloredTiles: boolean;
20
+ displayImages: boolean;
21
+ sendOrderNotificationViaEmailToCustomer: boolean;
22
+ customerMandatoryType: number;
23
+ availablePaymentTypes: any[];
24
+ availableOrderTypes: any[];
25
+ permissions: any[];
26
+ features: any[];
27
+ showNoPopupByDefault: number;
28
+ skipTipping: boolean;
29
+ checkDeliveryCoverageArea: boolean;
30
+ defaultPaymentMethod: number;
31
+ defaultOrderType: number;
32
+ roundCashPayments: number;
33
+ topMostSalesTitle: string | null;
34
+ recommendsTitle: string | null;
35
+ suggestionProductsTitle: string | null;
36
+ additionalPickupInstructions: boolean;
37
+ sendOrderNotificationViaSMSToCustomer: boolean;
38
+ additionalPickupInstructionsTypes: any[];
39
+ }
40
+ export declare const initGlobalSetting: IKioskGlobalSetting;
@@ -0,0 +1,42 @@
1
+ import EnumOrderType from "../../enums/EnumOrderType";
2
+ import EnumPaymentType from "../../enums/EnumPaymentType";
3
+ import { initPointOfSaleSettingRewardProgram } from "../pos/IPointOfSaleSettingRewardProgram";
4
+ export const initGlobalSetting = {
5
+ currencySymbol: '$',
6
+ tax: 13,
7
+ roundCashPayments: 0,
8
+ skipTipping: false,
9
+ fees: [],
10
+ additionalPickupInstructionsTypes: [],
11
+ rewardProgram: initPointOfSaleSettingRewardProgram,
12
+ availableOrderTypes: [
13
+ EnumOrderType.pickup,
14
+ EnumOrderType.dining,
15
+ ],
16
+ homePage: {
17
+ logo: "",
18
+ buttonText: "Start your order",
19
+ description: "",
20
+ items: [],
21
+ },
22
+ topMostSalesTitle: "Top most sales",
23
+ recommendsTitle: "Recommends",
24
+ suggestionProductsTitle: "Suggestion products",
25
+ additionalPickupInstructions: false,
26
+ autoPrintOnNewOrder: false,
27
+ availablePaymentTypes: [],
28
+ backgroundImages: "",
29
+ categories: [],
30
+ checkDeliveryCoverageArea: false,
31
+ coloredTiles: false,
32
+ customerMandatoryType: 0,
33
+ defaultOrderType: EnumOrderType.pickup,
34
+ defaultPaymentMethod: EnumPaymentType.None,
35
+ displayImages: false,
36
+ features: [],
37
+ permissions: [],
38
+ sendOrderNotificationViaEmailToCustomer: false,
39
+ sendOrderNotificationViaSMSToCustomer: false,
40
+ showNoPopupByDefault: 1,
41
+ taxTitle: "Tax",
42
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.5.55",
3
+ "version": "1.5.56",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.5.55\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.5.56\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"