@qite/tide-booking-component 0.0.2-preview.58 → 0.0.2-preview.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +3 -1
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +3 -1
- package/build/build-cjs/booking-wizard/types.d.ts +2 -0
- package/build/build-cjs/index.js +31 -5
- package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +3 -1
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +3 -1
- package/build/build-esm/booking-wizard/types.d.ts +2 -0
- package/build/build-esm/index.js +31 -5
- package/package.json +71 -71
- package/src/booking-wizard/components/product-card.tsx +1 -1
- package/src/booking-wizard/features/booking/booking-slice.ts +289 -277
- package/src/booking-wizard/features/booking/booking.tsx +291 -283
- package/src/booking-wizard/features/booking/selectors.ts +258 -249
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +659 -650
- package/src/booking-wizard/settings-context.ts +40 -38
- package/src/booking-wizard/types.ts +105 -103
|
@@ -1,38 +1,40 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Settings } from "./types";
|
|
3
|
-
|
|
4
|
-
interface SettingsContextProps extends Settings {}
|
|
5
|
-
|
|
6
|
-
const SettingsContext = React.createContext<SettingsContextProps>({
|
|
7
|
-
language: "nl-BE",
|
|
8
|
-
generatePaymentUrl: false,
|
|
9
|
-
currency: "EUR",
|
|
10
|
-
officeId: 1,
|
|
11
|
-
entryStatus: 0,
|
|
12
|
-
customEntryStatusId: null,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Settings } from "./types";
|
|
3
|
+
|
|
4
|
+
interface SettingsContextProps extends Settings {}
|
|
5
|
+
|
|
6
|
+
const SettingsContext = React.createContext<SettingsContextProps>({
|
|
7
|
+
language: "nl-BE",
|
|
8
|
+
generatePaymentUrl: false,
|
|
9
|
+
currency: "EUR",
|
|
10
|
+
officeId: 1,
|
|
11
|
+
entryStatus: 0,
|
|
12
|
+
customEntryStatusId: null,
|
|
13
|
+
tagIds: [],
|
|
14
|
+
agentAdressId: undefined,
|
|
15
|
+
productPath: "/",
|
|
16
|
+
basePath: "/boeken",
|
|
17
|
+
options: {
|
|
18
|
+
pathSuffix: "/opties",
|
|
19
|
+
},
|
|
20
|
+
summary: {
|
|
21
|
+
pathSuffix: "/samenvatting",
|
|
22
|
+
checkboxes: null,
|
|
23
|
+
},
|
|
24
|
+
confirmation: {
|
|
25
|
+
pathSuffix: "/bevestiging",
|
|
26
|
+
},
|
|
27
|
+
error: {
|
|
28
|
+
pathSuffix: "/mislukt",
|
|
29
|
+
},
|
|
30
|
+
companyContactEmail: "info@qite.be",
|
|
31
|
+
companyContactPhone: "093362299",
|
|
32
|
+
showProductCardRating: false,
|
|
33
|
+
showSidebarDeposit: false,
|
|
34
|
+
sidebarHeaderComponent: null,
|
|
35
|
+
sidebarFooterComponent: null,
|
|
36
|
+
loaderComponent: null,
|
|
37
|
+
icons: null,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export default SettingsContext;
|
|
@@ -1,103 +1,105 @@
|
|
|
1
|
-
export interface Settings {
|
|
2
|
-
officeId: number;
|
|
3
|
-
entryStatus: number;
|
|
4
|
-
customEntryStatusId?: number | null;
|
|
5
|
-
productPath: string;
|
|
6
|
-
basePath: string;
|
|
7
|
-
options: {
|
|
8
|
-
pathSuffix: string;
|
|
9
|
-
};
|
|
10
|
-
summary: {
|
|
11
|
-
pathSuffix: string;
|
|
12
|
-
checkboxes?: SummaryCheckbox[] | null;
|
|
13
|
-
};
|
|
14
|
-
confirmation: {
|
|
15
|
-
pathSuffix: string;
|
|
16
|
-
};
|
|
17
|
-
error: {
|
|
18
|
-
pathSuffix: string;
|
|
19
|
-
};
|
|
20
|
-
language: string;
|
|
21
|
-
currency: string;
|
|
22
|
-
includeFlights?: boolean;
|
|
23
|
-
generatePaymentUrl?: boolean;
|
|
24
|
-
skipPaymentWithAgent?: boolean;
|
|
25
|
-
companyContactEmail: string;
|
|
26
|
-
companyContactPhone: string;
|
|
27
|
-
showProductCardRating: boolean;
|
|
28
|
-
showSidebarDeposit: boolean;
|
|
29
|
-
sidebarHeaderComponent?: JSX.Element | null;
|
|
30
|
-
sidebarFooterComponent?: JSX.Element | null;
|
|
31
|
-
loaderComponent?: JSX.Element | null;
|
|
32
|
-
icons?: string | null;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
export interface Settings {
|
|
2
|
+
officeId: number;
|
|
3
|
+
entryStatus: number;
|
|
4
|
+
customEntryStatusId?: number | null;
|
|
5
|
+
productPath: string;
|
|
6
|
+
basePath: string;
|
|
7
|
+
options: {
|
|
8
|
+
pathSuffix: string;
|
|
9
|
+
};
|
|
10
|
+
summary: {
|
|
11
|
+
pathSuffix: string;
|
|
12
|
+
checkboxes?: SummaryCheckbox[] | null;
|
|
13
|
+
};
|
|
14
|
+
confirmation: {
|
|
15
|
+
pathSuffix: string;
|
|
16
|
+
};
|
|
17
|
+
error: {
|
|
18
|
+
pathSuffix: string;
|
|
19
|
+
};
|
|
20
|
+
language: string;
|
|
21
|
+
currency: string;
|
|
22
|
+
includeFlights?: boolean;
|
|
23
|
+
generatePaymentUrl?: boolean;
|
|
24
|
+
skipPaymentWithAgent?: boolean;
|
|
25
|
+
companyContactEmail: string;
|
|
26
|
+
companyContactPhone: string;
|
|
27
|
+
showProductCardRating: boolean;
|
|
28
|
+
showSidebarDeposit: boolean;
|
|
29
|
+
sidebarHeaderComponent?: JSX.Element | null;
|
|
30
|
+
sidebarFooterComponent?: JSX.Element | null;
|
|
31
|
+
loaderComponent?: JSX.Element | null;
|
|
32
|
+
icons?: string | null;
|
|
33
|
+
tagIds?: number[];
|
|
34
|
+
agentAdressId?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface SummaryCheckbox {
|
|
38
|
+
id: string;
|
|
39
|
+
text: string;
|
|
40
|
+
isSelected: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface Traveler {
|
|
44
|
+
id: number;
|
|
45
|
+
gender: string;
|
|
46
|
+
firstName: string;
|
|
47
|
+
lastName: string;
|
|
48
|
+
birthDate: string;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface Room {
|
|
52
|
+
adults: number;
|
|
53
|
+
children: number;
|
|
54
|
+
childAges: number[];
|
|
55
|
+
accommodationCode?: string;
|
|
56
|
+
regimeCode?: string;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface TravelersFormValues {
|
|
60
|
+
startDate?: string;
|
|
61
|
+
adults: Traveler[];
|
|
62
|
+
children: Traveler[];
|
|
63
|
+
mainBookerId: number;
|
|
64
|
+
street: string;
|
|
65
|
+
houseNumber: string;
|
|
66
|
+
box: string;
|
|
67
|
+
zipCode: string;
|
|
68
|
+
place: string;
|
|
69
|
+
country: string;
|
|
70
|
+
phone: string;
|
|
71
|
+
email: string;
|
|
72
|
+
emailConfirmation: string;
|
|
73
|
+
travelAgentId: number;
|
|
74
|
+
travelAgentName: string;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface ProductAttributes {
|
|
78
|
+
productCode: string;
|
|
79
|
+
productName: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface BookingAttributes {
|
|
83
|
+
startDate: string;
|
|
84
|
+
endDate: string;
|
|
85
|
+
catalog: number;
|
|
86
|
+
rooms: Room[];
|
|
87
|
+
tourCode: string | null;
|
|
88
|
+
allotmentName: string | null;
|
|
89
|
+
allotmentIds: number[];
|
|
90
|
+
includeFlights?: boolean;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface FlightLine {
|
|
94
|
+
departureAirportIata?: string;
|
|
95
|
+
departureAirportDescription?: string;
|
|
96
|
+
departureDate?: string;
|
|
97
|
+
departureTime?: string;
|
|
98
|
+
arrivalAirportIata?: string;
|
|
99
|
+
arrivalAirportDescription?: string;
|
|
100
|
+
arrivalDate?: string;
|
|
101
|
+
arrivalTime?: string;
|
|
102
|
+
airlineIata?: string;
|
|
103
|
+
airlineDescription?: string;
|
|
104
|
+
airlineNumber?: string;
|
|
105
|
+
}
|