meemup-library 1.2.20 → 1.2.23
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/enums/EnumRewarddPointType.d.ts +5 -0
- package/dist/enums/EnumRewarddPointType.js +6 -0
- package/dist/interfaces/IBaseCustomer.d.ts +4 -0
- package/dist/interfaces/ICustomer.d.ts +0 -1
- package/dist/interfaces/IPointOfSaleSetting.d.ts +2 -0
- package/dist/interfaces/IPointOfSaleSetting.js +3 -1
- package/dist/interfaces/ISaveOrder.d.ts +1 -0
- package/dist/interfaces/IStarMicronicPrinter.d.ts +1 -0
- package/dist/interfaces/order/IOrder.d.ts +1 -0
- package/dist/interfaces/order/IOrder.js +1 -0
- package/dist/interfaces/pos/IPointOfSaleSettingRewardProgram.d.ts +12 -0
- package/dist/interfaces/pos/IPointOfSaleSettingRewardProgram.js +11 -0
- package/package.json +2 -2
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var EnumRewarddPointType;
|
|
2
|
+
(function (EnumRewarddPointType) {
|
|
3
|
+
EnumRewarddPointType[EnumRewarddPointType["PerOrder"] = 1] = "PerOrder";
|
|
4
|
+
EnumRewarddPointType[EnumRewarddPointType["PerAmount"] = 2] = "PerAmount";
|
|
5
|
+
})(EnumRewarddPointType || (EnumRewarddPointType = {}));
|
|
6
|
+
export default EnumRewarddPointType;
|
|
@@ -2,6 +2,7 @@ import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
|
|
|
2
2
|
import IPointOfSaleSettingFee from "./IPointOfSaleSettingFee";
|
|
3
3
|
import IPointOfSaleSettingPrintsOnNewOrder from "./IPointOfSaleSettingPrintsOnNewOrder";
|
|
4
4
|
import ITextValue from "./ITextValue";
|
|
5
|
+
import IPointOfSaleSettingRewardProgram from "./pos/IPointOfSaleSettingRewardProgram";
|
|
5
6
|
export default interface IPointOfSaleSetting {
|
|
6
7
|
sendOrderNotificationViaSMSToCustomer: boolean;
|
|
7
8
|
sendOrderNotificationViaEmailToCustomer: boolean;
|
|
@@ -44,5 +45,6 @@ export default interface IPointOfSaleSetting {
|
|
|
44
45
|
displayImages: boolean;
|
|
45
46
|
additionalPickupInstructionsTypes: ITextValue[];
|
|
46
47
|
categories: ITextValue[];
|
|
48
|
+
rewardProgram: IPointOfSaleSettingRewardProgram;
|
|
47
49
|
}
|
|
48
50
|
export declare const initPointOfSaleSetting: IPointOfSaleSetting;
|
|
@@ -2,6 +2,7 @@ import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
|
|
|
2
2
|
import EnumOrderType from "../enums/EnumOrderType";
|
|
3
3
|
import EnumPaymentType from "../enums/EnumPaymentType";
|
|
4
4
|
import EnumPrintCommand from "../enums/EnumPrintCommand";
|
|
5
|
+
import { initPointOfSaleSettingRewardProgram } from "./pos/IPointOfSaleSettingRewardProgram";
|
|
5
6
|
export const initPointOfSaleSetting = {
|
|
6
7
|
sendOrderNotificationViaSMSToCustomer: false,
|
|
7
8
|
sendOrderNotificationViaEmailToCustomer: false,
|
|
@@ -43,5 +44,6 @@ export const initPointOfSaleSetting = {
|
|
|
43
44
|
coloredTiles: false,
|
|
44
45
|
displayImages: false,
|
|
45
46
|
additionalPickupInstructionsTypes: [],
|
|
46
|
-
categories: []
|
|
47
|
+
categories: [],
|
|
48
|
+
rewardProgram: initPointOfSaleSettingRewardProgram
|
|
47
49
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import EnumRewarddPointType from "../../enums/EnumRewarddPointType";
|
|
2
|
+
export default interface IPointOfSaleSettingRewardProgram {
|
|
3
|
+
state: boolean;
|
|
4
|
+
rewardsPoints: EnumRewarddPointType;
|
|
5
|
+
rewardsNumberOfPoints: number;
|
|
6
|
+
rewardsValuePerPoint: number;
|
|
7
|
+
rewardsMaxPointsPerOrder: number;
|
|
8
|
+
maximumPointsRedeemablePerOrder: number;
|
|
9
|
+
minimumPointsRedeemablePerOrder: number;
|
|
10
|
+
rewardsEveryValue: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const initPointOfSaleSettingRewardProgram: IPointOfSaleSettingRewardProgram;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import EnumRewarddPointType from "../../enums/EnumRewarddPointType";
|
|
2
|
+
export const initPointOfSaleSettingRewardProgram = {
|
|
3
|
+
state: false,
|
|
4
|
+
rewardsPoints: EnumRewarddPointType.PerOrder,
|
|
5
|
+
rewardsNumberOfPoints: 0,
|
|
6
|
+
rewardsValuePerPoint: 0,
|
|
7
|
+
rewardsMaxPointsPerOrder: 0,
|
|
8
|
+
maximumPointsRedeemablePerOrder: 0,
|
|
9
|
+
minimumPointsRedeemablePerOrder: 0,
|
|
10
|
+
rewardsEveryValue: 0,
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.23",
|
|
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.2.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.2.23\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|