@sabstravtech/obtservices 0.2.2511121920 → 0.2.2511200338

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.
@@ -3367,6 +3367,7 @@ export type MutationBookBasketArgs = {
3367
3367
  convertCurrencyTo?: InputMaybe<Scalars['String']['input']>;
3368
3368
  forValidation?: InputMaybe<Scalars['Boolean']['input']>;
3369
3369
  id: Scalars['ID']['input'];
3370
+ notificationOptIn?: InputMaybe<Scalars['Boolean']['input']>;
3370
3371
  supplementaryInfo?: InputMaybe<Array<SupplementaryBookingInfo>>;
3371
3372
  };
3372
3373
  export type MutationCancelBookingArgs = {
@@ -13005,6 +13006,7 @@ export type BookBasketMutationVariables = Exact<{
13005
13006
  id: Scalars['ID']['input'];
13006
13007
  supplementaryInfo: Array<SupplementaryBookingInfo> | SupplementaryBookingInfo;
13007
13008
  additionalEmail?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
13009
+ notificationOptIn?: InputMaybe<Scalars['Boolean']['input']>;
13008
13010
  approverNotes?: InputMaybe<Scalars['String']['input']>;
13009
13011
  }>;
13010
13012
  export type BookBasketMutation = {
@@ -35,7 +35,7 @@ export declare class BookableBasket {
35
35
  }): Promise<void>;
36
36
  removeExpiredItems(): void;
37
37
  setBasketItemPaymentOption(basketItem: BasketItem, paymentMethod: string): Promise<void>;
38
- bookBasket(results: SupplementaryBookingInfo[], additionalEmail: string[], approverNotes?: string): Promise<void>;
38
+ bookBasket(results: SupplementaryBookingInfo[], additionalEmail: string[], notificationOptIn?: boolean, approverNotes?: string): Promise<void>;
39
39
  private _needsMiGroups;
40
40
  private _needsCorrectTravellers;
41
41
  private _hasInvalidPrice;
@@ -75,7 +75,7 @@ export interface EnterpriseBasketServiceInterface {
75
75
  copyInfo: CopyInfoInput[];
76
76
  }, withSupplemental?: boolean): void;
77
77
  setBasketItemMultipleMIValue(basketId: string, basketItemMultipleMIValue: SetMiValuesMutationVariables): Promise<void>;
