@sabstravtech/obtservices 0.2.2604140900 → 0.2.2605051730

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.
@@ -76,6 +76,10 @@ export declare class HelperRoutines extends BaseHelperRoutines {
76
76
  setDefaultTitleGender(title: string, form: FormGroup<any>): void;
77
77
  createBlankSupplemtalBookingInformation(basketItems: BasketItem[]): SupplementaryBookingInfo[];
78
78
  createBlankUserSupp(users: User[] | Guest[]): UserInfo[];
79
+ createSupplemtalBookingInformationFromSaved(basketItems: BasketItem[]): SupplementaryBookingInfo[];
80
+ private buildUserInfoFromSaved;
81
+ private toBookingPhoneNumber;
82
+ private toBookingAddress;
79
83
  checkBasketItemHasService(basket: Basket): boolean;
80
84
  getNamedPropertyFromObject(obj: Object, lookupKey: string): any;
81
85
  getAllKeysFromObject(obj: Object, includeParentObjectKeys?: boolean): string[];
@@ -484,6 +484,7 @@ export type BeforeAmendInfo = {
484
484
  exchangeDirection?: Maybe<FieldWrapper<ExchangeType>>;
485
485
  hotel?: Maybe<FieldWrapper<HotelRoom>>;
486
486
  info?: Maybe<FieldWrapper<Scalars['String']['output']>>;
487
+ travelerFares?: Maybe<Array<FieldWrapper<TravelerFare>>>;
487
488
  };
488
489
  export type BeforeCancellationInfo = {
489
490
  __typename?: 'BeforeCancellationInfo';
@@ -5733,6 +5734,11 @@ export declare enum TransportType {
5733
5734
  Hourly = "Hourly",
5734
5735
  OneWay = "OneWay"
5735
5736
  }
5737
+ export type TravelerFare = {
5738
+ __typename?: 'TravelerFare';
5739
+ direction?: Maybe<FieldWrapper<Scalars['String']['output']>>;
5740
+ maxRefund?: Maybe<FieldWrapper<Scalars['Float']['output']>>;
5741
+ };
5736
5742
  export type Traveller = {
5737
5743
  __typename?: 'Traveller';
5738
5744
  dob?: Maybe<FieldWrapper<Scalars['String']['output']>>;
@@ -11539,6 +11545,11 @@ export type CanAmendBookingQuery = {
11539
11545
  name?: string | null;
11540
11546
  } | null> | null;
11541
11547
  } | null;
11548
+ travelerFares?: Array<{
11549
+ __typename?: 'TravelerFare';
11550
+ direction?: string | null;
11551
+ maxRefund?: number | null;
11552
+ }> | null;
11542
11553
  };
11543
11554
  };
