@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.
@@ -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
- productPath: "/",
14
- basePath: "/boeken",
15
- options: {
16
- pathSuffix: "/opties",
17
- },
18
- summary: {
19
- pathSuffix: "/samenvatting",
20
- checkboxes: null,
21
- },
22
- confirmation: {
23
- pathSuffix: "/bevestiging",
24
- },
25
- error: {
26
- pathSuffix: "/mislukt",
27
- },
28
- companyContactEmail: "info@qite.be",
29
- companyContactPhone: "093362299",
30
- showProductCardRating: false,
31
- showSidebarDeposit: false,
32
- sidebarHeaderComponent: null,
33
- sidebarFooterComponent: null,
34
- loaderComponent: null,
35
- icons: null,
36
- });
37
-
38
- export default SettingsContext;
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
- export interface SummaryCheckbox {
36
- id: string;
37
- text: string;
38
- isSelected: boolean;
39
- }
40
-
41
- export interface Traveler {
42
- id: number;
43
- gender: string;
44
- firstName: string;
45
- lastName: string;
46
- birthDate: string;
47
- }
48
-
49
- export interface Room {
50
- adults: number;
51
- children: number;
52
- childAges: number[];
53
- accommodationCode?: string;
54
- regimeCode?: string;
55
- }
56
-
57
- export interface TravelersFormValues {
58
- startDate?: string;
59
- adults: Traveler[];
60
- children: Traveler[];
61
- mainBookerId: number;
62
- street: string;
63
- houseNumber: string;
64
- box: string;
65
- zipCode: string;
66
- place: string;
67
- country: string;
68
- phone: string;
69
- email: string;
70
- emailConfirmation: string;
71
- travelAgentId: number;
72
- travelAgentName: string;
73
- }
74
-
75
- export interface ProductAttributes {
76
- productCode: string;
77
- productName: string;
78
- }
79
-
80
- export interface BookingAttributes {
81
- startDate: string;
82
- endDate: string;
83
- catalog: number;
84
- rooms: Room[];
85
- tourCode: string | null;
86
- allotmentName: string | null;
87
- allotmentIds: number[];
88
- includeFlights?: boolean;
89
- }
90
-
91
- export interface FlightLine {
92
- departureAirportIata?: string;
93
- departureAirportDescription?: string;
94
- departureDate?: string;
95
- departureTime?: string;
96
- arrivalAirportIata?: string;
97
- arrivalAirportDescription?: string;
98
- arrivalDate?: string;
99
- arrivalTime?: string;
100
- airlineIata?: string;
101
- airlineDescription?: string;
102
- airlineNumber?: string;
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
+ }