tripstorekrabi-shared 1.16.8 → 1.17.0
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/booking.js +2 -2
- package/package.json +1 -1
- package/utils.js +12 -0
package/booking.js
CHANGED
|
@@ -281,11 +281,11 @@ export function getStartingPointMessage(booking, product) {
|
|
|
281
281
|
|
|
282
282
|
text += 'Please watch out for the staff of ' + booking.operator + '.';
|
|
283
283
|
|
|
284
|
-
if (booking.
|
|
284
|
+
if (booking.googleMapsLocation?.length > 0) {
|
|
285
285
|
text += `\n\n${isHotelPickup(booking.startingPointDescription)
|
|
286
286
|
? 'PICKUP COORDINATES ON GOOGLE MAP'
|
|
287
287
|
: 'MEETING COORDINATES ON GOOGLE MAP'
|
|
288
|
-
}:\n${booking.
|
|
288
|
+
}:\n${booking.googleMapsLocation}`;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
if (product?.whatToBring?.length > 0) {
|
package/package.json
CHANGED
package/utils.js
CHANGED
|
@@ -164,6 +164,16 @@ export function getArrival(schedule) {
|
|
|
164
164
|
return schedule.split('-')[1].trim();
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
+
export function isVillaAirbnb(value) {
|
|
168
|
+
value = value.toLowerCase();
|
|
169
|
+
return (
|
|
170
|
+
(value.includes('picked up') ||
|
|
171
|
+
value.includes('pickup') ||
|
|
172
|
+
value.includes('round-trip')) && (
|
|
173
|
+
value.includes("villa") || value.includes("airbnb"))
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
167
177
|
export function isHotelPickup(value) {
|
|
168
178
|
value = value.toLowerCase();
|
|
169
179
|
return (
|
|
@@ -174,6 +184,8 @@ export function isHotelPickup(value) {
|
|
|
174
184
|
);
|
|
175
185
|
}
|
|
176
186
|
|
|
187
|
+
|
|
188
|
+
|
|
177
189
|
export function isHotelDropOff(value) {
|
|
178
190
|
value = value.toLowerCase();
|
|
179
191
|
return (
|