@revolugo/common 6.12.1-beta.3 → 6.12.1-beta.30
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 +3 -2
- package/src/constants/environment.ts +5 -0
- package/src/icons/index.ts +212 -0
- package/src/types/elements/hotel-room-offer-list.ts +10 -0
- package/src/types/elements/hotel-room-offer-request.ts +3 -0
- package/src/types/elements/index.ts +1 -0
- package/src/types/elements/meta-polling.ts +6 -0
- package/src/types/payment.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolugo/common",
|
|
3
|
-
"version": "6.12.1-beta.
|
|
3
|
+
"version": "6.12.1-beta.30",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Revolugo common",
|
|
6
6
|
"author": "Revolugo",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"./constants": "./src/constants/index.ts",
|
|
15
15
|
"./currencies": "./src/currencies/index.ts",
|
|
16
16
|
"./http": "./src/http/index.ts",
|
|
17
|
+
"./icons": "./src/icons/index.ts",
|
|
17
18
|
"./map": "./src/map/index.ts",
|
|
18
19
|
"./models": "./src/models/index.ts",
|
|
19
20
|
"./types": "./src/types/index.ts",
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
24
|
"change-case": "5.4.4",
|
|
24
|
-
"dayjs": "1.11.
|
|
25
|
+
"dayjs": "1.11.19",
|
|
25
26
|
"ky": "1.13.0",
|
|
26
27
|
"slugify": "1.6.6",
|
|
27
28
|
"uuid": "13.0.0"
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
export const ICONS_NAME = Object.freeze({
|
|
2
|
+
airplane: 'ph:airplane',
|
|
3
|
+
archive: 'ph:archive',
|
|
4
|
+
arrowDown: 'ph:arrow-down',
|
|
5
|
+
arrowRight: 'ph:arrow-right',
|
|
6
|
+
baby: 'ph:baby',
|
|
7
|
+
bag: 'ph:bag',
|
|
8
|
+
bank: 'ph:bank',
|
|
9
|
+
bed: 'ph:bed',
|
|
10
|
+
bell: 'ph:bell',
|
|
11
|
+
bicycle: 'ph:bicycle',
|
|
12
|
+
book: 'ph:book',
|
|
13
|
+
bookOpen: 'ph:book-open',
|
|
14
|
+
bowlingBall: 'ph:bowling-ball',
|
|
15
|
+
building: 'ph:building',
|
|
16
|
+
buildings: 'ph:buildings',
|
|
17
|
+
bus: 'ph:bus',
|
|
18
|
+
cake: 'ph:cake',
|
|
19
|
+
calculator: 'ph:calculator',
|
|
20
|
+
calendar: 'ph:calendar-blank',
|
|
21
|
+
car: 'ph:car',
|
|
22
|
+
caretDown: 'ph:caret-down',
|
|
23
|
+
caretRight: 'ph:caret-right',
|
|
24
|
+
caretUp: 'ph:caret-up',
|
|
25
|
+
caretUpDown: 'ph:caret-up-down',
|
|
26
|
+
chair: 'ph:chair',
|
|
27
|
+
chalkboard: 'ph:chalkboard',
|
|
28
|
+
champagne: 'ph:champagne',
|
|
29
|
+
chatOff: 'ph:chat-circle-slash',
|
|
30
|
+
check: 'ph:check',
|
|
31
|
+
checkCircle: 'ph:check-circle',
|
|
32
|
+
checkFat: 'ph:check-fat',
|
|
33
|
+
checks: 'ph:checks',
|
|
34
|
+
cheers: 'ph:cheers',
|
|
35
|
+
church: 'ph:church',
|
|
36
|
+
circle: 'ph:circle',
|
|
37
|
+
circleNotch: 'ph:circle-notch',
|
|
38
|
+
clock: 'ph:clock',
|
|
39
|
+
close: 'ph:x',
|
|
40
|
+
closeCircle: 'ph:x-circle',
|
|
41
|
+
cloud: 'ph:cloud',
|
|
42
|
+
cloudDown: 'ph:cloud-arrow-down',
|
|
43
|
+
cloudUp: 'ph:cloud-arrow-up',
|
|
44
|
+
coffee: 'ph:coffee',
|
|
45
|
+
coinVertical: 'ph:coin-vertical',
|
|
46
|
+
comment: 'ph:chat-teardrop',
|
|
47
|
+
copy: 'ph:copy',
|
|
48
|
+
cross: 'ph:cross',
|
|
49
|
+
desktop: 'ph:desktop',
|
|
50
|
+
deviceMobile: 'ph:device-mobile',
|
|
51
|
+
deviceTablet: 'ph:device-tablet',
|
|
52
|
+
diceSix: 'ph:dice-six',
|
|
53
|
+
doorOpen: 'ph:door-open',
|
|
54
|
+
dotsThree: 'ph:dots-three',
|
|
55
|
+
download: 'ph:download-simple',
|
|
56
|
+
egg: 'ph:egg',
|
|
57
|
+
elevator: 'ph:elevator',
|
|
58
|
+
envelope: 'ph:envelope',
|
|
59
|
+
euro: 'ph:currency-eur',
|
|
60
|
+
exclamation: 'ph:exclamation-mark',
|
|
61
|
+
expand: 'ph:arrows-out-simple',
|
|
62
|
+
external: 'ph:arrow-square-out',
|
|
63
|
+
eye: 'ph:eye',
|
|
64
|
+
eyeClosed: 'ph:eye-closed',
|
|
65
|
+
eyeSlash: 'ph:eye-slash',
|
|
66
|
+
file: 'ph:file',
|
|
67
|
+
fileJpg: 'ph:file-jpg',
|
|
68
|
+
filePdf: 'ph:file-pdf',
|
|
69
|
+
filePng: 'ph:file-png',
|
|
70
|
+
fileSearch: 'ph:file-search',
|
|
71
|
+
fileText: 'ph:file-text',
|
|
72
|
+
fileXls: 'ph:file-xls',
|
|
73
|
+
filmReel: 'ph:film-reel',
|
|
74
|
+
fire: 'ph:fire',
|
|
75
|
+
fish: 'ph:fish',
|
|
76
|
+
flag: 'ph:flag',
|
|
77
|
+
floppyDisk: 'ph:floppy-disk',
|
|
78
|
+
flower: 'ph:flower',
|
|
79
|
+
forkKnife: 'ph:fork-knife',
|
|
80
|
+
funnelSimple: 'ph:funnel-simple',
|
|
81
|
+
gameController: 'ph:game-controller',
|
|
82
|
+
gasPump: 'ph:gas-pump',
|
|
83
|
+
gavel: 'ph:gavel',
|
|
84
|
+
gear: 'ph:gear',
|
|
85
|
+
globe: 'ph:globe',
|
|
86
|
+
graph: 'ph:graph',
|
|
87
|
+
gym: 'ph:barbell',
|
|
88
|
+
hammer: 'ph:hammer',
|
|
89
|
+
handPeace: 'ph:hand-peace',
|
|
90
|
+
heart: 'ph:heart',
|
|
91
|
+
hospital: 'ph:hospital',
|
|
92
|
+
house: 'ph:house',
|
|
93
|
+
idBadge: 'ph:identification-badge',
|
|
94
|
+
image: 'ph:image',
|
|
95
|
+
images: 'ph:images',
|
|
96
|
+
info: 'ph:info',
|
|
97
|
+
key: 'ph:key',
|
|
98
|
+
leaf: 'ph:leaf',
|
|
99
|
+
lightning: 'ph:lightning',
|
|
100
|
+
link: 'ph:link',
|
|
101
|
+
linkBreak: 'ph:link-break',
|
|
102
|
+
lock: 'ph:lock',
|
|
103
|
+
lockKey: 'ph:lock-key',
|
|
104
|
+
lockKeyOpen: 'ph:lock-key-open',
|
|
105
|
+
lockOpen: 'ph:lock-open',
|
|
106
|
+
magnifyingGlass: 'ph:magnifying-glass',
|
|
107
|
+
mapPin: 'ph:map-pin',
|
|
108
|
+
mapPinArea: 'ph:map-pin-area',
|
|
109
|
+
mapPinSimpleArea: 'ph:map-pin-simple-area',
|
|
110
|
+
medical: 'ph:first-aid-kit',
|
|
111
|
+
minus: 'ph:minus',
|
|
112
|
+
minusCircle: 'ph:minus-circle',
|
|
113
|
+
money: 'ph:money',
|
|
114
|
+
mosque: 'ph:mosque',
|
|
115
|
+
musicNotes: 'ph:music-notes',
|
|
116
|
+
note: 'ph:note',
|
|
117
|
+
paintBrush: 'ph:paint-brush',
|
|
118
|
+
palette: 'ph:palette',
|
|
119
|
+
paperPlaneTilt: 'ph:paper-plane-tilt',
|
|
120
|
+
parkingSign: 'ph:letter-circle-p',
|
|
121
|
+
pauseCircle: 'ph:pause-circle',
|
|
122
|
+
pawPrint: 'ph:paw-print',
|
|
123
|
+
pencil: 'ph:pencil',
|
|
124
|
+
phone: 'ph:phone',
|
|
125
|
+
pill: 'ph:pill',
|
|
126
|
+
plus: 'ph:plus',
|
|
127
|
+
plusCircle: 'ph:plus-circle',
|
|
128
|
+
policeCar: 'ph:police-car',
|
|
129
|
+
praying: 'ph:hands-praying',
|
|
130
|
+
questionMark: 'ph:question-mark',
|
|
131
|
+
refresh: 'ph:arrows-counter-clockwise',
|
|
132
|
+
running: 'ph:person-simple-run',
|
|
133
|
+
scissors: 'ph:scissors',
|
|
134
|
+
shield: 'ph:shield',
|
|
135
|
+
shirt: 'ph:shirt-folded',
|
|
136
|
+
shoppingCart: 'ph:shopping-cart',
|
|
137
|
+
shrink: 'ph:arrows-in-simple',
|
|
138
|
+
signOut: 'ph:sign-out',
|
|
139
|
+
sneakerMove: 'ph:sneaker-move',
|
|
140
|
+
soccerBall: 'ph:soccer-ball',
|
|
141
|
+
spinner: 'ph:spinner',
|
|
142
|
+
star: 'ph:star',
|
|
143
|
+
starHalf: 'ph:star-half',
|
|
144
|
+
stethoscope: 'ph:stethoscope',
|
|
145
|
+
stop: 'ph:stop',
|
|
146
|
+
storefront: 'ph:storefront',
|
|
147
|
+
student: 'ph:student',
|
|
148
|
+
subway: 'ph:subway',
|
|
149
|
+
synagogue: 'ph:synagogue',
|
|
150
|
+
tShirt: 'ph:t-shirt',
|
|
151
|
+
taxi: 'ph:taxi',
|
|
152
|
+
tent: 'ph:tent',
|
|
153
|
+
thumbsUp: 'ph:thumbs-up',
|
|
154
|
+
tooth: 'ph:tooth',
|
|
155
|
+
train: 'ph:train',
|
|
156
|
+
trash: 'ph:trash',
|
|
157
|
+
tree: 'ph:tree',
|
|
158
|
+
trendDown: 'ph:trend-down',
|
|
159
|
+
trendUp: 'ph:trend-up',
|
|
160
|
+
truck: 'ph:truck',
|
|
161
|
+
upload: 'ph:upload-simple',
|
|
162
|
+
uploadThick: 'ph:arrow-fat-line-up',
|
|
163
|
+
user: 'ph:user',
|
|
164
|
+
users: 'ph:users',
|
|
165
|
+
usersThree: 'ph:users-three',
|
|
166
|
+
van: 'ph:van',
|
|
167
|
+
walking: 'ph:person-simple-walk',
|
|
168
|
+
warning: 'ph:warning',
|
|
169
|
+
warningCircle: 'ph:warning-circle',
|
|
170
|
+
wifiHigh: 'ph:wifi-high',
|
|
171
|
+
wifiSlash: 'ph:wifi-slash',
|
|
172
|
+
wine: 'ph:wine',
|
|
173
|
+
wrench: 'ph:wrench',
|
|
174
|
+
})
|
|
175
|
+
|
|
176
|
+
export const ICON_NAMES = Object.keys(ICONS_NAME)
|
|
177
|
+
|
|
178
|
+
export const ICONS_TO_FA_ICONS: Partial<
|
|
179
|
+
Record<keyof typeof ICONS_NAME, string>
|
|
180
|
+
> = {
|
|
181
|
+
baby: 'child',
|
|
182
|
+
bus: 'bus',
|
|
183
|
+
clock: 'clock',
|
|
184
|
+
coffee: 'mug-saucer',
|
|
185
|
+
euro: 'euro-sign',
|
|
186
|
+
handPeace: 'hand-peace',
|
|
187
|
+
heart: 'heart',
|
|
188
|
+
house: 'house',
|
|
189
|
+
idBadge: 'id-badge',
|
|
190
|
+
leaf: 'leaf',
|
|
191
|
+
running: 'person-running',
|
|
192
|
+
shirt: 'shirt',
|
|
193
|
+
star: 'star',
|
|
194
|
+
van: 'van-shuttle',
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export const FA_ICONS_TO_ICONS = {
|
|
198
|
+
bus: ICONS_NAME.bus,
|
|
199
|
+
child: ICONS_NAME.baby,
|
|
200
|
+
clock: ICONS_NAME.clock,
|
|
201
|
+
'euro-sign': ICONS_NAME.euro,
|
|
202
|
+
'hand-peace': ICONS_NAME.handPeace,
|
|
203
|
+
heart: ICONS_NAME.heart,
|
|
204
|
+
house: ICONS_NAME.house,
|
|
205
|
+
'id-badge': ICONS_NAME.idBadge,
|
|
206
|
+
leaf: ICONS_NAME.leaf,
|
|
207
|
+
'mug-hot': ICONS_NAME.coffee,
|
|
208
|
+
'person-running': ICONS_NAME.running,
|
|
209
|
+
shirt: ICONS_NAME.shirt,
|
|
210
|
+
star: ICONS_NAME.star,
|
|
211
|
+
'van-shuttle': ICONS_NAME.van,
|
|
212
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { CurrencyType } from './currency.ts'
|
|
2
|
+
// eslint-disable-next-line no-restricted-imports
|
|
3
|
+
import type { Locale } from '../../constants/index.ts'
|
|
4
|
+
|
|
5
|
+
export interface HotelRoomOffersListPayload {
|
|
6
|
+
currency: CurrencyType
|
|
7
|
+
hotelRoomOfferRequestId: string
|
|
8
|
+
lang?: Locale
|
|
9
|
+
limit?: number | null
|
|
10
|
+
}
|
|
@@ -22,6 +22,12 @@ export interface MetaPollingResponse {
|
|
|
22
22
|
* @memberof MetaApiPollingResponse
|
|
23
23
|
*/
|
|
24
24
|
startingAfter?: string | null
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof HotelOffersApiResponseMeta
|
|
29
|
+
*/
|
|
30
|
+
totalCount?: number | null
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {PollerType}
|