@hmcts/rpx-xui-common-lib 1.8.10-ref-data-service-2 → 1.8.10-ref-data-service-3

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.
@@ -1352,6 +1352,9 @@
1352
1352
  .append('service_code', serviceCode);
1353
1353
  return this.http.get(RefDataDataAccessService.refDataUrl + "/locations-by-service-code", { params: httpParams });
1354
1354
  };
1355
+ RefDataDataAccessService.prototype.getLocations = function () {
1356
+ return this.http.get(RefDataDataAccessService.refDataUrl + "/locations");
1357
+ };
1355
1358
  return RefDataDataAccessService;
1356
1359
  }());
1357
1360
  RefDataDataAccessService.refDataUrl = '/api/ref-data';
@@ -1371,6 +1374,7 @@
1371
1374
  this.locationsByServiceCodesCache = {};
1372
1375
  this.regions$ = this.refDataDataAccessService.getRegions().pipe(operators.shareReplay());
1373
1376
  this.services$ = this.refDataDataAccessService.getServices().pipe(operators.shareReplay());
1377
+ this.locations$ = this.refDataDataAccessService.getLocations().pipe(operators.shareReplay());
1374
1378
  }
1375
1379
  RefDataService.prototype.getLocationsByServiceCodes = function (serviceCodes) {
1376
1380
  var _this = this;