@sabstravtech/obtservices 0.2.2512101420 → 0.2.2601130820

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.
@@ -12511,6 +12511,7 @@ export type FlightItineraryFieldsFragment = {
12511
12511
  marriageGroup?: boolean | null;
12512
12512
  fareBasisCode?: string | null;
12513
12513
  additional?: any | null;
12514
+ segmentGroup?: number | null;
12514
12515
  fareInfo?: {
12515
12516
  __typename?: 'FlightSpecialFareInfo';
12516
12517
  title: string;
@@ -12687,6 +12688,7 @@ export type FlightItineraryFieldsFragment = {
12687
12688
  marriageGroup?: boolean | null;
12688
12689
  fareBasisCode?: string | null;
12689
12690
  additional?: any | null;
12691
+ segmentGroup?: number | null;
12690
12692
  fareInfo?: {
12691
12693
  __typename?: 'FlightSpecialFareInfo';
12692
12694
  title: string;
@@ -14397,6 +14399,7 @@ export type GetFlightExchangeDetailsQuery = {
14397
14399
  marriageGroup?: boolean | null;
14398
14400
  fareBasisCode?: string | null;
14399
14401
  additional?: any | null;
14402
+ segmentGroup?: number | null;
14400
14403
  fareInfo?: {
14401
14404
  __typename?: 'FlightSpecialFareInfo';
14402
14405
  title: string;
@@ -14573,6 +14576,7 @@ export type GetFlightExchangeDetailsQuery = {
14573
14576
  marriageGroup?: boolean | null;
14574
14577
  fareBasisCode?: string | null;
14575
14578
  additional?: any | null;
14579
+ segmentGroup?: number | null;
14576
14580
  fareInfo?: {
14577
14581
  __typename?: 'FlightSpecialFareInfo';
14578
14582
  title: string;
@@ -15026,6 +15030,7 @@ export type GetFlightSearchExchangeQuery = {
15026
15030
  marriageGroup?: boolean | null;
15027
15031
  fareBasisCode?: string | null;
15028
15032
  additional?: any | null;
15033
+ segmentGroup?: number | null;
15029
15034
  fareInfo?: {
15030
15035
  __typename?: 'FlightSpecialFareInfo';
15031
15036
  title: string;
@@ -15202,6 +15207,7 @@ export type GetFlightSearchExchangeQuery = {
15202
15207
  marriageGroup?: boolean | null;
15203
15208
  fareBasisCode?: string | null;
15204
15209
  additional?: any | null;
15210
+ segmentGroup?: number | null;
15205
15211
  fareInfo?: {
15206
15212
  __typename?: 'FlightSpecialFareInfo';
15207
15213
  title: string;
@@ -15507,6 +15513,7 @@ export type GetFlightSearchExchangeQuery = {
15507
15513
  marriageGroup?: boolean | null;
15508
15514
  fareBasisCode?: string | null;
15509
15515
  additional?: any | null;
15516
+ segmentGroup?: number | null;
15510
15517
  fareInfo?: {
15511
15518
  __typename?: 'FlightSpecialFareInfo';
15512
15519
  title: string;
@@ -15683,6 +15690,7 @@ export type GetFlightSearchExchangeQuery = {
15683
15690
  marriageGroup?: boolean | null;
15684
15691
  fareBasisCode?: string | null;
15685
15692
  additional?: any | null;
15693
+ segmentGroup?: number | null;
15686
15694
  fareInfo?: {
15687
15695
  __typename?: 'FlightSpecialFareInfo';
15688
15696
  title: string;
@@ -21772,6 +21780,10 @@ export type GetUserAddressesQuery = {
21772
21780
  countryCode?: string | null;
21773
21781
  userPrimary?: boolean | null;
21774
21782
  officePrimary?: boolean | null;
21783
+ companyPrimary?: boolean | null;
21784
+ user?: string | null;
21785
+ office?: string | null;
21786
+ company?: string | null;
21775
21787
  latitude?: number | null;
21776
21788
  longitude?: number | null;
21777
21789
  }>;
@@ -27293,6 +27305,7 @@ export type SearchEurostarQuery = {
27293
27305
  marriageGroup?: boolean | null;
27294
27306
  fareBasisCode?: string | null;
27295
27307
  additional?: any | null;
27308
+ segmentGroup?: number | null;
27296
27309
  fareInfo?: {
27297
27310
  __typename?: 'FlightSpecialFareInfo';
27298
27311
  title: string;
@@ -27469,6 +27482,7 @@ export type SearchEurostarQuery = {
27469
27482
  marriageGroup?: boolean | null;
27470
27483
  fareBasisCode?: string | null;
27471
27484
  additional?: any | null;
27485
+ segmentGroup?: number | null;
27472
27486
  fareInfo?: {
27473
27487
  __typename?: 'FlightSpecialFareInfo';
27474
27488
  title: string;
@@ -27774,6 +27788,7 @@ export type SearchEurostarQuery = {
27774
27788
  marriageGroup?: boolean | null;
27775
27789
  fareBasisCode?: string | null;
27776
27790
  additional?: any | null;
27791
+ segmentGroup?: number | null;
27777
27792
  fareInfo?: {
27778
27793
  __typename?: 'FlightSpecialFareInfo';
27779
27794
  title: string;
@@ -27950,6 +27965,7 @@ export type SearchEurostarQuery = {
27950
27965
  marriageGroup?: boolean | null;
27951
27966
  fareBasisCode?: string | null;
27952
27967
  additional?: any | null;
27968
+ segmentGroup?: number | null;
27953
27969
  fareInfo?: {
27954
27970
  __typename?: 'FlightSpecialFareInfo';
27955
27971
  title: string;
@@ -28397,6 +28413,7 @@ export type SearchFlightsV2Query = {
28397
28413
  marriageGroup?: boolean | null;
28398
28414
  fareBasisCode?: string | null;
28399
28415
  additional?: any | null;
28416
+ segmentGroup?: number | null;
28400
28417
  fareInfo?: {
28401
28418
  __typename?: 'FlightSpecialFareInfo';
28402
28419
  title: string;
@@ -28573,6 +28590,7 @@ export type SearchFlightsV2Query = {
28573
28590
  marriageGroup?: boolean | null;
28574
28591
  fareBasisCode?: string | null;
28575
28592
  additional?: any | null;
28593
+ segmentGroup?: number | null;
28576
28594
  fareInfo?: {
28577
28595
  __typename?: 'FlightSpecialFareInfo';
28578
28596
  title: string;
@@ -28878,6 +28896,7 @@ export type SearchFlightsV2Query = {
28878
28896
  marriageGroup?: boolean | null;
28879
28897
  fareBasisCode?: string | null;
28880
28898
  additional?: any | null;
28899
+ segmentGroup?: number | null;
28881
28900
  fareInfo?: {
28882
28901
  __typename?: 'FlightSpecialFareInfo';
28883
28902
  title: string;
@@ -29054,6 +29073,7 @@ export type SearchFlightsV2Query = {
29054
29073
  marriageGroup?: boolean | null;
29055
29074
  fareBasisCode?: string | null;
29056
29075
  additional?: any | null;
29076
+ segmentGroup?: number | null;
29057
29077
  fareInfo?: {
29058
29078
  __typename?: 'FlightSpecialFareInfo';
29059
29079
  title: string;
@@ -7,5 +7,6 @@ export * from './date-helpers';
7
7
  export * from './traveller-helpers';
8
8
  export * from './calendar-helpers';
9
9
  export * from './misc-helpers';
10
+ export * from './flight-helpers';
10
11
  export * from './rail-helpers';
11
12
  export * from './search-helpers';
@@ -176,15 +176,6 @@ export declare function removeResultsDualSingle(item: FlightItineraryWithExtensi
176
176
  * @returns True if unavailable
177
177
  */
178
178
  export declare function unavailableDualSingle(item: FlightItineraryWithExtensions, selectedUId: string, ruleActionSummary: RuleActionSummaryInterface): boolean;
179
- /**
180
- * Gets unavailable message for dual/single flight combinations.
181
- *
182
- * @param item - Flight itinerary item
183
- * @param selectedUId - Selected outbound flight UID
184
- * @param ruleActionSummary - Rule action summary with dual/single rules
185
- * @returns Unavailable message or empty string
186
- */
187
- export declare function unavailableMessageDualSingle(item: FlightItineraryWithExtensions, selectedUId: string, ruleActionSummary: RuleActionSummaryInterface): string;
188
179
  /**
189
180
  * Finds a service by ID from user services object.
190
181
  *
@@ -12509,6 +12509,7 @@ export type FlightItineraryFieldsFragment = {
12509
12509
  marriageGroup?: boolean | null;
12510
12510
  fareBasisCode?: string | null;
12511
12511
  additional?: any | null;
12512
+ segmentGroup?: number | null;
12512
12513
  fareInfo?: {
12513
12514
  __typename?: 'FlightSpecialFareInfo';
12514
12515
  title: string;
@@ -12685,6 +12686,7 @@ export type FlightItineraryFieldsFragment = {
12685
12686
  marriageGroup?: boolean | null;
12686
12687
  fareBasisCode?: string | null;
12687
12688
  additional?: any | null;
12689
+ segmentGroup?: number | null;
12688
12690
  fareInfo?: {
12689
12691
  __typename?: 'FlightSpecialFareInfo';
12690
12692
  title: string;
@@ -14395,6 +14397,7 @@ export type GetFlightExchangeDetailsQuery = {
14395
14397
  marriageGroup?: boolean | null;
14396
14398
  fareBasisCode?: string | null;
14397
14399
  additional?: any | null;
14400
+ segmentGroup?: number | null;
14398
14401
  fareInfo?: {
14399
14402
  __typename?: 'FlightSpecialFareInfo';
14400
14403
  title: string;
@@ -14571,6 +14574,7 @@ export type GetFlightExchangeDetailsQuery = {
14571
14574
  marriageGroup?: boolean | null;
14572
14575
  fareBasisCode?: string | null;
14573
14576
  additional?: any | null;
14577
+ segmentGroup?: number | null;
14574
14578
  fareInfo?: {
14575
14579
  __typename?: 'FlightSpecialFareInfo';
14576
14580
  title: string;
@@ -15024,6 +15028,7 @@ export type GetFlightSearchExchangeQuery = {
15024
15028
  marriageGroup?: boolean | null;
15025
15029
  fareBasisCode?: string | null;
15026
15030
  additional?: any | null;
15031
+ segmentGroup?: number | null;
15027
15032
  fareInfo?: {
15028
15033
  __typename?: 'FlightSpecialFareInfo';
15029
15034
  title: string;
@@ -15200,6 +15205,7 @@ export type GetFlightSearchExchangeQuery = {
15200
15205
  marriageGroup?: boolean | null;
15201
15206
  fareBasisCode?: string | null;
15202
15207
  additional?: any | null;
15208
+ segmentGroup?: number | null;
15203
15209
  fareInfo?: {
15204
15210
  __typename?: 'FlightSpecialFareInfo';
15205
15211
  title: string;
@@ -15505,6 +15511,7 @@ export type GetFlightSearchExchangeQuery = {
15505
15511
  marriageGroup?: boolean | null;
15506
15512
  fareBasisCode?: string | null;
15507
15513
  additional?: any | null;
15514
+ segmentGroup?: number | null;
15508
15515
  fareInfo?: {
15509
15516
  __typename?: 'FlightSpecialFareInfo';
15510
15517
  title: string;
@@ -15681,6 +15688,7 @@ export type GetFlightSearchExchangeQuery = {
15681
15688
  marriageGroup?: boolean | null;
15682
15689
  fareBasisCode?: string | null;
15683
15690
  additional?: any | null;
15691
+ segmentGroup?: number | null;
15684
15692
  fareInfo?: {
15685
15693
  __typename?: 'FlightSpecialFareInfo';
15686
15694
  title: string;
@@ -21770,6 +21778,10 @@ export type GetUserAddressesQuery = {
21770
21778
  countryCode?: string | null;
21771
21779
  userPrimary?: boolean | null;
21772
21780
  officePrimary?: boolean | null;
21781
+ companyPrimary?: boolean | null;
21782
+ user?: string | null;
21783
+ office?: string | null;
21784
+ company?: string | null;
21773
21785
  latitude?: number | null;
21774
21786
  longitude?: number | null;
21775
21787
  }>;
@@ -27291,6 +27303,7 @@ export type SearchEurostarQuery = {
27291
27303
  marriageGroup?: boolean | null;
27292
27304
  fareBasisCode?: string | null;
27293
27305
  additional?: any | null;
27306
+ segmentGroup?: number | null;
27294
27307
  fareInfo?: {
27295
27308
  __typename?: 'FlightSpecialFareInfo';
27296
27309
  title: string;
@@ -27467,6 +27480,7 @@ export type SearchEurostarQuery = {
27467
27480
  marriageGroup?: boolean | null;
27468
27481
  fareBasisCode?: string | null;
27469
27482
  additional?: any | null;
27483
+ segmentGroup?: number | null;
27470
27484
  fareInfo?: {
27471
27485
  __typename?: 'FlightSpecialFareInfo';
27472
27486
  title: string;
@@ -27772,6 +27786,7 @@ export type SearchEurostarQuery = {
27772
27786
  marriageGroup?: boolean | null;
27773
27787
  fareBasisCode?: string | null;
27774
27788
  additional?: any | null;
27789
+ segmentGroup?: number | null;
27775
27790
  fareInfo?: {
27776
27791
  __typename?: 'FlightSpecialFareInfo';
27777
27792
  title: string;
@@ -27948,6 +27963,7 @@ export type SearchEurostarQuery = {
27948
27963
  marriageGroup?: boolean | null;
27949
27964
  fareBasisCode?: string | null;
27950
27965
  additional?: any | null;
27966
+ segmentGroup?: number | null;
27951
27967
  fareInfo?: {
27952
27968
  __typename?: 'FlightSpecialFareInfo';
27953
27969
  title: string;
@@ -28395,6 +28411,7 @@ export type SearchFlightsV2Query = {
28395
28411
  marriageGroup?: boolean | null;
28396
28412
  fareBasisCode?: string | null;
28397
28413
  additional?: any | null;
28414
+ segmentGroup?: number | null;
28398
28415
  fareInfo?: {
28399
28416
  __typename?: 'FlightSpecialFareInfo';
28400
28417
  title: string;
@@ -28571,6 +28588,7 @@ export type SearchFlightsV2Query = {
28571
28588
  marriageGroup?: boolean | null;
28572
28589
  fareBasisCode?: string | null;
28573
28590
  additional?: any | null;
28591
+ segmentGroup?: number | null;
28574
28592
  fareInfo?: {
28575
28593
  __typename?: 'FlightSpecialFareInfo';
28576
28594
  title: string;
@@ -28876,6 +28894,7 @@ export type SearchFlightsV2Query = {
28876
28894
  marriageGroup?: boolean | null;
28877
28895
  fareBasisCode?: string | null;
28878
28896
  additional?: any | null;
28897
+ segmentGroup?: number | null;
28879
28898
  fareInfo?: {
28880
28899
  __typename?: 'FlightSpecialFareInfo';
28881
28900
  title: string;
@@ -29052,6 +29071,7 @@ export type SearchFlightsV2Query = {
29052
29071
  marriageGroup?: boolean | null;
29053
29072
  fareBasisCode?: string | null;
29054
29073
  additional?: any | null;
29074
+ segmentGroup?: number | null;
29055
29075
  fareInfo?: {
29056
29076
  __typename?: 'FlightSpecialFareInfo';
29057
29077
  title: string;
@@ -138,7 +138,7 @@ class HelperRoutines extends BaseHelperRoutines {
138
138
  if (value.type === SchemaFormat.object) {
139
139
  current[key] = this.makeSchema(value);
140
140
  }
141
- else if (data?.required?.includes(key) &&
141
+ else if ((data?.required?.includes(key) || key === "ticketDeliveryOption") &&
142
142
  value.type !== SchemaFormat.boolean &&
143
143
  key !== SchemaFormat.passport) {
144
144
  let validators = [Validators.required];
@@ -648,11 +648,22 @@ class WithSubscriptionComponent {
648
648
  this.subSink.unsubscribe();
649
649
  }
650
650
  subscribe(observable, observerOrNext, error, complete) {
651
- const subscription = observable.subscribe({
652
- next: observerOrNext,
653
- error,
654
- complete
655
- });
651
+ let subscription;
652
+ if (typeof observerOrNext === 'function') {
653
+ // It's a callback function
654
+ subscription = observable.subscribe({
655
+ next: observerOrNext,
656
+ error,
657
+ complete
658
+ });
659
+ }
660
+ else if (observerOrNext) {
661
+ // It's already an observer object
662
+ subscription = observable.subscribe(observerOrNext);
663
+ }
664
+ else {
665
+ subscription = observable.subscribe();
666
+ }
656
667
  // Ensure that `this.subSink` is defined and correctly adds the subscription
657
668
  this.subSink.add(subscription);
658
669
  return subscription; // Return the original subscription
@@ -2277,6 +2288,7 @@ const FlightItineraryFieldsFragmentDoc = gql `
2277
2288
  marriageGroup
2278
2289
  fareBasisCode
2279
2290
  additional
2291
+ segmentGroup
2280
2292
  hiddenStops {
2281
2293
  airport
2282
2294
  destination
@@ -2440,6 +2452,7 @@ const FlightItineraryFieldsFragmentDoc = gql `
2440
2452
  marriageGroup
2441
2453
  fareBasisCode
2442
2454
  additional
2455
+ segmentGroup
2443
2456
  hiddenStops {
2444
2457
  airport
2445
2458
  destination
@@ -9627,6 +9640,10 @@ const GetUserAddressesDocument = gql `
9627
9640
  countryCode
9628
9641
  userPrimary
9629
9642
  officePrimary
9643
+ companyPrimary
9644
+ user
9645
+ office
9646
+ company
9630
9647
  latitude
9631
9648
  longitude
9632
9649
  }