@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,1138 @@
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 MtwConsolidationCapture = {
20
+ __typename?: 'MtwConsolidationCapture';
21
+ bookingReference?: Maybe<Scalars['String']['output']>;
22
+ containerId: Scalars['ID']['output'];
23
+ cycleVersion: Scalars['Int']['output'];
24
+ shipmentNumber: Scalars['String']['output'];
25
+ shipmentUpdatedAt: Scalars['DateTime']['output'];
26
+ };
27
+
28
+ export type MtwConsolidationEvidenceDeclaration = {
29
+ __typename?: 'MtwConsolidationEvidenceDeclaration';
30
+ fileId: Scalars['ID']['output'];
31
+ verification: Scalars['String']['output'];
32
+ versionId: Scalars['ID']['output'];
33
+ };
34
+
35
+ export type MtwConsolidationFacts = {
36
+ __typename?: 'MtwConsolidationFacts';
37
+ bookingReference?: Maybe<Scalars['String']['output']>;
38
+ carrierReference?: Maybe<Scalars['String']['output']>;
39
+ contextSource: MtwConsolidationSource;
40
+ cutoffAt?: Maybe<Scalars['DateTime']['output']>;
41
+ effectiveAt: Scalars['DateTime']['output'];
42
+ hubName: Scalars['String']['output'];
43
+ hubReference: Scalars['String']['output'];
44
+ hubSource: MtwConsolidationSource;
45
+ jurisdictionReference?: Maybe<Scalars['String']['output']>;
46
+ lots: Array<MtwConsolidationLot>;
47
+ mode?: Maybe<Scalars['String']['output']>;
48
+ timezone?: Maybe<Scalars['String']['output']>;
49
+ };
50
+
51
+ export type MtwConsolidationFactsInput = {
52
+ bookingReference?: InputMaybe<Scalars['String']['input']>;
53
+ carrierReference?: InputMaybe<Scalars['String']['input']>;
54
+ contextSource: MtwConsolidationSourceInput;
55
+ cutoffAt?: InputMaybe<Scalars['DateTime']['input']>;
56
+ effectiveAt: Scalars['DateTime']['input'];
57
+ hubName: Scalars['String']['input'];
58
+ hubReference: Scalars['String']['input'];
59
+ hubSource: MtwConsolidationSourceInput;
60
+ jurisdictionReference?: InputMaybe<Scalars['String']['input']>;
61
+ lots: Array<MtwConsolidationLotInput>;
62
+ mode?: InputMaybe<Scalars['String']['input']>;
63
+ timezone?: InputMaybe<Scalars['String']['input']>;
64
+ };
65
+
66
+ export type MtwConsolidationLot = {
67
+ __typename?: 'MtwConsolidationLot';
68
+ balanceRevision?: Maybe<Scalars['String']['output']>;
69
+ consignmentReference: Scalars['String']['output'];
70
+ cubeM3?: Maybe<Scalars['String']['output']>;
71
+ destinationReference?: Maybe<Scalars['String']['output']>;
72
+ documentReference?: Maybe<Scalars['String']['output']>;
73
+ grossKg?: Maybe<Scalars['String']['output']>;
74
+ id: Scalars['ID']['output'];
75
+ importerReference?: Maybe<Scalars['String']['output']>;
76
+ lotReference: Scalars['String']['output'];
77
+ originReference?: Maybe<Scalars['String']['output']>;
78
+ plannedQuantity?: Maybe<Scalars['String']['output']>;
79
+ quantityBasis: MtwConsolidationQuantityBasis;
80
+ reportedAvailableQuantity?: Maybe<Scalars['String']['output']>;
81
+ source: MtwConsolidationSource;
82
+ sourceRevision: Scalars['String']['output'];
83
+ supplierReference: Scalars['String']['output'];
84
+ transportReference?: Maybe<Scalars['String']['output']>;
85
+ unitReference?: Maybe<Scalars['String']['output']>;
86
+ unitRevision?: Maybe<Scalars['String']['output']>;
87
+ };
88
+
89
+ export type MtwConsolidationLotInput = {
90
+ balanceRevision?: InputMaybe<Scalars['String']['input']>;
91
+ consignmentReference: Scalars['String']['input'];
92
+ cubeM3?: InputMaybe<Scalars['String']['input']>;
93
+ destinationReference?: InputMaybe<Scalars['String']['input']>;
94
+ documentReference?: InputMaybe<Scalars['String']['input']>;
95
+ grossKg?: InputMaybe<Scalars['String']['input']>;
96
+ id: Scalars['ID']['input'];
97
+ importerReference?: InputMaybe<Scalars['String']['input']>;
98
+ lotReference: Scalars['String']['input'];
99
+ originReference?: InputMaybe<Scalars['String']['input']>;
100
+ plannedQuantity?: InputMaybe<Scalars['String']['input']>;
101
+ quantityBasis: MtwConsolidationQuantityBasis;
102
+ reportedAvailableQuantity?: InputMaybe<Scalars['String']['input']>;
103
+ source: MtwConsolidationSourceInput;
104
+ sourceRevision: Scalars['String']['input'];
105
+ supplierReference: Scalars['String']['input'];
106
+ transportReference?: InputMaybe<Scalars['String']['input']>;
107
+ unitReference?: InputMaybe<Scalars['String']['input']>;
108
+ unitRevision?: InputMaybe<Scalars['String']['input']>;
109
+ };
110
+
111
+ export type MtwConsolidationManifest = {
112
+ __typename?: 'MtwConsolidationManifest';
113
+ actorProvenance: Scalars['String']['output'];
114
+ createdBy: Scalars['ID']['output'];
115
+ id: Scalars['ID']['output'];
116
+ observationSequence: Scalars['Int']['output'];
117
+ onBehalfOf?: Maybe<Scalars['ID']['output']>;
118
+ planId: Scalars['ID']['output'];
119
+ previousVersionId?: Maybe<Scalars['ID']['output']>;
120
+ recordedAt: Scalars['DateTime']['output'];
121
+ snapshot: MtwConsolidationSnapshot;
122
+ version: Scalars['Int']['output'];
123
+ };
124
+
125
+ export type MtwConsolidationManifestPage = {
126
+ __typename?: 'MtwConsolidationManifestPage';
127
+ hasMore: Scalars['Boolean']['output'];
128
+ items: Array<MtwConsolidationManifest>;
129
+ limit: Scalars['Int']['output'];
130
+ nextOffset?: Maybe<Scalars['Int']['output']>;
131
+ offset: Scalars['Int']['output'];
132
+ total: Scalars['Int']['output'];
133
+ };
134
+
135
+ export type MtwConsolidationObservation = {
136
+ __typename?: 'MtwConsolidationObservation';
137
+ actorProvenance: Scalars['String']['output'];
138
+ createdBy: Scalars['ID']['output'];
139
+ evidence: Array<MtwContainerEvidence>;
140
+ evidenceDeclarations: Array<MtwConsolidationEvidenceDeclaration>;
141
+ id: Scalars['ID']['output'];
142
+ issueReference?: Maybe<Scalars['String']['output']>;
143
+ kind: MtwConsolidationReportKind;
144
+ lotId: Scalars['ID']['output'];
145
+ onBehalfOf?: Maybe<Scalars['ID']['output']>;
146
+ planId: Scalars['ID']['output'];
147
+ previousVersionId?: Maybe<Scalars['ID']['output']>;
148
+ reason: Scalars['String']['output'];
149
+ receiptSequence: Scalars['Int']['output'];
150
+ recordedAt: Scalars['DateTime']['output'];
151
+ reportedObservedAt?: Maybe<Scalars['DateTime']['output']>;
152
+ reportedQuantity?: Maybe<Scalars['String']['output']>;
153
+ source: MtwConsolidationSource;
154
+ status: Scalars['String']['output'];
155
+ unitReference?: Maybe<Scalars['String']['output']>;
156
+ unitRevision?: Maybe<Scalars['String']['output']>;
157
+ version: Scalars['Int']['output'];
158
+ };
159
+
160
+ export type MtwConsolidationObservationPage = {
161
+ __typename?: 'MtwConsolidationObservationPage';
162
+ hasMore: Scalars['Boolean']['output'];
163
+ items: Array<MtwConsolidationObservation>;
164
+ limit: Scalars['Int']['output'];
165
+ nextOffset?: Maybe<Scalars['Int']['output']>;
166
+ offset: Scalars['Int']['output'];
167
+ total: Scalars['Int']['output'];
168
+ };
169
+
170
+ export type MtwConsolidationPlan = {
171
+ __typename?: 'MtwConsolidationPlan';
172
+ actorProvenance: Scalars['String']['output'];
173
+ createdBy: Scalars['ID']['output'];
174
+ cycleId: Scalars['ID']['output'];
175
+ evidence: Array<MtwContainerEvidence>;
176
+ facts: MtwConsolidationFacts;
177
+ id: Scalars['ID']['output'];
178
+ onBehalfOf?: Maybe<Scalars['ID']['output']>;
179
+ planReference: Scalars['String']['output'];
180
+ previousVersionId?: Maybe<Scalars['ID']['output']>;
181
+ recordedAt: Scalars['DateTime']['output'];
182
+ shipmentId: Scalars['ID']['output'];
183
+ sourceCapture: MtwConsolidationCapture;
184
+ status: Scalars['String']['output'];
185
+ version: Scalars['Int']['output'];
186
+ };
187
+
188
+ export type MtwConsolidationPlanPage = {
189
+ __typename?: 'MtwConsolidationPlanPage';
190
+ hasMore: Scalars['Boolean']['output'];
191
+ items: Array<MtwConsolidationPlan>;
192
+ limit: Scalars['Int']['output'];
193
+ nextOffset?: Maybe<Scalars['Int']['output']>;
194
+ offset: Scalars['Int']['output'];
195
+ total: Scalars['Int']['output'];
196
+ };
197
+
198
+ export type MtwConsolidationQuantityBasis =
199
+ | 'HUB_REPORT'
200
+ | 'SOURCE_DECLARATION'
201
+ | 'UNKNOWN';
202
+
203
+ export type MtwConsolidationReconciliationRow = {
204
+ __typename?: 'MtwConsolidationReconciliationRow';
205
+ availabilityDeficit?: Maybe<Scalars['String']['output']>;
206
+ lotId: Scalars['ID']['output'];
207
+ plannedQuantity?: Maybe<Scalars['String']['output']>;
208
+ receiptDeficit?: Maybe<Scalars['String']['output']>;
209
+ receiptExcess?: Maybe<Scalars['String']['output']>;
210
+ receiptObservationId?: Maybe<Scalars['ID']['output']>;
211
+ receivedMinusStuffed?: Maybe<Scalars['String']['output']>;
212
+ receivedQuantity?: Maybe<Scalars['String']['output']>;
213
+ reportedAvailableQuantity?: Maybe<Scalars['String']['output']>;
214
+ stuffedQuantity?: Maybe<Scalars['String']['output']>;
215
+ stuffingExcess?: Maybe<Scalars['String']['output']>;
216
+ stuffingObservationId?: Maybe<Scalars['ID']['output']>;
217
+ unknownReasons: Array<Scalars['String']['output']>;
218
+ };
219
+
220
+ export type MtwConsolidationReportKind =
221
+ | 'ISSUE'
222
+ | 'RECEIPT_REPORT'
223
+ | 'STUFFING_REPORT';
224
+
225
+ export type MtwConsolidationSnapshot = {
226
+ __typename?: 'MtwConsolidationSnapshot';
227
+ observationSequence: Scalars['Int']['output'];
228
+ planId: Scalars['ID']['output'];
229
+ planVersion: Scalars['Int']['output'];
230
+ recentIssueIds: Array<Scalars['ID']['output']>;
231
+ reviewReasons: Array<Scalars['String']['output']>;
232
+ rows: Array<MtwConsolidationReconciliationRow>;
233
+ status: Scalars['String']['output'];
234
+ unresolvedIssueCount: Scalars['Int']['output'];
235
+ };
236
+
237
+ export type MtwConsolidationSource = {
238
+ __typename?: 'MtwConsolidationSource';
239
+ reference?: Maybe<Scalars['String']['output']>;
240
+ revision?: Maybe<Scalars['String']['output']>;
241
+ };
242
+
243
+ export type MtwConsolidationSourceInput = {
244
+ reference?: InputMaybe<Scalars['String']['input']>;
245
+ revision?: InputMaybe<Scalars['String']['input']>;
246
+ };
247
+
248
+ export type MtwContainer = {
249
+ __typename?: 'MtwContainer';
250
+ containerNumber: Scalars['String']['output'];
251
+ createdAt: Scalars['DateTime']['output'];
252
+ equipmentType: MtwEquipmentType;
253
+ id: Scalars['ID']['output'];
254
+ ownerName?: Maybe<Scalars['String']['output']>;
255
+ source: Scalars['String']['output'];
256
+ suppliedContainerNumber: Scalars['String']['output'];
257
+ };
258
+
259
+ export type MtwContainerCycle = {
260
+ __typename?: 'MtwContainerCycle';
261
+ bookingReference?: Maybe<Scalars['String']['output']>;
262
+ closedAt?: Maybe<Scalars['DateTime']['output']>;
263
+ containerId: Scalars['ID']['output'];
264
+ createdAt: Scalars['DateTime']['output'];
265
+ id: Scalars['ID']['output'];
266
+ openedAt: Scalars['DateTime']['output'];
267
+ shipmentId?: Maybe<Scalars['ID']['output']>;
268
+ status: MtwContainerCycleStatus;
269
+ updatedAt: Scalars['DateTime']['output'];
270
+ version: Scalars['Int']['output'];
271
+ };
272
+
273
+ export type MtwContainerCyclePage = {
274
+ __typename?: 'MtwContainerCyclePage';
275
+ hasMore: Scalars['Boolean']['output'];
276
+ items: Array<MtwContainerCycle>;
277
+ limit: Scalars['Int']['output'];
278
+ nextOffset?: Maybe<Scalars['Int']['output']>;
279
+ offset: Scalars['Int']['output'];
280
+ total: Scalars['Int']['output'];
281
+ };
282
+
283
+ export type MtwContainerCycleStatus =
284
+ | 'CLOSED'
285
+ | 'OPEN';
286
+
287
+ /** Bounded audit snapshot of at most 10 exact evidence versions. */
288
+ export type MtwContainerEvidence = {
289
+ __typename?: 'MtwContainerEvidence';
290
+ checkedAt: Scalars['DateTime']['output'];
291
+ fileId: Scalars['ID']['output'];
292
+ sha256Hash: Scalars['String']['output'];
293
+ versionId: Scalars['ID']['output'];
294
+ };
295
+
296
+ /** Exact shared Files version. The fingerprint establishes integrity, not issuer authenticity. */
297
+ export type MtwContainerEvidenceInput = {
298
+ fileId: Scalars['ID']['input'];
299
+ versionId: Scalars['ID']['input'];
300
+ };
301
+
302
+ export type MtwContainerPage = {
303
+ __typename?: 'MtwContainerPage';
304
+ hasMore: Scalars['Boolean']['output'];
305
+ items: Array<MtwContainer>;
306
+ limit: Scalars['Int']['output'];
307
+ nextOffset?: Maybe<Scalars['Int']['output']>;
308
+ offset: Scalars['Int']['output'];
309
+ total: Scalars['Int']['output'];
310
+ };
311
+
312
+ export type MtwContainerPagination = {
313
+ limit?: InputMaybe<Scalars['Int']['input']>;
314
+ offset?: InputMaybe<Scalars['Int']['input']>;
315
+ };
316
+
317
+ /** Physical equipment; LCL is a freight service, not an equipment type. */
318
+ export type MtwEquipmentType =
319
+ | 'DRY_20'
320
+ | 'DRY_40'
321
+ | 'FLAT_RACK'
322
+ | 'HIGH_CUBE_40'
323
+ | 'OPEN_TOP'
324
+ | 'OTHER'
325
+ | 'REEFER_20'
326
+ | 'REEFER_40'
327
+ | 'TANK';
328
+
329
+ export type MtwShipment = {
330
+ __typename?: 'MtwShipment';
331
+ id: Scalars['ID']['output'];
332
+ shipmentNumber: Scalars['String']['output'];
333
+ status: ShipmentStatus;
334
+ updatedAt: Scalars['DateTime']['output'];
335
+ };
336
+
337
+ export type Mutation = {
338
+ __typename?: 'Mutation';
339
+ recordMtwConsolidationObservation: MtwConsolidationObservation;
340
+ saveMtwConsolidationManifest: MtwConsolidationManifest;
341
+ saveMtwConsolidationPlan: MtwConsolidationPlan;
342
+ };
343
+
344
+
345
+ export type MutationRecordMtwConsolidationObservationArgs = {
346
+ input: RecordMtwConsolidationObservationInput;
347
+ };
348
+
349
+
350
+ export type MutationSaveMtwConsolidationManifestArgs = {
351
+ input: SaveMtwConsolidationManifestInput;
352
+ };
353
+
354
+
355
+ export type MutationSaveMtwConsolidationPlanArgs = {
356
+ input: SaveMtwConsolidationPlanInput;
357
+ };
358
+
359
+ export type PaginationInput = {
360
+ cursor?: InputMaybe<Scalars['String']['input']>;
361
+ limit?: InputMaybe<Scalars['Int']['input']>;
362
+ offset?: InputMaybe<Scalars['Int']['input']>;
363
+ };
364
+
365
+ export type Query = {
366
+ __typename?: 'Query';
367
+ mtwConsolidationManifest: MtwConsolidationManifest;
368
+ mtwConsolidationManifestPage: MtwConsolidationManifestPage;
369
+ mtwConsolidationObservation: MtwConsolidationObservation;
370
+ mtwConsolidationObservationPage: MtwConsolidationObservationPage;
371
+ mtwConsolidationPlan: MtwConsolidationPlan;
372
+ mtwConsolidationPlanPage: MtwConsolidationPlanPage;
373
+ mtwContainerCyclePage: MtwContainerCyclePage;
374
+ mtwContainerPage: MtwContainerPage;
375
+ previewMtwConsolidationManifest: MtwConsolidationSnapshot;
376
+ shipment?: Maybe<MtwShipment>;
377
+ shipments: Array<MtwShipment>;
378
+ shipmentsCount: Scalars['Int']['output'];
379
+ };
380
+
381
+
382
+ export type QueryMtwConsolidationManifestArgs = {
383
+ id: Scalars['ID']['input'];
384
+ planId: Scalars['ID']['input'];
385
+ };
386
+
387
+
388
+ export type QueryMtwConsolidationManifestPageArgs = {
389
+ pagination?: InputMaybe<MtwContainerPagination>;
390
+ planId: Scalars['ID']['input'];
391
+ };
392
+
393
+
394
+ export type QueryMtwConsolidationObservationArgs = {
395
+ id: Scalars['ID']['input'];
396
+ planId: Scalars['ID']['input'];
397
+ };
398
+
399
+
400
+ export type QueryMtwConsolidationObservationPageArgs = {
401
+ pagination?: InputMaybe<MtwContainerPagination>;
402
+ planId: Scalars['ID']['input'];
403
+ };
404
+
405
+
406
+ export type QueryMtwConsolidationPlanArgs = {
407
+ id: Scalars['ID']['input'];
408
+ shipmentId: Scalars['ID']['input'];
409
+ };
410
+
411
+
412
+ export type QueryMtwConsolidationPlanPageArgs = {
413
+ pagination?: InputMaybe<MtwContainerPagination>;
414
+ planReference?: InputMaybe<Scalars['String']['input']>;
415
+ shipmentId: Scalars['ID']['input'];
416
+ };
417
+
418
+
419
+ export type QueryMtwContainerCyclePageArgs = {
420
+ containerId: Scalars['ID']['input'];
421
+ pagination?: InputMaybe<MtwContainerPagination>;
422
+ };
423
+
424
+
425
+ export type QueryMtwContainerPageArgs = {
426
+ pagination?: InputMaybe<MtwContainerPagination>;
427
+ search?: InputMaybe<Scalars['String']['input']>;
428
+ };
429
+
430
+
431
+ export type QueryPreviewMtwConsolidationManifestArgs = {
432
+ expectedObservationSequence: Scalars['Int']['input'];
433
+ planId: Scalars['ID']['input'];
434
+ };
435
+
436
+
437
+ export type QueryShipmentArgs = {
438
+ id: Scalars['ID']['input'];
439
+ };
440
+
441
+
442
+ export type QueryShipmentsArgs = {
443
+ filter?: InputMaybe<ShipmentFilterInput>;
444
+ pagination?: InputMaybe<PaginationInput>;
445
+ };
446
+
447
+
448
+ export type QueryShipmentsCountArgs = {
449
+ filter?: InputMaybe<ShipmentFilterInput>;
450
+ };
451
+
452
+ export type RecordMtwConsolidationObservationInput = {
453
+ evidence: Array<MtwContainerEvidenceInput>;
454
+ expectedPreviousVersionId?: InputMaybe<Scalars['ID']['input']>;
455
+ expectedVersion: Scalars['Int']['input'];
456
+ idempotencyKey: Scalars['String']['input'];
457
+ issueReference?: InputMaybe<Scalars['String']['input']>;
458
+ kind: MtwConsolidationReportKind;
459
+ lotId: Scalars['ID']['input'];
460
+ planId: Scalars['ID']['input'];
461
+ reason: Scalars['String']['input'];
462
+ reportedObservedAt?: InputMaybe<Scalars['DateTime']['input']>;
463
+ reportedQuantity?: InputMaybe<Scalars['String']['input']>;
464
+ source: MtwConsolidationSourceInput;
465
+ unitReference?: InputMaybe<Scalars['String']['input']>;
466
+ unitRevision?: InputMaybe<Scalars['String']['input']>;
467
+ };
468
+
469
+ export type SaveMtwConsolidationManifestInput = {
470
+ expectedObservationSequence: Scalars['Int']['input'];
471
+ expectedPreviousVersionId?: InputMaybe<Scalars['ID']['input']>;
472
+ expectedVersion: Scalars['Int']['input'];
473
+ idempotencyKey: Scalars['String']['input'];
474
+ planId: Scalars['ID']['input'];
475
+ };
476
+
477
+ export type SaveMtwConsolidationPlanInput = {
478
+ cycleId: Scalars['ID']['input'];
479
+ evidence: Array<MtwContainerEvidenceInput>;
480
+ expectedCycleVersion: Scalars['Int']['input'];
481
+ expectedPreviousVersionId?: InputMaybe<Scalars['ID']['input']>;
482
+ expectedShipmentUpdatedAt: Scalars['DateTime']['input'];
483
+ expectedVersion: Scalars['Int']['input'];
484
+ facts: MtwConsolidationFactsInput;
485
+ idempotencyKey: Scalars['String']['input'];
486
+ planReference: Scalars['String']['input'];
487
+ shipmentId: Scalars['ID']['input'];
488
+ };
489
+
490
+ export type ShipmentFilterInput = {
491
+ carrierId?: InputMaybe<Scalars['ID']['input']>;
492
+ customerId?: InputMaybe<Scalars['ID']['input']>;
493
+ deliveryJobId?: InputMaybe<Scalars['ID']['input']>;
494
+ driverId?: InputMaybe<Scalars['ID']['input']>;
495
+ isMultiModal?: InputMaybe<Scalars['Boolean']['input']>;
496
+ primaryMode?: InputMaybe<TransportMode>;
497
+ search?: InputMaybe<Scalars['String']['input']>;
498
+ status?: InputMaybe<ShipmentStatus>;
499
+ storeOrderId?: InputMaybe<Scalars['ID']['input']>;
500
+ vehicleId?: InputMaybe<Scalars['ID']['input']>;
501
+ };
502
+
503
+ export type ShipmentStatus =
504
+ | 'DELIVERED'
505
+ | 'FAILED'
506
+ | 'IN_TRANSIT'
507
+ | 'PICKED_UP'
508
+ | 'PLANNED'
509
+ | 'RETURNED';
510
+
511
+ export type TransportMode =
512
+ | 'AIR'
513
+ | 'OCEAN'
514
+ | 'RAIL'
515
+ | 'ROAD';
516
+
517
+ export type ConsolidationShipmentsQueryVariables = Exact<{
518
+ pagination?: InputMaybe<PaginationInput>;
519
+ }>;
520
+
521
+
522
+ export type ConsolidationShipmentsQuery = { __typename?: 'Query', shipmentsCount: number, shipments: Array<{ __typename?: 'MtwShipment', id: string, shipmentNumber: string, updatedAt: string, status: ShipmentStatus }> };
523
+
524
+ export type ConsolidationShipmentQueryVariables = Exact<{
525
+ id: Scalars['ID']['input'];
526
+ }>;
527
+
528
+
529
+ export type ConsolidationShipmentQuery = { __typename?: 'Query', shipment?: { __typename?: 'MtwShipment', id: string, shipmentNumber: string, updatedAt: string, status: ShipmentStatus } | null };
530
+
531
+ export type ConsolidationContainersQueryVariables = Exact<{
532
+ pagination?: InputMaybe<MtwContainerPagination>;
533
+ }>;
534
+
535
+
536
+ export type ConsolidationContainersQuery = { __typename?: 'Query', mtwContainerPage: { __typename?: 'MtwContainerPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwContainer', id: string, containerNumber: string, equipmentType: MtwEquipmentType }> } };
537
+
538
+ export type ConsolidationCyclesQueryVariables = Exact<{
539
+ containerId: Scalars['ID']['input'];
540
+ pagination?: InputMaybe<MtwContainerPagination>;
541
+ }>;
542
+
543
+
544
+ export type ConsolidationCyclesQuery = { __typename?: 'Query', mtwContainerCyclePage: { __typename?: 'MtwContainerCyclePage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwContainerCycle', id: string, containerId: string, shipmentId?: string | null, bookingReference?: string | null, openedAt: string, closedAt?: string | null, status: MtwContainerCycleStatus, version: number }> } };
545
+
546
+ export type ConsolidationPlansQueryVariables = Exact<{
547
+ shipmentId: Scalars['ID']['input'];
548
+ planReference?: InputMaybe<Scalars['String']['input']>;
549
+ pagination?: InputMaybe<MtwContainerPagination>;
550
+ }>;
551
+
552
+
553
+ export type ConsolidationPlansQuery = { __typename?: 'Query', mtwConsolidationPlanPage: { __typename?: 'MtwConsolidationPlanPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwConsolidationPlan', id: string, shipmentId: string, cycleId: string, planReference: string, version: number, previousVersionId?: string | null, status: string, recordedAt: string, createdBy: string, actorProvenance: string, facts: { __typename?: 'MtwConsolidationFacts', hubName: string, effectiveAt: string } }> } };
554
+
555
+ export type ConsolidationPlanQueryVariables = Exact<{
556
+ shipmentId: Scalars['ID']['input'];
557
+ id: Scalars['ID']['input'];
558
+ }>;
559
+
560
+
561
+ export type ConsolidationPlanQuery = { __typename?: 'Query', mtwConsolidationPlan: { __typename?: 'MtwConsolidationPlan', id: string, shipmentId: string, cycleId: string, planReference: string, version: number, previousVersionId?: string | null, status: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, sourceCapture: { __typename?: 'MtwConsolidationCapture', shipmentNumber: string, shipmentUpdatedAt: string, containerId: string, cycleVersion: number, bookingReference?: string | null }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, facts: { __typename?: 'MtwConsolidationFacts', hubReference: string, hubName: string, mode?: string | null, carrierReference?: string | null, bookingReference?: string | null, cutoffAt?: string | null, timezone?: string | null, jurisdictionReference?: string | null, effectiveAt: string, hubSource: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null }, contextSource: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null }, lots: Array<{ __typename?: 'MtwConsolidationLot', id: string, supplierReference: string, lotReference: string, consignmentReference: string, sourceRevision: string, quantityBasis: MtwConsolidationQuantityBasis, unitReference?: string | null, unitRevision?: string | null, balanceRevision?: string | null, reportedAvailableQuantity?: string | null, plannedQuantity?: string | null, grossKg?: string | null, cubeM3?: string | null, originReference?: string | null, destinationReference?: string | null, importerReference?: string | null, transportReference?: string | null, documentReference?: string | null, source: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null } }> } } };
562
+
563
+ export type ConsolidationObservationsQueryVariables = Exact<{
564
+ planId: Scalars['ID']['input'];
565
+ pagination?: InputMaybe<MtwContainerPagination>;
566
+ }>;
567
+
568
+
569
+ export type ConsolidationObservationsQuery = { __typename?: 'Query', mtwConsolidationObservationPage: { __typename?: 'MtwConsolidationObservationPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwConsolidationObservation', id: string, planId: string, lotId: string, kind: MtwConsolidationReportKind, issueReference?: string | null, version: number, previousVersionId?: string | null, receiptSequence: number, reportedQuantity?: string | null, reportedObservedAt?: string | null, reason: string, unitReference?: string | null, unitRevision?: string | null, status: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, source: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, evidenceDeclarations: Array<{ __typename?: 'MtwConsolidationEvidenceDeclaration', fileId: string, versionId: string, verification: string }> }> } };
570
+
571
+ export type ConsolidationObservationQueryVariables = Exact<{
572
+ planId: Scalars['ID']['input'];
573
+ id: Scalars['ID']['input'];
574
+ }>;
575
+
576
+
577
+ export type ConsolidationObservationQuery = { __typename?: 'Query', mtwConsolidationObservation: { __typename?: 'MtwConsolidationObservation', id: string, planId: string, lotId: string, kind: MtwConsolidationReportKind, issueReference?: string | null, version: number, previousVersionId?: string | null, receiptSequence: number, reportedQuantity?: string | null, reportedObservedAt?: string | null, reason: string, unitReference?: string | null, unitRevision?: string | null, status: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, source: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, evidenceDeclarations: Array<{ __typename?: 'MtwConsolidationEvidenceDeclaration', fileId: string, versionId: string, verification: string }> } };
578
+
579
+ export type ConsolidationPreviewQueryVariables = Exact<{
580
+ planId: Scalars['ID']['input'];
581
+ expectedObservationSequence: Scalars['Int']['input'];
582
+ }>;
583
+
584
+
585
+ export type ConsolidationPreviewQuery = { __typename?: 'Query', previewMtwConsolidationManifest: { __typename?: 'MtwConsolidationSnapshot', status: string, planId: string, planVersion: number, observationSequence: number, unresolvedIssueCount: number, recentIssueIds: Array<string>, reviewReasons: Array<string>, rows: Array<{ __typename?: 'MtwConsolidationReconciliationRow', lotId: string, plannedQuantity?: string | null, reportedAvailableQuantity?: string | null, receivedQuantity?: string | null, stuffedQuantity?: string | null, availabilityDeficit?: string | null, receiptDeficit?: string | null, receiptExcess?: string | null, stuffingExcess?: string | null, receivedMinusStuffed?: string | null, unknownReasons: Array<string>, receiptObservationId?: string | null, stuffingObservationId?: string | null }> } };
586
+
587
+ export type ConsolidationManifestsQueryVariables = Exact<{
588
+ planId: Scalars['ID']['input'];
589
+ pagination?: InputMaybe<MtwContainerPagination>;
590
+ }>;
591
+
592
+
593
+ export type ConsolidationManifestsQuery = { __typename?: 'Query', mtwConsolidationManifestPage: { __typename?: 'MtwConsolidationManifestPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwConsolidationManifest', id: string, planId: string, version: number, previousVersionId?: string | null, observationSequence: number, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, snapshot: { __typename?: 'MtwConsolidationSnapshot', status: string, planId: string, planVersion: number, observationSequence: number, unresolvedIssueCount: number, recentIssueIds: Array<string>, reviewReasons: Array<string>, rows: Array<{ __typename?: 'MtwConsolidationReconciliationRow', lotId: string, plannedQuantity?: string | null, reportedAvailableQuantity?: string | null, receivedQuantity?: string | null, stuffedQuantity?: string | null, availabilityDeficit?: string | null, receiptDeficit?: string | null, receiptExcess?: string | null, stuffingExcess?: string | null, receivedMinusStuffed?: string | null, unknownReasons: Array<string>, receiptObservationId?: string | null, stuffingObservationId?: string | null }> } }> } };
594
+
595
+ export type ConsolidationManifestQueryVariables = Exact<{
596
+ planId: Scalars['ID']['input'];
597
+ id: Scalars['ID']['input'];
598
+ }>;
599
+
600
+
601
+ export type ConsolidationManifestQuery = { __typename?: 'Query', mtwConsolidationManifest: { __typename?: 'MtwConsolidationManifest', id: string, planId: string, version: number, previousVersionId?: string | null, observationSequence: number, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, snapshot: { __typename?: 'MtwConsolidationSnapshot', status: string, planId: string, planVersion: number, observationSequence: number, unresolvedIssueCount: number, recentIssueIds: Array<string>, reviewReasons: Array<string>, rows: Array<{ __typename?: 'MtwConsolidationReconciliationRow', lotId: string, plannedQuantity?: string | null, reportedAvailableQuantity?: string | null, receivedQuantity?: string | null, stuffedQuantity?: string | null, availabilityDeficit?: string | null, receiptDeficit?: string | null, receiptExcess?: string | null, stuffingExcess?: string | null, receivedMinusStuffed?: string | null, unknownReasons: Array<string>, receiptObservationId?: string | null, stuffingObservationId?: string | null }> } } };
602
+
603
+ export type SaveConsolidationPlanMutationVariables = Exact<{
604
+ input: SaveMtwConsolidationPlanInput;
605
+ }>;
606
+
607
+
608
+ export type SaveConsolidationPlanMutation = { __typename?: 'Mutation', saveMtwConsolidationPlan: { __typename?: 'MtwConsolidationPlan', id: string, shipmentId: string, cycleId: string, planReference: string, version: number, previousVersionId?: string | null, status: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, sourceCapture: { __typename?: 'MtwConsolidationCapture', shipmentNumber: string, shipmentUpdatedAt: string, containerId: string, cycleVersion: number, bookingReference?: string | null }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, facts: { __typename?: 'MtwConsolidationFacts', hubReference: string, hubName: string, mode?: string | null, carrierReference?: string | null, bookingReference?: string | null, cutoffAt?: string | null, timezone?: string | null, jurisdictionReference?: string | null, effectiveAt: string, hubSource: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null }, contextSource: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null }, lots: Array<{ __typename?: 'MtwConsolidationLot', id: string, supplierReference: string, lotReference: string, consignmentReference: string, sourceRevision: string, quantityBasis: MtwConsolidationQuantityBasis, unitReference?: string | null, unitRevision?: string | null, balanceRevision?: string | null, reportedAvailableQuantity?: string | null, plannedQuantity?: string | null, grossKg?: string | null, cubeM3?: string | null, originReference?: string | null, destinationReference?: string | null, importerReference?: string | null, transportReference?: string | null, documentReference?: string | null, source: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null } }> } } };
609
+
610
+ export type RecordConsolidationObservationMutationVariables = Exact<{
611
+ input: RecordMtwConsolidationObservationInput;
612
+ }>;
613
+
614
+
615
+ export type RecordConsolidationObservationMutation = { __typename?: 'Mutation', recordMtwConsolidationObservation: { __typename?: 'MtwConsolidationObservation', id: string, planId: string, lotId: string, kind: MtwConsolidationReportKind, issueReference?: string | null, version: number, previousVersionId?: string | null, receiptSequence: number, reportedQuantity?: string | null, reportedObservedAt?: string | null, reason: string, unitReference?: string | null, unitRevision?: string | null, status: string, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, source: { __typename?: 'MtwConsolidationSource', reference?: string | null, revision?: string | null }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, evidenceDeclarations: Array<{ __typename?: 'MtwConsolidationEvidenceDeclaration', fileId: string, versionId: string, verification: string }> } };
616
+
617
+ export type SaveConsolidationManifestMutationVariables = Exact<{
618
+ input: SaveMtwConsolidationManifestInput;
619
+ }>;
620
+
621
+
622
+ export type SaveConsolidationManifestMutation = { __typename?: 'Mutation', saveMtwConsolidationManifest: { __typename?: 'MtwConsolidationManifest', id: string, planId: string, version: number, previousVersionId?: string | null, observationSequence: number, recordedAt: string, createdBy: string, actorProvenance: string, onBehalfOf?: string | null, snapshot: { __typename?: 'MtwConsolidationSnapshot', status: string, planId: string, planVersion: number, observationSequence: number, unresolvedIssueCount: number, recentIssueIds: Array<string>, reviewReasons: Array<string>, rows: Array<{ __typename?: 'MtwConsolidationReconciliationRow', lotId: string, plannedQuantity?: string | null, reportedAvailableQuantity?: string | null, receivedQuantity?: string | null, stuffedQuantity?: string | null, availabilityDeficit?: string | null, receiptDeficit?: string | null, receiptExcess?: string | null, stuffingExcess?: string | null, receivedMinusStuffed?: string | null, unknownReasons: Array<string>, receiptObservationId?: string | null, stuffingObservationId?: string | null }> } } };
623
+
624
+
625
+ export const ConsolidationShipmentsDocument = gql`
626
+ query ConsolidationShipments($pagination: PaginationInput) {
627
+ shipments(pagination: $pagination) {
628
+ id
629
+ shipmentNumber
630
+ updatedAt
631
+ status
632
+ }
633
+ shipmentsCount
634
+ }
635
+ `;
636
+ export const ConsolidationShipmentDocument = gql`
637
+ query ConsolidationShipment($id: ID!) {
638
+ shipment(id: $id) {
639
+ id
640
+ shipmentNumber
641
+ updatedAt
642
+ status
643
+ }
644
+ }
645
+ `;
646
+ export const ConsolidationContainersDocument = gql`
647
+ query ConsolidationContainers($pagination: MtwContainerPagination) {
648
+ mtwContainerPage(pagination: $pagination) {
649
+ items {
650
+ id
651
+ containerNumber
652
+ equipmentType
653
+ }
654
+ total
655
+ limit
656
+ offset
657
+ hasMore
658
+ nextOffset
659
+ }
660
+ }
661
+ `;
662
+ export const ConsolidationCyclesDocument = gql`
663
+ query ConsolidationCycles($containerId: ID!, $pagination: MtwContainerPagination) {
664
+ mtwContainerCyclePage(containerId: $containerId, pagination: $pagination) {
665
+ items {
666
+ id
667
+ containerId
668
+ shipmentId
669
+ bookingReference
670
+ openedAt
671
+ closedAt
672
+ status
673
+ version
674
+ }
675
+ total
676
+ limit
677
+ offset
678
+ hasMore
679
+ nextOffset
680
+ }
681
+ }
682
+ `;
683
+ export const ConsolidationPlansDocument = gql`
684
+ query ConsolidationPlans($shipmentId: ID!, $planReference: String, $pagination: MtwContainerPagination) {
685
+ mtwConsolidationPlanPage(
686
+ shipmentId: $shipmentId
687
+ planReference: $planReference
688
+ pagination: $pagination
689
+ ) {
690
+ items {
691
+ id
692
+ shipmentId
693
+ cycleId
694
+ planReference
695
+ version
696
+ previousVersionId
697
+ status
698
+ recordedAt
699
+ createdBy
700
+ actorProvenance
701
+ facts {
702
+ hubName
703
+ effectiveAt
704
+ }
705
+ }
706
+ total
707
+ limit
708
+ offset
709
+ hasMore
710
+ nextOffset
711
+ }
712
+ }
713
+ `;
714
+ export const ConsolidationPlanDocument = gql`
715
+ query ConsolidationPlan($shipmentId: ID!, $id: ID!) {
716
+ mtwConsolidationPlan(shipmentId: $shipmentId, id: $id) {
717
+ id
718
+ shipmentId
719
+ cycleId
720
+ planReference
721
+ version
722
+ previousVersionId
723
+ status
724
+ recordedAt
725
+ createdBy
726
+ actorProvenance
727
+ onBehalfOf
728
+ sourceCapture {
729
+ shipmentNumber
730
+ shipmentUpdatedAt
731
+ containerId
732
+ cycleVersion
733
+ bookingReference
734
+ }
735
+ evidence {
736
+ fileId
737
+ versionId
738
+ sha256Hash
739
+ checkedAt
740
+ }
741
+ facts {
742
+ hubReference
743
+ hubName
744
+ hubSource {
745
+ reference
746
+ revision
747
+ }
748
+ mode
749
+ carrierReference
750
+ bookingReference
751
+ cutoffAt
752
+ timezone
753
+ jurisdictionReference
754
+ contextSource {
755
+ reference
756
+ revision
757
+ }
758
+ effectiveAt
759
+ lots {
760
+ id
761
+ supplierReference
762
+ lotReference
763
+ consignmentReference
764
+ sourceRevision
765
+ quantityBasis
766
+ unitReference
767
+ unitRevision
768
+ balanceRevision
769
+ reportedAvailableQuantity
770
+ plannedQuantity
771
+ grossKg
772
+ cubeM3
773
+ originReference
774
+ destinationReference
775
+ importerReference
776
+ transportReference
777
+ documentReference
778
+ source {
779
+ reference
780
+ revision
781
+ }
782
+ }
783
+ }
784
+ }
785
+ }
786
+ `;
787
+ export const ConsolidationObservationsDocument = gql`
788
+ query ConsolidationObservations($planId: ID!, $pagination: MtwContainerPagination) {
789
+ mtwConsolidationObservationPage(planId: $planId, pagination: $pagination) {
790
+ items {
791
+ id
792
+ planId
793
+ lotId
794
+ kind
795
+ issueReference
796
+ version
797
+ previousVersionId
798
+ receiptSequence
799
+ reportedQuantity
800
+ reportedObservedAt
801
+ reason
802
+ unitReference
803
+ unitRevision
804
+ source {
805
+ reference
806
+ revision
807
+ }
808
+ status
809
+ recordedAt
810
+ createdBy
811
+ actorProvenance
812
+ onBehalfOf
813
+ evidence {
814
+ fileId
815
+ versionId
816
+ sha256Hash
817
+ checkedAt
818
+ }
819
+ evidenceDeclarations {
820
+ fileId
821
+ versionId
822
+ verification
823
+ }
824
+ }
825
+ total
826
+ limit
827
+ offset
828
+ hasMore
829
+ nextOffset
830
+ }
831
+ }
832
+ `;
833
+ export const ConsolidationObservationDocument = gql`
834
+ query ConsolidationObservation($planId: ID!, $id: ID!) {
835
+ mtwConsolidationObservation(planId: $planId, id: $id) {
836
+ id
837
+ planId
838
+ lotId
839
+ kind
840
+ issueReference
841
+ version
842
+ previousVersionId
843
+ receiptSequence
844
+ reportedQuantity
845
+ reportedObservedAt
846
+ reason
847
+ unitReference
848
+ unitRevision
849
+ source {
850
+ reference
851
+ revision
852
+ }
853
+ status
854
+ recordedAt
855
+ createdBy
856
+ actorProvenance
857
+ onBehalfOf
858
+ evidence {
859
+ fileId
860
+ versionId
861
+ sha256Hash
862
+ checkedAt
863
+ }
864
+ evidenceDeclarations {
865
+ fileId
866
+ versionId
867
+ verification
868
+ }
869
+ }
870
+ }
871
+ `;
872
+ export const ConsolidationPreviewDocument = gql`
873
+ query ConsolidationPreview($planId: ID!, $expectedObservationSequence: Int!) {
874
+ previewMtwConsolidationManifest(
875
+ planId: $planId
876
+ expectedObservationSequence: $expectedObservationSequence
877
+ ) {
878
+ status
879
+ planId
880
+ planVersion
881
+ observationSequence
882
+ unresolvedIssueCount
883
+ recentIssueIds
884
+ reviewReasons
885
+ rows {
886
+ lotId
887
+ plannedQuantity
888
+ reportedAvailableQuantity
889
+ receivedQuantity
890
+ stuffedQuantity
891
+ availabilityDeficit
892
+ receiptDeficit
893
+ receiptExcess
894
+ stuffingExcess
895
+ receivedMinusStuffed
896
+ unknownReasons
897
+ receiptObservationId
898
+ stuffingObservationId
899
+ }
900
+ }
901
+ }
902
+ `;
903
+ export const ConsolidationManifestsDocument = gql`
904
+ query ConsolidationManifests($planId: ID!, $pagination: MtwContainerPagination) {
905
+ mtwConsolidationManifestPage(planId: $planId, pagination: $pagination) {
906
+ items {
907
+ id
908
+ planId
909
+ version
910
+ previousVersionId
911
+ observationSequence
912
+ recordedAt
913
+ createdBy
914
+ actorProvenance
915
+ onBehalfOf
916
+ snapshot {
917
+ status
918
+ planId
919
+ planVersion
920
+ observationSequence
921
+ unresolvedIssueCount
922
+ recentIssueIds
923
+ reviewReasons
924
+ rows {
925
+ lotId
926
+ plannedQuantity
927
+ reportedAvailableQuantity
928
+ receivedQuantity
929
+ stuffedQuantity
930
+ availabilityDeficit
931
+ receiptDeficit
932
+ receiptExcess
933
+ stuffingExcess
934
+ receivedMinusStuffed
935
+ unknownReasons
936
+ receiptObservationId
937
+ stuffingObservationId
938
+ }
939
+ }
940
+ }
941
+ total
942
+ limit
943
+ offset
944
+ hasMore
945
+ nextOffset
946
+ }
947
+ }
948
+ `;
949
+ export const ConsolidationManifestDocument = gql`
950
+ query ConsolidationManifest($planId: ID!, $id: ID!) {
951
+ mtwConsolidationManifest(planId: $planId, id: $id) {
952
+ id
953
+ planId
954
+ version
955
+ previousVersionId
956
+ observationSequence
957
+ recordedAt
958
+ createdBy
959
+ actorProvenance
960
+ onBehalfOf
961
+ snapshot {
962
+ status
963
+ planId
964
+ planVersion
965
+ observationSequence
966
+ unresolvedIssueCount
967
+ recentIssueIds
968
+ reviewReasons
969
+ rows {
970
+ lotId
971
+ plannedQuantity
972
+ reportedAvailableQuantity
973
+ receivedQuantity
974
+ stuffedQuantity
975
+ availabilityDeficit
976
+ receiptDeficit
977
+ receiptExcess
978
+ stuffingExcess
979
+ receivedMinusStuffed
980
+ unknownReasons
981
+ receiptObservationId
982
+ stuffingObservationId
983
+ }
984
+ }
985
+ }
986
+ }
987
+ `;
988
+ export const SaveConsolidationPlanDocument = gql`
989
+ mutation SaveConsolidationPlan($input: SaveMtwConsolidationPlanInput!) {
990
+ saveMtwConsolidationPlan(input: $input) {
991
+ id
992
+ shipmentId
993
+ cycleId
994
+ planReference
995
+ version
996
+ previousVersionId
997
+ status
998
+ recordedAt
999
+ createdBy
1000
+ actorProvenance
1001
+ onBehalfOf
1002
+ sourceCapture {
1003
+ shipmentNumber
1004
+ shipmentUpdatedAt
1005
+ containerId
1006
+ cycleVersion
1007
+ bookingReference
1008
+ }
1009
+ evidence {
1010
+ fileId
1011
+ versionId
1012
+ sha256Hash
1013
+ checkedAt
1014
+ }
1015
+ facts {
1016
+ hubReference
1017
+ hubName
1018
+ hubSource {
1019
+ reference
1020
+ revision
1021
+ }
1022
+ mode
1023
+ carrierReference
1024
+ bookingReference
1025
+ cutoffAt
1026
+ timezone
1027
+ jurisdictionReference
1028
+ contextSource {
1029
+ reference
1030
+ revision
1031
+ }
1032
+ effectiveAt
1033
+ lots {
1034
+ id
1035
+ supplierReference
1036
+ lotReference
1037
+ consignmentReference
1038
+ sourceRevision
1039
+ quantityBasis
1040
+ unitReference
1041
+ unitRevision
1042
+ balanceRevision
1043
+ reportedAvailableQuantity
1044
+ plannedQuantity
1045
+ grossKg
1046
+ cubeM3
1047
+ originReference
1048
+ destinationReference
1049
+ importerReference
1050
+ transportReference
1051
+ documentReference
1052
+ source {
1053
+ reference
1054
+ revision
1055
+ }
1056
+ }
1057
+ }
1058
+ }
1059
+ }
1060
+ `;
1061
+ export const RecordConsolidationObservationDocument = gql`
1062
+ mutation RecordConsolidationObservation($input: RecordMtwConsolidationObservationInput!) {
1063
+ recordMtwConsolidationObservation(input: $input) {
1064
+ id
1065
+ planId
1066
+ lotId
1067
+ kind
1068
+ issueReference
1069
+ version
1070
+ previousVersionId
1071
+ receiptSequence
1072
+ reportedQuantity
1073
+ reportedObservedAt
1074
+ reason
1075
+ unitReference
1076
+ unitRevision
1077
+ source {
1078
+ reference
1079
+ revision
1080
+ }
1081
+ status
1082
+ recordedAt
1083
+ createdBy
1084
+ actorProvenance
1085
+ onBehalfOf
1086
+ evidence {
1087
+ fileId
1088
+ versionId
1089
+ sha256Hash
1090
+ checkedAt
1091
+ }
1092
+ evidenceDeclarations {
1093
+ fileId
1094
+ versionId
1095
+ verification
1096
+ }
1097
+ }
1098
+ }
1099
+ `;
1100
+ export const SaveConsolidationManifestDocument = gql`
1101
+ mutation SaveConsolidationManifest($input: SaveMtwConsolidationManifestInput!) {
1102
+ saveMtwConsolidationManifest(input: $input) {
1103
+ id
1104
+ planId
1105
+ version
1106
+ previousVersionId
1107
+ observationSequence
1108
+ recordedAt
1109
+ createdBy
1110
+ actorProvenance
1111
+ onBehalfOf
1112
+ snapshot {
1113
+ status
1114
+ planId
1115
+ planVersion
1116
+ observationSequence
1117
+ unresolvedIssueCount
1118
+ recentIssueIds
1119
+ reviewReasons
1120
+ rows {
1121
+ lotId
1122
+ plannedQuantity
1123
+ reportedAvailableQuantity
1124
+ receivedQuantity
1125
+ stuffedQuantity
1126
+ availabilityDeficit
1127
+ receiptDeficit
1128
+ receiptExcess
1129
+ stuffingExcess
1130
+ receivedMinusStuffed
1131
+ unknownReasons
1132
+ receiptObservationId
1133
+ stuffingObservationId
1134
+ }
1135
+ }
1136
+ }
1137
+ }
1138
+ `;