meemup-library 1.4.84 → 1.4.86

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,7 +37,6 @@ 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";
41
40
  export * from "./interfaces/IAccount";
42
41
  export * from "./interfaces/IAction";
43
42
  export * from "./interfaces/IAllergicStuffs";
package/dist/index.js CHANGED
@@ -37,7 +37,6 @@ 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";
41
40
  export * from "./interfaces/IAccount";
42
41
  export * from "./interfaces/IAction";
43
42
  export * from "./interfaces/IAllergicStuffs";
@@ -1,10 +1,14 @@
1
+ import EnumPaymentType from "../enums/EnumPaymentType";
2
+ import ICompanyRewardsProgram from "./cdn/ICompanyRewardsProgram";
3
+ import IEmergencyBrake from "./IEmergencyBrake";
1
4
  import IZone from "./IZone";
2
5
  interface ICheckoutOption {
3
6
  localDatetime: string;
4
- emergencyBrake: any;
7
+ emergencyBrake: IEmergencyBrake | null;
5
8
  pickupEnabled: boolean;
6
9
  deliveryEnabled: boolean;
7
- availablePaymentTypes: number[];
10
+ deliveryMode: number;
11
+ availablePaymentTypes: EnumPaymentType[];
8
12
  cashPayStatus: number;
9
13
  cashPayMaxAmount: number;
10
14
  threeDimensionalSecurePayment: boolean;
@@ -16,6 +20,7 @@ interface ICheckoutOption {
16
20
  preOrderEnabled: boolean;
17
21
  minimumDate: string;
18
22
  maximumDate: string;
23
+ maxDays: number;
19
24
  maxWeeks: number;
20
25
  };
21
26
  routing: {
@@ -27,12 +32,7 @@ interface ICheckoutOption {
27
32
  defaultTipPercentage: number;
28
33
  tipPercentages: number[];
29
34
  };
30
- rewardsProgram: {
31
- enabled: boolean;
32
- minimumPointsRedeemablePerOrder: number;
33
- maximumPointsRedeemablePerOrder: number;
34
- valuePerPoint: number;
35
- };
35
+ rewardsProgram: ICompanyRewardsProgram;
36
36
  zones: IZone[];
37
37
  }
38
38
  export default ICheckoutOption;
@@ -15,7 +15,8 @@ export const initCheckoutOption = {
15
15
  preOrderEnabled: false,
16
16
  minimumDate: "",
17
17
  maximumDate: "",
18
- maxWeeks: 1
18
+ maxWeeks: 1,
19
+ maxDays: 12,
19
20
  },
20
21
  routing: {
21
22
  travelMaxDistance: 0,
@@ -32,5 +33,6 @@ export const initCheckoutOption = {
32
33
  maximumPointsRedeemablePerOrder: 1,
33
34
  valuePerPoint: 0
34
35
  },
35
- zones: []
36
+ zones: [],
37
+ deliveryMode: 1
36
38
  };
@@ -14,4 +14,11 @@ export default interface ICompanyBranch {
14
14
  deliveryMode: number;
15
15
  phoneNumber: string;
16
16
  email: string | null;
17
+ picture: string;
18
+ color: string;
19
+ uniqueName: string;
20
+ enabled: boolean;
21
+ message: string | null;
22
+ country: string;
23
+ priority: number;
17
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.4.84",
3
+ "version": "1.4.86",
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.84\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.4.86\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"
@@ -1,92 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- interface IShopHourDay {
2
- }
3
- export default IShopHourDay;
@@ -1 +0,0 @@
1
- export {};
@@ -1,88 +0,0 @@
1
- interface IShopHours {
2
- "delivery": [
3
- {
4
- "id": number;
5
- "day": number;
6
- "opened": boolean;
7
- "openHourFrom": string;
8
- "openHourTo": string;
9
- "closeHourFrom": string | null;
10
- "closeHourTo": string | 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;
@@ -1 +0,0 @@
1
- export {};