gunsmith-common 2.1.14 → 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.
- package/bundles/gunsmith-common.umd.js +42 -0
- package/bundles/gunsmith-common.umd.js.map +1 -1
- package/esm2015/shared/pipes/new-line.pipe.js +1 -1
- package/esm2015/shared/services/index.js +2 -1
- package/esm2015/shared/services/material.service.js +1 -1
- package/esm2015/shared/services/status-history.service.js +40 -0
- package/esm2015/shared/services/user.service.js +1 -1
- package/esm2015/shared/types/total-item.js +1 -1
- package/esm2015/shared/types/work-order-status.js +4 -1
- package/fesm2015/gunsmith-common.js +39 -1
- package/fesm2015/gunsmith-common.js.map +1 -1
- package/package.json +1 -1
- package/shared/services/index.d.ts +1 -0
- package/shared/services/status-history.service.d.ts +14 -0
- package/shared/types/total-item.d.ts +1 -1
- package/shared/types/work-order-status.d.ts +3 -0
|
@@ -244,6 +244,9 @@
|
|
|
244
244
|
WorkOrderStatus[WorkOrderStatus["OutOfShop"] = 2] = "OutOfShop";
|
|
245
245
|
WorkOrderStatus[WorkOrderStatus["WaitingOnCustomer"] = 3] = "WaitingOnCustomer";
|
|
246
246
|
WorkOrderStatus[WorkOrderStatus["CustomerNotified"] = 4] = "CustomerNotified";
|
|
247
|
+
WorkOrderStatus[WorkOrderStatus["ShippingPostponed"] = 10] = "ShippingPostponed";
|
|
248
|
+
WorkOrderStatus[WorkOrderStatus["FflNeeded"] = 11] = "FflNeeded";
|
|
249
|
+
WorkOrderStatus[WorkOrderStatus["InspectionNeeded"] = 12] = "InspectionNeeded";
|
|
247
250
|
WorkOrderStatus[WorkOrderStatus["ReadyToShip"] = 5] = "ReadyToShip";
|
|
248
251
|
WorkOrderStatus[WorkOrderStatus["Completed"] = 6] = "Completed";
|
|
249
252
|
WorkOrderStatus[WorkOrderStatus["Cancelled"] = 7] = "Cancelled";
|
|
@@ -1683,6 +1686,44 @@
|
|
|
1683
1686
|
}] }];
|
|
1684
1687
|
} });
|
|
1685
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
|
+
|
|
1686
1727
|
var PhonePipe = /** @class */ (function () {
|
|
1687
1728
|
function PhonePipe() {
|
|
1688
1729
|
}
|
|
@@ -2057,6 +2098,7 @@
|
|
|
2057
2098
|
exports.SharedModule = SharedModule;
|
|
2058
2099
|
exports.State = State;
|
|
2059
2100
|
exports.StateService = StateService;
|
|
2101
|
+
exports.StatusHistoryService = StatusHistoryService;
|
|
2060
2102
|
exports.Total = Total;
|
|
2061
2103
|
exports.TotalItem = TotalItem;
|
|
2062
2104
|
exports.TotalsService = TotalsService;
|