@qite/tide-booking-component 1.4.78 → 1.4.80
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/index.js +771 -473
- package/build/build-cjs/src/qsm/types.d.ts +2 -0
- package/build/build-cjs/src/search-results/store/search-results-slice.d.ts +10 -1
- package/build/build-cjs/src/search-results/types.d.ts +5 -4
- package/build/build-cjs/src/search-results/utils/search-results-utils.d.ts +9 -2
- package/build/build-esm/index.js +769 -438
- package/build/build-esm/src/qsm/types.d.ts +2 -0
- package/build/build-esm/src/search-results/store/search-results-slice.d.ts +10 -1
- package/build/build-esm/src/search-results/types.d.ts +5 -4
- package/build/build-esm/src/search-results/utils/search-results-utils.d.ts +9 -2
- package/package.json +2 -2
- package/src/booking-wizard/features/price-details/selectors.ts +1 -1
- package/src/content/features/content-page/content-page-self-contained.tsx +4 -4
- package/src/qsm/components/QSMContainer/qsm-container.tsx +9 -0
- package/src/search-results/components/hotel/hotel-accommodation-results.tsx +97 -99
- package/src/search-results/components/hotel/hotel-card.tsx +29 -7
- package/src/search-results/components/search-results-container/flight-search-results.tsx +2 -2
- package/src/search-results/components/search-results-container/search-results-container.tsx +191 -40
- package/src/search-results/features/flights/flight-search-results-self-contained.tsx +21 -2
- package/src/search-results/features/hotels/hotel-flight-search-results-self-contained.tsx +21 -2
- package/src/search-results/features/hotels/hotel-search-results-self-contained.tsx +21 -2
- package/src/search-results/features/roundtrips/roundtrip-search-results-self-contained.tsx +21 -2
- package/src/search-results/store/search-results-slice.ts +19 -1
- package/src/search-results/types.ts +5 -5
- package/src/search-results/utils/search-results-utils.ts +185 -2
- package/build/build-cjs/src/search-results/components/filters/utility.d.ts +0 -3
- package/build/build-esm/src/search-results/components/filters/utility.d.ts +0 -3
- package/src/search-results/components/filters/utility.tsx +0 -79
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { PortalQsmType, TravelClass, TravelType } from '../shared/types';
|
|
3
|
+
import { WebsiteConfigurationSearchConfiguration } from '@qite/tide-client';
|
|
3
4
|
export interface QSMConfiguration {
|
|
4
5
|
type?: PortalQsmType;
|
|
6
|
+
searchConfigurations: WebsiteConfigurationSearchConfiguration[];
|
|
5
7
|
askRooms?: boolean;
|
|
6
8
|
askTravelType?: boolean;
|
|
7
9
|
allowOneWay?: boolean;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ExtendedFlightSearchResponseItem, Filter } from '../types';
|
|
2
|
-
import { BookingPackage, BookingPackageItem, EntryLight } from '@qite/tide-client/build/types';
|
|
2
|
+
import { BookingPackage, BookingPackageItem, EntryLight, PackagingAccommodationResponse } from '@qite/tide-client/build/types';
|
|
3
3
|
export interface SearchResultsState {
|
|
4
4
|
results: BookingPackageItem[];
|
|
5
5
|
filteredResults: BookingPackageItem[];
|
|
6
6
|
selectedSearchResultId: number | null;
|
|
7
|
+
packagingAccoResults: PackagingAccommodationResponse[];
|
|
8
|
+
filteredPackagingAccoResults: PackagingAccommodationResponse[];
|
|
9
|
+
selectedPackagingAccoResultCode: string | null;
|
|
7
10
|
selectedFlight: ExtendedFlightSearchResponseItem | null;
|
|
8
11
|
selectedFlightDetails: ExtendedFlightSearchResponseItem | null;
|
|
9
12
|
bookingPackageDetails: BookingPackage | null;
|
|
@@ -18,6 +21,12 @@ export interface SearchResultsState {
|
|
|
18
21
|
export declare const setResults: import('@reduxjs/toolkit').ActionCreatorWithPayload<BookingPackageItem[], 'searchResults/setResults'>,
|
|
19
22
|
setFilteredResults: import('@reduxjs/toolkit').ActionCreatorWithPayload<BookingPackageItem[], 'searchResults/setFilteredResults'>,
|
|
20
23
|
setSelectedSearchResult: import('@reduxjs/toolkit').ActionCreatorWithPayload<number | null, 'searchResults/setSelectedSearchResult'>,
|
|
24
|
+
setPackagingAccoResults: import('@reduxjs/toolkit').ActionCreatorWithPayload<PackagingAccommodationResponse[], 'searchResults/setPackagingAccoResults'>,
|
|
25
|
+
setFilteredPackagingAccoResults: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
26
|
+
PackagingAccommodationResponse[],
|
|
27
|
+
'searchResults/setFilteredPackagingAccoResults'
|
|
28
|
+
>,
|
|
29
|
+
setSelectedPackagingAccoResult: import('@reduxjs/toolkit').ActionCreatorWithPayload<string | null, 'searchResults/setSelectedPackagingAccoResult'>,
|
|
21
30
|
setSelectedFlight: import('@reduxjs/toolkit').ActionCreatorWithPayload<ExtendedFlightSearchResponseItem | null, 'searchResults/setSelectedFlight'>,
|
|
22
31
|
setSelectedFlightDetails: import('@reduxjs/toolkit').ActionCreatorWithPayload<
|
|
23
32
|
ExtendedFlightSearchResponseItem | null,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FlightSearchResponseItem } from '@qite/tide-client';
|
|
1
|
+
import { FlightSearchResponseItem, WebsiteConfigurationSearchConfiguration } from '@qite/tide-client';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { PortalQsmType } from '../shared/types';
|
|
4
3
|
export type FlightSelectionMode = 'paired' | 'independent';
|
|
5
4
|
export interface SearchResultsConfiguration {
|
|
6
|
-
|
|
5
|
+
searchConfiguration: WebsiteConfigurationSearchConfiguration;
|
|
7
6
|
tideConnection: {
|
|
8
7
|
host: string;
|
|
9
8
|
apiKey: string;
|
|
@@ -61,7 +60,8 @@ export interface PaginationConfig {
|
|
|
61
60
|
}
|
|
62
61
|
export type SearchResult = HotelResult | FlightResult | RoundTripResult;
|
|
63
62
|
export interface BaseSearchResult {
|
|
64
|
-
id
|
|
63
|
+
id?: number;
|
|
64
|
+
code: string;
|
|
65
65
|
title: string;
|
|
66
66
|
image: string;
|
|
67
67
|
description?: string;
|
|
@@ -76,6 +76,7 @@ export interface BaseSearchResult {
|
|
|
76
76
|
export interface HotelResult extends BaseSearchResult {
|
|
77
77
|
type: 'hotel';
|
|
78
78
|
days: string;
|
|
79
|
+
contents?: string;
|
|
79
80
|
}
|
|
80
81
|
export interface RoundTripResult extends BaseSearchResult {
|
|
81
82
|
type: 'roundTrip';
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import { BookingPackageItem } from '@qite/tide-client';
|
|
2
|
-
import { Filter } from '../types';
|
|
1
|
+
import { BookingPackageItem, PackagingAccommodationResponse } from '@qite/tide-client';
|
|
2
|
+
import { Filter, TideTag } from '../types';
|
|
3
|
+
export declare const enrichFiltersWithResults: (results: BookingPackageItem[], filters: Filter[] | undefined, tags: TideTag[]) => Filter[];
|
|
4
|
+
export declare const enrichFiltersWithPackageAccoResults: (
|
|
5
|
+
results: PackagingAccommodationResponse[],
|
|
6
|
+
filters: Filter[] | undefined,
|
|
7
|
+
tags: TideTag[]
|
|
8
|
+
) => Filter[];
|
|
3
9
|
export declare const applyFilters: (results: BookingPackageItem[], filters: Filter[]) => BookingPackageItem[];
|
|
10
|
+
export declare const applyFiltersToPackageAccoResults: (results: PackagingAccommodationResponse[], filters: Filter[]) => PackagingAccommodationResponse[];
|