78
- bookBasket(basketid: string, supplementaryInfo: SupplementaryBookingInfo[], additionalEmail: string[], approverNotes?: string): Promise<void>;
78
+ bookBasket(basketid: string, supplementaryInfo: SupplementaryBookingInfo[], additionalEmail: string[], notificationOptIn?: boolean, approverNotes?: string): Promise<void>;
79
79
  getBasket(query: {
80
80
  convertCurrencyTo: string;
81
81
  id: string;
@@ -308,7 +308,8 @@ export declare abstract class BaseEnterpriseBasketService<ANPU_Q extends AcceptN
308
308
  setMiValues(isReassign: boolean, basketItemMIValues: SetMiValueInput | SetMiValueInput[]): Promise<void>;
309
309
  setBasketItemPaymentOption(basket: BasketDetails, basketItem: BasketItem, paymentMethod: string): Promise<void>;
310
310
  setBasketItemPaymentOptionNoUpdate(basketItem: BasketItem, paymentMethod: string): Observable<BasketDetails>;
311
- bookBasket(basketid: string, supplementaryInfo: SupplementaryBookingInfo[], additionalEmail: string[], approverNotes?: string): Promise<void>;
311
+ bookBasket(basketid: string, supplementaryInfo: SupplementaryBookingInfo[], additionalEmail: string[], notificationOptIn?: boolean, // <-- ADD THIS PARAMETER
312
+ approverNotes?: string): Promise<void>;
312
313
  moveBasketItem(originalBasketId: string, basketItem: BasketItem, basketIdToMoveTo: string): void;
313
314
  updateBasketNotes(basketId: string, notes: string): void;
314
315
  updateBasketTitle(basketId: string, title: string): void;
@@ -7,14 +7,15 @@ export type Required = Record<string, BasketItemManagementInfo[]>;
7
7
  export type RequiresReasonType = {
8
8
  basket: UserBasketResult;
9
9
  required: Required;
10
+ isDualSingleFlight?: boolean;
10
11
  };
11
12
  export interface RequiresReasonServiceInterface {
12
13
  currentBasketid: string;
13
14
  reasonChecked: BehaviorSubject<ReasonCheckedInterface>;
14
- reasonSelected: BehaviorSubject<Boolean>;
15
+ reasonSelected: BehaviorSubject<boolean>;
15
16
  isReasonCancel: boolean;
16
17
  isBooking: boolean;
17
- isReadyToBook: BehaviorSubject<Boolean>;
18
+ isReadyToBook: BehaviorSubject<boolean>;
18
19
  }
19
20
  export interface ReasonCheckedInterface {
20
21
  basketId: string;
@@ -25,12 +26,18 @@ export declare class BaseRequiresReasonService implements RequiresReasonServiceI
25
26
  private basketService;
26
27
  currentBasketid: string;
27
28
  private workingOn;
29
+ private processedDualSingleBasketItems;
30
+ private pendingDualSingleBasketItem;
28
31
  reasonChecked: BehaviorSubject<ReasonCheckedInterface>;
29
- reasonSelected: BehaviorSubject<Boolean>;
32
+ reasonSelected: BehaviorSubject<boolean>;
30
33
  isReasonCancel: boolean;
31
34
  isBooking: boolean;
32
- isReadyToBook: BehaviorSubject<Boolean>;
35
+ isReadyToBook: BehaviorSubject<boolean>;
33
36
  constructor(modalService: BaseModalOpenerService, basketService: EnterpriseBasketServiceInterface);
37
+ private isDualSingleFlight;
38
+ private isFirstLegOfDualSingle;
39
+ private getFilteredManagementInfo;
40
+ private buildWorkingOnForItems;
34
41
  addBasketItem(basket: UserBasketResult, basketItemId: string): Promise<void>;
35
42
  showDialogueWithNewData(workingOn: RequiresReasonType): Promise<void>;
36
43
  reasonKeysOverlap(biReasonKeys: string[], miReasonKeys: string[]): boolean;
@@ -3365,6 +3365,7 @@ export type MutationBookBasketArgs = {
3365
3365
  convertCurrencyTo?: InputMaybe<Scalars['String']['input']>;
3366
3366
  forValidation?: InputMaybe<Scalars['Boolean']['input']>;
3367
3367
  id: Scalars['ID']['input'];
3368
+ notificationOptIn?: InputMaybe<Scalars['Boolean']['input']>;
3368
3369
  supplementaryInfo?: InputMaybe<Array<SupplementaryBookingInfo>>;
3369
3370
  };
3370
3371
  export type MutationCancelBookingArgs = {
@@ -13003,6 +13004,7 @@ export type BookBasketMutationVariables = Exact<{
13003
13004
  id: Scalars['ID']['input'];
13004
13005
  supplementaryInfo: Array<SupplementaryBookingInfo> | SupplementaryBookingInfo;
13005
13006
  additionalEmail?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>> | InputMaybe<Scalars['String']['input']>>;
13007
+ notificationOptIn?: InputMaybe<Scalars['Boolean']['input']>;
13006
13008
  approverNotes?: InputMaybe<Scalars['String']['input']>;
13007
13009
  }>;
13008
13010
  export type BookBasketMutation = {
@@ -992,22 +992,32 @@ export interface FavouriteGuest extends Guest {
992
992
  }
993
993
  export declare enum MealType {
994
994
  None = "None",
995
- VGML = "Vegetarian-Vegan",
996
- VOML = "Asian Vegetarian",
997
- RVML = "Raw Vegetarian/Vegan",
995
+ AVML = "Asian Vegetarian",
996
+ BLML = "Bland",
997
+ CHML = "Child",
998
+ DBML = "Diabetic",
998
999
  FPML = "Fruit Plate",
999
- SFML = "Seafood",
1000
- KSML = "Kosher",
1001
- MOML = "Muslim",
1000
+ FSML = "Fish",
1001
+ GFML = "Gluten intolerant",
1002
1002
  HNML = "Hindu",
1003
+ IVML = "Indian Vegetarian",
1004
+ JPML = "Japanese",
1005
+ KSML = "Kosher",
1006
+ KVML = "Kosher Vegetarian",
1007
+ LCML = "Low Calorie",
1003
1008
  LFML = "Low Fat/Cholesterol",
1004
- VLML = "Vegetarian Lacto-Ovo",
1005
1009
  LSML = "Low Sodium",
1006
- GFML = "Gluten intolerant",
1007
- DBML = "Diabetic",
1010
+ MOML = "Muslim",
1011
+ NFML = "No Fish",
1008
1012
  NLML = "Non-Lactose",
1009
- CHML = "Child",
1010
- BLML = "Bland"
1013
+ NSML = "No Salt",
1014
+ PFML = "Peanuts Free",
1015
+ RVML = "Raw Vegetarian/Vegan",
1016
+ SFML = "Seafood",
1017
+ VGML = "Vegetarian-Vegan",
1018
+ VJML = "Vegetarian Jain",
1019
+ VLML = "Vegetarian Lacto-Ovo",
1020
+ VOML = "Vegetarian Oriental"
1011
1021
  }
1012
1022
  export declare enum SpecialNeeds {
1013
1023
  None = "None",