@qite/tide-booking-component 0.0.2-preview.8 → 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/icon.d.ts +7 -7
- package/build/build-cjs/booking-wizard/components/labeled-input.d.ts +18 -18
- package/build/build-cjs/booking-wizard/components/labeled-select.d.ts +21 -21
- package/build/build-cjs/booking-wizard/components/message.d.ts +9 -8
- package/build/build-cjs/booking-wizard/components/product-card.d.ts +8 -9
- package/build/build-cjs/booking-wizard/components/rating.d.ts +6 -6
- package/build/build-cjs/booking-wizard/components/step-indicator.d.ts +6 -6
- package/build/build-cjs/booking-wizard/components/step-route.d.ts +9 -9
- 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 +124 -18
- package/build/build-cjs/booking-wizard/features/booking/booking.d.ts +8 -9
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +208 -0
- package/build/build-cjs/booking-wizard/features/confirmation/confirmation.d.ts +4 -5
- package/build/build-cjs/booking-wizard/features/error/error.d.ts +4 -5
- package/build/build-cjs/booking-wizard/features/price-details/price-details-api.d.ts +12 -6
- package/build/build-cjs/booking-wizard/features/price-details/price-details-slice.d.ts +105 -10
- 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/product-options/options-form.d.ts +4 -5
- package/build/build-cjs/booking-wizard/features/product-options/validate-form.d.ts +2 -2
- package/build/build-cjs/booking-wizard/features/sidebar/index.d.ts +7 -3
- 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 +28 -4
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar.d.ts +29 -21
- 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 +14 -17
- package/build/build-cjs/booking-wizard/features/summary/summary.d.ts +4 -5
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +95 -45
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form.d.ts +4 -5
- package/build/build-cjs/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -15
- package/build/build-cjs/booking-wizard/features/travelers-form/validate-form.d.ts +7 -4
- package/build/build-cjs/booking-wizard/index.d.ts +12 -11
- package/build/build-cjs/booking-wizard/settings-context.d.ts +5 -6
- package/build/build-cjs/booking-wizard/store.d.ts +41 -25
- package/build/build-cjs/booking-wizard/types.d.ts +111 -59
- package/build/build-cjs/booking-wizard/utils/class-util.d.ts +1 -1
- package/build/build-cjs/booking-wizard/utils/localization-util.d.ts +1 -1
- package/build/build-cjs/booking-wizard/utils/query-string-util.d.ts +21 -2
- package/build/build-cjs/booking-wizard/utils/tide-api-utils.d.ts +2 -2
- package/build/build-cjs/index.d.ts +2 -2
- package/build/build-cjs/index.js +13642 -1886
- package/build/build-esm/booking-wizard/components/icon.d.ts +7 -7
- package/build/build-esm/booking-wizard/components/labeled-input.d.ts +18 -18
- package/build/build-esm/booking-wizard/components/labeled-select.d.ts +21 -21
- package/build/build-esm/booking-wizard/components/message.d.ts +9 -8
- package/build/build-esm/booking-wizard/components/product-card.d.ts +8 -9
- package/build/build-esm/booking-wizard/components/rating.d.ts +6 -6
- package/build/build-esm/booking-wizard/components/step-indicator.d.ts +6 -6
- package/build/build-esm/booking-wizard/components/step-route.d.ts +9 -9
- 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 +124 -18
- package/build/build-esm/booking-wizard/features/booking/booking.d.ts +8 -9
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +208 -0
- package/build/build-esm/booking-wizard/features/confirmation/confirmation.d.ts +4 -5
- package/build/build-esm/booking-wizard/features/error/error.d.ts +4 -5
- package/build/build-esm/booking-wizard/features/price-details/price-details-api.d.ts +12 -6
- package/build/build-esm/booking-wizard/features/price-details/price-details-slice.d.ts +105 -10
- 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/product-options/options-form.d.ts +4 -5
- package/build/build-esm/booking-wizard/features/product-options/validate-form.d.ts +2 -2
- package/build/build-esm/booking-wizard/features/sidebar/index.d.ts +7 -3
- 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 +28 -4
- package/build/build-esm/booking-wizard/features/sidebar/sidebar.d.ts +29 -21
- 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 +14 -17
- package/build/build-esm/booking-wizard/features/summary/summary.d.ts +4 -5
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +95 -45
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form.d.ts +4 -5
- package/build/build-esm/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -15
- package/build/build-esm/booking-wizard/features/travelers-form/validate-form.d.ts +7 -4
- package/build/build-esm/booking-wizard/index.d.ts +12 -11
- package/build/build-esm/booking-wizard/settings-context.d.ts +5 -6
- package/build/build-esm/booking-wizard/store.d.ts +41 -25
- package/build/build-esm/booking-wizard/types.d.ts +111 -59
- package/build/build-esm/booking-wizard/utils/class-util.d.ts +1 -1
- package/build/build-esm/booking-wizard/utils/localization-util.d.ts +1 -1
- package/build/build-esm/booking-wizard/utils/query-string-util.d.ts +21 -2
- package/build/build-esm/booking-wizard/utils/tide-api-utils.d.ts +2 -2
- package/build/build-esm/index.d.ts +2 -2
- package/build/build-esm/index.js +13478 -1875
- 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 +55 -56
- 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 -26
- package/build/build-cjs/booking-wizard/features/product-options/product-options-slice.d.ts +0 -37
- 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 -12
- 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 -26
- package/build/build-esm/booking-wizard/features/product-options/product-options-slice.d.ts +0 -37
- 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 -12
- 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,7 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface IconProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
declare const Icon: React.FC<IconProps>;
|
|
7
|
-
export default Icon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface IconProps {
|
|
3
|
+
name: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const Icon: React.FC<IconProps>;
|
|
7
|
+
export default Icon;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface LabeledInputProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
declare const LabeledInput: React.FC<LabeledInputProps>;
|
|
18
|
-
export default LabeledInput;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface LabeledInputProps {
|
|
3
|
+
name: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
min?: string | number;
|
|
9
|
+
max?: string | number;
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
hasError?: boolean;
|
|
13
|
+
extraClassName?: string;
|
|
14
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
15
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
16
|
+
}
|
|
17
|
+
declare const LabeledInput: React.FC<LabeledInputProps>;
|
|
18
|
+
export default LabeledInput;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface LabeledSelectProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
declare const LabeledSelect: React.FC<LabeledSelectProps>;
|
|
21
|
-
export default LabeledSelect;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface LabeledSelectProps {
|
|
3
|
+
name: string;
|
|
4
|
+
id?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
defaultValue?: string | number;
|
|
8
|
+
label?: string;
|
|
9
|
+
hasError?: boolean;
|
|
10
|
+
extraClassName?: string;
|
|
11
|
+
extraDropdownClassName?: string;
|
|
12
|
+
options?: {
|
|
13
|
+
key: string;
|
|
14
|
+
value: string | number | undefined;
|
|
15
|
+
label: string;
|
|
16
|
+
}[];
|
|
17
|
+
onChange?: React.ChangeEventHandler<HTMLSelectElement>;
|
|
18
|
+
onBlur?: React.FocusEventHandler<HTMLSelectElement>;
|
|
19
|
+
}
|
|
20
|
+
declare const LabeledSelect: React.FC<LabeledSelectProps>;
|
|
21
|
+
export default LabeledSelect;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface MessageProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface MessageProps {
|
|
3
|
+
type: "error" | "success";
|
|
4
|
+
title: string;
|
|
5
|
+
actionComponent?: JSX.Element;
|
|
6
|
+
children?: JSX.Element | JSX.Element[];
|
|
7
|
+
}
|
|
8
|
+
declare const Message: React.FC<MessageProps>;
|
|
9
|
+
export default Message;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ProductCardProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default ProductCard;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ProductCardProps {
|
|
3
|
+
productName: string;
|
|
4
|
+
thumbnailUrl?: string;
|
|
5
|
+
handleToggleClick: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ProductCard: React.FC<ProductCardProps>;
|
|
8
|
+
export default ProductCard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface RatingProps {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const Rating: React.FC<RatingProps>;
|
|
6
|
-
export default Rating;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface RatingProps {
|
|
3
|
+
rating: number;
|
|
4
|
+
}
|
|
5
|
+
declare const Rating: React.FC<RatingProps>;
|
|
6
|
+
export default Rating;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface StepIndicatorsProps {
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
declare const StepIndicators: React.FC<StepIndicatorsProps>;
|
|
6
|
-
export default StepIndicators;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface StepIndicatorsProps {
|
|
3
|
+
currentStep: number;
|
|
4
|
+
}
|
|
5
|
+
declare const StepIndicators: React.FC<StepIndicatorsProps>;
|
|
6
|
+
export default StepIndicators;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface StepRoute {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
declare const StepRoute: React.FC<StepRoute>;
|
|
9
|
-
export default StepRoute;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface StepRoute {
|
|
3
|
+
path: string;
|
|
4
|
+
number: number;
|
|
5
|
+
title: string;
|
|
6
|
+
component: JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
declare const StepRoute: React.FC<StepRoute>;
|
|
9
|
+
export default StepRoute;
|
|
@@ -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,18 +1,124 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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";
|
|
15
|
+
export interface BookingState {
|
|
16
|
+
officeId: number;
|
|
17
|
+
productAttributes?: ProductAttributes;
|
|
18
|
+
bookingAttributes?: BookingAttributes;
|
|
19
|
+
calculateDeposit: boolean;
|
|
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;
|
|
34
|
+
}
|
|
35
|
+
export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<
|
|
36
|
+
void,
|
|
37
|
+
void,
|
|
38
|
+
{}
|
|
39
|
+
>;
|
|
40
|
+
export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
41
|
+
number,
|
|
42
|
+
string
|
|
43
|
+
>,
|
|
44
|
+
setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
45
|
+
BookingOptions,
|
|
46
|
+
string
|
|
47
|
+
>,
|
|
48
|
+
setBookingType: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
49
|
+
string,
|
|
50
|
+
string
|
|
51
|
+
>,
|
|
52
|
+
setProductAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
53
|
+
ProductAttributes,
|
|
54
|
+
string
|
|
55
|
+
>,
|
|
56
|
+
setBookingAttributes: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
57
|
+
BookingAttributes,
|
|
58
|
+
string
|
|
59
|
+
>,
|
|
60
|
+
setCalculateDeposit: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
61
|
+
boolean,
|
|
62
|
+
string
|
|
63
|
+
>,
|
|
64
|
+
setBookingNumber: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
65
|
+
string,
|
|
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
|
|
119
|
+
>;
|
|
120
|
+
declare const _default: import("redux").Reducer<
|
|
121
|
+
BookingState,
|
|
122
|
+
import("redux").AnyAction
|
|
123
|
+
>;
|
|
124
|
+
export default _default;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface BookingProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export default Booking;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BookingProps {
|
|
3
|
+
productCode: string;
|
|
4
|
+
productName: string;
|
|
5
|
+
thumbnailUrl?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const Booking: React.FC<BookingProps>;
|
|
8
|
+
export default Booking;
|
|
@@ -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,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ConfirmationProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default Confirmation;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ConfirmationProps {}
|
|
3
|
+
declare const Confirmation: React.FC<ConfirmationProps>;
|
|
4
|
+
export default Confirmation;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ErrorProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export default Error;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ErrorProps {}
|
|
3
|
+
declare const Error: React.FC<ErrorProps>;
|
|
4
|
+
export default Error;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
6
|
-
|
|
1
|
+
import {
|
|
2
|
+
BookingPackageBookRequest,
|
|
3
|
+
BookingPackageRequest,
|
|
4
|
+
BookingPriceDetails,
|
|
5
|
+
} from "@qite/tide-client/build/types";
|
|
6
|
+
declare const priceDetailsApi: {
|
|
7
|
+
fetchPriceDetails: (
|
|
8
|
+
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
9
|
+
signal: AbortSignal
|
|
10
|
+
) => Promise<BookingPriceDetails>;
|
|
11
|
+
};
|
|
12
|
+
export default priceDetailsApi;
|