@burdenoff/microfe-movethewheels 2026.930.5 → 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 (373) 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/useProcedureAction.js +119 -0
  68. package/dist/hooks/useProcedureSelection.js +53 -0
  69. package/dist/hooks/useReuseRecoveryAction.js +116 -0
  70. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +10 -0
  71. package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +14 -0
  72. package/dist/movethewheels/components/ReturnInstructionForm.d.ts +8 -0
  73. package/dist/movethewheels/components/ReuseControls.d.ts +42 -0
  74. package/dist/movethewheels/components/ReusePermissionForm.d.ts +9 -0
  75. package/dist/movethewheels/components/ReuseProposalForm.d.ts +11 -0
  76. package/dist/movethewheels/components/ReuseSourceFields.d.ts +9 -0
  77. package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +13 -0
  78. package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +6 -0
  79. package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +8 -0
  80. package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +8 -0
  81. package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +5 -0
  82. package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +9 -0
  83. package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +7 -0
  84. package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +6 -0
  85. package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +8 -0
  86. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +8 -0
  87. package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +23 -0
  88. package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +6 -0
  89. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +5 -0
  90. package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +8 -0
  91. package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +6 -0
  92. package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +6 -0
  93. package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +20 -0
  94. package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +17 -0
  95. package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +7 -0
  96. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +10 -0
  97. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +5 -0
  98. package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +5 -0
  99. package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +6 -0
  100. package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +7 -0
  101. package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +16 -0
  102. package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +5 -0
  103. package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +6 -0
  104. package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +17 -0
  105. package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +13 -0
  106. package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +18 -0
  107. package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +9 -0
  108. package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +6 -0
  109. package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +7 -0
  110. package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +7 -0
  111. package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +5 -0
  112. package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +6 -0
  113. package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +14 -0
  114. package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +5 -0
  115. package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +9 -0
  116. package/dist/movethewheels/hooks/useConsolidationAction.d.ts +19 -0
  117. package/dist/movethewheels/hooks/useContainerCondition.d.ts +21 -0
  118. package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +40 -0
  119. package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +14 -0
  120. package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +23 -0
  121. package/dist/movethewheels/hooks/useProcedureAction.d.ts +18 -0
  122. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +51 -0
  123. package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +18 -0
  124. package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -0
  125. package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -0
  126. package/dist/movethewheels/pages/ContainersPage.d.ts +2 -0
  127. package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -0
  128. package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -0
  129. package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -0
  130. package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -0
  131. package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -0
  132. package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -0
  133. package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -0
  134. package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -0
  135. package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +12 -0
  136. package/dist/movethewheels/utils/consolidationInput.d.ts +15 -0
  137. package/dist/movethewheels/utils/consolidationLot.d.ts +3 -0
  138. package/dist/movethewheels/utils/consolidationPins.d.ts +20 -0
  139. package/dist/movethewheels/utils/consolidationRecovery.d.ts +5 -0
  140. package/dist/movethewheels/utils/consolidationReportHead.d.ts +5 -0
  141. package/dist/movethewheels/utils/freeTimeDate.d.ts +1 -0
  142. package/dist/movethewheels/utils/freightAcknowledgement.d.ts +2 -0
  143. package/dist/movethewheels/utils/freightDraft.d.ts +36 -0
  144. package/dist/movethewheels/utils/freightRecovery.d.ts +5 -0
  145. package/dist/movethewheels/utils/graphqlClient.d.ts +2 -1
  146. package/dist/movethewheels/utils/pendingPickDraft.d.ts +8 -0
  147. package/dist/movethewheels/utils/procedureInput.d.ts +18 -0
  148. package/dist/movethewheels/utils/procedureRecovery.d.ts +5 -0
  149. package/dist/movethewheels/utils/reuseAttempt.d.ts +7 -0
  150. package/dist/movethewheels/utils/reuseForm.d.ts +6 -0
  151. package/dist/movethewheels/utils/reuseRecovery.d.ts +26 -0
  152. package/dist/movethewheels/utils/stockBindingForm.d.ts +23 -0
  153. package/dist/movethewheels/utils/stockBindingLabels.d.ts +10 -0
  154. package/dist/movethewheels/utils/stockObservationForm.d.ts +5 -0
  155. package/dist/movethewheels/utils/tripDraftContext.d.ts +25 -0
  156. package/dist/movethewheels/utils/tripUtilizationForm.d.ts +6 -0
  157. package/dist/node_modules/@react-leaflet/core/lib/component.js +5 -5
  158. package/dist/node_modules/fast-equals/dist/es/index.js +87 -74
  159. package/dist/node_modules/leaflet/dist/leaflet-src.js +8 -5
  160. package/dist/node_modules/lodash/_Stack.js +2 -1
  161. package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +35 -0
  162. package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +22 -0
  163. package/dist/node_modules/react-leaflet/lib/MapContainer.js +3 -3
  164. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  165. package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
  166. package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
  167. package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
  168. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
  169. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +13 -13
  170. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
  171. package/dist/node_modules/recharts/es6/cartesian/Line.js +10 -10
  172. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
  173. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
  174. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
  175. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
  176. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
  177. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
  178. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
  179. package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
  180. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
  181. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
  182. package/dist/node_modules/recharts/es6/component/Label.js +14 -14
  183. package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
  184. package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
  185. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
  186. package/dist/node_modules/recharts/es6/component/Text.js +2 -2
  187. package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
  188. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
  189. package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
  190. package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
  191. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
  192. package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
  193. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
  194. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
  195. package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
  196. package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
  197. package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
  198. package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
  199. package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
  200. package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
  201. package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
  202. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
  203. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
  204. package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
  205. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
  206. package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
  207. package/dist/node_modules/recharts/es6/util/ReactUtils.js +2 -2
  208. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
  209. package/dist/node_modules/recharts/es6/util/types.js +1 -1
  210. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.development.js +2 -2
  211. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.production.min.js +2 -2
  212. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/index.js +2 -2
  213. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +97 -18
  214. package/dist/node_modules/zustand/esm/middleware.js +2 -2
  215. package/dist/pages/ConsolidationPage.js +76 -0
  216. package/dist/pages/ContainerConditionPage.js +972 -0
  217. package/dist/pages/ContainersPage.js +522 -0
  218. package/dist/pages/EmptyReusePage.js +777 -0
  219. package/dist/pages/FreeTimePage.js +657 -0
  220. package/dist/pages/FreightEstimatePage.js +284 -0
  221. package/dist/pages/LogisticsProceduresPage.js +100 -0
  222. package/dist/pages/PendingPickPage.js +155 -0
  223. package/dist/pages/StockBindingPage.js +236 -0
  224. package/dist/pages/StockObservationsPage.js +168 -0
  225. package/dist/pages/TripUtilizationPage.js +227 -0
  226. package/dist/src/generated/consolidation-operations.js +505 -0
  227. package/dist/src/generated/container-condition-operations.js +208 -0
  228. package/dist/src/generated/container-operations.js +101 -0
  229. package/dist/src/generated/empty-reuse-operations.js +749 -0
  230. package/dist/src/generated/free-time-operations.js +235 -0
  231. package/dist/src/generated/freight-cost-operations.js +325 -0
  232. package/dist/src/generated/logistics-procedure-operations.js +362 -0
  233. package/dist/src/generated/pending-pick-operations.js +1128 -0
  234. package/dist/src/generated/stock-binding-operations.js +175 -0
  235. package/dist/src/generated/stock-observation-operations.js +93 -0
  236. package/dist/src/generated/trip-utilization-operations.js +140 -0
  237. package/dist/src/generated/wspace-operations.js +708 -0
  238. package/dist/utils/consolidationHistoryTarget.js +27 -0
  239. package/dist/utils/consolidationInput.js +21 -0
  240. package/dist/utils/consolidationLot.js +29 -0
  241. package/dist/utils/consolidationPins.js +13 -0
  242. package/dist/utils/consolidationRecovery.js +40 -0
  243. package/dist/utils/consolidationReportHead.js +18 -0
  244. package/dist/utils/freeTimeDate.js +26 -0
  245. package/dist/utils/freightAcknowledgement.js +8 -0
  246. package/dist/utils/freightDraft.js +125 -0
  247. package/dist/utils/freightRecovery.js +36 -0
  248. package/dist/utils/graphqlClient.js +28 -28
  249. package/dist/utils/pendingPickDraft.js +46 -0
  250. package/dist/utils/procedureInput.js +43 -0
  251. package/dist/utils/procedureRecovery.js +42 -0
  252. package/dist/utils/reuseAttempt.js +20 -0
  253. package/dist/utils/reuseForm.js +25 -0
  254. package/dist/utils/reuseRecovery.js +71 -0
  255. package/dist/utils/stockBindingForm.js +142 -0
  256. package/dist/utils/stockBindingLabels.js +23 -0
  257. package/dist/utils/stockObservationForm.js +55 -0
  258. package/dist/utils/tripDraftContext.js +19 -0
  259. package/dist/utils/tripUtilizationForm.js +60 -0
  260. package/package.json +19 -5
  261. package/src/generated/consolidation-operations.ts +1138 -0
  262. package/src/generated/container-condition-operations.ts +771 -0
  263. package/src/generated/container-operations.ts +376 -0
  264. package/src/generated/empty-reuse-operations.ts +1648 -0
  265. package/src/generated/free-time-operations.ts +814 -0
  266. package/src/generated/freight-cost-operations.ts +753 -0
  267. package/src/generated/logistics-procedure-operations.ts +1047 -0
  268. package/src/generated/pending-pick-operations.ts +1508 -0
  269. package/src/generated/stock-binding-operations.ts +631 -0
  270. package/src/generated/stock-observation-operations.ts +373 -0
  271. package/src/generated/trip-utilization-operations.ts +500 -0
  272. package/src/generated/wspace-operations.ts +116 -0
  273. package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
  274. package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
  275. package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
  276. package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
  277. package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
  278. package/src/movethewheels/components/ReuseControls.tsx +138 -0
  279. package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
  280. package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
  281. package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
  282. package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
  283. package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
  284. package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
  285. package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
  286. package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
  287. package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
  288. package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
  289. package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
  290. package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
  291. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
  292. package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
  293. package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
  294. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
  295. package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
  296. package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
  297. package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
  298. package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
  299. package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
  300. package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
  301. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
  302. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
  303. package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
  304. package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
  305. package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
  306. package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
  307. package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
  308. package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
  309. package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
  310. package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
  311. package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
  312. package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
  313. package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
  314. package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
  315. package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
  316. package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
  317. package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
  318. package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
  319. package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
  320. package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
  321. package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
  322. package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
  323. package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
  324. package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
  325. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
  326. package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
  327. package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
  328. package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
  329. package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
  330. package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
  331. package/src/movethewheels/pages/ContainersPage.tsx +490 -0
  332. package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
  333. package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
  334. package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
  335. package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
  336. package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
  337. package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
  338. package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
  339. package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
  340. package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
  341. package/src/movethewheels/utils/consolidationInput.ts +70 -0
  342. package/src/movethewheels/utils/consolidationLot.ts +24 -0
  343. package/src/movethewheels/utils/consolidationPins.ts +52 -0
  344. package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
  345. package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
  346. package/src/movethewheels/utils/freeTimeDate.ts +31 -0
  347. package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
  348. package/src/movethewheels/utils/freightDraft.ts +170 -0
  349. package/src/movethewheels/utils/freightRecovery.ts +79 -0
  350. package/src/movethewheels/utils/graphqlClient.ts +14 -5
  351. package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
  352. package/src/movethewheels/utils/procedureInput.ts +98 -0
  353. package/src/movethewheels/utils/procedureRecovery.ts +92 -0
  354. package/src/movethewheels/utils/reuseAttempt.ts +29 -0
  355. package/src/movethewheels/utils/reuseForm.ts +30 -0
  356. package/src/movethewheels/utils/reuseRecovery.ts +151 -0
  357. package/src/movethewheels/utils/stockBindingForm.ts +209 -0
  358. package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
  359. package/src/movethewheels/utils/stockObservationForm.ts +73 -0
  360. package/src/movethewheels/utils/tripDraftContext.ts +61 -0
  361. package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
  362. package/src/operations/condition/container-condition.graphql +41 -0
  363. package/src/operations/consolidation/consolidation.graphql +490 -0
  364. package/src/operations/container/container-lifecycle.graphql +80 -0
  365. package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
  366. package/src/operations/free-time/free-time.graphql +47 -0
  367. package/src/operations/freight-cost/freight.graphql +6 -0
  368. package/src/operations/logistics-procedure/procedure.graphql +15 -0
  369. package/src/operations/pending-pick/pending-pick.graphql +1122 -0
  370. package/src/operations/stock-binding/stock-binding.graphql +160 -0
  371. package/src/operations/stock-observation/stock-observation.graphql +20 -0
  372. package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
  373. package/src/operations/wspace/container-evidence.graphql +6 -0
