gunsmith-common 2.1.11

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 (213) hide show
  1. package/bundles/gunsmith-common.umd.js +2093 -0
  2. package/bundles/gunsmith-common.umd.js.map +1 -0
  3. package/esm2015/gunsmith-common.js +5 -0
  4. package/esm2015/notification/fade-out.animation.js +10 -0
  5. package/esm2015/notification/index.js +4 -0
  6. package/esm2015/notification/notification-bar/notification-bar.component.js +48 -0
  7. package/esm2015/notification/notification-message.js +3 -0
  8. package/esm2015/notification/notification-type.enum.js +6 -0
  9. package/esm2015/notification/notification.module.js +26 -0
  10. package/esm2015/notification/notification.service.js +21 -0
  11. package/esm2015/public_api.js +12 -0
  12. package/esm2015/shared/directives/disable-control.directive.js +24 -0
  13. package/esm2015/shared/directives/index.js +3 -0
  14. package/esm2015/shared/directives/refinish-details-validators.js +45 -0
  15. package/esm2015/shared/pipes/enum.pipe.js +16 -0
  16. package/esm2015/shared/pipes/file-name.pipe.js +16 -0
  17. package/esm2015/shared/pipes/frame-material.pipe.js +24 -0
  18. package/esm2015/shared/pipes/index.js +6 -0
  19. package/esm2015/shared/pipes/new-line.pipe.js +16 -0
  20. package/esm2015/shared/pipes/phone.pipe.js +19 -0
  21. package/esm2015/shared/services/coating.service.js +63 -0
  22. package/esm2015/shared/services/configuration.service.js +29 -0
  23. package/esm2015/shared/services/cosmetic-milling.service.js +42 -0
  24. package/esm2015/shared/services/customer.service.js +47 -0
  25. package/esm2015/shared/services/dealer.service.js +45 -0
  26. package/esm2015/shared/services/file-upload.service.js +39 -0
  27. package/esm2015/shared/services/firearm-series.service.js +45 -0
  28. package/esm2015/shared/services/firearm.service.js +48 -0
  29. package/esm2015/shared/services/gun-part.service.js +52 -0
  30. package/esm2015/shared/services/index.js +25 -0
  31. package/esm2015/shared/services/inventory.service.js +32 -0
  32. package/esm2015/shared/services/material.service.js +30 -0
  33. package/esm2015/shared/services/milling-type.service.js +44 -0
  34. package/esm2015/shared/services/optic.service.js +42 -0
  35. package/esm2015/shared/services/product.service.js +29 -0
  36. package/esm2015/shared/services/purchase-order.service.js +87 -0
  37. package/esm2015/shared/services/state.service.js +26 -0
  38. package/esm2015/shared/services/totals.service.js +50 -0
  39. package/esm2015/shared/services/user.service.js +26 -0
  40. package/esm2015/shared/services/vendor.service.js +42 -0
  41. package/esm2015/shared/services/waitlist-customer.service.js +38 -0
  42. package/esm2015/shared/services/waitlist-project.service.js +38 -0
  43. package/esm2015/shared/services/waitlist.service.js +83 -0
  44. package/esm2015/shared/services/work-holiday.service.js +32 -0
  45. package/esm2015/shared/services/work-order.service.js +150 -0
  46. package/esm2015/shared/shared.module.js +46 -0
  47. package/esm2015/shared/types/bundle-item.js +6 -0
  48. package/esm2015/shared/types/change-order-status.js +9 -0
  49. package/esm2015/shared/types/coating-value.js +6 -0
  50. package/esm2015/shared/types/coating.js +8 -0
  51. package/esm2015/shared/types/configuration.js +3 -0
  52. package/esm2015/shared/types/cosmetic-milling.js +6 -0
  53. package/esm2015/shared/types/customer.js +6 -0
  54. package/esm2015/shared/types/dealer-contact.js +3 -0
  55. package/esm2015/shared/types/dealer-coupon.js +3 -0
  56. package/esm2015/shared/types/dealer.js +7 -0
  57. package/esm2015/shared/types/filter-options.js +9 -0
  58. package/esm2015/shared/types/firearm-series-optic.js +9 -0
  59. package/esm2015/shared/types/firearm-series.js +8 -0
  60. package/esm2015/shared/types/firearm.js +6 -0
  61. package/esm2015/shared/types/frame-material.js +8 -0
  62. package/esm2015/shared/types/gun-caliber.js +7 -0
  63. package/esm2015/shared/types/gun-part.js +10 -0
  64. package/esm2015/shared/types/index.js +56 -0
  65. package/esm2015/shared/types/inventory-item.js +6 -0
  66. package/esm2015/shared/types/j-file.js +3 -0
  67. package/esm2015/shared/types/material.js +6 -0
  68. package/esm2015/shared/types/milling-detail.js +7 -0
  69. package/esm2015/shared/types/milling-item.js +3 -0
  70. package/esm2015/shared/types/milling-type.js +6 -0
  71. package/esm2015/shared/types/mount-type.js +6 -0
  72. package/esm2015/shared/types/optic-status.js +7 -0
  73. package/esm2015/shared/types/optic.js +6 -0
  74. package/esm2015/shared/types/product.js +3 -0
  75. package/esm2015/shared/types/project-type.js +7 -0
  76. package/esm2015/shared/types/purchase-order-refinish-item.js +3 -0
  77. package/esm2015/shared/types/purchase-order-status.js +8 -0
  78. package/esm2015/shared/types/purchase-order.js +9 -0
  79. package/esm2015/shared/types/rear-sight-position.js +6 -0
  80. package/esm2015/shared/types/refinish-detail.js +3 -0
  81. package/esm2015/shared/types/report-milling-item.js +3 -0
  82. package/esm2015/shared/types/report-refinish-item.js +3 -0
  83. package/esm2015/shared/types/sight-type.js +6 -0
  84. package/esm2015/shared/types/state.js +3 -0
  85. package/esm2015/shared/types/total-item.js +3 -0
  86. package/esm2015/shared/types/total.js +3 -0
  87. package/esm2015/shared/types/vendor-contact.js +3 -0
  88. package/esm2015/shared/types/vendor.js +7 -0
  89. package/esm2015/shared/types/waitlist-action.js +9 -0
  90. package/esm2015/shared/types/waitlist-gun.js +12 -0
  91. package/esm2015/shared/types/waitlist-history.js +3 -0
  92. package/esm2015/shared/types/waitlist-item.js +12 -0
  93. package/esm2015/shared/types/waitlist-status.js +15 -0
  94. package/esm2015/shared/types/work-change-order.js +3 -0
  95. package/esm2015/shared/types/work-holiday.js +3 -0
  96. package/esm2015/shared/types/work-order-action.js +7 -0
  97. package/esm2015/shared/types/work-order-history.js +3 -0
  98. package/esm2015/shared/types/work-order-refinish-item.js +3 -0
  99. package/esm2015/shared/types/work-order-status.js +14 -0
  100. package/esm2015/shared/types/work-order-type.js +8 -0
  101. package/esm2015/shared/types/work-order.js +18 -0
  102. package/esm2015/shared/utils/coating-helpers.js +22 -0
  103. package/esm2015/shared/utils/enum-object.js +10 -0
  104. package/esm2015/shared/utils/finish-date-calculator.js +30 -0
  105. package/esm2015/shared/utils/index.js +5 -0
  106. package/esm2015/shared/utils/invalid-form-control-toucher.js +7 -0
  107. package/fesm2015/gunsmith-common.js +1767 -0
  108. package/fesm2015/gunsmith-common.js.map +1 -0
  109. package/gunsmith-common.d.ts +5 -0
  110. package/notification/fade-out.animation.d.ts +2 -0
  111. package/notification/index.d.ts +3 -0
  112. package/notification/notification-bar/notification-bar.component.d.ts +18 -0
  113. package/notification/notification-message.d.ts +6 -0
  114. package/notification/notification-type.enum.d.ts +4 -0
  115. package/notification/notification.module.d.ts +8 -0
  116. package/notification/notification.service.d.ts +12 -0
  117. package/package.json +24 -0
  118. package/public_api.d.ts +8 -0
  119. package/shared/directives/disable-control.directive.d.ts +9 -0
  120. package/shared/directives/index.d.ts +2 -0
  121. package/shared/directives/refinish-details-validators.d.ts +4 -0
  122. package/shared/pipes/enum.pipe.d.ts +7 -0
  123. package/shared/pipes/file-name.pipe.d.ts +7 -0
  124. package/shared/pipes/frame-material.pipe.d.ts +11 -0
  125. package/shared/pipes/index.d.ts +5 -0
  126. package/shared/pipes/new-line.pipe.d.ts +7 -0
  127. package/shared/pipes/phone.pipe.d.ts +7 -0
  128. package/shared/services/coating.service.d.ts +22 -0
  129. package/shared/services/configuration.service.d.ts +14 -0
  130. package/shared/services/cosmetic-milling.service.d.ts +17 -0
  131. package/shared/services/customer.service.d.ts +17 -0
  132. package/shared/services/dealer.service.d.ts +19 -0
  133. package/shared/services/file-upload.service.d.ts +14 -0
  134. package/shared/services/firearm-series.service.d.ts +18 -0
  135. package/shared/services/firearm.service.d.ts +20 -0
  136. package/shared/services/gun-part.service.d.ts +18 -0
  137. package/shared/services/index.d.ts +24 -0
  138. package/shared/services/inventory.service.d.ts +13 -0
  139. package/shared/services/material.service.d.ts +13 -0
  140. package/shared/services/milling-type.service.d.ts +17 -0
  141. package/shared/services/optic.service.d.ts +17 -0
  142. package/shared/services/product.service.d.ts +15 -0
  143. package/shared/services/purchase-order.service.d.ts +27 -0
  144. package/shared/services/state.service.d.ts +13 -0
  145. package/shared/services/totals.service.d.ts +15 -0
  146. package/shared/services/user.service.d.ts +12 -0
  147. package/shared/services/vendor.service.d.ts +17 -0
  148. package/shared/services/waitlist-customer.service.d.ts +15 -0
  149. package/shared/services/waitlist-project.service.d.ts +17 -0
  150. package/shared/services/waitlist.service.d.ts +24 -0
  151. package/shared/services/work-holiday.service.d.ts +15 -0
  152. package/shared/services/work-order.service.d.ts +41 -0
  153. package/shared/shared.module.d.ts +12 -0
  154. package/shared/types/bundle-item.d.ts +11 -0
  155. package/shared/types/change-order-status.d.ts +7 -0
  156. package/shared/types/coating-value.d.ts +6 -0
  157. package/shared/types/coating.d.ts +11 -0
  158. package/shared/types/configuration.d.ts +11 -0
  159. package/shared/types/cosmetic-milling.d.ts +6 -0
  160. package/shared/types/customer.d.ts +14 -0
  161. package/shared/types/dealer-contact.d.ts +9 -0
  162. package/shared/types/dealer-coupon.d.ts +5 -0
  163. package/shared/types/dealer.d.ts +24 -0
  164. package/shared/types/filter-options.d.ts +6 -0
  165. package/shared/types/firearm-series-optic.d.ts +12 -0
  166. package/shared/types/firearm-series.d.ts +9 -0
  167. package/shared/types/firearm.d.ts +10 -0
  168. package/shared/types/frame-material.d.ts +6 -0
  169. package/shared/types/gun-caliber.d.ts +5 -0
  170. package/shared/types/gun-part.d.ts +11 -0
  171. package/shared/types/index.d.ts +55 -0
  172. package/shared/types/inventory-item.d.ts +8 -0
  173. package/shared/types/j-file.d.ts +5 -0
  174. package/shared/types/material.d.ts +6 -0
  175. package/shared/types/milling-detail.d.ts +17 -0
  176. package/shared/types/milling-item.d.ts +8 -0
  177. package/shared/types/milling-type.d.ts +8 -0
  178. package/shared/types/mount-type.d.ts +4 -0
  179. package/shared/types/optic-status.d.ts +5 -0
  180. package/shared/types/optic.d.ts +6 -0
  181. package/shared/types/product.d.ts +7 -0
  182. package/shared/types/project-type.d.ts +5 -0
  183. package/shared/types/purchase-order-refinish-item.d.ts +16 -0
  184. package/shared/types/purchase-order-status.d.ts +6 -0
  185. package/shared/types/purchase-order.d.ts +11 -0
  186. package/shared/types/rear-sight-position.d.ts +4 -0
  187. package/shared/types/refinish-detail.d.ts +11 -0
  188. package/shared/types/report-milling-item.d.ts +16 -0
  189. package/shared/types/report-refinish-item.d.ts +16 -0
  190. package/shared/types/sight-type.d.ts +4 -0
  191. package/shared/types/state.d.ts +4 -0
  192. package/shared/types/total-item.d.ts +4 -0
  193. package/shared/types/total.d.ts +5 -0
  194. package/shared/types/vendor-contact.d.ts +9 -0
  195. package/shared/types/vendor.d.ts +20 -0
  196. package/shared/types/waitlist-action.d.ts +7 -0
  197. package/shared/types/waitlist-gun.d.ts +22 -0
  198. package/shared/types/waitlist-history.d.ts +8 -0
  199. package/shared/types/waitlist-item.d.ts +25 -0
  200. package/shared/types/waitlist-status.d.ts +13 -0
  201. package/shared/types/work-change-order.d.ts +10 -0
  202. package/shared/types/work-holiday.d.ts +4 -0
  203. package/shared/types/work-order-action.d.ts +5 -0
  204. package/shared/types/work-order-history.d.ts +8 -0
  205. package/shared/types/work-order-refinish-item.d.ts +16 -0
  206. package/shared/types/work-order-status.d.ts +12 -0
  207. package/shared/types/work-order-type.d.ts +6 -0
  208. package/shared/types/work-order.d.ts +31 -0
  209. package/shared/utils/coating-helpers.d.ts +5 -0
  210. package/shared/utils/enum-object.d.ts +5 -0
  211. package/shared/utils/finish-date-calculator.d.ts +2 -0
  212. package/shared/utils/index.d.ts +4 -0
  213. package/shared/utils/invalid-form-control-toucher.d.ts +2 -0
