@voyantjs/flights-react 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/client.d.ts +16 -0
  2. package/dist/client.d.ts.map +1 -0
  3. package/dist/client.js +75 -0
  4. package/dist/hooks/index.d.ts +13 -0
  5. package/dist/hooks/index.d.ts.map +1 -0
  6. package/dist/hooks/index.js +12 -0
  7. package/dist/hooks/use-aircraft.d.ts +17 -0
  8. package/dist/hooks/use-aircraft.d.ts.map +1 -0
  9. package/dist/hooks/use-aircraft.js +18 -0
  10. package/dist/hooks/use-airlines.d.ts +18 -0
  11. package/dist/hooks/use-airlines.d.ts.map +1 -0
  12. package/dist/hooks/use-airlines.js +18 -0
  13. package/dist/hooks/use-airport-search.d.ts +28 -0
  14. package/dist/hooks/use-airport-search.d.ts.map +1 -0
  15. package/dist/hooks/use-airport-search.js +23 -0
  16. package/dist/hooks/use-airports.d.ts +21 -0
  17. package/dist/hooks/use-airports.d.ts.map +1 -0
  18. package/dist/hooks/use-airports.js +17 -0
  19. package/dist/hooks/use-flight-ancillaries.d.ts +63 -0
  20. package/dist/hooks/use-flight-ancillaries.d.ts.map +1 -0
  21. package/dist/hooks/use-flight-ancillaries.js +24 -0
  22. package/dist/hooks/use-flight-book.d.ts +139 -0
  23. package/dist/hooks/use-flight-book.d.ts.map +1 -0
  24. package/dist/hooks/use-flight-book.js +24 -0
  25. package/dist/hooks/use-flight-offer.d.ts +106 -0
  26. package/dist/hooks/use-flight-offer.d.ts.map +1 -0
  27. package/dist/hooks/use-flight-offer.js +20 -0
  28. package/dist/hooks/use-flight-order.d.ts +286 -0
  29. package/dist/hooks/use-flight-order.d.ts.map +1 -0
  30. package/dist/hooks/use-flight-order.js +38 -0
  31. package/dist/hooks/use-flight-orders.d.ts +147 -0
  32. package/dist/hooks/use-flight-orders.d.ts.map +1 -0
  33. package/dist/hooks/use-flight-orders.js +31 -0
  34. package/dist/hooks/use-flight-search.d.ts +110 -0
  35. package/dist/hooks/use-flight-search.d.ts.map +1 -0
  36. package/dist/hooks/use-flight-search.js +18 -0
  37. package/dist/hooks/use-flight-seat-map.d.ts +49 -0
  38. package/dist/hooks/use-flight-seat-map.d.ts.map +1 -0
  39. package/dist/hooks/use-flight-seat-map.js +23 -0
  40. package/dist/hooks/use-saved-payment-methods.d.ts +23 -0
  41. package/dist/hooks/use-saved-payment-methods.d.ts.map +1 -0
  42. package/dist/hooks/use-saved-payment-methods.js +20 -0
  43. package/dist/index.d.ts +7 -0
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +6 -0
  46. package/dist/provider.d.ts +2 -0
  47. package/dist/provider.d.ts.map +1 -0
  48. package/dist/provider.js +1 -0
  49. package/dist/query-keys.d.ts +42 -0
  50. package/dist/query-keys.d.ts.map +1 -0
  51. package/dist/query-keys.js +22 -0
  52. package/dist/query-options.d.ts +827 -0
  53. package/dist/query-options.d.ts.map +1 -0
  54. package/dist/query-options.js +58 -0
  55. package/dist/schemas.d.ts +1658 -0
  56. package/dist/schemas.d.ts.map +1 -0
  57. package/dist/schemas.js +295 -0
  58. package/package.json +85 -0
