@voyant-travel/storefront-react 0.120.1

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 (136) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +17 -0
  3. package/dist/client.d.ts +16 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +78 -0
  6. package/dist/components/storefront-settings-page.d.ts +5 -0
  7. package/dist/components/storefront-settings-page.d.ts.map +1 -0
  8. package/dist/components/storefront-settings-page.js +39 -0
  9. package/dist/customer-portal/client.d.ts +16 -0
  10. package/dist/customer-portal/client.d.ts.map +1 -0
  11. package/dist/customer-portal/client.js +78 -0
  12. package/dist/customer-portal/hooks/index.d.ts +12 -0
  13. package/dist/customer-portal/hooks/index.d.ts.map +1 -0
  14. package/dist/customer-portal/hooks/index.js +11 -0
  15. package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts +18 -0
  16. package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.d.ts.map +1 -0
  17. package/dist/customer-portal/hooks/use-customer-portal-booking-billing-contact.js +12 -0
  18. package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts +16 -0
  19. package/dist/customer-portal/hooks/use-customer-portal-booking-documents.d.ts.map +1 -0
  20. package/dist/customer-portal/hooks/use-customer-portal-booking-documents.js +12 -0
  21. package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts +109 -0
  22. package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts.map +1 -0
  23. package/dist/customer-portal/hooks/use-customer-portal-booking.js +12 -0
  24. package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts +22 -0
  25. package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts.map +1 -0
  26. package/dist/customer-portal/hooks/use-customer-portal-bookings.js +12 -0
  27. package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts +42 -0
  28. package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts.map +1 -0
  29. package/dist/customer-portal/hooks/use-customer-portal-companions.js +12 -0
  30. package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts +12 -0
  31. package/dist/customer-portal/hooks/use-customer-portal-contact-exists.d.ts.map +1 -0
  32. package/dist/customer-portal/hooks/use-customer-portal-contact-exists.js +12 -0
  33. package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts +419 -0
  34. package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts.map +1 -0
  35. package/dist/customer-portal/hooks/use-customer-portal-mutation.js +62 -0
  36. package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts +13 -0
  37. package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.d.ts.map +1 -0
  38. package/dist/customer-portal/hooks/use-customer-portal-phone-contact-exists.js +12 -0
  39. package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts +69 -0
  40. package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts.map +1 -0
  41. package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.js +28 -0
  42. package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts +20 -0
  43. package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts.map +1 -0
  44. package/dist/customer-portal/hooks/use-customer-portal-profile-documents.js +12 -0
  45. package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts +61 -0
  46. package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts.map +1 -0
  47. package/dist/customer-portal/hooks/use-customer-portal-profile.js +12 -0
  48. package/dist/customer-portal/index.d.ts +9 -0
  49. package/dist/customer-portal/index.d.ts.map +1 -0
  50. package/dist/customer-portal/index.js +7 -0
  51. package/dist/customer-portal/operations.d.ts +595 -0
  52. package/dist/customer-portal/operations.d.ts.map +1 -0
  53. package/dist/customer-portal/operations.js +84 -0
  54. package/dist/customer-portal/provider.d.ts +2 -0
  55. package/dist/customer-portal/provider.d.ts.map +1 -0
  56. package/dist/customer-portal/provider.js +1 -0
  57. package/dist/customer-portal/query-keys.d.ts +21 -0
  58. package/dist/customer-portal/query-keys.d.ts.map +1 -0
  59. package/dist/customer-portal/query-keys.js +14 -0
  60. package/dist/customer-portal/query-options.d.ts +1148 -0
  61. package/dist/customer-portal/query-options.d.ts.map +1 -0
  62. package/dist/customer-portal/query-options.js +58 -0
  63. package/dist/customer-portal/schemas.d.ts +751 -0
  64. package/dist/customer-portal/schemas.d.ts.map +1 -0
  65. package/dist/customer-portal/schemas.js +21 -0
  66. package/dist/hooks/index.d.ts +12 -0
  67. package/dist/hooks/index.d.ts.map +1 -0
  68. package/dist/hooks/index.js +11 -0
  69. package/dist/hooks/use-admin-storefront-settings.d.ts +290 -0
  70. package/dist/hooks/use-admin-storefront-settings.d.ts.map +1 -0
  71. package/dist/hooks/use-admin-storefront-settings.js +29 -0
  72. package/dist/hooks/use-storefront-departure-itinerary.d.ts +23 -0
  73. package/dist/hooks/use-storefront-departure-itinerary.d.ts.map +1 -0
  74. package/dist/hooks/use-storefront-departure-itinerary.js +12 -0
  75. package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +244 -0
  76. package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts.map +1 -0
  77. package/dist/hooks/use-storefront-departure-price-preview-mutation.js +15 -0
  78. package/dist/hooks/use-storefront-departure.d.ts +51 -0
  79. package/dist/hooks/use-storefront-departure.d.ts.map +1 -0
  80. package/dist/hooks/use-storefront-departure.js +12 -0
  81. package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +68 -0
  82. package/dist/hooks/use-storefront-offer-apply-mutation.d.ts.map +1 -0
  83. package/dist/hooks/use-storefront-offer-apply-mutation.js +15 -0
  84. package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +69 -0
  85. package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts.map +1 -0
  86. package/dist/hooks/use-storefront-offer-redeem-mutation.js +12 -0
  87. package/dist/hooks/use-storefront-offer.d.ts +26 -0
  88. package/dist/hooks/use-storefront-offer.d.ts.map +1 -0
  89. package/dist/hooks/use-storefront-offer.js +12 -0
  90. package/dist/hooks/use-storefront-product-departures.d.ts +55 -0
  91. package/dist/hooks/use-storefront-product-departures.d.ts.map +1 -0
  92. package/dist/hooks/use-storefront-product-departures.js +12 -0
  93. package/dist/hooks/use-storefront-product-extensions.d.ts +47 -0
  94. package/dist/hooks/use-storefront-product-extensions.d.ts.map +1 -0
  95. package/dist/hooks/use-storefront-product-extensions.js +12 -0
  96. package/dist/hooks/use-storefront-product-offers.d.ts +26 -0
  97. package/dist/hooks/use-storefront-product-offers.d.ts.map +1 -0
  98. package/dist/hooks/use-storefront-product-offers.js +12 -0
  99. package/dist/hooks/use-storefront-settings.d.ts +101 -0
  100. package/dist/hooks/use-storefront-settings.d.ts.map +1 -0
  101. package/dist/hooks/use-storefront-settings.js +12 -0
  102. package/dist/index.d.ts +8 -0
  103. package/dist/index.d.ts.map +1 -0
  104. package/dist/index.js +7 -0
  105. package/dist/internal/storefront-settings-form.d.ts +50 -0
  106. package/dist/internal/storefront-settings-form.d.ts.map +1 -0
  107. package/dist/internal/storefront-settings-form.js +246 -0
  108. package/dist/internal/storefront-settings-payment-section.d.ts +12 -0
  109. package/dist/internal/storefront-settings-payment-section.d.ts.map +1 -0
  110. package/dist/internal/storefront-settings-payment-section.js +14 -0
  111. package/dist/internal/storefront-settings-sections.d.ts +23 -0
  112. package/dist/internal/storefront-settings-sections.d.ts.map +1 -0
  113. package/dist/internal/storefront-settings-sections.js +32 -0
  114. package/dist/operations.d.ts +827 -0
  115. package/dist/operations.d.ts.map +1 -0
  116. package/dist/operations.js +46 -0
  117. package/dist/operations.test.d.ts +2 -0
  118. package/dist/operations.test.d.ts.map +1 -0
  119. package/dist/operations.test.js +77 -0
  120. package/dist/provider.d.ts +2 -0
  121. package/dist/provider.d.ts.map +1 -0
  122. package/dist/provider.js +1 -0
  123. package/dist/query-keys.d.ts +32 -0
  124. package/dist/query-keys.d.ts.map +1 -0
  125. package/dist/query-keys.js +15 -0
  126. package/dist/query-options.d.ts +1648 -0
  127. package/dist/query-options.d.ts.map +1 -0
  128. package/dist/query-options.js +52 -0
  129. package/dist/schemas.d.ts +576 -0
  130. package/dist/schemas.d.ts.map +1 -0
  131. package/dist/schemas.js +11 -0
  132. package/dist/ui.d.ts +2 -0
  133. package/dist/ui.d.ts.map +1 -0
  134. package/dist/ui.js +1 -0
  135. package/package.json +133 -0
  136. package/src/styles.css +1 -0
