@qite/tide-booking-component 0.0.2-preview.9 → 1.0.0-preview
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/README.md +1 -0
- package/build/build-cjs/booking-wizard/components/message.d.ts +1 -0
- package/build/build-cjs/booking-wizard/components/product-card.d.ts +1 -2
- package/build/build-cjs/booking-wizard/features/booking/api.d.ts +21 -0
- package/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +95 -19
- package/build/build-cjs/booking-wizard/features/booking/booking.d.ts +1 -2
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +208 -0
- package/build/build-cjs/booking-wizard/features/price-details/price-details-api.d.ts +8 -6
- package/build/build-cjs/booking-wizard/features/price-details/price-details-slice.d.ts +98 -30
- package/build/build-cjs/booking-wizard/features/price-details/util.d.ts +5 -0
- package/build/build-cjs/booking-wizard/features/product-options/no-options.d.ts +2 -0
- package/build/build-cjs/booking-wizard/features/product-options/none-option.d.ts +17 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-booking-group.d.ts +18 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-item.d.ts +11 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-pax-card.d.ts +9 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-pax-group.d.ts +20 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-room.d.ts +16 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-unit-group.d.ts +20 -0
- package/build/build-cjs/booking-wizard/features/product-options/option-units-card.d.ts +9 -0
- package/build/build-cjs/booking-wizard/features/sidebar/index.d.ts +5 -1
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -0
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-util.d.ts +22 -5
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar.d.ts +16 -8
- package/build/build-cjs/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -0
- package/build/build-cjs/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -0
- package/build/build-cjs/booking-wizard/features/summary/summary-flight.d.ts +8 -0
- package/build/build-cjs/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +10 -0
- package/build/build-cjs/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +10 -0
- package/build/build-cjs/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +10 -0
- package/build/build-cjs/booking-wizard/features/summary/summary-slice.d.ts +0 -28
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +82 -88
- package/build/build-cjs/booking-wizard/features/travelers-form/type-ahead-input.d.ts +1 -0
- package/build/build-cjs/booking-wizard/features/travelers-form/validate-form.d.ts +2 -1
- package/build/build-cjs/booking-wizard/index.d.ts +3 -2
- package/build/build-cjs/booking-wizard/store.d.ts +23 -45
- package/build/build-cjs/booking-wizard/types.d.ts +63 -11
- package/build/build-cjs/booking-wizard/utils/query-string-util.d.ts +13 -0
- package/build/build-cjs/index.js +12065 -2381
- package/build/build-esm/booking-wizard/components/message.d.ts +1 -0
- package/build/build-esm/booking-wizard/components/product-card.d.ts +1 -2
- package/build/build-esm/booking-wizard/features/booking/api.d.ts +21 -0
- package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +95 -19
- package/build/build-esm/booking-wizard/features/booking/booking.d.ts +1 -2
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +208 -0
- package/build/build-esm/booking-wizard/features/price-details/price-details-api.d.ts +8 -6
- package/build/build-esm/booking-wizard/features/price-details/price-details-slice.d.ts +98 -30
- package/build/build-esm/booking-wizard/features/price-details/util.d.ts +5 -0
- package/build/build-esm/booking-wizard/features/product-options/no-options.d.ts +2 -0
- package/build/build-esm/booking-wizard/features/product-options/none-option.d.ts +17 -0
- package/build/build-esm/booking-wizard/features/product-options/option-booking-group.d.ts +18 -0
- package/build/build-esm/booking-wizard/features/product-options/option-item.d.ts +11 -0
- package/build/build-esm/booking-wizard/features/product-options/option-pax-card.d.ts +9 -0
- package/build/build-esm/booking-wizard/features/product-options/option-pax-group.d.ts +20 -0
- package/build/build-esm/booking-wizard/features/product-options/option-room.d.ts +16 -0
- package/build/build-esm/booking-wizard/features/product-options/option-unit-group.d.ts +20 -0
- package/build/build-esm/booking-wizard/features/product-options/option-units-card.d.ts +9 -0
- package/build/build-esm/booking-wizard/features/sidebar/index.d.ts +5 -1
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -0
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-util.d.ts +22 -5
- package/build/build-esm/booking-wizard/features/sidebar/sidebar.d.ts +16 -8
- package/build/build-esm/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -0
- package/build/build-esm/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -0
- package/build/build-esm/booking-wizard/features/summary/summary-flight.d.ts +8 -0
- package/build/build-esm/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +10 -0
- package/build/build-esm/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +10 -0
- package/build/build-esm/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +10 -0
- package/build/build-esm/booking-wizard/features/summary/summary-slice.d.ts +0 -28
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +82 -88
- package/build/build-esm/booking-wizard/features/travelers-form/type-ahead-input.d.ts +1 -0
- package/build/build-esm/booking-wizard/features/travelers-form/validate-form.d.ts +2 -1
- package/build/build-esm/booking-wizard/index.d.ts +3 -2
- package/build/build-esm/booking-wizard/store.d.ts +23 -45
- package/build/build-esm/booking-wizard/types.d.ts +63 -11
- package/build/build-esm/booking-wizard/utils/query-string-util.d.ts +13 -0
- package/build/build-esm/index.js +11888 -2330
- package/package.json +8 -4
- package/rollup.config.js +1 -6
- package/src/booking-wizard/components/message.tsx +14 -8
- package/src/booking-wizard/components/product-card.tsx +10 -39
- package/src/booking-wizard/components/step-indicator.tsx +1 -1
- package/src/booking-wizard/components/step-route.tsx +1 -1
- package/src/booking-wizard/features/booking/api.ts +44 -0
- package/src/booking-wizard/features/booking/booking-slice.ts +274 -40
- package/src/booking-wizard/features/booking/booking.tsx +193 -57
- package/src/booking-wizard/features/booking/selectors.ts +328 -0
- package/src/booking-wizard/features/confirmation/confirmation.tsx +22 -11
- package/src/booking-wizard/features/error/error.tsx +15 -2
- package/src/booking-wizard/features/price-details/price-details-api.ts +12 -6
- package/src/booking-wizard/features/price-details/price-details-slice.ts +80 -50
- package/src/booking-wizard/features/price-details/util.ts +135 -0
- package/src/booking-wizard/features/product-options/no-options.tsx +18 -0
- package/src/booking-wizard/features/product-options/none-option.tsx +118 -0
- package/src/booking-wizard/features/product-options/option-booking-group.tsx +210 -0
- package/src/booking-wizard/features/product-options/option-item.tsx +321 -0
- package/src/booking-wizard/features/product-options/option-pax-card.tsx +102 -0
- package/src/booking-wizard/features/product-options/option-pax-group.tsx +169 -0
- package/src/booking-wizard/features/product-options/option-room.tsx +300 -0
- package/src/booking-wizard/features/product-options/option-unit-group.tsx +192 -0
- package/src/booking-wizard/features/product-options/option-units-card.tsx +100 -0
- package/src/booking-wizard/features/product-options/options-form.tsx +226 -48
- package/src/booking-wizard/features/sidebar/index.tsx +43 -20
- package/src/booking-wizard/features/sidebar/sidebar-flight.tsx +66 -0
- package/src/booking-wizard/features/sidebar/sidebar-util.ts +81 -39
- package/src/booking-wizard/features/sidebar/sidebar.tsx +150 -100
- package/src/booking-wizard/features/summary/summary-booking-option-pax.tsx +25 -0
- package/src/booking-wizard/features/summary/summary-booking-option-unit.tsx +25 -0
- package/src/booking-wizard/features/summary/summary-flight.tsx +35 -0
- package/src/booking-wizard/features/summary/summary-per-booking-option-group.tsx +57 -0
- package/src/booking-wizard/features/summary/summary-per-pax-option-group.tsx +51 -0
- package/src/booking-wizard/features/summary/summary-per-unit-option-group.tsx +54 -0
- package/src/booking-wizard/features/summary/summary-slice.ts +1 -134
- package/src/booking-wizard/features/summary/summary.tsx +521 -134
- package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +54 -55
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +202 -94
- package/src/booking-wizard/features/travelers-form/type-ahead-input.tsx +23 -3
- package/src/booking-wizard/features/travelers-form/validate-form.ts +40 -3
- package/src/booking-wizard/index.tsx +5 -6
- package/src/booking-wizard/settings-context.ts +33 -5
- package/src/booking-wizard/store.ts +5 -4
- package/src/booking-wizard/translations/translations.json +95 -61
- package/src/booking-wizard/types.ts +67 -10
- package/src/booking-wizard/utils/query-string-util.ts +42 -0
- package/build/build-cjs/booking-wizard/features/product-options/checkbox.d.ts +0 -11
- package/build/build-cjs/booking-wizard/features/product-options/option-details.d.ts +0 -11
- package/build/build-cjs/booking-wizard/features/product-options/product-options-api.d.ts +0 -29
- package/build/build-cjs/booking-wizard/features/product-options/product-options-slice.d.ts +0 -75
- package/build/build-cjs/booking-wizard/features/product-options/radio-button.d.ts +0 -10
- package/build/build-cjs/booking-wizard/features/product-options/rooms-slice.d.ts +0 -23
- package/build/build-cjs/booking-wizard/features/product-options/tree-level.d.ts +0 -7
- package/build/build-esm/booking-wizard/features/product-options/checkbox.d.ts +0 -11
- package/build/build-esm/booking-wizard/features/product-options/option-details.d.ts +0 -11
- package/build/build-esm/booking-wizard/features/product-options/product-options-api.d.ts +0 -29
- package/build/build-esm/booking-wizard/features/product-options/product-options-slice.d.ts +0 -75
- package/build/build-esm/booking-wizard/features/product-options/radio-button.d.ts +0 -10
- package/build/build-esm/booking-wizard/features/product-options/rooms-slice.d.ts +0 -23
- package/build/build-esm/booking-wizard/features/product-options/tree-level.d.ts +0 -7
- package/src/booking-wizard/features/product-options/checkbox.tsx +0 -38
- package/src/booking-wizard/features/product-options/option-details.tsx +0 -65
- package/src/booking-wizard/features/product-options/product-options-api.ts +0 -148
- package/src/booking-wizard/features/product-options/product-options-slice.ts +0 -149
- package/src/booking-wizard/features/product-options/radio-button.tsx +0 -35
- package/src/booking-wizard/features/product-options/rooms-slice.ts +0 -28
- package/src/booking-wizard/features/product-options/tree-level.tsx +0 -118
package/README.md
CHANGED
|
@@ -5,3 +5,4 @@ This is the unified Tide Booking Component.
|
|
|
5
5
|
## Remarks
|
|
6
6
|
|
|
7
7
|
Do not forget to sync React versions when you're doing local changes and when you try to test them in a local React project (check https://reactjs.org/warnings/invalid-hook-call-warning.html#duplicate-react).
|
|
8
|
+
If using the playground, after installing it's node modules execute the following command in the root folder `npm link ./playground/node_modules/react`
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
interface ProductCardProps {
|
|
3
3
|
productName: string;
|
|
4
|
-
productDescription?: string;
|
|
5
4
|
thumbnailUrl?: string;
|
|
6
|
-
|
|
5
|
+
handleToggleClick: () => void;
|
|
7
6
|
}
|
|
8
7
|
declare const ProductCard: React.FC<ProductCardProps>;
|
|
9
8
|
export default ProductCard;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BookingPackageRequest,
|
|
3
|
+
BookingPackageDetailsRequest,
|
|
4
|
+
BookingPackage,
|
|
5
|
+
BookingPackageBookRequest,
|
|
6
|
+
BookingPriceDetails,
|
|
7
|
+
BookingTravelAgent,
|
|
8
|
+
TideResponse,
|
|
9
|
+
} from "@qite/tide-client/build/types";
|
|
10
|
+
declare const packageApi: {
|
|
11
|
+
fetchDetails: (
|
|
12
|
+
request: BookingPackageRequest<BookingPackageDetailsRequest>,
|
|
13
|
+
signal: AbortSignal
|
|
14
|
+
) => Promise<TideResponse<BookingPackage>>;
|
|
15
|
+
fetchPriceDetails: (
|
|
16
|
+
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
17
|
+
signal: AbortSignal
|
|
18
|
+
) => Promise<BookingPriceDetails>;
|
|
19
|
+
fetchAgents: (signal: AbortSignal) => Promise<BookingTravelAgent[]>;
|
|
20
|
+
};
|
|
21
|
+
export default packageApi;
|
|
@@ -1,16 +1,54 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
BookingAttributes,
|
|
3
|
+
BookingOptions,
|
|
4
|
+
ProductAttributes,
|
|
5
|
+
} from "../../types";
|
|
6
|
+
import {
|
|
7
|
+
BookingOptionGroup,
|
|
8
|
+
BookingOptionPax,
|
|
9
|
+
BookingOptionUnit,
|
|
10
|
+
BookingPackage,
|
|
11
|
+
BookingPackageRoom,
|
|
12
|
+
BookingTravelAgent,
|
|
13
|
+
PerBookingPackageOption,
|
|
14
|
+
} from "@qite/tide-client/build/types";
|
|
3
15
|
export interface BookingState {
|
|
4
16
|
officeId: number;
|
|
5
17
|
productAttributes?: ProductAttributes;
|
|
6
18
|
bookingAttributes?: BookingAttributes;
|
|
7
|
-
|
|
19
|
+
calculateDeposit: boolean;
|
|
8
20
|
bookingNumber?: string;
|
|
21
|
+
isRetry: boolean;
|
|
22
|
+
package?: BookingPackage;
|
|
23
|
+
agents?: BookingTravelAgent[];
|
|
24
|
+
isBusy: boolean;
|
|
25
|
+
skipPaymentWithAgent: boolean;
|
|
26
|
+
generatePaymentUrl: boolean;
|
|
27
|
+
isUnavailable?: boolean;
|
|
28
|
+
tagIds?: number[];
|
|
29
|
+
agentAdressId?: number;
|
|
30
|
+
remarks?: string;
|
|
31
|
+
voucherCodes?: string[];
|
|
32
|
+
bookingOptions: BookingOptions;
|
|
33
|
+
bookingType: string;
|
|
9
34
|
}
|
|
35
|
+
export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<
|
|
36
|
+
void,
|
|
37
|
+
void,
|
|
38
|
+
{}
|
|
39
|
+
>;
|
|
10
40
|
export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
11
41
|
number,
|
|
12
42
|
string
|
|
13
43
|
>,
|
|
44
|
+
setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
45
|
+
BookingOptions,
|
|
46
|
+
string
|
|
47
|
+
>,
|
|
48
|
+
setBookingType: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
49
|
+
string,
|
|
50
|
+
string
|
|
51
|
+
>,
|
|
14
52
|
setProductAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
15
53
|
ProductAttributes,
|
|
16
54
|
string
|
|
@@ -19,28 +57,66 @@ export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPa
|
|
|
19
57
|
BookingAttributes,
|
|
20
58
|
string
|
|
21
59
|
>,
|
|
22
|
-
|
|
23
|
-
|
|
60
|
+
setCalculateDeposit: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
61
|
+
boolean,
|
|
24
62
|
string
|
|
25
63
|
>,
|
|
26
64
|
setBookingNumber: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
27
65
|
string,
|
|
28
66
|
string
|
|
67
|
+
>,
|
|
68
|
+
setIsRetry: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
69
|
+
boolean,
|
|
70
|
+
string
|
|
71
|
+
>,
|
|
72
|
+
setFetchingPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
73
|
+
boolean,
|
|
74
|
+
string
|
|
75
|
+
>,
|
|
76
|
+
setPackage: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
77
|
+
BookingPackage,
|
|
78
|
+
string
|
|
79
|
+
>,
|
|
80
|
+
setPackageRooms: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
81
|
+
BookingPackageRoom[],
|
|
82
|
+
string
|
|
83
|
+
>,
|
|
84
|
+
setPackageOptionPax: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
85
|
+
BookingOptionPax[],
|
|
86
|
+
string
|
|
87
|
+
>,
|
|
88
|
+
setPackageOptionUnits: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
89
|
+
BookingOptionUnit[],
|
|
90
|
+
string
|
|
91
|
+
>,
|
|
92
|
+
setPackageGroups: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
93
|
+
BookingOptionGroup<PerBookingPackageOption>[],
|
|
94
|
+
string
|
|
95
|
+
>,
|
|
96
|
+
setSkipPayment: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
97
|
+
boolean,
|
|
98
|
+
string
|
|
99
|
+
>,
|
|
100
|
+
setGeneratePaymentUrl: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
101
|
+
boolean,
|
|
102
|
+
string
|
|
103
|
+
>,
|
|
104
|
+
setTagIds: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
|
|
105
|
+
number[] | undefined,
|
|
106
|
+
string
|
|
107
|
+
>,
|
|
108
|
+
setAgentAdressId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
|
|
109
|
+
number | undefined,
|
|
110
|
+
string
|
|
111
|
+
>,
|
|
112
|
+
setBookingRemarks: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
113
|
+
string,
|
|
114
|
+
string
|
|
115
|
+
>,
|
|
116
|
+
setVoucherCodes: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
117
|
+
string[],
|
|
118
|
+
string
|
|
29
119
|
>;
|
|
30
|
-
export declare const selectOfficeId: (state: RootState) => number;
|
|
31
|
-
export declare const selectCacheKey: (state: RootState) => string | undefined;
|
|
32
|
-
export declare const selectProductAttributes: (
|
|
33
|
-
state: RootState
|
|
34
|
-
) => ProductAttributes | undefined;
|
|
35
|
-
export declare const selectBookingAttributes: (
|
|
36
|
-
state: RootState
|
|
37
|
-
) => BookingAttributes | undefined;
|
|
38
|
-
export declare const selectBookingNumber: (
|
|
39
|
-
state: RootState
|
|
40
|
-
) => string | undefined;
|
|
41
|
-
export declare const selectBookingQueryString: (
|
|
42
|
-
state: RootState
|
|
43
|
-
) => string | undefined;
|
|
44
120
|
declare const _default: import("redux").Reducer<
|
|
45
121
|
BookingState,
|
|
46
122
|
import("redux").AnyAction
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BookingPackageAddress,
|
|
3
|
+
BookingPackageBookRequest,
|
|
4
|
+
BookingPackagePax,
|
|
5
|
+
BookingPackageRequest,
|
|
6
|
+
} from "@qite/tide-client/build/types/offer";
|
|
7
|
+
import { RootState } from "../../store";
|
|
8
|
+
import { Room } from "../../types";
|
|
9
|
+
export declare const selectGeneratePaymentUrl: (state: RootState) => boolean;
|
|
10
|
+
export declare const selectSkipPaymentWithAgent: (state: RootState) => boolean;
|
|
11
|
+
export declare const selectIsFetchingProductOptions: (
|
|
12
|
+
state: RootState
|
|
13
|
+
) => boolean;
|
|
14
|
+
export declare const selectDepartureFlight: (
|
|
15
|
+
state: RootState
|
|
16
|
+
) =>
|
|
17
|
+
| import("@qite/tide-client/build/types/offer").BookingPackageFlight
|
|
18
|
+
| undefined;
|
|
19
|
+
export declare const selectReturnFlight: (
|
|
20
|
+
state: RootState
|
|
21
|
+
) =>
|
|
22
|
+
| import("@qite/tide-client/build/types/offer").BookingPackageFlight
|
|
23
|
+
| undefined;
|
|
24
|
+
export declare const selectPackageRooms: (
|
|
25
|
+
state: RootState
|
|
26
|
+
) =>
|
|
27
|
+
| import("@qite/tide-client/build/types/offer").BookingPackageRoom[]
|
|
28
|
+
| undefined;
|
|
29
|
+
export declare const selectIsOnRequest: (
|
|
30
|
+
state: RootState
|
|
31
|
+
) => boolean | undefined;
|
|
32
|
+
export declare const selectPackageOptionUnits: (
|
|
33
|
+
state: RootState
|
|
34
|
+
) =>
|
|
35
|
+
| import("@qite/tide-client/build/types/offer").BookingOptionUnit[]
|
|
36
|
+
| undefined;
|
|
37
|
+
export declare const selectPackageOptionPax: (
|
|
38
|
+
state: RootState
|
|
39
|
+
) =>
|
|
40
|
+
| import("@qite/tide-client/build/types/offer").BookingOptionPax[]
|
|
41
|
+
| undefined;
|
|
42
|
+
export declare const selectPackageGroups: (
|
|
43
|
+
state: RootState
|
|
44
|
+
) =>
|
|
45
|
+
| import("@qite/tide-client/build/types/offer").BookingOptionGroup<
|
|
46
|
+
import("@qite/tide-client/build/types/offer").PerBookingPackageOption
|
|
47
|
+
>[]
|
|
48
|
+
| undefined;
|
|
49
|
+
export declare const selectPackageDetails: (
|
|
50
|
+
state: RootState
|
|
51
|
+
) => import("@qite/tide-client/build/types/offer").BookingPackage | undefined;
|
|
52
|
+
export declare const selectActiveOption: (
|
|
53
|
+
state: RootState
|
|
54
|
+
) =>
|
|
55
|
+
| import("@qite/tide-client/build/types/offer/booking-v2/shared/booking-package-option").BookingPackageOption
|
|
56
|
+
| undefined;
|
|
57
|
+
export declare const selectIsUnavailable: (
|
|
58
|
+
state: RootState
|
|
59
|
+
) => boolean | undefined;
|
|
60
|
+
export declare const selectRequestRooms: (
|
|
61
|
+
state: RootState
|
|
62
|
+
) =>
|
|
63
|
+
| import("@qite/tide-client/build/types/offer").BookingPackageRequestRoom[]
|
|
64
|
+
| undefined;
|
|
65
|
+
export declare const selectOfficeId: (state: RootState) => number;
|
|
66
|
+
export declare const selectBookingOptions: (
|
|
67
|
+
state: RootState
|
|
68
|
+
) => import("../../types").BookingOptions;
|
|
69
|
+
export declare const selectBookingType: (state: RootState) => string;
|
|
70
|
+
export declare const selectTagIds: (state: RootState) => number[] | undefined;
|
|
71
|
+
export declare const selectAgentAdressId: (
|
|
72
|
+
state: RootState
|
|
73
|
+
) => number | undefined;
|
|
74
|
+
export declare const selectProductAttributes: (
|
|
75
|
+
state: RootState
|
|
76
|
+
) => import("../../types").ProductAttributes | undefined;
|
|
77
|
+
export declare const selectBookingAttributes: (
|
|
78
|
+
state: RootState
|
|
79
|
+
) => import("../../types").BookingAttributes | undefined;
|
|
80
|
+
export declare const selectBookingNumber: (
|
|
81
|
+
state: RootState
|
|
82
|
+
) => string | undefined;
|
|
83
|
+
export declare const selectBookingRooms: (
|
|
84
|
+
state: RootState
|
|
85
|
+
) => Room[] | undefined;
|
|
86
|
+
export declare const selectBookingRemarks: (
|
|
87
|
+
state: RootState
|
|
88
|
+
) => string | undefined;
|
|
89
|
+
export declare const selectVoucherCodes: (
|
|
90
|
+
state: RootState
|
|
91
|
+
) => string[] | undefined;
|
|
92
|
+
export declare const selectCalculateDeposit: (state: RootState) => boolean;
|
|
93
|
+
export declare const selectIsRetry: (state: RootState) => boolean;
|
|
94
|
+
export declare const selectStartDate: (state: RootState) => string | undefined;
|
|
95
|
+
export declare const selectAgents: (
|
|
96
|
+
state: RootState
|
|
97
|
+
) =>
|
|
98
|
+
| import("@qite/tide-client/build/types/offer").BookingTravelAgent[]
|
|
99
|
+
| undefined;
|
|
100
|
+
export declare const selectBookingQuery: (
|
|
101
|
+
state: RootState
|
|
102
|
+
) => Record<string, string> | undefined;
|
|
103
|
+
export declare const selectBookingQueryString: ((state: {
|
|
104
|
+
booking: import("./booking-slice").BookingState;
|
|
105
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
106
|
+
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
107
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
108
|
+
}) => string | undefined) &
|
|
109
|
+
import("reselect").OutputSelectorFields<
|
|
110
|
+
(args_0: Record<string, string> | undefined) => string & {
|
|
111
|
+
clearCache: () => void;
|
|
112
|
+
}
|
|
113
|
+
> & {
|
|
114
|
+
clearCache: () => void;
|
|
115
|
+
};
|
|
116
|
+
export declare const selectMainBookerId: ((state: {
|
|
117
|
+
booking: import("./booking-slice").BookingState;
|
|
118
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
119
|
+
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
120
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
121
|
+
}) => number | undefined) &
|
|
122
|
+
import("reselect").OutputSelectorFields<
|
|
123
|
+
(
|
|
124
|
+
args_0: import("../../types").TravelersFormValues | undefined
|
|
125
|
+
) => number & {
|
|
126
|
+
clearCache: () => void;
|
|
127
|
+
}
|
|
128
|
+
> & {
|
|
129
|
+
clearCache: () => void;
|
|
130
|
+
};
|
|
131
|
+
export declare const selectBookingPackagePax: ((state: {
|
|
132
|
+
booking: import("./booking-slice").BookingState;
|
|
133
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
134
|
+
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
135
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
136
|
+
}) => BookingPackagePax[]) &
|
|
137
|
+
import("reselect").OutputSelectorFields<
|
|
138
|
+
(
|
|
139
|
+
args_0: import("../../types").TravelersFormValues | undefined
|
|
140
|
+
) => BookingPackagePax[] & {
|
|
141
|
+
clearCache: () => void;
|
|
142
|
+
}
|
|
143
|
+
> & {
|
|
144
|
+
clearCache: () => void;
|
|
145
|
+
};
|
|
146
|
+
export declare const selectBookingAddress: ((state: {
|
|
147
|
+
booking: import("./booking-slice").BookingState;
|
|
148
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
149
|
+
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
150
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
151
|
+
}) => BookingPackageAddress | undefined) &
|
|
152
|
+
import("reselect").OutputSelectorFields<
|
|
153
|
+
(
|
|
154
|
+
args_0: import("../../types").TravelersFormValues | undefined,
|
|
155
|
+
args_1: BookingPackagePax[]
|
|
156
|
+
) => BookingPackageAddress & {
|
|
157
|
+
clearCache: () => void;
|
|
158
|
+
}
|
|
159
|
+
> & {
|
|
160
|
+
clearCache: () => void;
|
|
161
|
+
};
|
|
162
|
+
export declare const selectBookingPackageRequest: ((state: {
|
|
163
|
+
booking: import("./booking-slice").BookingState;
|
|
164
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
165
|
+
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
166
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
167
|
+
}) => BookingPackageRequest<any>) &
|
|
168
|
+
import("reselect").OutputSelectorFields<
|
|
169
|
+
(
|
|
170
|
+
args_0: number,
|
|
171
|
+
args_1: number | undefined,
|
|
172
|
+
args_2: number | undefined
|
|
173
|
+
) => BookingPackageRequest<any> & {
|
|
174
|
+
clearCache: () => void;
|
|
175
|
+
}
|
|
176
|
+
> & {
|
|
177
|
+
clearCache: () => void;
|
|
178
|
+
};
|
|
179
|
+
export declare const selectBookingPackageBookRequest: ((state: {
|
|
180
|
+
booking: import("./booking-slice").BookingState;
|
|
181
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
182
|
+
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
183
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
184
|
+
}) => BookingPackageRequest<BookingPackageBookRequest> | null) &
|
|
185
|
+
import("reselect").OutputSelectorFields<
|
|
186
|
+
(
|
|
187
|
+
args_0: BookingPackageRequest<any>,
|
|
188
|
+
args_1: import("../../types").BookingOptions,
|
|
189
|
+
args_2: string,
|
|
190
|
+
args_3: BookingPackagePax[],
|
|
191
|
+
args_4: BookingPackageAddress | undefined,
|
|
192
|
+
args_5:
|
|
193
|
+
| import("@qite/tide-client/build/types/offer").BookingPackage
|
|
194
|
+
| undefined,
|
|
195
|
+
args_6: boolean,
|
|
196
|
+
args_7: number | undefined,
|
|
197
|
+
args_8: boolean,
|
|
198
|
+
args_9: boolean,
|
|
199
|
+
args_10: import("@qite/tide-client/build/types/offer").BookingProductNotification[],
|
|
200
|
+
args_11: number[] | undefined,
|
|
201
|
+
args_12: string | undefined,
|
|
202
|
+
args_13: string[] | undefined
|
|
203
|
+
) => BookingPackageRequest<BookingPackageBookRequest> & {
|
|
204
|
+
clearCache: () => void;
|
|
205
|
+
}
|
|
206
|
+
> & {
|
|
207
|
+
clearCache: () => void;
|
|
208
|
+
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import {
|
|
2
|
+
BookingPackageBookRequest,
|
|
3
|
+
BookingPackageRequest,
|
|
4
|
+
BookingPriceDetails,
|
|
5
|
+
} from "@qite/tide-client/build/types";
|
|
5
6
|
declare const priceDetailsApi: {
|
|
6
7
|
fetchPriceDetails: (
|
|
7
|
-
request:
|
|
8
|
-
|
|
8
|
+
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
9
|
+
signal: AbortSignal
|
|
10
|
+
) => Promise<BookingPriceDetails>;
|
|
9
11
|
};
|
|
10
12
|
export default priceDetailsApi;
|
|
@@ -1,37 +1,105 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RootState } from "../../store";
|
|
2
|
+
import {
|
|
3
|
+
BookingPriceDetail,
|
|
4
|
+
BookingPriceDetails,
|
|
5
|
+
BookingProductNotification,
|
|
6
|
+
} from "@qite/tide-client/build/types";
|
|
7
|
+
export interface PriceDetailsState {
|
|
8
|
+
priceDetails: BookingPriceDetail[];
|
|
9
|
+
notifications: BookingProductNotification[];
|
|
10
|
+
deposit?: number;
|
|
11
|
+
isBusy: boolean;
|
|
12
|
+
}
|
|
2
13
|
export declare const fetchPriceDetails: import("@reduxjs/toolkit").AsyncThunk<
|
|
3
|
-
|
|
4
|
-
|
|
14
|
+
BookingPriceDetails,
|
|
15
|
+
void,
|
|
5
16
|
{}
|
|
6
17
|
>;
|
|
7
|
-
export declare const selectPriceDetails: (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
(
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
export declare const selectPriceDetails: (
|
|
19
|
+
state: RootState
|
|
20
|
+
) => BookingPriceDetail[];
|
|
21
|
+
export declare const selectPackagePriceDetails: ((state: {
|
|
22
|
+
booking: import("../booking/booking-slice").BookingState;
|
|
23
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
24
|
+
priceDetails: PriceDetailsState;
|
|
25
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
26
|
+
}) => BookingPriceDetail[]) &
|
|
27
|
+
import("reselect").OutputSelectorFields<
|
|
28
|
+
(args_0: BookingPriceDetail[]) => BookingPriceDetail[] & {
|
|
29
|
+
clearCache: () => void;
|
|
30
|
+
}
|
|
31
|
+
> & {
|
|
32
|
+
clearCache: () => void;
|
|
33
|
+
};
|
|
34
|
+
export declare const selectSeparatePackagePriceDetails: ((state: {
|
|
35
|
+
booking: import("../booking/booking-slice").BookingState;
|
|
36
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
37
|
+
priceDetails: PriceDetailsState;
|
|
38
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
39
|
+
}) => BookingPriceDetail[]) &
|
|
40
|
+
import("reselect").OutputSelectorFields<
|
|
41
|
+
(args_0: BookingPriceDetail[]) => BookingPriceDetail[] & {
|
|
42
|
+
clearCache: () => void;
|
|
43
|
+
}
|
|
44
|
+
> & {
|
|
45
|
+
clearCache: () => void;
|
|
46
|
+
};
|
|
47
|
+
export declare const selectBasePrice: ((state: {
|
|
48
|
+
booking: import("../booking/booking-slice").BookingState;
|
|
49
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
50
|
+
priceDetails: PriceDetailsState;
|
|
51
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
52
|
+
}) => number) &
|
|
53
|
+
import("reselect").OutputSelectorFields<
|
|
54
|
+
(args_0: BookingPriceDetail[]) => number & {
|
|
55
|
+
clearCache: () => void;
|
|
56
|
+
}
|
|
57
|
+
> & {
|
|
58
|
+
clearCache: () => void;
|
|
59
|
+
};
|
|
60
|
+
export declare const selectSeparateExtraPriceDetails: ((state: {
|
|
61
|
+
booking: import("../booking/booking-slice").BookingState;
|
|
62
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
63
|
+
priceDetails: PriceDetailsState;
|
|
64
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
65
|
+
}) => BookingPriceDetail[]) &
|
|
66
|
+
import("reselect").OutputSelectorFields<
|
|
67
|
+
(args_0: BookingPriceDetail[]) => BookingPriceDetail[] & {
|
|
68
|
+
clearCache: () => void;
|
|
69
|
+
}
|
|
70
|
+
> & {
|
|
71
|
+
clearCache: () => void;
|
|
72
|
+
};
|
|
73
|
+
export declare const selectTotalPrice: ((state: {
|
|
74
|
+
booking: import("../booking/booking-slice").BookingState;
|
|
75
|
+
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
76
|
+
priceDetails: PriceDetailsState;
|
|
77
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
78
|
+
}) => number) &
|
|
79
|
+
import("reselect").OutputSelectorFields<
|
|
80
|
+
(
|
|
81
|
+
args_0: number,
|
|
82
|
+
args_1: BookingPriceDetail[]
|
|
83
|
+
) => number & {
|
|
84
|
+
clearCache: () => void;
|
|
85
|
+
}
|
|
86
|
+
> & {
|
|
87
|
+
clearCache: () => void;
|
|
88
|
+
};
|
|
89
|
+
export declare const selectDeposit: (state: RootState) => number | undefined;
|
|
90
|
+
export declare const selectIsFetchingPriceDetails: (
|
|
91
|
+
state: RootState
|
|
92
|
+
) => boolean;
|
|
93
|
+
export declare const selectNotifications: (
|
|
94
|
+
state: RootState
|
|
95
|
+
) => BookingProductNotification[];
|
|
96
|
+
export declare const resetPriceDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>,
|
|
97
|
+
setNotifications: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
98
|
+
BookingProductNotification[],
|
|
99
|
+
string
|
|
100
|
+
>;
|
|
33
101
|
declare const _default: import("redux").Reducer<
|
|
34
|
-
|
|
102
|
+
PriceDetailsState,
|
|
35
103
|
import("redux").AnyAction
|
|
36
104
|
>;
|
|
37
105
|
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BookingOptionGroup,
|
|
3
|
+
PerBookingPackageOption,
|
|
4
|
+
PerPaxPackageOption,
|
|
5
|
+
PerUnitPackageOption,
|
|
6
|
+
} from "@qite/tide-client/build/types";
|
|
7
|
+
import React from "react";
|
|
8
|
+
interface NoneOptionProps {
|
|
9
|
+
group:
|
|
10
|
+
| BookingOptionGroup<PerBookingPackageOption>
|
|
11
|
+
| BookingOptionGroup<PerUnitPackageOption>
|
|
12
|
+
| BookingOptionGroup<PerPaxPackageOption>;
|
|
13
|
+
parentId: string;
|
|
14
|
+
handleNoneSelectionChanged: () => void;
|
|
15
|
+
}
|
|
16
|
+
declare const NoneOption: React.FC<NoneOptionProps>;
|
|
17
|
+
export default NoneOption;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BookingOptionGroup,
|
|
3
|
+
PerBookingPackageOption,
|
|
4
|
+
} from "@qite/tide-client/build/types";
|
|
5
|
+
import React from "react";
|
|
6
|
+
interface OptionBookingGroupProps {
|
|
7
|
+
optionId?: string;
|
|
8
|
+
group: BookingOptionGroup<PerBookingPackageOption>;
|
|
9
|
+
firstClassName: string;
|
|
10
|
+
secondClassName: string;
|
|
11
|
+
parentId: string;
|
|
12
|
+
onGroupChange?: (
|
|
13
|
+
group: BookingOptionGroup<PerBookingPackageOption>,
|
|
14
|
+
optionId?: string
|
|
15
|
+
) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const OptionBookingGroup: React.FC<OptionBookingGroupProps>;
|
|
18
|
+
export default OptionBookingGroup;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PerPackageOption } from "@qite/tide-client/build/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface OptionItemProps {
|
|
4
|
+
option: PerPackageOption;
|
|
5
|
+
parentId: string;
|
|
6
|
+
index: number;
|
|
7
|
+
selectedPrice: number;
|
|
8
|
+
onOptionChange?: (option: PerPackageOption, index: number) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const OptionItem: React.FC<OptionItemProps>;
|
|
11
|
+
export default OptionItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BookingOptionPax } from "@qite/tide-client/build/types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface OptionPaxCardProps {
|
|
4
|
+
pax: BookingOptionPax[];
|
|
5
|
+
parentIndex?: number;
|
|
6
|
+
onPaxChange?: (pax: BookingOptionPax[], index?: number) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const OptionPaxCard: React.FC<OptionPaxCardProps>;
|
|
9
|
+
export default OptionPaxCard;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BookingOptionGroup,
|
|
3
|
+
PerPaxPackageOption,
|
|
4
|
+
} from "@qite/tide-client/build/types";
|
|
5
|
+
import React from "react";
|
|
6
|
+
interface OptionPaxGroupProps {
|
|
7
|
+
paxId: number;
|
|
8
|
+
optionId?: string;
|
|
9
|
+
group: BookingOptionGroup<PerPaxPackageOption>;
|
|
10
|
+
firstClassName: string;
|
|
11
|
+
secondClassName: string;
|
|
12
|
+
parentId: string;
|
|
13
|
+
onGroupChange?: (
|
|
14
|
+
group: BookingOptionGroup<PerPaxPackageOption>,
|
|
15
|
+
paxId: number,
|
|
16
|
+
optionId?: string
|
|
17
|
+
) => void;
|
|
18
|
+
}
|
|
19
|
+
declare const OptionPaxGroup: React.FC<OptionPaxGroupProps>;
|
|
20
|
+
export default OptionPaxGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BookingPackagePax,
|
|
3
|
+
BookingPackageRoom,
|
|
4
|
+
} from "@qite/tide-client/build/types";
|
|
5
|
+
import React from "react";
|
|
6
|
+
interface OptionRoomProps {
|
|
7
|
+
packageRoom: BookingPackageRoom;
|
|
8
|
+
pax: BookingPackagePax[];
|
|
9
|
+
onRoomChange: (
|
|
10
|
+
index: number,
|
|
11
|
+
accommodationCode: string,
|
|
12
|
+
regimeCode: string
|
|
13
|
+
) => void;
|
|
14
|
+
}
|
|
15
|
+
declare const OptionRoom: React.FC<OptionRoomProps>;
|
|
16
|
+
export default OptionRoom;
|