@odynn/awayz-core 0.9.27 → 0.9.28
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/dist/hooks/useBookingManagement/useBookingManagement.test.js +1 -1
- package/dist/hooks/useFeatureFlags.js +5 -4
- package/dist/lib/components/CashValue/CashValue.d.ts +1 -0
- package/dist/lib/hooks/useFeatureFlags.d.ts +1 -1
- package/dist/lib/services/bookings/BookingService.types.d.ts +2 -1
- package/dist/services/bookings/BookingService.js +2 -1
- package/package.json +1 -1
|
@@ -7,10 +7,10 @@ import '../../assets/_styles3.css';import '../../assets/_styles5.css';import '..
|
|
|
7
7
|
import "../../_styles.flight-booking-CaUgKcMC.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import "@tanstack/react-query";
|
|
10
|
-
import { c } from "../../noRetryInstance-DKhe8ju0.js";
|
|
11
10
|
/* empty css */
|
|
12
11
|
/* empty css */
|
|
13
12
|
import "../../index-Cv-wvFlM.js";
|
|
13
|
+
import { c } from "../../noRetryInstance-DKhe8ju0.js";
|
|
14
14
|
import "../../context/AwayzContext.js";
|
|
15
15
|
import { useBookingManagement as t } from "./useBookingManagement.js";
|
|
16
16
|
import "../../configs/awayzClient.js";
|
|
@@ -19,7 +19,8 @@ const L = [
|
|
|
19
19
|
"NAVIGATION_FEATURE",
|
|
20
20
|
"BOOKING_PAYMENT_METHOD_FEATURE",
|
|
21
21
|
"AMOUNTS_DISPLAY_FEATURE",
|
|
22
|
-
"FLIGHT_BOOKING_OPTIONS_DISPLAY_FEATURE"
|
|
22
|
+
"FLIGHT_BOOKING_OPTIONS_DISPLAY_FEATURE",
|
|
23
|
+
"HOTEL_EXAMPLE_FEATURE"
|
|
23
24
|
], S = [
|
|
24
25
|
"CURRENCY_FILTER_FEATURE",
|
|
25
26
|
"FREE_HOTEL_NIGHTS_FEATURE",
|
|
@@ -52,7 +53,7 @@ const L = [
|
|
|
52
53
|
"FLIGHT_FILTERS_FEATURES",
|
|
53
54
|
"WALLET_FEATURES"
|
|
54
55
|
];
|
|
55
|
-
var N = /* @__PURE__ */ ((E) => (E.DEFAULT = "default", E.FULL_VCC_PARTIAL_ENABLED = "Full VCC - Partial Enabled", E.FULL_VCC_PARTIAL_DISABLED = "Full VCC - Partial Disabled", E))(N || {}),
|
|
56
|
+
var N = /* @__PURE__ */ ((E) => (E.DEFAULT = "default", E.FULL_VCC_PARTIAL_ENABLED = "Full VCC - Partial Enabled", E.FULL_VCC_PARTIAL_DISABLED = "Full VCC - Partial Disabled", E))(N || {}), H = /* @__PURE__ */ ((E) => (E.CASH_ONLY = "Cash Only", E.CASH_AND_TRAVEL_PARTNER_POINTS = "Cash And Travel Partner Points", E.CASH_AND_CLIENT_POINTS = "Cash And Client Points", E))(H || {}), t = /* @__PURE__ */ ((E) => (E.RESULT = "result", E.SHEET = "sheet", E))(t || {});
|
|
56
57
|
const l = () => {
|
|
57
58
|
const { data: E, isSuccess: R } = U({
|
|
58
59
|
queryKey: [e.FEATURES, "new"],
|
|
@@ -91,8 +92,8 @@ const l = () => {
|
|
|
91
92
|
};
|
|
92
93
|
};
|
|
93
94
|
export {
|
|
94
|
-
|
|
95
|
+
H as EAmountsDisplayFeature,
|
|
95
96
|
N as EBookingPaymentMethod,
|
|
96
|
-
|
|
97
|
+
t as EFlightBookingOptionsDisplayFeature,
|
|
97
98
|
l as useFeatureFlags
|
|
98
99
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type CamelCase<S extends string> = S extends `${infer P1}_${infer P2}${infer P3}` ? `${Lowercase<P1>}${Uppercase<P2>}${CamelCase<P3>}` : Lowercase<S>;
|
|
2
|
-
declare const StringFeatureFlag: readonly ["DEFAULT_CURRENCY_FEATURE", "TOTAL_DISPLAY_FEATURE", "HOTEL_DETAILS_LAYOUT_FEATURE", "TRIP_MANAGEMENT_FEATURE", "FLIGHT_FILTER_LAYOUT_FEATURE", "WALLET_MANAGEMENT_FEATURE", "WALLET_PROGRAM_TYPES_FEATURES", "FLIGHT_PAGINATION_FEATURE", "AVAILABILITY_ALERTS_DISPLAY_FEATURE", "PAYMENT_TYPE_FEATURE", "HOTEL_DETAILS_FEATURES", "SEARCH_RADIUS_POSITION_FEATURE", "NAVIGATION_FEATURE", "BOOKING_PAYMENT_METHOD_FEATURE", "AMOUNTS_DISPLAY_FEATURE", "FLIGHT_BOOKING_OPTIONS_DISPLAY_FEATURE"];
|
|
2
|
+
declare const StringFeatureFlag: readonly ["DEFAULT_CURRENCY_FEATURE", "TOTAL_DISPLAY_FEATURE", "HOTEL_DETAILS_LAYOUT_FEATURE", "TRIP_MANAGEMENT_FEATURE", "FLIGHT_FILTER_LAYOUT_FEATURE", "WALLET_MANAGEMENT_FEATURE", "WALLET_PROGRAM_TYPES_FEATURES", "FLIGHT_PAGINATION_FEATURE", "AVAILABILITY_ALERTS_DISPLAY_FEATURE", "PAYMENT_TYPE_FEATURE", "HOTEL_DETAILS_FEATURES", "SEARCH_RADIUS_POSITION_FEATURE", "NAVIGATION_FEATURE", "BOOKING_PAYMENT_METHOD_FEATURE", "AMOUNTS_DISPLAY_FEATURE", "FLIGHT_BOOKING_OPTIONS_DISPLAY_FEATURE", "HOTEL_EXAMPLE_FEATURE"];
|
|
3
3
|
declare const BooleanFeatureFlag: readonly ["CURRENCY_FILTER_FEATURE", "FREE_HOTEL_NIGHTS_FEATURE", "SHOW_BOOKABLE_FEATURE", "FILTER_PRESETS_FEATURE", "SPLIT_HOTEL_CHAINS_FEATURE", "FLIGHT_SHOW_ANIMATION_FEATURE", "SHOW_FOOTER_FEATURE", "SHOW_AVAILABILITY_ALERTS_FEATURE", "USE_POINTS_AS_CASH_FEATURE", "HAS_HEADER_FEATURE", "SHOW_FLIGHTS_TRANSFER_PARTNER_FEATURE", "HOTEL_POINTS_ONLY_FEATURE", "FREE_HOTEL_NIGHTS_FEATURE", "HOTEL_DISPLAY_BEST_VALUE_FEATURE", "HOTEL_DISPLAY_POINTS_BREAKDOWN_FEATURE", "TAB_NAVIGATION_FEATURE", "ADD_AIRLINE_HEALTH_PAGE_FEATURE", "SHOW_NAVIGATION_POPUP_FEATURE", "SHOW_ONLY_BOOKABLE_FEATURE", "CASH_BOOKING_FEATURE", "DISABLE_FREE_USER_CASH_BOOKING_FEATURE", "ENABLE_EASY_SUPPORT_BOT_FEATURE", "SHOW_ONLY_BOOKABLE_FEATURE", "HIDE_FLIGHT_SEARCH_CONTAINER_FEATURE", "HIDE_HOTEL_SEARCH_CONTAINER_FEATURE"];
|
|
4
4
|
declare const ListFeatureFlag: readonly ["WALLET_PROGRAM_TYPES_FEATURES", "HOTEL_FILTERS_FEATURES", "FLIGHT_FILTERS_FEATURES", "WALLET_FEATURES"];
|
|
5
5
|
export declare enum EBookingPaymentMethod {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAirport, ICoordinates, ISlice } from '@type-op/shared';
|
|
1
|
+
import { IAirport, ICoordinates, ISegment, ISlice } from '@type-op/shared';
|
|
2
2
|
export interface IGuest {
|
|
3
3
|
familyName: string;
|
|
4
4
|
givenName: string;
|
|
@@ -121,6 +121,7 @@ export interface IFlight {
|
|
|
121
121
|
numberOfStops: number;
|
|
122
122
|
durationInMinutes: number;
|
|
123
123
|
reference: string;
|
|
124
|
+
segments: ISegment[];
|
|
124
125
|
}
|
|
125
126
|
export interface IActionAirlineChangesRequest {
|
|
126
127
|
bookingId: string;
|
|
@@ -138,7 +138,8 @@ class h {
|
|
|
138
138
|
reference: a.data.booking_reference,
|
|
139
139
|
durationInMinutes: f(e.duration),
|
|
140
140
|
origin: u(e.origin),
|
|
141
|
-
destination: u(e.destination)
|
|
141
|
+
destination: u(e.destination),
|
|
142
|
+
segments: u(e.segments)
|
|
142
143
|
})),
|
|
143
144
|
availableActions: a.data.available_actions,
|
|
144
145
|
airlineInitiatedChanges: u(a.data.airline_initiated_changes) || []
|