@sabstravtech/obtservices 0.1.6161600 → 0.2.2207061600

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.
Files changed (121) hide show
  1. package/angular/fetchers.d.ts +1 -0
  2. package/angular/lib/vendor/classes/helpers.d.ts +14 -2
  3. package/angular/lib/vendor/fetchers/get-redirect-approver.fetcher.d.ts +7 -0
  4. package/angular/lib/vendor/services/enterprise-basket.service.d.ts +4 -3
  5. package/angular/lib/vendor/services/user.service.d.ts +6 -3
  6. package/angular/lib/vendor/types/graphql.angular.types.d.ts +155 -24
  7. package/angular/lib/vendor/updaters/add-redirect-approver-updater.d.ts +6 -0
  8. package/angular/lib/vendor/updaters/addGuestToBasketItem.d.ts +6 -0
  9. package/angular/lib/vendor/updaters/remove-redirect-approver-updater.d.ts +6 -0
  10. package/angular/obtservices.module.d.ts +3 -2
  11. package/angular/pipes/memorize-pipe.d.ts +4 -0
  12. package/angular/pipes.d.ts +1 -0
  13. package/angular/public_api.d.ts +1 -0
  14. package/angular/sabstravtech-obtservices-angular.metadata.json +1 -1
  15. package/angular/updaters.d.ts +3 -0
  16. package/base/classes.d.ts +2 -0
  17. package/base/fetchers.d.ts +1 -0
  18. package/base/lib/vendor/classes/bookable-basket.d.ts +1 -1
  19. package/base/lib/vendor/classes/erm-company-type.enum.d.ts +6 -0
  20. package/base/lib/vendor/classes/erm-traveller-type.enum.d.ts +5 -0
  21. package/base/lib/vendor/classes/eurostar-enterprise-search.d.ts +13 -0
  22. package/base/lib/vendor/classes/fast-track-enterprise-search.d.ts +9 -1
  23. package/base/lib/vendor/classes/flight-enterprise-search.d.ts +12 -3
  24. package/base/lib/vendor/classes/greenerchoise.d.ts +11 -0
  25. package/base/lib/vendor/classes/irl-enterprise-search.d.ts +13 -6
  26. package/base/lib/vendor/classes/modal-types.enum.d.ts +1 -0
  27. package/base/lib/vendor/classes/rail-enterprise-search.d.ts +10 -5
  28. package/base/lib/vendor/classes/user-favourite.enum.d.ts +3 -0
  29. package/base/lib/vendor/data/air-to-euro.d.ts +3 -0
  30. package/base/lib/vendor/data/air-to-rail-uk.d.ts +3 -0
  31. package/base/lib/vendor/fetchers/get-redirect-approver.fetcher.d.ts +21 -0
  32. package/base/lib/vendor/interfaces/Ienterprise-basket.service.d.ts +4 -3
  33. package/base/lib/vendor/interfaces/Ieurostar-enterprise-search.d.ts +2 -0
  34. package/base/lib/vendor/interfaces/Ifast-track-enterprise-search.d.ts +6 -1
  35. package/base/lib/vendor/interfaces/Iflight-enterprise-search.d.ts +4 -0
  36. package/base/lib/vendor/interfaces/Iirl-enterprise-search.d.ts +3 -1
  37. package/base/lib/vendor/interfaces/Imybookings.service.d.ts +1 -0
  38. package/base/lib/vendor/interfaces/Irail-enterprise-search.d.ts +3 -1
  39. package/base/lib/vendor/interfaces/Isearch.service.d.ts +2 -0
  40. package/base/lib/vendor/interfaces/Iuser.service.d.ts +2 -1
  41. package/base/lib/vendor/interfaces/user.data.d.ts +1 -0
  42. package/base/lib/vendor/services/enterprise-basket.service.d.ts +8 -4
  43. package/base/lib/vendor/services/logon.service.d.ts +2 -0
  44. package/base/lib/vendor/services/my-bookings.service.d.ts +3 -0
  45. package/base/lib/vendor/services/search.service.d.ts +8 -3
  46. package/base/lib/vendor/services/user.service.d.ts +16 -3
  47. package/base/lib/vendor/types/graphql.types.d.ts +135 -24
  48. package/base/lib/vendor/types/types.d.ts +13 -2
  49. package/base/lib/vendor/updaters/add-redirect-approver-updater.d.ts +19 -0
  50. package/base/lib/vendor/updaters/addGuestToBasketItem.d.ts +20 -0
  51. package/base/lib/vendor/updaters/remove-redirect-approver-updater.d.ts +19 -0
  52. package/base/sabstravtech-obtservices-base.metadata.json +1 -1
  53. package/base/updaters.d.ts +3 -0
  54. package/bundles/sabstravtech-obtservices-angular.umd.js +474 -122
  55. package/bundles/sabstravtech-obtservices-angular.umd.js.map +1 -1
  56. package/bundles/sabstravtech-obtservices-angular.umd.min.js +1 -1
  57. package/bundles/sabstravtech-obtservices-angular.umd.min.js.map +1 -1
  58. package/bundles/sabstravtech-obtservices-base.umd.js +777 -158
  59. package/bundles/sabstravtech-obtservices-base.umd.js.map +1 -1
  60. package/bundles/sabstravtech-obtservices-base.umd.min.js +2 -2
  61. package/bundles/sabstravtech-obtservices-base.umd.min.js.map +1 -1
  62. package/esm2015/angular/components/basket-panel.js +2 -1
  63. package/esm2015/angular/fetchers.js +2 -1
  64. package/esm2015/angular/lib/vendor/classes/helpers.js +161 -4
  65. package/esm2015/angular/lib/vendor/fetchers/get-redirect-approver.fetcher.js +25 -0
  66. package/esm2015/angular/lib/vendor/services/enterprise-basket.service.js +8 -5
  67. package/esm2015/angular/lib/vendor/services/ticket-queue.service.js +10 -8
  68. package/esm2015/angular/lib/vendor/services/user.service.js +16 -7
  69. package/esm2015/angular/lib/vendor/types/graphql.angular.types.js +156 -11
  70. package/esm2015/angular/lib/vendor/updaters/add-redirect-approver-updater.js +22 -0
  71. package/esm2015/angular/lib/vendor/updaters/addGuestToBasketItem.js +22 -0
  72. package/esm2015/angular/lib/vendor/updaters/remove-redirect-approver-updater.js +22 -0
  73. package/esm2015/angular/obtservices.module.js +7 -2
  74. package/esm2015/angular/pipes/memorize-pipe.js +15 -0
  75. package/esm2015/angular/pipes.js +2 -0
  76. package/esm2015/angular/public_api.js +2 -1
  77. package/esm2015/angular/updaters.js +4 -1
  78. package/esm2015/base/classes.js +3 -1
  79. package/esm2015/base/fetchers.js +2 -1
  80. package/esm2015/base/lib/vendor/classes/bookable-basket.js +5 -5
  81. package/esm2015/base/lib/vendor/classes/erm-company-type.enum.js +8 -0
  82. package/esm2015/base/lib/vendor/classes/erm-traveller-type.enum.js +7 -0
  83. package/esm2015/base/lib/vendor/classes/eurostar-enterprise-search.js +30 -1
  84. package/esm2015/base/lib/vendor/classes/fast-track-enterprise-search.js +66 -2
  85. package/esm2015/base/lib/vendor/classes/flight-enterprise-search.js +81 -30
  86. package/esm2015/base/lib/vendor/classes/greenerchoise.js +80 -0
  87. package/esm2015/base/lib/vendor/classes/hotel-enterprise-search.js +13 -7
  88. package/esm2015/base/lib/vendor/classes/irl-enterprise-search.js +40 -10
  89. package/esm2015/base/lib/vendor/classes/management-info-and-valid.js +8 -20
  90. package/esm2015/base/lib/vendor/classes/modal-types.enum.js +2 -1
  91. package/esm2015/base/lib/vendor/classes/rail-enterprise-search.js +97 -38
  92. package/esm2015/base/lib/vendor/classes/user-favourite.enum.js +4 -1
  93. package/esm2015/base/lib/vendor/data/air-to-euro.js +40 -0
  94. package/esm2015/base/lib/vendor/data/air-to-rail-uk.js +47 -0
  95. package/esm2015/base/lib/vendor/fetchers/get-redirect-approver.fetcher.js +11 -0
  96. package/esm2015/base/lib/vendor/interfaces/Ienterprise-basket.service.js +1 -1
  97. package/esm2015/base/lib/vendor/interfaces/Ieurostar-enterprise-search.js +1 -1
  98. package/esm2015/base/lib/vendor/interfaces/Ifast-track-enterprise-search.js +1 -1
  99. package/esm2015/base/lib/vendor/interfaces/Iflight-enterprise-search.js +1 -1
  100. package/esm2015/base/lib/vendor/interfaces/Iirl-enterprise-search.js +1 -1
  101. package/esm2015/base/lib/vendor/interfaces/Imybookings.service.js +1 -1
  102. package/esm2015/base/lib/vendor/interfaces/Irail-enterprise-search.js +1 -1
  103. package/esm2015/base/lib/vendor/interfaces/Isearch.service.js +1 -1
  104. package/esm2015/base/lib/vendor/interfaces/Iuser.service.js +1 -1
  105. package/esm2015/base/lib/vendor/interfaces/user.data.js +1 -1
  106. package/esm2015/base/lib/vendor/services/enterprise-basket.service.js +72 -22
  107. package/esm2015/base/lib/vendor/services/logon.service.js +9 -1
  108. package/esm2015/base/lib/vendor/services/my-bookings.service.js +15 -3
  109. package/esm2015/base/lib/vendor/services/search.service.js +53 -15
  110. package/esm2015/base/lib/vendor/services/user.service.js +17 -2
  111. package/esm2015/base/lib/vendor/types/graphql.types.js +7 -7
  112. package/esm2015/base/lib/vendor/types/types.js +7 -1
  113. package/esm2015/base/lib/vendor/updaters/add-redirect-approver-updater.js +11 -0
  114. package/esm2015/base/lib/vendor/updaters/addGuestToBasketItem.js +10 -0
  115. package/esm2015/base/lib/vendor/updaters/remove-redirect-approver-updater.js +11 -0
  116. package/esm2015/base/updaters.js +4 -1
  117. package/fesm2015/sabstravtech-obtservices-angular.js +420 -32
  118. package/fesm2015/sabstravtech-obtservices-angular.js.map +1 -1
  119. package/fesm2015/sabstravtech-obtservices-base.js +722 -150
  120. package/fesm2015/sabstravtech-obtservices-base.js.map +1 -1
  121. package/package.json +1 -1
