@revolugo/common 7.10.0-alpha.51 → 7.10.0-alpha.53
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
|
@@ -13,8 +13,12 @@ export const BED_SCHEMA = z
|
|
|
13
13
|
})
|
|
14
14
|
.openapi('bedApi')
|
|
15
15
|
|
|
16
|
+
export const BED_COMBINATION_SCHEMA = z
|
|
17
|
+
.array(BED_SCHEMA)
|
|
18
|
+
.openapi('bedCombinationApi')
|
|
19
|
+
|
|
16
20
|
export const BEDS_SCHEMA = z
|
|
17
|
-
.array(
|
|
21
|
+
.array(BED_COMBINATION_SCHEMA)
|
|
18
22
|
.openapi({
|
|
19
23
|
description: `Beds list.
|
|
20
24
|
Each nested array of beds represents a single combination of possible beds.
|
package/src/schemas/hotel.ts
CHANGED
|
@@ -277,7 +277,7 @@ export const HOTEL_SCHEMA = z
|
|
|
277
277
|
)
|
|
278
278
|
.openapi({ description: 'Hotel country code in ISO2.' })
|
|
279
279
|
.nullish(),
|
|
280
|
-
currency: CURRENCY_SCHEMA.
|
|
280
|
+
currency: CURRENCY_SCHEMA.optional(),
|
|
281
281
|
description: z
|
|
282
282
|
.string()
|
|
283
283
|
.openapi({ description: 'Hotel description.' })
|