@sabstravtech/obtservices 0.2.2506030830 → 0.2.2506041247

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.
@@ -1786,11 +1786,13 @@
1786
1786
  _this.search = function (terms) {
1787
1787
  return rxjs.of([]);
1788
1788
  };
1789
+ _this.searchByTriggerValue = function () {
1790
+ return Promise.resolve([]);
1791
+ };
1789
1792
  Object.assign(_this, managementInfo); // This will automatically call _isValid()
1790
1793
  return _this;
1791
1794
  }
1792
1795
  ;
1793
- ;
1794
1796
  Object.defineProperty(ManagementInfoAndIsValid.prototype, "value", {
1795
1797
  get: function () {
1796
1798
  return this.getValue();
@@ -1817,9 +1819,7 @@
1817
1819
  ManagementInfoAndIsValid.prototype.hasErrors = function (value) {
1818
1820
  var _this = this;
1819
1821
  return new Promise(function (resolve, reject) {
1820
- resolve(_this.mandatory && (!value || value.length === 0)
1821
- ? { hasErrors: true }
1822
- : null);
1822
+ resolve(_this.mandatory && (!value || value.length === 0) ? { hasErrors: true } : null);
1823
1823
  });
1824
1824
  };
1825
1825
  return ManagementInfoAndIsValid;
@@ -1884,6 +1884,23 @@
1884
1884
  _this.availableItems = sugestions;
1885
1885
  }));
1886
1886
  };
1887
+ _this.searchByTriggerValue = function () { return __awaiter(_this, void 0, void 0, function () {
1888
+ var _a, values;
1889
+ return __generator(this, function (_c) {
1890
+ switch (_c.label) {
1891
+ case 0:
1892
+ if (!(!((_a = this.availableItems) === null || _a === void 0 ? void 0 : _a.length) ||
1893
+ (this.tempTriggerMIValueId && this.triggerMIValueId !== this.tempTriggerMIValueId))) return [3 /*break*/, 2];
1894
+ return [4 /*yield*/, rxjs.firstValueFrom(this.basketService.getMiAutoSugestions(this.id, '', this.isLoading, this.serviceId, this.managementInfoValueGroup, this.triggerMIValueId))];
1895
+ case 1:
1896
+ values = _c.sent();
1897
+ this.availableItems = values;
1898
+ this.tempTriggerMIValueId = this.triggerMIValueId;
1899
+ return [2 /*return*/, values];
1900
+ case 2: return [2 /*return*/];
1901
+ }
1902
+ });
1903
+ }); };
1887
1904
  _this.searchNoHash = function (terms) {
1888
1905
  return terms.pipe(operators.debounceTime(300), operators.distinctUntilChanged(), operators.switchMap(function (term) {
1889
1906
  var ob = term.length > 0
@@ -8561,6 +8578,7 @@
8561
8578
  return this.cabfetcher.fetchList(query);
8562
8579
  };
8563
8580
  CabHireEnterpriseSearch.prototype.gmtGetCabSearchQuery = function (fromLocation, toLocation, dateTme) {
8581
+ var _a, _b;
8564
8582
  var createLocation = function (location) {
8565
8583
  var _a, _b;
8566
8584
  return {
@@ -8585,14 +8603,14 @@
8585
8603
  countryCode: from.countryCode,
8586
8604
  postcode: from.postcode,
8587
8605
  streetAndNumber: from.streetAndNumber,
8588
- town: from.town,
8606
+ town: (_a = from.town) !== null && _a !== void 0 ? _a : undefined,
8589
8607
  },
8590
8608
  toLocation: {
8591
8609
  buildingName: to.buildingName,
8592
8610
  countryCode: to.countryCode,
8593
8611
  postcode: to.postcode,
8594
8612
  streetAndNumber: to.streetAndNumber,
8595
- town: to.town,
8613
+ town: (_b = to.town) !== null && _b !== void 0 ? _b : undefined,
8596
8614
  },
8597
8615
  travellers: this.travellers.map(function (traveller) { return { id: traveller.id }; })
8598
8616
  };
@@ -41513,7 +41531,9 @@
41513
41531
  _this.router.navigate(['logOutDigitsUser']);
41514
41532
  }
41515
41533
  else if (ssoUser) {
41516
- _this.router.navigate(['sso-logout']);
41534
+ // App doesnt have sso-logout route
41535
+ // this.router.navigate(['sso-logout']);
41536
+ _this.router.navigate(['logon']);
41517
41537
  }
41518
41538
  else {
41519
41539
  _this.router.navigate(['logon']);
@@ -41521,7 +41541,8 @@
41521
41541
  });
41522
41542
  }
41523
41543
  else if (ssoUser) {
41524
- this.router.navigate(['sso-logout']);
41544
+ // this.router.navigate(['sso-logout']);
41545
+ this.router.navigate(['logon']);
41525
41546
  }
41526
41547
  else {
41527
41548
  this.router.navigate(['logon']);