@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.
- package/dist/MoveTheWheelsRoot.js +177 -102
- package/dist/MoveTheWheelsRoutes.js +55 -11
- package/dist/_virtual/_rolldown/runtime.js +1 -1
- package/dist/components/ContainerEvidencePicker.js +143 -0
- package/dist/components/FreeTimeAgreementForm.js +496 -0
- package/dist/components/ReturnInstructionForm.js +108 -0
- package/dist/components/ReuseControls.js +91 -0
- package/dist/components/ReusePermissionForm.js +114 -0
- package/dist/components/ReuseProposalForm.js +455 -0
- package/dist/components/ReuseSourceFields.js +78 -0
- package/dist/components/consolidation/ConsolidationHistory.js +244 -0
- package/dist/components/consolidation/ConsolidationLotEditor.js +133 -0
- package/dist/components/consolidation/ConsolidationManifestWorkbench.js +143 -0
- package/dist/components/consolidation/ConsolidationPlanForm.js +172 -0
- package/dist/components/consolidation/ConsolidationPlanWorkbench.js +321 -0
- package/dist/components/consolidation/ConsolidationReportForm.js +94 -0
- package/dist/components/consolidation/ConsolidationReportsWorkbench.js +195 -0
- package/dist/components/consolidation/ConsolidationSummary.js +76 -0
- package/dist/components/consolidation/OriginalConsolidationHistory.js +112 -0
- package/dist/components/freight-cost/FreightDraftForm.js +213 -0
- package/dist/components/freight-cost/FreightFields.js +70 -0
- package/dist/components/freight-cost/FreightFxEditor.js +90 -0
- package/dist/components/freight-cost/FreightHistory.js +164 -0
- package/dist/components/freight-cost/FreightLineEditor.js +191 -0
- package/dist/components/freight-cost/FreightScopeEditor.js +72 -0
- package/dist/components/freight-cost/FreightTotals.js +66 -0
- package/dist/components/logistics-procedure/ProcedureDecisionForm.js +197 -0
- package/dist/components/logistics-procedure/ProcedureFields.js +31 -0
- package/dist/components/logistics-procedure/ProcedureHistory.js +177 -0
- package/dist/components/logistics-procedure/ProcedurePolicyForm.js +227 -0
- package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +155 -0
- package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +221 -0
- package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +190 -0
- package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +130 -0
- package/dist/components/pending-pick/PendingPickDraft.js +84 -0
- package/dist/components/pending-pick/PendingPickHistory.js +113 -0
- package/dist/components/pending-pick/PickCapture.js +166 -0
- package/dist/components/pending-pick/PickLineSelection.js +111 -0
- package/dist/components/stock-binding/StockAssessmentDraft.js +48 -0
- package/dist/components/stock-binding/StockAssessmentHistory.js +61 -0
- package/dist/components/stock-binding/StockAssessmentSummary.js +199 -0
- package/dist/components/stock-binding/StockFactForm.js +232 -0
- package/dist/components/stock-observation/StockIssueForm.js +148 -0
- package/dist/components/stock-observation/StockIssueHistory.js +116 -0
- package/dist/components/stock-observation/StockIssueReadPanel.js +70 -0
- package/dist/components/trip-utilization/TripReportForm.js +118 -0
- package/dist/components/trip-utilization/TripReportHistory.js +54 -0
- package/dist/components/trip-utilization/TripReportSummary.js +216 -0
- package/dist/components/trip-utilization/TripSegmentFields.js +166 -0
- package/dist/generated/consolidation-operations.d.ts +1060 -0
- package/dist/generated/container-condition-operations.d.ts +868 -0
- package/dist/generated/container-operations.d.ts +356 -0
- package/dist/generated/empty-reuse-operations.d.ts +1578 -0
- package/dist/generated/free-time-operations.d.ts +938 -0
- package/dist/generated/freight-cost-operations.d.ts +716 -0
- package/dist/generated/logistics-procedure-operations.d.ts +938 -0
- package/dist/generated/pending-pick-operations.d.ts +1969 -0
- package/dist/generated/stock-binding-operations.d.ts +930 -0
- package/dist/generated/stock-observation-operations.d.ts +476 -0
- package/dist/generated/trip-utilization-operations.d.ts +651 -0
- package/dist/generated/wspace-operations.d.ts +143 -50
- package/dist/hooks/useConsolidationAction.js +119 -0
- package/dist/hooks/useContainerCondition.js +105 -0
- package/dist/hooks/useContainerLifecycle.js +192 -0
- package/dist/hooks/useEmptyReuseAction.js +45 -0
- package/dist/hooks/useFreightRecoveryAction.js +117 -0
- package/dist/hooks/useInventory.js +12 -1
- package/dist/hooks/useProcedureAction.js +119 -0
- package/dist/hooks/useProcedureSelection.js +53 -0
- package/dist/hooks/useReuseRecoveryAction.js +116 -0
- package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +10 -0
- package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +14 -0
- package/dist/movethewheels/components/ReturnInstructionForm.d.ts +8 -0
- package/dist/movethewheels/components/ReuseControls.d.ts +42 -0
- package/dist/movethewheels/components/ReusePermissionForm.d.ts +9 -0
- package/dist/movethewheels/components/ReuseProposalForm.d.ts +11 -0
- package/dist/movethewheels/components/ReuseSourceFields.d.ts +9 -0
- package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +13 -0
- package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +6 -0
- package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +8 -0
- package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +8 -0
- package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +9 -0
- package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +7 -0
- package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +6 -0
- package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +23 -0
- package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +6 -0
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +5 -0
- package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +6 -0
- package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +6 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +20 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +17 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +7 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +10 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +5 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +6 -0
- package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +7 -0
- package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +16 -0
- package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +5 -0
- package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +6 -0
- package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +17 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +13 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +18 -0
- package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +9 -0
- package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +6 -0
- package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +7 -0
- package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +7 -0
- package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +5 -0
- package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +6 -0
- package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +14 -0
- package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +5 -0
- package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +9 -0
- package/dist/movethewheels/hooks/useConsolidationAction.d.ts +19 -0
- package/dist/movethewheels/hooks/useContainerCondition.d.ts +21 -0
- package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +40 -0
- package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +14 -0
- package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +23 -0
- package/dist/movethewheels/hooks/useProcedureAction.d.ts +18 -0
- package/dist/movethewheels/hooks/useProcedureSelection.d.ts +51 -0
- package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +18 -0
- package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -0
- package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -0
- package/dist/movethewheels/pages/ContainersPage.d.ts +2 -0
- package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -0
- package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -0
- package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -0
- package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -0
- package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -0
- package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -0
- package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -0
- package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -0
- package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +12 -0
- package/dist/movethewheels/utils/consolidationInput.d.ts +15 -0
- package/dist/movethewheels/utils/consolidationLot.d.ts +3 -0
- package/dist/movethewheels/utils/consolidationPins.d.ts +20 -0
- package/dist/movethewheels/utils/consolidationRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/consolidationReportHead.d.ts +5 -0
- package/dist/movethewheels/utils/freeTimeDate.d.ts +1 -0
- package/dist/movethewheels/utils/freightAcknowledgement.d.ts +2 -0
- package/dist/movethewheels/utils/freightDraft.d.ts +36 -0
- package/dist/movethewheels/utils/freightRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/graphqlClient.d.ts +2 -1
- package/dist/movethewheels/utils/pendingPickDraft.d.ts +8 -0
- package/dist/movethewheels/utils/procedureInput.d.ts +18 -0
- package/dist/movethewheels/utils/procedureRecovery.d.ts +5 -0
- package/dist/movethewheels/utils/reuseAttempt.d.ts +7 -0
- package/dist/movethewheels/utils/reuseForm.d.ts +6 -0
- package/dist/movethewheels/utils/reuseRecovery.d.ts +26 -0
- package/dist/movethewheels/utils/stockBindingForm.d.ts +23 -0
- package/dist/movethewheels/utils/stockBindingLabels.d.ts +10 -0
- package/dist/movethewheels/utils/stockObservationForm.d.ts +5 -0
- package/dist/movethewheels/utils/tripDraftContext.d.ts +25 -0
- package/dist/movethewheels/utils/tripUtilizationForm.d.ts +6 -0
- package/dist/node_modules/@react-leaflet/core/lib/component.js +5 -5
- package/dist/node_modules/fast-equals/dist/es/index.js +87 -74
- package/dist/node_modules/leaflet/dist/leaflet-src.js +8 -5
- package/dist/node_modules/lodash/_Stack.js +2 -1
- package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +35 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +22 -0
- package/dist/node_modules/react-leaflet/lib/MapContainer.js +3 -3
- package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
- package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +13 -13
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/Line.js +10 -10
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
- package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
- package/dist/node_modules/recharts/es6/component/Label.js +14 -14
- package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
- package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
- package/dist/node_modules/recharts/es6/component/Text.js +2 -2
- package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
- package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
- package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
- package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
- package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
- package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
- package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +2 -2
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
- package/dist/node_modules/recharts/es6/util/types.js +1 -1
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.development.js +2 -2
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.production.min.js +2 -2
- package/dist/node_modules/{react-is → recharts/node_modules/react-is}/index.js +2 -2
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +97 -18
- package/dist/node_modules/zustand/esm/middleware.js +2 -2
- package/dist/pages/ConsolidationPage.js +76 -0
- package/dist/pages/ContainerConditionPage.js +972 -0
- package/dist/pages/ContainersPage.js +522 -0
- package/dist/pages/EmptyReusePage.js +777 -0
- package/dist/pages/FreeTimePage.js +657 -0
- package/dist/pages/FreightEstimatePage.js +284 -0
- package/dist/pages/InventoryPage.js +77 -73
- package/dist/pages/LogisticsProceduresPage.js +100 -0
- package/dist/pages/PendingPickPage.js +155 -0
- package/dist/pages/StockBindingPage.js +236 -0
- package/dist/pages/StockObservationsPage.js +168 -0
- package/dist/pages/TripUtilizationPage.js +227 -0
- package/dist/src/generated/consolidation-operations.js +505 -0
- package/dist/src/generated/container-condition-operations.js +208 -0
- package/dist/src/generated/container-operations.js +101 -0
- package/dist/src/generated/empty-reuse-operations.js +749 -0
- package/dist/src/generated/free-time-operations.js +235 -0
- package/dist/src/generated/freight-cost-operations.js +325 -0
- package/dist/src/generated/logistics-procedure-operations.js +362 -0
- package/dist/src/generated/pending-pick-operations.js +1128 -0
- package/dist/src/generated/stock-binding-operations.js +175 -0
- package/dist/src/generated/stock-observation-operations.js +93 -0
- package/dist/src/generated/trip-utilization-operations.js +140 -0
- package/dist/src/generated/wspace-operations.js +708 -0
- package/dist/utils/consolidationHistoryTarget.js +27 -0
- package/dist/utils/consolidationInput.js +21 -0
- package/dist/utils/consolidationLot.js +29 -0
- package/dist/utils/consolidationPins.js +13 -0
- package/dist/utils/consolidationRecovery.js +40 -0
- package/dist/utils/consolidationReportHead.js +18 -0
- package/dist/utils/freeTimeDate.js +26 -0
- package/dist/utils/freightAcknowledgement.js +8 -0
- package/dist/utils/freightDraft.js +125 -0
- package/dist/utils/freightRecovery.js +36 -0
- package/dist/utils/graphqlClient.js +28 -28
- package/dist/utils/pendingPickDraft.js +46 -0
- package/dist/utils/procedureInput.js +43 -0
- package/dist/utils/procedureRecovery.js +42 -0
- package/dist/utils/reuseAttempt.js +20 -0
- package/dist/utils/reuseForm.js +25 -0
- package/dist/utils/reuseRecovery.js +71 -0
- package/dist/utils/stockBindingForm.js +142 -0
- package/dist/utils/stockBindingLabels.js +23 -0
- package/dist/utils/stockObservationForm.js +55 -0
- package/dist/utils/tripDraftContext.js +19 -0
- package/dist/utils/tripUtilizationForm.js +60 -0
- package/package.json +19 -5
- package/src/generated/consolidation-operations.ts +1138 -0
- package/src/generated/container-condition-operations.ts +771 -0
- package/src/generated/container-operations.ts +376 -0
- package/src/generated/empty-reuse-operations.ts +1648 -0
- package/src/generated/free-time-operations.ts +814 -0
- package/src/generated/freight-cost-operations.ts +753 -0
- package/src/generated/logistics-procedure-operations.ts +1047 -0
- package/src/generated/pending-pick-operations.ts +1508 -0
- package/src/generated/stock-binding-operations.ts +631 -0
- package/src/generated/stock-observation-operations.ts +373 -0
- package/src/generated/trip-utilization-operations.ts +500 -0
- package/src/generated/wspace-operations.ts +116 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
- package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
- package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
- package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
- package/src/movethewheels/components/ReuseControls.tsx +138 -0
- package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
- package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
- package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
- package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
- package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
- package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
- package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
- package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
- package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
- package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
- package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
- package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
- package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
- package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
- package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
- package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
- package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
- package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
- package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
- package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
- package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
- package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
- package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
- package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
- package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
- package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
- package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
- package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
- package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
- package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
- package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
- package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
- package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
- package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
- package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
- package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
- package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
- package/src/movethewheels/hooks/useInventory.ts +2 -20
- package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
- package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
- package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
- package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
- package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
- package/src/movethewheels/pages/ContainersPage.tsx +490 -0
- package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
- package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
- package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
- package/src/movethewheels/pages/InventoryPage.tsx +16 -2
- package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
- package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
- package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
- package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
- package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
- package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
- package/src/movethewheels/utils/consolidationInput.ts +70 -0
- package/src/movethewheels/utils/consolidationLot.ts +24 -0
- package/src/movethewheels/utils/consolidationPins.ts +52 -0
- package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
- package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
- package/src/movethewheels/utils/freeTimeDate.ts +31 -0
- package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
- package/src/movethewheels/utils/freightDraft.ts +170 -0
- package/src/movethewheels/utils/freightRecovery.ts +79 -0
- package/src/movethewheels/utils/graphqlClient.ts +14 -5
- package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
- package/src/movethewheels/utils/procedureInput.ts +98 -0
- package/src/movethewheels/utils/procedureRecovery.ts +92 -0
- package/src/movethewheels/utils/reuseAttempt.ts +29 -0
- package/src/movethewheels/utils/reuseForm.ts +30 -0
- package/src/movethewheels/utils/reuseRecovery.ts +151 -0
- package/src/movethewheels/utils/stockBindingForm.ts +209 -0
- package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
- package/src/movethewheels/utils/stockObservationForm.ts +73 -0
- package/src/movethewheels/utils/tripDraftContext.ts +61 -0
- package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
- package/src/operations/condition/container-condition.graphql +41 -0
- package/src/operations/consolidation/consolidation.graphql +490 -0
- package/src/operations/container/container-lifecycle.graphql +80 -0
- package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
- package/src/operations/free-time/free-time.graphql +47 -0
- package/src/operations/freight-cost/freight.graphql +6 -0
- package/src/operations/logistics-procedure/procedure.graphql +15 -0
- package/src/operations/pending-pick/pending-pick.graphql +1122 -0
- package/src/operations/stock-binding/stock-binding.graphql +160 -0
- package/src/operations/stock-observation/stock-observation.graphql +20 -0
- package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
- package/src/operations/wspace/container-evidence.graphql +6 -0
|
@@ -0,0 +1,500 @@
|
|
|
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
|
+
/** Bounded audit snapshot of at most 10 exact evidence versions. */
|
|
20
|
+
export type MtwContainerEvidence = {
|
|
21
|
+
__typename?: 'MtwContainerEvidence';
|
|
22
|
+
checkedAt: Scalars['DateTime']['output'];
|
|
23
|
+
fileId: Scalars['ID']['output'];
|
|
24
|
+
sha256Hash: Scalars['String']['output'];
|
|
25
|
+
versionId: Scalars['ID']['output'];
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** Exact shared Files version. The fingerprint establishes integrity, not issuer authenticity. */
|
|
29
|
+
export type MtwContainerEvidenceInput = {
|
|
30
|
+
fileId: Scalars['ID']['input'];
|
|
31
|
+
versionId: Scalars['ID']['input'];
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type MtwContainerPagination = {
|
|
35
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
36
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type MtwRoute = {
|
|
40
|
+
__typename?: 'MtwRoute';
|
|
41
|
+
id: Scalars['ID']['output'];
|
|
42
|
+
name: Scalars['String']['output'];
|
|
43
|
+
status: RouteStatus;
|
|
44
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
45
|
+
vehicle?: Maybe<MtwVehicle>;
|
|
46
|
+
vehicleId?: Maybe<Scalars['ID']['output']>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type MtwTripUtilizationBasis =
|
|
50
|
+
| 'ESTIMATED'
|
|
51
|
+
| 'OBSERVED';
|
|
52
|
+
|
|
53
|
+
export type MtwTripUtilizationCoverage =
|
|
54
|
+
| 'COMPLETE'
|
|
55
|
+
| 'PARTIAL';
|
|
56
|
+
|
|
57
|
+
/** Immutable historical operator report of a captured route/vehicle revision; no assignment or dispatch change. */
|
|
58
|
+
export type MtwTripUtilizationReport = {
|
|
59
|
+
__typename?: 'MtwTripUtilizationReport';
|
|
60
|
+
actorProvenance: Scalars['String']['output'];
|
|
61
|
+
basis: MtwTripUtilizationBasis;
|
|
62
|
+
createdBy: Scalars['ID']['output'];
|
|
63
|
+
declaredCoverage: MtwTripUtilizationCoverage;
|
|
64
|
+
evidence: Array<MtwContainerEvidence>;
|
|
65
|
+
id: Scalars['ID']['output'];
|
|
66
|
+
intervalFrom: Scalars['DateTime']['output'];
|
|
67
|
+
intervalUntil: Scalars['DateTime']['output'];
|
|
68
|
+
recordedAt: Scalars['DateTime']['output'];
|
|
69
|
+
routeId: Scalars['ID']['output'];
|
|
70
|
+
routeUpdatedAt: Scalars['DateTime']['output'];
|
|
71
|
+
routeWaypointsFingerprint: Scalars['String']['output'];
|
|
72
|
+
schemaVersion: Scalars['Int']['output'];
|
|
73
|
+
summary: MtwTripUtilizationSummary;
|
|
74
|
+
tripId: Scalars['ID']['output'];
|
|
75
|
+
vehicleId: Scalars['ID']['output'];
|
|
76
|
+
vehicleUpdatedAt: Scalars['DateTime']['output'];
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type MtwTripUtilizationReportPage = {
|
|
80
|
+
__typename?: 'MtwTripUtilizationReportPage';
|
|
81
|
+
hasMore: Scalars['Boolean']['output'];
|
|
82
|
+
items: Array<MtwTripUtilizationReport>;
|
|
83
|
+
limit: Scalars['Int']['output'];
|
|
84
|
+
nextOffset?: Maybe<Scalars['Int']['output']>;
|
|
85
|
+
offset: Scalars['Int']['output'];
|
|
86
|
+
total: Scalars['Int']['output'];
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type MtwTripUtilizationSegment = {
|
|
90
|
+
__typename?: 'MtwTripUtilizationSegment';
|
|
91
|
+
basis: MtwTripUtilizationBasis;
|
|
92
|
+
cubeCapacityM3?: Maybe<Scalars['Float']['output']>;
|
|
93
|
+
cubeM3?: Maybe<Scalars['Float']['output']>;
|
|
94
|
+
cubeUtilizationPercentage?: Maybe<Scalars['Float']['output']>;
|
|
95
|
+
distanceKm?: Maybe<Scalars['Float']['output']>;
|
|
96
|
+
loadedState: MtwUtilizationLoadedState;
|
|
97
|
+
payloadCapacityKg?: Maybe<Scalars['Float']['output']>;
|
|
98
|
+
payloadKg?: Maybe<Scalars['Float']['output']>;
|
|
99
|
+
segmentId: Scalars['ID']['output'];
|
|
100
|
+
sequence: Scalars['Int']['output'];
|
|
101
|
+
source: MtwUtilizationSource;
|
|
102
|
+
warnings: Array<MtwUtilizationWarning>;
|
|
103
|
+
weightUtilizationPercentage?: Maybe<Scalars['Float']['output']>;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export type MtwTripUtilizationSegmentInput = {
|
|
107
|
+
cubeCapacityM3?: InputMaybe<Scalars['Float']['input']>;
|
|
108
|
+
cubeM3?: InputMaybe<Scalars['Float']['input']>;
|
|
109
|
+
distanceKm?: InputMaybe<Scalars['Float']['input']>;
|
|
110
|
+
loadedState: MtwUtilizationLoadedState;
|
|
111
|
+
payloadCapacityKg?: InputMaybe<Scalars['Float']['input']>;
|
|
112
|
+
payloadKg?: InputMaybe<Scalars['Float']['input']>;
|
|
113
|
+
segmentId: Scalars['ID']['input'];
|
|
114
|
+
sequence: Scalars['Int']['input'];
|
|
115
|
+
source: MtwUtilizationSourceInput;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/** COMPLETE is operator-declared coverage; these ratios are not feasibility, road, axle or fuel certificates. */
|
|
119
|
+
export type MtwTripUtilizationSummary = {
|
|
120
|
+
__typename?: 'MtwTripUtilizationSummary';
|
|
121
|
+
basis: MtwTripUtilizationBasis;
|
|
122
|
+
declaredCoverage: MtwTripUtilizationCoverage;
|
|
123
|
+
distanceCoverage: MtwUtilizationDistanceCoverage;
|
|
124
|
+
distanceWeightedCube: MtwUtilizationMetric;
|
|
125
|
+
distanceWeightedWeight: MtwUtilizationMetric;
|
|
126
|
+
loadedDistance: MtwUtilizationMetric;
|
|
127
|
+
segmentCount: Scalars['Int']['output'];
|
|
128
|
+
segments: Array<MtwTripUtilizationSegment>;
|
|
129
|
+
tripId: Scalars['ID']['output'];
|
|
130
|
+
unknownFactsSegmentCount: Scalars['Int']['output'];
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export type MtwUtilizationCapacityBasis =
|
|
134
|
+
| 'MEASURED'
|
|
135
|
+
| 'RATED';
|
|
136
|
+
|
|
137
|
+
export type MtwUtilizationDistanceBasis =
|
|
138
|
+
| 'MEASURED'
|
|
139
|
+
| 'OPERATOR_ESTIMATE'
|
|
140
|
+
| 'PROVIDER_ESTIMATE';
|
|
141
|
+
|
|
142
|
+
export type MtwUtilizationDistanceCoverage = {
|
|
143
|
+
__typename?: 'MtwUtilizationDistanceCoverage';
|
|
144
|
+
knownDistanceKm: Scalars['Float']['output'];
|
|
145
|
+
knownSegmentCount: Scalars['Int']['output'];
|
|
146
|
+
totalDistanceKm?: Maybe<Scalars['Float']['output']>;
|
|
147
|
+
unknownSegmentCount: Scalars['Int']['output'];
|
|
148
|
+
};
|
|
149
|
+
|
|
150
|
+
export type MtwUtilizationLoadBasis =
|
|
151
|
+
| 'MEASURED'
|
|
152
|
+
| 'SOURCE_CONFIRMED_PLAN';
|
|
153
|
+
|
|
154
|
+
export type MtwUtilizationLoadedState =
|
|
155
|
+
| 'EMPTY'
|
|
156
|
+
| 'LOADED'
|
|
157
|
+
| 'UNKNOWN';
|
|
158
|
+
|
|
159
|
+
export type MtwUtilizationMetric = {
|
|
160
|
+
__typename?: 'MtwUtilizationMetric';
|
|
161
|
+
knownDistanceKm: Scalars['Float']['output'];
|
|
162
|
+
percentage?: Maybe<Scalars['Float']['output']>;
|
|
163
|
+
reason?: Maybe<MtwUtilizationMetricReason>;
|
|
164
|
+
status: MtwUtilizationMetricStatus;
|
|
165
|
+
unknownSegmentCount: Scalars['Int']['output'];
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export type MtwUtilizationMetricReason =
|
|
169
|
+
| 'DISTANCE_UNKNOWN'
|
|
170
|
+
| 'NO_SEGMENTS'
|
|
171
|
+
| 'PARTIAL_TRIP'
|
|
172
|
+
| 'SEGMENT_FACTS_UNKNOWN'
|
|
173
|
+
| 'ZERO_DISTANCE';
|
|
174
|
+
|
|
175
|
+
export type MtwUtilizationMetricStatus =
|
|
176
|
+
| 'KNOWN'
|
|
177
|
+
| 'UNKNOWN';
|
|
178
|
+
|
|
179
|
+
/** Human-recorded source labels, not independent measurement or provider authentication. */
|
|
180
|
+
export type MtwUtilizationSource = {
|
|
181
|
+
__typename?: 'MtwUtilizationSource';
|
|
182
|
+
capacityBasis: MtwUtilizationCapacityBasis;
|
|
183
|
+
distanceBasis: MtwUtilizationDistanceBasis;
|
|
184
|
+
loadBasis: MtwUtilizationLoadBasis;
|
|
185
|
+
observedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
186
|
+
recordedAt: Scalars['DateTime']['output'];
|
|
187
|
+
reference: Scalars['String']['output'];
|
|
188
|
+
revision: Scalars['String']['output'];
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
export type MtwUtilizationSourceInput = {
|
|
192
|
+
capacityBasis: MtwUtilizationCapacityBasis;
|
|
193
|
+
distanceBasis: MtwUtilizationDistanceBasis;
|
|
194
|
+
loadBasis: MtwUtilizationLoadBasis;
|
|
195
|
+
observedAt?: InputMaybe<Scalars['DateTime']['input']>;
|
|
196
|
+
reference: Scalars['String']['input'];
|
|
197
|
+
revision: Scalars['String']['input'];
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
export type MtwUtilizationWarning =
|
|
201
|
+
| 'CUBE_OVERLOAD'
|
|
202
|
+
| 'EMPTY_WITH_PAYLOAD'
|
|
203
|
+
| 'WEIGHT_OVERLOAD';
|
|
204
|
+
|
|
205
|
+
export type MtwVehicle = {
|
|
206
|
+
__typename?: 'MtwVehicle';
|
|
207
|
+
id: Scalars['ID']['output'];
|
|
208
|
+
licensePlate?: Maybe<Scalars['String']['output']>;
|
|
209
|
+
status: VehicleStatus;
|
|
210
|
+
type: VehicleType;
|
|
211
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
212
|
+
vehicleNumber: Scalars['String']['output'];
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
export type Mutation = {
|
|
216
|
+
__typename?: 'Mutation';
|
|
217
|
+
recordMtwTripUtilizationReport: MtwTripUtilizationReport;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
export type MutationRecordMtwTripUtilizationReportArgs = {
|
|
222
|
+
input: RecordMtwTripUtilizationReportInput;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export type PaginationInput = {
|
|
226
|
+
cursor?: InputMaybe<Scalars['String']['input']>;
|
|
227
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
228
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
export type Query = {
|
|
232
|
+
__typename?: 'Query';
|
|
233
|
+
mtwTripUtilizationReportPage: MtwTripUtilizationReportPage;
|
|
234
|
+
route?: Maybe<MtwRoute>;
|
|
235
|
+
routes: Array<MtwRoute>;
|
|
236
|
+
routesCount: Scalars['Int']['output'];
|
|
237
|
+
vehicle?: Maybe<MtwVehicle>;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
export type QueryMtwTripUtilizationReportPageArgs = {
|
|
242
|
+
pagination?: InputMaybe<MtwContainerPagination>;
|
|
243
|
+
routeId: Scalars['ID']['input'];
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
export type QueryRouteArgs = {
|
|
248
|
+
id: Scalars['ID']['input'];
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
export type QueryRoutesArgs = {
|
|
253
|
+
filter?: InputMaybe<RouteFilterInput>;
|
|
254
|
+
pagination?: InputMaybe<PaginationInput>;
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
export type QueryRoutesCountArgs = {
|
|
259
|
+
filter?: InputMaybe<RouteFilterInput>;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
export type QueryVehicleArgs = {
|
|
264
|
+
id: Scalars['ID']['input'];
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
export type RecordMtwTripUtilizationReportInput = {
|
|
268
|
+
basis: MtwTripUtilizationBasis;
|
|
269
|
+
declaredCoverage: MtwTripUtilizationCoverage;
|
|
270
|
+
evidence: Array<MtwContainerEvidenceInput>;
|
|
271
|
+
expectedRouteUpdatedAt: Scalars['DateTime']['input'];
|
|
272
|
+
expectedVehicleUpdatedAt: Scalars['DateTime']['input'];
|
|
273
|
+
idempotencyKey: Scalars['String']['input'];
|
|
274
|
+
intervalFrom: Scalars['DateTime']['input'];
|
|
275
|
+
intervalUntil: Scalars['DateTime']['input'];
|
|
276
|
+
routeId: Scalars['ID']['input'];
|
|
277
|
+
segments: Array<MtwTripUtilizationSegmentInput>;
|
|
278
|
+
tripId: Scalars['ID']['input'];
|
|
279
|
+
vehicleId: Scalars['ID']['input'];
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
export type RouteFilterInput = {
|
|
283
|
+
driverId?: InputMaybe<Scalars['ID']['input']>;
|
|
284
|
+
search?: InputMaybe<Scalars['String']['input']>;
|
|
285
|
+
shipmentId?: InputMaybe<Scalars['ID']['input']>;
|
|
286
|
+
status?: InputMaybe<RouteStatus>;
|
|
287
|
+
vehicleId?: InputMaybe<Scalars['ID']['input']>;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
export type RouteStatus =
|
|
291
|
+
| 'CANCELLED'
|
|
292
|
+
| 'COMPLETED'
|
|
293
|
+
| 'IN_PROGRESS'
|
|
294
|
+
| 'PLANNED';
|
|
295
|
+
|
|
296
|
+
export type VehicleStatus =
|
|
297
|
+
| 'ACTIVE'
|
|
298
|
+
| 'DECOMMISSIONED'
|
|
299
|
+
| 'INACTIVE'
|
|
300
|
+
| 'IN_TRANSIT'
|
|
301
|
+
| 'MAINTENANCE';
|
|
302
|
+
|
|
303
|
+
export type VehicleType =
|
|
304
|
+
| 'BICYCLE'
|
|
305
|
+
| 'DRONE'
|
|
306
|
+
| 'FLATBED'
|
|
307
|
+
| 'MOTORCYCLE'
|
|
308
|
+
| 'REFRIGERATED'
|
|
309
|
+
| 'SEMI_TRAILER'
|
|
310
|
+
| 'TRUCK'
|
|
311
|
+
| 'VAN';
|
|
312
|
+
|
|
313
|
+
export type UtilizationVehicleFragment = { __typename?: 'MtwVehicle', id: string, vehicleNumber: string, licensePlate?: string | null, type: VehicleType, status: VehicleStatus, updatedAt: string };
|
|
314
|
+
|
|
315
|
+
export type UtilizationRouteFragment = { __typename?: 'MtwRoute', id: string, name: string, status: RouteStatus, updatedAt: string, vehicleId?: string | null, vehicle?: { __typename?: 'MtwVehicle', id: string, vehicleNumber: string, licensePlate?: string | null, type: VehicleType, status: VehicleStatus, updatedAt: string } | null };
|
|
316
|
+
|
|
317
|
+
export type UtilizationRoutesQueryVariables = Exact<{
|
|
318
|
+
pagination: PaginationInput;
|
|
319
|
+
}>;
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
export type UtilizationRoutesQuery = { __typename?: 'Query', routesCount: number, routes: Array<{ __typename?: 'MtwRoute', id: string, name: string, status: RouteStatus, updatedAt: string, vehicleId?: string | null, vehicle?: { __typename?: 'MtwVehicle', id: string, vehicleNumber: string, licensePlate?: string | null, type: VehicleType, status: VehicleStatus, updatedAt: string } | null }> };
|
|
323
|
+
|
|
324
|
+
export type UtilizationCurrentRouteQueryVariables = Exact<{
|
|
325
|
+
id: Scalars['ID']['input'];
|
|
326
|
+
}>;
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
export type UtilizationCurrentRouteQuery = { __typename?: 'Query', route?: { __typename?: 'MtwRoute', id: string, name: string, status: RouteStatus, updatedAt: string, vehicleId?: string | null, vehicle?: { __typename?: 'MtwVehicle', id: string, vehicleNumber: string, licensePlate?: string | null, type: VehicleType, status: VehicleStatus, updatedAt: string } | null } | null };
|
|
330
|
+
|
|
331
|
+
export type UtilizationCurrentVehicleQueryVariables = Exact<{
|
|
332
|
+
id: Scalars['ID']['input'];
|
|
333
|
+
}>;
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
export type UtilizationCurrentVehicleQuery = { __typename?: 'Query', vehicle?: { __typename?: 'MtwVehicle', id: string, vehicleNumber: string, licensePlate?: string | null, type: VehicleType, status: VehicleStatus, updatedAt: string } | null };
|
|
337
|
+
|
|
338
|
+
export type UtilizationMetricFragment = { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null };
|
|
339
|
+
|
|
340
|
+
export type UtilizationReportFragment = { __typename?: 'MtwTripUtilizationReport', id: string, routeId: string, vehicleId: string, routeUpdatedAt: string, vehicleUpdatedAt: string, routeWaypointsFingerprint: string, tripId: string, basis: MtwTripUtilizationBasis, declaredCoverage: MtwTripUtilizationCoverage, intervalFrom: string, intervalUntil: string, schemaVersion: number, recordedAt: string, createdBy: string, actorProvenance: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, summary: { __typename?: 'MtwTripUtilizationSummary', tripId: string, basis: MtwTripUtilizationBasis, declaredCoverage: MtwTripUtilizationCoverage, segmentCount: number, unknownFactsSegmentCount: number, distanceCoverage: { __typename?: 'MtwUtilizationDistanceCoverage', knownSegmentCount: number, unknownSegmentCount: number, knownDistanceKm: number, totalDistanceKm?: number | null }, loadedDistance: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, distanceWeightedWeight: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, distanceWeightedCube: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, segments: Array<{ __typename?: 'MtwTripUtilizationSegment', segmentId: string, sequence: number, basis: MtwTripUtilizationBasis, loadedState: MtwUtilizationLoadedState, distanceKm?: number | null, payloadKg?: number | null, payloadCapacityKg?: number | null, cubeM3?: number | null, cubeCapacityM3?: number | null, weightUtilizationPercentage?: number | null, cubeUtilizationPercentage?: number | null, warnings: Array<MtwUtilizationWarning>, source: { __typename?: 'MtwUtilizationSource', reference: string, revision: string, recordedAt: string, observedAt?: string | null, distanceBasis: MtwUtilizationDistanceBasis, loadBasis: MtwUtilizationLoadBasis, capacityBasis: MtwUtilizationCapacityBasis } }> } };
|
|
341
|
+
|
|
342
|
+
export type UtilizationReportsQueryVariables = Exact<{
|
|
343
|
+
routeId: Scalars['ID']['input'];
|
|
344
|
+
pagination: MtwContainerPagination;
|
|
345
|
+
}>;
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
export type UtilizationReportsQuery = { __typename?: 'Query', mtwTripUtilizationReportPage: { __typename?: 'MtwTripUtilizationReportPage', total: number, limit: number, offset: number, hasMore: boolean, nextOffset?: number | null, items: Array<{ __typename?: 'MtwTripUtilizationReport', id: string, routeId: string, vehicleId: string, routeUpdatedAt: string, vehicleUpdatedAt: string, routeWaypointsFingerprint: string, tripId: string, basis: MtwTripUtilizationBasis, declaredCoverage: MtwTripUtilizationCoverage, intervalFrom: string, intervalUntil: string, schemaVersion: number, recordedAt: string, createdBy: string, actorProvenance: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, summary: { __typename?: 'MtwTripUtilizationSummary', tripId: string, basis: MtwTripUtilizationBasis, declaredCoverage: MtwTripUtilizationCoverage, segmentCount: number, unknownFactsSegmentCount: number, distanceCoverage: { __typename?: 'MtwUtilizationDistanceCoverage', knownSegmentCount: number, unknownSegmentCount: number, knownDistanceKm: number, totalDistanceKm?: number | null }, loadedDistance: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, distanceWeightedWeight: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, distanceWeightedCube: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, segments: Array<{ __typename?: 'MtwTripUtilizationSegment', segmentId: string, sequence: number, basis: MtwTripUtilizationBasis, loadedState: MtwUtilizationLoadedState, distanceKm?: number | null, payloadKg?: number | null, payloadCapacityKg?: number | null, cubeM3?: number | null, cubeCapacityM3?: number | null, weightUtilizationPercentage?: number | null, cubeUtilizationPercentage?: number | null, warnings: Array<MtwUtilizationWarning>, source: { __typename?: 'MtwUtilizationSource', reference: string, revision: string, recordedAt: string, observedAt?: string | null, distanceBasis: MtwUtilizationDistanceBasis, loadBasis: MtwUtilizationLoadBasis, capacityBasis: MtwUtilizationCapacityBasis } }> } }> } };
|
|
349
|
+
|
|
350
|
+
export type RecordUtilizationReportMutationVariables = Exact<{
|
|
351
|
+
input: RecordMtwTripUtilizationReportInput;
|
|
352
|
+
}>;
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
export type RecordUtilizationReportMutation = { __typename?: 'Mutation', recordMtwTripUtilizationReport: { __typename?: 'MtwTripUtilizationReport', id: string, routeId: string, vehicleId: string, routeUpdatedAt: string, vehicleUpdatedAt: string, routeWaypointsFingerprint: string, tripId: string, basis: MtwTripUtilizationBasis, declaredCoverage: MtwTripUtilizationCoverage, intervalFrom: string, intervalUntil: string, schemaVersion: number, recordedAt: string, createdBy: string, actorProvenance: string, evidence: Array<{ __typename?: 'MtwContainerEvidence', fileId: string, versionId: string, sha256Hash: string, checkedAt: string }>, summary: { __typename?: 'MtwTripUtilizationSummary', tripId: string, basis: MtwTripUtilizationBasis, declaredCoverage: MtwTripUtilizationCoverage, segmentCount: number, unknownFactsSegmentCount: number, distanceCoverage: { __typename?: 'MtwUtilizationDistanceCoverage', knownSegmentCount: number, unknownSegmentCount: number, knownDistanceKm: number, totalDistanceKm?: number | null }, loadedDistance: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, distanceWeightedWeight: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, distanceWeightedCube: { __typename?: 'MtwUtilizationMetric', status: MtwUtilizationMetricStatus, percentage?: number | null, knownDistanceKm: number, unknownSegmentCount: number, reason?: MtwUtilizationMetricReason | null }, segments: Array<{ __typename?: 'MtwTripUtilizationSegment', segmentId: string, sequence: number, basis: MtwTripUtilizationBasis, loadedState: MtwUtilizationLoadedState, distanceKm?: number | null, payloadKg?: number | null, payloadCapacityKg?: number | null, cubeM3?: number | null, cubeCapacityM3?: number | null, weightUtilizationPercentage?: number | null, cubeUtilizationPercentage?: number | null, warnings: Array<MtwUtilizationWarning>, source: { __typename?: 'MtwUtilizationSource', reference: string, revision: string, recordedAt: string, observedAt?: string | null, distanceBasis: MtwUtilizationDistanceBasis, loadBasis: MtwUtilizationLoadBasis, capacityBasis: MtwUtilizationCapacityBasis } }> } } };
|
|
356
|
+
|
|
357
|
+
export const UtilizationVehicleFragmentDoc = gql`
|
|
358
|
+
fragment UtilizationVehicle on MtwVehicle {
|
|
359
|
+
id
|
|
360
|
+
vehicleNumber
|
|
361
|
+
licensePlate
|
|
362
|
+
type
|
|
363
|
+
status
|
|
364
|
+
updatedAt
|
|
365
|
+
}
|
|
366
|
+
`;
|
|
367
|
+
export const UtilizationRouteFragmentDoc = gql`
|
|
368
|
+
fragment UtilizationRoute on MtwRoute {
|
|
369
|
+
id
|
|
370
|
+
name
|
|
371
|
+
status
|
|
372
|
+
updatedAt
|
|
373
|
+
vehicleId
|
|
374
|
+
vehicle {
|
|
375
|
+
...UtilizationVehicle
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
${UtilizationVehicleFragmentDoc}`;
|
|
379
|
+
export const UtilizationMetricFragmentDoc = gql`
|
|
380
|
+
fragment UtilizationMetric on MtwUtilizationMetric {
|
|
381
|
+
status
|
|
382
|
+
percentage
|
|
383
|
+
knownDistanceKm
|
|
384
|
+
unknownSegmentCount
|
|
385
|
+
reason
|
|
386
|
+
}
|
|
387
|
+
`;
|
|
388
|
+
export const UtilizationReportFragmentDoc = gql`
|
|
389
|
+
fragment UtilizationReport on MtwTripUtilizationReport {
|
|
390
|
+
id
|
|
391
|
+
routeId
|
|
392
|
+
vehicleId
|
|
393
|
+
routeUpdatedAt
|
|
394
|
+
vehicleUpdatedAt
|
|
395
|
+
routeWaypointsFingerprint
|
|
396
|
+
tripId
|
|
397
|
+
basis
|
|
398
|
+
declaredCoverage
|
|
399
|
+
intervalFrom
|
|
400
|
+
intervalUntil
|
|
401
|
+
schemaVersion
|
|
402
|
+
recordedAt
|
|
403
|
+
createdBy
|
|
404
|
+
actorProvenance
|
|
405
|
+
evidence {
|
|
406
|
+
fileId
|
|
407
|
+
versionId
|
|
408
|
+
sha256Hash
|
|
409
|
+
checkedAt
|
|
410
|
+
}
|
|
411
|
+
summary {
|
|
412
|
+
tripId
|
|
413
|
+
basis
|
|
414
|
+
declaredCoverage
|
|
415
|
+
segmentCount
|
|
416
|
+
unknownFactsSegmentCount
|
|
417
|
+
distanceCoverage {
|
|
418
|
+
knownSegmentCount
|
|
419
|
+
unknownSegmentCount
|
|
420
|
+
knownDistanceKm
|
|
421
|
+
totalDistanceKm
|
|
422
|
+
}
|
|
423
|
+
loadedDistance {
|
|
424
|
+
...UtilizationMetric
|
|
425
|
+
}
|
|
426
|
+
distanceWeightedWeight {
|
|
427
|
+
...UtilizationMetric
|
|
428
|
+
}
|
|
429
|
+
distanceWeightedCube {
|
|
430
|
+
...UtilizationMetric
|
|
431
|
+
}
|
|
432
|
+
segments {
|
|
433
|
+
segmentId
|
|
434
|
+
sequence
|
|
435
|
+
basis
|
|
436
|
+
loadedState
|
|
437
|
+
distanceKm
|
|
438
|
+
payloadKg
|
|
439
|
+
payloadCapacityKg
|
|
440
|
+
cubeM3
|
|
441
|
+
cubeCapacityM3
|
|
442
|
+
weightUtilizationPercentage
|
|
443
|
+
cubeUtilizationPercentage
|
|
444
|
+
warnings
|
|
445
|
+
source {
|
|
446
|
+
reference
|
|
447
|
+
revision
|
|
448
|
+
recordedAt
|
|
449
|
+
observedAt
|
|
450
|
+
distanceBasis
|
|
451
|
+
loadBasis
|
|
452
|
+
capacityBasis
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
${UtilizationMetricFragmentDoc}`;
|
|
458
|
+
export const UtilizationRoutesDocument = gql`
|
|
459
|
+
query UtilizationRoutes($pagination: PaginationInput!) {
|
|
460
|
+
routes(pagination: $pagination) {
|
|
461
|
+
...UtilizationRoute
|
|
462
|
+
}
|
|
463
|
+
routesCount
|
|
464
|
+
}
|
|
465
|
+
${UtilizationRouteFragmentDoc}`;
|
|
466
|
+
export const UtilizationCurrentRouteDocument = gql`
|
|
467
|
+
query UtilizationCurrentRoute($id: ID!) {
|
|
468
|
+
route(id: $id) {
|
|
469
|
+
...UtilizationRoute
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
${UtilizationRouteFragmentDoc}`;
|
|
473
|
+
export const UtilizationCurrentVehicleDocument = gql`
|
|
474
|
+
query UtilizationCurrentVehicle($id: ID!) {
|
|
475
|
+
vehicle(id: $id) {
|
|
476
|
+
...UtilizationVehicle
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
${UtilizationVehicleFragmentDoc}`;
|
|
480
|
+
export const UtilizationReportsDocument = gql`
|
|
481
|
+
query UtilizationReports($routeId: ID!, $pagination: MtwContainerPagination!) {
|
|
482
|
+
mtwTripUtilizationReportPage(routeId: $routeId, pagination: $pagination) {
|
|
483
|
+
items {
|
|
484
|
+
...UtilizationReport
|
|
485
|
+
}
|
|
486
|
+
total
|
|
487
|
+
limit
|
|
488
|
+
offset
|
|
489
|
+
hasMore
|
|
490
|
+
nextOffset
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
${UtilizationReportFragmentDoc}`;
|
|
494
|
+
export const RecordUtilizationReportDocument = gql`
|
|
495
|
+
mutation RecordUtilizationReport($input: RecordMtwTripUtilizationReportInput!) {
|
|
496
|
+
recordMtwTripUtilizationReport(input: $input) {
|
|
497
|
+
...UtilizationReport
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
${UtilizationReportFragmentDoc}`;
|
|
@@ -5,6 +5,21 @@ import { gql } from '@apollo/client';
|
|
|
5
5
|
import * as Apollo from '@apollo/client';
|
|
6
6
|
import * as ApolloReactHooks from '@apollo/client/react';
|
|
7
7
|
const defaultOptions = {} as const;
|
|
8
|
+
export type ContainerEvidenceFilesQueryVariables = Types.Exact<{
|
|
9
|
+
pagination?: Types.InputMaybe<Types.PaginationInput>;
|
|
10
|
+
}>;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
export type ContainerEvidenceFilesQuery = { __typename?: 'Query', getFiles: { __typename?: 'FileList', hasMore: boolean, files: Array<{ __typename?: 'File', id: string, name: string, canRead?: boolean | null }> } };
|
|
14
|
+
|
|
15
|
+
export type ContainerEvidenceVersionsQueryVariables = Types.Exact<{
|
|
16
|
+
fileId: Types.Scalars['ID']['input'];
|
|
17
|
+
pagination?: Types.InputMaybe<Types.PaginationInput>;
|
|
18
|
+
}>;
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export type ContainerEvidenceVersionsQuery = { __typename?: 'Query', getFileVersions: { __typename?: 'FileVersionList', hasMore: boolean, versions: Array<{ __typename?: 'FileVersion', id: string, fileId: string, name: string, versionNumber: number, versionLabel?: string | null, sha256Hash?: string | null, createdAt: string }> } };
|
|
22
|
+
|
|
8
23
|
export type MovethewheelsOrderCoreFragment = { __typename?: 'MtwDeliveryJob', id: string, deliveryJobNumber: string, status: Types.DeliveryJobStatus, priority: Types.DeliveryPriority, customerId: string, trackingNumber?: string | null, pickupAddress: Record<string, unknown>, deliveryAddress: Record<string, unknown>, cargoItems: Record<string, unknown>, pricing?: Record<string, unknown> | null, scheduledDelivery?: string | null, vehicleId?: string | null, driverId?: string | null, createdAt: string, updatedAt: string };
|
|
9
24
|
|
|
10
25
|
export type CustomerCoreFragment = { __typename?: 'MtwCustomer', id: string, name: string, email?: string | null, phone?: string | null, type: string, company?: string | null, address?: Record<string, unknown> | null, rating?: number | null, createdAt: string, updatedAt: string };
|
|
@@ -627,6 +642,107 @@ export const ShipmentCoreFragmentDoc = gql`
|
|
|
627
642
|
updatedAt
|
|
628
643
|
}
|
|
629
644
|
`;
|
|
645
|
+
export const ContainerEvidenceFilesDocument = gql`
|
|
646
|
+
query ContainerEvidenceFiles($pagination: PaginationInput) {
|
|
647
|
+
getFiles(filter: {status: ACTIVE}, pagination: $pagination) {
|
|
648
|
+
files {
|
|
649
|
+
id
|
|
650
|
+
name
|
|
651
|
+
canRead
|
|
652
|
+
}
|
|
653
|
+
hasMore
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
`;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* __useContainerEvidenceFilesQuery__
|
|
660
|
+
*
|
|
661
|
+
* To run a query within a React component, call `useContainerEvidenceFilesQuery` and pass it any options that fit your needs.
|
|
662
|
+
* When your component renders, `useContainerEvidenceFilesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
663
|
+
* you can use to render your UI.
|
|
664
|
+
*
|
|
665
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
666
|
+
*
|
|
667
|
+
* @example
|
|
668
|
+
* const { data, loading, error } = useContainerEvidenceFilesQuery({
|
|
669
|
+
* variables: {
|
|
670
|
+
* pagination: // value for 'pagination'
|
|
671
|
+
* },
|
|
672
|
+
* });
|
|
673
|
+
*/
|
|
674
|
+
export function useContainerEvidenceFilesQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>) {
|
|
675
|
+
const options = {...defaultOptions, ...baseOptions}
|
|
676
|
+
return ApolloReactHooks.useQuery<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>(ContainerEvidenceFilesDocument, options);
|
|
677
|
+
}
|
|
678
|
+
export function useContainerEvidenceFilesLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>) {
|
|
679
|
+
const options = {...defaultOptions, ...baseOptions}
|
|
680
|
+
return ApolloReactHooks.useLazyQuery<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>(ContainerEvidenceFilesDocument, options);
|
|
681
|
+
}
|
|
682
|
+
// @ts-ignore
|
|
683
|
+
export function useContainerEvidenceFilesSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>;
|
|
684
|
+
export function useContainerEvidenceFilesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ContainerEvidenceFilesQuery | undefined, Types.ContainerEvidenceFilesQueryVariables>;
|
|
685
|
+
export function useContainerEvidenceFilesSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>) {
|
|
686
|
+
const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
|
|
687
|
+
return ApolloReactHooks.useSuspenseQuery<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>(ContainerEvidenceFilesDocument, options);
|
|
688
|
+
}
|
|
689
|
+
export type ContainerEvidenceFilesQueryHookResult = ReturnType<typeof useContainerEvidenceFilesQuery>;
|
|
690
|
+
export type ContainerEvidenceFilesLazyQueryHookResult = ReturnType<typeof useContainerEvidenceFilesLazyQuery>;
|
|
691
|
+
export type ContainerEvidenceFilesSuspenseQueryHookResult = ReturnType<typeof useContainerEvidenceFilesSuspenseQuery>;
|
|
692
|
+
export type ContainerEvidenceFilesQueryResult = Apollo.QueryResult<Types.ContainerEvidenceFilesQuery, Types.ContainerEvidenceFilesQueryVariables>;
|
|
693
|
+
export const ContainerEvidenceVersionsDocument = gql`
|
|
694
|
+
query ContainerEvidenceVersions($fileId: ID!, $pagination: PaginationInput) {
|
|
695
|
+
getFileVersions(fileId: $fileId, pagination: $pagination) {
|
|
696
|
+
versions {
|
|
697
|
+
id
|
|
698
|
+
fileId
|
|
699
|
+
name
|
|
700
|
+
versionNumber
|
|
701
|
+
versionLabel
|
|
702
|
+
sha256Hash
|
|
703
|
+
createdAt
|
|
704
|
+
}
|
|
705
|
+
hasMore
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
`;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* __useContainerEvidenceVersionsQuery__
|
|
712
|
+
*
|
|
713
|
+
* To run a query within a React component, call `useContainerEvidenceVersionsQuery` and pass it any options that fit your needs.
|
|
714
|
+
* When your component renders, `useContainerEvidenceVersionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
715
|
+
* you can use to render your UI.
|
|
716
|
+
*
|
|
717
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
718
|
+
*
|
|
719
|
+
* @example
|
|
720
|
+
* const { data, loading, error } = useContainerEvidenceVersionsQuery({
|
|
721
|
+
* variables: {
|
|
722
|
+
* fileId: // value for 'fileId'
|
|
723
|
+
* pagination: // value for 'pagination'
|
|
724
|
+
* },
|
|
725
|
+
* });
|
|
726
|
+
*/
|
|
727
|
+
export function useContainerEvidenceVersionsQuery(baseOptions: ApolloReactHooks.QueryHookOptions<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables> & ({ variables: Types.ContainerEvidenceVersionsQueryVariables; skip?: boolean; } | { skip: boolean; }) ) {
|
|
728
|
+
const options = {...defaultOptions, ...baseOptions}
|
|
729
|
+
return ApolloReactHooks.useQuery<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>(ContainerEvidenceVersionsDocument, options);
|
|
730
|
+
}
|
|
731
|
+
export function useContainerEvidenceVersionsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>) {
|
|
732
|
+
const options = {...defaultOptions, ...baseOptions}
|
|
733
|
+
return ApolloReactHooks.useLazyQuery<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>(ContainerEvidenceVersionsDocument, options);
|
|
734
|
+
}
|
|
735
|
+
// @ts-ignore
|
|
736
|
+
export function useContainerEvidenceVersionsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>;
|
|
737
|
+
export function useContainerEvidenceVersionsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.ContainerEvidenceVersionsQuery | undefined, Types.ContainerEvidenceVersionsQueryVariables>;
|
|
738
|
+
export function useContainerEvidenceVersionsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>) {
|
|
739
|
+
const options = baseOptions === ApolloReactHooks.skipToken ? baseOptions : {...defaultOptions, ...baseOptions}
|
|
740
|
+
return ApolloReactHooks.useSuspenseQuery<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>(ContainerEvidenceVersionsDocument, options);
|
|
741
|
+
}
|
|
742
|
+
export type ContainerEvidenceVersionsQueryHookResult = ReturnType<typeof useContainerEvidenceVersionsQuery>;
|
|
743
|
+
export type ContainerEvidenceVersionsLazyQueryHookResult = ReturnType<typeof useContainerEvidenceVersionsLazyQuery>;
|
|
744
|
+
export type ContainerEvidenceVersionsSuspenseQueryHookResult = ReturnType<typeof useContainerEvidenceVersionsSuspenseQuery>;
|
|
745
|
+
export type ContainerEvidenceVersionsQueryResult = Apollo.QueryResult<Types.ContainerEvidenceVersionsQuery, Types.ContainerEvidenceVersionsQueryVariables>;
|
|
630
746
|
export const CreateCustomerDocument = gql`
|
|
631
747
|
mutation CreateCustomer($input: CreateCustomerInput!) {
|
|
632
748
|
createCustomer(input: $input) {
|