@burdenoff/microfe-movethewheels 2026.930.4 → 2026.1010.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/dist/MoveTheWheelsRoot.js +177 -102
  2. package/dist/MoveTheWheelsRoutes.js +55 -11
  3. package/dist/_virtual/_rolldown/runtime.js +1 -1
  4. package/dist/components/ContainerEvidencePicker.js +143 -0
  5. package/dist/components/FreeTimeAgreementForm.js +496 -0
  6. package/dist/components/ReturnInstructionForm.js +108 -0
  7. package/dist/components/ReuseControls.js +91 -0
  8. package/dist/components/ReusePermissionForm.js +114 -0
  9. package/dist/components/ReuseProposalForm.js +455 -0
  10. package/dist/components/ReuseSourceFields.js +78 -0
  11. package/dist/components/consolidation/ConsolidationHistory.js +244 -0
  12. package/dist/components/consolidation/ConsolidationLotEditor.js +133 -0
  13. package/dist/components/consolidation/ConsolidationManifestWorkbench.js +143 -0
  14. package/dist/components/consolidation/ConsolidationPlanForm.js +172 -0
  15. package/dist/components/consolidation/ConsolidationPlanWorkbench.js +321 -0
  16. package/dist/components/consolidation/ConsolidationReportForm.js +94 -0
  17. package/dist/components/consolidation/ConsolidationReportsWorkbench.js +195 -0
  18. package/dist/components/consolidation/ConsolidationSummary.js +76 -0
  19. package/dist/components/consolidation/OriginalConsolidationHistory.js +112 -0
  20. package/dist/components/freight-cost/FreightDraftForm.js +213 -0
  21. package/dist/components/freight-cost/FreightFields.js +70 -0
  22. package/dist/components/freight-cost/FreightFxEditor.js +90 -0
  23. package/dist/components/freight-cost/FreightHistory.js +164 -0
  24. package/dist/components/freight-cost/FreightLineEditor.js +191 -0
  25. package/dist/components/freight-cost/FreightScopeEditor.js +72 -0
  26. package/dist/components/freight-cost/FreightTotals.js +66 -0
  27. package/dist/components/logistics-procedure/ProcedureDecisionForm.js +197 -0
  28. package/dist/components/logistics-procedure/ProcedureFields.js +31 -0
  29. package/dist/components/logistics-procedure/ProcedureHistory.js +177 -0
  30. package/dist/components/logistics-procedure/ProcedurePolicyForm.js +227 -0
  31. package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +155 -0
  32. package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +221 -0
  33. package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +190 -0
  34. package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +130 -0
  35. package/dist/components/pending-pick/PendingPickDraft.js +84 -0
  36. package/dist/components/pending-pick/PendingPickHistory.js +113 -0
  37. package/dist/components/pending-pick/PickCapture.js +166 -0
  38. package/dist/components/pending-pick/PickLineSelection.js +111 -0
  39. package/dist/components/stock-binding/StockAssessmentDraft.js +48 -0
  40. package/dist/components/stock-binding/StockAssessmentHistory.js +61 -0
  41. package/dist/components/stock-binding/StockAssessmentSummary.js +199 -0
  42. package/dist/components/stock-binding/StockFactForm.js +232 -0
  43. package/dist/components/stock-observation/StockIssueForm.js +148 -0
  44. package/dist/components/stock-observation/StockIssueHistory.js +116 -0
  45. package/dist/components/stock-observation/StockIssueReadPanel.js +70 -0
  46. package/dist/components/trip-utilization/TripReportForm.js +118 -0
  47. package/dist/components/trip-utilization/TripReportHistory.js +54 -0
  48. package/dist/components/trip-utilization/TripReportSummary.js +216 -0
  49. package/dist/components/trip-utilization/TripSegmentFields.js +166 -0
  50. package/dist/generated/consolidation-operations.d.ts +1060 -0
  51. package/dist/generated/container-condition-operations.d.ts +868 -0
  52. package/dist/generated/container-operations.d.ts +356 -0
  53. package/dist/generated/empty-reuse-operations.d.ts +1578 -0
  54. package/dist/generated/free-time-operations.d.ts +938 -0
  55. package/dist/generated/freight-cost-operations.d.ts +716 -0
  56. package/dist/generated/logistics-procedure-operations.d.ts +938 -0
  57. package/dist/generated/pending-pick-operations.d.ts +1969 -0
  58. package/dist/generated/stock-binding-operations.d.ts +930 -0
  59. package/dist/generated/stock-observation-operations.d.ts +476 -0
  60. package/dist/generated/trip-utilization-operations.d.ts +651 -0
  61. package/dist/generated/wspace-operations.d.ts +143 -50
  62. package/dist/hooks/useConsolidationAction.js +119 -0
  63. package/dist/hooks/useContainerCondition.js +105 -0
  64. package/dist/hooks/useContainerLifecycle.js +192 -0
  65. package/dist/hooks/useEmptyReuseAction.js +45 -0
  66. package/dist/hooks/useFreightRecoveryAction.js +117 -0
  67. package/dist/hooks/useInventory.js +12 -1
  68. package/dist/hooks/useProcedureAction.js +119 -0
  69. package/dist/hooks/useProcedureSelection.js +53 -0
  70. package/dist/hooks/useReuseRecoveryAction.js +116 -0
  71. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +10 -0
  72. package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +14 -0
  73. package/dist/movethewheels/components/ReturnInstructionForm.d.ts +8 -0
  74. package/dist/movethewheels/components/ReuseControls.d.ts +42 -0
  75. package/dist/movethewheels/components/ReusePermissionForm.d.ts +9 -0
  76. package/dist/movethewheels/components/ReuseProposalForm.d.ts +11 -0
  77. package/dist/movethewheels/components/ReuseSourceFields.d.ts +9 -0
  78. package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +13 -0
  79. package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +6 -0
  80. package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +8 -0
  81. package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +8 -0
  82. package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +5 -0
  83. package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +9 -0
  84. package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +7 -0
  85. package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +6 -0
  86. package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +8 -0
  87. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +8 -0
  88. package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +23 -0
  89. package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +6 -0
  90. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +5 -0
  91. package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +8 -0
  92. package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +6 -0
  93. package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +6 -0
  94. package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +20 -0
  95. package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +17 -0
  96. package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +7 -0
  97. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +10 -0
  98. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +5 -0
  99. package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +5 -0
  100. package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +6 -0
  101. package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +7 -0
  102. package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +16 -0
  103. package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +5 -0
  104. package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +6 -0
  105. package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +17 -0
  106. package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +13 -0
  107. package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +18 -0
  108. package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +9 -0
  109. package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +6 -0
  110. package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +7 -0
  111. package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +7 -0
  112. package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +5 -0
  113. package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +6 -0
  114. package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +14 -0
  115. package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +5 -0
  116. package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +9 -0
  117. package/dist/movethewheels/hooks/useConsolidationAction.d.ts +19 -0
  118. package/dist/movethewheels/hooks/useContainerCondition.d.ts +21 -0
  119. package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +40 -0
  120. package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +14 -0
  121. package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +23 -0
  122. package/dist/movethewheels/hooks/useProcedureAction.d.ts +18 -0
  123. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +51 -0
  124. package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +18 -0
  125. package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -0
  126. package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -0
  127. package/dist/movethewheels/pages/ContainersPage.d.ts +2 -0
  128. package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -0
  129. package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -0
  130. package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -0
  131. package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -0
  132. package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -0
  133. package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -0
  134. package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -0
  135. package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -0
  136. package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +12 -0
  137. package/dist/movethewheels/utils/consolidationInput.d.ts +15 -0
  138. package/dist/movethewheels/utils/consolidationLot.d.ts +3 -0
  139. package/dist/movethewheels/utils/consolidationPins.d.ts +20 -0
  140. package/dist/movethewheels/utils/consolidationRecovery.d.ts +5 -0
  141. package/dist/movethewheels/utils/consolidationReportHead.d.ts +5 -0
  142. package/dist/movethewheels/utils/freeTimeDate.d.ts +1 -0
  143. package/dist/movethewheels/utils/freightAcknowledgement.d.ts +2 -0
  144. package/dist/movethewheels/utils/freightDraft.d.ts +36 -0
  145. package/dist/movethewheels/utils/freightRecovery.d.ts +5 -0
  146. package/dist/movethewheels/utils/graphqlClient.d.ts +2 -1
  147. package/dist/movethewheels/utils/pendingPickDraft.d.ts +8 -0
  148. package/dist/movethewheels/utils/procedureInput.d.ts +18 -0
  149. package/dist/movethewheels/utils/procedureRecovery.d.ts +5 -0
  150. package/dist/movethewheels/utils/reuseAttempt.d.ts +7 -0
  151. package/dist/movethewheels/utils/reuseForm.d.ts +6 -0
  152. package/dist/movethewheels/utils/reuseRecovery.d.ts +26 -0
  153. package/dist/movethewheels/utils/stockBindingForm.d.ts +23 -0
  154. package/dist/movethewheels/utils/stockBindingLabels.d.ts +10 -0
  155. package/dist/movethewheels/utils/stockObservationForm.d.ts +5 -0
  156. package/dist/movethewheels/utils/tripDraftContext.d.ts +25 -0
  157. package/dist/movethewheels/utils/tripUtilizationForm.d.ts +6 -0
  158. package/dist/node_modules/@react-leaflet/core/lib/component.js +5 -5
  159. package/dist/node_modules/fast-equals/dist/es/index.js +87 -74
  160. package/dist/node_modules/leaflet/dist/leaflet-src.js +8 -5
  161. package/dist/node_modules/lodash/_Stack.js +2 -1
  162. package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +35 -0
  163. package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +22 -0
  164. package/dist/node_modules/react-leaflet/lib/MapContainer.js +3 -3
  165. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  166. package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
  167. package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
  168. package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
  169. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
  170. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +13 -13
  171. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
  172. package/dist/node_modules/recharts/es6/cartesian/Line.js +10 -10
  173. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
  174. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
  175. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
  176. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
  177. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
  178. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
  179. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
  180. package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
  181. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
  182. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
  183. package/dist/node_modules/recharts/es6/component/Label.js +14 -14
  184. package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
  185. package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
  186. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
  187. package/dist/node_modules/recharts/es6/component/Text.js +2 -2
  188. package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
  189. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
  190. package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
  191. package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
  192. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
  193. package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
  194. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
  195. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
  196. package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
  197. package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
  198. package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
  199. package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
  200. package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
  201. package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
  202. package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
  203. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
  204. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
  205. package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
  206. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
  207. package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
  208. package/dist/node_modules/recharts/es6/util/ReactUtils.js +2 -2
  209. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
  210. package/dist/node_modules/recharts/es6/util/types.js +1 -1
  211. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.development.js +2 -2
  212. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.production.min.js +2 -2
  213. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/index.js +2 -2
  214. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +97 -18
  215. package/dist/node_modules/zustand/esm/middleware.js +2 -2
  216. package/dist/pages/ConsolidationPage.js +76 -0
  217. package/dist/pages/ContainerConditionPage.js +972 -0
  218. package/dist/pages/ContainersPage.js +522 -0
  219. package/dist/pages/EmptyReusePage.js +777 -0
  220. package/dist/pages/FreeTimePage.js +657 -0
  221. package/dist/pages/FreightEstimatePage.js +284 -0
  222. package/dist/pages/InventoryPage.js +77 -73
  223. package/dist/pages/LogisticsProceduresPage.js +100 -0
  224. package/dist/pages/PendingPickPage.js +155 -0
  225. package/dist/pages/StockBindingPage.js +236 -0
  226. package/dist/pages/StockObservationsPage.js +168 -0
  227. package/dist/pages/TripUtilizationPage.js +227 -0
  228. package/dist/src/generated/consolidation-operations.js +505 -0
  229. package/dist/src/generated/container-condition-operations.js +208 -0
  230. package/dist/src/generated/container-operations.js +101 -0
  231. package/dist/src/generated/empty-reuse-operations.js +749 -0
  232. package/dist/src/generated/free-time-operations.js +235 -0
  233. package/dist/src/generated/freight-cost-operations.js +325 -0
  234. package/dist/src/generated/logistics-procedure-operations.js +362 -0
  235. package/dist/src/generated/pending-pick-operations.js +1128 -0
  236. package/dist/src/generated/stock-binding-operations.js +175 -0
  237. package/dist/src/generated/stock-observation-operations.js +93 -0
  238. package/dist/src/generated/trip-utilization-operations.js +140 -0
  239. package/dist/src/generated/wspace-operations.js +708 -0
  240. package/dist/utils/consolidationHistoryTarget.js +27 -0
  241. package/dist/utils/consolidationInput.js +21 -0
  242. package/dist/utils/consolidationLot.js +29 -0
  243. package/dist/utils/consolidationPins.js +13 -0
  244. package/dist/utils/consolidationRecovery.js +40 -0
  245. package/dist/utils/consolidationReportHead.js +18 -0
  246. package/dist/utils/freeTimeDate.js +26 -0
  247. package/dist/utils/freightAcknowledgement.js +8 -0
  248. package/dist/utils/freightDraft.js +125 -0
  249. package/dist/utils/freightRecovery.js +36 -0
  250. package/dist/utils/graphqlClient.js +28 -28
  251. package/dist/utils/pendingPickDraft.js +46 -0
  252. package/dist/utils/procedureInput.js +43 -0
  253. package/dist/utils/procedureRecovery.js +42 -0
  254. package/dist/utils/reuseAttempt.js +20 -0
  255. package/dist/utils/reuseForm.js +25 -0
  256. package/dist/utils/reuseRecovery.js +71 -0
  257. package/dist/utils/stockBindingForm.js +142 -0
  258. package/dist/utils/stockBindingLabels.js +23 -0
  259. package/dist/utils/stockObservationForm.js +55 -0
  260. package/dist/utils/tripDraftContext.js +19 -0
  261. package/dist/utils/tripUtilizationForm.js +60 -0
  262. package/package.json +19 -5
  263. package/src/generated/consolidation-operations.ts +1138 -0
  264. package/src/generated/container-condition-operations.ts +771 -0
  265. package/src/generated/container-operations.ts +376 -0
  266. package/src/generated/empty-reuse-operations.ts +1648 -0
  267. package/src/generated/free-time-operations.ts +814 -0
  268. package/src/generated/freight-cost-operations.ts +753 -0
  269. package/src/generated/logistics-procedure-operations.ts +1047 -0
  270. package/src/generated/pending-pick-operations.ts +1508 -0
  271. package/src/generated/stock-binding-operations.ts +631 -0
  272. package/src/generated/stock-observation-operations.ts +373 -0
  273. package/src/generated/trip-utilization-operations.ts +500 -0
  274. package/src/generated/wspace-operations.ts +116 -0
  275. package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
  276. package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
  277. package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
  278. package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
  279. package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
  280. package/src/movethewheels/components/ReuseControls.tsx +138 -0
  281. package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
  282. package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
  283. package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
  284. package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
  285. package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
  286. package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
  287. package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
  288. package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
  289. package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
  290. package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
  291. package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
  292. package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
  293. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
  294. package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
  295. package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
  296. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
  297. package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
  298. package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
  299. package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
  300. package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
  301. package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
  302. package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
  303. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
  304. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
  305. package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
  306. package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
  307. package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
  308. package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
  309. package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
  310. package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
  311. package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
  312. package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
  313. package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
  314. package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
  315. package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
  316. package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
  317. package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
  318. package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
  319. package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
  320. package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
  321. package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
  322. package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
  323. package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
  324. package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
  325. package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
  326. package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
  327. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
  328. package/src/movethewheels/hooks/useInventory.ts +2 -20
  329. package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
  330. package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
  331. package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
  332. package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
  333. package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
  334. package/src/movethewheels/pages/ContainersPage.tsx +490 -0
  335. package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
  336. package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
  337. package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
  338. package/src/movethewheels/pages/InventoryPage.tsx +16 -2
  339. package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
  340. package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
  341. package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
  342. package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
  343. package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
  344. package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
  345. package/src/movethewheels/utils/consolidationInput.ts +70 -0
  346. package/src/movethewheels/utils/consolidationLot.ts +24 -0
  347. package/src/movethewheels/utils/consolidationPins.ts +52 -0
  348. package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
  349. package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
  350. package/src/movethewheels/utils/freeTimeDate.ts +31 -0
  351. package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
  352. package/src/movethewheels/utils/freightDraft.ts +170 -0
  353. package/src/movethewheels/utils/freightRecovery.ts +79 -0
  354. package/src/movethewheels/utils/graphqlClient.ts +14 -5
  355. package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
  356. package/src/movethewheels/utils/procedureInput.ts +98 -0
  357. package/src/movethewheels/utils/procedureRecovery.ts +92 -0
  358. package/src/movethewheels/utils/reuseAttempt.ts +29 -0
  359. package/src/movethewheels/utils/reuseForm.ts +30 -0
  360. package/src/movethewheels/utils/reuseRecovery.ts +151 -0
  361. package/src/movethewheels/utils/stockBindingForm.ts +209 -0
  362. package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
  363. package/src/movethewheels/utils/stockObservationForm.ts +73 -0
  364. package/src/movethewheels/utils/tripDraftContext.ts +61 -0
  365. package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
  366. package/src/operations/condition/container-condition.graphql +41 -0
  367. package/src/operations/consolidation/consolidation.graphql +490 -0
  368. package/src/operations/container/container-lifecycle.graphql +80 -0
  369. package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
  370. package/src/operations/free-time/free-time.graphql +47 -0
  371. package/src/operations/freight-cost/freight.graphql +6 -0
  372. package/src/operations/logistics-procedure/procedure.graphql +15 -0
  373. package/src/operations/pending-pick/pending-pick.graphql +1122 -0
  374. package/src/operations/stock-binding/stock-binding.graphql +160 -0
  375. package/src/operations/stock-observation/stock-observation.graphql +20 -0
  376. package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
  377. package/src/operations/wspace/container-evidence.graphql +6 -0