11544
11555
  export type CancelBookingMutationVariables = Exact<{
@@ -36589,6 +36600,7 @@ export declare namespace CanAmendBooking {
36589
36600
  type Tax = CanAmendBookingQuery['canAmendBooking']['hotel']['tax'];
36590
36601
  type AcceptedCards = CanAmendBookingQuery['canAmendBooking']['hotel']['acceptedCards'][number];
36591
36602
  type PaymentTypes = CanAmendBookingQuery['canAmendBooking']['hotel']['paymentTypes'][number];
36603
+ type TravelerFares = CanAmendBookingQuery['canAmendBooking']['travelerFares'][number];
36592
36604
  }
36593
36605
  export declare namespace CancelBooking {
36594
36606
  type Variables = CancelBookingMutationVariables;
@@ -12,6 +12,30 @@ import { UserServiceInterface } from '../interfaces/Iuser.service';
12
12
  * Used by applySearchQuery to provide type safety while supporting all service types
13
13
  */
14
14
  export type SearchQueryVariables = SearchLoungesQueryVariables | SearchFastTrackQueryVariables | SearchParkingQueryVariables | SearchCabHireQueryVariables | SearchCarHireQueryVariables | SearchHotelsQueryVariables | SearchFlightsV2QueryVariables | SearchRailQueryVariables | SearchIrlQueryVariables | SearchEurostarQueryVariables;
15
+ /**
16
+ * Abstract base for per-transport search classes (rail, flight, hotel, etc.).
17
+ *
18
+ * Subclasses live in `base/src/lib/vendor/classes/*-enterprise-search.ts` and
19
+ * wire a specific GraphQL search query to the common state machine exposed
20
+ * here: loading flags, results streams, filter state, cheapest-price tracking,
21
+ * and session-storage caching across reloads. The Angular layer registers
22
+ * them in `EnterpriseSearchService.searches[ServiceType.X]`.
23
+ *
24
+ * Extension points a subclass must provide:
25
+ * - `type` — the `ServiceType` enum member identifying this search
26
+ * - `resultsSessionName` / `multiResultsSessionName` — session-storage keys
27
+ * for persisting raw and multi-bolt results
28
+ *
29
+ * Generics:
30
+ * - P — parameter/query shape this search accepts (e.g. `SearchRailQueryVariables`)
31
+ * - R — raw GraphQL result shape before projection via `processResults`
32
+ * - O — the array result type consumers iterate over
33
+ *
34
+ * Session-storage gotcha: `_startSearch` checks remaining session space
35
+ * (~5MB browser cap) before persisting. If there isn't room, the result is
36
+ * silently skipped — the in-memory `results` stream still fires, but a
37
+ * subsequent reload will find nothing cached.
38
+ */
15
39
  export declare abstract class BaseEnterpriseSearch<P, R, O extends Array<any>> {
16
40
  protected storageService: BaseStorageService;
17
41
  protected helpers: BaseHelperRoutines;
@@ -106,7 +106,6 @@ export interface EnterpriseSearchServiceInterface extends SearchServiceMinimal {
106
106
  findPaxInTravellers(username: string): any;
107
107
  validateForms(): any;
108
108
  startSearches(url?: string): void;
109
- getTaxiStationLocations(term: string, isLoading?: BehaviorSubject<boolean>): Observable<{}>;
110
109
  getAddresses(isLoading: BehaviorSubject<boolean>): Observable<{}>;
111
110
  getUserAddresses(isLoading: BehaviorSubject<boolean>): Observable<any>;
112
111
  deleteUserAddressByID(id: string): void;
@@ -32,7 +32,7 @@ export interface RailBasketDetail {
32
32
  termsAndCond: any;
33
33
  discountInfo: DiscountInfo[];
34
34
  fullPrice: number;
35
- singleOrReturn: TicketType;
35
+ singleOrReturn: RailTicketType;
36
36
  isEU?: boolean;
37
37
  expiresAt?: string;
38
38
  countryCode?: string;
@@ -110,7 +110,7 @@ export interface ITravelCardDetail {
110
110
  travelcard: TicketExtras[];
111
111
  price: number;
112
112
  }
113
- export declare enum TicketType {
113
+ export declare enum RailTicketType {
114
114
  Single = "Single",
115
115
  Return = "Return"
116
116
  }
@@ -185,7 +185,7 @@ type EmailFerryBooking_P = boolean;
185
185
  type EmailFerryBooking_A = Types.EmailFerryBookingReqQueryVariables;
186
186
  type EmailFerryBooking_M = Types.EmailFerryBookingReqQuery;
187
187
  export type EmailFerryBookingFetcherType = {
188
- fetch: (a: EmailFerryBooking_A) => Observable<ApolloQueryResult<EmailFerryBooking_M>>;
188
+ fetch: (...args: any[]) => Observable<ApolloQueryResult<EmailFerryBooking_M>>;
189
189
  };
190
190
  export declare class BaseEmailFerryBookingFetcher<Q extends EmailFerryBookingFetcherType> extends FetchableList<Q, EmailFerryBooking_A, EmailFerryBooking_R, EmailFerryBooking_P, EmailFerryBooking_M> {
191
191
  constructor(gql: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
@@ -8,7 +8,7 @@ import { BaseStorageService } from './storage.service';
8
8
  import { BaseHelperRoutines } from '../classes/helpers';
9
9
  import { BaseHotelAvalibilityService } from './hotel-avallibility.service';
10
10
  import { BaseEnvironment } from '../classes/enviroment';
11
- import { AddressForm, AirportSearchResults, CarHireDepotResultArray, CountryCode, LocationDetails, OBTAirportDetails, RailAirport, Router, TerminalsType, GetUserCompanyOfficesResultArray, OBTAirlinesDetails, RecentSearch, BoltSearch, GetFlightFareRulesResultArray, SearchRailLiveDeparturesResult, SaveFavouriteSearchResult, GetUserFavouriteSearchesResultArray, GetFlightBrandedFaresResultArray, OBTRailQuoteResult, GutFormPreviousValue, RuleActionSummaryInterface, SearchDiscoverLocationResultArray, GeoLocationResultArray } from '../types/types';
11
+ import { AddressForm, AirportSearchResults, CarHireDepotResultArray, CountryCode, LocationDetails, OBTAirportDetails, Router, TerminalsType, GetUserCompanyOfficesResultArray, OBTAirlinesDetails, RecentSearch, BoltSearch, GetFlightFareRulesResultArray, SearchRailLiveDeparturesResult, SaveFavouriteSearchResult, GetUserFavouriteSearchesResultArray, GetFlightBrandedFaresResultArray, OBTRailQuoteResult, GutFormPreviousValue, RuleActionSummaryInterface, SearchDiscoverLocationResultArray, GeoLocationResultArray } from '../types/types';
12
12
  import { BaseSearchRailStationsFetcher, SearchRailStationsFetcherType, BaseSearchIrlStationsFetcher, SearchIrlStationsFetcherType, BaseGetUserRecentSearchesFetcher, GetUserRecentSearchesFetcherType, BaseGetUserRecentBoltSearchesFetcher, GetUserRecentBoltSearchesFetcherType, BaseSearchRailInwardFetcher, SearchRailInwardFetcherType } from '../operations/simple-fetchers';
13
13
  import { ApplyJitFlightRulesType, BaseApplyJitFlightRulesFetcher } from '../operations/simple-fetchers';
14
14
  import { BaseFlightQuoteFetcher, FlightQuoteFetcherType } from '../fetchers/flight-quote.fetcher';
@@ -304,7 +304,6 @@ export declare class BaseEnterpriseSearchService<SP_Q extends SearchPostcodesQuo
304
304
  validateForms(isFavourite?: boolean): boolean;
305
305
  private _findSearchObtect;
306
306
  startSearches(url?: string): void;
307
- getTaxiStationLocations(term: string, isLoading?: BehaviorSubject<boolean>): Observable<RailAirport[]>;
308
307
  getAddresses(isLoading: BehaviorSubject<boolean>): Observable<AddressForm[]>;
309
308
  getUserAddresses(isLoading?: BehaviorSubject<boolean>, town?: string): Observable<AddressForm[]>;
310
309
  deleteUserAddressByID(id: string): Observable<any>;
@@ -482,6 +482,7 @@ export type BeforeAmendInfo = {
482
482
  exchangeDirection?: Maybe<FieldWrapper<ExchangeType>>;
483
483
  hotel?: Maybe<FieldWrapper<HotelRoom>>;
484
484
  info?: Maybe<FieldWrapper<Scalars['String']['output']>>;
485
+ travelerFares?: Maybe<Array<FieldWrapper<TravelerFare>>>;
485
486
  };
486
487
  export type BeforeCancellationInfo = {
487
488
  __typename?: 'BeforeCancellationInfo';
@@ -5731,6 +5732,11 @@ export declare enum TransportType {
5731
5732
  Hourly = "Hourly",
5732
5733
  OneWay = "OneWay"
5733
5734
  }
5735
+ export type TravelerFare = {
5736
+ __typename?: 'TravelerFare';
5737
+ direction?: Maybe<FieldWrapper<Scalars['String']['output']>>;
5738
+ maxRefund?: Maybe<FieldWrapper<Scalars['Float']['output']>>;
5739
+ };
5734
5740
  export type Traveller = {
5735
5741
  __typename?: 'Traveller';
5736
5742
  dob?: Maybe<FieldWrapper<Scalars['String']['output']>>;
@@ -11537,6 +11543,11 @@ export type CanAmendBookingQuery = {
11537
11543
  name?: string | null;
11538
11544
  } | null> | null;
11539
11545
  } | null;
11546
+ travelerFares?: Array<{
11547
+ __typename?: 'TravelerFare';
11548
+ direction?: string | null;
11549
+ maxRefund?: number | null;
11550
+ }> | null;
11540
11551
  };
11541
11552
  };
11542
11553
  export type CancelBookingMutationVariables = Exact<{
@@ -36587,6 +36598,7 @@ export declare namespace CanAmendBooking {
36587
36598
  type Tax = CanAmendBookingQuery['canAmendBooking']['hotel']['tax'];
36588
36599
  type AcceptedCards = CanAmendBookingQuery['canAmendBooking']['hotel']['acceptedCards'][number];
36589
36600
  type PaymentTypes = CanAmendBookingQuery['canAmendBooking']['hotel']['paymentTypes'][number];
36601
+ type TravelerFares = CanAmendBookingQuery['canAmendBooking']['travelerFares'][number];
36590
36602
  }
36591
36603
  export declare namespace CancelBooking {
36592
36604
  type Variables = CancelBookingMutationVariables;