meemup-library 1.4.35 → 1.4.37

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/index.d.ts CHANGED
@@ -37,6 +37,7 @@ export * from "./enums/EnumProductAvailableMode";
37
37
  export * from "./enums/EnumShowOrderMode";
38
38
  export * from "./enums/EnumSortMode";
39
39
  export * from "./enums/EnumTipType";
40
+ export * from "./interfaces/cdn/IShop";
40
41
  export * from "./interfaces/IAccount";
41
42
  export * from "./interfaces/IAction";
42
43
  export * from "./interfaces/IAllergicStuffs";
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ export * from "./enums/EnumProductAvailableMode";
37
37
  export * from "./enums/EnumShowOrderMode";
38
38
  export * from "./enums/EnumSortMode";
39
39
  export * from "./enums/EnumTipType";
40
+ export * from "./interfaces/cdn/IShop";
40
41
  export * from "./interfaces/IAccount";
41
42
  export * from "./interfaces/IAction";
42
43
  export * from "./interfaces/IAllergicStuffs";
@@ -3,6 +3,8 @@ interface ICustomerAccount extends ICustomerProfile {
3
3
  token: string;
4
4
  fullName: string;
5
5
  userName: string;
6
+ status: boolean;
7
+ balance: number;
6
8
  }
7
9
  export default ICustomerAccount;
8
10
  export declare const initCustomerAccount: ICustomerAccount;
@@ -1,2 +1,2 @@
1
1
  import { initCustomerProfile } from "./ICustomerProfile";
