@sabstravtech/obtservices 0.0.22042501 → 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 +8 -0
- package/angular/lib/vendor/fetchers/fast-track-quote.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-all-airlines.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-cancellation-info.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-car-hire-providers.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-hotel-chains.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-irl-supplier-station.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-rail-providers.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/send-offline-notification.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 +10 -3
- package/angular/lib/vendor/services/ticket-queue.service.d.ts +6 -0
- package/angular/lib/vendor/services/user.service.d.ts +5 -3
- package/angular/lib/vendor/types/graphql.angular.types.d.ts +438 -16
- package/angular/lib/vendor/updaters/edit-user.updater.d.ts +6 -0
- package/angular/lib/vendor/updaters/set-user-language-updater.d.ts +6 -0
- package/angular/sabstravtech-obtservices-angular.d.ts +16 -13
- package/angular/sabstravtech-obtservices-angular.metadata.json +1 -1
- package/angular/services.d.ts +1 -0
- package/base/fetchers.d.ts +10 -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 +8 -2
- package/base/lib/vendor/classes/fast-track-enterprise-search.d.ts +57 -0
- package/base/lib/vendor/classes/flight-enterprise-search.d.ts +2 -1
- package/base/lib/vendor/classes/hotel-enterprise-search.d.ts +3 -1
- package/base/lib/vendor/classes/irl-enterprise-search.d.ts +27 -7
- 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 +2 -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 +23 -0
- package/base/lib/vendor/fetchers/get-all-airlines.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/get-cancellation-info.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/get-car-hire-providers.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/get-hotel-chains.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/get-irl-supplier-station.fetcher.d.ts +21 -0
- package/base/lib/vendor/fetchers/get-rail-providers.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/send-offline-notification.fetcher.d.ts +21 -0
- package/base/lib/vendor/fetchers/user-fetcher.d.ts +2 -3
- 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 +2 -0
- package/base/lib/vendor/interfaces/Ifast-track-enterprise-search.d.ts +26 -0
- 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 +11 -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/Isearch.service.d.ts +7 -1
- package/base/lib/vendor/interfaces/Iuser.service.d.ts +2 -1
- package/base/lib/vendor/interfaces/eurostar-search-arg.interface.d.ts +2 -0
- 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/interfaces/user.data.d.ts +1 -0
- package/base/lib/vendor/models/traveller.object.d.ts +1 -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 +30 -5
- package/base/lib/vendor/services/user.service.d.ts +12 -5
- package/base/lib/vendor/services/webtoken.service.d.ts +1 -0
- package/base/lib/vendor/types/graphql.types.d.ts +398 -16
- package/base/lib/vendor/types/types.d.ts +53 -16
- package/base/lib/vendor/updaters/edit-user-updater.d.ts +19 -0
- package/base/lib/vendor/updaters/set-user-language-updater.d.ts +19 -0
- package/base/sabstravtech-obtservices-base.d.ts +5 -5
- package/base/sabstravtech-obtservices-base.metadata.json +1 -1
- package/base/services.d.ts +1 -0
- package/base/updaters.d.ts +2 -0
- package/bundles/sabstravtech-obtservices-angular.umd.js +499 -91
- 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 +3204 -176
- 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 +9 -1
- package/esm2015/angular/lib/vendor/fetchers/fast-track-quote.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-all-airlines.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-cancellation-info.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-car-hire-providers.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-hotel-chains.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-irl-supplier-station.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-rail-providers.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/send-offline-notification.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 +58 -37
- package/esm2015/angular/lib/vendor/services/ticket-queue.service.js +23 -0
- package/esm2015/angular/lib/vendor/services/user.service.js +12 -6
- package/esm2015/angular/lib/vendor/types/graphql.angular.types.js +583 -5
- package/esm2015/angular/lib/vendor/updaters/edit-user.updater.js +22 -0
- package/esm2015/angular/lib/vendor/updaters/set-user-language-updater.js +22 -0
- package/esm2015/angular/obtservices.module.js +3 -1
- package/esm2015/angular/sabstravtech-obtservices-angular.js +17 -14
- package/esm2015/angular/services.js +2 -1
- package/esm2015/base/fetchers.js +11 -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 +46 -16
- package/esm2015/base/lib/vendor/classes/eurostar-enterprise-search.js +77 -10
- package/esm2015/base/lib/vendor/classes/fast-track-enterprise-search.js +296 -0
- 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 +58 -19
- package/esm2015/base/lib/vendor/classes/irl-enterprise-search.js +214 -25
- 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 +3 -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 +11 -0
- package/esm2015/base/lib/vendor/fetchers/get-all-airlines.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/get-cancellation-info.fetcher.js +10 -0
- package/esm2015/base/lib/vendor/fetchers/get-car-hire-providers.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/get-hotel-chains.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/get-irl-supplier-station.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/get-rail-providers.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/send-offline-notification.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/user-fetcher.js +1 -1
- 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 +2 -0
- 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/Isearch.service.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Iuser.service.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/eurostar-search-arg.interface.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/interfaces/user.data.js +1 -1
- package/esm2015/base/lib/vendor/models/traveller.object.js +3 -2
- 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 +166 -20
- package/esm2015/base/lib/vendor/services/user.service.js +44 -6
- 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 +1704 -1
- package/esm2015/base/lib/vendor/updaters/edit-user-updater.js +11 -0
- package/esm2015/base/lib/vendor/updaters/set-user-language-updater.js +11 -0
- package/esm2015/base/sabstravtech-obtservices-base.js +6 -5
- package/esm2015/base/services.js +2 -1
- package/esm2015/base/updaters.js +3 -1
- package/fesm2015/sabstravtech-obtservices-angular.js +790 -19
- package/fesm2015/sabstravtech-obtservices-angular.js.map +1 -1
- package/fesm2015/sabstravtech-obtservices-base.js +3041 -169
- 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';
|
|
@@ -61,3 +62,12 @@ export * from './lib/vendor/fetchers/get-flight-seat-map-fetcher';
|
|
|
61
62
|
export * from './lib/vendor/fetchers/get-user-favourite-searches.fetcher';
|
|
62
63
|
export * from './lib/vendor/fetchers/get-conferma-room-images.fetcher';
|
|
63
64
|
export * from './lib/vendor/fetchers/email-basket.fetcher';
|
|
65
|
+
export * from './lib/vendor/fetchers/fast-track-quote.fetcher';
|
|
66
|
+
export * from './lib/vendor/fetchers/send-offline-notification.fetcher';
|
|
67
|
+
export * from './lib/vendor/fetchers/get-hotel-chains.fetcher';
|
|
68
|
+
export * from './lib/vendor/fetchers/get-rail-providers.fetcher';
|
|
69
|
+
export * from './lib/vendor/fetchers/get-all-airlines.fetcher';
|
|
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
|
}
|
|
@@ -17,6 +17,7 @@ import { EnterpriseBasketServiceInterface, InternalBasketInterface } from '../in
|
|
|
17
17
|
import { BaseEurostarQuoteFetcher, EurostarQuoteFetcherType } from '../fetchers/eurostar-quote.fetcher';
|
|
18
18
|
import { EurostarEnterpriseSearchInterface, EurostarTempParams } from '../interfaces/Ieurostar-enterprise-search';
|
|
19
19
|
import { AllowedClasses, FlightOperator, TimeWindow } from './flight-enterprise-search';
|
|
20
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
20
21
|
export declare type EurostarStation = {
|
|
21
22
|
gateway: string;
|
|
22
23
|
destination: string;
|
|
@@ -54,6 +55,7 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
54
55
|
private eurostarFetcher;
|
|
55
56
|
private basketService;
|
|
56
57
|
private searchService;
|
|
58
|
+
private modalService;
|
|
57
59
|
static readonly STORAGE_SESSION_PARAMS = "search_eurostar";
|
|
58
60
|
static readonly STORAGE_SESSION_RESULTS = "results_eurostar";
|
|
59
61
|
type: ServiceType;
|
|
@@ -163,16 +165,18 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
163
165
|
set negotiated(value: boolean);
|
|
164
166
|
get includeNearbyAirports(): boolean;
|
|
165
167
|
set includeNearbyAirports(value: boolean);
|
|
166
|
-
constructor(eurostarFetcher: BaseEurostarQuoteFetcher<SE_Q>, helpers: BaseHelperRoutines, userService: UserServiceInterface, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface);
|
|
168
|
+
constructor(eurostarFetcher: BaseEurostarQuoteFetcher<SE_Q>, helpers: BaseHelperRoutines, userService: UserServiceInterface, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface, modalService: BaseModalOpenerService);
|
|
167
169
|
protected processResults(results1: EurostarQuoteResult): EurostarQuoteResultArray;
|
|
168
170
|
matchFares(acc: EurostarItem[], out: EurostarItem): EurostarItem[];
|
|
169
171
|
formatEurostarResults(results: FlightJourney[], total: FlightFareTotal, index: number): EurostarItem;
|
|
170
172
|
protected resetQuery(checkIsValid?: boolean): void;
|
|
171
173
|
resetParams(): void;
|
|
172
174
|
private _isValid;
|
|
175
|
+
checkCabinMatchisValid(): boolean;
|
|
173
176
|
startSearch(): Promise<boolean>;
|
|
174
177
|
getRecentSearchQuery(query: SearchFlightsV2QueryVariables): SaveRecentSearchMutationVariables;
|
|
175
178
|
private updateSerchQuery;
|
|
179
|
+
turnCabinTypeToName(classType: FlightCabinClass): string[];
|
|
176
180
|
startRecentSearch(recentSearch: RecentSearch): void;
|
|
177
181
|
private makeDepartureTimeWindow;
|
|
178
182
|
private makeArrivalTimeWindow;
|
|
@@ -224,7 +228,7 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
224
228
|
resetSelectedFares(): void;
|
|
225
229
|
removeSelectedFlags(result: EurostarResults): EurostarResults;
|
|
226
230
|
updateLowestPrice(results: EurostarQuoteResultArray): ICheapestPrice;
|
|
227
|
-
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;
|
|
228
232
|
makeSchemaFlights(selectedFlight: FlightJourney, flightGroup: 'outbound' | 'inbound', groupIndex: number, segmentIndex?: number): any;
|
|
229
233
|
private createGroupedItem;
|
|
230
234
|
protected makeSessionResults(data: EurostarQuoteResultArray): EurostarSessionType;
|
|
@@ -238,5 +242,7 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
238
242
|
value: string;
|
|
239
243
|
}[];
|
|
240
244
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
245
|
+
applyFavourite(fav: any): Promise<void>;
|
|
246
|
+
openEurostarFareRules(basketItem: BasketItem): void;
|
|
241
247
|
}
|
|
242
248
|
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
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';
|
|
13
|
+
export declare class FastTrackEnterpriseSearch<FTQ_Q extends FastTrackQuoteFetcherType> extends BaseEnterpriseSearch<FastTrackTempParams, FastTrackQuoteResultArray, FastTrackQuoteResultArray> implements FastTrackEnterpriseSearchInterface {
|
|
14
|
+
private fasttrackFetcher;
|
|
15
|
+
private basketService;
|
|
16
|
+
private searchService;
|
|
17
|
+
static readonly STORAGE_SESSION_PARAMS = "search_fasttrack";
|
|
18
|
+
static readonly STORAGE_SESSION_RESULTS = "results_fasttrack";
|
|
19
|
+
type: ServiceType;
|
|
20
|
+
private _locationCode;
|
|
21
|
+
private travellers;
|
|
22
|
+
get adults(): number;
|
|
23
|
+
set adults(value: number);
|
|
24
|
+
get children(): number;
|
|
25
|
+
set children(value: number);
|
|
26
|
+
private _date;
|
|
27
|
+
get date(): NgbDateStruct;
|
|
28
|
+
set date(value: NgbDateStruct);
|
|
29
|
+
private _time;
|
|
30
|
+
get time(): string;
|
|
31
|
+
set time(value: string);
|
|
32
|
+
get arrivalDatetime(): moment.Moment;
|
|
33
|
+
set arrivalDatetime(value: moment.Moment);
|
|
34
|
+
private _updateDateTime;
|
|
35
|
+
get locationCode(): string | OBTAirportDetails;
|
|
36
|
+
set locationCode(value: string | OBTAirportDetails);
|
|
37
|
+
private _isValid;
|
|
38
|
+
protected resultsSessionName: string;
|
|
39
|
+
protected multiResultsSessionName: string;
|
|
40
|
+
constructor(fasttrackFetcher: BaseFastTrackQuoteFetcher<FTQ_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface);
|
|
41
|
+
protected resetQuery(): void;
|
|
42
|
+
startSearch(): Promise<boolean>;
|
|
43
|
+
getSearchQuery(): SearchFastTrackQueryVariables;
|
|
44
|
+
getRecentSearchQuery(query: SearchFastTrackQueryVariables): SaveRecentSearchMutationVariables;
|
|
45
|
+
startRecentSearch(recentSearch: RecentSearch): void;
|
|
46
|
+
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
47
|
+
updateLowestPrice(results: FastTrackQuote[]): ICheapestPrice;
|
|
48
|
+
addFastTrackToBasket(fasttrackQuote: FastTrackQuote, fasttrackQuery: SearchFastTrackQueryVariables): Promise<boolean>;
|
|
49
|
+
getTermsAndCond(fasttrackQuote: FastTrackQuote): {
|
|
50
|
+
name: string;
|
|
51
|
+
value: string;
|
|
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;
|
|
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);
|
|
@@ -137,6 +137,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
137
137
|
getSearchQuery(ogSearch?: boolean): SearchHotelsQueryVariables;
|
|
138
138
|
buildQuery(ogSearch?: boolean): void;
|
|
139
139
|
makeHotelAvalilityObject(hotel: HotelQuoteResult): AvailabilityObject;
|
|
140
|
+
resultsFilterMethod: (results: HotelDetailsArray) => HotelDetailsArray;
|
|
140
141
|
filterResults: () => void;
|
|
141
142
|
filterLighteningResults: () => void;
|
|
142
143
|
resultsHaveTag(searchTag: string): boolean;
|
|
@@ -185,4 +186,5 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
185
186
|
value: string;
|
|
186
187
|
}[];
|
|
187
188
|
saveSearch(hotelName?: string): Observable<SaveFavouriteSearchResult>;
|
|
189
|
+
applyFavourite(fav: any): Promise<void>;
|
|
188
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;
|
|
@@ -158,11 +169,17 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
158
169
|
get journeyType(): IrlJourneyType;
|
|
159
170
|
set journeyType(data: IrlJourneyType);
|
|
160
171
|
get sortDropdownValues(): SortTypeIrl[];
|
|
161
|
-
|
|
172
|
+
private _trainNumber;
|
|
173
|
+
get trainNumber(): string;
|
|
174
|
+
set trainNumber(data: string);
|
|
175
|
+
private _additionalInstructions;
|
|
176
|
+
get additionalInstructions(): string;
|
|
177
|
+
set additionalInstructions(data: string);
|
|
178
|
+
constructor(Irlfetcher: BaseIrlQuoteFetcher<Q>, irlDiscountCardsFetcher: BaseIrlDiscountCardFetcher<GIDF_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface, getIrlSupplierStationFetcher: BaseGetIrlSupplierStationFetcher<GISSF_Q>);
|
|
162
179
|
irlDiscountCards: IrlTravelCard;
|
|
163
180
|
protected processResults(results: IrlQuoteResultArray): ({
|
|
164
181
|
__typename?: "IRLJourneyOptions";
|
|
165
|
-
} & Pick<IrlJourneyOptions, "source" | "sourceId"> & {
|
|
182
|
+
} & Pick<IrlJourneyOptions, "source" | "sourceId" | "jrfreference"> & {
|
|
166
183
|
outbound?: ({
|
|
167
184
|
__typename?: "IRLJourneyOption";
|
|
168
185
|
} & Pick<IrlJourneyOption, "from" | "fromCode" | "to" | "toCode" | "departDateTime" | "arriveDateTime" | "changes" | "unsellable"> & {
|
|
@@ -372,7 +389,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
372
389
|
getLegsFromIrlJourneyOption(railJourneyOption: IrlJourneyOption): any[];
|
|
373
390
|
getSelectedIrlTicketOption(irlJourneyOption: IrlJourneyOption, irlTicketOption: IrlTicketOption, providerIndex: number): IrlTicketOption;
|
|
374
391
|
addSingleJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, outbound: IrlTicketOption, irlJourneyOption: IrlJourneyOption): Promise<boolean>;
|
|
375
|
-
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>;
|
|
376
393
|
updateLowestPrice(results: IrlJourneyOptions[]): ICheapestPrice;
|
|
377
394
|
findCheapestTicket(results: IrlJourneyOptions[]): number;
|
|
378
395
|
/**
|
|
@@ -381,14 +398,14 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
381
398
|
* @returns
|
|
382
399
|
* @memberof irl-enterprise-search
|
|
383
400
|
*/
|
|
384
|
-
sortByPrice(): void;
|
|
401
|
+
sortByPrice(ignoreDirectionChange?: boolean): void;
|
|
385
402
|
/**
|
|
386
403
|
* Sort results by departure time
|
|
387
404
|
*
|
|
388
405
|
* @returns
|
|
389
406
|
* @memberof irl-enterprise-search
|
|
390
407
|
*/
|
|
391
|
-
sortByDate(): void;
|
|
408
|
+
sortByDate(ignoreDirection?: boolean): void;
|
|
392
409
|
addOutboundAndFilter(ticket: IrlTicketOptionWithSelected, fullTicket: IrlJourneyOption): void;
|
|
393
410
|
filterSelected(filterOutbound?: boolean): IrlJourneyOptions[];
|
|
394
411
|
/**
|
|
@@ -402,4 +419,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
402
419
|
value: string;
|
|
403
420
|
}[];
|
|
404
421
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
422
|
+
generateFilters(results: IrlJourneyOption[]): IrlFilters;
|
|
423
|
+
applyFilters(filters: IrlFilters, direction?: string): void;
|
|
424
|
+
applyFavourite(fav: any): Promise<void>;
|
|
405
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;
|
|
@@ -10,6 +10,8 @@ export declare class ModalTypes {
|
|
|
10
10
|
static readonly RailTicketsDialogComponent: ModalTypes;
|
|
11
11
|
static readonly ModalFlightFareComponent: ModalTypes;
|
|
12
12
|
static readonly FlightExtrasDialogComponent: ModalTypes;
|
|
13
|
+
static readonly OfflineRequestDialogComponent: ModalTypes;
|
|
14
|
+
static readonly RequiresReasonDialogComponent: ModalTypes;
|
|
13
15
|
private _component;
|
|
14
16
|
get component(): any;
|
|
15
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
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
4
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
5
|
+
import { SearchFastTrackQuery, SearchFastTrackQueryVariables } from '../types/graphql.types';
|
|
6
|
+
import { FastTrackQuoteResultArray } from '../types/types';
|
|
7
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
8
|
+
declare type R = {
|
|
9
|
+
searchFastTrack: {
|
|
10
|
+
results: P;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare type P = FastTrackQuoteResultArray;
|
|
14
|
+
declare type A = SearchFastTrackQueryVariables;
|
|
15
|
+
declare type M = SearchFastTrackQuery;
|
|
16
|
+
export declare type FastTrackQuoteFetcherType = {
|
|
17
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
18
|
+
};
|
|
19
|
+
export declare class BaseFastTrackQuoteFetcher<Q extends FastTrackQuoteFetcherType> extends FetchableList<Q, A, R, P, M> {
|
|
20
|
+
constructor(gql: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
21
|
+
protected getDataFromResult(results: ApolloQueryResult<R>): P;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
3
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { GetAllAirlinesResultArray } from '../types/types';
|
|
6
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
7
|
+
import { GetAllAirlinesQuery } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
getAllAirlines: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = GetAllAirlinesResultArray;
|
|
12
|
+
declare type M = GetAllAirlinesQuery;
|
|
13
|
+
export declare type GetAllAirlinesFetcherType = {
|
|
14
|
+
fetch: () => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetAllAirlinesFetcher<Q extends GetAllAirlinesFetcherType> extends FetchableList<Q, null, R, P, M> {
|
|
17
|
+
constructor(queryGQL: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
18
|
+
protected getDataFromResult(results: ApolloQueryResult<R>): P;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -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,20 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
3
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { GetCarHireProvidersResultArray } from '../types/types';
|
|
6
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
7
|
+
import { GetCarHireProvidersQuery } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
getCarHireProviders: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = GetCarHireProvidersResultArray;
|
|
12
|
+
declare type M = GetCarHireProvidersQuery;
|
|
13
|
+
export declare type GetCarHireProvidersFetcherType = {
|
|
14
|
+
fetch: () => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetCarHireProvidersFetcher<Q extends GetCarHireProvidersFetcherType> extends FetchableList<Q, null, R, P, M> {
|
|
17
|
+
constructor(queryGQL: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
18
|
+
protected getDataFromResult(results: ApolloQueryResult<R>): P;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
3
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { GetHotelChainsResultArray } from '../types/types';
|
|
6
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
7
|
+
import { GetHotelChainsQuery } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
getHotelChains: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = GetHotelChainsResultArray;
|
|
12
|
+
declare type M = GetHotelChainsQuery;
|
|
13
|
+
export declare type GetHotelChainsFetcherType = {
|
|
14
|
+
fetch: () => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetHotelChainsFetcher<Q extends GetHotelChainsFetcherType> extends FetchableList<Q, null, R, P, M> {
|
|
17
|
+
constructor(queryGQL: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
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 {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
3
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { getRailProvidersResultArray } from '../types/types';
|
|
6
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
7
|
+
import { GetRailProvidersQuery } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
getRailProviders: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = getRailProvidersResultArray;
|
|
12
|
+
declare type M = GetRailProvidersQuery;
|
|
13
|
+
export declare type GetRailProvidersFetcherType = {
|
|
14
|
+
fetch: () => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetRailProvidersFetcher<Q extends GetRailProvidersFetcherType> extends FetchableList<Q, null, R, P, M> {
|
|
17
|
+
constructor(queryGQL: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
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 { FetchableObject } from './object-fetchable-enterprise';
|
|
4
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { SendOfflineNotificationsResult } from '../types/types';
|
|
7
|
+
import { SendOfflineNotificationQuery, SendOfflineNotificationQueryVariables } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
sendOfflineNotification: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = SendOfflineNotificationsResult;
|
|
12
|
+
declare type A = SendOfflineNotificationQueryVariables;
|
|
13
|
+
declare type M = SendOfflineNotificationQuery;
|
|
14
|
+
export declare type SendOfflineNotificationFetcherType = {
|
|
15
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
16
|
+
};
|
|
17
|
+
export declare class BaseSendOfflineNotificationFetcher<Q extends SendOfflineNotificationFetcherType> extends FetchableObject<Q, A, R, P, M> {
|
|
18
|
+
constructor(sendOfflineNotificationGQL: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
19
|
+
protected getDataFromResult(results: ApolloQueryResult<R>): P;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -2,14 +2,13 @@ import { FetchableObject } from './object-fetchable-enterprise';
|
|
|
2
2
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { ApolloQueryResult } from '@apollo/client/core';
|
|
5
|
-
import { GetUserQuery, GetUserQueryVariables } from '../types/graphql.types';
|
|
6
|
-
import { GetUserResult } from '../types/types';
|
|
5
|
+
import { GetUserQuery, GetUserQueryVariables, User } from '../types/graphql.types';
|
|
7
6
|
import { BaseHelperRoutines } from '../classes/helpers';
|
|
8
7
|
declare type A = GetUserQueryVariables;
|
|
9
8
|
declare type R = {
|
|
10
9
|
getUser: P;
|
|
11
10
|
};
|
|
12
|
-
declare type P =
|
|
11
|
+
declare type P = User;
|
|
13
12
|
declare type M = GetUserQuery;
|
|
14
13
|
export declare type SearchGetUserFetcherType = {
|
|
15
14
|
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
@@ -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,5 +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;
|
|
99
|
+
openEurostarFareRules(basketItem: BasketItem): void;
|
|
98
100
|
}
|