@revolugo/common 6.14.6-beta.2 → 6.14.6-beta.21
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": "6.14.6-beta.
|
|
3
|
+
"version": "6.14.6-beta.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Revolugo common",
|
|
6
6
|
"author": "Revolugo",
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
"src"
|
|
16
16
|
],
|
|
17
17
|
"exports": {
|
|
18
|
+
"./amenities": "./src/amenities/index.ts",
|
|
19
|
+
"./assets": "./src/assets/index.ts",
|
|
18
20
|
"./cancellation-policies": "./src/cancellation-policies.ts",
|
|
19
21
|
"./countries": "./src/countries/index.ts",
|
|
20
22
|
"./constants": "./src/constants/index.ts",
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export const AMENITY_TO_ICONS = Object.freeze({
|
|
2
|
+
AirConditioning: 'wind',
|
|
3
|
+
AirportTransportation: 'planeTakeOff',
|
|
4
|
+
BusinessCenter: 'building',
|
|
5
|
+
CarRentDesk: 'car',
|
|
6
|
+
ChildrenAllowed: 'baby',
|
|
7
|
+
ClothingIron: 'shirt',
|
|
8
|
+
CoffeeTeaMaker: 'coffee',
|
|
9
|
+
Combination: 'buildings',
|
|
10
|
+
ContinentalBreakfast: 'egg',
|
|
11
|
+
DataPorts: 'deviceTablet',
|
|
12
|
+
DryCleaning: 'shirt',
|
|
13
|
+
ElectronicRoomKeys: 'key',
|
|
14
|
+
ExteriorRoomEntrance: 'doorOpen',
|
|
15
|
+
FamilyRooms: 'usersThree',
|
|
16
|
+
FitnessFacility: 'gym',
|
|
17
|
+
GameRoom: 'gameController',
|
|
18
|
+
GolfCourse: 'golf',
|
|
19
|
+
HairDryer: 'hairDryer',
|
|
20
|
+
HandicapAccessible: 'wheelchair',
|
|
21
|
+
InHouseBar: 'champagne',
|
|
22
|
+
InHouseDining: 'forkKnife',
|
|
23
|
+
InRoomMovies: 'filmReel',
|
|
24
|
+
IndoorPool: 'swimmingPool',
|
|
25
|
+
InteriorRoomEntrance: 'doorOpen',
|
|
26
|
+
Kitchen: 'forkKnife',
|
|
27
|
+
Map: 'mapPin',
|
|
28
|
+
MeetingRooms: 'chalkboard',
|
|
29
|
+
MiniBarInRoom: 'wine',
|
|
30
|
+
NonSmokingRooms: 'noSmoking',
|
|
31
|
+
OutdoorPool: 'swimmingPool',
|
|
32
|
+
ParkingGarage: 'parkingSign',
|
|
33
|
+
PetsAllowed: 'pawPrint',
|
|
34
|
+
RestrictedAccess: 'lock',
|
|
35
|
+
RoomService: 'bell',
|
|
36
|
+
Safe: 'vault',
|
|
37
|
+
Sauna: 'thermometerHot',
|
|
38
|
+
TennisCourt: 'tennisBall',
|
|
39
|
+
TvInRoom: 'monitor',
|
|
40
|
+
TwentyFourHourSecurity: 'shield',
|
|
41
|
+
ValetParking: 'car',
|
|
42
|
+
VideoCheckOut: 'filmReel',
|
|
43
|
+
VoiceMail: 'phone',
|
|
44
|
+
WakeUpService: 'clock',
|
|
45
|
+
Whirpool: 'swimmingPool',
|
|
46
|
+
Wifi: 'wifiHigh',
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
export const AMENITY_NAMES = Object.keys(AMENITY_TO_ICONS)
|
|
50
|
+
|
|
51
|
+
export type HotelRoomAmenityNames = keyof typeof AMENITY_TO_ICONS
|
|
Binary file
|
|
Binary file
|
package/src/icons/index.ts
CHANGED
|
@@ -2,7 +2,9 @@ export const ICONS_NAME = Object.freeze({
|
|
|
2
2
|
airplane: 'ph:airplane',
|
|
3
3
|
archive: 'ph:archive',
|
|
4
4
|
arrowDown: 'ph:arrow-down',
|
|
5
|
+
arrowHorizontal: 'ph:arrows-horizontal',
|
|
5
6
|
arrowRight: 'ph:arrow-right',
|
|
7
|
+
arrowsLeftRight: 'ph:arrows-left-right',
|
|
6
8
|
baby: 'ph:baby',
|
|
7
9
|
bag: 'ph:bag',
|
|
8
10
|
bank: 'ph:bank',
|
|
@@ -40,14 +40,14 @@ export interface HotelOfferRequest {
|
|
|
40
40
|
* <b style="color: red;"> when no address parameter passed.</b>
|
|
41
41
|
* @type {number}
|
|
42
42
|
*/
|
|
43
|
-
latitude
|
|
43
|
+
latitude: number
|
|
44
44
|
/**
|
|
45
45
|
* Search location longitude.
|
|
46
46
|
*
|
|
47
47
|
* <b style="color: red;"> when no address parameter passed.</b>
|
|
48
48
|
* @type {number}
|
|
49
49
|
*/
|
|
50
|
-
longitude
|
|
50
|
+
longitude: number
|
|
51
51
|
/**
|
|
52
52
|
* The total number of rooms requested for the stay. Results may display offers matching a different room count than the requested one, however those results will always provide enough occupancy for the total guest count needed.
|
|
53
53
|
*
|
|
@@ -156,16 +156,15 @@ export interface HotelOfferRequestResponse {
|
|
|
156
156
|
id: string
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
export
|
|
160
|
-
HotelOfferRequest
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
>
|
|
159
|
+
export interface HotelOfferRequestCreate {
|
|
160
|
+
address?: HotelOfferRequest['address']
|
|
161
|
+
adultCount: HotelOfferRequest['adultCount']
|
|
162
|
+
checkInDate: HotelOfferRequest['checkInDate']
|
|
163
|
+
checkOutDate: HotelOfferRequest['checkOutDate']
|
|
164
|
+
children?: HotelOfferRequest['children']
|
|
165
|
+
eventMetadata?: HotelOfferRequest['eventMetadata']
|
|
166
|
+
latitude?: HotelOfferRequest['latitude']
|
|
167
|
+
longitude?: HotelOfferRequest['longitude']
|
|
168
|
+
roomCount: HotelOfferRequest['roomCount']
|
|
169
|
+
sourceMarket: HotelOfferRequest['sourceMarket']
|
|
170
|
+
}
|