2
- export const initCustomerAccount = Object.assign(Object.assign({}, initCustomerProfile), { token: "", fullName: "", userName: "" });
2
+ export const initCustomerAccount = Object.assign(Object.assign({}, initCustomerProfile), { token: "", fullName: "", userName: "", status: false, balance: 0 });
@@ -0,0 +1,92 @@
1
+ import EnumPaymentType from "../../enums/EnumPaymentType";
2
+ import IEmergencyBrake from "../IEmergencyBrake";
3
+ import ILocation from "../ILocation";
4
+ import IManagementOnlineStoreBlock from "../management/IManagementOnlineStoreBlock";
5
+ import IShopHours from "./IShopHours";
6
+ import IShopSocialNetwork from "./IShopSocialNetwork";
7
+ interface IShop {
8
+ "id": number;
9
+ "poweredBy": string;
10
+ "poweredByWebsiteUrl": string;
11
+ "title": string;
12
+ "subTitle": string;
13
+ "address": string;
14
+ "phoneNumber": string;
15
+ "logoUrl": string;
16
+ "faviconUrl": string;
17
+ "rootUrl": string;
18
+ "cashPayStatus": number;
19
+ "cashPayMaxAmount": number;
20
+ "currencySymbol": string;
21
+ "showNoPopupsByDefault": boolean;
22
+ "pickupEnabled": boolean;
23
+ "deliveryEnabled": boolean;
24
+ "deliveryMode": number;
25
+ "availablePaymentTypes": EnumPaymentType[];
26
+ "deliveryTransportType": number;
27
+ "deliveryTravelMaxDistance": number;
28
+ "deliveryTravelTime": string;
29
+ "emergencyBrakeEnabled": boolean;
30
+ "emergencyBrake": IEmergencyBrake | null;
31
+ "threeDimensionalSecurePayment": boolean;
32
+ "location": ILocation;
33
+ "socialNetworks": IShopSocialNetwork[];
34
+ "hours": IShopHours;
35
+ "branches": [];
36
+ "ownerCompany": string | null;
37
+ "timeZone": {
38
+ "id": number;
39
+ "key": string;
40
+ "name": string;
41
+ "offset": number;
42
+ };
43
+ "rewardsProgram": {
44
+ "enabled": boolean;
45
+ "minimumPointsRedeemablePerOrder": number;
46
+ "maximumPointsRedeemablePerOrder": number;
47
+ "valuePerPoint": number;
48
+ };
49
+ "template": {
50
+ "smallBannerUrl": string;
51
+ "largeBannerUrl": string;
52
+ "mediumBannerUrl": string;
53
+ "mapLocationSection": boolean;
54
+ "infoSection": boolean;
55
+ "pickupDeliverySelectorSection": boolean;
56
+ "splashPageLayout": number;
57
+ "productsPageTitle": "Product";
58
+ "promotionSectionVisibility": boolean;
59
+ "filterSectionVisibility": boolean;
60
+ "allergiesSectionVisibility": boolean;
61
+ "defaultProductView": number;
62
+ "ageVerificationPopUp": boolean;
63
+ "ageRestriction": number;
64
+ "contactUsEnabled": boolean;
65
+ "aboutUsEnabled": boolean;
66
+ "sectionBlocks": IManagementOnlineStoreBlock[];
67
+ };
68
+ "colors": {
69
+ "colorBar": string;
70
+ "primary": string;
71
+ "primaryDark": string;
72
+ "primaryLight": string;
73
+ "secondary": string;
74
+ "secondaryDark": string;
75
+ "secondaryLight": string;
76
+ "textPrimary": string;
77
+ "textSecondary": string;
78
+ "divider": string;
79
+ "backgroundColor": string;
80
+ "tabColor": string;
81
+ };
82
+ "seo": {
83
+ "title": string | null;
84
+ "summary": string | null;
85
+ "googleAnalyticsCode": string | null;
86
+ "googleAnalytics": boolean;
87
+ "facebookPixelCode": string | null;
88
+ "servesCuisine": string | null;
89
+ "priceRange": string | null;
90
+ };
91
+ }
92
+ export default IShop;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ interface IShopHourDay {
2
+ }
3
+ export default IShopHourDay;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,88 @@
1
+ interface IShopHours {
2
+ "delivery": [
3
+ {
4
+ "id": 10657;
5
+ "day": 6;
6
+ "opened": boolean;
7
+ "openHourFrom": "11:00:00";
8
+ "openHourTo": "22:30:00";
9
+ "closeHourFrom": null;
10
+ "closeHourTo": null;
11
+ }
12
+ ];
13
+ "deliveryEnabled": boolean;
14
+ "pickup": [
15
+ {
16
+ "id": 10650;
17
+ "day": 7;
18
+ "opened": boolean;
19
+ "openHourFrom": "08:00:00";
20
+ "openHourTo": "23:30:00";
21
+ "closeHourFrom": null;
22
+ "closeHourTo": null;
23
+ },
24
+ {
25
+ "id": 10651;
26
+ "day": 6;
27
+ "opened": boolean;
28
+ "openHourFrom": "08:00:00";
29
+ "openHourTo": "12:10:00";
30
+ "closeHourFrom": null;
31
+ "closeHourTo": null;
32
+ },
33
+ {
34
+ "id": 10652;
35
+ "day": 5;
36
+ "opened": boolean;
37
+ "openHourFrom": "15:00:00";
38
+ "openHourTo": "23:00:00";
39
+ "closeHourFrom": null;
40
+ "closeHourTo": null;
41
+ },
42
+ {
43
+ "id": 10653;
44
+ "day": 4;
45
+ "opened": boolean;
46
+ "openHourFrom": "08:00:00";
47
+ "openHourTo": "02:00:00";
48
+ "closeHourFrom": null;
49
+ "closeHourTo": null;
50
+ },
51
+ {
52
+ "id": 10654;
53
+ "day": 3;
54
+ "opened": boolean;
55
+ "openHourFrom": "08:00:00";
56
+ "openHourTo": "23:00:00";
57
+ "closeHourFrom": null;
58
+ "closeHourTo": null;
59
+ },
60
+ {
61
+ "id": 10655;
62
+ "day": 1;
63
+ "opened": boolean;
64
+ "openHourFrom": "08:00:00";
65
+ "openHourTo": "14:50:00";
66
+ "closeHourFrom": null;
67
+ "closeHourTo": null;
68
+ },
69
+ {
70
+ "id": 10656;
71
+ "day": 2;
72
+ "opened": boolean;
73
+ "openHourFrom": "08:00:00";
74
+ "openHourTo": "23:00:00";
75
+ "closeHourFrom": null;
76
+ "closeHourTo": null;
77
+ }
78
+ ];
79
+ "pickupEnabled": boolean;
80
+ "today": number;
81
+ "sameDayOrderEnabled": boolean;
82
+ "preOrderEnabled": boolean;
83
+ "preOrderMaxDays": number;
84
+ "preOrderOnSameDay": boolean;
85
+ "preOrderSubmissionDeadline": number;
86
+ "asSoonAsPossibleDesiredDateTimeEnabled": true;
87
+ }
88
+ export default IShopHours;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ interface IShopSocialNetwork {
2
+ url: string;
3
+ image: string;
4
+ text: string;
5
+ }
6
+ export default IShopSocialNetwork;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import IAddInventoryItem from './IAddInventoryItem';
2
+ export default interface IEditInventoryItem extends IAddInventoryItem {
3
+ id: number;
4
+ }
5
+ export declare const initEditInventoryItem: IEditInventoryItem;
@@ -0,0 +1,2 @@
1
+ import { initAddInventoryItem } from './IAddInventoryItem';
2
+ export const initEditInventoryItem = Object.assign(Object.assign({}, initAddInventoryItem), { id: -1 });
@@ -33,6 +33,8 @@ interface IPointOfSaleOrder {
33
33
  city: string;
34
34
  houseNo: string;
35
35
  postalCode: string;
36
+ streetNumber: string;
37
+ streetName: string;
36
38
  title: string;
37
39
  country: string;
38
40
  province: string;
@@ -35,6 +35,8 @@ export const initOrder = {
35
35
  title: "",
36
36
  country: "",
37
37
  province: "",
38
+ streetNumber: "",
39
+ streetName: "",
38
40
  longitude: 0,
39
41
  latitude: 0,
40
42
  tableNo: "",
@@ -32,6 +32,8 @@ export default interface IPointOfSaleSaveOrder {
32
32
  buzzer: string;
33
33
  postalCode: string;
34
34
  apartment: string;
35
+ streetNumber: string;
36
+ streetName: string;
35
37
  houseNo: string;
36
38
  roundCashAmount: number;
37
39
  paymentStateString: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.4.35",
3
+ "version": "1.4.37",
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.4.35 \" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.4.37 \" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"