tripstorekrabi-shared 1.17.1 → 1.17.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils.js +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.17.1",
3
+ "version": "1.17.2",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/utils.js CHANGED
@@ -21,6 +21,12 @@ export const CHECK_IN_LATE = 'CHECK-IN LATE';
21
21
  export const ROOM_NUMBER_LIST = [NO_ROOM, IN_HOUSE, CHECK_IN_LATE];
22
22
  export const NO_PICKUP_HOTEL_YET = "NO PICKUP HOTEL YET";
23
23
 
24
+ export const TELL_HOTEL_LATER_STARTING_POINT = { id: "ThDUqeSiUvvdjfHgQQq5a", description: "I will tell the hotel name later" };
25
+ export const CUSTOM_MEETING_POINT = {
26
+ id: "OlJFIHnowHZQ4SPD5tvgd",
27
+ description: 'Custom meeting point',
28
+ };
29
+
24
30
  export const TRIPSTORE_AGENCYID_IN_PHAYUN = '2Z5NPZTmd62tm22q0RNB';
25
31
  export const VIATOR_AGENCYID_IN_PHAYUN = 'eVxVUldoJhEiNUZyfcyt';
26
32
  export const GYG_AGENCYID_IN_PHAYUN = 'lPZIMbXgzaFwA366uzia';
@@ -238,6 +244,12 @@ export function isTrainStation(value) {
238
244
  return value.includes('train') && value.includes('station');
239
245
  }
240
246
 
247
+ export function isCruiser(value) {
248
+ return ['cruise', 'tender port', 'sea port'].some((item) => value
249
+ .toLowerCase()
250
+ .includes(item));
251
+ }
252
+
241
253
  export function validateName(name) {
242
254
  name = name.trim();
243
255
  if (name) {