@curless/hotel-storefront 0.84.8 → 0.86.0

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.
Files changed (229) hide show
  1. package/dist/config.d.ts +35 -2
  2. package/dist/config.d.ts.map +1 -1
  3. package/dist/config.js.map +1 -1
  4. package/dist/huazhu/ari-sync.d.ts +93 -6
  5. package/dist/huazhu/ari-sync.d.ts.map +1 -1
  6. package/dist/huazhu/ari-sync.js +303 -28
  7. package/dist/huazhu/ari-sync.js.map +1 -1
  8. package/dist/huazhu/backend.d.ts +9 -0
  9. package/dist/huazhu/backend.d.ts.map +1 -1
  10. package/dist/huazhu/backend.js +62 -22
  11. package/dist/huazhu/backend.js.map +1 -1
  12. package/dist/huazhu/catalog.d.ts +58 -1
  13. package/dist/huazhu/catalog.d.ts.map +1 -1
  14. package/dist/huazhu/catalog.js +318 -15
  15. package/dist/huazhu/catalog.js.map +1 -1
  16. package/dist/huazhu/live-asks.d.ts +63 -0
  17. package/dist/huazhu/live-asks.d.ts.map +1 -0
  18. package/dist/huazhu/live-asks.js +127 -0
  19. package/dist/huazhu/live-asks.js.map +1 -0
  20. package/dist/huazhu/make.d.ts.map +1 -1
  21. package/dist/huazhu/make.js +50 -4
  22. package/dist/huazhu/make.js.map +1 -1
  23. package/dist/server.d.ts +1 -1
  24. package/dist/server.js +1 -1
  25. package/dist/tools/accept-terms.d.ts +4 -0
  26. package/dist/tools/accept-terms.d.ts.map +1 -0
  27. package/dist/tools/accept-terms.js +26 -0
  28. package/dist/tools/accept-terms.js.map +1 -0
  29. package/dist/tools/add-booking-addon.d.ts +4 -0
  30. package/dist/tools/add-booking-addon.d.ts.map +1 -0
  31. package/dist/tools/add-booking-addon.js +44 -0
  32. package/dist/tools/add-booking-addon.js.map +1 -0
  33. package/dist/tools/add-to-trip.d.ts +4 -0
  34. package/dist/tools/add-to-trip.d.ts.map +1 -0
  35. package/dist/tools/add-to-trip.js +49 -0
  36. package/dist/tools/add-to-trip.js.map +1 -0
  37. package/dist/tools/all-tools.d.ts +1342 -0
  38. package/dist/tools/all-tools.d.ts.map +1 -0
  39. package/dist/tools/all-tools.js +954 -0
  40. package/dist/tools/all-tools.js.map +1 -0
  41. package/dist/tools/answer.d.ts +3 -0
  42. package/dist/tools/answer.d.ts.map +1 -0
  43. package/dist/tools/answer.js +104 -0
  44. package/dist/tools/answer.js.map +1 -0
  45. package/dist/tools/args.d.ts +149 -0
  46. package/dist/tools/args.d.ts.map +1 -0
  47. package/dist/tools/args.js +176 -0
  48. package/dist/tools/args.js.map +1 -0
  49. package/dist/tools/base-output-schemas.d.ts +3 -0
  50. package/dist/tools/base-output-schemas.d.ts.map +1 -0
  51. package/dist/tools/base-output-schemas.js +380 -0
  52. package/dist/tools/base-output-schemas.js.map +1 -0
  53. package/dist/tools/book-picked.d.ts +4 -0
  54. package/dist/tools/book-picked.d.ts.map +1 -0
  55. package/dist/tools/book-picked.js +14 -0
  56. package/dist/tools/book-picked.js.map +1 -0
  57. package/dist/tools/booking-answer.d.ts +24 -0
  58. package/dist/tools/booking-answer.d.ts.map +1 -0
  59. package/dist/tools/booking-answer.js +485 -0
  60. package/dist/tools/booking-answer.js.map +1 -0
  61. package/dist/tools/buy-shop-item.d.ts +4 -0
  62. package/dist/tools/buy-shop-item.d.ts.map +1 -0
  63. package/dist/tools/buy-shop-item.js +45 -0
  64. package/dist/tools/buy-shop-item.js.map +1 -0
  65. package/dist/tools/call.d.ts +11 -0
  66. package/dist/tools/call.d.ts.map +1 -0
  67. package/dist/tools/call.js +2 -0
  68. package/dist/tools/call.js.map +1 -0
  69. package/dist/tools/cancel-facts.d.ts +281 -0
  70. package/dist/tools/cancel-facts.d.ts.map +1 -0
  71. package/dist/tools/cancel-facts.js +309 -0
  72. package/dist/tools/cancel-facts.js.map +1 -0
  73. package/dist/tools/cancel.d.ts +4 -0
  74. package/dist/tools/cancel.d.ts.map +1 -0
  75. package/dist/tools/cancel.js +364 -0
  76. package/dist/tools/cancel.js.map +1 -0
  77. package/dist/tools/card-addons.d.ts +4 -0
  78. package/dist/tools/card-addons.d.ts.map +1 -0
  79. package/dist/tools/card-addons.js +76 -0
  80. package/dist/tools/card-addons.js.map +1 -0
  81. package/dist/tools/change-booking.d.ts +4 -0
  82. package/dist/tools/change-booking.d.ts.map +1 -0
  83. package/dist/tools/change-booking.js +145 -0
  84. package/dist/tools/change-booking.js.map +1 -0
  85. package/dist/tools/clear-trip.d.ts +4 -0
  86. package/dist/tools/clear-trip.d.ts.map +1 -0
  87. package/dist/tools/clear-trip.js +10 -0
  88. package/dist/tools/clear-trip.js.map +1 -0
  89. package/dist/tools/compare.d.ts +4 -0
  90. package/dist/tools/compare.d.ts.map +1 -0
  91. package/dist/tools/compare.js +114 -0
  92. package/dist/tools/compare.js.map +1 -0
  93. package/dist/tools/current-trip.d.ts +70 -0
  94. package/dist/tools/current-trip.d.ts.map +1 -0
  95. package/dist/tools/current-trip.js +261 -0
  96. package/dist/tools/current-trip.js.map +1 -0
  97. package/dist/tools/deps.d.ts +229 -0
  98. package/dist/tools/deps.d.ts.map +1 -0
  99. package/dist/tools/deps.js +2 -0
  100. package/dist/tools/deps.js.map +1 -0
  101. package/dist/tools/follow-ups.d.ts +120 -0
  102. package/dist/tools/follow-ups.d.ts.map +1 -0
  103. package/dist/tools/follow-ups.js +369 -0
  104. package/dist/tools/follow-ups.js.map +1 -0
  105. package/dist/tools/forget-preferences.d.ts +4 -0
  106. package/dist/tools/forget-preferences.d.ts.map +1 -0
  107. package/dist/tools/forget-preferences.js +24 -0
  108. package/dist/tools/forget-preferences.js.map +1 -0
  109. package/dist/tools/get-hotel.d.ts +4 -0
  110. package/dist/tools/get-hotel.d.ts.map +1 -0
  111. package/dist/tools/get-hotel.js +324 -0
  112. package/dist/tools/get-hotel.js.map +1 -0
  113. package/dist/tools/hotel-choices.d.ts +132 -0
  114. package/dist/tools/hotel-choices.d.ts.map +1 -0
  115. package/dist/tools/hotel-choices.js +558 -0
  116. package/dist/tools/hotel-choices.js.map +1 -0
  117. package/dist/tools/itinerary.d.ts +4 -0
  118. package/dist/tools/itinerary.d.ts.map +1 -0
  119. package/dist/tools/itinerary.js +148 -0
  120. package/dist/tools/itinerary.js.map +1 -0
  121. package/dist/tools/list-booking-addons.d.ts +4 -0
  122. package/dist/tools/list-booking-addons.d.ts.map +1 -0
  123. package/dist/tools/list-booking-addons.js +21 -0
  124. package/dist/tools/list-booking-addons.js.map +1 -0
  125. package/dist/tools/list-bookings.d.ts +4 -0
  126. package/dist/tools/list-bookings.d.ts.map +1 -0
  127. package/dist/tools/list-bookings.js +119 -0
  128. package/dist/tools/list-bookings.js.map +1 -0
  129. package/dist/tools/list-extras.d.ts +4 -0
  130. package/dist/tools/list-extras.d.ts.map +1 -0
  131. package/dist/tools/list-extras.js +90 -0
  132. package/dist/tools/list-extras.js.map +1 -0
  133. package/dist/tools/list-hotels.d.ts +4 -0
  134. package/dist/tools/list-hotels.d.ts.map +1 -0
  135. package/dist/tools/list-hotels.js +891 -0
  136. package/dist/tools/list-hotels.js.map +1 -0
  137. package/dist/tools/list-shop-items.d.ts +4 -0
  138. package/dist/tools/list-shop-items.d.ts.map +1 -0
  139. package/dist/tools/list-shop-items.js +34 -0
  140. package/dist/tools/list-shop-items.js.map +1 -0
  141. package/dist/tools/list-shop-orders.d.ts +4 -0
  142. package/dist/tools/list-shop-orders.d.ts.map +1 -0
  143. package/dist/tools/list-shop-orders.js +22 -0
  144. package/dist/tools/list-shop-orders.js.map +1 -0
  145. package/dist/tools/look-up.d.ts +4 -0
  146. package/dist/tools/look-up.d.ts.map +1 -0
  147. package/dist/tools/look-up.js +170 -0
  148. package/dist/tools/look-up.js.map +1 -0
  149. package/dist/tools/output-schemas.d.ts +645 -0
  150. package/dist/tools/output-schemas.d.ts.map +1 -0
  151. package/dist/tools/output-schemas.js +503 -0
  152. package/dist/tools/output-schemas.js.map +1 -0
  153. package/dist/tools/paid-lines.d.ts +718 -0
  154. package/dist/tools/paid-lines.d.ts.map +1 -0
  155. package/dist/tools/paid-lines.js +359 -0
  156. package/dist/tools/paid-lines.js.map +1 -0
  157. package/dist/tools/pay-with-union-pay.d.ts +4 -0
  158. package/dist/tools/pay-with-union-pay.d.ts.map +1 -0
  159. package/dist/tools/pay-with-union-pay.js +112 -0
  160. package/dist/tools/pay-with-union-pay.js.map +1 -0
  161. package/dist/tools/payment-words.d.ts +269 -0
  162. package/dist/tools/payment-words.d.ts.map +1 -0
  163. package/dist/tools/payment-words.js +365 -0
  164. package/dist/tools/payment-words.js.map +1 -0
  165. package/dist/tools/pick-room.d.ts +4 -0
  166. package/dist/tools/pick-room.d.ts.map +1 -0
  167. package/dist/tools/pick-room.js +23 -0
  168. package/dist/tools/pick-room.js.map +1 -0
  169. package/dist/tools/policies.d.ts +4 -0
  170. package/dist/tools/policies.d.ts.map +1 -0
  171. package/dist/tools/policies.js +74 -0
  172. package/dist/tools/policies.js.map +1 -0
  173. package/dist/tools/pricing.d.ts +55 -0
  174. package/dist/tools/pricing.d.ts.map +1 -0
  175. package/dist/tools/pricing.js +260 -0
  176. package/dist/tools/pricing.js.map +1 -0
  177. package/dist/tools/put-room-line.d.ts +12 -0
  178. package/dist/tools/put-room-line.d.ts.map +1 -0
  179. package/dist/tools/put-room-line.js +314 -0
  180. package/dist/tools/put-room-line.js.map +1 -0
  181. package/dist/tools/quote-card.d.ts +234 -0
  182. package/dist/tools/quote-card.d.ts.map +1 -0
  183. package/dist/tools/quote-card.js +375 -0
  184. package/dist/tools/quote-card.js.map +1 -0
  185. package/dist/tools/refund-booking.d.ts +4 -0
  186. package/dist/tools/refund-booking.d.ts.map +1 -0
  187. package/dist/tools/refund-booking.js +112 -0
  188. package/dist/tools/refund-booking.js.map +1 -0
  189. package/dist/tools/request-booking.d.ts +4 -0
  190. package/dist/tools/request-booking.d.ts.map +1 -0
  191. package/dist/tools/request-booking.js +5 -0
  192. package/dist/tools/request-booking.js.map +1 -0
  193. package/dist/tools/request-words.d.ts +238 -0
  194. package/dist/tools/request-words.d.ts.map +1 -0
  195. package/dist/tools/request-words.js +487 -0
  196. package/dist/tools/request-words.js.map +1 -0
  197. package/dist/tools/room-choices.d.ts +64 -0
  198. package/dist/tools/room-choices.d.ts.map +1 -0
  199. package/dist/tools/room-choices.js +348 -0
  200. package/dist/tools/room-choices.js.map +1 -0
  201. package/dist/tools/session-notes.d.ts +164 -0
  202. package/dist/tools/session-notes.d.ts.map +1 -0
  203. package/dist/tools/session-notes.js +412 -0
  204. package/dist/tools/session-notes.js.map +1 -0
  205. package/dist/tools/sign-in.d.ts +4 -0
  206. package/dist/tools/sign-in.d.ts.map +1 -0
  207. package/dist/tools/sign-in.js +72 -0
  208. package/dist/tools/sign-in.js.map +1 -0
  209. package/dist/tools/sign-out.d.ts +4 -0
  210. package/dist/tools/sign-out.d.ts.map +1 -0
  211. package/dist/tools/sign-out.js +13 -0
  212. package/dist/tools/sign-out.js.map +1 -0
  213. package/dist/tools/terms-answer.d.ts +114 -0
  214. package/dist/tools/terms-answer.d.ts.map +1 -0
  215. package/dist/tools/terms-answer.js +475 -0
  216. package/dist/tools/terms-answer.js.map +1 -0
  217. package/dist/tools/tool-set.d.ts +1474 -0
  218. package/dist/tools/tool-set.d.ts.map +1 -0
  219. package/dist/tools/tool-set.js +497 -0
  220. package/dist/tools/tool-set.js.map +1 -0
  221. package/dist/tools/view-trip.d.ts +4 -0
  222. package/dist/tools/view-trip.d.ts.map +1 -0
  223. package/dist/tools/view-trip.js +7 -0
  224. package/dist/tools/view-trip.js.map +1 -0
  225. package/dist/tools.d.ts +13 -2089
  226. package/dist/tools.d.ts.map +1 -1
  227. package/dist/tools.js +11 -10685
  228. package/dist/tools.js.map +1 -1
  229. package/package.json +1 -1
