@burdenoff/microfe-movethewheels 2026.930.5 → 2026.1010.2

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 (375) hide show
  1. package/dist/MoveTheWheelsRoot.js +177 -102
  2. package/dist/MoveTheWheelsRoutes.js +55 -11
  3. package/dist/_virtual/_rolldown/runtime.js +1 -1
  4. package/dist/components/ContainerEvidencePicker.js +143 -0
  5. package/dist/components/FreeTimeAgreementForm.js +496 -0
  6. package/dist/components/ReturnInstructionForm.js +108 -0
  7. package/dist/components/ReuseControls.js +91 -0
  8. package/dist/components/ReusePermissionForm.js +114 -0
  9. package/dist/components/ReuseProposalForm.js +455 -0
  10. package/dist/components/ReuseSourceFields.js +78 -0
  11. package/dist/components/consolidation/ConsolidationHistory.js +244 -0
  12. package/dist/components/consolidation/ConsolidationLotEditor.js +133 -0
  13. package/dist/components/consolidation/ConsolidationManifestWorkbench.js +143 -0
  14. package/dist/components/consolidation/ConsolidationPlanForm.js +172 -0
  15. package/dist/components/consolidation/ConsolidationPlanWorkbench.js +321 -0
  16. package/dist/components/consolidation/ConsolidationReportForm.js +94 -0
  17. package/dist/components/consolidation/ConsolidationReportsWorkbench.js +195 -0
  18. package/dist/components/consolidation/ConsolidationSummary.js +76 -0
  19. package/dist/components/consolidation/OriginalConsolidationHistory.js +112 -0
  20. package/dist/components/freight-cost/FreightDraftForm.js +213 -0
  21. package/dist/components/freight-cost/FreightFields.js +70 -0
  22. package/dist/components/freight-cost/FreightFxEditor.js +90 -0
  23. package/dist/components/freight-cost/FreightHistory.js +164 -0
  24. package/dist/components/freight-cost/FreightLineEditor.js +191 -0
  25. package/dist/components/freight-cost/FreightScopeEditor.js +72 -0
  26. package/dist/components/freight-cost/FreightTotals.js +66 -0
  27. package/dist/components/logistics-procedure/ProcedureDecisionForm.js +197 -0
  28. package/dist/components/logistics-procedure/ProcedureFields.js +31 -0
  29. package/dist/components/logistics-procedure/ProcedureHistory.js +177 -0
  30. package/dist/components/logistics-procedure/ProcedurePolicyForm.js +227 -0
  31. package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +155 -0
  32. package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +221 -0
  33. package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +190 -0
  34. package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +130 -0
  35. package/dist/components/pending-pick/PendingPickDraft.js +84 -0
  36. package/dist/components/pending-pick/PendingPickHistory.js +113 -0
  37. package/dist/components/pending-pick/PickCapture.js +166 -0
  38. package/dist/components/pending-pick/PickLineSelection.js +111 -0
  39. package/dist/components/stock-binding/StockAssessmentDraft.js +48 -0
  40. package/dist/components/stock-binding/StockAssessmentHistory.js +61 -0
  41. package/dist/components/stock-binding/StockAssessmentSummary.js +199 -0
  42. package/dist/components/stock-binding/StockFactForm.js +232 -0
  43. package/dist/components/stock-observation/StockIssueForm.js +148 -0
  44. package/dist/components/stock-observation/StockIssueHistory.js +116 -0
  45. package/dist/components/stock-observation/StockIssueReadPanel.js +70 -0
  46. package/dist/components/trip-utilization/TripReportForm.js +118 -0
  47. package/dist/components/trip-utilization/TripReportHistory.js +54 -0
  48. package/dist/components/trip-utilization/TripReportSummary.js +216 -0
  49. package/dist/components/trip-utilization/TripSegmentFields.js +166 -0
  50. package/dist/generated/consolidation-operations.d.ts +1060 -0
  51. package/dist/generated/container-condition-operations.d.ts +868 -0
  52. package/dist/generated/container-operations.d.ts +356 -0
  53. package/dist/generated/empty-reuse-operations.d.ts +1578 -0
  54. package/dist/generated/free-time-operations.d.ts +938 -0
  55. package/dist/generated/freight-cost-operations.d.ts +716 -0
  56. package/dist/generated/logistics-procedure-operations.d.ts +938 -0
  57. package/dist/generated/pending-pick-operations.d.ts +1969 -0
  58. package/dist/generated/stock-binding-operations.d.ts +930 -0
  59. package/dist/generated/stock-observation-operations.d.ts +476 -0
  60. package/dist/generated/trip-utilization-operations.d.ts +651 -0
  61. package/dist/generated/wspace-operations.d.ts +143 -50
  62. package/dist/hooks/useConsolidationAction.js +119 -0
  63. package/dist/hooks/useContainerCondition.js +105 -0
  64. package/dist/hooks/useContainerLifecycle.js +192 -0
  65. package/dist/hooks/useEmptyReuseAction.js +45 -0
  66. package/dist/hooks/useFreightRecoveryAction.js +117 -0
  67. package/dist/hooks/useMultiModalShipments.js +1 -1
  68. package/dist/hooks/useProcedureAction.js +119 -0
  69. package/dist/hooks/useProcedureSelection.js +53 -0
  70. package/dist/hooks/useReuseRecoveryAction.js +116 -0
  71. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +10 -0
  72. package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +14 -0
  73. package/dist/movethewheels/components/ReturnInstructionForm.d.ts +8 -0
  74. package/dist/movethewheels/components/ReuseControls.d.ts +42 -0
  75. package/dist/movethewheels/components/ReusePermissionForm.d.ts +9 -0
  76. package/dist/movethewheels/components/ReuseProposalForm.d.ts +11 -0
  77. package/dist/movethewheels/components/ReuseSourceFields.d.ts +9 -0
  78. package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +13 -0
  79. package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +6 -0
  80. package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +8 -0
  81. package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +8 -0
  82. package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +5 -0
  83. package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +9 -0
  84. package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +7 -0
  85. package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +6 -0
  86. package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +8 -0
  87. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +8 -0
  88. package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +23 -0
  89. package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +6 -0
  90. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +5 -0
  91. package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +8 -0
  92. package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +6 -0
  93. package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +6 -0
  94. package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +20 -0
  95. package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +17 -0
  96. package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +7 -0
  97. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +10 -0
  98. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +5 -0
  99. package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +5 -0
  100. package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +6 -0
  101. package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +7 -0
  102. package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +16 -0
  103. package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +5 -0
  104. package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +6 -0
  105. package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +17 -0
  106. package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +13 -0
  107. package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +18 -0
  108. package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +9 -0
  109. package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +6 -0
  110. package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +7 -0
  111. package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +7 -0
  112. package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +5 -0
  113. package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +6 -0
  114. package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +14 -0
  115. package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +5 -0
  116. package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +9 -0
  117. package/dist/movethewheels/hooks/useConsolidationAction.d.ts +19 -0
  118. package/dist/movethewheels/hooks/useContainerCondition.d.ts +21 -0
  119. package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +40 -0
  120. package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +14 -0
  121. package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +23 -0
  122. package/dist/movethewheels/hooks/useProcedureAction.d.ts +18 -0
  123. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +51 -0
  124. package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +18 -0
  125. package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -0
  126. package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -0
  127. package/dist/movethewheels/pages/ContainersPage.d.ts +2 -0
  128. package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -0
  129. package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -0
  130. package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -0
  131. package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -0
  132. package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -0
  133. package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -0
  134. package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -0
  135. package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -0
  136. package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +12 -0
  137. package/dist/movethewheels/utils/consolidationInput.d.ts +15 -0
  138. package/dist/movethewheels/utils/consolidationLot.d.ts +3 -0
  139. package/dist/movethewheels/utils/consolidationPins.d.ts +20 -0
  140. package/dist/movethewheels/utils/consolidationRecovery.d.ts +5 -0
  141. package/dist/movethewheels/utils/consolidationReportHead.d.ts +5 -0
  142. package/dist/movethewheels/utils/freeTimeDate.d.ts +1 -0
  143. package/dist/movethewheels/utils/freightAcknowledgement.d.ts +2 -0
  144. package/dist/movethewheels/utils/freightDraft.d.ts +36 -0
  145. package/dist/movethewheels/utils/freightRecovery.d.ts +5 -0
  146. package/dist/movethewheels/utils/graphqlClient.d.ts +2 -1
  147. package/dist/movethewheels/utils/pendingPickDraft.d.ts +8 -0
  148. package/dist/movethewheels/utils/procedureInput.d.ts +18 -0
  149. package/dist/movethewheels/utils/procedureRecovery.d.ts +5 -0
  150. package/dist/movethewheels/utils/reuseAttempt.d.ts +7 -0
  151. package/dist/movethewheels/utils/reuseForm.d.ts +6 -0
  152. package/dist/movethewheels/utils/reuseRecovery.d.ts +26 -0
  153. package/dist/movethewheels/utils/stockBindingForm.d.ts +23 -0
  154. package/dist/movethewheels/utils/stockBindingLabels.d.ts +10 -0
  155. package/dist/movethewheels/utils/stockObservationForm.d.ts +5 -0
  156. package/dist/movethewheels/utils/tripDraftContext.d.ts +25 -0
  157. package/dist/movethewheels/utils/tripUtilizationForm.d.ts +6 -0
  158. package/dist/node_modules/@react-leaflet/core/lib/component.js +5 -5
  159. package/dist/node_modules/fast-equals/dist/es/index.js +87 -74
  160. package/dist/node_modules/leaflet/dist/leaflet-src.js +8 -5
  161. package/dist/node_modules/lodash/_Stack.js +2 -1
  162. package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +35 -0
  163. package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +22 -0
  164. package/dist/node_modules/react-leaflet/lib/MapContainer.js +3 -3
  165. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  166. package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
  167. package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
  168. package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
  169. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
  170. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +13 -13
  171. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
  172. package/dist/node_modules/recharts/es6/cartesian/Line.js +10 -10
  173. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
  174. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
  175. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
  176. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
  177. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
  178. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
  179. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
  180. package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
  181. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
  182. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
  183. package/dist/node_modules/recharts/es6/component/Label.js +14 -14
  184. package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
  185. package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
  186. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
  187. package/dist/node_modules/recharts/es6/component/Text.js +2 -2
  188. package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
  189. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
  190. package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
  191. package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
  192. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
  193. package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
  194. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
  195. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
  196. package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
  197. package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
  198. package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
  199. package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
  200. package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
  201. package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
  202. package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
  203. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
  204. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
  205. package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
  206. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
  207. package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
  208. package/dist/node_modules/recharts/es6/util/ReactUtils.js +2 -2
  209. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
  210. package/dist/node_modules/recharts/es6/util/types.js +1 -1
  211. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.development.js +2 -2
  212. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.production.min.js +2 -2
  213. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/index.js +2 -2
  214. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +97 -18
  215. package/dist/node_modules/zustand/esm/middleware.js +2 -2
  216. package/dist/pages/ConsolidationPage.js +76 -0
  217. package/dist/pages/ContainerConditionPage.js +972 -0
  218. package/dist/pages/ContainersPage.js +522 -0
  219. package/dist/pages/EmptyReusePage.js +777 -0
  220. package/dist/pages/FreeTimePage.js +657 -0
  221. package/dist/pages/FreightEstimatePage.js +284 -0
  222. package/dist/pages/LogisticsProceduresPage.js +100 -0
  223. package/dist/pages/PendingPickPage.js +155 -0
  224. package/dist/pages/StockBindingPage.js +236 -0
  225. package/dist/pages/StockObservationsPage.js +168 -0
  226. package/dist/pages/TripUtilizationPage.js +227 -0
  227. package/dist/src/generated/consolidation-operations.js +505 -0
  228. package/dist/src/generated/container-condition-operations.js +208 -0
  229. package/dist/src/generated/container-operations.js +101 -0
  230. package/dist/src/generated/empty-reuse-operations.js +749 -0
  231. package/dist/src/generated/free-time-operations.js +235 -0
  232. package/dist/src/generated/freight-cost-operations.js +325 -0
  233. package/dist/src/generated/logistics-procedure-operations.js +362 -0
  234. package/dist/src/generated/pending-pick-operations.js +1128 -0
  235. package/dist/src/generated/stock-binding-operations.js +175 -0
  236. package/dist/src/generated/stock-observation-operations.js +93 -0
  237. package/dist/src/generated/trip-utilization-operations.js +140 -0
  238. package/dist/src/generated/wspace-operations.js +708 -0
  239. package/dist/utils/consolidationHistoryTarget.js +27 -0
  240. package/dist/utils/consolidationInput.js +21 -0
  241. package/dist/utils/consolidationLot.js +29 -0
  242. package/dist/utils/consolidationPins.js +13 -0
  243. package/dist/utils/consolidationRecovery.js +40 -0
  244. package/dist/utils/consolidationReportHead.js +18 -0
  245. package/dist/utils/freeTimeDate.js +26 -0
  246. package/dist/utils/freightAcknowledgement.js +8 -0
  247. package/dist/utils/freightDraft.js +125 -0
  248. package/dist/utils/freightRecovery.js +36 -0
  249. package/dist/utils/graphqlClient.js +28 -28
  250. package/dist/utils/pendingPickDraft.js +46 -0
  251. package/dist/utils/procedureInput.js +43 -0
  252. package/dist/utils/procedureRecovery.js +42 -0
  253. package/dist/utils/reuseAttempt.js +20 -0
  254. package/dist/utils/reuseForm.js +25 -0
  255. package/dist/utils/reuseRecovery.js +71 -0
  256. package/dist/utils/stockBindingForm.js +142 -0
  257. package/dist/utils/stockBindingLabels.js +23 -0
  258. package/dist/utils/stockObservationForm.js +55 -0
  259. package/dist/utils/tripDraftContext.js +19 -0
  260. package/dist/utils/tripUtilizationForm.js +60 -0
  261. package/package.json +20 -5
  262. package/src/generated/consolidation-operations.ts +1138 -0
  263. package/src/generated/container-condition-operations.ts +771 -0
  264. package/src/generated/container-operations.ts +376 -0
  265. package/src/generated/empty-reuse-operations.ts +1648 -0
  266. package/src/generated/free-time-operations.ts +814 -0
  267. package/src/generated/freight-cost-operations.ts +753 -0
  268. package/src/generated/logistics-procedure-operations.ts +1047 -0
  269. package/src/generated/pending-pick-operations.ts +1508 -0
  270. package/src/generated/stock-binding-operations.ts +631 -0
  271. package/src/generated/stock-observation-operations.ts +373 -0
  272. package/src/generated/trip-utilization-operations.ts +500 -0
  273. package/src/generated/wspace-operations.ts +116 -0
  274. package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
  275. package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
  276. package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
  277. package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
  278. package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
  279. package/src/movethewheels/components/ReuseControls.tsx +138 -0
  280. package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
  281. package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
  282. package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
  283. package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
  284. package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
  285. package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
  286. package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
  287. package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
  288. package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
  289. package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
  290. package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
  291. package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
  292. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
  293. package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
  294. package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
  295. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
  296. package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
  297. package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
  298. package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
  299. package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
  300. package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
  301. package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
  302. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
  303. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
  304. package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
  305. package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
  306. package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
  307. package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
  308. package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
  309. package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
  310. package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
  311. package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
  312. package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
  313. package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
  314. package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
  315. package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
  316. package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
  317. package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
  318. package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
  319. package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
  320. package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
  321. package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
  322. package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
  323. package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
  324. package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
  325. package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
  326. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
  327. package/src/movethewheels/hooks/useMultiModalShipments.ts +2 -1
  328. package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
  329. package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
  330. package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
  331. package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
  332. package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
  333. package/src/movethewheels/pages/ContainersPage.tsx +490 -0
  334. package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
  335. package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
  336. package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
  337. package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
  338. package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
  339. package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
  340. package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
  341. package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
  342. package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
  343. package/src/movethewheels/utils/consolidationInput.ts +70 -0
  344. package/src/movethewheels/utils/consolidationLot.ts +24 -0
  345. package/src/movethewheels/utils/consolidationPins.ts +52 -0
  346. package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
  347. package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
  348. package/src/movethewheels/utils/freeTimeDate.ts +31 -0
  349. package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
  350. package/src/movethewheels/utils/freightDraft.ts +170 -0
  351. package/src/movethewheels/utils/freightRecovery.ts +79 -0
  352. package/src/movethewheels/utils/graphqlClient.ts +14 -5
  353. package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
  354. package/src/movethewheels/utils/procedureInput.ts +98 -0
  355. package/src/movethewheels/utils/procedureRecovery.ts +92 -0
  356. package/src/movethewheels/utils/reuseAttempt.ts +29 -0
  357. package/src/movethewheels/utils/reuseForm.ts +30 -0
  358. package/src/movethewheels/utils/reuseRecovery.ts +151 -0
  359. package/src/movethewheels/utils/stockBindingForm.ts +209 -0
  360. package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
  361. package/src/movethewheels/utils/stockObservationForm.ts +73 -0
  362. package/src/movethewheels/utils/tripDraftContext.ts +61 -0
  363. package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
  364. package/src/operations/condition/container-condition.graphql +41 -0
  365. package/src/operations/consolidation/consolidation.graphql +490 -0
  366. package/src/operations/container/container-lifecycle.graphql +80 -0
  367. package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
  368. package/src/operations/free-time/free-time.graphql +47 -0
  369. package/src/operations/freight-cost/freight.graphql +6 -0
  370. package/src/operations/logistics-procedure/procedure.graphql +15 -0
  371. package/src/operations/pending-pick/pending-pick.graphql +1122 -0
  372. package/src/operations/stock-binding/stock-binding.graphql +160 -0
  373. package/src/operations/stock-observation/stock-observation.graphql +20 -0
  374. package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
  375. package/src/operations/wspace/container-evidence.graphql +6 -0
