@nerdjs/sales-kit 1.0.2 → 1.0.3

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 (323) hide show
  1. package/dist/entities/accessorial/accessorial.d.ts +12 -0
  2. package/dist/entities/accessorial/accessorial.js +41 -0
  3. package/dist/entities/accessorial/accessorial.js.map +1 -0
  4. package/dist/entities/accessorial/helper.d.ts +5 -0
  5. package/dist/entities/accessorial/helper.js +16 -0
  6. package/dist/entities/accessorial/helper.js.map +1 -0
  7. package/dist/entities/accessorial/index.d.ts +2 -0
  8. package/dist/entities/accessorial/index.js +3 -0
  9. package/dist/entities/accessorial/index.js.map +1 -0
  10. package/dist/entities/accessorials/accessorials.d.ts +7 -0
  11. package/dist/entities/accessorials/accessorials.js +29 -0
  12. package/dist/entities/accessorials/accessorials.js.map +1 -0
  13. package/dist/entities/accessorials/helper.d.ts +5 -0
  14. package/dist/entities/accessorials/helper.js +16 -0
  15. package/dist/entities/accessorials/helper.js.map +1 -0
  16. package/dist/entities/accessorials/index.d.ts +2 -0
  17. package/dist/entities/accessorials/index.js +3 -0
  18. package/dist/entities/accessorials/index.js.map +1 -0
  19. package/dist/{cjs/entities → entities}/customer/customer.d.ts +16 -16
  20. package/dist/entities/customer/customer.js +63 -0
  21. package/dist/entities/customer/customer.js.map +1 -0
  22. package/dist/{cjs/entities → entities}/customer/helper.d.ts +5 -5
  23. package/dist/entities/customer/helper.js +16 -0
  24. package/dist/entities/customer/helper.js.map +1 -0
  25. package/dist/{cjs/entities → entities}/customer/index.d.ts +1 -1
  26. package/dist/entities/customer/index.js +2 -0
  27. package/dist/entities/customer/index.js.map +1 -0
  28. package/dist/entities/holiday/helper.d.ts +5 -0
  29. package/dist/entities/holiday/helper.js +16 -0
  30. package/dist/entities/holiday/helper.js.map +1 -0
  31. package/dist/entities/holiday/holiday.d.ts +7 -0
  32. package/dist/entities/holiday/holiday.js +31 -0
  33. package/dist/entities/holiday/holiday.js.map +1 -0
  34. package/dist/entities/holiday/index.d.ts +2 -0
  35. package/dist/entities/holiday/index.js +3 -0
  36. package/dist/entities/holiday/index.js.map +1 -0
  37. package/dist/entities/index.d.ts +12 -0
  38. package/dist/entities/index.js +13 -0
  39. package/dist/entities/index.js.map +1 -0
  40. package/dist/entities/load/helper.d.ts +6 -0
  41. package/dist/entities/load/helper.js +28 -0
  42. package/dist/entities/load/helper.js.map +1 -0
  43. package/dist/entities/load/index.d.ts +2 -0
  44. package/dist/entities/load/index.js +3 -0
  45. package/dist/entities/load/index.js.map +1 -0
  46. package/dist/entities/load/load.d.ts +102 -0
  47. package/dist/entities/load/load.js +224 -0
  48. package/dist/entities/load/load.js.map +1 -0
  49. package/dist/entities/loadAdjustment/helper.d.ts +5 -0
  50. package/dist/entities/loadAdjustment/helper.js +16 -0
  51. package/dist/entities/loadAdjustment/helper.js.map +1 -0
  52. package/dist/entities/loadAdjustment/index.d.ts +2 -0
  53. package/dist/entities/loadAdjustment/index.js +3 -0
  54. package/dist/entities/loadAdjustment/index.js.map +1 -0
  55. package/dist/entities/loadAdjustment/loadAdjustment.d.ts +15 -0
  56. package/dist/entities/loadAdjustment/loadAdjustment.js +48 -0
  57. package/dist/entities/loadAdjustment/loadAdjustment.js.map +1 -0
  58. package/dist/{cjs/entities → entities}/location/helper.d.ts +5 -5
  59. package/dist/entities/location/helper.js +16 -0
  60. package/dist/entities/location/helper.js.map +1 -0
  61. package/dist/{cjs/entities → entities}/location/index.d.ts +2 -2
  62. package/dist/entities/location/index.js +3 -0
  63. package/dist/entities/location/index.js.map +1 -0
  64. package/dist/{cjs/entities → entities}/location/location.d.ts +33 -32
  65. package/dist/entities/location/location.js +47 -0
  66. package/dist/entities/location/location.js.map +1 -0
  67. package/dist/{cjs/entities → entities}/marketCosts/helper.d.ts +5 -5
  68. package/dist/entities/marketCosts/helper.js +16 -0
  69. package/dist/entities/marketCosts/helper.js.map +1 -0
  70. package/dist/{cjs/entities → entities}/marketCosts/index.d.ts +2 -2
  71. package/dist/entities/marketCosts/index.js +3 -0
  72. package/dist/entities/marketCosts/index.js.map +1 -0
  73. package/dist/{cjs/entities → entities}/marketCosts/marketCosts.d.ts +22 -22
  74. package/dist/entities/marketCosts/marketCosts.js +60 -0
  75. package/dist/entities/marketCosts/marketCosts.js.map +1 -0
  76. package/dist/{cjs/entities → entities}/quote/helper.d.ts +5 -5
  77. package/dist/entities/quote/helper.js +16 -0
  78. package/dist/entities/quote/helper.js.map +1 -0
  79. package/dist/{cjs/entities → entities}/quote/index.d.ts +2 -2
  80. package/dist/entities/quote/index.js +3 -0
  81. package/dist/entities/quote/index.js.map +1 -0
  82. package/dist/entities/quote/quote.d.ts +76 -0
  83. package/dist/entities/quote/quote.js +46 -0
  84. package/dist/entities/quote/quote.js.map +1 -0
  85. package/dist/entities/quoteAccessorial/helper.d.ts +5 -0
  86. package/dist/entities/quoteAccessorial/helper.js +16 -0
  87. package/dist/entities/quoteAccessorial/helper.js.map +1 -0
  88. package/dist/entities/quoteAccessorial/index.d.ts +2 -0
  89. package/dist/entities/quoteAccessorial/index.js +3 -0
  90. package/dist/entities/quoteAccessorial/index.js.map +1 -0
  91. package/dist/entities/quoteAccessorial/quoteAccessorial.d.ts +29 -0
  92. package/dist/entities/quoteAccessorial/quoteAccessorial.js +77 -0
  93. package/dist/entities/quoteAccessorial/quoteAccessorial.js.map +1 -0
  94. package/dist/entities/quoteResponse/helper.d.ts +5 -0
  95. package/dist/entities/quoteResponse/helper.js +16 -0
  96. package/dist/entities/quoteResponse/helper.js.map +1 -0
  97. package/dist/entities/quoteResponse/index.d.ts +2 -0
  98. package/dist/entities/quoteResponse/index.js +3 -0
  99. package/dist/entities/quoteResponse/index.js.map +1 -0
  100. package/dist/entities/quoteResponse/quoteResponse.d.ts +72 -0
  101. package/dist/entities/quoteResponse/quoteResponse.js +67 -0
  102. package/dist/entities/quoteResponse/quoteResponse.js.map +1 -0
  103. package/dist/entities/shipcon/helper.d.ts +6 -0
  104. package/dist/entities/shipcon/helper.js +20 -0
  105. package/dist/entities/shipcon/helper.js.map +1 -0
  106. package/dist/entities/shipcon/index.d.ts +2 -0
  107. package/dist/entities/shipcon/index.js +3 -0
  108. package/dist/entities/shipcon/index.js.map +1 -0
  109. package/dist/entities/shipcon/shipcon.d.ts +27 -0
  110. package/dist/entities/shipcon/shipcon.js +74 -0
  111. package/dist/entities/shipcon/shipcon.js.map +1 -0
  112. package/dist/helpers.d.ts +18 -0
  113. package/dist/helpers.js +29 -0
  114. package/dist/helpers.js.map +1 -0
  115. package/dist/hooks/index.d.ts +2 -0
  116. package/dist/hooks/index.js +3 -0
  117. package/dist/hooks/index.js.map +1 -0
  118. package/dist/hooks/locationsForm/index.d.ts +1 -0
  119. package/dist/hooks/locationsForm/index.js +2 -0
  120. package/dist/hooks/locationsForm/index.js.map +1 -0
  121. package/dist/hooks/locationsForm/locationsForm.d.ts +2 -0
  122. package/dist/hooks/locationsForm/locationsForm.js +35 -0
  123. package/dist/hooks/locationsForm/locationsForm.js.map +1 -0
  124. package/dist/hooks/quote/constants.d.ts +187 -0
  125. package/dist/hooks/quote/constants.js +137 -0
  126. package/dist/hooks/quote/constants.js.map +1 -0
  127. package/dist/hooks/quote/form.d.ts +7 -0
  128. package/dist/hooks/quote/form.js +203 -0
  129. package/dist/hooks/quote/form.js.map +1 -0
  130. package/dist/hooks/quote/helpers.d.ts +39 -0
  131. package/dist/hooks/quote/helpers.js +366 -0
  132. package/dist/hooks/quote/helpers.js.map +1 -0
  133. package/dist/hooks/quote/index.d.ts +5 -0
  134. package/dist/hooks/quote/index.js +6 -0
  135. package/dist/hooks/quote/index.js.map +1 -0
  136. package/dist/hooks/quote/result.d.ts +7 -0
  137. package/dist/hooks/quote/result.js +196 -0
  138. package/dist/hooks/quote/result.js.map +1 -0
  139. package/dist/hooks/quote/template.d.ts +7 -0
  140. package/dist/hooks/quote/template.js +113 -0
  141. package/dist/hooks/quote/template.js.map +1 -0
  142. package/dist/index.d.ts +3 -0
  143. package/dist/index.js +4 -0
  144. package/dist/index.js.map +1 -0
  145. package/dist/redux/appState.d.ts +4 -0
  146. package/dist/redux/appState.js +2 -0
  147. package/dist/redux/appState.js.map +1 -0
  148. package/dist/redux/customer/customerActions.d.ts +97 -0
  149. package/dist/redux/customer/customerActions.js +210 -0
  150. package/dist/redux/customer/customerActions.js.map +1 -0
  151. package/dist/redux/customer/customerReducer.d.ts +2 -0
  152. package/dist/redux/customer/customerReducer.js +42 -0
  153. package/dist/redux/customer/customerReducer.js.map +1 -0
  154. package/dist/redux/customer/customerSelector.d.ts +27 -0
  155. package/dist/redux/customer/customerSelector.js +38 -0
  156. package/dist/redux/customer/customerSelector.js.map +1 -0
  157. package/dist/redux/customer/customerState.d.ts +11 -0
  158. package/dist/redux/customer/customerState.js +2 -0
  159. package/dist/redux/customer/customerState.js.map +1 -0
  160. package/dist/redux/customer/index.d.ts +4 -0
  161. package/dist/redux/customer/index.js +5 -0
  162. package/dist/redux/customer/index.js.map +1 -0
  163. package/dist/redux/index.d.ts +8 -0
  164. package/dist/redux/index.js +9 -0
  165. package/dist/redux/index.js.map +1 -0
  166. package/dist/redux/load/index.d.ts +4 -0
  167. package/dist/redux/load/index.js +5 -0
  168. package/dist/redux/load/index.js.map +1 -0
  169. package/dist/redux/load/loadActions.d.ts +80 -0
  170. package/dist/redux/load/loadActions.js +172 -0
  171. package/dist/redux/load/loadActions.js.map +1 -0
  172. package/dist/redux/load/loadReducer.d.ts +2 -0
  173. package/dist/redux/load/loadReducer.js +35 -0
  174. package/dist/redux/load/loadReducer.js.map +1 -0
  175. package/dist/redux/load/loadSelector.d.ts +27 -0
  176. package/dist/redux/load/loadSelector.js +19 -0
  177. package/dist/redux/load/loadSelector.js.map +1 -0
  178. package/dist/redux/load/loadState.d.ts +8 -0
  179. package/dist/redux/load/loadState.js +2 -0
  180. package/dist/redux/load/loadState.js.map +1 -0
  181. package/dist/redux/loadAdjustment/index.d.ts +4 -0
  182. package/dist/redux/loadAdjustment/index.js +5 -0
  183. package/dist/redux/loadAdjustment/index.js.map +1 -0
  184. package/dist/redux/loadAdjustment/loadAdjustmentActions.d.ts +80 -0
  185. package/dist/redux/loadAdjustment/loadAdjustmentActions.js +172 -0
  186. package/dist/redux/loadAdjustment/loadAdjustmentActions.js.map +1 -0
  187. package/dist/redux/loadAdjustment/loadAdjustmentReducer.d.ts +2 -0
  188. package/dist/redux/loadAdjustment/loadAdjustmentReducer.js +35 -0
  189. package/dist/redux/loadAdjustment/loadAdjustmentReducer.js.map +1 -0
  190. package/dist/redux/loadAdjustment/loadAdjustmentSelector.d.ts +15 -0
  191. package/dist/redux/loadAdjustment/loadAdjustmentSelector.js +12 -0
  192. package/dist/redux/loadAdjustment/loadAdjustmentSelector.js.map +1 -0
  193. package/dist/redux/loadAdjustment/loadAdjustmentState.d.ts +8 -0
  194. package/dist/redux/loadAdjustment/loadAdjustmentState.js +2 -0
  195. package/dist/redux/loadAdjustment/loadAdjustmentState.js.map +1 -0
  196. package/dist/redux/location/index.d.ts +4 -0
  197. package/dist/redux/location/index.js +5 -0
  198. package/dist/redux/location/index.js.map +1 -0
  199. package/dist/redux/location/locationActions.d.ts +101 -0
  200. package/dist/redux/location/locationActions.js +218 -0
  201. package/dist/redux/location/locationActions.js.map +1 -0
  202. package/dist/redux/location/locationReducer.d.ts +2 -0
  203. package/dist/redux/location/locationReducer.js +54 -0
  204. package/dist/redux/location/locationReducer.js.map +1 -0
  205. package/dist/redux/location/locationSelector.d.ts +53 -0
  206. package/dist/redux/location/locationSelector.js +32 -0
  207. package/dist/redux/location/locationSelector.js.map +1 -0
  208. package/dist/redux/location/locationState.d.ts +15 -0
  209. package/dist/redux/location/locationState.js +2 -0
  210. package/dist/redux/location/locationState.js.map +1 -0
  211. package/dist/{cjs/redux → redux}/quote/index.d.ts +5 -4
  212. package/dist/redux/quote/index.js +6 -0
  213. package/dist/redux/quote/index.js.map +1 -0
  214. package/dist/redux/quote/quoteAction.d.ts +177 -0
  215. package/dist/redux/quote/quoteAction.js +351 -0
  216. package/dist/redux/quote/quoteAction.js.map +1 -0
  217. package/dist/redux/quote/quoteMiddleware.d.ts +2 -0
  218. package/dist/redux/quote/quoteMiddleware.js +31 -0
  219. package/dist/redux/quote/quoteMiddleware.js.map +1 -0
  220. package/dist/redux/quote/quoteReducer.d.ts +27 -0
  221. package/dist/redux/quote/quoteReducer.js +207 -0
  222. package/dist/redux/quote/quoteReducer.js.map +1 -0
  223. package/dist/redux/quote/quoteSelector.d.ts +199 -0
  224. package/dist/redux/quote/quoteSelector.js +141 -0
  225. package/dist/redux/quote/quoteSelector.js.map +1 -0
  226. package/dist/redux/quote/quoteState.d.ts +9 -0
  227. package/dist/redux/quote/quoteState.js +2 -0
  228. package/dist/redux/quote/quoteState.js.map +1 -0
  229. package/dist/redux/quoteAccessorial/index.d.ts +3 -0
  230. package/dist/redux/quoteAccessorial/index.js +4 -0
  231. package/dist/redux/quoteAccessorial/index.js.map +1 -0
  232. package/dist/redux/quoteAccessorial/quoteAccessorialActions.d.ts +70 -0
  233. package/dist/redux/quoteAccessorial/quoteAccessorialActions.js +149 -0
  234. package/dist/redux/quoteAccessorial/quoteAccessorialActions.js.map +1 -0
  235. package/dist/redux/quoteAccessorial/quoteAccessorialReducer.d.ts +2 -0
  236. package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js +29 -0
  237. package/dist/redux/quoteAccessorial/quoteAccessorialReducer.js.map +1 -0
  238. package/dist/redux/quoteAccessorial/quoteAccessorialState.d.ts +8 -0
  239. package/dist/redux/quoteAccessorial/quoteAccessorialState.js +2 -0
  240. package/dist/redux/quoteAccessorial/quoteAccessorialState.js.map +1 -0
  241. package/dist/redux/salesKitReducer.d.ts +25 -0
  242. package/dist/redux/salesKitReducer.js +18 -0
  243. package/dist/redux/salesKitReducer.js.map +1 -0
  244. package/dist/redux/shipcon/index.d.ts +4 -0
  245. package/dist/redux/shipcon/index.js +5 -0
  246. package/dist/redux/shipcon/index.js.map +1 -0
  247. package/dist/redux/shipcon/shipconActions.d.ts +80 -0
  248. package/dist/redux/shipcon/shipconActions.js +172 -0
  249. package/dist/redux/shipcon/shipconActions.js.map +1 -0
  250. package/dist/redux/shipcon/shipconReducer.d.ts +2 -0
  251. package/dist/redux/shipcon/shipconReducer.js +35 -0
  252. package/dist/redux/shipcon/shipconReducer.js.map +1 -0
  253. package/dist/redux/shipcon/shipconSelector.d.ts +22 -0
  254. package/dist/redux/shipcon/shipconSelector.js +19 -0
  255. package/dist/redux/shipcon/shipconSelector.js.map +1 -0
  256. package/dist/redux/shipcon/shipconState.d.ts +8 -0
  257. package/dist/redux/shipcon/shipconState.js +2 -0
  258. package/dist/redux/shipcon/shipconState.js.map +1 -0
  259. package/package.json +39 -70
  260. package/dist/cjs/components/calendar/calendar.d.ts +0 -5
  261. package/dist/cjs/components/calendar/day/day.d.ts +0 -8
  262. package/dist/cjs/components/calendar/day/index.d.ts +0 -1
  263. package/dist/cjs/components/calendar/day/typings.d.ts +0 -16
  264. package/dist/cjs/components/calendar/index.d.ts +0 -2
  265. package/dist/cjs/components/calendar/typings.d.ts +0 -27
  266. package/dist/cjs/components/customerFinder/customerFinder.d.ts +0 -11
  267. package/dist/cjs/components/customerFinder/index.d.ts +0 -2
  268. package/dist/cjs/components/customerFinder/optionTemplate.d.ts +0 -6
  269. package/dist/cjs/components/index.d.ts +0 -4
  270. package/dist/cjs/components/locationFinder/editLocation.d.ts +0 -15
  271. package/dist/cjs/components/locationFinder/index.d.ts +0 -1
  272. package/dist/cjs/components/locationFinder/locationByAddress.d.ts +0 -18
  273. package/dist/cjs/components/locationFinder/locationFinder.d.ts +0 -7
  274. package/dist/cjs/components/locationFinder/locationsFound.d.ts +0 -12
  275. package/dist/cjs/components/locationFinder/newLocationForm.d.ts +0 -20
  276. package/dist/cjs/components/locationFinder/optionTemplate.d.ts +0 -8
  277. package/dist/cjs/components/locationFinder/typings.d.ts +0 -23
  278. package/dist/cjs/components/salesQuote/components/aboutQuote/aboutQuote.d.ts +0 -5
  279. package/dist/cjs/components/salesQuote/components/aboutQuote/commodityDescription.d.ts +0 -16
  280. package/dist/cjs/components/salesQuote/components/aboutQuote/index.d.ts +0 -2
  281. package/dist/cjs/components/salesQuote/components/aboutQuote/quoteCheck.d.ts +0 -6
  282. package/dist/cjs/components/salesQuote/components/pallet/editPallet.d.ts +0 -11
  283. package/dist/cjs/components/salesQuote/components/pallet/palletChecker.d.ts +0 -15
  284. package/dist/cjs/components/salesQuote/components/pallet/palletCount.d.ts +0 -13
  285. package/dist/cjs/components/salesQuote/components/quoteCalendar/quoteCalendar.d.ts +0 -24
  286. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/costBreakdown.d.ts +0 -14
  287. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/marketCosts.d.ts +0 -7
  288. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/quoteResultAccessorials.d.ts +0 -13
  289. package/dist/cjs/components/salesQuote/components/quoteResultAccordion/quoteResultAccordion.d.ts +0 -17
  290. package/dist/cjs/components/salesQuote/components/quoteSelect.d.ts +0 -4
  291. package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummary.d.ts +0 -4
  292. package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummaryBody.d.ts +0 -12
  293. package/dist/cjs/components/salesQuote/components/quoteSummary/quoteSummaryHeader.d.ts +0 -10
  294. package/dist/cjs/components/salesQuote/components/quoteSummary/typings.d.ts +0 -47
  295. package/dist/cjs/components/salesQuote/index.d.ts +0 -4
  296. package/dist/cjs/components/salesQuote/salesQuote.d.ts +0 -17
  297. package/dist/cjs/components/salesQuote/typings.d.ts +0 -156
  298. package/dist/cjs/components/shared/bootstrapDialogTitle/bootstrapDialogTitle.d.ts +0 -11
  299. package/dist/cjs/components/shared/bootstrapDialogTitle/index.d.ts +0 -1
  300. package/dist/cjs/components/shared/index.d.ts +0 -2
  301. package/dist/cjs/components/shared/loading/index.d.ts +0 -1
  302. package/dist/cjs/components/shared/loading/loading.d.ts +0 -6
  303. package/dist/cjs/components/stop/index.d.ts +0 -2
  304. package/dist/cjs/components/stop/menuAccessorials.d.ts +0 -27
  305. package/dist/cjs/components/stop/stop.d.ts +0 -4
  306. package/dist/cjs/components/stop/stopDetail.d.ts +0 -5
  307. package/dist/cjs/components/stop/stopDetailHeader.d.ts +0 -6
  308. package/dist/cjs/entities/index.d.ts +0 -4
  309. package/dist/cjs/entities/quote/quote.d.ts +0 -80
  310. package/dist/cjs/index.d.ts +0 -4
  311. package/dist/cjs/index.js +0 -3169
  312. package/dist/cjs/index.js.map +0 -1
  313. package/dist/cjs/redux/calendar/calendarSlice.d.ts +0 -12
  314. package/dist/cjs/redux/calendar/index.d.ts +0 -1
  315. package/dist/cjs/redux/index.d.ts +0 -3
  316. package/dist/cjs/redux/nerdSalesKitReducer.d.ts +0 -10
  317. package/dist/cjs/redux/quote/quoteAction.d.ts +0 -125
  318. package/dist/cjs/redux/quote/quoteReducer.d.ts +0 -28
  319. package/dist/cjs/redux/quote/quoteSelector.d.ts +0 -22
  320. package/dist/cjs/redux/quote/quoteState.d.ts +0 -124
  321. package/dist/cjs/utils/constants.d.ts +0 -5
  322. package/dist/cjs/utils/helpers.d.ts +0 -17
  323. package/dist/cjs/utils/index.d.ts +0 -2
