@voyant-travel/cruises 0.118.2

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 (210) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +50 -0
  3. package/dist/adapters/connect-compat.d.ts +20 -0
  4. package/dist/adapters/connect-compat.d.ts.map +1 -0
  5. package/dist/adapters/connect-compat.js +71 -0
  6. package/dist/adapters/contract-fixture.d.ts +32 -0
  7. package/dist/adapters/contract-fixture.d.ts.map +1 -0
  8. package/dist/adapters/contract-fixture.js +152 -0
  9. package/dist/adapters/index.d.ts +331 -0
  10. package/dist/adapters/index.d.ts.map +1 -0
  11. package/dist/adapters/index.js +16 -0
  12. package/dist/adapters/memoize.d.ts +28 -0
  13. package/dist/adapters/memoize.d.ts.map +1 -0
  14. package/dist/adapters/memoize.js +131 -0
  15. package/dist/adapters/mock.d.ts +44 -0
  16. package/dist/adapters/mock.d.ts.map +1 -0
  17. package/dist/adapters/mock.js +192 -0
  18. package/dist/adapters/registry.d.ts +26 -0
  19. package/dist/adapters/registry.d.ts.map +1 -0
  20. package/dist/adapters/registry.js +42 -0
  21. package/dist/adapters/source-adapter-shim.d.ts +80 -0
  22. package/dist/adapters/source-adapter-shim.d.ts.map +1 -0
  23. package/dist/adapters/source-adapter-shim.js +390 -0
  24. package/dist/booking-engine/handler.d.ts +108 -0
  25. package/dist/booking-engine/handler.d.ts.map +1 -0
  26. package/dist/booking-engine/handler.js +225 -0
  27. package/dist/booking-engine/index.d.ts +9 -0
  28. package/dist/booking-engine/index.d.ts.map +1 -0
  29. package/dist/booking-engine/index.js +8 -0
  30. package/dist/booking-extension.d.ts +1179 -0
  31. package/dist/booking-extension.d.ts.map +1 -0
  32. package/dist/booking-extension.js +342 -0
  33. package/dist/cabin-features.d.ts +8 -0
  34. package/dist/cabin-features.d.ts.map +1 -0
  35. package/dist/cabin-features.js +7 -0
  36. package/dist/catalog-policy-cabins.d.ts +18 -0
  37. package/dist/catalog-policy-cabins.d.ts.map +1 -0
  38. package/dist/catalog-policy-cabins.js +96 -0
  39. package/dist/catalog-policy-core.d.ts +3 -0
  40. package/dist/catalog-policy-core.d.ts.map +1 -0
  41. package/dist/catalog-policy-core.js +247 -0
  42. package/dist/catalog-policy-structure.d.ts +3 -0
  43. package/dist/catalog-policy-structure.d.ts.map +1 -0
  44. package/dist/catalog-policy-structure.js +387 -0
  45. package/dist/catalog-policy.d.ts +15 -0
  46. package/dist/catalog-policy.d.ts.map +1 -0
  47. package/dist/catalog-policy.js +19 -0
  48. package/dist/content-shape.d.ts +5 -0
  49. package/dist/content-shape.d.ts.map +1 -0
  50. package/dist/content-shape.js +13 -0
  51. package/dist/draft-shape.d.ts +59 -0
  52. package/dist/draft-shape.d.ts.map +1 -0
  53. package/dist/draft-shape.js +98 -0
  54. package/dist/events.d.ts +21 -0
  55. package/dist/events.d.ts.map +1 -0
  56. package/dist/events.js +21 -0
  57. package/dist/index.d.ts +43 -0
  58. package/dist/index.d.ts.map +1 -0
  59. package/dist/index.js +66 -0
  60. package/dist/lib/key.d.ts +41 -0
  61. package/dist/lib/key.d.ts.map +1 -0
  62. package/dist/lib/key.js +100 -0
  63. package/dist/routes-booking-payloads.d.ts +133 -0
  64. package/dist/routes-booking-payloads.d.ts.map +1 -0
  65. package/dist/routes-booking-payloads.js +142 -0
  66. package/dist/routes-content.d.ts +53 -0
  67. package/dist/routes-content.d.ts.map +1 -0
  68. package/dist/routes-content.js +158 -0
  69. package/dist/routes-core.d.ts +4 -0
  70. package/dist/routes-core.d.ts.map +1 -0
  71. package/dist/routes-core.js +68 -0
  72. package/dist/routes-detail.d.ts +4 -0
  73. package/dist/routes-detail.d.ts.map +1 -0
  74. package/dist/routes-detail.js +261 -0
  75. package/dist/routes-env.d.ts +13 -0
  76. package/dist/routes-env.d.ts.map +1 -0
  77. package/dist/routes-env.js +1 -0
  78. package/dist/routes-keying.d.ts +28 -0
  79. package/dist/routes-keying.d.ts.map +1 -0
  80. package/dist/routes-keying.js +70 -0
  81. package/dist/routes-public.d.ts +911 -0
  82. package/dist/routes-public.d.ts.map +1 -0
  83. package/dist/routes-public.js +252 -0
  84. package/dist/routes-sailings-prices.d.ts +4 -0
  85. package/dist/routes-sailings-prices.d.ts.map +1 -0
  86. package/dist/routes-sailings-prices.js +278 -0
  87. package/dist/routes-search-index.d.ts +4 -0
  88. package/dist/routes-search-index.d.ts.map +1 -0
  89. package/dist/routes-search-index.js +25 -0
  90. package/dist/routes-ships.d.ts +4 -0
  91. package/dist/routes-ships.d.ts.map +1 -0
  92. package/dist/routes-ships.js +147 -0
  93. package/dist/routes-voyage-groups.d.ts +4 -0
  94. package/dist/routes-voyage-groups.d.ts.map +1 -0
  95. package/dist/routes-voyage-groups.js +85 -0
  96. package/dist/routes.d.ts +5 -0
  97. package/dist/routes.d.ts.map +1 -0
  98. package/dist/routes.js +14 -0
  99. package/dist/schema-cabins.d.ts +1098 -0
  100. package/dist/schema-cabins.d.ts.map +1 -0
  101. package/dist/schema-cabins.js +105 -0
  102. package/dist/schema-content.d.ts +577 -0
  103. package/dist/schema-content.d.ts.map +1 -0
  104. package/dist/schema-content.js +63 -0
  105. package/dist/schema-core.d.ts +1790 -0
  106. package/dist/schema-core.d.ts.map +1 -0
  107. package/dist/schema-core.js +171 -0
  108. package/dist/schema-itinerary.d.ts +556 -0
  109. package/dist/schema-itinerary.d.ts.map +1 -0
  110. package/dist/schema-itinerary.js +50 -0
  111. package/dist/schema-pricing.d.ts +633 -0
  112. package/dist/schema-pricing.d.ts.map +1 -0
  113. package/dist/schema-pricing.js +73 -0
  114. package/dist/schema-search.d.ts +611 -0
  115. package/dist/schema-search.d.ts.map +1 -0
  116. package/dist/schema-search.js +64 -0
  117. package/dist/schema-shared.d.ts +23 -0
  118. package/dist/schema-shared.d.ts.map +1 -0
  119. package/dist/schema-shared.js +107 -0
  120. package/dist/schema-sourced-content.d.ts +247 -0
  121. package/dist/schema-sourced-content.d.ts.map +1 -0
  122. package/dist/schema-sourced-content.js +38 -0
  123. package/dist/schema.d.ts +10 -0
  124. package/dist/schema.d.ts.map +1 -0
  125. package/dist/schema.js +9 -0
  126. package/dist/service-booking-helpers.d.ts +12 -0
  127. package/dist/service-booking-helpers.d.ts.map +1 -0
  128. package/dist/service-booking-helpers.js +94 -0
  129. package/dist/service-booking-types.d.ts +101 -0
  130. package/dist/service-booking-types.d.ts.map +1 -0
  131. package/dist/service-booking-types.js +1 -0
  132. package/dist/service-bookings.d.ts +46 -0
  133. package/dist/service-bookings.d.ts.map +1 -0
  134. package/dist/service-bookings.js +420 -0
  135. package/dist/service-catalog-plane-cabins.d.ts +24 -0
  136. package/dist/service-catalog-plane-cabins.d.ts.map +1 -0
  137. package/dist/service-catalog-plane-cabins.js +90 -0
  138. package/dist/service-catalog-plane.d.ts +74 -0
  139. package/dist/service-catalog-plane.d.ts.map +1 -0
  140. package/dist/service-catalog-plane.js +194 -0
  141. package/dist/service-content-synthesizer.d.ts +42 -0
  142. package/dist/service-content-synthesizer.d.ts.map +1 -0
  143. package/dist/service-content-synthesizer.js +144 -0
  144. package/dist/service-content.d.ts +74 -0
  145. package/dist/service-content.d.ts.map +1 -0
  146. package/dist/service-content.js +315 -0
  147. package/dist/service-core.d.ts +134 -0
  148. package/dist/service-core.d.ts.map +1 -0
  149. package/dist/service-core.js +257 -0
  150. package/dist/service-detach.d.ts +18 -0
  151. package/dist/service-detach.d.ts.map +1 -0
  152. package/dist/service-detach.js +199 -0
  153. package/dist/service-enrichment.d.ts +11 -0
  154. package/dist/service-enrichment.d.ts.map +1 -0
  155. package/dist/service-enrichment.js +47 -0
  156. package/dist/service-external-refresh.d.ts +39 -0
  157. package/dist/service-external-refresh.d.ts.map +1 -0
  158. package/dist/service-external-refresh.js +47 -0
  159. package/dist/service-itinerary.d.ts +22 -0
  160. package/dist/service-itinerary.d.ts.map +1 -0
  161. package/dist/service-itinerary.js +34 -0
  162. package/dist/service-prices.d.ts +46 -0
  163. package/dist/service-prices.d.ts.map +1 -0
  164. package/dist/service-prices.js +89 -0
  165. package/dist/service-pricing.d.ts +97 -0
  166. package/dist/service-pricing.d.ts.map +1 -0
  167. package/dist/service-pricing.js +198 -0
  168. package/dist/service-sailings.d.ts +48 -0
  169. package/dist/service-sailings.d.ts.map +1 -0
  170. package/dist/service-sailings.js +145 -0
  171. package/dist/service-search-types.d.ts +54 -0
  172. package/dist/service-search-types.d.ts.map +1 -0
  173. package/dist/service-search-types.js +1 -0
  174. package/dist/service-search.d.ts +65 -0
  175. package/dist/service-search.d.ts.map +1 -0
  176. package/dist/service-search.js +467 -0
  177. package/dist/service-shared.d.ts +22 -0
  178. package/dist/service-shared.d.ts.map +1 -0
  179. package/dist/service-shared.js +22 -0
  180. package/dist/service-ships.d.ts +47 -0
  181. package/dist/service-ships.d.ts.map +1 -0
  182. package/dist/service-ships.js +156 -0
  183. package/dist/service.d.ts +255 -0
  184. package/dist/service.d.ts.map +1 -0
  185. package/dist/service.js +12 -0
  186. package/dist/validation-cabins.d.ts +267 -0
  187. package/dist/validation-cabins.d.ts.map +1 -0
  188. package/dist/validation-cabins.js +77 -0
  189. package/dist/validation-content.d.ts +123 -0
  190. package/dist/validation-content.d.ts.map +1 -0
  191. package/dist/validation-content.js +40 -0
  192. package/dist/validation-core.d.ts +393 -0
  193. package/dist/validation-core.d.ts.map +1 -0
  194. package/dist/validation-core.js +162 -0
  195. package/dist/validation-itinerary.d.ts +123 -0
  196. package/dist/validation-itinerary.d.ts.map +1 -0
  197. package/dist/validation-itinerary.js +47 -0
  198. package/dist/validation-pricing.d.ts +137 -0
  199. package/dist/validation-pricing.d.ts.map +1 -0
  200. package/dist/validation-pricing.js +49 -0
  201. package/dist/validation-search.d.ts +118 -0
  202. package/dist/validation-search.d.ts.map +1 -0
  203. package/dist/validation-search.js +60 -0
  204. package/dist/validation-shared.d.ts +123 -0
  205. package/dist/validation-shared.d.ts.map +1 -0
  206. package/dist/validation-shared.js +103 -0
  207. package/dist/validation.d.ts +8 -0
  208. package/dist/validation.d.ts.map +1 -0
  209. package/dist/validation.js +7 -0
  210. package/package.json +146 -0
