gunsmith-common 2.2.1 → 2.2.2
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/esm2020/notification/notification-bar/notification-bar.component.mjs +3 -3
- package/esm2020/shared/pipes/new-line.pipe.mjs +1 -1
- package/esm2020/shared/services/index.mjs +2 -1
- package/esm2020/shared/services/inventory.service.mjs +4 -1
- package/esm2020/shared/services/material.service.mjs +1 -1
- package/esm2020/shared/services/refinish-code.service.mjs +35 -0
- package/esm2020/shared/services/status-history.service.mjs +1 -1
- package/esm2020/shared/services/user.service.mjs +1 -1
- package/esm2020/shared/services/work-order.service.mjs +26 -1
- package/esm2020/shared/types/index.mjs +3 -1
- package/esm2020/shared/types/package.mjs +1 -1
- package/esm2020/shared/types/refinish-code.mjs +3 -0
- package/esm2020/shared/types/work-order-inventory-item.mjs +3 -0
- package/fesm2015/gunsmith-common.mjs +70 -3
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +68 -3
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/services/index.d.ts +1 -0
- package/shared/services/inventory.service.d.ts +1 -0
- package/shared/services/refinish-code.service.d.ts +16 -0
- package/shared/services/work-order.service.d.ts +9 -1
- package/shared/types/index.d.ts +2 -0
- package/shared/types/package.d.ts +1 -0
- package/shared/types/refinish-code.d.ts +8 -0
- package/shared/types/work-order-inventory-item.d.ts +7 -0
|
@@ -451,6 +451,12 @@ class WorkOrderPackageDetail {
|
|
|
451
451
|
class PackageTotal {
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
+
class WorkOrderInventoryItem {
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
class RefinishCode {
|
|
458
|
+
}
|
|
459
|
+
|
|
454
460
|
function adjustHoliday(finishDate, holidays) {
|
|
455
461
|
while (holidays.map(h => new Date(h.holiday)).findIndex(h => DateTime.fromJSDate(h) === DateTime.fromJSDate(finishDate)) !== -1) {
|
|
456
462
|
do {
|
|
@@ -839,6 +845,9 @@ class WorkOrderService {
|
|
|
839
845
|
createChecklists(workOrderId, refinishItemIds) {
|
|
840
846
|
return this.http.get(`${this.url}/${workOrderId}/refinish-items/` + refinishItemIds.join(',') + '/pdfs', { responseType: "blob" });
|
|
841
847
|
}
|
|
848
|
+
createShopChecklist(workOrderId) {
|
|
849
|
+
return this.http.get(`${this.url}/${workOrderId}/pdf`, { responseType: "blob" });
|
|
850
|
+
}
|
|
842
851
|
// Refinish Items
|
|
843
852
|
readRefinishItems(workOrderId) {
|
|
844
853
|
return this.http.get(`${this.url}/${workOrderId}/refinish-items`);
|
|
@@ -893,6 +902,28 @@ class WorkOrderService {
|
|
|
893
902
|
}
|
|
894
903
|
});
|
|
895
904
|
}
|
|
905
|
+
// Inventory Items
|
|
906
|
+
readInventoryItems(workOrderId) {
|
|
907
|
+
return this.http.get(`${this.url}/${workOrderId}/inventory-items`);
|
|
908
|
+
}
|
|
909
|
+
readInventoryItem(workOrderId, inventoryItemId) {
|
|
910
|
+
return this.http.get(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`);
|
|
911
|
+
}
|
|
912
|
+
createInventoryItem(workOrderId, inventoryItem) {
|
|
913
|
+
return this.http.post(`${this.url}/${workOrderId}/inventory-items`, inventoryItem);
|
|
914
|
+
}
|
|
915
|
+
updateInventoryItem(workOrderId, inventoryItemId, inventoryItem) {
|
|
916
|
+
return this.http.put(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`, inventoryItem);
|
|
917
|
+
}
|
|
918
|
+
deleteInventoryItem(workOrderId, inventoryItemId) {
|
|
919
|
+
return this.http.delete(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`);
|
|
920
|
+
}
|
|
921
|
+
readInventoryItemCollection(workOrderId, itemIds) {
|
|
922
|
+
return this.http.get(`${this.url}/${workOrderId}/inventory-items/collection/${itemIds.join(',')}`);
|
|
923
|
+
}
|
|
924
|
+
createInventoryItems(workOrderId, inventoryItems) {
|
|
925
|
+
return this.http.post(`${this.url}/${workOrderId}/inventory-items/collection`, inventoryItems);
|
|
926
|
+
}
|
|
896
927
|
}
|
|
897
928
|
WorkOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
898
929
|
WorkOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, providedIn: 'root' });
|
|
@@ -1545,6 +1576,9 @@ class InventoryService {
|
|
|
1545
1576
|
updateInventoryItem(id, item) {
|
|
1546
1577
|
return this.http.put(`${this.url}/${id}`, item);
|
|
1547
1578
|
}
|
|
1579
|
+
createInventoryItem(item) {
|
|
1580
|
+
return this.http.post(this.url, item);
|
|
1581
|
+
}
|
|
1548
1582
|
}
|
|
1549
1583
|
InventoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InventoryService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1550
1584
|
InventoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InventoryService, providedIn: 'root' });
|
|
@@ -1636,6 +1670,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
1636
1670
|
args: ['env']
|
|
1637
1671
|
}] }]; } });
|
|
1638
1672
|
|
|
1673
|
+
class RefinishCodeService {
|
|
1674
|
+
constructor(http, env) {
|
|
1675
|
+
this.http = http;
|
|
1676
|
+
this.env = env;
|
|
1677
|
+
this.url = this.env.baseUrl + 'api/refinish-codes';
|
|
1678
|
+
}
|
|
1679
|
+
readRefinishCodes() {
|
|
1680
|
+
return this.http.get(this.url);
|
|
1681
|
+
}
|
|
1682
|
+
createRefinishCodes(refinishCodes) {
|
|
1683
|
+
return this.http.post(this.url, refinishCodes);
|
|
1684
|
+
}
|
|
1685
|
+
updateRefinishCodes(ids, refinishCodes) {
|
|
1686
|
+
return this.http.put(`${this.url}/` + ids.join(','), refinishCodes);
|
|
1687
|
+
}
|
|
1688
|
+
deleteRefinishCodes(ids) {
|
|
1689
|
+
return this.http.delete(this.url + '/' + ids.join(','));
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
RefinishCodeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RefinishCodeService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1693
|
+
RefinishCodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RefinishCodeService, providedIn: 'root' });
|
|
1694
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RefinishCodeService, decorators: [{
|
|
1695
|
+
type: Injectable,
|
|
1696
|
+
args: [{
|
|
1697
|
+
providedIn: 'root'
|
|
1698
|
+
}]
|
|
1699
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1700
|
+
type: Inject,
|
|
1701
|
+
args: ['env']
|
|
1702
|
+
}] }]; } });
|
|
1703
|
+
|
|
1639
1704
|
class PhonePipe {
|
|
1640
1705
|
transform(value, args) {
|
|
1641
1706
|
if (value && value.length >= 10) {
|
|
@@ -2055,10 +2120,10 @@ class NotificationBarComponent {
|
|
|
2055
2120
|
}
|
|
2056
2121
|
}
|
|
2057
2122
|
NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2058
|
-
NotificationBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationBarComponent, selector: "app-notification-bar", ngImport: i0, template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\r\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\r\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\r\n </div>\r\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\r\n</div>\r\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:10001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:rgba(
|
|
2123
|
+
NotificationBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: NotificationBarComponent, selector: "app-notification-bar", ngImport: i0, template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\r\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\r\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\r\n </div>\r\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\r\n</div>\r\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:10001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:rgba(16,16,16,.4);padding:8px;text-align:center}.notification-bar .error{color:#711e16!important;background:rgba(248,216,212,.6)!important}\n"], directives: [{ type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [fadeOutAnimation] });
|
|
2059
2124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
|
|
2060
2125
|
type: Component,
|
|
2061
|
-
args: [{ selector: 'app-notification-bar', animations: [fadeOutAnimation], template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\r\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\r\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\r\n </div>\r\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\r\n</div>\r\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:10001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:rgba(
|
|
2126
|
+
args: [{ selector: 'app-notification-bar', animations: [fadeOutAnimation], template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\r\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\r\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\r\n </div>\r\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\r\n</div>\r\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:10001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:rgba(16,16,16,.4);padding:8px;text-align:center}.notification-bar .error{color:#711e16!important;background:rgba(248,216,212,.6)!important}\n"] }]
|
|
2062
2127
|
}], ctorParameters: function () { return [{ type: NotificationService }]; } });
|
|
2063
2128
|
|
|
2064
2129
|
class NotificationModule {
|
|
@@ -2097,5 +2162,5 @@ var NotificationType;
|
|
|
2097
2162
|
* Generated bundle index. Do not edit.
|
|
2098
2163
|
*/
|
|
2099
2164
|
|
|
2100
|
-
export { BundleItem, ChangeOrderStatus, Coating, CoatingService, CoatingValue, Configuration, ConfigurationService, CosmeticMilling, CosmeticMillingService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, Firearm, FirearmSeries, FirearmSeriesOptic, FirearmSeriesService, FirearmService, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeService, MountType, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, RearSightPosition, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, SightType, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderHistory, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2165
|
+
export { BundleItem, ChangeOrderStatus, Coating, CoatingService, CoatingValue, Configuration, ConfigurationService, CosmeticMilling, CosmeticMillingService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, Firearm, FirearmSeries, FirearmSeriesOptic, FirearmSeriesService, FirearmService, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeService, MountType, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageSelectorComponent, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, SightType, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderStatus, WorkOrderType, calculateFinishDate, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2101
2166
|
//# sourceMappingURL=gunsmith-common.mjs.map
|