@@ -0,0 +1,177 @@
1
+ import { GetAction, PostAction } from "@nerdjs/nerd-network";
2
+ import { Accessorials } from "../../entities/accessorials";
3
+ import { Holiday_Entity } from "../../entities/holiday";
4
+ import Quote_Entity, { CheckPallet_Entity, CostBreakdown_Entity, MarketCost_Entity, PalletDimensions_Entity, Reefer_Entity, Stop_Entity, TotalDimension_Entity } from "../../entities/quote/quote";
5
+ import QuoteResponse_Entity, { ServiceLevel_Entity } from "../../entities/quoteResponse/quoteResponse";
6
+ import { ICommodityDescription } from "./quoteState";
7
+ export declare const getMarketCost: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteID: number], {
8
+ id: string;
9
+ createdAt: string;
10
+ request: GetAction;
11
+ }, "getMarketCost", never, never>;
12
+ export declare const getMarketCostSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[marketCost: MarketCost_Entity], {
13
+ marketCost: MarketCost_Entity;
14
+ id: string;
15
+ createdAt: string;
16
+ }, "getMarketCostSuccess", never, never>;
17
+ export declare const getCostBreakdown: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteID: number], {
18
+ id: string;
19
+ createdAt: string;
20
+ request: GetAction;
21
+ }, "getCostBreakdown", never, never>;
22
+ export declare const getCostBreakdownSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[costBreakdown: CostBreakdown_Entity[]], {
23
+ costBreakdown: CostBreakdown_Entity[];
24
+ id: string;
25
+ createdAt: string;
26
+ }, "getCostBreakdownSuccess", never, never>;
27
+ export declare const setCostBreakdownOpen: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[costBreakdownOpen: boolean], {
28
+ costBreakdownOpen: boolean;
29
+ id: string;
30
+ createdAt: string;
31
+ }, "setCostBreakdownOpen", never, never>;
32
+ export declare const setMarketCostOpen: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[marketCostOpen: boolean], {
33
+ marketCostOpen: boolean;
34
+ id: string;
35
+ createdAt: string;
36
+ }, "setMarketCostOpen", never, never>;
37
+ export declare const setDebugOpen: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[debugOpen: boolean], {
38
+ debugOpen: boolean;
39
+ id: string;
40
+ createdAt: string;
41
+ }, "setDebugOpen", never, never>;
42
+ export declare const setSelectedServiceLevel: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[serviceLevel: ServiceLevel_Entity], {
43
+ serviceLevel: ServiceLevel_Entity;
44
+ id: string;
45
+ createdAt: string;
46
+ }, "setSelectedServiceLevel", never, never>;
47
+ export declare const setQuoteRunning: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteRunning: boolean], {
48
+ quoteRunning: boolean;
49
+ id: string;
50
+ createdAt: string;
51
+ }, "setQuoteRunning", never, never>;
52
+ export declare const newQuote: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[body: Quote_Entity], {
53
+ id: string;
54
+ createdAt: string;
55
+ request: PostAction;
56
+ }, "newQuote", never, never>;
57
+ export declare const newQuoteSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[response: QuoteResponse_Entity], {
58
+ response: QuoteResponse_Entity;
59
+ id: string;
60
+ createdAt: string;
61
+ }, "newQuoteSuccess", never, never>;
62
+ export declare const setLocationFormOpen: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[open: boolean], {
63
+ open: boolean;
64
+ id: string;
65
+ createdAt: string;
66
+ }, "setLocationFormOpen", never, never>;
67
+ export declare const restartQuote: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
68
+ id: string;
69
+ createdAt: string;
70
+ }, "restartQuote", never, never>;
71
+ export declare const runQuote: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
72
+ id: string;
73
+ createdAt: string;
74
+ }, "runQuote", never, never>;
75
+ export declare const setQuoteErrors: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[errors?: string[] | undefined], {
76
+ errors: string[] | undefined;
77
+ id: string;
78
+ createdAt: string;
79
+ }, "setQuoteErrors", never, never>;
80
+ export declare const reorderStop: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[kind: "consignees" | "shippers", oldIndex: number, targetIndex: number], {
81
+ kind: "consignees" | "shippers";
82
+ oldIndex: number;
83
+ targetIndex: number;
84
+ id: string;
85
+ createdAt: string;
86
+ }, "reorderStop", never, never>;
87
+ export declare const addStop: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[kind: "consignees" | "shippers"], {
88
+ kind: "consignees" | "shippers";
89
+ id: string;
90
+ createdAt: string;
91
+ }, "addStop", never, never>;
92
+ export declare const updateStop: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[stop: Stop_Entity], {
93
+ stop: Stop_Entity;
94
+ id: string;
95
+ createdAt: string;
96
+ }, "updateStop", never, never>;
97
+ export declare const removeStop: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[key: number], {
98
+ key: number;
99
+ id: string;
100
+ createdAt: string;
101
+ }, "removeStop", never, never>;
102
+ export declare const addPallet: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
103
+ id: string;
104
+ createdAt: string;
105
+ }, "addPallet", never, never>;
106
+ export declare const updatePallet: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pallet: PalletDimensions_Entity], {
107
+ pallet: PalletDimensions_Entity;
108
+ id: string;
109
+ createdAt: string;
110
+ }, "updatePallet", never, never>;
111
+ export declare const removePallet: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[key: number], {
112
+ key: number;
113
+ id: string;
114
+ createdAt: string;
115
+ }, "removePallet", never, never>;
116
+ export declare const setQuoteBody: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[body: Partial<Quote_Entity>], {
117
+ body: Partial<Quote_Entity>;
118
+ id: string;
119
+ createdAt: string;
120
+ }, "setQuoteBody", never, never>;
121
+ export declare const setCustomerID: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[customerID?: number | undefined], {
122
+ customerID: number | undefined;
123
+ id: string;
124
+ createdAt: string;
125
+ }, "setCustomerID", never, never>;
126
+ export declare const setQuoteTotalDimension: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[body: Partial<TotalDimension_Entity>], {
127
+ body: Partial<TotalDimension_Entity>;
128
+ id: string;
129
+ createdAt: string;
130
+ }, "setQuoteTotalDimension", never, never>;
131
+ export declare const setQuoteReefer: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[body: Partial<Reefer_Entity>], {
132
+ body: Partial<Reefer_Entity>;
133
+ id: string;
134
+ createdAt: string;
135
+ }, "setQuoteReefer", never, never>;
136
+ export declare const getQuoteAccessorials: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
137
+ id: string;
138
+ request: GetAction;
139
+ }, "getQuoteAccessorials", never, never>;
140
+ export declare const getQuoteAccessorialsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[quoteAccessorials: Accessorials], {
141
+ quoteAccessorials: Accessorials;
142
+ id: string;
143
+ createdAt: string;
144
+ }, "getQuoteAccessorialsSuccess", never, never>;
145
+ export declare const getHolidays: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
146
+ id: string;
147
+ request: GetAction;
148
+ }, "getHolidays", never, never>;
149
+ export declare const getHolidaysSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[holidays: Holiday_Entity[]], {
150
+ holidays: Holiday_Entity[];
151
+ id: string;
152
+ createdAt: string;
153
+ }, "getHolidaysSuccess", never, never>;
154
+ export declare const getQuoteCommodityDescription: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[], {
155
+ id: string;
156
+ request: GetAction;
157
+ }, "getQuoteCommodityDescription", never, never>;
158
+ export declare const getQuoteCommodityDescriptionSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[commodityDescriptions: ICommodityDescription[]], {
159
+ commodityDescriptions: ICommodityDescription[];
160
+ id: string;
161
+ createdAt: string;
162
+ }, "getQuoteCommodityDescriptionSuccess", never, never>;
163
+ export declare const checkPallets: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[pallets: PalletDimensions_Entity[]], {
164
+ id: string;
165
+ createdAt: string;
166
+ request: PostAction;
167
+ }, "checkPallets", never, never>;
168
+ export declare const checkPalletsSuccess: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[checkPallets: CheckPallet_Entity], {
169
+ checkPallets: CheckPallet_Entity;
170
+ id: string;
171
+ createdAt: string;
172
+ }, "checkPalletsSuccess", never, never>;
173
+ export declare const checkPalletsError: import("@reduxjs/toolkit").ActionCreatorWithPreparedPayload<[message: string], {
174
+ message: string;
175
+ id: string;
176
+ createdAt: string;
177
+ }, "checkPalletsError", never, never>;
@@ -0,0 +1,351 @@
1
+ import { GetAction, PostAction } from "@nerdjs/nerd-network";
2
+ import { createAction, nanoid } from "@reduxjs/toolkit";
3
+ export const getMarketCost = createAction("getMarketCost", function prepare(quoteID) {
4
+ const request = new GetAction(`/quotes/${quoteID}/market_costs`, {}, "/v1");
5
+ request.decodeResponse = (dispatch, json) => {
6
+ const marketCost = json;
7
+ dispatch(getMarketCostSuccess(marketCost));
8
+ };
9
+ return {
10
+ payload: {
11
+ id: nanoid(),
12
+ createdAt: new Date().toISOString(),
13
+ request,
14
+ },
15
+ };
16
+ });
17
+ export const getMarketCostSuccess = createAction("getMarketCostSuccess", function prepare(marketCost) {
18
+ return {
19
+ payload: {
20
+ marketCost,
21
+ id: nanoid(),
22
+ createdAt: new Date().toISOString(),
23
+ },
24
+ };
25
+ });
26
+ export const getCostBreakdown = createAction("getCostBreakdown", function prepare(quoteID) {
27
+ const request = new GetAction(`/quote_path_edge_costs?filter=[{%22property%22:%22quote_path_edges.quote_id%22,%22value%22:${quoteID}}]`, {}, "/v1");
28
+ request.decodeResponse = (dispatch, json) => {
29
+ const costBreakdown = json;
30
+ dispatch(getCostBreakdownSuccess(costBreakdown));
31
+ };
32
+ return {
33
+ payload: {
34
+ id: nanoid(),
35
+ createdAt: new Date().toISOString(),
36
+ request,
37
+ },
38
+ };
39
+ });
40
+ export const getCostBreakdownSuccess = createAction("getCostBreakdownSuccess", function prepare(costBreakdown) {
41
+ return {
42
+ payload: {
43
+ costBreakdown,
44
+ id: nanoid(),
45
+ createdAt: new Date().toISOString(),
46
+ },
47
+ };
48
+ });
49
+ export const setCostBreakdownOpen = createAction("setCostBreakdownOpen", function prepare(costBreakdownOpen) {
50
+ return {
51
+ payload: {
52
+ costBreakdownOpen,
53
+ id: nanoid(),
54
+ createdAt: new Date().toISOString(),
55
+ },
56
+ };
57
+ });
58
+ export const setMarketCostOpen = createAction("setMarketCostOpen", function prepare(marketCostOpen) {
59
+ return {
60
+ payload: {
61
+ marketCostOpen,
62
+ id: nanoid(),
63
+ createdAt: new Date().toISOString(),
64
+ },
65
+ };
66
+ });
67
+ export const setDebugOpen = createAction("setDebugOpen", function prepare(debugOpen) {
68
+ return {
69
+ payload: {
70
+ debugOpen,
71
+ id: nanoid(),
72
+ createdAt: new Date().toISOString(),
73
+ },
74
+ };
75
+ });
76
+ export const setSelectedServiceLevel = createAction("setSelectedServiceLevel", function prepare(serviceLevel) {
77
+ return {
78
+ payload: {
79
+ serviceLevel,
80
+ id: nanoid(),
81
+ createdAt: new Date().toISOString(),
82
+ },
83
+ };
84
+ });
85
+ export const setQuoteRunning = createAction("setQuoteRunning", function prepare(quoteRunning) {
86
+ return {
87
+ payload: {
88
+ quoteRunning,
89
+ id: nanoid(),
90
+ createdAt: new Date().toISOString(),
91
+ },
92
+ };
93
+ });
94
+ export const newQuote = createAction("newQuote", function prepare(body) {
95
+ const request = new PostAction(`/quote-service/quotes/multistop`, body);
96
+ request.decodeResponse = (dispatch, json) => {
97
+ console.log(dispatch, json);
98
+ const response = json;
99
+ dispatch(newQuoteSuccess(response));
100
+ };
101
+ return {
102
+ payload: {
103
+ id: nanoid(),
104
+ createdAt: new Date().toISOString(),
105
+ request,
106
+ },
107
+ };
108
+ });
109
+ export const newQuoteSuccess = createAction("newQuoteSuccess", function prepare(response) {
110
+ return {
111
+ payload: {
112
+ response,
113
+ id: nanoid(),
114
+ createdAt: new Date().toISOString(),
115
+ },
116
+ };
117
+ });
118
+ export const setLocationFormOpen = createAction("setLocationFormOpen", function prepare(open) {
119
+ return {
120
+ payload: {
121
+ open,
122
+ id: nanoid(),
123
+ createdAt: new Date().toISOString(),
124
+ },
125
+ };
126
+ });
127
+ export const restartQuote = createAction("restartQuote", function prepare() {
128
+ return {
129
+ payload: {
130
+ id: nanoid(),
131
+ createdAt: new Date().toISOString(),
132
+ },
133
+ };
134
+ });
135
+ export const runQuote = createAction("runQuote", function prepare() {
136
+ return {
137
+ payload: {
138
+ id: nanoid(),
139
+ createdAt: new Date().toISOString(),
140
+ },
141
+ };
142
+ });
143
+ export const setQuoteErrors = createAction("setQuoteErrors", function prepare(errors) {
144
+ return {
145
+ payload: {
146
+ errors,
147
+ id: nanoid(),
148
+ createdAt: new Date().toISOString(),
149
+ },
150
+ };
151
+ });
152
+ export const reorderStop = createAction("reorderStop", function prepare(kind, oldIndex, targetIndex) {
153
+ return {
154
+ payload: {
155
+ kind,
156
+ oldIndex,
157
+ targetIndex,
158
+ id: nanoid(),
159
+ createdAt: new Date().toISOString(),
160
+ },
161
+ };
162
+ });
163
+ export const addStop = createAction("addStop", function prepare(kind) {
164
+ return {
165
+ payload: {
166
+ kind,
167
+ id: nanoid(),
168
+ createdAt: new Date().toISOString(),
169
+ },
170
+ };
171
+ });
172
+ export const updateStop = createAction("updateStop", function prepare(stop) {
173
+ return {
174
+ payload: {
175
+ stop,
176
+ id: nanoid(),
177
+ createdAt: new Date().toISOString(),
178
+ },
179
+ };
180
+ });
181
+ export const removeStop = createAction("removeStop", function prepare(key) {
182
+ return {
183
+ payload: {
184
+ key,
185
+ id: nanoid(),
186
+ createdAt: new Date().toISOString(),
187
+ },
188
+ };
189
+ });
190
+ export const addPallet = createAction("addPallet", function prepare() {
191
+ return {
192
+ payload: {
193
+ id: nanoid(),
194
+ createdAt: new Date().toISOString(),
195
+ },
196
+ };
197
+ });
198
+ export const updatePallet = createAction("updatePallet", function prepare(pallet) {
199
+ return {
200
+ payload: {
201
+ pallet,
202
+ id: nanoid(),
203
+ createdAt: new Date().toISOString(),
204
+ },
205
+ };
206
+ });
207
+ export const removePallet = createAction("removePallet", function prepare(key) {
208
+ return {
209
+ payload: {
210
+ key,
211
+ id: nanoid(),
212
+ createdAt: new Date().toISOString(),
213
+ },
214
+ };
215
+ });
216
+ export const setQuoteBody = createAction("setQuoteBody", function prepare(body) {
217
+ return {
218
+ payload: {
219
+ body,
220
+ id: nanoid(),
221
+ createdAt: new Date().toISOString(),
222
+ },
223
+ };
224
+ });
225
+ export const setCustomerID = createAction("setCustomerID", function prepare(customerID) {
226
+ return {
227
+ payload: {
228
+ customerID,
229
+ id: nanoid(),
230
+ createdAt: new Date().toISOString(),
231
+ },
232
+ };
233
+ });
234
+ export const setQuoteTotalDimension = createAction("setQuoteTotalDimension", function prepare(body) {
235
+ return {
236
+ payload: {
237
+ body,
238
+ id: nanoid(),
239
+ createdAt: new Date().toISOString(),
240
+ },
241
+ };
242
+ });
243
+ export const setQuoteReefer = createAction("setQuoteReefer", function prepare(body) {
244
+ return {
245
+ payload: {
246
+ body,
247
+ id: nanoid(),
248
+ createdAt: new Date().toISOString(),
249
+ },
250
+ };
251
+ });
252
+ export const getQuoteAccessorials = createAction("getQuoteAccessorials", function prepare() {
253
+ const request = new GetAction("/quote-service/accessorials");
254
+ request.decodeResponse = (dispatch, json) => {
255
+ const quoteAccessorials = json;
256
+ dispatch(getQuoteAccessorialsSuccess(quoteAccessorials));
257
+ };
258
+ return {
259
+ payload: {
260
+ id: nanoid(),
261
+ request,
262
+ },
263
+ };
264
+ });
265
+ export const getQuoteAccessorialsSuccess = createAction("getQuoteAccessorialsSuccess", function prepare(quoteAccessorials) {
266
+ return {
267
+ payload: {
268
+ quoteAccessorials,
269
+ id: nanoid(),
270
+ createdAt: new Date().toISOString(),
271
+ },
272
+ };
273
+ });
274
+ export const getHolidays = createAction("getHolidays", function prepare() {
275
+ const request = new GetAction("/quote-service/holidays");
276
+ request.decodeResponse = (dispatch, json) => {
277
+ const holidays = json;
278
+ dispatch(getHolidaysSuccess(holidays));
279
+ };
280
+ return {
281
+ payload: {
282
+ id: nanoid(),
283
+ request,
284
+ },
285
+ };
286
+ });
287
+ export const getHolidaysSuccess = createAction("getHolidaysSuccess", function prepare(holidays) {
288
+ return {
289
+ payload: {
290
+ holidays,
291
+ id: nanoid(),
292
+ createdAt: new Date().toISOString(),
293
+ },
294
+ };
295
+ });
296
+ // Get commodity description
297
+ export const getQuoteCommodityDescription = createAction("getQuoteCommodityDescription", function prepare() {
298
+ const request = new GetAction("/commodity_descriptions", {}, "/v1");
299
+ request.decodeResponse = (dispatch, json) => {
300
+ const commodity_descriptions = json;
301
+ dispatch(getQuoteCommodityDescriptionSuccess(commodity_descriptions));
302
+ };
303
+ return {
304
+ payload: {
305
+ id: nanoid(),
306
+ request,
307
+ },
308
+ };
309
+ });
310
+ export const getQuoteCommodityDescriptionSuccess = createAction("getQuoteCommodityDescriptionSuccess", function prepare(commodityDescriptions) {
311
+ return {
312
+ payload: {
313
+ commodityDescriptions,
314
+ id: nanoid(),
315
+ createdAt: new Date().toISOString(),
316
+ },
317
+ };
318
+ });
319
+ export const checkPallets = createAction("checkPallets", function prepare(pallets) {
320
+ const request = new PostAction("/quote-service/pallets", pallets);
321
+ request.decodeResponse = (dispatch, json) => {
322
+ const checkPallets = json;
323
+ dispatch(checkPalletsSuccess(checkPallets));
324
+ };
325
+ return {
326
+ payload: {
327
+ id: nanoid(),
328
+ createdAt: new Date().toISOString(),
329
+ request,
330
+ },
331
+ };
332
+ });
333
+ export const checkPalletsSuccess = createAction("checkPalletsSuccess", function prepare(checkPallets) {
334
+ return {
335
+ payload: {
336
+ checkPallets,
337
+ id: nanoid(),
338
+ createdAt: new Date().toISOString(),
339
+ },
340
+ };
341
+ });
342
+ export const checkPalletsError = createAction("checkPalletsError", function prepare(message) {
343
+ return {
344
+ payload: {
345
+ message,
346
+ id: nanoid(),
347
+ createdAt: new Date().toISOString(),
348
+ },
349
+ };
350
+ });
351
+ //# sourceMappingURL=quoteAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quoteAction.js","sourceRoot":"","sources":["../../../src/redux/quote/quoteAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAY,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAiBlE,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CACvC,eAAe,EACf,SAAS,OAAO,CAAC,OAAe;IAC9B,MAAM,OAAO,GAAG,IAAI,SAAS,C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;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,YAAY,CAC7C,qBAAqB,EACrB,SAAS,OAAO,CAAC,YAAgC;IAC/C,OAAO;QACL,OAAO,EAAE;YACP,YAAY;YACZ,EAAE,EAAE,MAAM,EAAE;YACZ,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC;KACF,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,YAAY,CAC3C,mBAAmB,EACnB,SAAS,OAAO,CAAC,OAAe;IAC9B,OAAO;QACL,OAAO,EAAE;YACP,OAAO;YACP,EAAE,EAAE,MAAM,EAAE;YACZ,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;SACpC;KACF,CAAC;AACJ,CAAC,CACF,CAAC"}
@@ -0,0 +1,2 @@
1
+ import { Middleware } from "redux";
2
+ export declare const quoteMiddleware: Middleware;
@@ -0,0 +1,31 @@
1
+ import { quoteBodySchema } from "../../hooks/quote/constants";
2
+ import { getCustomerAccessorials, getCustomerById, } from "../customer/customerActions";
3
+ import { newQuote, runQuote, setCustomerID, setQuoteErrors, setQuoteRunning, } from "./quoteAction";
4
+ export const quoteMiddleware = (api) => (next) => (action) => {
5
+ const state = api.getState();
6
+ console.log("****", action.type);
7
+ if (action.type == runQuote) {
8
+ let valid = true;
9
+ quoteBodySchema
10
+ .validate(state.salesKitState.quote.body, {
11
+ abortEarly: false,
12
+ })
13
+ .catch(function (err) {
14
+ api.dispatch(setQuoteErrors(err.errors));
15
+ valid = false;
16
+ })
17
+ .then(async () => {
18
+ if (valid) {
19
+ api.dispatch(setQuoteErrors(undefined));
20
+ api.dispatch(setQuoteRunning(true));
21
+ api.dispatch(newQuote(state.salesKitState.quote.body));
22
+ }
23
+ });
24
+ }
25
+ if (action.type == setCustomerID && action.payload.customerID) {
26
+ api.dispatch(getCustomerById(action.payload.customerID));
27
+ api.dispatch(getCustomerAccessorials(action.payload.customerID));
28
+ }
29
+ return next(action);
30
+ };
31
+ //# sourceMappingURL=quoteMiddleware.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quoteMiddleware.js","sourceRoot":"","sources":["../../../src/redux/quote/quoteMiddleware.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAE9D,OAAO,EACL,uBAAuB,EACvB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,GAChB,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,eAAe,GAC1B,CAAC,GAAgD,EAAE,EAAE,CACrD,CAAC,IAAyB,EAAE,EAAE,CAC9B,CAAC,MAAiB,EAAE,EAAE;IACpB,MAAM,KAAK,GAAG,GAAG,CAAC,QAAQ,EAAc,CAAC;IACzC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAEjC,IAAI,MAAM,CAAC,IAAI,IAAI,QAAQ,EAAE;QAC3B,IAAI,KAAK,GAAG,IAAI,CAAC;QACjB,eAAe;aACZ,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE;YACxC,UAAU,EAAE,KAAK;SAClB,CAAC;aACD,KAAK,CAAC,UAAU,GAAG;YAClB,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;YACzC,KAAK,GAAG,KAAK,CAAC;QAChB,CAAC,CAAC;aACD,IAAI,CAAC,KAAK,IAAI,EAAE;YACf,IAAI,KAAK,EAAE;gBACT,GAAG,CAAC,QAAQ,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;gBACxC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;gBACpC,GAAG,CAAC,QAAQ,CACV,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,IAAoB,CAAC,CACzD,CAAC;aACH;QACH,CAAC,CAAC,CAAC;KACN;IAED,IAAI,MAAM,CAAC,IAAI,IAAI,aAAa,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE;QAC7D,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,GAAG,CAAC,QAAQ,CAAC,uBAAuB,CAAC,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;KAClE;IACD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC;AACtB,CAAC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { Accessorials_Entity } from "../../entities/accessorials";
2
+ import Quote_Entity, { CheckPallet_Entity, CostBreakdown_Entity, MarketCost_Entity } from "../../entities/quote/quote";
3
+ import { QuoteResponse_Entity } from "../../entities/quoteResponse";
4
+ import { Holiday_Entity } from "../../entities/holiday";
5
+ import { ServiceLevel_Entity } from "../../entities/quoteResponse/quoteResponse";
6
+ import { ICommodityDescription } from "./quoteState";
7
+ export interface QuoteState {
8
+ customerAccessorials?: Accessorials_Entity;
9
+ quoteAccessorials?: Accessorials_Entity;
10
+ holidays?: Holiday_Entity[];
11
+ checkPallets?: CheckPallet_Entity;
12
+ checkPalletMessage?: string | undefined;
13
+ commodity_descriptions: ICommodityDescription[];
14
+ body: Partial<Quote_Entity>;
15
+ response?: QuoteResponse_Entity;
16
+ selectedServiceLevel?: ServiceLevel_Entity;
17
+ costBreakdown?: CostBreakdown_Entity[];
18
+ marketCost?: MarketCost_Entity;
19
+ errors?: string[];
20
+ updateCell?: (v: number | undefined) => void | Promise<boolean>;
21
+ locationFormOpen: boolean;
22
+ costBreakdownOpen: boolean;
23
+ debugOpen: boolean;
24
+ quoteRunning: boolean;
25
+ marketCostOpen: boolean;
26
+ }
27
+ export declare const quoteReducer: import("@reduxjs/toolkit/dist/createReducer").ReducerWithInitialState<QuoteState>;