@@ -0,0 +1,8 @@
1
+ export declare class InventoryItem {
2
+ id: number;
3
+ name: string;
4
+ sku: string;
5
+ count: number;
6
+ active: boolean;
7
+ timestamp: string;
8
+ }
@@ -0,0 +1,5 @@
1
+ export declare class JFile {
2
+ bytes: string;
3
+ name: string;
4
+ type: string;
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare class Material {
2
+ id: number;
3
+ name: string;
4
+ active: boolean;
5
+ timestamp: string;
6
+ }
@@ -0,0 +1,17 @@
1
+ import { SightType } from './sight-type';
2
+ import { RearSightPosition } from './rear-sight-position';
3
+ import { Optic } from './optic';
4
+ import { CosmeticMilling } from './cosmetic-milling';
5
+ import { OpticStatus } from './optic-status';
6
+ export declare class MillingDetail {
7
+ id: number;
8
+ optic: Optic;
9
+ opticStatus: OpticStatus;
10
+ frontSightType: SightType;
11
+ rearSightType: SightType;
12
+ rearSightPosition: RearSightPosition;
13
+ cosmeticMilling: CosmeticMilling;
14
+ barrelCrown: boolean;
15
+ bushingInstallation: boolean;
16
+ timestamp: string;
17
+ }
@@ -0,0 +1,8 @@
1
+ import { MillingType } from './milling-type';
2
+ export declare class MillingItem {
3
+ id: number;
4
+ millingType: MillingType;
5
+ description: string;
6
+ completedDate: Date;
7
+ timestamp: string;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { GunPart } from './gun-part';
2
+ export declare class MillingType {
3
+ id: number;
4
+ name: string;
5
+ gunPart: GunPart;
6
+ active: boolean;
7
+ timestamp: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum MountType {
2
+ Direct = 0,
3
+ Plate = 1
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum OpticStatus {
2
+ Included = 0,
3
+ NotIncluded = 1,
4
+ Supply = 2
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare class Optic {
2
+ id: number;
3
+ name: string;
4
+ active: boolean;
5
+ timestamp: string;
6
+ }
@@ -0,0 +1,7 @@
1
+ export declare class Product {
2
+ id: number;
3
+ sku: string;
4
+ name: string;
5
+ price: number;
6
+ type: string;
7
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum ProjectType {
2
+ Firearm = 0,
3
+ SlideOnly = 1,
4
+ PartsOnly = 2
5
+ }
@@ -0,0 +1,16 @@
1
+ import { Coating } from './coating';
2
+ import { CoatingValue } from './coating-value';
3
+ import { GunPart } from './gun-part';
4
+ export declare class PurchaseOrderRefinishItem {
5
+ id: number;
6
+ gunPart: GunPart;
7
+ quantity: number;
8
+ coating: Coating;
9
+ coatingValue: CoatingValue;
10
+ coatingDescription: string;
11
+ serialNumber: string;
12
+ customerName: string;
13
+ inDate: Date;
14
+ isMillingCompleted: boolean;
15
+ timestamp: string;
16
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum PurchaseOrderStatus {
2
+ Open = 0,
3
+ Closed = 1,
4
+ Cancelled = 2,
5
+ Voided = 3
6
+ }
@@ -0,0 +1,11 @@
1
+ import { PurchaseOrderRefinishItem } from './purchase-order-refinish-item';
2
+ import { PurchaseOrderStatus } from './purchase-order-status';
3
+ import { Vendor } from './vendor';
4
+ export declare class PurchaseOrder {
5
+ id: number;
6
+ vendor: Vendor;
7
+ date: Date;
8
+ status: PurchaseOrderStatus;
9
+ refinishItems: PurchaseOrderRefinishItem[];
10
+ timestamp: string;
11
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum RearSightPosition {
2
+ InFront = 0,
3
+ Behind = 1
4
+ }
@@ -0,0 +1,11 @@
1
+ import { Coating } from './coating';
2
+ import { CoatingValue } from './coating-value';
3
+ import { GunPart } from './gun-part';
4
+ export declare class RefinishDetail {
5
+ id: number;
6
+ gunPart: GunPart;
7
+ coating: Coating;
8
+ coatingValue: CoatingValue;
9
+ coatingDescription: string;
10
+ timestamp: string;
11
+ }
@@ -0,0 +1,16 @@
1
+ import { MillingType } from './milling-type';
2
+ import { ProjectType } from './project-type';
3
+ import { WorkOrderType } from './work-order-type';
4
+ export declare class ReportMillingItem {
5
+ id: number;
6
+ customerName: string;
7
+ serialNumber: string;
8
+ firearmName: string;
9
+ receivedDate: Date;
10
+ estimatedFinishDate: Date;
11
+ workOrderType: WorkOrderType;
12
+ projectType: ProjectType;
13
+ millingType: MillingType;
14
+ description: string;
15
+ hasRefinish: boolean;
16
+ }
@@ -0,0 +1,16 @@
1
+ import { Coating } from "./coating";
2
+ import { CoatingValue } from "./coating-value";
3
+ import { GunPart } from "./gun-part";
4
+ export declare class ReportRefinishItem {
5
+ id: number;
6
+ gunPart: GunPart;
7
+ quantity: number;
8
+ coating: Coating;
9
+ coatingValue: CoatingValue;
10
+ coatingDescription: string;
11
+ serialNumber: string;
12
+ customerName: string;
13
+ vendorName: string;
14
+ outDate: Date;
15
+ timestamp: string;
16
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum SightType {
2
+ Black = 0,
3
+ Tritium = 1
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare class State {
2
+ abbrev: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export declare class TotalItem {
2
+ date: Date;
3
+ total: number;
4
+ }
@@ -0,0 +1,5 @@
1
+ import { TotalItem } from "./total-item";
2
+ export declare class Total {
3
+ name: string;
4
+ items: TotalItem[];
5
+ }
@@ -0,0 +1,9 @@
1
+ export declare class VendorContact {
2
+ id: number;
3
+ firstName: string;
4
+ lastName: string;
5
+ primaryPhone: string;
6
+ secondaryPhone: string;
7
+ email: string;
8
+ timestamp: string;
9
+ }
@@ -0,0 +1,20 @@
1
+ import { JFile } from "./j-file";
2
+ import { VendorContact } from "./vendor-contact";
3
+ export declare class Vendor {
4
+ constructor();
5
+ id: number;
6
+ name: string;
7
+ address1: string;
8
+ address2: string;
9
+ city: string;
10
+ stateAbbrev: string;
11
+ stateName: string;
12
+ postalCode: string;
13
+ fflDate: Date;
14
+ fflFile: JFile;
15
+ fflFileName: string;
16
+ notes: string;
17
+ contacts: VendorContact[];
18
+ active: boolean;
19
+ timestamp: string;
20
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum WaitlistAction {
2
+ SendShipmentEmail = 0,
3
+ SendShipmentNoResponse = 2,
4
+ SendWaitingOnShipmentEmail = 3,
5
+ SendWaitingOnShipmentNoResponse = 5,
6
+ SendInShopEmail = 6
7
+ }
@@ -0,0 +1,22 @@
1
+ import { Firearm } from './firearm';
2
+ import { GunCaliber } from "./gun-caliber";
3
+ import { MillingDetail } from './milling-detail';
4
+ import { ProjectType } from './project-type';
5
+ import { RefinishDetail } from './refinish-detail';
6
+ export declare class WaitlistGun {
7
+ id: number;
8
+ firearm: Firearm;
9
+ serialNumber: string;
10
+ caliber: GunCaliber;
11
+ condition: string;
12
+ workDescription: string;
13
+ shipmentInfo: string;
14
+ projectType: ProjectType;
15
+ logo: boolean;
16
+ refinish: boolean;
17
+ milling: boolean;
18
+ specialOrder: boolean;
19
+ refinishDetails: RefinishDetail[];
20
+ millingDetail: MillingDetail;
21
+ timestamp: string;
22
+ }
@@ -0,0 +1,8 @@
1
+ import { WaitlistStatus } from "./waitlist-status";
2
+ export declare class WaitlistHistory {
3
+ id: number;
4
+ status: WaitlistStatus;
5
+ date: Date;
6
+ user: string;
7
+ timestamp: string;
8
+ }
@@ -0,0 +1,25 @@
1
+ import { WaitlistStatus } from "./waitlist-status";
2
+ import { WaitlistGun } from "./waitlist-gun";
3
+ import { WaitlistHistory } from "./waitlist-history";
4
+ import { Customer } from "./customer";
5
+ import { WorkOrderType } from './work-order-type';
6
+ export declare class WaitlistItem {
7
+ id: number;
8
+ requestDate: Date;
9
+ lastStatusDate: Date;
10
+ customer: Customer;
11
+ name: string;
12
+ address1: string;
13
+ address2: string;
14
+ city: string;
15
+ stateAbbrev: string;
16
+ stateName: string;
17
+ postalCode: string;
18
+ status: WaitlistStatus;
19
+ phone: string;
20
+ email: string;
21
+ workOrderType: WorkOrderType;
22
+ guns: WaitlistGun[];
23
+ histories: WaitlistHistory[];
24
+ timestamp: string;
25
+ }
@@ -0,0 +1,13 @@
1
+ export declare enum WaitlistStatus {
2
+ NewRequest = 0,
3
+ ShipmentEmailSent = 1,
4
+ ShipmentEmailReminderSent = 2,
5
+ ShipmentEmailNoResponse = 3,
6
+ WaitingOnShipment = 4,
7
+ WaitingOnShipmentReminderSent = 5,
8
+ WaitingOnShipmentNoResponse = 6,
9
+ InShop = 7,
10
+ Cancelled = 8,
11
+ OnHold = 9,
12
+ Voided = 10
13
+ }
@@ -0,0 +1,10 @@
1
+ import { ChangeOrderStatus } from './change-order-status';
2
+ export declare class WorkChangeOrder {
3
+ id: number;
4
+ workOrderId: number;
5
+ description: string;
6
+ date: Date;
7
+ user: string;
8
+ status: ChangeOrderStatus;
9
+ timestamp: string;
10
+ }
@@ -0,0 +1,4 @@
1
+ export declare class WorkHoliday {
2
+ id: number;
3
+ holiday: Date;
4
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum WorkOrderAction {
2
+ SendOnBenchEmail = 1,
3
+ SendWaitingOnCustomerEmail = 3,
4
+ SendCustomerNotification = 4
5
+ }
@@ -0,0 +1,8 @@
1
+ import { WorkOrderStatus } from "./work-order-status";
2
+ export declare class WorkOrderHistory {
3
+ id: number;
4
+ status: WorkOrderStatus;
5
+ date: Date;
6
+ user: string;
7
+ timestamp: string;
8
+ }
@@ -0,0 +1,16 @@
1
+ import { Coating } from './coating';
2
+ import { CoatingValue } from './coating-value';
3
+ import { GunPart } from './gun-part';
4
+ import { Vendor } from './vendor';
5
+ export declare class WorkOrderRefinishItem {
6
+ id: number;
7
+ gunPart: GunPart;
8
+ quantity: number;
9
+ coating: Coating;
10
+ coatingValue: CoatingValue;
11
+ coatingDescription: string;
12
+ vendor: Vendor;
13
+ outDate: Date;
14
+ inDate: Date;
15
+ timestamp: string;
16
+ }
@@ -0,0 +1,12 @@
1
+ export declare enum WorkOrderStatus {
2
+ InShop = 0,
3
+ OnBench = 1,
4
+ OutOfShop = 2,
5
+ WaitingOnCustomer = 3,
6
+ CustomerNotified = 4,
7
+ ReadyToShip = 5,
8
+ Completed = 6,
9
+ Cancelled = 7,
10
+ Voided = 8,
11
+ OnHold = 9
12
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum WorkOrderType {
2
+ Standard = 0,
3
+ NewInBox = 1,
4
+ Expedited = 2,
5
+ Warranty = 5
6
+ }
@@ -0,0 +1,31 @@
1
+ import { WorkOrderStatus } from "./work-order-status";
2
+ import { WorkOrderHistory } from './work-order-history';
3
+ import { WorkOrderType } from "./work-order-type";
4
+ import { Customer } from "./customer";
5
+ import { Firearm } from './firearm';
6
+ import { GunCaliber } from './gun-caliber';
7
+ import { ProjectType } from './project-type';
8
+ export declare class WorkOrder {
9
+ constructor();
10
+ id: number;
11
+ customer: Customer;
12
+ firearm: Firearm;
13
+ serialNumber: string;
14
+ caliber: GunCaliber;
15
+ receivedDate: Date;
16
+ estimatedFinishDate: Date;
17
+ lastStatusDate: Date;
18
+ workOrderType: WorkOrderType;
19
+ refinish: boolean;
20
+ logo: boolean;
21
+ milling: boolean;
22
+ specialOrder: boolean;
23
+ condition: string;
24
+ workDescription: string;
25
+ shipmentInfo: string;
26
+ projectType: ProjectType;
27
+ status: WorkOrderStatus;
28
+ histories: WorkOrderHistory[];
29
+ notes: string;
30
+ timestamp: string;
31
+ }
@@ -0,0 +1,5 @@
1
+ import { Coating, CoatingValue, GunPart, Material } from '../types';
2
+ export declare function getCoatings(part: GunPart, coatings: Coating[], material: Material): Coating[];
3
+ export declare function getCoatingValues(coating: Coating): CoatingValue[];
4
+ export declare function hasCoatingValues(coating: Coating): boolean;
5
+ export declare function hasCoatingDescription(coating: Coating): boolean;
@@ -0,0 +1,5 @@
1
+ export declare function convertEnumToObjectArray(value: any): EnumObject[];
2
+ export interface EnumObject {
3
+ id: number;
4
+ name: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ import { WorkOrderType, Configuration, WorkHoliday } from "../types";
2
+ export declare function calculateFinishDate(receivedDate: Date, workOrderType: WorkOrderType, configs: Configuration, holidays: WorkHoliday[]): Date;
@@ -0,0 +1,4 @@
1
+ export * from './invalid-form-control-toucher';
2
+ export * from './enum-object';
3
+ export * from './coating-helpers';
4
+ export * from './finish-date-calculator';
@@ -0,0 +1,2 @@
1
+ import { FormGroup } from "@angular/forms";
2
+ export declare function touchControls(formGroup: FormGroup): void;