@voyant-travel/flights-react 0.119.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.
- package/LICENSE +201 -0
- package/README.md +74 -0
- package/dist/admin/index.d.ts +134 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +122 -0
- package/dist/admin/pages/flight-book-page.d.ts +12 -0
- package/dist/admin/pages/flight-book-page.d.ts.map +1 -0
- package/dist/admin/pages/flight-book-page.js +40 -0
- package/dist/admin/pages/flights-index-page.d.ts +14 -0
- package/dist/admin/pages/flights-index-page.d.ts.map +1 -0
- package/dist/admin/pages/flights-index-page.js +28 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +75 -0
- package/dist/components/airline-logo.d.ts +19 -0
- package/dist/components/airline-logo.d.ts.map +1 -0
- package/dist/components/airline-logo.js +18 -0
- package/dist/components/airport-combobox.d.ts +20 -0
- package/dist/components/airport-combobox.d.ts.map +1 -0
- package/dist/components/airport-combobox.js +31 -0
- package/dist/components/billing-pickers.d.ts +19 -0
- package/dist/components/billing-pickers.d.ts.map +1 -0
- package/dist/components/billing-pickers.js +148 -0
- package/dist/components/flight-baggage-step.d.ts +32 -0
- package/dist/components/flight-baggage-step.d.ts.map +1 -0
- package/dist/components/flight-baggage-step.js +119 -0
- package/dist/components/flight-billing-step.d.ts +69 -0
- package/dist/components/flight-billing-step.d.ts.map +1 -0
- package/dist/components/flight-billing-step.js +117 -0
- package/dist/components/flight-booking-journey.d.ts +31 -0
- package/dist/components/flight-booking-journey.d.ts.map +1 -0
- package/dist/components/flight-booking-journey.js +103 -0
- package/dist/components/flight-booking-ledger.d.ts +53 -0
- package/dist/components/flight-booking-ledger.d.ts.map +1 -0
- package/dist/components/flight-booking-ledger.js +104 -0
- package/dist/components/flight-booking-page.d.ts +25 -0
- package/dist/components/flight-booking-page.d.ts.map +1 -0
- package/dist/components/flight-booking-page.js +175 -0
- package/dist/components/flight-booking-shell-helpers.d.ts +29 -0
- package/dist/components/flight-booking-shell-helpers.d.ts.map +1 -0
- package/dist/components/flight-booking-shell-helpers.js +204 -0
- package/dist/components/flight-booking-shell-panels.d.ts +24 -0
- package/dist/components/flight-booking-shell-panels.d.ts.map +1 -0
- package/dist/components/flight-booking-shell-panels.js +39 -0
- package/dist/components/flight-booking-shell-types.d.ts +49 -0
- package/dist/components/flight-booking-shell-types.d.ts.map +1 -0
- package/dist/components/flight-booking-shell-types.js +18 -0
- package/dist/components/flight-booking-shell.d.ts +12 -0
- package/dist/components/flight-booking-shell.d.ts.map +1 -0
- package/dist/components/flight-booking-shell.js +210 -0
- package/dist/components/flight-contact-form.d.ts +16 -0
- package/dist/components/flight-contact-form.d.ts.map +1 -0
- package/dist/components/flight-contact-form.js +25 -0
- package/dist/components/flight-fare-upsell-step.d.ts +26 -0
- package/dist/components/flight-fare-upsell-step.d.ts.map +1 -0
- package/dist/components/flight-fare-upsell-step.js +169 -0
- package/dist/components/flight-filters-bar.d.ts +19 -0
- package/dist/components/flight-filters-bar.d.ts.map +1 -0
- package/dist/components/flight-filters-bar.js +98 -0
- package/dist/components/flight-itinerary.d.ts +28 -0
- package/dist/components/flight-itinerary.d.ts.map +1 -0
- package/dist/components/flight-itinerary.js +110 -0
- package/dist/components/flight-offer-detail.d.ts +21 -0
- package/dist/components/flight-offer-detail.d.ts.map +1 -0
- package/dist/components/flight-offer-detail.js +49 -0
- package/dist/components/flight-offer-row.d.ts +25 -0
- package/dist/components/flight-offer-row.d.ts.map +1 -0
- package/dist/components/flight-offer-row.js +78 -0
- package/dist/components/flight-order-confirmation.d.ts +13 -0
- package/dist/components/flight-order-confirmation.d.ts.map +1 -0
- package/dist/components/flight-order-confirmation.js +46 -0
- package/dist/components/flight-passenger-form.d.ts +49 -0
- package/dist/components/flight-passenger-form.d.ts.map +1 -0
- package/dist/components/flight-passenger-form.js +159 -0
- package/dist/components/flight-payment-selector.d.ts +13 -0
- package/dist/components/flight-payment-selector.d.ts.map +1 -0
- package/dist/components/flight-payment-selector.js +32 -0
- package/dist/components/flight-payment-step.d.ts +32 -0
- package/dist/components/flight-payment-step.d.ts.map +1 -0
- package/dist/components/flight-payment-step.js +81 -0
- package/dist/components/flight-search-form.d.ts +14 -0
- package/dist/components/flight-search-form.d.ts.map +1 -0
- package/dist/components/flight-search-form.js +58 -0
- package/dist/components/flight-seat-map.d.ts +32 -0
- package/dist/components/flight-seat-map.d.ts.map +1 -0
- package/dist/components/flight-seat-map.js +101 -0
- package/dist/components/flight-seats-step.d.ts +40 -0
- package/dist/components/flight-seats-step.d.ts.map +1 -0
- package/dist/components/flight-seats-step.js +214 -0
- package/dist/components/flight-services-step.d.ts +27 -0
- package/dist/components/flight-services-step.d.ts.map +1 -0
- package/dist/components/flight-services-step.js +123 -0
- package/dist/components/flights-page-panels.d.ts +27 -0
- package/dist/components/flights-page-panels.d.ts.map +1 -0
- package/dist/components/flights-page-panels.js +40 -0
- package/dist/components/flights-page-types.d.ts +39 -0
- package/dist/components/flights-page-types.d.ts.map +1 -0
- package/dist/components/flights-page-types.js +1 -0
- package/dist/components/flights-page-utils.d.ts +14 -0
- package/dist/components/flights-page-utils.d.ts.map +1 -0
- package/dist/components/flights-page-utils.js +79 -0
- package/dist/components/flights-page.d.ts +4 -0
- package/dist/components/flights-page.d.ts.map +1 -0
- package/dist/components/flights-page.js +209 -0
- package/dist/components/passenger-contact-picker.d.ts +16 -0
- package/dist/components/passenger-contact-picker.d.ts.map +1 -0
- package/dist/components/passenger-contact-picker.js +45 -0
- package/dist/components/pax-cabin-popover.d.ts +18 -0
- package/dist/components/pax-cabin-popover.d.ts.map +1 -0
- package/dist/components/pax-cabin-popover.js +35 -0
- package/dist/components/popular-routes.d.ts +42 -0
- package/dist/components/popular-routes.d.ts.map +1 -0
- package/dist/components/popular-routes.js +108 -0
- package/dist/hooks/index.d.ts +13 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +12 -0
- package/dist/hooks/use-aircraft.d.ts +17 -0
- package/dist/hooks/use-aircraft.d.ts.map +1 -0
- package/dist/hooks/use-aircraft.js +18 -0
- package/dist/hooks/use-airlines.d.ts +18 -0
- package/dist/hooks/use-airlines.d.ts.map +1 -0
- package/dist/hooks/use-airlines.js +18 -0
- package/dist/hooks/use-airport-search.d.ts +28 -0
- package/dist/hooks/use-airport-search.d.ts.map +1 -0
- package/dist/hooks/use-airport-search.js +23 -0
- package/dist/hooks/use-airports.d.ts +21 -0
- package/dist/hooks/use-airports.d.ts.map +1 -0
- package/dist/hooks/use-airports.js +17 -0
- package/dist/hooks/use-flight-ancillaries.d.ts +63 -0
- package/dist/hooks/use-flight-ancillaries.d.ts.map +1 -0
- package/dist/hooks/use-flight-ancillaries.js +24 -0
- package/dist/hooks/use-flight-book.d.ts +139 -0
- package/dist/hooks/use-flight-book.d.ts.map +1 -0
- package/dist/hooks/use-flight-book.js +24 -0
- package/dist/hooks/use-flight-offer.d.ts +106 -0
- package/dist/hooks/use-flight-offer.d.ts.map +1 -0
- package/dist/hooks/use-flight-offer.js +20 -0
- package/dist/hooks/use-flight-order.d.ts +286 -0
- package/dist/hooks/use-flight-order.d.ts.map +1 -0
- package/dist/hooks/use-flight-order.js +38 -0
- package/dist/hooks/use-flight-orders.d.ts +147 -0
- package/dist/hooks/use-flight-orders.d.ts.map +1 -0
- package/dist/hooks/use-flight-orders.js +31 -0
- package/dist/hooks/use-flight-search.d.ts +110 -0
- package/dist/hooks/use-flight-search.d.ts.map +1 -0
- package/dist/hooks/use-flight-search.js +18 -0
- package/dist/hooks/use-flight-seat-map.d.ts +49 -0
- package/dist/hooks/use-flight-seat-map.d.ts.map +1 -0
- package/dist/hooks/use-flight-seat-map.js +23 -0
- package/dist/hooks/use-saved-payment-methods.d.ts +23 -0
- package/dist/hooks/use-saved-payment-methods.d.ts.map +1 -0
- package/dist/hooks/use-saved-payment-methods.js +20 -0
- package/dist/i18n/en.d.ts +465 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +520 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages.d.ts +392 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +952 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro.d.ts +465 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +520 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +42 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +22 -0
- package/dist/query-options.d.ts +827 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +58 -0
- package/dist/schemas.d.ts +1658 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +295 -0
- package/dist/ui.d.ts +31 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +28 -0
- package/package.json +148 -0
- package/src/styles.css +11 -0
package/dist/i18n/ro.js
ADDED
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
export const flightsUiRo = {
|
|
2
|
+
common: {
|
|
3
|
+
noValue: "-",
|
|
4
|
+
total: "total",
|
|
5
|
+
included: "Inclus",
|
|
6
|
+
free: "Gratuit",
|
|
7
|
+
selected: "selectate",
|
|
8
|
+
recommended: "Recomandat",
|
|
9
|
+
passengerSingular: "pasager",
|
|
10
|
+
passengerPlural: "pasageri",
|
|
11
|
+
pax: "pasageri",
|
|
12
|
+
adultPerPassenger: "/adult",
|
|
13
|
+
passengerTypeLabels: {
|
|
14
|
+
adult: "Adult",
|
|
15
|
+
child: "Copil",
|
|
16
|
+
infant: "Infant",
|
|
17
|
+
senior: "Senior",
|
|
18
|
+
youth: "Tanar",
|
|
19
|
+
},
|
|
20
|
+
cabinLabels: {
|
|
21
|
+
economy: "Economic",
|
|
22
|
+
premium_economy: "Economic premium",
|
|
23
|
+
business: "Business",
|
|
24
|
+
first: "First",
|
|
25
|
+
},
|
|
26
|
+
genderLabels: {
|
|
27
|
+
M: "Masculin",
|
|
28
|
+
F: "Feminin",
|
|
29
|
+
X: "Nespecificat / X",
|
|
30
|
+
},
|
|
31
|
+
documentTypeLabels: {
|
|
32
|
+
passport: "Pasaport",
|
|
33
|
+
national_id: "Carte de identitate",
|
|
34
|
+
visa: "Viza",
|
|
35
|
+
},
|
|
36
|
+
orderStatusLabels: {
|
|
37
|
+
pending: "In asteptare",
|
|
38
|
+
confirmed: "Confirmata",
|
|
39
|
+
ticketed: "Bilet emis",
|
|
40
|
+
cancelled: "Anulata",
|
|
41
|
+
failed: "Esuata",
|
|
42
|
+
},
|
|
43
|
+
legLabels: {
|
|
44
|
+
itinerary: "Itinerariu",
|
|
45
|
+
outbound: "Dus",
|
|
46
|
+
return: "Intors",
|
|
47
|
+
leg: "Segment {number}",
|
|
48
|
+
},
|
|
49
|
+
stops: {
|
|
50
|
+
nonstop: "Direct",
|
|
51
|
+
oneStop: "1 escala",
|
|
52
|
+
manyStops: "{count} escale",
|
|
53
|
+
via: "{stops} prin {airports}",
|
|
54
|
+
upToOne: "Pana la 1 escala",
|
|
55
|
+
upToMany: "Pana la {count} escale",
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
flightsPage: {
|
|
59
|
+
title: "Zboruri",
|
|
60
|
+
description: "Cauta oferte live de zbor in conectorii configurati.",
|
|
61
|
+
searchFailed: "Cautarea a esuat.",
|
|
62
|
+
selectedOutbound: "Zbor dus selectat",
|
|
63
|
+
selectedReturn: "Zbor intors selectat",
|
|
64
|
+
change: "Schimba",
|
|
65
|
+
tripTotal: "Total calatorie",
|
|
66
|
+
tripTotalDescription: "Ambele segmente - taxe incluse",
|
|
67
|
+
continueToBooking: "Continua la rezervare",
|
|
68
|
+
pickedOfferMissing: "Una dintre ofertele selectate nu mai exista in sesiunea curenta.",
|
|
69
|
+
outboundOfferMissing: "Oferta pentru zborul dus nu mai exista in sesiunea curenta.",
|
|
70
|
+
pickOutboundAgain: "Alege din nou zborul dus",
|
|
71
|
+
availableFlights: "Zboruri disponibile",
|
|
72
|
+
outboundHeading: "Dus - {from} catre {to}",
|
|
73
|
+
returnHeading: "Intors - {from} catre {to}",
|
|
74
|
+
tripHeading: "Calatorie",
|
|
75
|
+
searching: "Se cauta...",
|
|
76
|
+
zeroOffers: "0 oferte",
|
|
77
|
+
offersSummary: "{start}-{end} din {total} ofert{plural}",
|
|
78
|
+
pageSummary: "Pagina {page} din {totalPages}",
|
|
79
|
+
previous: "Inapoi",
|
|
80
|
+
next: "Inainte",
|
|
81
|
+
flightOffer: "Oferta zbor",
|
|
82
|
+
bookThisFlight: "Rezerva acest zbor",
|
|
83
|
+
selectOutbound: "Selecteaza dus",
|
|
84
|
+
selectReturn: "Selecteaza intors",
|
|
85
|
+
noFilteredResults: "Nicio oferta nu se potriveste filtrelor curente.",
|
|
86
|
+
noRouteResults: "Nu au fost gasite zboruri pentru aceasta ruta la data selectata.",
|
|
87
|
+
},
|
|
88
|
+
flightBookingPage: {
|
|
89
|
+
title: "Rezerva zborul",
|
|
90
|
+
descriptionTrip: "Confirma pasagerii, contactul si plata pentru a bloca aceasta calatorie.",
|
|
91
|
+
descriptionOffer: "Confirma pasagerii, contactul si plata pentru a bloca aceasta oferta.",
|
|
92
|
+
offerNotInSessionTitle: "Oferta nu este in sesiune",
|
|
93
|
+
offerNotInSessionDescription: "Acest link de rezervare refera o oferta care nu mai exista in sesiunea browserului. Ruleaza cautarea din nou pentru o oferta proaspata.",
|
|
94
|
+
backToFlightSearch: "Inapoi la cautarea zborurilor",
|
|
95
|
+
backToResults: "Inapoi la rezultate",
|
|
96
|
+
offerUnavailable: "Aceasta oferta nu mai este disponibila.",
|
|
97
|
+
segmentNotFound: "Segmentul nu a fost gasit",
|
|
98
|
+
paymentBrandLabels: {
|
|
99
|
+
visa: "Visa",
|
|
100
|
+
mastercard: "Mastercard",
|
|
101
|
+
amex: "Amex",
|
|
102
|
+
revolut: "Revolut Pay",
|
|
103
|
+
bank_transfer: "Transfer bancar",
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
passengerContactPicker: {
|
|
107
|
+
trigger: "Alege din contacte",
|
|
108
|
+
searchPlaceholder: "Cauta contacte...",
|
|
109
|
+
searching: "Se cauta...",
|
|
110
|
+
empty: "Niciun contact.",
|
|
111
|
+
addNewContact: "Adauga contact nou in CRM",
|
|
112
|
+
emptyName: "-",
|
|
113
|
+
},
|
|
114
|
+
billingPickers: {
|
|
115
|
+
personTrigger: "Foloseste date din contact",
|
|
116
|
+
personSearchPlaceholder: "Cauta contacte...",
|
|
117
|
+
peopleSearching: "Se cauta...",
|
|
118
|
+
peopleEmpty: "Niciun contact.",
|
|
119
|
+
orgTrigger: "Foloseste companie salvata",
|
|
120
|
+
orgSearchPlaceholder: "Cauta companii...",
|
|
121
|
+
orgsSearching: "Se cauta...",
|
|
122
|
+
orgsEmpty: "Nicio companie.",
|
|
123
|
+
emptyName: "-",
|
|
124
|
+
},
|
|
125
|
+
airportCombobox: {
|
|
126
|
+
placeholder: "Aeroport",
|
|
127
|
+
searchPlaceholder: "Tasteaza oras sau cod IATA...",
|
|
128
|
+
searching: "Se cauta...",
|
|
129
|
+
empty: "Niciun aeroport.",
|
|
130
|
+
},
|
|
131
|
+
flightBaggageStep: {
|
|
132
|
+
unavailable: "Bagajele nu au putut fi incarcate pentru aceasta oferta.",
|
|
133
|
+
title: "Adauga bagaj de cala",
|
|
134
|
+
description: "Bagajul de mana sub scaun este inclus. Alege un bagaj de cala per pasager sau omite pasul.",
|
|
135
|
+
sameForBothDirections: "La fel pentru ambele directii",
|
|
136
|
+
bags: "Bagaje {leg}",
|
|
137
|
+
noCheckedBag: "Fara bagaj de cala",
|
|
138
|
+
},
|
|
139
|
+
flightBillingStep: {
|
|
140
|
+
title: "Facturare",
|
|
141
|
+
description: "Chitanta si documentele fiscale vor fi emise pe acest nume.",
|
|
142
|
+
tabs: {
|
|
143
|
+
personal: "Personal",
|
|
144
|
+
company: "Companie",
|
|
145
|
+
},
|
|
146
|
+
fields: {
|
|
147
|
+
firstName: "Prenume",
|
|
148
|
+
lastName: "Nume",
|
|
149
|
+
companyName: "Nume companie",
|
|
150
|
+
vatNumber: "Cod fiscal / TVA",
|
|
151
|
+
email: "Email",
|
|
152
|
+
phone: "Telefon",
|
|
153
|
+
workPhone: "Telefon serviciu",
|
|
154
|
+
streetAddress: "Adresa",
|
|
155
|
+
addressLine2: "Linia 2 adresa",
|
|
156
|
+
city: "Oras",
|
|
157
|
+
postalCode: "Cod postal",
|
|
158
|
+
country: "Tara",
|
|
159
|
+
},
|
|
160
|
+
placeholders: {
|
|
161
|
+
vatNumber: "ex. RO43917962",
|
|
162
|
+
streetAddress: "Strada + numar",
|
|
163
|
+
addressLine2: "Apartament, scara etc.",
|
|
164
|
+
searchPassengers: "Cauta pasageri...",
|
|
165
|
+
},
|
|
166
|
+
saveDefault: "Salveaza aceste detalii ca implicite pentru contact",
|
|
167
|
+
pickFromPassengers: "Alege din pasageri",
|
|
168
|
+
noMatchingPassengers: "Niciun pasager potrivit.",
|
|
169
|
+
validation: {
|
|
170
|
+
emailRequired: "Emailul este obligatoriu",
|
|
171
|
+
emailInvalid: "Emailul pare invalid",
|
|
172
|
+
streetAddressRequired: "Adresa este obligatorie",
|
|
173
|
+
cityRequired: "Orasul este obligatoriu",
|
|
174
|
+
countryRequired: "Tara este obligatorie",
|
|
175
|
+
firstNameRequired: "Prenumele este obligatoriu",
|
|
176
|
+
lastNameRequired: "Numele este obligatoriu",
|
|
177
|
+
companyNameRequired: "Numele companiei este obligatoriu",
|
|
178
|
+
vatNumberRequired: "Codul fiscal / TVA este obligatoriu",
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
flightBookingJourney: {
|
|
182
|
+
steps: {
|
|
183
|
+
review: "Revizuire oferta",
|
|
184
|
+
passengers: "Pasageri",
|
|
185
|
+
contact: "Contact si plata",
|
|
186
|
+
confirm: "Confirmare",
|
|
187
|
+
},
|
|
188
|
+
reviewTitle: "Revizuieste zborul selectat",
|
|
189
|
+
backToResults: "Inapoi la rezultate",
|
|
190
|
+
back: "Inapoi",
|
|
191
|
+
booking: "Se rezerva...",
|
|
192
|
+
confirmBooking: "Confirma rezervarea",
|
|
193
|
+
continue: "Continua",
|
|
194
|
+
rows: {
|
|
195
|
+
total: "Total",
|
|
196
|
+
passengers: "Pasageri",
|
|
197
|
+
contact: "Contact",
|
|
198
|
+
payment: "Plata",
|
|
199
|
+
offerExpires: "Oferta expira",
|
|
200
|
+
},
|
|
201
|
+
confirmDescription: "Trimiterea va bloca locurile cu conectorul si, in functie de plata aleasa, va emite biletele imediat sau va deschide o fereastra de emitere. Dupa confirmare, rezervarea apare sub id-ul comenzii de mai jos.",
|
|
202
|
+
},
|
|
203
|
+
flightBookingLedger: {
|
|
204
|
+
flight: "Zbor",
|
|
205
|
+
outbound: "Dus",
|
|
206
|
+
return: "Intors",
|
|
207
|
+
passengers: "Pasageri",
|
|
208
|
+
working: "Se proceseaza...",
|
|
209
|
+
billing: "Facturare",
|
|
210
|
+
payment: "Plata",
|
|
211
|
+
},
|
|
212
|
+
flightBookingShell: {
|
|
213
|
+
steps: {
|
|
214
|
+
review: "Revizuire",
|
|
215
|
+
fares: "Tarif",
|
|
216
|
+
passengers: "Pasageri",
|
|
217
|
+
bags: "Bagaje",
|
|
218
|
+
seats: "Locuri",
|
|
219
|
+
services: "Servicii",
|
|
220
|
+
billing: "Facturare",
|
|
221
|
+
payment: "Plata",
|
|
222
|
+
confirm: "Confirmare",
|
|
223
|
+
},
|
|
224
|
+
seatMapsUnavailable: "Hartile locurilor nu sunt disponibile",
|
|
225
|
+
backToResults: "Inapoi la rezultate",
|
|
226
|
+
back: "Inapoi",
|
|
227
|
+
booking: "Se rezerva...",
|
|
228
|
+
confirmBooking: "Confirma rezervarea",
|
|
229
|
+
continue: "Continua",
|
|
230
|
+
reviewTrip: "Revizuieste calatoria",
|
|
231
|
+
reviewFlight: "Revizuieste zborul",
|
|
232
|
+
confirmTitle: "Confirma rezervarea",
|
|
233
|
+
rows: {
|
|
234
|
+
passengers: "Pasageri",
|
|
235
|
+
documents: "Documente",
|
|
236
|
+
contact: "Contact",
|
|
237
|
+
billedTo: "Facturat catre",
|
|
238
|
+
payment: "Plata",
|
|
239
|
+
},
|
|
240
|
+
documentsAllAdded: "Toate {count} adaugate",
|
|
241
|
+
documentsSomeAdded: "{count} din {total} adaugate",
|
|
242
|
+
documentsAddAtCheckIn: "Adauga la check-in",
|
|
243
|
+
confirmDescription: "Trimiterea va bloca locurile cu conectorul si, in functie de plata aleasa, va emite biletele imediat sau va deschide o fereastra de emitere. Rezervarea va aparea sub id-ul comenzii dupa confirmare.",
|
|
244
|
+
lineItems: {
|
|
245
|
+
fare: "Tarif {label}{suffix}",
|
|
246
|
+
seatsPicked: "{count} loc{plural} alese",
|
|
247
|
+
specialAssistance: "Asistenta speciala ({count})",
|
|
248
|
+
},
|
|
249
|
+
segmentNotFound: "Segmentul nu a fost gasit",
|
|
250
|
+
},
|
|
251
|
+
flightContactForm: {
|
|
252
|
+
title: "Date contact",
|
|
253
|
+
description: "Folosit de compania aeriana pentru confirmare, schimbari de program si notificari operationale pentru aceasta rezervare.",
|
|
254
|
+
email: "Email",
|
|
255
|
+
phone: "Telefon",
|
|
256
|
+
emailPlaceholder: "calator@example.com",
|
|
257
|
+
phonePlaceholder: "+40 700 000 000",
|
|
258
|
+
validation: {
|
|
259
|
+
emailRequired: "Emailul este obligatoriu",
|
|
260
|
+
emailInvalid: "Emailul pare invalid",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
flightFareUpsellStep: {
|
|
264
|
+
unavailable: "Aceasta oferta nu expune niveluri de upgrade tarifar.",
|
|
265
|
+
title: "Upgradeaza tariful",
|
|
266
|
+
description: "Adauga bagaj, alegere loc si flexibilitate pe segment - sau pastreaza tariful de baza.",
|
|
267
|
+
sameForAllPassengers: "Acelasi tarif pentru toti pasagerii",
|
|
268
|
+
resetToBasic: "Reseteaza la Basic",
|
|
269
|
+
appliesToAllPassengers: "Se aplica tuturor celor {count} pasageri",
|
|
270
|
+
cabinBag: "Bagaj cabina {weight}",
|
|
271
|
+
noCabinBag: "Fara bagaj cabina",
|
|
272
|
+
checkedBag: "Bagaj cala {weight}{pieces}",
|
|
273
|
+
noCheckedBag: "Fara bagaj cala",
|
|
274
|
+
freeSeatSelection: "Alegere loc gratuita",
|
|
275
|
+
standardSeatSelection: "Alegere loc standard",
|
|
276
|
+
noSeatSelection: "Fara alegere loc",
|
|
277
|
+
priorityBoarding: "Imbarcare prioritara",
|
|
278
|
+
loungeAccess: "Acces lounge",
|
|
279
|
+
freeChanges: "Modificari gratuite",
|
|
280
|
+
changesForFee: "Modificari contra cost",
|
|
281
|
+
refundable: "Rambursabil",
|
|
282
|
+
nonRefundable: "Nerambursabil",
|
|
283
|
+
},
|
|
284
|
+
flightSearchForm: {
|
|
285
|
+
roundTrip: "Dus-intors",
|
|
286
|
+
oneWay: "Doar dus",
|
|
287
|
+
fromPlaceholder: "Din",
|
|
288
|
+
toPlaceholder: "Catre",
|
|
289
|
+
departPlaceholder: "Plecare",
|
|
290
|
+
returnPlaceholder: "Intoarcere",
|
|
291
|
+
swapAriaLabel: "Inverseaza originea si destinatia",
|
|
292
|
+
search: "Cauta",
|
|
293
|
+
searching: "Se cauta...",
|
|
294
|
+
},
|
|
295
|
+
flightFiltersBar: {
|
|
296
|
+
clearAll: "Sterge tot",
|
|
297
|
+
airlines: "Companii aeriene",
|
|
298
|
+
filterAirlinesPlaceholder: "Filtreaza companii...",
|
|
299
|
+
noAirlines: "Nicio companie.",
|
|
300
|
+
clearFilter: "Sterge filtrul",
|
|
301
|
+
stops: "Escale",
|
|
302
|
+
price: "Pret",
|
|
303
|
+
maximumPrice: "Pret maxim",
|
|
304
|
+
noCap: "Fara limita",
|
|
305
|
+
clear: "Sterge",
|
|
306
|
+
},
|
|
307
|
+
flightItinerary: {
|
|
308
|
+
totalDuration: "Total {duration}",
|
|
309
|
+
layover: "Escala",
|
|
310
|
+
layoverIn: "{duration} in {airport}",
|
|
311
|
+
operatedBy: "Operat de {carrier}",
|
|
312
|
+
terminal: "Terminal {terminal}",
|
|
313
|
+
aircraft: "Aeronava:",
|
|
314
|
+
},
|
|
315
|
+
flightOfferDetail: {
|
|
316
|
+
fareBreakdown: "Detaliu tarif",
|
|
317
|
+
validatingCarrier: "Companie validatoare:",
|
|
318
|
+
expires: "Expira {date}",
|
|
319
|
+
lastTicketing: "Ultima emitere {date}",
|
|
320
|
+
instantTicketing: "Emiterea biletului instant",
|
|
321
|
+
base: "Baza {amount}",
|
|
322
|
+
tax: "Taxa {amount}",
|
|
323
|
+
},
|
|
324
|
+
flightOfferRow: {
|
|
325
|
+
select: "Selecteaza",
|
|
326
|
+
codeshare: "Codeshare",
|
|
327
|
+
interline: "Interline",
|
|
328
|
+
},
|
|
329
|
+
flightOrderConfirmation: {
|
|
330
|
+
bookingConfirmed: "Rezervare confirmata",
|
|
331
|
+
ticketDeadline: "Biletele trebuie emise pana la {date}, altfel locurile vor fi eliberate.",
|
|
332
|
+
passengers: "Pasageri",
|
|
333
|
+
contact: "Contact",
|
|
334
|
+
itinerary: "Itinerariu",
|
|
335
|
+
dob: "Data nasterii {date}",
|
|
336
|
+
cancelBooking: "Anuleaza rezervarea",
|
|
337
|
+
cancelling: "Se anuleaza...",
|
|
338
|
+
},
|
|
339
|
+
flightPassengerForm: {
|
|
340
|
+
documentsRequiredNotice: "Ruta pare internationala - adaugarea documentelor de calatorie acum accelereaza check-in-ul online si evita taxele la aeroport. Le poti omite si adauga mai tarziu.",
|
|
341
|
+
fields: {
|
|
342
|
+
firstName: "Prenume",
|
|
343
|
+
middleName: "Al doilea prenume",
|
|
344
|
+
lastName: "Nume",
|
|
345
|
+
dateOfBirth: "Data nasterii",
|
|
346
|
+
gender: "Gen",
|
|
347
|
+
travelDocument: "Document de calatorie",
|
|
348
|
+
documentType: "Tip document",
|
|
349
|
+
documentNumber: "Numar document",
|
|
350
|
+
countryOfIssue: "Tara emitenta",
|
|
351
|
+
countryOfNationality: "Cetatenie",
|
|
352
|
+
expiryDate: "Data expirarii",
|
|
353
|
+
},
|
|
354
|
+
placeholders: {
|
|
355
|
+
asOnPassport: "Ca in pasaport",
|
|
356
|
+
optional: "Optional",
|
|
357
|
+
selectDate: "Selecteaza data",
|
|
358
|
+
select: "Selecteaza",
|
|
359
|
+
asPrintedOnDocument: "Ca pe document",
|
|
360
|
+
},
|
|
361
|
+
addNow: "Adauga acum",
|
|
362
|
+
skipDocuments: "Omite pentru a adauga la check-in. Necesar in avans pentru majoritatea calatoriilor internationale.",
|
|
363
|
+
validation: {
|
|
364
|
+
firstNameRequired: "Prenumele este obligatoriu",
|
|
365
|
+
lastNameRequired: "Numele este obligatoriu",
|
|
366
|
+
dateOfBirthRequired: "Data nasterii este obligatorie",
|
|
367
|
+
documentNumberRequired: "Numarul documentului este obligatoriu",
|
|
368
|
+
documentCountryRequired: "Tara documentului este obligatorie",
|
|
369
|
+
documentExpiryRequired: "Expirarea documentului este obligatorie",
|
|
370
|
+
},
|
|
371
|
+
},
|
|
372
|
+
flightPaymentSelector: {
|
|
373
|
+
title: "Intentie de plata",
|
|
374
|
+
description: "Cum ar trebui platita rezervarea. Hold confirma locurile acum si permite emiterea ulterioara; cardul / creditul emit biletele imediat.",
|
|
375
|
+
intents: {
|
|
376
|
+
hold: {
|
|
377
|
+
title: "Pastreaza locurile - plateste mai tarziu",
|
|
378
|
+
description: "Confirma rezervarea acum si blocheaza pretul pe durata ferestrei de hold a conectorului. Biletele se emit dupa plata.",
|
|
379
|
+
},
|
|
380
|
+
card: {
|
|
381
|
+
title: "Plata cu cardul",
|
|
382
|
+
description: "Biletele se emit imediat. Datele cardului sunt gestionate in afara formularului de fluxul de tokenizare al conectorului.",
|
|
383
|
+
},
|
|
384
|
+
ticket_on_credit: {
|
|
385
|
+
title: "Emitere pe creditul agentiei",
|
|
386
|
+
description: "Emite pe linia de credit IATA a operatorului. Decontarea se face prin BSP in urmatorul ciclu de raportare.",
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
flightPaymentStep: {
|
|
391
|
+
agencyCreditLabel: "Emite bilet pe creditul agentiei",
|
|
392
|
+
agencyCreditDescription: "Factura pe linia de credit IATA / consolidator a agentiei.",
|
|
393
|
+
},
|
|
394
|
+
flightSeatMap: {
|
|
395
|
+
cabin: "Cabina",
|
|
396
|
+
pickingSeatFor: "Alegere loc pentru {passenger}",
|
|
397
|
+
window: "geam",
|
|
398
|
+
aisle: "culoar",
|
|
399
|
+
noCharge: "Fara cost",
|
|
400
|
+
pickedBy: "Ales de {passenger}",
|
|
401
|
+
categories: {
|
|
402
|
+
exit_row: "Rand iesire - spatiu suplimentar",
|
|
403
|
+
extra_legroom: "Spatiu suplimentar",
|
|
404
|
+
preferred: "Preferat",
|
|
405
|
+
premium: "Premium",
|
|
406
|
+
bulkhead: "Perete despartitor",
|
|
407
|
+
standard: "Standard",
|
|
408
|
+
},
|
|
409
|
+
legend: {
|
|
410
|
+
available: "Disponibil",
|
|
411
|
+
preferred: "Preferat",
|
|
412
|
+
exitRow: "Rand iesire",
|
|
413
|
+
picked: "Ales",
|
|
414
|
+
taken: "Ocupat",
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
flightSeatsStep: {
|
|
418
|
+
title: "Alege locurile",
|
|
419
|
+
description: "Alege unde stai sau lasa compania aeriana sa aloce locurile la check-in.",
|
|
420
|
+
modes: {
|
|
421
|
+
skip: {
|
|
422
|
+
title: "Alege locurile mai tarziu",
|
|
423
|
+
body: "Locurile vor fi alocate automat la check-in. Este posibil sa nu fie impreuna.",
|
|
424
|
+
},
|
|
425
|
+
auto: {
|
|
426
|
+
title: "Alocare automata impreuna",
|
|
427
|
+
body: "Compania aeriana alege locuri incercand sa tina grupul impreuna. Fara taxa.",
|
|
428
|
+
},
|
|
429
|
+
now: {
|
|
430
|
+
title: "Alege locurile acum",
|
|
431
|
+
body: "Alege locuri exacte pe segment - geam, randuri de iesire, spatiu suplimentar.",
|
|
432
|
+
},
|
|
433
|
+
},
|
|
434
|
+
seatMapUnavailable: "Harta locurilor nu este disponibila pentru acest segment.",
|
|
435
|
+
},
|
|
436
|
+
flightServicesStep: {
|
|
437
|
+
title: "Servicii si extraoptiuni",
|
|
438
|
+
description: "Optional - lasa gol ce vrei sa omiti.",
|
|
439
|
+
servicesUnavailable: "Serviciile nu au putut fi incarcate pentru aceasta oferta.",
|
|
440
|
+
specialAssistance: "Asistenta speciala",
|
|
441
|
+
noAssistanceNeeded: "Nu este necesara asistenta",
|
|
442
|
+
extras: "Extraoptiuni {leg}",
|
|
443
|
+
},
|
|
444
|
+
paxCabinPopover: {
|
|
445
|
+
adults: "Adulti",
|
|
446
|
+
adultsSublabel: "12+",
|
|
447
|
+
children: "Copii",
|
|
448
|
+
childrenSublabel: "2-11",
|
|
449
|
+
infants: "Infanti",
|
|
450
|
+
infantsSublabel: "sub 2",
|
|
451
|
+
cabin: "Cabina",
|
|
452
|
+
decrease: "Scade {label}",
|
|
453
|
+
increase: "Creste {label}",
|
|
454
|
+
},
|
|
455
|
+
popularRoutes: {
|
|
456
|
+
title: "Rute populare",
|
|
457
|
+
defaults: [
|
|
458
|
+
{
|
|
459
|
+
originLabel: "Londra",
|
|
460
|
+
destinationLabel: "New York",
|
|
461
|
+
tag: "Transatlantic",
|
|
462
|
+
hint: "Cabine premium, zilnic",
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
originLabel: "Paris",
|
|
466
|
+
destinationLabel: "Dubai",
|
|
467
|
+
tag: "Hub de conexiune",
|
|
468
|
+
hint: "Mix larg de companii",
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
originLabel: "Amsterdam",
|
|
472
|
+
destinationLabel: "Singapore",
|
|
473
|
+
tag: "Long-haul",
|
|
474
|
+
hint: "Optiuni directe",
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
originLabel: "Frankfurt",
|
|
478
|
+
destinationLabel: "Tokyo",
|
|
479
|
+
tag: "Long-haul",
|
|
480
|
+
hint: "12-13h direct",
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
originLabel: "Madrid",
|
|
484
|
+
destinationLabel: "Sao Paulo",
|
|
485
|
+
tag: "America Latina",
|
|
486
|
+
hint: "10h direct",
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
originLabel: "Barcelona",
|
|
490
|
+
destinationLabel: "Roma",
|
|
491
|
+
tag: "Short-haul",
|
|
492
|
+
hint: "De la EUR 60",
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
originLabel: "London Gatwick",
|
|
496
|
+
destinationLabel: "Madrid",
|
|
497
|
+
tag: "Short-haul",
|
|
498
|
+
hint: "Dominat de LCC",
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
originLabel: "Dubai",
|
|
502
|
+
destinationLabel: "Bangkok",
|
|
503
|
+
tag: "Asia",
|
|
504
|
+
hint: "6h direct",
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
originLabel: "San Francisco",
|
|
508
|
+
destinationLabel: "Tokyo",
|
|
509
|
+
tag: "Trans-Pacific",
|
|
510
|
+
hint: "11h direct",
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
originLabel: "Zurich",
|
|
514
|
+
destinationLabel: "Johannesburg",
|
|
515
|
+
tag: "Africa",
|
|
516
|
+
hint: "11h peste noapte",
|
|
517
|
+
},
|
|
518
|
+
],
|
|
519
|
+
},
|
|
520
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defaultFetcher, type FetchWithValidationOptions, fetchWithValidation, VoyantApiError, type VoyantFetcher, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantFlightsContext, type VoyantFlightsContextValue, VoyantFlightsProvider, type VoyantFlightsProviderProps, } from "./provider.js";
|
|
4
|
+
export { type AirportSearchFilters, type FlightOrderPaymentStatus, type FlightOrdersListFilters, flightsQueryKeys, } from "./query-keys.js";
|
|
5
|
+
export { getAircraftQueryOptions, getAirlinesQueryOptions, getAirportsQueryOptions, getFlightAncillariesQueryOptions, getFlightSearchQueryOptions, getFlightSeatMapQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,0BAA0B,EAC/B,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,qBAAqB,EACrB,KAAK,0BAA0B,GAChC,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,gBAAgB,GACjB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,gCAAgC,EAChC,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantFlightsContext, VoyantFlightsProvider, } from "./provider.js";
|
|
4
|
+
export { flightsQueryKeys, } from "./query-keys.js";
|
|
5
|
+
export { getAircraftQueryOptions, getAirlinesQueryOptions, getAirportsQueryOptions, getFlightAncillariesQueryOptions, getFlightSearchQueryOptions, getFlightSeatMapQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantFlightsContext, type VoyantReactContextValue as VoyantFlightsContextValue, VoyantReactProvider as VoyantFlightsProvider, type VoyantReactProviderProps as VoyantFlightsProviderProps, } from "@voyant-travel/react";
|
|
2
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,uBAAuB,EAChD,KAAK,uBAAuB,IAAI,yBAAyB,EACzD,mBAAmB,IAAI,qBAAqB,EAC5C,KAAK,wBAAwB,IAAI,0BAA0B,GAC5D,MAAM,sBAAsB,CAAA"}
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantFlightsContext, VoyantReactProvider as VoyantFlightsProvider, } from "@voyant-travel/react";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { FlightOrderStatus, FlightSearchRequest } from "@voyant-travel/flights/contract/types";
|
|
2
|
+
export interface AirportSearchFilters {
|
|
3
|
+
q?: string | undefined;
|
|
4
|
+
limit?: number | undefined;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* `paymentStatus` mirrors the finance `payment_session` statuses, plus
|
|
8
|
+
* `"none"` for orders the operator hasn't created a session for yet.
|
|
9
|
+
* Sent operator-side; the underlying flight adapter stays unaware of
|
|
10
|
+
* payments.
|
|
11
|
+
*/
|
|
12
|
+
export type FlightOrderPaymentStatus = "none" | "pending" | "requires_redirect" | "processing" | "authorized" | "paid" | "failed" | "cancelled" | "expired";
|
|
13
|
+
export interface FlightOrdersListFilters {
|
|
14
|
+
cursor?: string | undefined;
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
search?: string | undefined;
|
|
17
|
+
status?: FlightOrderStatus[] | undefined;
|
|
18
|
+
paymentStatus?: FlightOrderPaymentStatus[] | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare const flightsQueryKeys: {
|
|
21
|
+
readonly all: readonly ["voyant", "flights"];
|
|
22
|
+
readonly search: () => readonly ["voyant", "flights", "search"];
|
|
23
|
+
readonly searchRequest: (request: FlightSearchRequest) => readonly ["voyant", "flights", "search", FlightSearchRequest];
|
|
24
|
+
readonly offer: () => readonly ["voyant", "flights", "offer"];
|
|
25
|
+
readonly offerDetail: (offerId: string) => readonly ["voyant", "flights", "offer", "detail", string];
|
|
26
|
+
readonly ancillaries: () => readonly ["voyant", "flights", "ancillaries"];
|
|
27
|
+
readonly ancillariesForOffer: (offerId: string) => readonly ["voyant", "flights", "ancillaries", string];
|
|
28
|
+
readonly seatMap: () => readonly ["voyant", "flights", "seatmap"];
|
|
29
|
+
readonly seatMapForSegment: (offerId: string, segmentId: string) => readonly ["voyant", "flights", "seatmap", string, string];
|
|
30
|
+
/** Saved payment methods are CRM-adjacent but currently expose via the operator starter route. */
|
|
31
|
+
readonly savedPaymentMethods: (personId: string) => readonly ["voyant", "flights", "saved-payment-methods", string];
|
|
32
|
+
readonly order: () => readonly ["voyant", "flights", "order"];
|
|
33
|
+
readonly orderDetail: (orderId: string) => readonly ["voyant", "flights", "order", "detail", string];
|
|
34
|
+
readonly orderList: (filters: FlightOrdersListFilters) => readonly ["voyant", "flights", "order", "list", FlightOrdersListFilters];
|
|
35
|
+
readonly reference: () => readonly ["voyant", "flights", "reference"];
|
|
36
|
+
readonly airlines: () => readonly ["voyant", "flights", "reference", "airlines"];
|
|
37
|
+
readonly airports: (filters: AirportSearchFilters) => readonly ["voyant", "flights", "reference", "airports", AirportSearchFilters];
|
|
38
|
+
readonly airline: (iataCode: string) => readonly ["voyant", "flights", "reference", "airline", string];
|
|
39
|
+
readonly airport: (iataCode: string) => readonly ["voyant", "flights", "reference", "airport", string];
|
|
40
|
+
readonly aircraft: () => readonly ["voyant", "flights", "reference", "aircraft"];
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAEnG,MAAM,WAAW,oBAAoB;IACnC,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAED;;;;;GAKG;AACH,MAAM,MAAM,wBAAwB,GAChC,MAAM,GACN,SAAS,GACT,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,WAAW,GACX,SAAS,CAAA;AAEb,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,MAAM,CAAC,EAAE,iBAAiB,EAAE,GAAG,SAAS,CAAA;IACxC,aAAa,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAA;CACvD;AAED,eAAO,MAAM,gBAAgB;;;sCAIF,mBAAmB;;oCAGrB,MAAM;;4CAGE,MAAM;;0CAGR,MAAM,aAAa,MAAM;IAGtD,kGAAkG;6CAClE,MAAM;;oCAIf,MAAM;kCACR,uBAAuB;;;iCAKxB,oBAAoB;iCAEpB,MAAM;iCACN,MAAM;;CAElB,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const flightsQueryKeys = {
|
|
2
|
+
all: ["voyant", "flights"],
|
|
3
|
+
search: () => [...flightsQueryKeys.all, "search"],
|
|
4
|
+
searchRequest: (request) => [...flightsQueryKeys.search(), request],
|
|
5
|
+
offer: () => [...flightsQueryKeys.all, "offer"],
|
|
6
|
+
offerDetail: (offerId) => [...flightsQueryKeys.offer(), "detail", offerId],
|
|
7
|
+
ancillaries: () => [...flightsQueryKeys.all, "ancillaries"],
|
|
8
|
+
ancillariesForOffer: (offerId) => [...flightsQueryKeys.ancillaries(), offerId],
|
|
9
|
+
seatMap: () => [...flightsQueryKeys.all, "seatmap"],
|
|
10
|
+
seatMapForSegment: (offerId, segmentId) => [...flightsQueryKeys.seatMap(), offerId, segmentId],
|
|
11
|
+
/** Saved payment methods are CRM-adjacent but currently expose via the operator starter route. */
|
|
12
|
+
savedPaymentMethods: (personId) => [...flightsQueryKeys.all, "saved-payment-methods", personId],
|
|
13
|
+
order: () => [...flightsQueryKeys.all, "order"],
|
|
14
|
+
orderDetail: (orderId) => [...flightsQueryKeys.order(), "detail", orderId],
|
|
15
|
+
orderList: (filters) => [...flightsQueryKeys.order(), "list", filters],
|
|
16
|
+
reference: () => [...flightsQueryKeys.all, "reference"],
|
|
17
|
+
airlines: () => [...flightsQueryKeys.reference(), "airlines"],
|
|
18
|
+
airports: (filters) => [...flightsQueryKeys.reference(), "airports", filters],
|
|
19
|
+
airline: (iataCode) => [...flightsQueryKeys.reference(), "airline", iataCode],
|
|
20
|
+
airport: (iataCode) => [...flightsQueryKeys.reference(), "airport", iataCode],
|
|
21
|
+
aircraft: () => [...flightsQueryKeys.reference(), "aircraft"],
|
|
22
|
+
};
|