@@ -0,0 +1,5 @@
1
+ import { UtilizationReportFragment } from '../../../generated/trip-utilization-operations';
2
+
3
+ export declare function TripReportSummary({ report }: {
4
+ report: UtilizationReportFragment;
5
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { MtwTripUtilizationBasis } from '../../../generated/trip-utilization-operations';
2
+
3
+ export declare function TripSegmentFields({ id, sequence, basis, onRemove, removable, }: {
4
+ id: string;
5
+ sequence: number;
6
+ basis: MtwTripUtilizationBasis;
7
+ onRemove: () => void;
8
+ removable: boolean;
9
+ }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { DocumentNode } from 'graphql';
2
+
3
+ /** F08 retains one unresolved request across entity/context remounts; it never sends automatically. */
4
+ export declare function useConsolidationAction(): {
5
+ run: (document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<Record<string, unknown> | null>;
6
+ retryOriginal: () => Promise<void>;
7
+ discardAttempt: () => void;
8
+ refresh: () => void;
9
+ busy: boolean;
10
+ error: string | null;
11
+ notice: string | null;
12
+ revision: number;
13
+ uncertain: boolean;
14
+ recoveryInvalid: boolean;
15
+ canRetry: boolean;
16
+ originalContext: import('../utils/reuseRecovery').ReuseRecoveryScope | null;
17
+ originalHistoryTarget: import('../utils/consolidationHistoryTarget').OriginalConsolidationHistoryTarget | null;
18
+ contextKey: string;
19
+ };
@@ -0,0 +1,21 @@
1
+ import { DocumentNode } from 'graphql';
2
+ import { GraphQLAttemptPolicy } from '../utils/graphqlClient';
3
+
4
+ export declare function useConditionApi(attemptPolicy?: GraphQLAttemptPolicy): <T>(document: DocumentNode, variables: Record<string, unknown>) => Promise<T>;
5
+ /** Bounded pages, cancellation of stale responses, and explicit access failures. */
6
+ export declare function useConditionQuery<T>(document: DocumentNode, variables: Record<string, unknown> | null, revision?: number): {
7
+ data: T | null;
8
+ error: string | null;
9
+ loading: boolean;
10
+ };
11
+ /** Preserve a request's idempotency key through transport retries until success. */
12
+ export declare function useConditionAction(): {
13
+ run: <T>(document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<T | null>;
14
+ busy: boolean;
15
+ error: string | null;
16
+ notice: string | null;
17
+ revision: number;
18
+ resetFeedback: () => void;
19
+ hasPendingAttempt: boolean;
20
+ discardAttempt: () => void;
21
+ };
@@ -0,0 +1,40 @@
1
+ import { ContainerEquipmentFieldsFragment, ContainerCycleFieldsFragment, ContainerEventFieldsFragment, RegisterMtwContainerInput, OpenMtwContainerCycleInput, RecordMtwContainerEventInput } from '../../generated/container-operations';
2
+
3
+ export declare const EQUIPMENT_TYPES: readonly ["DRY_20", "DRY_40", "HIGH_CUBE_40", "REEFER_20", "REEFER_40", "OPEN_TOP", "FLAT_RACK", "TANK", "OTHER"];
4
+ export declare const CONTAINER_EVENT_TYPES: readonly ["GATE_OUT", "LOADED", "DISCHARGED", "AVAILABLE_FOR_PICKUP", "GATE_IN", "DELIVERED", "EMPTY_READY", "RETURN_REQUESTED", "EMPTY_RETURNED", "RETURN_ACCEPTED", "POSITION_UPDATE"];
5
+ export type EquipmentType = (typeof EQUIPMENT_TYPES)[number];
6
+ export type ContainerEventType = (typeof CONTAINER_EVENT_TYPES)[number];
7
+ export type ContainerEventKind = 'ACTUAL' | 'PLANNED' | 'ESTIMATED';
8
+ export type ContainerRecord = ContainerEquipmentFieldsFragment;
9
+ export type ContainerCycle = ContainerCycleFieldsFragment;
10
+ export type ContainerEvent = ContainerEventFieldsFragment;
11
+ /** Source-labelled physical equipment; cargo shipment completion does not close a cycle. */
12
+ export declare function useContainerLifecycle(): {
13
+ containers: ContainerEquipmentFieldsFragment[];
14
+ cycles: ContainerCycleFieldsFragment[];
15
+ events: ContainerEventFieldsFragment[];
16
+ containerId: string;
17
+ cycleId: string;
18
+ loading: boolean;
19
+ cyclesLoading: boolean;
20
+ eventsLoading: boolean;
21
+ error: string | null;
22
+ cycleError: string | null;
23
+ eventError: string | null;
24
+ page: number;
25
+ setPage: import('react').Dispatch<import('react').SetStateAction<number>>;
26
+ cyclePage: number;
27
+ setCyclePage: import('react').Dispatch<import('react').SetStateAction<number>>;
28
+ eventPage: number;
29
+ setEventPage: import('react').Dispatch<import('react').SetStateAction<number>>;
30
+ hasMore: boolean;
31
+ hasMoreCycles: boolean;
32
+ hasMoreEvents: boolean;
33
+ selectContainer: (id: string) => void;
34
+ selectCycle: (id: string) => void;
35
+ refresh: () => void;
36
+ register: (input: Omit<RegisterMtwContainerInput, "idempotencyKey">) => Promise<void>;
37
+ openCycle: (input: Omit<OpenMtwContainerCycleInput, "idempotencyKey">) => Promise<void>;
38
+ recordEvent: (input: Omit<RecordMtwContainerEventInput, "idempotencyKey">) => Promise<void>;
39
+ closeCycle: (cycle: ContainerCycle) => Promise<void>;
40
+ };
@@ -0,0 +1,14 @@
1
+ import { DocumentNode } from 'graphql';
2
+
3
+ /** An uncertain retry keeps its original body and key, even after a read refresh. */
4
+ export declare function useEmptyReuseAction(): {
5
+ run: <T>(document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<T | null>;
6
+ retryOriginal: () => Promise<void>;
7
+ busy: boolean;
8
+ error: string | null;
9
+ notice: string | null;
10
+ uncertain: boolean;
11
+ revision: number;
12
+ refresh: () => void;
13
+ discardAttempt: () => void;
14
+ };
@@ -0,0 +1,23 @@
1
+ import { DocumentNode } from 'graphql';
2
+ import { SaveFreightCostsMutation } from '../../generated/freight-cost-operations';
3
+
4
+ /** F06 retains one unresolved request across entity/context remounts; it never sends automatically. */
5
+ export declare function useFreightRecoveryAction(): {
6
+ run: (document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<SaveFreightCostsMutation | null>;
7
+ retryOriginal: () => Promise<void>;
8
+ discardAttempt: () => void;
9
+ refresh: () => void;
10
+ busy: boolean;
11
+ error: string | null;
12
+ notice: string | null;
13
+ revision: number;
14
+ uncertain: boolean;
15
+ recoveryInvalid: boolean;
16
+ canRetry: boolean;
17
+ originalContext: import('../utils/reuseRecovery').ReuseRecoveryScope | null;
18
+ originalHistoryTarget: {
19
+ shipmentId: string;
20
+ estimateReference: string;
21
+ } | null;
22
+ contextKey: string;
23
+ };
@@ -0,0 +1,18 @@
1
+ import { DocumentNode } from 'graphql';
2
+
3
+ /** F05 retains one unresolved request across entity/context remounts; it never sends automatically. */
4
+ export declare function useProcedureAction(): {
5
+ run: (document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<Record<string, unknown> | null>;
6
+ retryOriginal: () => Promise<void>;
7
+ discardAttempt: () => void;
8
+ refresh: () => void;
9
+ busy: boolean;
10
+ error: string | null;
11
+ notice: string | null;
12
+ revision: number;
13
+ uncertain: boolean;
14
+ recoveryInvalid: boolean;
15
+ canRetry: boolean;
16
+ originalContext: import('../utils/reuseRecovery').ReuseRecoveryScope | null;
17
+ contextKey: string;
18
+ };
@@ -0,0 +1,51 @@
1
+ import { ProcedureContainersQuery, ProcedureCyclesQuery, ProcedureProposalsQuery } from '../../generated/logistics-procedure-operations';
2
+
3
+ export declare function useProcedureSelection(revision: number): {
4
+ containerId: string;
5
+ cycleId: string;
6
+ proposalId: string;
7
+ containerOffset: number;
8
+ cycleOffset: number;
9
+ proposalOffset: number;
10
+ containers: {
11
+ data: ProcedureContainersQuery | null;
12
+ error: string | null;
13
+ loading: boolean;
14
+ };
15
+ cycles: {
16
+ data: ProcedureCyclesQuery | null;
17
+ error: string | null;
18
+ loading: boolean;
19
+ };
20
+ proposals: {
21
+ data: ProcedureProposalsQuery | null;
22
+ error: string | null;
23
+ loading: boolean;
24
+ };
25
+ cycle: {
26
+ __typename?: "MtwContainerCycle";
27
+ id: string;
28
+ version: number;
29
+ status: import('../../generated/logistics-procedure-operations').MtwContainerCycleStatus;
30
+ bookingReference?: string | null;
31
+ openedAt: string;
32
+ } | null;
33
+ proposal: {
34
+ __typename?: "MtwReuseProposal";
35
+ id: string;
36
+ proposalReference: string;
37
+ revision: number;
38
+ exportBookingReference: string;
39
+ exporterReference: string;
40
+ handoffLocationReference: string;
41
+ handoffFrom: string;
42
+ handoffUntil: string;
43
+ instructionId: string;
44
+ } | null;
45
+ selectContainer: (value: string) => void;
46
+ selectCycle: (value: string) => void;
47
+ selectProposal: import('react').Dispatch<import('react').SetStateAction<string>>;
48
+ pageContainers: (offset: number) => void;
49
+ pageCycles: (offset: number) => void;
50
+ pageProposals: (offset: number) => void;
51
+ };
@@ -0,0 +1,18 @@
1
+ import { DocumentNode } from 'graphql';
2
+
3
+ /** F02 retains one unresolved request across entity/context remounts; it never sends automatically. */
4
+ export declare function useReuseRecoveryAction(): {
5
+ run: <T>(document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<T | null>;
6
+ retryOriginal: () => Promise<void>;
7
+ discardAttempt: () => void;
8
+ refresh: () => void;
9
+ busy: boolean;
10
+ error: string | null;
11
+ notice: string | null;
12
+ revision: number;
13
+ uncertain: boolean;
14
+ recoveryInvalid: boolean;
15
+ canRetry: boolean;
16
+ originalContext: import('../utils/reuseRecovery').ReuseRecoveryScope | null;
17
+ contextKey: string;
18
+ };
@@ -0,0 +1 @@
1
+ export default function ConsolidationPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function ContainerConditionPage(): import("react").JSX.Element;
@@ -0,0 +1,2 @@
1
+ /** Remount on identity/workspace changes so previous workspace records never flash. */
2
+ export default function ContainersPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function EmptyReusePage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function FreeTimePage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function FreightEstimatePage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function LogisticsProceduresPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PendingPickPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function StockBindingPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function StockObservationsPage(): import("react").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function TripUtilizationPage(): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { ReuseRecovery, ReuseRecoveryScope } from './reuseRecovery';
2
+
3
+ export type OriginalConsolidationHistoryTarget = {
4
+ kind: 'plan';
5
+ shipmentId: string;
6
+ planReference: string;
7
+ } | {
8
+ kind: 'observation' | 'manifest';
9
+ planId: string;
10
+ };
11
+ /** Retained input supplies read targets only in its original context; it never rebinds a draft. */
12
+ export declare function originalConsolidationHistoryTarget(pending: ReuseRecovery | null, scope: ReuseRecoveryScope | null): OriginalConsolidationHistoryTarget | null;
@@ -0,0 +1,15 @@
1
+ import { localProcedureInstant } from './procedureInput';
2
+
3
+ export declare const consolidationInstant: typeof localProcedureInstant;
4
+ export declare function nullableText(value: string): string | null;
5
+ /** Keep decimal source text exact. Blank facts are unknown, and explicit zero remains zero. */
6
+ export declare function consolidationQuantity(value: string): string | null;
7
+ export declare function sameConsolidationPin(a: {
8
+ id: string;
9
+ version: number;
10
+ } | null, b: {
11
+ id: string;
12
+ version: number;
13
+ } | null): boolean;
14
+ /** Require the scoped immutable acknowledgement before clearing the original request. */
15
+ export declare function consolidationAcknowledgement(result: Record<string, unknown>, input: Record<string, unknown>, actorId?: string): boolean;
@@ -0,0 +1,3 @@
1
+ import { MtwConsolidationLotInput } from '../../generated/consolidation-operations';
2
+
3
+ export declare function emptyConsolidationLot(): MtwConsolidationLotInput;
@@ -0,0 +1,20 @@
1
+ import { ConsolidationContainersQuery, ConsolidationCyclesQuery, ConsolidationShipmentQuery } from '../../generated/consolidation-operations';
2
+
3
+ export type ConsolidationContextPin = {
4
+ shipmentId: string;
5
+ shipmentUpdatedAt: string;
6
+ cycleId: string;
7
+ cycleVersion: number;
8
+ containerId: string;
9
+ };
10
+ export declare function matchesConsolidationContext(pin: ConsolidationContextPin, shipment: ConsolidationShipmentQuery['shipment'], cycle: ConsolidationCyclesQuery['mtwContainerCyclePage']['items'][number] | null): boolean;
11
+ export declare function assertConsolidationPredecessor(pin: {
12
+ id: string;
13
+ version: number;
14
+ } | null, current: {
15
+ id: string;
16
+ version: number;
17
+ } | null): void;
18
+ export type ConsolidationContainerOption = Pick<ConsolidationContainersQuery['mtwContainerPage']['items'][number], 'id' | 'containerNumber' | 'equipmentType'>;
19
+ /** Retain the selected label across pagination without asserting current source validity. */
20
+ export declare function offPageConsolidationContainer(selectedId: string, selected: ConsolidationContainerOption | null, visible: readonly ConsolidationContainerOption[]): ConsolidationContainerOption | null;
@@ -0,0 +1,5 @@
1
+ import { ReuseRecovery } from './reuseRecovery';
2
+
3
+ export declare const CONSOLIDATION_RECOVERY_STORAGE = "movethewheels.consolidation.unresolved.v1";
4
+ export declare function decodeConsolidationRecovery(raw: string | null): ReuseRecovery | null;
5
+ export declare function encodeConsolidationRecovery(attempt: ReuseRecovery): string;
@@ -0,0 +1,5 @@
1
+ import { ConsolidationObservationsDocument, ConsolidationObservationsQuery, MtwConsolidationReportKind } from '../../generated/consolidation-operations';
2
+
3
+ type Report = ConsolidationObservationsQuery['mtwConsolidationObservationPage']['items'][number];
4
+ export declare function findConsolidationReportHead(request: <T>(document: typeof ConsolidationObservationsDocument, variables: Record<string, unknown>) => Promise<T>, planId: string, lotId: string, kind: MtwConsolidationReportKind): Promise<Report | null>;
5
+ export {};
@@ -0,0 +1 @@
1
+ export declare function freeTimeIso(value: string): string;
@@ -0,0 +1,2 @@
1
+ /** Validate the minimum immutable receipt identity before resolving a retained request. */
2
+ export declare function matchesFreightAcknowledgement(result: unknown, input: Record<string, unknown>): boolean;
@@ -0,0 +1,36 @@
1
+ import { MtwFreightFactsInput, MtwFreightLineInput, MtwFreightFxInput, SaveMtwFreightEstimateInput } from '../../generated/freight-cost-operations';
2
+
3
+ export declare const freightCategories: readonly ["BASE_FREIGHT", "FUEL", "PRE_CARRIAGE", "ON_CARRIAGE", "ORIGIN_HANDLING", "DESTINATION_HANDLING", "INSURANCE", "ACCESSORIAL", "TAX_ESTIMATE", "DUTY_ESTIMATE", "BROKER", "FREE_TIME_EXPOSURE", "OTHER"];
4
+ export declare const freightLabel: (value: string) => string;
5
+ export declare const freightNullable: (value: string) => string | null;
6
+ /** Money never passes through Number; sourced fixed amounts must fit the declared scale exactly. */
7
+ export declare function fixedFreightMinor(value: string, digits: number): string | null;
8
+ /** Match supported decimal zero spellings without rounding or accepting invalid quantities. */
9
+ export declare function isFreightDecimalZero(value: string | null | undefined): boolean;
10
+ export declare function freightMoney(minor: string | null | undefined, digits: number): string;
11
+ export declare function freightInstant(value: string): string;
12
+ export declare function freightLocalTime(value: string): string;
13
+ export declare function newFreightLine(): MtwFreightLineInput;
14
+ export declare function newFreightFacts(): MtwFreightFactsInput;
15
+ export declare function newFreightFx(): MtwFreightFxInput;
16
+ export interface FreightDraftPin {
17
+ shipmentId: string;
18
+ shipmentUpdatedAt: string;
19
+ estimateReference: string;
20
+ previousId: string | null;
21
+ version: number;
22
+ }
23
+ export declare function freightPinMatches(pin: FreightDraftPin, shipment: {
24
+ id: string;
25
+ updatedAt: string;
26
+ } | null | undefined, latest: {
27
+ id: string;
28
+ version: number;
29
+ } | null): boolean;
30
+ export declare function freightSaveInput(pin: FreightDraftPin, shipment: {
31
+ id: string;
32
+ updatedAt: string;
33
+ } | null | undefined, latest: {
34
+ id: string;
35
+ version: number;
36
+ } | null, facts: MtwFreightFactsInput, evidence: SaveMtwFreightEstimateInput['evidence']): Omit<SaveMtwFreightEstimateInput, 'idempotencyKey'>;
@@ -0,0 +1,5 @@
1
+ import { ReuseRecovery } from './reuseRecovery';
2
+
3
+ export declare const FREIGHT_RECOVERY_STORAGE = "movethewheels.freight.unresolved.v1";
4
+ export declare function decodeFreightRecovery(raw: string | null): ReuseRecovery | null;
5
+ export declare function encodeFreightRecovery(attempt: ReuseRecovery): string;
@@ -1,3 +1,4 @@
1
+ export type GraphQLAttemptPolicy = 'RETRY_TRANSIENT' | 'SINGLE_ATTEMPT';
1
2
  interface GraphQLRequestOptions {
2
3
  apiGatewayUrl?: string;
3
4
  authToken?: string;
@@ -7,5 +8,5 @@ interface GraphQLRequestOptions {
7
8
  actorId?: string;
8
9
  }
9
10
  export declare function resolveGraphqlUrl(apiGatewayUrl?: string): string;
10
- export declare function executeGraphQL<TData>(options: GraphQLRequestOptions, query: string, variables?: Record<string, unknown>): Promise<TData>;
11
+ export declare function executeGraphQL<TData>(options: GraphQLRequestOptions, query: string, variables?: Record<string, unknown>, attemptPolicy?: GraphQLAttemptPolicy): Promise<TData>;
11
12
  export {};
@@ -0,0 +1,8 @@
1
+ import { CreateMtwPickTaskIntentInput, PickPreparationQuery } from '../../generated/pending-pick-operations';
2
+
3
+ type Context = PickPreparationQuery['mtwPickPreparation'];
4
+ export type PendingPickInput = Omit<CreateMtwPickTaskIntentInput, 'idempotencyKey'>;
5
+ export declare function pendingContextSignature(context: Context): string;
6
+ export declare function pendingPickInput(context: Context, count: string, reason: string): PendingPickInput;
7
+ export declare function pendingPickMatches(draftSignature: string, current: Context): boolean;
8
+ export {};
@@ -0,0 +1,18 @@
1
+ import { MtwProcedureScopeInput, MtwProcedureStep } from '../../generated/logistics-procedure-operations';
2
+
3
+ export declare const procedureSteps: readonly MtwProcedureStep[];
4
+ export declare const stepLabel: Record<MtwProcedureStep, string>;
5
+ export declare function object(value: unknown): value is Record<string, unknown>;
6
+ export declare function procedureAcknowledgement(result: Record<string, unknown>, input: Record<string, unknown>, actorId?: string): boolean;
7
+ /** Local input never supplies readiness, actor identity, execution or custody facts. */
8
+ export declare function localProcedureInstant(value: string): string;
9
+ export declare function scopeInput(scope: Omit<MtwProcedureScopeInput, 'declaredJurisdictions'> & {
10
+ declaredJurisdictions: string[];
11
+ }): MtwProcedureScopeInput;
12
+ export declare function chainMatches(pin: {
13
+ id: string;
14
+ version: number;
15
+ } | null, current: {
16
+ id: string;
17
+ version: number;
18
+ } | null): boolean;
@@ -0,0 +1,5 @@
1
+ import { ReuseRecovery } from './reuseRecovery';
2
+
3
+ export declare const PROCEDURE_RECOVERY_STORAGE = "movethewheels.procedure.unresolved.v1";
4
+ export declare function decodeProcedureRecovery(raw: string | null): ReuseRecovery | null;
5
+ export declare function encodeProcedureRecovery(attempt: ReuseRecovery): string;
@@ -0,0 +1,7 @@
1
+ /** Stores one submitted intent. Reads may refresh versions without changing an uncertain retry. */
2
+ export interface ReuseAttempt {
3
+ fingerprint: string;
4
+ input: Record<string, unknown>;
5
+ key: string;
6
+ }
7
+ export declare function reuseAttempt(previous: ReuseAttempt | null, operation: string, input: Record<string, unknown>, createKey: () => string): ReuseAttempt;
@@ -0,0 +1,6 @@
1
+ import { MtwReuseSourceAttestationInput } from '../../generated/empty-reuse-operations';
2
+ import { SelectedEvidence } from '../components/ContainerEvidencePicker';
3
+
4
+ export declare function reuseText(values: FormData, name: string): string;
5
+ export declare function reuseInteger(values: FormData, name: string): number;
6
+ export declare function readReuseSource(values: FormData, name: string, evidence: SelectedEvidence[]): MtwReuseSourceAttestationInput | undefined;
@@ -0,0 +1,26 @@
1
+ import { DocumentNode } from 'graphql';
2
+
3
+ export declare const REUSE_RECOVERY_STORAGE = "movethewheels.empty-reuse.unresolved.v1";
4
+ export interface ReuseRecoveryScope {
5
+ actorId: string;
6
+ workspaceId: string;
7
+ tenantId: string;
8
+ organizationId: string;
9
+ gateway: string;
10
+ projectId: string | null;
11
+ }
12
+ export interface ReuseRecovery {
13
+ version: 1;
14
+ scope: ReuseRecoveryScope;
15
+ operation: string;
16
+ input: Record<string, unknown>;
17
+ key: string;
18
+ success: string;
19
+ }
20
+ /** Claims are context comparison metadata only; the gateway remains the authentication authority. */
21
+ export declare function reuseRecoveryScope(actorId: string | undefined, workspaceId: string | undefined, tenantId: string | undefined, gateway: string | undefined, workspaceToken: string | undefined): ReuseRecoveryScope | null;
22
+ /** Stable across token renewal; changing an owner/project context resets unsent forms. */
23
+ export declare function reuseRecoveryContextKey(scope: ReuseRecoveryScope | null): string;
24
+ export declare function sameReuseRecoveryScope(a: ReuseRecoveryScope, b: ReuseRecoveryScope | null): boolean;
25
+ export declare function decodeReuseRecovery(raw: string | null, documents: readonly DocumentNode[]): ReuseRecovery | null;
26
+ export declare function encodeReuseRecovery(value: ReuseRecovery): string;
@@ -0,0 +1,23 @@
1
+ import { RecordMtwStockBindingAssessmentInput, StockSourceContextFragment, StockAssessmentFragment } from '../../generated/stock-binding-operations';
2
+ import { SelectedEvidence } from '../components/ContainerEvidencePicker';
3
+
4
+ export interface StockDraftPin {
5
+ inventoryItemId: string;
6
+ expectedCargoItemId: string;
7
+ expectedWarehouseId: string;
8
+ expectedLocationId: string | null;
9
+ expectedCompositionEpoch: number;
10
+ expectedInventoryUpdatedAt: string;
11
+ expectedCargoUpdatedAt: string;
12
+ expectedWarehouseUpdatedAt: string;
13
+ expectedLocationUpdatedAt: string | null;
14
+ expectedPreviousAssessmentId: string | null;
15
+ expectedVersion: number;
16
+ label: string;
17
+ }
18
+ export type StockFactDraft = Pick<RecordMtwStockBindingAssessmentInput, 'effectiveAt' | 'facts' | 'evidence'>;
19
+ export declare function stockContextLabel(row: StockSourceContextFragment): string;
20
+ export declare function stockDraftPin(row: StockSourceContextFragment, predecessor: StockAssessmentFragment | null): StockDraftPin;
21
+ export declare function stockContextMatches(pin: StockDraftPin, row: StockSourceContextFragment | null | undefined, predecessor: StockAssessmentFragment | null): boolean;
22
+ export declare function inputForStockDraft(draft: StockFactDraft, pin: StockDraftPin, row: StockSourceContextFragment | null | undefined, predecessor: StockAssessmentFragment | null): Omit<RecordMtwStockBindingAssessmentInput, 'idempotencyKey'>;
23
+ export declare function readStockFactDraft(data: FormData, evidence: SelectedEvidence[]): StockFactDraft;
@@ -0,0 +1,10 @@
1
+ export declare function stockCompletenessLabel(status: string): string;
2
+ export declare function stockFactLabel(value: string | null | undefined): string;
3
+ export declare function stockMissingFactLabel(value: string): string;
4
+ export declare function stockContinuityLabel(assessment: {
5
+ inventoryItemId: string;
6
+ capturedCompositionEpoch?: number | null;
7
+ }, current?: {
8
+ id: string;
9
+ compositionEpoch: number;
10
+ } | null): string;
@@ -0,0 +1,5 @@
1
+ import { RecordMtwStockObservationInput } from '../../generated/stock-observation-operations';
2
+
3
+ /** Blank remains unknown, explicit zero remains zero; no inferred stock adjustment. */
4
+ export declare function reportedCount(value: string): number | null;
5
+ export declare function stockObservationInput(inventoryItemId: string, form: FormData): Omit<RecordMtwStockObservationInput, 'idempotencyKey'>;
@@ -0,0 +1,25 @@
1
+ import { RecordMtwTripUtilizationReportInput } from '../../generated/trip-utilization-operations';
2
+ import { TripReportDraft } from './tripUtilizationForm';
3
+
4
+ export interface TripDraftContext {
5
+ routeId: string;
6
+ routeUpdatedAt: string;
7
+ vehicleId: string;
8
+ vehicleUpdatedAt: string;
9
+ routeName: string;
10
+ vehicleNumber: string;
11
+ }
12
+ interface RouteContext {
13
+ id: string;
14
+ updatedAt: string;
15
+ vehicleId?: string | null;
16
+ }
17
+ interface VehicleContext {
18
+ id: string;
19
+ updatedAt: string;
20
+ }
21
+ export declare function tripRouteStillMatches(pin: TripDraftContext, route: RouteContext | null | undefined): boolean;
22
+ export declare function tripContextStillMatches(pin: TripDraftContext, route: RouteContext | null | undefined, vehicle: VehicleContext | null | undefined): boolean;
23
+ /** Fresh reads verify captured intent; they never replace the vehicle or revisions entered against. */
24
+ export declare function inputForTripDraft(draft: TripReportDraft, pin: TripDraftContext, route: RouteContext | null | undefined, vehicle: VehicleContext | null | undefined): Omit<RecordMtwTripUtilizationReportInput, 'idempotencyKey'>;
25
+ export {};
@@ -0,0 +1,6 @@
1
+ import { RecordMtwTripUtilizationReportInput, MtwTripUtilizationBasis, MtwTripUtilizationCoverage } from '../../generated/trip-utilization-operations';
2
+ import { SelectedEvidence } from '../components/ContainerEvidencePicker';
3
+
4
+ export type TripReportDraft = Omit<RecordMtwTripUtilizationReportInput, 'routeId' | 'vehicleId' | 'expectedRouteUpdatedAt' | 'expectedVehicleUpdatedAt' | 'idempotencyKey'>;
5
+ export declare function tripQuantity(text: string, maximum: number, positive?: boolean): number | null;
6
+ export declare function readTripDraft(values: FormData, ids: string[], basis: MtwTripUtilizationBasis, coverage: MtwTripUtilizationCoverage, evidence: SelectedEvidence[]): TripReportDraft;
@@ -7,9 +7,9 @@ function s(r) {
7
7
  let { instance: o, context: s } = r(n).current;
8
8
  i(a, () => o);
9
9
  let { children: c } = n;
10
- return c == null ? null : /* @__PURE__ */ t.createElement(e, { value: s }, c);
10
+ return c == null ? null : /*#__PURE__*/ t.createElement(e, { value: s }, c);
11
11
  }
12
- return /* @__PURE__ */ n(a);
12
+ return /*#__PURE__*/ n(a);
13
13
  }
14
14
  function c(e) {
15
15
  function t(t, n) {
@@ -22,16 +22,16 @@ function c(e) {
22
22
  t.children
23
23
  ]);
24
24
  let u = l._contentNode;
25
- return u ? /* @__PURE__ */ o(t.children, u) : null;
25
+ return u ? /*#__PURE__*/ o(t.children, u) : null;
26
26
  }
27
- return /* @__PURE__ */ n(t);
27
+ return /*#__PURE__*/ n(t);
28
28
  }
29
29
  function l(e) {
30
30
  function t(t, n) {
31
31
  let { instance: r } = e(t).current;
32
32
  return i(n, () => r), null;
33
33
  }
34
- return /* @__PURE__ */ n(t);
34
+ return /*#__PURE__*/ n(t);
35
35
  }
36
36
  //#endregion
37
37
  export { s as createContainerComponent, c as createDivOverlayComponent, l as createLeafComponent };