@qite/tide-booking-component 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +3 -13
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +13 -19
- package/build/build-cjs/booking-wizard/features/product-options/option-pax-card.d.ts +5 -1
- package/build/build-cjs/booking-wizard/features/product-options/option-room.d.ts +2 -0
- package/build/build-cjs/booking-wizard/types.d.ts +8 -7
- package/build/build-cjs/index.js +134 -289
- package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +3 -13
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +13 -19
- package/build/build-esm/booking-wizard/features/product-options/option-pax-card.d.ts +5 -1
- package/build/build-esm/booking-wizard/features/product-options/option-room.d.ts +2 -0
- package/build/build-esm/booking-wizard/types.d.ts +8 -7
- package/build/build-esm/index.js +134 -289
- package/package.json +71 -71
- package/src/booking-wizard/components/step-indicator.tsx +1 -1
- package/src/booking-wizard/features/booking/booking.tsx +7 -6
- package/src/booking-wizard/features/booking/selectors.ts +9 -3
- package/src/booking-wizard/features/product-options/option-pax-card.tsx +18 -3
- package/src/booking-wizard/features/product-options/option-room.tsx +13 -1
- package/src/booking-wizard/features/product-options/options-form.tsx +10 -6
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +3 -3
- package/src/booking-wizard/features/travelers-form/validate-form.ts +1 -1
- package/src/booking-wizard/settings-context.ts +7 -4
- package/src/booking-wizard/types.ts +3 -0
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
} from "@qite/tide-client/build/types";
|
|
15
15
|
export interface BookingState {
|
|
16
16
|
officeId: number;
|
|
17
|
-
entryStatus: number;
|
|
18
|
-
customEntryStatusId?: number;
|
|
19
17
|
productAttributes?: ProductAttributes;
|
|
20
18
|
bookingAttributes?: BookingAttributes;
|
|
21
19
|
calculateDeposit: boolean;
|
|
@@ -31,7 +29,7 @@ export interface BookingState {
|
|
|
31
29
|
agentAdressId?: number;
|
|
32
30
|
remarks?: string;
|
|
33
31
|
voucherCodes?: string[];
|
|
34
|
-
bookingOptions
|
|
32
|
+
bookingOptions: BookingOptions;
|
|
35
33
|
bookingType: string;
|
|
36
34
|
}
|
|
37
35
|
export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<
|
|
@@ -43,16 +41,8 @@ export declare const setOfficeId: import("@reduxjs/toolkit").ActionCreatorWithPa
|
|
|
43
41
|
number,
|
|
44
42
|
string
|
|
45
43
|
>,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
string
|
|
49
|
-
>,
|
|
50
|
-
setCustomEntryStatusId: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
|
|
51
|
-
number | undefined,
|
|
52
|
-
string
|
|
53
|
-
>,
|
|
54
|
-
setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithOptionalPayload<
|
|
55
|
-
BookingOptions | undefined,
|
|
44
|
+
setBookingOptions: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
45
|
+
BookingOptions,
|
|
56
46
|
string
|
|
57
47
|
>,
|
|
58
48
|
setBookingType: import("@reduxjs/toolkit").ActionCreatorWithPayload<
|
|
@@ -63,13 +63,9 @@ export declare const selectRequestRooms: (
|
|
|
63
63
|
| import("@qite/tide-client/build/types/offer").BookingPackageRequestRoom[]
|
|
64
64
|
| undefined;
|
|
65
65
|
export declare const selectOfficeId: (state: RootState) => number;
|
|
66
|
-
export declare const selectEntryStatus: (state: RootState) => number;
|
|
67
|
-
export declare const selectCustomEntryStatusId: (
|
|
68
|
-
state: RootState
|
|
69
|
-
) => number | undefined;
|
|
70
66
|
export declare const selectBookingOptions: (
|
|
71
67
|
state: RootState
|
|
72
|
-
) => import("../../types").BookingOptions
|
|
68
|
+
) => import("../../types").BookingOptions;
|
|
73
69
|
export declare const selectBookingType: (state: RootState) => string;
|
|
74
70
|
export declare const selectTagIds: (state: RootState) => number[] | undefined;
|
|
75
71
|
export declare const selectAgentAdressId: (
|
|
@@ -189,23 +185,21 @@ export declare const selectBookingPackageBookRequest: ((state: {
|
|
|
189
185
|
import("reselect").OutputSelectorFields<
|
|
190
186
|
(
|
|
191
187
|
args_0: BookingPackageRequest<any>,
|
|
192
|
-
args_1:
|
|
193
|
-
args_2:
|
|
194
|
-
args_3:
|
|
195
|
-
args_4:
|
|
196
|
-
args_5:
|
|
197
|
-
args_6: BookingPackageAddress | undefined,
|
|
198
|
-
args_7:
|
|
188
|
+
args_1: import("../../types").BookingOptions,
|
|
189
|
+
args_2: string,
|
|
190
|
+
args_3: BookingPackagePax[],
|
|
191
|
+
args_4: BookingPackageAddress | undefined,
|
|
192
|
+
args_5:
|
|
199
193
|
| import("@qite/tide-client/build/types/offer").BookingPackage
|
|
200
194
|
| undefined,
|
|
195
|
+
args_6: boolean,
|
|
196
|
+
args_7: number | undefined,
|
|
201
197
|
args_8: boolean,
|
|
202
|
-
args_9:
|
|
203
|
-
args_10:
|
|
204
|
-
args_11:
|
|
205
|
-
args_12:
|
|
206
|
-
args_13:
|
|
207
|
-
args_14: string | undefined,
|
|
208
|
-
args_15: string[] | undefined
|
|
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
|
|
209
203
|
) => BookingPackageRequest<BookingPackageBookRequest> & {
|
|
210
204
|
clearCache: () => void;
|
|
211
205
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
BookingOptionPax,
|
|
3
|
+
BookingPackagePax,
|
|
4
|
+
} from "@qite/tide-client/build/types";
|
|
2
5
|
import React from "react";
|
|
3
6
|
interface OptionPaxCardProps {
|
|
4
7
|
pax: BookingOptionPax[];
|
|
8
|
+
requestRoomsPax?: BookingPackagePax[];
|
|
5
9
|
parentIndex?: number;
|
|
6
10
|
onPaxChange?: (pax: BookingOptionPax[], index?: number) => void;
|
|
7
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BookingOptionPax,
|
|
2
3
|
BookingPackagePax,
|
|
3
4
|
BookingPackageRoom,
|
|
4
5
|
} from "@qite/tide-client/build/types";
|
|
@@ -6,6 +7,7 @@ import React from "react";
|
|
|
6
7
|
interface OptionRoomProps {
|
|
7
8
|
packageRoom: BookingPackageRoom;
|
|
8
9
|
pax: BookingPackagePax[];
|
|
10
|
+
optionPax?: BookingOptionPax[];
|
|
9
11
|
onRoomChange: (
|
|
10
12
|
index: number,
|
|
11
13
|
accommodationCode: string,
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
export interface Settings {
|
|
2
2
|
officeId: number;
|
|
3
|
-
entryStatus: number;
|
|
4
|
-
customEntryStatusId?: number | null;
|
|
5
3
|
bookingOptions: BookingOptions;
|
|
6
4
|
productPath: string;
|
|
7
5
|
basePath: string;
|
|
8
6
|
options: {
|
|
9
7
|
pathSuffix: string;
|
|
10
8
|
};
|
|
9
|
+
travellers: {
|
|
10
|
+
pathSuffix: string;
|
|
11
|
+
};
|
|
11
12
|
summary: {
|
|
12
13
|
pathSuffix: string;
|
|
13
14
|
checkboxes?: SummaryCheckbox[] | null;
|
|
@@ -39,13 +40,13 @@ export interface Settings {
|
|
|
39
40
|
enableVoucher?: boolean;
|
|
40
41
|
}
|
|
41
42
|
export interface BookingOptions {
|
|
42
|
-
b2b
|
|
43
|
-
b2b2c
|
|
44
|
-
b2c
|
|
43
|
+
b2b: BookingOptionsDetail;
|
|
44
|
+
b2b2c: BookingOptionsDetail;
|
|
45
|
+
b2c: BookingOptionsDetail;
|
|
45
46
|
}
|
|
46
47
|
export interface BookingOptionsDetail {
|
|
47
|
-
entryStatus
|
|
48
|
-
customEntryStatusId?: number
|
|
48
|
+
entryStatus: number;
|
|
49
|
+
customEntryStatusId?: number;
|
|
49
50
|
tagIds?: number[];
|
|
50
51
|
}
|
|
51
52
|
export interface SummaryCheckbox {
|