@@ -0,0 +1,1648 @@
1
+ import type { FetchWithValidationOptions } from "./client.js";
2
+ import { type StorefrontDepartureFilters, type StorefrontExtensionsFilters, type StorefrontOfferFilters } from "./query-keys.js";
3
+ export declare function getStorefrontSettingsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
4
+ data: {
5
+ branding: {
6
+ logoUrl: string | null;
7
+ faviconUrl: string | null;
8
+ brandMarkUrl: string | null;
9
+ primaryColor: string | null;
10
+ accentColor: string | null;
11
+ supportedLanguages: string[];
12
+ };
13
+ support: {
14
+ email: string | null;
15
+ phone: string | null;
16
+ links: {
17
+ label: string;
18
+ url: string;
19
+ }[];
20
+ };
21
+ legal: {
22
+ termsUrl: string | null;
23
+ privacyUrl: string | null;
24
+ cancellationUrl: string | null;
25
+ defaultContractTemplateId: string | null;
26
+ };
27
+ localization: {
28
+ defaultLocale: string | null;
29
+ currencyDisplay: "symbol" | "name" | "code";
30
+ };
31
+ forms: {
32
+ billing: {
33
+ fields: {
34
+ key: string;
35
+ label: string;
36
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
37
+ required: boolean;
38
+ placeholder: string | null;
39
+ description: string | null;
40
+ autocomplete: string | null;
41
+ options: {
42
+ value: string;
43
+ label: string;
44
+ }[];
45
+ }[];
46
+ };
47
+ travelers: {
48
+ fields: {
49
+ key: string;
50
+ label: string;
51
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
52
+ required: boolean;
53
+ placeholder: string | null;
54
+ description: string | null;
55
+ autocomplete: string | null;
56
+ options: {
57
+ value: string;
58
+ label: string;
59
+ }[];
60
+ }[];
61
+ };
62
+ };
63
+ payment: {
64
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
65
+ methods: {
66
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
67
+ label: string;
68
+ description: string | null;
69
+ enabled: boolean;
70
+ }[];
71
+ structure: "split" | "full";
72
+ schedule: {
73
+ percent: number;
74
+ dueInDays: number;
75
+ dueCondition: "after_booking" | "before_departure";
76
+ }[];
77
+ defaultSchedule: {
78
+ depositPercent: number | null;
79
+ balanceDueDaysBeforeDeparture: number | null;
80
+ } | null;
81
+ bankTransfer: {
82
+ dueDays: number | null;
83
+ account: {
84
+ provider: string | null;
85
+ currency: string | null;
86
+ iban: string;
87
+ beneficiary: string;
88
+ bank: string;
89
+ } | null;
90
+ accountHolder: string | null;
91
+ bankName: string | null;
92
+ iban: string | null;
93
+ bic: string | null;
94
+ paymentReference: string | null;
95
+ instructions: string | null;
96
+ } | null;
97
+ };
98
+ };
99
+ }, Error, {
100
+ data: {
101
+ branding: {
102
+ logoUrl: string | null;
103
+ faviconUrl: string | null;
104
+ brandMarkUrl: string | null;
105
+ primaryColor: string | null;
106
+ accentColor: string | null;
107
+ supportedLanguages: string[];
108
+ };
109
+ support: {
110
+ email: string | null;
111
+ phone: string | null;
112
+ links: {
113
+ label: string;
114
+ url: string;
115
+ }[];
116
+ };
117
+ legal: {
118
+ termsUrl: string | null;
119
+ privacyUrl: string | null;
120
+ cancellationUrl: string | null;
121
+ defaultContractTemplateId: string | null;
122
+ };
123
+ localization: {
124
+ defaultLocale: string | null;
125
+ currencyDisplay: "symbol" | "name" | "code";
126
+ };
127
+ forms: {
128
+ billing: {
129
+ fields: {
130
+ key: string;
131
+ label: string;
132
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
133
+ required: boolean;
134
+ placeholder: string | null;
135
+ description: string | null;
136
+ autocomplete: string | null;
137
+ options: {
138
+ value: string;
139
+ label: string;
140
+ }[];
141
+ }[];
142
+ };
143
+ travelers: {
144
+ fields: {
145
+ key: string;
146
+ label: string;
147
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
148
+ required: boolean;
149
+ placeholder: string | null;
150
+ description: string | null;
151
+ autocomplete: string | null;
152
+ options: {
153
+ value: string;
154
+ label: string;
155
+ }[];
156
+ }[];
157
+ };
158
+ };
159
+ payment: {
160
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
161
+ methods: {
162
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
163
+ label: string;
164
+ description: string | null;
165
+ enabled: boolean;
166
+ }[];
167
+ structure: "split" | "full";
168
+ schedule: {
169
+ percent: number;
170
+ dueInDays: number;
171
+ dueCondition: "after_booking" | "before_departure";
172
+ }[];
173
+ defaultSchedule: {
174
+ depositPercent: number | null;
175
+ balanceDueDaysBeforeDeparture: number | null;
176
+ } | null;
177
+ bankTransfer: {
178
+ dueDays: number | null;
179
+ account: {
180
+ provider: string | null;
181
+ currency: string | null;
182
+ iban: string;
183
+ beneficiary: string;
184
+ bank: string;
185
+ } | null;
186
+ accountHolder: string | null;
187
+ bankName: string | null;
188
+ iban: string | null;
189
+ bic: string | null;
190
+ paymentReference: string | null;
191
+ instructions: string | null;
192
+ } | null;
193
+ };
194
+ };
195
+ }, readonly ["voyant", "storefront", "settings"]>, "queryFn"> & {
196
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
197
+ data: {
198
+ branding: {
199
+ logoUrl: string | null;
200
+ faviconUrl: string | null;
201
+ brandMarkUrl: string | null;
202
+ primaryColor: string | null;
203
+ accentColor: string | null;
204
+ supportedLanguages: string[];
205
+ };
206
+ support: {
207
+ email: string | null;
208
+ phone: string | null;
209
+ links: {
210
+ label: string;
211
+ url: string;
212
+ }[];
213
+ };
214
+ legal: {
215
+ termsUrl: string | null;
216
+ privacyUrl: string | null;
217
+ cancellationUrl: string | null;
218
+ defaultContractTemplateId: string | null;
219
+ };
220
+ localization: {
221
+ defaultLocale: string | null;
222
+ currencyDisplay: "symbol" | "name" | "code";
223
+ };
224
+ forms: {
225
+ billing: {
226
+ fields: {
227
+ key: string;
228
+ label: string;
229
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
230
+ required: boolean;
231
+ placeholder: string | null;
232
+ description: string | null;
233
+ autocomplete: string | null;
234
+ options: {
235
+ value: string;
236
+ label: string;
237
+ }[];
238
+ }[];
239
+ };
240
+ travelers: {
241
+ fields: {
242
+ key: string;
243
+ label: string;
244
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
245
+ required: boolean;
246
+ placeholder: string | null;
247
+ description: string | null;
248
+ autocomplete: string | null;
249
+ options: {
250
+ value: string;
251
+ label: string;
252
+ }[];
253
+ }[];
254
+ };
255
+ };
256
+ payment: {
257
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
258
+ methods: {
259
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
260
+ label: string;
261
+ description: string | null;
262
+ enabled: boolean;
263
+ }[];
264
+ structure: "split" | "full";
265
+ schedule: {
266
+ percent: number;
267
+ dueInDays: number;
268
+ dueCondition: "after_booking" | "before_departure";
269
+ }[];
270
+ defaultSchedule: {
271
+ depositPercent: number | null;
272
+ balanceDueDaysBeforeDeparture: number | null;
273
+ } | null;
274
+ bankTransfer: {
275
+ dueDays: number | null;
276
+ account: {
277
+ provider: string | null;
278
+ currency: string | null;
279
+ iban: string;
280
+ beneficiary: string;
281
+ bank: string;
282
+ } | null;
283
+ accountHolder: string | null;
284
+ bankName: string | null;
285
+ iban: string | null;
286
+ bic: string | null;
287
+ paymentReference: string | null;
288
+ instructions: string | null;
289
+ } | null;
290
+ };
291
+ };
292
+ }, readonly ["voyant", "storefront", "settings"], never> | undefined;
293
+ } & {
294
+ queryKey: readonly ["voyant", "storefront", "settings"] & {
295
+ [dataTagSymbol]: {
296
+ data: {
297
+ branding: {
298
+ logoUrl: string | null;
299
+ faviconUrl: string | null;
300
+ brandMarkUrl: string | null;
301
+ primaryColor: string | null;
302
+ accentColor: string | null;
303
+ supportedLanguages: string[];
304
+ };
305
+ support: {
306
+ email: string | null;
307
+ phone: string | null;
308
+ links: {
309
+ label: string;
310
+ url: string;
311
+ }[];
312
+ };
313
+ legal: {
314
+ termsUrl: string | null;
315
+ privacyUrl: string | null;
316
+ cancellationUrl: string | null;
317
+ defaultContractTemplateId: string | null;
318
+ };
319
+ localization: {
320
+ defaultLocale: string | null;
321
+ currencyDisplay: "symbol" | "name" | "code";
322
+ };
323
+ forms: {
324
+ billing: {
325
+ fields: {
326
+ key: string;
327
+ label: string;
328
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
329
+ required: boolean;
330
+ placeholder: string | null;
331
+ description: string | null;
332
+ autocomplete: string | null;
333
+ options: {
334
+ value: string;
335
+ label: string;
336
+ }[];
337
+ }[];
338
+ };
339
+ travelers: {
340
+ fields: {
341
+ key: string;
342
+ label: string;
343
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
344
+ required: boolean;
345
+ placeholder: string | null;
346
+ description: string | null;
347
+ autocomplete: string | null;
348
+ options: {
349
+ value: string;
350
+ label: string;
351
+ }[];
352
+ }[];
353
+ };
354
+ };
355
+ payment: {
356
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
357
+ methods: {
358
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
359
+ label: string;
360
+ description: string | null;
361
+ enabled: boolean;
362
+ }[];
363
+ structure: "split" | "full";
364
+ schedule: {
365
+ percent: number;
366
+ dueInDays: number;
367
+ dueCondition: "after_booking" | "before_departure";
368
+ }[];
369
+ defaultSchedule: {
370
+ depositPercent: number | null;
371
+ balanceDueDaysBeforeDeparture: number | null;
372
+ } | null;
373
+ bankTransfer: {
374
+ dueDays: number | null;
375
+ account: {
376
+ provider: string | null;
377
+ currency: string | null;
378
+ iban: string;
379
+ beneficiary: string;
380
+ bank: string;
381
+ } | null;
382
+ accountHolder: string | null;
383
+ bankName: string | null;
384
+ iban: string | null;
385
+ bic: string | null;
386
+ paymentReference: string | null;
387
+ instructions: string | null;
388
+ } | null;
389
+ };
390
+ };
391
+ };
392
+ [dataTagErrorSymbol]: Error;
393
+ };
394
+ };
395
+ export declare function getAdminStorefrontSettingsQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
396
+ data: {
397
+ branding: {
398
+ logoUrl: string | null;
399
+ faviconUrl: string | null;
400
+ brandMarkUrl: string | null;
401
+ primaryColor: string | null;
402
+ accentColor: string | null;
403
+ supportedLanguages: string[];
404
+ };
405
+ support: {
406
+ email: string | null;
407
+ phone: string | null;
408
+ links: {
409
+ label: string;
410
+ url: string;
411
+ }[];
412
+ };
413
+ legal: {
414
+ termsUrl: string | null;
415
+ privacyUrl: string | null;
416
+ cancellationUrl: string | null;
417
+ defaultContractTemplateId: string | null;
418
+ };
419
+ localization: {
420
+ defaultLocale: string | null;
421
+ currencyDisplay: "symbol" | "name" | "code";
422
+ };
423
+ forms: {
424
+ billing: {
425
+ fields: {
426
+ key: string;
427
+ label: string;
428
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
429
+ required: boolean;
430
+ placeholder: string | null;
431
+ description: string | null;
432
+ autocomplete: string | null;
433
+ options: {
434
+ value: string;
435
+ label: string;
436
+ }[];
437
+ }[];
438
+ };
439
+ travelers: {
440
+ fields: {
441
+ key: string;
442
+ label: string;
443
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
444
+ required: boolean;
445
+ placeholder: string | null;
446
+ description: string | null;
447
+ autocomplete: string | null;
448
+ options: {
449
+ value: string;
450
+ label: string;
451
+ }[];
452
+ }[];
453
+ };
454
+ };
455
+ payment: {
456
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
457
+ methods: {
458
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
459
+ label: string;
460
+ description: string | null;
461
+ enabled: boolean;
462
+ }[];
463
+ structure: "split" | "full";
464
+ schedule: {
465
+ percent: number;
466
+ dueInDays: number;
467
+ dueCondition: "after_booking" | "before_departure";
468
+ }[];
469
+ defaultSchedule: {
470
+ depositPercent: number | null;
471
+ balanceDueDaysBeforeDeparture: number | null;
472
+ } | null;
473
+ bankTransfer: {
474
+ dueDays: number | null;
475
+ account: {
476
+ provider: string | null;
477
+ currency: string | null;
478
+ iban: string;
479
+ beneficiary: string;
480
+ bank: string;
481
+ } | null;
482
+ accountHolder: string | null;
483
+ bankName: string | null;
484
+ iban: string | null;
485
+ bic: string | null;
486
+ paymentReference: string | null;
487
+ instructions: string | null;
488
+ } | null;
489
+ };
490
+ };
491
+ }, Error, {
492
+ data: {
493
+ branding: {
494
+ logoUrl: string | null;
495
+ faviconUrl: string | null;
496
+ brandMarkUrl: string | null;
497
+ primaryColor: string | null;
498
+ accentColor: string | null;
499
+ supportedLanguages: string[];
500
+ };
501
+ support: {
502
+ email: string | null;
503
+ phone: string | null;
504
+ links: {
505
+ label: string;
506
+ url: string;
507
+ }[];
508
+ };
509
+ legal: {
510
+ termsUrl: string | null;
511
+ privacyUrl: string | null;
512
+ cancellationUrl: string | null;
513
+ defaultContractTemplateId: string | null;
514
+ };
515
+ localization: {
516
+ defaultLocale: string | null;
517
+ currencyDisplay: "symbol" | "name" | "code";
518
+ };
519
+ forms: {
520
+ billing: {
521
+ fields: {
522
+ key: string;
523
+ label: string;
524
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
525
+ required: boolean;
526
+ placeholder: string | null;
527
+ description: string | null;
528
+ autocomplete: string | null;
529
+ options: {
530
+ value: string;
531
+ label: string;
532
+ }[];
533
+ }[];
534
+ };
535
+ travelers: {
536
+ fields: {
537
+ key: string;
538
+ label: string;
539
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
540
+ required: boolean;
541
+ placeholder: string | null;
542
+ description: string | null;
543
+ autocomplete: string | null;
544
+ options: {
545
+ value: string;
546
+ label: string;
547
+ }[];
548
+ }[];
549
+ };
550
+ };
551
+ payment: {
552
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
553
+ methods: {
554
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
555
+ label: string;
556
+ description: string | null;
557
+ enabled: boolean;
558
+ }[];
559
+ structure: "split" | "full";
560
+ schedule: {
561
+ percent: number;
562
+ dueInDays: number;
563
+ dueCondition: "after_booking" | "before_departure";
564
+ }[];
565
+ defaultSchedule: {
566
+ depositPercent: number | null;
567
+ balanceDueDaysBeforeDeparture: number | null;
568
+ } | null;
569
+ bankTransfer: {
570
+ dueDays: number | null;
571
+ account: {
572
+ provider: string | null;
573
+ currency: string | null;
574
+ iban: string;
575
+ beneficiary: string;
576
+ bank: string;
577
+ } | null;
578
+ accountHolder: string | null;
579
+ bankName: string | null;
580
+ iban: string | null;
581
+ bic: string | null;
582
+ paymentReference: string | null;
583
+ instructions: string | null;
584
+ } | null;
585
+ };
586
+ };
587
+ }, readonly ["voyant", "storefront", "admin", "settings"]>, "queryFn"> & {
588
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
589
+ data: {
590
+ branding: {
591
+ logoUrl: string | null;
592
+ faviconUrl: string | null;
593
+ brandMarkUrl: string | null;
594
+ primaryColor: string | null;
595
+ accentColor: string | null;
596
+ supportedLanguages: string[];
597
+ };
598
+ support: {
599
+ email: string | null;
600
+ phone: string | null;
601
+ links: {
602
+ label: string;
603
+ url: string;
604
+ }[];
605
+ };
606
+ legal: {
607
+ termsUrl: string | null;
608
+ privacyUrl: string | null;
609
+ cancellationUrl: string | null;
610
+ defaultContractTemplateId: string | null;
611
+ };
612
+ localization: {
613
+ defaultLocale: string | null;
614
+ currencyDisplay: "symbol" | "name" | "code";
615
+ };
616
+ forms: {
617
+ billing: {
618
+ fields: {
619
+ key: string;
620
+ label: string;
621
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
622
+ required: boolean;
623
+ placeholder: string | null;
624
+ description: string | null;
625
+ autocomplete: string | null;
626
+ options: {
627
+ value: string;
628
+ label: string;
629
+ }[];
630
+ }[];
631
+ };
632
+ travelers: {
633
+ fields: {
634
+ key: string;
635
+ label: string;
636
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
637
+ required: boolean;
638
+ placeholder: string | null;
639
+ description: string | null;
640
+ autocomplete: string | null;
641
+ options: {
642
+ value: string;
643
+ label: string;
644
+ }[];
645
+ }[];
646
+ };
647
+ };
648
+ payment: {
649
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
650
+ methods: {
651
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
652
+ label: string;
653
+ description: string | null;
654
+ enabled: boolean;
655
+ }[];
656
+ structure: "split" | "full";
657
+ schedule: {
658
+ percent: number;
659
+ dueInDays: number;
660
+ dueCondition: "after_booking" | "before_departure";
661
+ }[];
662
+ defaultSchedule: {
663
+ depositPercent: number | null;
664
+ balanceDueDaysBeforeDeparture: number | null;
665
+ } | null;
666
+ bankTransfer: {
667
+ dueDays: number | null;
668
+ account: {
669
+ provider: string | null;
670
+ currency: string | null;
671
+ iban: string;
672
+ beneficiary: string;
673
+ bank: string;
674
+ } | null;
675
+ accountHolder: string | null;
676
+ bankName: string | null;
677
+ iban: string | null;
678
+ bic: string | null;
679
+ paymentReference: string | null;
680
+ instructions: string | null;
681
+ } | null;
682
+ };
683
+ };
684
+ }, readonly ["voyant", "storefront", "admin", "settings"], never> | undefined;
685
+ } & {
686
+ queryKey: readonly ["voyant", "storefront", "admin", "settings"] & {
687
+ [dataTagSymbol]: {
688
+ data: {
689
+ branding: {
690
+ logoUrl: string | null;
691
+ faviconUrl: string | null;
692
+ brandMarkUrl: string | null;
693
+ primaryColor: string | null;
694
+ accentColor: string | null;
695
+ supportedLanguages: string[];
696
+ };
697
+ support: {
698
+ email: string | null;
699
+ phone: string | null;
700
+ links: {
701
+ label: string;
702
+ url: string;
703
+ }[];
704
+ };
705
+ legal: {
706
+ termsUrl: string | null;
707
+ privacyUrl: string | null;
708
+ cancellationUrl: string | null;
709
+ defaultContractTemplateId: string | null;
710
+ };
711
+ localization: {
712
+ defaultLocale: string | null;
713
+ currencyDisplay: "symbol" | "name" | "code";
714
+ };
715
+ forms: {
716
+ billing: {
717
+ fields: {
718
+ key: string;
719
+ label: string;
720
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
721
+ required: boolean;
722
+ placeholder: string | null;
723
+ description: string | null;
724
+ autocomplete: string | null;
725
+ options: {
726
+ value: string;
727
+ label: string;
728
+ }[];
729
+ }[];
730
+ };
731
+ travelers: {
732
+ fields: {
733
+ key: string;
734
+ label: string;
735
+ type: "select" | "textarea" | "text" | "date" | "email" | "tel" | "checkbox" | "country";
736
+ required: boolean;
737
+ placeholder: string | null;
738
+ description: string | null;
739
+ autocomplete: string | null;
740
+ options: {
741
+ value: string;
742
+ label: string;
743
+ }[];
744
+ }[];
745
+ };
746
+ };
747
+ payment: {
748
+ defaultMethod: "card" | "bank_transfer" | "cash" | "voucher" | "invoice" | null;
749
+ methods: {
750
+ code: "card" | "bank_transfer" | "cash" | "voucher" | "invoice";
751
+ label: string;
752
+ description: string | null;
753
+ enabled: boolean;
754
+ }[];
755
+ structure: "split" | "full";
756
+ schedule: {
757
+ percent: number;
758
+ dueInDays: number;
759
+ dueCondition: "after_booking" | "before_departure";
760
+ }[];
761
+ defaultSchedule: {
762
+ depositPercent: number | null;
763
+ balanceDueDaysBeforeDeparture: number | null;
764
+ } | null;
765
+ bankTransfer: {
766
+ dueDays: number | null;
767
+ account: {
768
+ provider: string | null;
769
+ currency: string | null;
770
+ iban: string;
771
+ beneficiary: string;
772
+ bank: string;
773
+ } | null;
774
+ accountHolder: string | null;
775
+ bankName: string | null;
776
+ iban: string | null;
777
+ bic: string | null;
778
+ paymentReference: string | null;
779
+ instructions: string | null;
780
+ } | null;
781
+ };
782
+ };
783
+ };
784
+ [dataTagErrorSymbol]: Error;
785
+ };
786
+ };
787
+ export declare function getStorefrontDepartureQueryOptions(client: FetchWithValidationOptions, departureId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
788
+ data: {
789
+ id: string;
790
+ productId: string;
791
+ itineraryId: string;
792
+ optionId: string | null;
793
+ dateLocal: string | null;
794
+ startAt: string | null;
795
+ endAt: string | null;
796
+ timezone: string;
797
+ startTime: {
798
+ id: string;
799
+ label: string | null;
800
+ startTimeLocal: string;
801
+ durationMinutes: number | null;
802
+ } | null;
803
+ meetingPoint: string | null;
804
+ capacity: number | null;
805
+ remaining: number | null;
806
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
807
+ nights: number | null;
808
+ days: number | null;
809
+ ratePlans: {
810
+ id: string;
811
+ active: boolean;
812
+ name: string;
813
+ pricingModel: string;
814
+ basePrices: {
815
+ amount: number;
816
+ currencyCode: string;
817
+ }[];
818
+ roomPrices: {
819
+ amount: number;
820
+ currencyCode: string;
821
+ roomType: {
822
+ id: string;
823
+ name: string;
824
+ occupancy: {
825
+ adultsMin: number;
826
+ adultsMax: number;
827
+ childrenMax: number;
828
+ };
829
+ };
830
+ }[];
831
+ }[];
832
+ };
833
+ }, Error, {
834
+ data: {
835
+ id: string;
836
+ productId: string;
837
+ itineraryId: string;
838
+ optionId: string | null;
839
+ dateLocal: string | null;
840
+ startAt: string | null;
841
+ endAt: string | null;
842
+ timezone: string;
843
+ startTime: {
844
+ id: string;
845
+ label: string | null;
846
+ startTimeLocal: string;
847
+ durationMinutes: number | null;
848
+ } | null;
849
+ meetingPoint: string | null;
850
+ capacity: number | null;
851
+ remaining: number | null;
852
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
853
+ nights: number | null;
854
+ days: number | null;
855
+ ratePlans: {
856
+ id: string;
857
+ active: boolean;
858
+ name: string;
859
+ pricingModel: string;
860
+ basePrices: {
861
+ amount: number;
862
+ currencyCode: string;
863
+ }[];
864
+ roomPrices: {
865
+ amount: number;
866
+ currencyCode: string;
867
+ roomType: {
868
+ id: string;
869
+ name: string;
870
+ occupancy: {
871
+ adultsMin: number;
872
+ adultsMax: number;
873
+ childrenMax: number;
874
+ };
875
+ };
876
+ }[];
877
+ }[];
878
+ };
879
+ }, readonly ["voyant", "storefront", "departures", "detail", string]>, "queryFn"> & {
880
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
881
+ data: {
882
+ id: string;
883
+ productId: string;
884
+ itineraryId: string;
885
+ optionId: string | null;
886
+ dateLocal: string | null;
887
+ startAt: string | null;
888
+ endAt: string | null;
889
+ timezone: string;
890
+ startTime: {
891
+ id: string;
892
+ label: string | null;
893
+ startTimeLocal: string;
894
+ durationMinutes: number | null;
895
+ } | null;
896
+ meetingPoint: string | null;
897
+ capacity: number | null;
898
+ remaining: number | null;
899
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
900
+ nights: number | null;
901
+ days: number | null;
902
+ ratePlans: {
903
+ id: string;
904
+ active: boolean;
905
+ name: string;
906
+ pricingModel: string;
907
+ basePrices: {
908
+ amount: number;
909
+ currencyCode: string;
910
+ }[];
911
+ roomPrices: {
912
+ amount: number;
913
+ currencyCode: string;
914
+ roomType: {
915
+ id: string;
916
+ name: string;
917
+ occupancy: {
918
+ adultsMin: number;
919
+ adultsMax: number;
920
+ childrenMax: number;
921
+ };
922
+ };
923
+ }[];
924
+ }[];
925
+ };
926
+ }, readonly ["voyant", "storefront", "departures", "detail", string], never> | undefined;
927
+ } & {
928
+ queryKey: readonly ["voyant", "storefront", "departures", "detail", string] & {
929
+ [dataTagSymbol]: {
930
+ data: {
931
+ id: string;
932
+ productId: string;
933
+ itineraryId: string;
934
+ optionId: string | null;
935
+ dateLocal: string | null;
936
+ startAt: string | null;
937
+ endAt: string | null;
938
+ timezone: string;
939
+ startTime: {
940
+ id: string;
941
+ label: string | null;
942
+ startTimeLocal: string;
943
+ durationMinutes: number | null;
944
+ } | null;
945
+ meetingPoint: string | null;
946
+ capacity: number | null;
947
+ remaining: number | null;
948
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
949
+ nights: number | null;
950
+ days: number | null;
951
+ ratePlans: {
952
+ id: string;
953
+ active: boolean;
954
+ name: string;
955
+ pricingModel: string;
956
+ basePrices: {
957
+ amount: number;
958
+ currencyCode: string;
959
+ }[];
960
+ roomPrices: {
961
+ amount: number;
962
+ currencyCode: string;
963
+ roomType: {
964
+ id: string;
965
+ name: string;
966
+ occupancy: {
967
+ adultsMin: number;
968
+ adultsMax: number;
969
+ childrenMax: number;
970
+ };
971
+ };
972
+ }[];
973
+ }[];
974
+ };
975
+ };
976
+ [dataTagErrorSymbol]: Error;
977
+ };
978
+ };
979
+ export declare function getStorefrontProductDeparturesQueryOptions(client: FetchWithValidationOptions, productId: string, filters?: StorefrontDepartureFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
980
+ data: {
981
+ id: string;
982
+ productId: string;
983
+ itineraryId: string;
984
+ optionId: string | null;
985
+ dateLocal: string | null;
986
+ startAt: string | null;
987
+ endAt: string | null;
988
+ timezone: string;
989
+ startTime: {
990
+ id: string;
991
+ label: string | null;
992
+ startTimeLocal: string;
993
+ durationMinutes: number | null;
994
+ } | null;
995
+ meetingPoint: string | null;
996
+ capacity: number | null;
997
+ remaining: number | null;
998
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
999
+ nights: number | null;
1000
+ days: number | null;
1001
+ ratePlans: {
1002
+ id: string;
1003
+ active: boolean;
1004
+ name: string;
1005
+ pricingModel: string;
1006
+ basePrices: {
1007
+ amount: number;
1008
+ currencyCode: string;
1009
+ }[];
1010
+ roomPrices: {
1011
+ amount: number;
1012
+ currencyCode: string;
1013
+ roomType: {
1014
+ id: string;
1015
+ name: string;
1016
+ occupancy: {
1017
+ adultsMin: number;
1018
+ adultsMax: number;
1019
+ childrenMax: number;
1020
+ };
1021
+ };
1022
+ }[];
1023
+ }[];
1024
+ }[];
1025
+ total: number;
1026
+ limit: number;
1027
+ offset: number;
1028
+ }, Error, {
1029
+ data: {
1030
+ id: string;
1031
+ productId: string;
1032
+ itineraryId: string;
1033
+ optionId: string | null;
1034
+ dateLocal: string | null;
1035
+ startAt: string | null;
1036
+ endAt: string | null;
1037
+ timezone: string;
1038
+ startTime: {
1039
+ id: string;
1040
+ label: string | null;
1041
+ startTimeLocal: string;
1042
+ durationMinutes: number | null;
1043
+ } | null;
1044
+ meetingPoint: string | null;
1045
+ capacity: number | null;
1046
+ remaining: number | null;
1047
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
1048
+ nights: number | null;
1049
+ days: number | null;
1050
+ ratePlans: {
1051
+ id: string;
1052
+ active: boolean;
1053
+ name: string;
1054
+ pricingModel: string;
1055
+ basePrices: {
1056
+ amount: number;
1057
+ currencyCode: string;
1058
+ }[];
1059
+ roomPrices: {
1060
+ amount: number;
1061
+ currencyCode: string;
1062
+ roomType: {
1063
+ id: string;
1064
+ name: string;
1065
+ occupancy: {
1066
+ adultsMin: number;
1067
+ adultsMax: number;
1068
+ childrenMax: number;
1069
+ };
1070
+ };
1071
+ }[];
1072
+ }[];
1073
+ }[];
1074
+ total: number;
1075
+ limit: number;
1076
+ offset: number;
1077
+ }, readonly ["voyant", "storefront", "departures", "product-list", string, {
1078
+ optionId?: string | undefined;
1079
+ status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
1080
+ dateFrom?: string | undefined;
1081
+ dateTo?: string | undefined;
1082
+ limit?: unknown;
1083
+ offset?: unknown;
1084
+ }]>, "queryFn"> & {
1085
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1086
+ data: {
1087
+ id: string;
1088
+ productId: string;
1089
+ itineraryId: string;
1090
+ optionId: string | null;
1091
+ dateLocal: string | null;
1092
+ startAt: string | null;
1093
+ endAt: string | null;
1094
+ timezone: string;
1095
+ startTime: {
1096
+ id: string;
1097
+ label: string | null;
1098
+ startTimeLocal: string;
1099
+ durationMinutes: number | null;
1100
+ } | null;
1101
+ meetingPoint: string | null;
1102
+ capacity: number | null;
1103
+ remaining: number | null;
1104
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
1105
+ nights: number | null;
1106
+ days: number | null;
1107
+ ratePlans: {
1108
+ id: string;
1109
+ active: boolean;
1110
+ name: string;
1111
+ pricingModel: string;
1112
+ basePrices: {
1113
+ amount: number;
1114
+ currencyCode: string;
1115
+ }[];
1116
+ roomPrices: {
1117
+ amount: number;
1118
+ currencyCode: string;
1119
+ roomType: {
1120
+ id: string;
1121
+ name: string;
1122
+ occupancy: {
1123
+ adultsMin: number;
1124
+ adultsMax: number;
1125
+ childrenMax: number;
1126
+ };
1127
+ };
1128
+ }[];
1129
+ }[];
1130
+ }[];
1131
+ total: number;
1132
+ limit: number;
1133
+ offset: number;
1134
+ }, readonly ["voyant", "storefront", "departures", "product-list", string, {
1135
+ optionId?: string | undefined;
1136
+ status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
1137
+ dateFrom?: string | undefined;
1138
+ dateTo?: string | undefined;
1139
+ limit?: unknown;
1140
+ offset?: unknown;
1141
+ }], never> | undefined;
1142
+ } & {
1143
+ queryKey: readonly ["voyant", "storefront", "departures", "product-list", string, {
1144
+ optionId?: string | undefined;
1145
+ status?: "cancelled" | "open" | "closed" | "sold_out" | undefined;
1146
+ dateFrom?: string | undefined;
1147
+ dateTo?: string | undefined;
1148
+ limit?: unknown;
1149
+ offset?: unknown;
1150
+ }] & {
1151
+ [dataTagSymbol]: {
1152
+ data: {
1153
+ id: string;
1154
+ productId: string;
1155
+ itineraryId: string;
1156
+ optionId: string | null;
1157
+ dateLocal: string | null;
1158
+ startAt: string | null;
1159
+ endAt: string | null;
1160
+ timezone: string;
1161
+ startTime: {
1162
+ id: string;
1163
+ label: string | null;
1164
+ startTimeLocal: string;
1165
+ durationMinutes: number | null;
1166
+ } | null;
1167
+ meetingPoint: string | null;
1168
+ capacity: number | null;
1169
+ remaining: number | null;
1170
+ departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
1171
+ nights: number | null;
1172
+ days: number | null;
1173
+ ratePlans: {
1174
+ id: string;
1175
+ active: boolean;
1176
+ name: string;
1177
+ pricingModel: string;
1178
+ basePrices: {
1179
+ amount: number;
1180
+ currencyCode: string;
1181
+ }[];
1182
+ roomPrices: {
1183
+ amount: number;
1184
+ currencyCode: string;
1185
+ roomType: {
1186
+ id: string;
1187
+ name: string;
1188
+ occupancy: {
1189
+ adultsMin: number;
1190
+ adultsMax: number;
1191
+ childrenMax: number;
1192
+ };
1193
+ };
1194
+ }[];
1195
+ }[];
1196
+ }[];
1197
+ total: number;
1198
+ limit: number;
1199
+ offset: number;
1200
+ };
1201
+ [dataTagErrorSymbol]: Error;
1202
+ };
1203
+ };
1204
+ export declare function getStorefrontDepartureItineraryQueryOptions(client: FetchWithValidationOptions, productId: string, departureId: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1205
+ data: {
1206
+ id: string;
1207
+ itineraryId: string;
1208
+ days: {
1209
+ id: string;
1210
+ title: string;
1211
+ description: string | null;
1212
+ thumbnail: {
1213
+ url: string;
1214
+ } | null;
1215
+ segments: {
1216
+ id: string;
1217
+ title: string;
1218
+ description: string | null;
1219
+ }[];
1220
+ }[];
1221
+ };
1222
+ }, Error, {
1223
+ data: {
1224
+ id: string;
1225
+ itineraryId: string;
1226
+ days: {
1227
+ id: string;
1228
+ title: string;
1229
+ description: string | null;
1230
+ thumbnail: {
1231
+ url: string;
1232
+ } | null;
1233
+ segments: {
1234
+ id: string;
1235
+ title: string;
1236
+ description: string | null;
1237
+ }[];
1238
+ }[];
1239
+ };
1240
+ }, readonly ["voyant", "storefront", "departures", "detail", string, "itinerary", string]>, "queryFn"> & {
1241
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1242
+ data: {
1243
+ id: string;
1244
+ itineraryId: string;
1245
+ days: {
1246
+ id: string;
1247
+ title: string;
1248
+ description: string | null;
1249
+ thumbnail: {
1250
+ url: string;
1251
+ } | null;
1252
+ segments: {
1253
+ id: string;
1254
+ title: string;
1255
+ description: string | null;
1256
+ }[];
1257
+ }[];
1258
+ };
1259
+ }, readonly ["voyant", "storefront", "departures", "detail", string, "itinerary", string], never> | undefined;
1260
+ } & {
1261
+ queryKey: readonly ["voyant", "storefront", "departures", "detail", string, "itinerary", string] & {
1262
+ [dataTagSymbol]: {
1263
+ data: {
1264
+ id: string;
1265
+ itineraryId: string;
1266
+ days: {
1267
+ id: string;
1268
+ title: string;
1269
+ description: string | null;
1270
+ thumbnail: {
1271
+ url: string;
1272
+ } | null;
1273
+ segments: {
1274
+ id: string;
1275
+ title: string;
1276
+ description: string | null;
1277
+ }[];
1278
+ }[];
1279
+ };
1280
+ };
1281
+ [dataTagErrorSymbol]: Error;
1282
+ };
1283
+ };
1284
+ export declare function getStorefrontProductExtensionsQueryOptions(client: FetchWithValidationOptions, productId: string, filters?: StorefrontExtensionsFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1285
+ extensions: {
1286
+ id: string;
1287
+ name: string;
1288
+ label: string;
1289
+ required: boolean;
1290
+ selectable: boolean;
1291
+ hasOptions: boolean;
1292
+ refProductId: string | null;
1293
+ thumb: string | null;
1294
+ pricePerPerson: number | null;
1295
+ currencyCode: string;
1296
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1297
+ defaultQuantity: number | null;
1298
+ minQuantity: number | null;
1299
+ maxQuantity: number | null;
1300
+ }[];
1301
+ items: {
1302
+ id: string;
1303
+ name: string;
1304
+ label: string;
1305
+ required: boolean;
1306
+ selectable: boolean;
1307
+ hasOptions: boolean;
1308
+ refProductId: string | null;
1309
+ thumb: string | null;
1310
+ pricePerPerson: number | null;
1311
+ currencyCode: string;
1312
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1313
+ defaultQuantity: number | null;
1314
+ minQuantity: number | null;
1315
+ maxQuantity: number | null;
1316
+ }[];
1317
+ details: Record<string, {
1318
+ description: string | null;
1319
+ media: {
1320
+ url: string;
1321
+ alt: string | null;
1322
+ }[];
1323
+ }>;
1324
+ currencyCode: string;
1325
+ }, Error, {
1326
+ extensions: {
1327
+ id: string;
1328
+ name: string;
1329
+ label: string;
1330
+ required: boolean;
1331
+ selectable: boolean;
1332
+ hasOptions: boolean;
1333
+ refProductId: string | null;
1334
+ thumb: string | null;
1335
+ pricePerPerson: number | null;
1336
+ currencyCode: string;
1337
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1338
+ defaultQuantity: number | null;
1339
+ minQuantity: number | null;
1340
+ maxQuantity: number | null;
1341
+ }[];
1342
+ items: {
1343
+ id: string;
1344
+ name: string;
1345
+ label: string;
1346
+ required: boolean;
1347
+ selectable: boolean;
1348
+ hasOptions: boolean;
1349
+ refProductId: string | null;
1350
+ thumb: string | null;
1351
+ pricePerPerson: number | null;
1352
+ currencyCode: string;
1353
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1354
+ defaultQuantity: number | null;
1355
+ minQuantity: number | null;
1356
+ maxQuantity: number | null;
1357
+ }[];
1358
+ details: Record<string, {
1359
+ description: string | null;
1360
+ media: {
1361
+ url: string;
1362
+ alt: string | null;
1363
+ }[];
1364
+ }>;
1365
+ currencyCode: string;
1366
+ }, readonly ["voyant", "storefront", "extensions", string, {
1367
+ optionId?: string | undefined;
1368
+ }]>, "queryFn"> & {
1369
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1370
+ extensions: {
1371
+ id: string;
1372
+ name: string;
1373
+ label: string;
1374
+ required: boolean;
1375
+ selectable: boolean;
1376
+ hasOptions: boolean;
1377
+ refProductId: string | null;
1378
+ thumb: string | null;
1379
+ pricePerPerson: number | null;
1380
+ currencyCode: string;
1381
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1382
+ defaultQuantity: number | null;
1383
+ minQuantity: number | null;
1384
+ maxQuantity: number | null;
1385
+ }[];
1386
+ items: {
1387
+ id: string;
1388
+ name: string;
1389
+ label: string;
1390
+ required: boolean;
1391
+ selectable: boolean;
1392
+ hasOptions: boolean;
1393
+ refProductId: string | null;
1394
+ thumb: string | null;
1395
+ pricePerPerson: number | null;
1396
+ currencyCode: string;
1397
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1398
+ defaultQuantity: number | null;
1399
+ minQuantity: number | null;
1400
+ maxQuantity: number | null;
1401
+ }[];
1402
+ details: Record<string, {
1403
+ description: string | null;
1404
+ media: {
1405
+ url: string;
1406
+ alt: string | null;
1407
+ }[];
1408
+ }>;
1409
+ currencyCode: string;
1410
+ }, readonly ["voyant", "storefront", "extensions", string, {
1411
+ optionId?: string | undefined;
1412
+ }], never> | undefined;
1413
+ } & {
1414
+ queryKey: readonly ["voyant", "storefront", "extensions", string, {
1415
+ optionId?: string | undefined;
1416
+ }] & {
1417
+ [dataTagSymbol]: {
1418
+ extensions: {
1419
+ id: string;
1420
+ name: string;
1421
+ label: string;
1422
+ required: boolean;
1423
+ selectable: boolean;
1424
+ hasOptions: boolean;
1425
+ refProductId: string | null;
1426
+ thumb: string | null;
1427
+ pricePerPerson: number | null;
1428
+ currencyCode: string;
1429
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1430
+ defaultQuantity: number | null;
1431
+ minQuantity: number | null;
1432
+ maxQuantity: number | null;
1433
+ }[];
1434
+ items: {
1435
+ id: string;
1436
+ name: string;
1437
+ label: string;
1438
+ required: boolean;
1439
+ selectable: boolean;
1440
+ hasOptions: boolean;
1441
+ refProductId: string | null;
1442
+ thumb: string | null;
1443
+ pricePerPerson: number | null;
1444
+ currencyCode: string;
1445
+ pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
1446
+ defaultQuantity: number | null;
1447
+ minQuantity: number | null;
1448
+ maxQuantity: number | null;
1449
+ }[];
1450
+ details: Record<string, {
1451
+ description: string | null;
1452
+ media: {
1453
+ url: string;
1454
+ alt: string | null;
1455
+ }[];
1456
+ }>;
1457
+ currencyCode: string;
1458
+ };
1459
+ [dataTagErrorSymbol]: Error;
1460
+ };
1461
+ };
1462
+ export declare function getStorefrontProductOffersQueryOptions(client: FetchWithValidationOptions, productId: string, filters?: StorefrontOfferFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1463
+ data: {
1464
+ id: string;
1465
+ name: string;
1466
+ slug: string | null;
1467
+ description: string | null;
1468
+ discountType: "percentage" | "fixed_amount";
1469
+ discountValue: string;
1470
+ currency: string | null;
1471
+ applicableProductIds: string[];
1472
+ applicableDepartureIds: string[];
1473
+ validFrom: string | null;
1474
+ validTo: string | null;
1475
+ minTravelers: number | null;
1476
+ imageMobileUrl: string | null;
1477
+ imageDesktopUrl: string | null;
1478
+ stackable: boolean;
1479
+ createdAt: string;
1480
+ updatedAt: string;
1481
+ }[];
1482
+ }, Error, {
1483
+ data: {
1484
+ id: string;
1485
+ name: string;
1486
+ slug: string | null;
1487
+ description: string | null;
1488
+ discountType: "percentage" | "fixed_amount";
1489
+ discountValue: string;
1490
+ currency: string | null;
1491
+ applicableProductIds: string[];
1492
+ applicableDepartureIds: string[];
1493
+ validFrom: string | null;
1494
+ validTo: string | null;
1495
+ minTravelers: number | null;
1496
+ imageMobileUrl: string | null;
1497
+ imageDesktopUrl: string | null;
1498
+ stackable: boolean;
1499
+ createdAt: string;
1500
+ updatedAt: string;
1501
+ }[];
1502
+ }, readonly ["voyant", "storefront", "offers", "product-list", string, {
1503
+ departureId?: string | undefined;
1504
+ locale?: string | undefined;
1505
+ }]>, "queryFn"> & {
1506
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1507
+ data: {
1508
+ id: string;
1509
+ name: string;
1510
+ slug: string | null;
1511
+ description: string | null;
1512
+ discountType: "percentage" | "fixed_amount";
1513
+ discountValue: string;
1514
+ currency: string | null;
1515
+ applicableProductIds: string[];
1516
+ applicableDepartureIds: string[];
1517
+ validFrom: string | null;
1518
+ validTo: string | null;
1519
+ minTravelers: number | null;
1520
+ imageMobileUrl: string | null;
1521
+ imageDesktopUrl: string | null;
1522
+ stackable: boolean;
1523
+ createdAt: string;
1524
+ updatedAt: string;
1525
+ }[];
1526
+ }, readonly ["voyant", "storefront", "offers", "product-list", string, {
1527
+ departureId?: string | undefined;
1528
+ locale?: string | undefined;
1529
+ }], never> | undefined;
1530
+ } & {
1531
+ queryKey: readonly ["voyant", "storefront", "offers", "product-list", string, {
1532
+ departureId?: string | undefined;
1533
+ locale?: string | undefined;
1534
+ }] & {
1535
+ [dataTagSymbol]: {
1536
+ data: {
1537
+ id: string;
1538
+ name: string;
1539
+ slug: string | null;
1540
+ description: string | null;
1541
+ discountType: "percentage" | "fixed_amount";
1542
+ discountValue: string;
1543
+ currency: string | null;
1544
+ applicableProductIds: string[];
1545
+ applicableDepartureIds: string[];
1546
+ validFrom: string | null;
1547
+ validTo: string | null;
1548
+ minTravelers: number | null;
1549
+ imageMobileUrl: string | null;
1550
+ imageDesktopUrl: string | null;
1551
+ stackable: boolean;
1552
+ createdAt: string;
1553
+ updatedAt: string;
1554
+ }[];
1555
+ };
1556
+ [dataTagErrorSymbol]: Error;
1557
+ };
1558
+ };
1559
+ export declare function getStorefrontOfferQueryOptions(client: FetchWithValidationOptions, slug: string, locale?: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1560
+ data: {
1561
+ id: string;
1562
+ name: string;
1563
+ slug: string | null;
1564
+ description: string | null;
1565
+ discountType: "percentage" | "fixed_amount";
1566
+ discountValue: string;
1567
+ currency: string | null;
1568
+ applicableProductIds: string[];
1569
+ applicableDepartureIds: string[];
1570
+ validFrom: string | null;
1571
+ validTo: string | null;
1572
+ minTravelers: number | null;
1573
+ imageMobileUrl: string | null;
1574
+ imageDesktopUrl: string | null;
1575
+ stackable: boolean;
1576
+ createdAt: string;
1577
+ updatedAt: string;
1578
+ };
1579
+ }, Error, {
1580
+ data: {
1581
+ id: string;
1582
+ name: string;
1583
+ slug: string | null;
1584
+ description: string | null;
1585
+ discountType: "percentage" | "fixed_amount";
1586
+ discountValue: string;
1587
+ currency: string | null;
1588
+ applicableProductIds: string[];
1589
+ applicableDepartureIds: string[];
1590
+ validFrom: string | null;
1591
+ validTo: string | null;
1592
+ minTravelers: number | null;
1593
+ imageMobileUrl: string | null;
1594
+ imageDesktopUrl: string | null;
1595
+ stackable: boolean;
1596
+ createdAt: string;
1597
+ updatedAt: string;
1598
+ };
1599
+ }, readonly ["voyant", "storefront", "offers", "detail", string, string | null]>, "queryFn"> & {
1600
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1601
+ data: {
1602
+ id: string;
1603
+ name: string;
1604
+ slug: string | null;
1605
+ description: string | null;
1606
+ discountType: "percentage" | "fixed_amount";
1607
+ discountValue: string;
1608
+ currency: string | null;
1609
+ applicableProductIds: string[];
1610
+ applicableDepartureIds: string[];
1611
+ validFrom: string | null;
1612
+ validTo: string | null;
1613
+ minTravelers: number | null;
1614
+ imageMobileUrl: string | null;
1615
+ imageDesktopUrl: string | null;
1616
+ stackable: boolean;
1617
+ createdAt: string;
1618
+ updatedAt: string;
1619
+ };
1620
+ }, readonly ["voyant", "storefront", "offers", "detail", string, string | null], never> | undefined;
1621
+ } & {
1622
+ queryKey: readonly ["voyant", "storefront", "offers", "detail", string, string | null] & {
1623
+ [dataTagSymbol]: {
1624
+ data: {
1625
+ id: string;
1626
+ name: string;
1627
+ slug: string | null;
1628
+ description: string | null;
1629
+ discountType: "percentage" | "fixed_amount";
1630
+ discountValue: string;
1631
+ currency: string | null;
1632
+ applicableProductIds: string[];
1633
+ applicableDepartureIds: string[];
1634
+ validFrom: string | null;
1635
+ validTo: string | null;
1636
+ minTravelers: number | null;
1637
+ imageMobileUrl: string | null;
1638
+ imageDesktopUrl: string | null;
1639
+ stackable: boolean;
1640
+ createdAt: string;
1641
+ updatedAt: string;
1642
+ };
1643
+ };
1644
+ [dataTagErrorSymbol]: Error;
1645
+ };
1646
+ };
1647
+ export type { StorefrontDepartureFilters, StorefrontExtensionsFilters, StorefrontOfferFilters, } from "./query-keys.js";
1648
+ //# sourceMappingURL=query-options.d.ts.map