@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.
- package/bundles/hmcts-rpx-xui-common-lib.umd.js +4 -0
- package/bundles/hmcts-rpx-xui-common-lib.umd.js.map +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js +1 -1
- package/bundles/hmcts-rpx-xui-common-lib.umd.min.js.map +1 -1
- package/esm2015/lib/services/ref-data/ref-data-data-access/models/ref-data-locations-by-service-code-response.model.js +2 -0
- package/esm2015/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.js +4 -1
- package/esm2015/lib/services/ref-data/ref-data.service.js +2 -1
- package/fesm2015/hmcts-rpx-xui-common-lib.js +4 -0
- package/fesm2015/hmcts-rpx-xui-common-lib.js.map +1 -1
- package/lib/services/ref-data/ref-data-data-access/models/{locations-by-service-code-response.model.d.ts → ref-data-locations-by-service-code-response.model.d.ts} +1 -1
- package/lib/services/ref-data/ref-data-data-access/ref-data-data-access.service.d.ts +4 -2
- package/lib/services/ref-data/ref-data.service.d.ts +1 -0
- package/package.json +1 -1
- package/esm2015/lib/services/ref-data/ref-data-data-access/models/locations-by-service-code-response.model.js +0 -2
|
@@ -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;
|