@@ -0,0 +1,827 @@
1
+ import type { FlightOffer, FlightSearchRequest } from "@voyantjs/flights/contract/types";
2
+ import { type FetchWithValidationOptions } from "./client.js";
3
+ import { type AirportSearchFilters } from "./query-keys.js";
4
+ export declare function getFlightSearchQueryOptions(client: FetchWithValidationOptions, request: FlightSearchRequest): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
5
+ offers: {
6
+ offerId: string;
7
+ source: string;
8
+ itineraries: {
9
+ segments: {
10
+ segmentId: string;
11
+ carrierCode: string;
12
+ flightNumber: string;
13
+ departure: {
14
+ iataCode: string;
15
+ at: string;
16
+ terminal?: string | undefined;
17
+ };
18
+ arrival: {
19
+ iataCode: string;
20
+ at: string;
21
+ terminal?: string | undefined;
22
+ };
23
+ cabin: "economy" | "premium_economy" | "business" | "first";
24
+ operatingCarrierCode?: string | undefined;
25
+ operatingFlightNumber?: string | undefined;
26
+ duration?: string | undefined;
27
+ aircraft?: string | undefined;
28
+ fareClass?: string | undefined;
29
+ fareBasis?: string | undefined;
30
+ status?: string | undefined;
31
+ providerData?: Record<string, unknown> | undefined;
32
+ }[];
33
+ duration?: string | undefined;
34
+ }[];
35
+ fareBreakdowns: {
36
+ passengerType: "adult" | "child" | "infant" | "senior" | "youth";
37
+ passengerCount: number;
38
+ baseFare: {
39
+ amount: string;
40
+ currency: string;
41
+ };
42
+ taxes: {
43
+ amount: string;
44
+ currency: string;
45
+ };
46
+ total: {
47
+ amount: string;
48
+ currency: string;
49
+ };
50
+ fees?: {
51
+ amount: string;
52
+ currency: string;
53
+ } | undefined;
54
+ fareFamily?: string | undefined;
55
+ }[];
56
+ totalPrice: {
57
+ amount: string;
58
+ currency: string;
59
+ };
60
+ validatingCarrier?: string | undefined;
61
+ expiresAt?: string | undefined;
62
+ lastTicketingDate?: string | undefined;
63
+ instantTicketing?: boolean | undefined;
64
+ fareBundles?: {
65
+ id: string;
66
+ label: string;
67
+ tier: "basic" | "standard" | "plus" | "premium";
68
+ priceDelta: {
69
+ amount: string;
70
+ currency: string;
71
+ };
72
+ inclusions: {
73
+ cabinBag?: {
74
+ included: boolean;
75
+ weightKg?: number | undefined;
76
+ } | undefined;
77
+ checkedBag?: {
78
+ included: boolean;
79
+ pieces?: number | undefined;
80
+ weightKg?: number | undefined;
81
+ } | undefined;
82
+ seatSelection?: "standard" | "none" | "free" | undefined;
83
+ priorityBoarding?: boolean | undefined;
84
+ loungeAccess?: boolean | undefined;
85
+ refundable?: boolean | undefined;
86
+ changeable?: boolean | undefined;
87
+ notes?: string[] | undefined;
88
+ };
89
+ recommended?: boolean | undefined;
90
+ providerData?: Record<string, unknown> | undefined;
91
+ }[] | undefined;
92
+ providerData?: Record<string, unknown> | undefined;
93
+ }[];
94
+ pagination?: {
95
+ total: number;
96
+ hasMore: boolean;
97
+ cursor?: string | undefined;
98
+ } | undefined;
99
+ providerData?: Record<string, unknown> | undefined;
100
+ }, Error, {
101
+ offers: {
102
+ offerId: string;
103
+ source: string;
104
+ itineraries: {
105
+ segments: {
106
+ segmentId: string;
107
+ carrierCode: string;
108
+ flightNumber: string;
109
+ departure: {
110
+ iataCode: string;
111
+ at: string;
112
+ terminal?: string | undefined;
113
+ };
114
+ arrival: {
115
+ iataCode: string;
116
+ at: string;
117
+ terminal?: string | undefined;
118
+ };
119
+ cabin: "economy" | "premium_economy" | "business" | "first";
120
+ operatingCarrierCode?: string | undefined;
121
+ operatingFlightNumber?: string | undefined;
122
+ duration?: string | undefined;
123
+ aircraft?: string | undefined;
124
+ fareClass?: string | undefined;
125
+ fareBasis?: string | undefined;
126
+ status?: string | undefined;
127
+ providerData?: Record<string, unknown> | undefined;
128
+ }[];
129
+ duration?: string | undefined;
130
+ }[];
131
+ fareBreakdowns: {
132
+ passengerType: "adult" | "child" | "infant" | "senior" | "youth";
133
+ passengerCount: number;
134
+ baseFare: {
135
+ amount: string;
136
+ currency: string;
137
+ };
138
+ taxes: {
139
+ amount: string;
140
+ currency: string;
141
+ };
142
+ total: {
143
+ amount: string;
144
+ currency: string;
145
+ };
146
+ fees?: {
147
+ amount: string;
148
+ currency: string;
149
+ } | undefined;
150
+ fareFamily?: string | undefined;
151
+ }[];
152
+ totalPrice: {
153
+ amount: string;
154
+ currency: string;
155
+ };
156
+ validatingCarrier?: string | undefined;
157
+ expiresAt?: string | undefined;
158
+ lastTicketingDate?: string | undefined;
159
+ instantTicketing?: boolean | undefined;
160
+ fareBundles?: {
161
+ id: string;
162
+ label: string;
163
+ tier: "basic" | "standard" | "plus" | "premium";
164
+ priceDelta: {
165
+ amount: string;
166
+ currency: string;
167
+ };
168
+ inclusions: {
169
+ cabinBag?: {
170
+ included: boolean;
171
+ weightKg?: number | undefined;
172
+ } | undefined;
173
+ checkedBag?: {
174
+ included: boolean;
175
+ pieces?: number | undefined;
176
+ weightKg?: number | undefined;
177
+ } | undefined;
178
+ seatSelection?: "standard" | "none" | "free" | undefined;
179
+ priorityBoarding?: boolean | undefined;
180
+ loungeAccess?: boolean | undefined;
181
+ refundable?: boolean | undefined;
182
+ changeable?: boolean | undefined;
183
+ notes?: string[] | undefined;
184
+ };
185
+ recommended?: boolean | undefined;
186
+ providerData?: Record<string, unknown> | undefined;
187
+ }[] | undefined;
188
+ providerData?: Record<string, unknown> | undefined;
189
+ }[];
190
+ pagination?: {
191
+ total: number;
192
+ hasMore: boolean;
193
+ cursor?: string | undefined;
194
+ } | undefined;
195
+ providerData?: Record<string, unknown> | undefined;
196
+ }, readonly ["voyant", "flights", "search", FlightSearchRequest]>, "queryFn"> & {
197
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
198
+ offers: {
199
+ offerId: string;
200
+ source: string;
201
+ itineraries: {
202
+ segments: {
203
+ segmentId: string;
204
+ carrierCode: string;
205
+ flightNumber: string;
206
+ departure: {
207
+ iataCode: string;
208
+ at: string;
209
+ terminal?: string | undefined;
210
+ };
211
+ arrival: {
212
+ iataCode: string;
213
+ at: string;
214
+ terminal?: string | undefined;
215
+ };
216
+ cabin: "economy" | "premium_economy" | "business" | "first";
217
+ operatingCarrierCode?: string | undefined;
218
+ operatingFlightNumber?: string | undefined;
219
+ duration?: string | undefined;
220
+ aircraft?: string | undefined;
221
+ fareClass?: string | undefined;
222
+ fareBasis?: string | undefined;
223
+ status?: string | undefined;
224
+ providerData?: Record<string, unknown> | undefined;
225
+ }[];
226
+ duration?: string | undefined;
227
+ }[];
228
+ fareBreakdowns: {
229
+ passengerType: "adult" | "child" | "infant" | "senior" | "youth";
230
+ passengerCount: number;
231
+ baseFare: {
232
+ amount: string;
233
+ currency: string;
234
+ };
235
+ taxes: {
236
+ amount: string;
237
+ currency: string;
238
+ };
239
+ total: {
240
+ amount: string;
241
+ currency: string;
242
+ };
243
+ fees?: {
244
+ amount: string;
245
+ currency: string;
246
+ } | undefined;
247
+ fareFamily?: string | undefined;
248
+ }[];
249
+ totalPrice: {
250
+ amount: string;
251
+ currency: string;
252
+ };
253
+ validatingCarrier?: string | undefined;
254
+ expiresAt?: string | undefined;
255
+ lastTicketingDate?: string | undefined;
256
+ instantTicketing?: boolean | undefined;
257
+ fareBundles?: {
258
+ id: string;
259
+ label: string;
260
+ tier: "basic" | "standard" | "plus" | "premium";
261
+ priceDelta: {
262
+ amount: string;
263
+ currency: string;
264
+ };
265
+ inclusions: {
266
+ cabinBag?: {
267
+ included: boolean;
268
+ weightKg?: number | undefined;
269
+ } | undefined;
270
+ checkedBag?: {
271
+ included: boolean;
272
+ pieces?: number | undefined;
273
+ weightKg?: number | undefined;
274
+ } | undefined;
275
+ seatSelection?: "standard" | "none" | "free" | undefined;
276
+ priorityBoarding?: boolean | undefined;
277
+ loungeAccess?: boolean | undefined;
278
+ refundable?: boolean | undefined;
279
+ changeable?: boolean | undefined;
280
+ notes?: string[] | undefined;
281
+ };
282
+ recommended?: boolean | undefined;
283
+ providerData?: Record<string, unknown> | undefined;
284
+ }[] | undefined;
285
+ providerData?: Record<string, unknown> | undefined;
286
+ }[];
287
+ pagination?: {
288
+ total: number;
289
+ hasMore: boolean;
290
+ cursor?: string | undefined;
291
+ } | undefined;
292
+ providerData?: Record<string, unknown> | undefined;
293
+ }, readonly ["voyant", "flights", "search", FlightSearchRequest], never> | undefined;
294
+ } & {
295
+ queryKey: readonly ["voyant", "flights", "search", FlightSearchRequest] & {
296
+ [dataTagSymbol]: {
297
+ offers: {
298
+ offerId: string;
299
+ source: string;
300
+ itineraries: {
301
+ segments: {
302
+ segmentId: string;
303
+ carrierCode: string;
304
+ flightNumber: string;
305
+ departure: {
306
+ iataCode: string;
307
+ at: string;
308
+ terminal?: string | undefined;
309
+ };
310
+ arrival: {
311
+ iataCode: string;
312
+ at: string;
313
+ terminal?: string | undefined;
314
+ };
315
+ cabin: "economy" | "premium_economy" | "business" | "first";
316
+ operatingCarrierCode?: string | undefined;
317
+ operatingFlightNumber?: string | undefined;
318
+ duration?: string | undefined;
319
+ aircraft?: string | undefined;
320
+ fareClass?: string | undefined;
321
+ fareBasis?: string | undefined;
322
+ status?: string | undefined;
323
+ providerData?: Record<string, unknown> | undefined;
324
+ }[];
325
+ duration?: string | undefined;
326
+ }[];
327
+ fareBreakdowns: {
328
+ passengerType: "adult" | "child" | "infant" | "senior" | "youth";
329
+ passengerCount: number;
330
+ baseFare: {
331
+ amount: string;
332
+ currency: string;
333
+ };
334
+ taxes: {
335
+ amount: string;
336
+ currency: string;
337
+ };
338
+ total: {
339
+ amount: string;
340
+ currency: string;
341
+ };
342
+ fees?: {
343
+ amount: string;
344
+ currency: string;
345
+ } | undefined;
346
+ fareFamily?: string | undefined;
347
+ }[];
348
+ totalPrice: {
349
+ amount: string;
350
+ currency: string;
351
+ };
352
+ validatingCarrier?: string | undefined;
353
+ expiresAt?: string | undefined;
354
+ lastTicketingDate?: string | undefined;
355
+ instantTicketing?: boolean | undefined;
356
+ fareBundles?: {
357
+ id: string;
358
+ label: string;
359
+ tier: "basic" | "standard" | "plus" | "premium";
360
+ priceDelta: {
361
+ amount: string;
362
+ currency: string;
363
+ };
364
+ inclusions: {
365
+ cabinBag?: {
366
+ included: boolean;
367
+ weightKg?: number | undefined;
368
+ } | undefined;
369
+ checkedBag?: {
370
+ included: boolean;
371
+ pieces?: number | undefined;
372
+ weightKg?: number | undefined;
373
+ } | undefined;
374
+ seatSelection?: "standard" | "none" | "free" | undefined;
375
+ priorityBoarding?: boolean | undefined;
376
+ loungeAccess?: boolean | undefined;
377
+ refundable?: boolean | undefined;
378
+ changeable?: boolean | undefined;
379
+ notes?: string[] | undefined;
380
+ };
381
+ recommended?: boolean | undefined;
382
+ providerData?: Record<string, unknown> | undefined;
383
+ }[] | undefined;
384
+ providerData?: Record<string, unknown> | undefined;
385
+ }[];
386
+ pagination?: {
387
+ total: number;
388
+ hasMore: boolean;
389
+ cursor?: string | undefined;
390
+ } | undefined;
391
+ providerData?: Record<string, unknown> | undefined;
392
+ };
393
+ [dataTagErrorSymbol]: Error;
394
+ };
395
+ };
396
+ export declare function getFlightAncillariesQueryOptions(client: FetchWithValidationOptions, input: {
397
+ offerId: string;
398
+ offer?: FlightOffer;
399
+ }): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
400
+ catalog: {
401
+ baggage: {
402
+ id: string;
403
+ label: string;
404
+ category: "checked" | "cabin" | "personal_item" | "sports" | "oversized";
405
+ price: {
406
+ amount: string;
407
+ currency: string;
408
+ };
409
+ weightKg?: number | undefined;
410
+ dimensions?: {
411
+ lengthCm?: number | undefined;
412
+ widthCm?: number | undefined;
413
+ heightCm?: number | undefined;
414
+ } | undefined;
415
+ recommended?: boolean | undefined;
416
+ providerData?: Record<string, unknown> | undefined;
417
+ }[];
418
+ assistance: {
419
+ id: string;
420
+ label: string;
421
+ category: "wheelchair" | "visual" | "hearing" | "cognitive" | "medical" | "other";
422
+ price?: {
423
+ amount: string;
424
+ currency: string;
425
+ } | undefined;
426
+ notes?: string | undefined;
427
+ }[];
428
+ extras: {
429
+ id: string;
430
+ label: string;
431
+ category: string;
432
+ price: {
433
+ amount: string;
434
+ currency: string;
435
+ };
436
+ pricingScope?: "per_passenger" | "per_booking" | undefined;
437
+ }[];
438
+ };
439
+ validUntil?: string | undefined;
440
+ }, Error, {
441
+ catalog: {
442
+ baggage: {
443
+ id: string;
444
+ label: string;
445
+ category: "checked" | "cabin" | "personal_item" | "sports" | "oversized";
446
+ price: {
447
+ amount: string;
448
+ currency: string;
449
+ };
450
+ weightKg?: number | undefined;
451
+ dimensions?: {
452
+ lengthCm?: number | undefined;
453
+ widthCm?: number | undefined;
454
+ heightCm?: number | undefined;
455
+ } | undefined;
456
+ recommended?: boolean | undefined;
457
+ providerData?: Record<string, unknown> | undefined;
458
+ }[];
459
+ assistance: {
460
+ id: string;
461
+ label: string;
462
+ category: "wheelchair" | "visual" | "hearing" | "cognitive" | "medical" | "other";
463
+ price?: {
464
+ amount: string;
465
+ currency: string;
466
+ } | undefined;
467
+ notes?: string | undefined;
468
+ }[];
469
+ extras: {
470
+ id: string;
471
+ label: string;
472
+ category: string;
473
+ price: {
474
+ amount: string;
475
+ currency: string;
476
+ };
477
+ pricingScope?: "per_passenger" | "per_booking" | undefined;
478
+ }[];
479
+ };
480
+ validUntil?: string | undefined;
481
+ }, readonly ["voyant", "flights", "ancillaries", string]>, "queryFn"> & {
482
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
483
+ catalog: {
484
+ baggage: {
485
+ id: string;
486
+ label: string;
487
+ category: "checked" | "cabin" | "personal_item" | "sports" | "oversized";
488
+ price: {
489
+ amount: string;
490
+ currency: string;
491
+ };
492
+ weightKg?: number | undefined;
493
+ dimensions?: {
494
+ lengthCm?: number | undefined;
495
+ widthCm?: number | undefined;
496
+ heightCm?: number | undefined;
497
+ } | undefined;
498
+ recommended?: boolean | undefined;
499
+ providerData?: Record<string, unknown> | undefined;
500
+ }[];
501
+ assistance: {
502
+ id: string;
503
+ label: string;
504
+ category: "wheelchair" | "visual" | "hearing" | "cognitive" | "medical" | "other";
505
+ price?: {
506
+ amount: string;
507
+ currency: string;
508
+ } | undefined;
509
+ notes?: string | undefined;
510
+ }[];
511
+ extras: {
512
+ id: string;
513
+ label: string;
514
+ category: string;
515
+ price: {
516
+ amount: string;
517
+ currency: string;
518
+ };
519
+ pricingScope?: "per_passenger" | "per_booking" | undefined;
520
+ }[];
521
+ };
522
+ validUntil?: string | undefined;
523
+ }, readonly ["voyant", "flights", "ancillaries", string], never> | undefined;
524
+ } & {
525
+ queryKey: readonly ["voyant", "flights", "ancillaries", string] & {
526
+ [dataTagSymbol]: {
527
+ catalog: {
528
+ baggage: {
529
+ id: string;
530
+ label: string;
531
+ category: "checked" | "cabin" | "personal_item" | "sports" | "oversized";
532
+ price: {
533
+ amount: string;
534
+ currency: string;
535
+ };
536
+ weightKg?: number | undefined;
537
+ dimensions?: {
538
+ lengthCm?: number | undefined;
539
+ widthCm?: number | undefined;
540
+ heightCm?: number | undefined;
541
+ } | undefined;
542
+ recommended?: boolean | undefined;
543
+ providerData?: Record<string, unknown> | undefined;
544
+ }[];
545
+ assistance: {
546
+ id: string;
547
+ label: string;
548
+ category: "wheelchair" | "visual" | "hearing" | "cognitive" | "medical" | "other";
549
+ price?: {
550
+ amount: string;
551
+ currency: string;
552
+ } | undefined;
553
+ notes?: string | undefined;
554
+ }[];
555
+ extras: {
556
+ id: string;
557
+ label: string;
558
+ category: string;
559
+ price: {
560
+ amount: string;
561
+ currency: string;
562
+ };
563
+ pricingScope?: "per_passenger" | "per_booking" | undefined;
564
+ }[];
565
+ };
566
+ validUntil?: string | undefined;
567
+ };
568
+ [dataTagErrorSymbol]: Error;
569
+ };
570
+ };
571
+ export declare function getFlightSeatMapQueryOptions(client: FetchWithValidationOptions, input: {
572
+ offerId: string;
573
+ segmentId: string;
574
+ offer?: FlightOffer;
575
+ }): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
576
+ seatMap: {
577
+ segmentId: string;
578
+ cabin: "economy" | "premium_economy" | "business" | "first";
579
+ columnLayout: (string | null)[];
580
+ rows: {
581
+ row: number;
582
+ seats: {
583
+ seatNumber: string;
584
+ row: number;
585
+ column: string;
586
+ status: "available" | "blocked" | "unavailable" | "selected";
587
+ category: "standard" | "premium" | "preferred" | "extra_legroom" | "exit_row" | "bulkhead";
588
+ price?: {
589
+ amount: string;
590
+ currency: string;
591
+ } | undefined;
592
+ notes?: string | undefined;
593
+ window?: boolean | undefined;
594
+ aisle?: boolean | undefined;
595
+ providerData?: Record<string, unknown> | undefined;
596
+ }[];
597
+ }[];
598
+ aircraft?: string | undefined;
599
+ providerData?: Record<string, unknown> | undefined;
600
+ };
601
+ validUntil?: string | undefined;
602
+ }, Error, {
603
+ seatMap: {
604
+ segmentId: string;
605
+ cabin: "economy" | "premium_economy" | "business" | "first";
606
+ columnLayout: (string | null)[];
607
+ rows: {
608
+ row: number;
609
+ seats: {
610
+ seatNumber: string;
611
+ row: number;
612
+ column: string;
613
+ status: "available" | "blocked" | "unavailable" | "selected";
614
+ category: "standard" | "premium" | "preferred" | "extra_legroom" | "exit_row" | "bulkhead";
615
+ price?: {
616
+ amount: string;
617
+ currency: string;
618
+ } | undefined;
619
+ notes?: string | undefined;
620
+ window?: boolean | undefined;
621
+ aisle?: boolean | undefined;
622
+ providerData?: Record<string, unknown> | undefined;
623
+ }[];
624
+ }[];
625
+ aircraft?: string | undefined;
626
+ providerData?: Record<string, unknown> | undefined;
627
+ };
628
+ validUntil?: string | undefined;
629
+ }, readonly ["voyant", "flights", "seatmap", string, string]>, "queryFn"> & {
630
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
631
+ seatMap: {
632
+ segmentId: string;
633
+ cabin: "economy" | "premium_economy" | "business" | "first";
634
+ columnLayout: (string | null)[];
635
+ rows: {
636
+ row: number;
637
+ seats: {
638
+ seatNumber: string;
639
+ row: number;
640
+ column: string;
641
+ status: "available" | "blocked" | "unavailable" | "selected";
642
+ category: "standard" | "premium" | "preferred" | "extra_legroom" | "exit_row" | "bulkhead";
643
+ price?: {
644
+ amount: string;
645
+ currency: string;
646
+ } | undefined;
647
+ notes?: string | undefined;
648
+ window?: boolean | undefined;
649
+ aisle?: boolean | undefined;
650
+ providerData?: Record<string, unknown> | undefined;
651
+ }[];
652
+ }[];
653
+ aircraft?: string | undefined;
654
+ providerData?: Record<string, unknown> | undefined;
655
+ };
656
+ validUntil?: string | undefined;
657
+ }, readonly ["voyant", "flights", "seatmap", string, string], never> | undefined;
658
+ } & {
659
+ queryKey: readonly ["voyant", "flights", "seatmap", string, string] & {
660
+ [dataTagSymbol]: {
661
+ seatMap: {
662
+ segmentId: string;
663
+ cabin: "economy" | "premium_economy" | "business" | "first";
664
+ columnLayout: (string | null)[];
665
+ rows: {
666
+ row: number;
667
+ seats: {
668
+ seatNumber: string;
669
+ row: number;
670
+ column: string;
671
+ status: "available" | "blocked" | "unavailable" | "selected";
672
+ category: "standard" | "premium" | "preferred" | "extra_legroom" | "exit_row" | "bulkhead";
673
+ price?: {
674
+ amount: string;
675
+ currency: string;
676
+ } | undefined;
677
+ notes?: string | undefined;
678
+ window?: boolean | undefined;
679
+ aisle?: boolean | undefined;
680
+ providerData?: Record<string, unknown> | undefined;
681
+ }[];
682
+ }[];
683
+ aircraft?: string | undefined;
684
+ providerData?: Record<string, unknown> | undefined;
685
+ };
686
+ validUntil?: string | undefined;
687
+ };
688
+ [dataTagErrorSymbol]: Error;
689
+ };
690
+ };
691
+ export declare function getAirlinesQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
692
+ data: {
693
+ iataCode: string;
694
+ name: string;
695
+ icaoCode?: string | null | undefined;
696
+ country?: string | null | undefined;
697
+ logoUrl?: string | null | undefined;
698
+ alliance?: string | null | undefined;
699
+ }[];
700
+ }, Error, {
701
+ data: {
702
+ iataCode: string;
703
+ name: string;
704
+ icaoCode?: string | null | undefined;
705
+ country?: string | null | undefined;
706
+ logoUrl?: string | null | undefined;
707
+ alliance?: string | null | undefined;
708
+ }[];
709
+ }, readonly ["voyant", "flights", "reference", "airlines"]>, "queryFn"> & {
710
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
711
+ data: {
712
+ iataCode: string;
713
+ name: string;
714
+ icaoCode?: string | null | undefined;
715
+ country?: string | null | undefined;
716
+ logoUrl?: string | null | undefined;
717
+ alliance?: string | null | undefined;
718
+ }[];
719
+ }, readonly ["voyant", "flights", "reference", "airlines"], never> | undefined;
720
+ } & {
721
+ queryKey: readonly ["voyant", "flights", "reference", "airlines"] & {
722
+ [dataTagSymbol]: {
723
+ data: {
724
+ iataCode: string;
725
+ name: string;
726
+ icaoCode?: string | null | undefined;
727
+ country?: string | null | undefined;
728
+ logoUrl?: string | null | undefined;
729
+ alliance?: string | null | undefined;
730
+ }[];
731
+ };
732
+ [dataTagErrorSymbol]: Error;
733
+ };
734
+ };
735
+ export declare function getAirportsQueryOptions(client: FetchWithValidationOptions, filters?: AirportSearchFilters): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
736
+ data: {
737
+ iataCode: string;
738
+ name: string;
739
+ city: string;
740
+ country: string;
741
+ icaoCode?: string | null | undefined;
742
+ timezone?: string | null | undefined;
743
+ latitude?: number | null | undefined;
744
+ longitude?: number | null | undefined;
745
+ }[];
746
+ }, Error, {
747
+ data: {
748
+ iataCode: string;
749
+ name: string;
750
+ city: string;
751
+ country: string;
752
+ icaoCode?: string | null | undefined;
753
+ timezone?: string | null | undefined;
754
+ latitude?: number | null | undefined;
755
+ longitude?: number | null | undefined;
756
+ }[];
757
+ }, readonly ["voyant", "flights", "reference", "airports", AirportSearchFilters]>, "queryFn"> & {
758
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
759
+ data: {
760
+ iataCode: string;
761
+ name: string;
762
+ city: string;
763
+ country: string;
764
+ icaoCode?: string | null | undefined;
765
+ timezone?: string | null | undefined;
766
+ latitude?: number | null | undefined;
767
+ longitude?: number | null | undefined;
768
+ }[];
769
+ }, readonly ["voyant", "flights", "reference", "airports", AirportSearchFilters], never> | undefined;
770
+ } & {
771
+ queryKey: readonly ["voyant", "flights", "reference", "airports", AirportSearchFilters] & {
772
+ [dataTagSymbol]: {
773
+ data: {
774
+ iataCode: string;
775
+ name: string;
776
+ city: string;
777
+ country: string;
778
+ icaoCode?: string | null | undefined;
779
+ timezone?: string | null | undefined;
780
+ latitude?: number | null | undefined;
781
+ longitude?: number | null | undefined;
782
+ }[];
783
+ };
784
+ [dataTagErrorSymbol]: Error;
785
+ };
786
+ };
787
+ export declare function getAircraftQueryOptions(client: FetchWithValidationOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
788
+ data: {
789
+ iataCode: string;
790
+ name: string;
791
+ icaoCode?: string | null | undefined;
792
+ manufacturer?: string | null | undefined;
793
+ typicalSeats?: number | null | undefined;
794
+ }[];
795
+ }, Error, {
796
+ data: {
797
+ iataCode: string;
798
+ name: string;
799
+ icaoCode?: string | null | undefined;
800
+ manufacturer?: string | null | undefined;
801
+ typicalSeats?: number | null | undefined;
802
+ }[];
803
+ }, readonly ["voyant", "flights", "reference", "aircraft"]>, "queryFn"> & {
804
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
805
+ data: {
806
+ iataCode: string;
807
+ name: string;
808
+ icaoCode?: string | null | undefined;
809
+ manufacturer?: string | null | undefined;
810
+ typicalSeats?: number | null | undefined;
811
+ }[];
812
+ }, readonly ["voyant", "flights", "reference", "aircraft"], never> | undefined;
813
+ } & {
814
+ queryKey: readonly ["voyant", "flights", "reference", "aircraft"] & {
815
+ [dataTagSymbol]: {
816
+ data: {
817
+ iataCode: string;
818
+ name: string;
819
+ icaoCode?: string | null | undefined;
820
+ manufacturer?: string | null | undefined;
821
+ typicalSeats?: number | null | undefined;
822
+ }[];
823
+ };
824
+ [dataTagErrorSymbol]: Error;
825
+ };
826
+ };
827
+ //# sourceMappingURL=query-options.d.ts.map