@qite/tide-booking-component 0.0.2-preview.47 → 0.0.2-preview.50
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/message.d.ts +1 -0
- package/build/build-cjs/booking-wizard/features/booking/api.d.ts +2 -1
- package/build/build-cjs/booking-wizard/features/booking/booking-slice.d.ts +2 -1
- package/build/build-cjs/booking-wizard/features/booking/booking.d.ts +0 -2
- package/build/build-cjs/booking-wizard/features/booking/selectors.d.ts +31 -10
- package/build/build-cjs/booking-wizard/features/price-details/price-details-slice.d.ts +30 -10
- package/build/build-cjs/booking-wizard/features/product-options/no-options.d.ts +0 -1
- package/build/build-cjs/booking-wizard/features/sidebar/sidebar-util.d.ts +1 -1
- package/build/build-cjs/booking-wizard/features/summary/summary-flight.d.ts +1 -0
- package/build/build-cjs/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +34 -8
- package/build/build-cjs/booking-wizard/features/travelers-form/type-ahead-input.d.ts +1 -0
- package/build/build-cjs/booking-wizard/store.d.ts +1 -11
- package/build/build-cjs/booking-wizard/types.d.ts +6 -3
- package/build/build-cjs/booking-wizard/utils/query-string-util.d.ts +2 -0
- package/build/build-cjs/index.js +270 -127
- package/build/build-esm/booking-wizard/components/message.d.ts +1 -0
- package/build/build-esm/booking-wizard/features/booking/api.d.ts +2 -1
- package/build/build-esm/booking-wizard/features/booking/booking-slice.d.ts +2 -1
- package/build/build-esm/booking-wizard/features/booking/booking.d.ts +0 -2
- package/build/build-esm/booking-wizard/features/booking/selectors.d.ts +31 -10
- package/build/build-esm/booking-wizard/features/price-details/price-details-slice.d.ts +30 -10
- package/build/build-esm/booking-wizard/features/product-options/no-options.d.ts +0 -1
- package/build/build-esm/booking-wizard/features/sidebar/sidebar-util.d.ts +1 -1
- package/build/build-esm/booking-wizard/features/summary/summary-flight.d.ts +1 -0
- package/build/build-esm/booking-wizard/features/travelers-form/travelers-form-slice.d.ts +34 -8
- package/build/build-esm/booking-wizard/features/travelers-form/type-ahead-input.d.ts +1 -0
- package/build/build-esm/booking-wizard/store.d.ts +1 -11
- package/build/build-esm/booking-wizard/types.d.ts +6 -3
- package/build/build-esm/booking-wizard/utils/query-string-util.d.ts +2 -0
- package/build/build-esm/index.js +270 -127
- package/package.json +2 -2
- package/src/booking-wizard/components/message.tsx +14 -8
- package/src/booking-wizard/features/booking/api.ts +11 -1
- package/src/booking-wizard/features/booking/booking-slice.ts +22 -1
- package/src/booking-wizard/features/booking/booking.tsx +11 -14
- package/src/booking-wizard/features/booking/selectors.ts +10 -2
- package/src/booking-wizard/features/price-details/price-details-slice.ts +4 -0
- package/src/booking-wizard/features/product-options/option-room.tsx +6 -6
- package/src/booking-wizard/features/summary/summary-flight.tsx +3 -2
- package/src/booking-wizard/features/summary/summary.tsx +18 -5
- package/src/booking-wizard/features/travelers-form/travelers-form-slice.ts +7 -0
- package/src/booking-wizard/features/travelers-form/travelers-form.tsx +85 -9
- package/src/booking-wizard/features/travelers-form/type-ahead-input.tsx +23 -3
- package/src/booking-wizard/types.ts +6 -2
- package/src/booking-wizard/utils/query-string-util.ts +15 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { BookingPackageRequest, BookingPackageDetailsRequest, BookingPackage, BookingPackageBookRequest, BookingPriceDetails } from "@qite/tide-client/build/types";
|
|
1
|
+
import { BookingPackageRequest, BookingPackageDetailsRequest, BookingPackage, BookingPackageBookRequest, BookingPriceDetails, BookingTravelAgent } from "@qite/tide-client/build/types";
|
|
2
2
|
declare const packageApi: {
|
|
3
3
|
fetchDetails: (request: BookingPackageRequest<BookingPackageDetailsRequest>, signal: AbortSignal) => Promise<BookingPackage>;
|
|
4
4
|
fetchPriceDetails: (request: BookingPackageRequest<BookingPackageBookRequest>, signal: AbortSignal) => Promise<BookingPriceDetails>;
|
|
5
|
+
fetchAgents: (signal: AbortSignal) => Promise<BookingTravelAgent[]>;
|
|
5
6
|
};
|
|
6
7
|
export default packageApi;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BookingAttributes, ProductAttributes } from "../../types";
|
|
2
|
-
import { BookingOptionGroup, BookingOptionPax, BookingOptionUnit, BookingPackage, BookingPackageRoom, PerBookingPackageOption } from "@qite/tide-client/build/types";
|
|
2
|
+
import { BookingOptionGroup, BookingOptionPax, BookingOptionUnit, BookingPackage, BookingPackageRoom, BookingTravelAgent, PerBookingPackageOption } from "@qite/tide-client/build/types";
|
|
3
3
|
export interface BookingState {
|
|
4
4
|
officeId: number;
|
|
5
5
|
entryStatus: number;
|
|
@@ -10,6 +10,7 @@ export interface BookingState {
|
|
|
10
10
|
bookingNumber?: string;
|
|
11
11
|
isRetry: boolean;
|
|
12
12
|
package?: BookingPackage;
|
|
13
|
+
agents?: BookingTravelAgent[];
|
|
13
14
|
isBusy: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare const fetchPackage: import("@reduxjs/toolkit").AsyncThunk<void, void, {}>;
|
|
@@ -20,34 +20,55 @@ export declare const selectBookingRooms: (state: RootState) => Room[] | undefine
|
|
|
20
20
|
export declare const selectCalculateDeposit: (state: RootState) => boolean;
|
|
21
21
|
export declare const selectIsRetry: (state: RootState) => boolean;
|
|
22
22
|
export declare const selectStartDate: (state: RootState) => string | undefined;
|
|
23
|
+
export declare const selectAgents: (state: RootState) => import("@qite/tide-client/build/types/offer").BookingTravelAgent[] | undefined;
|
|
23
24
|
export declare const selectBookingQuery: (state: RootState) => Record<string, string> | undefined;
|
|
24
|
-
export declare const selectBookingQueryString:
|
|
25
|
+
export declare const selectBookingQueryString: ((state: {
|
|
25
26
|
booking: import("./booking-slice").BookingState;
|
|
26
27
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
27
28
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
28
29
|
summary: import("../summary/summary-slice").SummaryState;
|
|
29
|
-
}
|
|
30
|
-
|
|
30
|
+
}) => string | undefined) & import("reselect").OutputSelectorFields<(args_0: Record<string, string> | undefined) => string & {
|
|
31
|
+
clearCache: () => void;
|
|
32
|
+
}> & {
|
|
33
|
+
clearCache: () => void;
|
|
34
|
+
};
|
|
35
|
+
export declare const selectMainBookerId: ((state: {
|
|
31
36
|
booking: import("./booking-slice").BookingState;
|
|
32
37
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
33
38
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
34
39
|
summary: import("../summary/summary-slice").SummaryState;
|
|
35
|
-
}
|
|
36
|
-
|
|
40
|
+
}) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: import("../../types").TravelersFormValues | undefined) => number & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
}> & {
|
|
43
|
+
clearCache: () => void;
|
|
44
|
+
};
|
|
45
|
+
export declare const selectBookingPackagePax: ((state: {
|
|
37
46
|
booking: import("./booking-slice").BookingState;
|
|
38
47
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
39
48
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
40
49
|
summary: import("../summary/summary-slice").SummaryState;
|
|
41
|
-
}
|
|
42
|
-
|
|
50
|
+
}) => BookingPackagePax[]) & import("reselect").OutputSelectorFields<(args_0: import("../../types").TravelersFormValues | undefined) => BookingPackagePax[] & {
|
|
51
|
+
clearCache: () => void;
|
|
52
|
+
}> & {
|
|
53
|
+
clearCache: () => void;
|
|
54
|
+
};
|
|
55
|
+
export declare const selectBookingAddress: ((state: {
|
|
43
56
|
booking: import("./booking-slice").BookingState;
|
|
44
57
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
45
58
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
46
59
|
summary: import("../summary/summary-slice").SummaryState;
|
|
47
|
-
}
|
|
48
|
-
|
|
60
|
+
}) => BookingPackageAddress | undefined) & import("reselect").OutputSelectorFields<(args_0: import("../../types").TravelersFormValues | undefined, args_1: BookingPackagePax[]) => BookingPackageAddress & {
|
|
61
|
+
clearCache: () => void;
|
|
62
|
+
}> & {
|
|
63
|
+
clearCache: () => void;
|
|
64
|
+
};
|
|
65
|
+
export declare const selectBookingPackageBookRequest: ((state: {
|
|
49
66
|
booking: import("./booking-slice").BookingState;
|
|
50
67
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
51
68
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
52
69
|
summary: import("../summary/summary-slice").SummaryState;
|
|
53
|
-
}
|
|
70
|
+
}) => BookingPackageRequest<BookingPackageBookRequest> | null) & import("reselect").OutputSelectorFields<(args_0: number, args_1: number, args_2: number | undefined, args_3: BookingPackagePax[], args_4: BookingPackageAddress | undefined, args_5: import("@qite/tide-client/build/types/offer").BookingPackage | undefined, args_6: boolean, args_7: number | undefined) => BookingPackageRequest<BookingPackageBookRequest> & {
|
|
71
|
+
clearCache: () => void;
|
|
72
|
+
}> & {
|
|
73
|
+
clearCache: () => void;
|
|
74
|
+
};
|
|
@@ -13,36 +13,56 @@ export declare const selectPriceDetails: (state: {
|
|
|
13
13
|
priceDetails: PriceDetailsState;
|
|
14
14
|
summary: import("../summary/summary-slice").SummaryState;
|
|
15
15
|
}) => BookingPriceDetail[];
|
|
16
|
-
export declare const selectPackagePriceDetails:
|
|
16
|
+
export declare const selectPackagePriceDetails: ((state: {
|
|
17
17
|
booking: import("../booking/booking-slice").BookingState;
|
|
18
18
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
19
19
|
priceDetails: PriceDetailsState;
|
|
20
20
|
summary: import("../summary/summary-slice").SummaryState;
|
|
21
|
-
}
|
|
22
|
-
|
|
21
|
+
}) => BookingPriceDetail[]) & import("reselect").OutputSelectorFields<(args_0: BookingPriceDetail[]) => BookingPriceDetail[] & {
|
|
22
|
+
clearCache: () => void;
|
|
23
|
+
}> & {
|
|
24
|
+
clearCache: () => void;
|
|
25
|
+
};
|
|
26
|
+
export declare const selectSeparatePackagePriceDetails: ((state: {
|
|
23
27
|
booking: import("../booking/booking-slice").BookingState;
|
|
24
28
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
25
29
|
priceDetails: PriceDetailsState;
|
|
26
30
|
summary: import("../summary/summary-slice").SummaryState;
|
|
27
|
-
}
|
|
28
|
-
|
|
31
|
+
}) => BookingPriceDetail[]) & import("reselect").OutputSelectorFields<(args_0: BookingPriceDetail[]) => BookingPriceDetail[] & {
|
|
32
|
+
clearCache: () => void;
|
|
33
|
+
}> & {
|
|
34
|
+
clearCache: () => void;
|
|
35
|
+
};
|
|
36
|
+
export declare const selectBasePrice: ((state: {
|
|
29
37
|
booking: import("../booking/booking-slice").BookingState;
|
|
30
38
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
31
39
|
priceDetails: PriceDetailsState;
|
|
32
40
|
summary: import("../summary/summary-slice").SummaryState;
|
|
33
|
-
}
|
|
34
|
-
|
|
41
|
+
}) => number) & import("reselect").OutputSelectorFields<(args_0: BookingPriceDetail[]) => number & {
|
|
42
|
+
clearCache: () => void;
|
|
43
|
+
}> & {
|
|
44
|
+
clearCache: () => void;
|
|
45
|
+
};
|
|
46
|
+
export declare const selectSeparateExtraPriceDetails: ((state: {
|
|
35
47
|
booking: import("../booking/booking-slice").BookingState;
|
|
36
48
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
37
49
|
priceDetails: PriceDetailsState;
|
|
38
50
|
summary: import("../summary/summary-slice").SummaryState;
|
|
39
|
-
}
|
|
40
|
-
|
|
51
|
+
}) => BookingPriceDetail[]) & import("reselect").OutputSelectorFields<(args_0: BookingPriceDetail[]) => BookingPriceDetail[] & {
|
|
52
|
+
clearCache: () => void;
|
|
53
|
+
}> & {
|
|
54
|
+
clearCache: () => void;
|
|
55
|
+
};
|
|
56
|
+
export declare const selectTotalPrice: ((state: {
|
|
41
57
|
booking: import("../booking/booking-slice").BookingState;
|
|
42
58
|
travelersForm: import("../travelers-form/travelers-form-slice").TravelersFormState;
|
|
43
59
|
priceDetails: PriceDetailsState;
|
|
44
60
|
summary: import("../summary/summary-slice").SummaryState;
|
|
45
|
-
}
|
|
61
|
+
}) => number) & import("reselect").OutputSelectorFields<(args_0: number, args_1: BookingPriceDetail[]) => number & {
|
|
62
|
+
clearCache: () => void;
|
|
63
|
+
}> & {
|
|
64
|
+
clearCache: () => void;
|
|
65
|
+
};
|
|
46
66
|
export declare const selectDeposit: (state: RootState) => number | undefined;
|
|
47
67
|
export declare const selectIsFetchingPriceDetails: (state: RootState) => boolean;
|
|
48
68
|
export declare const resetPriceDetails: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<string>;
|
|
@@ -2,7 +2,7 @@ import { BookingPackageFlightMetaData } from "@qite/tide-client/build/types";
|
|
|
2
2
|
import { FlightLine } from "../../types";
|
|
3
3
|
export declare const getTravelersText: (adultIds: number[], childIds: number[]) => string | undefined;
|
|
4
4
|
export declare const getDateText: (date: string | undefined) => string | undefined;
|
|
5
|
-
export declare const getDatePeriodText: (from?: string
|
|
5
|
+
export declare const getDatePeriodText: (from?: string, to?: string) => string | undefined;
|
|
6
6
|
export declare const getFlightText: (firstFlight: FlightLine | undefined, lastFlight: FlightLine | undefined) => string;
|
|
7
7
|
export declare const getAirlines: (flightLines: FlightLine[] | undefined) => string;
|
|
8
8
|
export declare const getFlightHours: (firstFlight: FlightLine | undefined, lastFlight: FlightLine | undefined) => string;
|
|
@@ -2,6 +2,7 @@ import { BookingPackageFlight } from "@qite/tide-client/build/types";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
interface SummaryFlightProps {
|
|
4
4
|
flight: BookingPackageFlight;
|
|
5
|
+
header: string;
|
|
5
6
|
}
|
|
6
7
|
declare const SummaryFlight: React.FC<SummaryFlightProps>;
|
|
7
8
|
export default SummaryFlight;
|
|
@@ -5,29 +5,55 @@ export interface TravelersFormState {
|
|
|
5
5
|
}
|
|
6
6
|
export declare const setFormValues: import("@reduxjs/toolkit").ActionCreatorWithPayload<TravelersFormValues, string>;
|
|
7
7
|
export declare const selectTravelersFormValues: (state: RootState) => TravelersFormValues | undefined;
|
|
8
|
-
export declare const selectAdults:
|
|
8
|
+
export declare const selectAdults: ((state: {
|
|
9
9
|
booking: import("../booking/booking-slice").BookingState;
|
|
10
10
|
travelersForm: TravelersFormState;
|
|
11
11
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
12
12
|
summary: import("../summary/summary-slice").SummaryState;
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
}) => import("../../types").Traveler[]) & import("reselect").OutputSelectorFields<(args_0: TravelersFormValues | undefined) => import("../../types").Traveler[] & {
|
|
14
|
+
clearCache: () => void;
|
|
15
|
+
}> & {
|
|
16
|
+
clearCache: () => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const selectChildren: ((state: {
|
|
15
19
|
booking: import("../booking/booking-slice").BookingState;
|
|
16
20
|
travelersForm: TravelersFormState;
|
|
17
21
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
18
22
|
summary: import("../summary/summary-slice").SummaryState;
|
|
19
|
-
}
|
|
20
|
-
|
|
23
|
+
}) => import("../../types").Traveler[]) & import("reselect").OutputSelectorFields<(args_0: TravelersFormValues | undefined) => import("../../types").Traveler[] & {
|
|
24
|
+
clearCache: () => void;
|
|
25
|
+
}> & {
|
|
26
|
+
clearCache: () => void;
|
|
27
|
+
};
|
|
28
|
+
export declare const selectAgentId: ((state: {
|
|
21
29
|
booking: import("../booking/booking-slice").BookingState;
|
|
22
30
|
travelersForm: TravelersFormState;
|
|
23
31
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
24
32
|
summary: import("../summary/summary-slice").SummaryState;
|
|
25
|
-
}
|
|
26
|
-
|
|
33
|
+
}) => number | undefined) & import("reselect").OutputSelectorFields<(args_0: TravelersFormValues | undefined) => number & {
|
|
34
|
+
clearCache: () => void;
|
|
35
|
+
}> & {
|
|
36
|
+
clearCache: () => void;
|
|
37
|
+
};
|
|
38
|
+
export declare const selectAdultIds: ((state: {
|
|
27
39
|
booking: import("../booking/booking-slice").BookingState;
|
|
28
40
|
travelersForm: TravelersFormState;
|
|
29
41
|
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
30
42
|
summary: import("../summary/summary-slice").SummaryState;
|
|
31
|
-
}
|
|
43
|
+
}) => number[]) & import("reselect").OutputSelectorFields<(args_0: import("@qite/tide-client/build/types").BookingPackageRequestRoom[] | undefined) => number[] & {
|
|
44
|
+
clearCache: () => void;
|
|
45
|
+
}> & {
|
|
46
|
+
clearCache: () => void;
|
|
47
|
+
};
|
|
48
|
+
export declare const selectChildIds: ((state: {
|
|
49
|
+
booking: import("../booking/booking-slice").BookingState;
|
|
50
|
+
travelersForm: TravelersFormState;
|
|
51
|
+
priceDetails: import("../price-details/price-details-slice").PriceDetailsState;
|
|
52
|
+
summary: import("../summary/summary-slice").SummaryState;
|
|
53
|
+
}) => number[]) & import("reselect").OutputSelectorFields<(args_0: import("@qite/tide-client/build/types").BookingPackageRequestRoom[] | undefined) => number[] & {
|
|
54
|
+
clearCache: () => void;
|
|
55
|
+
}> & {
|
|
56
|
+
clearCache: () => void;
|
|
57
|
+
};
|
|
32
58
|
declare const _default: import("redux").Reducer<TravelersFormState, import("redux").AnyAction>;
|
|
33
59
|
export default _default;
|
|
@@ -9,21 +9,11 @@ export declare const store: import("@reduxjs/toolkit").EnhancedStore<{
|
|
|
9
9
|
travelersForm: import("./features/travelers-form/travelers-form-slice").TravelersFormState;
|
|
10
10
|
priceDetails: import("./features/price-details/price-details-slice").PriceDetailsState;
|
|
11
11
|
summary: import("./features/summary/summary-slice").SummaryState;
|
|
12
|
-
}, import("redux").AnyAction, null> | import("redux-thunk").ThunkMiddleware<{
|
|
13
|
-
booking: import("./features/booking/booking-slice").BookingState;
|
|
14
|
-
travelersForm: import("./features/travelers-form/travelers-form-slice").TravelersFormState;
|
|
15
|
-
priceDetails: import("./features/price-details/price-details-slice").PriceDetailsState;
|
|
16
|
-
summary: import("./features/summary/summary-slice").SummaryState;
|
|
17
12
|
}, import("redux").AnyAction, undefined>]>;
|
|
18
13
|
export declare type RootState = ReturnType<typeof store.getState>;
|
|
19
14
|
export declare type AppThunk<ReturnType = void> = ThunkAction<ReturnType, RootState, unknown, Action<string>>;
|
|
20
15
|
export declare type AppDispatch = typeof store.dispatch;
|
|
21
|
-
export declare const useAppDispatch: () => import("
|
|
22
|
-
booking: import("./features/booking/booking-slice").BookingState;
|
|
23
|
-
travelersForm: import("./features/travelers-form/travelers-form-slice").TravelersFormState;
|
|
24
|
-
priceDetails: import("./features/price-details/price-details-slice").PriceDetailsState;
|
|
25
|
-
summary: import("./features/summary/summary-slice").SummaryState;
|
|
26
|
-
}, null, import("redux").AnyAction> & import("redux-thunk").ThunkDispatch<{
|
|
16
|
+
export declare const useAppDispatch: () => import("@reduxjs/toolkit").ThunkDispatch<{
|
|
27
17
|
booking: import("./features/booking/booking-slice").BookingState;
|
|
28
18
|
travelersForm: import("./features/travelers-form/travelers-form-slice").TravelersFormState;
|
|
29
19
|
priceDetails: import("./features/price-details/price-details-slice").PriceDetailsState;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface Settings {
|
|
3
2
|
officeId: number;
|
|
4
3
|
entryStatus: number;
|
|
@@ -22,6 +21,7 @@ export interface Settings {
|
|
|
22
21
|
currency: string;
|
|
23
22
|
includeFlights?: boolean;
|
|
24
23
|
generatePaymentUrl?: boolean;
|
|
24
|
+
skipPaymentWithAgent?: boolean;
|
|
25
25
|
companyContactEmail: string;
|
|
26
26
|
companyContactPhone: string;
|
|
27
27
|
showProductCardRating: boolean;
|
|
@@ -64,6 +64,8 @@ export interface TravelersFormValues {
|
|
|
64
64
|
phone: string;
|
|
65
65
|
email: string;
|
|
66
66
|
emailConfirmation: string;
|
|
67
|
+
travelAgentId: number;
|
|
68
|
+
travelAgentName: string;
|
|
67
69
|
}
|
|
68
70
|
export interface ProductAttributes {
|
|
69
71
|
productCode: string;
|
|
@@ -74,8 +76,9 @@ export interface BookingAttributes {
|
|
|
74
76
|
endDate: string;
|
|
75
77
|
catalog: number;
|
|
76
78
|
rooms: Room[];
|
|
77
|
-
tourCode
|
|
78
|
-
allotmentName
|
|
79
|
+
tourCode: string | null;
|
|
80
|
+
allotmentName: string | null;
|
|
81
|
+
allotmentIds: number[];
|
|
79
82
|
includeFlights?: boolean;
|
|
80
83
|
}
|
|
81
84
|
export interface FlightLine {
|
|
@@ -2,3 +2,5 @@ import { Room } from "../types";
|
|
|
2
2
|
export declare const getDateFromParams: (params: URLSearchParams, name: string) => string | null;
|
|
3
3
|
export declare const getNumberFromParams: (params: URLSearchParams, name: string) => number | null;
|
|
4
4
|
export declare const getRoomsFromParams: (params: URLSearchParams, name: string) => Room[] | null;
|
|
5
|
+
export declare const getStringFromParams: (params: URLSearchParams, name: string) => string | null;
|
|
6
|
+
export declare const getNumbersFromParams: (params: URLSearchParams, name: string) => number[];
|