@sabstravtech/obtservices 0.0.22050309 → 0.0.22051001
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/angular/fetchers.d.ts +4 -0
- package/angular/lib/vendor/fetchers/get-cancellation-info.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-irl-supplier-station.fetcher.d.ts +7 -0
- package/angular/lib/vendor/services/enterprise-basket.service.d.ts +4 -3
- package/angular/lib/vendor/services/search.service.d.ts +4 -3
- package/angular/lib/vendor/services/ticket-queue.service.d.ts +6 -0
- package/angular/lib/vendor/types/graphql.angular.types.d.ts +96 -15
- package/angular/sabstravtech-obtservices-angular.d.ts +0 -1
- package/angular/sabstravtech-obtservices-angular.metadata.json +1 -1
- package/angular/services.d.ts +1 -0
- package/base/fetchers.d.ts +4 -0
- package/base/interfaces.d.ts +2 -0
- package/base/lib/vendor/classes/cabhire-enterprise-search.d.ts +2 -1
- package/base/lib/vendor/classes/carhire-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/classes/eurostar-enterprise-search.d.ts +2 -1
- package/base/lib/vendor/classes/fast-track-enterprise-search.d.ts +16 -11
- package/base/lib/vendor/classes/flight-enterprise-search.d.ts +2 -1
- package/base/lib/vendor/classes/hotel-enterprise-search.d.ts +2 -1
- package/base/lib/vendor/classes/irl-enterprise-search.d.ts +20 -6
- package/base/lib/vendor/classes/lounges-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/classes/management-info-and-valid.d.ts +6 -1
- package/base/lib/vendor/classes/modal-types.enum.d.ts +1 -0
- package/base/lib/vendor/classes/parking-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/classes/rail-enterprise-search.d.ts +3 -2
- package/base/lib/vendor/fetchers/fast-track-quote.fetcher.d.ts +1 -1
- package/base/lib/vendor/fetchers/get-cancellation-info.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/get-irl-supplier-station.fetcher.d.ts +21 -0
- package/base/lib/vendor/interfaces/Icabhire-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Icarhire-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Ienterprise-basket.service.d.ts +6 -3
- package/base/lib/vendor/interfaces/Ieurostar-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Ifast-track-enterprise-search.d.ts +5 -1
- package/base/lib/vendor/interfaces/Iflight-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Ihotel-enterprise-search.d.ts +2 -0
- package/base/lib/vendor/interfaces/Iirl-enterprise-search.d.ts +8 -3
- package/base/lib/vendor/interfaces/Ilounges-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Iparking-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Irail-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Iuser.service.d.ts +2 -1
- package/base/lib/vendor/interfaces/fast-track-filters.interface.d.ts +4 -0
- package/base/lib/vendor/interfaces/rail-basket-item.interface.d.ts +2 -0
- package/base/lib/vendor/interfaces/summary-interface.d.ts +2 -0
- package/base/lib/vendor/services/enterprise-basket.service.d.ts +13 -6
- package/base/lib/vendor/services/requires-reason.service.d.ts +20 -0
- package/base/lib/vendor/services/search.service.d.ts +5 -3
- package/base/lib/vendor/services/webtoken.service.d.ts +1 -0
- package/base/lib/vendor/types/graphql.types.d.ts +91 -15
- package/base/lib/vendor/types/types.d.ts +28 -15
- package/base/sabstravtech-obtservices-base.metadata.json +1 -1
- package/base/services.d.ts +1 -0
- package/bundles/sabstravtech-obtservices-angular.umd.js +175 -79
- package/bundles/sabstravtech-obtservices-angular.umd.js.map +1 -1
- package/bundles/sabstravtech-obtservices-angular.umd.min.js +1 -1
- package/bundles/sabstravtech-obtservices-angular.umd.min.js.map +1 -1
- package/bundles/sabstravtech-obtservices-base.umd.js +2511 -143
- package/bundles/sabstravtech-obtservices-base.umd.js.map +1 -1
- package/bundles/sabstravtech-obtservices-base.umd.min.js +2 -2
- package/bundles/sabstravtech-obtservices-base.umd.min.js.map +1 -1
- package/esm2015/angular/fetchers.js +5 -1
- package/esm2015/angular/lib/vendor/fetchers/get-cancellation-info.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-irl-supplier-station.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/services/enterprise-basket.service.js +8 -5
- package/esm2015/angular/lib/vendor/services/http-call.service.js +6 -2
- package/esm2015/angular/lib/vendor/services/search.service.js +28 -25
- package/esm2015/angular/lib/vendor/services/ticket-queue.service.js +23 -0
- package/esm2015/angular/lib/vendor/types/graphql.angular.types.js +62 -7
- package/esm2015/angular/obtservices.module.js +3 -1
- package/esm2015/angular/sabstravtech-obtservices-angular.js +1 -2
- package/esm2015/angular/services.js +2 -1
- package/esm2015/base/fetchers.js +5 -1
- package/esm2015/base/interfaces.js +3 -1
- package/esm2015/base/lib/vendor/classes/basket-info-mi-details.impl.js +4 -1
- package/esm2015/base/lib/vendor/classes/cabhire-enterprise-search.js +37 -5
- package/esm2015/base/lib/vendor/classes/carhire-enterprise-search.js +43 -12
- package/esm2015/base/lib/vendor/classes/eurostar-enterprise-search.js +35 -14
- package/esm2015/base/lib/vendor/classes/fast-track-enterprise-search.js +81 -14
- package/esm2015/base/lib/vendor/classes/flight-enterprise-search.js +44 -5
- package/esm2015/base/lib/vendor/classes/helpers.js +6 -2
- package/esm2015/base/lib/vendor/classes/hotel-enterprise-search.js +48 -14
- package/esm2015/base/lib/vendor/classes/irl-enterprise-search.js +197 -23
- package/esm2015/base/lib/vendor/classes/lounges-enterprise-search.js +22 -6
- package/esm2015/base/lib/vendor/classes/management-info-and-valid.js +1 -1
- package/esm2015/base/lib/vendor/classes/modal-types.enum.js +2 -1
- package/esm2015/base/lib/vendor/classes/parking-enterprise-search.js +27 -7
- package/esm2015/base/lib/vendor/classes/rail-enterprise-search.js +62 -13
- package/esm2015/base/lib/vendor/classes/supplementary-booking-info-impl.js +2 -2
- package/esm2015/base/lib/vendor/fetchers/fast-track-quote.fetcher.js +2 -2
- package/esm2015/base/lib/vendor/fetchers/get-cancellation-info.fetcher.js +10 -0
- package/esm2015/base/lib/vendor/fetchers/get-irl-supplier-station.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/interfaces/Icabhire-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Icarhire-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Ienterprise-basket.service.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Ieurostar-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Ifast-track-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Iflight-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Ihotel-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Iirl-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Ilounges-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Iparking-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Irail-enterprise-search.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Iuser.service.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/fast-track-filters.interface.js +2 -0
- package/esm2015/base/lib/vendor/interfaces/rail-basket-item.interface.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/summary-interface.js +1 -1
- package/esm2015/base/lib/vendor/services/enterprise-basket.service.js +63 -17
- package/esm2015/base/lib/vendor/services/hotel-avallibility.service.js +16 -12
- package/esm2015/base/lib/vendor/services/requires-reason.service.js +49 -0
- package/esm2015/base/lib/vendor/services/search.service.js +11 -5
- package/esm2015/base/lib/vendor/services/user.service.js +25 -4
- package/esm2015/base/lib/vendor/services/webtoken.service.js +9 -5
- package/esm2015/base/lib/vendor/types/graphql.types.js +9 -1
- package/esm2015/base/lib/vendor/types/types.js +1649 -8
- package/esm2015/base/services.js +2 -1
- package/fesm2015/sabstravtech-obtservices-angular.js +131 -17
- package/fesm2015/sabstravtech-obtservices-angular.js.map +1 -1
- package/fesm2015/sabstravtech-obtservices-base.js +2435 -149
- package/fesm2015/sabstravtech-obtservices-base.js.map +1 -1
- package/package.json +1 -1
package/angular/services.d.ts
CHANGED
|
@@ -9,3 +9,4 @@ export * from './lib/vendor/services/storage.service';
|
|
|
9
9
|
export * from './lib/vendor/services/user.service';
|
|
10
10
|
export * from './lib/vendor/services/webtoken.service';
|
|
11
11
|
export * from './lib/vendor/services/route-happy.service';
|
|
12
|
+
export * from './lib/vendor/services/ticket-queue.service';
|
package/base/fetchers.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './lib/vendor/fetchers/get-covid-microsite-token.fetcher';
|
|
|
14
14
|
export * from './lib/vendor/fetchers/get-rail-cards.fetcher';
|
|
15
15
|
export * from './lib/vendor/fetchers/get-rail-live-departures.fetcher';
|
|
16
16
|
export * from './lib/vendor/fetchers/get-rail-station.fetcher';
|
|
17
|
+
export * from './lib/vendor/fetchers/get-irl-supplier-station.fetcher';
|
|
17
18
|
export * from './lib/vendor/fetchers/get-risk-alerts.fetcher';
|
|
18
19
|
export * from './lib/vendor/fetchers/get-user-company-offices.fetcher';
|
|
19
20
|
export * from './lib/vendor/fetchers/get-user-current-carbon-allowance.fetcher';
|
|
@@ -67,3 +68,6 @@ export * from './lib/vendor/fetchers/get-hotel-chains.fetcher';
|
|
|
67
68
|
export * from './lib/vendor/fetchers/get-rail-providers.fetcher';
|
|
68
69
|
export * from './lib/vendor/fetchers/get-all-airlines.fetcher';
|
|
69
70
|
export * from './lib/vendor/fetchers/get-car-hire-providers.fetcher';
|
|
71
|
+
export * from './lib/vendor/fetchers/send-offline-notification.fetcher';
|
|
72
|
+
export * from './lib/vendor/fetchers/get-cancellation-info.fetcher';
|
|
73
|
+
export * from './lib/vendor/fetchers/get-cancellation-info.fetcher';
|
package/base/interfaces.d.ts
CHANGED
|
@@ -27,3 +27,5 @@ export * from './lib/vendor/interfaces/Ieurostar-enterprise-search';
|
|
|
27
27
|
export * from './lib/vendor/interfaces/terms-and-conditions.interface';
|
|
28
28
|
export * from './lib/vendor/interfaces/rail-basket-item.interface';
|
|
29
29
|
export * from './lib/vendor/interfaces/enable-fresh-chat-interface';
|
|
30
|
+
export * from './lib/vendor/interfaces/Ifast-track-enterprise-search';
|
|
31
|
+
export * from './lib/vendor/interfaces/fast-track-filters.interface';
|
|
@@ -107,7 +107,7 @@ export declare class CabHireEnterpriseSearch<CH_Q extends CabhireQuoteFetcherTyp
|
|
|
107
107
|
getRecentSearchQuery(query: QuerySearchCabHireArgs): SaveRecentSearchMutationVariables;
|
|
108
108
|
private updateSerchQuery;
|
|
109
109
|
startRecentSearch(recentSearch: RecentSearch): void;
|
|
110
|
-
getSearchQuery(): QuerySearchCabHireArgs;
|
|
110
|
+
getSearchQuery(simplifiedLocation?: boolean): QuerySearchCabHireArgs;
|
|
111
111
|
getReturnSearchQuery(): QuerySearchCabHireArgs;
|
|
112
112
|
updateOutboundAddress(location: any, placeDescription?: string): void;
|
|
113
113
|
updateInboundAddress(location: any, placeDescription?: string): void;
|
|
@@ -141,4 +141,5 @@ export declare class CabHireEnterpriseSearch<CH_Q extends CabhireQuoteFetcherTyp
|
|
|
141
141
|
value: string;
|
|
142
142
|
}[];
|
|
143
143
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
144
|
+
applyFavourite(fav: any): Promise<void>;
|
|
144
145
|
}
|
|
@@ -228,7 +228,7 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
228
228
|
resetSelectedFares(): void;
|
|
229
229
|
removeSelectedFlags(result: EurostarResults): EurostarResults;
|
|
230
230
|
updateLowestPrice(results: EurostarQuoteResultArray): ICheapestPrice;
|
|
231
|
-
doBooking(intBasket: InternalBasketInterface, selectedFlight: EurostarItem, schemaDetails: any, outboundDate: string, inboundDate: string, price: number): void;
|
|
231
|
+
doBooking(intBasket: InternalBasketInterface, selectedFlight: EurostarItem, schemaDetails: any, outboundDate: string, inboundDate: string, price: number, requiresReason: boolean): void;
|
|
232
232
|
makeSchemaFlights(selectedFlight: FlightJourney, flightGroup: 'outbound' | 'inbound', groupIndex: number, segmentIndex?: number): any;
|
|
233
233
|
private createGroupedItem;
|
|
234
234
|
protected makeSessionResults(data: EurostarQuoteResultArray): EurostarSessionType;
|
|
@@ -242,6 +242,7 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
242
242
|
value: string;
|
|
243
243
|
}[];
|
|
244
244
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
245
|
+
applyFavourite(fav: any): Promise<void>;
|
|
245
246
|
openEurostarFareRules(basketItem: BasketItem): void;
|
|
246
247
|
}
|
|
247
248
|
export {};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import moment from
|
|
2
|
-
import { BaseFastTrackQuoteFetcher, FastTrackQuoteFetcherType } from
|
|
3
|
-
import { ICheapestPrice } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import { BaseFastTrackQuoteFetcher, FastTrackQuoteFetcherType } from '../fetchers/fast-track-quote.fetcher';
|
|
3
|
+
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
4
|
+
import { FastTrackFilters } from '../interfaces/fast-track-filters.interface';
|
|
5
|
+
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
6
|
+
import { FastTrackEnterpriseSearchInterface, FastTrackTempParams } from '../interfaces/Ifast-track-enterprise-search';
|
|
7
|
+
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
8
|
+
import { BaseStorageService } from '../services/storage.service';
|
|
9
|
+
import { BasketItem, FastTrackQuote, SaveRecentSearchMutationVariables, SearchFastTrackQueryVariables, ServiceType } from '../types/graphql.types';
|
|
10
|
+
import { FastTrackQuoteResultArray, NgbDateStruct, OBTAirportDetails, RecentSearch } from '../types/types';
|
|
11
|
+
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
12
|
+
import { BaseHelperRoutines } from './helpers';
|
|
12
13
|
export declare class FastTrackEnterpriseSearch<FTQ_Q extends FastTrackQuoteFetcherType> extends BaseEnterpriseSearch<FastTrackTempParams, FastTrackQuoteResultArray, FastTrackQuoteResultArray> implements FastTrackEnterpriseSearchInterface {
|
|
13
14
|
private fasttrackFetcher;
|
|
14
15
|
private basketService;
|
|
@@ -49,4 +50,8 @@ export declare class FastTrackEnterpriseSearch<FTQ_Q extends FastTrackQuoteFetch
|
|
|
49
50
|
name: string;
|
|
50
51
|
value: string;
|
|
51
52
|
}[];
|
|
53
|
+
applyFilters(appliedFilters: FastTrackFilters, selectedSort: number): void;
|
|
54
|
+
sortResults(selectedSort: number, results?: FastTrackQuoteResultArray): FastTrackQuoteResultArray;
|
|
55
|
+
getMinPrice(fts: FastTrackQuoteResultArray): number;
|
|
56
|
+
getMaxPrice(fts: FastTrackQuoteResultArray): number;
|
|
52
57
|
}
|
|
@@ -199,7 +199,7 @@ export declare class FlightEnterpriseSearch<FQ_Q extends FlightQuoteFetcherType,
|
|
|
199
199
|
selectGroupedFlight(selectedFlight: FlightItineraryWithExtensions, direction: FlightDirectionEnum, groupId: number): Promise<void>;
|
|
200
200
|
private _updateTravelPolicies;
|
|
201
201
|
private bookSingleFlight;
|
|
202
|
-
doBooking(intBasket: InternalBasketInterface, selectedFlight:
|
|
202
|
+
doBooking(intBasket: InternalBasketInterface, selectedFlight: FlightItineraryWithExtensions, schemaDetails: any, outboundDate: string, inboundDate?: string): void;
|
|
203
203
|
private makeSchemaFlights;
|
|
204
204
|
addFlightJourneysToBasket(flightQuote: FlightItineraryWithExtensions): Promise<boolean>;
|
|
205
205
|
setFlightDisplayType(displayType: FlightDisplayTypes): void;
|
|
@@ -210,6 +210,7 @@ export declare class FlightEnterpriseSearch<FQ_Q extends FlightQuoteFetcherType,
|
|
|
210
210
|
value: string;
|
|
211
211
|
}[];
|
|
212
212
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
213
|
+
applyFavourite(fav: any): Promise<void>;
|
|
213
214
|
private updateSerchQuery;
|
|
214
215
|
}
|
|
215
216
|
export {};
|
|
@@ -35,7 +35,6 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
35
35
|
private quickListFetcher;
|
|
36
36
|
private getRailStationFetcher;
|
|
37
37
|
private applyHotelRulesFetcher;
|
|
38
|
-
static readonly MAX_HOTEL_ROOMS = 4;
|
|
39
38
|
static readonly STORAGE_SESSION_PARAMS = "search_hotel";
|
|
40
39
|
static readonly STORAGE_SESSION_RESULTS = "results_hotel";
|
|
41
40
|
type: ServiceType;
|
|
@@ -113,6 +112,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
113
112
|
set hotel_chain(newChain: any);
|
|
114
113
|
get max_rooms_array(): number[];
|
|
115
114
|
get max_occupant_array(): number[];
|
|
115
|
+
get max_no_of_rooms(): number;
|
|
116
116
|
get distance_list(): number[];
|
|
117
117
|
get location_type_select(): LocationTypes;
|
|
118
118
|
set location_type_select(value: LocationTypes);
|
|
@@ -186,4 +186,5 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
186
186
|
value: string;
|
|
187
187
|
}[];
|
|
188
188
|
saveSearch(hotelName?: string): Observable<SaveFavouriteSearchResult>;
|
|
189
|
+
applyFavourite(fav: any): Promise<void>;
|
|
189
190
|
}
|
|
@@ -14,6 +14,7 @@ import { IRLEnterpriseSearchInterface, IrlTempParams } from '../interfaces/Iirl-
|
|
|
14
14
|
import { ages } from '../models/traveller.object';
|
|
15
15
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
16
16
|
import { SortMethod } from './eurostar-enterprise-search';
|
|
17
|
+
import { BaseGetIrlSupplierStationFetcher, GetIrlSupplierStationFetcherType } from '../fetchers/get-irl-supplier-station.fetcher';
|
|
17
18
|
export declare enum SortTypesIrl {
|
|
18
19
|
CheapestFirst = "C",
|
|
19
20
|
EarliestFirst = "E",
|
|
@@ -33,11 +34,22 @@ export declare enum ClassType {
|
|
|
33
34
|
Second_Class = "2nd Class",
|
|
34
35
|
First_Class = "1st Class"
|
|
35
36
|
}
|
|
36
|
-
export
|
|
37
|
+
export interface IrlFilters {
|
|
38
|
+
priceMax: number;
|
|
39
|
+
priceMin: number;
|
|
40
|
+
dateArrMax: number;
|
|
41
|
+
dateArrMin: number;
|
|
42
|
+
dateDepMax: number;
|
|
43
|
+
dateDepMin: number;
|
|
44
|
+
classes: any[];
|
|
45
|
+
changes: any[];
|
|
46
|
+
}
|
|
47
|
+
export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q extends IrlDiscountCardFetcherType, GISSF_Q extends GetIrlSupplierStationFetcherType> extends BaseEnterpriseSearch<IrlTempParams, IrlQuoteResultArray, IrlQuoteResultArray> implements IRLEnterpriseSearchInterface {
|
|
37
48
|
private Irlfetcher;
|
|
38
49
|
private irlDiscountCardsFetcher;
|
|
39
50
|
private basketService;
|
|
40
51
|
private searchService;
|
|
52
|
+
private getIrlSupplierStationFetcher;
|
|
41
53
|
static readonly STORAGE_SESSION_PARAMS = "search_irl";
|
|
42
54
|
static readonly STORAGE_SESSION_RESULTS = "irl_results";
|
|
43
55
|
static readonly PASSING_POINT = "Passing";
|
|
@@ -102,7 +114,6 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
102
114
|
private _arrivalLocationId;
|
|
103
115
|
get arrivalLocationId(): string;
|
|
104
116
|
set arrivalLocationId(data: string);
|
|
105
|
-
private _adults;
|
|
106
117
|
get adults(): number;
|
|
107
118
|
set adults(data: number);
|
|
108
119
|
private _children;
|
|
@@ -164,7 +175,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
164
175
|
private _additionalInstructions;
|
|
165
176
|
get additionalInstructions(): string;
|
|
166
177
|
set additionalInstructions(data: string);
|
|
167
|
-
constructor(Irlfetcher: BaseIrlQuoteFetcher<Q>, irlDiscountCardsFetcher: BaseIrlDiscountCardFetcher<GIDF_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface);
|
|
178
|
+
constructor(Irlfetcher: BaseIrlQuoteFetcher<Q>, irlDiscountCardsFetcher: BaseIrlDiscountCardFetcher<GIDF_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface, getIrlSupplierStationFetcher: BaseGetIrlSupplierStationFetcher<GISSF_Q>);
|
|
168
179
|
irlDiscountCards: IrlTravelCard;
|
|
169
180
|
protected processResults(results: IrlQuoteResultArray): ({
|
|
170
181
|
__typename?: "IRLJourneyOptions";
|
|
@@ -378,7 +389,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
378
389
|
getLegsFromIrlJourneyOption(railJourneyOption: IrlJourneyOption): any[];
|
|
379
390
|
getSelectedIrlTicketOption(irlJourneyOption: IrlJourneyOption, irlTicketOption: IrlTicketOption, providerIndex: number): IrlTicketOption;
|
|
380
391
|
addSingleJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, outbound: IrlTicketOption, irlJourneyOption: IrlJourneyOption): Promise<boolean>;
|
|
381
|
-
addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inbound: IrlTicketOption, inJourneyOption: IrlJourneyOption): Promise<boolean>;
|
|
392
|
+
addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inbound: IrlTicketOption, inJourneyOption: IrlJourneyOption, outboundTicket?: IrlTicketOption, outboundJourney?: IrlJourneyOption): Promise<boolean>;
|
|
382
393
|
updateLowestPrice(results: IrlJourneyOptions[]): ICheapestPrice;
|
|
383
394
|
findCheapestTicket(results: IrlJourneyOptions[]): number;
|
|
384
395
|
/**
|
|
@@ -387,14 +398,14 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
387
398
|
* @returns
|
|
388
399
|
* @memberof irl-enterprise-search
|
|
389
400
|
*/
|
|
390
|
-
sortByPrice(): void;
|
|
401
|
+
sortByPrice(ignoreDirectionChange?: boolean): void;
|
|
391
402
|
/**
|
|
392
403
|
* Sort results by departure time
|
|
393
404
|
*
|
|
394
405
|
* @returns
|
|
395
406
|
* @memberof irl-enterprise-search
|
|
396
407
|
*/
|
|
397
|
-
sortByDate(): void;
|
|
408
|
+
sortByDate(ignoreDirection?: boolean): void;
|
|
398
409
|
addOutboundAndFilter(ticket: IrlTicketOptionWithSelected, fullTicket: IrlJourneyOption): void;
|
|
399
410
|
filterSelected(filterOutbound?: boolean): IrlJourneyOptions[];
|
|
400
411
|
/**
|
|
@@ -408,4 +419,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
408
419
|
value: string;
|
|
409
420
|
}[];
|
|
410
421
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
422
|
+
generateFilters(results: IrlJourneyOption[]): IrlFilters;
|
|
423
|
+
applyFilters(filters: IrlFilters, direction?: string): void;
|
|
424
|
+
applyFavourite(fav: any): Promise<void>;
|
|
411
425
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { ValidatorChecker } from '../classes/validator.checker';
|
|
3
3
|
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
4
|
-
import { FieldWrapper, ManagementInfo, ManagementInfoValue, Maybe, Scalars, SelectedManagementInfoValue, Service, UiPresentation } from '../types/graphql.types';
|
|
4
|
+
import { BookedByField, FieldWrapper, ManagementInfo, ManagementInfoValue, Maybe, Scalars, SelectedManagementInfoValue, Service, UiPresentation } from '../types/graphql.types';
|
|
5
5
|
import { GetMiAutoSugestionArray, ValidationErrors } from '../types/types';
|
|
6
6
|
export declare abstract class ManagementInfoAndIsValid extends ValidatorChecker implements ManagementInfo {
|
|
7
7
|
agentOnly: FieldWrapper<Scalars['Boolean']>;
|
|
@@ -32,6 +32,11 @@ export declare abstract class ManagementInfoAndIsValid extends ValidatorChecker
|
|
|
32
32
|
get value(): string;
|
|
33
33
|
set value(val: string);
|
|
34
34
|
protected constructor(managementInfo: ManagementInfo);
|
|
35
|
+
reason: boolean;
|
|
36
|
+
takeValueFromUserDefault?: boolean;
|
|
37
|
+
takeValueFromBookerDefault?: boolean;
|
|
38
|
+
enforceUserDefault?: boolean;
|
|
39
|
+
bookedByField?: BookedByField;
|
|
35
40
|
isValid(): boolean;
|
|
36
41
|
hasErrors(value: string): Promise<ValidationErrors>;
|
|
37
42
|
abstract getValue(): string;
|
|
@@ -11,6 +11,7 @@ export declare class ModalTypes {
|
|
|
11
11
|
static readonly ModalFlightFareComponent: ModalTypes;
|
|
12
12
|
static readonly FlightExtrasDialogComponent: ModalTypes;
|
|
13
13
|
static readonly OfflineRequestDialogComponent: ModalTypes;
|
|
14
|
+
static readonly RequiresReasonDialogComponent: ModalTypes;
|
|
14
15
|
private _component;
|
|
15
16
|
get component(): any;
|
|
16
17
|
set component(value: any);
|
|
@@ -204,8 +204,8 @@ export declare class RailEnterpriseSearch<Q extends RailQuoteFetcherType, GRS_Q
|
|
|
204
204
|
getRailStation(code: string, isLoading?: BehaviorSubject<boolean>): Observable<RailStation>;
|
|
205
205
|
getSelectedRailJourneyFare(): RailJourneyFare;
|
|
206
206
|
getLegsFromRailJourneyOption(railJourneyOption: OBTRailJourneyOption): any[];
|
|
207
|
-
addSingleJourneyToBasket(serviceId: string, tempParams: RailTempParams, railJourneyOption: OBTRailJourneyOption, railFare:
|
|
208
|
-
addReturnJourneyToBasket(serviceId: string, tempParams: RailTempParams, outbound: OBTRailJourneyOption, inbound: OBTRailJourneyOption, outboundFare:
|
|
207
|
+
addSingleJourneyToBasket(serviceId: string, tempParams: RailTempParams, railJourneyOption: OBTRailJourneyOption, railFare: OBTRailJourneyFare): Promise<void>;
|
|
208
|
+
addReturnJourneyToBasket(serviceId: string, tempParams: RailTempParams, outbound: OBTRailJourneyOption, inbound: OBTRailJourneyOption, outboundFare: OBTRailJourneyFare, inboundFare: OBTRailJourneyFare): Promise<boolean>;
|
|
209
209
|
removedScheduledPlatformFromCallingPoints(railLegs: RailJourneyLeg[]): RailJourneyLeg[];
|
|
210
210
|
createTicketExtrasObject(railTicketExtra: RailTicketExtra): TicketExtras[];
|
|
211
211
|
calculateTimeDifferenceInMins(railJourney: RailJourneyOption): string;
|
|
@@ -222,4 +222,5 @@ export declare class RailEnterpriseSearch<Q extends RailQuoteFetcherType, GRS_Q
|
|
|
222
222
|
value: string;
|
|
223
223
|
}[];
|
|
224
224
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
225
|
+
applyFavourite(fav: any): Promise<void>;
|
|
225
226
|
}
|
|
@@ -6,7 +6,7 @@ import { SearchFastTrackQuery, SearchFastTrackQueryVariables } from '../types/gr
|
|
|
6
6
|
import { FastTrackQuoteResultArray } from '../types/types';
|
|
7
7
|
import { FetchableList } from './list-fetchable-enterprise';
|
|
8
8
|
declare type R = {
|
|
9
|
-
|
|
9
|
+
searchFastTrack: {
|
|
10
10
|
results: P;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { BeforeCancellationInfo, GetCancellationInfoQuery, GetCancellationInfoQueryVariables } from '../types/graphql.types';
|
|
5
|
+
import { FetchableObject } from './object-fetchable-enterprise';
|
|
6
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
7
|
+
declare type R = {
|
|
8
|
+
getCancellationInfo: P;
|
|
9
|
+
};
|
|
10
|
+
declare type P = BeforeCancellationInfo;
|
|
11
|
+
declare type A = GetCancellationInfoQueryVariables;
|
|
12
|
+
declare type M = GetCancellationInfoQuery;
|
|
13
|
+
export declare type GetCancellationInfoType = {
|
|
14
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetCancellationInfoFetcher<Q extends GetCancellationInfoType> extends FetchableObject<Q, A, R, P, M> {
|
|
17
|
+
constructor(gql: Q, modalService: BaseModalOpenerService, helpers: BaseHelperRoutines);
|
|
18
|
+
protected getDataFromResult(results: ApolloQueryResult<R>): P;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
3
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { SearchIrlStationsResult } from '../types/types';
|
|
7
|
+
import { GetIrlSupplierStationQuery, GetIrlSupplierStationQueryVariables } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
getIRLSupplierStation: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = SearchIrlStationsResult;
|
|
12
|
+
declare type A = GetIrlSupplierStationQueryVariables;
|
|
13
|
+
declare type M = GetIrlSupplierStationQuery;
|
|
14
|
+
export declare type GetIrlSupplierStationFetcherType = {
|
|
15
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
16
|
+
};
|
|
17
|
+
export declare class BaseGetIrlSupplierStationFetcher<Q extends GetIrlSupplierStationFetcherType> extends FetchableList<Q, A, R, P, M> {
|
|
18
|
+
constructor(gql: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
19
|
+
protected getDataFromResult(results: ApolloQueryResult<R>): P;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -132,4 +132,5 @@ export interface CabHireEnterpriseSearchInterface extends BaseEnterpriseSearch<C
|
|
|
132
132
|
updateLowestPrice(results: CabHireQuote[]): ICheapestPrice;
|
|
133
133
|
resetParams(): void;
|
|
134
134
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
135
|
+
applyFavourite(fav: any): void;
|
|
135
136
|
}
|
|
@@ -99,4 +99,5 @@ export interface CarhireEnterpriseSearchInterface extends BaseEnterpriseSearch<C
|
|
|
99
99
|
getCarHireAvailabilityDetail(locationDetails: CarHireInputIdentifiers, isLoading: BehaviorSubject<boolean>): Observable<CarHireDetailRequestResponse>;
|
|
100
100
|
addCarHireToBasket(carHireQuote: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): Promise<boolean>;
|
|
101
101
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
102
|
+
applyFavourite(fav: any): void;
|
|
102
103
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable, Observer, Subject } from 'rxjs';
|
|
2
|
-
import { AddItemToBasket, BasketItem, ManagementInfo, SupplementaryBookingInfo } from '../types/graphql.types';
|
|
2
|
+
import { AddItemToBasket, BasketItem, BeforeCancellationInfo, ManagementInfo, SupplementaryBookingInfo } from '../types/graphql.types';
|
|
3
3
|
import { GetUserBasketItemResult, GetUserBasketResult, UserBasketResult } from '../types/types';
|
|
4
4
|
import { Traveller } from '../models/traveller.object';
|
|
5
5
|
import { EnterpriseSearchServiceInterface } from './Isearch.service';
|
|
6
6
|
import { BasketDetails, BasketItemManagementInfo, BasketPrices } from '../services/enterprise-basket.service';
|
|
7
|
+
import { RequiresReasonServiceInterface } from '../services/requires-reason.service';
|
|
7
8
|
export interface InternalBasketInterface {
|
|
8
9
|
subject: BehaviorSubject<any>;
|
|
9
10
|
id?: string;
|
|
@@ -25,10 +26,12 @@ export interface EnterpriseBasketServiceInterface {
|
|
|
25
26
|
highlightBasketItemsEmitter: Subject<GetUserBasketItemResult[]>;
|
|
26
27
|
baskets: BehaviorSubject<InternalBasketInterface[]>;
|
|
27
28
|
menuState: string;
|
|
28
|
-
addToBasket(item: AddItemToBasket.Variables, intBasket: InternalBasketInterface, searchService: EnterpriseSearchServiceInterface, travellers: Traveller[]): any;
|
|
29
|
+
addToBasket(item: AddItemToBasket.Variables, intBasket: InternalBasketInterface, searchService: EnterpriseSearchServiceInterface, travellers: Traveller[], requiresReason: boolean): any;
|
|
30
|
+
getRequiresReasonService(): RequiresReasonServiceInterface;
|
|
31
|
+
canCancel(basketItem: BasketItem): Observable<BeforeCancellationInfo>;
|
|
29
32
|
createBasket(): Promise<InternalBasketInterface>;
|
|
30
33
|
loadBasket(id: string): void;
|
|
31
|
-
removeBasketItem(basketId: string, item:
|
|
34
|
+
removeBasketItem(basketId: string, item: GetUserBasketItemResult): void;
|
|
32
35
|
getDefaultBasket(): Promise<InternalBasketInterface>;
|
|
33
36
|
toggleMenu(): void;
|
|
34
37
|
closeMenu(): void;
|
|
@@ -94,6 +94,7 @@ export interface EurostarEnterpriseSearchInterface extends BaseEnterpriseSearch<
|
|
|
94
94
|
isOverNight(): boolean;
|
|
95
95
|
addEurostarJourneysToBasket(selectedFlight: FlightItinerary): void;
|
|
96
96
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
97
|
+
applyFavourite(fav: any): void;
|
|
97
98
|
convertRecentSearchDateTime(date: string, timeWindow?: string): moment.Moment;
|
|
98
99
|
openEurostarFareRules(basketItem: BasketItem): void;
|
|
99
100
|
}
|
|
@@ -3,13 +3,14 @@ import moment from 'moment';
|
|
|
3
3
|
import { BaseEnterpriseSearch } from "../classes/base-enterprise";
|
|
4
4
|
import { BasketItem, FastTrackQuote, SearchFastTrackQueryVariables, ServiceType } from "../types/graphql.types";
|
|
5
5
|
import { ICheapestPrice } from "./cheapest-price";
|
|
6
|
+
import { FastTrackFilters } from "./fast-track-filters.interface";
|
|
6
7
|
export interface FastTrackTempParams {
|
|
7
8
|
arrivalDatetime: moment.Moment;
|
|
8
9
|
locationCode: string | OBTAirportDetails;
|
|
9
10
|
adults: number;
|
|
10
11
|
children: number;
|
|
11
12
|
}
|
|
12
|
-
export interface FastTrackEnterpriseSearchInterface extends BaseEnterpriseSearch<FastTrackTempParams, FastTrackQuoteResultArray, FastTrackQuoteResultArray
|
|
13
|
+
export interface FastTrackEnterpriseSearchInterface extends BaseEnterpriseSearch<FastTrackTempParams, FastTrackQuoteResultArray, FastTrackQuoteResultArray>, FastTrackTempParams {
|
|
13
14
|
arrivalDatetime: moment.Moment;
|
|
14
15
|
locationCode: string | OBTAirportDetails;
|
|
15
16
|
adults: number;
|
|
@@ -19,4 +20,7 @@ export interface FastTrackEnterpriseSearchInterface extends BaseEnterpriseSearch
|
|
|
19
20
|
startSearch(): any;
|
|
20
21
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
21
22
|
updateLowestPrice(results: FastTrackQuote[]): ICheapestPrice;
|
|
23
|
+
applyFilters(appliedFilters: FastTrackFilters, selectedSort: number): void;
|
|
24
|
+
getMinPrice(fts: FastTrackQuoteResultArray): number;
|
|
25
|
+
getMaxPrice(fts: FastTrackQuoteResultArray): number;
|
|
22
26
|
}
|
|
@@ -94,5 +94,6 @@ export interface FlightEnterpriseSearchInterface extends BaseEnterpriseSearch<Fl
|
|
|
94
94
|
getMinFlightPriceForBrand(matchingBrandFlights: FlightItinerary[]): number;
|
|
95
95
|
openFlightFareRules(rules: FareConditions, flights: FlightJourney[]): void;
|
|
96
96
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
97
|
+
applyFavourite(fav: any): void;
|
|
97
98
|
convertRecentSearchDateTime(date: string, timeWindow?: string): moment.Moment;
|
|
98
99
|
}
|
|
@@ -144,6 +144,7 @@ export interface HotelEnterpriseSearchInterface extends BaseEnterpriseSearch<Hot
|
|
|
144
144
|
currency: string;
|
|
145
145
|
readonly max_rooms_array: {};
|
|
146
146
|
readonly max_occupant_array: {};
|
|
147
|
+
readonly max_no_of_rooms: number;
|
|
147
148
|
readonly distance_list: {};
|
|
148
149
|
location_type_select: LocationTypes;
|
|
149
150
|
readonly filters: HotelFilters;
|
|
@@ -175,4 +176,5 @@ export interface HotelEnterpriseSearchInterface extends BaseEnterpriseSearch<Hot
|
|
|
175
176
|
addHotelRoomToBasket(hotelQuoteResult: HotelQuoteResult, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<boolean>;
|
|
176
177
|
resultsHaveTag(searchTag: string): boolean;
|
|
177
178
|
saveSearch(hotelName?: string): Observable<SaveFavouriteSearchResult>;
|
|
179
|
+
applyFavourite(fav: any): void;
|
|
178
180
|
}
|
|
@@ -4,6 +4,7 @@ import { BasketItem, IrlClass, IrlJourneyOption, IrlJourneyOptions, IrlJourneyTy
|
|
|
4
4
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
5
5
|
import { ICheapestPrice } from './cheapest-price';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
+
import { IrlFilters, SortTypeIrl } from '../classes/irl-enterprise-search';
|
|
7
8
|
export interface IrlTempParams {
|
|
8
9
|
irlDiscountCards: IrlTravelCard;
|
|
9
10
|
supplier: IrlSupplier;
|
|
@@ -42,6 +43,7 @@ export interface IRLEnterpriseSearchInterface extends BaseEnterpriseSearch<IrlTe
|
|
|
42
43
|
cheapestFirst: IrlTicketOption;
|
|
43
44
|
originalUserSearch: IrlTempParams;
|
|
44
45
|
outboundTicket: IrlTicketOptionWithSelected;
|
|
46
|
+
sortDropdownValues: SortTypeIrl[];
|
|
45
47
|
additionalInstructions: string;
|
|
46
48
|
trainNumber: string;
|
|
47
49
|
irlClass: string;
|
|
@@ -49,12 +51,15 @@ export interface IRLEnterpriseSearchInterface extends BaseEnterpriseSearch<IrlTe
|
|
|
49
51
|
getSearchQuery(): SearchIrlQueryVariables;
|
|
50
52
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
51
53
|
addSingleJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, irlTicketOption: IrlTicketOption, irlJourneyOption: IrlJourneyOption): Promise<boolean>;
|
|
52
|
-
addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inTicketOption: IrlTicketOption, inJourneyOption: IrlJourneyOption): Promise<boolean>;
|
|
54
|
+
addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inTicketOption: IrlTicketOption, inJourneyOption: IrlJourneyOption, outTicketOption?: IrlTicketOption, outJourneyOption?: IrlJourneyOption): Promise<boolean>;
|
|
53
55
|
updateLowestPrice(results: IrlJourneyOptions[]): ICheapestPrice;
|
|
54
56
|
findCheapestTicket(results: IrlJourneyOptions[]): number;
|
|
55
|
-
sortByPrice(): void;
|
|
56
|
-
sortByDate(): void;
|
|
57
|
+
sortByPrice(ignoreDirectionChange: boolean): void;
|
|
58
|
+
sortByDate(ignoreDirectionChange: boolean): void;
|
|
57
59
|
filterSelected(filterOutbound?: boolean): void;
|
|
58
60
|
addOutboundAndFilter(ticket: IrlTicketOptionWithSelected, fullTicket: IrlJourneyOption): void;
|
|
59
61
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
62
|
+
generateFilters(results: IrlJourneyOption[]): any;
|
|
63
|
+
applyFilters(filters: IrlFilters, direction: string): void;
|
|
64
|
+
applyFavourite(fav: any): void;
|
|
60
65
|
}
|
|
@@ -35,4 +35,5 @@ export interface LoungesEnterpriseSearchInterface extends BaseEnterpriseSearch<L
|
|
|
35
35
|
addLoungeToBasket(loungeQuote: LoungeQuote, loungeQuery: SearchLoungesQueryVariables): any;
|
|
36
36
|
updateLowestPrice(results: LoungeQuote[]): ICheapestPrice;
|
|
37
37
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
38
|
+
applyFavourite(fav: any): void;
|
|
38
39
|
}
|
|
@@ -56,4 +56,5 @@ export interface ParkingEnterpriseSearchInterface extends BaseEnterpriseSearch<P
|
|
|
56
56
|
addParkingToBasket(parkingQuote: ParkingQuote, parkingQuery: SearchParkingQueryVariables): any;
|
|
57
57
|
updateLowestPrice(results: ParkingQuote[]): ICheapestPrice;
|
|
58
58
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
59
|
+
applyFavourite(fav: any): void;
|
|
59
60
|
}
|
|
@@ -107,4 +107,5 @@ export interface RailEnterpriseSearchInterface extends BaseEnterpriseSearch<Rail
|
|
|
107
107
|
addToBasket(sourceId: string, searchQuery: RailTempParams, journey: OBTRailJourneyOption, railFare: OBTRailJourneyFare, inboundRailFare?: OBTRailJourneyFare, inboundJourney?: OBTRailJourneyOption): Promise<boolean>;
|
|
108
108
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
109
109
|
getCriteria(departureDateTime: string, arrivalDateTime: string): RailSearchCriteria;
|
|
110
|
+
applyFavourite(fav: any): void;
|
|
110
111
|
}
|
|
@@ -2,7 +2,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
2
2
|
import { Suppliers, UserFavorurite } from '../classes/user-favourite.enum';
|
|
3
3
|
import { UserData } from './user.data';
|
|
4
4
|
import { Traveller } from '../models/traveller.object';
|
|
5
|
-
import { BookerType, Message, Service, ServiceType, UiConfig } from '../types/graphql.types';
|
|
5
|
+
import { BookerType, Message, Service, ServiceType, UiConfig, User } from '../types/graphql.types';
|
|
6
6
|
import { ServiceProvider, Unpacked, UserUiConfigsResult } from '../types/types';
|
|
7
7
|
export interface UserConfig {
|
|
8
8
|
[key: string]: UiConfig;
|
|
@@ -19,6 +19,7 @@ export interface FullUserDetails {
|
|
|
19
19
|
}>;
|
|
20
20
|
userData: BehaviorSubject<UserData>;
|
|
21
21
|
userServices: BehaviorSubject<UserServices>;
|
|
22
|
+
allDetails: BehaviorSubject<User>;
|
|
22
23
|
}
|
|
23
24
|
export interface UserServiceInterface {
|
|
24
25
|
getUserFavoriteObject<T>(uf: UserFavorurite): T;
|
|
@@ -47,6 +47,7 @@ export interface RailLegs {
|
|
|
47
47
|
operator: string;
|
|
48
48
|
}
|
|
49
49
|
export interface Outbound {
|
|
50
|
+
eTicket: boolean;
|
|
50
51
|
fareIdentifiers: string[];
|
|
51
52
|
journeyIdentifier: string;
|
|
52
53
|
ticketExtras?: TicketExtras[];
|
|
@@ -54,6 +55,7 @@ export interface Outbound {
|
|
|
54
55
|
journeyLegs?: RailJourneyLeg[];
|
|
55
56
|
}
|
|
56
57
|
export interface Return {
|
|
58
|
+
eTicket: boolean;
|
|
57
59
|
fareIdentifiers: string[];
|
|
58
60
|
journeyIdentifier: string;
|
|
59
61
|
ticketExtras?: TicketExtras[];
|