@@ -79,7 +79,8 @@ import { BaseGetRailProvidersFetcher, GetRailProvidersFetcherType } from '../fet
79
79
  import { BaseGetAllAirlinesFetcher, GetAllAirlinesFetcherType } from '../fetchers/get-all-airlines.fetcher';
80
80
  import { BaseGetCarHireProvidersFetcher, GetCarHireProvidersFetcherType } from '../fetchers/get-car-hire-providers.fetcher';
81
81
  import { BaseGetIrlSupplierStationFetcher, GetIrlSupplierStationFetcherType } from '../fetchers/get-irl-supplier-station.fetcher';
82
- export declare const MAX_TRAVELLERS = 8;
82
+ import { ErmTravellerType } from '../classes/erm-traveller-type.enum';
83
+ export declare let MAX_TRAVELLERS: number;
83
84
  export declare enum TravellerSearchTypes {
84
85
  email = "email",
85
86
  name = "name",
@@ -164,15 +165,19 @@ export declare class BaseEnterpriseSearchService<SP_Q extends SearchPostcodesQuo
164
165
  gateway: string;
165
166
  destination: string;
166
167
  }[];
168
+ private _ermTravellerType;
169
+ get ermTravellerType(): ErmTravellerType;
170
+ set ermTravellerType(type: ErmTravellerType);
167
171
  constructor(searchAirportsFetcher: BaseSearchAirportsFetcher<SA_Q>, searchAirlinesFetcher: BaseSearchAirlinesFetcher<SAL_Q>, storageService: BaseStorageService, userService: UserServiceInterface, modalService: BaseModalOpenerService, router: Router, helpers: BaseHelperRoutines, hotelAvalibilityService: BaseHotelAvalibilityService<HA_Q>, citiesFetcher: BaseSearchCityFetcher<SC_Q>, confermaCitiesFetcher: BaseSearchConfermaCityFetcher<SCC_Q>, postcodeFetcher: BaseSearchPostcodeFetcher<SP_Q>, railStationFetcher: BaseSearchRailStationsFetcher<SR_Q>, saveUserAddressUpdater: BaseSaveUserAddressUpdater<SUA_Q>, userAddressesFetcher: BaseUserAddressesFetcher<SU_Q>, basketService: EnterpriseBasketServiceInterface, getUserCompanyOfficesFetcher: BaseGetUserCompanyOfficesFetcher<GUCO_Q>, searchHotelChainsFetcher: BaseSearchHotelChainsFetcher<SHC_Q>, getConfermaRoomImagesFetcher: BaseGetConfermaRoomImagesFetcher<GCRI_Q>, baseValidateIsPostcodeValidTester: BaseValidateIsPostcodeValidTester<IPV_Q>, depotFetcher: BaseSearchDepotFetcher<SD_Q>, confermaOfficeNamesFetcher: BaseConfermaOfficeNamesFetcher<GON_Q>, confermaOfficeFetcher: BaseConfermaOfficeFetcher<CO_Q>, baseDeleteUserAddressUpdater: BaseDeleteUserAddressUpdater<DUA_Q>, baseDeleteRecentSearchUpdater: BaseDeleteRecentSearchUpdater<DRS_Q>, baseSaveRecentSearchUpdater: BaseSaveRecentSearchUpdater<SRS_Q>, getUserCurrentCarbonAllowanceFetcher: BaseGetUserCurrentCarbonAllowanceFetcher<UCA_Q>, baseSaveFavouriteSearchUpdater: BaseSaveFavouriteSearchUpdater<SFS_Q>, environment: BaseEnvironment, loungeFetcher: BaseLoungeQuoteFetcher<SL_Q>, parkingFetcher: BaseParkingQuoteFetcher<SPA_Q>, httpCallService: AbstractHttpCallService, flightFetcher: BaseFlightQuoteFetcher<SFL_Q>, hotelFetcher: BaseHotelQuoteFetcher<SHO_Q>, carhireFetcher: BaseCarhireQuoteFetcher<SCH_Q>, carHireAvailabilityDetailFetcher: BaseCarHireAvailabilityDetailFetcher<CHAD_Q>, cabhireFetcher: BaseCabhireQuoteFetcher<STH_Q>, railFetcher: BaseRailQuoteFetcher<SRA_Q>, irlFetcher: BaseIrlQuoteFetcher<SI_Q>, getRailStationFetcher: BaseGetRailStationFetcher<GRS_Q>, getIrlSupplierStationFetcher: BaseGetIrlSupplierStationFetcher<GISSF_Q>, webTokenService: BaseWebTokenService, riskAlertsFetcher: BaseGetRiskAlertsFetcher<GRA_Q>, quicklistFetcher: BaseSearchConfermaQuicklistFetcher<QL_Q>, getUserRecentSearchesFetcher: BaseGetUserRecentSearchesFetcher<GURSF_Q>, getRailCardsFetcher: BaseGetRailcardsFetcher<GRCF_Q>, getCovidMicrositeTokenFetcher: BaseGetCovidMicrositeTokenFetcher<GCMTF_Q>, eurostarFetcher: BaseEurostarQuoteFetcher<SE_Q>, searchUsersCanBookForFetcher: BaseSearchUsersCanBookForFetcher<SUCBF>, searchIrlStationsFetcher: BaseSearchIrlStationsFetcher<SIS_Q>, irlDiscountCardsFetcher: BaseIrlDiscountCardFetcher<GIDF_Q>, getFlightFareRulesFetcher: BaseGetFlightFareRulesFetcher<GFFR_Q>, getFlightSeatMapFetcher: BaseGetFlightSeatMapFetcher<GFSM_Q>, getRailLiveDeparturesFetcher: BaseGetRailLiveDeparturesFetcher<GRLD_F>, applyHotelRulesFetcher: BaseHotelRulesFetcher<AHR_Q>, applyFlightRules: BaseApplyJitFlightRulesFetcher<AFR_Q>, getUserFavouriteSearchesFetcher: BaseGetUserFavouriteSearchesFetcher<GUFSF_Q>, deleteFavouriteSearchUpdater: BaseDeleteFavouriteSearchUpdater<DFS_Q>, emailBasketFetcher: BaseEmailBasketFetcher<EB_F>, fasttrackFetcher: BaseFastTrackQuoteFetcher<FTQ_Q>, sendOfflineNotificationFetcher: BaseSendOfflineNotificationFetcher<SON_Q>, getHotelChainsFetcher: BaseGetHotelChainsFetcher<GHT_Q>, getRailProvidersFetcher: BaseGetRailProvidersFetcher<GRP_Q>, getAllAirlinesFetcher: BaseGetAllAirlinesFetcher<GAA_Q>, getCarHireProvidersFetcher: BaseGetCarHireProvidersFetcher<GCHP_Q>);
