@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
package/angular/services.d.ts
CHANGED
|
@@ -9,3 +9,4 @@ export * from './lib/vendor/services/storage.service';
|
|
|
9
9
|
export * from './lib/vendor/services/user.service';
|
|
10
10
|
export * from './lib/vendor/services/webtoken.service';
|
|
11
11
|
export * from './lib/vendor/services/route-happy.service';
|
|
12
|
+
export * from './lib/vendor/services/ticket-queue.service';
|
package/angular/updaters.d.ts
CHANGED
|
@@ -14,3 +14,4 @@ export * from './lib/vendor/updaters/set-payment-option.updater';
|
|
|
14
14
|
export * from './lib/vendor/updaters/cancel-booking-updater';
|
|
15
15
|
export * from './lib/vendor/updaters/save-favourite-search.updater';
|
|
16
16
|
export * from './lib/vendor/updaters/remove-favourite-search.updater';
|
|
17
|
+
export * from './lib/vendor/updaters/create-guest-updater';
|
package/base/fetchers.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './lib/vendor/fetchers/get-covid-microsite-token.fetcher';
|
|
|
14
14
|
export * from './lib/vendor/fetchers/get-rail-cards.fetcher';
|
|
15
15
|
export * from './lib/vendor/fetchers/get-rail-live-departures.fetcher';
|
|
16
16
|
export * from './lib/vendor/fetchers/get-rail-station.fetcher';
|
|
17
|
+
export * from './lib/vendor/fetchers/get-irl-supplier-station.fetcher';
|
|
17
18
|
export * from './lib/vendor/fetchers/get-risk-alerts.fetcher';
|
|
18
19
|
export * from './lib/vendor/fetchers/get-user-company-offices.fetcher';
|
|
19
20
|
export * from './lib/vendor/fetchers/get-user-current-carbon-allowance.fetcher';
|
|
@@ -60,6 +61,8 @@ export * from './lib/vendor/fetchers/get-rail-live-departures.fetcher';
|
|
|
60
61
|
export * from './lib/vendor/fetchers/get-flight-seat-map-fetcher';
|
|
61
62
|
export * from './lib/vendor/fetchers/get-user-favourite-searches.fetcher';
|
|
62
63
|
export * from './lib/vendor/fetchers/get-conferma-room-images.fetcher';
|
|
64
|
+
export * from './lib/vendor/fetchers/get-companies.fetcher';
|
|
65
|
+
export * from './lib/vendor/fetchers/get-company.fetcher';
|
|
63
66
|
export * from './lib/vendor/fetchers/email-basket.fetcher';
|
|
64
67
|
export * from './lib/vendor/fetchers/fast-track-quote.fetcher';
|
|
65
68
|
export * from './lib/vendor/fetchers/send-offline-notification.fetcher';
|
|
@@ -67,3 +70,7 @@ export * from './lib/vendor/fetchers/get-hotel-chains.fetcher';
|
|
|
67
70
|
export * from './lib/vendor/fetchers/get-rail-providers.fetcher';
|
|
68
71
|
export * from './lib/vendor/fetchers/get-all-airlines.fetcher';
|
|
69
72
|
export * from './lib/vendor/fetchers/get-car-hire-providers.fetcher';
|
|
73
|
+
export * from './lib/vendor/fetchers/send-offline-notification.fetcher';
|
|
74
|
+
export * from './lib/vendor/fetchers/get-cancellation-info.fetcher';
|
|
75
|
+
export * from './lib/vendor/fetchers/get-cancellation-info.fetcher';
|
|
76
|
+
export * from './lib/vendor/fetchers/get-user-guests.fetcher';
|
package/base/interfaces.d.ts
CHANGED
|
@@ -27,3 +27,5 @@ export * from './lib/vendor/interfaces/Ieurostar-enterprise-search';
|
|
|
27
27
|
export * from './lib/vendor/interfaces/terms-and-conditions.interface';
|
|
28
28
|
export * from './lib/vendor/interfaces/rail-basket-item.interface';
|
|
29
29
|
export * from './lib/vendor/interfaces/enable-fresh-chat-interface';
|
|
30
|
+
export * from './lib/vendor/interfaces/Ifast-track-enterprise-search';
|
|
31
|
+
export * from './lib/vendor/interfaces/fast-track-filters.interface';
|
|
@@ -4,9 +4,11 @@ import { BasketItem, ServiceType } from '../types/graphql.types';
|
|
|
4
4
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
5
5
|
import { RecentSearch } from '../../../types';
|
|
6
6
|
import { BaseHelperRoutines } from './helpers';
|
|
7
|
+
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
7
8
|
export declare abstract class BaseEnterpriseSearch<P, R, O extends Array<any>> {
|
|
8
9
|
protected storageService: BaseStorageService;
|
|
9
10
|
protected helpers: BaseHelperRoutines;
|
|
11
|
+
protected searchService: EnterpriseSearchServiceInterface;
|
|
10
12
|
protected _cheapestResultPrice: ICheapestPrice;
|
|
11
13
|
protected _originalUserSearch: P;
|
|
12
14
|
isValid: BehaviorSubject<boolean>;
|
|
@@ -26,7 +28,8 @@ export declare abstract class BaseEnterpriseSearch<P, R, O extends Array<any>> {
|
|
|
26
28
|
fullMultiResults: O[][];
|
|
27
29
|
get cheapestPrice(): ICheapestPrice;
|
|
28
30
|
get originalUserSearch(): P;
|
|
29
|
-
constructor(storageService: BaseStorageService, helpers: BaseHelperRoutines);
|
|
31
|
+
constructor(storageService: BaseStorageService, helpers: BaseHelperRoutines, searchService: EnterpriseSearchServiceInterface);
|
|
32
|
+
performSearch(): void;
|
|
30
33
|
protected processResults(results: R): O;
|
|
31
34
|
protected updateTempParams(tempParams: P): void;
|
|
32
35
|
protected _startSearch(results: Observable<R>): Promise<boolean>;
|
|
@@ -42,5 +45,6 @@ export declare abstract class BaseEnterpriseSearch<P, R, O extends Array<any>> {
|
|
|
42
45
|
* @param previousItems basketitems that already been added. This can be used to set up the defaults for the search.
|
|
43
46
|
*/
|
|
44
47
|
abstract updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
48
|
+
abstract updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
45
49
|
protected _applyFilter(): void;
|
|
46
50
|
}
|
|
@@ -12,9 +12,11 @@ export declare class BasketInfoMiDetailsImpl {
|
|
|
12
12
|
private helpers;
|
|
13
13
|
miPerItem: ManagementInfoAndIsValid[];
|
|
14
14
|
miPerUser: UserManagementSupplement;
|
|
15
|
+
miPerGuest: UserManagementSupplement;
|
|
15
16
|
users: string[];
|
|
16
17
|
basketItem: BasketItem;
|
|
17
18
|
isValidObservers: ManagementInfoAndIsValid[];
|
|
19
|
+
guests: string[];
|
|
18
20
|
constructor(item: BasketItem, basketService: EnterpriseBasketServiceInterface, helpers: BaseHelperRoutines);
|
|
19
21
|
}
|
|
20
22
|
export {};
|
|
@@ -16,6 +16,7 @@ export declare class BookableBasket {
|
|
|
16
16
|
constructor(basketService: EnterpriseBasketServiceInterface, helpers: BaseHelperRoutines);
|
|
17
17
|
loadBasket(id: string): void;
|
|
18
18
|
private _loadBasket;
|
|
19
|
+
expiredItemInTheBasket(): boolean;
|
|
19
20
|
updateBasket(basket: BasketDetails): void;
|
|
20
21
|
sendBasketForApproval(): Promise<void>;
|
|
21
22
|
workoutApprovedState(basket: BasketDetails): BookingStatus;
|
|
@@ -36,5 +37,6 @@ export declare class BookableBasket {
|
|
|
36
37
|
private _needLeadPassengers;
|
|
37
38
|
private _splitTravellers;
|
|
38
39
|
private _findUser;
|
|
40
|
+
private _findGuest;
|
|
39
41
|
getId(): string;
|
|
40
42
|
}
|
|
@@ -3,7 +3,7 @@ import { BaseEnterpriseSearch } from './base-enterprise';
|
|
|
3
3
|
import { BaseStorageService } from '../services/storage.service';
|
|
4
4
|
import { BaseHelperRoutines } from './helpers';
|
|
5
5
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
6
|
-
import { AddressForm, CabhireQuoteResultArray, NgbDateStruct, RailAirport, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
6
|
+
import { AddressForm, CabhireQuoteResultArray, NgbDateStruct, RailAirport, RecentSearch, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
7
7
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
8
8
|
import { BaseCabhireQuoteFetcher, CabhireQuoteFetcherType } from '../fetchers/cabhire-quote-fetcher';
|
|
9
9
|
import { BasketItem, CabHireLocation, CabHireQuote, CabHireVehicleType, LocationDetail, QuerySearchCabHireArgs, SaveRecentSearchMutationVariables, SearchCabHireQueryVariables, ServiceType } from '../types/graphql.types';
|
|
@@ -12,7 +12,6 @@ import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-bask
|
|
|
12
12
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
13
13
|
export declare class CabHireEnterpriseSearch<CH_Q extends CabhireQuoteFetcherType> extends BaseEnterpriseSearch<CabHireTempParams, CabhireQuoteResultArray, CabhireQuoteResultArray> implements CabHireEnterpriseSearchInterface {
|
|
14
14
|
private cabfetcher;
|
|
15
|
-
private searchService;
|
|
16
15
|
private basketService;
|
|
17
16
|
static readonly STORAGE_SESSION_PARAMS = "search_cab";
|
|
18
17
|
static readonly SECONDARY_STORAGE_SESSION_PARAMS = "secondary_search_cab";
|
|
@@ -107,7 +106,7 @@ export declare class CabHireEnterpriseSearch<CH_Q extends CabhireQuoteFetcherTyp
|
|
|
107
106
|
getRecentSearchQuery(query: QuerySearchCabHireArgs): SaveRecentSearchMutationVariables;
|
|
108
107
|
private updateSerchQuery;
|
|
109
108
|
startRecentSearch(recentSearch: RecentSearch): void;
|
|
110
|
-
getSearchQuery(): QuerySearchCabHireArgs;
|
|
109
|
+
getSearchQuery(simplifiedLocation?: boolean): QuerySearchCabHireArgs;
|
|
111
110
|
getReturnSearchQuery(): QuerySearchCabHireArgs;
|
|
112
111
|
updateOutboundAddress(location: any, placeDescription?: string): void;
|
|
113
112
|
updateInboundAddress(location: any, placeDescription?: string): void;
|
|
@@ -131,9 +130,11 @@ export declare class CabHireEnterpriseSearch<CH_Q extends CabhireQuoteFetcherTyp
|
|
|
131
130
|
getOutboundFormVisibility(): BehaviorSubject<boolean>;
|
|
132
131
|
getInboundFormVisibility(): BehaviorSubject<boolean>;
|
|
133
132
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
133
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
134
|
+
private convertAddressLocation;
|
|
134
135
|
getTransType(): string;
|
|
135
136
|
getPassengers: () => string;
|
|
136
|
-
addCabHireToBasket(cabHireQuote: CabHireQuote, cabHireQuery: SearchCabHireQueryVariables): Promise<
|
|
137
|
+
addCabHireToBasket(cabHireQuote: CabHireQuote, cabHireQuery: SearchCabHireQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
137
138
|
switchFromAndToLocation(): void;
|
|
138
139
|
updateLowestPrice(results: CabHireQuote[]): ICheapestPrice;
|
|
139
140
|
getTermsAndCond(cabHireQuote: CabHireQuote): {
|
|
@@ -141,4 +142,5 @@ export declare class CabHireEnterpriseSearch<CH_Q extends CabhireQuoteFetcherTyp
|
|
|
141
142
|
value: string;
|
|
142
143
|
}[];
|
|
143
144
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
145
|
+
applyFavourite(fav: any): Promise<void>;
|
|
144
146
|
}
|
|
@@ -10,7 +10,7 @@ import { ValueDisplay } from '../interfaces/value-display';
|
|
|
10
10
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
11
11
|
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
12
12
|
import { CarHireDetailRequestResponse, BasketItem, CarHireInputIdentifiers, CarHireVehicleAvailibility, QuerySearchCarHireArgs, ServiceType, CarHireTransmission, CarHireClass, CarHireType, SearchCarHireQueryVariables, SaveRecentSearchMutationVariables } from '../types/graphql.types';
|
|
13
|
-
import { CarHireQuoteResult, CarHireQuoteResultArray, NgbDateStruct, OBTAirportDetails, Vendor, LocationTypes, LocationDetails, CarHireDepot, RecentSearch, WithinDistance, SaveFavouriteSearchResult } from '../types/types';
|
|
13
|
+
import { CarHireQuoteResult, CarHireQuoteResultArray, NgbDateStruct, OBTAirportDetails, Vendor, LocationTypes, LocationDetails, CarHireDepot, RecentSearch, WithinDistance, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
14
14
|
import { BaseCarhireQuoteFetcher, CarHireFetcherType } from '../fetchers/carhire-quote-fetcher';
|
|
15
15
|
import { CarhireEnterpriseSearchInterface, CarHireTempParams } from '../interfaces/Icarhire-enterprise-search';
|
|
16
16
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
@@ -28,7 +28,6 @@ export declare class CarhireEnterpriseSearch<CH_Q extends CarHireFetcherType, CH
|
|
|
28
28
|
private carhirefetcher;
|
|
29
29
|
private carHireAvailabilityDetailFetcher;
|
|
30
30
|
private basketService;
|
|
31
|
-
private searchService;
|
|
32
31
|
static readonly STORAGE_SESSION_PARAMS = "carhire_params";
|
|
33
32
|
static readonly STORAGE_SESSION_RESULTS = "carhire_results";
|
|
34
33
|
private _carTypeCodes;
|
|
@@ -188,6 +187,8 @@ export declare class CarhireEnterpriseSearch<CH_Q extends CarHireFetcherType, CH
|
|
|
188
187
|
getPrice(car: CarHireQuoteResult): number;
|
|
189
188
|
getMinPrice(cars: CarHireQuoteResultArray): number;
|
|
190
189
|
getMaxPrice(cars: CarHireQuoteResultArray): number;
|
|
190
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
191
|
+
private updateSearchForCarbyPostCode;
|
|
191
192
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
192
193
|
private _updatePickupDateTime;
|
|
193
194
|
private _updateDropoffDateTime;
|
|
@@ -204,10 +205,11 @@ export declare class CarhireEnterpriseSearch<CH_Q extends CarHireFetcherType, CH
|
|
|
204
205
|
/**
|
|
205
206
|
* @description - add car hire to basket
|
|
206
207
|
*/
|
|
207
|
-
addCarHireToBasket(carHireVehicleAvailibility: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): Promise<
|
|
208
|
+
addCarHireToBasket(carHireVehicleAvailibility: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
208
209
|
getTermsAndCond(carHireVehicle: CarHireVehicleAvailibility, carHireQuery: SearchCarHireQueryVariables): {
|
|
209
210
|
name: string;
|
|
210
211
|
value: string;
|
|
211
212
|
}[];
|
|
212
213
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
214
|
+
applyFavourite(fav: any): Promise<void>;
|
|
213
215
|
}
|
|
@@ -7,7 +7,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
7
7
|
import { ValueDisplay } from '../interfaces/value-display';
|
|
8
8
|
import { FlightFilters } from '../interfaces/flight-filters.interface';
|
|
9
9
|
import { BasketItem, DestinationEntry, FareType, FlightCabinClass, FlightFareTotal, FlightItinerary, FlightJourney, SearchFlightsV2QueryVariables, ServiceType, SaveRecentSearchMutationVariables } from '../types/graphql.types';
|
|
10
|
-
import { EurostarQuoteResult, NgbDateStruct, OBTAirportDetails, OBTAirlinesDetails, FlightDirectionEnum, GroupedFlights, FlightItineraryWithExtensions, RecentSearch, EurostarResults, EurostarItem, EurostarFare, EurostarQuoteResultArray, SaveFavouriteSearchResult } from '../types/types';
|
|
10
|
+
import { EurostarQuoteResult, NgbDateStruct, OBTAirportDetails, OBTAirlinesDetails, FlightDirectionEnum, GroupedFlights, FlightItineraryWithExtensions, RecentSearch, EurostarResults, EurostarItem, EurostarFare, EurostarQuoteResultArray, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
11
11
|
import { UserServiceInterface } from '../interfaces/Iuser.service';
|
|
12
12
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
13
13
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
@@ -54,7 +54,6 @@ interface EurostarSessionType {
|
|
|
54
54
|
export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherType> extends BaseEnterpriseSearch<EurostarTempParams, EurostarQuoteResult, EurostarQuoteResultArray> implements EurostarEnterpriseSearchInterface {
|
|
55
55
|
private eurostarFetcher;
|
|
56
56
|
private basketService;
|
|
57
|
-
private searchService;
|
|
58
57
|
private modalService;
|
|
59
58
|
static readonly STORAGE_SESSION_PARAMS = "search_eurostar";
|
|
60
59
|
static readonly STORAGE_SESSION_RESULTS = "results_eurostar";
|
|
@@ -209,6 +208,7 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
209
208
|
* @memberof EurostarInfo
|
|
210
209
|
*/
|
|
211
210
|
sortByPrice(results: EurostarResults[], dir?: boolean): EurostarResults[];
|
|
211
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
212
212
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
213
213
|
getTotalBaggage(result: FlightItinerary): number;
|
|
214
214
|
/**
|
|
@@ -228,7 +228,7 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
228
228
|
resetSelectedFares(): void;
|
|
229
229
|
removeSelectedFlags(result: EurostarResults): EurostarResults;
|
|
230
230
|
updateLowestPrice(results: EurostarQuoteResultArray): ICheapestPrice;
|
|
231
|
-
doBooking(intBasket: InternalBasketInterface, selectedFlight: EurostarItem, schemaDetails: any, outboundDate: string, inboundDate: string, price: number):
|
|
231
|
+
doBooking(intBasket: InternalBasketInterface, selectedFlight: EurostarItem, schemaDetails: any, outboundDate: string, inboundDate: string, price: number, requiresReason: boolean): Promise<DifferentInvokdedUserReasons>;
|
|
232
232
|
makeSchemaFlights(selectedFlight: FlightJourney, flightGroup: 'outbound' | 'inbound', groupIndex: number, segmentIndex?: number): any;
|
|
233
233
|
private createGroupedItem;
|
|
234
234
|
protected makeSessionResults(data: EurostarQuoteResultArray): EurostarSessionType;
|
|
@@ -236,12 +236,13 @@ export declare class EurostarEnterpriseSearch<SE_Q extends EurostarQuoteFetcherT
|
|
|
236
236
|
getMaxFlightPriceForBrand(matchingBrandFlights: FlightItinerary[]): number;
|
|
237
237
|
isOverNight(): boolean;
|
|
238
238
|
minToHour: (dur: number) => string;
|
|
239
|
-
addEurostarJourneysToBasket(eurostarQuote: FlightItineraryWithExtensions): Promise<
|
|
239
|
+
addEurostarJourneysToBasket(eurostarQuote: FlightItineraryWithExtensions): Promise<DifferentInvokdedUserReasons>;
|
|
240
240
|
getTermsAndCond(eurostarQuote: FlightItineraryWithExtensions): {
|
|
241
241
|
name: string;
|
|
242
242
|
value: string;
|
|
243
243
|
}[];
|
|
244
244
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
245
|
+
applyFavourite(fav: any): Promise<void>;
|
|
245
246
|
openEurostarFareRules(basketItem: BasketItem): void;
|
|
246
247
|
}
|
|
247
248
|
export {};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import moment from
|
|
2
|
-
import { BaseFastTrackQuoteFetcher, FastTrackQuoteFetcherType } from
|
|
3
|
-
import { ICheapestPrice } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import moment from 'moment';
|
|
2
|
+
import { BaseFastTrackQuoteFetcher, FastTrackQuoteFetcherType } from '../fetchers/fast-track-quote.fetcher';
|
|
3
|
+
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
4
|
+
import { FastTrackFilters } from '../interfaces/fast-track-filters.interface';
|
|
5
|
+
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
6
|
+
import { FastTrackEnterpriseSearchInterface, FastTrackTempParams } from '../interfaces/Ifast-track-enterprise-search';
|
|
7
|
+
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
8
|
+
import { BaseStorageService } from '../services/storage.service';
|
|
9
|
+
import { BasketItem, FastTrackQuote, SaveRecentSearchMutationVariables, SearchFastTrackQueryVariables, ServiceType } from '../types/graphql.types';
|
|
10
|
+
import { DifferentInvokdedUserReasons, FastTrackQuoteResultArray, NgbDateStruct, OBTAirportDetails, RecentSearch } from '../types/types';
|
|
11
|
+
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
12
|
+
import { BaseHelperRoutines } from './helpers';
|
|
12
13
|
export declare class FastTrackEnterpriseSearch<FTQ_Q extends FastTrackQuoteFetcherType> extends BaseEnterpriseSearch<FastTrackTempParams, FastTrackQuoteResultArray, FastTrackQuoteResultArray> implements FastTrackEnterpriseSearchInterface {
|
|
13
14
|
private fasttrackFetcher;
|
|
14
15
|
private basketService;
|
|
15
|
-
private searchService;
|
|
16
16
|
static readonly STORAGE_SESSION_PARAMS = "search_fasttrack";
|
|
17
17
|
static readonly STORAGE_SESSION_RESULTS = "results_fasttrack";
|
|
18
18
|
type: ServiceType;
|
|
@@ -42,11 +42,16 @@ export declare class FastTrackEnterpriseSearch<FTQ_Q extends FastTrackQuoteFetch
|
|
|
42
42
|
getSearchQuery(): SearchFastTrackQueryVariables;
|
|
43
43
|
getRecentSearchQuery(query: SearchFastTrackQueryVariables): SaveRecentSearchMutationVariables;
|
|
44
44
|
startRecentSearch(recentSearch: RecentSearch): void;
|
|
45
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
45
46
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
46
47
|
updateLowestPrice(results: FastTrackQuote[]): ICheapestPrice;
|
|
47
|
-
addFastTrackToBasket(fasttrackQuote: FastTrackQuote, fasttrackQuery: SearchFastTrackQueryVariables): Promise<
|
|
48
|
+
addFastTrackToBasket(fasttrackQuote: FastTrackQuote, fasttrackQuery: SearchFastTrackQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
48
49
|
getTermsAndCond(fasttrackQuote: FastTrackQuote): {
|
|
49
50
|
name: string;
|
|
50
51
|
value: string;
|
|
51
52
|
}[];
|
|
53
|
+
applyFilters(appliedFilters: FastTrackFilters, selectedSort: number): void;
|
|
54
|
+
sortResults(selectedSort: number, results?: FastTrackQuoteResultArray): FastTrackQuoteResultArray;
|
|
55
|
+
getMinPrice(fts: FastTrackQuoteResultArray): number;
|
|
56
|
+
getMaxPrice(fts: FastTrackQuoteResultArray): number;
|
|
52
57
|
}
|
|
@@ -7,7 +7,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
7
7
|
import { ValueDisplay } from '../interfaces/value-display';
|
|
8
8
|
import { FlightFilters } from '../interfaces/flight-filters.interface';
|
|
9
9
|
import { BasketItem, DestinationEntry, FareConditions, FareType, FlightCabinClass, FlightItinerary, FlightJourney, SaveRecentSearchMutationVariables, SearchFlightsV2QueryVariables, ServiceType } from '../types/graphql.types';
|
|
10
|
-
import { FlightAllQuoteResult, FlightDirectionEnum, FlightGroupedQuoteResult, FlightItineraryWithExtensions, FlightMulti, FlightQuoteResultArray, GroupedFlights, NgbDateStruct, OBTAirlinesDetails, OBTAirportDetails, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
10
|
+
import { DifferentInvokdedUserReasons, FlightAllQuoteResult, FlightDirectionEnum, FlightGroupedQuoteResult, FlightItineraryWithExtensions, FlightMulti, FlightQuoteResultArray, GroupedFlights, NgbDateStruct, OBTAirlinesDetails, OBTAirportDetails, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
11
11
|
import { BaseFlightQuoteFetcher, FlightQuoteFetcherType } from '../fetchers/flight-quote.fetcher';
|
|
12
12
|
import { UserServiceInterface } from '../interfaces/Iuser.service';
|
|
13
13
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
@@ -52,7 +52,6 @@ export declare class FlightEnterpriseSearch<FQ_Q extends FlightQuoteFetcherType,
|
|
|
52
52
|
private flightfetcher;
|
|
53
53
|
private userService;
|
|
54
54
|
private basketService;
|
|
55
|
-
private searchService;
|
|
56
55
|
private applyFlightRules;
|
|
57
56
|
private modalService;
|
|
58
57
|
static readonly STORAGE_SESSION_PARAMS = "search_flight";
|
|
@@ -187,6 +186,7 @@ export declare class FlightEnterpriseSearch<FQ_Q extends FlightQuoteFetcherType,
|
|
|
187
186
|
private updateAvaliableClasses;
|
|
188
187
|
private getUpdatedCabinClass;
|
|
189
188
|
updateFromPreviousSearches(_previousItems: Record<ServiceType, BasketItem>): void;
|
|
189
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
190
190
|
getTotalBaggage(result: FlightItinerary): number;
|
|
191
191
|
isGroupedFlights(toTest: FlightQuoteResultArray): toTest is FlightGroupedQuoteResult[];
|
|
192
192
|
/**
|
|
@@ -199,17 +199,18 @@ export declare class FlightEnterpriseSearch<FQ_Q extends FlightQuoteFetcherType,
|
|
|
199
199
|
selectGroupedFlight(selectedFlight: FlightItineraryWithExtensions, direction: FlightDirectionEnum, groupId: number): Promise<void>;
|
|
200
200
|
private _updateTravelPolicies;
|
|
201
201
|
private bookSingleFlight;
|
|
202
|
-
doBooking(intBasket: InternalBasketInterface, selectedFlight:
|
|
202
|
+
doBooking(intBasket: InternalBasketInterface, selectedFlight: FlightItineraryWithExtensions, schemaDetails: any, outboundDate: string, inboundDate?: string): Promise<DifferentInvokdedUserReasons>;
|
|
203
203
|
private makeSchemaFlights;
|
|
204
|
-
addFlightJourneysToBasket(flightQuote: FlightItineraryWithExtensions): Promise<
|
|
204
|
+
addFlightJourneysToBasket(flightQuote: FlightItineraryWithExtensions): Promise<DifferentInvokdedUserReasons>;
|
|
205
205
|
setFlightDisplayType(displayType: FlightDisplayTypes): void;
|
|
206
206
|
_applyFilter(): void;
|
|
207
|
-
openFlightFareRules(rules: FareConditions, flights: FlightJourney[]): void;
|
|
207
|
+
openFlightFareRules(rules: FareConditions, flights: FlightJourney[], options?: any, flightDetail?: FlightItinerary): void;
|
|
208
208
|
getTermsAndCond(flightQuote: FlightItineraryWithExtensions): {
|
|
209
209
|
name: string;
|
|
210
210
|
value: string;
|
|
211
211
|
}[];
|
|
212
212
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
213
|
+
applyFavourite(fav: any): Promise<void>;
|
|
213
214
|
private updateSerchQuery;
|
|
214
215
|
}
|
|
215
216
|
export {};
|
|
@@ -20,6 +20,7 @@ export declare class BaseHelperRoutines {
|
|
|
20
20
|
static TIME_FORMAT: string;
|
|
21
21
|
static TIME_FORMAT_COLON: string;
|
|
22
22
|
static MMDDYY_DATE: string;
|
|
23
|
+
isGroupTicket(code: string): boolean;
|
|
23
24
|
minToHour(dur: number): string;
|
|
24
25
|
makeColonTime(time: string): string;
|
|
25
26
|
nonNullMin(key: string, ...args: any[]): any;
|
|
@@ -37,7 +38,7 @@ export declare class BaseHelperRoutines {
|
|
|
37
38
|
formatGraphQLDateTime(date: moment.Moment): string;
|
|
38
39
|
formatIsoDateNoHyphans(date: moment.Moment): string;
|
|
39
40
|
generateTimesList(from?: number, to?: number, step?: number): string[];
|
|
40
|
-
momentToNgDate(date: moment.Moment): NgbDateStruct;
|
|
41
|
+
momentToNgDate(date: moment.Moment | string): NgbDateStruct;
|
|
41
42
|
ngDateToDate(date: NgbDateStruct): Date;
|
|
42
43
|
ngDateToMoment(date: NgbDateStruct, time?: string): moment.Moment;
|
|
43
44
|
todayToNgbDateStruct(): NgbDateStruct;
|
|
@@ -138,6 +139,10 @@ export declare class BaseHelperRoutines {
|
|
|
138
139
|
[key: string]: {
|
|
139
140
|
managementInfo: ManagementInfoAndIsValid[];
|
|
140
141
|
};
|
|
142
|
+
}, miPerGuest: {
|
|
143
|
+
[key: string]: {
|
|
144
|
+
managementInfo: ManagementInfoAndIsValid[];
|
|
145
|
+
};
|
|
141
146
|
}): boolean;
|
|
142
147
|
needsMi(basket: BasketDetails, needsToViewMi: boolean): boolean;
|
|
143
148
|
findService(services: UserServices, id: string): Service;
|
|
@@ -5,7 +5,7 @@ import { BaseHelperRoutines } from './helpers';
|
|
|
5
5
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
6
6
|
import { BaseEnvironment } from './enviroment';
|
|
7
7
|
import { BaseHotelAvalibilityService } from '../services/hotel-avallibility.service';
|
|
8
|
-
import { Country, HotelQuoteResult, HotelQuoteResultArray, LocationTypes, NgbDateStruct, LocationDetails, RecentSearch, HotelDetails, HotelDetailsArray, SaveFavouriteSearchResult } from '../types/types';
|
|
8
|
+
import { Country, HotelQuoteResult, HotelQuoteResultArray, LocationTypes, NgbDateStruct, LocationDetails, RecentSearch, HotelDetails, HotelDetailsArray, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
9
9
|
import { BasketItem, ConfermaOfficeNames, HotelLocation, HotelRoom, HotelTag, SaveRecentSearchMutationVariables, SearchHotelsQueryVariables, ServiceType } from '../types/graphql.types';
|
|
10
10
|
import { BaseHotelQuoteFetcher, HotelQuoteFetcherType } from '../fetchers/hotel-quote-fetcher';
|
|
11
11
|
import { UserServiceInterface } from '../interfaces/Iuser.service';
|
|
@@ -30,12 +30,10 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
30
30
|
private environment;
|
|
31
31
|
private avaliabilityService;
|
|
32
32
|
private basketService;
|
|
33
|
-
private searchService;
|
|
34
33
|
private httpCallService;
|
|
35
34
|
private quickListFetcher;
|
|
36
35
|
private getRailStationFetcher;
|
|
37
36
|
private applyHotelRulesFetcher;
|
|
38
|
-
static readonly MAX_HOTEL_ROOMS = 4;
|
|
39
37
|
static readonly STORAGE_SESSION_PARAMS = "search_hotel";
|
|
40
38
|
static readonly STORAGE_SESSION_RESULTS = "results_hotel";
|
|
41
39
|
type: ServiceType;
|
|
@@ -43,6 +41,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
43
41
|
location_types: BehaviorSubject<LocationTypes[]>;
|
|
44
42
|
offices: BehaviorSubject<LocationTypes[]>;
|
|
45
43
|
lastActivePage: BehaviorSubject<number>;
|
|
44
|
+
jitRulesReceived: BehaviorSubject<boolean>;
|
|
46
45
|
readonly galleries: {
|
|
47
46
|
[key: string]: string[];
|
|
48
47
|
};
|
|
@@ -113,6 +112,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
113
112
|
set hotel_chain(newChain: any);
|
|
114
113
|
get max_rooms_array(): number[];
|
|
115
114
|
get max_occupant_array(): number[];
|
|
115
|
+
get max_no_of_rooms(): number;
|
|
116
116
|
get distance_list(): number[];
|
|
117
117
|
get location_type_select(): LocationTypes;
|
|
118
118
|
set location_type_select(value: LocationTypes);
|
|
@@ -147,6 +147,8 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
147
147
|
private inLighteningPriceRange;
|
|
148
148
|
private hasChain;
|
|
149
149
|
private breakfastTypeFilter;
|
|
150
|
+
private accessibleRoomTypeFilter;
|
|
151
|
+
private getHotelObjectValue;
|
|
150
152
|
byMostExpensive(): void;
|
|
151
153
|
/**
|
|
152
154
|
* @param {boolean} min
|
|
@@ -164,6 +166,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
164
166
|
addFilter(filter: string, type: keyof HotelFilters): void;
|
|
165
167
|
removeFilter(filter: string, type: keyof HotelFilters): void;
|
|
166
168
|
resetFilters(): void;
|
|
169
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
167
170
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
168
171
|
private hasPreferred;
|
|
169
172
|
getmaxPriceForCurrency(currency: string): any;
|
|
@@ -180,10 +183,11 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
|
|
|
180
183
|
* @desc - return the occupancy for a room - need to calculate based on no of rooms, no of travellers and currently occupied rooms;
|
|
181
184
|
**/
|
|
182
185
|
calcRoomOccupancy(no_of_rooms: number, travellers: number): number;
|
|
183
|
-
addHotelRoomToBasket(hotel: HotelDetails, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<
|
|
186
|
+
addHotelRoomToBasket(hotel: HotelDetails, hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables, travellers?: Traveller[]): Promise<DifferentInvokdedUserReasons>;
|
|
184
187
|
getTermsAndCond(hotelRoom: HotelRoom, hotelQuery: SearchHotelsQueryVariables): {
|
|
185
188
|
name: string;
|
|
186
189
|
value: string;
|
|
187
190
|
}[];
|
|
188
191
|
saveSearch(hotelName?: string): Observable<SaveFavouriteSearchResult>;
|
|
192
|
+
applyFavourite(fav: any): Promise<void>;
|
|
189
193
|
}
|
|
@@ -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 { NgbDateStruct, IrlQuoteResultArray, RecentSearch, IrlTicketOptionWithSelected, SaveFavouriteSearchResult } from '../types/types';
|
|
7
|
+
import { NgbDateStruct, IrlQuoteResultArray, RecentSearch, IrlTicketOptionWithSelected, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
8
8
|
import { BasketItem, IrlClass, IrlJourneyOption, IrlJourneyOptions, SaveRecentSearchMutationVariables, IrlTicketOption, SearchIrlQueryVariables, ServiceType, IrlJourneyType, IrlSupplier, IrlTravelCard, IrlSegment } from '../types/graphql.types';
|
|
9
9
|
import { BaseIrlDiscountCardFetcher, IrlDiscountCardFetcherType } from '../fetchers/irl-discount-card-fetcher';
|
|
10
10
|
import { BaseIrlQuoteFetcher, IrlQuoteFetcherType } from '../fetchers/irl-quote-fetcher';
|
|
@@ -14,6 +14,7 @@ import { IRLEnterpriseSearchInterface, IrlTempParams } from '../interfaces/Iirl-
|
|
|
14
14
|
import { ages } from '../models/traveller.object';
|
|
15
15
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
16
16
|
import { SortMethod } from './eurostar-enterprise-search';
|
|
17
|
+
import { BaseGetIrlSupplierStationFetcher, GetIrlSupplierStationFetcherType } from '../fetchers/get-irl-supplier-station.fetcher';
|
|
17
18
|
export declare enum SortTypesIrl {
|
|
18
19
|
CheapestFirst = "C",
|
|
19
20
|
EarliestFirst = "E",
|
|
@@ -33,11 +34,21 @@ export declare enum ClassType {
|
|
|
33
34
|
Second_Class = "2nd Class",
|
|
34
35
|
First_Class = "1st Class"
|
|
35
36
|
}
|
|
36
|
-
export
|
|
37
|
+
export interface IrlFilters {
|
|
38
|
+
priceMax: number;
|
|
39
|
+
priceMin: number;
|
|
40
|
+
dateArrMax: number;
|
|
41
|
+
dateArrMin: number;
|
|
42
|
+
dateDepMax: number;
|
|
43
|
+
dateDepMin: number;
|
|
44
|
+
classes: any[];
|
|
45
|
+
changes: any[];
|
|
46
|
+
}
|
|
47
|
+
export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q extends IrlDiscountCardFetcherType, GISSF_Q extends GetIrlSupplierStationFetcherType> extends BaseEnterpriseSearch<IrlTempParams, IrlQuoteResultArray, IrlQuoteResultArray> implements IRLEnterpriseSearchInterface {
|
|
37
48
|
private Irlfetcher;
|
|
38
49
|
private irlDiscountCardsFetcher;
|
|
39
50
|
private basketService;
|
|
40
|
-
private
|
|
51
|
+
private getIrlSupplierStationFetcher;
|
|
41
52
|
static readonly STORAGE_SESSION_PARAMS = "search_irl";
|
|
42
53
|
static readonly STORAGE_SESSION_RESULTS = "irl_results";
|
|
43
54
|
static readonly PASSING_POINT = "Passing";
|
|
@@ -102,7 +113,6 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
102
113
|
private _arrivalLocationId;
|
|
103
114
|
get arrivalLocationId(): string;
|
|
104
115
|
set arrivalLocationId(data: string);
|
|
105
|
-
private _adults;
|
|
106
116
|
get adults(): number;
|
|
107
117
|
set adults(data: number);
|
|
108
118
|
private _children;
|
|
@@ -164,7 +174,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
164
174
|
private _additionalInstructions;
|
|
165
175
|
get additionalInstructions(): string;
|
|
166
176
|
set additionalInstructions(data: string);
|
|
167
|
-
constructor(Irlfetcher: BaseIrlQuoteFetcher<Q>, irlDiscountCardsFetcher: BaseIrlDiscountCardFetcher<GIDF_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface);
|
|
177
|
+
constructor(Irlfetcher: BaseIrlQuoteFetcher<Q>, irlDiscountCardsFetcher: BaseIrlDiscountCardFetcher<GIDF_Q>, helpers: BaseHelperRoutines, basketService: EnterpriseBasketServiceInterface, storageService: BaseStorageService, searchService: EnterpriseSearchServiceInterface, getIrlSupplierStationFetcher: BaseGetIrlSupplierStationFetcher<GISSF_Q>);
|
|
168
178
|
irlDiscountCards: IrlTravelCard;
|
|
169
179
|
protected processResults(results: IrlQuoteResultArray): ({
|
|
170
180
|
__typename?: "IRLJourneyOptions";
|
|
@@ -373,12 +383,13 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
373
383
|
private _updateOutboundDateTime;
|
|
374
384
|
private _updateReturnDateTime;
|
|
375
385
|
getSearchQuery(): SearchIrlQueryVariables;
|
|
386
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
376
387
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
377
388
|
updateCanCombine(tkt: IrlTicketOption): void;
|
|
378
389
|
getLegsFromIrlJourneyOption(railJourneyOption: IrlJourneyOption): any[];
|
|
379
390
|
getSelectedIrlTicketOption(irlJourneyOption: IrlJourneyOption, irlTicketOption: IrlTicketOption, providerIndex: number): IrlTicketOption;
|
|
380
|
-
addSingleJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, outbound: IrlTicketOption, irlJourneyOption: IrlJourneyOption): Promise<
|
|
381
|
-
addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inbound: IrlTicketOption, inJourneyOption: IrlJourneyOption): Promise<
|
|
391
|
+
addSingleJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, outbound: IrlTicketOption, irlJourneyOption: IrlJourneyOption): Promise<DifferentInvokdedUserReasons>;
|
|
392
|
+
addReturnJourneyToBasket(serviceId: string, irlQuery: SearchIrlQueryVariables, inbound: IrlTicketOption, inJourneyOption: IrlJourneyOption, outboundTicket?: IrlTicketOption, outboundJourney?: IrlJourneyOption): Promise<DifferentInvokdedUserReasons>;
|
|
382
393
|
updateLowestPrice(results: IrlJourneyOptions[]): ICheapestPrice;
|
|
383
394
|
findCheapestTicket(results: IrlJourneyOptions[]): number;
|
|
384
395
|
/**
|
|
@@ -387,14 +398,14 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
387
398
|
* @returns
|
|
388
399
|
* @memberof irl-enterprise-search
|
|
389
400
|
*/
|
|
390
|
-
sortByPrice(): void;
|
|
401
|
+
sortByPrice(ignoreDirectionChange?: boolean): void;
|
|
391
402
|
/**
|
|
392
403
|
* Sort results by departure time
|
|
393
404
|
*
|
|
394
405
|
* @returns
|
|
395
406
|
* @memberof irl-enterprise-search
|
|
396
407
|
*/
|
|
397
|
-
sortByDate(): void;
|
|
408
|
+
sortByDate(ignoreDirection?: boolean): void;
|
|
398
409
|
addOutboundAndFilter(ticket: IrlTicketOptionWithSelected, fullTicket: IrlJourneyOption): void;
|
|
399
410
|
filterSelected(filterOutbound?: boolean): IrlJourneyOptions[];
|
|
400
411
|
/**
|
|
@@ -408,4 +419,7 @@ export declare class IRLEnterpriseSearch<Q extends IrlQuoteFetcherType, GIDF_Q e
|
|
|
408
419
|
value: string;
|
|
409
420
|
}[];
|
|
410
421
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
422
|
+
generateFilters(results: IrlJourneyOption[]): IrlFilters;
|
|
423
|
+
applyFilters(filters: IrlFilters, direction?: string): void;
|
|
424
|
+
applyFavourite(fav: any): Promise<void>;
|
|
411
425
|
}
|
|
@@ -3,7 +3,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import { BaseStorageService } from '../services/storage.service';
|
|
5
5
|
import { BaseHelperRoutines } from './helpers';
|
|
6
|
-
import { LoungeQuoteResultArray, NgbDateStruct, OBTAirportDetails, RecentSearch, SaveFavouriteSearchResult, TerminalsType } from '../types/types';
|
|
6
|
+
import { DifferentInvokdedUserReasons, LoungeQuoteResultArray, NgbDateStruct, OBTAirportDetails, RecentSearch, SaveFavouriteSearchResult, TerminalsType } from '../types/types';
|
|
7
7
|
import { BasketItem, LoungeQuote, SaveRecentSearchMutationVariables, SearchLoungesQueryVariables, ServiceType } from '../types/graphql.types';
|
|
8
8
|
import { BaseLoungeQuoteFetcher, LoungeQuoteFetcherType } from '../fetchers/lounge-quote.fetcher';
|
|
9
9
|
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
@@ -13,7 +13,6 @@ import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
|
13
13
|
export declare class LoungesEnterpriseSearch<LQ_Q extends LoungeQuoteFetcherType> extends BaseEnterpriseSearch<LoungesTempParams, LoungeQuoteResultArray, LoungeQuoteResultArray> implements LoungesEnterpriseSearchInterface {
|
|
14
14
|
private loungefetcher;
|
|
15
15
|
private basketService;
|
|
16
|
-
private searchService;
|
|
17
16
|
static readonly STORAGE_SESSION_PARAMS = "search_lounge";
|
|
18
17
|
static readonly STORAGE_SESSION_RESULTS = "results_lounge";
|
|
19
18
|
type: ServiceType;
|
|
@@ -63,11 +62,13 @@ export declare class LoungesEnterpriseSearch<LQ_Q extends LoungeQuoteFetcherType
|
|
|
63
62
|
sortResultsPrice(resultArray: LoungeQuote[], asc?: boolean): LoungeQuote[];
|
|
64
63
|
sortByTerminal(resultArray?: LoungeQuote[]): void;
|
|
65
64
|
updateFromPreviousSearches(previousItems: Record<ServiceType, BasketItem>): void;
|
|
66
|
-
|
|
65
|
+
updateSearchFromExpiredBasketItem(basketItem: BasketItem): void;
|
|
66
|
+
addLoungeToBasket(loungeQuote: LoungeQuote, loungeQuery: SearchLoungesQueryVariables): Promise<DifferentInvokdedUserReasons>;
|
|
67
67
|
getTermsAndCond(loungeQuote: LoungeQuote): {
|
|
68
68
|
name: string;
|
|
69
69
|
value: any;
|
|
70
70
|
}[];
|
|
71
71
|
updateLowestPrice(results: LoungeQuote[]): ICheapestPrice;
|
|
72
72
|
saveSearch(): Observable<SaveFavouriteSearchResult>;
|
|
73
|
+
applyFavourite(fav: any): Promise<void>;
|
|
73
74
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { ValidatorChecker } from '../classes/validator.checker';
|
|
3
3
|
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
4
|
-
import { FieldWrapper, ManagementInfo, ManagementInfoValue, Maybe, Scalars, SelectedManagementInfoValue, Service, UiPresentation } from '../types/graphql.types';
|
|
4
|
+
import { BookedByField, FieldWrapper, ManagementInfo, ManagementInfoValue, Maybe, Scalars, SelectedManagementInfoValue, Service, UiPresentation } from '../types/graphql.types';
|
|
5
5
|
import { GetMiAutoSugestionArray, ValidationErrors } from '../types/types';
|
|
6
6
|
export declare abstract class ManagementInfoAndIsValid extends ValidatorChecker implements ManagementInfo {
|
|
7
7
|
agentOnly: FieldWrapper<Scalars['Boolean']>;
|
|
@@ -32,11 +32,16 @@ export declare abstract class ManagementInfoAndIsValid extends ValidatorChecker
|
|
|
32
32
|
get value(): string;
|
|
33
33
|
set value(val: string);
|
|
34
34
|
protected constructor(managementInfo: ManagementInfo);
|
|
35
|
+
reason: boolean;
|
|
36
|
+
takeValueFromUserDefault?: boolean;
|
|
37
|
+
takeValueFromBookerDefault?: boolean;
|
|
38
|
+
enforceUserDefault?: boolean;
|
|
39
|
+
bookedByField?: BookedByField;
|
|
35
40
|
isValid(): boolean;
|
|
36
41
|
hasErrors(value: string): Promise<ValidationErrors>;
|
|
37
42
|
abstract getValue(): string;
|
|
38
43
|
abstract setValue(val: string): void;
|
|
39
44
|
search: (terms: Observable<string>) => Observable<GetMiAutoSugestionArray>;
|
|
40
|
-
abstract save(basketid: string, userId?: string): void;
|
|
45
|
+
abstract save(basketid: string, userId?: string, guest?: boolean): void;
|
|
41
46
|
}
|
|
42
47
|
export declare const makeManagamentInfo: (managementInfo: ManagementInfo, basketService: EnterpriseBasketServiceInterface) => ManagementInfoAndIsValid;
|
|
@@ -11,6 +11,8 @@ export declare class ModalTypes {
|
|
|
11
11
|
static readonly ModalFlightFareComponent: ModalTypes;
|
|
12
12
|
static readonly FlightExtrasDialogComponent: ModalTypes;
|
|
13
13
|
static readonly OfflineRequestDialogComponent: ModalTypes;
|
|
14
|
+
static readonly RequiresReasonDialogComponent: ModalTypes;
|
|
15
|
+
static readonly DifferentInvokdedUserComponent: ModalTypes;
|
|
14
16
|
private _component;
|
|
15
17
|
get component(): any;
|
|
16
18
|
set component(value: any);
|