gunsmith-common 2.3.19 → 2.3.21
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 -13
- 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 -2183
- package/fesm2015/gunsmith-common.mjs.map +1 -1
- package/fesm2020/gunsmith-common.mjs +2101 -2101
- package/fesm2020/gunsmith-common.mjs.map +1 -1
- package/gunsmith-common-2.3.21.tgz +0 -0
- 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 +22 -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 +18 -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 -28
- 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
|
@@ -11,2361 +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
|
-
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";
|
|
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";
|
|
214
214
|
})(WorkOrderStatus || (WorkOrderStatus = {}));
|
|
215
215
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
class WorkOrderHistory {
|
|
233
|
+
class WorkOrderHistory {
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
class RefinishDetail {
|
|
236
|
+
class RefinishDetail {
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
class Coating {
|
|
240
|
-
constructor() {
|
|
241
|
-
this.coatingValues = [];
|
|
242
|
-
this.materials = [];
|
|
243
|
-
this.active = true;
|
|
244
|
-
}
|
|
239
|
+
class Coating {
|
|
240
|
+
constructor() {
|
|
241
|
+
this.coatingValues = [];
|
|
242
|
+
this.materials = [];
|
|
243
|
+
this.active = true;
|
|
244
|
+
}
|
|
245
245
|
}
|
|
246
246
|
|
|
247
|
-
class CoatingValue {
|
|
248
|
-
constructor() {
|
|
249
|
-
this.active = true;
|
|
250
|
-
}
|
|
247
|
+
class CoatingValue {
|
|
248
|
+
constructor() {
|
|
249
|
+
this.active = true;
|
|
250
|
+
}
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
var WorkOrderAction;
|
|
254
|
-
(function (WorkOrderAction) {
|
|
255
|
-
WorkOrderAction[WorkOrderAction["SendOnBenchEmail"] = 1] = "SendOnBenchEmail";
|
|
256
|
-
WorkOrderAction[WorkOrderAction["SendWaitingOnCustomerEmail"] = 3] = "SendWaitingOnCustomerEmail";
|
|
257
|
-
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";
|
|
258
258
|
})(WorkOrderAction || (WorkOrderAction = {}));
|
|
259
259
|
|
|
260
|
-
class Optic {
|
|
261
|
-
constructor() {
|
|
262
|
-
this.isAvailable = false;
|
|
263
|
-
this.active = true;
|
|
264
|
-
}
|
|
260
|
+
class Optic {
|
|
261
|
+
constructor() {
|
|
262
|
+
this.isAvailable = false;
|
|
263
|
+
this.active = true;
|
|
264
|
+
}
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
-
var OpticStatus;
|
|
268
|
-
(function (OpticStatus) {
|
|
269
|
-
OpticStatus[OpticStatus["Included"] = 0] = "Included";
|
|
270
|
-
OpticStatus[OpticStatus["NotIncluded"] = 1] = "NotIncluded";
|
|
271
|
-
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";
|
|
272
272
|
})(OpticStatus || (OpticStatus = {}));
|
|
273
273
|
|
|
274
|
-
class Product {
|
|
274
|
+
class Product {
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
class BundleItem {
|
|
278
|
-
constructor() {
|
|
279
|
-
this.allowedVariations = [];
|
|
280
|
-
}
|
|
277
|
+
class BundleItem {
|
|
278
|
+
constructor() {
|
|
279
|
+
this.allowedVariations = [];
|
|
280
|
+
}
|
|
281
281
|
}
|
|
282
282
|
|
|
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";
|
|
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";
|
|
290
290
|
})(ChangeOrderStatus || (ChangeOrderStatus = {}));
|
|
291
291
|
|
|
292
|
-
class MountType {
|
|
293
|
-
constructor() {
|
|
294
|
-
this.active = true;
|
|
295
|
-
}
|
|
292
|
+
class MountType {
|
|
293
|
+
constructor() {
|
|
294
|
+
this.active = true;
|
|
295
|
+
}
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
var SightTypeEnum;
|
|
299
|
-
(function (SightTypeEnum) {
|
|
300
|
-
SightTypeEnum[SightTypeEnum["Black"] = 0] = "Black";
|
|
301
|
-
SightTypeEnum[SightTypeEnum["Tritium"] = 1] = "Tritium";
|
|
302
|
-
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";
|
|
303
303
|
})(SightTypeEnum || (SightTypeEnum = {}));
|
|
304
304
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
var RearSightPosition;
|
|
316
|
-
(function (RearSightPosition) {
|
|
317
|
-
RearSightPosition[RearSightPosition["InFront"] = 0] = "InFront";
|
|
318
|
-
RearSightPosition[RearSightPosition["Behind"] = 1] = "Behind";
|
|
315
|
+
var RearSightPosition;
|
|
316
|
+
(function (RearSightPosition) {
|
|
317
|
+
RearSightPosition[RearSightPosition["InFront"] = 0] = "InFront";
|
|
318
|
+
RearSightPosition[RearSightPosition["Behind"] = 1] = "Behind";
|
|
319
319
|
})(RearSightPosition || (RearSightPosition = {}));
|
|
320
320
|
|
|
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";
|
|
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";
|
|
327
327
|
})(FrameMaterial || (FrameMaterial = {}));
|
|
328
328
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
class MillingItem {
|
|
341
|
-
constructor() {
|
|
342
|
-
this.opticPulled = false;
|
|
343
|
-
}
|
|
340
|
+
class MillingItem {
|
|
341
|
+
constructor() {
|
|
342
|
+
this.opticPulled = false;
|
|
343
|
+
}
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
class WorkOrderRefinishItem {
|
|
346
|
+
class WorkOrderRefinishItem {
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
class PurchaseOrderRefinishItem {
|
|
349
|
+
class PurchaseOrderRefinishItem {
|
|
350
350
|
}
|
|
351
351
|
|
|
352
|
-
class Material {
|
|
353
|
-
constructor() {
|
|
354
|
-
this.active = true;
|
|
355
|
-
}
|
|
352
|
+
class Material {
|
|
353
|
+
constructor() {
|
|
354
|
+
this.active = true;
|
|
355
|
+
}
|
|
356
356
|
}
|
|
357
357
|
|
|
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";
|
|
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";
|
|
364
364
|
})(PurchaseOrderStatus || (PurchaseOrderStatus = {}));
|
|
365
365
|
|
|
366
|
-
class PurchaseOrder {
|
|
367
|
-
constructor() {
|
|
368
|
-
this.date = new Date();
|
|
369
|
-
this.status = PurchaseOrderStatus.Open;
|
|
370
|
-
this.refinishItems = [];
|
|
371
|
-
}
|
|
366
|
+
class PurchaseOrder {
|
|
367
|
+
constructor() {
|
|
368
|
+
this.date = new Date();
|
|
369
|
+
this.status = PurchaseOrderStatus.Open;
|
|
370
|
+
this.refinishItems = [];
|
|
371
|
+
}
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
-
class ReportMillingItem {
|
|
374
|
+
class ReportMillingItem {
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
class ReportRefinishItem {
|
|
377
|
+
class ReportRefinishItem {
|
|
378
378
|
}
|
|
379
379
|
|
|
380
|
-
class Total {
|
|
380
|
+
class Total {
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
class TotalItem {
|
|
383
|
+
class TotalItem {
|
|
384
384
|
}
|
|
385
385
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
class JFile {
|
|
398
|
+
class JFile {
|
|
399
399
|
}
|
|
400
400
|
|
|
401
|
-
class GunPartOption {
|
|
401
|
+
class GunPartOption {
|
|
402
402
|
}
|
|
403
403
|
|
|
404
|
-
var ShieldRMSOptions;
|
|
405
|
-
(function (ShieldRMSOptions) {
|
|
406
|
-
ShieldRMSOptions[ShieldRMSOptions["KeepBUIS"] = 0] = "KeepBUIS";
|
|
407
|
-
ShieldRMSOptions[ShieldRMSOptions["RemoveBUIS"] = 1] = "RemoveBUIS";
|
|
404
|
+
var ShieldRMSOptions;
|
|
405
|
+
(function (ShieldRMSOptions) {
|
|
406
|
+
ShieldRMSOptions[ShieldRMSOptions["KeepBUIS"] = 0] = "KeepBUIS";
|
|
407
|
+
ShieldRMSOptions[ShieldRMSOptions["RemoveBUIS"] = 1] = "RemoveBUIS";
|
|
408
408
|
})(ShieldRMSOptions || (ShieldRMSOptions = {}));
|
|
409
409
|
|
|
410
|
-
class PackageItem {
|
|
410
|
+
class PackageItem {
|
|
411
411
|
}
|
|
412
412
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
class PackageOptionalItem {
|
|
427
|
-
constructor() {
|
|
428
|
-
this.subItems = [];
|
|
429
|
-
this.active = true;
|
|
430
|
-
}
|
|
426
|
+
class PackageOptionalItem {
|
|
427
|
+
constructor() {
|
|
428
|
+
this.subItems = [];
|
|
429
|
+
this.active = true;
|
|
430
|
+
}
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
-
class PackageVariation {
|
|
434
|
-
constructor() {
|
|
435
|
-
this.options = [];
|
|
436
|
-
this.gunsmithOnly = false;
|
|
437
|
-
this.isActive = true;
|
|
438
|
-
}
|
|
433
|
+
class PackageVariation {
|
|
434
|
+
constructor() {
|
|
435
|
+
this.options = [];
|
|
436
|
+
this.gunsmithOnly = false;
|
|
437
|
+
this.isActive = true;
|
|
438
|
+
}
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
class PackageVariationOption {
|
|
442
|
-
constructor() {
|
|
443
|
-
this.isActive = true;
|
|
444
|
-
}
|
|
441
|
+
class PackageVariationOption {
|
|
442
|
+
constructor() {
|
|
443
|
+
this.isActive = true;
|
|
444
|
+
}
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
class WaitlistGunPackageDetail {
|
|
448
|
-
constructor() {
|
|
449
|
-
this.optionalItems = [];
|
|
450
|
-
this.variations = [];
|
|
451
|
-
}
|
|
447
|
+
class WaitlistGunPackageDetail {
|
|
448
|
+
constructor() {
|
|
449
|
+
this.optionalItems = [];
|
|
450
|
+
this.variations = [];
|
|
451
|
+
}
|
|
452
452
|
}
|
|
453
453
|
|
|
454
|
-
class WorkOrderPackageDetail {
|
|
455
|
-
constructor() {
|
|
456
|
-
this.optionalItems = [];
|
|
457
|
-
this.variations = [];
|
|
458
|
-
}
|
|
454
|
+
class WorkOrderPackageDetail {
|
|
455
|
+
constructor() {
|
|
456
|
+
this.optionalItems = [];
|
|
457
|
+
this.variations = [];
|
|
458
|
+
}
|
|
459
459
|
}
|
|
460
460
|
|
|
461
|
-
class PackageTotal {
|
|
461
|
+
class PackageTotal {
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
class WorkOrderInventoryItem {
|
|
464
|
+
class WorkOrderInventoryItem {
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
class RefinishCode {
|
|
467
|
+
class RefinishCode {
|
|
468
468
|
}
|
|
469
469
|
|
|
470
|
-
class WorkOrderListItem {
|
|
470
|
+
class WorkOrderListItem {
|
|
471
471
|
}
|
|
472
472
|
|
|
473
|
-
class WorkOrderShippingItem {
|
|
473
|
+
class WorkOrderShippingItem {
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
class WorkOrderDiscount {
|
|
477
|
-
constructor() { }
|
|
476
|
+
class WorkOrderDiscount {
|
|
477
|
+
constructor() { }
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
class WorkOrderNonInventoryItem {
|
|
480
|
+
class WorkOrderNonInventoryItem {
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
class ChangeOrderPackageDetail {
|
|
484
|
-
constructor() {
|
|
485
|
-
this.optionalItems = [];
|
|
486
|
-
this.variations = [];
|
|
487
|
-
}
|
|
483
|
+
class ChangeOrderPackageDetail {
|
|
484
|
+
constructor() {
|
|
485
|
+
this.optionalItems = [];
|
|
486
|
+
this.variations = [];
|
|
487
|
+
}
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
class Sight {
|
|
491
|
-
constructor() {
|
|
492
|
-
this.active = true;
|
|
493
|
-
}
|
|
490
|
+
class Sight {
|
|
491
|
+
constructor() {
|
|
492
|
+
this.active = true;
|
|
493
|
+
}
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
-
class SightType {
|
|
497
|
-
constructor() {
|
|
498
|
-
this.active = true;
|
|
499
|
-
}
|
|
496
|
+
class SightType {
|
|
497
|
+
constructor() {
|
|
498
|
+
this.active = true;
|
|
499
|
+
}
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
class SightMaterialType {
|
|
503
|
-
constructor() {
|
|
504
|
-
this.active = true;
|
|
505
|
-
}
|
|
502
|
+
class SightMaterialType {
|
|
503
|
+
constructor() {
|
|
504
|
+
this.active = true;
|
|
505
|
+
}
|
|
506
506
|
}
|
|
507
507
|
|
|
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
|
-
}
|
|
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
|
+
}
|
|
517
517
|
}
|
|
518
518
|
|
|
519
|
-
class OpticSight extends Sight {
|
|
519
|
+
class OpticSight extends Sight {
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
class SlideAddon {
|
|
523
|
-
constructor() {
|
|
524
|
-
this.subItems = [];
|
|
525
|
-
this.active = true;
|
|
526
|
-
}
|
|
522
|
+
class SlideAddon {
|
|
523
|
+
constructor() {
|
|
524
|
+
this.subItems = [];
|
|
525
|
+
this.active = true;
|
|
526
|
+
}
|
|
527
527
|
}
|
|
528
528
|
|
|
529
|
-
class MillingTypeAddonOption extends MillingType {
|
|
529
|
+
class MillingTypeAddonOption extends MillingType {
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
class MillingTypeAddon {
|
|
533
|
-
constructor() {
|
|
534
|
-
this.addonOptions = [];
|
|
535
|
-
this.active = true;
|
|
536
|
-
}
|
|
532
|
+
class MillingTypeAddon {
|
|
533
|
+
constructor() {
|
|
534
|
+
this.addonOptions = [];
|
|
535
|
+
this.active = true;
|
|
536
|
+
}
|
|
537
537
|
}
|
|
538
538
|
|
|
539
|
-
class Address {
|
|
539
|
+
class Address {
|
|
540
540
|
}
|
|
541
541
|
|
|
542
|
-
class BillingInfo {
|
|
542
|
+
class BillingInfo {
|
|
543
543
|
}
|
|
544
544
|
|
|
545
|
-
class WorkOrderTotal {
|
|
545
|
+
class WorkOrderTotal {
|
|
546
546
|
}
|
|
547
547
|
|
|
548
|
-
class WorkOrderBillingTransaction {
|
|
548
|
+
class WorkOrderBillingTransaction {
|
|
549
549
|
}
|
|
550
550
|
|
|
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']
|
|
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']
|
|
592
592
|
}] }]; } });
|
|
593
593
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
638
638
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }]; } });
|
|
639
639
|
|
|
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"]
|
|
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"]
|
|
664
664
|
}] }]; } });
|
|
665
665
|
|
|
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"]
|
|
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"]
|
|
705
705
|
}] }]; } });
|
|
706
706
|
|
|
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']
|
|
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']
|
|
727
727
|
}] }]; } });
|
|
728
728
|
|
|
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']
|
|
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']
|
|
765
765
|
}] }]; } });
|
|
766
766
|
|
|
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']
|
|
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']
|
|
811
811
|
}] }]; } });
|
|
812
812
|
|
|
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']
|
|
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']
|
|
839
839
|
}] }]; } });
|
|
840
840
|
|
|
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']
|
|
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']
|
|
1049
1049
|
}] }]; } });
|
|
1050
1050
|
|
|
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"]
|
|
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"]
|
|
1075
1075
|
}] }]; } });
|
|
1076
1076
|
|
|
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']
|
|
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']
|
|
1103
1103
|
}] }]; } });
|
|
1104
1104
|
|
|
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"]
|
|
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"]
|
|
1199
1199
|
}] }]; } });
|
|
1200
1200
|
|
|
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']
|
|
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']
|
|
1227
1227
|
}] }]; } });
|
|
1228
1228
|
|
|
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']
|
|
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']
|
|
1264
1264
|
}] }]; } });
|
|
1265
1265
|
|
|
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']
|
|
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']
|
|
1287
1287
|
}] }]; } });
|
|
1288
1288
|
|
|
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']
|
|
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']
|
|
1312
1312
|
}] }]; } });
|
|
1313
1313
|
|
|
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"]
|
|
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"]
|
|
1332
1332
|
}] }]; } });
|
|
1333
1333
|
|
|
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"]
|
|
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"]
|
|
1352
1352
|
}] }]; } });
|
|
1353
1353
|
|
|
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']
|
|
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']
|
|
1378
1378
|
}] }]; } });
|
|
1379
1379
|
|
|
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']
|
|
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']
|
|
1461
1461
|
}] }]; } });
|
|
1462
1462
|
|
|
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']
|
|
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']
|
|
1483
1483
|
}] }]; } });
|
|
1484
1484
|
|
|
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']
|
|
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']
|
|
1517
1517
|
}] }]; } });
|
|
1518
1518
|
|
|
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"]
|
|
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"]
|
|
1537
1537
|
}] }]; } });
|
|
1538
1538
|
|
|
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']
|
|
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']
|
|
1572
1572
|
}] }]; } });
|
|
1573
1573
|
|
|
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']
|
|
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']
|
|
1617
1617
|
}] }]; } });
|
|
1618
1618
|
|
|
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']
|
|
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']
|
|
1648
1648
|
}] }]; } });
|
|
1649
1649
|
|
|
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']
|
|
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']
|
|
1668
1668
|
}] }]; } });
|
|
1669
1669
|
|
|
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']
|
|
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']
|
|
1688
1688
|
}] }]; } });
|
|
1689
1689
|
|
|
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']
|
|
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']
|
|
1713
1713
|
}] }]; } });
|
|
1714
1714
|
|
|
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']
|
|
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']
|
|
1733
1733
|
}] }]; } });
|
|
1734
1734
|
|
|
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"]
|
|
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"]
|
|
1753
1753
|
}] }]; } });
|
|
1754
1754
|
|
|
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"]
|
|
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"]
|
|
1776
1776
|
}] }]; } });
|
|
1777
1777
|
|
|
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"]
|
|
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"]
|
|
1796
1796
|
}] }]; } });
|
|
1797
1797
|
|
|
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"]
|
|
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"]
|
|
1816
1816
|
}] }]; } });
|
|
1817
1817
|
|
|
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"]
|
|
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"]
|
|
1842
1842
|
}] }]; } });
|
|
1843
1843
|
|
|
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"]
|
|
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"]
|
|
1862
1862
|
}] }]; } });
|
|
1863
1863
|
|
|
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"]
|
|
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"]
|
|
1882
1882
|
}] }]; } });
|
|
1883
1883
|
|
|
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"]
|
|
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"]
|
|
1902
1902
|
}] }]; } });
|
|
1903
1903
|
|
|
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"]
|
|
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"]
|
|
1922
1922
|
}] }]; } });
|
|
1923
1923
|
|
|
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"]
|
|
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"]
|
|
1942
1942
|
}] }]; } });
|
|
1943
1943
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2002
2002
|
}], ctorParameters: function () { return [{ type: ConfigurationService }, { type: WorkHolidayService }]; } });
|
|
2003
2003
|
|
|
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"]
|
|
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"]
|
|
2022
2022
|
}] }]; } });
|
|
2023
2023
|
|
|
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"]
|
|
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"]
|
|
2042
2042
|
}] }]; } });
|
|
2043
2043
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2059
2059
|
}] });
|
|
2060
2060
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2073
2073
|
}] });
|
|
2074
2074
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2087
2087
|
}] });
|
|
2088
2088
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2101
2101
|
}] });
|
|
2102
2102
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2123
2123
|
}] });
|
|
2124
2124
|
|
|
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
|
|
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
|
|
2143
2143
|
}] } });
|
|
2144
2144
|
|
|
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\">\
|
|
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\">\
|
|
2197
|
-
}], propDecorators: { control: [{
|
|
2198
|
-
type: Input
|
|
2199
|
-
}], controlName: [{
|
|
2200
|
-
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\">\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"] }] });
|
|
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\">\n <div *ngIf=\"control.errors.required\">\n {{controlName}} is required.\n </div>\n</div>\n", styles: [""] }]
|
|
2197
|
+
}], propDecorators: { control: [{
|
|
2198
|
+
type: Input
|
|
2199
|
+
}], controlName: [{
|
|
2200
|
+
type: Input
|
|
2201
2201
|
}] } });
|
|
2202
2202
|
|
|
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\">\
|
|
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\">\
|
|
2217
|
-
}], propDecorators: { headerTitle: [{
|
|
2218
|
-
type: Input
|
|
2219
|
-
}], form: [{
|
|
2220
|
-
type: Input
|
|
2221
|
-
}], close: [{
|
|
2222
|
-
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\">\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: [""] });
|
|
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\">\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: [""] }]
|
|
2217
|
+
}], propDecorators: { headerTitle: [{
|
|
2218
|
+
type: Input
|
|
2219
|
+
}], form: [{
|
|
2220
|
+
type: Input
|
|
2221
|
+
}], close: [{
|
|
2222
|
+
type: Output
|
|
2223
2223
|
}] } });
|
|
2224
2224
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2269
2269
|
}] });
|
|
2270
2270
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2287
2287
|
}], ctorParameters: function () { return []; } });
|
|
2288
2288
|
|
|
2289
|
-
const fadeOutAnimation = trigger('fadeOutAnimation', [
|
|
2290
|
-
transition('true => void', [
|
|
2291
|
-
style({
|
|
2292
|
-
opacity: 1
|
|
2293
|
-
}),
|
|
2294
|
-
animate('0.2s', style({ opacity: 0 })),
|
|
2295
|
-
])
|
|
2289
|
+
const fadeOutAnimation = trigger('fadeOutAnimation', [
|
|
2290
|
+
transition('true => void', [
|
|
2291
|
+
style({
|
|
2292
|
+
opacity: 1
|
|
2293
|
+
}),
|
|
2294
|
+
animate('0.2s', style({ opacity: 0 })),
|
|
2295
|
+
])
|
|
2296
2296
|
]);
|
|
2297
2297
|
|
|
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\">\
|
|
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\">\
|
|
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\">\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] });
|
|
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\">\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"] }]
|
|
2333
2333
|
}], ctorParameters: function () { return [{ type: NotificationService }]; } });
|
|
2334
2334
|
|
|
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
|
-
}]
|
|
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
|
+
}]
|
|
2355
2355
|
}] });
|
|
2356
2356
|
|
|
2357
|
-
var NotificationType;
|
|
2358
|
-
(function (NotificationType) {
|
|
2359
|
-
NotificationType[NotificationType["Info"] = 0] = "Info";
|
|
2360
|
-
NotificationType[NotificationType["Error"] = 1] = "Error";
|
|
2357
|
+
var NotificationType;
|
|
2358
|
+
(function (NotificationType) {
|
|
2359
|
+
NotificationType[NotificationType["Info"] = 0] = "Info";
|
|
2360
|
+
NotificationType[NotificationType["Error"] = 1] = "Error";
|
|
2361
2361
|
})(NotificationType || (NotificationType = {}));
|
|
2362
2362
|
|
|
2363
|
-
/*
|
|
2364
|
-
* Public API Surface of gunsmith-common
|
|
2363
|
+
/*
|
|
2364
|
+
* Public API Surface of gunsmith-common
|
|
2365
2365
|
*/
|
|
2366
2366
|
|
|
2367
|
-
/**
|
|
2368
|
-
* Generated bundle index. Do not edit.
|
|
2367
|
+
/**
|
|
2368
|
+
* Generated bundle index. Do not edit.
|
|
2369
2369
|
*/
|
|
2370
2370
|
|
|
2371
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 };
|