@qite/tide-booking-component 0.0.2-preview.57 → 0.0.2-preview.59
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/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +3 -1
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +4 -1
- package/build/build-cjs/booking-wizard/features/price-details/price-details-slice.d.ts +5 -3
- package/build/build-cjs/booking-wizard/types.d.ts +1 -0
- package/build/build-cjs/index.js +285 -188
- package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +3 -1
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +4 -1
- package/build/build-esm/booking-wizard/features/price-details/price-details-slice.d.ts +5 -3
- package/build/build-esm/booking-wizard/types.d.ts +1 -0
- package/build/build-esm/index.js +287 -190
- package/package.json +2 -2
- package/src/booking-wizard/components/product-card.tsx +1 -1
- package/src/booking-wizard/features/booking/booking-slice.ts +40 -13
- package/src/booking-wizard/features/booking/booking.tsx +16 -1
- package/src/booking-wizard/features/booking/selectors.ts +22 -7
- package/src/booking-wizard/features/price-details/price-details-slice.ts +21 -6
- package/src/booking-wizard/features/price-details/util.ts +15 -3
- package/src/booking-wizard/features/summary/summary.tsx +90 -8
- package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +1 -1
- package/src/booking-wizard/settings-context.ts +1 -0
- package/src/booking-wizard/translations/translations.json +3 -1
- package/src/booking-wizard/types.ts +1 -0
|
@@ -14,8 +14,10 @@ export interface BookingState {
|
|
|
14
14
|
isBusy: boolean;
|
|
15
15
|
skipPaymentWithAgent: boolean;
|
|
16
16
|
generatePaymentUrl: boolean;
|
|
17
|
+
isUnavailable?: boolean;
|
|
18
|
+
tagIds?: number[];
|
|
17
19
|
}
|
|
18
20
|
export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
19
|
-
export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>, setEntryStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>, setCustomEntryStatusId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, string>, setProductAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProductAttributes, string>, setBookingAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingAttributes, string>, setCalculateDeposit: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setBookingNumber: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, setIsRetry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setFetchingPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingPackage, string>, setPackageRooms: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingPackageRoom[], string>, setPackageOptionPax: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionPax[], string>, setPackageOptionUnits: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionUnit[], string>, setPackageGroups: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionGroup<PerBookingPackageOption>[], string>, setSkipPayment: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setGeneratePaymentUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>;
|
|
21
|
+
export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>, setEntryStatus: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>, setCustomEntryStatusId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, string>, setProductAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<ProductAttributes, string>, setBookingAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingAttributes, string>, setCalculateDeposit: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setBookingNumber: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, setIsRetry: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setFetchingPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingPackage, string>, setPackageRooms: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingPackageRoom[], string>, setPackageOptionPax: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionPax[], string>, setPackageOptionUnits: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionUnit[], string>, setPackageGroups: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptionGroup<PerBookingPackageOption>[], string>, setSkipPayment: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setGeneratePaymentUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<boolean, string>, setTagIds: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number[] | undefined, string>;
|
|
20
22
|
declare const _default: import("redux").Reducer<BookingState, import("redux").AnyAction>;
|
|
21
23
|
export default _default;
|
|
@@ -11,10 +11,13 @@ export declare const selectPackageOptionUnits: (state: RootState) => import("@qi
|
|
|
11
11
|
export declare const selectPackageOptionPax: (state: RootState) => import("@qite/tide-client/build/types/offer").BookingOptionPax[] | undefined;
|
|
12
12
|
export declare const selectPackageGroups: (state: RootState) => import("@qite/tide-client/build/types/offer").BookingOptionGroup<import("@qite/tide-client/build/types/offer").PerBookingPackageOption>[] | undefined;
|
|
13
13
|
export declare const selectPackageDetails: (state: RootState) => import("@qite/tide-client/build/types/offer").BookingPackage | undefined;
|
|
14
|
+
export declare const selectActiveOption: (state: RootState) => import("@qite/tide-client/build/types/offer/booking-v2/shared/booking-package-option").BookingPackageOption | undefined;
|
|
15
|
+
export declare const selectIsUnavailable: (state: RootState) => boolean | undefined;
|
|
14
16
|
export declare const selectRequestRooms: (state: RootState) => import("@qite/tide-client/build/types/offer").BookingPackageRequestRoom[] | undefined;
|
|
15
17
|
export declare const selectOfficeId: (state: RootState) => number;
|
|
16
18
|
export declare const selectEntryStatus: (state: RootState) => number;
|
|
17
19
|
export declare const selectCustomEntryStatusId: (state: RootState) => number | undefined;
|
|
20
|
+
export declare const selectTagIds: (state: RootState) => number[] | undefined;
|
|
18
21
|
export declare const selectProductAttributes: (state: RootState) => import("../../types").ProductAttributes | undefined;
|
|
19
22
|
export declare const selectBookingAttributes: (state: RootState) => import("../../types").BookingAttributes | undefined;
|
|
20
23
|
export declare const selectBookingNumber: (state: RootState) => string | undefined;
|
|
@@ -69,7 +72,7 @@ export declare const selectBookingPackageBookRequest: ((state: {
|
|
|
69
72
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
70
73
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
71
74
|
summary: import("../summary/summary-slice").SummaryState;
|
|
72
|
-
}) => BookingPackageRequest<BookingPackageBookRequest> | null) & import("reselect").OutputSelectorFields<(args_0: number, args_1: number, args_2: number | undefined, args_3: BookingPackagePax[], args_4: BookingPackageAddress | undefined, args_5: import("@qite/tide-client/build/types/offer").BookingPackage | undefined, args_6: boolean, args_7: number | undefined, args_8: boolean, args_9: boolean) => BookingPackageRequest<BookingPackageBookRequest> & {
|
|
75
|
+
}) => BookingPackageRequest<BookingPackageBookRequest> | null) & import("reselect").OutputSelectorFields<(args_0: number, args_1: number, args_2: number | undefined, args_3: BookingPackagePax[], args_4: BookingPackageAddress | undefined, args_5: import("@qite/tide-client/build/types/offer").BookingPackage | undefined, args_6: boolean, args_7: number | undefined, args_8: boolean, args_9: boolean, args_10: import("@qite/tide-client/build/types/offer").BookingProductNotification[], args_11: number[] | undefined) => BookingPackageRequest<BookingPackageBookRequest> & {
|
|
73
76
|
clearCache: () => void;
|
|
74
77
|
}> & {
|
|
75
78
|
clearCache: () => void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { RootState } from "../../store";
|
|
2
|
-
import { BookingPriceDetail } from "@qite/tide-client/build/types";
|
|
2
|
+
import { BookingPriceDetail, BookingPriceDetails, BookingProductNotification } from "@qite/tide-client/build/types";
|
|
3
3
|
export interface PriceDetailsState {
|
|
4
4
|
priceDetails: BookingPriceDetail[];
|
|
5
|
+
notifications: BookingProductNotification[];
|
|
5
6
|
deposit?: number;
|
|
6
7
|
isBusy: boolean;
|
|
7
8
|
}
|
|
8
|
-
export declare const fetchPriceDetails: import("@reduxjs/toolkit").AsyncThunk<
|
|
9
|
+
export declare const fetchPriceDetails: import("@reduxjs/toolkit").AsyncThunk<BookingPriceDetails, void, {}>;
|
|
9
10
|
export declare const selectPriceDetails: (state: RootState) => BookingPriceDetail[];
|
|
10
11
|
export declare const selectPackagePriceDetails: ((state: {
|
|
11
12
|
booking: import("../booking/booking-slice").BookingState;
|
|
@@ -59,6 +60,7 @@ export declare const selectTotalPrice: ((state: {
|
|
|
59
60
|
};
|
|
60
61
|
export declare const selectDeposit: (state: RootState) => number | undefined;
|
|
61
62
|
export declare const selectIsFetchingPriceDetails: (state: RootState) => boolean;
|
|
62
|
-
export declare const
|
|
63
|
+
export declare const selectNotifications: (state: RootState) => BookingProductNotification[];
|
|
64
|
+
export declare const resetPriceDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>, setNotifications: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingProductNotification[], string>;
|
|
63
65
|
declare const _default: import("redux").Reducer<PriceDetailsState, import("redux").AnyAction>;
|
|
64
66
|
export default _default;
|