gunsmith-common 2.3.17 → 2.3.19
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/gunsmith-common.mjs +4 -4
- package/esm2020/notification/fade-out.animation.mjs +10 -10
- package/esm2020/notification/index.mjs +4 -4
- package/esm2020/notification/notification-bar/notification-bar.component.mjs +43 -43
- package/esm2020/notification/notification-message.mjs +3 -3
- package/esm2020/notification/notification-type.enum.mjs +6 -6
- package/esm2020/notification/notification.module.mjs +26 -26
- package/esm2020/notification/notification.service.mjs +21 -21
- package/esm2020/public_api.mjs +14 -14
- package/esm2020/shared/controls/form-error-message/form-error-message.component.mjs +17 -17
- package/esm2020/shared/controls/modal-header/modal-header.component.mjs +25 -25
- package/esm2020/shared/directives/disable-control.directive.mjs +24 -24
- package/esm2020/shared/directives/index.mjs +3 -3
- package/esm2020/shared/directives/refinish-details-validators.mjs +45 -45
- package/esm2020/shared/pipes/enum.pipe.mjs +16 -16
- package/esm2020/shared/pipes/file-name.pipe.mjs +16 -16
- package/esm2020/shared/pipes/frame-material.pipe.mjs +24 -24
- package/esm2020/shared/pipes/index.mjs +6 -6
- package/esm2020/shared/pipes/new-line.pipe.mjs +16 -16
- package/esm2020/shared/pipes/phone.pipe.mjs +19 -19
- package/esm2020/shared/services/base.service.mjs +50 -50
- package/esm2020/shared/services/coating-value.service.mjs +25 -25
- package/esm2020/shared/services/coating.service.mjs +25 -25
- package/esm2020/shared/services/configuration.service.mjs +32 -32
- package/esm2020/shared/services/customer.service.mjs +47 -47
- package/esm2020/shared/services/dealer.service.mjs +31 -31
- package/esm2020/shared/services/file-upload.service.mjs +34 -34
- package/esm2020/shared/services/finish-date-helper.service.mjs +69 -69
- package/esm2020/shared/services/firearm-milling-type.service.mjs +25 -25
- package/esm2020/shared/services/firearm-optic.service.mjs +31 -31
- package/esm2020/shared/services/firearm-sight.service.mjs +25 -25
- package/esm2020/shared/services/firearm.service.mjs +31 -31
- package/esm2020/shared/services/gun-part.service.mjs +46 -46
- package/esm2020/shared/services/index.mjs +44 -44
- package/esm2020/shared/services/inventory.service.mjs +25 -25
- package/esm2020/shared/services/material.service.mjs +30 -30
- package/esm2020/shared/services/milling-type-addon.service.mjs +25 -25
- package/esm2020/shared/services/milling-type.service.mjs +25 -25
- package/esm2020/shared/services/mount-type.service.mjs +25 -25
- package/esm2020/shared/services/optic.service.mjs +28 -28
- package/esm2020/shared/services/package-optional-item.service.mjs +25 -25
- package/esm2020/shared/services/package-variation.service.mjs +25 -25
- package/esm2020/shared/services/package.service.mjs +49 -49
- package/esm2020/shared/services/product.service.mjs +29 -29
- package/esm2020/shared/services/purchase-order.service.mjs +87 -87
- package/esm2020/shared/services/quickbooks.service.mjs +30 -30
- package/esm2020/shared/services/refinish-code.service.mjs +35 -35
- package/esm2020/shared/services/sight-material.service.mjs +25 -25
- package/esm2020/shared/services/sight-type.service.mjs +25 -25
- package/esm2020/shared/services/sight.service.mjs +28 -28
- package/esm2020/shared/services/slide-addon.service.mjs +25 -25
- package/esm2020/shared/services/state.service.mjs +26 -26
- package/esm2020/shared/services/status-history.service.mjs +40 -40
- package/esm2020/shared/services/totals.service.mjs +50 -50
- package/esm2020/shared/services/user.service.mjs +26 -26
- package/esm2020/shared/services/vendor.service.mjs +42 -42
- package/esm2020/shared/services/waitlist-customer.service.mjs +41 -41
- package/esm2020/shared/services/waitlist-project.service.mjs +38 -38
- package/esm2020/shared/services/waitlist.service.mjs +100 -100
- package/esm2020/shared/services/work-holiday.service.mjs +32 -32
- package/esm2020/shared/services/work-order-discount.service.mjs +25 -25
- package/esm2020/shared/services/work-order-non-inventory-item.service.mjs +25 -25
- package/esm2020/shared/services/work-order-shipping-item.service.mjs +25 -25
- package/esm2020/shared/services/work-order.service.mjs +214 -214
- package/esm2020/shared/shared.module.mjs +59 -59
- package/esm2020/shared/types/address.mjs +3 -3
- package/esm2020/shared/types/billing-info.mjs +3 -3
- package/esm2020/shared/types/bundle-item.mjs +6 -6
- package/esm2020/shared/types/change-order-package-detail.mjs +7 -7
- package/esm2020/shared/types/change-order-status.mjs +9 -9
- package/esm2020/shared/types/coating-value.mjs +6 -6
- package/esm2020/shared/types/coating.mjs +8 -8
- package/esm2020/shared/types/configuration.mjs +3 -3
- package/esm2020/shared/types/customer.mjs +6 -6
- package/esm2020/shared/types/dealer-contact.mjs +3 -3
- package/esm2020/shared/types/dealer-coupon.mjs +3 -3
- package/esm2020/shared/types/dealer.mjs +8 -8
- package/esm2020/shared/types/filter-options.mjs +9 -9
- package/esm2020/shared/types/firearm-optic.mjs +11 -11
- package/esm2020/shared/types/firearm.mjs +6 -6
- package/esm2020/shared/types/frame-material.mjs +8 -8
- package/esm2020/shared/types/gun-caliber.mjs +7 -7
- package/esm2020/shared/types/gun-part-option.mjs +3 -3
- package/esm2020/shared/types/gun-part.mjs +11 -11
- package/esm2020/shared/types/index.mjs +85 -85
- package/esm2020/shared/types/inventory-item.mjs +12 -12
- package/esm2020/shared/types/j-file.mjs +3 -3
- package/esm2020/shared/types/material.mjs +6 -6
- package/esm2020/shared/types/milling-detail.mjs +10 -10
- package/esm2020/shared/types/milling-item.mjs +6 -6
- package/esm2020/shared/types/milling-type-addon-option.mjs +4 -4
- package/esm2020/shared/types/milling-type-addon.mjs +7 -7
- package/esm2020/shared/types/milling-type.mjs +11 -11
- package/esm2020/shared/types/mount-type.mjs +6 -6
- package/esm2020/shared/types/optic-report-item.mjs +2 -2
- package/esm2020/shared/types/optic-sight.mjs +4 -4
- package/esm2020/shared/types/optic-status.mjs +7 -7
- package/esm2020/shared/types/optic.mjs +7 -7
- package/esm2020/shared/types/package-item.mjs +3 -3
- package/esm2020/shared/types/package-optional-item.mjs +7 -7
- package/esm2020/shared/types/package-total.mjs +3 -3
- package/esm2020/shared/types/package-variation-option.mjs +6 -6
- package/esm2020/shared/types/package-variation.mjs +8 -8
- package/esm2020/shared/types/package.mjs +13 -13
- package/esm2020/shared/types/product.mjs +3 -3
- package/esm2020/shared/types/project-type.mjs +7 -7
- package/esm2020/shared/types/purchase-order-refinish-item.mjs +3 -3
- package/esm2020/shared/types/purchase-order-status.mjs +8 -8
- package/esm2020/shared/types/purchase-order.mjs +9 -9
- package/esm2020/shared/types/rear-sight-position.mjs +6 -6
- package/esm2020/shared/types/refinish-code.mjs +3 -3
- package/esm2020/shared/types/refinish-detail.mjs +3 -3
- package/esm2020/shared/types/report-milling-item.mjs +3 -3
- package/esm2020/shared/types/report-refinish-item.mjs +3 -3
- package/esm2020/shared/types/shield-rms-options.mjs +6 -6
- package/esm2020/shared/types/sight-material-type.mjs +6 -6
- package/esm2020/shared/types/sight-report-item.mjs +2 -2
- package/esm2020/shared/types/sight-type-enum.mjs +7 -7
- package/esm2020/shared/types/sight-type.mjs +6 -6
- package/esm2020/shared/types/sight.mjs +6 -6
- package/esm2020/shared/types/simple-type.mjs +2 -2
- package/esm2020/shared/types/slide-addon.mjs +7 -7
- package/esm2020/shared/types/state.mjs +3 -3
- package/esm2020/shared/types/total-item.mjs +3 -3
- package/esm2020/shared/types/total.mjs +3 -3
- package/esm2020/shared/types/vendor-contact.mjs +3 -3
- package/esm2020/shared/types/vendor.mjs +7 -7
- package/esm2020/shared/types/waitlist-action.mjs +9 -9
- package/esm2020/shared/types/waitlist-gun-package-detail.mjs +7 -7
- package/esm2020/shared/types/waitlist-gun.mjs +15 -15
- package/esm2020/shared/types/waitlist-history.mjs +3 -3
- package/esm2020/shared/types/waitlist-item.mjs +13 -12
- package/esm2020/shared/types/waitlist-status.mjs +18 -18
- package/esm2020/shared/types/work-change-order.mjs +3 -3
- package/esm2020/shared/types/work-holiday.mjs +3 -3
- package/esm2020/shared/types/work-order-action.mjs +7 -7
- package/esm2020/shared/types/work-order-billing-transaction.mjs +3 -3
- package/esm2020/shared/types/work-order-discount.mjs +4 -4
- package/esm2020/shared/types/work-order-history.mjs +3 -3
- package/esm2020/shared/types/work-order-inventory-item.mjs +3 -3
- package/esm2020/shared/types/work-order-list-item.mjs +3 -3
- package/esm2020/shared/types/work-order-non-inventory-item.mjs +3 -3
- package/esm2020/shared/types/work-order-package-detail.mjs +7 -7
- package/esm2020/shared/types/work-order-refinish-item.mjs +3 -3
- package/esm2020/shared/types/work-order-shipping-item.mjs +3 -3
- package/esm2020/shared/types/work-order-status.mjs +18 -18
- package/esm2020/shared/types/work-order-total.mjs +3 -3
- package/esm2020/shared/types/work-order-type.mjs +8 -8
- package/esm2020/shared/types/work-order.mjs +20 -20
- package/esm2020/shared/utils/coating-helpers.mjs +22 -22
- package/esm2020/shared/utils/enum-object.mjs +10 -10
- package/esm2020/shared/utils/index.mjs +4 -4
- package/esm2020/shared/utils/invalid-form-control-toucher.mjs +7 -7
- package/fesm2015/gunsmith-common.mjs +2183 -2182
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +2101 -2100
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common.d.ts +5 -5
- package/notification/fade-out.animation.d.ts +2 -2
- package/notification/index.d.ts +3 -3
- package/notification/notification-bar/notification-bar.component.d.ts +18 -18
- package/notification/notification-message.d.ts +6 -6
- package/notification/notification-type.enum.d.ts +4 -4
- package/notification/notification.module.d.ts +8 -8
- package/notification/notification.service.d.ts +12 -12
- package/package.json +1 -1
- package/public_api.d.ts +10 -10
- package/shared/controls/form-error-message/form-error-message.component.d.ts +8 -8
- package/shared/controls/modal-header/modal-header.component.d.ts +11 -11
- package/shared/directives/disable-control.directive.d.ts +9 -9
- package/shared/directives/index.d.ts +2 -2
- package/shared/directives/refinish-details-validators.d.ts +4 -4
- package/shared/pipes/enum.pipe.d.ts +7 -7
- package/shared/pipes/file-name.pipe.d.ts +7 -7
- package/shared/pipes/frame-material.pipe.d.ts +11 -11
- package/shared/pipes/index.d.ts +5 -5
- package/shared/pipes/new-line.pipe.d.ts +7 -7
- package/shared/pipes/phone.pipe.d.ts +7 -7
- package/shared/services/base.service.d.ts +17 -17
- package/shared/services/coating-value.service.d.ts +11 -11
- package/shared/services/coating.service.d.ts +11 -11
- package/shared/services/configuration.service.d.ts +15 -15
- package/shared/services/customer.service.d.ts +17 -17
- package/shared/services/dealer.service.d.ts +15 -15
- package/shared/services/file-upload.service.d.ts +13 -13
- package/shared/services/finish-date-helper.service.d.ts +17 -17
- package/shared/services/firearm-milling-type.service.d.ts +11 -11
- package/shared/services/firearm-optic.service.d.ts +13 -13
- package/shared/services/firearm-sight.service.d.ts +11 -11
- package/shared/services/firearm.service.d.ts +15 -15
- package/shared/services/gun-part.service.d.ts +16 -16
- package/shared/services/index.d.ts +43 -43
- package/shared/services/inventory.service.d.ts +11 -11
- package/shared/services/material.service.d.ts +13 -13
- package/shared/services/milling-type-addon.service.d.ts +11 -11
- package/shared/services/milling-type.service.d.ts +11 -11
- package/shared/services/mount-type.service.d.ts +11 -11
- package/shared/services/optic.service.d.ts +13 -13
- package/shared/services/package-optional-item.service.d.ts +11 -11
- package/shared/services/package-variation.service.d.ts +11 -11
- package/shared/services/package.service.d.ts +16 -16
- package/shared/services/product.service.d.ts +15 -15
- package/shared/services/purchase-order.service.d.ts +27 -27
- package/shared/services/quickbooks.service.d.ts +12 -12
- package/shared/services/refinish-code.service.d.ts +16 -16
- package/shared/services/sight-material.service.d.ts +11 -11
- package/shared/services/sight-type.service.d.ts +11 -11
- package/shared/services/sight.service.d.ts +13 -13
- package/shared/services/slide-addon.service.d.ts +11 -11
- package/shared/services/state.service.d.ts +13 -13
- package/shared/services/status-history.service.d.ts +14 -14
- package/shared/services/totals.service.d.ts +15 -15
- package/shared/services/user.service.d.ts +12 -12
- package/shared/services/vendor.service.d.ts +17 -17
- package/shared/services/waitlist-customer.service.d.ts +16 -16
- package/shared/services/waitlist-project.service.d.ts +17 -17
- package/shared/services/waitlist.service.d.ts +28 -28
- package/shared/services/work-holiday.service.d.ts +15 -15
- package/shared/services/work-order-discount.service.d.ts +11 -11
- package/shared/services/work-order-non-inventory-item.service.d.ts +11 -11
- package/shared/services/work-order-shipping-item.service.d.ts +11 -11
- package/shared/services/work-order.service.d.ts +59 -59
- package/shared/shared.module.d.ts +17 -17
- package/shared/types/address.d.ts +11 -11
- package/shared/types/billing-info.d.ts +6 -6
- package/shared/types/bundle-item.d.ts +11 -11
- package/shared/types/change-order-package-detail.d.ts +10 -10
- package/shared/types/change-order-status.d.ts +7 -7
- package/shared/types/coating-value.d.ts +7 -7
- package/shared/types/coating.d.ts +14 -14
- package/shared/types/configuration.d.ts +17 -17
- package/shared/types/customer.d.ts +14 -14
- package/shared/types/dealer-contact.d.ts +9 -9
- package/shared/types/dealer-coupon.d.ts +5 -5
- package/shared/types/dealer.d.ts +25 -25
- package/shared/types/filter-options.d.ts +6 -6
- package/shared/types/firearm-optic.d.ts +21 -21
- package/shared/types/firearm.d.ts +10 -10
- package/shared/types/frame-material.d.ts +6 -6
- package/shared/types/gun-caliber.d.ts +5 -5
- package/shared/types/gun-part-option.d.ts +9 -9
- package/shared/types/gun-part.d.ts +14 -14
- package/shared/types/index.d.ts +84 -84
- package/shared/types/inventory-item.d.ts +14 -14
- package/shared/types/j-file.d.ts +5 -5
- package/shared/types/material.d.ts +6 -6
- package/shared/types/milling-detail.d.ts +26 -26
- package/shared/types/milling-item.d.ts +23 -23
- package/shared/types/milling-type-addon-option.d.ts +5 -5
- package/shared/types/milling-type-addon.d.ts +8 -8
- package/shared/types/milling-type.d.ts +16 -16
- package/shared/types/mount-type.d.ts +9 -9
- package/shared/types/optic-report-item.d.ts +13 -13
- package/shared/types/optic-sight.d.ts +8 -8
- package/shared/types/optic-status.d.ts +5 -5
- package/shared/types/optic.d.ts +11 -11
- package/shared/types/package-item.d.ts +9 -9
- package/shared/types/package-optional-item.d.ts +20 -20
- package/shared/types/package-total.d.ts +5 -5
- package/shared/types/package-variation-option.d.ts +16 -16
- package/shared/types/package-variation.d.ts +10 -10
- package/shared/types/package.d.ts +18 -18
- package/shared/types/product.d.ts +7 -7
- package/shared/types/project-type.d.ts +5 -5
- package/shared/types/purchase-order-refinish-item.d.ts +18 -18
- package/shared/types/purchase-order-status.d.ts +6 -6
- package/shared/types/purchase-order.d.ts +11 -11
- package/shared/types/rear-sight-position.d.ts +4 -4
- package/shared/types/refinish-code.d.ts +9 -9
- package/shared/types/refinish-detail.d.ts +13 -13
- package/shared/types/report-milling-item.d.ts +16 -16
- package/shared/types/report-refinish-item.d.ts +20 -20
- package/shared/types/shield-rms-options.d.ts +4 -4
- package/shared/types/sight-material-type.d.ts +6 -6
- package/shared/types/sight-report-item.d.ts +10 -10
- package/shared/types/sight-type-enum.d.ts +5 -5
- package/shared/types/sight-type.d.ts +8 -8
- package/shared/types/sight.d.ts +15 -15
- package/shared/types/simple-type.d.ts +6 -6
- package/shared/types/slide-addon.d.ts +20 -20
- package/shared/types/state.d.ts +4 -4
- package/shared/types/total-item.d.ts +4 -4
- package/shared/types/total.d.ts +5 -5
- package/shared/types/vendor-contact.d.ts +9 -9
- package/shared/types/vendor.d.ts +20 -20
- package/shared/types/waitlist-action.d.ts +7 -7
- package/shared/types/waitlist-gun-package-detail.d.ts +10 -10
- package/shared/types/waitlist-gun.d.ts +29 -29
- package/shared/types/waitlist-history.d.ts +8 -8
- package/shared/types/waitlist-item.d.ts +28 -27
- package/shared/types/waitlist-status.d.ts +16 -16
- package/shared/types/work-change-order.d.ts +12 -12
- package/shared/types/work-holiday.d.ts +4 -4
- package/shared/types/work-order-action.d.ts +5 -5
- package/shared/types/work-order-billing-transaction.d.ts +15 -15
- package/shared/types/work-order-discount.d.ts +8 -8
- package/shared/types/work-order-history.d.ts +8 -8
- package/shared/types/work-order-inventory-item.d.ts +7 -7
- package/shared/types/work-order-list-item.d.ts +15 -15
- package/shared/types/work-order-non-inventory-item.d.ts +8 -8
- package/shared/types/work-order-package-detail.d.ts +10 -10
- package/shared/types/work-order-refinish-item.d.ts +18 -18
- package/shared/types/work-order-shipping-item.d.ts +7 -7
- package/shared/types/work-order-status.d.ts +16 -16
- package/shared/types/work-order-total.d.ts +6 -6
- package/shared/types/work-order-type.d.ts +6 -6
- package/shared/types/work-order.d.ts +40 -40
- package/shared/utils/coating-helpers.d.ts +5 -5
- package/shared/utils/enum-object.d.ts +5 -5
- package/shared/utils/index.d.ts +3 -3
- package/shared/utils/invalid-form-control-toucher.d.ts +2 -2
- package/gunsmith-common-2.3.17.tgz +0 -0
|
@@ -11,2360 +11,2361 @@ import { CommonModule } from '@angular/common';
|
|
|
11
11
|
import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
|
|
12
12
|
import { trigger, transition, style, animate } from '@angular/animations';
|
|
13
13
|
|
|
14
|
-
function touchControls(formGroup) {
|
|
15
|
-
Object.keys(formGroup.controls).forEach(field => {
|
|
16
|
-
const control = formGroup.get(field);
|
|
17
|
-
control.markAsTouched({ onlySelf: true });
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function convertEnumToObjectArray(value) {
|
|
22
|
-
let enumObject = [];
|
|
23
|
-
for (let n in value) {
|
|
24
|
-
if (typeof value[n] === 'number') {
|
|
25
|
-
enumObject.push({ id: value[n], name: n.replace(/([^A-Z])([A-Z])/g, '$1 $2').trim() });
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return enumObject;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function getCoatings(part, coatings, material) {
|
|
32
|
-
if (part && part.id === 1)
|
|
33
|
-
return coatings.filter(c => part.coatings.map(pc => pc.id).includes(c.id)
|
|
34
|
-
&& c.materials.map(m => m.id).includes(material.id));
|
|
35
|
-
else if (part)
|
|
36
|
-
return coatings.filter(c => part.coatings.map(pc => pc.id).includes(c.id));
|
|
37
|
-
else
|
|
38
|
-
return [];
|
|
39
|
-
}
|
|
40
|
-
function getCoatingValues(coating) {
|
|
41
|
-
if (coating)
|
|
42
|
-
return coating.coatingValues;
|
|
43
|
-
else
|
|
44
|
-
return [];
|
|
45
|
-
}
|
|
46
|
-
function hasCoatingValues(coating) {
|
|
47
|
-
return coating && coating.coatingValues && coating.coatingValues.length > 0;
|
|
48
|
-
}
|
|
49
|
-
function hasCoatingDescription(coating) {
|
|
50
|
-
return coating && coating.valueLabel && (!coating.coatingValues || !coating.coatingValues.length);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
class Configuration {
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
class Customer {
|
|
57
|
-
constructor() {
|
|
58
|
-
this.active = true;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
class Dealer {
|
|
63
|
-
constructor() {
|
|
64
|
-
this.couponDiscount = 20;
|
|
65
|
-
this.active = true;
|
|
66
|
-
this.contacts = [];
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
class DealerContact {
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
class DealerCoupon {
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
class FilterOptions {
|
|
77
|
-
constructor() {
|
|
78
|
-
this.workOrderType = true;
|
|
79
|
-
this.status = true;
|
|
80
|
-
this.warranty = true;
|
|
81
|
-
this.specialOrder = true;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
var GunCaliber;
|
|
86
|
-
(function (GunCaliber) {
|
|
87
|
-
GunCaliber[GunCaliber["9mm"] = 0] = "9mm";
|
|
88
|
-
GunCaliber[GunCaliber["40Caliber"] = 1] = "40Caliber";
|
|
89
|
-
GunCaliber[GunCaliber["45Caliber"] = 2] = "45Caliber";
|
|
14
|
+
function touchControls(formGroup) {
|
|
15
|
+
Object.keys(formGroup.controls).forEach(field => {
|
|
16
|
+
const control = formGroup.get(field);
|
|
17
|
+
control.markAsTouched({ onlySelf: true });
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function convertEnumToObjectArray(value) {
|
|
22
|
+
let enumObject = [];
|
|
23
|
+
for (let n in value) {
|
|
24
|
+
if (typeof value[n] === 'number') {
|
|
25
|
+
enumObject.push({ id: value[n], name: n.replace(/([^A-Z])([A-Z])/g, '$1 $2').trim() });
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return enumObject;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function getCoatings(part, coatings, material) {
|
|
32
|
+
if (part && part.id === 1)
|
|
33
|
+
return coatings.filter(c => part.coatings.map(pc => pc.id).includes(c.id)
|
|
34
|
+
&& c.materials.map(m => m.id).includes(material.id));
|
|
35
|
+
else if (part)
|
|
36
|
+
return coatings.filter(c => part.coatings.map(pc => pc.id).includes(c.id));
|
|
37
|
+
else
|
|
38
|
+
return [];
|
|
39
|
+
}
|
|
40
|
+
function getCoatingValues(coating) {
|
|
41
|
+
if (coating)
|
|
42
|
+
return coating.coatingValues;
|
|
43
|
+
else
|
|
44
|
+
return [];
|
|
45
|
+
}
|
|
46
|
+
function hasCoatingValues(coating) {
|
|
47
|
+
return coating && coating.coatingValues && coating.coatingValues.length > 0;
|
|
48
|
+
}
|
|
49
|
+
function hasCoatingDescription(coating) {
|
|
50
|
+
return coating && coating.valueLabel && (!coating.coatingValues || !coating.coatingValues.length);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
class Configuration {
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
class Customer {
|
|
57
|
+
constructor() {
|
|
58
|
+
this.active = true;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
class Dealer {
|
|
63
|
+
constructor() {
|
|
64
|
+
this.couponDiscount = 20;
|
|
65
|
+
this.active = true;
|
|
66
|
+
this.contacts = [];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class DealerContact {
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
class DealerCoupon {
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class FilterOptions {
|
|
77
|
+
constructor() {
|
|
78
|
+
this.workOrderType = true;
|
|
79
|
+
this.status = true;
|
|
80
|
+
this.warranty = true;
|
|
81
|
+
this.specialOrder = true;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
var GunCaliber;
|
|
86
|
+
(function (GunCaliber) {
|
|
87
|
+
GunCaliber[GunCaliber["9mm"] = 0] = "9mm";
|
|
88
|
+
GunCaliber[GunCaliber["40Caliber"] = 1] = "40Caliber";
|
|
89
|
+
GunCaliber[GunCaliber["45Caliber"] = 2] = "45Caliber";
|
|
90
90
|
})(GunCaliber || (GunCaliber = {}));
|
|
91
91
|
|
|
92
|
-
class Firearm {
|
|
93
|
-
constructor() {
|
|
94
|
-
this.active = true;
|
|
95
|
-
}
|
|
92
|
+
class Firearm {
|
|
93
|
+
constructor() {
|
|
94
|
+
this.active = true;
|
|
95
|
+
}
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
class GunPart {
|
|
99
|
-
constructor() {
|
|
100
|
-
this.coatings = [];
|
|
101
|
-
this.options = [];
|
|
102
|
-
this.defaultControl = false;
|
|
103
|
-
this.customer = false;
|
|
104
|
-
this.gunsmith = false;
|
|
105
|
-
this.active = true;
|
|
106
|
-
}
|
|
98
|
+
class GunPart {
|
|
99
|
+
constructor() {
|
|
100
|
+
this.coatings = [];
|
|
101
|
+
this.options = [];
|
|
102
|
+
this.defaultControl = false;
|
|
103
|
+
this.customer = false;
|
|
104
|
+
this.gunsmith = false;
|
|
105
|
+
this.active = true;
|
|
106
|
+
}
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
class Vendor {
|
|
110
|
-
constructor() {
|
|
111
|
-
this.active = true;
|
|
112
|
-
this.contacts = [];
|
|
113
|
-
}
|
|
109
|
+
class Vendor {
|
|
110
|
+
constructor() {
|
|
111
|
+
this.active = true;
|
|
112
|
+
this.contacts = [];
|
|
113
|
+
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
class VendorContact {
|
|
116
|
+
class VendorContact {
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
class State {
|
|
119
|
+
class State {
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
var WaitlistAction;
|
|
123
|
-
(function (WaitlistAction) {
|
|
124
|
-
WaitlistAction[WaitlistAction["SendShipmentEmail"] = 0] = "SendShipmentEmail";
|
|
125
|
-
WaitlistAction[WaitlistAction["SendShipmentNoResponse"] = 2] = "SendShipmentNoResponse";
|
|
126
|
-
WaitlistAction[WaitlistAction["SendWaitingOnShipmentEmail"] = 3] = "SendWaitingOnShipmentEmail";
|
|
127
|
-
WaitlistAction[WaitlistAction["SendWaitingOnShipmentNoResponse"] = 5] = "SendWaitingOnShipmentNoResponse";
|
|
128
|
-
WaitlistAction[WaitlistAction["SendInShopEmail"] = 6] = "SendInShopEmail";
|
|
122
|
+
var WaitlistAction;
|
|
123
|
+
(function (WaitlistAction) {
|
|
124
|
+
WaitlistAction[WaitlistAction["SendShipmentEmail"] = 0] = "SendShipmentEmail";
|
|
125
|
+
WaitlistAction[WaitlistAction["SendShipmentNoResponse"] = 2] = "SendShipmentNoResponse";
|
|
126
|
+
WaitlistAction[WaitlistAction["SendWaitingOnShipmentEmail"] = 3] = "SendWaitingOnShipmentEmail";
|
|
127
|
+
WaitlistAction[WaitlistAction["SendWaitingOnShipmentNoResponse"] = 5] = "SendWaitingOnShipmentNoResponse";
|
|
128
|
+
WaitlistAction[WaitlistAction["SendInShopEmail"] = 6] = "SendInShopEmail";
|
|
129
129
|
})(WaitlistAction || (WaitlistAction = {}));
|
|
130
130
|
|
|
131
|
-
var ProjectType;
|
|
132
|
-
(function (ProjectType) {
|
|
133
|
-
ProjectType[ProjectType["Firearm"] = 0] = "Firearm";
|
|
134
|
-
ProjectType[ProjectType["SlideOnly"] = 1] = "SlideOnly";
|
|
135
|
-
ProjectType[ProjectType["PartsOnly"] = 2] = "PartsOnly";
|
|
131
|
+
var ProjectType;
|
|
132
|
+
(function (ProjectType) {
|
|
133
|
+
ProjectType[ProjectType["Firearm"] = 0] = "Firearm";
|
|
134
|
+
ProjectType[ProjectType["SlideOnly"] = 1] = "SlideOnly";
|
|
135
|
+
ProjectType[ProjectType["PartsOnly"] = 2] = "PartsOnly";
|
|
136
136
|
})(ProjectType || (ProjectType = {}));
|
|
137
137
|
|
|
138
|
-
class WaitlistGun {
|
|
139
|
-
constructor() {
|
|
140
|
-
this.projectType = ProjectType.Firearm;
|
|
141
|
-
this.logo = false;
|
|
142
|
-
this.refinish = false;
|
|
143
|
-
this.milling = false;
|
|
144
|
-
this.specialOrder = false;
|
|
145
|
-
this.shippingLabel = false;
|
|
146
|
-
this.sights = [];
|
|
147
|
-
this.slideAddons = [];
|
|
148
|
-
this.refinishDetails = [];
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
class WaitlistHistory {
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
var WaitlistStatus;
|
|
156
|
-
(function (WaitlistStatus) {
|
|
157
|
-
WaitlistStatus[WaitlistStatus["NewRequest"] = 0] = "NewRequest";
|
|
158
|
-
WaitlistStatus[WaitlistStatus["ShipmentEmailSent"] = 1] = "ShipmentEmailSent";
|
|
159
|
-
WaitlistStatus[WaitlistStatus["ShipmentEmailReminderSent"] = 2] = "ShipmentEmailReminderSent";
|
|
160
|
-
WaitlistStatus[WaitlistStatus["ShipmentEmailNoResponse"] = 3] = "ShipmentEmailNoResponse";
|
|
161
|
-
WaitlistStatus[WaitlistStatus["WaitingOnShipment"] = 4] = "WaitingOnShipment";
|
|
162
|
-
WaitlistStatus[WaitlistStatus["WaitingOnShipmentReminderSent"] = 5] = "WaitingOnShipmentReminderSent";
|
|
163
|
-
WaitlistStatus[WaitlistStatus["WaitingOnShipmentNoResponse"] = 6] = "WaitingOnShipmentNoResponse";
|
|
164
|
-
WaitlistStatus[WaitlistStatus["InShop"] = 7] = "InShop";
|
|
165
|
-
WaitlistStatus[WaitlistStatus["Cancelled"] = 8] = "Cancelled";
|
|
166
|
-
WaitlistStatus[WaitlistStatus["OnHold"] = 9] = "OnHold";
|
|
167
|
-
WaitlistStatus[WaitlistStatus["Voided"] = 10] = "Voided";
|
|
168
|
-
WaitlistStatus[WaitlistStatus["Pending"] = 11] = "Pending";
|
|
169
|
-
WaitlistStatus[WaitlistStatus["Rejected"] = 12] = "Rejected";
|
|
170
|
-
WaitlistStatus[WaitlistStatus["NewInBoxPending"] = 13] = "NewInBoxPending";
|
|
138
|
+
class WaitlistGun {
|
|
139
|
+
constructor() {
|
|
140
|
+
this.projectType = ProjectType.Firearm;
|
|
141
|
+
this.logo = false;
|
|
142
|
+
this.refinish = false;
|
|
143
|
+
this.milling = false;
|
|
144
|
+
this.specialOrder = false;
|
|
145
|
+
this.shippingLabel = false;
|
|
146
|
+
this.sights = [];
|
|
147
|
+
this.slideAddons = [];
|
|
148
|
+
this.refinishDetails = [];
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
class WaitlistHistory {
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
var WaitlistStatus;
|
|
156
|
+
(function (WaitlistStatus) {
|
|
157
|
+
WaitlistStatus[WaitlistStatus["NewRequest"] = 0] = "NewRequest";
|
|
158
|
+
WaitlistStatus[WaitlistStatus["ShipmentEmailSent"] = 1] = "ShipmentEmailSent";
|
|
159
|
+
WaitlistStatus[WaitlistStatus["ShipmentEmailReminderSent"] = 2] = "ShipmentEmailReminderSent";
|
|
160
|
+
WaitlistStatus[WaitlistStatus["ShipmentEmailNoResponse"] = 3] = "ShipmentEmailNoResponse";
|
|
161
|
+
WaitlistStatus[WaitlistStatus["WaitingOnShipment"] = 4] = "WaitingOnShipment";
|
|
162
|
+
WaitlistStatus[WaitlistStatus["WaitingOnShipmentReminderSent"] = 5] = "WaitingOnShipmentReminderSent";
|
|
163
|
+
WaitlistStatus[WaitlistStatus["WaitingOnShipmentNoResponse"] = 6] = "WaitingOnShipmentNoResponse";
|
|
164
|
+
WaitlistStatus[WaitlistStatus["InShop"] = 7] = "InShop";
|
|
165
|
+
WaitlistStatus[WaitlistStatus["Cancelled"] = 8] = "Cancelled";
|
|
166
|
+
WaitlistStatus[WaitlistStatus["OnHold"] = 9] = "OnHold";
|
|
167
|
+
WaitlistStatus[WaitlistStatus["Voided"] = 10] = "Voided";
|
|
168
|
+
WaitlistStatus[WaitlistStatus["Pending"] = 11] = "Pending";
|
|
169
|
+
WaitlistStatus[WaitlistStatus["Rejected"] = 12] = "Rejected";
|
|
170
|
+
WaitlistStatus[WaitlistStatus["NewInBoxPending"] = 13] = "NewInBoxPending";
|
|
171
171
|
})(WaitlistStatus || (WaitlistStatus = {}));
|
|
172
172
|
|
|
173
|
-
var WorkOrderType;
|
|
174
|
-
(function (WorkOrderType) {
|
|
175
|
-
WorkOrderType[WorkOrderType["Standard"] = 0] = "Standard";
|
|
176
|
-
WorkOrderType[WorkOrderType["NewInBox"] = 1] = "NewInBox";
|
|
177
|
-
WorkOrderType[WorkOrderType["Expedited"] = 2] = "Expedited";
|
|
178
|
-
WorkOrderType[WorkOrderType["Warranty"] = 5] = "Warranty";
|
|
173
|
+
var WorkOrderType;
|
|
174
|
+
(function (WorkOrderType) {
|
|
175
|
+
WorkOrderType[WorkOrderType["Standard"] = 0] = "Standard";
|
|
176
|
+
WorkOrderType[WorkOrderType["NewInBox"] = 1] = "NewInBox";
|
|
177
|
+
WorkOrderType[WorkOrderType["Expedited"] = 2] = "Expedited";
|
|
178
|
+
WorkOrderType[WorkOrderType["Warranty"] = 5] = "Warranty";
|
|
179
179
|
})(WorkOrderType || (WorkOrderType = {}));
|
|
180
180
|
|
|
181
|
-
class WaitlistItem {
|
|
182
|
-
constructor() {
|
|
183
|
-
this.requestDate = new Date();
|
|
184
|
-
this.status = WaitlistStatus.NewRequest;
|
|
185
|
-
this.workOrderType = WorkOrderType.Standard;
|
|
186
|
-
this.guns = [];
|
|
187
|
-
this.histories = [];
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
201
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
202
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
203
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
204
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
205
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
206
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
207
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
208
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
209
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
210
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
211
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
212
|
-
WorkOrderStatus[WorkOrderStatus["
|
|
181
|
+
class WaitlistItem {
|
|
182
|
+
constructor() {
|
|
183
|
+
this.requestDate = new Date();
|
|
184
|
+
this.status = WaitlistStatus.NewRequest;
|
|
185
|
+
this.workOrderType = WorkOrderType.Standard;
|
|
186
|
+
this.guns = [];
|
|
187
|
+
this.histories = [];
|
|
188
|
+
this.quoteAmount = null;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
class WorkChangeOrder {
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
class WorkHoliday {
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
var WorkOrderStatus;
|
|
199
|
+
(function (WorkOrderStatus) {
|
|
200
|
+
WorkOrderStatus[WorkOrderStatus["InShop"] = 0] = "InShop";
|
|
201
|
+
WorkOrderStatus[WorkOrderStatus["OnBench"] = 1] = "OnBench";
|
|
202
|
+
WorkOrderStatus[WorkOrderStatus["OutOfShop"] = 2] = "OutOfShop";
|
|
203
|
+
WorkOrderStatus[WorkOrderStatus["MillingInProgress"] = 13] = "MillingInProgress";
|
|
204
|
+
WorkOrderStatus[WorkOrderStatus["WaitingOnCustomer"] = 3] = "WaitingOnCustomer";
|
|
205
|
+
WorkOrderStatus[WorkOrderStatus["CustomerNotified"] = 4] = "CustomerNotified";
|
|
206
|
+
WorkOrderStatus[WorkOrderStatus["ShippingPostponed"] = 10] = "ShippingPostponed";
|
|
207
|
+
WorkOrderStatus[WorkOrderStatus["FflNeeded"] = 11] = "FflNeeded";
|
|
208
|
+
WorkOrderStatus[WorkOrderStatus["OnCart"] = 12] = "OnCart";
|
|
209
|
+
WorkOrderStatus[WorkOrderStatus["ReadyToShip"] = 5] = "ReadyToShip";
|
|
210
|
+
WorkOrderStatus[WorkOrderStatus["Completed"] = 6] = "Completed";
|
|
211
|
+
WorkOrderStatus[WorkOrderStatus["Cancelled"] = 7] = "Cancelled";
|
|
212
|
+
WorkOrderStatus[WorkOrderStatus["Voided"] = 8] = "Voided";
|
|
213
|
+
WorkOrderStatus[WorkOrderStatus["OnHold"] = 9] = "OnHold";
|
|
213
214
|
})(WorkOrderStatus || (WorkOrderStatus = {}));
|
|
214
215
|
|
|
215
|
-
class WorkOrder {
|
|
216
|
-
constructor() {
|
|
217
|
-
this.id = 0;
|
|
218
|
-
this.receivedDate = new Date();
|
|
219
|
-
this.workOrderType = WorkOrderType.Standard;
|
|
220
|
-
this.refinish = false;
|
|
221
|
-
this.logo = false;
|
|
222
|
-
this.milling = false;
|
|
223
|
-
this.specialOrder = false;
|
|
224
|
-
this.slideAddons = [];
|
|
225
|
-
this.sights = [];
|
|
226
|
-
this.projectType = ProjectType.Firearm;
|
|
227
|
-
this.status = WorkOrderStatus.InShop;
|
|
228
|
-
this.histories = [];
|
|
229
|
-
}
|
|
216
|
+
class WorkOrder {
|
|
217
|
+
constructor() {
|
|
218
|
+
this.id = 0;
|
|
219
|
+
this.receivedDate = new Date();
|
|
220
|
+
this.workOrderType = WorkOrderType.Standard;
|
|
221
|
+
this.refinish = false;
|
|
222
|
+
this.logo = false;
|
|
223
|
+
this.milling = false;
|
|
224
|
+
this.specialOrder = false;
|
|
225
|
+
this.slideAddons = [];
|
|
226
|
+
this.sights = [];
|
|
227
|
+
this.projectType = ProjectType.Firearm;
|
|
228
|
+
this.status = WorkOrderStatus.InShop;
|
|
229
|
+
this.histories = [];
|
|
230
|
+
}
|
|
230
231
|
}
|
|
231
232
|
|
|
232
|
-
class WorkOrderHistory {
|
|
233
|
+
class WorkOrderHistory {
|
|
233
234
|
}
|
|
234
235
|
|
|
235
|
-
class RefinishDetail {
|
|
236
|
+
class RefinishDetail {
|
|
236
237
|
}
|
|
237
238
|
|
|
238
|
-
class Coating {
|
|
239
|
-
constructor() {
|
|
240
|
-
this.coatingValues = [];
|
|
241
|
-
this.materials = [];
|
|
242
|
-
this.active = true;
|
|
243
|
-
}
|
|
239
|
+
class Coating {
|
|
240
|
+
constructor() {
|
|
241
|
+
this.coatingValues = [];
|
|
242
|
+
this.materials = [];
|
|
243
|
+
this.active = true;
|
|
244
|
+
}
|
|
244
245
|
}
|
|
245
246
|
|
|
246
|
-
class CoatingValue {
|
|
247
|
-
constructor() {
|
|
248
|
-
this.active = true;
|
|
249
|
-
}
|
|
247
|
+
class CoatingValue {
|
|
248
|
+
constructor() {
|
|
249
|
+
this.active = true;
|
|
250
|
+
}
|
|
250
251
|
}
|
|
251
252
|
|
|
252
|
-
var WorkOrderAction;
|
|
253
|
-
(function (WorkOrderAction) {
|
|
254
|
-
WorkOrderAction[WorkOrderAction["SendOnBenchEmail"] = 1] = "SendOnBenchEmail";
|
|
255
|
-
WorkOrderAction[WorkOrderAction["SendWaitingOnCustomerEmail"] = 3] = "SendWaitingOnCustomerEmail";
|
|
256
|
-
WorkOrderAction[WorkOrderAction["SendCustomerNotification"] = 4] = "SendCustomerNotification";
|
|
253
|
+
var WorkOrderAction;
|
|
254
|
+
(function (WorkOrderAction) {
|
|
255
|
+
WorkOrderAction[WorkOrderAction["SendOnBenchEmail"] = 1] = "SendOnBenchEmail";
|
|
256
|
+
WorkOrderAction[WorkOrderAction["SendWaitingOnCustomerEmail"] = 3] = "SendWaitingOnCustomerEmail";
|
|
257
|
+
WorkOrderAction[WorkOrderAction["SendCustomerNotification"] = 4] = "SendCustomerNotification";
|
|
257
258
|
})(WorkOrderAction || (WorkOrderAction = {}));
|
|
258
259
|
|
|
259
|
-
class Optic {
|
|
260
|
-
constructor() {
|
|
261
|
-
this.isAvailable = false;
|
|
262
|
-
this.active = true;
|
|
263
|
-
}
|
|
260
|
+
class Optic {
|
|
261
|
+
constructor() {
|
|
262
|
+
this.isAvailable = false;
|
|
263
|
+
this.active = true;
|
|
264
|
+
}
|
|
264
265
|
}
|
|
265
266
|
|
|
266
|
-
var OpticStatus;
|
|
267
|
-
(function (OpticStatus) {
|
|
268
|
-
OpticStatus[OpticStatus["Included"] = 0] = "Included";
|
|
269
|
-
OpticStatus[OpticStatus["NotIncluded"] = 1] = "NotIncluded";
|
|
270
|
-
OpticStatus[OpticStatus["Supply"] = 2] = "Supply";
|
|
267
|
+
var OpticStatus;
|
|
268
|
+
(function (OpticStatus) {
|
|
269
|
+
OpticStatus[OpticStatus["Included"] = 0] = "Included";
|
|
270
|
+
OpticStatus[OpticStatus["NotIncluded"] = 1] = "NotIncluded";
|
|
271
|
+
OpticStatus[OpticStatus["Supply"] = 2] = "Supply";
|
|
271
272
|
})(OpticStatus || (OpticStatus = {}));
|
|
272
273
|
|
|
273
|
-
class Product {
|
|
274
|
+
class Product {
|
|
274
275
|
}
|
|
275
276
|
|
|
276
|
-
class BundleItem {
|
|
277
|
-
constructor() {
|
|
278
|
-
this.allowedVariations = [];
|
|
279
|
-
}
|
|
277
|
+
class BundleItem {
|
|
278
|
+
constructor() {
|
|
279
|
+
this.allowedVariations = [];
|
|
280
|
+
}
|
|
280
281
|
}
|
|
281
282
|
|
|
282
|
-
var ChangeOrderStatus;
|
|
283
|
-
(function (ChangeOrderStatus) {
|
|
284
|
-
ChangeOrderStatus[ChangeOrderStatus["WaitingOnCustomer"] = 0] = "WaitingOnCustomer";
|
|
285
|
-
ChangeOrderStatus[ChangeOrderStatus["Confirmed"] = 1] = "Confirmed";
|
|
286
|
-
ChangeOrderStatus[ChangeOrderStatus["Cancelled"] = 2] = "Cancelled";
|
|
287
|
-
ChangeOrderStatus[ChangeOrderStatus["NoResponse"] = 3] = "NoResponse";
|
|
288
|
-
ChangeOrderStatus[ChangeOrderStatus["Unconfirmed"] = 4] = "Unconfirmed";
|
|
283
|
+
var ChangeOrderStatus;
|
|
284
|
+
(function (ChangeOrderStatus) {
|
|
285
|
+
ChangeOrderStatus[ChangeOrderStatus["WaitingOnCustomer"] = 0] = "WaitingOnCustomer";
|
|
286
|
+
ChangeOrderStatus[ChangeOrderStatus["Confirmed"] = 1] = "Confirmed";
|
|
287
|
+
ChangeOrderStatus[ChangeOrderStatus["Cancelled"] = 2] = "Cancelled";
|
|
288
|
+
ChangeOrderStatus[ChangeOrderStatus["NoResponse"] = 3] = "NoResponse";
|
|
289
|
+
ChangeOrderStatus[ChangeOrderStatus["Unconfirmed"] = 4] = "Unconfirmed";
|
|
289
290
|
})(ChangeOrderStatus || (ChangeOrderStatus = {}));
|
|
290
291
|
|
|
291
|
-
class MountType {
|
|
292
|
-
constructor() {
|
|
293
|
-
this.active = true;
|
|
294
|
-
}
|
|
292
|
+
class MountType {
|
|
293
|
+
constructor() {
|
|
294
|
+
this.active = true;
|
|
295
|
+
}
|
|
295
296
|
}
|
|
296
297
|
|
|
297
|
-
var SightTypeEnum;
|
|
298
|
-
(function (SightTypeEnum) {
|
|
299
|
-
SightTypeEnum[SightTypeEnum["Black"] = 0] = "Black";
|
|
300
|
-
SightTypeEnum[SightTypeEnum["Tritium"] = 1] = "Tritium";
|
|
301
|
-
SightTypeEnum[SightTypeEnum["FiberOptic"] = 2] = "FiberOptic";
|
|
298
|
+
var SightTypeEnum;
|
|
299
|
+
(function (SightTypeEnum) {
|
|
300
|
+
SightTypeEnum[SightTypeEnum["Black"] = 0] = "Black";
|
|
301
|
+
SightTypeEnum[SightTypeEnum["Tritium"] = 1] = "Tritium";
|
|
302
|
+
SightTypeEnum[SightTypeEnum["FiberOptic"] = 2] = "FiberOptic";
|
|
302
303
|
})(SightTypeEnum || (SightTypeEnum = {}));
|
|
303
304
|
|
|
304
|
-
class MillingDetail {
|
|
305
|
-
constructor() {
|
|
306
|
-
this.millingAddons = [];
|
|
307
|
-
this.barrelCrown = false;
|
|
308
|
-
this.bushingInstallation = false;
|
|
309
|
-
this.weightReduction = false;
|
|
310
|
-
this.opticPulled = false;
|
|
311
|
-
}
|
|
305
|
+
class MillingDetail {
|
|
306
|
+
constructor() {
|
|
307
|
+
this.millingAddons = [];
|
|
308
|
+
this.barrelCrown = false;
|
|
309
|
+
this.bushingInstallation = false;
|
|
310
|
+
this.weightReduction = false;
|
|
311
|
+
this.opticPulled = false;
|
|
312
|
+
}
|
|
312
313
|
}
|
|
313
314
|
|
|
314
|
-
var RearSightPosition;
|
|
315
|
-
(function (RearSightPosition) {
|
|
316
|
-
RearSightPosition[RearSightPosition["InFront"] = 0] = "InFront";
|
|
317
|
-
RearSightPosition[RearSightPosition["Behind"] = 1] = "Behind";
|
|
315
|
+
var RearSightPosition;
|
|
316
|
+
(function (RearSightPosition) {
|
|
317
|
+
RearSightPosition[RearSightPosition["InFront"] = 0] = "InFront";
|
|
318
|
+
RearSightPosition[RearSightPosition["Behind"] = 1] = "Behind";
|
|
318
319
|
})(RearSightPosition || (RearSightPosition = {}));
|
|
319
320
|
|
|
320
|
-
var FrameMaterial;
|
|
321
|
-
(function (FrameMaterial) {
|
|
322
|
-
FrameMaterial[FrameMaterial["All"] = 0] = "All";
|
|
323
|
-
FrameMaterial[FrameMaterial["Polymer"] = 1] = "Polymer";
|
|
324
|
-
FrameMaterial[FrameMaterial["Aluminum"] = 2] = "Aluminum";
|
|
325
|
-
FrameMaterial[FrameMaterial["Steel"] = 3] = "Steel";
|
|
321
|
+
var FrameMaterial;
|
|
322
|
+
(function (FrameMaterial) {
|
|
323
|
+
FrameMaterial[FrameMaterial["All"] = 0] = "All";
|
|
324
|
+
FrameMaterial[FrameMaterial["Polymer"] = 1] = "Polymer";
|
|
325
|
+
FrameMaterial[FrameMaterial["Aluminum"] = 2] = "Aluminum";
|
|
326
|
+
FrameMaterial[FrameMaterial["Steel"] = 3] = "Steel";
|
|
326
327
|
})(FrameMaterial || (FrameMaterial = {}));
|
|
327
328
|
|
|
328
|
-
class MillingType {
|
|
329
|
-
constructor() {
|
|
330
|
-
this.price = 0.00;
|
|
331
|
-
this.hasOpticDetails = false;
|
|
332
|
-
this.isCosmetic = false;
|
|
333
|
-
this.mustRefinish = false;
|
|
334
|
-
this.addons = [];
|
|
335
|
-
this.active = true;
|
|
336
|
-
}
|
|
329
|
+
class MillingType {
|
|
330
|
+
constructor() {
|
|
331
|
+
this.price = 0.00;
|
|
332
|
+
this.hasOpticDetails = false;
|
|
333
|
+
this.isCosmetic = false;
|
|
334
|
+
this.mustRefinish = false;
|
|
335
|
+
this.addons = [];
|
|
336
|
+
this.active = true;
|
|
337
|
+
}
|
|
337
338
|
}
|
|
338
339
|
|
|
339
|
-
class MillingItem {
|
|
340
|
-
constructor() {
|
|
341
|
-
this.opticPulled = false;
|
|
342
|
-
}
|
|
340
|
+
class MillingItem {
|
|
341
|
+
constructor() {
|
|
342
|
+
this.opticPulled = false;
|
|
343
|
+
}
|
|
343
344
|
}
|
|
344
345
|
|
|
345
|
-
class WorkOrderRefinishItem {
|
|
346
|
+
class WorkOrderRefinishItem {
|
|
346
347
|
}
|
|
347
348
|
|
|
348
|
-
class PurchaseOrderRefinishItem {
|
|
349
|
+
class PurchaseOrderRefinishItem {
|
|
349
350
|
}
|
|
350
351
|
|
|
351
|
-
class Material {
|
|
352
|
-
constructor() {
|
|
353
|
-
this.active = true;
|
|
354
|
-
}
|
|
352
|
+
class Material {
|
|
353
|
+
constructor() {
|
|
354
|
+
this.active = true;
|
|
355
|
+
}
|
|
355
356
|
}
|
|
356
357
|
|
|
357
|
-
var PurchaseOrderStatus;
|
|
358
|
-
(function (PurchaseOrderStatus) {
|
|
359
|
-
PurchaseOrderStatus[PurchaseOrderStatus["Open"] = 0] = "Open";
|
|
360
|
-
PurchaseOrderStatus[PurchaseOrderStatus["Closed"] = 1] = "Closed";
|
|
361
|
-
PurchaseOrderStatus[PurchaseOrderStatus["Cancelled"] = 2] = "Cancelled";
|
|
362
|
-
PurchaseOrderStatus[PurchaseOrderStatus["Voided"] = 3] = "Voided";
|
|
358
|
+
var PurchaseOrderStatus;
|
|
359
|
+
(function (PurchaseOrderStatus) {
|
|
360
|
+
PurchaseOrderStatus[PurchaseOrderStatus["Open"] = 0] = "Open";
|
|
361
|
+
PurchaseOrderStatus[PurchaseOrderStatus["Closed"] = 1] = "Closed";
|
|
362
|
+
PurchaseOrderStatus[PurchaseOrderStatus["Cancelled"] = 2] = "Cancelled";
|
|
363
|
+
PurchaseOrderStatus[PurchaseOrderStatus["Voided"] = 3] = "Voided";
|
|
363
364
|
})(PurchaseOrderStatus || (PurchaseOrderStatus = {}));
|
|
364
365
|
|
|
365
|
-
class PurchaseOrder {
|
|
366
|
-
constructor() {
|
|
367
|
-
this.date = new Date();
|
|
368
|
-
this.status = PurchaseOrderStatus.Open;
|
|
369
|
-
this.refinishItems = [];
|
|
370
|
-
}
|
|
366
|
+
class PurchaseOrder {
|
|
367
|
+
constructor() {
|
|
368
|
+
this.date = new Date();
|
|
369
|
+
this.status = PurchaseOrderStatus.Open;
|
|
370
|
+
this.refinishItems = [];
|
|
371
|
+
}
|
|
371
372
|
}
|
|
372
373
|
|
|
373
|
-
class ReportMillingItem {
|
|
374
|
+
class ReportMillingItem {
|
|
374
375
|
}
|
|
375
376
|
|
|
376
|
-
class ReportRefinishItem {
|
|
377
|
+
class ReportRefinishItem {
|
|
377
378
|
}
|
|
378
379
|
|
|
379
|
-
class Total {
|
|
380
|
+
class Total {
|
|
380
381
|
}
|
|
381
382
|
|
|
382
|
-
class TotalItem {
|
|
383
|
+
class TotalItem {
|
|
383
384
|
}
|
|
384
385
|
|
|
385
|
-
class InventoryItem {
|
|
386
|
-
constructor() {
|
|
387
|
-
this.imageOverride = false;
|
|
388
|
-
this.price = 0;
|
|
389
|
-
this.count = 0;
|
|
390
|
-
this.orderPoint = 0;
|
|
391
|
-
this.bulk = false;
|
|
392
|
-
this.kit = false;
|
|
393
|
-
this.active = true;
|
|
394
|
-
}
|
|
386
|
+
class InventoryItem {
|
|
387
|
+
constructor() {
|
|
388
|
+
this.imageOverride = false;
|
|
389
|
+
this.price = 0;
|
|
390
|
+
this.count = 0;
|
|
391
|
+
this.orderPoint = 0;
|
|
392
|
+
this.bulk = false;
|
|
393
|
+
this.kit = false;
|
|
394
|
+
this.active = true;
|
|
395
|
+
}
|
|
395
396
|
}
|
|
396
397
|
|
|
397
|
-
class JFile {
|
|
398
|
+
class JFile {
|
|
398
399
|
}
|
|
399
400
|
|
|
400
|
-
class GunPartOption {
|
|
401
|
+
class GunPartOption {
|
|
401
402
|
}
|
|
402
403
|
|
|
403
|
-
var ShieldRMSOptions;
|
|
404
|
-
(function (ShieldRMSOptions) {
|
|
405
|
-
ShieldRMSOptions[ShieldRMSOptions["KeepBUIS"] = 0] = "KeepBUIS";
|
|
406
|
-
ShieldRMSOptions[ShieldRMSOptions["RemoveBUIS"] = 1] = "RemoveBUIS";
|
|
404
|
+
var ShieldRMSOptions;
|
|
405
|
+
(function (ShieldRMSOptions) {
|
|
406
|
+
ShieldRMSOptions[ShieldRMSOptions["KeepBUIS"] = 0] = "KeepBUIS";
|
|
407
|
+
ShieldRMSOptions[ShieldRMSOptions["RemoveBUIS"] = 1] = "RemoveBUIS";
|
|
407
408
|
})(ShieldRMSOptions || (ShieldRMSOptions = {}));
|
|
408
409
|
|
|
409
|
-
class PackageItem {
|
|
410
|
+
class PackageItem {
|
|
410
411
|
}
|
|
411
412
|
|
|
412
|
-
class Package {
|
|
413
|
-
constructor() {
|
|
414
|
-
this.price = 0.00;
|
|
415
|
-
this.imageOverride = false;
|
|
416
|
-
this.active = true;
|
|
417
|
-
this.gunsmithOnly = false;
|
|
418
|
-
this.firearms = [];
|
|
419
|
-
this.items = [];
|
|
420
|
-
this.optionalItems = [];
|
|
421
|
-
this.variations = [];
|
|
422
|
-
}
|
|
413
|
+
class Package {
|
|
414
|
+
constructor() {
|
|
415
|
+
this.price = 0.00;
|
|
416
|
+
this.imageOverride = false;
|
|
417
|
+
this.active = true;
|
|
418
|
+
this.gunsmithOnly = false;
|
|
419
|
+
this.firearms = [];
|
|
420
|
+
this.items = [];
|
|
421
|
+
this.optionalItems = [];
|
|
422
|
+
this.variations = [];
|
|
423
|
+
}
|
|
423
424
|
}
|
|
424
425
|
|
|
425
|
-
class PackageOptionalItem {
|
|
426
|
-
constructor() {
|
|
427
|
-
this.subItems = [];
|
|
428
|
-
this.active = true;
|
|
429
|
-
}
|
|
426
|
+
class PackageOptionalItem {
|
|
427
|
+
constructor() {
|
|
428
|
+
this.subItems = [];
|
|
429
|
+
this.active = true;
|
|
430
|
+
}
|
|
430
431
|
}
|
|
431
432
|
|
|
432
|
-
class PackageVariation {
|
|
433
|
-
constructor() {
|
|
434
|
-
this.options = [];
|
|
435
|
-
this.gunsmithOnly = false;
|
|
436
|
-
this.isActive = true;
|
|
437
|
-
}
|
|
433
|
+
class PackageVariation {
|
|
434
|
+
constructor() {
|
|
435
|
+
this.options = [];
|
|
436
|
+
this.gunsmithOnly = false;
|
|
437
|
+
this.isActive = true;
|
|
438
|
+
}
|
|
438
439
|
}
|
|
439
440
|
|
|
440
|
-
class PackageVariationOption {
|
|
441
|
-
constructor() {
|
|
442
|
-
this.isActive = true;
|
|
443
|
-
}
|
|
441
|
+
class PackageVariationOption {
|
|
442
|
+
constructor() {
|
|
443
|
+
this.isActive = true;
|
|
444
|
+
}
|
|
444
445
|
}
|
|
445
446
|
|
|
446
|
-
class WaitlistGunPackageDetail {
|
|
447
|
-
constructor() {
|
|
448
|
-
this.optionalItems = [];
|
|
449
|
-
this.variations = [];
|
|
450
|
-
}
|
|
447
|
+
class WaitlistGunPackageDetail {
|
|
448
|
+
constructor() {
|
|
449
|
+
this.optionalItems = [];
|
|
450
|
+
this.variations = [];
|
|
451
|
+
}
|
|
451
452
|
}
|
|
452
453
|
|
|
453
|
-
class WorkOrderPackageDetail {
|
|
454
|
-
constructor() {
|
|
455
|
-
this.optionalItems = [];
|
|
456
|
-
this.variations = [];
|
|
457
|
-
}
|
|
454
|
+
class WorkOrderPackageDetail {
|
|
455
|
+
constructor() {
|
|
456
|
+
this.optionalItems = [];
|
|
457
|
+
this.variations = [];
|
|
458
|
+
}
|
|
458
459
|
}
|
|
459
460
|
|
|
460
|
-
class PackageTotal {
|
|
461
|
+
class PackageTotal {
|
|
461
462
|
}
|
|
462
463
|
|
|
463
|
-
class WorkOrderInventoryItem {
|
|
464
|
+
class WorkOrderInventoryItem {
|
|
464
465
|
}
|
|
465
466
|
|
|
466
|
-
class RefinishCode {
|
|
467
|
+
class RefinishCode {
|
|
467
468
|
}
|
|
468
469
|
|
|
469
|
-
class WorkOrderListItem {
|
|
470
|
+
class WorkOrderListItem {
|
|
470
471
|
}
|
|
471
472
|
|
|
472
|
-
class WorkOrderShippingItem {
|
|
473
|
+
class WorkOrderShippingItem {
|
|
473
474
|
}
|
|
474
475
|
|
|
475
|
-
class WorkOrderDiscount {
|
|
476
|
-
constructor() { }
|
|
476
|
+
class WorkOrderDiscount {
|
|
477
|
+
constructor() { }
|
|
477
478
|
}
|
|
478
479
|
|
|
479
|
-
class WorkOrderNonInventoryItem {
|
|
480
|
+
class WorkOrderNonInventoryItem {
|
|
480
481
|
}
|
|
481
482
|
|
|
482
|
-
class ChangeOrderPackageDetail {
|
|
483
|
-
constructor() {
|
|
484
|
-
this.optionalItems = [];
|
|
485
|
-
this.variations = [];
|
|
486
|
-
}
|
|
483
|
+
class ChangeOrderPackageDetail {
|
|
484
|
+
constructor() {
|
|
485
|
+
this.optionalItems = [];
|
|
486
|
+
this.variations = [];
|
|
487
|
+
}
|
|
487
488
|
}
|
|
488
489
|
|
|
489
|
-
class Sight {
|
|
490
|
-
constructor() {
|
|
491
|
-
this.active = true;
|
|
492
|
-
}
|
|
490
|
+
class Sight {
|
|
491
|
+
constructor() {
|
|
492
|
+
this.active = true;
|
|
493
|
+
}
|
|
493
494
|
}
|
|
494
495
|
|
|
495
|
-
class SightType {
|
|
496
|
-
constructor() {
|
|
497
|
-
this.active = true;
|
|
498
|
-
}
|
|
496
|
+
class SightType {
|
|
497
|
+
constructor() {
|
|
498
|
+
this.active = true;
|
|
499
|
+
}
|
|
499
500
|
}
|
|
500
501
|
|
|
501
|
-
class SightMaterialType {
|
|
502
|
-
constructor() {
|
|
503
|
-
this.active = true;
|
|
504
|
-
}
|
|
502
|
+
class SightMaterialType {
|
|
503
|
+
constructor() {
|
|
504
|
+
this.active = true;
|
|
505
|
+
}
|
|
505
506
|
}
|
|
506
507
|
|
|
507
|
-
class FirearmOptic {
|
|
508
|
-
constructor() {
|
|
509
|
-
this.frontSights = [];
|
|
510
|
-
this.rearSights = [];
|
|
511
|
-
this.keepDovetail = false;
|
|
512
|
-
this.removeDovetail = false;
|
|
513
|
-
this.weightReduction = false;
|
|
514
|
-
this.active = true;
|
|
515
|
-
}
|
|
508
|
+
class FirearmOptic {
|
|
509
|
+
constructor() {
|
|
510
|
+
this.frontSights = [];
|
|
511
|
+
this.rearSights = [];
|
|
512
|
+
this.keepDovetail = false;
|
|
513
|
+
this.removeDovetail = false;
|
|
514
|
+
this.weightReduction = false;
|
|
515
|
+
this.active = true;
|
|
516
|
+
}
|
|
516
517
|
}
|
|
517
518
|
|
|
518
|
-
class OpticSight extends Sight {
|
|
519
|
+
class OpticSight extends Sight {
|
|
519
520
|
}
|
|
520
521
|
|
|
521
|
-
class SlideAddon {
|
|
522
|
-
constructor() {
|
|
523
|
-
this.subItems = [];
|
|
524
|
-
this.active = true;
|
|
525
|
-
}
|
|
522
|
+
class SlideAddon {
|
|
523
|
+
constructor() {
|
|
524
|
+
this.subItems = [];
|
|
525
|
+
this.active = true;
|
|
526
|
+
}
|
|
526
527
|
}
|
|
527
528
|
|
|
528
|
-
class MillingTypeAddonOption extends MillingType {
|
|
529
|
+
class MillingTypeAddonOption extends MillingType {
|
|
529
530
|
}
|
|
530
531
|
|
|
531
|
-
class MillingTypeAddon {
|
|
532
|
-
constructor() {
|
|
533
|
-
this.addonOptions = [];
|
|
534
|
-
this.active = true;
|
|
535
|
-
}
|
|
532
|
+
class MillingTypeAddon {
|
|
533
|
+
constructor() {
|
|
534
|
+
this.addonOptions = [];
|
|
535
|
+
this.active = true;
|
|
536
|
+
}
|
|
536
537
|
}
|
|
537
538
|
|
|
538
|
-
class Address {
|
|
539
|
+
class Address {
|
|
539
540
|
}
|
|
540
541
|
|
|
541
|
-
class BillingInfo {
|
|
542
|
+
class BillingInfo {
|
|
542
543
|
}
|
|
543
544
|
|
|
544
|
-
class WorkOrderTotal {
|
|
545
|
+
class WorkOrderTotal {
|
|
545
546
|
}
|
|
546
547
|
|
|
547
|
-
class WorkOrderBillingTransaction {
|
|
548
|
+
class WorkOrderBillingTransaction {
|
|
548
549
|
}
|
|
549
550
|
|
|
550
|
-
class CustomerService {
|
|
551
|
-
constructor(http, env) {
|
|
552
|
-
this.http = http;
|
|
553
|
-
this.env = env;
|
|
554
|
-
this.url = this.env.baseUrl + 'api/customers';
|
|
555
|
-
}
|
|
556
|
-
readCustomers(includeInactive = false, filter = null) {
|
|
557
|
-
const params = {};
|
|
558
|
-
if (includeInactive) {
|
|
559
|
-
params['includeInactive'] = includeInactive.toString();
|
|
560
|
-
}
|
|
561
|
-
if (filter) {
|
|
562
|
-
params['filter'] = filter;
|
|
563
|
-
}
|
|
564
|
-
return this.http.get(this.url, {
|
|
565
|
-
params: params
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
readCustomer(id) {
|
|
569
|
-
return this.http.get(`${this.url}/${id}`);
|
|
570
|
-
}
|
|
571
|
-
createCustomer(customer) {
|
|
572
|
-
return this.http.post(this.url, customer);
|
|
573
|
-
}
|
|
574
|
-
updateCustomer(id, customer) {
|
|
575
|
-
return this.http.put(`${this.url}/${id}`, customer);
|
|
576
|
-
}
|
|
577
|
-
deleteCustomer(id) {
|
|
578
|
-
return this.http.delete(`${this.url}/${id}`);
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
CustomerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CustomerService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
582
|
-
CustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CustomerService, providedIn: 'root' });
|
|
583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CustomerService, decorators: [{
|
|
584
|
-
type: Injectable,
|
|
585
|
-
args: [{
|
|
586
|
-
providedIn: 'root'
|
|
587
|
-
}]
|
|
588
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
589
|
-
type: Inject,
|
|
590
|
-
args: ['env']
|
|
551
|
+
class CustomerService {
|
|
552
|
+
constructor(http, env) {
|
|
553
|
+
this.http = http;
|
|
554
|
+
this.env = env;
|
|
555
|
+
this.url = this.env.baseUrl + 'api/customers';
|
|
556
|
+
}
|
|
557
|
+
readCustomers(includeInactive = false, filter = null) {
|
|
558
|
+
const params = {};
|
|
559
|
+
if (includeInactive) {
|
|
560
|
+
params['includeInactive'] = includeInactive.toString();
|
|
561
|
+
}
|
|
562
|
+
if (filter) {
|
|
563
|
+
params['filter'] = filter;
|
|
564
|
+
}
|
|
565
|
+
return this.http.get(this.url, {
|
|
566
|
+
params: params
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
readCustomer(id) {
|
|
570
|
+
return this.http.get(`${this.url}/${id}`);
|
|
571
|
+
}
|
|
572
|
+
createCustomer(customer) {
|
|
573
|
+
return this.http.post(this.url, customer);
|
|
574
|
+
}
|
|
575
|
+
updateCustomer(id, customer) {
|
|
576
|
+
return this.http.put(`${this.url}/${id}`, customer);
|
|
577
|
+
}
|
|
578
|
+
deleteCustomer(id) {
|
|
579
|
+
return this.http.delete(`${this.url}/${id}`);
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
CustomerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CustomerService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
583
|
+
CustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CustomerService, providedIn: 'root' });
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CustomerService, decorators: [{
|
|
585
|
+
type: Injectable,
|
|
586
|
+
args: [{
|
|
587
|
+
providedIn: 'root'
|
|
588
|
+
}]
|
|
589
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
590
|
+
type: Inject,
|
|
591
|
+
args: ['env']
|
|
591
592
|
}] }]; } });
|
|
592
593
|
|
|
593
|
-
class BaseService {
|
|
594
|
-
constructor(http) {
|
|
595
|
-
this.http = http;
|
|
596
|
-
}
|
|
597
|
-
getUrl(...params) {
|
|
598
|
-
let baseUrl = this.urlSegments[0];
|
|
599
|
-
for (let i = 0; i < params.length; i++) {
|
|
600
|
-
baseUrl += `/${params[i]}`;
|
|
601
|
-
if (this.urlSegments.length > i + 1) {
|
|
602
|
-
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
return baseUrl;
|
|
606
|
-
}
|
|
607
|
-
getAll(...params) {
|
|
608
|
-
return this.http.get(this.getUrl(...params));
|
|
609
|
-
}
|
|
610
|
-
getAllWithParams(queryParams, ...params) {
|
|
611
|
-
return this.http
|
|
612
|
-
.get(this.getUrl(...params), { params: queryParams });
|
|
613
|
-
}
|
|
614
|
-
get(...params) {
|
|
615
|
-
return this.http.get(this.getUrl(...params));
|
|
616
|
-
}
|
|
617
|
-
create(item, ...params) {
|
|
618
|
-
return this.http
|
|
619
|
-
.post(this.getUrl(...params), item);
|
|
620
|
-
}
|
|
621
|
-
update(item, ...params) {
|
|
622
|
-
return this.http
|
|
623
|
-
.put(this.getUrl(...params), item);
|
|
624
|
-
}
|
|
625
|
-
delete(...params) {
|
|
626
|
-
return this.http
|
|
627
|
-
.delete(this.getUrl(...params));
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
631
|
-
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
633
|
-
type: Injectable,
|
|
634
|
-
args: [{
|
|
635
|
-
providedIn: 'root'
|
|
636
|
-
}]
|
|
594
|
+
class BaseService {
|
|
595
|
+
constructor(http) {
|
|
596
|
+
this.http = http;
|
|
597
|
+
}
|
|
598
|
+
getUrl(...params) {
|
|
599
|
+
let baseUrl = this.urlSegments[0];
|
|
600
|
+
for (let i = 0; i < params.length; i++) {
|
|
601
|
+
baseUrl += `/${params[i]}`;
|
|
602
|
+
if (this.urlSegments.length > i + 1) {
|
|
603
|
+
baseUrl += `/${this.urlSegments[i + 1]}`;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return baseUrl;
|
|
607
|
+
}
|
|
608
|
+
getAll(...params) {
|
|
609
|
+
return this.http.get(this.getUrl(...params));
|
|
610
|
+
}
|
|
611
|
+
getAllWithParams(queryParams, ...params) {
|
|
612
|
+
return this.http
|
|
613
|
+
.get(this.getUrl(...params), { params: queryParams });
|
|
614
|
+
}
|
|
615
|
+
get(...params) {
|
|
616
|
+
return this.http.get(this.getUrl(...params));
|
|
617
|
+
}
|
|
618
|
+
create(item, ...params) {
|
|
619
|
+
return this.http
|
|
620
|
+
.post(this.getUrl(...params), item);
|
|
621
|
+
}
|
|
622
|
+
update(item, ...params) {
|
|
623
|
+
return this.http
|
|
624
|
+
.put(this.getUrl(...params), item);
|
|
625
|
+
}
|
|
626
|
+
delete(...params) {
|
|
627
|
+
return this.http
|
|
628
|
+
.delete(this.getUrl(...params));
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
BaseService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, deps: [{ token: i1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
632
|
+
BaseService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, providedIn: 'root' });
|
|
633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: BaseService, decorators: [{
|
|
634
|
+
type: Injectable,
|
|
635
|
+
args: [{
|
|
636
|
+
providedIn: 'root'
|
|
637
|
+
}]
|
|
637
638
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
638
639
|
|
|
639
|
-
class FirearmService extends BaseService {
|
|
640
|
-
constructor(http, env) {
|
|
641
|
-
super(http);
|
|
642
|
-
this.http = http;
|
|
643
|
-
this.env = env;
|
|
644
|
-
this.urlSegments = [`${this.env.baseUrl}api/firearms`];
|
|
645
|
-
}
|
|
646
|
-
readFirearmMaterial(firearmId) {
|
|
647
|
-
return this.http.get(`${this.getUrl(firearmId)}/material`);
|
|
648
|
-
}
|
|
649
|
-
readFirearmCosmetics(firearmId) {
|
|
650
|
-
return this.http.get(`${this.getUrl(firearmId)}/cosmetics`);
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
FirearmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
654
|
-
FirearmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, providedIn: "root" });
|
|
655
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, decorators: [{
|
|
656
|
-
type: Injectable,
|
|
657
|
-
args: [{
|
|
658
|
-
providedIn: "root",
|
|
659
|
-
}]
|
|
660
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
661
|
-
type: Inject,
|
|
662
|
-
args: ["env"]
|
|
640
|
+
class FirearmService extends BaseService {
|
|
641
|
+
constructor(http, env) {
|
|
642
|
+
super(http);
|
|
643
|
+
this.http = http;
|
|
644
|
+
this.env = env;
|
|
645
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`];
|
|
646
|
+
}
|
|
647
|
+
readFirearmMaterial(firearmId) {
|
|
648
|
+
return this.http.get(`${this.getUrl(firearmId)}/material`);
|
|
649
|
+
}
|
|
650
|
+
readFirearmCosmetics(firearmId) {
|
|
651
|
+
return this.http.get(`${this.getUrl(firearmId)}/cosmetics`);
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
FirearmService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
655
|
+
FirearmService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, providedIn: "root" });
|
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmService, decorators: [{
|
|
657
|
+
type: Injectable,
|
|
658
|
+
args: [{
|
|
659
|
+
providedIn: "root",
|
|
660
|
+
}]
|
|
661
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
662
|
+
type: Inject,
|
|
663
|
+
args: ["env"]
|
|
663
664
|
}] }]; } });
|
|
664
665
|
|
|
665
|
-
class GunPartService extends BaseService {
|
|
666
|
-
constructor(http, env) {
|
|
667
|
-
super(http);
|
|
668
|
-
this.http = http;
|
|
669
|
-
this.env = env;
|
|
670
|
-
this.urlSegments = [`${this.env.baseUrl}api/gun-parts`];
|
|
671
|
-
}
|
|
672
|
-
getParams(includeInactive, gunsmith, customer) {
|
|
673
|
-
const params = {
|
|
674
|
-
includeInactive: includeInactive.toString(),
|
|
675
|
-
};
|
|
676
|
-
if (gunsmith !== null) {
|
|
677
|
-
params["gunsmith"] = gunsmith.toString();
|
|
678
|
-
}
|
|
679
|
-
if (customer !== null) {
|
|
680
|
-
params["customer"] = customer.toString();
|
|
681
|
-
}
|
|
682
|
-
return params;
|
|
683
|
-
}
|
|
684
|
-
getAllCustomer() {
|
|
685
|
-
return this.getAllWithParams(this.getParams(false, null, true));
|
|
686
|
-
}
|
|
687
|
-
getAllGunsmith() {
|
|
688
|
-
return this.getAllWithParams(this.getParams(false, true, null));
|
|
689
|
-
}
|
|
690
|
-
getPartCoatings(id) {
|
|
691
|
-
return this.http.get(`${this.getUrl(id)}/coatings`);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
GunPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GunPartService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
695
|
-
GunPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GunPartService, providedIn: "root" });
|
|
696
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GunPartService, decorators: [{
|
|
697
|
-
type: Injectable,
|
|
698
|
-
args: [{
|
|
699
|
-
providedIn: "root",
|
|
700
|
-
}]
|
|
701
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
702
|
-
type: Inject,
|
|
703
|
-
args: ["env"]
|
|
666
|
+
class GunPartService extends BaseService {
|
|
667
|
+
constructor(http, env) {
|
|
668
|
+
super(http);
|
|
669
|
+
this.http = http;
|
|
670
|
+
this.env = env;
|
|
671
|
+
this.urlSegments = [`${this.env.baseUrl}api/gun-parts`];
|
|
672
|
+
}
|
|
673
|
+
getParams(includeInactive, gunsmith, customer) {
|
|
674
|
+
const params = {
|
|
675
|
+
includeInactive: includeInactive.toString(),
|
|
676
|
+
};
|
|
677
|
+
if (gunsmith !== null) {
|
|
678
|
+
params["gunsmith"] = gunsmith.toString();
|
|
679
|
+
}
|
|
680
|
+
if (customer !== null) {
|
|
681
|
+
params["customer"] = customer.toString();
|
|
682
|
+
}
|
|
683
|
+
return params;
|
|
684
|
+
}
|
|
685
|
+
getAllCustomer() {
|
|
686
|
+
return this.getAllWithParams(this.getParams(false, null, true));
|
|
687
|
+
}
|
|
688
|
+
getAllGunsmith() {
|
|
689
|
+
return this.getAllWithParams(this.getParams(false, true, null));
|
|
690
|
+
}
|
|
691
|
+
getPartCoatings(id) {
|
|
692
|
+
return this.http.get(`${this.getUrl(id)}/coatings`);
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
GunPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GunPartService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
696
|
+
GunPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GunPartService, providedIn: "root" });
|
|
697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GunPartService, decorators: [{
|
|
698
|
+
type: Injectable,
|
|
699
|
+
args: [{
|
|
700
|
+
providedIn: "root",
|
|
701
|
+
}]
|
|
702
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
703
|
+
type: Inject,
|
|
704
|
+
args: ["env"]
|
|
704
705
|
}] }]; } });
|
|
705
706
|
|
|
706
|
-
class StateService {
|
|
707
|
-
constructor(http, env) {
|
|
708
|
-
this.http = http;
|
|
709
|
-
this.env = env;
|
|
710
|
-
this.url = this.env.baseUrl + 'api/states';
|
|
711
|
-
}
|
|
712
|
-
getStates() {
|
|
713
|
-
return this.http.get(this.url);
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
StateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StateService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
717
|
-
StateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StateService, providedIn: 'root' });
|
|
718
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StateService, decorators: [{
|
|
719
|
-
type: Injectable,
|
|
720
|
-
args: [{
|
|
721
|
-
providedIn: 'root'
|
|
722
|
-
}]
|
|
723
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
724
|
-
type: Inject,
|
|
725
|
-
args: ['env']
|
|
707
|
+
class StateService {
|
|
708
|
+
constructor(http, env) {
|
|
709
|
+
this.http = http;
|
|
710
|
+
this.env = env;
|
|
711
|
+
this.url = this.env.baseUrl + 'api/states';
|
|
712
|
+
}
|
|
713
|
+
getStates() {
|
|
714
|
+
return this.http.get(this.url);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
StateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StateService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
718
|
+
StateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StateService, providedIn: 'root' });
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StateService, decorators: [{
|
|
720
|
+
type: Injectable,
|
|
721
|
+
args: [{
|
|
722
|
+
providedIn: 'root'
|
|
723
|
+
}]
|
|
724
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
725
|
+
type: Inject,
|
|
726
|
+
args: ['env']
|
|
726
727
|
}] }]; } });
|
|
727
728
|
|
|
728
|
-
class VendorService {
|
|
729
|
-
constructor(http, env) {
|
|
730
|
-
this.http = http;
|
|
731
|
-
this.env = env;
|
|
732
|
-
this.url = this.env.baseUrl + 'api/vendors';
|
|
733
|
-
}
|
|
734
|
-
readVendors(includeInactive = false) {
|
|
735
|
-
return this.http.get(this.url, {
|
|
736
|
-
params: {
|
|
737
|
-
includeInactive: includeInactive.toString()
|
|
738
|
-
}
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
readVendor(id) {
|
|
742
|
-
return this.http.get(`${this.url}/${id}`);
|
|
743
|
-
}
|
|
744
|
-
createVendor(Vendor) {
|
|
745
|
-
return this.http.post(this.url, Vendor);
|
|
746
|
-
}
|
|
747
|
-
updateVendor(id, Vendor) {
|
|
748
|
-
return this.http.put(`${this.url}/${id}`, Vendor);
|
|
749
|
-
}
|
|
750
|
-
deleteVendor(id) {
|
|
751
|
-
return this.http.delete(`${this.url}/${id}`);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
VendorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VendorService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
755
|
-
VendorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VendorService, providedIn: 'root' });
|
|
756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VendorService, decorators: [{
|
|
757
|
-
type: Injectable,
|
|
758
|
-
args: [{
|
|
759
|
-
providedIn: 'root'
|
|
760
|
-
}]
|
|
761
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
762
|
-
type: Inject,
|
|
763
|
-
args: ['env']
|
|
729
|
+
class VendorService {
|
|
730
|
+
constructor(http, env) {
|
|
731
|
+
this.http = http;
|
|
732
|
+
this.env = env;
|
|
733
|
+
this.url = this.env.baseUrl + 'api/vendors';
|
|
734
|
+
}
|
|
735
|
+
readVendors(includeInactive = false) {
|
|
736
|
+
return this.http.get(this.url, {
|
|
737
|
+
params: {
|
|
738
|
+
includeInactive: includeInactive.toString()
|
|
739
|
+
}
|
|
740
|
+
});
|
|
741
|
+
}
|
|
742
|
+
readVendor(id) {
|
|
743
|
+
return this.http.get(`${this.url}/${id}`);
|
|
744
|
+
}
|
|
745
|
+
createVendor(Vendor) {
|
|
746
|
+
return this.http.post(this.url, Vendor);
|
|
747
|
+
}
|
|
748
|
+
updateVendor(id, Vendor) {
|
|
749
|
+
return this.http.put(`${this.url}/${id}`, Vendor);
|
|
750
|
+
}
|
|
751
|
+
deleteVendor(id) {
|
|
752
|
+
return this.http.delete(`${this.url}/${id}`);
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
VendorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VendorService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
756
|
+
VendorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VendorService, providedIn: 'root' });
|
|
757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: VendorService, decorators: [{
|
|
758
|
+
type: Injectable,
|
|
759
|
+
args: [{
|
|
760
|
+
providedIn: 'root'
|
|
761
|
+
}]
|
|
762
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
763
|
+
type: Inject,
|
|
764
|
+
args: ['env']
|
|
764
765
|
}] }]; } });
|
|
765
766
|
|
|
766
|
-
class TotalsService {
|
|
767
|
-
constructor(http, env) {
|
|
768
|
-
this.http = http;
|
|
769
|
-
this.env = env;
|
|
770
|
-
this.url = this.env.baseUrl + 'api/';
|
|
771
|
-
}
|
|
772
|
-
readTotals(startDate, endDate, groupBy) {
|
|
773
|
-
return this.http.get(this.url + 'work-orders/totals', {
|
|
774
|
-
params: {
|
|
775
|
-
startDate: startDate.toUTCString(),
|
|
776
|
-
endDate: endDate.toUTCString(),
|
|
777
|
-
groupBy: groupBy.toString()
|
|
778
|
-
}
|
|
779
|
-
});
|
|
780
|
-
}
|
|
781
|
-
readMillingTotals(startDate, endDate, groupBy) {
|
|
782
|
-
return this.http.get(this.url + 'milling-totals', {
|
|
783
|
-
params: {
|
|
784
|
-
startDate: startDate.toUTCString(),
|
|
785
|
-
endDate: endDate.toUTCString(),
|
|
786
|
-
groupBy: groupBy.toString()
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
}
|
|
790
|
-
readRefinishTotals(startDate, endDate, groupBy) {
|
|
791
|
-
return this.http.get(this.url + 'refinish-totals', {
|
|
792
|
-
params: {
|
|
793
|
-
startDate: startDate.toUTCString(),
|
|
794
|
-
endDate: endDate.toUTCString(),
|
|
795
|
-
groupBy: groupBy.toString()
|
|
796
|
-
}
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
TotalsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TotalsService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
801
|
-
TotalsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TotalsService, providedIn: 'root' });
|
|
802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TotalsService, decorators: [{
|
|
803
|
-
type: Injectable,
|
|
804
|
-
args: [{
|
|
805
|
-
providedIn: 'root'
|
|
806
|
-
}]
|
|
807
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
808
|
-
type: Inject,
|
|
809
|
-
args: ['env']
|
|
767
|
+
class TotalsService {
|
|
768
|
+
constructor(http, env) {
|
|
769
|
+
this.http = http;
|
|
770
|
+
this.env = env;
|
|
771
|
+
this.url = this.env.baseUrl + 'api/';
|
|
772
|
+
}
|
|
773
|
+
readTotals(startDate, endDate, groupBy) {
|
|
774
|
+
return this.http.get(this.url + 'work-orders/totals', {
|
|
775
|
+
params: {
|
|
776
|
+
startDate: startDate.toUTCString(),
|
|
777
|
+
endDate: endDate.toUTCString(),
|
|
778
|
+
groupBy: groupBy.toString()
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
readMillingTotals(startDate, endDate, groupBy) {
|
|
783
|
+
return this.http.get(this.url + 'milling-totals', {
|
|
784
|
+
params: {
|
|
785
|
+
startDate: startDate.toUTCString(),
|
|
786
|
+
endDate: endDate.toUTCString(),
|
|
787
|
+
groupBy: groupBy.toString()
|
|
788
|
+
}
|
|
789
|
+
});
|
|
790
|
+
}
|
|
791
|
+
readRefinishTotals(startDate, endDate, groupBy) {
|
|
792
|
+
return this.http.get(this.url + 'refinish-totals', {
|
|
793
|
+
params: {
|
|
794
|
+
startDate: startDate.toUTCString(),
|
|
795
|
+
endDate: endDate.toUTCString(),
|
|
796
|
+
groupBy: groupBy.toString()
|
|
797
|
+
}
|
|
798
|
+
});
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
TotalsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TotalsService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
802
|
+
TotalsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TotalsService, providedIn: 'root' });
|
|
803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: TotalsService, decorators: [{
|
|
804
|
+
type: Injectable,
|
|
805
|
+
args: [{
|
|
806
|
+
providedIn: 'root'
|
|
807
|
+
}]
|
|
808
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
809
|
+
type: Inject,
|
|
810
|
+
args: ['env']
|
|
810
811
|
}] }]; } });
|
|
811
812
|
|
|
812
|
-
class WorkHolidayService {
|
|
813
|
-
constructor(http, env) {
|
|
814
|
-
this.http = http;
|
|
815
|
-
this.env = env;
|
|
816
|
-
this.url = this.env.baseUrl + 'api/holidays';
|
|
817
|
-
}
|
|
818
|
-
readHolidays() {
|
|
819
|
-
return this.http.get(this.url);
|
|
820
|
-
}
|
|
821
|
-
createHoliday(holiday) {
|
|
822
|
-
return this.http.post(this.url, holiday);
|
|
823
|
-
}
|
|
824
|
-
deleteHoliday(id) {
|
|
825
|
-
return this.http.delete(`${this.url}/${id}`);
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
WorkHolidayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkHolidayService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
829
|
-
WorkHolidayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkHolidayService, providedIn: 'root' });
|
|
830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkHolidayService, decorators: [{
|
|
831
|
-
type: Injectable,
|
|
832
|
-
args: [{
|
|
833
|
-
providedIn: 'root'
|
|
834
|
-
}]
|
|
835
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
836
|
-
type: Inject,
|
|
837
|
-
args: ['env']
|
|
813
|
+
class WorkHolidayService {
|
|
814
|
+
constructor(http, env) {
|
|
815
|
+
this.http = http;
|
|
816
|
+
this.env = env;
|
|
817
|
+
this.url = this.env.baseUrl + 'api/holidays';
|
|
818
|
+
}
|
|
819
|
+
readHolidays() {
|
|
820
|
+
return this.http.get(this.url);
|
|
821
|
+
}
|
|
822
|
+
createHoliday(holiday) {
|
|
823
|
+
return this.http.post(this.url, holiday);
|
|
824
|
+
}
|
|
825
|
+
deleteHoliday(id) {
|
|
826
|
+
return this.http.delete(`${this.url}/${id}`);
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
WorkHolidayService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkHolidayService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
830
|
+
WorkHolidayService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkHolidayService, providedIn: 'root' });
|
|
831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkHolidayService, decorators: [{
|
|
832
|
+
type: Injectable,
|
|
833
|
+
args: [{
|
|
834
|
+
providedIn: 'root'
|
|
835
|
+
}]
|
|
836
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
837
|
+
type: Inject,
|
|
838
|
+
args: ['env']
|
|
838
839
|
}] }]; } });
|
|
839
840
|
|
|
840
|
-
class WorkOrderService {
|
|
841
|
-
constructor(http, env) {
|
|
842
|
-
this.http = http;
|
|
843
|
-
this.env = env;
|
|
844
|
-
this.url = this.env.baseUrl + 'api/work-orders';
|
|
845
|
-
}
|
|
846
|
-
doWorkOrderAction(id, actionId) {
|
|
847
|
-
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
848
|
-
}
|
|
849
|
-
readWorkOrders(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, orderTypes = null, projectTypes = null, users = null, specialOrder = null) {
|
|
850
|
-
return this.http.get(this.url, {
|
|
851
|
-
params: this.createWorkOrderParams(statuses, id, customerName, customerEmail, serialNumber, orderTypes, projectTypes, users, specialOrder)
|
|
852
|
-
});
|
|
853
|
-
}
|
|
854
|
-
readExportWorkOrders(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, orderTypes = null, projectTypes = null, users = null, specialOrder = null) {
|
|
855
|
-
return this.http.get(`${this.url}/export`, {
|
|
856
|
-
params: this.createWorkOrderParams(statuses, id, customerName, customerEmail, serialNumber, orderTypes, projectTypes, users, specialOrder)
|
|
857
|
-
});
|
|
858
|
-
}
|
|
859
|
-
readWorkOrderTotal(id) {
|
|
860
|
-
return this.http.get(`${this.url}/${id}/totals`);
|
|
861
|
-
}
|
|
862
|
-
createWorkOrderParams(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, orderTypes = null, projectTypes = null, users = null, specialOrder = null) {
|
|
863
|
-
const params = {};
|
|
864
|
-
if (statuses) {
|
|
865
|
-
params['statuses'] = statuses.map(status => status.toString());
|
|
866
|
-
}
|
|
867
|
-
if (id) {
|
|
868
|
-
params['id'] = id.toString();
|
|
869
|
-
}
|
|
870
|
-
if (customerName) {
|
|
871
|
-
params['customerName'] = customerName;
|
|
872
|
-
}
|
|
873
|
-
if (customerEmail) {
|
|
874
|
-
params['customerEmail'] = customerEmail;
|
|
875
|
-
}
|
|
876
|
-
if (serialNumber) {
|
|
877
|
-
params['serialNumber'] = serialNumber;
|
|
878
|
-
}
|
|
879
|
-
if (orderTypes !== null) {
|
|
880
|
-
params['orderTypes'] = orderTypes.map(type => type.toString());
|
|
881
|
-
}
|
|
882
|
-
if (projectTypes) {
|
|
883
|
-
params['projectTypes'] = projectTypes.map(t => t.toString());
|
|
884
|
-
}
|
|
885
|
-
if (users) {
|
|
886
|
-
params['users'] = users;
|
|
887
|
-
}
|
|
888
|
-
if (specialOrder) {
|
|
889
|
-
params['specialOrder'] = specialOrder.toString();
|
|
890
|
-
}
|
|
891
|
-
return params;
|
|
892
|
-
}
|
|
893
|
-
readWorkOrder(workOrderId) {
|
|
894
|
-
return this.http.get(`${this.url}/${workOrderId}`);
|
|
895
|
-
}
|
|
896
|
-
createWorkOrder(workOrder) {
|
|
897
|
-
return this.http.post(this.url, workOrder);
|
|
898
|
-
}
|
|
899
|
-
updateWorkOrder(workOrderId, workOrder) {
|
|
900
|
-
return this.http.put(`${this.url}/${workOrderId}`, workOrder);
|
|
901
|
-
}
|
|
902
|
-
deleteWorkOrder(workOrderId) {
|
|
903
|
-
return this.http.delete(`${this.url}/${workOrderId}`);
|
|
904
|
-
}
|
|
905
|
-
recalcWorkDates() {
|
|
906
|
-
return this.http.get(`${this.url}/recalc-dates`);
|
|
907
|
-
}
|
|
908
|
-
// Change Orders
|
|
909
|
-
readChangeOrders(workOrderId) {
|
|
910
|
-
return this.http.get(`${this.url}/${workOrderId}/change-orders`);
|
|
911
|
-
}
|
|
912
|
-
readChangeOrder(workOrderId, changeOrderId) {
|
|
913
|
-
return this.http.get(`${this.url}/${workOrderId}/change-orders/${changeOrderId}`);
|
|
914
|
-
}
|
|
915
|
-
createChangeOrder(workOrderId, changeOrder) {
|
|
916
|
-
return this.http.post(`${this.url}/${workOrderId}/change-orders`, changeOrder);
|
|
917
|
-
}
|
|
918
|
-
updateChangeOrder(workOrderId, changeOrderId, changeOrder) {
|
|
919
|
-
return this.http.put(`${this.url}/${workOrderId}/change-orders/${changeOrderId}`, changeOrder);
|
|
920
|
-
}
|
|
921
|
-
deleteChangeOrder(workOrderId, changeOrderId) {
|
|
922
|
-
return this.http.delete(`${this.url}/${workOrderId}/change-orders/${changeOrderId}`);
|
|
923
|
-
}
|
|
924
|
-
confirmChangeOrder(token) {
|
|
925
|
-
return this.http.get(`${this.env.baseUrl}api/change-orders/customer`, {
|
|
926
|
-
params: {
|
|
927
|
-
token: token
|
|
928
|
-
}
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
cancelChangeOrder(token) {
|
|
932
|
-
return this.http.delete(`${this.env.baseUrl}api/change-orders/customer`, {
|
|
933
|
-
params: {
|
|
934
|
-
token: token
|
|
935
|
-
}
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
// Checklist
|
|
939
|
-
createChecklists(workOrderId, refinishItemIds) {
|
|
940
|
-
return this.http.get(`${this.url}/${workOrderId}/refinish-items/` + refinishItemIds.join(',') + '/pdfs', { responseType: "blob" });
|
|
941
|
-
}
|
|
942
|
-
createShopChecklist(workOrderId) {
|
|
943
|
-
return this.http.get(`${this.url}/${workOrderId}/pdf`, { responseType: "blob" });
|
|
944
|
-
}
|
|
945
|
-
// Refinish Items
|
|
946
|
-
readRefinishItems(workOrderId) {
|
|
947
|
-
return this.http.get(`${this.url}/${workOrderId}/refinish-items`);
|
|
948
|
-
}
|
|
949
|
-
readRefinishItemCollection(workOrderId, itemIds) {
|
|
950
|
-
return this.http.get(`${this.url}/${workOrderId}/refinish-items/collection/${itemIds.join(',')}`);
|
|
951
|
-
}
|
|
952
|
-
readRefinishItem(workOrderId, refinishItemId) {
|
|
953
|
-
return this.http.get(`${this.url}/${workOrderId}/refinish-items/${refinishItemId}`);
|
|
954
|
-
}
|
|
955
|
-
createRefinishItems(workOrderId, refinishItems) {
|
|
956
|
-
return this.http.post(`${this.url}/${workOrderId}/refinish-items/collection`, refinishItems);
|
|
957
|
-
}
|
|
958
|
-
updateRefinishItem(workOrderId, refinishItemId, refinishItem) {
|
|
959
|
-
return this.http.put(`${this.url}/${workOrderId}/refinish-items/${refinishItemId}`, refinishItem);
|
|
960
|
-
}
|
|
961
|
-
deleteRefinishItem(workOrderId, refinishItemId) {
|
|
962
|
-
return this.http.delete(`${this.url}/${workOrderId}/refinish-items/${refinishItemId}`);
|
|
963
|
-
}
|
|
964
|
-
// Milling Items
|
|
965
|
-
readMillingItems(workOrderId) {
|
|
966
|
-
return this.http.get(`${this.url}/${workOrderId}/milling-items`);
|
|
967
|
-
}
|
|
968
|
-
readMillingItem(workOrderId, millingItemId) {
|
|
969
|
-
return this.http.get(`${this.url}/${workOrderId}/milling-items/${millingItemId}`);
|
|
970
|
-
}
|
|
971
|
-
createMillingItem(workOrderId, millingItem) {
|
|
972
|
-
return this.http.post(`${this.url}/${workOrderId}/milling-items`, millingItem);
|
|
973
|
-
}
|
|
974
|
-
updateMillingItem(workOrderId, millingItemId, millingItem) {
|
|
975
|
-
return this.http.put(`${this.url}/${workOrderId}/milling-items/${millingItemId}`, millingItem);
|
|
976
|
-
}
|
|
977
|
-
updateMillingItemCollection(workOrderId, itemIds, millingItems) {
|
|
978
|
-
return this.http.put(`${this.url}/${workOrderId}/milling-items/collection/${itemIds.join(',')}`, millingItems);
|
|
979
|
-
}
|
|
980
|
-
deleteMillingItem(workOrderId, millingItemId) {
|
|
981
|
-
return this.http.delete(`${this.url}/${workOrderId}/milling-items/${millingItemId}`);
|
|
982
|
-
}
|
|
983
|
-
// Report Items
|
|
984
|
-
readReportMillingItems() {
|
|
985
|
-
return this.http.get(`${this.env.baseUrl}api/report-milling-items`);
|
|
986
|
-
}
|
|
987
|
-
readReportRefinishItems() {
|
|
988
|
-
return this.http.get(`${this.env.baseUrl}api/report-refinish-items`);
|
|
989
|
-
}
|
|
990
|
-
readPackageDetailTotals(startDate, endDate, statuses) {
|
|
991
|
-
return this.http.get(`${this.url}/package-details/totals`, {
|
|
992
|
-
params: {
|
|
993
|
-
startDate: startDate.toUTCString(),
|
|
994
|
-
endDate: endDate.toUTCString(),
|
|
995
|
-
statuses: statuses.map(status => status.toString())
|
|
996
|
-
}
|
|
997
|
-
});
|
|
998
|
-
}
|
|
999
|
-
// Inventory Items
|
|
1000
|
-
readInventoryItems(workOrderId) {
|
|
1001
|
-
return this.http.get(`${this.url}/${workOrderId}/inventory-items`);
|
|
1002
|
-
}
|
|
1003
|
-
readInventoryItem(workOrderId, inventoryItemId) {
|
|
1004
|
-
return this.http.get(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`);
|
|
1005
|
-
}
|
|
1006
|
-
createInventoryItem(workOrderId, inventoryItem) {
|
|
1007
|
-
return this.http.post(`${this.url}/${workOrderId}/inventory-items`, inventoryItem);
|
|
1008
|
-
}
|
|
1009
|
-
updateInventoryItem(workOrderId, inventoryItemId, inventoryItem) {
|
|
1010
|
-
return this.http.put(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`, inventoryItem);
|
|
1011
|
-
}
|
|
1012
|
-
deleteInventoryItem(workOrderId, inventoryItemId) {
|
|
1013
|
-
return this.http.delete(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`);
|
|
1014
|
-
}
|
|
1015
|
-
readInventoryItemCollection(workOrderId, itemIds) {
|
|
1016
|
-
return this.http.get(`${this.url}/${workOrderId}/inventory-items/collection/${itemIds.join(',')}`);
|
|
1017
|
-
}
|
|
1018
|
-
createInventoryItems(workOrderId, inventoryItems) {
|
|
1019
|
-
return this.http.post(`${this.url}/${workOrderId}/inventory-items/collection`, inventoryItems);
|
|
1020
|
-
}
|
|
1021
|
-
// Billing
|
|
1022
|
-
processTransaction(workOrderId, billingInfo) {
|
|
1023
|
-
return this.http.post(`${this.url}/${workOrderId}/billing`, billingInfo);
|
|
1024
|
-
}
|
|
1025
|
-
getTransactions(workOrderId) {
|
|
1026
|
-
return this.http.get(`${this.url}/${workOrderId}/billing`);
|
|
1027
|
-
}
|
|
1028
|
-
refundTransaction(workOrderId, transactionId, refundAmount) {
|
|
1029
|
-
return this.http.post(`${this.url}/${workOrderId}/billing/${transactionId}/refund`, refundAmount);
|
|
1030
|
-
}
|
|
1031
|
-
createBillingTransaction(workOrderId, billingTransaction) {
|
|
1032
|
-
return this.http.post(`${this.url}/${workOrderId}/billing/transaction`, billingTransaction);
|
|
1033
|
-
}
|
|
1034
|
-
getBillingReceipt(workOrderId) {
|
|
1035
|
-
return this.http.get(`${this.url}/${workOrderId}/billing/receipt`, { responseType: "blob" });
|
|
1036
|
-
}
|
|
1037
|
-
}
|
|
1038
|
-
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 });
|
|
1039
|
-
WorkOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, providedIn: 'root' });
|
|
1040
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, decorators: [{
|
|
1041
|
-
type: Injectable,
|
|
1042
|
-
args: [{
|
|
1043
|
-
providedIn: 'root'
|
|
1044
|
-
}]
|
|
1045
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1046
|
-
type: Inject,
|
|
1047
|
-
args: ['env']
|
|
841
|
+
class WorkOrderService {
|
|
842
|
+
constructor(http, env) {
|
|
843
|
+
this.http = http;
|
|
844
|
+
this.env = env;
|
|
845
|
+
this.url = this.env.baseUrl + 'api/work-orders';
|
|
846
|
+
}
|
|
847
|
+
doWorkOrderAction(id, actionId) {
|
|
848
|
+
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
849
|
+
}
|
|
850
|
+
readWorkOrders(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, orderTypes = null, projectTypes = null, users = null, specialOrder = null) {
|
|
851
|
+
return this.http.get(this.url, {
|
|
852
|
+
params: this.createWorkOrderParams(statuses, id, customerName, customerEmail, serialNumber, orderTypes, projectTypes, users, specialOrder)
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
readExportWorkOrders(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, orderTypes = null, projectTypes = null, users = null, specialOrder = null) {
|
|
856
|
+
return this.http.get(`${this.url}/export`, {
|
|
857
|
+
params: this.createWorkOrderParams(statuses, id, customerName, customerEmail, serialNumber, orderTypes, projectTypes, users, specialOrder)
|
|
858
|
+
});
|
|
859
|
+
}
|
|
860
|
+
readWorkOrderTotal(id) {
|
|
861
|
+
return this.http.get(`${this.url}/${id}/totals`);
|
|
862
|
+
}
|
|
863
|
+
createWorkOrderParams(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, orderTypes = null, projectTypes = null, users = null, specialOrder = null) {
|
|
864
|
+
const params = {};
|
|
865
|
+
if (statuses) {
|
|
866
|
+
params['statuses'] = statuses.map(status => status.toString());
|
|
867
|
+
}
|
|
868
|
+
if (id) {
|
|
869
|
+
params['id'] = id.toString();
|
|
870
|
+
}
|
|
871
|
+
if (customerName) {
|
|
872
|
+
params['customerName'] = customerName;
|
|
873
|
+
}
|
|
874
|
+
if (customerEmail) {
|
|
875
|
+
params['customerEmail'] = customerEmail;
|
|
876
|
+
}
|
|
877
|
+
if (serialNumber) {
|
|
878
|
+
params['serialNumber'] = serialNumber;
|
|
879
|
+
}
|
|
880
|
+
if (orderTypes !== null) {
|
|
881
|
+
params['orderTypes'] = orderTypes.map(type => type.toString());
|
|
882
|
+
}
|
|
883
|
+
if (projectTypes) {
|
|
884
|
+
params['projectTypes'] = projectTypes.map(t => t.toString());
|
|
885
|
+
}
|
|
886
|
+
if (users) {
|
|
887
|
+
params['users'] = users;
|
|
888
|
+
}
|
|
889
|
+
if (specialOrder) {
|
|
890
|
+
params['specialOrder'] = specialOrder.toString();
|
|
891
|
+
}
|
|
892
|
+
return params;
|
|
893
|
+
}
|
|
894
|
+
readWorkOrder(workOrderId) {
|
|
895
|
+
return this.http.get(`${this.url}/${workOrderId}`);
|
|
896
|
+
}
|
|
897
|
+
createWorkOrder(workOrder) {
|
|
898
|
+
return this.http.post(this.url, workOrder);
|
|
899
|
+
}
|
|
900
|
+
updateWorkOrder(workOrderId, workOrder) {
|
|
901
|
+
return this.http.put(`${this.url}/${workOrderId}`, workOrder);
|
|
902
|
+
}
|
|
903
|
+
deleteWorkOrder(workOrderId) {
|
|
904
|
+
return this.http.delete(`${this.url}/${workOrderId}`);
|
|
905
|
+
}
|
|
906
|
+
recalcWorkDates() {
|
|
907
|
+
return this.http.get(`${this.url}/recalc-dates`);
|
|
908
|
+
}
|
|
909
|
+
// Change Orders
|
|
910
|
+
readChangeOrders(workOrderId) {
|
|
911
|
+
return this.http.get(`${this.url}/${workOrderId}/change-orders`);
|
|
912
|
+
}
|
|
913
|
+
readChangeOrder(workOrderId, changeOrderId) {
|
|
914
|
+
return this.http.get(`${this.url}/${workOrderId}/change-orders/${changeOrderId}`);
|
|
915
|
+
}
|
|
916
|
+
createChangeOrder(workOrderId, changeOrder) {
|
|
917
|
+
return this.http.post(`${this.url}/${workOrderId}/change-orders`, changeOrder);
|
|
918
|
+
}
|
|
919
|
+
updateChangeOrder(workOrderId, changeOrderId, changeOrder) {
|
|
920
|
+
return this.http.put(`${this.url}/${workOrderId}/change-orders/${changeOrderId}`, changeOrder);
|
|
921
|
+
}
|
|
922
|
+
deleteChangeOrder(workOrderId, changeOrderId) {
|
|
923
|
+
return this.http.delete(`${this.url}/${workOrderId}/change-orders/${changeOrderId}`);
|
|
924
|
+
}
|
|
925
|
+
confirmChangeOrder(token) {
|
|
926
|
+
return this.http.get(`${this.env.baseUrl}api/change-orders/customer`, {
|
|
927
|
+
params: {
|
|
928
|
+
token: token
|
|
929
|
+
}
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
cancelChangeOrder(token) {
|
|
933
|
+
return this.http.delete(`${this.env.baseUrl}api/change-orders/customer`, {
|
|
934
|
+
params: {
|
|
935
|
+
token: token
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
// Checklist
|
|
940
|
+
createChecklists(workOrderId, refinishItemIds) {
|
|
941
|
+
return this.http.get(`${this.url}/${workOrderId}/refinish-items/` + refinishItemIds.join(',') + '/pdfs', { responseType: "blob" });
|
|
942
|
+
}
|
|
943
|
+
createShopChecklist(workOrderId) {
|
|
944
|
+
return this.http.get(`${this.url}/${workOrderId}/pdf`, { responseType: "blob" });
|
|
945
|
+
}
|
|
946
|
+
// Refinish Items
|
|
947
|
+
readRefinishItems(workOrderId) {
|
|
948
|
+
return this.http.get(`${this.url}/${workOrderId}/refinish-items`);
|
|
949
|
+
}
|
|
950
|
+
readRefinishItemCollection(workOrderId, itemIds) {
|
|
951
|
+
return this.http.get(`${this.url}/${workOrderId}/refinish-items/collection/${itemIds.join(',')}`);
|
|
952
|
+
}
|
|
953
|
+
readRefinishItem(workOrderId, refinishItemId) {
|
|
954
|
+
return this.http.get(`${this.url}/${workOrderId}/refinish-items/${refinishItemId}`);
|
|
955
|
+
}
|
|
956
|
+
createRefinishItems(workOrderId, refinishItems) {
|
|
957
|
+
return this.http.post(`${this.url}/${workOrderId}/refinish-items/collection`, refinishItems);
|
|
958
|
+
}
|
|
959
|
+
updateRefinishItem(workOrderId, refinishItemId, refinishItem) {
|
|
960
|
+
return this.http.put(`${this.url}/${workOrderId}/refinish-items/${refinishItemId}`, refinishItem);
|
|
961
|
+
}
|
|
962
|
+
deleteRefinishItem(workOrderId, refinishItemId) {
|
|
963
|
+
return this.http.delete(`${this.url}/${workOrderId}/refinish-items/${refinishItemId}`);
|
|
964
|
+
}
|
|
965
|
+
// Milling Items
|
|
966
|
+
readMillingItems(workOrderId) {
|
|
967
|
+
return this.http.get(`${this.url}/${workOrderId}/milling-items`);
|
|
968
|
+
}
|
|
969
|
+
readMillingItem(workOrderId, millingItemId) {
|
|
970
|
+
return this.http.get(`${this.url}/${workOrderId}/milling-items/${millingItemId}`);
|
|
971
|
+
}
|
|
972
|
+
createMillingItem(workOrderId, millingItem) {
|
|
973
|
+
return this.http.post(`${this.url}/${workOrderId}/milling-items`, millingItem);
|
|
974
|
+
}
|
|
975
|
+
updateMillingItem(workOrderId, millingItemId, millingItem) {
|
|
976
|
+
return this.http.put(`${this.url}/${workOrderId}/milling-items/${millingItemId}`, millingItem);
|
|
977
|
+
}
|
|
978
|
+
updateMillingItemCollection(workOrderId, itemIds, millingItems) {
|
|
979
|
+
return this.http.put(`${this.url}/${workOrderId}/milling-items/collection/${itemIds.join(',')}`, millingItems);
|
|
980
|
+
}
|
|
981
|
+
deleteMillingItem(workOrderId, millingItemId) {
|
|
982
|
+
return this.http.delete(`${this.url}/${workOrderId}/milling-items/${millingItemId}`);
|
|
983
|
+
}
|
|
984
|
+
// Report Items
|
|
985
|
+
readReportMillingItems() {
|
|
986
|
+
return this.http.get(`${this.env.baseUrl}api/report-milling-items`);
|
|
987
|
+
}
|
|
988
|
+
readReportRefinishItems() {
|
|
989
|
+
return this.http.get(`${this.env.baseUrl}api/report-refinish-items`);
|
|
990
|
+
}
|
|
991
|
+
readPackageDetailTotals(startDate, endDate, statuses) {
|
|
992
|
+
return this.http.get(`${this.url}/package-details/totals`, {
|
|
993
|
+
params: {
|
|
994
|
+
startDate: startDate.toUTCString(),
|
|
995
|
+
endDate: endDate.toUTCString(),
|
|
996
|
+
statuses: statuses.map(status => status.toString())
|
|
997
|
+
}
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
// Inventory Items
|
|
1001
|
+
readInventoryItems(workOrderId) {
|
|
1002
|
+
return this.http.get(`${this.url}/${workOrderId}/inventory-items`);
|
|
1003
|
+
}
|
|
1004
|
+
readInventoryItem(workOrderId, inventoryItemId) {
|
|
1005
|
+
return this.http.get(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`);
|
|
1006
|
+
}
|
|
1007
|
+
createInventoryItem(workOrderId, inventoryItem) {
|
|
1008
|
+
return this.http.post(`${this.url}/${workOrderId}/inventory-items`, inventoryItem);
|
|
1009
|
+
}
|
|
1010
|
+
updateInventoryItem(workOrderId, inventoryItemId, inventoryItem) {
|
|
1011
|
+
return this.http.put(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`, inventoryItem);
|
|
1012
|
+
}
|
|
1013
|
+
deleteInventoryItem(workOrderId, inventoryItemId) {
|
|
1014
|
+
return this.http.delete(`${this.url}/${workOrderId}/inventory-items/${inventoryItemId}`);
|
|
1015
|
+
}
|
|
1016
|
+
readInventoryItemCollection(workOrderId, itemIds) {
|
|
1017
|
+
return this.http.get(`${this.url}/${workOrderId}/inventory-items/collection/${itemIds.join(',')}`);
|
|
1018
|
+
}
|
|
1019
|
+
createInventoryItems(workOrderId, inventoryItems) {
|
|
1020
|
+
return this.http.post(`${this.url}/${workOrderId}/inventory-items/collection`, inventoryItems);
|
|
1021
|
+
}
|
|
1022
|
+
// Billing
|
|
1023
|
+
processTransaction(workOrderId, billingInfo) {
|
|
1024
|
+
return this.http.post(`${this.url}/${workOrderId}/billing`, billingInfo);
|
|
1025
|
+
}
|
|
1026
|
+
getTransactions(workOrderId) {
|
|
1027
|
+
return this.http.get(`${this.url}/${workOrderId}/billing`);
|
|
1028
|
+
}
|
|
1029
|
+
refundTransaction(workOrderId, transactionId, refundAmount) {
|
|
1030
|
+
return this.http.post(`${this.url}/${workOrderId}/billing/${transactionId}/refund`, refundAmount);
|
|
1031
|
+
}
|
|
1032
|
+
createBillingTransaction(workOrderId, billingTransaction) {
|
|
1033
|
+
return this.http.post(`${this.url}/${workOrderId}/billing/transaction`, billingTransaction);
|
|
1034
|
+
}
|
|
1035
|
+
getBillingReceipt(workOrderId) {
|
|
1036
|
+
return this.http.get(`${this.url}/${workOrderId}/billing/receipt`, { responseType: "blob" });
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
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 });
|
|
1040
|
+
WorkOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, providedIn: 'root' });
|
|
1041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderService, decorators: [{
|
|
1042
|
+
type: Injectable,
|
|
1043
|
+
args: [{
|
|
1044
|
+
providedIn: 'root'
|
|
1045
|
+
}]
|
|
1046
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1047
|
+
type: Inject,
|
|
1048
|
+
args: ['env']
|
|
1048
1049
|
}] }]; } });
|
|
1049
1050
|
|
|
1050
|
-
class DealerService extends BaseService {
|
|
1051
|
-
constructor(http, env) {
|
|
1052
|
-
super(http);
|
|
1053
|
-
this.http = http;
|
|
1054
|
-
this.env = env;
|
|
1055
|
-
this.urlSegments = [`${this.env.baseUrl}api/dealers`];
|
|
1056
|
-
}
|
|
1057
|
-
updateDealerCoupon(dealerId, couponId, dealerCoupon) {
|
|
1058
|
-
return this.http.put(`${this.getUrl(dealerId)}/coupons/${couponId}`, dealerCoupon);
|
|
1059
|
-
}
|
|
1060
|
-
sendExpiredEmail() {
|
|
1061
|
-
return this.http.get(`${this.getUrl()}/expired-email`);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
DealerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DealerService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1065
|
-
DealerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DealerService, providedIn: "root" });
|
|
1066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DealerService, decorators: [{
|
|
1067
|
-
type: Injectable,
|
|
1068
|
-
args: [{
|
|
1069
|
-
providedIn: "root",
|
|
1070
|
-
}]
|
|
1071
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1072
|
-
type: Inject,
|
|
1073
|
-
args: ["env"]
|
|
1051
|
+
class DealerService extends BaseService {
|
|
1052
|
+
constructor(http, env) {
|
|
1053
|
+
super(http);
|
|
1054
|
+
this.http = http;
|
|
1055
|
+
this.env = env;
|
|
1056
|
+
this.urlSegments = [`${this.env.baseUrl}api/dealers`];
|
|
1057
|
+
}
|
|
1058
|
+
updateDealerCoupon(dealerId, couponId, dealerCoupon) {
|
|
1059
|
+
return this.http.put(`${this.getUrl(dealerId)}/coupons/${couponId}`, dealerCoupon);
|
|
1060
|
+
}
|
|
1061
|
+
sendExpiredEmail() {
|
|
1062
|
+
return this.http.get(`${this.getUrl()}/expired-email`);
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
DealerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DealerService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1066
|
+
DealerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DealerService, providedIn: "root" });
|
|
1067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DealerService, decorators: [{
|
|
1068
|
+
type: Injectable,
|
|
1069
|
+
args: [{
|
|
1070
|
+
providedIn: "root",
|
|
1071
|
+
}]
|
|
1072
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1073
|
+
type: Inject,
|
|
1074
|
+
args: ["env"]
|
|
1074
1075
|
}] }]; } });
|
|
1075
1076
|
|
|
1076
|
-
class FileUploadService {
|
|
1077
|
-
constructor(http, env) {
|
|
1078
|
-
this.http = http;
|
|
1079
|
-
this.env = env;
|
|
1080
|
-
this.url = this.env.baseUrl + 'api/uploads';
|
|
1081
|
-
}
|
|
1082
|
-
deleteFile(fileName) {
|
|
1083
|
-
return this.http.delete(`${this.url}/${fileName}`);
|
|
1084
|
-
}
|
|
1085
|
-
retrieveFile(fileName) {
|
|
1086
|
-
return this.http.get(`${this.url}/${fileName}`, { responseType: 'blob' })
|
|
1087
|
-
.pipe(switchMap((response) => {
|
|
1088
|
-
return of(new File([response], fileName, { type: response.type }));
|
|
1089
|
-
}));
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
FileUploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileUploadService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1093
|
-
FileUploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileUploadService, providedIn: 'root' });
|
|
1094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileUploadService, decorators: [{
|
|
1095
|
-
type: Injectable,
|
|
1096
|
-
args: [{
|
|
1097
|
-
providedIn: 'root'
|
|
1098
|
-
}]
|
|
1099
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1100
|
-
type: Inject,
|
|
1101
|
-
args: ['env']
|
|
1077
|
+
class FileUploadService {
|
|
1078
|
+
constructor(http, env) {
|
|
1079
|
+
this.http = http;
|
|
1080
|
+
this.env = env;
|
|
1081
|
+
this.url = this.env.baseUrl + 'api/uploads';
|
|
1082
|
+
}
|
|
1083
|
+
deleteFile(fileName) {
|
|
1084
|
+
return this.http.delete(`${this.url}/${fileName}`);
|
|
1085
|
+
}
|
|
1086
|
+
retrieveFile(fileName) {
|
|
1087
|
+
return this.http.get(`${this.url}/${fileName}`, { responseType: 'blob' })
|
|
1088
|
+
.pipe(switchMap((response) => {
|
|
1089
|
+
return of(new File([response], fileName, { type: response.type }));
|
|
1090
|
+
}));
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
FileUploadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileUploadService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1094
|
+
FileUploadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileUploadService, providedIn: 'root' });
|
|
1095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileUploadService, decorators: [{
|
|
1096
|
+
type: Injectable,
|
|
1097
|
+
args: [{
|
|
1098
|
+
providedIn: 'root'
|
|
1099
|
+
}]
|
|
1100
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1101
|
+
type: Inject,
|
|
1102
|
+
args: ['env']
|
|
1102
1103
|
}] }]; } });
|
|
1103
1104
|
|
|
1104
|
-
class WaitlistService {
|
|
1105
|
-
constructor(http, env) {
|
|
1106
|
-
this.http = http;
|
|
1107
|
-
this.env = env;
|
|
1108
|
-
this.url = this.env.baseUrl + "api/waitlist-items";
|
|
1109
|
-
}
|
|
1110
|
-
retrieveWaitlistItems(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, workOrderTypes = null, projectTypes = null) {
|
|
1111
|
-
const params = {};
|
|
1112
|
-
if (statuses) {
|
|
1113
|
-
params["statuses"] = statuses.map((status) => status.toString());
|
|
1114
|
-
}
|
|
1115
|
-
if (id) {
|
|
1116
|
-
params["id"] = id.toString();
|
|
1117
|
-
}
|
|
1118
|
-
if (customerName) {
|
|
1119
|
-
params["customerName"] = customerName;
|
|
1120
|
-
}
|
|
1121
|
-
if (customerEmail) {
|
|
1122
|
-
params["customerEmail"] = customerEmail;
|
|
1123
|
-
}
|
|
1124
|
-
if (serialNumber) {
|
|
1125
|
-
params["serialNumber"] = serialNumber;
|
|
1126
|
-
}
|
|
1127
|
-
if (workOrderTypes) {
|
|
1128
|
-
params["workOrderTypes"] = workOrderTypes.map((t) => t.toString());
|
|
1129
|
-
}
|
|
1130
|
-
if (projectTypes) {
|
|
1131
|
-
params["projectTypes"] = projectTypes.map((t) => t.toString());
|
|
1132
|
-
}
|
|
1133
|
-
return this.http.get(this.url, {
|
|
1134
|
-
params: params,
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
retrieveWaitlistItem(id) {
|
|
1138
|
-
return this.http.get(`${this.url}/${id}`);
|
|
1139
|
-
}
|
|
1140
|
-
createWaitlistItem(waitlistItem) {
|
|
1141
|
-
return this.http.post(this.url, waitlistItem);
|
|
1142
|
-
}
|
|
1143
|
-
updateWaitlistItem(id, waitlistItem) {
|
|
1144
|
-
return this.http.put(`${this.url}/${id}`, waitlistItem);
|
|
1145
|
-
}
|
|
1146
|
-
deleteWaitlistItem(id) {
|
|
1147
|
-
return this.http.delete(`${this.url}/${id}`);
|
|
1148
|
-
}
|
|
1149
|
-
doWaitlistAction(id, actionId, reason = null) {
|
|
1150
|
-
if (reason) {
|
|
1151
|
-
return this.http.get(`${this.url}/${id}/actions/${actionId}?reason=${reason}`);
|
|
1152
|
-
}
|
|
1153
|
-
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
1154
|
-
}
|
|
1155
|
-
sendNIBEmail(id) {
|
|
1156
|
-
return this.http.get(`${this.url}/${id}/send-nib-email`);
|
|
1157
|
-
}
|
|
1158
|
-
sendNIBReminderEmails() {
|
|
1159
|
-
return this.http.get(`${this.url}/send-nib-reminder-emails`);
|
|
1160
|
-
}
|
|
1161
|
-
retrieveProjectPdf(id, projectId) {
|
|
1162
|
-
return this.http.get(`${this.url}/${id}/projects/${projectId}/pdf`, {
|
|
1163
|
-
responseType: "blob",
|
|
1164
|
-
});
|
|
1165
|
-
}
|
|
1166
|
-
retrieveProjects(waitlistId) {
|
|
1167
|
-
return this.http.get(`${this.url}/${waitlistId}/projects`);
|
|
1168
|
-
}
|
|
1169
|
-
retrieveProject(waitlistId, projectId) {
|
|
1170
|
-
return this.http.get(`${this.url}/${waitlistId}/projects/${projectId}`);
|
|
1171
|
-
}
|
|
1172
|
-
createProject(waitlistId, project) {
|
|
1173
|
-
return this.http.post(`${this.url}/${waitlistId}/projects`, project);
|
|
1174
|
-
}
|
|
1175
|
-
updateProject(waitlistId, projectId, project) {
|
|
1176
|
-
return this.http.put(`${this.url}/${waitlistId}/projects/${projectId}`, project);
|
|
1177
|
-
}
|
|
1178
|
-
deleteProject(waitlistId, projectId) {
|
|
1179
|
-
return this.http.delete(`${this.url}/${waitlistId}/projects/${projectId}`);
|
|
1180
|
-
}
|
|
1181
|
-
readPackageDetailTotals() {
|
|
1182
|
-
return this.http.get(`${this.url}/package-details/totals`);
|
|
1183
|
-
}
|
|
1184
|
-
doWaitlistAutomationUpdate() {
|
|
1185
|
-
return this.http.get(`${this.url}/trigger-update`);
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
WaitlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1189
|
-
WaitlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, providedIn: "root" });
|
|
1190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, decorators: [{
|
|
1191
|
-
type: Injectable,
|
|
1192
|
-
args: [{
|
|
1193
|
-
providedIn: "root",
|
|
1194
|
-
}]
|
|
1195
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1196
|
-
type: Inject,
|
|
1197
|
-
args: ["env"]
|
|
1105
|
+
class WaitlistService {
|
|
1106
|
+
constructor(http, env) {
|
|
1107
|
+
this.http = http;
|
|
1108
|
+
this.env = env;
|
|
1109
|
+
this.url = this.env.baseUrl + "api/waitlist-items";
|
|
1110
|
+
}
|
|
1111
|
+
retrieveWaitlistItems(statuses = null, id = null, customerName = null, customerEmail = null, serialNumber = null, workOrderTypes = null, projectTypes = null) {
|
|
1112
|
+
const params = {};
|
|
1113
|
+
if (statuses) {
|
|
1114
|
+
params["statuses"] = statuses.map((status) => status.toString());
|
|
1115
|
+
}
|
|
1116
|
+
if (id) {
|
|
1117
|
+
params["id"] = id.toString();
|
|
1118
|
+
}
|
|
1119
|
+
if (customerName) {
|
|
1120
|
+
params["customerName"] = customerName;
|
|
1121
|
+
}
|
|
1122
|
+
if (customerEmail) {
|
|
1123
|
+
params["customerEmail"] = customerEmail;
|
|
1124
|
+
}
|
|
1125
|
+
if (serialNumber) {
|
|
1126
|
+
params["serialNumber"] = serialNumber;
|
|
1127
|
+
}
|
|
1128
|
+
if (workOrderTypes) {
|
|
1129
|
+
params["workOrderTypes"] = workOrderTypes.map((t) => t.toString());
|
|
1130
|
+
}
|
|
1131
|
+
if (projectTypes) {
|
|
1132
|
+
params["projectTypes"] = projectTypes.map((t) => t.toString());
|
|
1133
|
+
}
|
|
1134
|
+
return this.http.get(this.url, {
|
|
1135
|
+
params: params,
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
retrieveWaitlistItem(id) {
|
|
1139
|
+
return this.http.get(`${this.url}/${id}`);
|
|
1140
|
+
}
|
|
1141
|
+
createWaitlistItem(waitlistItem) {
|
|
1142
|
+
return this.http.post(this.url, waitlistItem);
|
|
1143
|
+
}
|
|
1144
|
+
updateWaitlistItem(id, waitlistItem) {
|
|
1145
|
+
return this.http.put(`${this.url}/${id}`, waitlistItem);
|
|
1146
|
+
}
|
|
1147
|
+
deleteWaitlistItem(id) {
|
|
1148
|
+
return this.http.delete(`${this.url}/${id}`);
|
|
1149
|
+
}
|
|
1150
|
+
doWaitlistAction(id, actionId, reason = null) {
|
|
1151
|
+
if (reason) {
|
|
1152
|
+
return this.http.get(`${this.url}/${id}/actions/${actionId}?reason=${reason}`);
|
|
1153
|
+
}
|
|
1154
|
+
return this.http.get(`${this.url}/${id}/actions/${actionId}`);
|
|
1155
|
+
}
|
|
1156
|
+
sendNIBEmail(id) {
|
|
1157
|
+
return this.http.get(`${this.url}/${id}/send-nib-email`);
|
|
1158
|
+
}
|
|
1159
|
+
sendNIBReminderEmails() {
|
|
1160
|
+
return this.http.get(`${this.url}/send-nib-reminder-emails`);
|
|
1161
|
+
}
|
|
1162
|
+
retrieveProjectPdf(id, projectId) {
|
|
1163
|
+
return this.http.get(`${this.url}/${id}/projects/${projectId}/pdf`, {
|
|
1164
|
+
responseType: "blob",
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
retrieveProjects(waitlistId) {
|
|
1168
|
+
return this.http.get(`${this.url}/${waitlistId}/projects`);
|
|
1169
|
+
}
|
|
1170
|
+
retrieveProject(waitlistId, projectId) {
|
|
1171
|
+
return this.http.get(`${this.url}/${waitlistId}/projects/${projectId}`);
|
|
1172
|
+
}
|
|
1173
|
+
createProject(waitlistId, project) {
|
|
1174
|
+
return this.http.post(`${this.url}/${waitlistId}/projects`, project);
|
|
1175
|
+
}
|
|
1176
|
+
updateProject(waitlistId, projectId, project) {
|
|
1177
|
+
return this.http.put(`${this.url}/${waitlistId}/projects/${projectId}`, project);
|
|
1178
|
+
}
|
|
1179
|
+
deleteProject(waitlistId, projectId) {
|
|
1180
|
+
return this.http.delete(`${this.url}/${waitlistId}/projects/${projectId}`);
|
|
1181
|
+
}
|
|
1182
|
+
readPackageDetailTotals() {
|
|
1183
|
+
return this.http.get(`${this.url}/package-details/totals`);
|
|
1184
|
+
}
|
|
1185
|
+
doWaitlistAutomationUpdate() {
|
|
1186
|
+
return this.http.get(`${this.url}/trigger-update`);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
WaitlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1190
|
+
WaitlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, providedIn: "root" });
|
|
1191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistService, decorators: [{
|
|
1192
|
+
type: Injectable,
|
|
1193
|
+
args: [{
|
|
1194
|
+
providedIn: "root",
|
|
1195
|
+
}]
|
|
1196
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1197
|
+
type: Inject,
|
|
1198
|
+
args: ["env"]
|
|
1198
1199
|
}] }]; } });
|
|
1199
1200
|
|
|
1200
|
-
class ConfigurationService {
|
|
1201
|
-
constructor(http, env) {
|
|
1202
|
-
this.http = http;
|
|
1203
|
-
this.env = env;
|
|
1204
|
-
this.url = this.env.baseUrl + 'api/configs';
|
|
1205
|
-
}
|
|
1206
|
-
readConfigs() {
|
|
1207
|
-
return this.http.get(this.url);
|
|
1208
|
-
}
|
|
1209
|
-
updateConfigs(configuration) {
|
|
1210
|
-
return this.http.put(`${this.url}/1`, configuration);
|
|
1211
|
-
}
|
|
1212
|
-
syncWooCommerce() {
|
|
1213
|
-
return this.http.post(`${this.url}/sync-woocommerce`, null);
|
|
1214
|
-
}
|
|
1215
|
-
}
|
|
1216
|
-
ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1217
|
-
ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
|
|
1218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
1219
|
-
type: Injectable,
|
|
1220
|
-
args: [{
|
|
1221
|
-
providedIn: 'root'
|
|
1222
|
-
}]
|
|
1223
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1224
|
-
type: Inject,
|
|
1225
|
-
args: ['env']
|
|
1201
|
+
class ConfigurationService {
|
|
1202
|
+
constructor(http, env) {
|
|
1203
|
+
this.http = http;
|
|
1204
|
+
this.env = env;
|
|
1205
|
+
this.url = this.env.baseUrl + 'api/configs';
|
|
1206
|
+
}
|
|
1207
|
+
readConfigs() {
|
|
1208
|
+
return this.http.get(this.url);
|
|
1209
|
+
}
|
|
1210
|
+
updateConfigs(configuration) {
|
|
1211
|
+
return this.http.put(`${this.url}/1`, configuration);
|
|
1212
|
+
}
|
|
1213
|
+
syncWooCommerce() {
|
|
1214
|
+
return this.http.post(`${this.url}/sync-woocommerce`, null);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
ConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1218
|
+
ConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, providedIn: 'root' });
|
|
1219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ConfigurationService, decorators: [{
|
|
1220
|
+
type: Injectable,
|
|
1221
|
+
args: [{
|
|
1222
|
+
providedIn: 'root'
|
|
1223
|
+
}]
|
|
1224
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1225
|
+
type: Inject,
|
|
1226
|
+
args: ['env']
|
|
1226
1227
|
}] }]; } });
|
|
1227
1228
|
|
|
1228
|
-
class WaitlistCustomerService {
|
|
1229
|
-
constructor(http, env) {
|
|
1230
|
-
this.http = http;
|
|
1231
|
-
this.env = env;
|
|
1232
|
-
this.url = this.env.baseUrl + 'api/waitlist-items/customer';
|
|
1233
|
-
}
|
|
1234
|
-
readWaitlistItem(token) {
|
|
1235
|
-
return this.http.get(this.url, {
|
|
1236
|
-
params: { token: token }
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
updateWaitlistItem(token, waitlistItem) {
|
|
1240
|
-
return this.http.put(`${this.url}/${waitlistItem.id}`, waitlistItem, {
|
|
1241
|
-
params: { token: token }
|
|
1242
|
-
});
|
|
1243
|
-
}
|
|
1244
|
-
cancelWaitlistItem(token) {
|
|
1245
|
-
return this.http.delete(`${this.url}`, {
|
|
1246
|
-
params: { token: token }
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
createWaitlistItem(waitlistItem) {
|
|
1250
|
-
return this.http.post(this.url, waitlistItem);
|
|
1251
|
-
}
|
|
1252
|
-
}
|
|
1253
|
-
WaitlistCustomerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1254
|
-
WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
|
|
1255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, decorators: [{
|
|
1256
|
-
type: Injectable,
|
|
1257
|
-
args: [{
|
|
1258
|
-
providedIn: 'root'
|
|
1259
|
-
}]
|
|
1260
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1261
|
-
type: Inject,
|
|
1262
|
-
args: ['env']
|
|
1229
|
+
class WaitlistCustomerService {
|
|
1230
|
+
constructor(http, env) {
|
|
1231
|
+
this.http = http;
|
|
1232
|
+
this.env = env;
|
|
1233
|
+
this.url = this.env.baseUrl + 'api/waitlist-items/customer';
|
|
1234
|
+
}
|
|
1235
|
+
readWaitlistItem(token) {
|
|
1236
|
+
return this.http.get(this.url, {
|
|
1237
|
+
params: { token: token }
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
updateWaitlistItem(token, waitlistItem) {
|
|
1241
|
+
return this.http.put(`${this.url}/${waitlistItem.id}`, waitlistItem, {
|
|
1242
|
+
params: { token: token }
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
cancelWaitlistItem(token) {
|
|
1246
|
+
return this.http.delete(`${this.url}`, {
|
|
1247
|
+
params: { token: token }
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
createWaitlistItem(waitlistItem) {
|
|
1251
|
+
return this.http.post(this.url, waitlistItem);
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
WaitlistCustomerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1255
|
+
WaitlistCustomerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, providedIn: 'root' });
|
|
1256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistCustomerService, decorators: [{
|
|
1257
|
+
type: Injectable,
|
|
1258
|
+
args: [{
|
|
1259
|
+
providedIn: 'root'
|
|
1260
|
+
}]
|
|
1261
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1262
|
+
type: Inject,
|
|
1263
|
+
args: ['env']
|
|
1263
1264
|
}] }]; } });
|
|
1264
1265
|
|
|
1265
|
-
class OpticService extends BaseService {
|
|
1266
|
-
constructor(http, env) {
|
|
1267
|
-
super(http);
|
|
1268
|
-
this.http = http;
|
|
1269
|
-
this.env = env;
|
|
1270
|
-
this.urlSegments = [`${this.env.baseUrl}api/optics`];
|
|
1271
|
-
}
|
|
1272
|
-
readOpticReport() {
|
|
1273
|
-
return this.http.get(`${this.getUrl()}/report`);
|
|
1274
|
-
}
|
|
1275
|
-
}
|
|
1276
|
-
OpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpticService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1277
|
-
OpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpticService, providedIn: 'root' });
|
|
1278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpticService, decorators: [{
|
|
1279
|
-
type: Injectable,
|
|
1280
|
-
args: [{
|
|
1281
|
-
providedIn: 'root'
|
|
1282
|
-
}]
|
|
1283
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1284
|
-
type: Inject,
|
|
1285
|
-
args: ['env']
|
|
1266
|
+
class OpticService extends BaseService {
|
|
1267
|
+
constructor(http, env) {
|
|
1268
|
+
super(http);
|
|
1269
|
+
this.http = http;
|
|
1270
|
+
this.env = env;
|
|
1271
|
+
this.urlSegments = [`${this.env.baseUrl}api/optics`];
|
|
1272
|
+
}
|
|
1273
|
+
readOpticReport() {
|
|
1274
|
+
return this.http.get(`${this.getUrl()}/report`);
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
OpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpticService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1278
|
+
OpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpticService, providedIn: 'root' });
|
|
1279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpticService, decorators: [{
|
|
1280
|
+
type: Injectable,
|
|
1281
|
+
args: [{
|
|
1282
|
+
providedIn: 'root'
|
|
1283
|
+
}]
|
|
1284
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1285
|
+
type: Inject,
|
|
1286
|
+
args: ['env']
|
|
1286
1287
|
}] }]; } });
|
|
1287
1288
|
|
|
1288
|
-
class ProductService {
|
|
1289
|
-
constructor(http, env) {
|
|
1290
|
-
this.http = http;
|
|
1291
|
-
this.env = env;
|
|
1292
|
-
this.url = this.env.baseUrl + 'api/products';
|
|
1293
|
-
}
|
|
1294
|
-
readProducts(sku) {
|
|
1295
|
-
return this.http.get(this.url, { params: { sku: sku } });
|
|
1296
|
-
}
|
|
1297
|
-
readProductBundleItems(id) {
|
|
1298
|
-
return this.http.get(`${this.url}/${id}/bundle-items`);
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
ProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProductService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1302
|
-
ProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProductService, providedIn: 'root' });
|
|
1303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProductService, decorators: [{
|
|
1304
|
-
type: Injectable,
|
|
1305
|
-
args: [{
|
|
1306
|
-
providedIn: 'root'
|
|
1307
|
-
}]
|
|
1308
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1309
|
-
type: Inject,
|
|
1310
|
-
args: ['env']
|
|
1289
|
+
class ProductService {
|
|
1290
|
+
constructor(http, env) {
|
|
1291
|
+
this.http = http;
|
|
1292
|
+
this.env = env;
|
|
1293
|
+
this.url = this.env.baseUrl + 'api/products';
|
|
1294
|
+
}
|
|
1295
|
+
readProducts(sku) {
|
|
1296
|
+
return this.http.get(this.url, { params: { sku: sku } });
|
|
1297
|
+
}
|
|
1298
|
+
readProductBundleItems(id) {
|
|
1299
|
+
return this.http.get(`${this.url}/${id}/bundle-items`);
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
ProductService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProductService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1303
|
+
ProductService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProductService, providedIn: 'root' });
|
|
1304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ProductService, decorators: [{
|
|
1305
|
+
type: Injectable,
|
|
1306
|
+
args: [{
|
|
1307
|
+
providedIn: 'root'
|
|
1308
|
+
}]
|
|
1309
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1310
|
+
type: Inject,
|
|
1311
|
+
args: ['env']
|
|
1311
1312
|
}] }]; } });
|
|
1312
1313
|
|
|
1313
|
-
class MillingTypeService extends BaseService {
|
|
1314
|
-
constructor(http, env) {
|
|
1315
|
-
super(http);
|
|
1316
|
-
this.http = http;
|
|
1317
|
-
this.env = env;
|
|
1318
|
-
this.urlSegments = [`${this.env.baseUrl}api/milling-types`];
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
MillingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1322
|
-
MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: "root" });
|
|
1323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
|
|
1324
|
-
type: Injectable,
|
|
1325
|
-
args: [{
|
|
1326
|
-
providedIn: "root",
|
|
1327
|
-
}]
|
|
1328
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1329
|
-
type: Inject,
|
|
1330
|
-
args: ["env"]
|
|
1314
|
+
class MillingTypeService extends BaseService {
|
|
1315
|
+
constructor(http, env) {
|
|
1316
|
+
super(http);
|
|
1317
|
+
this.http = http;
|
|
1318
|
+
this.env = env;
|
|
1319
|
+
this.urlSegments = [`${this.env.baseUrl}api/milling-types`];
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
MillingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1323
|
+
MillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, providedIn: "root" });
|
|
1324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeService, decorators: [{
|
|
1325
|
+
type: Injectable,
|
|
1326
|
+
args: [{
|
|
1327
|
+
providedIn: "root",
|
|
1328
|
+
}]
|
|
1329
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1330
|
+
type: Inject,
|
|
1331
|
+
args: ["env"]
|
|
1331
1332
|
}] }]; } });
|
|
1332
1333
|
|
|
1333
|
-
class CoatingService extends BaseService {
|
|
1334
|
-
constructor(http, env) {
|
|
1335
|
-
super(http);
|
|
1336
|
-
this.http = http;
|
|
1337
|
-
this.env = env;
|
|
1338
|
-
this.urlSegments = [`${this.env.baseUrl}api/coatings`];
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1342
|
-
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: "root" });
|
|
1343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
|
|
1344
|
-
type: Injectable,
|
|
1345
|
-
args: [{
|
|
1346
|
-
providedIn: "root",
|
|
1347
|
-
}]
|
|
1348
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1349
|
-
type: Inject,
|
|
1350
|
-
args: ["env"]
|
|
1334
|
+
class CoatingService extends BaseService {
|
|
1335
|
+
constructor(http, env) {
|
|
1336
|
+
super(http);
|
|
1337
|
+
this.http = http;
|
|
1338
|
+
this.env = env;
|
|
1339
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`];
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
CoatingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1343
|
+
CoatingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, providedIn: "root" });
|
|
1344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingService, decorators: [{
|
|
1345
|
+
type: Injectable,
|
|
1346
|
+
args: [{
|
|
1347
|
+
providedIn: "root",
|
|
1348
|
+
}]
|
|
1349
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1350
|
+
type: Inject,
|
|
1351
|
+
args: ["env"]
|
|
1351
1352
|
}] }]; } });
|
|
1352
1353
|
|
|
1353
|
-
class MaterialService {
|
|
1354
|
-
constructor(http, env) {
|
|
1355
|
-
this.http = http;
|
|
1356
|
-
this.env = env;
|
|
1357
|
-
this.url = this.env.baseUrl + 'api/materials';
|
|
1358
|
-
}
|
|
1359
|
-
readMaterials(includeInactive = false) {
|
|
1360
|
-
return this.http.get(this.url, {
|
|
1361
|
-
params: {
|
|
1362
|
-
includeInactive: includeInactive.toString()
|
|
1363
|
-
}
|
|
1364
|
-
});
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
MaterialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaterialService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1368
|
-
MaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaterialService, providedIn: 'root' });
|
|
1369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaterialService, decorators: [{
|
|
1370
|
-
type: Injectable,
|
|
1371
|
-
args: [{
|
|
1372
|
-
providedIn: 'root'
|
|
1373
|
-
}]
|
|
1374
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1375
|
-
type: Inject,
|
|
1376
|
-
args: ['env']
|
|
1354
|
+
class MaterialService {
|
|
1355
|
+
constructor(http, env) {
|
|
1356
|
+
this.http = http;
|
|
1357
|
+
this.env = env;
|
|
1358
|
+
this.url = this.env.baseUrl + 'api/materials';
|
|
1359
|
+
}
|
|
1360
|
+
readMaterials(includeInactive = false) {
|
|
1361
|
+
return this.http.get(this.url, {
|
|
1362
|
+
params: {
|
|
1363
|
+
includeInactive: includeInactive.toString()
|
|
1364
|
+
}
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
MaterialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaterialService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1369
|
+
MaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaterialService, providedIn: 'root' });
|
|
1370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MaterialService, decorators: [{
|
|
1371
|
+
type: Injectable,
|
|
1372
|
+
args: [{
|
|
1373
|
+
providedIn: 'root'
|
|
1374
|
+
}]
|
|
1375
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1376
|
+
type: Inject,
|
|
1377
|
+
args: ['env']
|
|
1377
1378
|
}] }]; } });
|
|
1378
1379
|
|
|
1379
|
-
class PurchaseOrderService {
|
|
1380
|
-
constructor(http, env) {
|
|
1381
|
-
this.http = http;
|
|
1382
|
-
this.env = env;
|
|
1383
|
-
this.url = this.env.baseUrl + 'api/purchase-orders';
|
|
1384
|
-
}
|
|
1385
|
-
readPurchaseOrders(statuses = null, id = null, date = null, vendorId = null, serialNumber = null) {
|
|
1386
|
-
const params = {};
|
|
1387
|
-
if (statuses) {
|
|
1388
|
-
params['statuses'] = statuses.map(s => s.toString());
|
|
1389
|
-
}
|
|
1390
|
-
if (id) {
|
|
1391
|
-
params['id'] = id;
|
|
1392
|
-
}
|
|
1393
|
-
if (date) {
|
|
1394
|
-
params['date'] = date.toUTCString();
|
|
1395
|
-
}
|
|
1396
|
-
if (vendorId) {
|
|
1397
|
-
params['vendorId'] = vendorId;
|
|
1398
|
-
}
|
|
1399
|
-
if (serialNumber) {
|
|
1400
|
-
params['serialNumber'] = serialNumber;
|
|
1401
|
-
}
|
|
1402
|
-
return this.http.get(this.url, {
|
|
1403
|
-
params: params
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
readPurchaseOrder(id) {
|
|
1407
|
-
return this.http.get(`${this.url}/${id}`);
|
|
1408
|
-
}
|
|
1409
|
-
createPurchaseOrder(purchaseOrder) {
|
|
1410
|
-
return this.http.post(this.url, purchaseOrder);
|
|
1411
|
-
}
|
|
1412
|
-
updatePurchaseOrder(id, purchaseOrder) {
|
|
1413
|
-
return this.http.put(`${this.url}/${id}`, purchaseOrder);
|
|
1414
|
-
}
|
|
1415
|
-
deletePurchaseOrder(id) {
|
|
1416
|
-
return this.http.delete(`${this.url}/${id}`);
|
|
1417
|
-
}
|
|
1418
|
-
getRefinishItems() {
|
|
1419
|
-
return this.http.get(`${this.env.baseUrl}api/purchase-order-refinish-items`);
|
|
1420
|
-
}
|
|
1421
|
-
// Refinish Items
|
|
1422
|
-
readRefinishItemCollection(purchaseOrderId, itemIds) {
|
|
1423
|
-
return this.http.get(`${this.url}/${purchaseOrderId}/refinish-items/collection/${itemIds.join(',')}`);
|
|
1424
|
-
}
|
|
1425
|
-
readRefinishItem(purchaseOrderId, refinishItemId) {
|
|
1426
|
-
return this.http.get(`${this.url}/${purchaseOrderId}/refinish-items/${refinishItemId}`);
|
|
1427
|
-
}
|
|
1428
|
-
createRefinishItem(purchaseOrderId, refinishItem) {
|
|
1429
|
-
return this.http.post(`${this.url}/${purchaseOrderId}/refinish-items`, refinishItem);
|
|
1430
|
-
}
|
|
1431
|
-
createRefinishItemCollection(purchaseOrderId, refinishItems) {
|
|
1432
|
-
return this.http.post(`${this.url}/${purchaseOrderId}/refinish-items/collection`, refinishItems);
|
|
1433
|
-
}
|
|
1434
|
-
updateRefinishItem(purchaseOrderId, refinishItemId, refinishItem) {
|
|
1435
|
-
return this.http.put(`${this.url}/${purchaseOrderId}/refinish-items/${refinishItemId}`, refinishItem);
|
|
1436
|
-
}
|
|
1437
|
-
updateRefinishItemCollection(purchaseOrderId, itemIds, refinishItems) {
|
|
1438
|
-
return this.http.put(`${this.url}/${purchaseOrderId}/refinish-items/collection/${itemIds.join(',')}`, refinishItems);
|
|
1439
|
-
}
|
|
1440
|
-
deleteRefinishItem(purchaseOrderId, refinishItemId) {
|
|
1441
|
-
return this.http.delete(`${this.url}/${purchaseOrderId}/refinish-items/${refinishItemId}`);
|
|
1442
|
-
}
|
|
1443
|
-
getPdf(purchaseOrderId) {
|
|
1444
|
-
return this.http.get(`${this.url}/${purchaseOrderId}/pdf`, { responseType: "blob" });
|
|
1445
|
-
}
|
|
1446
|
-
getBatf(purchaseOrderId) {
|
|
1447
|
-
return this.http.get(`${this.url}/${purchaseOrderId}/batf`, { responseType: "blob" });
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
PurchaseOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PurchaseOrderService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1451
|
-
PurchaseOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PurchaseOrderService, providedIn: 'root' });
|
|
1452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PurchaseOrderService, decorators: [{
|
|
1453
|
-
type: Injectable,
|
|
1454
|
-
args: [{
|
|
1455
|
-
providedIn: 'root'
|
|
1456
|
-
}]
|
|
1457
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1458
|
-
type: Inject,
|
|
1459
|
-
args: ['env']
|
|
1380
|
+
class PurchaseOrderService {
|
|
1381
|
+
constructor(http, env) {
|
|
1382
|
+
this.http = http;
|
|
1383
|
+
this.env = env;
|
|
1384
|
+
this.url = this.env.baseUrl + 'api/purchase-orders';
|
|
1385
|
+
}
|
|
1386
|
+
readPurchaseOrders(statuses = null, id = null, date = null, vendorId = null, serialNumber = null) {
|
|
1387
|
+
const params = {};
|
|
1388
|
+
if (statuses) {
|
|
1389
|
+
params['statuses'] = statuses.map(s => s.toString());
|
|
1390
|
+
}
|
|
1391
|
+
if (id) {
|
|
1392
|
+
params['id'] = id;
|
|
1393
|
+
}
|
|
1394
|
+
if (date) {
|
|
1395
|
+
params['date'] = date.toUTCString();
|
|
1396
|
+
}
|
|
1397
|
+
if (vendorId) {
|
|
1398
|
+
params['vendorId'] = vendorId;
|
|
1399
|
+
}
|
|
1400
|
+
if (serialNumber) {
|
|
1401
|
+
params['serialNumber'] = serialNumber;
|
|
1402
|
+
}
|
|
1403
|
+
return this.http.get(this.url, {
|
|
1404
|
+
params: params
|
|
1405
|
+
});
|
|
1406
|
+
}
|
|
1407
|
+
readPurchaseOrder(id) {
|
|
1408
|
+
return this.http.get(`${this.url}/${id}`);
|
|
1409
|
+
}
|
|
1410
|
+
createPurchaseOrder(purchaseOrder) {
|
|
1411
|
+
return this.http.post(this.url, purchaseOrder);
|
|
1412
|
+
}
|
|
1413
|
+
updatePurchaseOrder(id, purchaseOrder) {
|
|
1414
|
+
return this.http.put(`${this.url}/${id}`, purchaseOrder);
|
|
1415
|
+
}
|
|
1416
|
+
deletePurchaseOrder(id) {
|
|
1417
|
+
return this.http.delete(`${this.url}/${id}`);
|
|
1418
|
+
}
|
|
1419
|
+
getRefinishItems() {
|
|
1420
|
+
return this.http.get(`${this.env.baseUrl}api/purchase-order-refinish-items`);
|
|
1421
|
+
}
|
|
1422
|
+
// Refinish Items
|
|
1423
|
+
readRefinishItemCollection(purchaseOrderId, itemIds) {
|
|
1424
|
+
return this.http.get(`${this.url}/${purchaseOrderId}/refinish-items/collection/${itemIds.join(',')}`);
|
|
1425
|
+
}
|
|
1426
|
+
readRefinishItem(purchaseOrderId, refinishItemId) {
|
|
1427
|
+
return this.http.get(`${this.url}/${purchaseOrderId}/refinish-items/${refinishItemId}`);
|
|
1428
|
+
}
|
|
1429
|
+
createRefinishItem(purchaseOrderId, refinishItem) {
|
|
1430
|
+
return this.http.post(`${this.url}/${purchaseOrderId}/refinish-items`, refinishItem);
|
|
1431
|
+
}
|
|
1432
|
+
createRefinishItemCollection(purchaseOrderId, refinishItems) {
|
|
1433
|
+
return this.http.post(`${this.url}/${purchaseOrderId}/refinish-items/collection`, refinishItems);
|
|
1434
|
+
}
|
|
1435
|
+
updateRefinishItem(purchaseOrderId, refinishItemId, refinishItem) {
|
|
1436
|
+
return this.http.put(`${this.url}/${purchaseOrderId}/refinish-items/${refinishItemId}`, refinishItem);
|
|
1437
|
+
}
|
|
1438
|
+
updateRefinishItemCollection(purchaseOrderId, itemIds, refinishItems) {
|
|
1439
|
+
return this.http.put(`${this.url}/${purchaseOrderId}/refinish-items/collection/${itemIds.join(',')}`, refinishItems);
|
|
1440
|
+
}
|
|
1441
|
+
deleteRefinishItem(purchaseOrderId, refinishItemId) {
|
|
1442
|
+
return this.http.delete(`${this.url}/${purchaseOrderId}/refinish-items/${refinishItemId}`);
|
|
1443
|
+
}
|
|
1444
|
+
getPdf(purchaseOrderId) {
|
|
1445
|
+
return this.http.get(`${this.url}/${purchaseOrderId}/pdf`, { responseType: "blob" });
|
|
1446
|
+
}
|
|
1447
|
+
getBatf(purchaseOrderId) {
|
|
1448
|
+
return this.http.get(`${this.url}/${purchaseOrderId}/batf`, { responseType: "blob" });
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
PurchaseOrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PurchaseOrderService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1452
|
+
PurchaseOrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PurchaseOrderService, providedIn: 'root' });
|
|
1453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PurchaseOrderService, decorators: [{
|
|
1454
|
+
type: Injectable,
|
|
1455
|
+
args: [{
|
|
1456
|
+
providedIn: 'root'
|
|
1457
|
+
}]
|
|
1458
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1459
|
+
type: Inject,
|
|
1460
|
+
args: ['env']
|
|
1460
1461
|
}] }]; } });
|
|
1461
1462
|
|
|
1462
|
-
class UserService {
|
|
1463
|
-
constructor(http, env) {
|
|
1464
|
-
this.http = http;
|
|
1465
|
-
this.env = env;
|
|
1466
|
-
this.url = this.env.baseUrl + 'api/users';
|
|
1467
|
-
}
|
|
1468
|
-
readUsers() {
|
|
1469
|
-
return this.http.get(this.url);
|
|
1470
|
-
}
|
|
1471
|
-
}
|
|
1472
|
-
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1473
|
-
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
1474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserService, decorators: [{
|
|
1475
|
-
type: Injectable,
|
|
1476
|
-
args: [{
|
|
1477
|
-
providedIn: 'root'
|
|
1478
|
-
}]
|
|
1479
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1480
|
-
type: Inject,
|
|
1481
|
-
args: ['env']
|
|
1463
|
+
class UserService {
|
|
1464
|
+
constructor(http, env) {
|
|
1465
|
+
this.http = http;
|
|
1466
|
+
this.env = env;
|
|
1467
|
+
this.url = this.env.baseUrl + 'api/users';
|
|
1468
|
+
}
|
|
1469
|
+
readUsers() {
|
|
1470
|
+
return this.http.get(this.url);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
UserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1474
|
+
UserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserService, providedIn: 'root' });
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: UserService, decorators: [{
|
|
1476
|
+
type: Injectable,
|
|
1477
|
+
args: [{
|
|
1478
|
+
providedIn: 'root'
|
|
1479
|
+
}]
|
|
1480
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1481
|
+
type: Inject,
|
|
1482
|
+
args: ['env']
|
|
1482
1483
|
}] }]; } });
|
|
1483
1484
|
|
|
1484
|
-
class WaitlistProjectService {
|
|
1485
|
-
constructor(http, env) {
|
|
1486
|
-
this.http = http;
|
|
1487
|
-
this.env = env;
|
|
1488
|
-
this.url = this.env.baseUrl + 'api/waitlist-projects';
|
|
1489
|
-
}
|
|
1490
|
-
readRefinishDetails(projectId) {
|
|
1491
|
-
return this.http.get(`${this.url}/${projectId}/refinish-details`);
|
|
1492
|
-
}
|
|
1493
|
-
updateRefinishDetails(projectId, details) {
|
|
1494
|
-
return this.http.put(`${this.url}/${projectId}/refinish-details`, details);
|
|
1495
|
-
}
|
|
1496
|
-
readMillingDetail(projectId) {
|
|
1497
|
-
return this.http.get(`${this.url}/${projectId}/milling-details`);
|
|
1498
|
-
}
|
|
1499
|
-
createMillingDetail(projectId, detail) {
|
|
1500
|
-
return this.http.post(`${this.url}/${projectId}/milling-details`, detail);
|
|
1501
|
-
}
|
|
1502
|
-
updateMillingDetail(projectId, detailId, detail) {
|
|
1503
|
-
return this.http.put(`${this.url}/${projectId}/milling-details/${detailId}`, detail);
|
|
1504
|
-
}
|
|
1505
|
-
}
|
|
1506
|
-
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 });
|
|
1507
|
-
WaitlistProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistProjectService, providedIn: 'root' });
|
|
1508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistProjectService, decorators: [{
|
|
1509
|
-
type: Injectable,
|
|
1510
|
-
args: [{
|
|
1511
|
-
providedIn: 'root'
|
|
1512
|
-
}]
|
|
1513
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1514
|
-
type: Inject,
|
|
1515
|
-
args: ['env']
|
|
1485
|
+
class WaitlistProjectService {
|
|
1486
|
+
constructor(http, env) {
|
|
1487
|
+
this.http = http;
|
|
1488
|
+
this.env = env;
|
|
1489
|
+
this.url = this.env.baseUrl + 'api/waitlist-projects';
|
|
1490
|
+
}
|
|
1491
|
+
readRefinishDetails(projectId) {
|
|
1492
|
+
return this.http.get(`${this.url}/${projectId}/refinish-details`);
|
|
1493
|
+
}
|
|
1494
|
+
updateRefinishDetails(projectId, details) {
|
|
1495
|
+
return this.http.put(`${this.url}/${projectId}/refinish-details`, details);
|
|
1496
|
+
}
|
|
1497
|
+
readMillingDetail(projectId) {
|
|
1498
|
+
return this.http.get(`${this.url}/${projectId}/milling-details`);
|
|
1499
|
+
}
|
|
1500
|
+
createMillingDetail(projectId, detail) {
|
|
1501
|
+
return this.http.post(`${this.url}/${projectId}/milling-details`, detail);
|
|
1502
|
+
}
|
|
1503
|
+
updateMillingDetail(projectId, detailId, detail) {
|
|
1504
|
+
return this.http.put(`${this.url}/${projectId}/milling-details/${detailId}`, detail);
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
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
|
+
WaitlistProjectService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistProjectService, providedIn: 'root' });
|
|
1509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WaitlistProjectService, decorators: [{
|
|
1510
|
+
type: Injectable,
|
|
1511
|
+
args: [{
|
|
1512
|
+
providedIn: 'root'
|
|
1513
|
+
}]
|
|
1514
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1515
|
+
type: Inject,
|
|
1516
|
+
args: ['env']
|
|
1516
1517
|
}] }]; } });
|
|
1517
1518
|
|
|
1518
|
-
class InventoryService extends BaseService {
|
|
1519
|
-
constructor(http, env) {
|
|
1520
|
-
super(http);
|
|
1521
|
-
this.http = http;
|
|
1522
|
-
this.env = env;
|
|
1523
|
-
this.urlSegments = [`${this.env.baseUrl}api/inventory-items`];
|
|
1524
|
-
}
|
|
1525
|
-
}
|
|
1526
|
-
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 });
|
|
1527
|
-
InventoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InventoryService, providedIn: "root" });
|
|
1528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InventoryService, decorators: [{
|
|
1529
|
-
type: Injectable,
|
|
1530
|
-
args: [{
|
|
1531
|
-
providedIn: "root",
|
|
1532
|
-
}]
|
|
1533
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1534
|
-
type: Inject,
|
|
1535
|
-
args: ["env"]
|
|
1519
|
+
class InventoryService extends BaseService {
|
|
1520
|
+
constructor(http, env) {
|
|
1521
|
+
super(http);
|
|
1522
|
+
this.http = http;
|
|
1523
|
+
this.env = env;
|
|
1524
|
+
this.urlSegments = [`${this.env.baseUrl}api/inventory-items`];
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
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 });
|
|
1528
|
+
InventoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InventoryService, providedIn: "root" });
|
|
1529
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: InventoryService, decorators: [{
|
|
1530
|
+
type: Injectable,
|
|
1531
|
+
args: [{
|
|
1532
|
+
providedIn: "root",
|
|
1533
|
+
}]
|
|
1534
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1535
|
+
type: Inject,
|
|
1536
|
+
args: ["env"]
|
|
1536
1537
|
}] }]; } });
|
|
1537
1538
|
|
|
1538
|
-
class StatusHistoryService {
|
|
1539
|
-
constructor(http, env) {
|
|
1540
|
-
this.http = http;
|
|
1541
|
-
this.env = env;
|
|
1542
|
-
this.url = this.env.baseUrl + 'api/status-histories';
|
|
1543
|
-
}
|
|
1544
|
-
readStatusByUser(user, startDate, endDate) {
|
|
1545
|
-
return this.http.get(`${this.url}/by-user`, {
|
|
1546
|
-
params: {
|
|
1547
|
-
user: user,
|
|
1548
|
-
startDate: startDate.toUTCString(),
|
|
1549
|
-
endDate: endDate.toUTCString()
|
|
1550
|
-
}
|
|
1551
|
-
});
|
|
1552
|
-
}
|
|
1553
|
-
readStatusByDate(date) {
|
|
1554
|
-
return this.http.get(`${this.url}/by-date`, {
|
|
1555
|
-
params: {
|
|
1556
|
-
date: date.toUTCString()
|
|
1557
|
-
}
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
StatusHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StatusHistoryService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1562
|
-
StatusHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StatusHistoryService, providedIn: 'root' });
|
|
1563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StatusHistoryService, decorators: [{
|
|
1564
|
-
type: Injectable,
|
|
1565
|
-
args: [{
|
|
1566
|
-
providedIn: 'root'
|
|
1567
|
-
}]
|
|
1568
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1569
|
-
type: Inject,
|
|
1570
|
-
args: ['env']
|
|
1539
|
+
class StatusHistoryService {
|
|
1540
|
+
constructor(http, env) {
|
|
1541
|
+
this.http = http;
|
|
1542
|
+
this.env = env;
|
|
1543
|
+
this.url = this.env.baseUrl + 'api/status-histories';
|
|
1544
|
+
}
|
|
1545
|
+
readStatusByUser(user, startDate, endDate) {
|
|
1546
|
+
return this.http.get(`${this.url}/by-user`, {
|
|
1547
|
+
params: {
|
|
1548
|
+
user: user,
|
|
1549
|
+
startDate: startDate.toUTCString(),
|
|
1550
|
+
endDate: endDate.toUTCString()
|
|
1551
|
+
}
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
readStatusByDate(date) {
|
|
1555
|
+
return this.http.get(`${this.url}/by-date`, {
|
|
1556
|
+
params: {
|
|
1557
|
+
date: date.toUTCString()
|
|
1558
|
+
}
|
|
1559
|
+
});
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
StatusHistoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StatusHistoryService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1563
|
+
StatusHistoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StatusHistoryService, providedIn: 'root' });
|
|
1564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StatusHistoryService, decorators: [{
|
|
1565
|
+
type: Injectable,
|
|
1566
|
+
args: [{
|
|
1567
|
+
providedIn: 'root'
|
|
1568
|
+
}]
|
|
1569
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1570
|
+
type: Inject,
|
|
1571
|
+
args: ['env']
|
|
1571
1572
|
}] }]; } });
|
|
1572
1573
|
|
|
1573
|
-
class PackageService {
|
|
1574
|
-
constructor(http, env) {
|
|
1575
|
-
this.http = http;
|
|
1576
|
-
this.env = env;
|
|
1577
|
-
this.url = this.env.baseUrl + 'api/packages';
|
|
1578
|
-
}
|
|
1579
|
-
readPackages(includeInactive = false, sku = null, name = null) {
|
|
1580
|
-
const params = {
|
|
1581
|
-
includeInactive
|
|
1582
|
-
};
|
|
1583
|
-
if (sku) {
|
|
1584
|
-
params['sku'] = sku;
|
|
1585
|
-
}
|
|
1586
|
-
if (name) {
|
|
1587
|
-
params['name'] = name;
|
|
1588
|
-
}
|
|
1589
|
-
return this.http.get(this.url, { params: params });
|
|
1590
|
-
}
|
|
1591
|
-
readPackage(id) {
|
|
1592
|
-
return this.http.get(`${this.url}/${id}`);
|
|
1593
|
-
}
|
|
1594
|
-
readPackagesByFirearm(firearmId, includeGunsmithOnly = false) {
|
|
1595
|
-
if (includeGunsmithOnly)
|
|
1596
|
-
return this.http.get(`${this.env.baseUrl}api/firearms/${firearmId}/packages`, { params: { includeGunsmithOnly: includeGunsmithOnly.toString() } });
|
|
1597
|
-
return this.http.get(`${this.env.baseUrl}api/firearms/${firearmId}/packages`);
|
|
1598
|
-
}
|
|
1599
|
-
savePackage(packagez) {
|
|
1600
|
-
if (packagez.id) {
|
|
1601
|
-
return this.http.put(`${this.url}/${packagez.id}`, packagez);
|
|
1602
|
-
}
|
|
1603
|
-
return this.http.post(this.url, packagez);
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
PackageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1607
|
-
PackageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageService, providedIn: 'root' });
|
|
1608
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageService, decorators: [{
|
|
1609
|
-
type: Injectable,
|
|
1610
|
-
args: [{
|
|
1611
|
-
providedIn: 'root'
|
|
1612
|
-
}]
|
|
1613
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1614
|
-
type: Inject,
|
|
1615
|
-
args: ['env']
|
|
1574
|
+
class PackageService {
|
|
1575
|
+
constructor(http, env) {
|
|
1576
|
+
this.http = http;
|
|
1577
|
+
this.env = env;
|
|
1578
|
+
this.url = this.env.baseUrl + 'api/packages';
|
|
1579
|
+
}
|
|
1580
|
+
readPackages(includeInactive = false, sku = null, name = null) {
|
|
1581
|
+
const params = {
|
|
1582
|
+
includeInactive
|
|
1583
|
+
};
|
|
1584
|
+
if (sku) {
|
|
1585
|
+
params['sku'] = sku;
|
|
1586
|
+
}
|
|
1587
|
+
if (name) {
|
|
1588
|
+
params['name'] = name;
|
|
1589
|
+
}
|
|
1590
|
+
return this.http.get(this.url, { params: params });
|
|
1591
|
+
}
|
|
1592
|
+
readPackage(id) {
|
|
1593
|
+
return this.http.get(`${this.url}/${id}`);
|
|
1594
|
+
}
|
|
1595
|
+
readPackagesByFirearm(firearmId, includeGunsmithOnly = false) {
|
|
1596
|
+
if (includeGunsmithOnly)
|
|
1597
|
+
return this.http.get(`${this.env.baseUrl}api/firearms/${firearmId}/packages`, { params: { includeGunsmithOnly: includeGunsmithOnly.toString() } });
|
|
1598
|
+
return this.http.get(`${this.env.baseUrl}api/firearms/${firearmId}/packages`);
|
|
1599
|
+
}
|
|
1600
|
+
savePackage(packagez) {
|
|
1601
|
+
if (packagez.id) {
|
|
1602
|
+
return this.http.put(`${this.url}/${packagez.id}`, packagez);
|
|
1603
|
+
}
|
|
1604
|
+
return this.http.post(this.url, packagez);
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
PackageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1608
|
+
PackageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageService, providedIn: 'root' });
|
|
1609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageService, decorators: [{
|
|
1610
|
+
type: Injectable,
|
|
1611
|
+
args: [{
|
|
1612
|
+
providedIn: 'root'
|
|
1613
|
+
}]
|
|
1614
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1615
|
+
type: Inject,
|
|
1616
|
+
args: ['env']
|
|
1616
1617
|
}] }]; } });
|
|
1617
1618
|
|
|
1618
|
-
class RefinishCodeService {
|
|
1619
|
-
constructor(http, env) {
|
|
1620
|
-
this.http = http;
|
|
1621
|
-
this.env = env;
|
|
1622
|
-
this.url = this.env.baseUrl + 'api/refinish-codes';
|
|
1623
|
-
}
|
|
1624
|
-
readRefinishCodes() {
|
|
1625
|
-
return this.http.get(this.url);
|
|
1626
|
-
}
|
|
1627
|
-
createRefinishCodes(refinishCodes) {
|
|
1628
|
-
return this.http.post(this.url, refinishCodes);
|
|
1629
|
-
}
|
|
1630
|
-
updateRefinishCodes(ids, refinishCodes) {
|
|
1631
|
-
return this.http.put(`${this.url}/` + ids.join(','), refinishCodes);
|
|
1632
|
-
}
|
|
1633
|
-
deleteRefinishCodes(ids) {
|
|
1634
|
-
return this.http.delete(this.url + '/' + ids.join(','));
|
|
1635
|
-
}
|
|
1636
|
-
}
|
|
1637
|
-
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 });
|
|
1638
|
-
RefinishCodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RefinishCodeService, providedIn: 'root' });
|
|
1639
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RefinishCodeService, decorators: [{
|
|
1640
|
-
type: Injectable,
|
|
1641
|
-
args: [{
|
|
1642
|
-
providedIn: 'root'
|
|
1643
|
-
}]
|
|
1644
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1645
|
-
type: Inject,
|
|
1646
|
-
args: ['env']
|
|
1619
|
+
class RefinishCodeService {
|
|
1620
|
+
constructor(http, env) {
|
|
1621
|
+
this.http = http;
|
|
1622
|
+
this.env = env;
|
|
1623
|
+
this.url = this.env.baseUrl + 'api/refinish-codes';
|
|
1624
|
+
}
|
|
1625
|
+
readRefinishCodes() {
|
|
1626
|
+
return this.http.get(this.url);
|
|
1627
|
+
}
|
|
1628
|
+
createRefinishCodes(refinishCodes) {
|
|
1629
|
+
return this.http.post(this.url, refinishCodes);
|
|
1630
|
+
}
|
|
1631
|
+
updateRefinishCodes(ids, refinishCodes) {
|
|
1632
|
+
return this.http.put(`${this.url}/` + ids.join(','), refinishCodes);
|
|
1633
|
+
}
|
|
1634
|
+
deleteRefinishCodes(ids) {
|
|
1635
|
+
return this.http.delete(this.url + '/' + ids.join(','));
|
|
1636
|
+
}
|
|
1637
|
+
}
|
|
1638
|
+
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 });
|
|
1639
|
+
RefinishCodeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RefinishCodeService, providedIn: 'root' });
|
|
1640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: RefinishCodeService, decorators: [{
|
|
1641
|
+
type: Injectable,
|
|
1642
|
+
args: [{
|
|
1643
|
+
providedIn: 'root'
|
|
1644
|
+
}]
|
|
1645
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1646
|
+
type: Inject,
|
|
1647
|
+
args: ['env']
|
|
1647
1648
|
}] }]; } });
|
|
1648
1649
|
|
|
1649
|
-
class WorkOrderShippingItemService extends BaseService {
|
|
1650
|
-
constructor(http, env) {
|
|
1651
|
-
super(http);
|
|
1652
|
-
this.http = http;
|
|
1653
|
-
this.env = env;
|
|
1654
|
-
this.urlSegments = [`${this.env.baseUrl}api/work-orders`, 'shipping-items'];
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
WorkOrderShippingItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderShippingItemService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1658
|
-
WorkOrderShippingItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderShippingItemService, providedIn: 'root' });
|
|
1659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderShippingItemService, decorators: [{
|
|
1660
|
-
type: Injectable,
|
|
1661
|
-
args: [{
|
|
1662
|
-
providedIn: 'root'
|
|
1663
|
-
}]
|
|
1664
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1665
|
-
type: Inject,
|
|
1666
|
-
args: ['env']
|
|
1650
|
+
class WorkOrderShippingItemService extends BaseService {
|
|
1651
|
+
constructor(http, env) {
|
|
1652
|
+
super(http);
|
|
1653
|
+
this.http = http;
|
|
1654
|
+
this.env = env;
|
|
1655
|
+
this.urlSegments = [`${this.env.baseUrl}api/work-orders`, 'shipping-items'];
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
WorkOrderShippingItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderShippingItemService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1659
|
+
WorkOrderShippingItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderShippingItemService, providedIn: 'root' });
|
|
1660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderShippingItemService, decorators: [{
|
|
1661
|
+
type: Injectable,
|
|
1662
|
+
args: [{
|
|
1663
|
+
providedIn: 'root'
|
|
1664
|
+
}]
|
|
1665
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1666
|
+
type: Inject,
|
|
1667
|
+
args: ['env']
|
|
1667
1668
|
}] }]; } });
|
|
1668
1669
|
|
|
1669
|
-
class WorkOrderDiscountService extends BaseService {
|
|
1670
|
-
constructor(http, env) {
|
|
1671
|
-
super(http);
|
|
1672
|
-
this.http = http;
|
|
1673
|
-
this.env = env;
|
|
1674
|
-
this.urlSegments = [`${this.env.baseUrl}api/work-orders`, 'discounts'];
|
|
1675
|
-
}
|
|
1676
|
-
}
|
|
1677
|
-
WorkOrderDiscountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderDiscountService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1678
|
-
WorkOrderDiscountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderDiscountService, providedIn: 'root' });
|
|
1679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderDiscountService, decorators: [{
|
|
1680
|
-
type: Injectable,
|
|
1681
|
-
args: [{
|
|
1682
|
-
providedIn: 'root'
|
|
1683
|
-
}]
|
|
1684
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1685
|
-
type: Inject,
|
|
1686
|
-
args: ['env']
|
|
1670
|
+
class WorkOrderDiscountService extends BaseService {
|
|
1671
|
+
constructor(http, env) {
|
|
1672
|
+
super(http);
|
|
1673
|
+
this.http = http;
|
|
1674
|
+
this.env = env;
|
|
1675
|
+
this.urlSegments = [`${this.env.baseUrl}api/work-orders`, 'discounts'];
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
WorkOrderDiscountService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderDiscountService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1679
|
+
WorkOrderDiscountService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderDiscountService, providedIn: 'root' });
|
|
1680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderDiscountService, decorators: [{
|
|
1681
|
+
type: Injectable,
|
|
1682
|
+
args: [{
|
|
1683
|
+
providedIn: 'root'
|
|
1684
|
+
}]
|
|
1685
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1686
|
+
type: Inject,
|
|
1687
|
+
args: ['env']
|
|
1687
1688
|
}] }]; } });
|
|
1688
1689
|
|
|
1689
|
-
class QuickbooksService {
|
|
1690
|
-
constructor(http, env) {
|
|
1691
|
-
this.http = http;
|
|
1692
|
-
this.env = env;
|
|
1693
|
-
this.url = this.env.baseUrl + 'api/quickbooks';
|
|
1694
|
-
}
|
|
1695
|
-
getQwcFile() {
|
|
1696
|
-
return this.http.get(`${this.url}`, { responseType: 'blob' })
|
|
1697
|
-
.pipe(switchMap$1((response) => {
|
|
1698
|
-
return of(new File([response], 'GunSmith.qwc', { type: response.type }));
|
|
1699
|
-
}));
|
|
1700
|
-
}
|
|
1701
|
-
}
|
|
1702
|
-
QuickbooksService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: QuickbooksService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1703
|
-
QuickbooksService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: QuickbooksService, providedIn: 'root' });
|
|
1704
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: QuickbooksService, decorators: [{
|
|
1705
|
-
type: Injectable,
|
|
1706
|
-
args: [{
|
|
1707
|
-
providedIn: 'root'
|
|
1708
|
-
}]
|
|
1709
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1710
|
-
type: Inject,
|
|
1711
|
-
args: ['env']
|
|
1690
|
+
class QuickbooksService {
|
|
1691
|
+
constructor(http, env) {
|
|
1692
|
+
this.http = http;
|
|
1693
|
+
this.env = env;
|
|
1694
|
+
this.url = this.env.baseUrl + 'api/quickbooks';
|
|
1695
|
+
}
|
|
1696
|
+
getQwcFile() {
|
|
1697
|
+
return this.http.get(`${this.url}`, { responseType: 'blob' })
|
|
1698
|
+
.pipe(switchMap$1((response) => {
|
|
1699
|
+
return of(new File([response], 'GunSmith.qwc', { type: response.type }));
|
|
1700
|
+
}));
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
QuickbooksService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: QuickbooksService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1704
|
+
QuickbooksService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: QuickbooksService, providedIn: 'root' });
|
|
1705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: QuickbooksService, decorators: [{
|
|
1706
|
+
type: Injectable,
|
|
1707
|
+
args: [{
|
|
1708
|
+
providedIn: 'root'
|
|
1709
|
+
}]
|
|
1710
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1711
|
+
type: Inject,
|
|
1712
|
+
args: ['env']
|
|
1712
1713
|
}] }]; } });
|
|
1713
1714
|
|
|
1714
|
-
class WorkOrderNonInventoryItemService extends BaseService {
|
|
1715
|
-
constructor(http, env) {
|
|
1716
|
-
super(http);
|
|
1717
|
-
this.http = http;
|
|
1718
|
-
this.env = env;
|
|
1719
|
-
this.urlSegments = [`${this.env.baseUrl}api/work-orders`, 'non-inventory-items'];
|
|
1720
|
-
}
|
|
1721
|
-
}
|
|
1722
|
-
WorkOrderNonInventoryItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderNonInventoryItemService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1723
|
-
WorkOrderNonInventoryItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderNonInventoryItemService, providedIn: 'root' });
|
|
1724
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderNonInventoryItemService, decorators: [{
|
|
1725
|
-
type: Injectable,
|
|
1726
|
-
args: [{
|
|
1727
|
-
providedIn: 'root'
|
|
1728
|
-
}]
|
|
1729
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1730
|
-
type: Inject,
|
|
1731
|
-
args: ['env']
|
|
1715
|
+
class WorkOrderNonInventoryItemService extends BaseService {
|
|
1716
|
+
constructor(http, env) {
|
|
1717
|
+
super(http);
|
|
1718
|
+
this.http = http;
|
|
1719
|
+
this.env = env;
|
|
1720
|
+
this.urlSegments = [`${this.env.baseUrl}api/work-orders`, 'non-inventory-items'];
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
WorkOrderNonInventoryItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderNonInventoryItemService, deps: [{ token: i1.HttpClient }, { token: 'env' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1724
|
+
WorkOrderNonInventoryItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderNonInventoryItemService, providedIn: 'root' });
|
|
1725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: WorkOrderNonInventoryItemService, decorators: [{
|
|
1726
|
+
type: Injectable,
|
|
1727
|
+
args: [{
|
|
1728
|
+
providedIn: 'root'
|
|
1729
|
+
}]
|
|
1730
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1731
|
+
type: Inject,
|
|
1732
|
+
args: ['env']
|
|
1732
1733
|
}] }]; } });
|
|
1733
1734
|
|
|
1734
|
-
class MountTypeService extends BaseService {
|
|
1735
|
-
constructor(http, env) {
|
|
1736
|
-
super(http);
|
|
1737
|
-
this.http = http;
|
|
1738
|
-
this.env = env;
|
|
1739
|
-
this.urlSegments = [`${this.env.baseUrl}api/mount-types`];
|
|
1740
|
-
}
|
|
1741
|
-
}
|
|
1742
|
-
MountTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1743
|
-
MountTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, providedIn: "root" });
|
|
1744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, decorators: [{
|
|
1745
|
-
type: Injectable,
|
|
1746
|
-
args: [{
|
|
1747
|
-
providedIn: "root",
|
|
1748
|
-
}]
|
|
1749
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1750
|
-
type: Inject,
|
|
1751
|
-
args: ["env"]
|
|
1735
|
+
class MountTypeService extends BaseService {
|
|
1736
|
+
constructor(http, env) {
|
|
1737
|
+
super(http);
|
|
1738
|
+
this.http = http;
|
|
1739
|
+
this.env = env;
|
|
1740
|
+
this.urlSegments = [`${this.env.baseUrl}api/mount-types`];
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
MountTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1744
|
+
MountTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, providedIn: "root" });
|
|
1745
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MountTypeService, decorators: [{
|
|
1746
|
+
type: Injectable,
|
|
1747
|
+
args: [{
|
|
1748
|
+
providedIn: "root",
|
|
1749
|
+
}]
|
|
1750
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1751
|
+
type: Inject,
|
|
1752
|
+
args: ["env"]
|
|
1752
1753
|
}] }]; } });
|
|
1753
1754
|
|
|
1754
|
-
class SightService extends BaseService {
|
|
1755
|
-
constructor(http, env) {
|
|
1756
|
-
super(http);
|
|
1757
|
-
this.http = http;
|
|
1758
|
-
this.env = env;
|
|
1759
|
-
this.urlSegments = [`${this.env.baseUrl}api/sights`];
|
|
1760
|
-
}
|
|
1761
|
-
getSightReport() {
|
|
1762
|
-
return this.http.get(`${this.env.baseUrl}api/sights/report`);
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
SightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1766
|
-
SightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, providedIn: 'root' });
|
|
1767
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, decorators: [{
|
|
1768
|
-
type: Injectable,
|
|
1769
|
-
args: [{
|
|
1770
|
-
providedIn: 'root'
|
|
1771
|
-
}]
|
|
1772
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1773
|
-
type: Inject,
|
|
1774
|
-
args: ["env"]
|
|
1755
|
+
class SightService extends BaseService {
|
|
1756
|
+
constructor(http, env) {
|
|
1757
|
+
super(http);
|
|
1758
|
+
this.http = http;
|
|
1759
|
+
this.env = env;
|
|
1760
|
+
this.urlSegments = [`${this.env.baseUrl}api/sights`];
|
|
1761
|
+
}
|
|
1762
|
+
getSightReport() {
|
|
1763
|
+
return this.http.get(`${this.env.baseUrl}api/sights/report`);
|
|
1764
|
+
}
|
|
1765
|
+
}
|
|
1766
|
+
SightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1767
|
+
SightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, providedIn: 'root' });
|
|
1768
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightService, decorators: [{
|
|
1769
|
+
type: Injectable,
|
|
1770
|
+
args: [{
|
|
1771
|
+
providedIn: 'root'
|
|
1772
|
+
}]
|
|
1773
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1774
|
+
type: Inject,
|
|
1775
|
+
args: ["env"]
|
|
1775
1776
|
}] }]; } });
|
|
1776
1777
|
|
|
1777
|
-
class SightTypeService extends BaseService {
|
|
1778
|
-
constructor(http, env) {
|
|
1779
|
-
super(http);
|
|
1780
|
-
this.http = http;
|
|
1781
|
-
this.env = env;
|
|
1782
|
-
this.urlSegments = [`${this.env.baseUrl}api/sight-types`];
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
SightTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1786
|
-
SightTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, providedIn: 'root' });
|
|
1787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, decorators: [{
|
|
1788
|
-
type: Injectable,
|
|
1789
|
-
args: [{
|
|
1790
|
-
providedIn: 'root'
|
|
1791
|
-
}]
|
|
1792
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1793
|
-
type: Inject,
|
|
1794
|
-
args: ["env"]
|
|
1778
|
+
class SightTypeService extends BaseService {
|
|
1779
|
+
constructor(http, env) {
|
|
1780
|
+
super(http);
|
|
1781
|
+
this.http = http;
|
|
1782
|
+
this.env = env;
|
|
1783
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-types`];
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
SightTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1787
|
+
SightTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, providedIn: 'root' });
|
|
1788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightTypeService, decorators: [{
|
|
1789
|
+
type: Injectable,
|
|
1790
|
+
args: [{
|
|
1791
|
+
providedIn: 'root'
|
|
1792
|
+
}]
|
|
1793
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1794
|
+
type: Inject,
|
|
1795
|
+
args: ["env"]
|
|
1795
1796
|
}] }]; } });
|
|
1796
1797
|
|
|
1797
|
-
class SightMaterialService extends BaseService {
|
|
1798
|
-
constructor(http, env) {
|
|
1799
|
-
super(http);
|
|
1800
|
-
this.http = http;
|
|
1801
|
-
this.env = env;
|
|
1802
|
-
this.urlSegments = [`${this.env.baseUrl}api/sight-materials`];
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
SightMaterialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1806
|
-
SightMaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, providedIn: "root" });
|
|
1807
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, decorators: [{
|
|
1808
|
-
type: Injectable,
|
|
1809
|
-
args: [{
|
|
1810
|
-
providedIn: "root",
|
|
1811
|
-
}]
|
|
1812
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1813
|
-
type: Inject,
|
|
1814
|
-
args: ["env"]
|
|
1798
|
+
class SightMaterialService extends BaseService {
|
|
1799
|
+
constructor(http, env) {
|
|
1800
|
+
super(http);
|
|
1801
|
+
this.http = http;
|
|
1802
|
+
this.env = env;
|
|
1803
|
+
this.urlSegments = [`${this.env.baseUrl}api/sight-materials`];
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
SightMaterialService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1807
|
+
SightMaterialService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, providedIn: "root" });
|
|
1808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SightMaterialService, decorators: [{
|
|
1809
|
+
type: Injectable,
|
|
1810
|
+
args: [{
|
|
1811
|
+
providedIn: "root",
|
|
1812
|
+
}]
|
|
1813
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1814
|
+
type: Inject,
|
|
1815
|
+
args: ["env"]
|
|
1815
1816
|
}] }]; } });
|
|
1816
1817
|
|
|
1817
|
-
class FirearmOpticService extends BaseService {
|
|
1818
|
-
constructor(http, env) {
|
|
1819
|
-
super(http);
|
|
1820
|
-
this.http = http;
|
|
1821
|
-
this.env = env;
|
|
1822
|
-
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
|
|
1823
|
-
}
|
|
1824
|
-
createCollection(firearmOptics, firearmId) {
|
|
1825
|
-
return this.http.post(`${this.env.baseUrl}api/firearms/${firearmId}/optics/collection`, firearmOptics);
|
|
1826
|
-
}
|
|
1827
|
-
updateCollection(firearmOptics, firearmId, firearmOpticIds) {
|
|
1828
|
-
return this.http.put(`${this.env.baseUrl}api/firearms/${firearmId}/optics/collection/${firearmOpticIds.join(",")}`, firearmOptics);
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
FirearmOpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1832
|
-
FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
|
|
1833
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, decorators: [{
|
|
1834
|
-
type: Injectable,
|
|
1835
|
-
args: [{
|
|
1836
|
-
providedIn: "root",
|
|
1837
|
-
}]
|
|
1838
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1839
|
-
type: Inject,
|
|
1840
|
-
args: ["env"]
|
|
1818
|
+
class FirearmOpticService extends BaseService {
|
|
1819
|
+
constructor(http, env) {
|
|
1820
|
+
super(http);
|
|
1821
|
+
this.http = http;
|
|
1822
|
+
this.env = env;
|
|
1823
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "optics"];
|
|
1824
|
+
}
|
|
1825
|
+
createCollection(firearmOptics, firearmId) {
|
|
1826
|
+
return this.http.post(`${this.env.baseUrl}api/firearms/${firearmId}/optics/collection`, firearmOptics);
|
|
1827
|
+
}
|
|
1828
|
+
updateCollection(firearmOptics, firearmId, firearmOpticIds) {
|
|
1829
|
+
return this.http.put(`${this.env.baseUrl}api/firearms/${firearmId}/optics/collection/${firearmOpticIds.join(",")}`, firearmOptics);
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
FirearmOpticService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1833
|
+
FirearmOpticService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, providedIn: "root" });
|
|
1834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmOpticService, decorators: [{
|
|
1835
|
+
type: Injectable,
|
|
1836
|
+
args: [{
|
|
1837
|
+
providedIn: "root",
|
|
1838
|
+
}]
|
|
1839
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1840
|
+
type: Inject,
|
|
1841
|
+
args: ["env"]
|
|
1841
1842
|
}] }]; } });
|
|
1842
1843
|
|
|
1843
|
-
class FirearmSightService extends BaseService {
|
|
1844
|
-
constructor(http, env) {
|
|
1845
|
-
super(http);
|
|
1846
|
-
this.http = http;
|
|
1847
|
-
this.env = env;
|
|
1848
|
-
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "sights"];
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
FirearmSightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1852
|
-
FirearmSightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, providedIn: "root" });
|
|
1853
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, decorators: [{
|
|
1854
|
-
type: Injectable,
|
|
1855
|
-
args: [{
|
|
1856
|
-
providedIn: "root",
|
|
1857
|
-
}]
|
|
1858
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1859
|
-
type: Inject,
|
|
1860
|
-
args: ["env"]
|
|
1844
|
+
class FirearmSightService extends BaseService {
|
|
1845
|
+
constructor(http, env) {
|
|
1846
|
+
super(http);
|
|
1847
|
+
this.http = http;
|
|
1848
|
+
this.env = env;
|
|
1849
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "sights"];
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
FirearmSightService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1853
|
+
FirearmSightService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, providedIn: "root" });
|
|
1854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmSightService, decorators: [{
|
|
1855
|
+
type: Injectable,
|
|
1856
|
+
args: [{
|
|
1857
|
+
providedIn: "root",
|
|
1858
|
+
}]
|
|
1859
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1860
|
+
type: Inject,
|
|
1861
|
+
args: ["env"]
|
|
1861
1862
|
}] }]; } });
|
|
1862
1863
|
|
|
1863
|
-
class PackageOptionalItemService extends BaseService {
|
|
1864
|
-
constructor(http, env) {
|
|
1865
|
-
super(http);
|
|
1866
|
-
this.http = http;
|
|
1867
|
-
this.env = env;
|
|
1868
|
-
this.urlSegments = [`${this.env.baseUrl}api/packages`, "optional-items"];
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
PackageOptionalItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1872
|
-
PackageOptionalItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, providedIn: "root" });
|
|
1873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, decorators: [{
|
|
1874
|
-
type: Injectable,
|
|
1875
|
-
args: [{
|
|
1876
|
-
providedIn: "root",
|
|
1877
|
-
}]
|
|
1878
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1879
|
-
type: Inject,
|
|
1880
|
-
args: ["env"]
|
|
1864
|
+
class PackageOptionalItemService extends BaseService {
|
|
1865
|
+
constructor(http, env) {
|
|
1866
|
+
super(http);
|
|
1867
|
+
this.http = http;
|
|
1868
|
+
this.env = env;
|
|
1869
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "optional-items"];
|
|
1870
|
+
}
|
|
1871
|
+
}
|
|
1872
|
+
PackageOptionalItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1873
|
+
PackageOptionalItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, providedIn: "root" });
|
|
1874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageOptionalItemService, decorators: [{
|
|
1875
|
+
type: Injectable,
|
|
1876
|
+
args: [{
|
|
1877
|
+
providedIn: "root",
|
|
1878
|
+
}]
|
|
1879
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1880
|
+
type: Inject,
|
|
1881
|
+
args: ["env"]
|
|
1881
1882
|
}] }]; } });
|
|
1882
1883
|
|
|
1883
|
-
class PackageVariationService extends BaseService {
|
|
1884
|
-
constructor(http, env) {
|
|
1885
|
-
super(http);
|
|
1886
|
-
this.http = http;
|
|
1887
|
-
this.env = env;
|
|
1888
|
-
this.urlSegments = [`${this.env.baseUrl}api/packages`, "variations"];
|
|
1889
|
-
}
|
|
1890
|
-
}
|
|
1891
|
-
PackageVariationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1892
|
-
PackageVariationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, providedIn: "root" });
|
|
1893
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, decorators: [{
|
|
1894
|
-
type: Injectable,
|
|
1895
|
-
args: [{
|
|
1896
|
-
providedIn: "root",
|
|
1897
|
-
}]
|
|
1898
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1899
|
-
type: Inject,
|
|
1900
|
-
args: ["env"]
|
|
1884
|
+
class PackageVariationService extends BaseService {
|
|
1885
|
+
constructor(http, env) {
|
|
1886
|
+
super(http);
|
|
1887
|
+
this.http = http;
|
|
1888
|
+
this.env = env;
|
|
1889
|
+
this.urlSegments = [`${this.env.baseUrl}api/packages`, "variations"];
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
PackageVariationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1893
|
+
PackageVariationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, providedIn: "root" });
|
|
1894
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PackageVariationService, decorators: [{
|
|
1895
|
+
type: Injectable,
|
|
1896
|
+
args: [{
|
|
1897
|
+
providedIn: "root",
|
|
1898
|
+
}]
|
|
1899
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1900
|
+
type: Inject,
|
|
1901
|
+
args: ["env"]
|
|
1901
1902
|
}] }]; } });
|
|
1902
1903
|
|
|
1903
|
-
class SlideAddonService extends BaseService {
|
|
1904
|
-
constructor(http, env) {
|
|
1905
|
-
super(http);
|
|
1906
|
-
this.http = http;
|
|
1907
|
-
this.env = env;
|
|
1908
|
-
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "slide-addons"];
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
SlideAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1912
|
-
SlideAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, providedIn: "root" });
|
|
1913
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, decorators: [{
|
|
1914
|
-
type: Injectable,
|
|
1915
|
-
args: [{
|
|
1916
|
-
providedIn: "root",
|
|
1917
|
-
}]
|
|
1918
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1919
|
-
type: Inject,
|
|
1920
|
-
args: ["env"]
|
|
1904
|
+
class SlideAddonService extends BaseService {
|
|
1905
|
+
constructor(http, env) {
|
|
1906
|
+
super(http);
|
|
1907
|
+
this.http = http;
|
|
1908
|
+
this.env = env;
|
|
1909
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "slide-addons"];
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
SlideAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1913
|
+
SlideAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, providedIn: "root" });
|
|
1914
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SlideAddonService, decorators: [{
|
|
1915
|
+
type: Injectable,
|
|
1916
|
+
args: [{
|
|
1917
|
+
providedIn: "root",
|
|
1918
|
+
}]
|
|
1919
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1920
|
+
type: Inject,
|
|
1921
|
+
args: ["env"]
|
|
1921
1922
|
}] }]; } });
|
|
1922
1923
|
|
|
1923
|
-
class CoatingValueService extends BaseService {
|
|
1924
|
-
constructor(http, env) {
|
|
1925
|
-
super(http);
|
|
1926
|
-
this.http = http;
|
|
1927
|
-
this.env = env;
|
|
1928
|
-
this.urlSegments = [`${this.env.baseUrl}api/coatings`, "coating-values"];
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
CoatingValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1932
|
-
CoatingValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, providedIn: "root" });
|
|
1933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, decorators: [{
|
|
1934
|
-
type: Injectable,
|
|
1935
|
-
args: [{
|
|
1936
|
-
providedIn: "root",
|
|
1937
|
-
}]
|
|
1938
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1939
|
-
type: Inject,
|
|
1940
|
-
args: ["env"]
|
|
1924
|
+
class CoatingValueService extends BaseService {
|
|
1925
|
+
constructor(http, env) {
|
|
1926
|
+
super(http);
|
|
1927
|
+
this.http = http;
|
|
1928
|
+
this.env = env;
|
|
1929
|
+
this.urlSegments = [`${this.env.baseUrl}api/coatings`, "coating-values"];
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
CoatingValueService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1933
|
+
CoatingValueService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, providedIn: "root" });
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CoatingValueService, decorators: [{
|
|
1935
|
+
type: Injectable,
|
|
1936
|
+
args: [{
|
|
1937
|
+
providedIn: "root",
|
|
1938
|
+
}]
|
|
1939
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1940
|
+
type: Inject,
|
|
1941
|
+
args: ["env"]
|
|
1941
1942
|
}] }]; } });
|
|
1942
1943
|
|
|
1943
|
-
class FinishDateHelperService {
|
|
1944
|
-
constructor(configService, holidayService) {
|
|
1945
|
-
this.configService = configService;
|
|
1946
|
-
this.holidayService = holidayService;
|
|
1947
|
-
this.holidays = [];
|
|
1948
|
-
}
|
|
1949
|
-
adjustHoliday(finishDate) {
|
|
1950
|
-
while (this.holidays
|
|
1951
|
-
.map((h) => new Date(h.holiday))
|
|
1952
|
-
.findIndex((h) => h === finishDate) !== -1) {
|
|
1953
|
-
do {
|
|
1954
|
-
finishDate = DateTime.fromJSDate(finishDate)
|
|
1955
|
-
.plus({ days: 1 })
|
|
1956
|
-
.toJSDate();
|
|
1957
|
-
} while (finishDate.getDay() === 0 || finishDate.getDay() === 6);
|
|
1958
|
-
}
|
|
1959
|
-
return finishDate;
|
|
1960
|
-
}
|
|
1961
|
-
calculateFinishDate(receivedDate, workOrderType) {
|
|
1962
|
-
let finishDate = DateTime.fromJSDate(receivedDate).startOf("day");
|
|
1963
|
-
if (workOrderType === WorkOrderType.Warranty) {
|
|
1964
|
-
finishDate = finishDate.plus({ weeks: this.configs.warrantyWeeks });
|
|
1965
|
-
}
|
|
1966
|
-
else if (workOrderType === WorkOrderType.Expedited) {
|
|
1967
|
-
finishDate = finishDate.plus({ weeks: this.configs.expeditedWeeks });
|
|
1968
|
-
}
|
|
1969
|
-
else if (workOrderType === WorkOrderType.NewInBox) {
|
|
1970
|
-
finishDate = finishDate.plus({ weeks: this.configs.newInBoxWeeks });
|
|
1971
|
-
}
|
|
1972
|
-
else {
|
|
1973
|
-
finishDate = finishDate.plus({ weeks: this.configs.standardWeeks });
|
|
1974
|
-
}
|
|
1975
|
-
return this.adjustHoliday(finishDate.toJSDate());
|
|
1976
|
-
}
|
|
1977
|
-
calculate(receivedDate, workOrderType) {
|
|
1978
|
-
if (!receivedDate) {
|
|
1979
|
-
return EMPTY;
|
|
1980
|
-
}
|
|
1981
|
-
if (!this.configs) {
|
|
1982
|
-
return forkJoin([
|
|
1983
|
-
this.configService.readConfigs(),
|
|
1984
|
-
this.holidayService.readHolidays(),
|
|
1985
|
-
]).pipe(switchMap$1(([configs, holidays]) => {
|
|
1986
|
-
this.configs = configs;
|
|
1987
|
-
this.holidays = holidays;
|
|
1988
|
-
return of(this.calculateFinishDate(receivedDate, workOrderType));
|
|
1989
|
-
}));
|
|
1990
|
-
}
|
|
1991
|
-
return of(this.calculateFinishDate(receivedDate, workOrderType));
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
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 });
|
|
1995
|
-
FinishDateHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FinishDateHelperService, providedIn: "root" });
|
|
1996
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FinishDateHelperService, decorators: [{
|
|
1997
|
-
type: Injectable,
|
|
1998
|
-
args: [{
|
|
1999
|
-
providedIn: "root",
|
|
2000
|
-
}]
|
|
1944
|
+
class FinishDateHelperService {
|
|
1945
|
+
constructor(configService, holidayService) {
|
|
1946
|
+
this.configService = configService;
|
|
1947
|
+
this.holidayService = holidayService;
|
|
1948
|
+
this.holidays = [];
|
|
1949
|
+
}
|
|
1950
|
+
adjustHoliday(finishDate) {
|
|
1951
|
+
while (this.holidays
|
|
1952
|
+
.map((h) => new Date(h.holiday))
|
|
1953
|
+
.findIndex((h) => h === finishDate) !== -1) {
|
|
1954
|
+
do {
|
|
1955
|
+
finishDate = DateTime.fromJSDate(finishDate)
|
|
1956
|
+
.plus({ days: 1 })
|
|
1957
|
+
.toJSDate();
|
|
1958
|
+
} while (finishDate.getDay() === 0 || finishDate.getDay() === 6);
|
|
1959
|
+
}
|
|
1960
|
+
return finishDate;
|
|
1961
|
+
}
|
|
1962
|
+
calculateFinishDate(receivedDate, workOrderType) {
|
|
1963
|
+
let finishDate = DateTime.fromJSDate(receivedDate).startOf("day");
|
|
1964
|
+
if (workOrderType === WorkOrderType.Warranty) {
|
|
1965
|
+
finishDate = finishDate.plus({ weeks: this.configs.warrantyWeeks });
|
|
1966
|
+
}
|
|
1967
|
+
else if (workOrderType === WorkOrderType.Expedited) {
|
|
1968
|
+
finishDate = finishDate.plus({ weeks: this.configs.expeditedWeeks });
|
|
1969
|
+
}
|
|
1970
|
+
else if (workOrderType === WorkOrderType.NewInBox) {
|
|
1971
|
+
finishDate = finishDate.plus({ weeks: this.configs.newInBoxWeeks });
|
|
1972
|
+
}
|
|
1973
|
+
else {
|
|
1974
|
+
finishDate = finishDate.plus({ weeks: this.configs.standardWeeks });
|
|
1975
|
+
}
|
|
1976
|
+
return this.adjustHoliday(finishDate.toJSDate());
|
|
1977
|
+
}
|
|
1978
|
+
calculate(receivedDate, workOrderType) {
|
|
1979
|
+
if (!receivedDate) {
|
|
1980
|
+
return EMPTY;
|
|
1981
|
+
}
|
|
1982
|
+
if (!this.configs) {
|
|
1983
|
+
return forkJoin([
|
|
1984
|
+
this.configService.readConfigs(),
|
|
1985
|
+
this.holidayService.readHolidays(),
|
|
1986
|
+
]).pipe(switchMap$1(([configs, holidays]) => {
|
|
1987
|
+
this.configs = configs;
|
|
1988
|
+
this.holidays = holidays;
|
|
1989
|
+
return of(this.calculateFinishDate(receivedDate, workOrderType));
|
|
1990
|
+
}));
|
|
1991
|
+
}
|
|
1992
|
+
return of(this.calculateFinishDate(receivedDate, workOrderType));
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
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 });
|
|
1996
|
+
FinishDateHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FinishDateHelperService, providedIn: "root" });
|
|
1997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FinishDateHelperService, decorators: [{
|
|
1998
|
+
type: Injectable,
|
|
1999
|
+
args: [{
|
|
2000
|
+
providedIn: "root",
|
|
2001
|
+
}]
|
|
2001
2002
|
}], ctorParameters: function () { return [{ type: ConfigurationService }, { type: WorkHolidayService }]; } });
|
|
2002
2003
|
|
|
2003
|
-
class MillingTypeAddonService extends BaseService {
|
|
2004
|
-
constructor(http, env) {
|
|
2005
|
-
super(http);
|
|
2006
|
-
this.http = http;
|
|
2007
|
-
this.env = env;
|
|
2008
|
-
this.urlSegments = [`${this.env.baseUrl}api/milling-types`, "addons"];
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
MillingTypeAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeAddonService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2012
|
-
MillingTypeAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeAddonService, providedIn: "root" });
|
|
2013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeAddonService, decorators: [{
|
|
2014
|
-
type: Injectable,
|
|
2015
|
-
args: [{
|
|
2016
|
-
providedIn: "root",
|
|
2017
|
-
}]
|
|
2018
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2019
|
-
type: Inject,
|
|
2020
|
-
args: ["env"]
|
|
2004
|
+
class MillingTypeAddonService extends BaseService {
|
|
2005
|
+
constructor(http, env) {
|
|
2006
|
+
super(http);
|
|
2007
|
+
this.http = http;
|
|
2008
|
+
this.env = env;
|
|
2009
|
+
this.urlSegments = [`${this.env.baseUrl}api/milling-types`, "addons"];
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
MillingTypeAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeAddonService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2013
|
+
MillingTypeAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeAddonService, providedIn: "root" });
|
|
2014
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MillingTypeAddonService, decorators: [{
|
|
2015
|
+
type: Injectable,
|
|
2016
|
+
args: [{
|
|
2017
|
+
providedIn: "root",
|
|
2018
|
+
}]
|
|
2019
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2020
|
+
type: Inject,
|
|
2021
|
+
args: ["env"]
|
|
2021
2022
|
}] }]; } });
|
|
2022
2023
|
|
|
2023
|
-
class FirearmMillingTypeService extends BaseService {
|
|
2024
|
-
constructor(http, env) {
|
|
2025
|
-
super(http);
|
|
2026
|
-
this.http = http;
|
|
2027
|
-
this.env = env;
|
|
2028
|
-
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "milling-types"];
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
FirearmMillingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmMillingTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2032
|
-
FirearmMillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmMillingTypeService, providedIn: "root" });
|
|
2033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmMillingTypeService, decorators: [{
|
|
2034
|
-
type: Injectable,
|
|
2035
|
-
args: [{
|
|
2036
|
-
providedIn: "root",
|
|
2037
|
-
}]
|
|
2038
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2039
|
-
type: Inject,
|
|
2040
|
-
args: ["env"]
|
|
2024
|
+
class FirearmMillingTypeService extends BaseService {
|
|
2025
|
+
constructor(http, env) {
|
|
2026
|
+
super(http);
|
|
2027
|
+
this.http = http;
|
|
2028
|
+
this.env = env;
|
|
2029
|
+
this.urlSegments = [`${this.env.baseUrl}api/firearms`, "milling-types"];
|
|
2030
|
+
}
|
|
2031
|
+
}
|
|
2032
|
+
FirearmMillingTypeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmMillingTypeService, deps: [{ token: i1.HttpClient }, { token: "env" }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2033
|
+
FirearmMillingTypeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmMillingTypeService, providedIn: "root" });
|
|
2034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FirearmMillingTypeService, decorators: [{
|
|
2035
|
+
type: Injectable,
|
|
2036
|
+
args: [{
|
|
2037
|
+
providedIn: "root",
|
|
2038
|
+
}]
|
|
2039
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2040
|
+
type: Inject,
|
|
2041
|
+
args: ["env"]
|
|
2041
2042
|
}] }]; } });
|
|
2042
2043
|
|
|
2043
|
-
class PhonePipe {
|
|
2044
|
-
transform(value, args) {
|
|
2045
|
-
if (value && value.length >= 10) {
|
|
2046
|
-
return `(${value.slice(0, 3)}) ${value.slice(3, 6)}-${value.slice(6)}`;
|
|
2047
|
-
}
|
|
2048
|
-
return '';
|
|
2049
|
-
}
|
|
2050
|
-
}
|
|
2051
|
-
PhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2052
|
-
PhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PhonePipe, name: "phone" });
|
|
2053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PhonePipe, decorators: [{
|
|
2054
|
-
type: Pipe,
|
|
2055
|
-
args: [{
|
|
2056
|
-
name: 'phone'
|
|
2057
|
-
}]
|
|
2044
|
+
class PhonePipe {
|
|
2045
|
+
transform(value, args) {
|
|
2046
|
+
if (value && value.length >= 10) {
|
|
2047
|
+
return `(${value.slice(0, 3)}) ${value.slice(3, 6)}-${value.slice(6)}`;
|
|
2048
|
+
}
|
|
2049
|
+
return '';
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
PhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2053
|
+
PhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PhonePipe, name: "phone" });
|
|
2054
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PhonePipe, decorators: [{
|
|
2055
|
+
type: Pipe,
|
|
2056
|
+
args: [{
|
|
2057
|
+
name: 'phone'
|
|
2058
|
+
}]
|
|
2058
2059
|
}] });
|
|
2059
2060
|
|
|
2060
|
-
class FileNamePipe {
|
|
2061
|
-
transform(value, args) {
|
|
2062
|
-
return value.replace(/(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}-/, '');
|
|
2063
|
-
}
|
|
2064
|
-
}
|
|
2065
|
-
FileNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2066
|
-
FileNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileNamePipe, name: "fileName" });
|
|
2067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileNamePipe, decorators: [{
|
|
2068
|
-
type: Pipe,
|
|
2069
|
-
args: [{
|
|
2070
|
-
name: 'fileName'
|
|
2071
|
-
}]
|
|
2061
|
+
class FileNamePipe {
|
|
2062
|
+
transform(value, args) {
|
|
2063
|
+
return value.replace(/(\{){0,1}[0-9a-fA-F]{8}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{4}\-[0-9a-fA-F]{12}(\}){0,1}-/, '');
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
2066
|
+
FileNamePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileNamePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2067
|
+
FileNamePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileNamePipe, name: "fileName" });
|
|
2068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FileNamePipe, decorators: [{
|
|
2069
|
+
type: Pipe,
|
|
2070
|
+
args: [{
|
|
2071
|
+
name: 'fileName'
|
|
2072
|
+
}]
|
|
2072
2073
|
}] });
|
|
2073
2074
|
|
|
2074
|
-
class EnumPipe {
|
|
2075
|
-
transform(value, args) {
|
|
2076
|
-
return value.replace(/([^A-Z])([A-Z])/g, '$1 $2').trim();
|
|
2077
|
-
}
|
|
2078
|
-
}
|
|
2079
|
-
EnumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2080
|
-
EnumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumPipe, name: "enum" });
|
|
2081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumPipe, decorators: [{
|
|
2082
|
-
type: Pipe,
|
|
2083
|
-
args: [{
|
|
2084
|
-
name: 'enum'
|
|
2085
|
-
}]
|
|
2075
|
+
class EnumPipe {
|
|
2076
|
+
transform(value, args) {
|
|
2077
|
+
return value.replace(/([^A-Z])([A-Z])/g, '$1 $2').trim();
|
|
2078
|
+
}
|
|
2079
|
+
}
|
|
2080
|
+
EnumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2081
|
+
EnumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumPipe, name: "enum" });
|
|
2082
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: EnumPipe, decorators: [{
|
|
2083
|
+
type: Pipe,
|
|
2084
|
+
args: [{
|
|
2085
|
+
name: 'enum'
|
|
2086
|
+
}]
|
|
2086
2087
|
}] });
|
|
2087
2088
|
|
|
2088
|
-
class NewLinePipe {
|
|
2089
|
-
transform(value, args) {
|
|
2090
|
-
return value ? value.replace(/(?:\r\n|\r|\n)/g, '<br>') : '';
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
NewLinePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewLinePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2094
|
-
NewLinePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewLinePipe, name: "newLine" });
|
|
2095
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewLinePipe, decorators: [{
|
|
2096
|
-
type: Pipe,
|
|
2097
|
-
args: [{
|
|
2098
|
-
name: 'newLine'
|
|
2099
|
-
}]
|
|
2089
|
+
class NewLinePipe {
|
|
2090
|
+
transform(value, args) {
|
|
2091
|
+
return value ? value.replace(/(?:\r\n|\r|\n)/g, '<br>') : '';
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
NewLinePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewLinePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2095
|
+
NewLinePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewLinePipe, name: "newLine" });
|
|
2096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NewLinePipe, decorators: [{
|
|
2097
|
+
type: Pipe,
|
|
2098
|
+
args: [{
|
|
2099
|
+
name: 'newLine'
|
|
2100
|
+
}]
|
|
2100
2101
|
}] });
|
|
2101
2102
|
|
|
2102
|
-
class FrameMaterialPipe {
|
|
2103
|
-
constructor() {
|
|
2104
|
-
this.frameMaterial = [
|
|
2105
|
-
{ id: 0, name: 'All' },
|
|
2106
|
-
{ id: 1, name: 'Polymer' },
|
|
2107
|
-
{ id: 2, name: 'Aluminum' },
|
|
2108
|
-
{ id: 3, name: 'Steel' },
|
|
2109
|
-
];
|
|
2110
|
-
}
|
|
2111
|
-
transform(value, args) {
|
|
2112
|
-
return this.frameMaterial.find(fm => fm.id == value).name;
|
|
2113
|
-
}
|
|
2114
|
-
}
|
|
2115
|
-
FrameMaterialPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FrameMaterialPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2116
|
-
FrameMaterialPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FrameMaterialPipe, name: "frameMaterial" });
|
|
2117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FrameMaterialPipe, decorators: [{
|
|
2118
|
-
type: Pipe,
|
|
2119
|
-
args: [{
|
|
2120
|
-
name: 'frameMaterial'
|
|
2121
|
-
}]
|
|
2103
|
+
class FrameMaterialPipe {
|
|
2104
|
+
constructor() {
|
|
2105
|
+
this.frameMaterial = [
|
|
2106
|
+
{ id: 0, name: 'All' },
|
|
2107
|
+
{ id: 1, name: 'Polymer' },
|
|
2108
|
+
{ id: 2, name: 'Aluminum' },
|
|
2109
|
+
{ id: 3, name: 'Steel' },
|
|
2110
|
+
];
|
|
2111
|
+
}
|
|
2112
|
+
transform(value, args) {
|
|
2113
|
+
return this.frameMaterial.find(fm => fm.id == value).name;
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
FrameMaterialPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FrameMaterialPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2117
|
+
FrameMaterialPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FrameMaterialPipe, name: "frameMaterial" });
|
|
2118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FrameMaterialPipe, decorators: [{
|
|
2119
|
+
type: Pipe,
|
|
2120
|
+
args: [{
|
|
2121
|
+
name: 'frameMaterial'
|
|
2122
|
+
}]
|
|
2122
2123
|
}] });
|
|
2123
2124
|
|
|
2124
|
-
class DisableControlDirective {
|
|
2125
|
-
constructor(ngControl) {
|
|
2126
|
-
this.ngControl = ngControl;
|
|
2127
|
-
}
|
|
2128
|
-
set disableControl(condition) {
|
|
2129
|
-
const action = condition ? 'disable' : 'enable';
|
|
2130
|
-
this.ngControl.control[action]();
|
|
2131
|
-
}
|
|
2132
|
-
}
|
|
2133
|
-
DisableControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DisableControlDirective, deps: [{ token: i1$1.NgControl }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2134
|
-
DisableControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DisableControlDirective, selector: "[disableControl]", inputs: { disableControl: "disableControl" }, ngImport: i0 });
|
|
2135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DisableControlDirective, decorators: [{
|
|
2136
|
-
type: Directive,
|
|
2137
|
-
args: [{
|
|
2138
|
-
selector: '[disableControl]'
|
|
2139
|
-
}]
|
|
2140
|
-
}], ctorParameters: function () { return [{ type: i1$1.NgControl }]; }, propDecorators: { disableControl: [{
|
|
2141
|
-
type: Input
|
|
2125
|
+
class DisableControlDirective {
|
|
2126
|
+
constructor(ngControl) {
|
|
2127
|
+
this.ngControl = ngControl;
|
|
2128
|
+
}
|
|
2129
|
+
set disableControl(condition) {
|
|
2130
|
+
const action = condition ? 'disable' : 'enable';
|
|
2131
|
+
this.ngControl.control[action]();
|
|
2132
|
+
}
|
|
2133
|
+
}
|
|
2134
|
+
DisableControlDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DisableControlDirective, deps: [{ token: i1$1.NgControl }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2135
|
+
DisableControlDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: DisableControlDirective, selector: "[disableControl]", inputs: { disableControl: "disableControl" }, ngImport: i0 });
|
|
2136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DisableControlDirective, decorators: [{
|
|
2137
|
+
type: Directive,
|
|
2138
|
+
args: [{
|
|
2139
|
+
selector: '[disableControl]'
|
|
2140
|
+
}]
|
|
2141
|
+
}], ctorParameters: function () { return [{ type: i1$1.NgControl }]; }, propDecorators: { disableControl: [{
|
|
2142
|
+
type: Input
|
|
2142
2143
|
}] } });
|
|
2143
2144
|
|
|
2144
|
-
function coatingValueValidator() {
|
|
2145
|
-
return (control) => {
|
|
2146
|
-
if (!control.parent) {
|
|
2147
|
-
return null;
|
|
2148
|
-
}
|
|
2149
|
-
const coatingControl = control.parent.get('coating');
|
|
2150
|
-
if (!coatingControl) {
|
|
2151
|
-
return null;
|
|
2152
|
-
}
|
|
2153
|
-
const coating = coatingControl.value;
|
|
2154
|
-
return coating && coating.valueLabel && coating.coatingValues && coating.coatingValues.length &&
|
|
2155
|
-
!control.value ? { value: control.value } : null;
|
|
2156
|
-
};
|
|
2157
|
-
}
|
|
2158
|
-
function coatingDescriptionValidator() {
|
|
2159
|
-
return (control) => {
|
|
2160
|
-
if (!control.parent) {
|
|
2161
|
-
return null;
|
|
2162
|
-
}
|
|
2163
|
-
const coatingControl = control.parent.get('coating');
|
|
2164
|
-
if (!coatingControl) {
|
|
2165
|
-
return null;
|
|
2166
|
-
}
|
|
2167
|
-
const coating = coatingControl.value;
|
|
2168
|
-
return coating && coating.valueLabel && (!coating.coatingValues || !coating.coatingValues.length) &&
|
|
2169
|
-
!control.value ? { value: control.value } : null;
|
|
2170
|
-
};
|
|
2171
|
-
}
|
|
2172
|
-
function refinishDetailsValidator() {
|
|
2173
|
-
return (control) => {
|
|
2174
|
-
const formArray = control;
|
|
2175
|
-
let isValid = false;
|
|
2176
|
-
if (!formArray.controls.length) {
|
|
2177
|
-
isValid = true;
|
|
2178
|
-
}
|
|
2179
|
-
for (let i = 0; i < formArray.controls.length; i++) {
|
|
2180
|
-
const controlValue = formArray.controls[i].value;
|
|
2181
|
-
if (controlValue.coating && controlValue.coating.id) {
|
|
2182
|
-
isValid = true;
|
|
2183
|
-
}
|
|
2184
|
-
}
|
|
2185
|
-
return !isValid ? { 'allNone': { value: true } } : null;
|
|
2186
|
-
};
|
|
2187
|
-
}
|
|
2188
|
-
|
|
2189
|
-
class FormErrorMessageComponent {
|
|
2190
|
-
}
|
|
2191
|
-
FormErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2192
|
-
FormErrorMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormErrorMessageComponent, selector: "cgw-error-message", inputs: { control: "control", controlName: "controlName" }, ngImport: i0, template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\n <div *ngIf=\"control.errors.required\">\n {{controlName}} is required.\n </div>\n</div>\n", styles: [""], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, decorators: [{
|
|
2194
|
-
type: Component,
|
|
2195
|
-
args: [{ selector: 'cgw-error-message', template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\n <div *ngIf=\"control.errors.required\">\n {{controlName}} is required.\n </div>\n</div>\n", styles: [""] }]
|
|
2196
|
-
}], propDecorators: { control: [{
|
|
2197
|
-
type: Input
|
|
2198
|
-
}], controlName: [{
|
|
2199
|
-
type: Input
|
|
2145
|
+
function coatingValueValidator() {
|
|
2146
|
+
return (control) => {
|
|
2147
|
+
if (!control.parent) {
|
|
2148
|
+
return null;
|
|
2149
|
+
}
|
|
2150
|
+
const coatingControl = control.parent.get('coating');
|
|
2151
|
+
if (!coatingControl) {
|
|
2152
|
+
return null;
|
|
2153
|
+
}
|
|
2154
|
+
const coating = coatingControl.value;
|
|
2155
|
+
return coating && coating.valueLabel && coating.coatingValues && coating.coatingValues.length &&
|
|
2156
|
+
!control.value ? { value: control.value } : null;
|
|
2157
|
+
};
|
|
2158
|
+
}
|
|
2159
|
+
function coatingDescriptionValidator() {
|
|
2160
|
+
return (control) => {
|
|
2161
|
+
if (!control.parent) {
|
|
2162
|
+
return null;
|
|
2163
|
+
}
|
|
2164
|
+
const coatingControl = control.parent.get('coating');
|
|
2165
|
+
if (!coatingControl) {
|
|
2166
|
+
return null;
|
|
2167
|
+
}
|
|
2168
|
+
const coating = coatingControl.value;
|
|
2169
|
+
return coating && coating.valueLabel && (!coating.coatingValues || !coating.coatingValues.length) &&
|
|
2170
|
+
!control.value ? { value: control.value } : null;
|
|
2171
|
+
};
|
|
2172
|
+
}
|
|
2173
|
+
function refinishDetailsValidator() {
|
|
2174
|
+
return (control) => {
|
|
2175
|
+
const formArray = control;
|
|
2176
|
+
let isValid = false;
|
|
2177
|
+
if (!formArray.controls.length) {
|
|
2178
|
+
isValid = true;
|
|
2179
|
+
}
|
|
2180
|
+
for (let i = 0; i < formArray.controls.length; i++) {
|
|
2181
|
+
const controlValue = formArray.controls[i].value;
|
|
2182
|
+
if (controlValue.coating && controlValue.coating.id) {
|
|
2183
|
+
isValid = true;
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
return !isValid ? { 'allNone': { value: true } } : null;
|
|
2187
|
+
};
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
class FormErrorMessageComponent {
|
|
2191
|
+
}
|
|
2192
|
+
FormErrorMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2193
|
+
FormErrorMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormErrorMessageComponent, selector: "cgw-error-message", inputs: { control: "control", controlName: "controlName" }, ngImport: i0, template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\r\n <div *ngIf=\"control.errors.required\">\r\n {{controlName}} is required.\r\n </div>\r\n</div>\r\n", styles: [""], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormErrorMessageComponent, decorators: [{
|
|
2195
|
+
type: Component,
|
|
2196
|
+
args: [{ selector: 'cgw-error-message', template: "<div *ngIf=\"control.invalid && (control.dirty || control.touched)\" class=\"error-container text-danger\">\r\n <div *ngIf=\"control.errors.required\">\r\n {{controlName}} is required.\r\n </div>\r\n</div>\r\n", styles: [""] }]
|
|
2197
|
+
}], propDecorators: { control: [{
|
|
2198
|
+
type: Input
|
|
2199
|
+
}], controlName: [{
|
|
2200
|
+
type: Input
|
|
2200
2201
|
}] } });
|
|
2201
2202
|
|
|
2202
|
-
class ModalHeaderComponent {
|
|
2203
|
-
constructor() {
|
|
2204
|
-
this.close = new EventEmitter();
|
|
2205
|
-
}
|
|
2206
|
-
onCloseClick(e) {
|
|
2207
|
-
e.preventDefault();
|
|
2208
|
-
this.close.emit(e);
|
|
2209
|
-
}
|
|
2210
|
-
}
|
|
2211
|
-
ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2212
|
-
ModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ModalHeaderComponent, selector: "cgw-modal-header", inputs: { headerTitle: "headerTitle", form: "form" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"modal-header\">\n <div class=\"modal-title\">\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\n <span class=\"ms-2\">{{headerTitle}}</span>\n </div>\n <button class=\"btn btn-primary btn-sm float-end\"\n type=\"submit\"\n title=\"Save\"\n [class.btn-warning]=\"form.dirty\"\n [class.btn-primary]=\"!form.dirty\"\n [disabled]=\"form.invalid\">\n <i class=\"fa-fw far fa-save\"></i>\n </button>\n </div>\n", styles: [""] });
|
|
2213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, decorators: [{
|
|
2214
|
-
type: Component,
|
|
2215
|
-
args: [{ selector: 'cgw-modal-header', template: "<div class=\"modal-header\">\n <div class=\"modal-title\">\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\n <span class=\"ms-2\">{{headerTitle}}</span>\n </div>\n <button class=\"btn btn-primary btn-sm float-end\"\n type=\"submit\"\n title=\"Save\"\n [class.btn-warning]=\"form.dirty\"\n [class.btn-primary]=\"!form.dirty\"\n [disabled]=\"form.invalid\">\n <i class=\"fa-fw far fa-save\"></i>\n </button>\n </div>\n", styles: [""] }]
|
|
2216
|
-
}], propDecorators: { headerTitle: [{
|
|
2217
|
-
type: Input
|
|
2218
|
-
}], form: [{
|
|
2219
|
-
type: Input
|
|
2220
|
-
}], close: [{
|
|
2221
|
-
type: Output
|
|
2203
|
+
class ModalHeaderComponent {
|
|
2204
|
+
constructor() {
|
|
2205
|
+
this.close = new EventEmitter();
|
|
2206
|
+
}
|
|
2207
|
+
onCloseClick(e) {
|
|
2208
|
+
e.preventDefault();
|
|
2209
|
+
this.close.emit(e);
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2213
|
+
ModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ModalHeaderComponent, selector: "cgw-modal-header", inputs: { headerTitle: "headerTitle", form: "form" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"modal-header\">\r\n <div class=\"modal-title\">\r\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\r\n <span class=\"ms-2\">{{headerTitle}}</span>\r\n </div>\r\n <button class=\"btn btn-primary btn-sm float-end\"\r\n type=\"submit\"\r\n title=\"Save\"\r\n [class.btn-warning]=\"form.dirty\"\r\n [class.btn-primary]=\"!form.dirty\"\r\n [disabled]=\"form.invalid\">\r\n <i class=\"fa-fw far fa-save\"></i>\r\n </button>\r\n </div>\r\n", styles: [""] });
|
|
2214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ModalHeaderComponent, decorators: [{
|
|
2215
|
+
type: Component,
|
|
2216
|
+
args: [{ selector: 'cgw-modal-header', template: "<div class=\"modal-header\">\r\n <div class=\"modal-title\">\r\n <a href=\"#\" (click)=\"onCloseClick($event)\" title=\"Close\"><i class=\"fas fa-arrow-left text-white\"></i></a>\r\n <span class=\"ms-2\">{{headerTitle}}</span>\r\n </div>\r\n <button class=\"btn btn-primary btn-sm float-end\"\r\n type=\"submit\"\r\n title=\"Save\"\r\n [class.btn-warning]=\"form.dirty\"\r\n [class.btn-primary]=\"!form.dirty\"\r\n [disabled]=\"form.invalid\">\r\n <i class=\"fa-fw far fa-save\"></i>\r\n </button>\r\n </div>\r\n", styles: [""] }]
|
|
2217
|
+
}], propDecorators: { headerTitle: [{
|
|
2218
|
+
type: Input
|
|
2219
|
+
}], form: [{
|
|
2220
|
+
type: Input
|
|
2221
|
+
}], close: [{
|
|
2222
|
+
type: Output
|
|
2222
2223
|
}] } });
|
|
2223
2224
|
|
|
2224
|
-
class SharedModule {
|
|
2225
|
-
}
|
|
2226
|
-
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2227
|
-
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, declarations: [PhonePipe,
|
|
2228
|
-
FileNamePipe,
|
|
2229
|
-
EnumPipe,
|
|
2230
|
-
DisableControlDirective,
|
|
2231
|
-
NewLinePipe,
|
|
2232
|
-
FrameMaterialPipe,
|
|
2233
|
-
FormErrorMessageComponent,
|
|
2234
|
-
ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
|
|
2235
|
-
FileNamePipe,
|
|
2236
|
-
EnumPipe,
|
|
2237
|
-
NewLinePipe,
|
|
2238
|
-
DisableControlDirective,
|
|
2239
|
-
FrameMaterialPipe,
|
|
2240
|
-
FormErrorMessageComponent,
|
|
2241
|
-
ModalHeaderComponent] });
|
|
2242
|
-
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule]] });
|
|
2243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
2244
|
-
type: NgModule,
|
|
2245
|
-
args: [{
|
|
2246
|
-
declarations: [
|
|
2247
|
-
PhonePipe,
|
|
2248
|
-
FileNamePipe,
|
|
2249
|
-
EnumPipe,
|
|
2250
|
-
DisableControlDirective,
|
|
2251
|
-
NewLinePipe,
|
|
2252
|
-
FrameMaterialPipe,
|
|
2253
|
-
FormErrorMessageComponent,
|
|
2254
|
-
ModalHeaderComponent
|
|
2255
|
-
],
|
|
2256
|
-
imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
|
|
2257
|
-
exports: [
|
|
2258
|
-
PhonePipe,
|
|
2259
|
-
FileNamePipe,
|
|
2260
|
-
EnumPipe,
|
|
2261
|
-
NewLinePipe,
|
|
2262
|
-
DisableControlDirective,
|
|
2263
|
-
FrameMaterialPipe,
|
|
2264
|
-
FormErrorMessageComponent,
|
|
2265
|
-
ModalHeaderComponent
|
|
2266
|
-
],
|
|
2267
|
-
}]
|
|
2225
|
+
class SharedModule {
|
|
2226
|
+
}
|
|
2227
|
+
SharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2228
|
+
SharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, declarations: [PhonePipe,
|
|
2229
|
+
FileNamePipe,
|
|
2230
|
+
EnumPipe,
|
|
2231
|
+
DisableControlDirective,
|
|
2232
|
+
NewLinePipe,
|
|
2233
|
+
FrameMaterialPipe,
|
|
2234
|
+
FormErrorMessageComponent,
|
|
2235
|
+
ModalHeaderComponent], imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule], exports: [PhonePipe,
|
|
2236
|
+
FileNamePipe,
|
|
2237
|
+
EnumPipe,
|
|
2238
|
+
NewLinePipe,
|
|
2239
|
+
DisableControlDirective,
|
|
2240
|
+
FrameMaterialPipe,
|
|
2241
|
+
FormErrorMessageComponent,
|
|
2242
|
+
ModalHeaderComponent] });
|
|
2243
|
+
SharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, imports: [[CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule]] });
|
|
2244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SharedModule, decorators: [{
|
|
2245
|
+
type: NgModule,
|
|
2246
|
+
args: [{
|
|
2247
|
+
declarations: [
|
|
2248
|
+
PhonePipe,
|
|
2249
|
+
FileNamePipe,
|
|
2250
|
+
EnumPipe,
|
|
2251
|
+
DisableControlDirective,
|
|
2252
|
+
NewLinePipe,
|
|
2253
|
+
FrameMaterialPipe,
|
|
2254
|
+
FormErrorMessageComponent,
|
|
2255
|
+
ModalHeaderComponent
|
|
2256
|
+
],
|
|
2257
|
+
imports: [CommonModule, DropDownsModule, FormsModule, ReactiveFormsModule],
|
|
2258
|
+
exports: [
|
|
2259
|
+
PhonePipe,
|
|
2260
|
+
FileNamePipe,
|
|
2261
|
+
EnumPipe,
|
|
2262
|
+
NewLinePipe,
|
|
2263
|
+
DisableControlDirective,
|
|
2264
|
+
FrameMaterialPipe,
|
|
2265
|
+
FormErrorMessageComponent,
|
|
2266
|
+
ModalHeaderComponent
|
|
2267
|
+
],
|
|
2268
|
+
}]
|
|
2268
2269
|
}] });
|
|
2269
2270
|
|
|
2270
|
-
class NotificationService {
|
|
2271
|
-
constructor() {
|
|
2272
|
-
this.messageUpdatedSource = new Subject();
|
|
2273
|
-
this.messageUpdated = this.messageUpdatedSource.asObservable();
|
|
2274
|
-
}
|
|
2275
|
-
addMessage(type, message) {
|
|
2276
|
-
this.messageUpdatedSource.next({ index: 0, type: type, message: message });
|
|
2277
|
-
}
|
|
2278
|
-
}
|
|
2279
|
-
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2280
|
-
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, providedIn: 'root' });
|
|
2281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, decorators: [{
|
|
2282
|
-
type: Injectable,
|
|
2283
|
-
args: [{
|
|
2284
|
-
providedIn: 'root'
|
|
2285
|
-
}]
|
|
2271
|
+
class NotificationService {
|
|
2272
|
+
constructor() {
|
|
2273
|
+
this.messageUpdatedSource = new Subject();
|
|
2274
|
+
this.messageUpdated = this.messageUpdatedSource.asObservable();
|
|
2275
|
+
}
|
|
2276
|
+
addMessage(type, message) {
|
|
2277
|
+
this.messageUpdatedSource.next({ index: 0, type: type, message: message });
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
NotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2281
|
+
NotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, providedIn: 'root' });
|
|
2282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationService, decorators: [{
|
|
2283
|
+
type: Injectable,
|
|
2284
|
+
args: [{
|
|
2285
|
+
providedIn: 'root'
|
|
2286
|
+
}]
|
|
2286
2287
|
}], ctorParameters: function () { return []; } });
|
|
2287
2288
|
|
|
2288
|
-
const fadeOutAnimation = trigger('fadeOutAnimation', [
|
|
2289
|
-
transition('true => void', [
|
|
2290
|
-
style({
|
|
2291
|
-
opacity: 1
|
|
2292
|
-
}),
|
|
2293
|
-
animate('0.2s', style({ opacity: 0 })),
|
|
2294
|
-
])
|
|
2289
|
+
const fadeOutAnimation = trigger('fadeOutAnimation', [
|
|
2290
|
+
transition('true => void', [
|
|
2291
|
+
style({
|
|
2292
|
+
opacity: 1
|
|
2293
|
+
}),
|
|
2294
|
+
animate('0.2s', style({ opacity: 0 })),
|
|
2295
|
+
])
|
|
2295
2296
|
]);
|
|
2296
2297
|
|
|
2297
|
-
class NotificationBarComponent {
|
|
2298
|
-
constructor(notificationService) {
|
|
2299
|
-
this.notificationService = notificationService;
|
|
2300
|
-
this.messages = [];
|
|
2301
|
-
}
|
|
2302
|
-
get viewMessages() {
|
|
2303
|
-
if (this.messages.length > 3) {
|
|
2304
|
-
return this.messages.slice(0).reverse().slice(0, 2);
|
|
2305
|
-
}
|
|
2306
|
-
return this.messages.slice(0).reverse();
|
|
2307
|
-
}
|
|
2308
|
-
;
|
|
2309
|
-
ngOnInit() {
|
|
2310
|
-
this.notificationService.messageUpdated.subscribe(message => {
|
|
2311
|
-
this.messages.push(message);
|
|
2312
|
-
setTimeout(() => {
|
|
2313
|
-
this.messages.shift();
|
|
2314
|
-
}, 4000);
|
|
2315
|
-
});
|
|
2316
|
-
}
|
|
2317
|
-
getIconClass(message) {
|
|
2318
|
-
return {
|
|
2319
|
-
'fa-exclamation-triangle': message.type == 1,
|
|
2320
|
-
'fa-info-circle': message.type == 0,
|
|
2321
|
-
};
|
|
2322
|
-
}
|
|
2323
|
-
shouldFade() {
|
|
2324
|
-
return this.messages.length < 3;
|
|
2325
|
-
}
|
|
2326
|
-
}
|
|
2327
|
-
NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2328
|
-
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\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [fadeOutAnimation] });
|
|
2329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
|
|
2330
|
-
type: Component,
|
|
2331
|
-
args: [{ selector: 'app-notification-bar', animations: [fadeOutAnimation], template: "<div class=\"notification-bar\" *ngIf=\"messages.length\">\n <div *ngFor=\"let message of viewMessages\" class=\"notification-pill\" [class.error]=\"message.type == 1\" [@fadeOutAnimation]=\"shouldFade()\">\n <i class=\"fa\" [ngClass]=\"getIconClass(message)\"></i> <span class=\"ms-1\">{{message.message}}</span>\n </div>\n <div *ngIf=\"messages.length > 3\" class=\"notification-pill\">{{messages.length - 2}} more...</div>\n</div>\n", styles: [".notification-bar{position:fixed;top:0;left:0;right:0;z-index:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"] }]
|
|
2298
|
+
class NotificationBarComponent {
|
|
2299
|
+
constructor(notificationService) {
|
|
2300
|
+
this.notificationService = notificationService;
|
|
2301
|
+
this.messages = [];
|
|
2302
|
+
}
|
|
2303
|
+
get viewMessages() {
|
|
2304
|
+
if (this.messages.length > 3) {
|
|
2305
|
+
return this.messages.slice(0).reverse().slice(0, 2);
|
|
2306
|
+
}
|
|
2307
|
+
return this.messages.slice(0).reverse();
|
|
2308
|
+
}
|
|
2309
|
+
;
|
|
2310
|
+
ngOnInit() {
|
|
2311
|
+
this.notificationService.messageUpdated.subscribe(message => {
|
|
2312
|
+
this.messages.push(message);
|
|
2313
|
+
setTimeout(() => {
|
|
2314
|
+
this.messages.shift();
|
|
2315
|
+
}, 4000);
|
|
2316
|
+
});
|
|
2317
|
+
}
|
|
2318
|
+
getIconClass(message) {
|
|
2319
|
+
return {
|
|
2320
|
+
'fa-exclamation-triangle': message.type == 1,
|
|
2321
|
+
'fa-info-circle': message.type == 0,
|
|
2322
|
+
};
|
|
2323
|
+
}
|
|
2324
|
+
shouldFade() {
|
|
2325
|
+
return this.messages.length < 3;
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
NotificationBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, deps: [{ token: NotificationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2329
|
+
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:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], animations: [fadeOutAnimation] });
|
|
2330
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationBarComponent, decorators: [{
|
|
2331
|
+
type: Component,
|
|
2332
|
+
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:1000001;pointer-events:none}.notification-bar .notification-pill{max-width:300px;margin:10px auto;border-radius:4px;color:#000;background:#181818;padding:8px;text-align:center;color:#fff}.notification-bar .error{color:#711e16!important;background:#f8d8d4!important}\n"] }]
|
|
2332
2333
|
}], ctorParameters: function () { return [{ type: NotificationService }]; } });
|
|
2333
2334
|
|
|
2334
|
-
class NotificationModule {
|
|
2335
|
-
}
|
|
2336
|
-
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2337
|
-
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, declarations: [NotificationBarComponent], imports: [CommonModule], exports: [NotificationBarComponent] });
|
|
2338
|
-
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, imports: [[
|
|
2339
|
-
CommonModule
|
|
2340
|
-
]] });
|
|
2341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, decorators: [{
|
|
2342
|
-
type: NgModule,
|
|
2343
|
-
args: [{
|
|
2344
|
-
imports: [
|
|
2345
|
-
CommonModule
|
|
2346
|
-
],
|
|
2347
|
-
exports: [
|
|
2348
|
-
NotificationBarComponent
|
|
2349
|
-
],
|
|
2350
|
-
declarations: [
|
|
2351
|
-
NotificationBarComponent
|
|
2352
|
-
]
|
|
2353
|
-
}]
|
|
2335
|
+
class NotificationModule {
|
|
2336
|
+
}
|
|
2337
|
+
NotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2338
|
+
NotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, declarations: [NotificationBarComponent], imports: [CommonModule], exports: [NotificationBarComponent] });
|
|
2339
|
+
NotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, imports: [[
|
|
2340
|
+
CommonModule
|
|
2341
|
+
]] });
|
|
2342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: NotificationModule, decorators: [{
|
|
2343
|
+
type: NgModule,
|
|
2344
|
+
args: [{
|
|
2345
|
+
imports: [
|
|
2346
|
+
CommonModule
|
|
2347
|
+
],
|
|
2348
|
+
exports: [
|
|
2349
|
+
NotificationBarComponent
|
|
2350
|
+
],
|
|
2351
|
+
declarations: [
|
|
2352
|
+
NotificationBarComponent
|
|
2353
|
+
]
|
|
2354
|
+
}]
|
|
2354
2355
|
}] });
|
|
2355
2356
|
|
|
2356
|
-
var NotificationType;
|
|
2357
|
-
(function (NotificationType) {
|
|
2358
|
-
NotificationType[NotificationType["Info"] = 0] = "Info";
|
|
2359
|
-
NotificationType[NotificationType["Error"] = 1] = "Error";
|
|
2357
|
+
var NotificationType;
|
|
2358
|
+
(function (NotificationType) {
|
|
2359
|
+
NotificationType[NotificationType["Info"] = 0] = "Info";
|
|
2360
|
+
NotificationType[NotificationType["Error"] = 1] = "Error";
|
|
2360
2361
|
})(NotificationType || (NotificationType = {}));
|
|
2361
2362
|
|
|
2362
|
-
/*
|
|
2363
|
-
* Public API Surface of gunsmith-common
|
|
2363
|
+
/*
|
|
2364
|
+
* Public API Surface of gunsmith-common
|
|
2364
2365
|
*/
|
|
2365
2366
|
|
|
2366
|
-
/**
|
|
2367
|
-
* Generated bundle index. Do not edit.
|
|
2367
|
+
/**
|
|
2368
|
+
* Generated bundle index. Do not edit.
|
|
2368
2369
|
*/
|
|
2369
2370
|
|
|
2370
2371
|
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 };
|