@sabstravtech/obtservices 0.2.2510281616 → 0.2.2510291250

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.
@@ -5,7 +5,6 @@ import { BasketItem, HotelRoom, HotelTag, SearchHotelsQueryVariables, ServiceTyp
5
5
  import { BaseEnterpriseSearch } from '../classes/base-enterprise';
6
6
  import { ICheapestPrice } from './cheapest-price';
7
7
  import { Traveller } from '../models/traveller.object';
8
- import { EventEmitter } from '@angular/core';
9
8
  export interface HotelTempParams {
10
9
  location_type_select: LocationTypes;
11
10
  checkin_date: moment.Moment;
@@ -75,7 +74,7 @@ export declare enum HotelDetailTypes {
75
74
  }
76
75
  export interface HotelViewController {
77
76
  showMap: boolean;
78
- ratesUpdated: EventEmitter<boolean>;
77
+ ratesUpdated: Subject<boolean>;
79
78
  filterChange: any;
80
79
  hotelChosen: boolean;
81
80
  filtered: boolean;
@@ -56,7 +56,6 @@ import { BaseValidateBasketMiFetcher, ValidateBasketMiFetcher } from '../fetcher
56
56
  import { BaseValidateBasketItemMiFetcher, ValidateBasketItemMiFetcher } from '../fetchers/validate-basket-item-mi.fetcher';
57
57
  import { BaseSetMIValuesUpdater, SetMIValuesUpdater } from '../updaters/set-mi-values.updater';
58
58
  import { BaseStorageService } from './storage.service';
59
- import { EventEmitter } from '@angular/core';
60
59
  import { BaseBeforeAmendCabSearchQuoteFetcher, BeforeAmendCabSearchQuoteFetcherType } from '../fetchers/before-amend-cab-search-quote-fetcher';
61
60
  import { BaseSendBackToQueueUpdater, SendBackToQueueMutationType } from '../updaters/send-back-to-queue-updater';
62
61
  import { BaseGetBasketCo2InfoFetcher, GetBasketCo2FetcherInfoType } from '../fetchers/basket-co2.fetcher';
@@ -248,7 +247,7 @@ export declare abstract class BaseEnterpriseBasketService<ANPU_Q extends AcceptN
248
247
  basketList: BasketPricesList[];
249
248
  basketPrices: BehaviorSubject<BasketPrices>;
250
249
  menuState: MenuSlideEnum;
251
- checkApproverModalClosed: EventEmitter<any>;
250
+ checkApproverModalClosed: Subject<any>;
252
251
  private requiresService;
253
252
  private requiresOverrideService;
254
253
  private userCurrency;
@@ -6,7 +6,7 @@ import _, { uniq } from 'lodash';
6
6
  import Ajv from 'ajv';
7
7
  import addFormats from 'ajv-formats';
8
8
  import * as i0 from '@angular/core';
9
- import { EventEmitter, Injectable } from '@angular/core';
9
+ import { Injectable } from '@angular/core';
10
10
 
11
11
  var ages;
12
12
  (function (ages) {
@@ -29862,7 +29862,7 @@ class BaseEnterpriseBasketService {
29862
29862
  list: this.basketList
29863
29863
  });
29864
29864
  menuState = MenuSlideEnum.OUT;
29865
- checkApproverModalClosed = new EventEmitter();
29865
+ checkApproverModalClosed = new Subject();
29866
29866
  requiresService;
29867
29867
  requiresOverrideService;
29868
29868
  userCurrency = 'GBP';
@@ -39315,14 +39315,16 @@ class BaseLogonService {
39315
39315
  this.modalService.open(ModalTypes.ModalErrorComponent, { backdrop: 'static' }, modalValues);
39316
39316
  }
39317
39317
  isOnStaging() {
39318
- return !!['test'].find((url) => {
39319
- return window.location.hostname.includes(url);
39320
- });
39318
+ // return !!['test'].find((url: string) => {
39319
+ // return window.location.hostname.includes(url);
39320
+ // });
39321
+ return true;
39321
39322
  }
39322
39323
  isOnDev() {
39323
- return !!['localhost', '127.0.0.1', 'dev'].find((url) => {
39324
- return window.location.hostname.includes(url);
39325
- });
39324
+ // return !!['localhost', '127.0.0.1', 'dev'].find((url: string) => {
39325
+ // return window.location.hostname.includes(url);
39326
+ // });
39327
+ return true;
39326
39328
  }
39327
39329
  checkVersionUpdate() {
39328
39330
  const isProd = !this.isOnDev() && !this.isOnStaging();
@@ -39456,12 +39458,12 @@ class BaseLogonService {
39456
39458
  return result.asObservable();
39457
39459
  }
39458
39460
  setEnvironment() {
39459
- this.isScionEnv = window.location.href.includes('sabsenterprise');
39460
- this.isLightningEnv = !this.isScionEnv;
39461
- if (window.location.href.includes('localhost')) {
39462
- this.isScionEnv = this.environment.obt === 'scion';
39463
- this.isLightningEnv = !this.isScionEnv;
39464
- }
39461
+ // this.isScionEnv = window.location.href.includes('sabsenterprise');
39462
+ // this.isLightningEnv = !this.isScionEnv;
39463
+ // if (window.location.href.includes('localhost')) {
39464
+ // this.isScionEnv = this.environment.obt === 'scion';
39465
+ // this.isLightningEnv = !this.isScionEnv;
39466
+ // }
39465
39467
  }
39466
39468
  }
39467
39469