@curless/hotel-storefront 0.30.4 → 0.30.6

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/dist/tools.js CHANGED
@@ -792,6 +792,9 @@ const ARR = { type: 'array', items: { type: 'object' } };
792
792
  const STRS = { type: 'array', items: { type: 'string' } };
793
793
  const STR = { type: 'string' };
794
794
  const BOOL = { type: 'boolean' };
795
+ /** A hotel, with the fields a card decides on declared. */
796
+ const HOTEL = { type: 'object', properties: { sellsHourly: BOOL } };
797
+ const HOTELS = { type: 'array', items: HOTEL };
795
798
  const TRIP_SCHEMA = {
796
799
  type: 'object',
797
800
  properties: {
@@ -921,7 +924,7 @@ export const buildOutputSchemas = (n) => ({
921
924
  vocab: OBJ,
922
925
  demo: BOOL,
923
926
  demoNote: STR,
924
- hotels: ARR,
927
+ hotels: HOTELS,
925
928
  /** How many MATCHED. `shown` is how many are in `hotels`. */
926
929
  total: { type: 'number' },
927
930
  shown: { type: 'number' },
@@ -950,7 +953,7 @@ export const buildOutputSchemas = (n) => ({
950
953
  vocab: OBJ,
951
954
  demo: BOOL,
952
955
  demoNote: STR,
953
- hotel: OBJ,
956
+ hotel: HOTEL,
954
957
  stay: OBJ,
955
958
  rooms: ARR,
956
959
  /** True when no dates were given: the card asks for them instead of showing rooms. */