@@ -0,0 +1,911 @@
1
+ import type { PostgresJsDatabase } from "drizzle-orm/postgres-js";
2
+ type Env = {
3
+ Variables: {
4
+ db: PostgresJsDatabase;
5
+ };
6
+ };
7
+ /**
8
+ * Public/storefront routes. Reads exclusively from `cruise_search_index` for
9
+ * list and slug lookups; detail endpoints (sailing, ship, quote) resolve
10
+ * through the appropriate source — local DB for source='local' rows, the
11
+ * registered adapter for source='external'.
12
+ *
13
+ * Operators that don't run a Voyant-powered storefront leave the search index
14
+ * empty; the list endpoint returns no rows but detail endpoints still work
15
+ * for direct sailing/ship key lookups.
16
+ */
17
+ export declare const cruisePublicRoutes: import("hono/hono-base").HonoBase<Env, {
18
+ "/": {
19
+ $get: {
20
+ input: {};
21
+ output: {
22
+ data: {
23
+ cruiseType: "ocean" | "river" | "expedition" | "coastal";
24
+ id: string;
25
+ name: string;
26
+ slug: string;
27
+ nights: number;
28
+ heroImageUrl: string | null;
29
+ embarkPortCanonicalPlaceId: string | null;
30
+ disembarkPortCanonicalPlaceId: string | null;
31
+ regions: string[] | null;
32
+ waterways: string[] | null;
33
+ ports: string[] | null;
34
+ countries: string[] | null;
35
+ themes: string[] | null;
36
+ departureCount: number | null;
37
+ source: "local" | "external";
38
+ sourceProvider: string | null;
39
+ sourceRef: {
40
+ [x: string]: import("hono/utils/types").JSONValue;
41
+ connectionId?: string | undefined;
42
+ externalId: string;
43
+ } | null;
44
+ createdAt: string;
45
+ updatedAt: string;
46
+ regionIds: string[] | null;
47
+ waterwayIds: string[] | null;
48
+ portIds: string[] | null;
49
+ countryIso: string[] | null;
50
+ salesStatus: string | null;
51
+ localCruiseId: string | null;
52
+ lineName: string;
53
+ shipName: string;
54
+ embarkPortName: string | null;
55
+ disembarkPortName: string | null;
56
+ earliestDeparture: string | null;
57
+ latestDeparture: string | null;
58
+ lowestPriceCents: number | null;
59
+ lowestPriceCurrency: string | null;
60
+ refreshedAt: string;
61
+ }[];
62
+ total: number;
63
+ limit: number;
64
+ offset: number;
65
+ };
66
+ outputFormat: "json";
67
+ status: import("hono/utils/http-status").ContentfulStatusCode;
68
+ };
69
+ };
70
+ } & {
71
+ "/:slug": {
72
+ $get: {
73
+ input: {
74
+ param: {
75
+ slug: string;
76
+ };
77
+ };
78
+ output: {
79
+ error: string;
80
+ };
81
+ outputFormat: "json";
82
+ status: 404;
83
+ } | {
84
+ input: {
85
+ param: {
86
+ slug: string;
87
+ };
88
+ };
89
+ output: {
90
+ data: {
91
+ source: "local";
92
+ sourceProvider: null;
93
+ sourceRef: null;
94
+ summary: {
95
+ cruiseType: "ocean" | "river" | "expedition" | "coastal";
96
+ id: string;
97
+ name: string;
98
+ slug: string;
99
+ nights: number;
100
+ heroImageUrl: string | null;
101
+ embarkPortCanonicalPlaceId: string | null;
102
+ disembarkPortCanonicalPlaceId: string | null;
103
+ regions: string[] | null;
104
+ waterways: string[] | null;
105
+ ports: string[] | null;
106
+ countries: string[] | null;
107
+ themes: string[] | null;
108
+ departureCount: number | null;
109
+ source: "local" | "external";
110
+ sourceProvider: string | null;
111
+ sourceRef: {
112
+ [x: string]: import("hono/utils/types").JSONValue;
113
+ connectionId?: string | undefined;
114
+ externalId: string;
115
+ } | null;
116
+ createdAt: string;
117
+ updatedAt: string;
118
+ regionIds: string[] | null;
119
+ waterwayIds: string[] | null;
120
+ portIds: string[] | null;
121
+ countryIso: string[] | null;
122
+ salesStatus: string | null;
123
+ localCruiseId: string | null;
124
+ lineName: string;
125
+ shipName: string;
126
+ embarkPortName: string | null;
127
+ disembarkPortName: string | null;
128
+ earliestDeparture: string | null;
129
+ latestDeparture: string | null;
130
+ lowestPriceCents: number | null;
131
+ lowestPriceCurrency: string | null;
132
+ refreshedAt: string;
133
+ };
134
+ cruise: {
135
+ cruiseType: "ocean" | "river" | "expedition" | "coastal";
136
+ status: "draft" | "awaiting_review" | "live" | "archived";
137
+ id: string;
138
+ name: string;
139
+ description: string | null;
140
+ highlights: string[] | null;
141
+ slug: string;
142
+ nights: number;
143
+ lineSupplierId: string | null;
144
+ defaultShipId: string | null;
145
+ heroImageUrl: string | null;
146
+ embarkPortFacilityId: string | null;
147
+ embarkPortCanonicalPlaceId: string | null;
148
+ disembarkPortFacilityId: string | null;
149
+ disembarkPortCanonicalPlaceId: string | null;
150
+ regions: string[] | null;
151
+ waterways: string[] | null;
152
+ ports: string[] | null;
153
+ countries: string[] | null;
154
+ themes: string[] | null;
155
+ lowestPriceCached: string | null;
156
+ lowestPriceCurrencyCached: string | null;
157
+ earliestDepartureCached: string | null;
158
+ latestDepartureCached: string | null;
159
+ createdAt: string;
160
+ updatedAt: string;
161
+ externalRefs: {
162
+ [x: string]: string;
163
+ } | null;
164
+ shortDescription: string | null;
165
+ inclusionsHtml: string | null;
166
+ exclusionsHtml: string | null;
167
+ regionIds: string[] | null;
168
+ waterwayIds: string[] | null;
169
+ portIds: string[] | null;
170
+ countryIso: string[] | null;
171
+ mapImageUrl: string | null;
172
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
173
+ sailings?: {
174
+ id: string;
175
+ embarkPortFacilityId: string | null;
176
+ embarkPortCanonicalPlaceId: string | null;
177
+ disembarkPortFacilityId: string | null;
178
+ disembarkPortCanonicalPlaceId: string | null;
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ externalRefs: {
182
+ [x: string]: string;
183
+ } | null;
184
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
185
+ cruiseId: string;
186
+ shipId: string;
187
+ departureDate: string;
188
+ returnDate: string;
189
+ direction: "upstream" | "downstream" | "round_trip" | "one_way" | null;
190
+ availabilityNote: string | null;
191
+ isCharter: boolean;
192
+ salesStatus: "open" | "on_request" | "wait_list" | "sold_out" | "closed";
193
+ lastSyncedAt: string | null;
194
+ }[] | undefined;
195
+ days?: {
196
+ meals: {
197
+ breakfast?: boolean | undefined;
198
+ lunch?: boolean | undefined;
199
+ dinner?: boolean | undefined;
200
+ } | null;
201
+ id: string;
202
+ description: string | null;
203
+ createdAt: string;
204
+ updatedAt: string;
205
+ title: string | null;
206
+ cruiseId: string;
207
+ portCanonicalPlaceId: string | null;
208
+ dayNumber: number;
209
+ portFacilityId: string | null;
210
+ arrivalTime: string | null;
211
+ departureTime: string | null;
212
+ isOvernight: boolean;
213
+ isSeaDay: boolean;
214
+ isExpeditionLanding: boolean;
215
+ }[] | undefined;
216
+ };
217
+ };
218
+ };
219
+ outputFormat: "json";
220
+ status: import("hono/utils/http-status").ContentfulStatusCode;
221
+ } | {
222
+ input: {
223
+ param: {
224
+ slug: string;
225
+ };
226
+ };
227
+ output: {
228
+ error: string;
229
+ detail: string;
230
+ };
231
+ outputFormat: "json";
232
+ status: 501;
233
+ } | {
234
+ input: {
235
+ param: {
236
+ slug: string;
237
+ };
238
+ };
239
+ output: {
240
+ data: {
241
+ source: "external";
242
+ sourceProvider: string;
243
+ sourceRef: {
244
+ externalId: string;
245
+ connectionId?: string | undefined;
246
+ };
247
+ summary: {
248
+ cruiseType: "ocean" | "river" | "expedition" | "coastal";
249
+ id: string;
250
+ name: string;
251
+ slug: string;
252
+ nights: number;
253
+ heroImageUrl: string | null;
254
+ embarkPortCanonicalPlaceId: string | null;
255
+ disembarkPortCanonicalPlaceId: string | null;
256
+ regions: string[] | null;
257
+ waterways: string[] | null;
258
+ ports: string[] | null;
259
+ countries: string[] | null;
260
+ themes: string[] | null;
261
+ departureCount: number | null;
262
+ source: "local" | "external";
263
+ sourceProvider: string | null;
264
+ sourceRef: {
265
+ [x: string]: import("hono/utils/types").JSONValue;
266
+ connectionId?: string | undefined;
267
+ externalId: string;
268
+ } | null;
269
+ createdAt: string;
270
+ updatedAt: string;
271
+ regionIds: string[] | null;
272
+ waterwayIds: string[] | null;
273
+ portIds: string[] | null;
274
+ countryIso: string[] | null;
275
+ salesStatus: string | null;
276
+ localCruiseId: string | null;
277
+ lineName: string;
278
+ shipName: string;
279
+ embarkPortName: string | null;
280
+ disembarkPortName: string | null;
281
+ earliestDeparture: string | null;
282
+ latestDeparture: string | null;
283
+ lowestPriceCents: number | null;
284
+ lowestPriceCurrency: string | null;
285
+ refreshedAt: string;
286
+ };
287
+ cruise: {
288
+ sourceRef: {
289
+ [x: string]: import("hono/utils/types").JSONValue;
290
+ connectionId?: string | undefined;
291
+ externalId: string;
292
+ };
293
+ name: string;
294
+ slug: string;
295
+ cruiseType: "ocean" | "river" | "expedition" | "coastal";
296
+ lineName: string;
297
+ defaultShipRef?: {
298
+ [x: string]: import("hono/utils/types").JSONValue;
299
+ connectionId?: string | undefined;
300
+ externalId: string;
301
+ } | undefined;
302
+ nights: number;
303
+ embarkPortName?: string | null | undefined;
304
+ embarkPortCanonicalPlaceId?: string | null | undefined;
305
+ disembarkPortName?: string | null | undefined;
306
+ disembarkPortCanonicalPlaceId?: string | null | undefined;
307
+ description?: string | null | undefined;
308
+ shortDescription?: string | null | undefined;
309
+ highlights?: string[] | undefined;
310
+ inclusionsHtml?: string | null | undefined;
311
+ exclusionsHtml?: string | null | undefined;
312
+ regionIds?: string[] | undefined;
313
+ waterwayIds?: string[] | undefined;
314
+ portIds?: string[] | undefined;
315
+ countryIso?: string[] | undefined;
316
+ regions?: string[] | undefined;
317
+ waterways?: string[] | undefined;
318
+ ports?: string[] | undefined;
319
+ countries?: string[] | undefined;
320
+ themes?: string[] | undefined;
321
+ heroImageUrl?: string | null | undefined;
322
+ mapImageUrl?: string | null | undefined;
323
+ status?: "draft" | "awaiting_review" | "live" | "archived" | undefined;
324
+ };
325
+ sailings: {
326
+ sourceRef: {
327
+ [x: string]: import("hono/utils/types").JSONValue;
328
+ connectionId?: string | undefined;
329
+ externalId: string;
330
+ };
331
+ cruiseRef: {
332
+ [x: string]: import("hono/utils/types").JSONValue;
333
+ connectionId?: string | undefined;
334
+ externalId: string;
335
+ };
336
+ shipRef: {
337
+ [x: string]: import("hono/utils/types").JSONValue;
338
+ connectionId?: string | undefined;
339
+ externalId: string;
340
+ };
341
+ departureDate: string;
342
+ returnDate: string;
343
+ embarkPortName?: string | null | undefined;
344
+ embarkPortCanonicalPlaceId?: string | null | undefined;
345
+ disembarkPortName?: string | null | undefined;
346
+ disembarkPortCanonicalPlaceId?: string | null | undefined;
347
+ direction?: "upstream" | "downstream" | "round_trip" | "one_way" | null | undefined;
348
+ availabilityNote?: string | null | undefined;
349
+ isCharter?: boolean | undefined;
350
+ salesStatus?: "open" | "on_request" | "wait_list" | "sold_out" | "closed" | undefined;
351
+ lowestPriceCents?: number | null | undefined;
352
+ currency?: string | null | undefined;
353
+ }[];
354
+ };
355
+ };
356
+ outputFormat: "json";
357
+ status: import("hono/utils/http-status").ContentfulStatusCode;
358
+ } | {
359
+ input: {
360
+ param: {
361
+ slug: string;
362
+ };
363
+ };
364
+ output: {
365
+ error: string;
366
+ };
367
+ outputFormat: "json";
368
+ status: 500;
369
+ };
370
+ };
371
+ } & {
372
+ "/sailings/:key": {
373
+ $get: {
374
+ input: {
375
+ param: {
376
+ key: string;
377
+ };
378
+ };
379
+ output: {
380
+ error: string;
381
+ };
382
+ outputFormat: "json";
383
+ status: 404;
384
+ } | {
385
+ input: {
386
+ param: {
387
+ key: string;
388
+ };
389
+ };
390
+ output: {
391
+ data: {
392
+ source: string;
393
+ sailing: {
394
+ id: string;
395
+ embarkPortFacilityId: string | null;
396
+ embarkPortCanonicalPlaceId: string | null;
397
+ disembarkPortFacilityId: string | null;
398
+ disembarkPortCanonicalPlaceId: string | null;
399
+ createdAt: string;
400
+ updatedAt: string;
401
+ externalRefs: {
402
+ [x: string]: string;
403
+ } | null;
404
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
405
+ cruiseId: string;
406
+ shipId: string;
407
+ departureDate: string;
408
+ returnDate: string;
409
+ direction: "upstream" | "downstream" | "round_trip" | "one_way" | null;
410
+ availabilityNote: string | null;
411
+ isCharter: boolean;
412
+ salesStatus: "open" | "on_request" | "wait_list" | "sold_out" | "closed";
413
+ lastSyncedAt: string | null;
414
+ prices?: {
415
+ id: string;
416
+ currency: string;
417
+ cabinCategoryId: string;
418
+ occupancy: number;
419
+ sailingId: string;
420
+ fareCode: string | null;
421
+ fareVariant: "cruise_only" | "air_inclusive";
422
+ notes: string | null;
423
+ createdAt: string;
424
+ updatedAt: string;
425
+ externalRefs: {
426
+ [x: string]: string;
427
+ } | null;
428
+ lastSyncedAt: string | null;
429
+ fareCodeName: string | null;
430
+ pricePerPerson: string;
431
+ originalPricePerPerson: string | null;
432
+ secondGuestPricePerPerson: string | null;
433
+ singlePricePerPerson: string | null;
434
+ singleSupplementPercent: string | null;
435
+ availability: "on_request" | "wait_list" | "sold_out" | "available" | "limited";
436
+ availabilityCount: number | null;
437
+ priceCatalogId: string | null;
438
+ priceScheduleId: string | null;
439
+ bookingDeadline: string | null;
440
+ earlyBookingDeadline: string | null;
441
+ earlyBookingBonusDescription: string | null;
442
+ requiresRequest: boolean;
443
+ }[] | undefined;
444
+ priceComponents?: {
445
+ kind: "insurance" | "tax" | "port_charge" | "gratuity" | "onboard_credit" | "airfare" | "transfer" | "ncf";
446
+ id: string;
447
+ currency: string;
448
+ createdAt: string;
449
+ updatedAt: string;
450
+ direction: "addition" | "inclusion" | "credit";
451
+ priceId: string;
452
+ label: string | null;
453
+ amount: string;
454
+ perPerson: boolean;
455
+ }[] | undefined;
456
+ effectiveDays?: {
457
+ dayNumber: number;
458
+ title: string | null;
459
+ description: string | null;
460
+ portFacilityId: string | null;
461
+ portCanonicalPlaceId: string | null;
462
+ arrivalTime: string | null;
463
+ departureTime: string | null;
464
+ isOvernight: boolean;
465
+ isSeaDay: boolean;
466
+ isExpeditionLanding: boolean;
467
+ isSkipped: boolean;
468
+ meals: {
469
+ breakfast?: boolean | undefined;
470
+ lunch?: boolean | undefined;
471
+ dinner?: boolean | undefined;
472
+ };
473
+ hasOverride: boolean;
474
+ }[] | undefined;
475
+ };
476
+ };
477
+ };
478
+ outputFormat: "json";
479
+ status: import("hono/utils/http-status").ContentfulStatusCode;
480
+ } | {
481
+ input: {
482
+ param: {
483
+ key: string;
484
+ };
485
+ };
486
+ output: {
487
+ error: string;
488
+ };
489
+ outputFormat: "json";
490
+ status: 400;
491
+ } | {
492
+ input: {
493
+ param: {
494
+ key: string;
495
+ };
496
+ };
497
+ output: {
498
+ error: string;
499
+ };
500
+ outputFormat: "json";
501
+ status: 501;
502
+ } | {
503
+ input: {
504
+ param: {
505
+ key: string;
506
+ };
507
+ };
508
+ output: {
509
+ data: {
510
+ source: string;
511
+ sourceProvider: string;
512
+ sailing: {
513
+ sourceRef: {
514
+ [x: string]: import("hono/utils/types").JSONValue;
515
+ connectionId?: string | undefined;
516
+ externalId: string;
517
+ };
518
+ cruiseRef: {
519
+ [x: string]: import("hono/utils/types").JSONValue;
520
+ connectionId?: string | undefined;
521
+ externalId: string;
522
+ };
523
+ shipRef: {
524
+ [x: string]: import("hono/utils/types").JSONValue;
525
+ connectionId?: string | undefined;
526
+ externalId: string;
527
+ };
528
+ departureDate: string;
529
+ returnDate: string;
530
+ embarkPortName?: string | null | undefined;
531
+ embarkPortCanonicalPlaceId?: string | null | undefined;
532
+ disembarkPortName?: string | null | undefined;
533
+ disembarkPortCanonicalPlaceId?: string | null | undefined;
534
+ direction?: "upstream" | "downstream" | "round_trip" | "one_way" | null | undefined;
535
+ availabilityNote?: string | null | undefined;
536
+ isCharter?: boolean | undefined;
537
+ salesStatus?: "open" | "on_request" | "wait_list" | "sold_out" | "closed" | undefined;
538
+ lowestPriceCents?: number | null | undefined;
539
+ currency?: string | null | undefined;
540
+ };
541
+ pricing: {
542
+ sourceRef?: {
543
+ [x: string]: import("hono/utils/types").JSONValue;
544
+ connectionId?: string | undefined;
545
+ externalId: string;
546
+ } | undefined;
547
+ cabinCategoryRef: {
548
+ [x: string]: import("hono/utils/types").JSONValue;
549
+ connectionId?: string | undefined;
550
+ externalId: string;
551
+ };
552
+ occupancy: number;
553
+ passengerComposition?: {
554
+ [x: string]: import("hono/utils/types").JSONValue;
555
+ adults: number;
556
+ children?: number | undefined;
557
+ childAges?: number[] | undefined;
558
+ infants?: number | undefined;
559
+ seniors?: number | undefined;
560
+ } | null | undefined;
561
+ fareCode?: string | null | undefined;
562
+ fareCodeName?: string | null | undefined;
563
+ fareVariant?: import("./adapters/index.js").ExternalFareVariant | undefined;
564
+ currency: string;
565
+ pricePerPerson: string;
566
+ originalPricePerPerson?: string | null | undefined;
567
+ secondGuestPricePerPerson?: string | null | undefined;
568
+ singlePricePerPerson?: string | null | undefined;
569
+ singleSupplementPercent?: string | null | undefined;
570
+ availability: "available" | "limited" | "on_request" | "wait_list" | "sold_out";
571
+ availabilityCount?: number | null | undefined;
572
+ bookingDeadline?: string | null | undefined;
573
+ earlyBookingDeadline?: string | null | undefined;
574
+ earlyBookingBonusDescription?: string | null | undefined;
575
+ requiresRequest?: boolean | undefined;
576
+ notes?: string | null | undefined;
577
+ components?: {
578
+ kind: "gratuity" | "onboard_credit" | "port_charge" | "tax" | "ncf" | "airfare" | "transfer" | "insurance" | "single_supplement" | "other";
579
+ label?: string | null | undefined;
580
+ amount: string;
581
+ currency: string;
582
+ direction: "addition" | "inclusion" | "credit";
583
+ perPerson: boolean;
584
+ }[] | undefined;
585
+ bookingTerms?: {
586
+ [x: string]: import("hono/utils/types").JSONValue;
587
+ cancellationPolicy?: {
588
+ [x: string]: import("hono/utils/types").JSONValue;
589
+ summary?: string | null | undefined;
590
+ rules?: {
591
+ from?: string | null | undefined;
592
+ until?: string | null | undefined;
593
+ penaltyAmount?: string | null | undefined;
594
+ penaltyCurrency?: string | null | undefined;
595
+ penaltyPercent?: string | null | undefined;
596
+ description?: string | null | undefined;
597
+ }[] | undefined;
598
+ } | null | undefined;
599
+ paymentTerms?: {
600
+ [x: string]: import("hono/utils/types").JSONValue;
601
+ summary?: string | null | undefined;
602
+ depositAmount?: string | null | undefined;
603
+ depositCurrency?: string | null | undefined;
604
+ depositPercent?: string | null | undefined;
605
+ dueDate?: string | null | undefined;
606
+ schedule?: {
607
+ [x: string]: import("hono/utils/types").JSONValue;
608
+ }[] | undefined;
609
+ } | null | undefined;
610
+ supplierTermsUrl?: string | null | undefined;
611
+ notes?: string | null | undefined;
612
+ } | null | undefined;
613
+ }[];
614
+ itinerary: {
615
+ dayNumber: number;
616
+ title?: string | null | undefined;
617
+ description?: string | null | undefined;
618
+ portName?: string | null | undefined;
619
+ portCanonicalPlaceId?: string | null | undefined;
620
+ arrivalTime?: string | null | undefined;
621
+ departureTime?: string | null | undefined;
622
+ isOvernight?: boolean | undefined;
623
+ isSeaDay?: boolean | undefined;
624
+ isExpeditionLanding?: boolean | undefined;
625
+ meals?: {
626
+ breakfast?: boolean | undefined;
627
+ lunch?: boolean | undefined;
628
+ dinner?: boolean | undefined;
629
+ } | undefined;
630
+ }[];
631
+ };
632
+ };
633
+ outputFormat: "json";
634
+ status: import("hono/utils/http-status").ContentfulStatusCode;
635
+ };
636
+ };
637
+ } & {
638
+ "/sailings/:key/quote": {
639
+ $post: {
640
+ input: {
641
+ param: {
642
+ key: string;
643
+ };
644
+ };
645
+ output: {
646
+ data: {
647
+ fareCode: string | null;
648
+ fareCodeName: string | null;
649
+ fareVariant: import("./schema-pricing.js").CruisePrice["fareVariant"];
650
+ currency: string;
651
+ occupancy: number;
652
+ guestCount: number;
653
+ basePerPerson: string;
654
+ originalPricePerPerson: string | null;
655
+ singlePricePerPerson: string | null;
656
+ earlyBookingDeadline: string | null;
657
+ earlyBookingBonusDescription: string | null;
658
+ components: {
659
+ kind: import("./service-pricing.js").QuotePriceComponentKind;
660
+ label: string | null;
661
+ amount: string;
662
+ currency: string;
663
+ direction: import("./schema-pricing.js").CruisePriceComponent["direction"];
664
+ perPerson: boolean;
665
+ }[];
666
+ totalPerPerson: string;
667
+ totalForCabin: string;
668
+ bookingTerms?: {
669
+ [x: string]: import("hono/utils/types").JSONValue;
670
+ cancellationPolicy?: {
671
+ [x: string]: import("hono/utils/types").JSONValue;
672
+ summary?: string | null | undefined;
673
+ rules?: {
674
+ from?: string | null | undefined;
675
+ until?: string | null | undefined;
676
+ penaltyAmount?: string | null | undefined;
677
+ penaltyCurrency?: string | null | undefined;
678
+ penaltyPercent?: string | null | undefined;
679
+ description?: string | null | undefined;
680
+ }[] | undefined;
681
+ } | null | undefined;
682
+ paymentTerms?: {
683
+ [x: string]: import("hono/utils/types").JSONValue;
684
+ summary?: string | null | undefined;
685
+ depositAmount?: string | null | undefined;
686
+ depositCurrency?: string | null | undefined;
687
+ depositPercent?: string | null | undefined;
688
+ dueDate?: string | null | undefined;
689
+ schedule?: {
690
+ [x: string]: import("hono/utils/types").JSONValue;
691
+ }[] | undefined;
692
+ } | null | undefined;
693
+ supplierTermsUrl?: string | null | undefined;
694
+ notes?: string | null | undefined;
695
+ } | null | undefined;
696
+ };
697
+ };
698
+ outputFormat: "json";
699
+ status: import("hono/utils/http-status").ContentfulStatusCode;
700
+ } | {
701
+ input: {
702
+ param: {
703
+ key: string;
704
+ };
705
+ };
706
+ output: {
707
+ error: string;
708
+ };
709
+ outputFormat: "json";
710
+ status: 400;
711
+ } | {
712
+ input: {
713
+ param: {
714
+ key: string;
715
+ };
716
+ };
717
+ output: {
718
+ error: string;
719
+ };
720
+ outputFormat: "json";
721
+ status: 501;
722
+ } | {
723
+ input: {
724
+ param: {
725
+ key: string;
726
+ };
727
+ };
728
+ output: {
729
+ error: string;
730
+ };
731
+ outputFormat: "json";
732
+ status: 404;
733
+ };
734
+ };
735
+ } & {
736
+ "/ships/:key": {
737
+ $get: {
738
+ input: {
739
+ param: {
740
+ key: string;
741
+ };
742
+ };
743
+ output: {
744
+ error: string;
745
+ };
746
+ outputFormat: "json";
747
+ status: 404;
748
+ } | {
749
+ input: {
750
+ param: {
751
+ key: string;
752
+ };
753
+ };
754
+ output: {
755
+ data: {
756
+ decks: {
757
+ id: string;
758
+ name: string;
759
+ level: number | null;
760
+ createdAt: string;
761
+ updatedAt: string;
762
+ shipId: string;
763
+ planImageUrl: string | null;
764
+ }[];
765
+ categories: {
766
+ roomType: "inside" | "oceanview" | "balcony" | "suite" | "penthouse" | "single";
767
+ id: string;
768
+ name: string;
769
+ description: string | null;
770
+ code: string;
771
+ images: string[] | null;
772
+ createdAt: string;
773
+ updatedAt: string;
774
+ amenities: string[] | null;
775
+ externalRefs: {
776
+ [x: string]: string;
777
+ } | null;
778
+ customerPaymentPolicy: import("hono/utils/types").JSONValue;
779
+ shipId: string;
780
+ minOccupancy: number;
781
+ maxOccupancy: number;
782
+ squareFeet: string | null;
783
+ wheelchairAccessible: boolean;
784
+ featureCodes: string[] | null;
785
+ bedConfigurations: ("single" | "twin" | "double" | "queen" | "king" | "convertible_twins" | "sofa_bed" | "pullman" | "bunk" | "murphy")[] | null;
786
+ accessibilityFeatures: ("wheelchair_accessible" | "step_free_access" | "roll_in_shower" | "grab_bars" | "visual_alarm" | "hearing_loop" | "accessible_balcony" | "accessible_bathroom")[] | null;
787
+ viewType: "oceanview" | "balcony" | "none" | "interior" | "virtual" | "porthole" | "window" | "river_view" | "french_balcony" | "promenade" | "obstructed" | null;
788
+ floorplanImages: string[] | null;
789
+ gradeCodes: string[] | null;
790
+ }[];
791
+ id: string;
792
+ name: string;
793
+ description: string | null;
794
+ gallery: string[] | null;
795
+ slug: string;
796
+ lineSupplierId: string | null;
797
+ createdAt: string;
798
+ updatedAt: string;
799
+ cabinCount: number | null;
800
+ shipType: "ocean" | "river" | "expedition" | "coastal" | "yacht" | "sailing";
801
+ capacityGuests: number | null;
802
+ capacityCrew: number | null;
803
+ deckCount: number | null;
804
+ lengthMeters: string | null;
805
+ cruisingSpeedKnots: string | null;
806
+ yearBuilt: number | null;
807
+ yearRefurbished: number | null;
808
+ imo: string | null;
809
+ deckPlanUrl: string | null;
810
+ amenities: {
811
+ [x: string]: import("hono/utils/types").JSONValue;
812
+ } | null;
813
+ externalRefs: {
814
+ [x: string]: string;
815
+ } | null;
816
+ isActive: boolean;
817
+ };
818
+ };
819
+ outputFormat: "json";
820
+ status: import("hono/utils/http-status").ContentfulStatusCode;
821
+ } | {
822
+ input: {
823
+ param: {
824
+ key: string;
825
+ };
826
+ };
827
+ output: {
828
+ error: string;
829
+ };
830
+ outputFormat: "json";
831
+ status: 400;
832
+ } | {
833
+ input: {
834
+ param: {
835
+ key: string;
836
+ };
837
+ };
838
+ output: {
839
+ error: string;
840
+ };
841
+ outputFormat: "json";
842
+ status: 501;
843
+ } | {
844
+ input: {
845
+ param: {
846
+ key: string;
847
+ };
848
+ };
849
+ output: {
850
+ data: {
851
+ sourceRef: {
852
+ [x: string]: import("hono/utils/types").JSONValue;
853
+ connectionId?: string | undefined;
854
+ externalId: string;
855
+ };
856
+ name: string;
857
+ slug: string;
858
+ shipType: "ocean" | "river" | "expedition" | "yacht" | "sailing" | "coastal";
859
+ capacityGuests?: number | null | undefined;
860
+ capacityCrew?: number | null | undefined;
861
+ cabinCount?: number | null | undefined;
862
+ deckCount?: number | null | undefined;
863
+ lengthMeters?: string | null | undefined;
864
+ cruisingSpeedKnots?: string | null | undefined;
865
+ yearBuilt?: number | null | undefined;
866
+ yearRefurbished?: number | null | undefined;
867
+ imo?: string | null | undefined;
868
+ description?: string | null | undefined;
869
+ deckPlanUrl?: string | null | undefined;
870
+ gallery?: string[] | undefined;
871
+ amenities?: {
872
+ [x: string]: import("hono/utils/types").JSONValue;
873
+ } | undefined;
874
+ decks?: {
875
+ name: string;
876
+ level?: number | null | undefined;
877
+ planImageUrl?: string | null | undefined;
878
+ }[] | undefined;
879
+ categories?: {
880
+ sourceRef: {
881
+ [x: string]: import("hono/utils/types").JSONValue;
882
+ connectionId?: string | undefined;
883
+ externalId: string;
884
+ };
885
+ code: string;
886
+ name: string;
887
+ roomType: "inside" | "oceanview" | "balcony" | "suite" | "penthouse" | "single";
888
+ description?: string | null | undefined;
889
+ minOccupancy: number;
890
+ maxOccupancy: number;
891
+ squareFeet?: string | null | undefined;
892
+ wheelchairAccessible?: boolean | undefined;
893
+ amenities?: string[] | undefined;
894
+ featureCodes?: string[] | undefined;
895
+ bedConfigurations?: import("@voyant-travel/cruises-contracts/cabin-features").CabinBedConfiguration[] | undefined;
896
+ accessibilityFeatures?: import("@voyant-travel/cruises-contracts/cabin-features").CabinAccessibilityFeature[] | undefined;
897
+ viewType?: (import("@voyant-travel/cruises-contracts/cabin-features").CabinViewType | null) | undefined;
898
+ images?: string[] | undefined;
899
+ floorplanImages?: string[] | undefined;
900
+ gradeCodes?: string[] | undefined;
901
+ }[] | undefined;
902
+ };
903
+ };
904
+ outputFormat: "json";
905
+ status: import("hono/utils/http-status").ContentfulStatusCode;
906
+ };
907
+ };
908
+ }, "/", "/ships/:key">;
909
+ export type CruisePublicRoutes = typeof cruisePublicRoutes;
910
+ export {};
911
+ //# sourceMappingURL=routes-public.d.ts.map