@qite/tide-booking-component 1.0.21 → 1.0.23
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/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 -9
- package/build/build-cjs/booking-wizard/components/product-card.d.ts +8 -8
- 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 +7 -21
- package/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +26 -124
- package/build/build-cjs/booking-wizard/features/booking/booking.d.ts +8 -8
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +94 -214
- package/build/build-cjs/booking-wizard/features/confirmation/confirmation.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/error/error.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/price-details/price-details-api.d.ts +5 -12
- package/build/build-cjs/booking-wizard/features/price-details/price-details-slice.d.ts +66 -105
- package/build/build-cjs/booking-wizard/features/price-details/util.d.ts +2 -5
- package/build/build-cjs/booking-wizard/features/product-options/no-options.d.ts +2 -2
- package/build/build-cjs/booking-wizard/features/product-options/none-option.d.ts +9 -17
- package/build/build-cjs/booking-wizard/features/product-options/option-booking-group.d.ts +12 -18
- package/build/build-cjs/booking-wizard/features/product-options/option-item.d.ts +11 -11
- package/build/build-cjs/booking-wizard/features/product-options/option-pax-card.d.ts +10 -13
- package/build/build-cjs/booking-wizard/features/product-options/option-pax-group.d.ts +13 -20
- package/build/build-cjs/booking-wizard/features/product-options/option-room.d.ts +10 -18
- package/build/build-cjs/booking-wizard/features/product-options/option-unit-group.d.ts +13 -20
- package/build/build-cjs/booking-wizard/features/product-options/option-units-card.d.ts +9 -9
- package/build/build-cjs/booking-wizard/features/product-options/options-form.d.ts +5 -4
- 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 -7
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -8
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-util.d.ts +9 -28
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar.d.ts +25 -29
- package/build/build-cjs/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -7
- package/build/build-cjs/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -7
- package/build/build-cjs/booking-wizard/features/summary/summary-flight.d.ts +8 -8
- package/build/build-cjs/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +7 -10
- package/build/build-cjs/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +7 -10
- package/build/build-cjs/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +7 -10
- package/build/build-cjs/booking-wizard/features/summary/summary-slice.d.ts +8 -14
- package/build/build-cjs/booking-wizard/features/summary/summary.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +60 -95
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form.d.ts +5 -4
- package/build/build-cjs/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -16
- package/build/build-cjs/booking-wizard/features/travelers-form/validate-form.d.ts +4 -8
- package/build/build-cjs/booking-wizard/index.d.ts +12 -12
- package/build/build-cjs/booking-wizard/settings-context.d.ts +6 -5
- package/build/build-cjs/booking-wizard/store.d.ts +21 -41
- package/build/build-cjs/booking-wizard/types.d.ts +124 -124
- 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 +7 -25
- 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 +3408 -7830
- 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 -9
- package/build/build-esm/booking-wizard/components/product-card.d.ts +8 -8
- 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 +7 -21
- package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +26 -124
- package/build/build-esm/booking-wizard/features/booking/booking.d.ts +8 -8
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +94 -214
- package/build/build-esm/booking-wizard/features/confirmation/confirmation.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/error/error.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/price-details/price-details-api.d.ts +5 -12
- package/build/build-esm/booking-wizard/features/price-details/price-details-slice.d.ts +66 -105
- package/build/build-esm/booking-wizard/features/price-details/util.d.ts +2 -5
- package/build/build-esm/booking-wizard/features/product-options/no-options.d.ts +2 -2
- package/build/build-esm/booking-wizard/features/product-options/none-option.d.ts +9 -17
- package/build/build-esm/booking-wizard/features/product-options/option-booking-group.d.ts +12 -18
- package/build/build-esm/booking-wizard/features/product-options/option-item.d.ts +11 -11
- package/build/build-esm/booking-wizard/features/product-options/option-pax-card.d.ts +10 -13
- package/build/build-esm/booking-wizard/features/product-options/option-pax-group.d.ts +13 -20
- package/build/build-esm/booking-wizard/features/product-options/option-room.d.ts +10 -18
- package/build/build-esm/booking-wizard/features/product-options/option-unit-group.d.ts +13 -20
- package/build/build-esm/booking-wizard/features/product-options/option-units-card.d.ts +9 -9
- package/build/build-esm/booking-wizard/features/product-options/options-form.d.ts +5 -4
- 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 -7
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-flight.d.ts +8 -8
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-util.d.ts +9 -28
- package/build/build-esm/booking-wizard/features/sidebar/sidebar.d.ts +25 -29
- package/build/build-esm/booking-wizard/features/summary/summary-booking-option-pax.d.ts +7 -7
- package/build/build-esm/booking-wizard/features/summary/summary-booking-option-unit.d.ts +7 -7
- package/build/build-esm/booking-wizard/features/summary/summary-flight.d.ts +8 -8
- package/build/build-esm/booking-wizard/features/summary/summary-per-booking-option-group.d.ts +7 -10
- package/build/build-esm/booking-wizard/features/summary/summary-per-pax-option-group.d.ts +7 -10
- package/build/build-esm/booking-wizard/features/summary/summary-per-unit-option-group.d.ts +7 -10
- package/build/build-esm/booking-wizard/features/summary/summary-slice.d.ts +8 -14
- package/build/build-esm/booking-wizard/features/summary/summary.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +60 -95
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form.d.ts +5 -4
- package/build/build-esm/booking-wizard/features/travelers-form/type-ahead-input.d.ts +16 -16
- package/build/build-esm/booking-wizard/features/travelers-form/validate-form.d.ts +4 -8
- package/build/build-esm/booking-wizard/index.d.ts +12 -12
- package/build/build-esm/booking-wizard/settings-context.d.ts +6 -5
- package/build/build-esm/booking-wizard/store.d.ts +21 -41
- package/build/build-esm/booking-wizard/types.d.ts +124 -124
- 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 +7 -25
- 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 +3397 -7651
- package/package.json +1 -1
- package/src/booking-wizard/features/booking/booking.tsx +3 -1
- package/src/booking-wizard/features/product-options/options-form.tsx +3 -3
|
@@ -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,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface MessageProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
declare const Message: React.FC<MessageProps>;
|
|
9
|
-
export default Message;
|
|
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,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ProductCardProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
declare const ProductCard: React.FC<ProductCardProps>;
|
|
8
|
-
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;
|
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
+
import { BookingPackageRequest, BookingPackageDetailsRequest, BookingPackage, BookingPackageBookRequest, BookingPriceDetails, BookingTravelAgent, TideResponse } from "@qite/tide-client/build/types";
|
|
2
|
+
declare const packageApi: {
|
|
3
|
+
fetchDetails: (request: BookingPackageRequest<BookingPackageDetailsRequest>, signal: AbortSignal) => Promise<TideResponse<BookingPackage>>;
|
|
4
|
+
fetchPriceDetails: (request: BookingPackageRequest<BookingPackageBookRequest>, signal: AbortSignal) => Promise<BookingPriceDetails>;
|
|
5
|
+
fetchAgents: (signal: AbortSignal) => Promise<BookingTravelAgent[]>;
|
|
6
|
+
};
|
|
7
|
+
export default packageApi;
|
|
@@ -1,124 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
+
import { BookingAttributes, BookingOptions, ProductAttributes } from "../../types";
|
|
2
|
+
import { BookingOptionGroup, BookingOptionPax, BookingOptionUnit, BookingPackage, BookingPackageRoom, BookingTravelAgent, PerBookingPackageOption } from "@qite/tide-client/build/types";
|
|
3
|
+
export interface BookingState {
|
|
4
|
+
officeId: number;
|
|
5
|
+
productAttributes?: ProductAttributes;
|
|
6
|
+
bookingAttributes?: BookingAttributes;
|
|
7
|
+
calculateDeposit: boolean;
|
|
8
|
+
bookingNumber?: string;
|
|
9
|
+
isRetry: boolean;
|
|
10
|
+
package?: BookingPackage;
|
|
11
|
+
agents?: BookingTravelAgent[];
|
|
12
|
+
isBusy: boolean;
|
|
13
|
+
skipPaymentWithAgent: boolean;
|
|
14
|
+
generatePaymentUrl: boolean;
|
|
15
|
+
isUnavailable?: boolean;
|
|
16
|
+
tagIds?: number[];
|
|
17
|
+
agentAdressId?: number;
|
|
18
|
+
remarks?: string;
|
|
19
|
+
voucherCodes?: string[];
|
|
20
|
+
bookingOptions: BookingOptions;
|
|
21
|
+
bookingType: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
24
|
+
export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPayload<number, string>, setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<BookingOptions, string>, setBookingType: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, 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>, setAgentAdressId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<number | undefined, string>, setBookingRemarks: import("@reduxjs/toolkit").ActionCreatorWithPayload<string, string>, setVoucherCodes: import("@reduxjs/toolkit").ActionCreatorWithPayload<string[], string>;
|
|
25
|
+
declare const _default: import("redux").Reducer<BookingState, import("redux").AnyAction>;
|
|
26
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface BookingProps {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
declare const Booking: React.FC<BookingProps>;
|
|
8
|
-
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;
|