168
172
  ngOnDestroy(): void;
169
173
  reset(): void;
170
174
  resetAllSearchItems(): void;
175
+ resetTravellerType(): void;
171
176
  getUserCurrentCarbonAllowance(user?: string, isLoading?: BehaviorSubject<boolean>): Observable<graphqlTypes.CarbonAllowance>;
172
177
  getRiskAlerts(minLevel: graphqlTypes.RiskLevel, maxLevel: graphqlTypes.RiskLevel, countryIsoCode: string, isLoading?: BehaviorSubject<boolean>): Observable<graphqlTypes.RiskAlert[]>;
173
- getAirportsList(term: string, countryCode?: CountryCode, isLoading?: BehaviorSubject<boolean>, hasLounge?: boolean, hasParking?: boolean, hasFastTrack?: boolean): Observable<OBTAirportDetails[]>;
178
+ getAirportsList(term: string, countryCode?: CountryCode, isLoading?: BehaviorSubject<boolean>, hasLounge?: boolean, hasParking?: boolean, hasFastTrack?: boolean, isHotel?: boolean): Observable<OBTAirportDetails[]>;
174
179
  getAirlinesList(term: string, isLoading?: BehaviorSubject<boolean>): Observable<OBTAirlinesDetails[]>;
175
- getAirportLocations(term: string, countryCode: CountryCode, isLoading?: BehaviorSubject<boolean>, hasLounge?: boolean, hasParking?: boolean, hasFastTrack?: boolean): Observable<LocationDetails[]>;
180
+ getAirportLocations(term: string, countryCode: CountryCode, isLoading?: BehaviorSubject<boolean>, hasLounge?: boolean, hasParking?: boolean, hasFastTrack?: boolean, isHotel?: boolean): Observable<LocationDetails[]>;
176
181
  getCityLocations(term: string, countryCode?: CountryCode, isLoading?: BehaviorSubject<boolean>, isConfirma?: boolean): Observable<LocationDetails[]>;
177
182
  _getCityLocations(term: string, countryCode?: CountryCode, isLoading?: BehaviorSubject<boolean>): Observable<LocationDetails[]>;
178
183
  private getConfermaCityLocations;
@@ -10,7 +10,7 @@ import { BaseGetUserFetcher, SearchGetUserFetcherType } from '../fetchers/user-f
10
10
  import { FullUserDetails, UserServiceInterface } from '../interfaces/Iuser.service';
11
11
  import { UserData } from '../interfaces/user.data';
12
12
  import { Traveller } from '../models/traveller.object';
13
- import { Document, BookerType, Company, Message, MutationEditUserArgs, Service, ServiceType, User, DocType, MutationCreateGuestArgs, Guest, Office } from '../types/graphql.types';
13
+ import { Document, BookerType, Company, Message, MutationEditUserArgs, Service, ServiceType, User, DocType, MutationCreateGuestArgs, Guest, Office, UserApprovalRedirection, UserMiDefaultValue } from '../types/graphql.types';
14
14
  import { ServiceProvider } from '../types/types';
15
15
  import { BaseStorageService } from './storage.service';
16
16
  export declare const USER_SIGNEDOUT = "USER_SIGNEDOUT";
@@ -22,7 +22,10 @@ import { BaseCreateGuestUpdater, CreateGuestUpdaterType } from '../updaters/crea
22
22
  import { BaseGetUserGuestsFetcher, GetUserGuestsFetcherType } from '../fetchers/get-user-guests.fetcher';
23
23
  import { BaseWebTokenService } from './webtoken.service';
24
24
  import { BaseGetOfficeFetcher, GetOfficeFetcherType } from '../fetchers/get-office.fetcher';
