@sabstravtech/obtservices 0.2.2605201100 → 0.2.2605260950
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 -1
- package/angular/fetchers.d.ts +0 -2
- package/angular/lib/vendor/classes/helpers.d.ts +2 -2
- package/angular/lib/vendor/fetchers/get-flight-exchange-details.fetcher.d.ts +1 -1
- package/angular/lib/vendor/fetchers/get-flight-search-exchange.fetcher.d.ts +1 -1
- package/angular/lib/vendor/fetchers/get-latest-versions.fetcher.d.ts +1 -1
- package/angular/lib/vendor/fetchers/get-rail-search-exchange.fetcher.d.ts +1 -1
- package/angular/lib/vendor/interceptors/http-cancel-interceptor.d.ts +3 -3
- package/angular/lib/vendor/services/chatbot.service.d.ts +40 -0
- package/angular/lib/vendor/services/enterprise-basket.service.d.ts +12 -15
- package/angular/lib/vendor/services/hotel-avallibility.service.d.ts +2 -2
- package/angular/lib/vendor/services/http-call.service.d.ts +3 -3
- package/angular/lib/vendor/services/http-cancel.service.d.ts +1 -1
- package/angular/lib/vendor/services/logon.service.d.ts +5 -5
- package/angular/lib/vendor/services/messages.service.d.ts +1 -1
- package/angular/lib/vendor/services/my-bookings.service.d.ts +2 -2
- package/angular/lib/vendor/services/prompt-update.service.d.ts +1 -1
- package/angular/lib/vendor/services/result-aware.service.d.ts +39 -0
- package/angular/lib/vendor/services/search-document-validation.service.d.ts +1 -1
- package/angular/lib/vendor/services/search-payment-validation.service.d.ts +1 -1
- package/angular/lib/vendor/services/search.service.d.ts +15 -16
- package/angular/lib/vendor/services/user.service.d.ts +7 -7
- package/angular/lib/vendor/services/webtoken.service.d.ts +1 -1
- package/angular/lib/vendor/testers/postcode-validate.tester.d.ts +1 -1
- package/angular/lib/vendor/types/graphql.angular.types.d.ts +0 -120
- package/angular/lib/vendor/updaters/accept-new-price.updater.d.ts +1 -1
- package/angular/lib/vendor/updaters/add-basket-item-markup.updater.d.ts +1 -1
- package/angular/lib/vendor/updaters/amend-booking.updater.d.ts +1 -1
- package/angular/lib/vendor/updaters/edit-user-address.updater.d.ts +1 -1
- package/angular/lib/vendor/updaters/save-user-address.updater.d.ts +1 -1
- package/angular/lib/vendor/updaters/set-empty-user-mi-default-value.updater.d.ts +1 -1
- package/angular/lib/vendor/updaters/set-mi-values.updater.d.ts +1 -1
- package/angular/lib/vendor/updaters/set-user-mi-default-value.updater.d.ts +1 -1
- package/angular/services.d.ts +2 -0
- package/base/interfaces.d.ts +2 -0
- package/base/lib/constants/ticket-codes.d.ts +1 -1
- package/base/lib/vendor/classes/base-enterprise.d.ts +1 -1
- package/base/lib/vendor/classes/base-network-call.d.ts +1 -1
- package/base/lib/vendor/classes/basket-info-mi-details.impl.d.ts +1 -1
- package/base/lib/vendor/classes/cabhire-enterprise-search.d.ts +3 -3
- package/base/lib/vendor/classes/carhire-enterprise-search.d.ts +3 -3
- package/base/lib/vendor/classes/draft-basket-info-mi-details.impl.d.ts +1 -1
- package/base/lib/vendor/classes/draft-management-info-and-valid.d.ts +2 -2
- package/base/lib/vendor/classes/eurostar-enterprise-search.d.ts +5 -5
- package/base/lib/vendor/classes/ferry-enterprise-search.d.ts +4 -2
- package/base/lib/vendor/classes/flight-enterprise-search.d.ts +5 -5
- package/base/lib/vendor/classes/hotel-enterprise-search.d.ts +4 -4
- package/base/lib/vendor/classes/irl-enterprise-search.d.ts +2 -2
- package/base/lib/vendor/classes/lounges-enterprise-search.d.ts +4 -4
- package/base/lib/vendor/classes/management-info-and-valid.d.ts +1 -1
- package/base/lib/vendor/classes/modal-types.enum.d.ts +0 -1
- package/base/lib/vendor/classes/parking-enterprise-search.d.ts +2 -2
- package/base/lib/vendor/classes/rail-enterprise-search.d.ts +7 -5
- package/base/lib/vendor/classes/season-ticket-enterprise-search.d.ts +2 -2
- package/base/lib/vendor/classes/supplementary-booking-info-impl.d.ts +1 -1
- package/base/lib/vendor/fetchers/apply-JIT-hotel-rules.fetcher.d.ts +3 -3
- package/base/lib/vendor/fetchers/eurostar-quote.fetcher.d.ts +2 -2
- package/base/lib/vendor/fetchers/flight-quote.fetcher.d.ts +3 -3
- package/base/lib/vendor/fetchers/hotel-avaliability-fetcher.d.ts +2 -2
- package/base/lib/vendor/fetchers/object-fetchable-enterprise.d.ts +1 -1
- package/base/lib/vendor/interceptors/http-cancel-interceptor.d.ts +2 -2
- package/base/lib/vendor/interfaces/Iambulance-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Iapartment-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Icarhire-enterprise-search.d.ts +2 -2
- package/base/lib/vendor/interfaces/Ienterprise-basket.service.d.ts +5 -6
- package/base/lib/vendor/interfaces/Ieurostar-enterprise-search.d.ts +2 -2
- package/base/lib/vendor/interfaces/Ifast-track-enterprise-search.d.ts +2 -2
- package/base/lib/vendor/interfaces/Iferry-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Iflight-enterprise-search.d.ts +4 -4
- package/base/lib/vendor/interfaces/Ihotel-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Iirl-enterprise-search.d.ts +2 -2
- package/base/lib/vendor/interfaces/Ilounges-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Imeeting-room-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Imybookings.service.d.ts +2 -1
- package/base/lib/vendor/interfaces/Irail-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Irail-station-information.interface.d.ts +1 -1
- package/base/lib/vendor/interfaces/Isearch.service.d.ts +5 -4
- package/base/lib/vendor/interfaces/Iseason-tickets-enterprise-search.d.ts +1 -1
- package/base/lib/vendor/interfaces/Iuser.service.d.ts +4 -4
- package/base/lib/vendor/interfaces/booking-baskes-duplicate-check.interface.d.ts +1 -1
- package/base/lib/vendor/interfaces/cab-hire-search-arg.interface.d.ts +2 -2
- package/base/lib/vendor/interfaces/car-hire-classes.interface.d.ts +1 -1
- package/base/lib/vendor/interfaces/car-hire-search-arg.interface.d.ts +1 -1
- package/base/lib/vendor/interfaces/chatbot.types.d.ts +116 -0
- package/base/lib/vendor/interfaces/cheapest-price-object.d.ts +1 -1
- package/base/lib/vendor/interfaces/eurostar-search-arg.interface.d.ts +2 -2
- package/base/lib/vendor/interfaces/flight-multi-destination.interface.d.ts +3 -3
- package/base/lib/vendor/interfaces/hotel-recent-search-args.interface.d.ts +2 -2
- package/base/lib/vendor/interfaces/hotel-results-configuration.interface.d.ts +1 -1
- package/base/lib/vendor/interfaces/irl-search-arg.interface.d.ts +1 -1
- package/base/lib/vendor/operations/simple-fetchable-list-approval.d.ts +1 -1
- package/base/lib/vendor/operations/simple-fetchable-list-basket.d.ts +1 -14
- package/base/lib/vendor/operations/simple-fetchable-list-flight.d.ts +1 -1
- package/base/lib/vendor/operations/simple-fetchable-list-location.d.ts +1 -1
- package/base/lib/vendor/operations/simple-fetchable-list-misc.d.ts +1 -14
- package/base/lib/vendor/operations/simple-fetchable-list-quotes.d.ts +1 -1
- package/base/lib/vendor/operations/simple-fetchable-list-search.d.ts +1 -1
- package/base/lib/vendor/operations/simple-fetchable-list-user.d.ts +1 -1
- package/base/lib/vendor/operations/simple-fetchable-object.d.ts +1 -14
- package/base/lib/vendor/operations/simple-fetchers.d.ts +0 -1
- package/base/lib/vendor/operations/simple-updaters-basket-approval.d.ts +1 -1
- package/base/lib/vendor/operations/simple-updaters-basket-item.d.ts +1 -14
- package/base/lib/vendor/operations/simple-updaters-basket.d.ts +1 -1
- package/base/lib/vendor/operations/simple-updaters-booking.d.ts +1 -1
- package/base/lib/vendor/operations/simple-updaters-user-preference.d.ts +1 -1
- package/base/lib/vendor/operations/simple-updaters-user.d.ts +1 -1
- package/base/lib/vendor/services/chatbot.service.d.ts +103 -0
- package/base/lib/vendor/services/enterprise-basket.service.d.ts +18 -17
- package/base/lib/vendor/services/http-cancel.service.d.ts +1 -1
- package/base/lib/vendor/services/logon.service.d.ts +3 -3
- package/base/lib/vendor/services/my-bookings.service.d.ts +6 -3
- package/base/lib/vendor/services/requires-override-reason.service.d.ts +4 -4
- package/base/lib/vendor/services/requires-reason.service.d.ts +2 -2
- package/base/lib/vendor/services/search.service.d.ts +9 -10
- package/base/lib/vendor/services/user.service.d.ts +6 -2
- package/base/lib/vendor/testers/base.tester.d.ts +1 -1
- package/base/lib/vendor/testers/postcode-validate.tester.d.ts +2 -2
- package/base/lib/vendor/types/basket-types.d.ts +2 -2
- package/base/lib/vendor/types/graphql.types.d.ts +0 -92
- package/base/lib/vendor/types/types.d.ts +36 -37
- package/base/services.d.ts +1 -0
- package/fesm2022/sabstravtech-obtservices-angular.mjs +656 -348
- package/fesm2022/sabstravtech-obtservices-angular.mjs.map +1 -1
- package/fesm2022/sabstravtech-obtservices-base.mjs +6284 -6318
- package/fesm2022/sabstravtech-obtservices-base.mjs.map +1 -1
- package/package.json +3 -2
- package/angular/lib/vendor/fetchers/download-eticket.fetcher.d.ts +0 -10
- package/angular/lib/vendor/fetchers/get-jyrney-url.fetcher.d.ts +0 -10
- package/angular/lib/vendor/fetchers/get-process-terms-price.fetcher.d.ts +0 -10
- package/angular/lib/vendor/updaters/accept-process-terms.updater.d.ts +0 -9
|
@@ -33,7 +33,6 @@ export declare class ModalTypes {
|
|
|
33
33
|
static readonly ApprovalWarningModalComponent: ModalTypes;
|
|
34
34
|
static readonly RailSeatAutoWarningModalComponent: ModalTypes;
|
|
35
35
|
static readonly CVVCapturingModalComponent: ModalTypes;
|
|
36
|
-
static readonly ModalTravelFusionPriceWarning: ModalTypes;
|
|
37
36
|
private _component;
|
|
38
37
|
get component(): any;
|
|
39
38
|
set component(value: any);
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import moment from 'moment';
|
|
3
|
+
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
3
4
|
import { BaseStorageService } from '../services/storage.service';
|
|
5
|
+
import { BaseHelperRoutines } from './helpers';
|
|
4
6
|
import { DifferentInvokdedUserReasons } from '../types/types';
|
|
5
7
|
import { ServiceType } from '../types/graphql.types';
|
|
6
8
|
import type { NgbDateStruct, OBTAirportDetails, ParkingQuoteResultArray, TerminalsType, ParkingFiltersInterface, RecentSearch } from '../types/types';
|
|
@@ -11,8 +13,6 @@ import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service'
|
|
|
11
13
|
import type { ParkingEnterpriseSearchInterface, ParkingTempParams } from '../interfaces/Iparking-enterprise-search';
|
|
12
14
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
13
15
|
import { UserServiceInterface } from '../interfaces/Iuser.service';
|
|
14
|
-
import { BaseHelperRoutines } from './helpers';
|
|
15
|
-
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
16
16
|
export declare const defaultValidations: {
|
|
17
17
|
AirportFirst: string;
|
|
18
18
|
InvardJourney: string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
3
4
|
import { BaseStorageService } from '../services/storage.service';
|
|
5
|
+
import { BaseHelperRoutines } from './helpers';
|
|
4
6
|
import { ValueDisplay } from '../interfaces/value-display';
|
|
5
|
-
import { CheapestRailClassPrices, CheapestRailPrices, DifferentInvokdedUserReasons, NgbDateStruct, OBTRailFareTypes, OBTRailJourneyFare, OBTRailJourneyOption, OBTRailQuoteResult, OBTRailQuoteResultArray, RecentSearch, SaveFavouriteSearchResult
|
|
7
|
+
import { CheapestRailClassPrices, CheapestRailPrices, DifferentInvokdedUserReasons, NgbDateStruct, OBTRailFareTypes, OBTRailJourneyFare, OBTRailJourneyOption, OBTRailQuoteResult, OBTRailQuoteResultArray, RecentSearch, SaveFavouriteSearchResult } from '../types/types';
|
|
6
8
|
import { BasketItem, RailClass, RailJourneyOption, ReferenceRailCardQualifier, SaveRecentSearchMutationVariables, SearchRailQueryVariables, ServiceType, RailTicketExtra, RailSearchJourneyType, RailJourneyFare, RailStation, RailJourneyLeg, SearchFlightsV2QueryVariables, RailTicketTermsList, RailSearchResult, TrainSeatMapSeat, RailIdentifiers } from '../types/graphql.types';
|
|
7
|
-
import { BaseRailQuoteFetcher, RailQuoteFetcherType
|
|
9
|
+
import { BaseRailQuoteFetcher, RailQuoteFetcherType } from '../operations/simple-fetchers';
|
|
10
|
+
import { BaseGetRailStationFetcher, GetRailStationFetcherType } from '../operations/simple-fetchers';
|
|
8
11
|
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
9
12
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
10
13
|
import { UserServiceInterface } from '../interfaces/Iuser.service';
|
|
@@ -13,14 +16,13 @@ import { Traveller } from '../models/traveller.object';
|
|
|
13
16
|
import { ICheapestPrice } from '../interfaces/cheapest-price';
|
|
14
17
|
import { IRailAirportExpressStations } from '../interfaces/rail-airport-express-stations.interface';
|
|
15
18
|
import { ITravelCardDetail, RailBasketItem, TicketExtras } from '../interfaces/rail-basket-item.interface';
|
|
19
|
+
import { RailQuoteResultArray } from '../types/types';
|
|
16
20
|
import { RailSummary } from '../interfaces/summary-interface';
|
|
17
21
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
18
22
|
import { IRailSelectedMultiFares, IRailSelectedTicket } from '../interfaces/rail-selected-ticket.interface';
|
|
23
|
+
import { RailDirection } from './rail-direction.enum';
|
|
19
24
|
import { IRailStationInformation } from '../interfaces/Irail-station-information.interface';
|
|
20
25
|
import { RailSearchCriteria, RailFareTypes, AllowedRailClass, TrainlineTraveller, TrainlineLoyalty, RailSplitComparisonType } from '../types/rail-search-types';
|
|
21
|
-
import { RailDirection } from './rail-direction.enum';
|
|
22
|
-
import { BaseHelperRoutines } from './helpers';
|
|
23
|
-
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
24
26
|
export { RailSearchCriteria, RailFareTypes, AllowedRailClass, TrainlineTraveller, TrainlineLoyalty, RailSplitComparisonType };
|
|
25
27
|
export declare enum RailJourneyFareType {
|
|
26
28
|
Return = "Return",
|
|
@@ -7,11 +7,11 @@ import { BaseStorageService } from '../services/storage.service';
|
|
|
7
7
|
import { ServiceType, SeasonTicketDeliveryType, SeasonTicketLondonUnderground, SeasonTicketClassType, SeasonTicketType } from '../types/graphql.types';
|
|
8
8
|
import type { SeasonTicketCardType } from '../types/graphql.types';
|
|
9
9
|
import { NgbDateStruct, SeasonTicketEmailQuoteResult } from '../types/types';
|
|
10
|
+
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
11
|
+
import { BaseHelperRoutines } from './helpers';
|
|
10
12
|
import type { SeasonTicketsEnterpriseSearchInterface, SeasonTicketsTempParams } from '../interfaces/Iseason-tickets-enterprise-search';
|
|
11
13
|
import { ValueDisplay } from '../interfaces/value-display';
|
|
12
14
|
import { EnterpriseBasketServiceInterface } from '../interfaces/Ienterprise-basket.service';
|
|
13
|
-
import { BaseHelperRoutines } from './helpers';
|
|
14
|
-
import { BaseEnterpriseSearch } from './base-enterprise';
|
|
15
15
|
export declare class SeasonTicketsEnterpriseSearch<ESTB_F extends EmailSeasonTicketBookingFetcherType> extends BaseEnterpriseSearch<SeasonTicketsTempParams, SeasonTicketEmailQuoteResult, SeasonTicketEmailQuoteResult[]> implements SeasonTicketsEnterpriseSearchInterface {
|
|
16
16
|
private emailSeasonTicketFetcher;
|
|
17
17
|
private basketService;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
1
|
import { BaseHelperRoutines } from '../classes/helpers';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { GetUserAddressResult, GetUserPhoneNumberResult, GetUserResult, Schema, SchemaFormat, SchemaType } from '../types/types';
|
|
4
4
|
import { BaseGetUserFetcher, SearchGetUserFetcherType } from '../operations/simple-fetchers';
|
|
5
5
|
import { Address, BasketItem, BookingAddress, BookingPhoneNumber, PhoneNumber, SupplementaryBookingInfo, UserOrGuest } from '../types/graphql.types';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ApolloQueryResult, FetchResult } from '@apollo/client/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
2
|
import { BaseHelperRoutines } from '../classes/helpers';
|
|
3
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
4
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import { ApplyJitHotelRulesQuery, QueryApplyJitHotelRulesArgs } from '../types/graphql.types';
|
|
6
|
-
import { FetchableList } from './list-fetchable-enterprise';
|
|
7
7
|
type R = {
|
|
8
8
|
applyJITHotelRules: {
|
|
9
9
|
result: P;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
type P =
|
|
12
|
+
type P = Object;
|
|
13
13
|
type A = QueryApplyJitHotelRulesArgs;
|
|
14
14
|
type M = ApplyJitHotelRulesQuery;
|
|
15
15
|
export type ApplyHotelRulesFetcherType = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
2
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
4
3
|
import { BaseHelperRoutines } from '../classes/helpers';
|
|
4
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import { EurostarQuoteResult, RuleActionSummaryInterface } from '../types/types';
|
|
6
7
|
import { SearchEurostarQuery, SearchEurostarQueryVariables } from '../types/graphql.types';
|
|
7
|
-
import { FetchableList } from './list-fetchable-enterprise';
|
|
8
8
|
type R = {
|
|
9
9
|
searchEurostar: {
|
|
10
10
|
results: P;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { BaseHelperRoutines } from '../classes/helpers';
|
|
4
2
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
3
|
+
import { BaseHelperRoutines } from '../classes/helpers';
|
|
4
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import { FlightAllQuoteResult, RuleActionSummaryInterface } from '../types/types';
|
|
6
7
|
import { SearchFlightsV2Query, SearchFlightsV2QueryVariables } from '../types/graphql.types';
|
|
7
8
|
import { BaseEnvironment } from '../classes/enviroment';
|
|
8
|
-
import { FetchableList } from './list-fetchable-enterprise';
|
|
9
9
|
type R = {
|
|
10
10
|
searchFlightsV2: {
|
|
11
11
|
results: P;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ApolloQueryResult, FetchResult } from '@apollo/client/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
2
|
import { BaseHelperRoutines } from '../classes/helpers';
|
|
3
|
+
import { FetchableList } from './list-fetchable-enterprise';
|
|
4
4
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import { HotelAvalibilityQuoteResultArray } from '../types/types';
|
|
6
7
|
import { GetMultipleHotelsAvailabilityQuery, QueryGetMultipleHotelsAvailabilityArgs } from '../types/graphql.types';
|
|
7
|
-
import { FetchableList } from './list-fetchable-enterprise';
|
|
8
8
|
type R = {
|
|
9
9
|
getMultipleHotelsAvailability: [];
|
|
10
10
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { ApolloQueryResult } from '@apollo/client/core';
|
|
3
2
|
import { BaseModalOpenerService } from '../services/modal-opener.service';
|
|
4
3
|
import { BaseNetworkCall } from '../classes/base-network-call';
|
|
4
|
+
import { ApolloQueryResult } from '@apollo/client/core';
|
|
5
5
|
import { BaseHelperRoutines } from '../classes/helpers';
|
|
6
6
|
export declare abstract class FetchableObject<Q extends {
|
|
7
7
|
fetch: (a: A) => Observable<ApolloQueryResult<M>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Observable } from
|
|
2
|
-
import { BaseHttpCancelService } from
|
|
1
|
+
import { Observable } from "rxjs";
|
|
2
|
+
import { BaseHttpCancelService } from "../services/http-cancel.service";
|
|
3
3
|
export declare class BaseHttpCancelInterceptor {
|
|
4
4
|
protected httpCancelService: BaseHttpCancelService;
|
|
5
5
|
constructor(httpCancelService: BaseHttpCancelService);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import { AddressForm, RailAirport } from '../types/types';
|
|
3
2
|
import type { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
4
3
|
import { EmailAmbulanceBookingReqQueryVariables } from '../types/graphql.types';
|
|
4
|
+
import moment from 'moment';
|
|
5
5
|
export interface AmbulanceAirport {
|
|
6
6
|
destination: string;
|
|
7
7
|
gateway: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import { Country, NgbDateStruct } from '../types/types';
|
|
3
2
|
import type { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
4
3
|
import { ApartmentOfflineTraveller, EmailApartmentBookingReqQueryVariables, City } from '../types/graphql.types';
|
|
4
|
+
import moment from 'moment';
|
|
5
5
|
export interface ApartmentTempParams {
|
|
6
6
|
departDateTime: moment.Moment;
|
|
7
7
|
returnDateTime: moment.Moment;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import { Observable, BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { CarHireFilters } from './car-hire-filters.interface';
|
|
4
|
+
import { SelectFilter } from './select-filter.interface';
|
|
3
5
|
import { BasketItem, CarHireClass, CarHireDetailRequestResponse, CarHireInputIdentifiers, CarHireTransmission, CarHireType, CarHireVehicleAvailibility, QuerySearchCarHireArgs, ServiceType, SearchCarHireQueryVariables, LocationCodes, LocationDetail } from '../types/graphql.types';
|
|
4
6
|
import { CarHireDepot, CarHireQuoteResult, CarHireQuoteResultArray, Country, DifferentInvokdedUserReasons, LocationDetails, LocationTypes, NgbDateStruct, OBTAirportDetails, SaveFavouriteSearchResult } from '../types/types';
|
|
5
7
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
6
8
|
import { ICheapestPrice } from './cheapest-price';
|
|
7
|
-
import { SelectFilter } from './select-filter.interface';
|
|
8
|
-
import { CarHireFilters } from './car-hire-filters.interface';
|
|
9
9
|
import { ICarClasses } from './car-hire-classes.interface';
|
|
10
10
|
export interface CarHireTempParams {
|
|
11
11
|
adults: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable, Observer, Subject } from 'rxjs';
|
|
2
|
-
import { AddItemToBasket, BasketItem, BasketItemCustomRemark, BasketQuote, BeforeCancellationInfo, DraftBasket, LeadPassengerType, ManagementInfoValue, SupplementaryBookingInfo, UserInfoInput, User, Basket, BasketApprovalTimestamp, CabHireQuote, SetMiValueInput, SetMiValuesMutationVariables, ValidationResponse, CopyInfoInput, RailSeatReservationResult, UserInfo, GetRequestedBookingResult, ApprovalRuleRequiringSelection, BasketApprovalInfo, UpdateExchangeBasket
|
|
2
|
+
import { AddItemToBasket, BasketItem, BasketItemCustomRemark, BasketQuote, BeforeCancellationInfo, DraftBasket, LeadPassengerType, ManagementInfoValue, SupplementaryBookingInfo, UserInfoInput, User, Basket, BasketApprovalTimestamp, CabHireQuote, SetMiValueInput, SetMiValuesMutationVariables, ValidationResponse, CopyInfoInput, RailSeatReservationResult, UserInfo, GetRequestedBookingResult, ApprovalRuleRequiringSelection, BasketApprovalInfo, UpdateExchangeBasket } from '../types/graphql.types';
|
|
3
3
|
import { DifferentInvokdedUserReasons, GetUserBasketItemResult, GetUserBasketResult, UserBasketResult } from '../types/types';
|
|
4
4
|
import { Traveller } from '../models/traveller.object';
|
|
5
|
+
import type { SearchServiceMinimal } from './search-service-minimal.interface';
|
|
6
|
+
import type { BasketServiceMinimalMI } from './basket-service-minimal-mi.interface';
|
|
7
|
+
import type { BasketServiceMinimalReason, BasketServiceMinimalOverrideReason } from './basket-service-minimal-reason.interface';
|
|
5
8
|
import type { BasketDetails, BasketPrices, BasketSelectedApprover } from '../types/basket-types';
|
|
6
9
|
import type { RequiresReasonServiceInterface } from '../services/requires-reason.service';
|
|
7
10
|
import type { RequiresOverrideReasonServiceInterface } from '../services/requires-override-reason.service';
|
|
8
11
|
import type { BasketInfoMiDetailsImpl } from '../classes/basket-info-mi-details.impl';
|
|
9
|
-
import type { BasketServiceMinimalReason, BasketServiceMinimalOverrideReason } from './basket-service-minimal-reason.interface';
|
|
10
|
-
import type { BasketServiceMinimalMI } from './basket-service-minimal-mi.interface';
|
|
11
|
-
import type { SearchServiceMinimal } from './search-service-minimal.interface';
|
|
12
12
|
export interface InternalBasketInterface {
|
|
13
13
|
subject: BehaviorSubject<any>;
|
|
14
14
|
id?: string;
|
|
@@ -130,11 +130,10 @@ export interface EnterpriseBasketServiceInterface extends BasketServiceMinimalMI
|
|
|
130
130
|
getBasketApprovalTimestamps(basketId: string): Observable<BasketApprovalTimestamp[]>;
|
|
131
131
|
getBasketApprovalInfo(basketId: string): Observable<BasketApprovalInfo>;
|
|
132
132
|
beforeTaxiAmendSearch(basketItem: BasketItem): Observable<CabHireQuote[]>;
|
|
133
|
-
sentBasketsBackToQueue(draftBasketId: string): Observable<
|
|
133
|
+
sentBasketsBackToQueue(draftBasketId: string): Observable<Boolean>;
|
|
134
134
|
setMiValues(isReassign: boolean, basketItemMIValues: SetMiValueInput | SetMiValueInput[], isSkipUpdate?: boolean): Promise<void>;
|
|
135
135
|
reserveRailSeats(supplementaryInfo: SupplementaryBookingInfo[], users: UserInfo[]): Observable<RailSeatReservationResult>;
|
|
136
136
|
evolviSeatmapsAreEnabled(): Promise<boolean | undefined>;
|
|
137
137
|
getRequestedBookingUpdate(basketids: string[]): Observable<GetRequestedBookingResult>;
|
|
138
138
|
updateExchangeBasket(data: UpdateExchangeBasket.Variables): Promise<Basket>;
|
|
139
|
-
downloadETicket(url: string): Observable<ETicketDownloadResult>;
|
|
140
139
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { FlightFilters } from './flight-filters.interface';
|
|
3
4
|
import { BasketItem, FareType, FlightCabinClass, FlightItinerary, SearchFlightsV2QueryVariables, ServiceType } from '../types/graphql.types';
|
|
4
5
|
import { EurostarFare, EurostarItem, EurostarQuoteResult, EurostarQuoteResultArray, EurostarResults, FlightDirectionEnum, NgbDateStruct, OBTAirlinesDetails, OBTAirportDetails, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
5
6
|
import type { SortTypesEurostar } from '../types/eurostar-search-types';
|
|
6
7
|
import type { TimeWindow } from '../types/flight-search-types';
|
|
7
8
|
import type { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
8
|
-
import { EurostarSearchType } from '../classes/eurostar-search-type.enum';
|
|
9
9
|
import type { ICheapestPrice } from './cheapest-price';
|
|
10
10
|
import type { IMultiDestination } from './flight-multi-destination.interface';
|
|
11
|
-
import {
|
|
11
|
+
import { EurostarSearchType } from '../classes/eurostar-search-type.enum';
|
|
12
12
|
import type { ValueDisplay } from './value-display';
|
|
13
13
|
export interface EurostarTempParams {
|
|
14
14
|
adults: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
1
|
import { DifferentInvokdedUserReasons, FastTrackQuoteResultArray, NgbDateStruct, OBTAirportDetails, SaveFavouriteSearchResult } from '../types/types';
|
|
2
|
+
import moment from 'moment';
|
|
4
3
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
5
4
|
import { BasketItem, FastTrackQuote, SearchFastTrackQueryVariables, ServiceType } from '../types/graphql.types';
|
|
6
5
|
import { ICheapestPrice } from './cheapest-price';
|
|
7
6
|
import { FastTrackFilters } from './fast-track-filters.interface';
|
|
7
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
8
|
export interface FastTrackTempParams {
|
|
9
9
|
arrivalDatetime: moment.Moment;
|
|
10
10
|
locationCode: string | OBTAirportDetails;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import { FerryEmailQuoteResult, NgbDateStruct } from '../types/types';
|
|
3
2
|
import type { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
4
3
|
import { TimeType, FerryOfflinePassenger, EmailFerryBookingReqQueryVariables, TicketType, IrlJourneyType, VehicleType, FerryOrEurotunnel } from '../types/graphql.types';
|
|
4
|
+
import moment from 'moment';
|
|
5
5
|
import { ValueDisplay } from './value-display';
|
|
6
6
|
export interface FerryTempParams {
|
|
7
7
|
ferryOrEurotunnel: FerryOrEurotunnel;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
2
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { FlightFilters } from './flight-filters.interface';
|
|
3
4
|
import { BasketItem, FareType, FlightCabinClass, FlightItinerary, FlightJourney, SearchFlightsV2QueryVariables, ServiceType, FareConditions, InputFlightJourney, FlightOptions, RailStation, FlightExchangeDetails, FlightFareRulesResponse, Traveller, FlightSearchResultV2 } from '../types/graphql.types';
|
|
4
5
|
import { DifferentInvokdedUserReasons, FlightAllQuoteResult, FlightDirectionEnum, FlightItineraryWithExtensions, FlightQuoteResultArray, NgbDateStruct, OBTAirlinesDetails, OBTAirportDetails, SaveFavouriteSearchResult, GreenerChoice, RuleActionSummaryInterface } from '../types/types';
|
|
5
6
|
import type { FlightSortTypes, TimeWindow } from '../types/flight-search-types';
|
|
6
7
|
import type { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
7
|
-
import { FlightSearchType } from '../classes/flight-search-type.enum';
|
|
8
|
-
import type { GreenerChoiceImpl } from '../classes/greenerchoise';
|
|
9
|
-
import type { BasketDetails } from '../services/enterprise-basket.service';
|
|
10
8
|
import type { ICheapestPrice } from './cheapest-price';
|
|
11
9
|
import type { IMultiDestination } from './flight-multi-destination.interface';
|
|
10
|
+
import { FlightSearchType } from '../classes/flight-search-type.enum';
|
|
11
|
+
import type { GreenerChoiceImpl } from '../classes/greenerchoise';
|
|
12
12
|
import type { InternalBasketInterface } from './Ienterprise-basket.service';
|
|
13
13
|
import type { IFareRulesKey } from './fare-rules-key';
|
|
14
|
-
import {
|
|
14
|
+
import type { BasketDetails } from '../services/enterprise-basket.service';
|
|
15
15
|
export declare enum FlightDisplayTypes {
|
|
16
16
|
returns = 1,
|
|
17
17
|
dualSingles = 2,
|
|
@@ -3,8 +3,8 @@ import moment, { Moment } from 'moment';
|
|
|
3
3
|
import { Country, HotelQuoteResult, HotelQuoteResultArray, LocationTypes, MinMax, NgbDateStruct, LocationDetails, BreatfastTypes, HotelDetailsArray, SaveFavouriteSearchResult, DifferentInvokdedUserReasons, HotelDetails, HotelAvalibilityQuoteResult, HotelAvalibilityQuery, AmenitiesSearchHandler, StarRating } from '../types/types';
|
|
4
4
|
import { BasketItem, HotelRoom, HotelTag, SearchHotelsQueryVariables, ServiceType, LocationDetail } from '../types/graphql.types';
|
|
5
5
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
6
|
-
import { Traveller } from '../models/traveller.object';
|
|
7
6
|
import { ICheapestPrice } from './cheapest-price';
|
|
7
|
+
import { Traveller } from '../models/traveller.object';
|
|
8
8
|
export interface HotelTempParams {
|
|
9
9
|
location_type_select: LocationTypes;
|
|
10
10
|
checkin_date: moment.Moment;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
2
|
import { NgbDateStruct, IrlQuoteResultArray, IrlTicketOptionWithSelected, SaveFavouriteSearchResult, DifferentInvokdedUserReasons } from '../types/types';
|
|
4
3
|
import { BasketItem, IrlClass, IrlJourneyOption, IrlJourneyOptions, IrlJourneyType, IrlTicketOption, SearchIrlQueryVariables, ServiceType, IrlSupplier, IrlTravelCard } from '../types/graphql.types';
|
|
5
4
|
import type { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
6
|
-
import type { IrlFilters, SortTypeIrl } from '../types/irl-search-types';
|
|
7
5
|
import { ICheapestPrice } from './cheapest-price';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import type { IrlFilters, SortTypeIrl } from '../types/irl-search-types';
|
|
8
8
|
export interface IrlTempParams {
|
|
9
9
|
irlDiscountCards: string;
|
|
10
10
|
supplier: IrlSupplier;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
2
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { LoungeQuoteResultArray, NgbDateStruct, OBTAirportDetails, SaveFavouriteSearchResult } from '../types/types';
|
|
5
5
|
import { BasketItem, LoungeQuote, SearchLoungesQueryVariables, ServiceType } from '../types/graphql.types';
|
|
6
6
|
import { ICheapestPrice } from './cheapest-price';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import { MeetingRoomEmailQuoteResult, NgbDateStruct, Country, LocationDetails } from '../types/types';
|
|
3
2
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
4
3
|
import { EmailMeetingRoomBookingReqQueryVariables, MeetingRoomOfflineTraveller, MeetingRoomDuration, MeetingRoomLayout, MeetingRoomEquipment, MeetingRoomCatering } from '../types/graphql.types';
|
|
4
|
+
import moment from 'moment';
|
|
5
5
|
export interface MeetingRoomTempParams {
|
|
6
6
|
onBehalfOfEmail: string;
|
|
7
7
|
travellers: MeetingRoomOfflineTraveller | MeetingRoomOfflineTraveller[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { AmendBookingResult, CancelUserBookingResult, UserBasketResult } from '../types/types';
|
|
3
|
-
import { Basket, CancellationInfoInput, DraftBasketItem, DuplicateBasketItems, QueryGetUserBasketsArgs, SelectedCancelPortion
|
|
3
|
+
import { Basket, CancellationInfoInput, DraftBasketItem, DuplicateBasketItems, QueryGetUserBasketsArgs, SelectedCancelPortion } from '../types/graphql.types';
|
|
4
|
+
import { BasketItem, BasketItemStatus, BasketStatus, ServiceType } from '../types/graphql.types';
|
|
4
5
|
import { EnterpriseSearchServiceInterface } from '../interfaces/Isearch.service';
|
|
5
6
|
import { Traveller } from '../models/traveller.object';
|
|
6
7
|
import { BasketDetails } from '../services/enterprise-basket.service';
|
|
@@ -4,10 +4,10 @@ import { CheapestRailClassPrices, CheapestRailPrices, DifferentInvokdedUserReaso
|
|
|
4
4
|
import { BasketItem, RailClass, RailIdentifiers, RailJourneyOption, RailSearchJourneyType, RailSearchResult, RailStation, RailTicketExtra, RailTicketTermsList, ReferenceRailCardQualifier, SearchFlightsV2QueryVariables, SearchRailQueryVariables, ServiceType } from '../types/graphql.types';
|
|
5
5
|
import { AllowedRailClass, RailFareTypes, RailSearchCriteria, RailSplitComparisonType, TrainlineTraveller } from '../types/rail-search-types';
|
|
6
6
|
import type { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
7
|
-
import { RailDirection } from '../classes/rail-direction.enum';
|
|
8
7
|
import { CodeName } from './code-name';
|
|
9
8
|
import { ICheapestPrice } from './cheapest-price';
|
|
10
9
|
import { IRailAirportExpressStations } from './rail-airport-express-stations.interface';
|
|
10
|
+
import { RailDirection } from '../classes/rail-direction.enum';
|
|
11
11
|
import { ITravelCardDetail, RailBasketItem, TicketExtras } from './rail-basket-item.interface';
|
|
12
12
|
import { IRailStationInformation } from './Irail-station-information.interface';
|
|
13
13
|
import { IRailSelectedMultiFares } from './rail-selected-ticket.interface';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import moment from 'moment';
|
|
2
|
-
import { BehaviorSubject
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { SearchObject, SearchObjects } from './search-objects.interface';
|
|
3
5
|
import { Address, BasketItem, ReferenceRailCardQualifier, SaveRecentSearchMutationVariables, ServiceType, InputFlightJourney, SaveFavouriteSearchMutationVariables, Basket, RailStation, CurrencyCode, CurrencyRates, HotelDetailsResult, Service, InputSpecificFareInfo, LocationType, AirAvailabiltyResult, PhoneType, AddressInput, LocationCodes, SaveRecentBoltSearchMutationVariables, MutationEditUserAddressArgs, HotelRatingIdentifiers, GetMultipleHotelRatingResponse, FlightItinerary, Division, Office } from '../types/graphql.types';
|
|
4
6
|
import { Traveller } from '../models/traveller.object';
|
|
5
7
|
import { AddressForm, AirportSearchResults, CountryCode, GetFlightBrandedFaresResultArray, GetFlightFareRulesResult, GetUserCompanyOfficesResultArray, GetUserFavouriteSearchesResultArray, SaveFavouriteSearchResult, SearchRailLiveDeparturesResult, TerminalsType, CarHireDepotResultArray, GutFormPreviousValue, LocationDetails, RuleActionSummaryInterface, GeoLocationResultArray, SearchDiscoverLocationResultArray } from '../types/types';
|
|
6
|
-
import { ErmTravellerType } from '../classes/erm-traveller-type.enum';
|
|
7
|
-
import type { TravellerSearchTypes } from '../services/search.service';
|
|
8
|
-
import { SearchObject, SearchObjects } from './search-objects.interface';
|
|
9
8
|
import type { LoungesEnterpriseSearchInterface, LoungesTempParams } from './Ilounges-enterprise-search';
|
|
10
9
|
import type { HotelEnterpriseSearchInterface, HotelTempParams } from './Ihotel-enterprise-search';
|
|
11
10
|
import type { ParkingEnterpriseSearchInterface, ParkingTempParams } from './Iparking-enterprise-search';
|
|
@@ -17,10 +16,12 @@ import type { IRLEnterpriseSearchInterface, IrlTempParams } from './Iirl-enterpr
|
|
|
17
16
|
import type { EurostarEnterpriseSearchInterface, EurostarTempParams } from './Ieurostar-enterprise-search';
|
|
18
17
|
import type { FastTrackEnterpriseSearchInterface, FastTrackTempParams } from './Ifast-track-enterprise-search';
|
|
19
18
|
import type { FerryEnterpriseSearchInterface, FerryTempParams } from './Iferry-enterprise-search';
|
|
19
|
+
import { ErmTravellerType } from '../classes/erm-traveller-type.enum';
|
|
20
20
|
import type { IRailStationInformation } from './Irail-station-information.interface';
|
|
21
21
|
import type { ApartmentEnterpriseSearchInterface, ApartmentTempParams } from './Iapartment-enterprise-search';
|
|
22
22
|
import type { SeasonTicketsEnterpriseSearchInterface, SeasonTicketsTempParams } from './Iseason-tickets-enterprise-search';
|
|
23
23
|
import type { MeetingRoomEnterpriseSearchInterface, MeetingRoomTempParams } from './Imeeting-room-enterprise-search';
|
|
24
|
+
import type { TravellerSearchTypes } from '../services/search.service';
|
|
24
25
|
import type { SearchServiceMinimal } from './search-service-minimal.interface';
|
|
25
26
|
import { AmbulanceEnterpriseSearchInterface, AmbulanceTempParams } from './Iambulance-enterprise-search';
|
|
26
27
|
export type SearchParams = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import moment from 'moment';
|
|
2
1
|
import { NgbDateStruct, SeasonTicketEmailQuoteResult } from '../types/types';
|
|
3
2
|
import { BaseEnterpriseSearch } from '../classes/base-enterprise';
|
|
4
3
|
import { SeasonTicketCardType, SeasonTicketClassType, SeasonTicketDeliveryType, SeasonTicketLondonUnderground, SeasonTicketType } from '../types/graphql.types';
|
|
4
|
+
import moment from 'moment';
|
|
5
5
|
import { ValueDisplay } from './value-display';
|
|
6
6
|
export interface SeasonTicketsTempParams {
|
|
7
7
|
fromLocation: any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
2
|
import { Suppliers, UserFavorurite } from '../classes/user-favourite.enum';
|
|
3
|
+
import { UserData } from './user.data';
|
|
3
4
|
import { Traveller } from '../models/traveller.object';
|
|
4
5
|
import { BookerType, Company, CompanyType, UserOrGuest, Message, Office, Service, ServiceType, UiConfig, User, ApexxCard, Basket, ApexxCreateCardResult, BasketItem, ManagementInfo, ProfileConfig, PreferredTransportHub, Address, UserDefaultManagementInfoValue, EmptyUserDefaultManagementValue, CompanyUsers } from '../types/graphql.types';
|
|
5
6
|
import { ServiceProvider, Unpacked, UserUiConfigsResult } from '../types/types';
|
|
6
|
-
import { UserData } from './user.data';
|
|
7
7
|
export interface UserConfig {
|
|
8
8
|
[key: string]: UiConfig;
|
|
9
9
|
}
|
|
@@ -34,7 +34,7 @@ export interface ISupportContact {
|
|
|
34
34
|
[key: string]: ISupportEmailPhone;
|
|
35
35
|
}
|
|
36
36
|
export interface ISupportEmailPhone {
|
|
37
|
-
enable:
|
|
37
|
+
enable: Boolean;
|
|
38
38
|
email: string;
|
|
39
39
|
phone: string;
|
|
40
40
|
}
|
|
@@ -119,8 +119,8 @@ export interface UserServiceInterface {
|
|
|
119
119
|
searchWithEmail(email: string): Observable<User>;
|
|
120
120
|
getOfficeUsersById(id: string): Observable<Office>;
|
|
121
121
|
getUserPreferredTransportHubs(): Observable<PreferredTransportHub[]>;
|
|
122
|
-
setPreferredTransportHub(serviceType: ServiceType, hubCode: string): Observable<
|
|
123
|
-
removePreferredTransportHub(serviceType: ServiceType, hubCode: string): Observable<
|
|
122
|
+
setPreferredTransportHub(serviceType: ServiceType, hubCode: string): Observable<Boolean>;
|
|
123
|
+
removePreferredTransportHub(serviceType: ServiceType, hubCode: string): Observable<Boolean>;
|
|
124
124
|
getUserPrimaryAddress(userId: string): Observable<Address>;
|
|
125
125
|
canSeeBookingsOfOthers(): boolean;
|
|
126
126
|
getUserMiStack(userId: string, defaultValueConsumingOnly: boolean, serviceId: string): Observable<ManagementInfo[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasketItem, QueryGetUserBasketsArgs, User } from
|
|
1
|
+
import { BasketItem, QueryGetUserBasketsArgs, User } from "../types/graphql.types";
|
|
2
2
|
export interface IBookingDuplicateCheck {
|
|
3
3
|
basketSearchQuery: QueryGetUserBasketsArgs[];
|
|
4
4
|
currentBasketItem: BasketItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QuerySearchCabHireArgs } from
|
|
2
|
-
import { AddressForm, RailAirport } from
|
|
1
|
+
import { QuerySearchCabHireArgs } from "../types/graphql.types";
|
|
2
|
+
import { AddressForm, RailAirport } from "../types/types";
|
|
3
3
|
export interface ICabHireSearchArgs extends QuerySearchCabHireArgs {
|
|
4
4
|
fromAddress?: AddressForm;
|
|
5
5
|
toAddress?: AddressForm;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CarHireCityInput, InputCarHireDepot, QuerySearchCarHireArgs } from
|
|
1
|
+
import { CarHireCityInput, InputCarHireDepot, QuerySearchCarHireArgs } from "../types/graphql.types";
|
|
2
2
|
export type CarHireSearchArgs = Omit<QuerySearchCarHireArgs, 'city' | 'depot'> & {
|
|
3
3
|
city?: ICarHireCity;
|
|
4
4
|
depot?: ICarHireDepot;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export type ChatConversationState = 'GREETING' | 'COLLECTING_PARAMS' | 'PARAMS_COMPLETE' | 'SEARCHING' | 'HANDED_OFF' | 'SELECTING_RESULT' | 'BLOCKED';
|
|
2
|
+
export interface CondensedResult {
|
|
3
|
+
index: number;
|
|
4
|
+
airline?: string;
|
|
5
|
+
operator?: string;
|
|
6
|
+
depart: string;
|
|
7
|
+
arrive: string;
|
|
8
|
+
stops: number;
|
|
9
|
+
duration: string;
|
|
10
|
+
price: number;
|
|
11
|
+
cabin?: string;
|
|
12
|
+
class?: string;
|
|
13
|
+
co2?: number;
|
|
14
|
+
policyStatus?: 'IN_POLICY' | 'ALLOW_WITH_REASON' | 'UNAVAILABLE';
|
|
15
|
+
policyMessages?: string[];
|
|
16
|
+
from?: string;
|
|
17
|
+
to?: string;
|
|
18
|
+
flightNumbers?: string;
|
|
19
|
+
fares?: {
|
|
20
|
+
cabin: string;
|
|
21
|
+
price: number;
|
|
22
|
+
bags: number;
|
|
23
|
+
}[];
|
|
24
|
+
inbound?: {
|
|
25
|
+
depart: string;
|
|
26
|
+
arrive: string;
|
|
27
|
+
stops: number;
|
|
28
|
+
duration: string;
|
|
29
|
+
flightNumbers?: string;
|
|
30
|
+
};
|
|
31
|
+
returnOptions?: {
|
|
32
|
+
index: number;
|
|
33
|
+
depart: string;
|
|
34
|
+
arrive: string;
|
|
35
|
+
stops: number;
|
|
36
|
+
duration: string;
|
|
37
|
+
price: number;
|
|
38
|
+
operator?: string;
|
|
39
|
+
co2?: number;
|
|
40
|
+
policyStatus?: 'IN_POLICY' | 'ALLOW_WITH_REASON' | 'UNAVAILABLE';
|
|
41
|
+
}[];
|
|
42
|
+
singleOrReturn?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface ChatSearchParameters {
|
|
45
|
+
travelType: 'flight' | 'rail' | 'hotel';
|
|
46
|
+
departure: string;
|
|
47
|
+
arrival: string;
|
|
48
|
+
departureCode?: string;
|
|
49
|
+
arrivalCode?: string;
|
|
50
|
+
departureDate: string;
|
|
51
|
+
departureTime?: string;
|
|
52
|
+
returnDate?: string;
|
|
53
|
+
returnTime?: string;
|
|
54
|
+
passengers: number;
|
|
55
|
+
rooms?: number;
|
|
56
|
+
hotelName?: string;
|
|
57
|
+
hotelChain?: string;
|
|
58
|
+
distance?: number;
|
|
59
|
+
preferredOnly?: boolean;
|
|
60
|
+
locationType?: 'address' | 'office' | 'shortlist';
|
|
61
|
+
crownRatesOnly?: boolean;
|
|
62
|
+
propertyNumber?: string;
|
|
63
|
+
country?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ChatSuggestion {
|
|
66
|
+
type: 'search_action' | 'select_action';
|
|
67
|
+
label: string;
|
|
68
|
+
action: 'FILL_FORM' | 'FILL_AND_SEARCH' | 'SELECT_RESULT';
|
|
69
|
+
}
|
|
70
|
+
export interface ChatRequest {
|
|
71
|
+
message: string;
|
|
72
|
+
sessionId?: string;
|
|
73
|
+
searchResults?: CondensedResult[];
|
|
74
|
+
}
|
|
75
|
+
export interface ChatResponse {
|
|
76
|
+
sessionId: string;
|
|
77
|
+
text: string;
|
|
78
|
+
intent: string | null;
|
|
79
|
+
parameters: ChatSearchParameters | null;
|
|
80
|
+
policyHints: string[];
|
|
81
|
+
suggestions: ChatSuggestion[];
|
|
82
|
+
state: ChatConversationState;
|
|
83
|
+
selectedIndex?: number;
|
|
84
|
+
returnSelectedIndex?: number;
|
|
85
|
+
alternativeIndex?: number;
|
|
86
|
+
action?: 'search' | 'select' | 'navigate';
|
|
87
|
+
riskFlag?: IRiskFlag | null;
|
|
88
|
+
}
|
|
89
|
+
export interface IRiskFlag {
|
|
90
|
+
level: string;
|
|
91
|
+
countryCode: string;
|
|
92
|
+
breaking: boolean;
|
|
93
|
+
}
|
|
94
|
+
export type ChatMessageRole = 'user' | 'assistant';
|
|
95
|
+
export interface ChatMessage {
|
|
96
|
+
id: string;
|
|
97
|
+
role: ChatMessageRole;
|
|
98
|
+
text: string;
|
|
99
|
+
timestamp: Date;
|
|
100
|
+
parameters?: ChatSearchParameters | null;
|
|
101
|
+
policyHints?: string[];
|
|
102
|
+
suggestions?: ChatSuggestion[];
|
|
103
|
+
state?: ChatConversationState;
|
|
104
|
+
selectedIndex?: number;
|
|
105
|
+
returnSelectedIndex?: number;
|
|
106
|
+
alternativeIndex?: number;
|
|
107
|
+
action?: 'search' | 'select' | 'navigate';
|
|
108
|
+
riskFlag?: IRiskFlag | null;
|
|
109
|
+
}
|
|
110
|
+
export interface UserCapabilities {
|
|
111
|
+
isCrown: boolean;
|
|
112
|
+
isAgent: boolean;
|
|
113
|
+
uiConfigs: {
|
|
114
|
+
hideHotelSearchOptions: boolean;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SearchFlightsV2QueryVariables } from
|
|
2
|
-
import { OBTAirportDetails } from
|
|
1
|
+
import { SearchFlightsV2QueryVariables } from "../types/graphql.types";
|
|
2
|
+
import { OBTAirportDetails } from "../types/types";
|
|
3
3
|
export interface IEurostarSearchArgs extends SearchFlightsV2QueryVariables {
|
|
4
4
|
departLocation?: string | OBTAirportDetails;
|
|
5
5
|
arriveLocation?: string | OBTAirportDetails;
|