gunsmith-common 2.3.24 → 2.3.26
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/shared/services/finish-date-helper.service.mjs +4 -4
- package/esm2020/shared/services/waitlist-project.service.mjs +15 -1
- package/esm2020/shared/services/work-order.service.mjs +16 -1
- package/esm2020/shared/types/waitlist-gun.mjs +3 -1
- package/esm2020/shared/types/work-order.mjs +3 -1
- package/fesm2015/gunsmith-common.mjs +37 -4
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +37 -4
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.26.tgz +0 -0
- package/package.json +1 -1
- package/shared/services/finish-date-helper.service.d.ts +1 -1
- package/shared/services/waitlist-project.service.d.ts +5 -1
- package/shared/services/work-order.service.d.ts +5 -1
- package/shared/types/waitlist-gun.d.ts +4 -0
- package/shared/types/work-order.d.ts +4 -0
- package/gunsmith-common-2.3.24.tgz +0 -0
|
@@ -148,6 +148,8 @@ class WaitlistGun {
|
|
|
148
148
|
this.refinishDetails = [];
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
|
+
class WaitlistGunPhoto {
|
|
152
|
+
}
|
|
151
153
|
|
|
152
154
|
class WaitlistHistory {
|
|
153
155
|
}
|
|
@@ -229,6 +231,8 @@ class WorkOrder {
|
|
|
229
231
|
this.histories = [];
|
|
230
232
|
}
|
|
231
233
|
}
|
|
234
|
+
class WorkOrderPhoto {
|
|
235
|
+
}
|
|
232
236
|
|
|
233
237
|
class WorkOrderHistory {
|
|
234
238
|
}
|
|
@@ -1019,6 +1023,21 @@ class WorkOrderService {
|
|
|
1019
1023
|
createInventoryItems(workOrderId, inventoryItems) {
|
|
1020
1024
|
return this.http.post(`${this.url}/${workOrderId}/inventory-items/collection`, inventoryItems);
|
|
1021
1025
|
}
|
|
1026
|
+
// Photos
|
|
1027
|
+
createPhoto(workOrderId, file) {
|
|
1028
|
+
const formData = new FormData();
|
|
1029
|
+
formData.append('file', file, file.name);
|
|
1030
|
+
return this.http.post(`${this.url}/${workOrderId}/photos`, formData);
|
|
1031
|
+
}
|
|
1032
|
+
deletePhoto(workOrderId, photoId) {
|
|
1033
|
+
return this.http.delete(`${this.url}/${workOrderId}/photos/${photoId}`);
|
|
1034
|
+
}
|
|
1035
|
+
readPhotos(workOrderId) {
|
|
1036
|
+
return this.http.get(`${this.url}/${workOrderId}/photos`);
|
|
1037
|
+
}
|
|
1038
|
+
readPhoto(workOrderId, photoId) {
|
|
1039
|
+
return this.http.get(`${this.url}/${workOrderId}/photos/${photoId}`);
|
|
1040
|
+
}
|
|
1022
1041
|
// Billing
|
|
1023
1042
|
processTransaction(workOrderId, billingInfo) {
|
|
1024
1043
|
return this.http.post(`${this.url}/${workOrderId}/billing`, billingInfo);
|
|
@@ -1503,6 +1522,20 @@ class WaitlistProjectService {
|
|
|
1503
1522
|
updateMillingDetail(projectId, detailId, detail) {
|
|
1504
1523
|
return this.http.put(`${this.url}/${projectId}/milling-details/${detailId}`, detail);
|
|
1505
1524
|
}
|
|
1525
|
+
createPhoto(projectId, file) {
|
|
1526
|
+
const formData = new FormData();
|
|
1527
|
+
formData.append('file', file, file.name);
|
|
1528
|
+
return this.http.post(`${this.url}/${projectId}/photos`, formData);
|
|
1529
|
+
}
|
|
1530
|
+
deletePhoto(projectId, photoId) {
|
|
1531
|
+
return this.http.delete(`${this.url}/${projectId}/photos/${photoId}`);
|
|
1532
|
+
}
|
|
1533
|
+
readPhotos(projectId) {
|
|
1534
|
+
return this.http.get(`${this.url}/${projectId}/photos`);
|
|
1535
|
+
}
|
|
1536
|
+
readPhoto(projectId, photoId) {
|
|
1537
|
+
return this.http.get(`${this.url}/${projectId}/photos/${photoId}`);
|
|
1538
|
+
}
|
|
1506
1539
|
}
|
|
1507
1540
|
WaitlistProjectService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistProjectService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1508
1541
|
WaitlistProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistProjectService, providedIn: 'root' });
|
|
@@ -1979,7 +2012,7 @@ class FinishDateHelperService {
|
|
|
1979
2012
|
}
|
|
1980
2013
|
return this.adjustHoliday(finishDate.toJSDate());
|
|
1981
2014
|
}
|
|
1982
|
-
calculate(receivedDate, workOrderType) {
|
|
2015
|
+
calculate(receivedDate, workOrderType, hasRefinish) {
|
|
1983
2016
|
if (!receivedDate) {
|
|
1984
2017
|
return EMPTY;
|
|
1985
2018
|
}
|
|
@@ -1990,10 +2023,10 @@ class FinishDateHelperService {
|
|
|
1990
2023
|
]).pipe(switchMap$1(([configs, holidays]) => {
|
|
1991
2024
|
this.configs = configs;
|
|
1992
2025
|
this.holidays = holidays;
|
|
1993
|
-
return of(this.calculateFinishDate(receivedDate, workOrderType));
|
|
2026
|
+
return of(this.calculateFinishDate(receivedDate, workOrderType, hasRefinish));
|
|
1994
2027
|
}));
|
|
1995
2028
|
}
|
|
1996
|
-
return of(this.calculateFinishDate(receivedDate, workOrderType));
|
|
2029
|
+
return of(this.calculateFinishDate(receivedDate, workOrderType, hasRefinish));
|
|
1997
2030
|
}
|
|
1998
2031
|
}
|
|
1999
2032
|
FinishDateHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FinishDateHelperService, deps: [{ token: ConfigurationService }, { token: WorkHolidayService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2372,5 +2405,5 @@ var NotificationType;
|
|
|
2372
2405
|
* Generated bundle index. Do not edit.
|
|
2373
2406
|
*/
|
|
2374
2407
|
|
|
2375
|
-
export { Address, BaseService, BillingInfo, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, FinishDateHelperService, Firearm, FirearmMillingTypeService, FirearmOptic, FirearmOpticService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeAddon, MillingTypeAddonOption, MillingTypeAddonService, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderBillingTransaction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderTotal, WorkOrderType, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2408
|
+
export { Address, BaseService, BillingInfo, BundleItem, ChangeOrderPackageDetail, ChangeOrderStatus, Coating, CoatingService, CoatingValue, CoatingValueService, Configuration, ConfigurationService, Customer, CustomerService, Dealer, DealerContact, DealerCoupon, DealerService, DisableControlDirective, EnumPipe, FileNamePipe, FileUploadService, FilterOptions, FinishDateHelperService, Firearm, FirearmMillingTypeService, FirearmOptic, FirearmOpticService, FirearmService, FirearmSightService, FormErrorMessageComponent, FrameMaterial, FrameMaterialPipe, GunCaliber, GunPart, GunPartOption, GunPartService, InventoryItem, InventoryService, JFile, Material, MaterialService, MillingDetail, MillingItem, MillingType, MillingTypeAddon, MillingTypeAddonOption, MillingTypeAddonService, MillingTypeService, ModalHeaderComponent, MountType, MountTypeService, NewLinePipe, NotificationBarComponent, NotificationModule, NotificationService, NotificationType, Optic, OpticService, OpticSight, OpticStatus, Package, PackageItem, PackageOptionalItem, PackageOptionalItemService, PackageService, PackageTotal, PackageVariation, PackageVariationOption, PackageVariationService, PhonePipe, Product, ProductService, ProjectType, PurchaseOrder, PurchaseOrderRefinishItem, PurchaseOrderService, PurchaseOrderStatus, QuickbooksService, RearSightPosition, RefinishCode, RefinishCodeService, RefinishDetail, ReportMillingItem, ReportRefinishItem, SharedModule, ShieldRMSOptions, Sight, SightMaterialService, SightMaterialType, SightService, SightType, SightTypeEnum, SightTypeService, SlideAddon, SlideAddonService, State, StateService, StatusHistoryService, Total, TotalItem, TotalsService, UserService, Vendor, VendorContact, VendorService, WaitlistAction, WaitlistCustomerService, WaitlistGun, WaitlistGunPackageDetail, WaitlistGunPhoto, WaitlistHistory, WaitlistItem, WaitlistProjectService, WaitlistService, WaitlistStatus, WorkChangeOrder, WorkHoliday, WorkHolidayService, WorkOrder, WorkOrderAction, WorkOrderBillingTransaction, WorkOrderDiscount, WorkOrderDiscountService, WorkOrderHistory, WorkOrderInventoryItem, WorkOrderListItem, WorkOrderNonInventoryItem, WorkOrderNonInventoryItemService, WorkOrderPackageDetail, WorkOrderPhoto, WorkOrderRefinishItem, WorkOrderService, WorkOrderShippingItem, WorkOrderShippingItemService, WorkOrderStatus, WorkOrderTotal, WorkOrderType, coatingDescriptionValidator, coatingValueValidator, convertEnumToObjectArray, getCoatingValues, getCoatings, hasCoatingDescription, hasCoatingValues, refinishDetailsValidator, touchControls };
|
|
2376
2409
|
//# sourceMappingURL=gunsmith-common.mjs.map
|