@revolugo/common 7.2.4-alpha.2 → 7.2.4-alpha.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolugo/common",
3
- "version": "7.2.4-alpha.2",
3
+ "version": "7.2.4-alpha.20",
4
4
  "private": false,
5
5
  "description": "Revolugo common",
6
6
  "author": "Revolugo",
@@ -23,11 +23,11 @@
23
23
  "./utils": "./src/utils/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@asteasolutions/zod-to-openapi": "8.4.0",
26
+ "@asteasolutions/zod-to-openapi": "8.4.3",
27
27
  "change-case": "5.4.4",
28
- "dayjs": "1.11.19",
28
+ "dayjs": "1.11.20",
29
29
  "ky": "1.14.3",
30
- "slugify": "1.6.6",
30
+ "slugify": "1.6.8",
31
31
  "type-fest": "5.4.4",
32
32
  "uuid": "13.0.0",
33
33
  "zod": "4.3.6"
@@ -20,10 +20,10 @@ export const AMENITY_TO_ICONS = Object.freeze({
20
20
  GolfCourse: 'golf',
21
21
  HairDryer: 'hairDryer',
22
22
  HandicapAccessible: 'wheelchair',
23
+ IndoorPool: 'swimmingPool',
23
24
  InHouseBar: 'champagne',
24
25
  InHouseDining: 'forkKnife',
25
26
  InRoomMovies: 'filmReel',
26
- IndoorPool: 'swimmingPool',
27
27
  InteriorRoomEntrance: 'doorOpen',
28
28
  Kitchen: 'forkKnife',
29
29
  Map: 'mapPin',
@@ -52,9 +52,9 @@ export enum BookingEnvironment {
52
52
 
53
53
  /* @__PURE__ */
54
54
  export const BOOKING_API_URLS = {
55
+ [Environment.CiCd]: 'https://booking-api.staging.revolugo.com',
56
+ [Environment.Local]: 'http://127.0.0.1:3001',
55
57
  [Environment.Production]: 'https://booking-api.revolugo.com',
56
58
  [Environment.Sandbox]: 'https://booking-api.sandbox.revolugo.com',
57
59
  [Environment.Staging]: 'https://booking-api.staging.revolugo.com',
58
- [Environment.CiCd]: 'https://booking-api.staging.revolugo.com',
59
- [Environment.Local]: 'http://127.0.0.1:3001',
60
60
  }
@@ -33,10 +33,10 @@ export function langFromString(langStr: string): Lang | undefined {
33
33
 
34
34
  /* @__PURE__ */
35
35
  export const LANG_TO_LOCALE: Record<Lang, Locale> = {
36
- [Lang.EN]: Locale.en_US,
37
- [Lang.FR]: Locale.fr_FR,
38
36
  [Lang.DE]: Locale.de_DE,
37
+ [Lang.EN]: Locale.en_US,
39
38
  [Lang.ES]: Locale.es_ES,
39
+ [Lang.FR]: Locale.fr_FR,
40
40
  [Lang.IT]: Locale.it_IT,
41
41
  [Lang.NL]: Locale.nl_NL,
42
42
  [Lang.PT]: Locale.pt_PT,
@@ -55,20 +55,6 @@ export const LOCALE_TO_LANG = {
55
55
 
56
56
  /* @__PURE__ */
57
57
  export const LOCALES = {
58
- [Locale.en_US]: {
59
- code: Locale.en_US,
60
- countryCode: 'US',
61
- icon: '🇺🇸',
62
- locale: Lang.EN,
63
- name: 'English',
64
- },
65
- [Locale.fr_FR]: {
66
- code: Locale.fr_FR,
67
- countryCode: 'FR',
68
- icon: '🇫🇷',
69
- locale: Lang.FR,
70
- name: 'Français',
71
- },
72
58
  [Locale.de_DE]: {
73
59
  code: Locale.de_DE,
74
60
  countryCode: 'DE',
@@ -76,6 +62,13 @@ export const LOCALES = {
76
62
  locale: Lang.DE,
77
63
  name: 'Deutsch',
78
64
  },
65
+ [Locale.en_US]: {
66
+ code: Locale.en_US,
67
+ countryCode: 'US',
68
+ icon: '🇺🇸',
69
+ locale: Lang.EN,
70
+ name: 'English',
71
+ },
79
72
  [Locale.es_ES]: {
80
73
  code: Locale.es_ES,
81
74
  countryCode: 'ES',
@@ -83,6 +76,13 @@ export const LOCALES = {
83
76
  locale: Lang.ES,
84
77
  name: 'Español',
85
78
  },
79
+ [Locale.fr_FR]: {
80
+ code: Locale.fr_FR,
81
+ countryCode: 'FR',
82
+ icon: '🇫🇷',
83
+ locale: Lang.FR,
84
+ name: 'Français',
85
+ },
86
86
  [Locale.it_IT]: {
87
87
  code: Locale.it_IT,
88
88
  countryCode: 'IT',
@@ -167,7 +167,6 @@ export const ICONS_NAME = Object.freeze({
167
167
  subway: 'ph:subway',
168
168
  swimmingPool: 'ph:swimming-pool',
169
169
  synagogue: 'ph:synagogue',
170
- tShirt: 'ph:t-shirt',
171
170
  taxi: 'ph:taxi',
172
171
  tennisBall: 'ph:tennis-ball',
173
172
  tent: 'ph:tent',
@@ -181,6 +180,7 @@ export const ICONS_NAME = Object.freeze({
181
180
  trendDown: 'ph:trend-down',
182
181
  trendUp: 'ph:trend-up',
183
182
  truck: 'ph:truck',
183
+ tShirt: 'ph:t-shirt',
184
184
  upload: 'ph:upload-simple',
185
185
  uploadThick: 'ph:arrow-fat-line-up',
186
186
  user: 'ph:user',
@@ -1,16 +1,16 @@
1
1
  const TS_QUERY_SPECIAL_CHARS = new Set([
2
- '&',
3
- '|',
4
- ':',
5
2
  '!',
3
+ '&',
6
4
  '(',
7
5
  ')',
6
+ ':',
8
7
  '<',
9
8
  '>',
10
9
  '@',
10
+ '|',
11
11
  ])
12
12
 
13
- const REGEX_SPECIAL_CHARS = new Set(['|', '(', ')'])
13
+ const REGEX_SPECIAL_CHARS = new Set(['(', ')', '|'])
14
14
 
15
15
  export function prepareTsQuery(query: string): string | null {
16
16
  // Remove leading/trailing whitespaces