25
- export declare class BaseUserService<GU_Q extends SearchGetUserFetcherType, UC_Q extends UserUiConfigsFetcherType, US_Q extends UserProductsFetcherType, UM_Q extends UserMessageFetcherType, CMU_Q extends ConfirmMessagesFetcherType, GCF_Q extends CompaniesFetcherType, GSCF_Q extends CompanyFetcherType, SLU_Q extends SetUserLanguageFetcherType, EUU_Q extends EditUserFetcherType, CGU_Q extends CreateGuestUpdaterType, GUG_Q extends GetUserGuestsFetcherType, GOF_Q extends GetOfficeFetcherType> implements UserServiceInterface {
25
+ import { BaseRedirectApproverFetcher, RedirectApproverFetcherType } from '../fetchers/get-redirect-approver.fetcher';
26
+ import { BaseAddRedirectApproverUpdater, AddRedirectApproverUpdaterType } from '../updaters/add-redirect-approver-updater';
27
+ import { BaseRemoveRedirectApproverUpdater, RemoveRedirectApproverUpdaterType } from '../updaters/remove-redirect-approver-updater';
28
+ export declare class BaseUserService<GU_Q extends SearchGetUserFetcherType, UC_Q extends UserUiConfigsFetcherType, US_Q extends UserProductsFetcherType, UM_Q extends UserMessageFetcherType, CMU_Q extends ConfirmMessagesFetcherType, GCF_Q extends CompaniesFetcherType, GSCF_Q extends CompanyFetcherType, SLU_Q extends SetUserLanguageFetcherType, EUU_Q extends EditUserFetcherType, CGU_Q extends CreateGuestUpdaterType, GUG_Q extends GetUserGuestsFetcherType, GOF_Q extends GetOfficeFetcherType, RAF_Q extends RedirectApproverFetcherType, ARAU_Q extends AddRedirectApproverUpdaterType, RRAU_Q extends RemoveRedirectApproverUpdaterType> implements UserServiceInterface {
26
29
  private getUserFetcher;
27
30
  private userUiConfigsFetcher;
28
31
  private userProductsFetcher;
@@ -35,12 +38,15 @@ export declare class BaseUserService<GU_Q extends SearchGetUserFetcherType, UC_Q
35
38
  private createGuestUpdater;
36
39
  private getUserGuestsFetcher;
37
40
  private getOfficeFetcher;
41
+ private getRedirectApproverFetcher;
42
+ private addRedirectApproverUpdater;
43
+ private removeRedirectApproverUpdater;
38
44
  private storageService;
39
45
  private helpers;
40
46
  private webTokenService;
41
47
  fullUserDetails: FullUserDetails;
42
48
  changeUser: BehaviorSubject<FullUserDetails>;
43
- constructor(getUserFetcher: BaseGetUserFetcher<GU_Q>, userUiConfigsFetcher: BaseUserUiConfigsFetcher<UC_Q>, userProductsFetcher: BaseUserProductsFetcher<US_Q>, userMessagesFetcher: BaseUserMessagesFetcher<UM_Q>, baseConfirmMessagesUpdater: BaseConfirmMessagesUpdater<CMU_Q>, getCompaniesFetcher: BaseGetCompaniesFetcher<GCF_Q>, getCompanyFetcher: BaseGetCompanyFetcher<GSCF_Q>, setUserLanguageUpdater: BaseSetUserLanguageUpdater<SLU_Q>, editUserUpdater: BaseEditUserUpdater<EUU_Q>, createGuestUpdater: BaseCreateGuestUpdater<CGU_Q>, getUserGuestsFetcher: BaseGetUserGuestsFetcher<GUG_Q>, getOfficeFetcher: BaseGetOfficeFetcher<GOF_Q>, storageService: BaseStorageService, helpers: BaseHelperRoutines, webTokenService: BaseWebTokenService);
49
+ constructor(getUserFetcher: BaseGetUserFetcher<GU_Q>, userUiConfigsFetcher: BaseUserUiConfigsFetcher<UC_Q>, userProductsFetcher: BaseUserProductsFetcher<US_Q>, userMessagesFetcher: BaseUserMessagesFetcher<UM_Q>, baseConfirmMessagesUpdater: BaseConfirmMessagesUpdater<CMU_Q>, getCompaniesFetcher: BaseGetCompaniesFetcher<GCF_Q>, getCompanyFetcher: BaseGetCompanyFetcher<GSCF_Q>, setUserLanguageUpdater: BaseSetUserLanguageUpdater<SLU_Q>, editUserUpdater: BaseEditUserUpdater<EUU_Q>, createGuestUpdater: BaseCreateGuestUpdater<CGU_Q>, getUserGuestsFetcher: BaseGetUserGuestsFetcher<GUG_Q>, getOfficeFetcher: BaseGetOfficeFetcher<GOF_Q>, getRedirectApproverFetcher: BaseRedirectApproverFetcher<RAF_Q>, addRedirectApproverUpdater: BaseAddRedirectApproverUpdater<ARAU_Q>, removeRedirectApproverUpdater: BaseRemoveRedirectApproverUpdater<RRAU_Q>, storageService: BaseStorageService, helpers: BaseHelperRoutines, webTokenService: BaseWebTokenService);
44
50
  _bobo: Traveller;
45
51
  invokedUserUpdater: {
46
52
  next: (t: Traveller) => void;
@@ -108,4 +114,11 @@ export declare class BaseUserService<GU_Q extends SearchGetUserFetcherType, UC_Q
108
114
  getUserGuests(): Observable<Guest[]>;
109
115
  canInvokeUser(): boolean;
110
116
  getOffice(): Observable<Office>;
117
+ getRedirectApprover(): Observable<UserApprovalRedirection>;
118
+ addRedirectApprover(approver: {
119
+ redirectTo: string;
120
+ validTo: string;
121
+ }): Observable<UserApprovalRedirection>;
122
+ removeRedirectApprover(id: string): Observable<Boolean>;
123
+ getUseMiDefaultValues(): UserMiDefaultValue[];
111
124
  }
@@ -115,18 +115,6 @@ export declare type ApplyJitRulesResult = {
115
115
  __typename?: 'ApplyJITRulesResult';
116
116
  result: FieldWrapper<Scalars['JSON']>;
117
117
  };
118
- export declare type Approvee = {
119
- __typename?: 'Approvee';
120
- approvee: FieldWrapper<User>;
121
- active: FieldWrapper<Scalars['Boolean']>;
122
- priority: FieldWrapper<Scalars['Int']>;
123
- };
124
- export declare type Approver = {
125
- __typename?: 'Approver';
126
- approver: FieldWrapper<User>;
127
- active: FieldWrapper<Scalars['Boolean']>;
128
- priority: FieldWrapper<Scalars['Int']>;
129
- };
130
118
  export declare type Association = {
131
119
  __typename?: 'Association';
132
120
  category?: Maybe<FieldWrapper<Scalars['String']>>;
@@ -168,6 +156,7 @@ export declare type Basket = {
168
156
  companyGroup?: Maybe<FieldWrapper<CompanyGroup>>;
169
157
  validated: FieldWrapper<Scalars['Boolean']>;
170
158
  bookedAt?: Maybe<FieldWrapper<Scalars['DateTime']>>;
159
+ outstandingManualApprovalProcesses?: Maybe<Array<Maybe<FieldWrapper<OutstandingManualApprovalProcess>>>>;
171
160
  };
172
161
  export declare type BasketItem = {
173
162
  __typename?: 'BasketItem';
@@ -863,11 +852,6 @@ export declare type DefaultManagementInfoValue = {
863
852
  label?: Maybe<FieldWrapper<Scalars['String']>>;
864
853
  value: FieldWrapper<Scalars['String']>;
865
854
  };
866
- export declare enum DepartTimeType {
867
- Anytime = "Anytime",
868
- DepartAfter = "DepartAfter",
869
- ArriveBefore = "ArriveBefore"
870
- }
871
855
  export declare type DepartureBoardService = {
872
856
  __typename?: 'DepartureBoardService';
873
857
  rid?: Maybe<FieldWrapper<Scalars['String']>>;
@@ -995,6 +979,7 @@ export declare type FastTrackQuote = {
995
979
  logo?: Maybe<FieldWrapper<Scalars['String']>>;
996
980
  description?: Maybe<FieldWrapper<Scalars['String']>>;
997
981
  importantInfo?: Maybe<FieldWrapper<Scalars['String']>>;
982
+ extraInfo?: Maybe<FieldWrapper<Scalars['String']>>;
998
983
  tmcPreferred: FieldWrapper<Scalars['Boolean']>;
999
984
  companyPreferred: FieldWrapper<Scalars['Boolean']>;
1000
985
  officePreferred: FieldWrapper<Scalars['Boolean']>;
@@ -1443,6 +1428,7 @@ export declare type IrlIdentifiers = {
1443
1428
  };
1444
1429
  export declare type IrlJourneyOption = {
1445
1430
  __typename?: 'IRLJourneyOption';
1431
+ fareInfo?: Maybe<FieldWrapper<IrlSpecialFareInfo>>;
1446
1432
  identifiers?: Maybe<FieldWrapper<IrlIdentifiers>>;
1447
1433
  travellers?: Maybe<Array<FieldWrapper<IrlTraveller>>>;
1448
1434
  from?: Maybe<FieldWrapper<Scalars['String']>>;
@@ -1532,6 +1518,13 @@ export declare type IrlSegment = {
1532
1518
  seatPreferenceGroup?: Maybe<FieldWrapper<Scalars['String']>>;
1533
1519
  seats?: Maybe<Array<FieldWrapper<IrlSeat>>>;
1534
1520
  };
1521
+ export declare type IrlSpecialFareInfo = {
1522
+ __typename?: 'IRLSpecialFareInfo';
1523
+ title: FieldWrapper<Scalars['String']>;
1524
+ type: FieldWrapper<Scalars['String']>;
1525
+ code?: Maybe<FieldWrapper<Scalars['String']>>;
1526
+ supplierCode?: Maybe<FieldWrapper<Scalars['String']>>;
1527
+ };
1535
1528
  export declare enum IrlSupplier {
1536
1529
  Renfe = "Renfe",
1537
1530
  BeNe = "BeNe",
@@ -1878,6 +1871,8 @@ export declare type Mutation = {
1878
1871
  deleteUserAddress: FieldWrapper<Scalars['Boolean']>;
1879
1872
  setAddressAsUserPrimary: FieldWrapper<Address>;
1880
1873
  sendBasketForApproval: FieldWrapper<Basket>;
1874
+ addRedirectApprover: FieldWrapper<UserApprovalRedirection>;
1875
+ removeRedirectApprover: FieldWrapper<Scalars['Boolean']>;
1881
1876
  createBasket: FieldWrapper<Basket>;
1882
1877
  deleteBasket: FieldWrapper<Scalars['Boolean']>;
1883
1878
  updateBasketTitle: FieldWrapper<Basket>;
@@ -1930,6 +1925,13 @@ export declare type MutationSendBasketForApprovalArgs = {
1930
1925
  convertCurrencyTo?: Maybe<Scalars['String']>;
1931
1926
  basket: Scalars['ID'];
1932
1927
  };
1928
+ export declare type MutationAddRedirectApproverArgs = {
1929
+ redirectTo: Scalars['ID'];
1930
+ validTo: Scalars['Date'];
1931
+ };
1932
+ export declare type MutationRemoveRedirectApproverArgs = {
1933
+ id: Scalars['ID'];
1934
+ };
1933
1935
  export declare type MutationCreateBasketArgs = {
1934
1936
  convertCurrencyTo?: Maybe<Scalars['String']>;
1935
1937
  title?: Maybe<Scalars['String']>;
@@ -2129,6 +2131,12 @@ export declare type Office = {
2129
2131
  supportPhoneNumber?: Maybe<FieldWrapper<PhoneNumber>>;
2130
2132
  supportEmail: FieldWrapper<Scalars['String']>;
2131
2133
  };
2134
+ export declare type OutstandingManualApprovalProcess = {
2135
+ __typename?: 'OutstandingManualApprovalProcess';
2136
+ approver: FieldWrapper<User>;
2137
+ approvalURL: FieldWrapper<Scalars['String']>;
2138
+ order: FieldWrapper<Scalars['Int']>;
2139
+ };
2132
2140
  export declare type ParkingLocation = {
2133
2141
  __typename?: 'ParkingLocation';
2134
2142
  code: FieldWrapper<Scalars['String']>;
@@ -2300,6 +2308,7 @@ export declare type Query = {
2300
2308
  getAllAirlines: Array<FieldWrapper<AirlineResult>>;
2301
2309
  searchAirlines: FieldWrapper<AirlineResults>;
2302
2310
  searchAirports: FieldWrapper<AirportResults>;
2311
+ getRedirectApprover?: Maybe<FieldWrapper<UserApprovalRedirection>>;
2303
2312
  getUserBasket: FieldWrapper<Basket>;
2304
2313
  getUserBaskets: Array<FieldWrapper<Basket>>;
2305
2314
  emailBasket: FieldWrapper<Basket>;
@@ -2509,9 +2518,9 @@ export declare type QueryEmailFerryBookingReqArgs = {
2509
2518
  departDateTime: Scalars['String'];
2510
2519
  returnDateTime?: Maybe<Scalars['String']>;
2511
2520
  onBehalfOfEmail: Scalars['String'];
2512
- offlineReference: Scalars['String'];
2513
2521
  passengers: Array<FerryOfflinePassenger>;
2514
- departTimeType?: Maybe<DepartTimeType>;
2522
+ departTimeType?: Maybe<TimeType>;
2523
+ returnTimeType?: Maybe<TimeType>;
2515
2524
  preferredTicketType?: Maybe<TicketType>;
2516
2525
  carDetails: FerryCarDetails;
2517
2526
  additionalInfo?: Maybe<Scalars['String']>;
@@ -2664,6 +2673,7 @@ export declare type QuerySearchIrlArgs = {
2664
2673
  children?: Maybe<Scalars['Int']>;
2665
2674
  returnDepartureDateTime?: Maybe<Scalars['String']>;
2666
2675
  irlDiscountCards?: Maybe<Scalars['String']>;
2676
+ offlineRequest?: Maybe<Scalars['Boolean']>;
2667
2677
  };
2668
2678
  export declare type QueryGetRailLiveDeparturesArgs = {
2669
2679
  stationCode: Scalars['String'];
@@ -3208,6 +3218,11 @@ export declare enum TicketType {
3208
3218
  Fixed = "Fixed",
3209
3219
  Flexible = "Flexible"
3210
3220
  }
3221
+ export declare enum TimeType {
3222
+ ExactTime = "ExactTime",
3223
+ DepartAfter = "DepartAfter",
3224
+ ArriveBefore = "ArriveBefore"
3225
+ }
3211
3226
  export declare type TravelRule = {
3212
3227
  __typename?: 'TravelRule';
3213
3228
  id: FieldWrapper<Scalars['ID']>;
@@ -3293,8 +3308,6 @@ export declare type User = {
3293
3308
  company: FieldWrapper<Company>;
3294
3309
  office: FieldWrapper<Office>;
3295
3310
  companyGroups: Array<FieldWrapper<CompanyGroup>>;
3296
- approvers: Array<FieldWrapper<Approver>>;
3297
- approverFor: Array<FieldWrapper<Approvee>>;
3298
3311
  bookers: Array<FieldWrapper<User>>;
3299
3312
  canBookFor: Array<FieldWrapper<User>>;
3300
3313
  co2AllowancePeriod?: Maybe<FieldWrapper<Scalars['String']>>;
@@ -3317,6 +3330,13 @@ export declare type User = {
3317
3330
  additionalEmail?: Maybe<Array<Maybe<FieldWrapper<Scalars['String']>>>>;
3318
3331
  canInvokeUser: FieldWrapper<Scalars['Boolean']>;
3319
3332
  };
3333
+ export declare type UserApprovalRedirection = {
3334
+ __typename?: 'UserApprovalRedirection';
3335
+ id: FieldWrapper<Scalars['ID']>;
3336
+ validFrom: FieldWrapper<Scalars['Date']>;
3337
+ validTo: FieldWrapper<Scalars['Date']>;
3338
+ redirectTo: FieldWrapper<User>;
3339
+ };
3320
3340
  export declare type UserInfo = {
3321
3341
  id: Scalars['ID'];
3322
3342
  address?: Maybe<BookingAddress>;
@@ -3406,6 +3426,33 @@ export declare type AcceptNewPriceMutation = ({
3406
3426
  __typename?: 'Basket';
3407
3427
  } & BasketFieldsFragment);
3408
3428
  });
3429
+ export declare type AddGuestsToBasketItemMutationVariables = Exact<{
3430
+ convertCurrencyTo?: Maybe<Scalars['String']>;
3431
+ basketItem: Scalars['ID'];
3432
+ guests: Array<UserPassengerTypeInput> | UserPassengerTypeInput;
3433
+ }>;
3434
+ export declare type AddGuestsToBasketItemMutation = ({
3435
+ __typename?: 'Mutation';
3436
+ } & {
3437
+ addGuestsToBasketItem: ({
3438
+ __typename?: 'Guest';
3439
+ } & Pick<Guest, 'id'>);
3440
+ });
3441
+ export declare type AddRedirectApproverMutationVariables = Exact<{
3442
+ redirectTo: Scalars['ID'];
3443
+ validTo: Scalars['Date'];
3444
+ }>;
3445
+ export declare type AddRedirectApproverMutation = ({
3446
+ __typename?: 'Mutation';
3447
+ } & {
3448
+ addRedirectApprover: ({
3449
+ __typename?: 'UserApprovalRedirection';
3450
+ } & Pick<UserApprovalRedirection, 'id' | 'validFrom' | 'validTo'> & {
3451
+ redirectTo: ({
3452
+ __typename?: 'User';
3453
+ } & Pick<User, 'id' | 'title' | 'forename' | 'surname' | 'email' | 'username' | 'employeeId'>);
3454
+ });
3455
+ });
3409
3456
  export declare type AddUsersToBasketItemMutationVariables = Exact<{
3410
3457
  convertCurrencyTo?: Maybe<Scalars['String']>;
3411
3458
  basketItem: Scalars['ID'];
@@ -3455,6 +3502,13 @@ export declare type BasketFieldsFragment = ({
3455
3502
  invokedUser?: Maybe<({
3456
3503
  __typename?: 'User';
3457
3504
  } & Pick<User, 'id' | 'email'>)>;
3505
+ outstandingManualApprovalProcesses?: Maybe<Array<Maybe<({
3506
+ __typename?: 'OutstandingManualApprovalProcess';
3507
+ } & Pick<OutstandingManualApprovalProcess, 'approvalURL' | 'order'> & {
3508
+ approver: ({
3509
+ __typename?: 'User';
3510
+ } & Pick<User, 'id' | 'email' | 'username'>);
3511
+ })>>>;
3458
3512
  basketItems: Array<({
3459
3513
  __typename?: 'BasketItem';
3460
3514
  } & MakeOptional<Pick<BasketItem, 'id' | 'adults' | 'children' | 'infants' | 'detail' | 'detailHash' | 'createdAt' | 'updatedAt' | 'expiry' | 'expired' | 'searchQuery' | 'price' | 'currency' | 'miGroupsAvailable' | 'miGroupSelected' | 'validated' | 'latestValidation' | 'latestValidationPrice' | 'latestValidationPriceDifference' | 'latestValidationAvailable' | 'bookingThirdPartyReference' | 'status' | 'pnrLocator' | 'bookingDetail' | 'perItemSupplementaryBookingInfoSchema' | 'perPassengerSupplementaryBookingInfoSchema' | 'perItemAddress' | 'perItemPhoneNumber' | 'perPassengerAddress' | 'perPassengerPhoneNumber' | 'cancellable' | 'amendable' | 'co2PerItem' | 'co2PerPassenger' | 'outboundDate' | 'inboundDate' | 'requiresReason' | 'convertedCurrencyAmount' | 'convertedCurrencyCode'>, 'perItemSupplementaryBookingInfoSchema' | 'perPassengerSupplementaryBookingInfoSchema' | 'perItemAddress' | 'perItemPhoneNumber' | 'perPassengerAddress' | 'perPassengerPhoneNumber'> & {
@@ -3641,6 +3695,7 @@ export declare type BookBasketMutationVariables = Exact<{
3641
3695
  id: Scalars['ID'];
3642
3696
  supplementaryInfo: Array<SupplementaryBookingInfo> | SupplementaryBookingInfo;
3643
3697
  withSupplemental?: Maybe<Scalars['Boolean']>;
3698
+ additionalEmail?: Maybe<Array<Maybe<Scalars['String']>> | Maybe<Scalars['String']>>;
3644
3699
  }>;
3645
3700
  export declare type BookBasketMutation = ({
3646
3701
  __typename?: 'Mutation';
@@ -4296,6 +4351,20 @@ export declare type GetRailProvidersQueryVariables = Exact<{
4296
4351
  export declare type GetRailProvidersQuery = ({
4297
4352
  __typename?: 'Query';
4298
4353
  } & Pick<Query, 'getRailProviders'>);
4354
+ export declare type GetRedirectApproverQueryVariables = Exact<{
4355
+ [key: string]: never;
4356
+ }>;
4357
+ export declare type GetRedirectApproverQuery = ({
4358
+ __typename?: 'Query';
4359
+ } & {
4360
+ getRedirectApprover?: Maybe<({
4361
+ __typename?: 'UserApprovalRedirection';
4362
+ } & Pick<UserApprovalRedirection, 'id' | 'validFrom' | 'validTo'> & {
4363
+ redirectTo: ({
4364
+ __typename?: 'User';
4365
+ } & Pick<User, 'id' | 'title' | 'forename' | 'surname' | 'email' | 'username' | 'employeeId'>);
4366
+ })>;
4367
+ });
4299
4368
  export declare type GetRiskAlertsQueryVariables = Exact<{
4300
4369
  minLevel: RiskLevel;
4301
4370
  maxLevel: RiskLevel;
@@ -4738,6 +4807,12 @@ export declare type SearchRailQuery = ({
4738
4807
  } & Pick<SearchError, 'errorMessage'>)>;
4739
4808
  });
4740
4809
  });
4810
+ export declare type RemoveRedirectApproverMutationVariables = Exact<{
4811
+ id: Scalars['ID'];
4812
+ }>;
4813
+ export declare type RemoveRedirectApproverMutation = ({
4814
+ __typename?: 'Mutation';
4815
+ } & Pick<Mutation, 'removeRedirectApprover'>);
4741
4816
  export declare type SaveFavouriteSearchMutationVariables = Exact<{
4742
4817
  name: Scalars['String'];
4743
4818
  serviceType: ServiceType;
@@ -4975,7 +5050,7 @@ export declare type SearchFastTrackQuery = ({
4975
5050
  } & {
4976
5051
  results: Array<({
4977
5052
  __typename?: 'FastTrackQuote';
4978
- } & Pick<FastTrackQuote, 'source' | 'sourceId' | 'name' | 'code' | 'price' | 'currency' | 'refundable' | 'terminal' | 'images' | 'logo' | 'description' | 'importantInfo' | 'tmcPreferred' | 'companyPreferred' | 'officePreferred' | 'tmcPreferredMessage' | 'companyPreferredMessage' | 'officePreferredMessage' | 'unavailable' | 'unavailableMessage' | 'requiresReason' | 'requiresReasonMessage' | 'co2PerPassenger' | 'co2PerItem'>)>;
5053
+ } & Pick<FastTrackQuote, 'source' | 'sourceId' | 'name' | 'code' | 'price' | 'currency' | 'refundable' | 'terminal' | 'images' | 'logo' | 'description' | 'importantInfo' | 'extraInfo' | 'tmcPreferred' | 'companyPreferred' | 'officePreferred' | 'tmcPreferredMessage' | 'companyPreferredMessage' | 'officePreferredMessage' | 'unavailable' | 'unavailableMessage' | 'requiresReason' | 'requiresReasonMessage' | 'co2PerPassenger' | 'co2PerItem'>)>;
4979
5054
  errors: Array<({
4980
5055
  __typename?: 'SearchError';
4981
5056
  } & Pick<SearchError, 'errorMessage' | 'errorCode'> & {
@@ -5289,6 +5364,7 @@ export declare type SearchIrlQueryVariables = Exact<{
5289
5364
  children?: Maybe<Scalars['Int']>;
5290
5365
  returnDepartureDateTime?: Maybe<Scalars['String']>;
5291
5366
  irlDiscountCards?: Maybe<Scalars['String']>;
5367
+ offlineRequest?: Maybe<Scalars['Boolean']>;
5292
5368
  }>;
5293
5369
  export declare type SearchIrlQuery = ({
5294
5370
  __typename?: 'Query';
@@ -5301,7 +5377,10 @@ export declare type SearchIrlQuery = ({
5301
5377
  } & Pick<IrlJourneyOptions, 'source' | 'sourceId' | 'jrfreference'> & {
5302
5378
  outbound?: Maybe<Array<({
5303
5379
  __typename?: 'IRLJourneyOption';
5304
- } & Pick<IrlJourneyOption, 'from' | 'fromCode' | 'to' | 'toCode' | 'departDateTime' | 'arriveDateTime' | 'changes' | 'unsellable'> & {
5380
+ } & Pick<IrlJourneyOption, 'from' | 'fromCode' | 'to' | 'toCode' | 'journeyDuration' | 'departDateTime' | 'arriveDateTime' | 'changes' | 'unsellable'> & {
5381
+ fareInfo?: Maybe<({
5382
+ __typename?: 'IRLSpecialFareInfo';
5383
+ } & Pick<IrlSpecialFareInfo, 'title' | 'type' | 'code' | 'supplierCode'>)>;
5305
5384
  identifiers?: Maybe<({
5306
5385
  __typename?: 'IRLIdentifiers';
5307
5386
  } & Pick<IrlIdentifiers, 'transactionIdentifier' | 'signature' | 'journeyIdentifier' | 'provider' | 'fareIdentifier' | 'direction' | 'singleOrReturn' | 'bookingRef'>)>;
@@ -5398,7 +5477,10 @@ export declare type SearchIrlQuery = ({
5398
5477
  })>>;
5399
5478
  return?: Maybe<Array<({
5400
5479
  __typename?: 'IRLJourneyOption';
5401
- } & Pick<IrlJourneyOption, 'from' | 'fromCode' | 'to' | 'toCode' | 'departDateTime' | 'arriveDateTime' | 'changes' | 'unsellable'> & {
5480
+ } & Pick<IrlJourneyOption, 'from' | 'fromCode' | 'to' | 'toCode' | 'journeyDuration' | 'departDateTime' | 'arriveDateTime' | 'changes' | 'unsellable'> & {
5481
+ fareInfo?: Maybe<({
5482
+ __typename?: 'IRLSpecialFareInfo';
5483
+ } & Pick<IrlSpecialFareInfo, 'title' | 'type' | 'code' | 'supplierCode'>)>;
5402
5484
  identifiers?: Maybe<({
5403
5485
  __typename?: 'IRLIdentifiers';
5404
5486
  } & Pick<IrlIdentifiers, 'transactionIdentifier' | 'signature' | 'journeyIdentifier' | 'provider' | 'fareIdentifier' | 'direction' | 'singleOrReturn' | 'bookingRef'>)>;
@@ -5729,6 +5811,9 @@ export declare type UserFieldsFragment = ({
5729
5811
  __typename?: 'PhoneNumber';
5730
5812
  } & Pick<PhoneNumber, 'countryCode' | 'number'>)>;
5731
5813
  });
5814
+ profileConfig?: Maybe<({
5815
+ __typename?: 'ProfileConfig';
5816
+ } & Pick<ProfileConfig, 'profile' | 'address' | 'miDefault' | 'documents' | 'loyalty' | 'travelPreferences' | 'payment'>)>;
5732
5817
  });
5733
5818
  export declare type GetUserServicesQueryVariables = Exact<{
5734
5819
  [key: string]: never;
@@ -5828,6 +5913,17 @@ export declare namespace AcceptNewPrice {
5828
5913
  type Mutation = AcceptNewPriceMutation;
5829
5914
  type AcceptNewPrice = AcceptNewPriceMutation['acceptNewPrice'];
5830
5915
  }
5916
+ export declare namespace AddGuestsToBasketItem {
5917
+ type Variables = AddGuestsToBasketItemMutationVariables;
5918
+ type Mutation = AddGuestsToBasketItemMutation;
5919
+ type AddGuestsToBasketItem = AddGuestsToBasketItemMutation['addGuestsToBasketItem'];
5920
+ }
5921
+ export declare namespace AddRedirectApprover {
5922
+ type Variables = AddRedirectApproverMutationVariables;
5923
+ type Mutation = AddRedirectApproverMutation;
5924
+ type AddRedirectApprover = AddRedirectApproverMutation['addRedirectApprover'];
5925
+ type RedirectTo = AddRedirectApproverMutation['addRedirectApprover']['redirectTo'];
5926
+ }
5831
5927
  export declare namespace AddUsersToBasketItem {
5832
5928
  type Variables = AddUsersToBasketItemMutationVariables;
5833
5929
  type Mutation = AddUsersToBasketItemMutation;
@@ -5855,6 +5951,8 @@ export declare namespace BasketFields {
5855
5951
  type Fragment = BasketFieldsFragment;
5856
5952
  type Owner = BasketFieldsFragment['owner'];
5857
5953
  type InvokedUser = BasketFieldsFragment['invokedUser'];
5954
+ type OutstandingManualApprovalProcesses = BasketFieldsFragment['outstandingManualApprovalProcesses'][number];
5955
+ type Approver = BasketFieldsFragment['outstandingManualApprovalProcesses'][number]['approver'];
5858
5956
  type BasketItems = BasketFieldsFragment['basketItems'][number];
5859
5957
  type AvailablePaymentMethods = BasketFieldsFragment['basketItems'][number]['availablePaymentMethods'][number];
5860
5958
  type SelectedPaymentMethod = BasketFieldsFragment['basketItems'][number]['selectedPaymentMethod'];
@@ -6169,6 +6267,12 @@ export declare namespace GetRailProviders {
6169
6267
  type Variables = GetRailProvidersQueryVariables;
6170
6268
  type Query = GetRailProvidersQuery;
6171
6269
  }
6270
+ export declare namespace GetRedirectApprover {
6271
+ type Variables = GetRedirectApproverQueryVariables;
6272
+ type Query = GetRedirectApproverQuery;
6273
+ type GetRedirectApprover = GetRedirectApproverQuery['getRedirectApprover'];
6274
+ type RedirectTo = GetRedirectApproverQuery['getRedirectApprover']['redirectTo'];
6275
+ }
6172
6276
  export declare namespace GetRiskAlerts {
6173
6277
  type Variables = GetRiskAlertsQueryVariables;
6174
6278
  type Query = GetRiskAlertsQuery;
@@ -6323,6 +6427,10 @@ export declare namespace SearchRail {
6323
6427
  type Return = SearchRailQuery['searchRail']['results'][number]['return'][number];
6324
6428
  type Errors = SearchRailQuery['searchRail']['errors'][number];
6325
6429
  }
6430
+ export declare namespace RemoveRedirectApprover {
6431
+ type Variables = RemoveRedirectApproverMutationVariables;
6432
+ type Mutation = RemoveRedirectApproverMutation;
6433
+ }
6326
6434
  export declare namespace SaveFavouriteSearch {
6327
6435
  type Variables = SaveFavouriteSearchMutationVariables;
6328
6436
  type Mutation = SaveFavouriteSearchMutation;
@@ -6498,6 +6606,7 @@ export declare namespace SearchIrl {
6498
6606
  type SearchIrl = SearchIrlQuery['searchIRL'];
6499
6607
  type Results = SearchIrlQuery['searchIRL']['results'][number];
6500
6608
  type Outbound = SearchIrlQuery['searchIRL']['results'][number]['outbound'][number];
6609
+ type FareInfo = SearchIrlQuery['searchIRL']['results'][number]['outbound'][number]['fareInfo'];
6501
6610
  type Identifiers = SearchIrlQuery['searchIRL']['results'][number]['outbound'][number]['identifiers'];
6502
6611
  type Travellers = SearchIrlQuery['searchIRL']['results'][number]['outbound'][number]['travellers'][number];
6503
6612
  type Segments = SearchIrlQuery['searchIRL']['results'][number]['outbound'][number]['segments'][number];
@@ -6526,6 +6635,7 @@ export declare namespace SearchIrl {
6526
6635
  type ____Identifiers = SearchIrlQuery['searchIRL']['results'][number]['outbound'][number]['ticketExtras'][number]['identifiers'];
6527
6636
  type PlusBus = SearchIrlQuery['searchIRL']['results'][number]['outbound'][number]['plusBus'];
6528
6637
  type Return = SearchIrlQuery['searchIRL']['results'][number]['return'][number];
6638
+ type _FareInfo = SearchIrlQuery['searchIRL']['results'][number]['return'][number]['fareInfo'];
6529
6639
  type _____Identifiers = SearchIrlQuery['searchIRL']['results'][number]['return'][number]['identifiers'];
6530
6640
  type _Travellers = SearchIrlQuery['searchIRL']['results'][number]['return'][number]['travellers'][number];
6531
6641
  type ____Segments = SearchIrlQuery['searchIRL']['results'][number]['return'][number]['segments'][number];
@@ -6636,6 +6746,7 @@ export declare namespace UserFields {
6636
6746
  type ManagementInfoValue = UserFieldsFragment['userMiDefaultValues'][number]['managementInfoValue'];
6637
6747
  type Office = UserFieldsFragment['office'];
6638
6748
  type SupportPhoneNumber = UserFieldsFragment['office']['supportPhoneNumber'];
6749
+ type ProfileConfig = UserFieldsFragment['profileConfig'];
6639
6750
  }
6640
6751
  export declare namespace GetUserServices {
6641
6752
  type Variables = GetUserServicesQueryVariables;
@@ -290,7 +290,11 @@ export declare enum OBTFlightCabinClass {
290
290
  PremiumEconomyBranded = "BrandedPremiumEconomy"
291
291
  }
292
292
  export declare type MainFlightCabinClass = FlightCabinClass.Business | FlightCabinClass.EconomyFlexi | FlightCabinClass.EconomyNoBags | FlightCabinClass.First | FlightCabinClass.EconomyRestricted | FlightCabinClass.PremiumEconomy;
293
- export interface FlightGroupedQuoteResult {
293
+ export interface GreenerChoice {
294
+ greenerChoice: boolean;
295
+ greenerChoicePercentage: number;
296
+ }
297
+ export interface FlightGroupedQuoteResult extends GreenerChoice {
294
298
  type: 'FlightGroupedQuoteResult';
295
299
  inlegs: FlightJourney[];
296
300
  outlegs: FlightJourney[];
@@ -487,6 +491,7 @@ export declare type SendOfflineNotificationsResult = SendOfflineNotificationQuer
487
491
  export declare type ManagementInfoValueResult = GetUserDefaultMiValueQuery['getUserDefaultMIValue'];
488
492
  export declare type UserProductsResult = GetUserServicesQuery['getUserServices'];
489
493
  export declare type UserAddressesResult = Query['getUserAddresses'];
494
+ export declare type UserApprovalRedirection = Query['getRedirectApprover'];
490
495
  export declare type UserUiConfigsResult = GetUserUiConfigsQuery['getUserUIConfigs']['all'];
491
496
  export declare type CovidMicrositeTokenResult = string;
492
497
  export declare type SendBasketForApprovalResults = SendBasketForApprovalMutation['sendBasketForApproval'];
@@ -595,10 +600,11 @@ export interface Preferred {
595
600
  preferred?: PreferredFlags;
596
601
  preferredMessages?: Record<PreferredFlags, string>;
597
602
  }
598
- export declare type FlightItineraryWithExtensions = Preferred & FlightItinerary & RuleActionExtension & {
603
+ export declare type FlightItineraryWithExtensions = Preferred & GreenerChoice & FlightItinerary & RuleActionExtension & {
599
604
  selected?: boolean;
600
605
  canSelect?: boolean;
601
606
  };
607
+ export declare type OBTFlightJourney = FlightJourney & GreenerChoice;
602
608
  export declare type FlightMulti = SearchFlightsV2.Multi;
603
609
  export declare type EurostarMulti = SearchEurostar.Multi;
604
610
  export declare type EurostarMultiResults = FlightItinerary[];
@@ -702,4 +708,9 @@ export declare enum DifferentInvokdedUserReasons {
702
708
  cancel = 2,
703
709
  research = 3
704
710
  }
711
+ export declare enum DifferentTraveller {
712
+ continue = 0,
713
+ newBasket = 1,
714
+ cancel = 2
715
+ }
705
716
  export {};
@@ -0,0 +1,19 @@
1
+ import { ApolloQueryResult, FetchResult } from '@apollo/client/core';
2
+ import { UpdateableObject } from './object-updater-enterprise';
3
+ import { BaseModalOpenerService } from '../services/modal-opener.service';
4
+ import { Observable } from 'rxjs';
5
+ import { AddRedirectApproverMutation, AddRedirectApproverMutationVariables, UserApprovalRedirection } from '../types/graphql.types';
6
+ declare type R = {
7
+ addRedirectApprover: P;
8
+ };
9
+ declare type P = UserApprovalRedirection;
10
+ declare type A = AddRedirectApproverMutationVariables;
11
+ declare type M = AddRedirectApproverMutation;
12
+ export declare type AddRedirectApproverUpdaterType = {
13
+ mutate: (a: A) => Observable<FetchResult<M>>;
14
+ };
15
+ export declare class BaseAddRedirectApproverUpdater<Q extends AddRedirectApproverUpdaterType> extends UpdateableObject<Q, A, R, P, M> {
16
+ constructor(createBasketGQL: Q, modalService: BaseModalOpenerService);
17
+ protected getDataFromResult(results: ApolloQueryResult<R>): P;
18
+ }
19
+ export {};
@@ -0,0 +1,20 @@
1
+ import { ApolloQueryResult, FetchResult } from '@apollo/client/core';
2
+ import { Observable } from 'rxjs';
3
+ import { BaseModalOpenerService } from '../services/modal-opener.service';
4
+ import { AddGuestsToBasketItemMutation, AddGuestsToBasketItemMutationVariables } from '../types/graphql.types';
5
+ import { GetUserBasketResult } from '../types/types';
6
+ import { UpdateableObject } from './object-updater-enterprise';
7
+ declare type R = {
8
+ addGuestToBasketItem: P;
9
+ };
10
+ declare type P = GetUserBasketResult;
11
+ declare type A = AddGuestsToBasketItemMutationVariables;
12
+ declare type M = AddGuestsToBasketItemMutation;
13
+ export declare type AddGuestBasketFetcherType = {
14
+ mutate: (a: A) => Observable<FetchResult<M>>;
15
+ };
16
+ export declare class BaseAddGuestToBasketItemUpdater<Q extends AddGuestBasketFetcherType> extends UpdateableObject<Q, A, R, P, M> {
17
+ constructor(updater: Q, modalService: BaseModalOpenerService);
18
+ protected getDataFromResult(results: ApolloQueryResult<R>): P;
19
+ }
20
+ export {};
@@ -0,0 +1,19 @@
1
+ import { ApolloQueryResult, FetchResult } from '@apollo/client/core';
2
+ import { UpdateableObject } from './object-updater-enterprise';
3
+ import { BaseModalOpenerService } from '../services/modal-opener.service';
4
+ import { Observable } from 'rxjs';
5
+ import { RemoveRedirectApproverMutation, RemoveRedirectApproverMutationVariables } from '../types/graphql.types';
6
+ declare type R = {
7
+ removeRedirectApprover: P;
8
+ };
9
+ declare type P = Boolean;
10
+ declare type A = RemoveRedirectApproverMutationVariables;
11
+ declare type M = RemoveRedirectApproverMutation;
12
+ export declare type RemoveRedirectApproverUpdaterType = {
13
+ mutate: (a: A) => Observable<FetchResult<M>>;
14
+ };
15
+ export declare class BaseRemoveRedirectApproverUpdater<Q extends RemoveRedirectApproverUpdaterType> extends UpdateableObject<Q, A, R, P, M> {
16
+ constructor(createBasketGQL: Q, modalService: BaseModalOpenerService);
17
+ protected getDataFromResult(results: ApolloQueryResult<R>): P;
18
+ }
19
+ export {};