@burdenoff/microfe-movethewheels 2026.930.4 → 2026.1010.1

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 (377) 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/useInventory.js +12 -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/InventoryPage.js +77 -73
  223. package/dist/pages/LogisticsProceduresPage.js +100 -0
  224. package/dist/pages/PendingPickPage.js +155 -0
  225. package/dist/pages/StockBindingPage.js +236 -0
  226. package/dist/pages/StockObservationsPage.js +168 -0
  227. package/dist/pages/TripUtilizationPage.js +227 -0
  228. package/dist/src/generated/consolidation-operations.js +505 -0
  229. package/dist/src/generated/container-condition-operations.js +208 -0
  230. package/dist/src/generated/container-operations.js +101 -0
  231. package/dist/src/generated/empty-reuse-operations.js +749 -0
  232. package/dist/src/generated/free-time-operations.js +235 -0
  233. package/dist/src/generated/freight-cost-operations.js +325 -0
  234. package/dist/src/generated/logistics-procedure-operations.js +362 -0
  235. package/dist/src/generated/pending-pick-operations.js +1128 -0
  236. package/dist/src/generated/stock-binding-operations.js +175 -0
  237. package/dist/src/generated/stock-observation-operations.js +93 -0
  238. package/dist/src/generated/trip-utilization-operations.js +140 -0
  239. package/dist/src/generated/wspace-operations.js +708 -0
  240. package/dist/utils/consolidationHistoryTarget.js +27 -0
  241. package/dist/utils/consolidationInput.js +21 -0
  242. package/dist/utils/consolidationLot.js +29 -0
  243. package/dist/utils/consolidationPins.js +13 -0
  244. package/dist/utils/consolidationRecovery.js +40 -0
  245. package/dist/utils/consolidationReportHead.js +18 -0
  246. package/dist/utils/freeTimeDate.js +26 -0
  247. package/dist/utils/freightAcknowledgement.js +8 -0
  248. package/dist/utils/freightDraft.js +125 -0
  249. package/dist/utils/freightRecovery.js +36 -0
  250. package/dist/utils/graphqlClient.js +28 -28
  251. package/dist/utils/pendingPickDraft.js +46 -0
  252. package/dist/utils/procedureInput.js +43 -0
  253. package/dist/utils/procedureRecovery.js +42 -0
  254. package/dist/utils/reuseAttempt.js +20 -0
  255. package/dist/utils/reuseForm.js +25 -0
  256. package/dist/utils/reuseRecovery.js +71 -0
  257. package/dist/utils/stockBindingForm.js +142 -0
  258. package/dist/utils/stockBindingLabels.js +23 -0
  259. package/dist/utils/stockObservationForm.js +55 -0
  260. package/dist/utils/tripDraftContext.js +19 -0
  261. package/dist/utils/tripUtilizationForm.js +60 -0
  262. package/package.json +19 -5
  263. package/src/generated/consolidation-operations.ts +1138 -0
  264. package/src/generated/container-condition-operations.ts +771 -0
  265. package/src/generated/container-operations.ts +376 -0
  266. package/src/generated/empty-reuse-operations.ts +1648 -0
  267. package/src/generated/free-time-operations.ts +814 -0
  268. package/src/generated/freight-cost-operations.ts +753 -0
  269. package/src/generated/logistics-procedure-operations.ts +1047 -0
  270. package/src/generated/pending-pick-operations.ts +1508 -0
  271. package/src/generated/stock-binding-operations.ts +631 -0
  272. package/src/generated/stock-observation-operations.ts +373 -0
  273. package/src/generated/trip-utilization-operations.ts +500 -0
  274. package/src/generated/wspace-operations.ts +116 -0
  275. package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
  276. package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
  277. package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
  278. package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
  279. package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
  280. package/src/movethewheels/components/ReuseControls.tsx +138 -0
  281. package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
  282. package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
  283. package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
  284. package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
  285. package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
  286. package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
  287. package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
  288. package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
  289. package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
  290. package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
  291. package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
  292. package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
  293. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
  294. package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
  295. package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
  296. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
  297. package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
  298. package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
  299. package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
  300. package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
  301. package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
  302. package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
  303. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
  304. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
  305. package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
  306. package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
  307. package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
  308. package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
  309. package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
  310. package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
  311. package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
  312. package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
  313. package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
  314. package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
  315. package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
  316. package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
  317. package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
  318. package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
  319. package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
  320. package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
  321. package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
  322. package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
  323. package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
  324. package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
  325. package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
  326. package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
  327. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
  328. package/src/movethewheels/hooks/useInventory.ts +2 -20
  329. package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
  330. package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
  331. package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
  332. package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
  333. package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
  334. package/src/movethewheels/pages/ContainersPage.tsx +490 -0
  335. package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
  336. package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
  337. package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
  338. package/src/movethewheels/pages/InventoryPage.tsx +16 -2
  339. package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
  340. package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
  341. package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
  342. package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
  343. package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
  344. package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
  345. package/src/movethewheels/utils/consolidationInput.ts +70 -0
  346. package/src/movethewheels/utils/consolidationLot.ts +24 -0
  347. package/src/movethewheels/utils/consolidationPins.ts +52 -0
  348. package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
  349. package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
  350. package/src/movethewheels/utils/freeTimeDate.ts +31 -0
  351. package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
  352. package/src/movethewheels/utils/freightDraft.ts +170 -0
  353. package/src/movethewheels/utils/freightRecovery.ts +79 -0
  354. package/src/movethewheels/utils/graphqlClient.ts +14 -5
  355. package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
  356. package/src/movethewheels/utils/procedureInput.ts +98 -0
  357. package/src/movethewheels/utils/procedureRecovery.ts +92 -0
  358. package/src/movethewheels/utils/reuseAttempt.ts +29 -0
  359. package/src/movethewheels/utils/reuseForm.ts +30 -0
  360. package/src/movethewheels/utils/reuseRecovery.ts +151 -0
  361. package/src/movethewheels/utils/stockBindingForm.ts +209 -0
  362. package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
  363. package/src/movethewheels/utils/stockObservationForm.ts +73 -0
  364. package/src/movethewheels/utils/tripDraftContext.ts +61 -0
  365. package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
  366. package/src/operations/condition/container-condition.graphql +41 -0
  367. package/src/operations/consolidation/consolidation.graphql +490 -0
  368. package/src/operations/container/container-lifecycle.graphql +80 -0
  369. package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
  370. package/src/operations/free-time/free-time.graphql +47 -0
  371. package/src/operations/freight-cost/freight.graphql +6 -0
  372. package/src/operations/logistics-procedure/procedure.graphql +15 -0
  373. package/src/operations/pending-pick/pending-pick.graphql +1122 -0
  374. package/src/operations/stock-binding/stock-binding.graphql +160 -0
  375. package/src/operations/stock-observation/stock-observation.graphql +20 -0
  376. package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
  377. package/src/operations/wspace/container-evidence.graphql +6 -0
