@delicity/client-cart 1.2.12 → 1.2.14
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/classes/Cart.d.ts +129 -0
- package/classes/Cart.d.ts.map +1 -0
- package/classes/Cart.js +482 -0
- package/classes/Cart.js.map +1 -0
- package/index.d.ts +4 -0
- package/index.d.ts.map +1 -0
- package/index.js +20 -0
- package/index.js.map +1 -0
- package/package.json +1 -1
- package/service/CartService.d.ts +14 -0
- package/service/CartService.d.ts.map +1 -0
- package/service/CartService.js +130 -0
- package/service/CartService.js.map +1 -0
- package/service/CategoryAvailabilityService.d.ts +23 -0
- package/service/CategoryAvailabilityService.d.ts.map +1 -0
- package/service/CategoryAvailabilityService.js +103 -0
- package/service/CategoryAvailabilityService.js.map +1 -0
- package/service/DeliveryService.d.ts +4 -0
- package/service/DeliveryService.d.ts.map +1 -0
- package/service/DeliveryService.js +30 -0
- package/service/DeliveryService.js.map +1 -0
- package/service/HelperService.d.ts +2 -0
- package/service/HelperService.d.ts.map +1 -0
- package/service/HelperService.js +14 -0
- package/service/HelperService.js.map +1 -0
- package/README.md +0 -1
- package/coverage/clover.xml +0 -71
- package/coverage/coverage-final.json +0 -3
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/classes/Cart.ts.html +0 -340
- package/coverage/lcov-report/classes/index.html +0 -116
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -131
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/service/CartService.ts.html +0 -238
- package/coverage/lcov-report/service/index.html +0 -116
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -129
- package/jest.config.js +0 -8
- package/src/classes/Cart.ts +0 -563
- package/src/index.ts +0 -3
- package/src/service/CartService.ts +0 -139
- package/src/service/CategoryAvailabilityService.ts +0 -121
- package/src/service/DeliveryService.ts +0 -17
- package/src/service/HelperService.ts +0 -9
- package/src/test/availability.test.ts +0 -346
- package/src/test/class.test.ts +0 -497
- package/src/test/data/CartData.json +0 -244
- package/src/test/data/menu.json +0 -5875
- package/src/test/data/merchant.json +0 -186
- package/tsconfig.json +0 -24
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"source": "delicity",
|
|
3
|
-
"placeId": "ChIJ2b3q9CvbzRIR2lXOKaBFNaY",
|
|
4
|
-
"id": 3,
|
|
5
|
-
"name": "Starbucks - Nice Masséna",
|
|
6
|
-
"subtitle": null,
|
|
7
|
-
"descriptionTitle": "Starbucks - Nice Masséna",
|
|
8
|
-
"description": "Starbucks, un lieu de rencontre et de détente pour de nombreux amateurs de café du monde entier. À première vue, l'extérieur du café présente une façade moderne en verre avec le logo emblématique de Starbucks - une sirène verte - placé de manière proéminente au-dessus de l'entrée principale. \r\n\r\nEn approchant, on peut observer les tables en bois sombre et les chaises en fer forgé qui bordent la terrasse, offrant un espace agréable pour ceux qui souhaitent profiter de leur boisson à l'extérieur.\r\n\r\nEn franchissant les portes coulissantes, une odeur riche et invitante de café fraîchement moulu envahit les narines. L'intérieur est spacieux, avec un mélange harmonieux de tons marrons, verts et crèmes qui reflètent l'esthétique de la marque. Des canapés confortables et des fauteuils rembourrés sont disposés dans des coins tranquilles, tandis que de longues tables en bois avec des bancs offrent un espace pour les groupes plus importants ou pour ceux qui souhaitent travailler. \r\nDes prises électriques sont astucieusement placées pour permettre aux clients de charger leurs appareils.",
|
|
9
|
-
"slug": "starbucks-nice-masseacutena",
|
|
10
|
-
"website": null,
|
|
11
|
-
"schedule": {
|
|
12
|
-
"slots": [
|
|
13
|
-
{
|
|
14
|
-
"id": 3165,
|
|
15
|
-
"day": 1,
|
|
16
|
-
"start": "08:00",
|
|
17
|
-
"end": "23:00"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"id": 3166,
|
|
21
|
-
"day": 2,
|
|
22
|
-
"start": "08:00",
|
|
23
|
-
"end": "23:00"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"id": 3166,
|
|
27
|
-
"day": 3,
|
|
28
|
-
"start": "08:00",
|
|
29
|
-
"end": "23:00"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"id": 3168,
|
|
33
|
-
"day": 4,
|
|
34
|
-
"start": "08:00",
|
|
35
|
-
"end": "23:00"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"id": 3208,
|
|
39
|
-
"day": 5,
|
|
40
|
-
"start": "08:00",
|
|
41
|
-
"end": "23:00"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"id": 3171,
|
|
45
|
-
"day": 7,
|
|
46
|
-
"start": "08:00",
|
|
47
|
-
"end": "23:00"
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"closes": [],
|
|
51
|
-
"options": {
|
|
52
|
-
"closeFilter": [
|
|
53
|
-
"all",
|
|
54
|
-
"order"
|
|
55
|
-
],
|
|
56
|
-
"closeModeFilter": [
|
|
57
|
-
"ponctual",
|
|
58
|
-
"recuring"
|
|
59
|
-
],
|
|
60
|
-
"timezone": "Europe/Paris"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"gallery": [
|
|
64
|
-
{
|
|
65
|
-
"small": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/6ZZgIm9XwI0aDvyD_150x150.jpg",
|
|
66
|
-
"large": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/rMw2zd2AieSWAAX3_500x500.jpg"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"small": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/5NESEIZ1WbShAFId_150x150.jpg",
|
|
70
|
-
"large": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/dBgAp9K09fqzmBxe_500x500.jpg"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"small": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/7Ekad6leiCdjW5lP_150x150.jpg",
|
|
74
|
-
"large": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/I7HHvkk6HUOSVrQM_500x500.jpg"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"small": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/TV3tBS5Ccmf1bz72_150x150.jpg",
|
|
78
|
-
"large": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/hflJZtqi9sFjV2yZ_500x500.jpg"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"small": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/S6qNuLwgbefZHboV_150x150.jpg",
|
|
82
|
-
"large": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/rBkhPzPCSOS7WWIN_500x500.jpg"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
"hashtags": [],
|
|
86
|
-
"zoneId": 1,
|
|
87
|
-
"address": {
|
|
88
|
-
"uuid": "addr_YLvD5cI7YjuMGbSsqUN3",
|
|
89
|
-
"address": "26 Rue Massena",
|
|
90
|
-
"position": {
|
|
91
|
-
"type": "Point",
|
|
92
|
-
"coordinates": [
|
|
93
|
-
7.2660614,
|
|
94
|
-
43.6972996
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
"city": "Nice",
|
|
98
|
-
"zip": "06000",
|
|
99
|
-
"countryCode": "fr",
|
|
100
|
-
"addressShort": "26 Rue Massena, Nice",
|
|
101
|
-
"additional_informations": null
|
|
102
|
-
},
|
|
103
|
-
"logo": "https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/logo/mRE5SV83Bo6j2EJ4_200x200.jpg",
|
|
104
|
-
"phone": {
|
|
105
|
-
"e164": "+33640604023",
|
|
106
|
-
"national": "06 40 60 40 23",
|
|
107
|
-
"country": "FR"
|
|
108
|
-
},
|
|
109
|
-
"banners": [
|
|
110
|
-
"https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/banner/UP6Xyu1pO457ewGc_1600x500.jpg",
|
|
111
|
-
"https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/rMw2zd2AieSWAAX3_500x500.jpg",
|
|
112
|
-
"https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/dBgAp9K09fqzmBxe_500x500.jpg",
|
|
113
|
-
"https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/I7HHvkk6HUOSVrQM_500x500.jpg",
|
|
114
|
-
"https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/hflJZtqi9sFjV2yZ_500x500.jpg",
|
|
115
|
-
"https://delicity-dev-bucket.s3.amazonaws.com/public/merchants/starbucks-nice-masseacutena/products/rBkhPzPCSOS7WWIN_500x500.jpg"
|
|
116
|
-
],
|
|
117
|
-
"stats": {
|
|
118
|
-
"favorites": 1,
|
|
119
|
-
"rating": 3.1,
|
|
120
|
-
"reviewCount": null,
|
|
121
|
-
"priceRange": 2
|
|
122
|
-
},
|
|
123
|
-
"features": {
|
|
124
|
-
"booking": true,
|
|
125
|
-
"delivery": true,
|
|
126
|
-
"pickup": true,
|
|
127
|
-
"onsiteCounter": false,
|
|
128
|
-
"onsitePayment": true,
|
|
129
|
-
"internCourier": false,
|
|
130
|
-
"internCourierByDefault": false
|
|
131
|
-
},
|
|
132
|
-
"settings": {
|
|
133
|
-
"preparationAvgDuration": 15,
|
|
134
|
-
"preparationAvgDurationMax": 30,
|
|
135
|
-
"minDeliveryOrderPrice": 1000
|
|
136
|
-
},
|
|
137
|
-
"reviews": {
|
|
138
|
-
"display": true,
|
|
139
|
-
"total": null,
|
|
140
|
-
"items": [],
|
|
141
|
-
"repartition": {
|
|
142
|
-
"1": 0,
|
|
143
|
-
"2": 0,
|
|
144
|
-
"3": 0,
|
|
145
|
-
"4": 0,
|
|
146
|
-
"5": 0
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"categories": [
|
|
150
|
-
{
|
|
151
|
-
"value": "Boulangerie",
|
|
152
|
-
"id": 22
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"value": "Brunchs",
|
|
156
|
-
"id": 23
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"value": "Snacks",
|
|
160
|
-
"id": 48
|
|
161
|
-
}
|
|
162
|
-
],
|
|
163
|
-
"socials": [
|
|
164
|
-
{
|
|
165
|
-
"logo": "/images/social/instagram.png",
|
|
166
|
-
"url": "https://www.instagram.com/starbucksfrance/?hl=fr",
|
|
167
|
-
"type": "instagram"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"logo": "/images/social/tiktok.png",
|
|
171
|
-
"url": "https://www.tiktok.com/@starbucks_france?utm_source=linktree&utm_medium=socialmedia&utm_campaign=linktree_tiktok&utm_id=linktree",
|
|
172
|
-
"type": "tiktok"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"logo": "/images/social/twitter.png",
|
|
176
|
-
"url": "https://twitter.com/StarbucksFrance?utm_source=linktree&utm_medium=socialmedia&utm_campaign=linktree_twitter&utm_id=linktree",
|
|
177
|
-
"type": "twitter"
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
"logo": "/images/social/facebook.png",
|
|
181
|
-
"url": "https://www.facebook.com/StarbucksFrance/?utm_source=linktree&utm_medium=socialmedia&utm_campaign=linktree_fb&utm_id=linktree",
|
|
182
|
-
"type": "facebook"
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
"shareUrl": "https://delicity.com/starbucks-nice-masseacutena"
|
|
186
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2016",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"declarationMap": true,
|
|
7
|
-
"sourceMap": true,
|
|
8
|
-
"outDir": "./dist",
|
|
9
|
-
"esModuleInterop": true,
|
|
10
|
-
"resolveJsonModule": true,
|
|
11
|
-
//"forceConsistentCasingInFileNames": true,
|
|
12
|
-
"strict": true,
|
|
13
|
-
"rootDir": "./src",
|
|
14
|
-
"types": [
|
|
15
|
-
"jest"
|
|
16
|
-
],
|
|
17
|
-
"paths": {
|
|
18
|
-
"@/*": ["./src/*"],
|
|
19
|
-
},
|
|
20
|
-
"skipLibCheck": true
|
|
21
|
-
},
|
|
22
|
-
"include": ["src"],
|
|
23
|
-
"exclude": ["node_modules", "src/test"]
|
|
24
|
-
}
|