@sabstravtech/obtservices 0.2.2505190850 → 0.2.2505201645

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.
@@ -9291,7 +9291,7 @@
9291
9291
  term = location.buildingName.replace(/^[^,]+,\s*/, "");
9292
9292
  isTrueSubject = new rxjs.BehaviorSubject(true);
9293
9293
  if (!location.terminal) return [3 /*break*/, 2];
9294
- return [4 /*yield*/, rxjs.firstValueFrom(this.searchService.getAirportLocations(term, location.countryCode, isTrueSubject))];
9294
+ return [4 /*yield*/, this.searchService.getAirportLocations(term, location.countryCode, isTrueSubject).toPromise()];
9295
9295
  case 1:
9296
9296
  locations = _u.sent();
9297
9297
  if (locations === null || locations === void 0 ? void 0 : locations.length) {
@@ -9309,7 +9309,7 @@
9309
9309
  return [3 /*break*/, 4];
9310
9310
  case 2:
9311
9311
  if (!(location.buildingName === location.streetAndNumber)) return [3 /*break*/, 4];
9312
- return [4 /*yield*/, rxjs.firstValueFrom(this.searchService.getStationLocations(term, isTrueSubject))];
9312
+ return [4 /*yield*/, this.searchService.getStationLocations(term, isTrueSubject).toPromise()];
9313
9313
  case 3:
9314
9314
  locations = _u.sent();
9315
9315
  if (locations === null || locations === void 0 ? void 0 : locations.length) {
@@ -26903,7 +26903,7 @@
26903
26903
  var station;
26904
26904
  return __generator(this, function (_6) {
26905
26905
  switch (_6.label) {
26906
- case 0: return [4 /*yield*/, rxjs.firstValueFrom(this.searchService.getRailStationById(locationId))];
26906
+ case 0: return [4 /*yield*/, this.searchService.getRailStationById(locationId).toPromise()];
26907
26907
  case 1:
26908
26908
  station = _6.sent();
26909
26909
  return [2 /*return*/, { name: station.name, railstation: station }];
@@ -31925,7 +31925,7 @@
31925
31925
  basket = _h.value;
31926
31926
  basketValue = basket.subject.value;
31927
31927
  if (!basketValue.invokedUser) return [3 /*break*/, 3];
31928
- return [4 /*yield*/, rxjs.firstValueFrom(this.removeBasket(basketValue.id))];
31928
+ return [4 /*yield*/, this.removeBasket(basketValue.id).toPromise()];
31929
31929
  case 2:
31930
31930
  _k.sent();
31931
31931
  _k.label = 3;
@@ -32810,16 +32810,26 @@
32810
32810
  _this.validateBasketItemMiFetcher.fetchOne(query);
32811
32811
  });
32812
32812
  };
32813
+ // async validateMiBasket(basketId: string): Promise<void> {
32814
+ // const query = { basketId };
32815
+ // return firstValueFrom(this.validateBasketMiFetcher.fetchOne(query)).then(data => {
32816
+ // this.miViewed = true;
32817
+ // this.missingMIs = data;
32818
+ // });
32819
+ // }
32813
32820
  BaseEnterpriseBasketService.prototype.validateMiBasket = function (basketId) {
32814
32821
  return __awaiter(this, void 0, void 0, function () {
32815
32822
  var query;
32816
32823
  var _this = this;
32817
32824
  return __generator(this, function (_g) {
32818
- query = { basketId: basketId };
32819
- return [2 /*return*/, rxjs.firstValueFrom(this.validateBasketMiFetcher.fetchOne(query)).then(function (data) {
32820
- _this.miViewed = true;
32821
- _this.missingMIs = data;
32822
- })];
32825
+ query = {
32826
+ basketId: basketId
32827
+ };
32828
+ this.validateBasketMiFetcher.fetchOne(query).subscribe(function (data) {
32829
+ _this.miViewed = true;
32830
+ _this.missingMIs = data;
32831
+ });
32832
+ return [2 /*return*/];
32823
32833
  });
32824
32834
  });
32825
32835
  };