@@ -0,0 +1,631 @@
1
+ import { gql } from '@apollo/client';
2
+ export type Maybe<T> = T | null;
3
+ export type InputMaybe<T> = Maybe<T>;
4
+ export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
5
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
6
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
7
+ export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
8
+ export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
9
+ /** All built-in and custom scalars, mapped to their actual values */
10
+ export type Scalars = {
11
+ ID: { input: string; output: string; }
12
+ String: { input: string; output: string; }
13
+ Boolean: { input: boolean; output: boolean; }
14
+ Int: { input: number; output: number; }
15
+ Float: { input: number; output: number; }
16
+ DateTime: { input: string; output: string; }
17
+ };
18
+
19
+ export type InventoryFilterInput = {
20
+ cargoItemId?: InputMaybe<Scalars['ID']['input']>;
21
+ inventoryItemId?: InputMaybe<Scalars['ID']['input']>;
22
+ locationId?: InputMaybe<Scalars['ID']['input']>;
23
+ lowStock?: InputMaybe<Scalars['Boolean']['input']>;
24
+ search?: InputMaybe<Scalars['String']['input']>;
25
+ warehouseId?: InputMaybe<Scalars['ID']['input']>;
26
+ };
27
+
28
+ /**
29
+ * MoveTheWheels-owned cargo/item master used for warehouse inventory and shipment payloads.
30
+ * This is not a sellable storefront product; commerce SKUs must live in global-store-svc
31
+ * (StoreProduct) and be referenced by storeProductId when needed.
32
+ */
33
+ export type MtwCargoItem = {
34
+ __typename?: 'MtwCargoItem';
35
+ fragile: Scalars['Boolean']['output'];
36
+ hazardous: Scalars['Boolean']['output'];
37
+ id: Scalars['ID']['output'];
38
+ name: Scalars['String']['output'];
39
+ sku: Scalars['String']['output'];
40
+ temperatureControlled: Scalars['Boolean']['output'];
41
+ updatedAt: Scalars['DateTime']['output'];
42
+ };
43
+
44
+ /** Bounded audit snapshot of at most 10 exact evidence versions. */
45
+ export type MtwContainerEvidence = {
46
+ __typename?: 'MtwContainerEvidence';
47
+ checkedAt: Scalars['DateTime']['output'];
48
+ fileId: Scalars['ID']['output'];
49
+ sha256Hash: Scalars['String']['output'];
50
+ versionId: Scalars['ID']['output'];
51
+ };
52
+
53
+ /** Exact shared Files version. The fingerprint establishes integrity, not issuer authenticity. */
54
+ export type MtwContainerEvidenceInput = {
55
+ fileId: Scalars['ID']['input'];
56
+ versionId: Scalars['ID']['input'];
57
+ };
58
+
59
+ export type MtwContainerPagination = {
60
+ limit?: InputMaybe<Scalars['Int']['input']>;
61
+ offset?: InputMaybe<Scalars['Int']['input']>;
62
+ };
63
+
64
+ export type MtwInventoryItem = {
65
+ __typename?: 'MtwInventoryItem';
66
+ allocated: Scalars['Int']['output'];
67
+ available: Scalars['Int']['output'];
68
+ cargoItem?: Maybe<MtwCargoItem>;
69
+ cargoItemId: Scalars['ID']['output'];
70
+ /** Monotonic stock/binding change marker, not certified composition or pick eligibility. */
71
+ compositionEpoch: Scalars['Int']['output'];
72
+ damaged: Scalars['Int']['output'];
73
+ id: Scalars['ID']['output'];
74
+ location?: Maybe<MtwWarehouseLocation>;
75
+ locationId?: Maybe<Scalars['ID']['output']>;
76
+ onHand: Scalars['Int']['output'];
77
+ updatedAt: Scalars['DateTime']['output'];
78
+ warehouse?: Maybe<MtwWarehouse>;
79
+ warehouseId: Scalars['ID']['output'];
80
+ };
81
+
82
+ /** Append-only source assessment. Future effective times and historical expiry do not assert current readiness. */
83
+ export type MtwStockBindingAssessment = {
84
+ __typename?: 'MtwStockBindingAssessment';
85
+ actorProvenance: Scalars['String']['output'];
86
+ capturedCargoItemId: Scalars['ID']['output'];
87
+ capturedCargoUpdatedAt: Scalars['DateTime']['output'];
88
+ /** Null means composition epoch was not reviewed; a value is not current pick eligibility. */
89
+ capturedCompositionEpoch?: Maybe<Scalars['Int']['output']>;
90
+ capturedInventoryUpdatedAt: Scalars['DateTime']['output'];
91
+ capturedLocationId?: Maybe<Scalars['ID']['output']>;
92
+ capturedLocationUpdatedAt?: Maybe<Scalars['DateTime']['output']>;
93
+ capturedStockQuantityAudit: MtwStockBindingQuantityAudit;
94
+ capturedWarehouseId: Scalars['ID']['output'];
95
+ capturedWarehouseUpdatedAt: Scalars['DateTime']['output'];
96
+ completeness: MtwStockBindingCompleteness;
97
+ createdBy: Scalars['String']['output'];
98
+ criticalFingerprint: Scalars['String']['output'];
99
+ criticalOwnerSnapshot: MtwStockBindingOwnerSnapshot;
100
+ effectiveAt: Scalars['DateTime']['output'];
101
+ evidence: Array<MtwContainerEvidence>;
102
+ facts: MtwStockBindingFacts;
103
+ id: Scalars['ID']['output'];
104
+ inventoryItemId: Scalars['ID']['output'];
105
+ onBehalfOf?: Maybe<Scalars['String']['output']>;
106
+ previousAssessmentId?: Maybe<Scalars['ID']['output']>;
107
+ recordedAt: Scalars['DateTime']['output'];
108
+ version: Scalars['Int']['output'];
109
+ };
110
+
111
+ export type MtwStockBindingAssessmentPage = {
112
+ __typename?: 'MtwStockBindingAssessmentPage';
113
+ hasMore: Scalars['Boolean']['output'];
114
+ items: Array<MtwStockBindingAssessment>;
115
+ limit: Scalars['Int']['output'];
116
+ nextOffset?: Maybe<Scalars['Int']['output']>;
117
+ offset: Scalars['Int']['output'];
118
+ total: Scalars['Int']['output'];
119
+ };
120
+
121
+ export type MtwStockBindingCompleteness = {
122
+ __typename?: 'MtwStockBindingCompleteness';
123
+ reasons: Array<MtwStockBindingIncompleteReason>;
124
+ status: MtwStockBindingCompletenessStatus;
125
+ };
126
+
127
+ export type MtwStockBindingCompletenessStatus =
128
+ | 'INCOMPLETE'
129
+ | 'SOURCE_FACTS_ONLY'
130
+ | 'UNSUPPORTED_MIXED_LOT';
131
+
132
+ export type MtwStockBindingCountUnit = {
133
+ __typename?: 'MtwStockBindingCountUnit';
134
+ kind: MtwStockBindingCountUnitKind;
135
+ reference?: Maybe<Scalars['String']['output']>;
136
+ revision?: Maybe<Scalars['String']['output']>;
137
+ };
138
+
139
+ export type MtwStockBindingCountUnitInput = {
140
+ kind: MtwStockBindingCountUnitKind;
141
+ reference?: InputMaybe<Scalars['String']['input']>;
142
+ revision?: InputMaybe<Scalars['String']['input']>;
143
+ };
144
+
145
+ export type MtwStockBindingCountUnitKind =
146
+ | 'COUNT_UNIT';
147
+
148
+ export type MtwStockBindingExpiryPolicy =
149
+ | 'NO_REQUIRED_EXPIRY'
150
+ | 'TIME_BOUNDED'
151
+ | 'UNKNOWN';
152
+
153
+ /** Immutable operator declarations. Completeness does not establish current eligibility or physical verification. */
154
+ export type MtwStockBindingFacts = {
155
+ __typename?: 'MtwStockBindingFacts';
156
+ countUnit?: Maybe<MtwStockBindingCountUnit>;
157
+ declaredLotPolicy: MtwStockBindingLotPolicy;
158
+ lot?: Maybe<MtwStockBindingLot>;
159
+ provenance: MtwStockBindingProvenance;
160
+ scanMapping?: Maybe<MtwStockBindingScanMapping>;
161
+ schemaVersion: Scalars['Int']['output'];
162
+ scope: MtwStockBindingScope;
163
+ source: MtwStockBindingSource;
164
+ sourceValidity: MtwStockBindingSourceValidity;
165
+ };
166
+
167
+ export type MtwStockBindingFactsInput = {
168
+ countUnit?: InputMaybe<MtwStockBindingCountUnitInput>;
169
+ declaredLotPolicy: MtwStockBindingLotPolicy;
170
+ lot?: InputMaybe<MtwStockBindingLotInput>;
171
+ scanMapping?: InputMaybe<MtwStockBindingScanMappingInput>;
172
+ scope: MtwStockBindingScope;
173
+ source: MtwStockBindingSourceInput;
174
+ sourceValidity: MtwStockBindingSourceValidityInput;
175
+ };
176
+
177
+ export type MtwStockBindingIncompleteReason =
178
+ | 'BIN_LABEL_UNKNOWN'
179
+ | 'COUNT_UNIT_REFERENCE_UNKNOWN'
180
+ | 'COUNT_UNIT_REVISION_UNKNOWN'
181
+ | 'DECLARED_LOT_DISPOSITION_UNKNOWN'
182
+ | 'DECLARED_LOT_EXPIRED'
183
+ | 'DECLARED_LOT_HELD'
184
+ | 'ITEM_LABEL_UNKNOWN'
185
+ | 'LOT_EXPIRY_CUTOFF_UNKNOWN'
186
+ | 'LOT_EXPIRY_POLICY_UNKNOWN'
187
+ | 'LOT_EXPIRY_REVISION_UNKNOWN'
188
+ | 'LOT_EXPIRY_SOURCE_UNKNOWN'
189
+ | 'LOT_POLICY_UNKNOWN'
190
+ | 'LOT_REFERENCE_UNKNOWN'
191
+ | 'LOT_REVISION_UNKNOWN'
192
+ | 'MIXED_LOT_UNSUPPORTED'
193
+ | 'SCAN_MAPPING_REFERENCE_UNKNOWN'
194
+ | 'SCAN_MAPPING_REVISION_UNKNOWN'
195
+ | 'SCOPE_UNKNOWN'
196
+ | 'SOURCE_REFERENCE_UNKNOWN'
197
+ | 'SOURCE_REVISION_UNKNOWN'
198
+ | 'SOURCE_VALIDITY_END_UNKNOWN'
199
+ | 'SOURCE_VALIDITY_POLICY_UNKNOWN'
200
+ | 'SOURCE_VALIDITY_REFERENCE_UNKNOWN'
201
+ | 'SOURCE_VALIDITY_REVISION_UNKNOWN'
202
+ | 'SOURCE_VALIDITY_START_UNKNOWN';
203
+
204
+ export type MtwStockBindingLot = {
205
+ __typename?: 'MtwStockBindingLot';
206
+ declaredDisposition: MtwStockBindingLotDisposition;
207
+ expiry: MtwStockBindingLotExpiry;
208
+ reference?: Maybe<Scalars['String']['output']>;
209
+ revision?: Maybe<Scalars['String']['output']>;
210
+ };
211
+
212
+ export type MtwStockBindingLotDisposition =
213
+ | 'EXPIRED'
214
+ | 'HELD'
215
+ | 'RELEASED'
216
+ | 'UNKNOWN';
217
+
218
+ export type MtwStockBindingLotExpiry = {
219
+ __typename?: 'MtwStockBindingLotExpiry';
220
+ expiresAt?: Maybe<Scalars['DateTime']['output']>;
221
+ policy: MtwStockBindingExpiryPolicy;
222
+ sourceReference?: Maybe<Scalars['String']['output']>;
223
+ sourceRevision?: Maybe<Scalars['String']['output']>;
224
+ };
225
+
226
+ export type MtwStockBindingLotExpiryInput = {
227
+ expiresAt?: InputMaybe<Scalars['DateTime']['input']>;
228
+ policy: MtwStockBindingExpiryPolicy;
229
+ sourceReference?: InputMaybe<Scalars['String']['input']>;
230
+ sourceRevision?: InputMaybe<Scalars['String']['input']>;
231
+ };
232
+
233
+ export type MtwStockBindingLotInput = {
234
+ declaredDisposition: MtwStockBindingLotDisposition;
235
+ expiry: MtwStockBindingLotExpiryInput;
236
+ reference?: InputMaybe<Scalars['String']['input']>;
237
+ revision?: InputMaybe<Scalars['String']['input']>;
238
+ };
239
+
240
+ export type MtwStockBindingLotPolicy =
241
+ | 'NOT_REQUIRED'
242
+ | 'REQUIRED'
243
+ | 'UNKNOWN';
244
+
245
+ /** Captured owner identity and handling fields, never a substitution with current owner details. */
246
+ export type MtwStockBindingOwnerSnapshot = {
247
+ __typename?: 'MtwStockBindingOwnerSnapshot';
248
+ cargoFragile: Scalars['Boolean']['output'];
249
+ cargoHazardous: Scalars['Boolean']['output'];
250
+ cargoItemId: Scalars['ID']['output'];
251
+ cargoSku: Scalars['String']['output'];
252
+ cargoTemperatureControlled: Scalars['Boolean']['output'];
253
+ inventoryItemId: Scalars['ID']['output'];
254
+ locationCode?: Maybe<Scalars['String']['output']>;
255
+ locationId?: Maybe<Scalars['ID']['output']>;
256
+ locationStatus?: Maybe<Scalars['String']['output']>;
257
+ locationWarehouseId?: Maybe<Scalars['ID']['output']>;
258
+ schemaVersion: Scalars['Int']['output'];
259
+ warehouseCode: Scalars['String']['output'];
260
+ warehouseId: Scalars['ID']['output'];
261
+ warehouseStatus: Scalars['String']['output'];
262
+ workspaceId: Scalars['ID']['output'];
263
+ };
264
+
265
+ export type MtwStockBindingProvenance =
266
+ | 'OPERATOR_REPORTED';
267
+
268
+ export type MtwStockBindingQuantityAudit = {
269
+ __typename?: 'MtwStockBindingQuantityAudit';
270
+ allocated: Scalars['Int']['output'];
271
+ available: Scalars['Int']['output'];
272
+ damaged: Scalars['Int']['output'];
273
+ onHand: Scalars['Int']['output'];
274
+ };
275
+
276
+ export type MtwStockBindingScanMapping = {
277
+ __typename?: 'MtwStockBindingScanMapping';
278
+ mappingReference?: Maybe<Scalars['String']['output']>;
279
+ mappingRevision?: Maybe<Scalars['String']['output']>;
280
+ reportedBinLabel?: Maybe<Scalars['String']['output']>;
281
+ reportedItemLabel?: Maybe<Scalars['String']['output']>;
282
+ };
283
+
284
+ export type MtwStockBindingScanMappingInput = {
285
+ mappingReference?: InputMaybe<Scalars['String']['input']>;
286
+ mappingRevision?: InputMaybe<Scalars['String']['input']>;
287
+ reportedBinLabel?: InputMaybe<Scalars['String']['input']>;
288
+ reportedItemLabel?: InputMaybe<Scalars['String']['input']>;
289
+ };
290
+
291
+ export type MtwStockBindingScope =
292
+ | 'UNKNOWN'
293
+ | 'UNSUPPORTED_MIXED_LOT'
294
+ | 'WHOLE_LINE';
295
+
296
+ export type MtwStockBindingSource = {
297
+ __typename?: 'MtwStockBindingSource';
298
+ reference?: Maybe<Scalars['String']['output']>;
299
+ revision?: Maybe<Scalars['String']['output']>;
300
+ };
301
+
302
+ export type MtwStockBindingSourceInput = {
303
+ reference?: InputMaybe<Scalars['String']['input']>;
304
+ revision?: InputMaybe<Scalars['String']['input']>;
305
+ };
306
+
307
+ export type MtwStockBindingSourceValidity = {
308
+ __typename?: 'MtwStockBindingSourceValidity';
309
+ from?: Maybe<Scalars['DateTime']['output']>;
310
+ policy: MtwStockBindingExpiryPolicy;
311
+ sourceReference?: Maybe<Scalars['String']['output']>;
312
+ sourceRevision?: Maybe<Scalars['String']['output']>;
313
+ until?: Maybe<Scalars['DateTime']['output']>;
314
+ };
315
+
316
+ export type MtwStockBindingSourceValidityInput = {
317
+ from?: InputMaybe<Scalars['DateTime']['input']>;
318
+ policy: MtwStockBindingExpiryPolicy;
319
+ sourceReference?: InputMaybe<Scalars['String']['input']>;
320
+ sourceRevision?: InputMaybe<Scalars['String']['input']>;
321
+ until?: InputMaybe<Scalars['DateTime']['input']>;
322
+ };
323
+
324
+ export type MtwWarehouse = {
325
+ __typename?: 'MtwWarehouse';
326
+ code: Scalars['String']['output'];
327
+ id: Scalars['ID']['output'];
328
+ name: Scalars['String']['output'];
329
+ status: Scalars['String']['output'];
330
+ updatedAt: Scalars['DateTime']['output'];
331
+ };
332
+
333
+ export type MtwWarehouseLocation = {
334
+ __typename?: 'MtwWarehouseLocation';
335
+ id: Scalars['ID']['output'];
336
+ locationCode: Scalars['String']['output'];
337
+ status: Scalars['String']['output'];
338
+ updatedAt: Scalars['DateTime']['output'];
339
+ warehouseId: Scalars['ID']['output'];
340
+ };
341
+
342
+ export type Mutation = {
343
+ __typename?: 'Mutation';
344
+ recordMtwStockBindingAssessment: MtwStockBindingAssessment;
345
+ };
346
+
347
+
348
+ export type MutationRecordMtwStockBindingAssessmentArgs = {
349
+ input: RecordMtwStockBindingAssessmentInput;
350
+ };
351
+
352
+ export type PaginationInput = {
353
+ cursor?: InputMaybe<Scalars['String']['input']>;
354
+ limit?: InputMaybe<Scalars['Int']['input']>;
355
+ offset?: InputMaybe<Scalars['Int']['input']>;
356
+ };
357
+
358
+ export type Query = {
359
+ __typename?: 'Query';
360
+ inventoryItem?: Maybe<MtwInventoryItem>;
361
+ inventoryItems: Array<MtwInventoryItem>;
362
+ inventoryItemsCount: Scalars['Int']['output'];
363
+ mtwStockBindingAssessment: MtwStockBindingAssessment;
364
+ mtwStockBindingAssessmentPage: MtwStockBindingAssessmentPage;
365
+ };
366
+
367
+
368
+ export type QueryInventoryItemArgs = {
369
+ id: Scalars['ID']['input'];
370
+ };
371
+
372
+
373
+ export type QueryInventoryItemsArgs = {
374
+ filter?: InputMaybe<InventoryFilterInput>;
375
+ pagination?: InputMaybe<PaginationInput>;
376
+ };
377
+
378
+
379
+ export type QueryInventoryItemsCountArgs = {
380
+ filter?: InputMaybe<InventoryFilterInput>;
381
+ };
382
+
383
+
384
+ export type QueryMtwStockBindingAssessmentArgs = {
385
+ id: Scalars['ID']['input'];
386
+ inventoryItemId: Scalars['ID']['input'];
387
+ };
388
+
389
+
390
+ export type QueryMtwStockBindingAssessmentPageArgs = {
391
+ inventoryItemId: Scalars['ID']['input'];
392
+ pagination?: InputMaybe<MtwContainerPagination>;
393
+ };
394
+
395
+ export type RecordMtwStockBindingAssessmentInput = {
396
+ effectiveAt: Scalars['DateTime']['input'];
397
+ evidence: Array<MtwContainerEvidenceInput>;
398
+ expectedCargoItemId: Scalars['ID']['input'];
399
+ expectedCargoUpdatedAt: Scalars['DateTime']['input'];
400
+ /** Optional exact reviewed change marker; omission remains unpinned source history. */
401
+ expectedCompositionEpoch?: InputMaybe<Scalars['Int']['input']>;
402
+ expectedInventoryUpdatedAt: Scalars['DateTime']['input'];
403
+ expectedLocationId?: InputMaybe<Scalars['ID']['input']>;
404
+ expectedLocationUpdatedAt?: InputMaybe<Scalars['DateTime']['input']>;
405
+ expectedPreviousAssessmentId?: InputMaybe<Scalars['ID']['input']>;
406
+ expectedVersion: Scalars['Int']['input'];
407
+ expectedWarehouseId: Scalars['ID']['input'];
408
+ expectedWarehouseUpdatedAt: Scalars['DateTime']['input'];
409
+ facts: MtwStockBindingFactsInput;
410
+ idempotencyKey: Scalars['String']['input'];
411
+ inventoryItemId: Scalars['ID']['input'];
412
+ };
413
+
414
+ export type StockSourceContextFragment = { __typename?: 'MtwInventoryItem', id: string, cargoItemId: string, warehouseId: string, locationId?: string | null, updatedAt: string, compositionEpoch: number, onHand: number, available: number, allocated: number, damaged: number, cargoItem?: { __typename?: 'MtwCargoItem', id: string, name: string, sku: string, hazardous: boolean, fragile: boolean, temperatureControlled: boolean, updatedAt: string } | null, warehouse?: { __typename?: 'MtwWarehouse', id: string, name: string, code: string, status: string, updatedAt: string } | null, location?: { __typename?: 'MtwWarehouseLocation', id: string, warehouseId: string, locationCode: string, status: string, updatedAt: string } | null };
415
+
416
+ export type StockAssessmentFragment = { __typename?: 'MtwStockBindingAssessment', id: string, inventoryItemId: string, version: number, previousAssessmentId?: string | null, effectiveAt: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, capturedCargoItemId: string, capturedWarehouseId: string, capturedLocationId?: string | null, capturedInventoryUpdatedAt: string, capturedCargoUpdatedAt: string, capturedWarehouseUpdatedAt: string, capturedLocationUpdatedAt?: string | null, capturedCompositionEpoch?: number | null, criticalFingerprint: string, completeness: { __typename?: 'MtwStockBindingCompleteness', status: MtwStockBindingCompletenessStatus, reasons: Array<MtwStockBindingIncompleteReason> }, facts: { __typename?: 'MtwStockBindingFacts', schemaVersion: number, provenance: MtwStockBindingProvenance, scope: MtwStockBindingScope, declaredLotPolicy: MtwStockBindingLotPolicy, source: { __typename?: 'MtwStockBindingSource', reference?: string | null, revision?: string | null }, countUnit?: { __typename?: 'MtwStockBindingCountUnit', kind: MtwStockBindingCountUnitKind, reference?: string | null, revision?: string | null } | null, scanMapping?: { __typename?: 'MtwStockBindingScanMapping', reportedItemLabel?: string | null, reportedBinLabel?: string | null, mappingReference?: string | null, mappingRevision?: string | null } | null, lot?: { __typename?: 'MtwStockBindingLot', reference?: string | null, revision?: string | null, declaredDisposition: MtwStockBindingLotDisposition, expiry: { __typename?: 'MtwStockBindingLotExpiry', policy: MtwStockBindingExpiryPolicy, expiresAt?: string | null, sourceReference?: string | null, sourceRevision?: string | null } } | null, sourceValidity: { __typename?: 'MtwStockBindingSourceValidity', policy: MtwStockBindingExpiryPolicy, from?: string | null, until?: string | null, sourceReference?: string | null, sourceRevision?: string | null } }, criticalOwnerSnapshot: { __typename?: 'MtwStockBindingOwnerSnapshot', schemaVersion: number, workspaceId: string, inventoryItemId: string, cargoItemId: string, warehouseId: string, locationId?: string | null, cargoSku: string, cargoHazardous: boolean, cargoFragile: boolean, cargoTemperatureControlled: boolean, warehouseCode: string, warehouseStatus: string, locationWarehouseId?: string | null, locationCode?: string | null, locationStatus?: string | null }, capturedStockQuantityAudit: { __typename?: 'MtwStockBindingQuantityAudit', onHand: number, available: number, allocated: number, damaged: number }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> };
417
+
418
+ export type StockBindingInventoryQueryVariables = Exact<{
419
+ pagination?: InputMaybe<PaginationInput>;
420
+ }>;
421
+
422
+
423
+ export type StockBindingInventoryQuery = { __typename?: 'Query', inventoryItemsCount: number, inventoryItems: Array<{ __typename?: 'MtwInventoryItem', id: string, cargoItemId: string, warehouseId: string, locationId?: string | null, updatedAt: string, compositionEpoch: number, onHand: number, available: number, allocated: number, damaged: number, cargoItem?: { __typename?: 'MtwCargoItem', id: string, name: string, sku: string, hazardous: boolean, fragile: boolean, temperatureControlled: boolean, updatedAt: string } | null, warehouse?: { __typename?: 'MtwWarehouse', id: string, name: string, code: string, status: string, updatedAt: string } | null, location?: { __typename?: 'MtwWarehouseLocation', id: string, warehouseId: string, locationCode: string, status: string, updatedAt: string } | null }> };
424
+
425
+ export type StockBindingContextQueryVariables = Exact<{
426
+ id: Scalars['ID']['input'];
427
+ }>;
428
+
429
+
430
+ export type StockBindingContextQuery = { __typename?: 'Query', inventoryItem?: { __typename?: 'MtwInventoryItem', id: string, cargoItemId: string, warehouseId: string, locationId?: string | null, updatedAt: string, compositionEpoch: number, onHand: number, available: number, allocated: number, damaged: number, cargoItem?: { __typename?: 'MtwCargoItem', id: string, name: string, sku: string, hazardous: boolean, fragile: boolean, temperatureControlled: boolean, updatedAt: string } | null, warehouse?: { __typename?: 'MtwWarehouse', id: string, name: string, code: string, status: string, updatedAt: string } | null, location?: { __typename?: 'MtwWarehouseLocation', id: string, warehouseId: string, locationCode: string, status: string, updatedAt: string } | null } | null };
431
+
432
+ export type StockBindingHistoryQueryVariables = Exact<{
433
+ inventoryItemId: Scalars['ID']['input'];
434
+ pagination?: InputMaybe<MtwContainerPagination>;
435
+ }>;
436
+
437
+
438
+ export type StockBindingHistoryQuery = { __typename?: 'Query', mtwStockBindingAssessmentPage: { __typename?: 'MtwStockBindingAssessmentPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwStockBindingAssessment', id: string, inventoryItemId: string, version: number, previousAssessmentId?: string | null, effectiveAt: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, capturedCargoItemId: string, capturedWarehouseId: string, capturedLocationId?: string | null, capturedInventoryUpdatedAt: string, capturedCargoUpdatedAt: string, capturedWarehouseUpdatedAt: string, capturedLocationUpdatedAt?: string | null, capturedCompositionEpoch?: number | null, criticalFingerprint: string, completeness: { __typename?: 'MtwStockBindingCompleteness', status: MtwStockBindingCompletenessStatus, reasons: Array<MtwStockBindingIncompleteReason> }, facts: { __typename?: 'MtwStockBindingFacts', schemaVersion: number, provenance: MtwStockBindingProvenance, scope: MtwStockBindingScope, declaredLotPolicy: MtwStockBindingLotPolicy, source: { __typename?: 'MtwStockBindingSource', reference?: string | null, revision?: string | null }, countUnit?: { __typename?: 'MtwStockBindingCountUnit', kind: MtwStockBindingCountUnitKind, reference?: string | null, revision?: string | null } | null, scanMapping?: { __typename?: 'MtwStockBindingScanMapping', reportedItemLabel?: string | null, reportedBinLabel?: string | null, mappingReference?: string | null, mappingRevision?: string | null } | null, lot?: { __typename?: 'MtwStockBindingLot', reference?: string | null, revision?: string | null, declaredDisposition: MtwStockBindingLotDisposition, expiry: { __typename?: 'MtwStockBindingLotExpiry', policy: MtwStockBindingExpiryPolicy, expiresAt?: string | null, sourceReference?: string | null, sourceRevision?: string | null } } | null, sourceValidity: { __typename?: 'MtwStockBindingSourceValidity', policy: MtwStockBindingExpiryPolicy, from?: string | null, until?: string | null, sourceReference?: string | null, sourceRevision?: string | null } }, criticalOwnerSnapshot: { __typename?: 'MtwStockBindingOwnerSnapshot', schemaVersion: number, workspaceId: string, inventoryItemId: string, cargoItemId: string, warehouseId: string, locationId?: string | null, cargoSku: string, cargoHazardous: boolean, cargoFragile: boolean, cargoTemperatureControlled: boolean, warehouseCode: string, warehouseStatus: string, locationWarehouseId?: string | null, locationCode?: string | null, locationStatus?: string | null }, capturedStockQuantityAudit: { __typename?: 'MtwStockBindingQuantityAudit', onHand: number, available: number, allocated: number, damaged: number }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> }> } };
439
+
440
+ export type StockBindingExactQueryVariables = Exact<{
441
+ inventoryItemId: Scalars['ID']['input'];
442
+ id: Scalars['ID']['input'];
443
+ }>;
444
+
445
+
446
+ export type StockBindingExactQuery = { __typename?: 'Query', mtwStockBindingAssessment: { __typename?: 'MtwStockBindingAssessment', id: string, inventoryItemId: string, version: number, previousAssessmentId?: string | null, effectiveAt: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, capturedCargoItemId: string, capturedWarehouseId: string, capturedLocationId?: string | null, capturedInventoryUpdatedAt: string, capturedCargoUpdatedAt: string, capturedWarehouseUpdatedAt: string, capturedLocationUpdatedAt?: string | null, capturedCompositionEpoch?: number | null, criticalFingerprint: string, completeness: { __typename?: 'MtwStockBindingCompleteness', status: MtwStockBindingCompletenessStatus, reasons: Array<MtwStockBindingIncompleteReason> }, facts: { __typename?: 'MtwStockBindingFacts', schemaVersion: number, provenance: MtwStockBindingProvenance, scope: MtwStockBindingScope, declaredLotPolicy: MtwStockBindingLotPolicy, source: { __typename?: 'MtwStockBindingSource', reference?: string | null, revision?: string | null }, countUnit?: { __typename?: 'MtwStockBindingCountUnit', kind: MtwStockBindingCountUnitKind, reference?: string | null, revision?: string | null } | null, scanMapping?: { __typename?: 'MtwStockBindingScanMapping', reportedItemLabel?: string | null, reportedBinLabel?: string | null, mappingReference?: string | null, mappingRevision?: string | null } | null, lot?: { __typename?: 'MtwStockBindingLot', reference?: string | null, revision?: string | null, declaredDisposition: MtwStockBindingLotDisposition, expiry: { __typename?: 'MtwStockBindingLotExpiry', policy: MtwStockBindingExpiryPolicy, expiresAt?: string | null, sourceReference?: string | null, sourceRevision?: string | null } } | null, sourceValidity: { __typename?: 'MtwStockBindingSourceValidity', policy: MtwStockBindingExpiryPolicy, from?: string | null, until?: string | null, sourceReference?: string | null, sourceRevision?: string | null } }, criticalOwnerSnapshot: { __typename?: 'MtwStockBindingOwnerSnapshot', schemaVersion: number, workspaceId: string, inventoryItemId: string, cargoItemId: string, warehouseId: string, locationId?: string | null, cargoSku: string, cargoHazardous: boolean, cargoFragile: boolean, cargoTemperatureControlled: boolean, warehouseCode: string, warehouseStatus: string, locationWarehouseId?: string | null, locationCode?: string | null, locationStatus?: string | null }, capturedStockQuantityAudit: { __typename?: 'MtwStockBindingQuantityAudit', onHand: number, available: number, allocated: number, damaged: number }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
447
+
448
+ export type RecordStockBindingMutationVariables = Exact<{
449
+ input: RecordMtwStockBindingAssessmentInput;
450
+ }>;
451
+
452
+
453
+ export type RecordStockBindingMutation = { __typename?: 'Mutation', recordMtwStockBindingAssessment: { __typename?: 'MtwStockBindingAssessment', id: string, inventoryItemId: string, version: number, previousAssessmentId?: string | null, effectiveAt: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, capturedCargoItemId: string, capturedWarehouseId: string, capturedLocationId?: string | null, capturedInventoryUpdatedAt: string, capturedCargoUpdatedAt: string, capturedWarehouseUpdatedAt: string, capturedLocationUpdatedAt?: string | null, capturedCompositionEpoch?: number | null, criticalFingerprint: string, completeness: { __typename?: 'MtwStockBindingCompleteness', status: MtwStockBindingCompletenessStatus, reasons: Array<MtwStockBindingIncompleteReason> }, facts: { __typename?: 'MtwStockBindingFacts', schemaVersion: number, provenance: MtwStockBindingProvenance, scope: MtwStockBindingScope, declaredLotPolicy: MtwStockBindingLotPolicy, source: { __typename?: 'MtwStockBindingSource', reference?: string | null, revision?: string | null }, countUnit?: { __typename?: 'MtwStockBindingCountUnit', kind: MtwStockBindingCountUnitKind, reference?: string | null, revision?: string | null } | null, scanMapping?: { __typename?: 'MtwStockBindingScanMapping', reportedItemLabel?: string | null, reportedBinLabel?: string | null, mappingReference?: string | null, mappingRevision?: string | null } | null, lot?: { __typename?: 'MtwStockBindingLot', reference?: string | null, revision?: string | null, declaredDisposition: MtwStockBindingLotDisposition, expiry: { __typename?: 'MtwStockBindingLotExpiry', policy: MtwStockBindingExpiryPolicy, expiresAt?: string | null, sourceReference?: string | null, sourceRevision?: string | null } } | null, sourceValidity: { __typename?: 'MtwStockBindingSourceValidity', policy: MtwStockBindingExpiryPolicy, from?: string | null, until?: string | null, sourceReference?: string | null, sourceRevision?: string | null } }, criticalOwnerSnapshot: { __typename?: 'MtwStockBindingOwnerSnapshot', schemaVersion: number, workspaceId: string, inventoryItemId: string, cargoItemId: string, warehouseId: string, locationId?: string | null, cargoSku: string, cargoHazardous: boolean, cargoFragile: boolean, cargoTemperatureControlled: boolean, warehouseCode: string, warehouseStatus: string, locationWarehouseId?: string | null, locationCode?: string | null, locationStatus?: string | null }, capturedStockQuantityAudit: { __typename?: 'MtwStockBindingQuantityAudit', onHand: number, available: number, allocated: number, damaged: number }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
454
+
455
+ export const StockSourceContextFragmentDoc = gql`
456
+ fragment StockSourceContext on MtwInventoryItem {
457
+ id
458
+ cargoItemId
459
+ warehouseId
460
+ locationId
461
+ updatedAt
462
+ compositionEpoch
463
+ onHand
464
+ available
465
+ allocated
466
+ damaged
467
+ cargoItem {
468
+ id
469
+ name
470
+ sku
471
+ hazardous
472
+ fragile
473
+ temperatureControlled
474
+ updatedAt
475
+ }
476
+ warehouse {
477
+ id
478
+ name
479
+ code
480
+ status
481
+ updatedAt
482
+ }
483
+ location {
484
+ id
485
+ warehouseId
486
+ locationCode
487
+ status
488
+ updatedAt
489
+ }
490
+ }
491
+ `;
492
+ export const StockAssessmentFragmentDoc = gql`
493
+ fragment StockAssessment on MtwStockBindingAssessment {
494
+ id
495
+ inventoryItemId
496
+ version
497
+ previousAssessmentId
498
+ effectiveAt
499
+ recordedAt
500
+ createdBy
501
+ actorProvenance
502
+ onBehalfOf
503
+ capturedCargoItemId
504
+ capturedWarehouseId
505
+ capturedLocationId
506
+ capturedInventoryUpdatedAt
507
+ capturedCargoUpdatedAt
508
+ capturedWarehouseUpdatedAt
509
+ capturedLocationUpdatedAt
510
+ capturedCompositionEpoch
511
+ criticalFingerprint
512
+ completeness {
513
+ status
514
+ reasons
515
+ }
516
+ facts {
517
+ schemaVersion
518
+ provenance
519
+ scope
520
+ source {
521
+ reference
522
+ revision
523
+ }
524
+ countUnit {
525
+ kind
526
+ reference
527
+ revision
528
+ }
529
+ scanMapping {
530
+ reportedItemLabel
531
+ reportedBinLabel
532
+ mappingReference
533
+ mappingRevision
534
+ }
535
+ declaredLotPolicy
536
+ lot {
537
+ reference
538
+ revision
539
+ declaredDisposition
540
+ expiry {
541
+ policy
542
+ expiresAt
543
+ sourceReference
544
+ sourceRevision
545
+ }
546
+ }
547
+ sourceValidity {
548
+ policy
549
+ from
550
+ until
551
+ sourceReference
552
+ sourceRevision
553
+ }
554
+ }
555
+ criticalOwnerSnapshot {
556
+ schemaVersion
557
+ workspaceId
558
+ inventoryItemId
559
+ cargoItemId
560
+ warehouseId
561
+ locationId
562
+ cargoSku
563
+ cargoHazardous
564
+ cargoFragile
565
+ cargoTemperatureControlled
566
+ warehouseCode
567
+ warehouseStatus
568
+ locationWarehouseId
569
+ locationCode
570
+ locationStatus
571
+ }
572
+ capturedStockQuantityAudit {
573
+ onHand
574
+ available
575
+ allocated
576
+ damaged
577
+ }
578
+ evidence {
579
+ fileId
580
+ versionId
581
+ sha256Hash
582
+ checkedAt
583
+ }
584
+ }
585
+ `;
586
+ export const StockBindingInventoryDocument = gql`
587
+ query StockBindingInventory($pagination: PaginationInput) {
588
+ inventoryItems(pagination: $pagination) {
589
+ ...StockSourceContext
590
+ }
591
+ inventoryItemsCount
592
+ }
593
+ ${StockSourceContextFragmentDoc}`;
594
+ export const StockBindingContextDocument = gql`
595
+ query StockBindingContext($id: ID!) {
596
+ inventoryItem(id: $id) {
597
+ ...StockSourceContext
598
+ }
599
+ }
600
+ ${StockSourceContextFragmentDoc}`;
601
+ export const StockBindingHistoryDocument = gql`
602
+ query StockBindingHistory($inventoryItemId: ID!, $pagination: MtwContainerPagination) {
603
+ mtwStockBindingAssessmentPage(
604
+ inventoryItemId: $inventoryItemId
605
+ pagination: $pagination
606
+ ) {
607
+ items {
608
+ ...StockAssessment
609
+ }
610
+ total
611
+ limit
612
+ offset
613
+ hasMore
614
+ nextOffset
615
+ }
616
+ }
617
+ ${StockAssessmentFragmentDoc}`;
618
+ export const StockBindingExactDocument = gql`
619
+ query StockBindingExact($inventoryItemId: ID!, $id: ID!) {
620
+ mtwStockBindingAssessment(inventoryItemId: $inventoryItemId, id: $id) {
621
+ ...StockAssessment
622
+ }
623
+ }
624
+ ${StockAssessmentFragmentDoc}`;
625
+ export const RecordStockBindingDocument = gql`
626
+ mutation RecordStockBinding($input: RecordMtwStockBindingAssessmentInput!) {
627
+ recordMtwStockBindingAssessment(input: $input) {
628
+ ...StockAssessment
629
+ }
630
+ }
631
+ ${StockAssessmentFragmentDoc}`;