gunsmith-common 2.2.4 → 2.2.6

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