meemup-library 1.1.15 → 1.1.16
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.js +1 -1
- package/dist/enums/EnumShowCategoryExtras.d.ts +6 -0
- package/dist/enums/EnumShowCategoryExtras.js +7 -0
- package/dist/enums/EnumTransferStatus.d.ts +8 -0
- package/dist/enums/EnumTransferStatus.js +9 -0
- package/dist/interfaces/IProduct.d.ts +17 -13
- package/dist/interfaces/database/IDProduct.d.ts +1 -0
- package/package.json +1 -1
|
@@ -154,7 +154,7 @@ export default new class ProductModalController {
|
|
|
154
154
|
return product.posName === "" ? product.name : product.posName;
|
|
155
155
|
}
|
|
156
156
|
productImage(product) {
|
|
157
|
-
return product.
|
|
157
|
+
return product.imageFullPath === null ? "" : product.imageFullPath;
|
|
158
158
|
}
|
|
159
159
|
productPrice(product, orderType) {
|
|
160
160
|
switch (orderType) {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var EnumShowCategoryExtras;
|
|
2
|
+
(function (EnumShowCategoryExtras) {
|
|
3
|
+
EnumShowCategoryExtras[EnumShowCategoryExtras["NO"] = 0] = "NO";
|
|
4
|
+
EnumShowCategoryExtras[EnumShowCategoryExtras["BEFORE"] = 1] = "BEFORE";
|
|
5
|
+
EnumShowCategoryExtras[EnumShowCategoryExtras["AFTER"] = 2] = "AFTER";
|
|
6
|
+
})(EnumShowCategoryExtras || (EnumShowCategoryExtras = {}));
|
|
7
|
+
export default EnumShowCategoryExtras;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var EnumTransferStatus;
|
|
2
|
+
(function (EnumTransferStatus) {
|
|
3
|
+
EnumTransferStatus[EnumTransferStatus["PENDING"] = 0] = "PENDING";
|
|
4
|
+
EnumTransferStatus[EnumTransferStatus["CANCELED"] = 1] = "CANCELED";
|
|
5
|
+
EnumTransferStatus[EnumTransferStatus["IN_TRANSIT"] = 2] = "IN_TRANSIT";
|
|
6
|
+
EnumTransferStatus[EnumTransferStatus["FAILED"] = 3] = "FAILED";
|
|
7
|
+
EnumTransferStatus[EnumTransferStatus["DONE"] = 4] = "DONE";
|
|
8
|
+
})(EnumTransferStatus || (EnumTransferStatus = {}));
|
|
9
|
+
export default EnumTransferStatus;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import IAllergicStuffs from "./IAllergicStuffs";
|
|
1
2
|
import IProductExtra from "./IProductExtra";
|
|
2
|
-
interface IProduct {
|
|
3
|
+
export default interface IProduct {
|
|
3
4
|
id: number;
|
|
4
5
|
available: boolean;
|
|
5
6
|
notAvailableToDate: string | null;
|
|
7
|
+
displayWhenNotAvailable: boolean;
|
|
6
8
|
name: string;
|
|
7
9
|
posName: string;
|
|
8
10
|
kitchenReceiptName: string;
|
|
@@ -10,38 +12,40 @@ interface IProduct {
|
|
|
10
12
|
extrasDescription: string;
|
|
11
13
|
minOrderQuantity: number;
|
|
12
14
|
maxOrderQuantity: number;
|
|
15
|
+
availableIn: number;
|
|
13
16
|
deliveryPrice: number;
|
|
17
|
+
diningPrice: number;
|
|
14
18
|
pickupPrice: number;
|
|
19
|
+
availableForOrderingType: number;
|
|
15
20
|
color: string | null;
|
|
16
21
|
eanBarcode: string;
|
|
17
|
-
imageFullPath: string;
|
|
22
|
+
imageFullPath: string | null;
|
|
23
|
+
imageBase64: string | null;
|
|
18
24
|
preperationTime: string;
|
|
19
25
|
showFromDate: string | null;
|
|
20
26
|
showFromTime: string | null;
|
|
21
27
|
showToDate: string | null;
|
|
22
28
|
showToTime: string | null;
|
|
29
|
+
onlyOnWeekDays: number | null;
|
|
23
30
|
vegetarian: boolean;
|
|
31
|
+
vegan: boolean;
|
|
24
32
|
organic: boolean;
|
|
25
33
|
halal: boolean;
|
|
26
34
|
spiciness: number;
|
|
27
35
|
showCategoryExtras: boolean;
|
|
28
|
-
|
|
29
|
-
|
|
36
|
+
deleted: boolean;
|
|
37
|
+
mainCategoryId: number | null | "";
|
|
38
|
+
allergicStuffsId: number[];
|
|
39
|
+
allergicStuffs: IAllergicStuffs[];
|
|
30
40
|
inMultipleCategories: boolean;
|
|
31
41
|
categories: number[];
|
|
32
42
|
containsAlcohol: boolean;
|
|
33
|
-
vegan: boolean;
|
|
34
43
|
calories: number;
|
|
35
|
-
availableIn: number;
|
|
36
44
|
points: number;
|
|
37
45
|
chosenExtraItemsMode: number;
|
|
38
|
-
|
|
46
|
+
extras: IProductExtra[];
|
|
39
47
|
defaultExtraItems: any[];
|
|
40
|
-
|
|
41
|
-
availableForOrdering: number;
|
|
42
|
-
imageName: string;
|
|
43
|
-
onlyOnWeekDays: number | null;
|
|
44
|
-
allergicStuffs: number[];
|
|
48
|
+
customizable: boolean;
|
|
45
49
|
displayOnKitchenDisplay: boolean;
|
|
50
|
+
menuId: number;
|
|
46
51
|
}
|
|
47
|
-
export default IProduct;
|