@@ -0,0 +1,1047 @@
1
+ import { gql } from '@apollo/client';
2
+ export type Maybe<T> = T | null;
3
+ export type InputMaybe<T> = Maybe<T>;
4
+ export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
5
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
6
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
7
+ export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
8
+ export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
9
+ /** All built-in and custom scalars, mapped to their actual values */
10
+ export type Scalars = {
11
+ ID: { input: string; output: string; }
12
+ String: { input: string; output: string; }
13
+ Boolean: { input: boolean; output: boolean; }
14
+ Int: { input: number; output: number; }
15
+ Float: { input: number; output: number; }
16
+ DateTime: { input: string; output: string; }
17
+ };
18
+
19
+ export type MtwContainer = {
20
+ __typename?: 'MtwContainer';
21
+ containerNumber: Scalars['String']['output'];
22
+ createdAt: Scalars['DateTime']['output'];
23
+ equipmentType: MtwEquipmentType;
24
+ id: Scalars['ID']['output'];
25
+ ownerName?: Maybe<Scalars['String']['output']>;
26
+ source: Scalars['String']['output'];
27
+ suppliedContainerNumber: Scalars['String']['output'];
28
+ };
29
+
30
+ export type MtwContainerCargoCategory =
31
+ | 'DANGEROUS'
32
+ | 'DRY'
33
+ | 'FOOD_GRADE'
34
+ | 'PEST'
35
+ | 'REEFER';
36
+
37
+ export type MtwContainerCycle = {
38
+ __typename?: 'MtwContainerCycle';
39
+ bookingReference?: Maybe<Scalars['String']['output']>;
40
+ closedAt?: Maybe<Scalars['DateTime']['output']>;
41
+ containerId: Scalars['ID']['output'];
42
+ createdAt: Scalars['DateTime']['output'];
43
+ id: Scalars['ID']['output'];
44
+ openedAt: Scalars['DateTime']['output'];
45
+ shipmentId?: Maybe<Scalars['ID']['output']>;
46
+ status: MtwContainerCycleStatus;
47
+ updatedAt: Scalars['DateTime']['output'];
48
+ version: Scalars['Int']['output'];
49
+ };
50
+
51
+ export type MtwContainerCyclePage = {
52
+ __typename?: 'MtwContainerCyclePage';
53
+ hasMore: Scalars['Boolean']['output'];
54
+ items: Array<MtwContainerCycle>;
55
+ limit: Scalars['Int']['output'];
56
+ nextOffset?: Maybe<Scalars['Int']['output']>;
57
+ offset: Scalars['Int']['output'];
58
+ total: Scalars['Int']['output'];
59
+ };
60
+
61
+ export type MtwContainerCycleStatus =
62
+ | 'CLOSED'
63
+ | 'OPEN';
64
+
65
+ /** Bounded audit snapshot of at most 10 exact evidence versions. */
66
+ export type MtwContainerEvidence = {
67
+ __typename?: 'MtwContainerEvidence';
68
+ checkedAt: Scalars['DateTime']['output'];
69
+ fileId: Scalars['ID']['output'];
70
+ sha256Hash: Scalars['String']['output'];
71
+ versionId: Scalars['ID']['output'];
72
+ };
73
+
74
+ /** Exact shared Files version. The fingerprint establishes integrity, not issuer authenticity. */
75
+ export type MtwContainerEvidenceInput = {
76
+ fileId: Scalars['ID']['input'];
77
+ versionId: Scalars['ID']['input'];
78
+ };
79
+
80
+ export type MtwContainerPage = {
81
+ __typename?: 'MtwContainerPage';
82
+ hasMore: Scalars['Boolean']['output'];
83
+ items: Array<MtwContainer>;
84
+ limit: Scalars['Int']['output'];
85
+ nextOffset?: Maybe<Scalars['Int']['output']>;
86
+ offset: Scalars['Int']['output'];
87
+ total: Scalars['Int']['output'];
88
+ };
89
+
90
+ export type MtwContainerPagination = {
91
+ limit?: InputMaybe<Scalars['Int']['input']>;
92
+ offset?: InputMaybe<Scalars['Int']['input']>;
93
+ };
94
+
95
+ /** Physical equipment; LCL is a freight service, not an equipment type. */
96
+ export type MtwEquipmentType =
97
+ | 'DRY_20'
98
+ | 'DRY_40'
99
+ | 'FLAT_RACK'
100
+ | 'HIGH_CUBE_40'
101
+ | 'OPEN_TOP'
102
+ | 'OTHER'
103
+ | 'REEFER_20'
104
+ | 'REEFER_40'
105
+ | 'TANK';
106
+
107
+ export type MtwProcedureApplicability = {
108
+ __typename?: 'MtwProcedureApplicability';
109
+ enforcement: MtwProcedureRecordingBoundary;
110
+ evaluatedAt: Scalars['DateTime']['output'];
111
+ policies: Array<MtwProcedureApplicablePolicy>;
112
+ proposalId: Scalars['ID']['output'];
113
+ };
114
+
115
+ export type MtwProcedureApplicabilityStatus =
116
+ | 'APPLICABLE_RECORDED_POLICY'
117
+ | 'EXPIRED'
118
+ | 'WITHDRAWN';
119
+
120
+ export type MtwProcedureApplicablePolicy = {
121
+ __typename?: 'MtwProcedureApplicablePolicy';
122
+ status: MtwProcedureApplicabilityStatus;
123
+ version: MtwProcedureVersion;
124
+ };
125
+
126
+ export type MtwProcedureDeviation = {
127
+ __typename?: 'MtwProcedureDeviation';
128
+ authorityScope: MtwProcedureDeviationAuthority;
129
+ createdBy: Scalars['ID']['output'];
130
+ evidence: Array<MtwContainerEvidence>;
131
+ executionId: Scalars['ID']['output'];
132
+ id: Scalars['ID']['output'];
133
+ kind: MtwProcedureDeviationKind;
134
+ previousDeviationId?: Maybe<Scalars['ID']['output']>;
135
+ reason: Scalars['String']['output'];
136
+ recordedAt: Scalars['DateTime']['output'];
137
+ stepDecisionId: Scalars['ID']['output'];
138
+ validFrom?: Maybe<Scalars['DateTime']['output']>;
139
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
140
+ version: Scalars['Int']['output'];
141
+ workspaceId: Scalars['ID']['output'];
142
+ };
143
+
144
+ export type MtwProcedureDeviationAuthority =
145
+ | 'INTERNAL_REVIEW_NOTE_ONLY';
146
+
147
+ export type MtwProcedureDeviationKind =
148
+ | 'APPROVED'
149
+ | 'REJECTED'
150
+ | 'REVOKED';
151
+
152
+ export type MtwProcedureDeviationPage = {
153
+ __typename?: 'MtwProcedureDeviationPage';
154
+ hasMore: Scalars['Boolean']['output'];
155
+ items: Array<MtwProcedureDeviation>;
156
+ limit: Scalars['Int']['output'];
157
+ nextOffset?: Maybe<Scalars['Int']['output']>;
158
+ offset: Scalars['Int']['output'];
159
+ total: Scalars['Int']['output'];
160
+ };
161
+
162
+ export type MtwProcedureDeviationReviewKind =
163
+ | 'APPROVED'
164
+ | 'REJECTED';
165
+
166
+ export type MtwProcedureExecution = {
167
+ __typename?: 'MtwProcedureExecution';
168
+ createdBy: Scalars['ID']['output'];
169
+ enforcement: MtwProcedureRecordingBoundary;
170
+ executorActorId: Scalars['ID']['output'];
171
+ id: Scalars['ID']['output'];
172
+ procedureVersionId: Scalars['ID']['output'];
173
+ proposalId: Scalars['ID']['output'];
174
+ recordedAt: Scalars['DateTime']['output'];
175
+ subject: MtwProcedureSubject;
176
+ subjectFingerprint: Scalars['String']['output'];
177
+ workspaceId: Scalars['ID']['output'];
178
+ };
179
+
180
+ export type MtwProcedureExecutionPage = {
181
+ __typename?: 'MtwProcedureExecutionPage';
182
+ hasMore: Scalars['Boolean']['output'];
183
+ items: Array<MtwProcedureExecution>;
184
+ limit: Scalars['Int']['output'];
185
+ nextOffset?: Maybe<Scalars['Int']['output']>;
186
+ offset: Scalars['Int']['output'];
187
+ total: Scalars['Int']['output'];
188
+ };
189
+
190
+ /** Internal logistics checklist records. This checkpoint does not enforce reservation or certify physical/regulatory work. */
191
+ export type MtwProcedureRecordingBoundary =
192
+ | 'RECORDING_ONLY';
193
+
194
+ export type MtwProcedureScope = {
195
+ __typename?: 'MtwProcedureScope';
196
+ cargoCategory: MtwContainerCargoCategory;
197
+ declaredJurisdictions: Array<Scalars['String']['output']>;
198
+ declaredLaneReference: Scalars['String']['output'];
199
+ equipmentOwnerReference: Scalars['String']['output'];
200
+ equipmentType: MtwEquipmentType;
201
+ handoffLocationReference: Scalars['String']['output'];
202
+ schemaVersion: Scalars['Int']['output'];
203
+ sourceReference: Scalars['String']['output'];
204
+ sourceRevision: Scalars['String']['output'];
205
+ };
206
+
207
+ export type MtwProcedureScopeInput = {
208
+ cargoCategory: MtwContainerCargoCategory;
209
+ declaredJurisdictions: Array<Scalars['String']['input']>;
210
+ declaredLaneReference: Scalars['String']['input'];
211
+ equipmentOwnerReference: Scalars['String']['input'];
212
+ equipmentType: MtwEquipmentType;
213
+ handoffLocationReference: Scalars['String']['input'];
214
+ sourceReference: Scalars['String']['input'];
215
+ sourceRevision: Scalars['String']['input'];
216
+ };
217
+
218
+ export type MtwProcedureStep =
219
+ | 'BOOKING_ROAD_RETURN_REVIEW'
220
+ | 'CONDITION_HOLDS_REVIEW'
221
+ | 'RETURN_INSTRUCTION_REVIEW';
222
+
223
+ export type MtwProcedureStepDecision = {
224
+ __typename?: 'MtwProcedureStepDecision';
225
+ createdBy: Scalars['ID']['output'];
226
+ evidence: Array<MtwContainerEvidence>;
227
+ executionId: Scalars['ID']['output'];
228
+ id: Scalars['ID']['output'];
229
+ kind: MtwProcedureStepKind;
230
+ note: Scalars['String']['output'];
231
+ previousDecisionId?: Maybe<Scalars['ID']['output']>;
232
+ recordedAt: Scalars['DateTime']['output'];
233
+ step: MtwProcedureStep;
234
+ version: Scalars['Int']['output'];
235
+ workspaceId: Scalars['ID']['output'];
236
+ };
237
+
238
+ export type MtwProcedureStepKind =
239
+ | 'DONE'
240
+ | 'ISSUE';
241
+
242
+ export type MtwProcedureStepPage = {
243
+ __typename?: 'MtwProcedureStepPage';
244
+ hasMore: Scalars['Boolean']['output'];
245
+ items: Array<MtwProcedureStepDecision>;
246
+ limit: Scalars['Int']['output'];
247
+ nextOffset?: Maybe<Scalars['Int']['output']>;
248
+ offset: Scalars['Int']['output'];
249
+ total: Scalars['Int']['output'];
250
+ };
251
+
252
+ export type MtwProcedureSubject = {
253
+ __typename?: 'MtwProcedureSubject';
254
+ cargoCategory: MtwContainerCargoCategory;
255
+ containerId: Scalars['ID']['output'];
256
+ cycleId: Scalars['ID']['output'];
257
+ cycleVersion: Scalars['Int']['output'];
258
+ emptyEventId: Scalars['ID']['output'];
259
+ equipmentOwnerReference: Scalars['String']['output'];
260
+ equipmentType: MtwEquipmentType;
261
+ handoffFrom: Scalars['DateTime']['output'];
262
+ handoffLocationReference: Scalars['String']['output'];
263
+ handoffUntil: Scalars['DateTime']['output'];
264
+ inspectionId: Scalars['ID']['output'];
265
+ instructionId: Scalars['ID']['output'];
266
+ proposalId: Scalars['ID']['output'];
267
+ proposalRevision: Scalars['Int']['output'];
268
+ transportRouteId: Scalars['ID']['output'];
269
+ transportRouteUpdatedAt: Scalars['DateTime']['output'];
270
+ };
271
+
272
+ export type MtwProcedureVersion = {
273
+ __typename?: 'MtwProcedureVersion';
274
+ createdBy: Scalars['ID']['output'];
275
+ effectiveAt: Scalars['DateTime']['output'];
276
+ enforcement: MtwProcedureRecordingBoundary;
277
+ evidence: Array<MtwContainerEvidence>;
278
+ id: Scalars['ID']['output'];
279
+ kind: MtwProcedureVersionKind;
280
+ previousVersionId?: Maybe<Scalars['ID']['output']>;
281
+ reason: Scalars['String']['output'];
282
+ recordedAt: Scalars['DateTime']['output'];
283
+ requiredSteps: Array<MtwProcedureStep>;
284
+ scope: MtwProcedureScope;
285
+ templateReference: Scalars['String']['output'];
286
+ title: Scalars['String']['output'];
287
+ validUntil?: Maybe<Scalars['DateTime']['output']>;
288
+ version: Scalars['Int']['output'];
289
+ workspaceId: Scalars['ID']['output'];
290
+ };
291
+
292
+ export type MtwProcedureVersionKind =
293
+ | 'PUBLISHED'
294
+ | 'WITHDRAWN';
295
+
296
+ export type MtwProcedureVersionPage = {
297
+ __typename?: 'MtwProcedureVersionPage';
298
+ hasMore: Scalars['Boolean']['output'];
299
+ items: Array<MtwProcedureVersion>;
300
+ limit: Scalars['Int']['output'];
301
+ nextOffset?: Maybe<Scalars['Int']['output']>;
302
+ offset: Scalars['Int']['output'];
303
+ total: Scalars['Int']['output'];
304
+ };
305
+
306
+ /** Immutable planning revision. Recording it does not approve, reserve, dispatch or complete a street turn. */
307
+ export type MtwReuseProposal = {
308
+ __typename?: 'MtwReuseProposal';
309
+ assessment: MtwReuseProposalAssessment;
310
+ cargoCategory: MtwContainerCargoCategory;
311
+ containerId: Scalars['ID']['output'];
312
+ createdBy: Scalars['ID']['output'];
313
+ cycleId: Scalars['ID']['output'];
314
+ emptyEventId: Scalars['ID']['output'];
315
+ evidence: Array<MtwContainerEvidence>;
316
+ exportBookingReference: Scalars['String']['output'];
317
+ exporterReference: Scalars['String']['output'];
318
+ handoffFrom: Scalars['DateTime']['output'];
319
+ handoffLocationReference: Scalars['String']['output'];
320
+ handoffUntil: Scalars['DateTime']['output'];
321
+ id: Scalars['ID']['output'];
322
+ inspectionId: Scalars['ID']['output'];
323
+ instructionId: Scalars['ID']['output'];
324
+ proposalReference: Scalars['String']['output'];
325
+ recordedAt: Scalars['DateTime']['output'];
326
+ requiredEquipmentType: MtwEquipmentType;
327
+ revision: Scalars['Int']['output'];
328
+ transportRouteId: Scalars['ID']['output'];
329
+ transportRouteUpdatedAt: Scalars['DateTime']['output'];
330
+ };
331
+
332
+ export type MtwReuseProposalAssessment = {
333
+ __typename?: 'MtwReuseProposalAssessment';
334
+ conditionQualificationId?: Maybe<Scalars['ID']['output']>;
335
+ conditionQualificationVersion?: Maybe<Scalars['Int']['output']>;
336
+ routeBinding?: Maybe<MtwReuseRouteBinding>;
337
+ schemaVersion: Scalars['Int']['output'];
338
+ scopeFingerprint: Scalars['String']['output'];
339
+ sources: MtwReuseSources;
340
+ timing?: Maybe<MtwReuseTiming>;
341
+ };
342
+
343
+ export type MtwReuseProposalPage = {
344
+ __typename?: 'MtwReuseProposalPage';
345
+ hasMore: Scalars['Boolean']['output'];
346
+ items: Array<MtwReuseProposal>;
347
+ limit: Scalars['Int']['output'];
348
+ nextOffset?: Maybe<Scalars['Int']['output']>;
349
+ offset: Scalars['Int']['output'];
350
+ total: Scalars['Int']['output'];
351
+ };
352
+
353
+ export type MtwReuseRouteBinding = {
354
+ __typename?: 'MtwReuseRouteBinding';
355
+ handoffLocationReference: Scalars['String']['output'];
356
+ handoffWaypointFingerprint: Scalars['String']['output'];
357
+ handoffWaypointIndex: Scalars['Int']['output'];
358
+ returnLocationReference: Scalars['String']['output'];
359
+ returnWaypointFingerprint: Scalars['String']['output'];
360
+ returnWaypointIndex: Scalars['Int']['output'];
361
+ routeWaypointsFingerprint: Scalars['String']['output'];
362
+ };
363
+
364
+ export type MtwReuseSourceAttestation = {
365
+ __typename?: 'MtwReuseSourceAttestation';
366
+ evidence: Array<MtwContainerEvidence>;
367
+ observedAt: Scalars['DateTime']['output'];
368
+ purpose: MtwReuseSourcePurpose;
369
+ recordedAt: Scalars['DateTime']['output'];
370
+ recordedByActorId: Scalars['ID']['output'];
371
+ scopeFingerprint: Scalars['String']['output'];
372
+ sourceReference: Scalars['String']['output'];
373
+ sourceRevision: Scalars['String']['output'];
374
+ validFrom: Scalars['DateTime']['output'];
375
+ validUntil: Scalars['DateTime']['output'];
376
+ };
377
+
378
+ export type MtwReuseSourcePurpose =
379
+ | 'BOOKING'
380
+ | 'CONDITION_SUITABILITY'
381
+ | 'RETAINED_RETURN'
382
+ | 'ROAD_ACCESS';
383
+
384
+ export type MtwReuseSources = {
385
+ __typename?: 'MtwReuseSources';
386
+ booking?: Maybe<MtwReuseSourceAttestation>;
387
+ conditionSuitability?: Maybe<MtwReuseSourceAttestation>;
388
+ retainedReturnPlan?: Maybe<MtwReuseSourceAttestation>;
389
+ roadAccess?: Maybe<MtwReuseSourceAttestation>;
390
+ };
391
+
392
+ export type MtwReuseTiming = {
393
+ __typename?: 'MtwReuseTiming';
394
+ departureAt: Scalars['DateTime']['output'];
395
+ maxFullReuseAndReturnSeconds: Scalars['Int']['output'];
396
+ maxTravelSeconds: Scalars['Int']['output'];
397
+ maxWaitSeconds: Scalars['Int']['output'];
398
+ plannedReturnFrom: Scalars['DateTime']['output'];
399
+ plannedReturnUntil: Scalars['DateTime']['output'];
400
+ returnWaitingLocationReference?: Maybe<Scalars['String']['output']>;
401
+ siteCloseAt: Scalars['DateTime']['output'];
402
+ siteOpenAt: Scalars['DateTime']['output'];
403
+ siteWaitingLocationReference?: Maybe<Scalars['String']['output']>;
404
+ };
405
+
406
+ export type Mutation = {
407
+ __typename?: 'Mutation';
408
+ publishMtwProcedureVersion: MtwProcedureVersion;
409
+ recordMtwProcedureDeviation: MtwProcedureDeviation;
410
+ recordMtwProcedureStep: MtwProcedureStepDecision;
411
+ revokeMtwProcedureDeviation: MtwProcedureDeviation;
412
+ startMtwProcedureExecution: MtwProcedureExecution;
413
+ };
414
+
415
+
416
+ export type MutationPublishMtwProcedureVersionArgs = {
417
+ input: PublishMtwProcedureVersionInput;
418
+ };
419
+
420
+
421
+ export type MutationRecordMtwProcedureDeviationArgs = {
422
+ input: RecordMtwProcedureDeviationInput;
423
+ };
424
+
425
+
426
+ export type MutationRecordMtwProcedureStepArgs = {
427
+ input: RecordMtwProcedureStepInput;
428
+ };
429
+
430
+
431
+ export type MutationRevokeMtwProcedureDeviationArgs = {
432
+ input: RevokeMtwProcedureDeviationInput;
433
+ };
434
+
435
+
436
+ export type MutationStartMtwProcedureExecutionArgs = {
437
+ input: StartMtwProcedureExecutionInput;
438
+ };
439
+
440
+ export type PublishMtwProcedureVersionInput = {
441
+ effectiveAt: Scalars['DateTime']['input'];
442
+ evidence: Array<MtwContainerEvidenceInput>;
443
+ expectedPreviousId?: InputMaybe<Scalars['ID']['input']>;
444
+ expectedVersion: Scalars['Int']['input'];
445
+ idempotencyKey: Scalars['String']['input'];
446
+ kind: MtwProcedureVersionKind;
447
+ reason: Scalars['String']['input'];
448
+ scope: MtwProcedureScopeInput;
449
+ templateReference: Scalars['String']['input'];
450
+ title: Scalars['String']['input'];
451
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
452
+ };
453
+
454
+ export type Query = {
455
+ __typename?: 'Query';
456
+ mtwApplicableProcedures: MtwProcedureApplicability;
457
+ mtwContainerCyclePage: MtwContainerCyclePage;
458
+ mtwContainerPage: MtwContainerPage;
459
+ mtwProcedureDeviationPage: MtwProcedureDeviationPage;
460
+ mtwProcedureExecution: MtwProcedureExecution;
461
+ mtwProcedureExecutionPage: MtwProcedureExecutionPage;
462
+ mtwProcedureStepPage: MtwProcedureStepPage;
463
+ mtwProcedureVersion: MtwProcedureVersion;
464
+ mtwProcedureVersionPage: MtwProcedureVersionPage;
465
+ mtwReuseProposalPage: MtwReuseProposalPage;
466
+ };
467
+
468
+
469
+ export type QueryMtwApplicableProceduresArgs = {
470
+ proposalId: Scalars['ID']['input'];
471
+ };
472
+
473
+
474
+ export type QueryMtwContainerCyclePageArgs = {
475
+ containerId: Scalars['ID']['input'];
476
+ pagination?: InputMaybe<MtwContainerPagination>;
477
+ };
478
+
479
+
480
+ export type QueryMtwContainerPageArgs = {
481
+ pagination?: InputMaybe<MtwContainerPagination>;
482
+ search?: InputMaybe<Scalars['String']['input']>;
483
+ };
484
+
485
+
486
+ export type QueryMtwProcedureDeviationPageArgs = {
487
+ executionId: Scalars['ID']['input'];
488
+ pagination?: InputMaybe<MtwContainerPagination>;
489
+ };
490
+
491
+
492
+ export type QueryMtwProcedureExecutionArgs = {
493
+ id: Scalars['ID']['input'];
494
+ };
495
+
496
+
497
+ export type QueryMtwProcedureExecutionPageArgs = {
498
+ pagination?: InputMaybe<MtwContainerPagination>;
499
+ proposalId: Scalars['ID']['input'];
500
+ };
501
+
502
+
503
+ export type QueryMtwProcedureStepPageArgs = {
504
+ executionId: Scalars['ID']['input'];
505
+ pagination?: InputMaybe<MtwContainerPagination>;
506
+ };
507
+
508
+
509
+ export type QueryMtwProcedureVersionArgs = {
510
+ id: Scalars['ID']['input'];
511
+ };
512
+
513
+
514
+ export type QueryMtwProcedureVersionPageArgs = {
515
+ pagination?: InputMaybe<MtwContainerPagination>;
516
+ templateReference: Scalars['String']['input'];
517
+ };
518
+
519
+
520
+ export type QueryMtwReuseProposalPageArgs = {
521
+ cycleId: Scalars['ID']['input'];
522
+ pagination?: InputMaybe<MtwContainerPagination>;
523
+ };
524
+
525
+ export type RecordMtwProcedureDeviationInput = {
526
+ evidence: Array<MtwContainerEvidenceInput>;
527
+ executionId: Scalars['ID']['input'];
528
+ expectedPreviousId?: InputMaybe<Scalars['ID']['input']>;
529
+ expectedVersion: Scalars['Int']['input'];
530
+ idempotencyKey: Scalars['String']['input'];
531
+ kind: MtwProcedureDeviationReviewKind;
532
+ reason: Scalars['String']['input'];
533
+ stepDecisionId: Scalars['ID']['input'];
534
+ validFrom?: InputMaybe<Scalars['DateTime']['input']>;
535
+ validUntil?: InputMaybe<Scalars['DateTime']['input']>;
536
+ };
537
+
538
+ export type RecordMtwProcedureStepInput = {
539
+ evidence: Array<MtwContainerEvidenceInput>;
540
+ executionId: Scalars['ID']['input'];
541
+ expectedPreviousId?: InputMaybe<Scalars['ID']['input']>;
542
+ expectedVersion: Scalars['Int']['input'];
543
+ idempotencyKey: Scalars['String']['input'];
544
+ kind: MtwProcedureStepKind;
545
+ note: Scalars['String']['input'];
546
+ step: MtwProcedureStep;
547
+ };
548
+
549
+ export type RevokeMtwProcedureDeviationInput = {
550
+ executionId: Scalars['ID']['input'];
551
+ expectedPreviousId: Scalars['ID']['input'];
552
+ expectedVersion: Scalars['Int']['input'];
553
+ idempotencyKey: Scalars['String']['input'];
554
+ reason: Scalars['String']['input'];
555
+ stepDecisionId: Scalars['ID']['input'];
556
+ };
557
+
558
+ export type StartMtwProcedureExecutionInput = {
559
+ expectedCycleVersion: Scalars['Int']['input'];
560
+ expectedProposalRevision: Scalars['Int']['input'];
561
+ idempotencyKey: Scalars['String']['input'];
562
+ procedureVersionId: Scalars['ID']['input'];
563
+ proposalId: Scalars['ID']['input'];
564
+ };
565
+
566
+ export type ProcedureContainersQueryVariables = Exact<{
567
+ pagination?: InputMaybe<MtwContainerPagination>;
568
+ }>;
569
+
570
+
571
+ export type ProcedureContainersQuery = { __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 }> } };
572
+
573
+ export type ProcedureCyclesQueryVariables = Exact<{
574
+ containerId: Scalars['ID']['input'];
575
+ pagination?: InputMaybe<MtwContainerPagination>;
576
+ }>;
577
+
578
+
579
+ export type ProcedureCyclesQuery = { __typename?: 'Query', mtwContainerCyclePage: { __typename?: 'MtwContainerCyclePage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwContainerCycle', id: string, version: number, status: MtwContainerCycleStatus, bookingReference?: string | null, openedAt: string }> } };
580
+
581
+ export type ProcedureProposalsQueryVariables = Exact<{
582
+ cycleId: Scalars['ID']['input'];
583
+ pagination?: InputMaybe<MtwContainerPagination>;
584
+ }>;
585
+
586
+
587
+ export type ProcedureProposalsQuery = { __typename?: 'Query', mtwReuseProposalPage: { __typename?: 'MtwReuseProposalPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwReuseProposal', id: string, proposalReference: string, revision: number, exportBookingReference: string, exporterReference: string, handoffLocationReference: string, handoffFrom: string, handoffUntil: string, instructionId: string }> } };
588
+
589
+ export type ProcedurePolicyHistoryQueryVariables = Exact<{
590
+ reference: Scalars['String']['input'];
591
+ pagination?: InputMaybe<MtwContainerPagination>;
592
+ }>;
593
+
594
+
595
+ export type ProcedurePolicyHistoryQuery = { __typename?: 'Query', mtwProcedureVersionPage: { __typename?: 'MtwProcedureVersionPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwProcedureVersion', id: string, templateReference: string, version: number, previousVersionId?: string | null, kind: MtwProcedureVersionKind, title: string, effectiveAt: string, validUntil?: string | null, reason: string, recordedAt: string, createdBy: string, requiredSteps: Array<MtwProcedureStep>, enforcement: MtwProcedureRecordingBoundary, scope: { __typename?: 'MtwProcedureScope', schemaVersion: number, handoffLocationReference: string, equipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, equipmentOwnerReference: string, declaredLaneReference: string, declaredJurisdictions: Array<string>, sourceReference: string, sourceRevision: string }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> }> } };
596
+
597
+ export type ProcedurePolicyQueryVariables = Exact<{
598
+ id: Scalars['ID']['input'];
599
+ }>;
600
+
601
+
602
+ export type ProcedurePolicyQuery = { __typename?: 'Query', mtwProcedureVersion: { __typename?: 'MtwProcedureVersion', id: string, templateReference: string, version: number, previousVersionId?: string | null, kind: MtwProcedureVersionKind, title: string, effectiveAt: string, validUntil?: string | null, reason: string, recordedAt: string, createdBy: string, requiredSteps: Array<MtwProcedureStep>, enforcement: MtwProcedureRecordingBoundary, scope: { __typename?: 'MtwProcedureScope', schemaVersion: number, handoffLocationReference: string, equipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, equipmentOwnerReference: string, declaredLaneReference: string, declaredJurisdictions: Array<string>, sourceReference: string, sourceRevision: string }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } };
603
+
604
+ export type ProcedureApplicableQueryVariables = Exact<{
605
+ proposalId: Scalars['ID']['input'];
606
+ }>;
607
+
608
+
609
+ export type ProcedureApplicableQuery = { __typename?: 'Query', mtwApplicableProcedures: { __typename?: 'MtwProcedureApplicability', proposalId: string, evaluatedAt: string, enforcement: MtwProcedureRecordingBoundary, policies: Array<{ __typename?: 'MtwProcedureApplicablePolicy', status: MtwProcedureApplicabilityStatus, version: { __typename?: 'MtwProcedureVersion', id: string, templateReference: string, version: number, previousVersionId?: string | null, kind: MtwProcedureVersionKind, title: string, effectiveAt: string, validUntil?: string | null, reason: string, recordedAt: string, createdBy: string, requiredSteps: Array<MtwProcedureStep>, enforcement: MtwProcedureRecordingBoundary, scope: { __typename?: 'MtwProcedureScope', schemaVersion: number, handoffLocationReference: string, equipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, equipmentOwnerReference: string, declaredLaneReference: string, declaredJurisdictions: Array<string>, sourceReference: string, sourceRevision: string }, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> } }> } };
610
+
611
+ export type ProcedureRunsQueryVariables = Exact<{
612
+ proposalId: Scalars['ID']['input'];
613
+ pagination?: InputMaybe<MtwContainerPagination>;
614
+ }>;
615
+
616
+
617
+ export type ProcedureRunsQuery = { __typename?: 'Query', mtwProcedureExecutionPage: { __typename?: 'MtwProcedureExecutionPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwProcedureExecution', id: string, proposalId: string, procedureVersionId: string, subjectFingerprint: string, executorActorId: string, recordedAt: string, createdBy: string, enforcement: MtwProcedureRecordingBoundary, subject: { __typename?: 'MtwProcedureSubject', proposalId: string, proposalRevision: number, cycleVersion: number, cycleId: string, containerId: string, instructionId: string, emptyEventId: string, inspectionId: string, transportRouteId: string, transportRouteUpdatedAt: string, handoffLocationReference: string, handoffFrom: string, handoffUntil: string, equipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, equipmentOwnerReference: string } }> } };
618
+
619
+ export type ProcedureRunQueryVariables = Exact<{
620
+ id: Scalars['ID']['input'];
621
+ }>;
622
+
623
+
624
+ export type ProcedureRunQuery = { __typename?: 'Query', mtwProcedureExecution: { __typename?: 'MtwProcedureExecution', id: string, proposalId: string, procedureVersionId: string, subjectFingerprint: string, executorActorId: string, recordedAt: string, createdBy: string, enforcement: MtwProcedureRecordingBoundary, subject: { __typename?: 'MtwProcedureSubject', proposalId: string, proposalRevision: number, cycleVersion: number, cycleId: string, containerId: string, instructionId: string, emptyEventId: string, inspectionId: string, transportRouteId: string, transportRouteUpdatedAt: string, handoffLocationReference: string, handoffFrom: string, handoffUntil: string, equipmentType: MtwEquipmentType, cargoCategory: MtwContainerCargoCategory, equipmentOwnerReference: string } } };
625
+
626
+ export type ProcedureStepsQueryVariables = Exact<{
627
+ executionId: Scalars['ID']['input'];
628
+ pagination?: InputMaybe<MtwContainerPagination>;
629
+ }>;
630
+
631
+
632
+ export type ProcedureStepsQuery = { __typename?: 'Query', mtwProcedureStepPage: { __typename?: 'MtwProcedureStepPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwProcedureStepDecision', id: string, executionId: string, step: MtwProcedureStep, version: number, previousDecisionId?: string | null, kind: MtwProcedureStepKind, note: string, recordedAt: string, createdBy: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> }> } };
633
+
634
+ export type ProcedureDeviationsQueryVariables = Exact<{
635
+ executionId: Scalars['ID']['input'];
636
+ pagination?: InputMaybe<MtwContainerPagination>;
637
+ }>;
638
+
639
+
640
+ export type ProcedureDeviationsQuery = { __typename?: 'Query', mtwProcedureDeviationPage: { __typename?: 'MtwProcedureDeviationPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwProcedureDeviation', id: string, executionId: string, stepDecisionId: string, version: number, previousDeviationId?: string | null, kind: MtwProcedureDeviationKind, validFrom?: string | null, validUntil?: string | null, reason: string, recordedAt: string, createdBy: string, authorityScope: MtwProcedureDeviationAuthority, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }> }> } };
641
+
642
+ export type PublishProcedureMutationVariables = Exact<{
643
+ input: PublishMtwProcedureVersionInput;
644
+ }>;
645
+
646
+
647
+ export type PublishProcedureMutation = { __typename?: 'Mutation', publishMtwProcedureVersion: { __typename?: 'MtwProcedureVersion', id: string, templateReference: string, version: number, previousVersionId?: string | null, kind: MtwProcedureVersionKind } };
648
+
649
+ export type StartProcedureMutationVariables = Exact<{
650
+ input: StartMtwProcedureExecutionInput;
651
+ }>;
652
+
653
+
654
+ export type StartProcedureMutation = { __typename?: 'Mutation', startMtwProcedureExecution: { __typename?: 'MtwProcedureExecution', id: string, proposalId: string, procedureVersionId: string, executorActorId: string, subject: { __typename?: 'MtwProcedureSubject', cycleVersion: number, proposalRevision: number } } };
655
+
656
+ export type RecordProcedureStepMutationVariables = Exact<{
657
+ input: RecordMtwProcedureStepInput;
658
+ }>;
659
+
660
+
661
+ export type RecordProcedureStepMutation = { __typename?: 'Mutation', recordMtwProcedureStep: { __typename?: 'MtwProcedureStepDecision', id: string, executionId: string, step: MtwProcedureStep, version: number, previousDecisionId?: string | null, kind: MtwProcedureStepKind } };
662
+
663
+ export type RecordProcedureDeviationMutationVariables = Exact<{
664
+ input: RecordMtwProcedureDeviationInput;
665
+ }>;
666
+
667
+
668
+ export type RecordProcedureDeviationMutation = { __typename?: 'Mutation', recordMtwProcedureDeviation: { __typename?: 'MtwProcedureDeviation', id: string, executionId: string, stepDecisionId: string, version: number, previousDeviationId?: string | null, kind: MtwProcedureDeviationKind } };
669
+
670
+ export type RevokeProcedureDeviationMutationVariables = Exact<{
671
+ input: RevokeMtwProcedureDeviationInput;
672
+ }>;
673
+
674
+
675
+ export type RevokeProcedureDeviationMutation = { __typename?: 'Mutation', revokeMtwProcedureDeviation: { __typename?: 'MtwProcedureDeviation', id: string, executionId: string, stepDecisionId: string, version: number, previousDeviationId?: string | null, kind: MtwProcedureDeviationKind } };
676
+
677
+
678
+ export const ProcedureContainersDocument = gql`
679
+ query ProcedureContainers($pagination: MtwContainerPagination) {
680
+ mtwContainerPage(pagination: $pagination) {
681
+ items {
682
+ id
683
+ containerNumber
684
+ equipmentType
685
+ }
686
+ total
687
+ limit
688
+ offset
689
+ hasMore
690
+ nextOffset
691
+ }
692
+ }
693
+ `;
694
+ export const ProcedureCyclesDocument = gql`
695
+ query ProcedureCycles($containerId: ID!, $pagination: MtwContainerPagination) {
696
+ mtwContainerCyclePage(containerId: $containerId, pagination: $pagination) {
697
+ items {
698
+ id
699
+ version
700
+ status
701
+ bookingReference
702
+ openedAt
703
+ }
704
+ total
705
+ limit
706
+ offset
707
+ hasMore
708
+ nextOffset
709
+ }
710
+ }
711
+ `;
712
+ export const ProcedureProposalsDocument = gql`
713
+ query ProcedureProposals($cycleId: ID!, $pagination: MtwContainerPagination) {
714
+ mtwReuseProposalPage(cycleId: $cycleId, pagination: $pagination) {
715
+ items {
716
+ id
717
+ proposalReference
718
+ revision
719
+ exportBookingReference
720
+ exporterReference
721
+ handoffLocationReference
722
+ handoffFrom
723
+ handoffUntil
724
+ instructionId
725
+ }
726
+ total
727
+ limit
728
+ offset
729
+ hasMore
730
+ nextOffset
731
+ }
732
+ }
733
+ `;
734
+ export const ProcedurePolicyHistoryDocument = gql`
735
+ query ProcedurePolicyHistory($reference: String!, $pagination: MtwContainerPagination) {
736
+ mtwProcedureVersionPage(templateReference: $reference, pagination: $pagination) {
737
+ items {
738
+ id
739
+ templateReference
740
+ version
741
+ previousVersionId
742
+ kind
743
+ title
744
+ scope {
745
+ schemaVersion
746
+ handoffLocationReference
747
+ equipmentType
748
+ cargoCategory
749
+ equipmentOwnerReference
750
+ declaredLaneReference
751
+ declaredJurisdictions
752
+ sourceReference
753
+ sourceRevision
754
+ }
755
+ effectiveAt
756
+ validUntil
757
+ reason
758
+ evidence {
759
+ fileId
760
+ versionId
761
+ sha256Hash
762
+ checkedAt
763
+ }
764
+ recordedAt
765
+ createdBy
766
+ requiredSteps
767
+ enforcement
768
+ }
769
+ total
770
+ limit
771
+ offset
772
+ hasMore
773
+ nextOffset
774
+ }
775
+ }
776
+ `;
777
+ export const ProcedurePolicyDocument = gql`
778
+ query ProcedurePolicy($id: ID!) {
779
+ mtwProcedureVersion(id: $id) {
780
+ id
781
+ templateReference
782
+ version
783
+ previousVersionId
784
+ kind
785
+ title
786
+ scope {
787
+ schemaVersion
788
+ handoffLocationReference
789
+ equipmentType
790
+ cargoCategory
791
+ equipmentOwnerReference
792
+ declaredLaneReference
793
+ declaredJurisdictions
794
+ sourceReference
795
+ sourceRevision
796
+ }
797
+ effectiveAt
798
+ validUntil
799
+ reason
800
+ evidence {
801
+ fileId
802
+ versionId
803
+ sha256Hash
804
+ checkedAt
805
+ }
806
+ recordedAt
807
+ createdBy
808
+ requiredSteps
809
+ enforcement
810
+ }
811
+ }
812
+ `;
813
+ export const ProcedureApplicableDocument = gql`
814
+ query ProcedureApplicable($proposalId: ID!) {
815
+ mtwApplicableProcedures(proposalId: $proposalId) {
816
+ proposalId
817
+ evaluatedAt
818
+ enforcement
819
+ policies {
820
+ status
821
+ version {
822
+ id
823
+ templateReference
824
+ version
825
+ previousVersionId
826
+ kind
827
+ title
828
+ scope {
829
+ schemaVersion
830
+ handoffLocationReference
831
+ equipmentType
832
+ cargoCategory
833
+ equipmentOwnerReference
834
+ declaredLaneReference
835
+ declaredJurisdictions
836
+ sourceReference
837
+ sourceRevision
838
+ }
839
+ effectiveAt
840
+ validUntil
841
+ reason
842
+ evidence {
843
+ fileId
844
+ versionId
845
+ sha256Hash
846
+ checkedAt
847
+ }
848
+ recordedAt
849
+ createdBy
850
+ requiredSteps
851
+ enforcement
852
+ }
853
+ }
854
+ }
855
+ }
856
+ `;
857
+ export const ProcedureRunsDocument = gql`
858
+ query ProcedureRuns($proposalId: ID!, $pagination: MtwContainerPagination) {
859
+ mtwProcedureExecutionPage(proposalId: $proposalId, pagination: $pagination) {
860
+ items {
861
+ id
862
+ proposalId
863
+ procedureVersionId
864
+ subject {
865
+ proposalId
866
+ proposalRevision
867
+ cycleVersion
868
+ cycleId
869
+ containerId
870
+ instructionId
871
+ emptyEventId
872
+ inspectionId
873
+ transportRouteId
874
+ transportRouteUpdatedAt
875
+ handoffLocationReference
876
+ handoffFrom
877
+ handoffUntil
878
+ equipmentType
879
+ cargoCategory
880
+ equipmentOwnerReference
881
+ }
882
+ subjectFingerprint
883
+ executorActorId
884
+ recordedAt
885
+ createdBy
886
+ enforcement
887
+ }
888
+ total
889
+ limit
890
+ offset
891
+ hasMore
892
+ nextOffset
893
+ }
894
+ }
895
+ `;
896
+ export const ProcedureRunDocument = gql`
897
+ query ProcedureRun($id: ID!) {
898
+ mtwProcedureExecution(id: $id) {
899
+ id
900
+ proposalId
901
+ procedureVersionId
902
+ subject {
903
+ proposalId
904
+ proposalRevision
905
+ cycleVersion
906
+ cycleId
907
+ containerId
908
+ instructionId
909
+ emptyEventId
910
+ inspectionId
911
+ transportRouteId
912
+ transportRouteUpdatedAt
913
+ handoffLocationReference
914
+ handoffFrom
915
+ handoffUntil
916
+ equipmentType
917
+ cargoCategory
918
+ equipmentOwnerReference
919
+ }
920
+ subjectFingerprint
921
+ executorActorId
922
+ recordedAt
923
+ createdBy
924
+ enforcement
925
+ }
926
+ }
927
+ `;
928
+ export const ProcedureStepsDocument = gql`
929
+ query ProcedureSteps($executionId: ID!, $pagination: MtwContainerPagination) {
930
+ mtwProcedureStepPage(executionId: $executionId, pagination: $pagination) {
931
+ items {
932
+ id
933
+ executionId
934
+ step
935
+ version
936
+ previousDecisionId
937
+ kind
938
+ note
939
+ evidence {
940
+ fileId
941
+ versionId
942
+ sha256Hash
943
+ checkedAt
944
+ }
945
+ recordedAt
946
+ createdBy
947
+ }
948
+ total
949
+ limit
950
+ offset
951
+ hasMore
952
+ nextOffset
953
+ }
954
+ }
955
+ `;
956
+ export const ProcedureDeviationsDocument = gql`
957
+ query ProcedureDeviations($executionId: ID!, $pagination: MtwContainerPagination) {
958
+ mtwProcedureDeviationPage(executionId: $executionId, pagination: $pagination) {
959
+ items {
960
+ id
961
+ executionId
962
+ stepDecisionId
963
+ version
964
+ previousDeviationId
965
+ kind
966
+ validFrom
967
+ validUntil
968
+ reason
969
+ evidence {
970
+ fileId
971
+ versionId
972
+ sha256Hash
973
+ checkedAt
974
+ }
975
+ recordedAt
976
+ createdBy
977
+ authorityScope
978
+ }
979
+ total
980
+ limit
981
+ offset
982
+ hasMore
983
+ nextOffset
984
+ }
985
+ }
986
+ `;
987
+ export const PublishProcedureDocument = gql`
988
+ mutation PublishProcedure($input: PublishMtwProcedureVersionInput!) {
989
+ publishMtwProcedureVersion(input: $input) {
990
+ id
991
+ templateReference
992
+ version
993
+ previousVersionId
994
+ kind
995
+ }
996
+ }
997
+ `;
998
+ export const StartProcedureDocument = gql`
999
+ mutation StartProcedure($input: StartMtwProcedureExecutionInput!) {
1000
+ startMtwProcedureExecution(input: $input) {
1001
+ id
1002
+ proposalId
1003
+ procedureVersionId
1004
+ executorActorId
1005
+ subject {
1006
+ cycleVersion
1007
+ proposalRevision
1008
+ }
1009
+ }
1010
+ }
1011
+ `;
1012
+ export const RecordProcedureStepDocument = gql`
1013
+ mutation RecordProcedureStep($input: RecordMtwProcedureStepInput!) {
1014
+ recordMtwProcedureStep(input: $input) {
1015
+ id
1016
+ executionId
1017
+ step
1018
+ version
1019
+ previousDecisionId
1020
+ kind
1021
+ }
1022
+ }
1023
+ `;
1024
+ export const RecordProcedureDeviationDocument = gql`
1025
+ mutation RecordProcedureDeviation($input: RecordMtwProcedureDeviationInput!) {
1026
+ recordMtwProcedureDeviation(input: $input) {
1027
+ id
1028
+ executionId
1029
+ stepDecisionId
1030
+ version
1031
+ previousDeviationId
1032
+ kind
1033
+ }
1034
+ }
1035
+ `;
1036
+ export const RevokeProcedureDeviationDocument = gql`
1037
+ mutation RevokeProcedureDeviation($input: RevokeMtwProcedureDeviationInput!) {
1038
+ revokeMtwProcedureDeviation(input: $input) {
1039
+ id
1040
+ executionId
1041
+ stepDecisionId
1042
+ version
1043
+ previousDeviationId
1044
+ kind
1045
+ }
1046
+ }
1047
+ `;