@sabstravtech/obtservices 0.0.22051001 → 0.1.6161600
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 +5 -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-office.fetcher.d.ts +7 -0
- package/angular/lib/vendor/fetchers/get-user-default-mi-value.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 +4 -3
- package/angular/lib/vendor/services/logon.service.d.ts +2 -1
- package/angular/lib/vendor/services/user.service.d.ts +9 -3
- package/angular/lib/vendor/types/graphql.angular.types.d.ts +614 -550
- package/angular/lib/vendor/updaters/create-guest-updater.d.ts +6 -0
- package/angular/sabstravtech-obtservices-angular.metadata.json +1 -1
- package/angular/updaters.d.ts +1 -0
- package/base/fetchers.d.ts +5 -0
- package/base/lib/vendor/classes/base-enterprise.d.ts +7 -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 +9 -4
- package/base/lib/vendor/classes/carhire-enterprise-search.d.ts +12 -4
- package/base/lib/vendor/classes/eurostar-enterprise-search.d.ts +14 -7
- package/base/lib/vendor/classes/fast-track-enterprise-search.d.ts +5 -4
- package/base/lib/vendor/classes/flight-enterprise-search.d.ts +16 -5
- package/base/lib/vendor/classes/helpers.d.ts +6 -1
- package/base/lib/vendor/classes/hotel-enterprise-search.d.ts +10 -3
- package/base/lib/vendor/classes/irl-enterprise-search.d.ts +13 -8
- package/base/lib/vendor/classes/lounges-enterprise-search.d.ts +5 -4
- package/base/lib/vendor/classes/management-info-and-valid.d.ts +3 -3
- package/base/lib/vendor/classes/modal-types.enum.d.ts +1 -0
- package/base/lib/vendor/classes/parking-enterprise-search.d.ts +5 -4
- package/base/lib/vendor/classes/rail-enterprise-search.d.ts +10 -8
- package/base/lib/vendor/classes/supplementary-booking-info-impl.d.ts +5 -3
- package/base/lib/vendor/classes/user-favourite.enum.d.ts +1 -0
- package/base/lib/vendor/fetchers/eurostar-quote.fetcher.d.ts +3 -1
- package/base/lib/vendor/fetchers/flight-quote.fetcher.d.ts +1 -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-office.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/get-user-default-mi-value.fetcher.d.ts +21 -0
- package/base/lib/vendor/fetchers/get-user-guests.fetcher.d.ts +20 -0
- package/base/lib/vendor/fetchers/search-users-can-book-for-fetcher.d.ts +2 -2
- package/base/lib/vendor/interfaces/Icabhire-enterprise-search.d.ts +2 -0
- package/base/lib/vendor/interfaces/Icarhire-enterprise-search.d.ts +5 -2
- package/base/lib/vendor/interfaces/Ienterprise-basket.service.d.ts +8 -6
- package/base/lib/vendor/interfaces/Ieurostar-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Ifast-track-enterprise-search.d.ts +7 -5
- package/base/lib/vendor/interfaces/Iflight-enterprise-search.d.ts +8 -1
- package/base/lib/vendor/interfaces/Ihotel-enterprise-search.d.ts +8 -2
- package/base/lib/vendor/interfaces/Iirl-enterprise-search.d.ts +8 -7
- package/base/lib/vendor/interfaces/Ilounges-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Imybookings.service.d.ts +3 -2
- package/base/lib/vendor/interfaces/Iparking-enterprise-search.d.ts +1 -0
- package/base/lib/vendor/interfaces/Irail-enterprise-search.d.ts +5 -2
- package/base/lib/vendor/interfaces/Isearch.service.d.ts +5 -2
- package/base/lib/vendor/interfaces/Isupplementary-booking-info-impl.d.ts +3 -2
- package/base/lib/vendor/interfaces/Iuser.service.d.ts +11 -3
- package/base/lib/vendor/interfaces/car-hire-search-arg.interface.d.ts +2 -3
- package/base/lib/vendor/interfaces/rail-basket-item.interface.d.ts +2 -0
- package/base/lib/vendor/interfaces/summary-interface.d.ts +6 -0
- package/base/lib/vendor/interfaces/user.data.d.ts +1 -0
- package/base/lib/vendor/models/traveller.object.d.ts +12 -2
- package/base/lib/vendor/services/enterprise-basket.service.d.ts +22 -9
- package/base/lib/vendor/services/logon.service.d.ts +5 -1
- package/base/lib/vendor/services/my-bookings.service.d.ts +3 -2
- package/base/lib/vendor/services/search.service.d.ts +27 -23
- package/base/lib/vendor/services/url.service.d.ts +2 -0
- package/base/lib/vendor/services/user.service.d.ts +36 -5
- package/base/lib/vendor/services/webtoken.service.d.ts +6 -0
- package/base/lib/vendor/types/graphql.types.d.ts +581 -549
- package/base/lib/vendor/types/types.d.ts +48 -6
- 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/updaters.d.ts +1 -0
- package/bundles/sabstravtech-obtservices-angular.umd.js +541 -252
- 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 +4080 -1471
- 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 +6 -1
- 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-office.fetcher.js +25 -0
- package/esm2015/angular/lib/vendor/fetchers/get-user-default-mi-value.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 +24 -21
- package/esm2015/angular/lib/vendor/services/http-call.service.js +1 -1
- package/esm2015/angular/lib/vendor/services/logon.service.js +8 -5
- package/esm2015/angular/lib/vendor/services/search.service.js +1 -1
- package/esm2015/angular/lib/vendor/services/ticket-queue.service.js +4 -1
- package/esm2015/angular/lib/vendor/services/user.service.js +28 -10
- package/esm2015/angular/lib/vendor/services/webtoken.service.js +6 -2
- package/esm2015/angular/lib/vendor/types/graphql.angular.types.js +1023 -1220
- package/esm2015/angular/lib/vendor/updaters/create-guest-updater.js +22 -0
- package/esm2015/angular/updaters.js +2 -1
- package/esm2015/base/fetchers.js +6 -1
- package/esm2015/base/lib/vendor/classes/base-enterprise.js +12 -3
- package/esm2015/base/lib/vendor/classes/basket-info-mi-details.impl.js +14 -1
- package/esm2015/base/lib/vendor/classes/bookable-basket.js +27 -8
- package/esm2015/base/lib/vendor/classes/cabhire-enterprise-search.js +219 -18
- package/esm2015/base/lib/vendor/classes/carhire-enterprise-search.js +235 -67
- package/esm2015/base/lib/vendor/classes/eurostar-enterprise-search.js +462 -49
- package/esm2015/base/lib/vendor/classes/fast-track-enterprise-search.js +37 -13
- package/esm2015/base/lib/vendor/classes/flight-enterprise-search.js +281 -62
- package/esm2015/base/lib/vendor/classes/helpers.js +32 -3
- package/esm2015/base/lib/vendor/classes/hotel-enterprise-search.js +228 -54
- package/esm2015/base/lib/vendor/classes/irl-enterprise-search.js +221 -46
- package/esm2015/base/lib/vendor/classes/lounges-enterprise-search.js +101 -14
- package/esm2015/base/lib/vendor/classes/management-info-and-valid.js +67 -40
- package/esm2015/base/lib/vendor/classes/modal-types.enum.js +2 -1
- package/esm2015/base/lib/vendor/classes/parking-enterprise-search.js +146 -11
- package/esm2015/base/lib/vendor/classes/rail-enterprise-search.js +210 -25
- package/esm2015/base/lib/vendor/classes/supplementary-booking-info-impl.js +58 -4
- package/esm2015/base/lib/vendor/classes/user-favourite.enum.js +2 -1
- package/esm2015/base/lib/vendor/data/countries.json +484 -242
- package/esm2015/base/lib/vendor/fetchers/eurostar-quote.fetcher.js +3 -3
- package/esm2015/base/lib/vendor/fetchers/flight-quote.fetcher.js +3 -3
- 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-office.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/get-user-default-mi-value.fetcher.js +10 -0
- package/esm2015/base/lib/vendor/fetchers/get-user-guests.fetcher.js +11 -0
- package/esm2015/base/lib/vendor/fetchers/search-users-can-book-for-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 +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/Imybookings.service.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/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 +21 -3
- package/esm2015/base/lib/vendor/services/enterprise-basket.service.js +129 -43
- package/esm2015/base/lib/vendor/services/http-call.service.js +1 -1
- package/esm2015/base/lib/vendor/services/logon.service.js +40 -3
- package/esm2015/base/lib/vendor/services/my-bookings.service.js +3 -2
- package/esm2015/base/lib/vendor/services/requires-reason.service.js +14 -10
- package/esm2015/base/lib/vendor/services/search.service.js +100 -117
- package/esm2015/base/lib/vendor/services/url.service.js +3 -1
- package/esm2015/base/lib/vendor/services/user.service.js +90 -12
- package/esm2015/base/lib/vendor/services/webtoken.service.js +14 -1
- package/esm2015/base/lib/vendor/types/graphql.types.js +21 -2
- package/esm2015/base/lib/vendor/types/types.js +32 -14
- package/esm2015/base/lib/vendor/updaters/create-guest-updater.js +11 -0
- package/esm2015/base/sabstravtech-obtservices-base.js +1 -1
- package/esm2015/base/updaters.js +2 -1
- package/fesm2015/sabstravtech-obtservices-angular.js +1254 -1332
- package/fesm2015/sabstravtech-obtservices-angular.js.map +1 -1
- package/fesm2015/sabstravtech-obtservices-base.js +3324 -839
- package/fesm2015/sabstravtech-obtservices-base.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,13 +3,14 @@ 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';
|
|
10
10
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
11
11
|
import { ParkingEnterpriseSearchInterface, ParkingTempParams } from '../interfaces/Iparking-enterprise-search';
|
|
12
12
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
13
|
+
import { UserServiceInterface } from '../interfaces/Iuser.service';
|
|
13
14
|
export declare const defaultValidations: {
|
|
14
15
|
AirportFirst: string;
|
|
15
16
|
InvardJourney: string;
|
|
@@ -19,7 +20,6 @@ export declare const defaultValidations: {
|
|
|
19
20
|
export declare class ParkingEnterpriseSearch<Q extends ParkingQuoteFetcherType> extends BaseEnterpriseSearch<ParkingTempParams, ParkingQuoteResultArray, ParkingQuoteResultArray> implements ParkingEnterpriseSearchInterface {
|
|
20
21
|
private parkingfetcher;
|
|
21
22
|
private basketService;
|
|
22
|
-
private searchService;
|
|
23
23
|
static readonly STORAGE_SESSION_PARAMS = "search_parking";
|
|
24
24
|
static readonly STORAGE_SESSION_RESULTS = "results_parking";
|
|
25
25
|
type: ServiceType;
|
|
@@ -83,7 +83,7 @@ export declare class ParkingEnterpriseSearch<Q extends ParkingQuoteFetcherType>
|
|
|
83
83
|
day: number;
|
|
84
84
|
};
|
|
85
85
|
private travellers;
|
|
86
|
-
constructor(parkingfetcher: BaseParkingQuoteFetcher<Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface);
|
|
86
|
+
constructor(parkingfetcher: BaseParkingQuoteFetcher<Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface, userService: UserServiceInterface);
|
|
87
87
|
protected resultsSessionName: string;
|
|
88
88
|
protected multiResultsSessionName: string;
|
|
89
89
|
private _outdate;
|
|
@@ -97,8 +97,9 @@ export declare class ParkingEnterpriseSearch<Q extends ParkingQuoteFetcherType>
|
|
|
97
97
|
startRecentSearch(recentSearch: RecentSearch): void;
|
|
98
98
|
getSearchQuery(): SearchParkingQueryVariables;
|
|
99
99
|
sortByPrice(asc?: boolean): void;
|
|
100
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
100
101
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
101
|
-
addParkingToBasket(parkingQuote: ParkingQuote, parkingQuery: SearchParkingQueryVariables): Promise<
|
|
102
|
+
addParkingToBasket(parkingQuote: ParkingQuote, parkingQuery: SearchParkingQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
102
103
|
getTermsAndCond(parkingQuote: ParkingQuote): {
|
|
103
104
|
name: string;
|
|
104
105
|
value: any;
|
|
@@ -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,10 +186,10 @@ 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<
|
|
191
|
-
findCheapestTicket():
|
|
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>;
|
|
192
|
+
findCheapestTicket(): ICheapestPrice;
|
|
192
193
|
protected resetQuery(): void;
|
|
193
194
|
private _setAirportExpressStations;
|
|
194
195
|
private _isValid;
|
|
@@ -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: OBTRailJourneyFare): Promise<
|
|
208
|
-
addReturnJourneyToBasket(serviceId: string, tempParams: RailTempParams, outbound: OBTRailJourneyOption, inbound: OBTRailJourneyOption, outboundFare: OBTRailJourneyFare, inboundFare: OBTRailJourneyFare): Promise<
|
|
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;
|
|
@@ -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,6 +6,7 @@ export declare class UserFavorurite {
|
|
|
6
6
|
static AlternativeRailItineraryEnabled: UserFavorurite;
|
|
7
7
|
static riskMinimumLevel: UserFavorurite;
|
|
8
8
|
static ENABLE_CHATBOT: UserFavorurite;
|
|
9
|
+
static LocalCurrency: UserFavorurite;
|
|
9
10
|
constructor(value: string);
|
|
10
11
|
}
|
|
11
12
|
export declare class Suppliers {
|
|
@@ -3,11 +3,13 @@ import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
|
3
3
|
import { BaseHelperRoutines } from '../classes/helpers';
|
|
4
4
|
import { FetchableList } from './list-fetchable-enterprise';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { EurostarQuoteResult } from '../types/types';
|
|
6
|
+
import { EurostarQuoteResult, RuleActionSummaryInterface } from '../types/types';
|
|
7
7
|
import { SearchEurostarQuery, SearchEurostarQueryVariables } from '../types/graphql.types';
|
|
8
8
|
declare type R = {
|
|
9
9
|
searchEurostar: {
|
|
10
10
|
results: P;
|
|
11
|
+
ruleActionSummary: RuleActionSummaryInterface;
|
|
12
|
+
searchId: string;
|
|
11
13
|
};
|
|
12
14
|
};
|
|
13
15
|
declare type P = EurostarQuoteResult;
|
|
@@ -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,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 { GetOfficeQuery, GetOfficeQueryVariables, Office } from '../types/graphql.types';
|
|
7
|
+
declare type R = {
|
|
8
|
+
getOffice: P;
|
|
9
|
+
};
|
|
10
|
+
declare type P = Office;
|
|
11
|
+
declare type A = GetOfficeQueryVariables;
|
|
12
|
+
declare type M = GetOfficeQuery;
|
|
13
|
+
export declare type GetOfficeFetcherType = {
|
|
14
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
15
|
+
};
|
|
16
|
+
export declare class BaseGetOfficeFetcher<Q extends GetOfficeFetcherType> 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 {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
+
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
3
|
+
import { FetchableObject } from './object-fetchable-enterprise';
|
|
4
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { ManagementInfoValueResult } from '../types/types';
|
|
7
|
+
import { GetUserDefaultMiValueQuery, GetUserDefaultMiValueQueryVariables } from '../types/graphql.types';
|
|
8
|
+
declare type R = {
|
|
9
|
+
getUserDefaultMIValue: P;
|
|
10
|
+
};
|
|
11
|
+
declare type P = ManagementInfoValueResult;
|
|
12
|
+
declare type A = GetUserDefaultMiValueQueryVariables;
|
|
13
|
+
declare type M = GetUserDefaultMiValueQuery;
|
|
14
|
+
export declare type GetUserDefaultMIValueType = {
|
|
15
|
+
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
16
|
+
};
|
|
17
|
+
export declare class BaseGetUserDefaultMIValueFetcher<Q extends GetUserDefaultMIValueType> extends FetchableObject<Q, A, R, P, M> {
|
|
18
|
+
constructor(query: 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 {};
|
|
@@ -3,12 +3,12 @@ import { BaseHelperRoutines } from '../classes/helpers';
|
|
|
3
3
|
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
4
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { SearchUserCanBookForResult } from '../types/types';
|
|
7
6
|
import { SearchUserCanBookForQuery, SearchUserCanBookForQueryVariables } from '../types/graphql.types';
|
|
7
|
+
import { Traveller } from '../models/traveller.object';
|
|
8
8
|
declare type R = {
|
|
9
9
|
searchUserCanBookFor: P;
|
|
10
10
|
};
|
|
11
|
-
declare type P =
|
|
11
|
+
declare type P = Traveller[];
|
|
12
12
|
declare type A = SearchUserCanBookForQueryVariables;
|
|
13
13
|
declare type M = SearchUserCanBookForQuery;
|
|
14
14
|
export declare type SearchUserCanBookForFetcherType = {
|
|
@@ -86,6 +86,7 @@ export interface CabHireEnterpriseSearchInterface extends BaseEnterpriseSearch<C
|
|
|
86
86
|
outboundDateTime: moment.Moment;
|
|
87
87
|
returnDateTime: moment.Moment;
|
|
88
88
|
flightNumber: string;
|
|
89
|
+
returnFlightNumber: string;
|
|
89
90
|
airport: TaxiAirport;
|
|
90
91
|
terminal: string;
|
|
91
92
|
time: string;
|
|
@@ -127,6 +128,7 @@ export interface CabHireEnterpriseSearchInterface extends BaseEnterpriseSearch<C
|
|
|
127
128
|
getOutboundFormVisibility(): BehaviorSubject<boolean>;
|
|
128
129
|
getInboundFormVisibility(): BehaviorSubject<boolean>;
|
|
129
130
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
131
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
130
132
|
getTransType(): string;
|
|
131
133
|
addCabHireToBasket(cabHireQuote: CabHireQuote, cabHireQuery: SearchCabHireQueryVariables): any;
|
|
132
134
|
updateLowestPrice(results: CabHireQuote[]): ICheapestPrice;
|
|
@@ -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';
|
|
@@ -88,16 +88,19 @@ export interface CarhireEnterpriseSearchInterface extends BaseEnterpriseSearch<C
|
|
|
88
88
|
sortResults(selectedSort: number, results?: CarHireQuoteResultArray): any;
|
|
89
89
|
sortExpensive(results?: CarHireQuoteResultArray): any;
|
|
90
90
|
sortCheapest(results?: CarHireQuoteResultArray): any;
|
|
91
|
+
sortByPreferred(results?: CarHireQuoteResultArray): any;
|
|
91
92
|
sortBySize(results?: CarHireQuoteResultArray): any;
|
|
92
93
|
sortByBrand(results?: CarHireQuoteResultArray): any;
|
|
93
94
|
getPrice(car: CarHireQuoteResult): number;
|
|
94
95
|
getMinPrice(cars: CarHireQuoteResultArray): number;
|
|
95
96
|
getMaxPrice(cars: CarHireQuoteResultArray): number;
|
|
96
97
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
98
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
97
99
|
isOverNight(): boolean;
|
|
98
100
|
updateLowestPrice(results: CarHireQuoteResultArray): ICheapestPrice;
|
|
99
101
|
getCarHireAvailabilityDetail(locationDetails: CarHireInputIdentifiers, isLoading: BehaviorSubject<boolean>): Observable<CarHireDetailRequestResponse>;
|
|
100
|
-
addCarHireToBasket(carHireQuote: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): Promise<
|
|
102
|
+
addCarHireToBasket(carHireQuote: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
101
103
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
102
104
|
applyFavourite(fav: any): void;
|
|
105
|
+
checkForPreferred(): boolean;
|
|
103
106
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable, Observer, Subject } from 'rxjs';
|
|
2
2
|
import { AddItemToBasket, BasketItem, BeforeCancellationInfo, ManagementInfo, SupplementaryBookingInfo } from '../types/graphql.types';
|
|
3
|
-
import { GetUserBasketItemResult, GetUserBasketResult, UserBasketResult } from '../types/types';
|
|
3
|
+
import { DifferentInvokdedUserReasons, GetUserBasketItemResult, GetUserBasketResult, ManagementInfoValueResult, 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';
|
|
@@ -26,12 +26,12 @@ export interface EnterpriseBasketServiceInterface {
|
|
|
26
26
|
highlightBasketItemsEmitter: Subject<GetUserBasketItemResult[]>;
|
|
27
27
|
baskets: BehaviorSubject<InternalBasketInterface[]>;
|
|
28
28
|
menuState: string;
|
|
29
|
-
addToBasket(item: AddItemToBasket.Variables, intBasket: InternalBasketInterface, searchService: EnterpriseSearchServiceInterface, travellers: Traveller[], requiresReason: boolean):
|
|
29
|
+
addToBasket(item: AddItemToBasket.Variables, intBasket: InternalBasketInterface, searchService: EnterpriseSearchServiceInterface, travellers: Traveller[], requiresReason: boolean): Promise<DifferentInvokdedUserReasons>;
|
|
30
30
|
getRequiresReasonService(): RequiresReasonServiceInterface;
|
|
31
31
|
canCancel(basketItem: BasketItem): Observable<BeforeCancellationInfo>;
|
|
32
32
|
createBasket(): Promise<InternalBasketInterface>;
|
|
33
33
|
loadBasket(id: string): void;
|
|
34
|
-
removeBasketItem(basketId: string, item: GetUserBasketItemResult): void
|
|
34
|
+
removeBasketItem(basketId: string, item: GetUserBasketItemResult): Promise<void>;
|
|
35
35
|
getDefaultBasket(): Promise<InternalBasketInterface>;
|
|
36
36
|
toggleMenu(): void;
|
|
37
37
|
closeMenu(): void;
|
|
@@ -47,9 +47,10 @@ export interface EnterpriseBasketServiceInterface {
|
|
|
47
47
|
setBasketItemMiGroup(basketid: string, basketItemid: string, group: string): void;
|
|
48
48
|
acceptNewPrice(intBasketid: string, item: BasketItem): void;
|
|
49
49
|
validateFreeValeMi(miItem: ManagementInfo, freeValue: string): any;
|
|
50
|
-
setMiFreeValue(basketid: string, miItem: ManagementInfo, freeValue: string, userId: string): void
|
|
51
|
-
setMiSelectedValue(basketid: string, miItem: ManagementInfo, selectedValue: string, userId: string): void
|
|
52
|
-
getMiAutoSugestions(miId: string,
|
|
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>;
|
|
52
|
+
getMiAutoSugestions(miId: string, term: string, isLoading: BehaviorSubject<boolean>): Observable<any>;
|
|
53
|
+
getUserDefaultMIValue(mi: string, user: string, isLoading: BehaviorSubject<boolean>): Observable<ManagementInfoValueResult>;
|
|
53
54
|
saveMiData(basketId: string, bmiArray: BasketItemManagementInfo[]): void;
|
|
54
55
|
sendBasketForApproval(basketid: string): Promise<void>;
|
|
55
56
|
bookBasket(basketid: string, supplementaryInfo: SupplementaryBookingInfo[]): Promise<void>;
|
|
@@ -65,4 +66,5 @@ export interface EnterpriseBasketServiceInterface {
|
|
|
65
66
|
updateBasketNotes(basketId: string, notes: string): void;
|
|
66
67
|
updateBasketTitle(basketId: string, title: string): void;
|
|
67
68
|
setBasketItemPaymentOption(basket: BasketDetails, basketItem: BasketItem, paymentMethod: string): Promise<void>;
|
|
69
|
+
removeBookedBasket(): void;
|
|
68
70
|
}
|
|
@@ -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;
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
|
6
|
-
import { FastTrackFilters } 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';
|
|
7
7
|
export interface FastTrackTempParams {
|
|
8
8
|
arrivalDatetime: moment.Moment;
|
|
9
9
|
locationCode: string | OBTAirportDetails;
|
|
@@ -19,8 +19,10 @@ export interface FastTrackEnterpriseSearchInterface extends BaseEnterpriseSearch
|
|
|
19
19
|
getSearchQuery(): SearchFastTrackQueryVariables;
|
|
20
20
|
startSearch(): any;
|
|
21
21
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
22
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
22
23
|
updateLowestPrice(results: FastTrackQuote[]): ICheapestPrice;
|
|
23
24
|
applyFilters(appliedFilters: FastTrackFilters, selectedSort: number): void;
|
|
24
25
|
getMinPrice(fts: FastTrackQuoteResultArray): number;
|
|
25
26
|
getMaxPrice(fts: FastTrackQuoteResultArray): number;
|
|
27
|
+
addFastTrackToBasket(fasttrackQuote: FastTrackQuote, fasttrackQuery: SearchFastTrackQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
26
28
|
}
|
|
@@ -86,14 +86,21 @@ 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>;
|
|
97
98
|
applyFavourite(fav: any): void;
|
|
98
99
|
convertRecentSearchDateTime(date: string, timeWindow?: string): moment.Moment;
|
|
100
|
+
updateLowestPrice(results: FlightQuoteResultArray): ICheapestPrice;
|
|
101
|
+
cheapestPriceObject: {
|
|
102
|
+
dualOutbound: ICheapestPrice;
|
|
103
|
+
dualInbound: ICheapestPrice;
|
|
104
|
+
returns: ICheapestPrice;
|
|
105
|
+
};
|
|
99
106
|
}
|
|
@@ -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",
|
|
@@ -103,6 +104,7 @@ export interface HotelEnterpriseSearchInterface extends BaseEnterpriseSearch<Hot
|
|
|
103
104
|
location_types: BehaviorSubject<{}>;
|
|
104
105
|
offices: BehaviorSubject<{}>;
|
|
105
106
|
lastActivePage: BehaviorSubject<number>;
|
|
107
|
+
reapplySorting: BehaviorSubject<boolean>;
|
|
106
108
|
readonly galleries: {
|
|
107
109
|
[key: string]: {};
|
|
108
110
|
};
|
|
@@ -149,6 +151,7 @@ export interface HotelEnterpriseSearchInterface extends BaseEnterpriseSearch<Hot
|
|
|
149
151
|
location_type_select: LocationTypes;
|
|
150
152
|
readonly filters: HotelFilters;
|
|
151
153
|
cheapestPrice: ICheapestPrice;
|
|
154
|
+
jitRulesReceived: BehaviorSubject<boolean>;
|
|
152
155
|
makeLocations(location: HotelLocation[]): {
|
|
153
156
|
[key: string]: {};
|
|
154
157
|
};
|
|
@@ -167,14 +170,17 @@ export interface HotelEnterpriseSearchInterface extends BaseEnterpriseSearch<Hot
|
|
|
167
170
|
removeFilter(filter: string, type: keyof HotelFilters): void;
|
|
168
171
|
resetFilters(): void;
|
|
169
172
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
173
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
170
174
|
filterLighteningResults(): void;
|
|
171
175
|
getImages(HolidayCode: string): Observable<{}>;
|
|
172
176
|
addPaginationPage(currentPage: number): any;
|
|
173
177
|
toggleView(): void;
|
|
174
178
|
calcDayDiff(): number;
|
|
175
179
|
updateLowestPrice(results: HotelDetailsArray): ICheapestPrice;
|
|
176
|
-
addHotelRoomToBasket(hotelQuoteResult: HotelQuoteResult, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<
|
|
180
|
+
addHotelRoomToBasket(hotelQuoteResult: HotelQuoteResult, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<DifferentInvokdedUserReasons>;
|
|
177
181
|
resultsHaveTag(searchTag: string): boolean;
|
|
178
182
|
saveSearch(hotelName?: string): Observable<SaveFavouriteSearchResult>;
|
|
179
183
|
applyFavourite(fav: any): void;
|
|
184
|
+
atLeastOnePreferredAgentHotel(): boolean;
|
|
185
|
+
atLeastOnePreferredClientHotel(): boolean;
|
|
180
186
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
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
7
|
import { IrlFilters, SortTypeIrl } from '../classes/irl-enterprise-search';
|
|
8
8
|
export interface IrlTempParams {
|
|
9
|
-
irlDiscountCards:
|
|
9
|
+
irlDiscountCards: string;
|
|
10
10
|
supplier: IrlSupplier;
|
|
11
11
|
countryCode: string;
|
|
12
12
|
class: IrlClass;
|
|
13
13
|
outboundDepartureDateTime: moment.Moment;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
travellingFrom: any;
|
|
15
|
+
travellingTo: any;
|
|
16
16
|
adults: number;
|
|
17
17
|
children: number;
|
|
18
18
|
returnDepartureDateTime: moment.Moment;
|
|
@@ -30,7 +30,7 @@ export interface IRLEnterpriseSearchInterface extends BaseEnterpriseSearch<IrlTe
|
|
|
30
30
|
noOfChildren: number;
|
|
31
31
|
travellingTo: any;
|
|
32
32
|
travellingFrom: any;
|
|
33
|
-
discountCard: IrlTravelCard;
|
|
33
|
+
discountCard: IrlTravelCard[];
|
|
34
34
|
irlDiscountCardsArray: IrlTravelCard[];
|
|
35
35
|
offline: boolean;
|
|
36
36
|
outBoundDateTime: moment.Moment;
|
|
@@ -50,8 +50,9 @@ export interface IRLEnterpriseSearchInterface extends BaseEnterpriseSearch<IrlTe
|
|
|
50
50
|
startSearch(): any;
|
|
51
51
|
getSearchQuery(): SearchIrlQueryVariables;
|
|
52
52
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
53
|
-
|
|
54
|
-
|
|
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>;
|
|
55
56
|
updateLowestPrice(results: IrlJourneyOptions[]): ICheapestPrice;
|
|
56
57
|
findCheapestTicket(results: IrlJourneyOptions[]): number;
|
|
57
58
|
sortByPrice(ignoreDirectionChange: boolean): void;
|
|
@@ -32,6 +32,7 @@ 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>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { CancelUserBookingResult, UserBasketResult } from '../types/types';
|
|
3
3
|
import { QueryGetUserBasketsArgs } from '../types/graphql.types';
|
|
4
|
-
import { BasketItem, BasketItemStatus, BasketStatus, ServiceType
|
|
4
|
+
import { BasketItem, BasketItemStatus, BasketStatus, ServiceType } from '../types/graphql.types';
|
|
5
5
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
6
|
+
import { Traveller } from '../models/traveller.object';
|
|
6
7
|
export interface EnterpriseMyBookingsServiceInterface {
|
|
7
8
|
baskets: BehaviorSubject<UserBasketResult[]>;
|
|
8
9
|
getUserBaskets(query: QueryGetUserBasketsArgs, isLoading: BehaviorSubject<boolean>): void;
|
|
9
|
-
getSearchUserCanBookFor(search: string, isLoading: BehaviorSubject<boolean>): Observable<
|
|
10
|
+
getSearchUserCanBookFor(search: string, isLoading: BehaviorSubject<boolean>): Observable<Traveller[]>;
|
|
10
11
|
getServiceTypeFilters(searchService: EnterpriseSearchServiceInterface): string[];
|
|
11
12
|
getBasketStatusFilters(): string[];
|
|
12
13
|
getServiceTypeFilterVanityName(serviceType: ServiceType): string;
|
|
@@ -53,6 +53,7 @@ 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>;
|
|
@@ -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,14 @@ 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;
|
|
110
113
|
applyFavourite(fav: any): void;
|