@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/card.generated.d.ts +1 -1
- package/dist/card.generated.js +2 -2
- package/dist/card.generated.js.map +1 -1
- package/dist/huazhu/backend.d.ts.map +1 -1
- package/dist/huazhu/backend.js +42 -12
- package/dist/huazhu/backend.js.map +1 -1
- package/dist/server.d.ts +2 -2
- package/dist/server.js +2 -2
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +5 -2
- package/dist/tools.js.map +1 -1
- package/dist/types.d.ts +7 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
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:
|
|
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:
|
|
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. */
|