@sabstravtech/obtservices 0.0.22050309 → 0.0.26051001
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/components/basket-panel.d.ts +1 -0
- package/angular/fetchers.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-cancellation-info.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-companies.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-company.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-user-guests.fetcher.d.ts +7 -0
- package/angular/lib/vendor/services/enterprise-basket.service.d.ts +5 -3
- package/angular/lib/vendor/services/logon.service.d.ts +2 -1
- 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/services/user.service.d.ts +7 -3
- package/angular/lib/vendor/types/graphql.angular.types.d.ts +354 -90
- package/angular/lib/vendor/updaters/create-guest-updater.d.ts +6 -0
- 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/angular/updaters.d.ts +1 -0
- package/base/fetchers.d.ts +7 -0
- package/base/interfaces.d.ts +2 -0
- package/base/lib/vendor/classes/base-enterprise.d.ts +5 -1
- package/base/lib/vendor/classes/basket-info-mi-details.impl.d.ts +2 -0
- package/base/lib/vendor/classes/bookable-basket.d.ts +2 -0
- package/base/lib/vendor/classes/cabhire-enterprise-search.d.ts +6 -4
- package/base/lib/vendor/classes/carhire-enterprise-search.d.ts +5 -3
- package/base/lib/vendor/classes/eurostar-enterprise-search.d.ts +5 -4
- package/base/lib/vendor/classes/fast-track-enterprise-search.d.ts +18 -13
- package/base/lib/vendor/classes/flight-enterprise-search.d.ts +6 -5
- package/base/lib/vendor/classes/helpers.d.ts +6 -1
- package/base/lib/vendor/classes/hotel-enterprise-search.d.ts +8 -4
- package/base/lib/vendor/classes/irl-enterprise-search.d.ts +23 -9
- package/base/lib/vendor/classes/lounges-enterprise-search.d.ts +4 -3
- package/base/lib/vendor/classes/management-info-and-valid.d.ts +7 -2
- package/base/lib/vendor/classes/modal-types.enum.d.ts +2 -0
- package/base/lib/vendor/classes/parking-enterprise-search.d.ts +4 -3
- package/base/lib/vendor/classes/rail-enterprise-search.d.ts +10 -7
- package/base/lib/vendor/classes/supplementary-booking-info-impl.d.ts +5 -3
- 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-companies.fetcher.d.ts +21 -0
- package/base/lib/vendor/fetchers/get-company.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-user-guests.fetcher.d.ts +20 -0
- package/base/lib/vendor/interfaces/Icabhire-enterprise-search.d.ts +2 -0
- package/base/lib/vendor/interfaces/Icarhire-enterprise-search.d.ts +4 -2
- package/base/lib/vendor/interfaces/Ienterprise-basket.service.d.ts +10 -6
- package/base/lib/vendor/interfaces/Ieurostar-enterprise-search.d.ts +2 -0
- package/base/lib/vendor/interfaces/Ifast-track-enterprise-search.d.ts +11 -5
- package/base/lib/vendor/interfaces/Iflight-enterprise-search.d.ts +3 -1
- package/base/lib/vendor/interfaces/Ihotel-enterprise-search.d.ts +7 -2
- package/base/lib/vendor/interfaces/Iirl-enterprise-search.d.ts +11 -5
- package/base/lib/vendor/interfaces/Ilounges-enterprise-search.d.ts +2 -0
- package/base/lib/vendor/interfaces/Iparking-enterprise-search.d.ts +2 -0
- package/base/lib/vendor/interfaces/Irail-enterprise-search.d.ts +6 -2
- package/base/lib/vendor/interfaces/Isearch.service.d.ts +4 -2
- package/base/lib/vendor/interfaces/Isupplementary-booking-info-impl.d.ts +3 -2
- package/base/lib/vendor/interfaces/Iuser.service.d.ts +3 -1
- package/base/lib/vendor/interfaces/car-hire-search-arg.interface.d.ts +2 -3
- 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 +4 -0
- package/base/lib/vendor/interfaces/user.data.d.ts +1 -0
- package/base/lib/vendor/models/traveller.object.d.ts +1 -1
- package/base/lib/vendor/services/enterprise-basket.service.d.ts +28 -10
- package/base/lib/vendor/services/logon.service.d.ts +5 -1
- package/base/lib/vendor/services/requires-reason.service.d.ts +20 -0
- package/base/lib/vendor/services/search.service.d.ts +30 -25
- package/base/lib/vendor/services/url.service.d.ts +2 -0
- package/base/lib/vendor/services/user.service.d.ts +21 -5
- package/base/lib/vendor/services/webtoken.service.d.ts +5 -0
- package/base/lib/vendor/types/graphql.types.d.ts +326 -89
- package/base/lib/vendor/types/types.d.ts +44 -17
- package/base/lib/vendor/updaters/create-guest-updater.d.ts +19 -0
- package/base/sabstravtech-obtservices-base.d.ts +1 -1
- package/base/sabstravtech-obtservices-base.metadata.json +1 -1
- package/base/services.d.ts +1 -0
- package/base/updaters.d.ts +1 -0
- package/bundles/sabstravtech-obtservices-angular.umd.js +466 -180
- 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 +4435 -1004
- 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/components/basket-panel.js +16 -7
- package/esm2015/angular/fetchers.js +8 -1
- package/esm2015/angular/lib/vendor/fetchers/get-cancellation-info.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-companies.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-company.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-user-guests.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/services/enterprise-basket.service.js +11 -5
- package/esm2015/angular/lib/vendor/services/http-call.service.js +6 -2
- package/esm2015/angular/lib/vendor/services/logon.service.js +8 -5
- 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/services/user.service.js +21 -9
- package/esm2015/angular/lib/vendor/services/webtoken.service.js +6 -2
- package/esm2015/angular/lib/vendor/types/graphql.angular.types.js +353 -72
- package/esm2015/angular/lib/vendor/updaters/create-guest-updater.js +22 -0
- 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/angular/updaters.js +2 -1
- package/esm2015/base/fetchers.js +8 -1
- package/esm2015/base/interfaces.js +3 -1
- package/esm2015/base/lib/vendor/classes/base-enterprise.js +8 -2
- package/esm2015/base/lib/vendor/classes/basket-info-mi-details.impl.js +17 -1
- package/esm2015/base/lib/vendor/classes/bookable-basket.js +27 -6
- package/esm2015/base/lib/vendor/classes/cabhire-enterprise-search.js +98 -11
- package/esm2015/base/lib/vendor/classes/carhire-enterprise-search.js +146 -68
- package/esm2015/base/lib/vendor/classes/eurostar-enterprise-search.js +140 -37
- package/esm2015/base/lib/vendor/classes/fast-track-enterprise-search.js +111 -23
- package/esm2015/base/lib/vendor/classes/flight-enterprise-search.js +218 -40
- package/esm2015/base/lib/vendor/classes/helpers.js +24 -4
- package/esm2015/base/lib/vendor/classes/hotel-enterprise-search.js +191 -48
- package/esm2015/base/lib/vendor/classes/irl-enterprise-search.js +271 -27
- package/esm2015/base/lib/vendor/classes/lounges-enterprise-search.js +59 -11
- package/esm2015/base/lib/vendor/classes/management-info-and-valid.js +13 -9
- package/esm2015/base/lib/vendor/classes/modal-types.enum.js +3 -1
- package/esm2015/base/lib/vendor/classes/parking-enterprise-search.js +63 -11
- package/esm2015/base/lib/vendor/classes/rail-enterprise-search.js +183 -23
- package/esm2015/base/lib/vendor/classes/supplementary-booking-info-impl.js +42 -4
- 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-companies.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/get-company.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-user-guests.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 +2 -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/Isupplementary-booking-info-impl.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/Iuser.service.js +1 -1
- package/esm2015/base/lib/vendor/interfaces/car-hire-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 +1 -1
- package/esm2015/base/lib/vendor/services/enterprise-basket.service.js +154 -45
- package/esm2015/base/lib/vendor/services/hotel-avallibility.service.js +16 -12
- package/esm2015/base/lib/vendor/services/http-call.service.js +1 -1
- package/esm2015/base/lib/vendor/services/logon.service.js +37 -3
- package/esm2015/base/lib/vendor/services/requires-reason.service.js +53 -0
- package/esm2015/base/lib/vendor/services/search.service.js +82 -101
- package/esm2015/base/lib/vendor/services/url.service.js +3 -1
- package/esm2015/base/lib/vendor/services/user.service.js +64 -9
- package/esm2015/base/lib/vendor/services/webtoken.service.js +16 -5
- package/esm2015/base/lib/vendor/types/graphql.types.js +15 -2
- package/esm2015/base/lib/vendor/types/types.js +1679 -21
- package/esm2015/base/lib/vendor/updaters/create-guest-updater.js +11 -0
- package/esm2015/base/sabstravtech-obtservices-base.js +1 -1
- package/esm2015/base/services.js +2 -1
- package/esm2015/base/updaters.js +2 -1
- package/fesm2015/sabstravtech-obtservices-angular.js +570 -148
- package/fesm2015/sabstravtech-obtservices-angular.js.map +1 -1
- package/fesm2015/sabstravtech-obtservices-base.js +3725 -466
- package/fesm2015/sabstravtech-obtservices-base.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import moment from 'moment';
|
|
|
3
3
|
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
4
4
|
import { BaseStorageService } from '../services/storage.service';
|
|
5
5
|
import { BaseHelperRoutines } from './helpers';
|
|
6
|
-
import { NgbDateStruct, OBTAirportDetails, ParkingQuoteResultArray, TerminalsType, ParkingFiltersInterface, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
6
|
+
import { NgbDateStruct, OBTAirportDetails, ParkingQuoteResultArray, TerminalsType, ParkingFiltersInterface, RecentSearch, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
7
7
|
import { BasketItem, ParkingQuote, SaveRecentSearchMutationVariables, SearchParkingQueryVariables, ServiceType } from '../types/graphql.types';
|
|
8
8
|
import { BaseParkingQuoteFetcher, ParkingQuoteFetcherType } from '../fetchers/parking-quote-fetcher';
|
|
9
9
|
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
@@ -19,7 +19,6 @@ export declare const defaultValidations: {
|
|
|
19
19
|
export declare class ParkingEnterpriseSearch<Q extends ParkingQuoteFetcherType> extends BaseEnterpriseSearch<ParkingTempParams, ParkingQuoteResultArray, ParkingQuoteResultArray> implements ParkingEnterpriseSearchInterface {
|
|
20
20
|
private parkingfetcher;
|
|
21
21
|
private basketService;
|
|
22
|
-
private searchService;
|
|
23
22
|
static readonly STORAGE_SESSION_PARAMS = "search_parking";
|
|
24
23
|
static readonly STORAGE_SESSION_RESULTS = "results_parking";
|
|
25
24
|
type: ServiceType;
|
|
@@ -97,12 +96,14 @@ export declare class ParkingEnterpriseSearch<Q extends ParkingQuoteFetcherType>
|
|
|
97
96
|
startRecentSearch(recentSearch: RecentSearch): void;
|
|
98
97
|
getSearchQuery(): SearchParkingQueryVariables;
|
|
99
98
|
sortByPrice(asc?: boolean): void;
|
|
99
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
100
100
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
101
|
-
addParkingToBasket(parkingQuote: ParkingQuote, parkingQuery: SearchParkingQueryVariables): Promise<
|
|
101
|
+
addParkingToBasket(parkingQuote: ParkingQuote, parkingQuery: SearchParkingQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
102
102
|
getTermsAndCond(parkingQuote: ParkingQuote): {
|
|
103
103
|
name: string;
|
|
104
104
|
value: any;
|
|
105
105
|
}[];
|
|
106
106
|
updateLowestPrice(results: ParkingQuote[]): ICheapestPrice;
|
|
107
107
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
108
|
+
applyFavourite(fav: any): Promise<void>;
|
|
108
109
|
}
|
|
@@ -4,7 +4,7 @@ import { BaseEnterpriseSearch } from './base-enterprise';
|
|
|
4
4
|
import { BaseStorageService } from '../services/storage.service';
|
|
5
5
|
import { BaseHelperRoutines } from './helpers';
|
|
6
6
|
import { ValueDisplay } from '../interfaces/value-display';
|
|
7
|
-
import { CheapestRailClassPrices, CheapestRailPrices, NgbDateStruct, OBTRailFareTypes, OBTRailJourneyFare, OBTRailJourneyOption, OBTRailQuoteResultArray, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
7
|
+
import { CheapestRailClassPrices, CheapestRailPrices, DifferentInvokdedUserReasons, NgbDateStruct, OBTRailFareTypes, OBTRailJourneyFare, OBTRailJourneyOption, OBTRailQuoteResultArray, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
8
8
|
import { BasketItem, RailClass, RailJourneyOption, ReferenceRailCardQualifier, SaveRecentSearchMutationVariables, SearchRailQueryVariables, ServiceType, RailTicketExtra, RailSearchJourneyType, RailJourneyFare, RailStation, RailJourneyLeg } from '../types/graphql.types';
|
|
9
9
|
import { BaseRailQuoteFetcher, RailQuoteFetcherType } from '../fetchers/rail-quote-fetcher';
|
|
10
10
|
import { BaseGetRailStationFetcher, GetRailStationFetcherType } from '../fetchers/get-rail-station.fetcher';
|
|
@@ -32,7 +32,6 @@ export declare class RailEnterpriseSearch<Q extends RailQuoteFetcherType, GRS_Q
|
|
|
32
32
|
private Railfetcher;
|
|
33
33
|
private getRailStationFetcher;
|
|
34
34
|
private basketService;
|
|
35
|
-
private searchService;
|
|
36
35
|
private userService;
|
|
37
36
|
private modalService;
|
|
38
37
|
private _selectedTicket;
|
|
@@ -52,6 +51,8 @@ export declare class RailEnterpriseSearch<Q extends RailQuoteFetcherType, GRS_Q
|
|
|
52
51
|
});
|
|
53
52
|
get selectedInboundTicket(): IRailSelectedTicket;
|
|
54
53
|
set selectedInboundTicket(selectedTicket: IRailSelectedTicket);
|
|
54
|
+
set transactionIdentifier(id: string);
|
|
55
|
+
get transactionIdentifier(): string;
|
|
55
56
|
static readonly STORAGE_SESSION_PARAMS = "search_rail";
|
|
56
57
|
static readonly STORAGE_SESSION_RESULTS = "rail_results";
|
|
57
58
|
static readonly PASSING_POINT = "Passing";
|
|
@@ -185,9 +186,9 @@ export declare class RailEnterpriseSearch<Q extends RailQuoteFetcherType, GRS_Q
|
|
|
185
186
|
* @param inboundJourney
|
|
186
187
|
* @returns
|
|
187
188
|
*/
|
|
188
|
-
addToBasket(sourceId: string, searchQuery: RailTempParams, journey: OBTRailJourneyOption, railFare: OBTRailJourneyFare, inboundRailFare?: OBTRailJourneyFare, inboundJourney?: OBTRailJourneyOption): Promise<
|
|
189
|
-
addOpenReturnToBasket(sourceId: string, searchQuery: RailTempParams, journey: OBTRailJourneyOption, railFare: OBTRailJourneyFare): Promise<
|
|
190
|
-
addDualSingleToBasket(serviceId: string, searchQuery: RailTempParams, outbound: OBTRailJourneyOption, inbound: OBTRailJourneyOption, outboundFare: OBTRailJourneyFare, inboundFare: OBTRailJourneyFare): Promise<
|
|
189
|
+
addToBasket(sourceId: string, searchQuery: RailTempParams, journey: OBTRailJourneyOption, railFare: OBTRailJourneyFare, inboundRailFare?: OBTRailJourneyFare, inboundJourney?: OBTRailJourneyOption): Promise<DifferentInvokdedUserReasons>;
|
|
190
|
+
addOpenReturnToBasket(sourceId: string, searchQuery: RailTempParams, journey: OBTRailJourneyOption, railFare: OBTRailJourneyFare): Promise<DifferentInvokdedUserReasons>;
|
|
191
|
+
addDualSingleToBasket(serviceId: string, searchQuery: RailTempParams, outbound: OBTRailJourneyOption, inbound: OBTRailJourneyOption, outboundFare: OBTRailJourneyFare, inboundFare: OBTRailJourneyFare): Promise<DifferentInvokdedUserReasons>;
|
|
191
192
|
findCheapestTicket(): number;
|
|
192
193
|
protected resetQuery(): void;
|
|
193
194
|
private _setAirportExpressStations;
|
|
@@ -201,11 +202,12 @@ export declare class RailEnterpriseSearch<Q extends RailQuoteFetcherType, GRS_Q
|
|
|
201
202
|
getSearchQuery(tempParams: RailTempParams): SearchRailQueryVariables;
|
|
202
203
|
getCriteria(departureDateTime: string, arrivalDateTime: string): RailSearchCriteria;
|
|
203
204
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
205
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
204
206
|
getRailStation(code: string, isLoading?: BehaviorSubject<boolean>): Observable<RailStation>;
|
|
205
207
|
getSelectedRailJourneyFare(): RailJourneyFare;
|
|
206
208
|
getLegsFromRailJourneyOption(railJourneyOption: OBTRailJourneyOption): any[];
|
|
207
|
-
addSingleJourneyToBasket(serviceId: string, tempParams: RailTempParams, railJourneyOption: OBTRailJourneyOption, railFare:
|
|
208
|
-
addReturnJourneyToBasket(serviceId: string, tempParams: RailTempParams, outbound: OBTRailJourneyOption, inbound: OBTRailJourneyOption, outboundFare:
|
|
209
|
+
addSingleJourneyToBasket(serviceId: string, tempParams: RailTempParams, railJourneyOption: OBTRailJourneyOption, railFare: OBTRailJourneyFare): Promise<DifferentInvokdedUserReasons>;
|
|
210
|
+
addReturnJourneyToBasket(serviceId: string, tempParams: RailTempParams, outbound: OBTRailJourneyOption, inbound: OBTRailJourneyOption, outboundFare: OBTRailJourneyFare, inboundFare: OBTRailJourneyFare): Promise<DifferentInvokdedUserReasons>;
|
|
209
211
|
removedScheduledPlatformFromCallingPoints(railLegs: RailJourneyLeg[]): RailJourneyLeg[];
|
|
210
212
|
createTicketExtrasObject(railTicketExtra: RailTicketExtra): TicketExtras[];
|
|
211
213
|
calculateTimeDifferenceInMins(railJourney: RailJourneyOption): string;
|
|
@@ -222,4 +224,5 @@ export declare class RailEnterpriseSearch<Q extends RailQuoteFetcherType, GRS_Q
|
|
|
222
224
|
value: string;
|
|
223
225
|
}[];
|
|
224
226
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
227
|
+
applyFavourite(fav: any): Promise<void>;
|
|
225
228
|
}
|
|
@@ -2,7 +2,7 @@ import { BaseHelperRoutines } from '../classes/helpers';
|
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { GetUserAddressResult, GetUserPhoneNumberResult, GetUserResult, Schema, SchemaFormat, SchemaType } from '../types/types';
|
|
4
4
|
import { BaseGetUserFetcher, SearchGetUserFetcherType } from '../fetchers/user-fetcher';
|
|
5
|
-
import { Address, BasketItem, BookingAddress, BookingPhoneNumber, PhoneNumber, SupplementaryBookingInfo,
|
|
5
|
+
import { Address, BasketItem, BookingAddress, BookingPhoneNumber, PhoneNumber, SupplementaryBookingInfo, UserOrGuest } from '../types/graphql.types';
|
|
6
6
|
import { SupplementaryBookingInfoInterface } from '../interfaces/Isupplementary-booking-info-impl';
|
|
7
7
|
export declare class AddressImpl {
|
|
8
8
|
private helpers;
|
|
@@ -19,7 +19,7 @@ export declare class PhoneNumberImpl {
|
|
|
19
19
|
updateDetails(values: (BookingPhoneNumber | PhoneNumber | GetUserPhoneNumberResult)[]): void;
|
|
20
20
|
}
|
|
21
21
|
export declare class UserInfoImpl<Q extends SearchGetUserFetcherType> {
|
|
22
|
-
user:
|
|
22
|
+
user: UserOrGuest;
|
|
23
23
|
private getUserFetcher;
|
|
24
24
|
private helpers;
|
|
25
25
|
private perPassengerPhoneNumber;
|
|
@@ -36,7 +36,7 @@ export declare class UserInfoImpl<Q extends SearchGetUserFetcherType> {
|
|
|
36
36
|
supplementaryInfo: Schema;
|
|
37
37
|
};
|
|
38
38
|
userDetails: GetUserResult;
|
|
39
|
-
constructor(user:
|
|
39
|
+
constructor(user: UserOrGuest, getUserFetcher: BaseGetUserFetcher<Q>, helpers: BaseHelperRoutines, perPassengerPhoneNumber: boolean, perPassengerAddress: boolean, perPassengerSupplementaryBookingInfoSchema: Schema);
|
|
40
40
|
private setUpUserInfo;
|
|
41
41
|
}
|
|
42
42
|
export declare class SupplementaryBookingInfoImpl<Q extends SearchGetUserFetcherType> implements SupplementaryBookingInfoInterface {
|
|
@@ -51,7 +51,9 @@ export declare class SupplementaryBookingInfoImpl<Q extends SearchGetUserFetcher
|
|
|
51
51
|
address: AddressImpl;
|
|
52
52
|
phoneNumber: PhoneNumberImpl;
|
|
53
53
|
userInfo: UserInfoImpl<Q>[];
|
|
54
|
+
guestInfo: UserInfoImpl<Q>[];
|
|
54
55
|
hasDetails: boolean;
|
|
56
|
+
noCovertSelectSchemas: SchemaFormat[];
|
|
55
57
|
constructor(basketItem: BasketItem, helpers: BaseHelperRoutines, getUserFetcher: BaseGetUserFetcher<Q>);
|
|
56
58
|
processSchema(schema: Schema): Schema;
|
|
57
59
|
schemaWidgetToFormat(widget: string): SchemaFormat;
|
|
@@ -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 { GetCompaniesArray } from '../types/types';
|
|
7
|
+
import { GetCompaniesQuery, GetCompaniesQueryVariables } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
getCompanies: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = GetCompaniesArray;
|
|
12
|
+
declare type A = GetCompaniesQueryVariables;
|
|
13
|
+
declare type M = GetCompaniesQuery;
|
|
14
|
+
export declare type CompaniesFetcherType = {
|
|
15
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
16
|
+
};
|
|
17
|
+
export declare class BaseGetCompaniesFetcher<Q extends CompaniesFetcherType> extends FetchableList<Q, A, R, P, M> {
|
|
18
|
+
constructor(getCompaniesGQL: 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 { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { GetCompanyQuery, Company, GetCompanyQueryVariables } from '../types/graphql.types';
|
|
6
|
+
import { FetchableObject } from './object-fetchable-enterprise';
|
|
7
|
+
declare type R = {
|
|
8
|
+
getCompany: P;
|
|
9
|
+
};
|
|
10
|
+
declare type P = Company;
|
|
11
|
+
declare type A = GetCompanyQueryVariables;
|
|
12
|
+
declare type M = GetCompanyQuery;
|
|
13
|
+
export declare type CompanyFetcherType = {
|
|
14
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetCompanyFetcher<Q extends CompanyFetcherType> extends FetchableObject<Q, A, R, P, M> {
|
|
17
|
+
constructor(getCompanyGQL: 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 { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { GetUserGuestsQuery, GetUserGuestsQueryVariables, Guest } from '../types/graphql.types';
|
|
7
|
+
declare type R = {
|
|
8
|
+
getUserGuests: P;
|
|
9
|
+
};
|
|
10
|
+
declare type P = Guest[];
|
|
11
|
+
declare type A = GetUserGuestsQueryVariables;
|
|
12
|
+
declare type M = GetUserGuestsQuery;
|
|
13
|
+
export declare type GetUserGuestsFetcherType = {
|
|
14
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetUserGuestsFetcher<Q extends GetUserGuestsFetcherType> extends FetchableList<Q, A, R, P, M> {
|
|
17
|
+
constructor(queryGQL: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
|
|
18
|
+
protected getDataFromResult(results: ApolloQueryResult<R>): P;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -127,9 +127,11 @@ export interface CabHireEnterpriseSearchInterface extends BaseEnterpriseSearch<C
|
|
|
127
127
|
getOutboundFormVisibility(): BehaviorSubject<boolean>;
|
|
128
128
|
getInboundFormVisibility(): BehaviorSubject<boolean>;
|
|
129
129
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
130
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
130
131
|
getTransType(): string;
|
|
131
132
|
addCabHireToBasket(cabHireQuote: CabHireQuote, cabHireQuery: SearchCabHireQueryVariables): any;
|
|
132
133
|
updateLowestPrice(results: CabHireQuote[]): ICheapestPrice;
|
|
133
134
|
resetParams(): void;
|
|
134
135
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
136
|
+
applyFavourite(fav: any): void;
|
|
135
137
|
}
|
|
@@ -3,7 +3,7 @@ import { Observable, BehaviorSubject } from 'rxjs';
|
|
|
3
3
|
import { CarHireFilters } from './car-hire-filters.interface';
|
|
4
4
|
import { SelectFilter } from './select-filter.interface';
|
|
5
5
|
import { BasketItem, CarHireClass, CarHireDetailRequestResponse, CarHireInputIdentifiers, CarHireTransmission, CarHireType, CarHireVehicleAvailibility, QuerySearchCarHireArgs, ServiceType, SearchCarHireQueryVariables } from '../types/graphql.types';
|
|
6
|
-
import { CarHireDepot, CarHireQuoteResult, CarHireQuoteResultArray, LocationDetails, LocationTypes, NgbDateStruct, OBTAirportDetails, SaveFavouriteSearchResult } from '../types/types';
|
|
6
|
+
import { CarHireDepot, CarHireQuoteResult, CarHireQuoteResultArray, DifferentInvokdedUserReasons, LocationDetails, LocationTypes, NgbDateStruct, OBTAirportDetails, SaveFavouriteSearchResult } from '../types/types';
|
|
7
7
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
8
8
|
import { ICheapestPrice } from './cheapest-price';
|
|
9
9
|
import { ICarClasses } from './car-hire-classes.interface';
|
|
@@ -94,9 +94,11 @@ export interface CarhireEnterpriseSearchInterface extends BaseEnterpriseSearch<C
|
|
|
94
94
|
getMinPrice(cars: CarHireQuoteResultArray): number;
|
|
95
95
|
getMaxPrice(cars: CarHireQuoteResultArray): number;
|
|
96
96
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
97
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
97
98
|
isOverNight(): boolean;
|
|
98
99
|
updateLowestPrice(results: CarHireQuoteResultArray): ICheapestPrice;
|
|
99
100
|
getCarHireAvailabilityDetail(locationDetails: CarHireInputIdentifiers, isLoading: BehaviorSubject<boolean>): Observable<CarHireDetailRequestResponse>;
|
|
100
|
-
addCarHireToBasket(carHireQuote: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): Promise<
|
|
101
|
+
addCarHireToBasket(carHireQuote: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
101
102
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
103
|
+
applyFavourite(fav: any): void;
|
|
102
104
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable, Observer, Subject } from 'rxjs';
|
|
2
|
-
import { AddItemToBasket, BasketItem, ManagementInfo, SupplementaryBookingInfo } from '../types/graphql.types';
|
|
3
|
-
import { GetUserBasketItemResult, GetUserBasketResult, UserBasketResult } from '../types/types';
|
|
2
|
+
import { AddItemToBasket, BasketItem, BeforeCancellationInfo, ManagementInfo, SupplementaryBookingInfo } from '../types/graphql.types';
|
|
3
|
+
import { DifferentInvokdedUserReasons, 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[]):
|
|
29
|
+
addToBasket(item: AddItemToBasket.Variables, intBasket: InternalBasketInterface, searchService: EnterpriseSearchServiceInterface, travellers: Traveller[], requiresReason: boolean): Promise<DifferentInvokdedUserReasons>;
|
|
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): Promise<void>;
|
|
32
35
|
getDefaultBasket(): Promise<InternalBasketInterface>;
|
|
33
36
|
toggleMenu(): void;
|
|
34
37
|
closeMenu(): void;
|
|
@@ -44,8 +47,8 @@ export interface EnterpriseBasketServiceInterface {
|
|
|
44
47
|
setBasketItemMiGroup(basketid: string, basketItemid: string, group: string): void;
|
|
45
48
|
acceptNewPrice(intBasketid: string, item: BasketItem): void;
|
|
46
49
|
validateFreeValeMi(miItem: ManagementInfo, freeValue: string): any;
|
|
47
|
-
setMiFreeValue(basketid: string, miItem: ManagementInfo, freeValue: string, userId: string): void
|
|
48
|
-
setMiSelectedValue(basketid: string, miItem: ManagementInfo, selectedValue: string, userId: string): void
|
|
50
|
+
setMiFreeValue(basketid: string, miItem: ManagementInfo, freeValue: string, userId: string, guest?: boolean): Promise<void>;
|
|
51
|
+
setMiSelectedValue(basketid: string, miItem: ManagementInfo, selectedValue: string, userId: string, guest?: boolean): Promise<void>;
|
|
49
52
|
getMiAutoSugestions(miId: string, partialLabel: string, isLoading: BehaviorSubject<boolean>): Observable<any>;
|
|
50
53
|
saveMiData(basketId: string, bmiArray: BasketItemManagementInfo[]): void;
|
|
51
54
|
sendBasketForApproval(basketid: string): Promise<void>;
|
|
@@ -62,4 +65,5 @@ export interface EnterpriseBasketServiceInterface {
|
|
|
62
65
|
updateBasketNotes(basketId: string, notes: string): void;
|
|
63
66
|
updateBasketTitle(basketId: string, title: string): void;
|
|
64
67
|
setBasketItemPaymentOption(basket: BasketDetails, basketItem: BasketItem, paymentMethod: string): Promise<void>;
|
|
68
|
+
removeBookedBasket(): void;
|
|
65
69
|
}
|
|
@@ -86,6 +86,7 @@ export interface EurostarEnterpriseSearchInterface extends BaseEnterpriseSearch<
|
|
|
86
86
|
sortResults(sortMethodValue: SortTypesEurostar, dir: boolean, givenResults?: EurostarResults[]): void;
|
|
87
87
|
sortResultsFlightJourneys(sortMethodValue: SortTypesEurostar, inbound: boolean, givenResults?: FlightItinerary[]): FlightItinerary[];
|
|
88
88
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
89
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
89
90
|
getTotalBaggage(result: FlightItinerary): number;
|
|
90
91
|
transformMin(min: number): string;
|
|
91
92
|
updateLowestPrice(results: EurostarResults[]): ICheapestPrice;
|
|
@@ -94,6 +95,7 @@ export interface EurostarEnterpriseSearchInterface extends BaseEnterpriseSearch<
|
|
|
94
95
|
isOverNight(): boolean;
|
|
95
96
|
addEurostarJourneysToBasket(selectedFlight: FlightItinerary): void;
|
|
96
97
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
98
|
+
applyFavourite(fav: any): void;
|
|
97
99
|
convertRecentSearchDateTime(date: string, timeWindow?: string): moment.Moment;
|
|
98
100
|
openEurostarFareRules(basketItem: BasketItem): void;
|
|
99
101
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { FastTrackQuoteResultArray, NgbDateStruct, OBTAirportDetails } from
|
|
1
|
+
import { DifferentInvokdedUserReasons, FastTrackQuoteResultArray, NgbDateStruct, OBTAirportDetails } from '../types/types';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
-
import { BaseEnterpriseSearch } from
|
|
4
|
-
import { BasketItem, FastTrackQuote, SearchFastTrackQueryVariables, ServiceType } from
|
|
5
|
-
import { ICheapestPrice } from
|
|
3
|
+
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
4
|
+
import { BasketItem, FastTrackQuote, SearchFastTrackQueryVariables, ServiceType } from '../types/graphql.types';
|
|
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;
|
|
@@ -18,5 +19,10 @@ export interface FastTrackEnterpriseSearchInterface extends BaseEnterpriseSearch
|
|
|
18
19
|
getSearchQuery(): SearchFastTrackQueryVariables;
|
|
19
20
|
startSearch(): any;
|
|
20
21
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
22
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
21
23
|
updateLowestPrice(results: FastTrackQuote[]): ICheapestPrice;
|
|
24
|
+
applyFilters(appliedFilters: FastTrackFilters, selectedSort: number): void;
|
|
25
|
+
getMinPrice(fts: FastTrackQuoteResultArray): number;
|
|
26
|
+
getMaxPrice(fts: FastTrackQuoteResultArray): number;
|
|
27
|
+
addFastTrackToBasket(fasttrackQuote: FastTrackQuote, fasttrackQuery: SearchFastTrackQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
22
28
|
}
|
|
@@ -86,13 +86,15 @@ export interface FlightEnterpriseSearchInterface extends BaseEnterpriseSearch<Fl
|
|
|
86
86
|
startSearch(): any;
|
|
87
87
|
getSearchQuery(): SearchFlightsV2QueryVariables;
|
|
88
88
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
89
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
89
90
|
getTotalBaggage(result: FlightItinerary): number;
|
|
90
91
|
applyFilters(filters: FlightFilters, sortValue: FlightSortTypes): void;
|
|
91
92
|
resetParams(): void;
|
|
92
93
|
selectGroupedFlight(selectedFlight: FlightItinerary, direction: FlightDirectionEnum, groupId?: number): void;
|
|
93
94
|
addFlightJourneysToBasket(selectedFlight: FlightItinerary): void;
|
|
94
95
|
getMinFlightPriceForBrand(matchingBrandFlights: FlightItinerary[]): number;
|
|
95
|
-
openFlightFareRules(rules: FareConditions, flights: FlightJourney[]): void;
|
|
96
|
+
openFlightFareRules(rules: FareConditions, flights: FlightJourney[], options?: any, flightDetail?: FlightItinerary): void;
|
|
96
97
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
98
|
+
applyFavourite(fav: any): void;
|
|
97
99
|
convertRecentSearchDateTime(date: string, timeWindow?: string): moment.Moment;
|
|
98
100
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
-
import { Country, HotelQuoteResult, HotelQuoteResultArray, LocationTypes, MinMax, NgbDateStruct, LocationDetails, BreatfastTypes, HotelDetailsArray, SaveFavouriteSearchResult } from '../types/types';
|
|
3
|
+
import { Country, HotelQuoteResult, HotelQuoteResultArray, LocationTypes, MinMax, NgbDateStruct, LocationDetails, BreatfastTypes, HotelDetailsArray, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
4
4
|
import { BasketItem, ConfermaOfficeNames, HotelLocation, HotelRoom, HotelTag, SearchHotelsQueryVariables, ServiceType } from '../types/graphql.types';
|
|
5
5
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
6
6
|
import { ICheapestPrice } from './cheapest-price';
|
|
@@ -51,6 +51,7 @@ export declare class HotelFilters {
|
|
|
51
51
|
extra: string[];
|
|
52
52
|
hotelName: string;
|
|
53
53
|
breakfastType: string[];
|
|
54
|
+
accessibleRoomType: string[];
|
|
54
55
|
}
|
|
55
56
|
export declare enum HotelView {
|
|
56
57
|
LIST = "list",
|
|
@@ -144,10 +145,12 @@ export interface HotelEnterpriseSearchInterface extends BaseEnterpriseSearch<Hot
|
|
|
144
145
|
currency: string;
|
|
145
146
|
readonly max_rooms_array: {};
|
|
146
147
|
readonly max_occupant_array: {};
|
|
148
|
+
readonly max_no_of_rooms: number;
|
|
147
149
|
readonly distance_list: {};
|
|
148
150
|
location_type_select: LocationTypes;
|
|
149
151
|
readonly filters: HotelFilters;
|
|
150
152
|
cheapestPrice: ICheapestPrice;
|
|
153
|
+
jitRulesReceived: BehaviorSubject<boolean>;
|
|
151
154
|
makeLocations(location: HotelLocation[]): {
|
|
152
155
|
[key: string]: {};
|
|
153
156
|
};
|
|
@@ -166,13 +169,15 @@ export interface HotelEnterpriseSearchInterface extends BaseEnterpriseSearch<Hot
|
|
|
166
169
|
removeFilter(filter: string, type: keyof HotelFilters): void;
|
|
167
170
|
resetFilters(): void;
|
|
168
171
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
172
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
169
173
|
filterLighteningResults(): void;
|
|
170
174
|
getImages(HolidayCode: string): Observable<{}>;
|
|
171
175
|
addPaginationPage(currentPage: number): any;
|
|
172
176
|
toggleView(): void;
|
|
173
177
|
calcDayDiff(): number;
|
|
174
178
|
updateLowestPrice(results: HotelDetailsArray): ICheapestPrice;
|
|
175
|
-
addHotelRoomToBasket(hotelQuoteResult: HotelQuoteResult, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<
|
|
179
|
+
addHotelRoomToBasket(hotelQuoteResult: HotelQuoteResult, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<DifferentInvokdedUserReasons>;
|
|
176
180
|
resultsHaveTag(searchTag: string): boolean;
|
|
177
181
|
saveSearch(hotelName?: string): Observable<SaveFavouriteSearchResult>;
|
|
182
|
+
applyFavourite(fav: any): void;
|
|
178
183
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
-
import { NgbDateStruct, IrlQuoteResultArray, IrlTicketOptionWithSelected, SaveFavouriteSearchResult } from '../types/types';
|
|
2
|
+
import { NgbDateStruct, IrlQuoteResultArray, IrlTicketOptionWithSelected, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
3
3
|
import { BasketItem, IrlClass, IrlJourneyOption, IrlJourneyOptions, IrlJourneyType, IrlTicketOption, SearchIrlQueryVariables, ServiceType, IrlSupplier, IrlTravelCard } from '../types/graphql.types';
|
|
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,19 +43,24 @@ 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;
|
|
48
50
|
startSearch(): any;
|
|
49
51
|
getSearchQuery(): SearchIrlQueryVariables;
|
|
50
52
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
54
|
+
addSingleJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, irlTicketOption: IrlTicketOption, irlJourneyOption: IrlJourneyOption): Promise<DifferentInvokdedUserReasons>;
|
|
55
|
+
addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inTicketOption: IrlTicketOption, inJourneyOption: IrlJourneyOption, outTicketOption?: IrlTicketOption, outJourneyOption?: IrlJourneyOption): Promise<DifferentInvokdedUserReasons>;
|
|
53
56
|
updateLowestPrice(results: IrlJourneyOptions[]): ICheapestPrice;
|
|
54
57
|
findCheapestTicket(results: IrlJourneyOptions[]): number;
|
|
55
|
-
sortByPrice(): void;
|
|
56
|
-
sortByDate(): void;
|
|
58
|
+
sortByPrice(ignoreDirectionChange: boolean): void;
|
|
59
|
+
sortByDate(ignoreDirectionChange: boolean): void;
|
|
57
60
|
filterSelected(filterOutbound?: boolean): void;
|
|
58
61
|
addOutboundAndFilter(ticket: IrlTicketOptionWithSelected, fullTicket: IrlJourneyOption): void;
|
|
59
62
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
63
|
+
generateFilters(results: IrlJourneyOption[]): any;
|
|
64
|
+
applyFilters(filters: IrlFilters, direction: string): void;
|
|
65
|
+
applyFavourite(fav: any): void;
|
|
60
66
|
}
|
|
@@ -32,7 +32,9 @@ export interface LoungesEnterpriseSearchInterface extends BaseEnterpriseSearch<L
|
|
|
32
32
|
sortResultsPrice(results: LoungeQuote[], asc?: boolean): LoungeQuote[];
|
|
33
33
|
sortByTerminal(resultArray?: LoungeQuote[]): void;
|
|
34
34
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
35
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
35
36
|
addLoungeToBasket(loungeQuote: LoungeQuote, loungeQuery: SearchLoungesQueryVariables): any;
|
|
36
37
|
updateLowestPrice(results: LoungeQuote[]): ICheapestPrice;
|
|
37
38
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
39
|
+
applyFavourite(fav: any): void;
|
|
38
40
|
}
|
|
@@ -53,7 +53,9 @@ export interface ParkingEnterpriseSearchInterface extends BaseEnterpriseSearch<P
|
|
|
53
53
|
getSearchQuery(): SearchParkingQueryVariables;
|
|
54
54
|
sortByPrice(asc?: boolean): void;
|
|
55
55
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
56
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
56
57
|
addParkingToBasket(parkingQuote: ParkingQuote, parkingQuery: SearchParkingQueryVariables): any;
|
|
57
58
|
updateLowestPrice(results: ParkingQuote[]): ICheapestPrice;
|
|
58
59
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
60
|
+
applyFavourite(fav: any): void;
|
|
59
61
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { CheapestRailClassPrices, CheapestRailPrices, NgbDateStruct, OBTRailFareTypes, OBTRailJourneyFare, OBTRailJourneyOption, OBTRailQuoteResultArray, RailQuoteResultArray, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
3
|
+
import { CheapestRailClassPrices, CheapestRailPrices, DifferentInvokdedUserReasons, NgbDateStruct, OBTRailFareTypes, OBTRailJourneyFare, OBTRailJourneyOption, OBTRailQuoteResultArray, RailQuoteResultArray, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
4
4
|
import { BasketItem, RailClass, RailJourneyOption, RailSearchJourneyType, RailStation, ReferenceRailCardQualifier, SearchRailQueryVariables, ServiceType } from '../types/graphql.types';
|
|
5
5
|
import { RailSearchCriteria } from '../classes/rail-enterprise-search';
|
|
6
6
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
@@ -9,6 +9,7 @@ import { ICheapestPrice } from './cheapest-price';
|
|
|
9
9
|
import { IRailAirportExpressStations } from './rail-airport-express-stations.interface';
|
|
10
10
|
import { RailDirection } from '../classes/rail-direction.enum';
|
|
11
11
|
export interface RailTempParams {
|
|
12
|
+
transactionIdentifier: string;
|
|
12
13
|
chosenSearchType: RailSearchJourneyType;
|
|
13
14
|
chosenSearchClass: RailClass;
|
|
14
15
|
noOfAdults: number;
|
|
@@ -89,6 +90,7 @@ export interface RailEnterpriseSearchInterface extends BaseEnterpriseSearch<Rail
|
|
|
89
90
|
fare: OBTRailJourneyFare;
|
|
90
91
|
};
|
|
91
92
|
selectedSection: OBTRailFareTypes;
|
|
93
|
+
transactionIdentifier: string;
|
|
92
94
|
getAirportExpressStations(): CodeName[];
|
|
93
95
|
setAirportExpressStationIds(stationIds: {
|
|
94
96
|
departureLocationId: string;
|
|
@@ -98,13 +100,15 @@ export interface RailEnterpriseSearchInterface extends BaseEnterpriseSearch<Rail
|
|
|
98
100
|
startRecentSearch(recentSearch: RecentSearch): void;
|
|
99
101
|
getSearchQuery(tempParams: RailTempParams): SearchRailQueryVariables;
|
|
100
102
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
103
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
101
104
|
selectTicket(direction: 'outbound' | 'inbound', jounery: OBTRailJourneyOption, fare: OBTRailJourneyFare, sourceId: string, section: OBTRailFareTypes): Promise<void>;
|
|
102
105
|
selectTicketNoAdd(direction: RailDirection, jounery: OBTRailJourneyOption, fare: OBTRailJourneyFare, sourceId: string, section: OBTRailFareTypes): Promise<void>;
|
|
103
106
|
getRailStation(code: string, isLoading?: BehaviorSubject<boolean>): Observable<RailStation>;
|
|
104
107
|
getLegsFromRailJourneyOption(railJourneyOption: OBTRailJourneyOption): any[];
|
|
105
108
|
calculateTimeDifferenceInMins(rail: RailJourneyOption): string;
|
|
106
109
|
applyFilter(): void;
|
|
107
|
-
addToBasket(sourceId: string, searchQuery: RailTempParams, journey: OBTRailJourneyOption, railFare: OBTRailJourneyFare, inboundRailFare?: OBTRailJourneyFare, inboundJourney?: OBTRailJourneyOption): Promise<
|
|
110
|
+
addToBasket(sourceId: string, searchQuery: RailTempParams, journey: OBTRailJourneyOption, railFare: OBTRailJourneyFare, inboundRailFare?: OBTRailJourneyFare, inboundJourney?: OBTRailJourneyOption): Promise<DifferentInvokdedUserReasons>;
|
|
108
111
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
109
112
|
getCriteria(departureDateTime: string, arrivalDateTime: string): RailSearchCriteria;
|
|
113
|
+
applyFavourite(fav: any): void;
|
|
110
114
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { SearchObject, SearchObjects } from './search-objects.interface';
|
|
4
|
-
import { Address, BasketItem, ConfermaOfficeNames, ConfermaOfficeInfo, ReferenceRailCardQualifier, SaveRecentSearchMutationVariables, ServiceType, InputFlightJourney, SaveFavouriteSearchMutationVariables, Basket } from '../types/graphql.types';
|
|
4
|
+
import { Address, BasketItem, ConfermaOfficeNames, ConfermaOfficeInfo, ReferenceRailCardQualifier, SaveRecentSearchMutationVariables, ServiceType, InputFlightJourney, SaveFavouriteSearchMutationVariables, Basket, RailStation } from '../types/graphql.types';
|
|
5
5
|
import { Traveller } from '../models/traveller.object';
|
|
6
6
|
import { AirportSearchResults, CountryCode, GetFlightFareRulesResult, GetUserFavouriteSearchesResultArray, SaveFavouriteSearchResult, SearchRailLiveDeparturesResult, TerminalsType } from '../types/types';
|
|
7
7
|
import { LoungesEnterpriseSearchInterface, LoungesTempParams } from './Ilounges-enterprise-search';
|
|
@@ -28,7 +28,6 @@ export declare type SearchParams = {
|
|
|
28
28
|
[ServiceType.Eurostar]: EurostarEnterpriseSearchInterface;
|
|
29
29
|
};
|
|
30
30
|
export interface EnterpriseSearchServiceInterface {
|
|
31
|
-
isFlightsGrouped(): boolean;
|
|
32
31
|
search_objects: SearchObjects;
|
|
33
32
|
searches: SearchParams;
|
|
34
33
|
travellerInformation: BehaviorSubject<Traveller[]>;
|
|
@@ -113,6 +112,9 @@ export interface EnterpriseSearchServiceInterface {
|
|
|
113
112
|
emailBasket(id: string): Observable<Basket>;
|
|
114
113
|
getAllHotelChains(): Observable<{}>;
|
|
115
114
|
getAllRailProviders(): Observable<{}>;
|
|
115
|
+
getRailStationById(id: string): Observable<RailStation>;
|
|
116
116
|
getAllAirlines(): Observable<{}>;
|
|
117
117
|
getCarHireProivders(): Observable<{}>;
|
|
118
|
+
lookupEurostarStations(term: string): Observable<any[]>;
|
|
119
|
+
isFlightsGrouped(): boolean;
|
|
118
120
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { GetUserAddressResult, GetUserPhoneNumberResult, Schema, SchemaFormat, SchemaType } from '../types/types';
|
|
3
|
-
import { Address, BookingAddress, BookingPhoneNumber, PhoneNumber, SupplementaryBookingInfo,
|
|
3
|
+
import { Address, BookingAddress, BookingPhoneNumber, PhoneNumber, SupplementaryBookingInfo, UserOrGuest } from '../types/graphql.types';
|
|
4
4
|
export interface IAddressImpl {
|
|
5
5
|
bookingAddress: BehaviorSubject<{}>;
|
|
6
6
|
updateDetails(values: (BookingAddress | Address | GetUserAddressResult)[]): void;
|
|
@@ -10,7 +10,7 @@ export interface PhoneNumberImplInterface {
|
|
|
10
10
|
updateDetails(values: (BookingPhoneNumber | PhoneNumber | GetUserPhoneNumberResult)[]): void;
|
|
11
11
|
}
|
|
12
12
|
export interface UserInfoImplInterface {
|
|
13
|
-
user:
|
|
13
|
+
user: UserOrGuest;
|
|
14
14
|
userInfo: {
|
|
15
15
|
id: string;
|
|
16
16
|
address: IAddressImpl;
|
|
@@ -27,6 +27,7 @@ export interface SupplementaryBookingInfoInterface {
|
|
|
27
27
|
address: IAddressImpl;
|
|
28
28
|
phoneNumber: PhoneNumberImplInterface;
|
|
29
29
|
userInfo: UserInfoImplInterface[];
|
|
30
|
+
guestInfo: UserInfoImplInterface[];
|
|
30
31
|
readonly perItemAddress: boolean;
|
|
31
32
|
readonly perItemPhoneNumber: boolean;
|
|
32
33
|
readonly perItemSupplementarySchema: Schema;
|