gunsmith-common 2.1.16 → 2.1.17

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.
@@ -1686,6 +1686,44 @@
1686
1686
  }] }];
1687
1687
  } });
1688
1688
 
1689
+ var StatusHistoryService = /** @class */ (function () {
1690
+ function StatusHistoryService(http, env) {
1691
+ this.http = http;
1692
+ this.env = env;
1693
+ this.url = this.env.baseUrl + 'api/status-histories';
1694
+ }
1695
+ StatusHistoryService.prototype.readStatusByUser = function (user, startDate, endDate) {
1696
+ return this.http.get(this.url + "/by-user", {
1697
+ params: {
1698
+ user: user,
1699
+ startDate: startDate.toUTCString(),
1700
+ endDate: endDate.toUTCString()
1701
+ }
1702
+ });
1703
+ };
1704
+ StatusHistoryService.prototype.readStatusByDate = function (date) {
1705
+ return this.http.get(this.url + "/by-date", {
1706
+ params: {
1707
+ date: date.toUTCString()
1708
+ }
1709
+ });
1710
+ };
1711
+ return StatusHistoryService;
1712
+ }());
1713
+ StatusHistoryService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: StatusHistoryService, deps: [{ token: i1__namespace.HttpClient }, { token: 'env' }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1714
+ StatusHistoryService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: StatusHistoryService, providedIn: 'root' });
1715
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.2", ngImport: i0__namespace, type: StatusHistoryService, decorators: [{
1716
+ type: i0.Injectable,
1717
+ args: [{
1718
+ providedIn: 'root'
1719
+ }]
1720
+ }], ctorParameters: function () {
1721
+ return [{ type: i1__namespace.HttpClient }, { type: undefined, decorators: [{
1722
+ type: i0.Inject,
1723
+ args: ['env']
1724
+ }] }];
1725
+ } });
1726
+
1689
1727
  var PhonePipe = /** @class */ (function () {
1690
1728
  function PhonePipe() {
1691
1729
  }
@@ -2060,6 +2098,7 @@
2060
2098
  exports.SharedModule = SharedModule;
2061
2099
  exports.State = State;
2062
2100
  exports.StateService = StateService;
2101
+ exports.StatusHistoryService = StatusHistoryService;
2063
2102
  exports.Total = Total;
2064
2103
  exports.TotalItem = TotalItem;
2065
2104
  exports.TotalsService = TotalsService;