@nerdjs/sales-kit 2.0.35-alpha.2 → 2.0.36

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 (343) hide show
  1. package/dist/entities/appointmentIssue/appointmentIssue.d.ts +46 -0
  2. package/dist/entities/appointmentIssue/appointmentIssue.js +116 -0
  3. package/dist/entities/appointmentIssue/appointmentIssue.js.map +1 -0
  4. package/dist/entities/appointmentIssue/helper.d.ts +5 -0
  5. package/dist/entities/appointmentIssue/helper.js +16 -0
  6. package/dist/entities/appointmentIssue/helper.js.map +1 -0
  7. package/dist/entities/appointmentIssue/index.d.ts +2 -0
  8. package/dist/entities/appointmentIssue/index.js +3 -0
  9. package/dist/entities/appointmentIssue/index.js.map +1 -0
  10. package/dist/entities/appointmentIssueCategory/appointmentIssueCategory.d.ts +10 -0
  11. package/dist/entities/appointmentIssueCategory/appointmentIssueCategory.js +40 -0
  12. package/dist/entities/appointmentIssueCategory/appointmentIssueCategory.js.map +1 -0
  13. package/dist/entities/appointmentIssueCategory/helper.d.ts +5 -0
  14. package/dist/entities/appointmentIssueCategory/helper.js +16 -0
  15. package/dist/entities/appointmentIssueCategory/helper.js.map +1 -0
  16. package/dist/entities/appointmentIssueCategory/index.d.ts +2 -0
  17. package/dist/entities/appointmentIssueCategory/index.js +3 -0
  18. package/dist/entities/appointmentIssueCategory/index.js.map +1 -0
  19. package/dist/entities/appointmentIssueSubcategory/appointmentIssueSubcategory.d.ts +11 -0
  20. package/dist/entities/appointmentIssueSubcategory/appointmentIssueSubcategory.js +43 -0
  21. package/dist/entities/appointmentIssueSubcategory/appointmentIssueSubcategory.js.map +1 -0
  22. package/dist/entities/appointmentIssueSubcategory/helper.d.ts +5 -0
  23. package/dist/entities/appointmentIssueSubcategory/helper.js +16 -0
  24. package/dist/entities/appointmentIssueSubcategory/helper.js.map +1 -0
  25. package/dist/entities/appointmentIssueSubcategory/index.d.ts +2 -0
  26. package/dist/entities/appointmentIssueSubcategory/index.js +3 -0
  27. package/dist/entities/appointmentIssueSubcategory/index.js.map +1 -0
  28. package/dist/entities/appointmentNote/appointmentNote.d.ts +13 -0
  29. package/dist/entities/appointmentNote/appointmentNote.js +44 -0
  30. package/dist/entities/appointmentNote/appointmentNote.js.map +1 -0
  31. package/dist/entities/appointmentNote/helper.d.ts +5 -0
  32. package/dist/entities/appointmentNote/helper.js +16 -0
  33. package/dist/entities/appointmentNote/helper.js.map +1 -0
  34. package/dist/entities/appointmentNote/index.d.ts +2 -0
  35. package/dist/entities/appointmentNote/index.js +3 -0
  36. package/dist/entities/appointmentNote/index.js.map +1 -0
  37. package/dist/entities/appointmentNoteType/appointmentNoteType.d.ts +8 -0
  38. package/dist/entities/appointmentNoteType/appointmentNoteType.js +34 -0
  39. package/dist/entities/appointmentNoteType/appointmentNoteType.js.map +1 -0
  40. package/dist/entities/appointmentNoteType/helper.d.ts +5 -0
  41. package/dist/entities/appointmentNoteType/helper.js +16 -0
  42. package/dist/entities/appointmentNoteType/helper.js.map +1 -0
  43. package/dist/entities/appointmentNoteType/index.d.ts +2 -0
  44. package/dist/entities/appointmentNoteType/index.js +3 -0
  45. package/dist/entities/appointmentNoteType/index.js.map +1 -0
  46. package/dist/entities/archerFileV1/archerFileV1.d.ts +25 -0
  47. package/dist/entities/archerFileV1/archerFileV1.js +63 -0
  48. package/dist/entities/archerFileV1/archerFileV1.js.map +1 -0
  49. package/dist/entities/archerFileV1/helper.d.ts +5 -0
  50. package/dist/entities/archerFileV1/helper.js +16 -0
  51. package/dist/entities/archerFileV1/helper.js.map +1 -0
  52. package/dist/entities/archerFileV1/index.d.ts +2 -0
  53. package/dist/entities/archerFileV1/index.js +3 -0
  54. package/dist/entities/archerFileV1/index.js.map +1 -0
  55. package/dist/entities/carrierName/carrierName.d.ts +16 -0
  56. package/dist/entities/carrierName/carrierName.js +49 -0
  57. package/dist/entities/carrierName/carrierName.js.map +1 -0
  58. package/dist/entities/carrierName/helper.d.ts +5 -0
  59. package/dist/entities/carrierName/helper.js +16 -0
  60. package/dist/entities/carrierName/helper.js.map +1 -0
  61. package/dist/entities/carrierName/index.d.ts +2 -0
  62. package/dist/entities/carrierName/index.js +3 -0
  63. package/dist/entities/carrierName/index.js.map +1 -0
  64. package/dist/entities/commodityV1/commodityV1.d.ts +26 -0
  65. package/dist/entities/commodityV1/commodityV1.js +69 -0
  66. package/dist/entities/commodityV1/commodityV1.js.map +1 -0
  67. package/dist/entities/commodityV1/helper.d.ts +5 -0
  68. package/dist/entities/commodityV1/helper.js +16 -0
  69. package/dist/entities/commodityV1/helper.js.map +1 -0
  70. package/dist/entities/commodityV1/index.d.ts +2 -0
  71. package/dist/entities/commodityV1/index.js +3 -0
  72. package/dist/entities/commodityV1/index.js.map +1 -0
  73. package/dist/entities/driverName/driverName.d.ts +16 -0
  74. package/dist/entities/driverName/driverName.js +49 -0
  75. package/dist/entities/driverName/driverName.js.map +1 -0
  76. package/dist/entities/driverName/helper.d.ts +5 -0
  77. package/dist/entities/driverName/helper.js +16 -0
  78. package/dist/entities/driverName/helper.js.map +1 -0
  79. package/dist/entities/driverName/index.d.ts +2 -0
  80. package/dist/entities/driverName/index.js +3 -0
  81. package/dist/entities/driverName/index.js.map +1 -0
  82. package/dist/entities/index.d.ts +19 -0
  83. package/dist/entities/index.js +19 -0
  84. package/dist/entities/index.js.map +1 -1
  85. package/dist/entities/loadAdjustmentV1/helper.d.ts +5 -0
  86. package/dist/entities/loadAdjustmentV1/helper.js +16 -0
  87. package/dist/entities/loadAdjustmentV1/helper.js.map +1 -0
  88. package/dist/entities/loadAdjustmentV1/index.d.ts +2 -0
  89. package/dist/entities/loadAdjustmentV1/index.js +3 -0
  90. package/dist/entities/loadAdjustmentV1/index.js.map +1 -0
  91. package/dist/entities/loadAdjustmentV1/loadAdjustmentV1.d.ts +16 -0
  92. package/dist/entities/loadAdjustmentV1/loadAdjustmentV1.js +50 -0
  93. package/dist/entities/loadAdjustmentV1/loadAdjustmentV1.js.map +1 -0
  94. package/dist/entities/loadV1/helper.d.ts +6 -0
  95. package/dist/entities/loadV1/helper.js +35 -0
  96. package/dist/entities/loadV1/helper.js.map +1 -0
  97. package/dist/entities/loadV1/index.d.ts +2 -0
  98. package/dist/entities/loadV1/index.js +3 -0
  99. package/dist/entities/loadV1/index.js.map +1 -0
  100. package/dist/entities/loadV1/loadV1.d.ts +120 -0
  101. package/dist/entities/loadV1/loadV1.js +260 -0
  102. package/dist/entities/loadV1/loadV1.js.map +1 -0
  103. package/dist/entities/location/index.d.ts +1 -0
  104. package/dist/entities/location/index.js +1 -0
  105. package/dist/entities/location/index.js.map +1 -1
  106. package/dist/entities/location/location.d.ts +2 -1
  107. package/dist/entities/location/location.js +9 -2
  108. package/dist/entities/location/location.js.map +1 -1
  109. package/dist/entities/locationAccessorial/helper.d.ts +5 -0
  110. package/dist/entities/locationAccessorial/helper.js +16 -0
  111. package/dist/entities/locationAccessorial/helper.js.map +1 -0
  112. package/dist/entities/locationAccessorial/index.d.ts +2 -0
  113. package/dist/entities/locationAccessorial/index.js +3 -0
  114. package/dist/entities/locationAccessorial/index.js.map +1 -0
  115. package/dist/entities/locationAccessorial/locationAccessorial.d.ts +13 -0
  116. package/dist/entities/locationAccessorial/locationAccessorial.js +44 -0
  117. package/dist/entities/locationAccessorial/locationAccessorial.js.map +1 -0
  118. package/dist/entities/locationV1/helper.d.ts +5 -0
  119. package/dist/entities/locationV1/helper.js +16 -0
  120. package/dist/entities/locationV1/helper.js.map +1 -0
  121. package/dist/entities/locationV1/index.d.ts +2 -0
  122. package/dist/entities/locationV1/index.js +3 -0
  123. package/dist/entities/locationV1/index.js.map +1 -0
  124. package/dist/entities/locationV1/locationV1.d.ts +73 -0
  125. package/dist/entities/locationV1/locationV1.js +163 -0
  126. package/dist/entities/locationV1/locationV1.js.map +1 -0
  127. package/dist/entities/nmfcClass/helper.d.ts +5 -0
  128. package/dist/entities/nmfcClass/helper.js +16 -0
  129. package/dist/entities/nmfcClass/helper.js.map +1 -0
  130. package/dist/entities/nmfcClass/index.d.ts +2 -0
  131. package/dist/entities/nmfcClass/index.js +3 -0
  132. package/dist/entities/nmfcClass/index.js.map +1 -0
  133. package/dist/entities/nmfcClass/nmfcClass.d.ts +11 -0
  134. package/dist/entities/nmfcClass/nmfcClass.js +39 -0
  135. package/dist/entities/nmfcClass/nmfcClass.js.map +1 -0
  136. package/dist/entities/nodeName/helper.d.ts +5 -0
  137. package/dist/entities/nodeName/helper.js +16 -0
  138. package/dist/entities/nodeName/helper.js.map +1 -0
  139. package/dist/entities/nodeName/index.d.ts +2 -0
  140. package/dist/entities/nodeName/index.js +3 -0
  141. package/dist/entities/nodeName/index.js.map +1 -0
  142. package/dist/entities/nodeName/nodeName.d.ts +14 -0
  143. package/dist/entities/nodeName/nodeName.js +45 -0
  144. package/dist/entities/nodeName/nodeName.js.map +1 -0
  145. package/dist/entities/personName/helper.d.ts +5 -0
  146. package/dist/entities/personName/helper.js +16 -0
  147. package/dist/entities/personName/helper.js.map +1 -0
  148. package/dist/entities/personName/index.d.ts +2 -0
  149. package/dist/entities/personName/index.js +3 -0
  150. package/dist/entities/personName/index.js.map +1 -0
  151. package/dist/entities/personName/personName.d.ts +12 -0
  152. package/dist/entities/personName/personName.js +41 -0
  153. package/dist/entities/personName/personName.js.map +1 -0
  154. package/dist/entities/quote/quote.d.ts +0 -1
  155. package/dist/entities/quoteAccessorialV1/helper.d.ts +5 -0
  156. package/dist/entities/quoteAccessorialV1/helper.js +16 -0
  157. package/dist/entities/quoteAccessorialV1/helper.js.map +1 -0
  158. package/dist/entities/quoteAccessorialV1/index.d.ts +2 -0
  159. package/dist/entities/quoteAccessorialV1/index.js +3 -0
  160. package/dist/entities/quoteAccessorialV1/index.js.map +1 -0
  161. package/dist/entities/quoteAccessorialV1/quoteAccessorialV1.d.ts +34 -0
  162. package/dist/entities/quoteAccessorialV1/quoteAccessorialV1.js +86 -0
  163. package/dist/entities/quoteAccessorialV1/quoteAccessorialV1.js.map +1 -0
  164. package/dist/entities/quoteResponse/quoteResponse.d.ts +0 -1
  165. package/dist/entities/quoteResponse/quoteResponse.js.map +1 -1
  166. package/dist/entities/shipconV1/helper.d.ts +5 -0
  167. package/dist/entities/shipconV1/helper.js +16 -0
  168. package/dist/entities/shipconV1/helper.js.map +1 -0
  169. package/dist/entities/shipconV1/index.d.ts +2 -0
  170. package/dist/entities/shipconV1/index.js +3 -0
  171. package/dist/entities/shipconV1/index.js.map +1 -0
  172. package/dist/entities/shipconV1/shipconV1.d.ts +163 -0
  173. package/dist/entities/shipconV1/shipconV1.js +350 -0
  174. package/dist/entities/shipconV1/shipconV1.js.map +1 -0
  175. package/dist/entities/userNoteV1/helper.d.ts +5 -0
  176. package/dist/entities/userNoteV1/helper.js +16 -0
  177. package/dist/entities/userNoteV1/helper.js.map +1 -0
  178. package/dist/entities/userNoteV1/index.d.ts +2 -0
  179. package/dist/entities/userNoteV1/index.js +3 -0
  180. package/dist/entities/userNoteV1/index.js.map +1 -0
  181. package/dist/entities/userNoteV1/userNoteV1.d.ts +14 -0
  182. package/dist/entities/userNoteV1/userNoteV1.js +46 -0
  183. package/dist/entities/userNoteV1/userNoteV1.js.map +1 -0
  184. package/dist/hooks/locationsForm/locationsForm.d.ts +1 -0
  185. package/dist/hooks/locationsForm/locationsForm.js +7 -7
  186. package/dist/hooks/locationsForm/locationsForm.js.map +1 -1
  187. package/dist/hooks/locationsForm/locationsFormSales.d.ts +11 -0
  188. package/dist/hooks/locationsForm/locationsFormSales.js +826 -0
  189. package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -0
  190. package/dist/hooks/quote/constants.d.ts +42 -2
  191. package/dist/hooks/quote/constants.js +39 -2
  192. package/dist/hooks/quote/constants.js.map +1 -1
  193. package/dist/hooks/quote/form.js +35 -44
  194. package/dist/hooks/quote/form.js.map +1 -1
  195. package/dist/hooks/quote/helpers.d.ts +12 -5
  196. package/dist/hooks/quote/helpers.js +76 -101
  197. package/dist/hooks/quote/helpers.js.map +1 -1
  198. package/dist/hooks/quote/result.js +19 -23
  199. package/dist/hooks/quote/result.js.map +1 -1
  200. package/dist/hooks/tender/form.js +84 -67
  201. package/dist/hooks/tender/form.js.map +1 -1
  202. package/dist/hooks/tender/helpers.d.ts +2 -1
  203. package/dist/hooks/tender/helpers.js +14 -17
  204. package/dist/hooks/tender/helpers.js.map +1 -1
  205. package/dist/redux/api/salesApi.d.ts +1 -1
  206. package/dist/redux/api/salesApi.js +24 -0
  207. package/dist/redux/api/salesApi.js.map +1 -1
  208. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +32 -0
  209. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.js +66 -0
  210. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.js.map +1 -0
  211. package/dist/redux/appointmentIssue/index.d.ts +2 -0
  212. package/dist/redux/appointmentIssue/index.js +3 -0
  213. package/dist/redux/appointmentIssue/index.js.map +1 -0
  214. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +27 -0
  215. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.js +72 -0
  216. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.js.map +1 -0
  217. package/dist/redux/appointmentIssueCategory/index.d.ts +2 -0
  218. package/dist/redux/appointmentIssueCategory/index.js +3 -0
  219. package/dist/redux/appointmentIssueCategory/index.js.map +1 -0
  220. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +26 -0
  221. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.js +66 -0
  222. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.js.map +1 -0
  223. package/dist/redux/appointmentIssueSubcategory/index.d.ts +2 -0
  224. package/dist/redux/appointmentIssueSubcategory/index.js +3 -0
  225. package/dist/redux/appointmentIssueSubcategory/index.js.map +1 -0
  226. package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +26 -0
  227. package/dist/redux/appointmentNote/appointmentNoteEndpoints.js +70 -0
  228. package/dist/redux/appointmentNote/appointmentNoteEndpoints.js.map +1 -0
  229. package/dist/redux/appointmentNote/index.d.ts +2 -0
  230. package/dist/redux/appointmentNote/index.js +3 -0
  231. package/dist/redux/appointmentNote/index.js.map +1 -0
  232. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +26 -0
  233. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.js +75 -0
  234. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.js.map +1 -0
  235. package/dist/redux/appointmentNoteType/index.d.ts +2 -0
  236. package/dist/redux/appointmentNoteType/index.js +3 -0
  237. package/dist/redux/appointmentNoteType/index.js.map +1 -0
  238. package/dist/redux/archerFile/archerFileEndpoints.d.ts +20 -0
  239. package/dist/redux/archerFile/archerFileEndpoints.js +61 -0
  240. package/dist/redux/archerFile/archerFileEndpoints.js.map +1 -0
  241. package/dist/redux/archerFile/index.d.ts +2 -0
  242. package/dist/redux/archerFile/index.js +3 -0
  243. package/dist/redux/archerFile/index.js.map +1 -0
  244. package/dist/redux/carrierName/carrierNameEndpoints.d.ts +25 -0
  245. package/dist/redux/carrierName/carrierNameEndpoints.js +76 -0
  246. package/dist/redux/carrierName/carrierNameEndpoints.js.map +1 -0
  247. package/dist/redux/carrierName/index.d.ts +2 -0
  248. package/dist/redux/carrierName/index.js +3 -0
  249. package/dist/redux/carrierName/index.js.map +1 -0
  250. package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +33 -0
  251. package/dist/redux/commodityV1/commodityV1Endpoints.js +71 -0
  252. package/dist/redux/commodityV1/commodityV1Endpoints.js.map +1 -0
  253. package/dist/redux/commodityV1/index.d.ts +2 -0
  254. package/dist/redux/commodityV1/index.js +3 -0
  255. package/dist/redux/commodityV1/index.js.map +1 -0
  256. package/dist/redux/customer/customerEndpoints.d.ts +14 -14
  257. package/dist/redux/driverName/driverNameEndpoints.d.ts +24 -0
  258. package/dist/redux/driverName/driverNameEndpoints.js +67 -0
  259. package/dist/redux/driverName/driverNameEndpoints.js.map +1 -0
  260. package/dist/redux/driverName/index.d.ts +2 -0
  261. package/dist/redux/driverName/index.js +3 -0
  262. package/dist/redux/driverName/index.js.map +1 -0
  263. package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
  264. package/dist/redux/index.d.ts +17 -0
  265. package/dist/redux/index.js +17 -0
  266. package/dist/redux/index.js.map +1 -1
  267. package/dist/redux/load/loadEndpoints.d.ts +10 -10
  268. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
  269. package/dist/redux/loadAdjustmentV1/index.d.ts +2 -0
  270. package/dist/redux/loadAdjustmentV1/index.js +3 -0
  271. package/dist/redux/loadAdjustmentV1/index.js.map +1 -0
  272. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +32 -0
  273. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.js +66 -0
  274. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.js.map +1 -0
  275. package/dist/redux/loadV1/index.d.ts +2 -0
  276. package/dist/redux/loadV1/index.js +3 -0
  277. package/dist/redux/loadV1/index.js.map +1 -0
  278. package/dist/redux/loadV1/loadV1Endpoints.d.ts +43 -0
  279. package/dist/redux/loadV1/loadV1Endpoints.js +100 -0
  280. package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -0
  281. package/dist/redux/location/locationEndpoints.d.ts +14 -14
  282. package/dist/redux/locationV1/index.d.ts +2 -0
  283. package/dist/redux/locationV1/index.js +3 -0
  284. package/dist/redux/locationV1/index.js.map +1 -0
  285. package/dist/redux/locationV1/locationV1Endpoints.d.ts +59 -0
  286. package/dist/redux/locationV1/locationV1Endpoints.js +115 -0
  287. package/dist/redux/locationV1/locationV1Endpoints.js.map +1 -0
  288. package/dist/redux/nmfcClass/index.d.ts +2 -0
  289. package/dist/redux/nmfcClass/index.js +3 -0
  290. package/dist/redux/nmfcClass/index.js.map +1 -0
  291. package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +24 -0
  292. package/dist/redux/nmfcClass/nmfcClassEndpoints.js +64 -0
  293. package/dist/redux/nmfcClass/nmfcClassEndpoints.js.map +1 -0
  294. package/dist/redux/nodeName/index.d.ts +2 -0
  295. package/dist/redux/nodeName/index.js +3 -0
  296. package/dist/redux/nodeName/index.js.map +1 -0
  297. package/dist/redux/nodeName/nodeNameEndpoints.d.ts +26 -0
  298. package/dist/redux/nodeName/nodeNameEndpoints.js +67 -0
  299. package/dist/redux/nodeName/nodeNameEndpoints.js.map +1 -0
  300. package/dist/redux/personName/index.d.ts +2 -0
  301. package/dist/redux/personName/index.js +3 -0
  302. package/dist/redux/personName/index.js.map +1 -0
  303. package/dist/redux/personName/personNameEndpoints.d.ts +26 -0
  304. package/dist/redux/personName/personNameEndpoints.js +67 -0
  305. package/dist/redux/personName/personNameEndpoints.js.map +1 -0
  306. package/dist/redux/quote/quoteAction.d.ts +6 -2
  307. package/dist/redux/quote/quoteAction.js +9 -36
  308. package/dist/redux/quote/quoteAction.js.map +1 -1
  309. package/dist/redux/quote/quoteEndpoints.d.ts +22 -15
  310. package/dist/redux/quote/quoteEndpoints.js +26 -1
  311. package/dist/redux/quote/quoteEndpoints.js.map +1 -1
  312. package/dist/redux/quote/quoteHooks.d.ts +2 -2
  313. package/dist/redux/quote/quoteReducer.d.ts +0 -1
  314. package/dist/redux/quote/quoteReducer.js +27 -63
  315. package/dist/redux/quote/quoteReducer.js.map +1 -1
  316. package/dist/redux/quote/quoteSelector.d.ts +0 -1
  317. package/dist/redux/quote/quoteSelector.js +0 -12
  318. package/dist/redux/quote/quoteSelector.js.map +1 -1
  319. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
  320. package/dist/redux/quoteAccessorialV1/index.d.ts +2 -0
  321. package/dist/redux/quoteAccessorialV1/index.js +3 -0
  322. package/dist/redux/quoteAccessorialV1/index.js.map +1 -0
  323. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +32 -0
  324. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.js +67 -0
  325. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.js.map +1 -0
  326. package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
  327. package/dist/redux/shipconV1/index.d.ts +2 -0
  328. package/dist/redux/shipconV1/index.js +3 -0
  329. package/dist/redux/shipconV1/index.js.map +1 -0
  330. package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +44 -0
  331. package/dist/redux/shipconV1/shipconV1Endpoints.js +75 -0
  332. package/dist/redux/shipconV1/shipconV1Endpoints.js.map +1 -0
  333. package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
  334. package/dist/redux/tender/tenderSelector.d.ts +0 -2
  335. package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
  336. package/dist/redux/types.d.ts +2 -2
  337. package/dist/redux/userNoteV1/index.d.ts +2 -0
  338. package/dist/redux/userNoteV1/index.js +3 -0
  339. package/dist/redux/userNoteV1/index.js.map +1 -0
  340. package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +32 -0
  341. package/dist/redux/userNoteV1/userNoteV1Endpoints.js +65 -0
  342. package/dist/redux/userNoteV1/userNoteV1Endpoints.js.map +1 -0
  343. package/package.json +5 -5
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LocationAccessorial_Entity type guard.
3
+ *
4
+ * @param {any} locationAccessorialJson LocationAccessorial object from API
5
+ * @returns {boolean} Return true if type is LocationAccessorial_Entity
6
+ */
7
+ function validator(locationAccessorialJson) {
8
+ if (typeof locationAccessorialJson === "object" &&
9
+ locationAccessorialJson != null) {
10
+ LocationAccessorial_Entity.requiredFields.forEach((element) => {
11
+ if (!Object.keys(locationAccessorialJson).includes(element))
12
+ throw new Error(`Field ${element} is null or undefined`);
13
+ });
14
+ }
15
+ return true;
16
+ }
17
+ export default class LocationAccessorial_Entity {
18
+ static requiredFields = [];
19
+ constructor(locationAccessorialJson) {
20
+ if (validator(locationAccessorialJson)) {
21
+ this.id = locationAccessorialJson.id;
22
+ this.accessorial_id = locationAccessorialJson.accessorial_id;
23
+ this.contract = locationAccessorialJson.contract;
24
+ this.cost_amount = locationAccessorialJson.cost_amount;
25
+ this.created_at = locationAccessorialJson.created_at;
26
+ this.load_type = locationAccessorialJson.load_type;
27
+ this.location_id = locationAccessorialJson.location_id;
28
+ this.name = locationAccessorialJson.name;
29
+ this.updated_at = locationAccessorialJson.updated_at;
30
+ }
31
+ else
32
+ throw new Error(`Failed to create new instance of ${LocationAccessorial_Entity.name}`);
33
+ }
34
+ id;
35
+ accessorial_id;
36
+ contract;
37
+ cost_amount;
38
+ created_at;
39
+ load_type;
40
+ location_id;
41
+ name;
42
+ updated_at;
43
+ }
44
+ //# sourceMappingURL=locationAccessorial.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationAccessorial.js","sourceRoot":"","sources":["../../../src/entities/locationAccessorial/locationAccessorial.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,uBAAgC;IAEhC,IACE,OAAO,uBAAuB,KAAK,QAAQ;QAC3C,uBAAuB,IAAI,IAAI,EAC/B;QACA,0BAA0B,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC5D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACzD,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,0BAA0B;IAC7C,MAAM,CAAC,cAAc,GAAG,EAAE,CAAC;IAE3B,YAAY,uBAAgC;QAC1C,IAAI,SAAS,CAAC,uBAAuB,CAAC,EAAE;YACtC,IAAI,CAAC,EAAE,GAAG,uBAAuB,CAAC,EAAE,CAAC;YACrC,IAAI,CAAC,cAAc,GAAG,uBAAuB,CAAC,cAAc,CAAC;YAC7D,IAAI,CAAC,QAAQ,GAAG,uBAAuB,CAAC,QAAQ,CAAC;YACjD,IAAI,CAAC,WAAW,GAAG,uBAAuB,CAAC,WAAW,CAAC;YACvD,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,UAAU,CAAC;YACrD,IAAI,CAAC,SAAS,GAAG,uBAAuB,CAAC,SAAS,CAAC;YACnD,IAAI,CAAC,WAAW,GAAG,uBAAuB,CAAC,WAAW,CAAC;YACvD,IAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC,IAAI,CAAC;YACzC,IAAI,CAAC,UAAU,GAAG,uBAAuB,CAAC,UAAU,CAAC;SACtD;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,0BAA0B,CAAC,IAAI,EAAE,CACtE,CAAC;IACN,CAAC;IAED,EAAE,CAAU;IACZ,cAAc,CAAU;IACxB,QAAQ,CAAW;IACnB,WAAW,CAAU;IACrB,UAAU,CAAU;IACpB,SAAS,CAAU;IACnB,WAAW,CAAU;IACrB,IAAI,CAAU;IACd,UAAU,CAAU"}
@@ -0,0 +1,5 @@
1
+ import LocationV1_Entity from "./locationV1";
2
+ export default class LocationV1 extends LocationV1_Entity {
3
+ static fromList(locationV1sJSON: unknown): Array<LocationV1>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import LocationV1_Entity from "./locationV1";
2
+ export default class LocationV1 extends LocationV1_Entity {
3
+ static fromList(locationV1sJSON) {
4
+ const locationV1s = [];
5
+ if (locationV1sJSON)
6
+ Array.isArray(locationV1sJSON) &&
7
+ locationV1sJSON.forEach((locationV1JSON) => {
8
+ locationV1s.push(new LocationV1(locationV1JSON));
9
+ });
10
+ return locationV1s;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/locationV1/helper.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,cAAc,CAAC;AAC7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,iBAAiB;IACvD,MAAM,CAAC,QAAQ,CAAC,eAAwB;QACtC,MAAM,WAAW,GAAiB,EAAE,CAAC;QACrC,IAAI,eAAe;YACjB,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;gBAC5B,eAAe,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;oBACzC,WAAW,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnD,CAAC,CAAC,CAAC;QACP,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as LocationV1 } from "./helper";
2
+ export { default as LocationV1_Entity } from "./locationV1";
@@ -0,0 +1,3 @@
1
+ export { default as LocationV1 } from "./helper";
2
+ export { default as LocationV1_Entity } from "./locationV1";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/locationV1/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,73 @@
1
+ export default class LocationV1_Entity {
2
+ static requiredFields: never[];
3
+ constructor(locationV1Json: unknown);
4
+ avg_ltl_wait_time?: number;
5
+ avg_tl_wait_time?: number;
6
+ contact?: string;
7
+ customer_reference?: string;
8
+ directions?: string;
9
+ driver_instructions?: string;
10
+ driver_notes?: string;
11
+ drop_dwell_time?: number;
12
+ drop_location?: boolean;
13
+ email_addresses?: string;
14
+ ext_number?: string;
15
+ extra_amount?: number;
16
+ fax?: string;
17
+ first_come_date?: string;
18
+ first_come_first_serve?: boolean;
19
+ first_come_in?: string;
20
+ first_come_out?: string;
21
+ id?: number;
22
+ ignore_kpi?: boolean;
23
+ inactive?: boolean;
24
+ inactive_date?: string;
25
+ liftgate_required?: boolean;
26
+ ltl_loading_time?: number;
27
+ name?: string;
28
+ needs_file?: boolean;
29
+ needs_liquor_permit?: boolean;
30
+ notes?: string;
31
+ packing_list?: boolean;
32
+ phone?: string;
33
+ phone800?: string;
34
+ possible_overweight?: boolean;
35
+ preschedule_days?: number;
36
+ preschedule_stamp?: number;
37
+ prev_apts?: string;
38
+ radius?: number;
39
+ rail_yard?: boolean;
40
+ rating?: number;
41
+ reference_code?: number;
42
+ scheduling_channel?: string;
43
+ scheduling_notes?: string;
44
+ search_name?: string;
45
+ shipper_drop_dwell_time?: number;
46
+ straight_loading?: boolean;
47
+ straight_truck_required?: boolean;
48
+ strict_scheduling?: boolean;
49
+ time_from?: string;
50
+ time_to?: string;
51
+ tl_loading_time?: number;
52
+ tms_link?: string;
53
+ name_display?: string;
54
+ times_used?: number;
55
+ address_id?: number;
56
+ description?: string;
57
+ line1?: string;
58
+ line2?: string;
59
+ city?: string;
60
+ state?: string;
61
+ zip?: string;
62
+ country?: string;
63
+ latitude?: number;
64
+ longitude?: number;
65
+ partial_match?: boolean;
66
+ timezone?: number;
67
+ verified?: boolean;
68
+ place_id?: string;
69
+ formatted_address?: string;
70
+ alt_place_id?: string;
71
+ location_accessorial_ids?: number[];
72
+ archer_file_ids?: number[];
73
+ }
@@ -0,0 +1,163 @@
1
+ /**
2
+ * LocationV1_Entity type guard.
3
+ *
4
+ * @param {any} locationV1Json LocationV1 object from API
5
+ * @returns {boolean} Return true if type is LocationV1_Entity
6
+ */
7
+ function validator(locationV1Json) {
8
+ if (typeof locationV1Json === "object" && locationV1Json != null) {
9
+ LocationV1_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(locationV1Json).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class LocationV1_Entity {
17
+ static requiredFields = [];
18
+ constructor(locationV1Json) {
19
+ if (validator(locationV1Json)) {
20
+ this.id = locationV1Json.id;
21
+ this.avg_ltl_wait_time = locationV1Json.avg_ltl_wait_time;
22
+ this.avg_tl_wait_time = locationV1Json.avg_tl_wait_time;
23
+ this.contact = locationV1Json.contact;
24
+ this.customer_reference = locationV1Json.customer_reference;
25
+ this.directions = locationV1Json.directions;
26
+ this.driver_instructions = locationV1Json.driver_instructions;
27
+ this.driver_notes = locationV1Json.driver_notes;
28
+ this.drop_dwell_time = locationV1Json.drop_dwell_time;
29
+ this.drop_location = locationV1Json.drop_location;
30
+ this.email_addresses = locationV1Json.email_addresses;
31
+ this.ext_number = locationV1Json.ext_number;
32
+ this.extra_amount = locationV1Json.extra_amount;
33
+ this.fax = locationV1Json.fax;
34
+ this.first_come_date = locationV1Json.first_come_date;
35
+ this.first_come_first_serve = locationV1Json.first_come_first_serve;
36
+ this.first_come_in = locationV1Json.first_come_in;
37
+ this.first_come_out = locationV1Json.first_come_out;
38
+ this.ignore_kpi = locationV1Json.ignore_kpi;
39
+ this.inactive = locationV1Json.inactive;
40
+ this.inactive_date = locationV1Json.inactive_date;
41
+ this.liftgate_required = locationV1Json.liftgate_required;
42
+ this.ltl_loading_time = locationV1Json.ltl_loading_time;
43
+ this.name = locationV1Json.name;
44
+ this.needs_file = locationV1Json.needs_file;
45
+ this.needs_liquor_permit = locationV1Json.needs_liquor_permit;
46
+ this.notes = locationV1Json.notes;
47
+ this.packing_list = locationV1Json.packing_list;
48
+ this.phone = locationV1Json.phone;
49
+ this.phone800 = locationV1Json.phone800;
50
+ this.possible_overweight = locationV1Json.possible_overweight;
51
+ this.preschedule_days = locationV1Json.preschedule_days;
52
+ this.preschedule_stamp = locationV1Json.preschedule_stamp;
53
+ this.prev_apts = locationV1Json.prev_apts;
54
+ this.radius = locationV1Json.radius;
55
+ this.rail_yard = locationV1Json.rail_yard;
56
+ this.rating = locationV1Json.rating;
57
+ this.reference_code = locationV1Json.reference_code;
58
+ this.scheduling_channel = locationV1Json.scheduling_channel;
59
+ this.scheduling_notes = locationV1Json.scheduling_notes;
60
+ this.search_name = locationV1Json.search_name;
61
+ this.shipper_drop_dwell_time = locationV1Json.shipper_drop_dwell_time;
62
+ this.straight_loading = locationV1Json.straight_loading;
63
+ this.straight_truck_required = locationV1Json.straight_truck_required;
64
+ this.strict_scheduling = locationV1Json.strict_scheduling;
65
+ this.time_from = locationV1Json.time_from;
66
+ this.time_to = locationV1Json.time_to;
67
+ this.tl_loading_time = locationV1Json.tl_loading_time;
68
+ this.tms_link = locationV1Json.tms_link;
69
+ this.name_display = locationV1Json.name_display;
70
+ this.times_used = locationV1Json.times_used;
71
+ this.address_id = locationV1Json.address_id;
72
+ this.description = locationV1Json.description;
73
+ this.line1 = locationV1Json.line1;
74
+ this.line2 = locationV1Json.line2;
75
+ this.city = locationV1Json.city;
76
+ this.state = locationV1Json.state;
77
+ this.zip = locationV1Json.zip;
78
+ this.country = locationV1Json.country;
79
+ this.latitude = locationV1Json.latitude;
80
+ this.longitude = locationV1Json.longitude;
81
+ this.partial_match = locationV1Json.partial_match;
82
+ this.timezone = locationV1Json.timezone;
83
+ this.verified = locationV1Json.verified;
84
+ this.place_id = locationV1Json.place_id;
85
+ this.formatted_address = locationV1Json.formatted_address;
86
+ this.alt_place_id = locationV1Json.alt_place_id;
87
+ this.location_accessorial_ids = locationV1Json.location_accessorial_ids;
88
+ this.archer_file_ids = locationV1Json.archer_file_ids;
89
+ }
90
+ else
91
+ throw new Error(`Failed to create new instance of ${LocationV1_Entity.name}`);
92
+ }
93
+ avg_ltl_wait_time;
94
+ avg_tl_wait_time;
95
+ contact;
96
+ customer_reference;
97
+ directions;
98
+ driver_instructions;
99
+ driver_notes;
100
+ drop_dwell_time;
101
+ drop_location;
102
+ email_addresses;
103
+ ext_number;
104
+ extra_amount;
105
+ fax;
106
+ first_come_date;
107
+ first_come_first_serve;
108
+ first_come_in;
109
+ first_come_out;
110
+ id;
111
+ ignore_kpi;
112
+ inactive;
113
+ inactive_date;
114
+ liftgate_required;
115
+ ltl_loading_time;
116
+ name;
117
+ needs_file;
118
+ needs_liquor_permit;
119
+ notes;
120
+ packing_list;
121
+ phone;
122
+ phone800;
123
+ possible_overweight;
124
+ preschedule_days;
125
+ preschedule_stamp;
126
+ prev_apts;
127
+ radius;
128
+ rail_yard;
129
+ rating;
130
+ reference_code;
131
+ scheduling_channel;
132
+ scheduling_notes;
133
+ search_name;
134
+ shipper_drop_dwell_time;
135
+ straight_loading;
136
+ straight_truck_required;
137
+ strict_scheduling;
138
+ time_from;
139
+ time_to;
140
+ tl_loading_time;
141
+ tms_link;
142
+ name_display;
143
+ times_used;
144
+ address_id;
145
+ description;
146
+ line1;
147
+ line2;
148
+ city;
149
+ state;
150
+ zip;
151
+ country;
152
+ latitude;
153
+ longitude;
154
+ partial_match;
155
+ timezone;
156
+ verified;
157
+ place_id;
158
+ formatted_address;
159
+ alt_place_id;
160
+ location_accessorial_ids;
161
+ archer_file_ids;
162
+ }
163
+ //# sourceMappingURL=locationV1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locationV1.js","sourceRoot":"","sources":["../../../src/entities/locationV1/locationV1.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,cAAuB;IAEvB,IAAI,OAAO,cAAc,KAAK,QAAQ,IAAI,cAAc,IAAI,IAAI,EAAE;QAChE,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACnD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAChD,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AAC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gBAAgB,CAAW;IAC3B,uBAAuB,CAAW;IAClC,iBAAiB,CAAW;IAC5B,SAAS,CAAU;IACnB,OAAO,CAAU;IACjB,eAAe,CAAU;IACzB,QAAQ,CAAU;IAClB,YAAY,CAAU;IACtB,UAAU,CAAU;IACpB,UAAU,CAAU;IACpB,WAAW,CAAU;IACrB,KAAK,CAAU;IACf,KAAK,CAAU;IACf,IAAI,CAAU;IACd,KAAK,CAAU;IACf,GAAG,CAAU;IACb,OAAO,CAAU;IACjB,QAAQ,CAAU;IAClB,SAAS,CAAU;IACnB,aAAa,CAAW;IACxB,QAAQ,CAAU;IAClB,QAAQ,CAAW;IACnB,QAAQ,CAAU;IAClB,iBAAiB,CAAU;IAC3B,YAAY,CAAU;IACtB,wBAAwB,CAAY;IACpC,eAAe,CAAY"}
@@ -0,0 +1,5 @@
1
+ import NmfcClass_Entity from "./nmfcClass";
2
+ export default class NmfcClass extends NmfcClass_Entity {
3
+ static fromList(nmfcClasssJSON: unknown): Array<NmfcClass>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import NmfcClass_Entity from "./nmfcClass";
2
+ export default class NmfcClass extends NmfcClass_Entity {
3
+ static fromList(nmfcClasssJSON) {
4
+ const nmfcClasss = [];
5
+ if (nmfcClasssJSON)
6
+ Array.isArray(nmfcClasssJSON) &&
7
+ nmfcClasssJSON.forEach((nmfcClassJSON) => {
8
+ nmfcClasss.push(new NmfcClass(nmfcClassJSON));
9
+ });
10
+ return nmfcClasss;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/nmfcClass/helper.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,gBAAgB;IACrD,MAAM,CAAC,QAAQ,CAAC,cAAuB;QACrC,MAAM,UAAU,GAAgB,EAAE,CAAC;QACnC,IAAI,cAAc;YAChB,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC;gBAC3B,cAAc,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,EAAE;oBACvC,UAAU,CAAC,IAAI,CAAC,IAAI,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;gBAChD,CAAC,CAAC,CAAC;QACP,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as NmfcClass } from "./helper";
2
+ export { default as NmfcClass_Entity } from "./nmfcClass";
@@ -0,0 +1,3 @@
1
+ export { default as NmfcClass } from "./helper";
2
+ export { default as NmfcClass_Entity } from "./nmfcClass";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/nmfcClass/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,11 @@
1
+ export default class NmfcClass_Entity {
2
+ static requiredFields: string[];
3
+ constructor(nmfcClassJson: unknown);
4
+ cost?: number;
5
+ created_at?: string;
6
+ description?: string;
7
+ id?: number;
8
+ name?: string;
9
+ updated_at?: string;
10
+ value?: number;
11
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * NmfcClass_Entity type guard.
3
+ *
4
+ * @param {any} nmfcClassJson NmfcClass object from API
5
+ * @returns {boolean} Return true if type is NmfcClass_Entity
6
+ */
7
+ function validator(nmfcClassJson) {
8
+ if (typeof nmfcClassJson === "object" && nmfcClassJson != null) {
9
+ NmfcClass_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(nmfcClassJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class NmfcClass_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(nmfcClassJson) {
19
+ if (validator(nmfcClassJson)) {
20
+ this.id = nmfcClassJson.id;
21
+ this.cost = nmfcClassJson.cost;
22
+ this.created_at = nmfcClassJson.created_at;
23
+ this.description = nmfcClassJson.description;
24
+ this.name = nmfcClassJson.name;
25
+ this.updated_at = nmfcClassJson.updated_at;
26
+ this.value = nmfcClassJson.value;
27
+ }
28
+ else
29
+ throw new Error(`Failed to create new instance of ${NmfcClass_Entity.name}`);
30
+ }
31
+ cost;
32
+ created_at;
33
+ description;
34
+ id;
35
+ name;
36
+ updated_at;
37
+ value;
38
+ }
39
+ //# sourceMappingURL=nmfcClass.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nmfcClass.js","sourceRoot":"","sources":["../../../src/entities/nmfcClass/nmfcClass.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,aAAsB;IACvC,IAAI,OAAO,aAAa,KAAK,QAAQ,IAAI,aAAa,IAAI,IAAI,EAAE;QAC9D,gBAAgB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAClD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC/C,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,MAAM,CAAC,cAAc,GAAG,CAAC,IAAI,CAAC,CAAC;IAE/B,YAAY,aAAsB;QAChC,IAAI,SAAS,CAAC,aAAa,CAAC,EAAE;YAC5B,IAAI,CAAC,EAAE,GAAG,aAAa,CAAC,EAAE,CAAC;YAC3B,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;YAC/B,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;YAC3C,IAAI,CAAC,WAAW,GAAG,aAAa,CAAC,WAAW,CAAC;YAC7C,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC;YAC/B,IAAI,CAAC,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC;YAC3C,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC;SAClC;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,gBAAgB,CAAC,IAAI,EAAE,CAC5D,CAAC;IACN,CAAC;IAED,IAAI,CAAU;IACd,UAAU,CAAU;IACpB,WAAW,CAAU;IACrB,EAAE,CAAU;IACZ,IAAI,CAAU;IACd,UAAU,CAAU;IACpB,KAAK,CAAU"}
@@ -0,0 +1,5 @@
1
+ import NodeName_Entity from "./nodeName";
2
+ export default class NodeName extends NodeName_Entity {
3
+ static fromList(nodeNamesJSON: unknown): Array<NodeName>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import NodeName_Entity from "./nodeName";
2
+ export default class NodeName extends NodeName_Entity {
3
+ static fromList(nodeNamesJSON) {
4
+ const nodeNames = [];
5
+ if (nodeNamesJSON)
6
+ Array.isArray(nodeNamesJSON) &&
7
+ nodeNamesJSON.forEach((nodeNameJSON) => {
8
+ nodeNames.push(new NodeName(nodeNameJSON));
9
+ });
10
+ return nodeNames;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/nodeName/helper.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,YAAY,CAAC;AACzC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,eAAe;IACnD,MAAM,CAAC,QAAQ,CAAC,aAAsB;QACpC,MAAM,SAAS,GAAe,EAAE,CAAC;QACjC,IAAI,aAAa;YACf,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC;gBAC1B,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;oBACrC,SAAS,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;gBAC7C,CAAC,CAAC,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as NodeName } from "./helper";
2
+ export { default as NodeName_Entity } from "./nodeName";
@@ -0,0 +1,3 @@
1
+ export { default as NodeName } from "./helper";
2
+ export { default as NodeName_Entity } from "./nodeName";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/nodeName/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,14 @@
1
+ export default class NodeName_Entity {
2
+ static requiredFields: never[];
3
+ constructor(nodeNameJson: unknown);
4
+ id?: number;
5
+ name?: string;
6
+ line1?: string;
7
+ city?: string;
8
+ state?: string;
9
+ zip?: string;
10
+ node_type_ids?: string;
11
+ lat?: number;
12
+ lng?: number;
13
+ area_id?: number;
14
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * NodeName_Entity type guard.
3
+ *
4
+ * @param {any} nodeNameJson NodeName object from API
5
+ * @returns {boolean} Return true if type is NodeName_Entity
6
+ */
7
+ function validator(nodeNameJson) {
8
+ if (typeof nodeNameJson === "object" && nodeNameJson != null) {
9
+ NodeName_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(nodeNameJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class NodeName_Entity {
17
+ static requiredFields = [];
18
+ constructor(nodeNameJson) {
19
+ if (validator(nodeNameJson)) {
20
+ this.id = nodeNameJson.id;
21
+ this.area_id = nodeNameJson.area_id;
22
+ this.city = nodeNameJson.city;
23
+ this.lat = nodeNameJson.lat;
24
+ this.line1 = nodeNameJson.line1;
25
+ this.lng = nodeNameJson.lng;
26
+ this.name = nodeNameJson.name;
27
+ this.node_type_ids = nodeNameJson.node_type_ids;
28
+ this.state = nodeNameJson.state;
29
+ this.zip = nodeNameJson.zip;
30
+ }
31
+ else
32
+ throw new Error(`Failed to create new instance of ${NodeName_Entity.name}`);
33
+ }
34
+ id;
35
+ name;
36
+ line1;
37
+ city;
38
+ state;
39
+ zip;
40
+ node_type_ids;
41
+ lat;
42
+ lng;
43
+ area_id;
44
+ }
45
+ //# sourceMappingURL=nodeName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeName.js","sourceRoot":"","sources":["../../../src/entities/nodeName/nodeName.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,YAAqB;IACtC,IAAI,OAAO,YAAY,KAAK,QAAQ,IAAI,YAAY,IAAI,IAAI,EAAE;QAC5D,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACjD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC9C,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,eAAe;IAClC,MAAM,CAAC,cAAc,GAAG,EAAE,CAAC;IAE3B,YAAY,YAAqB;QAC/B,IAAI,SAAS,CAAC,YAAY,CAAC,EAAE;YAC3B,IAAI,CAAC,EAAE,GAAG,YAAY,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,OAAO,CAAC;YACpC,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;YAC9B,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;YAC5B,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;YAChC,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;YAC5B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;YAC9B,IAAI,CAAC,aAAa,GAAG,YAAY,CAAC,aAAa,CAAC;YAChD,IAAI,CAAC,KAAK,GAAG,YAAY,CAAC,KAAK,CAAC;YAChC,IAAI,CAAC,GAAG,GAAG,YAAY,CAAC,GAAG,CAAC;SAC7B;;YACC,MAAM,IAAI,KAAK,CACb,oCAAoC,eAAe,CAAC,IAAI,EAAE,CAC3D,CAAC;IACN,CAAC;IAED,EAAE,CAAU;IACZ,IAAI,CAAU;IACd,KAAK,CAAU;IACf,IAAI,CAAU;IACd,KAAK,CAAU;IACf,GAAG,CAAU;IACb,aAAa,CAAU;IACvB,GAAG,CAAU;IACb,GAAG,CAAU;IACb,OAAO,CAAU"}
@@ -0,0 +1,5 @@
1
+ import PersonName_Entity from "./personName";
2
+ export default class PersonName extends PersonName_Entity {
3
+ static fromList(personNamesJSON: unknown): Array<PersonName>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import PersonName_Entity from "./personName";
2
+ export default class PersonName extends PersonName_Entity {
3
+ static fromList(personNamesJSON) {
4
+ const personNames = [];
5
+ if (personNamesJSON)
6
+ Array.isArray(personNamesJSON) &&
7
+ personNamesJSON.forEach((personNameJSON) => {
8
+ personNames.push(new PersonName(personNameJSON));
9
+ });
10
+ return personNames;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/personName/helper.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,cAAc,CAAC;AAC7C,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,iBAAiB;IACvD,MAAM,CAAC,QAAQ,CAAC,eAAwB;QACtC,MAAM,WAAW,GAAiB,EAAE,CAAC;QACrC,IAAI,eAAe;YACjB,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;gBAC5B,eAAe,CAAC,OAAO,CAAC,CAAC,cAAc,EAAE,EAAE;oBACzC,WAAW,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC;gBACnD,CAAC,CAAC,CAAC;QACP,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as PersonName } from "./helper";
2
+ export { default as PersonName_Entity } from "./personName";
@@ -0,0 +1,3 @@
1
+ export { default as PersonName } from "./helper";
2
+ export { default as PersonName_Entity } from "./personName";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/personName/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,12 @@
1
+ export default class PersonName_Entity {
2
+ static requiredFields: never[];
3
+ constructor(personNameJson: unknown);
4
+ id?: number;
5
+ name?: string;
6
+ active?: boolean;
7
+ reference_code?: string;
8
+ email?: string;
9
+ company_id?: number;
10
+ supervisor_id?: number;
11
+ uuid?: string;
12
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * PersonName_Entity type guard.
3
+ *
4
+ * @param {any} personNameJson PersonName object from API
5
+ * @returns {boolean} Return true if type is PersonName_Entity
6
+ */
7
+ function validator(personNameJson) {
8
+ if (typeof personNameJson === "object" && personNameJson != null) {
9
+ PersonName_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(personNameJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class PersonName_Entity {
17
+ static requiredFields = [];
18
+ constructor(personNameJson) {
19
+ if (validator(personNameJson)) {
20
+ this.id = personNameJson.id;
21
+ this.name = personNameJson.name;
22
+ this.active = personNameJson.active;
23
+ this.reference_code = personNameJson.reference_code;
24
+ this.email = personNameJson.email;
25
+ this.company_id = personNameJson.company_id;
26
+ this.supervisor_id = personNameJson.supervisor_id;
27
+ this.uuid = personNameJson.uuid;
28
+ }
29
+ else
30
+ throw new Error(`Failed to create new instance of ${PersonName_Entity.name}`);
31
+ }
32
+ id;
33
+ name;
34
+ active;
35
+ reference_code;
36
+ email;
37
+ company_id;
38
+ supervisor_id;
39
+ uuid;
40
+ }
41
+ //# sourceMappingURL=personName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"personName.js","sourceRoot":"","sources":["../../../src/entities/personName/personName.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,cAAuB;IAEvB,IAAI,OAAO,cAAc,KAAK,QAAQ,IAAI,cAAc,IAAI,IAAI,EAAE;QAChE,iBAAiB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACnD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAChD,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AA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