meemup-library 1.1.96 → 1.1.98
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/EnumCustomerMandatory.d.ts +11 -0
- package/dist/enums/EnumCustomerMandatory.js +12 -0
- package/dist/interfaces/IGeneralItems.d.ts +1 -0
- package/dist/interfaces/IGeneralItems.js +2 -1
- package/dist/interfaces/IPointOfSaleSetting.d.ts +2 -1
- package/dist/interfaces/IPointOfSaleSetting.js +2 -1
- package/dist/interfaces/pos/IPointOfSaleApiShop.d.ts +2 -0
- package/dist/interfaces/pos/IPointOfSaleApiShop.js +2 -1
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var EnumCustomerMandatory;
|
|
2
|
+
(function (EnumCustomerMandatory) {
|
|
3
|
+
EnumCustomerMandatory[EnumCustomerMandatory["NO"] = 0] = "NO";
|
|
4
|
+
EnumCustomerMandatory[EnumCustomerMandatory["ONLY_ON_PICKUP"] = 1] = "ONLY_ON_PICKUP";
|
|
5
|
+
EnumCustomerMandatory[EnumCustomerMandatory["ONLY_ON_DELIVERY"] = 2] = "ONLY_ON_DELIVERY";
|
|
6
|
+
EnumCustomerMandatory[EnumCustomerMandatory["ONLY_ON_DINING"] = 3] = "ONLY_ON_DINING";
|
|
7
|
+
EnumCustomerMandatory[EnumCustomerMandatory["ON_PICKUP_AND_DELIVERY"] = 4] = "ON_PICKUP_AND_DELIVERY";
|
|
8
|
+
EnumCustomerMandatory[EnumCustomerMandatory["ON_PICKUP_AND_DINING"] = 5] = "ON_PICKUP_AND_DINING";
|
|
9
|
+
EnumCustomerMandatory[EnumCustomerMandatory["ON_DELIVERY_AND_DINING"] = 6] = "ON_DELIVERY_AND_DINING";
|
|
10
|
+
EnumCustomerMandatory[EnumCustomerMandatory["YES"] = 7] = "YES";
|
|
11
|
+
})(EnumCustomerMandatory || (EnumCustomerMandatory = {}));
|
|
12
|
+
export default EnumCustomerMandatory;
|
|
@@ -32,5 +32,6 @@ export default interface IGeneralItems {
|
|
|
32
32
|
pointOfSaleAutoPrintWhenTypes: ITextValue[];
|
|
33
33
|
pointOfSaleShowProductPopupTypes: ITextValue[];
|
|
34
34
|
openCashDrawerTypes: ITextValue[];
|
|
35
|
+
customerMandatoryTypes: ITextValue[];
|
|
35
36
|
}
|
|
36
37
|
export declare const initGeneralItems: IGeneralItems;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
|
|
1
2
|
import IPointOfSaleSettingFee from "./IPointOfSaleSettingFee";
|
|
2
3
|
import IPointOfSaleSettingPrintsOnNewOrder from "./IPointOfSaleSettingPrintsOnNewOrder";
|
|
3
4
|
import ITextValue from "./ITextValue";
|
|
@@ -9,6 +10,7 @@ export default interface IPointOfSaleSetting {
|
|
|
9
10
|
defaultPaymentMethod: number;
|
|
10
11
|
defaultOrderType: number;
|
|
11
12
|
customerMandatory: boolean;
|
|
13
|
+
customerMandatoryType: EnumCustomerMandatory;
|
|
12
14
|
checkDeliveryCoverageArea: boolean;
|
|
13
15
|
mergeProducts: boolean;
|
|
14
16
|
showNoPopupByDefault: number;
|
|
@@ -36,7 +38,6 @@ export default interface IPointOfSaleSetting {
|
|
|
36
38
|
printerAccess: boolean;
|
|
37
39
|
reportsAccess: boolean;
|
|
38
40
|
availablePaymentTypes: number[];
|
|
39
|
-
customerMandatoryType: number;
|
|
40
41
|
startingOrderNumberFrom: number;
|
|
41
42
|
additionalPickupInstructions: boolean;
|
|
42
43
|
coloredTiles: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import EnumCustomerMandatory from "../enums/EnumCustomerMandatory";
|
|
1
2
|
import EnumOrderType from "../enums/EnumOrderType";
|
|
2
3
|
import EnumPaymentType from "../enums/EnumPaymentType";
|
|
3
4
|
import EnumPrintCommand from "../enums/EnumPrintCommand";
|
|
@@ -36,7 +37,7 @@ export const initPointOfSaleSetting = {
|
|
|
36
37
|
printerAccess: true,
|
|
37
38
|
reportsAccess: true,
|
|
38
39
|
availablePaymentTypes: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
|
39
|
-
customerMandatoryType:
|
|
40
|
+
customerMandatoryType: EnumCustomerMandatory.NO,
|
|
40
41
|
startingOrderNumberFrom: 1000,
|
|
41
42
|
additionalPickupInstructions: false,
|
|
42
43
|
coloredTiles: false,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import IPointOfSaleDiscount from "./IPointOfSaleDiscount";
|
|
1
2
|
import IBaseCustomer from "../IBaseCustomer";
|
|
2
3
|
import ICategory from "../ICategory";
|
|
3
4
|
import IExtra from "../IExtra";
|
|
@@ -29,6 +30,7 @@ interface IPointOfSaleApiShop {
|
|
|
29
30
|
orderStates: IOrderState[];
|
|
30
31
|
members: IPointOfSaleTeamMember[];
|
|
31
32
|
roles: IPointOfSaleRole[];
|
|
33
|
+
discounts: IPointOfSaleDiscount[];
|
|
32
34
|
}
|
|
33
35
|
export default IPointOfSaleApiShop;
|
|
34
36
|
export declare const initApiShop: IPointOfSaleApiShop;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.98",
|
|
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.1.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.1.98\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|