@@ -0,0 +1,1648 @@
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
+ JSON: { input: unknown; output: unknown; }
18
+ };
19
+
20
+ export type AcceptMtwReuseReservationInput = {
21
+ approvalId: Scalars['ID']['input'];
22
+ expectedCycleVersion: Scalars['Int']['input'];
23
+ expectedProposalRevision: Scalars['Int']['input'];
24
+ idempotencyKey: Scalars['String']['input'];
25
+ proposalId: Scalars['ID']['input'];
26
+ };
27
+
28
+ export type MtwContainer = {
29
+ __typename?: 'MtwContainer';
30
+ containerNumber: Scalars['String']['output'];
31
+ createdAt: Scalars['DateTime']['output'];
32
+ equipmentType: MtwEquipmentType;
33
+ id: Scalars['ID']['output'];
34
+ ownerName?: Maybe<Scalars['String']['output']>;
35
+ source: Scalars['String']['output'];
36
+ suppliedContainerNumber: Scalars['String']['output'];
37
+ };
38
+
39
+ export type MtwContainerCargoCategory =
40
+ | 'DANGEROUS'
41
+ | 'DRY'
42
+ | 'FOOD_GRADE'
43
+ | 'PEST'
44
+ | 'REEFER';
45
+
46
+ export type MtwContainerCycle = {
47
+ __typename?: 'MtwContainerCycle';
48
+ bookingReference?: Maybe<Scalars['String']['output']>;
49
+ closedAt?: Maybe<Scalars['DateTime']['output']>;
50
+ containerId: Scalars['ID']['output'];
51
+ createdAt: Scalars['DateTime']['output'];
52
+ id: Scalars['ID']['output'];
53
+ openedAt: Scalars['DateTime']['output'];
54
+ shipmentId?: Maybe<Scalars['ID']['output']>;
55
+ status: MtwContainerCycleStatus;
56
+ updatedAt: Scalars['DateTime']['output'];
57
+ version: Scalars['Int']['output'];
58
+ };
59
+
60
+ export type MtwContainerCyclePage = {
61
+ __typename?: 'MtwContainerCyclePage';
62
+ hasMore: Scalars['Boolean']['output'];
63
+ items: Array<MtwContainerCycle>;
64
+ limit: Scalars['Int']['output'];
65
+ nextOffset?: Maybe<Scalars['Int']['output']>;
66
+ offset: Scalars['Int']['output'];
67
+ total: Scalars['Int']['output'];
68
+ };
69
+
70
+ export type MtwContainerCycleStatus =
71
+ | 'CLOSED'
72
+ | 'OPEN';
73
+
74
+ /** Append-only sourced observation. Planned/estimated observations never establish custody. */
75
+ export type MtwContainerEvent = {
76
+ __typename?: 'MtwContainerEvent';
77
+ actorId: Scalars['ID']['output'];
78
+ cycleId: Scalars['ID']['output'];
79
+ eventType: MtwContainerEventType;
80
+ evidenceNote?: Maybe<Scalars['String']['output']>;
81
+ id: Scalars['ID']['output'];
82
+ idempotencyKey: Scalars['String']['output'];
83
+ kind: MtwContainerEventKind;
84
+ location?: Maybe<Scalars['String']['output']>;
85
+ occurredAt: Scalars['DateTime']['output'];
86
+ receivedAt: Scalars['DateTime']['output'];
87
+ source: Scalars['String']['output'];
88
+ sourceReference?: Maybe<Scalars['String']['output']>;
89
+ };
90
+
91
+ export type MtwContainerEventKind =
92
+ | 'ACTUAL'
93
+ | 'ESTIMATED'
94
+ | 'PLANNED';
95
+
96
+ export type MtwContainerEventPage = {
97
+ __typename?: 'MtwContainerEventPage';
98
+ hasMore: Scalars['Boolean']['output'];
99
+ items: Array<MtwContainerEvent>;
100
+ limit: Scalars['Int']['output'];
101
+ nextOffset?: Maybe<Scalars['Int']['output']>;
102
+ offset: Scalars['Int']['output'];
103
+ total: Scalars['Int']['output'];
104
+ };
105
+
106
+ export type MtwContainerEventType =
107
+ | 'AVAILABLE_FOR_PICKUP'
108
+ | 'DELIVERED'
109
+ | 'DISCHARGED'
110
+ | 'EMPTY_READY'
111
+ | 'EMPTY_RETURNED'
112
+ | 'GATE_IN'
113
+ | 'GATE_OUT'
114
+ | 'LOADED'
115
+ | 'POSITION_UPDATE'
116
+ | 'RETURN_ACCEPTED'
117
+ | 'RETURN_REQUESTED';
118
+
119
+ /** Bounded audit snapshot of at most 10 exact evidence versions. */
120
+ export type MtwContainerEvidence = {
121
+ __typename?: 'MtwContainerEvidence';
122
+ checkedAt: Scalars['DateTime']['output'];
123
+ fileId: Scalars['ID']['output'];
124
+ sha256Hash: Scalars['String']['output'];
125
+ versionId: Scalars['ID']['output'];
126
+ };
127
+
128
+ /** Exact shared Files version. The fingerprint establishes integrity, not issuer authenticity. */
129
+ export type MtwContainerEvidenceInput = {
130
+ fileId: Scalars['ID']['input'];
131
+ versionId: Scalars['ID']['input'];
132
+ };
133
+
134
+ /** Recorded operational examination scheme; this service does not issue CSC approval. */
135
+ export type MtwContainerExaminationScheme =
136
+ | 'ACEP'
137
+ | 'PES';
138
+
139
+ export type MtwContainerInspection = {
140
+ __typename?: 'MtwContainerInspection';
141
+ acepReference?: Maybe<Scalars['String']['output']>;
142
+ cargoCategory: MtwContainerCargoCategory;
143
+ containerId: Scalars['ID']['output'];
144
+ cscPlateVersionId?: Maybe<Scalars['ID']['output']>;
145
+ defectCount: Scalars['Int']['output'];
146
+ evidence: Array<MtwContainerEvidence>;
147
+ examinationScheme: MtwContainerExaminationScheme;
148
+ examinationVersionId?: Maybe<Scalars['ID']['output']>;
149
+ id: Scalars['ID']['output'];
150
+ inspectedAt: Scalars['DateTime']['output'];
151
+ inspectorActorId: Scalars['ID']['output'];
152
+ nextExaminationAt?: Maybe<Scalars['DateTime']['output']>;
153
+ receivedAt: Scalars['DateTime']['output'];
154
+ resolvedDefectIds: Array<Scalars['ID']['output']>;
155
+ severeDefectCount: Scalars['Int']['output'];
156
+ suitability: MtwContainerSuitability;
157
+ templateVersion: Scalars['String']['output'];
158
+ };
159
+
160
+ export type MtwContainerInspectionPage = {
161
+ __typename?: 'MtwContainerInspectionPage';
162
+ hasMore: Scalars['Boolean']['output'];
163
+ items: Array<MtwContainerInspection>;
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 MtwContainerPage = {
171
+ __typename?: 'MtwContainerPage';
172
+ hasMore: Scalars['Boolean']['output'];
173
+ items: Array<MtwContainer>;
174
+ limit: Scalars['Int']['output'];
175
+ nextOffset?: Maybe<Scalars['Int']['output']>;
176
+ offset: Scalars['Int']['output'];
177
+ total: Scalars['Int']['output'];
178
+ };
179
+
180
+ export type MtwContainerPagination = {
181
+ limit?: InputMaybe<Scalars['Int']['input']>;
182
+ offset?: InputMaybe<Scalars['Int']['input']>;
183
+ };
184
+
185
+ export type MtwContainerQualificationScope =
186
+ | 'ACEP_EXAMINATION'
187
+ | 'DANGEROUS_CARGO'
188
+ | 'DRY_CARGO'
189
+ | 'FOOD_GRADE_CARGO'
190
+ | 'PEST_CARGO'
191
+ | 'PES_EXAMINATION'
192
+ | 'REEFER_CARGO';
193
+
194
+ export type MtwContainerQualificationStatus =
195
+ | 'HUMAN_REVIEWED'
196
+ | 'REVOKED'
197
+ | 'SUBMITTED';
198
+
199
+ export type MtwContainerSuitability =
200
+ | 'ACCEPTABLE'
201
+ | 'REJECTED'
202
+ | 'REVIEW_REQUIRED';
203
+
204
+ /** Sourced immutable empty-return instructions. Reuse approval never fabricates a depot return. */
205
+ export type MtwEmptyReturnInstruction = {
206
+ __typename?: 'MtwEmptyReturnInstruction';
207
+ bookingReference: Scalars['String']['output'];
208
+ changeReason: Scalars['String']['output'];
209
+ createdBy: Scalars['ID']['output'];
210
+ cycleId: Scalars['ID']['output'];
211
+ depotReference: Scalars['String']['output'];
212
+ effectiveAt: Scalars['DateTime']['output'];
213
+ evidence: Array<MtwContainerEvidence>;
214
+ id: Scalars['ID']['output'];
215
+ locationReference: Scalars['String']['output'];
216
+ ownerReference: Scalars['String']['output'];
217
+ recordedAt: Scalars['DateTime']['output'];
218
+ returnFrom: Scalars['DateTime']['output'];
219
+ returnUntil: Scalars['DateTime']['output'];
220
+ sourceReference: Scalars['String']['output'];
221
+ supersedesInstructionId?: Maybe<Scalars['ID']['output']>;
222
+ version: Scalars['Int']['output'];
223
+ };
224
+
225
+ export type MtwEmptyReturnInstructionPage = {
226
+ __typename?: 'MtwEmptyReturnInstructionPage';
227
+ hasMore: Scalars['Boolean']['output'];
228
+ items: Array<MtwEmptyReturnInstruction>;
229
+ limit: Scalars['Int']['output'];
230
+ nextOffset?: Maybe<Scalars['Int']['output']>;
231
+ offset: Scalars['Int']['output'];
232
+ total: Scalars['Int']['output'];
233
+ };
234
+
235
+ /** Operator-recorded external permission history; never a dispatcher reservation or external identity certificate. */
236
+ export type MtwEquipmentReuseApproval = {
237
+ __typename?: 'MtwEquipmentReuseApproval';
238
+ approvalId?: Maybe<Scalars['ID']['output']>;
239
+ counterpartyReference: Scalars['String']['output'];
240
+ createdBy: Scalars['ID']['output'];
241
+ evidence: Array<MtwContainerEvidence>;
242
+ id: Scalars['ID']['output'];
243
+ kind: MtwReuseApprovalKind;
244
+ note: Scalars['String']['output'];
245
+ proposalId: Scalars['ID']['output'];
246
+ recordedAt: Scalars['DateTime']['output'];
247
+ sourceReference: Scalars['String']['output'];
248
+ validFrom?: Maybe<Scalars['DateTime']['output']>;
249
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
250
+ };
251
+
252
+ export type MtwEquipmentReuseApprovalPage = {
253
+ __typename?: 'MtwEquipmentReuseApprovalPage';
254
+ hasMore: Scalars['Boolean']['output'];
255
+ items: Array<MtwEquipmentReuseApproval>;
256
+ limit: Scalars['Int']['output'];
257
+ nextOffset?: Maybe<Scalars['Int']['output']>;
258
+ offset: Scalars['Int']['output'];
259
+ total: Scalars['Int']['output'];
260
+ };
261
+
262
+ /** Physical equipment; LCL is a freight service, not an equipment type. */
263
+ export type MtwEquipmentType =
264
+ | 'DRY_20'
265
+ | 'DRY_40'
266
+ | 'FLAT_RACK'
267
+ | 'HIGH_CUBE_40'
268
+ | 'OPEN_TOP'
269
+ | 'OTHER'
270
+ | 'REEFER_20'
271
+ | 'REEFER_40'
272
+ | 'TANK';
273
+
274
+ /** A recorded manual issuer review; workspace privileges do not establish professional qualifications. */
275
+ export type MtwInspectorQualification = {
276
+ __typename?: 'MtwInspectorQualification';
277
+ createdAt: Scalars['DateTime']['output'];
278
+ credentialReference: Scalars['String']['output'];
279
+ evidence: Array<MtwContainerEvidence>;
280
+ id: Scalars['ID']['output'];
281
+ issuerConfirmationReference?: Maybe<Scalars['String']['output']>;
282
+ issuerName: Scalars['String']['output'];
283
+ reviewEvidence: Array<MtwContainerEvidence>;
284
+ reviewNote?: Maybe<Scalars['String']['output']>;
285
+ reviewedAt?: Maybe<Scalars['DateTime']['output']>;
286
+ revocationReason?: Maybe<Scalars['String']['output']>;
287
+ revokedAt?: Maybe<Scalars['DateTime']['output']>;
288
+ scopes: Array<MtwContainerQualificationScope>;
289
+ status: MtwContainerQualificationStatus;
290
+ subjectActorId: Scalars['ID']['output'];
291
+ updatedAt: Scalars['DateTime']['output'];
292
+ validFrom: Scalars['DateTime']['output'];
293
+ validUntil: Scalars['DateTime']['output'];
294
+ verifierActorId?: Maybe<Scalars['ID']['output']>;
295
+ version: Scalars['Int']['output'];
296
+ };
297
+
298
+ export type MtwInspectorQualificationPage = {
299
+ __typename?: 'MtwInspectorQualificationPage';
300
+ hasMore: Scalars['Boolean']['output'];
301
+ items: Array<MtwInspectorQualification>;
302
+ limit: Scalars['Int']['output'];
303
+ nextOffset?: Maybe<Scalars['Int']['output']>;
304
+ offset: Scalars['Int']['output'];
305
+ total: Scalars['Int']['output'];
306
+ };
307
+
308
+ export type MtwReuseApprovalKind =
309
+ | 'APPROVED'
310
+ | 'REJECTED'
311
+ | 'REVOKED';
312
+
313
+ export type MtwReuseBlocker = {
314
+ __typename?: 'MtwReuseBlocker';
315
+ certainty: MtwReuseBlockerCertainty;
316
+ code: Scalars['String']['output'];
317
+ reason: Scalars['String']['output'];
318
+ };
319
+
320
+ export type MtwReuseBlockerCertainty =
321
+ | 'FAILED'
322
+ | 'UNKNOWN';
323
+
324
+ /** Point-in-time planning review under recorded evidence; creates no allocation or operational event. */
325
+ export type MtwReuseEligibility = {
326
+ __typename?: 'MtwReuseEligibility';
327
+ approvalId?: Maybe<Scalars['ID']['output']>;
328
+ blockers: Array<MtwReuseBlocker>;
329
+ evaluatedAt: Scalars['DateTime']['output'];
330
+ proposalId: Scalars['ID']['output'];
331
+ status: MtwReuseReadinessStatus;
332
+ };
333
+
334
+ /** Immutable planning revision. Recording it does not approve, reserve, dispatch or complete a street turn. */
335
+ export type MtwReuseProposal = {
336
+ __typename?: 'MtwReuseProposal';
337
+ assessment: MtwReuseProposalAssessment;
338
+ cargoCategory: MtwContainerCargoCategory;
339
+ containerId: Scalars['ID']['output'];
340
+ createdBy: Scalars['ID']['output'];
341
+ cycleId: Scalars['ID']['output'];
342
+ emptyEventId: Scalars['ID']['output'];
343
+ evidence: Array<MtwContainerEvidence>;
344
+ exportBookingReference: Scalars['String']['output'];
345
+ exporterReference: Scalars['String']['output'];
346
+ handoffFrom: Scalars['DateTime']['output'];
347
+ handoffLocationReference: Scalars['String']['output'];
348
+ handoffUntil: Scalars['DateTime']['output'];
349
+ id: Scalars['ID']['output'];
350
+ inspectionId: Scalars['ID']['output'];
351
+ instructionId: Scalars['ID']['output'];
352
+ proposalReference: Scalars['String']['output'];
353
+ recordedAt: Scalars['DateTime']['output'];
354
+ requiredEquipmentType: MtwEquipmentType;
355
+ revision: Scalars['Int']['output'];
356
+ transportRouteId: Scalars['ID']['output'];
357
+ transportRouteUpdatedAt: Scalars['DateTime']['output'];
358
+ };
359
+
360
+ export type MtwReuseProposalAssessment = {
361
+ __typename?: 'MtwReuseProposalAssessment';
362
+ conditionQualificationId?: Maybe<Scalars['ID']['output']>;
363
+ conditionQualificationVersion?: Maybe<Scalars['Int']['output']>;
364
+ routeBinding?: Maybe<MtwReuseRouteBinding>;
365
+ schemaVersion: Scalars['Int']['output'];
366
+ scopeFingerprint: Scalars['String']['output'];
367
+ sources: MtwReuseSources;
368
+ timing?: Maybe<MtwReuseTiming>;
369
+ };
370
+
371
+ export type MtwReuseProposalPage = {
372
+ __typename?: 'MtwReuseProposalPage';
373
+ hasMore: Scalars['Boolean']['output'];
374
+ items: Array<MtwReuseProposal>;
375
+ limit: Scalars['Int']['output'];
376
+ nextOffset?: Maybe<Scalars['Int']['output']>;
377
+ offset: Scalars['Int']['output'];
378
+ total: Scalars['Int']['output'];
379
+ };
380
+
381
+ export type MtwReuseReadinessStatus =
382
+ | 'BLOCKED'
383
+ | 'READY_FOR_DISPATCH_REVIEW';
384
+
385
+ /** Planning allocation only. ACTIVE does not mean street turn executed or constraints remain clear. */
386
+ export type MtwReuseReservation = {
387
+ __typename?: 'MtwReuseReservation';
388
+ approvalId: Scalars['ID']['output'];
389
+ containerId: Scalars['ID']['output'];
390
+ createdAt: Scalars['DateTime']['output'];
391
+ createdBy: Scalars['ID']['output'];
392
+ cycleId: Scalars['ID']['output'];
393
+ handoffUntil: Scalars['DateTime']['output'];
394
+ id: Scalars['ID']['output'];
395
+ proposalId: Scalars['ID']['output'];
396
+ status: MtwReuseReservationStatus;
397
+ updatedAt: Scalars['DateTime']['output'];
398
+ updatedBy?: Maybe<Scalars['ID']['output']>;
399
+ version: Scalars['Int']['output'];
400
+ };
401
+
402
+ export type MtwReuseReservationPage = {
403
+ __typename?: 'MtwReuseReservationPage';
404
+ hasMore: Scalars['Boolean']['output'];
405
+ items: Array<MtwReuseReservation>;
406
+ limit: Scalars['Int']['output'];
407
+ nextOffset?: Maybe<Scalars['Int']['output']>;
408
+ offset: Scalars['Int']['output'];
409
+ total: Scalars['Int']['output'];
410
+ };
411
+
412
+ export type MtwReuseReservationStatus =
413
+ | 'ACTIVE'
414
+ | 'CANCELLED'
415
+ | 'EXPIRED';
416
+
417
+ export type MtwReuseReservationTerminalStatus =
418
+ | 'CANCELLED'
419
+ | 'EXPIRED';
420
+
421
+ /** Immutable recorded reasons for explicit planning cancellation or expiry, not physical execution. */
422
+ export type MtwReuseReservationTransition = {
423
+ __typename?: 'MtwReuseReservationTransition';
424
+ createdBy: Scalars['ID']['output'];
425
+ id: Scalars['ID']['output'];
426
+ previousStatus: MtwReuseReservationStatus;
427
+ reason: Scalars['String']['output'];
428
+ recordedAt: Scalars['DateTime']['output'];
429
+ reservationId: Scalars['ID']['output'];
430
+ status: MtwReuseReservationStatus;
431
+ };
432
+
433
+ export type MtwReuseReservationTransitionPage = {
434
+ __typename?: 'MtwReuseReservationTransitionPage';
435
+ hasMore: Scalars['Boolean']['output'];
436
+ items: Array<MtwReuseReservationTransition>;
437
+ limit: Scalars['Int']['output'];
438
+ nextOffset?: Maybe<Scalars['Int']['output']>;
439
+ offset: Scalars['Int']['output'];
440
+ total: Scalars['Int']['output'];
441
+ };
442
+
443
+ export type MtwReuseRouteBinding = {
444
+ __typename?: 'MtwReuseRouteBinding';
445
+ handoffLocationReference: Scalars['String']['output'];
446
+ handoffWaypointFingerprint: Scalars['String']['output'];
447
+ handoffWaypointIndex: Scalars['Int']['output'];
448
+ returnLocationReference: Scalars['String']['output'];
449
+ returnWaypointFingerprint: Scalars['String']['output'];
450
+ returnWaypointIndex: Scalars['Int']['output'];
451
+ routeWaypointsFingerprint: Scalars['String']['output'];
452
+ };
453
+
454
+ export type MtwReuseRouteBindingInput = {
455
+ handoffWaypointIndex: Scalars['Int']['input'];
456
+ returnWaypointIndex: Scalars['Int']['input'];
457
+ };
458
+
459
+ export type MtwReuseSourceAttestation = {
460
+ __typename?: 'MtwReuseSourceAttestation';
461
+ evidence: Array<MtwContainerEvidence>;
462
+ observedAt: Scalars['DateTime']['output'];
463
+ purpose: MtwReuseSourcePurpose;
464
+ recordedAt: Scalars['DateTime']['output'];
465
+ recordedByActorId: Scalars['ID']['output'];
466
+ scopeFingerprint: Scalars['String']['output'];
467
+ sourceReference: Scalars['String']['output'];
468
+ sourceRevision: Scalars['String']['output'];
469
+ validFrom: Scalars['DateTime']['output'];
470
+ validUntil: Scalars['DateTime']['output'];
471
+ };
472
+
473
+ export type MtwReuseSourceAttestationInput = {
474
+ evidenceVersionIds: Array<Scalars['ID']['input']>;
475
+ observedAt: Scalars['DateTime']['input'];
476
+ sourceReference: Scalars['String']['input'];
477
+ sourceRevision: Scalars['String']['input'];
478
+ validFrom: Scalars['DateTime']['input'];
479
+ validUntil: Scalars['DateTime']['input'];
480
+ };
481
+
482
+ export type MtwReuseSourcePurpose =
483
+ | 'BOOKING'
484
+ | 'CONDITION_SUITABILITY'
485
+ | 'RETAINED_RETURN'
486
+ | 'ROAD_ACCESS';
487
+
488
+ export type MtwReuseSources = {
489
+ __typename?: 'MtwReuseSources';
490
+ booking?: Maybe<MtwReuseSourceAttestation>;
491
+ conditionSuitability?: Maybe<MtwReuseSourceAttestation>;
492
+ retainedReturnPlan?: Maybe<MtwReuseSourceAttestation>;
493
+ roadAccess?: Maybe<MtwReuseSourceAttestation>;
494
+ };
495
+
496
+ export type MtwReuseSourcesInput = {
497
+ booking?: InputMaybe<MtwReuseSourceAttestationInput>;
498
+ conditionSuitability?: InputMaybe<MtwReuseSourceAttestationInput>;
499
+ retainedReturnPlan?: InputMaybe<MtwReuseSourceAttestationInput>;
500
+ roadAccess?: InputMaybe<MtwReuseSourceAttestationInput>;
501
+ };
502
+
503
+ export type MtwReuseTiming = {
504
+ __typename?: 'MtwReuseTiming';
505
+ departureAt: Scalars['DateTime']['output'];
506
+ maxFullReuseAndReturnSeconds: Scalars['Int']['output'];
507
+ maxTravelSeconds: Scalars['Int']['output'];
508
+ maxWaitSeconds: Scalars['Int']['output'];
509
+ plannedReturnFrom: Scalars['DateTime']['output'];
510
+ plannedReturnUntil: Scalars['DateTime']['output'];
511
+ returnWaitingLocationReference?: Maybe<Scalars['String']['output']>;
512
+ siteCloseAt: Scalars['DateTime']['output'];
513
+ siteOpenAt: Scalars['DateTime']['output'];
514
+ siteWaitingLocationReference?: Maybe<Scalars['String']['output']>;
515
+ };
516
+
517
+ export type MtwReuseTimingInput = {
518
+ departureAt: Scalars['DateTime']['input'];
519
+ maxFullReuseAndReturnSeconds: Scalars['Int']['input'];
520
+ maxTravelSeconds: Scalars['Int']['input'];
521
+ maxWaitSeconds: Scalars['Int']['input'];
522
+ plannedReturnFrom: Scalars['DateTime']['input'];
523
+ plannedReturnUntil: Scalars['DateTime']['input'];
524
+ returnWaitingLocationReference?: InputMaybe<Scalars['String']['input']>;
525
+ siteCloseAt: Scalars['DateTime']['input'];
526
+ siteOpenAt: Scalars['DateTime']['input'];
527
+ siteWaitingLocationReference?: InputMaybe<Scalars['String']['input']>;
528
+ };
529
+
530
+ export type MtwRoute = {
531
+ __typename?: 'MtwRoute';
532
+ id: Scalars['ID']['output'];
533
+ name: Scalars['String']['output'];
534
+ status: RouteStatus;
535
+ updatedAt: Scalars['DateTime']['output'];
536
+ waypoints: Scalars['JSON']['output'];
537
+ };
538
+
539
+ export type Mutation = {
540
+ __typename?: 'Mutation';
541
+ acceptMtwReuseReservation: MtwReuseReservation;
542
+ recordMtwEmptyReturnInstruction: MtwEmptyReturnInstruction;
543
+ recordMtwEquipmentReuseApproval: MtwEquipmentReuseApproval;
544
+ recordMtwReuseProposal: MtwReuseProposal;
545
+ terminateMtwReuseReservation: MtwReuseReservation;
546
+ };
547
+
548
+
549
+ export type MutationAcceptMtwReuseReservationArgs = {
550
+ input: AcceptMtwReuseReservationInput;
551
+ };
552
+
553
+
554
+ export type MutationRecordMtwEmptyReturnInstructionArgs = {
555
+ input: RecordMtwEmptyReturnInstructionInput;
556
+ };
557
+
558
+
559
+ export type MutationRecordMtwEquipmentReuseApprovalArgs = {
560
+ input: RecordMtwEquipmentReuseApprovalInput;
561
+ };
562
+
563
+
564
+ export type MutationRecordMtwReuseProposalArgs = {
565
+ input: RecordMtwReuseProposalInput;
566
+ };
567
+
568
+
569
+ export type MutationTerminateMtwReuseReservationArgs = {
570
+ input: TerminateMtwReuseReservationInput;
571
+ };
572
+
573
+ export type Query = {
574
+ __typename?: 'Query';
575
+ mtwContainerCyclePage: MtwContainerCyclePage;
576
+ mtwContainerEventPage: MtwContainerEventPage;
577
+ mtwContainerInspectionPage: MtwContainerInspectionPage;
578
+ mtwContainerPage: MtwContainerPage;
579
+ mtwContainerQualificationPage: MtwInspectorQualificationPage;
580
+ /** Exact immutable instruction, including a proposal's historical owner; not a current-eligibility claim. */
581
+ mtwEmptyReturnInstruction: MtwEmptyReturnInstruction;
582
+ mtwEmptyReturnInstructionPage: MtwEmptyReturnInstructionPage;
583
+ mtwEquipmentReuseApprovalPage: MtwEquipmentReuseApprovalPage;
584
+ mtwReuseEligibility: MtwReuseEligibility;
585
+ mtwReuseProposalPage: MtwReuseProposalPage;
586
+ mtwReuseReservationPage: MtwReuseReservationPage;
587
+ mtwReuseReservationTransitionPage: MtwReuseReservationTransitionPage;
588
+ route?: Maybe<MtwRoute>;
589
+ };
590
+
591
+
592
+ export type QueryMtwContainerCyclePageArgs = {
593
+ containerId: Scalars['ID']['input'];
594
+ pagination?: InputMaybe<MtwContainerPagination>;
595
+ };
596
+
597
+
598
+ export type QueryMtwContainerEventPageArgs = {
599
+ cycleId: Scalars['ID']['input'];
600
+ pagination?: InputMaybe<MtwContainerPagination>;
601
+ };
602
+
603
+
604
+ export type QueryMtwContainerInspectionPageArgs = {
605
+ containerId: Scalars['ID']['input'];
606
+ pagination?: InputMaybe<MtwContainerPagination>;
607
+ };
608
+
609
+
610
+ export type QueryMtwContainerPageArgs = {
611
+ pagination?: InputMaybe<MtwContainerPagination>;
612
+ search?: InputMaybe<Scalars['String']['input']>;
613
+ };
614
+
615
+
616
+ export type QueryMtwContainerQualificationPageArgs = {
617
+ pagination?: InputMaybe<MtwContainerPagination>;
618
+ };
619
+
620
+
621
+ export type QueryMtwEmptyReturnInstructionArgs = {
622
+ id: Scalars['ID']['input'];
623
+ };
624
+
625
+
626
+ export type QueryMtwEmptyReturnInstructionPageArgs = {
627
+ cycleId: Scalars['ID']['input'];
628
+ pagination?: InputMaybe<MtwContainerPagination>;
629
+ };
630
+
631
+
632
+ export type QueryMtwEquipmentReuseApprovalPageArgs = {
633
+ pagination?: InputMaybe<MtwContainerPagination>;
634
+ proposalId: Scalars['ID']['input'];
635
+ };
636
+
637
+
638
+ export type QueryMtwReuseEligibilityArgs = {
639
+ approvalId?: InputMaybe<Scalars['ID']['input']>;
640
+ proposalId: Scalars['ID']['input'];
641
+ };
642
+
643
+
644
+ export type QueryMtwReuseProposalPageArgs = {
645
+ cycleId: Scalars['ID']['input'];
646
+ pagination?: InputMaybe<MtwContainerPagination>;
647
+ };
648
+
649
+
650
+ export type QueryMtwReuseReservationPageArgs = {
651
+ cycleId: Scalars['ID']['input'];
652
+ pagination?: InputMaybe<MtwContainerPagination>;
653
+ };
654
+
655
+
656
+ export type QueryMtwReuseReservationTransitionPageArgs = {
657
+ pagination?: InputMaybe<MtwContainerPagination>;
658
+ reservationId: Scalars['ID']['input'];
659
+ };
660
+
661
+
662
+ export type QueryRouteArgs = {
663
+ id: Scalars['ID']['input'];
664
+ };
665
+
666
+ export type RecordMtwEmptyReturnInstructionInput = {
667
+ bookingReference: Scalars['String']['input'];
668
+ changeReason: Scalars['String']['input'];
669
+ currentInstructionId?: InputMaybe<Scalars['ID']['input']>;
670
+ cycleId: Scalars['ID']['input'];
671
+ depotReference: Scalars['String']['input'];
672
+ effectiveAt: Scalars['DateTime']['input'];
673
+ evidence: Array<MtwContainerEvidenceInput>;
674
+ expectedCycleVersion: Scalars['Int']['input'];
675
+ idempotencyKey: Scalars['String']['input'];
676
+ locationReference: Scalars['String']['input'];
677
+ ownerReference: Scalars['String']['input'];
678
+ returnFrom: Scalars['DateTime']['input'];
679
+ returnUntil: Scalars['DateTime']['input'];
680
+ sourceReference: Scalars['String']['input'];
681
+ };
682
+
683
+ export type RecordMtwEquipmentReuseApprovalInput = {
684
+ approvalId?: InputMaybe<Scalars['ID']['input']>;
685
+ counterpartyReference: Scalars['String']['input'];
686
+ evidence: Array<MtwContainerEvidenceInput>;
687
+ expectedCycleVersion: Scalars['Int']['input'];
688
+ idempotencyKey: Scalars['String']['input'];
689
+ kind: MtwReuseApprovalKind;
690
+ note: Scalars['String']['input'];
691
+ proposalId: Scalars['ID']['input'];
692
+ sourceReference: Scalars['String']['input'];
693
+ validFrom?: InputMaybe<Scalars['DateTime']['input']>;
694
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
695
+ };
696
+
697
+ export type RecordMtwReuseProposalInput = {
698
+ cargoCategory: MtwContainerCargoCategory;
699
+ conditionQualificationId?: InputMaybe<Scalars['ID']['input']>;
700
+ cycleId: Scalars['ID']['input'];
701
+ emptyEventId: Scalars['ID']['input'];
702
+ evidence: Array<MtwContainerEvidenceInput>;
703
+ expectedCycleVersion: Scalars['Int']['input'];
704
+ expectedProposalRevision: Scalars['Int']['input'];
705
+ exportBookingReference: Scalars['String']['input'];
706
+ exporterReference: Scalars['String']['input'];
707
+ handoffFrom: Scalars['DateTime']['input'];
708
+ handoffLocationReference: Scalars['String']['input'];
709
+ handoffUntil: Scalars['DateTime']['input'];
710
+ idempotencyKey: Scalars['String']['input'];
711
+ inspectionId: Scalars['ID']['input'];
712
+ instructionId: Scalars['ID']['input'];
713
+ proposalReference: Scalars['String']['input'];
714
+ requiredEquipmentType: MtwEquipmentType;
715
+ routeBinding?: InputMaybe<MtwReuseRouteBindingInput>;
716
+ sources: MtwReuseSourcesInput;
717
+ timing?: InputMaybe<MtwReuseTimingInput>;
718
+ transportRouteId: Scalars['ID']['input'];
719
+ transportRouteUpdatedAt: Scalars['DateTime']['input'];
720
+ };
721
+
722
+ export type RouteStatus =
723
+ | 'CANCELLED'
724
+ | 'COMPLETED'
725
+ | 'IN_PROGRESS'
726
+ | 'PLANNED';
727
+
728
+ export type TerminateMtwReuseReservationInput = {
729
+ expectedVersion: Scalars['Int']['input'];
730
+ idempotencyKey: Scalars['String']['input'];
731
+ reason: Scalars['String']['input'];
732
+ reservationId: Scalars['ID']['input'];
733
+ status: MtwReuseReservationTerminalStatus;
734
+ };
735
+
736
+ export type ReuseEvidenceFragment = { __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string };
737
+
738
+ export type ReturnInstructionFieldsFragment = { __typename?: 'MtwEmptyReturnInstruction', id: string, cycleId: string, version: number, ownerReference: string, bookingReference: string, depotReference: string, locationReference: string, returnFrom: string, returnUntil: string, effectiveAt: string, sourceReference: string, changeReason: string, supersedesInstructionId?: string | null, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> };
739
+
740
+ export type ReuseSourceFieldsFragment = { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> };
741
+
742
+ export type ReuseProposalFieldsFragment = { __typename?: 'MtwReuseProposal', id: string, cycleId: string, containerId: string, instructionId: string, proposalReference: string, revision: number, emptyEventId: string, inspectionId: string, transportRouteId: string, transportRouteUpdatedAt: string, exportBookingReference: string, exporterReference: string, handoffLocationReference: string, handoffFrom: string, handoffUntil: string, requiredEquipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, assessment: { __typename?: 'MtwReuseProposalAssessment', schemaVersion: number, scopeFingerprint: string, conditionQualificationId?: string | null, conditionQualificationVersion?: number | null, sources: { __typename?: 'MtwReuseSources', booking?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, roadAccess?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, conditionSuitability?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, retainedReturnPlan?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null }, timing?: { __typename?: 'MtwReuseTiming', departureAt: string, maxTravelSeconds: number, maxWaitSeconds: number, siteOpenAt: string, siteCloseAt: string, maxFullReuseAndReturnSeconds: number, siteWaitingLocationReference?: string | null, returnWaitingLocationReference?: string | null, plannedReturnFrom: string, plannedReturnUntil: string } | null, routeBinding?: { __typename?: 'MtwReuseRouteBinding', handoffWaypointIndex: number, returnWaypointIndex: number, handoffWaypointFingerprint: string, returnWaypointFingerprint: string, routeWaypointsFingerprint: string, handoffLocationReference: string, returnLocationReference: string } | null } };
743
+
744
+ export type ReuseApprovalFieldsFragment = { __typename?: 'MtwEquipmentReuseApproval', id: string, proposalId: string, kind: MtwReuseApprovalKind, approvalId?: string | null, counterpartyReference: string, sourceReference: string, validFrom?: string | null, validUntil?: string | null, note: string, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> };
745
+
746
+ export type ReuseReservationFieldsFragment = { __typename?: 'MtwReuseReservation', id: string, containerId: string, cycleId: string, proposalId: string, approvalId: string, status: MtwReuseReservationStatus, version: number, handoffUntil: string, createdAt: string, updatedAt: string, createdBy: string, updatedBy?: string | null };
747
+
748
+ export type ReuseContainersQueryVariables = Exact<{
749
+ pagination: MtwContainerPagination;
750
+ }>;
751
+
752
+
753
+ export type ReuseContainersQuery = { __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, ownerName?: string | null }> } };
754
+
755
+ export type ReuseCyclesQueryVariables = Exact<{
756
+ containerId: Scalars['ID']['input'];
757
+ pagination: MtwContainerPagination;
758
+ }>;
759
+
760
+
761
+ export type ReuseCyclesQuery = { __typename?: 'Query', mtwContainerCyclePage: { __typename?: 'MtwContainerCyclePage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwContainerCycle', id: string, containerId: string, status: MtwContainerCycleStatus, bookingReference?: string | null, openedAt: string, version: number, updatedAt: string }> } };
762
+
763
+ export type ReuseEventsQueryVariables = Exact<{
764
+ cycleId: Scalars['ID']['input'];
765
+ pagination: MtwContainerPagination;
766
+ }>;
767
+
768
+
769
+ export type ReuseEventsQuery = { __typename?: 'Query', mtwContainerEventPage: { __typename?: 'MtwContainerEventPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwContainerEvent', id: string, eventType: MtwContainerEventType, kind: MtwContainerEventKind, occurredAt: string, receivedAt: string, source: string, sourceReference?: string | null, location?: string | null }> } };
770
+
771
+ export type ReuseInspectionsQueryVariables = Exact<{
772
+ containerId: Scalars['ID']['input'];
773
+ pagination: MtwContainerPagination;
774
+ }>;
775
+
776
+
777
+ export type ReuseInspectionsQuery = { __typename?: 'Query', mtwContainerInspectionPage: { __typename?: 'MtwContainerInspectionPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwContainerInspection', id: string, containerId: string, inspectedAt: string, cargoCategory: MtwContainerCargoCategory, suitability: MtwContainerSuitability, nextExaminationAt?: string | null, examinationScheme: MtwContainerExaminationScheme, inspectorActorId: string, severeDefectCount: number, cscPlateVersionId?: string | null, examinationVersionId?: string | null }> } };
778
+
779
+ export type ReuseQualificationsQueryVariables = Exact<{
780
+ pagination: MtwContainerPagination;
781
+ }>;
782
+
783
+
784
+ export type ReuseQualificationsQuery = { __typename?: 'Query', mtwContainerQualificationPage: { __typename?: 'MtwInspectorQualificationPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwInspectorQualification', id: string, subjectActorId: string, issuerName: string, credentialReference: string, status: MtwContainerQualificationStatus, version: number, validFrom: string, validUntil: string, scopes: Array<MtwContainerQualificationScope> }> } };
785
+
786
+ export type ReuseRouteQueryVariables = Exact<{
787
+ id: Scalars['ID']['input'];
788
+ }>;
789
+
790
+
791
+ export type ReuseRouteQuery = { __typename?: 'Query', route?: { __typename?: 'MtwRoute', id: string, name: string, updatedAt: string, waypoints: unknown, status: RouteStatus } | null };
792
+
793
+ export type ReturnInstructionsQueryVariables = Exact<{
794
+ cycleId: Scalars['ID']['input'];
795
+ pagination: MtwContainerPagination;
796
+ }>;
797
+
798
+
799
+ export type ReturnInstructionsQuery = { __typename?: 'Query', mtwEmptyReturnInstructionPage: { __typename?: 'MtwEmptyReturnInstructionPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwEmptyReturnInstruction', id: string, cycleId: string, version: number, ownerReference: string, bookingReference: string, depotReference: string, locationReference: string, returnFrom: string, returnUntil: string, effectiveAt: string, sourceReference: string, changeReason: string, supersedesInstructionId?: string | null, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> }> } };
800
+
801
+ export type ReuseProposalsQueryVariables = Exact<{
802
+ cycleId: Scalars['ID']['input'];
803
+ pagination: MtwContainerPagination;
804
+ }>;
805
+
806
+
807
+ export type ReuseProposalsQuery = { __typename?: 'Query', mtwReuseProposalPage: { __typename?: 'MtwReuseProposalPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwReuseProposal', id: string, cycleId: string, containerId: string, instructionId: string, proposalReference: string, revision: number, emptyEventId: string, inspectionId: string, transportRouteId: string, transportRouteUpdatedAt: string, exportBookingReference: string, exporterReference: string, handoffLocationReference: string, handoffFrom: string, handoffUntil: string, requiredEquipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, assessment: { __typename?: 'MtwReuseProposalAssessment', schemaVersion: number, scopeFingerprint: string, conditionQualificationId?: string | null, conditionQualificationVersion?: number | null, sources: { __typename?: 'MtwReuseSources', booking?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, roadAccess?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, conditionSuitability?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, retainedReturnPlan?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null }, timing?: { __typename?: 'MtwReuseTiming', departureAt: string, maxTravelSeconds: number, maxWaitSeconds: number, siteOpenAt: string, siteCloseAt: string, maxFullReuseAndReturnSeconds: number, siteWaitingLocationReference?: string | null, returnWaitingLocationReference?: string | null, plannedReturnFrom: string, plannedReturnUntil: string } | null, routeBinding?: { __typename?: 'MtwReuseRouteBinding', handoffWaypointIndex: number, returnWaypointIndex: number, handoffWaypointFingerprint: string, returnWaypointFingerprint: string, routeWaypointsFingerprint: string, handoffLocationReference: string, returnLocationReference: string } | null } }> } };
808
+
809
+ export type ReuseApprovalsQueryVariables = Exact<{
810
+ proposalId: Scalars['ID']['input'];
811
+ pagination: MtwContainerPagination;
812
+ }>;
813
+
814
+
815
+ export type ReuseApprovalsQuery = { __typename?: 'Query', mtwEquipmentReuseApprovalPage: { __typename?: 'MtwEquipmentReuseApprovalPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwEquipmentReuseApproval', id: string, proposalId: string, kind: MtwReuseApprovalKind, approvalId?: string | null, counterpartyReference: string, sourceReference: string, validFrom?: string | null, validUntil?: string | null, note: string, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> }> } };
816
+
817
+ export type ReuseEligibilityQueryVariables = Exact<{
818
+ proposalId: Scalars['ID']['input'];
819
+ approvalId?: InputMaybe<Scalars['ID']['input']>;
820
+ }>;
821
+
822
+
823
+ export type ReuseEligibilityQuery = { __typename?: 'Query', mtwReuseEligibility: { __typename?: 'MtwReuseEligibility', proposalId: string, approvalId?: string | null, evaluatedAt: string, status: MtwReuseReadinessStatus, blockers: Array<{ __typename?: 'MtwReuseBlocker', code: string, certainty: MtwReuseBlockerCertainty, reason: string }> } };
824
+
825
+ export type ReuseReservationsQueryVariables = Exact<{
826
+ cycleId: Scalars['ID']['input'];
827
+ pagination: MtwContainerPagination;
828
+ }>;
829
+
830
+
831
+ export type ReuseReservationsQuery = { __typename?: 'Query', mtwReuseReservationPage: { __typename?: 'MtwReuseReservationPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwReuseReservation', id: string, containerId: string, cycleId: string, proposalId: string, approvalId: string, status: MtwReuseReservationStatus, version: number, handoffUntil: string, createdAt: string, updatedAt: string, createdBy: string, updatedBy?: string | null }> } };
832
+
833
+ export type RecordReturnInstructionMutationVariables = Exact<{
834
+ input: RecordMtwEmptyReturnInstructionInput;
835
+ }>;
836
+
837
+
838
+ export type RecordReturnInstructionMutation = { __typename?: 'Mutation', recordMtwEmptyReturnInstruction: { __typename?: 'MtwEmptyReturnInstruction', id: string, cycleId: string, version: number, ownerReference: string, bookingReference: string, depotReference: string, locationReference: string, returnFrom: string, returnUntil: string, effectiveAt: string, sourceReference: string, changeReason: string, supersedesInstructionId?: string | null, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
839
+
840
+ export type RecordReuseProposalMutationVariables = Exact<{
841
+ input: RecordMtwReuseProposalInput;
842
+ }>;
843
+
844
+
845
+ export type RecordReuseProposalMutation = { __typename?: 'Mutation', recordMtwReuseProposal: { __typename?: 'MtwReuseProposal', id: string, cycleId: string, containerId: string, instructionId: string, proposalReference: string, revision: number, emptyEventId: string, inspectionId: string, transportRouteId: string, transportRouteUpdatedAt: string, exportBookingReference: string, exporterReference: string, handoffLocationReference: string, handoffFrom: string, handoffUntil: string, requiredEquipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, assessment: { __typename?: 'MtwReuseProposalAssessment', schemaVersion: number, scopeFingerprint: string, conditionQualificationId?: string | null, conditionQualificationVersion?: number | null, sources: { __typename?: 'MtwReuseSources', booking?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, roadAccess?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, conditionSuitability?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null, retainedReturnPlan?: { __typename?: 'MtwReuseSourceAttestation', purpose: MtwReuseSourcePurpose, sourceReference: string, sourceRevision: string, observedAt: string, recordedAt: string, validFrom: string, validUntil: string, recordedByActorId: string, scopeFingerprint: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } | null }, timing?: { __typename?: 'MtwReuseTiming', departureAt: string, maxTravelSeconds: number, maxWaitSeconds: number, siteOpenAt: string, siteCloseAt: string, maxFullReuseAndReturnSeconds: number, siteWaitingLocationReference?: string | null, returnWaitingLocationReference?: string | null, plannedReturnFrom: string, plannedReturnUntil: string } | null, routeBinding?: { __typename?: 'MtwReuseRouteBinding', handoffWaypointIndex: number, returnWaypointIndex: number, handoffWaypointFingerprint: string, returnWaypointFingerprint: string, routeWaypointsFingerprint: string, handoffLocationReference: string, returnLocationReference: string } | null } } };
846
+
847
+ export type RecordReuseApprovalMutationVariables = Exact<{
848
+ input: RecordMtwEquipmentReuseApprovalInput;
849
+ }>;
850
+
851
+
852
+ export type RecordReuseApprovalMutation = { __typename?: 'Mutation', recordMtwEquipmentReuseApproval: { __typename?: 'MtwEquipmentReuseApproval', id: string, proposalId: string, kind: MtwReuseApprovalKind, approvalId?: string | null, counterpartyReference: string, sourceReference: string, validFrom?: string | null, validUntil?: string | null, note: string, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
853
+
854
+ export type AcceptReuseReservationMutationVariables = Exact<{
855
+ input: AcceptMtwReuseReservationInput;
856
+ }>;
857
+
858
+
859
+ export type AcceptReuseReservationMutation = { __typename?: 'Mutation', acceptMtwReuseReservation: { __typename?: 'MtwReuseReservation', id: string, containerId: string, cycleId: string, proposalId: string, approvalId: string, status: MtwReuseReservationStatus, version: number, handoffUntil: string, createdAt: string, updatedAt: string, createdBy: string, updatedBy?: string | null } };
860
+
861
+ export type TerminateReuseReservationMutationVariables = Exact<{
862
+ input: TerminateMtwReuseReservationInput;
863
+ }>;
864
+
865
+
866
+ export type TerminateReuseReservationMutation = { __typename?: 'Mutation', terminateMtwReuseReservation: { __typename?: 'MtwReuseReservation', id: string, containerId: string, cycleId: string, proposalId: string, approvalId: string, status: MtwReuseReservationStatus, version: number, handoffUntil: string, createdAt: string, updatedAt: string, createdBy: string, updatedBy?: string | null } };
867
+
868
+ export type ReuseReservationTransitionsQueryVariables = Exact<{
869
+ reservationId: Scalars['ID']['input'];
870
+ pagination?: InputMaybe<MtwContainerPagination>;
871
+ }>;
872
+
873
+
874
+ export type ReuseReservationTransitionsQuery = { __typename?: 'Query', mtwReuseReservationTransitionPage: { __typename?: 'MtwReuseReservationTransitionPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwReuseReservationTransition', id: string, reservationId: string, previousStatus: MtwReuseReservationStatus, status: MtwReuseReservationStatus, reason: string, recordedAt: string, createdBy: string }> } };
875
+
876
+ export type BoundReturnInstructionQueryVariables = Exact<{
877
+ id: Scalars['ID']['input'];
878
+ }>;
879
+
880
+
881
+ export type BoundReturnInstructionQuery = { __typename?: 'Query', mtwEmptyReturnInstruction: { __typename?: 'MtwEmptyReturnInstruction', id: string, cycleId: string, version: number, ownerReference: string, bookingReference: string, depotReference: string, locationReference: string, returnFrom: string, returnUntil: string, effectiveAt: string, sourceReference: string, changeReason: string, supersedesInstructionId?: string | null, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
882
+
883
+ export const ReuseEvidenceFragmentDoc = gql`
884
+ fragment ReuseEvidence on MtwContainerEvidence {
885
+ fileId
886
+ versionId
887
+ sha256Hash
888
+ checkedAt
889
+ }
890
+ `;
891
+ export const ReturnInstructionFieldsFragmentDoc = gql`
892
+ fragment ReturnInstructionFields on MtwEmptyReturnInstruction {
893
+ id
894
+ cycleId
895
+ version
896
+ ownerReference
897
+ bookingReference
898
+ depotReference
899
+ locationReference
900
+ returnFrom
901
+ returnUntil
902
+ effectiveAt
903
+ sourceReference
904
+ changeReason
905
+ supersedesInstructionId
906
+ recordedAt
907
+ createdBy
908
+ evidence {
909
+ ...ReuseEvidence
910
+ }
911
+ }
912
+ ${ReuseEvidenceFragmentDoc}`;
913
+ export const ReuseSourceFieldsFragmentDoc = gql`
914
+ fragment ReuseSourceFields on MtwReuseSourceAttestation {
915
+ purpose
916
+ sourceReference
917
+ sourceRevision
918
+ observedAt
919
+ recordedAt
920
+ validFrom
921
+ validUntil
922
+ recordedByActorId
923
+ scopeFingerprint
924
+ evidence {
925
+ ...ReuseEvidence
926
+ }
927
+ }
928
+ ${ReuseEvidenceFragmentDoc}`;
929
+ export const ReuseProposalFieldsFragmentDoc = gql`
930
+ fragment ReuseProposalFields on MtwReuseProposal {
931
+ id
932
+ cycleId
933
+ containerId
934
+ instructionId
935
+ proposalReference
936
+ revision
937
+ emptyEventId
938
+ inspectionId
939
+ transportRouteId
940
+ transportRouteUpdatedAt
941
+ exportBookingReference
942
+ exporterReference
943
+ handoffLocationReference
944
+ handoffFrom
945
+ handoffUntil
946
+ requiredEquipmentType
947
+ cargoCategory
948
+ recordedAt
949
+ createdBy
950
+ evidence {
951
+ ...ReuseEvidence
952
+ }
953
+ assessment {
954
+ schemaVersion
955
+ scopeFingerprint
956
+ conditionQualificationId
957
+ conditionQualificationVersion
958
+ sources {
959
+ booking {
960
+ ...ReuseSourceFields
961
+ }
962
+ roadAccess {
963
+ ...ReuseSourceFields
964
+ }
965
+ conditionSuitability {
966
+ ...ReuseSourceFields
967
+ }
968
+ retainedReturnPlan {
969
+ ...ReuseSourceFields
970
+ }
971
+ }
972
+ timing {
973
+ departureAt
974
+ maxTravelSeconds
975
+ maxWaitSeconds
976
+ siteOpenAt
977
+ siteCloseAt
978
+ maxFullReuseAndReturnSeconds
979
+ siteWaitingLocationReference
980
+ returnWaitingLocationReference
981
+ plannedReturnFrom
982
+ plannedReturnUntil
983
+ }
984
+ routeBinding {
985
+ handoffWaypointIndex
986
+ returnWaypointIndex
987
+ handoffWaypointFingerprint
988
+ returnWaypointFingerprint
989
+ routeWaypointsFingerprint
990
+ handoffLocationReference
991
+ returnLocationReference
992
+ }
993
+ }
994
+ }
995
+ ${ReuseEvidenceFragmentDoc}
996
+ ${ReuseSourceFieldsFragmentDoc}`;
997
+ export const ReuseApprovalFieldsFragmentDoc = gql`
998
+ fragment ReuseApprovalFields on MtwEquipmentReuseApproval {
999
+ id
1000
+ proposalId
1001
+ kind
1002
+ approvalId
1003
+ counterpartyReference
1004
+ sourceReference
1005
+ validFrom
1006
+ validUntil
1007
+ note
1008
+ recordedAt
1009
+ createdBy
1010
+ evidence {
1011
+ ...ReuseEvidence
1012
+ }
1013
+ }
1014
+ ${ReuseEvidenceFragmentDoc}`;
1015
+ export const ReuseReservationFieldsFragmentDoc = gql`
1016
+ fragment ReuseReservationFields on MtwReuseReservation {
1017
+ id
1018
+ containerId
1019
+ cycleId
1020
+ proposalId
1021
+ approvalId
1022
+ status
1023
+ version
1024
+ handoffUntil
1025
+ createdAt
1026
+ updatedAt
1027
+ createdBy
1028
+ updatedBy
1029
+ }
1030
+ `;
1031
+ export const ReuseContainersDocument = gql`
1032
+ query ReuseContainers($pagination: MtwContainerPagination!) {
1033
+ mtwContainerPage(pagination: $pagination) {
1034
+ items {
1035
+ id
1036
+ containerNumber
1037
+ equipmentType
1038
+ ownerName
1039
+ }
1040
+ total
1041
+ limit
1042
+ offset
1043
+ hasMore
1044
+ nextOffset
1045
+ }
1046
+ }
1047
+ `;
1048
+ export const ReuseCyclesDocument = gql`
1049
+ query ReuseCycles($containerId: ID!, $pagination: MtwContainerPagination!) {
1050
+ mtwContainerCyclePage(containerId: $containerId, pagination: $pagination) {
1051
+ items {
1052
+ id
1053
+ containerId
1054
+ status
1055
+ bookingReference
1056
+ openedAt
1057
+ version
1058
+ updatedAt
1059
+ }
1060
+ total
1061
+ limit
1062
+ offset
1063
+ hasMore
1064
+ nextOffset
1065
+ }
1066
+ }
1067
+ `;
1068
+ export const ReuseEventsDocument = gql`
1069
+ query ReuseEvents($cycleId: ID!, $pagination: MtwContainerPagination!) {
1070
+ mtwContainerEventPage(cycleId: $cycleId, pagination: $pagination) {
1071
+ items {
1072
+ id
1073
+ eventType
1074
+ kind
1075
+ occurredAt
1076
+ receivedAt
1077
+ source
1078
+ sourceReference
1079
+ location
1080
+ }
1081
+ total
1082
+ limit
1083
+ offset
1084
+ hasMore
1085
+ nextOffset
1086
+ }
1087
+ }
1088
+ `;
1089
+ export const ReuseInspectionsDocument = gql`
1090
+ query ReuseInspections($containerId: ID!, $pagination: MtwContainerPagination!) {
1091
+ mtwContainerInspectionPage(containerId: $containerId, pagination: $pagination) {
1092
+ items {
1093
+ id
1094
+ containerId
1095
+ inspectedAt
1096
+ cargoCategory
1097
+ suitability
1098
+ nextExaminationAt
1099
+ examinationScheme
1100
+ inspectorActorId
1101
+ severeDefectCount
1102
+ cscPlateVersionId
1103
+ examinationVersionId
1104
+ }
1105
+ total
1106
+ limit
1107
+ offset
1108
+ hasMore
1109
+ nextOffset
1110
+ }
1111
+ }
1112
+ `;
1113
+ export const ReuseQualificationsDocument = gql`
1114
+ query ReuseQualifications($pagination: MtwContainerPagination!) {
1115
+ mtwContainerQualificationPage(pagination: $pagination) {
1116
+ items {
1117
+ id
1118
+ subjectActorId
1119
+ issuerName
1120
+ credentialReference
1121
+ status
1122
+ version
1123
+ validFrom
1124
+ validUntil
1125
+ scopes
1126
+ }
1127
+ total
1128
+ limit
1129
+ offset
1130
+ hasMore
1131
+ nextOffset
1132
+ }
1133
+ }
1134
+ `;
1135
+ export const ReuseRouteDocument = gql`
1136
+ query ReuseRoute($id: ID!) {
1137
+ route(id: $id) {
1138
+ id
1139
+ name
1140
+ updatedAt
1141
+ waypoints
1142
+ status
1143
+ }
1144
+ }
1145
+ `;
1146
+ export const ReturnInstructionsDocument = gql`
1147
+ query ReturnInstructions($cycleId: ID!, $pagination: MtwContainerPagination!) {
1148
+ mtwEmptyReturnInstructionPage(cycleId: $cycleId, pagination: $pagination) {
1149
+ items {
1150
+ id
1151
+ cycleId
1152
+ version
1153
+ ownerReference
1154
+ bookingReference
1155
+ depotReference
1156
+ locationReference
1157
+ returnFrom
1158
+ returnUntil
1159
+ effectiveAt
1160
+ sourceReference
1161
+ changeReason
1162
+ supersedesInstructionId
1163
+ recordedAt
1164
+ createdBy
1165
+ evidence {
1166
+ fileId
1167
+ versionId
1168
+ sha256Hash
1169
+ checkedAt
1170
+ }
1171
+ }
1172
+ total
1173
+ limit
1174
+ offset
1175
+ hasMore
1176
+ nextOffset
1177
+ }
1178
+ }
1179
+ `;
1180
+ export const ReuseProposalsDocument = gql`
1181
+ query ReuseProposals($cycleId: ID!, $pagination: MtwContainerPagination!) {
1182
+ mtwReuseProposalPage(cycleId: $cycleId, pagination: $pagination) {
1183
+ items {
1184
+ id
1185
+ cycleId
1186
+ containerId
1187
+ instructionId
1188
+ proposalReference
1189
+ revision
1190
+ emptyEventId
1191
+ inspectionId
1192
+ transportRouteId
1193
+ transportRouteUpdatedAt
1194
+ exportBookingReference
1195
+ exporterReference
1196
+ handoffLocationReference
1197
+ handoffFrom
1198
+ handoffUntil
1199
+ requiredEquipmentType
1200
+ cargoCategory
1201
+ recordedAt
1202
+ createdBy
1203
+ evidence {
1204
+ fileId
1205
+ versionId
1206
+ sha256Hash
1207
+ checkedAt
1208
+ }
1209
+ assessment {
1210
+ schemaVersion
1211
+ scopeFingerprint
1212
+ conditionQualificationId
1213
+ conditionQualificationVersion
1214
+ sources {
1215
+ booking {
1216
+ purpose
1217
+ sourceReference
1218
+ sourceRevision
1219
+ observedAt
1220
+ recordedAt
1221
+ validFrom
1222
+ validUntil
1223
+ recordedByActorId
1224
+ scopeFingerprint
1225
+ evidence {
1226
+ fileId
1227
+ versionId
1228
+ sha256Hash
1229
+ checkedAt
1230
+ }
1231
+ }
1232
+ roadAccess {
1233
+ purpose
1234
+ sourceReference
1235
+ sourceRevision
1236
+ observedAt
1237
+ recordedAt
1238
+ validFrom
1239
+ validUntil
1240
+ recordedByActorId
1241
+ scopeFingerprint
1242
+ evidence {
1243
+ fileId
1244
+ versionId
1245
+ sha256Hash
1246
+ checkedAt
1247
+ }
1248
+ }
1249
+ conditionSuitability {
1250
+ purpose
1251
+ sourceReference
1252
+ sourceRevision
1253
+ observedAt
1254
+ recordedAt
1255
+ validFrom
1256
+ validUntil
1257
+ recordedByActorId
1258
+ scopeFingerprint
1259
+ evidence {
1260
+ fileId
1261
+ versionId
1262
+ sha256Hash
1263
+ checkedAt
1264
+ }
1265
+ }
1266
+ retainedReturnPlan {
1267
+ purpose
1268
+ sourceReference
1269
+ sourceRevision
1270
+ observedAt
1271
+ recordedAt
1272
+ validFrom
1273
+ validUntil
1274
+ recordedByActorId
1275
+ scopeFingerprint
1276
+ evidence {
1277
+ fileId
1278
+ versionId
1279
+ sha256Hash
1280
+ checkedAt
1281
+ }
1282
+ }
1283
+ }
1284
+ timing {
1285
+ departureAt
1286
+ maxTravelSeconds
1287
+ maxWaitSeconds
1288
+ siteOpenAt
1289
+ siteCloseAt
1290
+ maxFullReuseAndReturnSeconds
1291
+ siteWaitingLocationReference
1292
+ returnWaitingLocationReference
1293
+ plannedReturnFrom
1294
+ plannedReturnUntil
1295
+ }
1296
+ routeBinding {
1297
+ handoffWaypointIndex
1298
+ returnWaypointIndex
1299
+ handoffWaypointFingerprint
1300
+ returnWaypointFingerprint
1301
+ routeWaypointsFingerprint
1302
+ handoffLocationReference
1303
+ returnLocationReference
1304
+ }
1305
+ }
1306
+ }
1307
+ total
1308
+ limit
1309
+ offset
1310
+ hasMore
1311
+ nextOffset
1312
+ }
1313
+ }
1314
+ `;
1315
+ export const ReuseApprovalsDocument = gql`
1316
+ query ReuseApprovals($proposalId: ID!, $pagination: MtwContainerPagination!) {
1317
+ mtwEquipmentReuseApprovalPage(proposalId: $proposalId, pagination: $pagination) {
1318
+ items {
1319
+ id
1320
+ proposalId
1321
+ kind
1322
+ approvalId
1323
+ counterpartyReference
1324
+ sourceReference
1325
+ validFrom
1326
+ validUntil
1327
+ note
1328
+ recordedAt
1329
+ createdBy
1330
+ evidence {
1331
+ fileId
1332
+ versionId
1333
+ sha256Hash
1334
+ checkedAt
1335
+ }
1336
+ }
1337
+ total
1338
+ limit
1339
+ offset
1340
+ hasMore
1341
+ nextOffset
1342
+ }
1343
+ }
1344
+ `;
1345
+ export const ReuseEligibilityDocument = gql`
1346
+ query ReuseEligibility($proposalId: ID!, $approvalId: ID) {
1347
+ mtwReuseEligibility(proposalId: $proposalId, approvalId: $approvalId) {
1348
+ proposalId
1349
+ approvalId
1350
+ evaluatedAt
1351
+ status
1352
+ blockers {
1353
+ code
1354
+ certainty
1355
+ reason
1356
+ }
1357
+ }
1358
+ }
1359
+ `;
1360
+ export const ReuseReservationsDocument = gql`
1361
+ query ReuseReservations($cycleId: ID!, $pagination: MtwContainerPagination!) {
1362
+ mtwReuseReservationPage(cycleId: $cycleId, pagination: $pagination) {
1363
+ items {
1364
+ id
1365
+ containerId
1366
+ cycleId
1367
+ proposalId
1368
+ approvalId
1369
+ status
1370
+ version
1371
+ handoffUntil
1372
+ createdAt
1373
+ updatedAt
1374
+ createdBy
1375
+ updatedBy
1376
+ }
1377
+ total
1378
+ limit
1379
+ offset
1380
+ hasMore
1381
+ nextOffset
1382
+ }
1383
+ }
1384
+ `;
1385
+ export const RecordReturnInstructionDocument = gql`
1386
+ mutation RecordReturnInstruction($input: RecordMtwEmptyReturnInstructionInput!) {
1387
+ recordMtwEmptyReturnInstruction(input: $input) {
1388
+ id
1389
+ cycleId
1390
+ version
1391
+ ownerReference
1392
+ bookingReference
1393
+ depotReference
1394
+ locationReference
1395
+ returnFrom
1396
+ returnUntil
1397
+ effectiveAt
1398
+ sourceReference
1399
+ changeReason
1400
+ supersedesInstructionId
1401
+ recordedAt
1402
+ createdBy
1403
+ evidence {
1404
+ fileId
1405
+ versionId
1406
+ sha256Hash
1407
+ checkedAt
1408
+ }
1409
+ }
1410
+ }
1411
+ `;
1412
+ export const RecordReuseProposalDocument = gql`
1413
+ mutation RecordReuseProposal($input: RecordMtwReuseProposalInput!) {
1414
+ recordMtwReuseProposal(input: $input) {
1415
+ id
1416
+ cycleId
1417
+ containerId
1418
+ instructionId
1419
+ proposalReference
1420
+ revision
1421
+ emptyEventId
1422
+ inspectionId
1423
+ transportRouteId
1424
+ transportRouteUpdatedAt
1425
+ exportBookingReference
1426
+ exporterReference
1427
+ handoffLocationReference
1428
+ handoffFrom
1429
+ handoffUntil
1430
+ requiredEquipmentType
1431
+ cargoCategory
1432
+ recordedAt
1433
+ createdBy
1434
+ evidence {
1435
+ fileId
1436
+ versionId
1437
+ sha256Hash
1438
+ checkedAt
1439
+ }
1440
+ assessment {
1441
+ schemaVersion
1442
+ scopeFingerprint
1443
+ conditionQualificationId
1444
+ conditionQualificationVersion
1445
+ sources {
1446
+ booking {
1447
+ purpose
1448
+ sourceReference
1449
+ sourceRevision
1450
+ observedAt
1451
+ recordedAt
1452
+ validFrom
1453
+ validUntil
1454
+ recordedByActorId
1455
+ scopeFingerprint
1456
+ evidence {
1457
+ fileId
1458
+ versionId
1459
+ sha256Hash
1460
+ checkedAt
1461
+ }
1462
+ }
1463
+ roadAccess {
1464
+ purpose
1465
+ sourceReference
1466
+ sourceRevision
1467
+ observedAt
1468
+ recordedAt
1469
+ validFrom
1470
+ validUntil
1471
+ recordedByActorId
1472
+ scopeFingerprint
1473
+ evidence {
1474
+ fileId
1475
+ versionId
1476
+ sha256Hash
1477
+ checkedAt
1478
+ }
1479
+ }
1480
+ conditionSuitability {
1481
+ purpose
1482
+ sourceReference
1483
+ sourceRevision
1484
+ observedAt
1485
+ recordedAt
1486
+ validFrom
1487
+ validUntil
1488
+ recordedByActorId
1489
+ scopeFingerprint
1490
+ evidence {
1491
+ fileId
1492
+ versionId
1493
+ sha256Hash
1494
+ checkedAt
1495
+ }
1496
+ }
1497
+ retainedReturnPlan {
1498
+ purpose
1499
+ sourceReference
1500
+ sourceRevision
1501
+ observedAt
1502
+ recordedAt
1503
+ validFrom
1504
+ validUntil
1505
+ recordedByActorId
1506
+ scopeFingerprint
1507
+ evidence {
1508
+ fileId
1509
+ versionId
1510
+ sha256Hash
1511
+ checkedAt
1512
+ }
1513
+ }
1514
+ }
1515
+ timing {
1516
+ departureAt
1517
+ maxTravelSeconds
1518
+ maxWaitSeconds
1519
+ siteOpenAt
1520
+ siteCloseAt
1521
+ maxFullReuseAndReturnSeconds
1522
+ siteWaitingLocationReference
1523
+ returnWaitingLocationReference
1524
+ plannedReturnFrom
1525
+ plannedReturnUntil
1526
+ }
1527
+ routeBinding {
1528
+ handoffWaypointIndex
1529
+ returnWaypointIndex
1530
+ handoffWaypointFingerprint
1531
+ returnWaypointFingerprint
1532
+ routeWaypointsFingerprint
1533
+ handoffLocationReference
1534
+ returnLocationReference
1535
+ }
1536
+ }
1537
+ }
1538
+ }
1539
+ `;
1540
+ export const RecordReuseApprovalDocument = gql`
1541
+ mutation RecordReuseApproval($input: RecordMtwEquipmentReuseApprovalInput!) {
1542
+ recordMtwEquipmentReuseApproval(input: $input) {
1543
+ id
1544
+ proposalId
1545
+ kind
1546
+ approvalId
1547
+ counterpartyReference
1548
+ sourceReference
1549
+ validFrom
1550
+ validUntil
1551
+ note
1552
+ recordedAt
1553
+ createdBy
1554
+ evidence {
1555
+ fileId
1556
+ versionId
1557
+ sha256Hash
1558
+ checkedAt
1559
+ }
1560
+ }
1561
+ }
1562
+ `;
1563
+ export const AcceptReuseReservationDocument = gql`
1564
+ mutation AcceptReuseReservation($input: AcceptMtwReuseReservationInput!) {
1565
+ acceptMtwReuseReservation(input: $input) {
1566
+ id
1567
+ containerId
1568
+ cycleId
1569
+ proposalId
1570
+ approvalId
1571
+ status
1572
+ version
1573
+ handoffUntil
1574
+ createdAt
1575
+ updatedAt
1576
+ createdBy
1577
+ updatedBy
1578
+ }
1579
+ }
1580
+ `;
1581
+ export const TerminateReuseReservationDocument = gql`
1582
+ mutation TerminateReuseReservation($input: TerminateMtwReuseReservationInput!) {
1583
+ terminateMtwReuseReservation(input: $input) {
1584
+ id
1585
+ containerId
1586
+ cycleId
1587
+ proposalId
1588
+ approvalId
1589
+ status
1590
+ version
1591
+ handoffUntil
1592
+ createdAt
1593
+ updatedAt
1594
+ createdBy
1595
+ updatedBy
1596
+ }
1597
+ }
1598
+ `;
1599
+ export const ReuseReservationTransitionsDocument = gql`
1600
+ query ReuseReservationTransitions($reservationId: ID!, $pagination: MtwContainerPagination) {
1601
+ mtwReuseReservationTransitionPage(
1602
+ reservationId: $reservationId
1603
+ pagination: $pagination
1604
+ ) {
1605
+ items {
1606
+ id
1607
+ reservationId
1608
+ previousStatus
1609
+ status
1610
+ reason
1611
+ recordedAt
1612
+ createdBy
1613
+ }
1614
+ total
1615
+ limit
1616
+ offset
1617
+ hasMore
1618
+ nextOffset
1619
+ }
1620
+ }
1621
+ `;
1622
+ export const BoundReturnInstructionDocument = gql`
1623
+ query BoundReturnInstruction($id: ID!) {
1624
+ mtwEmptyReturnInstruction(id: $id) {
1625
+ id
1626
+ cycleId
1627
+ version
1628
+ ownerReference
1629
+ bookingReference
1630
+ depotReference
1631
+ locationReference
1632
+ returnFrom
1633
+ returnUntil
1634
+ effectiveAt
1635
+ sourceReference
1636
+ changeReason
1637
+ supersedesInstructionId
1638
+ recordedAt
1639
+ createdBy
1640
+ evidence {
1641
+ fileId
1642
+ versionId
1643
+ sha256Hash
1644
+ checkedAt
1645
+ }
1646
+ }
1647
+ }
1648
+ `;