@osovitny/anatoly 2.0.34 → 2.0.35

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.
@@ -448,6 +448,12 @@
448
448
  _this.isFreezed = false;
449
449
  }, timeout);
450
450
  };
451
+ LoadingService.prototype.reset = function () {
452
+ if (this.counter > 0) {
453
+ this.next(false);
454
+ }
455
+ this.counter = 0;
456
+ };
451
457
  return LoadingService;
452
458
  }(rxjs.BehaviorSubject));
453
459
  LoadingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoadingService_Factory() { return new LoadingService(); }, token: LoadingService, providedIn: "root" });
@@ -1422,6 +1428,12 @@
1422
1428
  return this.http.delete(url, { responseType: responseType });
1423
1429
  };
1424
1430
  //gets
1431
+ BaseApiService.prototype.getById = function (id) {
1432
+ return this.get('getById', { id: id });
1433
+ };
1434
+ BaseApiService.prototype.getAll = function (data) {
1435
+ return this.get('getAll', data).pipe(operators.map(function (res) { return res; }));
1436
+ };
1425
1437
  BaseApiService.prototype.getExternalTextFile = function (url) {
1426
1438
  return this.http.get(url);
1427
1439
  };