@@ -0,0 +1,238 @@
1
+ import { type RoomTerms } from '../room-filters.js';
2
+ import type { Booking, ChangePreview, HotelSearch, HotelSearchResult, HotelSort, RateLabel, Room, RoomRequestKind, RoomRequests } from '../types.js';
3
+ import type { ToolDeps } from './deps.js';
4
+ /**
5
+ * What each preference is called when a person reads it back.
6
+ *
7
+ * ⚠️ IT IS A REQUEST IN THE WORDING, not only in a footnote. "High floor" on a
8
+ * confirmation reads as a fact about the room; "asked for a high floor" reads
9
+ * as what actually happened. The footnote is there too, once.
10
+ */
11
+ export declare const REQUEST_WORDS: Record<RoomRequestKind, string>;
12
+ /**
13
+ * Two of these cannot both be honoured, so a booking carrying both is a booking
14
+ * the desk will resolve by guessing. The first one asked for wins, and the
15
+ * answer says which was dropped - silently keeping one would leave the guest
16
+ * believing they asked for the other.
17
+ */
18
+ export declare const OPPOSITES: [RoomRequestKind, RoomRequestKind][];
19
+ /** The requests as the tool will send them, and what had to be dropped to get there. */
20
+ export declare const readRequests: (args: Record<string, unknown>) => {
21
+ requests?: RoomRequests;
22
+ dropped: RoomRequestKind[];
23
+ };
24
+ /** Said of a booking that carries the guest's note - see `requestLines`. */
25
+ export declare const NOTE_PASSED = "A note from the guest was passed to the hotel.";
26
+ /**
27
+ * The sentences a booking's requests earn, in the order a guest reads them.
28
+ *
29
+ * ⚠️ ACCESSIBILITY GETS ITS OWN SENTENCE AND IT IS NOT A REASSURING ONE. A
30
+ * room a wheelchair user cannot use is not a disappointment on arrival, it is a
31
+ * trip that does not work; saying "we have asked" in the same breath as "a high
32
+ * floor" invites exactly the reading that it is handled. It is not handled
33
+ * here, and the answer says so and says who does handle it.
34
+ */
35
+ export declare const requestLines: (b: Booking, dropped: RoomRequestKind[], checkInFrom?: string) => string[];
36
+ /** These phrases are written to sit mid-sentence; one of them has to open one. */
37
+ export declare const sentence: (text: string) => string;
38
+ /** "a king bed" reads well in a sentence; a list wants "king bed". */
39
+ export declare const bare: (kind: RoomRequestKind) => string;
40
+ /**
41
+ * ⚠️ THE REQUESTS COME WITH THE BOOKING when it is listed, not only when it is
42
+ * made. A guest who asked for a high floor and then closes the card has no
43
+ * other way to check it was recorded, and "I think I asked" is exactly what a
44
+ * desk cannot act on.
45
+ */
46
+ export declare const SORTS: HotelSort[];
47
+ /**
48
+ * Every city a market has, for its lists' city field (0.68.0) - asked with nothing named.
49
+ *
50
+ * ⚠️ KEPT A MINUTE, WHATEVER CAME BACK, AND ASKED AS NOBODY'S (0.68.1, 总线程's review of
51
+ * 0.68.0, 5): a group that failed was kept failed by Otaless's client for 3 seconds only, so
52
+ * every narrowed search asked it again - on the guest's own outbound limit, which could then
53
+ * call the search they did want "too busy". Now one ask a minute per deployment, on
54
+ * everyone's limit alone (no conversation, no address); a failure is no menu for that minute.
55
+ */
56
+ export declare const everyCityOf: (deps: ToolDeps) => Promise<NonNullable<HotelSearchResult["facets"]>["cities"]>;
57
+ /**
58
+ * The ONE wider search to try when the narrow one found nothing, and how to
59
+ * describe it.
60
+ *
61
+ * ⚠️ IT WIDENS ONCE AND STOPS. A search that keeps loosening until something
62
+ * comes back always finds something, and what it finds is unrelated to what was
63
+ * asked - which is worse than "no", because "no" is at least true. One step,
64
+ * and the answer names it.
65
+ *
66
+ * ⚠️ AND IT DROPS THE WORDS BEFORE THE PLACE. "Nothing in Tokyo matches
67
+ * «rooftop pool»" still leaves a guest looking at Tokyo, which is where they
68
+ * said they were going; keeping the words and losing Tokyo answers a question
69
+ * nobody asked.
70
+ */
71
+ /**
72
+ * How a search was widened, in parts - for the card to say in its own
73
+ * language (0.51.1). `from` and `to` are the model's sentence, in English, and
74
+ * the card once put them inside Chinese: 「没有找到与“Shanghai and "helipad"”
75
+ * 相符的结果,以下是Shanghai。」
76
+ */
77
+ export type Widening = {
78
+ how: 'words';
79
+ city: string;
80
+ query: string;
81
+ } | {
82
+ how: 'place';
83
+ city: string;
84
+ } | {
85
+ how: 'word';
86
+ query: string;
87
+ word: string;
88
+ };
89
+ export declare const widen: (ask: HotelSearch) => ({
90
+ ask: HotelSearch;
91
+ from: string;
92
+ to: string;
93
+ } & Widening) | undefined;
94
+ /** What a change would do, in one sentence - the nights, and the add-on when it sets one. */
95
+ export declare const changeSentence: (p: ChangePreview) => string;
96
+ /**
97
+ * How much of a plan is real, in the one sentence the model is told to repeat:
98
+ * what is booked, what is in the trip, and that the rest is only a plan.
99
+ * Counted by stay - see `Itinerary.inTrip`.
100
+ */
101
+ export declare const planGap: (plan: {
102
+ planned: number;
103
+ inTrip: number;
104
+ booked: number;
105
+ }) => string;
106
+ /** How many people, for a room by the hour asked for without dates. Default 2. */
107
+ export declare const guestsOf: (args: Record<string, unknown>) => number;
108
+ /**
109
+ * "3 room types", or - where a group sells several rates on one type - "5 rates
110
+ * on 2 room types": five rows are not five kinds of room.
111
+ */
112
+ export declare const offerCount: (rooms: Room[]) => string;
113
+ /** What one room costs, as the text says it: nights, or the hours of a room by the hour. */
114
+ export declare const priceWords: (r: Room, noCards?: boolean, roomsWanted?: number) => string;
115
+ /**
116
+ * A night - or, where the night is a rounded average (`Room.roomCharges`, 0.79.1), the stay's room
117
+ * charges before taxes, so that charges + taxes = the total the text gives beside it.
118
+ */
119
+ export declare const nightlyPart: (r: Room, noCards?: boolean) => string;
120
+ /**
121
+ * The whole stay, as the text says it - or that the group has quoted none.
122
+ *
123
+ * ⚠️ NO STAY TOTAL THAT IS OURS (总线程 11-13, `Room.stayTotalUnquoted`): the
124
+ * nights times a night was said as "CN¥172 for the stay incl. taxes and fees"
125
+ * for a rate the group had priced for one night only.
126
+ */
127
+ export declare const wholeStayWords: (r: Room) => string;
128
+ /**
129
+ * "a night" - and to a client that draws no card, "a night before taxes".
130
+ *
131
+ * ⚠️ THE NIGHTLY RATE HAS NO TAX IN IT, the stay total has (2026-11-02 audit,
132
+ * P3-1): read side by side with "incl. taxes and fees", a model told the guest
133
+ * "含税费 … 每晚 ¥1,668". The card says 每晚价不含税 under its prices (0.50.1).
134
+ */
135
+ export declare const nightWords: (noCards?: boolean, taxesUnsaid?: boolean) => string;
136
+ export declare const LABEL_WORDS: Record<RateLabel, string>;
137
+ /** What a list and a page both say of a hotel with nothing on sale here: other nights would not help. */
138
+ export declare const NOT_SOLD_OUT = "not sold out, and other nights make no difference";
139
+ /**
140
+ * The whys of a list's unpriced hotel that are not "no room for those nights",
141
+ * each counted on its own: nothing on sale here (U11), and a group that did not
142
+ * answer this time (总线程 11-13: 华住生产's 2001 "System error" was counted as no room).
143
+ */
144
+ export declare const NOT_NO_ROOM: Set<string>;
145
+ /**
146
+ * ⚠️ NOT "NO ROOM" EITHER, AND SAID IN THE GROUP'S OWN WHY (总线程's review of 0.71.0, P3 4 -
147
+ * 华住's list): not on sale yet that far ahead, only rates paid in advance where a stay is paid
148
+ * at the hotel here, or a rule of those dates. Each hotel's line says its `noRoomsForStay`, and
149
+ * the count says how many of each - never in the no-room count.
150
+ */
151
+ export declare const OWN_WHY: Record<string, {
152
+ price: string;
153
+ many: (n: number) => string;
154
+ }>;
155
+ /**
156
+ * What is said of rates listed but not booked here (`Room.notSoldHere`) - in
157
+ * the text and, word for word, in the structure (`notSoldHere`): the model reads
158
+ * the structure (2026-10-28). Listed and marked as the group sells them; the
159
+ * card says no more than 预付 on them (robin, 2026-10-30), so the assistant is
160
+ * the one who knows - and says it when the guest wants one.
161
+ *
162
+ * ⚠️ WHEN THE GUEST WANTS ONE, NEVER BEFORE (0.75.1, robin 11-18 on 华住生产: 「这两段话去掉
163
+ * 吧,预订按钮给我加上,但是跳转的时候再提示暂时还不能预订」): a list or a page says nothing of
164
+ * it - no sentence first, no "not booked here" on a price (0.65.0 said it before anything was
165
+ * chosen). The card says it when Reserve is pressed; the assistant when the guest asks to
166
+ * book one, or when it goes to book one (and the booking is refused, with the same ways on).
167
+ *
168
+ * ⚠️ "PAID IN ADVANCE" IS SAID, "NOT HERE" IS NOT (0.76.2, 总线程 11-18 for robin): 0.75.1's
169
+ * "Do not bring that up on your own" was read as "do not bring up paid in advance" - the
170
+ * model dropped it from a list whose text said "Paid in advance." (eval
171
+ * `huazhu-prod-text-one-hotel-is-numbered`, 0/3). robin meant not to volunteer that it cannot
172
+ * be booked here, never to hide how a rate is paid: the two are said apart.
173
+ */
174
+ export declare const notSoldHereWords: (group: string, someBookedHere?: boolean) => string;
175
+ /** The tag a rate paid in advance that is booked here without its payment carries (0.77.5). */
176
+ export declare const UNPAID_TAG = "booked here, nothing charged";
177
+ /**
178
+ * What is said of rates paid in advance that ARE booked here, without their payment (0.77.5,
179
+ * robin 2026-11-19 - `Room.paymentNotConnected`, Huazhu's `data.api.demoBooking`): in the text
180
+ * and, word for word, in the structure (`bookedWithoutPayment`) - the model reads the structure.
181
+ * The fact, and nothing about what kind of booking it is.
182
+ */
183
+ export declare const unpaidBookingWords: (group: string) => string;
184
+ /**
185
+ * Where a guest goes from a rate paid in advance (总线程 11-09, Manus on Huazhu:
186
+ * 「选最便宜那个」 was answered "it cannot be booked here" and nothing more,
187
+ * where claude.ai had said a rate paid at the hotel, or Huazhu's own app or
188
+ * site). Only what is so: a rate paid at the hotel where the answer has one,
189
+ * other nights looked up here, and the group's own channels - by name, never a
190
+ * link to its site (`server.websiteUrl`: a link reads as the official way in).
191
+ */
192
+ export declare const waysOnWords: (group: string, atHotel?: string) => string;
193
+ /**
194
+ * A hotel none of whose rooms are on sale here (`none-on-sale`), said on its page
195
+ * with the way out (2026-11-03 review, T5). The page's text had one sentence -
196
+ * "This hotel has no rooms on sale here." - and the card said where to book it
197
+ * instead, so a client that draws no card left the guest with a dead end. The
198
+ * clause is the list's (see `NOT_SOLD_OUT`), so the list and the page say one
199
+ * thing; the group is the deployment's own, or the hotel's in a market, never a
200
+ * name written into the sentence. In the text and, word for word, in the
201
+ * structure (`noRooms`): the model reads the structure.
202
+ */
203
+ export declare const notOnSaleWords: (group: string, why: string) => string;
204
+ /** `notBookableWords` where nothing can be booked here, else nothing - see there. */
205
+ export declare const notBookableOf: (deps: ToolDeps) => string;
206
+ /** The group a hotel is with, by name - the deployment's own brand outside a market. */
207
+ export declare const groupNameOf: (deps: ToolDeps, hotelId: string) => string;
208
+ /** A rate's cancellation terms in the supplier's own words (`Room.terms`), quoted - or that none were given. */
209
+ export declare const termsWords: (terms: string) => string;
210
+ /** What a rate says about cancelling, as the text puts it. */
211
+ export declare const cancelWords: (r: Room) => string;
212
+ /**
213
+ * A hotel's rooms for the nights, one line per ROOM TYPE.
214
+ *
215
+ * ⚠️ A TYPE IS ONE LINE, NOT ONE LINE PER RATE CODE. A Huazhu hotel sells a
216
+ * dozen rates on three types, and every code in one long run buried the types
217
+ * (robin, 2026-10-23, after Qunar's page). A type with one rate is that rate,
218
+ * in full; a type with several says how many, its lowest price, which rate that
219
+ * is - the name `room` takes - and what the rest have, in a few words.
220
+ * Another rate is reached by narrowing: `bed`, `breakfast`, `freeCancellation`.
221
+ */
222
+ export declare const roomTypeLines: (rooms: Room[], roomsWanted: number,
223
+ /** The terms already applied: what they say is true of every rate here, so it is not counted again. */
224
+ terms: RoomTerms | undefined,
225
+ /**
226
+ * To a client that draws no card, each line also says the id the next call
227
+ * takes and the group's Chinese name (2026-11-02 audit, P1-1, P1-4): the
228
+ * card is what books a room for a card host.
229
+ */
230
+ noCards?: boolean) => string[];
231
+ /**
232
+ * ⚠️ A ROOM'S BOOKING LINK ON THE GROUP'S OWN SITE (0.67.1, robin 11-12): said once a
233
+ * room type, where one of its rates has one (`Room.bookingUrl`, already checked against
234
+ * the deployment's `bookingUrlHosts`). Nothing where none has - so a deployment without
235
+ * them says nothing new.
236
+ */
237
+ export declare const siteBookingLines: (rooms: Room[], group: string) => string[];
238
+ //# sourceMappingURL=request-words.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-words.d.ts","sourceRoot":"","sources":["../../src/tools/request-words.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,SAAS,EAAwB,MAAM,oBAAoB,CAAC;AAC1E,OAAO,KAAK,EACV,OAAO,EACP,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,SAAS,EACT,SAAS,EACT,IAAI,EACJ,eAAe,EACf,YAAY,EACb,MAAM,aAAa,CAAC;AAGrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAI1C;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,EAAE,M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