@sabstravtech/obtservices 0.2.2601230900 → 0.2.2602271010

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.
@@ -416,6 +416,7 @@ export declare enum BasketItemStatus {
416
416
  Cancelled = "CANCELLED",
417
417
  Open = "OPEN",
418
418
  PartiallyCancelled = "PARTIALLY_CANCELLED",
419
+ ProvisionallyCancelled = "PROVISIONALLY_CANCELLED",
419
420
  Requested = "REQUESTED"
420
421
  }
421
422
  export type BasketItemTotalPrice = {
@@ -2421,6 +2422,7 @@ export type HotelRoom = {
2421
2422
  officePreferredMessage?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2422
2423
  paymentTypes?: Maybe<Array<Maybe<FieldWrapper<HotelPaymentType>>>>;
2423
2424
  policies: FieldWrapper<HotelPolicy>;
2425
+ policyToken?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2424
2426
  prpn: FieldWrapper<Scalars['Float']['output']>;
2425
2427
  rateCode?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2426
2428
  rateDescription?: Maybe<FieldWrapper<Scalars['String']['output']>>;
@@ -2445,6 +2447,7 @@ export type HotelSearchResult = {
2445
2447
  __typename?: 'HotelSearchResult';
2446
2448
  errors: Array<FieldWrapper<SearchError>>;
2447
2449
  results?: Maybe<Array<Maybe<FieldWrapper<HotelItinerary>>>>;
2450
+ searchId?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2448
2451
  };
2449
2452
  export type HotelStaticTag = {
2450
2453
  __typename?: 'HotelStaticTag';
@@ -3302,6 +3305,7 @@ export type MutationAddItemToBasketArgs = {
3302
3305
  lowestPriceCurrency?: InputMaybe<CurrencyCode>;
3303
3306
  lowestPriceDetail?: InputMaybe<Scalars['JSON']['input']>;
3304
3307
  outboundDate: Scalars['DateTime']['input'];
3308
+ policyToken?: InputMaybe<Scalars['String']['input']>;
3305
3309
  price: Scalars['Float']['input'];
3306
3310
  quickAdd?: InputMaybe<Scalars['Boolean']['input']>;
3307
3311
  reasonKeys?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
@@ -4084,6 +4088,7 @@ export type QueryApplyJitFlightRulesArgs = {
4084
4088
  export type QueryApplyJitHotelRulesArgs = {
4085
4089
  data: Array<Scalars['JSON']['input']>;
4086
4090
  originalSearchQuery: Scalars['JSON']['input'];
4091
+ searchId?: InputMaybe<Scalars['String']['input']>;
4087
4092
  };
4088
4093
  export type QueryBeforeAmendCabSearchArgs = {
4089
4094
  basketItem: Scalars['ID']['input'];
@@ -7638,6 +7643,7 @@ export type ApplyJitFlightRulesQuery = {
7638
7643
  export type ApplyJitHotelRulesQueryVariables = Exact<{
7639
7644
  data: Array<Scalars['JSON']['input']> | Scalars['JSON']['input'];
7640
7645
  originalSearchQuery: Scalars['JSON']['input'];
7646
+ searchId?: InputMaybe<Scalars['String']['input']>;
7641
7647
  }>;
7642
7648
  export type ApplyJitHotelRulesQuery = {
7643
7649
  __typename?: 'Query';
@@ -9603,6 +9609,7 @@ export type AddItemToBasketMutationVariables = Exact<{
9603
9609
  reasonKeys?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
9604
9610
  approvalKeys?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
9605
9611
  agentOverrodeUnavailable?: InputMaybe<Scalars['Boolean']['input']>;
9612
+ policyToken?: InputMaybe<Scalars['String']['input']>;
9606
9613
  }>;
9607
9614
  export type AddItemToBasketMutation = {
9608
9615
  __typename?: 'Mutation';
@@ -22544,6 +22551,7 @@ export type RoomAvaliabilityFragment = {
22544
22551
  tmcPreferredLogoUrl?: string | null;
22545
22552
  unavailable: boolean;
22546
22553
  unavailableMessage?: string | null;
22554
+ policyToken?: string | null;
22547
22555
  requiresReasonKeys?: Array<string> | null;
22548
22556
  requiresReasonMessages?: Array<string> | null;
22549
22557
  requiresApprovalKeys?: Array<string> | null;
@@ -22625,6 +22633,7 @@ export type SearchHotelsQuery = {
22625
22633
  __typename?: 'Query';
22626
22634
  searchHotels: {
22627
22635
  __typename?: 'HotelSearchResult';
22636
+ searchId?: string | null;
22628
22637
  results?: Array<{
22629
22638
  __typename?: 'HotelItinerary';
22630
22639
  id: string;
@@ -22712,6 +22721,7 @@ export type SearchHotelsQuery = {
22712
22721
  tmcPreferredLogoUrl?: string | null;
22713
22722
  unavailable: boolean;
22714
22723
  unavailableMessage?: string | null;
22724
+ policyToken?: string | null;
22715
22725
  requiresReasonKeys?: Array<string> | null;
22716
22726
  requiresReasonMessages?: Array<string> | null;
22717
22727
  requiresApprovalKeys?: Array<string> | null;
@@ -34,6 +34,7 @@ export declare class HotelEnterpriseSearch<HQ_Q extends HotelQuoteFetcherType, H
34
34
  static readonly STORAGE_SESSION_RESULTS = "results_hotel";
35
35
  type: ServiceType;
36
36
  private travellers;
37
+ searchId: string;
37
38
  location_types: BehaviorSubject<LocationTypes[]>;
38
39
  offices: BehaviorSubject<LocationTypes[]>;
39
40
  lastActivePage: BehaviorSubject<number>;
@@ -18,6 +18,7 @@ export interface RailBasketItem {
18
18
  reasonKeys: string[];
19
19
  approvalKeys: string[];
20
20
  agentOverrodeUnavailable: boolean;
21
+ policyToken: string;
21
22
  }
22
23
  export interface RailBasketDetail {
23
24
  accountsList: AccountsList[];
@@ -11,6 +11,7 @@ export interface Unavailable {
11
11
  requiresReasonKeys: string[];
12
12
  unavailable: boolean;
13
13
  unavailableMessage: string;
14
+ policyToken: string;
14
15
  companyPreferred: boolean;
15
16
  companyPreferredMessage: string;
16
17
  officePreferred: boolean;
@@ -6,7 +6,7 @@ import { ApolloQueryResult } from '@apollo/client/core';
6
6
  import { BaseHelperRoutines } from '../classes/helpers';
7
7
  import { FetchableList } from '../fetchers/list-fetchable-enterprise';
8
8
  import { BaseModalOpenerService } from '../services/modal-opener.service';
9
- import { Observable } from 'rxjs';
9
+ import { Observable, Subject } from 'rxjs';
10
10
  import * as Types from '../types/graphql.types';
11
11
  import * as CustomTypes from '../types/types';
12
12
  type FastTrackQuote_R = {
@@ -87,6 +87,7 @@ export declare class BaseCarhireQuoteFetcher<Q extends CarHireFetcherType> exten
87
87
  type SearchHotels_R = {
88
88
  searchHotels: {
89
89
  results: SearchHotels_P;
90
+ searchId?: string;
90
91
  };
91
92
  };
92
93
  type SearchHotels_P = CustomTypes.HotelQuoteResultArray;
@@ -96,6 +97,7 @@ export type HotelQuoteFetcherType = {
96
97
  fetch: (a: SearchHotels_A) => Observable<ApolloQueryResult<SearchHotels_M>>;
97
98
  };
98
99
  export declare class BaseHotelQuoteFetcher<Q extends HotelQuoteFetcherType> extends FetchableList<Q, SearchHotels_A, SearchHotels_R, SearchHotels_P, SearchHotels_M> {
100
+ searchId$: Subject<string>;
99
101
  constructor(gql: Q, helpers: BaseHelperRoutines, modalService: BaseModalOpenerService);
100
102
  protected getDataFromResult(results: ApolloQueryResult<SearchHotels_R>): SearchHotels_P;
101
103
  }
@@ -414,6 +414,7 @@ export declare enum BasketItemStatus {
414
414
  Cancelled = "CANCELLED",
415
415
  Open = "OPEN",
416
416
  PartiallyCancelled = "PARTIALLY_CANCELLED",
417
+ ProvisionallyCancelled = "PROVISIONALLY_CANCELLED",
417
418
  Requested = "REQUESTED"
418
419
  }
419
420
  export type BasketItemTotalPrice = {
@@ -2419,6 +2420,7 @@ export type HotelRoom = {
2419
2420
  officePreferredMessage?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2420
2421
  paymentTypes?: Maybe<Array<Maybe<FieldWrapper<HotelPaymentType>>>>;
2421
2422
  policies: FieldWrapper<HotelPolicy>;
2423
+ policyToken?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2422
2424
  prpn: FieldWrapper<Scalars['Float']['output']>;
2423
2425
  rateCode?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2424
2426
  rateDescription?: Maybe<FieldWrapper<Scalars['String']['output']>>;
@@ -2443,6 +2445,7 @@ export type HotelSearchResult = {
2443
2445
  __typename?: 'HotelSearchResult';
2444
2446
  errors: Array<FieldWrapper<SearchError>>;
2445
2447
  results?: Maybe<Array<Maybe<FieldWrapper<HotelItinerary>>>>;
2448
+ searchId?: Maybe<FieldWrapper<Scalars['String']['output']>>;
2446
2449
  };
2447
2450
  export type HotelStaticTag = {
2448
2451
  __typename?: 'HotelStaticTag';
@@ -3300,6 +3303,7 @@ export type MutationAddItemToBasketArgs = {
3300
3303
  lowestPriceCurrency?: InputMaybe<CurrencyCode>;
3301
3304
  lowestPriceDetail?: InputMaybe<Scalars['JSON']['input']>;
3302
3305
  outboundDate: Scalars['DateTime']['input'];
3306
+ policyToken?: InputMaybe<Scalars['String']['input']>;
3303
3307
  price: Scalars['Float']['input'];
3304
3308
  quickAdd?: InputMaybe<Scalars['Boolean']['input']>;
3305
3309
  reasonKeys?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
@@ -4082,6 +4086,7 @@ export type QueryApplyJitFlightRulesArgs = {
4082
4086
  export type QueryApplyJitHotelRulesArgs = {
4083
4087
  data: Array<Scalars['JSON']['input']>;
4084
4088
  originalSearchQuery: Scalars['JSON']['input'];
4089
+ searchId?: InputMaybe<Scalars['String']['input']>;
4085
4090
  };
4086
4091
  export type QueryBeforeAmendCabSearchArgs = {
4087
4092
  basketItem: Scalars['ID']['input'];
@@ -7636,6 +7641,7 @@ export type ApplyJitFlightRulesQuery = {
7636
7641
  export type ApplyJitHotelRulesQueryVariables = Exact<{
7637
7642
  data: Array<Scalars['JSON']['input']> | Scalars['JSON']['input'];
7638
7643
  originalSearchQuery: Scalars['JSON']['input'];
7644
+ searchId?: InputMaybe<Scalars['String']['input']>;
7639
7645
  }>;
7640
7646
  export type ApplyJitHotelRulesQuery = {
7641
7647
  __typename?: 'Query';
@@ -9601,6 +9607,7 @@ export type AddItemToBasketMutationVariables = Exact<{
9601
9607
  reasonKeys?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
9602
9608
  approvalKeys?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
9603
9609
  agentOverrodeUnavailable?: InputMaybe<Scalars['Boolean']['input']>;
9610
+ policyToken?: InputMaybe<Scalars['String']['input']>;
9604
9611
  }>;
9605
9612
  export type AddItemToBasketMutation = {
9606
9613
  __typename?: 'Mutation';
@@ -22542,6 +22549,7 @@ export type RoomAvaliabilityFragment = {
22542
22549
  tmcPreferredLogoUrl?: string | null;
22543
22550
  unavailable: boolean;
22544
22551
  unavailableMessage?: string | null;
22552
+ policyToken?: string | null;
22545
22553
  requiresReasonKeys?: Array<string> | null;
22546
22554
  requiresReasonMessages?: Array<string> | null;
22547
22555
  requiresApprovalKeys?: Array<string> | null;
@@ -22623,6 +22631,7 @@ export type SearchHotelsQuery = {
22623
22631
  __typename?: 'Query';
22624
22632
  searchHotels: {
22625
22633
  __typename?: 'HotelSearchResult';
22634
+ searchId?: string | null;
22626
22635
  results?: Array<{
22627
22636
  __typename?: 'HotelItinerary';
22628
22637
  id: string;
@@ -22710,6 +22719,7 @@ export type SearchHotelsQuery = {
22710
22719
  tmcPreferredLogoUrl?: string | null;
22711
22720
  unavailable: boolean;
22712
22721
  unavailableMessage?: string | null;
22722
+ policyToken?: string | null;
22713
22723
  requiresReasonKeys?: Array<string> | null;
22714
22724
  requiresReasonMessages?: Array<string> | null;
22715
22725
  requiresApprovalKeys?: Array<string> | null;
@@ -418,6 +418,7 @@ export type EurostarFare = {
418
418
  tmcPreferredLogoUrl: string;
419
419
  unavailable: boolean;
420
420
  unavailableMessage: string;
421
+ policyToken?: string;
421
422
  canSelect: boolean;
422
423
  journeyHash: string;
423
424
  };
@@ -440,6 +441,7 @@ export interface EurostarItem {
440
441
  timeArrivalOffset: number;
441
442
  departureCountryCode: string;
442
443
  arrivalCountryCode: string;
444
+ policyToken?: string;
443
445
  }
444
446
  export interface EurostarResults {
445
447
  outbound: EurostarItem[];
@@ -789,6 +791,7 @@ export interface RuleActionSummaryInterface {
789
791
  export interface RuleActionExtension {
790
792
  unavailable?: boolean;
791
793
  unavailableMessage?: string;
794
+ policyToken?: string;
792
795
  requiresReasonMessages?: string[];
793
796
  requiresReasonKeys?: string[];
794
797
  requiresApprovalKeys?: string[];
@@ -729,6 +729,7 @@ var BasketItemStatus;
729
729
  BasketItemStatus["Cancelled"] = "CANCELLED";
730
730
  BasketItemStatus["Open"] = "OPEN";
731
731
  BasketItemStatus["PartiallyCancelled"] = "PARTIALLY_CANCELLED";
732
+ BasketItemStatus["ProvisionallyCancelled"] = "PROVISIONALLY_CANCELLED";
732
733
  BasketItemStatus["Requested"] = "REQUESTED";
733
734
  })(BasketItemStatus || (BasketItemStatus = {}));
734
735
  /** BasketStatus */
@@ -2907,6 +2908,7 @@ const RoomAvaliabilityFragmentDoc = gql `
2907
2908
  tmcPreferredLogoUrl
2908
2909
  unavailable
2909
2910
  unavailableMessage
2911
+ policyToken
2910
2912
  requiresReasonKeys
2911
2913
  requiresReasonMessages
2912
2914
  requiresApprovalKeys
@@ -3886,8 +3888,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
3886
3888
  }]
3887
3889
  }], ctorParameters: () => [{ type: i1.Apollo }] });
3888
3890
  const ApplyJitHotelRulesDocument = gql `
3889
- query applyJITHotelRules($data: [JSON!]!, $originalSearchQuery: JSON!) {
3890
- applyJITHotelRules(data: $data, originalSearchQuery: $originalSearchQuery) {
3891
+ query applyJITHotelRules($data: [JSON!]!, $originalSearchQuery: JSON!, $searchId: String) {
3892
+ applyJITHotelRules(
3893
+ data: $data
3894
+ originalSearchQuery: $originalSearchQuery
3895
+ searchId: $searchId
3896
+ ) {
3891
3897
  result
3892
3898
  }
3893
3899
  }
@@ -4012,7 +4018,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
4012
4018
  }]
4013
4019
  }], ctorParameters: () => [{ type: i1.Apollo }] });
4014
4020
  const AddItemToBasketDocument = gql `
4015
- mutation addItemToBasket($convertCurrencyTo: String, $basket: ID, $service: ID!, $detail: JSON!, $adults: Int!, $children: Int, $infants: Int, $price: Float!, $currency: CurrencyCode!, $searchQuery: JSON!, $quickAdd: Boolean, $users: [UserPassengerTypeInput], $guests: [UserPassengerTypeInput], $leadPassenger: ID, $leadPassengerType: LeadPassengerType, $co2PerItem: Float, $co2PerPassenger: Float, $outboundDate: DateTime!, $inboundDate: DateTime, $lowestPrice: Float, $lowestPriceCurrency: CurrencyCode, $lowestPriceDetail: JSON, $reasonKeys: [String], $approvalKeys: [String], $agentOverrodeUnavailable: Boolean) {
4021
+ mutation addItemToBasket($convertCurrencyTo: String, $basket: ID, $service: ID!, $detail: JSON!, $adults: Int!, $children: Int, $infants: Int, $price: Float!, $currency: CurrencyCode!, $searchQuery: JSON!, $quickAdd: Boolean, $users: [UserPassengerTypeInput], $guests: [UserPassengerTypeInput], $leadPassenger: ID, $leadPassengerType: LeadPassengerType, $co2PerItem: Float, $co2PerPassenger: Float, $outboundDate: DateTime!, $inboundDate: DateTime, $lowestPrice: Float, $lowestPriceCurrency: CurrencyCode, $lowestPriceDetail: JSON, $reasonKeys: [String], $approvalKeys: [String], $agentOverrodeUnavailable: Boolean, $policyToken: String) {
4016
4022
  addItemToBasket(
4017
4023
  convertCurrencyTo: $convertCurrencyTo
4018
4024
  basket: $basket
@@ -4039,6 +4045,7 @@ const AddItemToBasketDocument = gql `
4039
4045
  reasonKeys: $reasonKeys
4040
4046
  approvalKeys: $approvalKeys
4041
4047
  agentOverrodeUnavailable: $agentOverrodeUnavailable
4048
+ policyToken: $policyToken
4042
4049
  ) {
4043
4050
  ...AddToBasketFields
4044
4051
  }
@@ -10115,6 +10122,7 @@ const SearchHotelsDocument = gql `
10115
10122
  errors {
10116
10123
  ...Errors
10117
10124
  }
10125
+ searchId
10118
10126
  }
10119
10127
  }
10120
10128
  ${RoomAvaliabilityFragmentDoc}
@@ -16603,8 +16611,7 @@ class RailFareProcessingService {
16603
16611
  Object.values(fareType).forEach((fareArray) => {
16604
16612
  fareArray?.forEach(fare => {
16605
16613
  if (fare?.class === ticketClass &&
16606
- (fare?.singleOrReturn === singleOrReturn ||
16607
- (singleOrReturn === 'Return' && fare?.singleOrReturn))) {
16614
+ (fare?.singleOrReturn === singleOrReturn)) {
16608
16615
  allTickets.push(fare);
16609
16616
  }
16610
16617
  });