@burdenoff/microfe-movethewheels 2026.1016.1 → 2026.1016.3
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/components/freight-cost/FreightCommercialEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialFactEditor.js +217 -0
- package/dist/components/freight-cost/FreightCommercialHistory.js +115 -0
- package/dist/components/freight-cost/FreightDraftForm.js +106 -91
- package/dist/components/freight-cost/FreightHistory.js +42 -40
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/freight-cost-operations.d.ts +959 -0
- package/dist/hooks/useFreightRecoveryAction.js +20 -20
- package/dist/index.d.ts +2 -4
- package/dist/movethewheels/MoveTheWheelsRoot.d.ts +0 -1
- package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +1 -1
- package/dist/movethewheels/components/AssignmentSuggestions.d.ts +1 -2
- package/dist/movethewheels/components/CarbonFootprintPanel.d.ts +1 -1
- package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +1 -2
- package/dist/movethewheels/components/CustomerPicker.d.ts +1 -2
- package/dist/movethewheels/components/DataTable.d.ts +1 -2
- package/dist/movethewheels/components/DocumentsCard.d.ts +1 -2
- package/dist/movethewheels/components/EntityCombobox.d.ts +1 -1
- package/dist/movethewheels/components/FleetAlertsPanel.d.ts +1 -2
- package/dist/movethewheels/components/FormError.d.ts +1 -1
- package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +1 -2
- package/dist/movethewheels/components/GlassPanel.d.ts +1 -2
- package/dist/movethewheels/components/MetricCard.d.ts +3 -4
- package/dist/movethewheels/components/Notice.d.ts +1 -1
- package/dist/movethewheels/components/OrderItemRow.d.ts +1 -2
- package/dist/movethewheels/components/PageLayout.d.ts +5 -6
- package/dist/movethewheels/components/ProofOfDeliveryCard.d.ts +1 -1
- package/dist/movethewheels/components/ReturnInstructionForm.d.ts +1 -2
- package/dist/movethewheels/components/ReuseControls.d.ts +4 -5
- package/dist/movethewheels/components/ReusePermissionForm.d.ts +1 -2
- package/dist/movethewheels/components/ReuseProposalForm.d.ts +1 -2
- package/dist/movethewheels/components/ReuseSourceFields.d.ts +1 -2
- package/dist/movethewheels/components/ShippingQuoteResults.d.ts +1 -2
- package/dist/movethewheels/components/StatusBadge.d.ts +5 -6
- package/dist/movethewheels/components/StockActionDialogs.d.ts +3 -3
- package/dist/movethewheels/components/UpcomingDemandPanel.d.ts +1 -2
- package/dist/movethewheels/components/VehicleServiceCard.d.ts +1 -2
- package/dist/movethewheels/components/charts/ChartShell.d.ts +2 -3
- package/dist/movethewheels/components/charts/Sparkline.d.ts +1 -1
- package/dist/movethewheels/components/charts/StatusDonut.d.ts +1 -1
- package/dist/movethewheels/components/charts/TrendChart.d.ts +1 -1
- package/dist/movethewheels/components/charts/VolumeBar.d.ts +1 -1
- package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +3 -4
- package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +1 -2
- package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightCommercialEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialFactEditor.d.ts +8 -0
- package/dist/movethewheels/components/freight-cost/FreightCommercialHistory.d.ts +4 -0
- package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +5 -4
- package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +3 -4
- package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +3 -4
- package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +1 -2
- package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +2 -3
- package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +3 -4
- package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +1 -2
- package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +1 -2
- package/dist/movethewheels/components/maps/LogisticsMap.d.ts +1 -2
- package/dist/movethewheels/components/maps/MapCanvas.d.ts +1 -2
- package/dist/movethewheels/components/maps/RouteMap.d.ts +1 -1
- package/dist/movethewheels/components/maps/TrackingMap.d.ts +1 -1
- package/dist/movethewheels/components/maps/leaflet-setup.d.ts +0 -1
- package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +1 -2
- package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +1 -1
- package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +1 -2
- package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +1 -2
- package/dist/movethewheels/components/pending-pick/PickReviewPanel.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +1 -2
- package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +1 -2
- package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +1 -2
- package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +1 -2
- package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +1 -1
- package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +1 -2
- package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +1 -2
- package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +1 -2
- package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +1 -2
- package/dist/movethewheels/hooks/useAnalytics.d.ts +0 -1
- package/dist/movethewheels/hooks/useConsolidationAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useContainerCondition.d.ts +0 -1
- package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +0 -1
- package/dist/movethewheels/hooks/useCustomers.d.ts +0 -1
- package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useEpod.d.ts +0 -1
- package/dist/movethewheels/hooks/useFleet.d.ts +0 -1
- package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useInventory.d.ts +0 -1
- package/dist/movethewheels/hooks/useOrders.d.ts +0 -1
- package/dist/movethewheels/hooks/useProcedureAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useProcedureSelection.d.ts +0 -1
- package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +0 -1
- package/dist/movethewheels/hooks/useRoutes.d.ts +0 -1
- package/dist/movethewheels/hooks/useShipmentStatusAuthority.d.ts +0 -1
- package/dist/movethewheels/hooks/useTracking.d.ts +0 -1
- package/dist/movethewheels/hooks/useTrackingEventQuality.d.ts +0 -1
- package/dist/movethewheels/pages/AIAssistantPage.d.ts +1 -1
- package/dist/movethewheels/pages/AnalyticsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -1
- package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -1
- package/dist/movethewheels/pages/ContainersPage.d.ts +1 -1
- package/dist/movethewheels/pages/CreateOrderPage.d.ts +1 -1
- package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/CustomersPage.d.ts +1 -1
- package/dist/movethewheels/pages/DashboardPage.d.ts +1 -1
- package/dist/movethewheels/pages/DeliveryCapturePage.d.ts +1 -1
- package/dist/movethewheels/pages/DriverDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/DriversPage.d.ts +1 -1
- package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -1
- package/dist/movethewheels/pages/FinancePage.d.ts +1 -1
- package/dist/movethewheels/pages/FleetPage.d.ts +1 -1
- package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -1
- package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -1
- package/dist/movethewheels/pages/ImportExportPage.d.ts +1 -1
- package/dist/movethewheels/pages/InventoryPage.d.ts +1 -1
- package/dist/movethewheels/pages/LiveTrackingPage.d.ts +1 -1
- package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -1
- package/dist/movethewheels/pages/MarketplacePage.d.ts +1 -1
- package/dist/movethewheels/pages/MultiModalShipmentPage.d.ts +1 -1
- package/dist/movethewheels/pages/OrderDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/OrdersListPage.d.ts +1 -1
- package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -1
- package/dist/movethewheels/pages/ProductDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ProductsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ReportsPage.d.ts +1 -1
- package/dist/movethewheels/pages/RouteDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/RoutesPage.d.ts +1 -1
- package/dist/movethewheels/pages/SettingsPage.d.ts +1 -1
- package/dist/movethewheels/pages/ShipmentStatusAuthorityPage.d.ts +1 -1
- package/dist/movethewheels/pages/ShippingRatesPage.d.ts +1 -1
- package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -1
- package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -1
- package/dist/movethewheels/pages/TrackingEventQualityPage.d.ts +1 -1
- package/dist/movethewheels/pages/TrackingPage.d.ts +1 -1
- package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -1
- package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/VehiclesPage.d.ts +1 -1
- package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +1 -1
- package/dist/movethewheels/pages/WarehousesPage.d.ts +1 -1
- package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +0 -1
- package/dist/movethewheels/store/movethewheelsStore.d.ts +0 -1
- package/dist/movethewheels/types/index.d.ts +0 -1
- package/dist/movethewheels/utils/cn.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationInput.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationLot.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationPins.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/consolidationReportHead.d.ts +0 -1
- package/dist/movethewheels/utils/formatters.d.ts +0 -1
- package/dist/movethewheels/utils/freightCommercial.d.ts +44 -0
- package/dist/movethewheels/utils/freightDraft.d.ts +0 -1
- package/dist/movethewheels/utils/freightRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/mapMarkers.d.ts +0 -1
- package/dist/movethewheels/utils/orderValidation.d.ts +0 -1
- package/dist/movethewheels/utils/pendingPickDraft.d.ts +0 -1
- package/dist/movethewheels/utils/pickReviewAcknowledgement.d.ts +0 -1
- package/dist/movethewheels/utils/procedureInput.d.ts +0 -1
- package/dist/movethewheels/utils/procedureRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/reuseForm.d.ts +0 -1
- package/dist/movethewheels/utils/reuseRecovery.d.ts +0 -1
- package/dist/movethewheels/utils/stockBindingForm.d.ts +0 -1
- package/dist/movethewheels/utils/stockObservationForm.d.ts +0 -1
- package/dist/movethewheels/utils/tripDraftContext.d.ts +0 -1
- package/dist/movethewheels/utils/tripUtilizationForm.d.ts +0 -1
- package/dist/pages/FreightEstimatePage.js +96 -92
- package/dist/services/createSandboxAssistantTransport.d.ts +2 -1
- package/dist/src/generated/freight-cost-operations.js +495 -6
- package/dist/stories/EntityCombobox.stories.d.ts +1 -2
- package/dist/stories/MetricCard.stories.d.ts +0 -1
- package/dist/stories/Notice.stories.d.ts +0 -1
- package/dist/stories/StatusBadge.stories.d.ts +0 -1
- package/dist/utils/freightAcknowledgement.js +6 -5
- package/dist/utils/freightCommercial.js +194 -0
- package/dist/utils/freightRecovery.js +22 -22
- package/package.json +6 -5
- package/src/generated/freight-cost-operations.ts +831 -1
- package/src/movethewheels/components/freight-cost/FreightCommercialEditor.tsx +236 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialFactEditor.tsx +258 -0
- package/src/movethewheels/components/freight-cost/FreightCommercialHistory.tsx +90 -0
- package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +33 -4
- package/src/movethewheels/components/freight-cost/FreightHistory.tsx +4 -2
- package/src/movethewheels/hooks/useFreightRecoveryAction.ts +2 -1
- package/src/movethewheels/pages/FreightEstimatePage.tsx +14 -7
- package/src/movethewheels/utils/freightAcknowledgement.ts +3 -1
- package/src/movethewheels/utils/freightCommercial.ts +388 -0
- package/src/movethewheels/utils/freightRecovery.ts +6 -2
- package/src/operations/freight-cost/commercial.graphql +483 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
|
2
|
-
|
|
3
2
|
/** F02 retains one unresolved request across entity/context remounts; it never sends automatically. */
|
|
4
3
|
export declare function useReuseRecoveryAction(): {
|
|
5
4
|
run: <T>(document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<T | null>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TrackingQualityIntegrationsDocument, TrackingQualityDeliveriesDocument, TrackingQualityShipmentDocument } from '../../generated/tracking-quality-operations';
|
|
2
|
-
|
|
3
2
|
export { TrackingQualityIntegrationsDocument as QualityIntegrationsDocument, TrackingQualityDeliveriesDocument as QualityDeliveriesDocument, TrackingQualityShipmentDocument as QualityShipmentDocument, };
|
|
4
3
|
export interface TrackingUpdateOutcome {
|
|
5
4
|
index: number;
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
* (BOFF-3601), which has not landed yet. Until it does, this page shows an
|
|
20
20
|
* honest roadmap state instead of fabricating any of that content.
|
|
21
21
|
*/
|
|
22
|
-
export default function AIAssistantPage(): import(
|
|
22
|
+
export default function AIAssistantPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ConsolidationPage(): import(
|
|
1
|
+
export default function ConsolidationPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ContainerConditionPage(): import(
|
|
1
|
+
export default function ContainerConditionPage(): import('react').JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Remount on identity/workspace changes so previous workspace records never flash. */
|
|
2
|
-
export default function ContainersPage(): import(
|
|
2
|
+
export default function ContainersPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function DeliveryCapturePage(): import(
|
|
1
|
+
export default function DeliveryCapturePage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function EmptyReusePage(): import(
|
|
1
|
+
export default function EmptyReusePage(): import('react').JSX.Element;
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* settlement are handled by the platform Billing module, which this page
|
|
8
8
|
* deep-links to rather than re-implementing an Invoice ledger here.
|
|
9
9
|
*/
|
|
10
|
-
export default function FinancePage(): import(
|
|
10
|
+
export default function FinancePage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function FreeTimePage(): import(
|
|
1
|
+
export default function FreeTimePage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function FreightEstimatePage(): import(
|
|
1
|
+
export default function FreightEstimatePage(): import('react').JSX.Element;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Activity is session-local (reflects actions the operator actually ran) — no
|
|
6
6
|
* fabricated history is shown; the empty state renders until something happens.
|
|
7
7
|
*/
|
|
8
|
-
export default function ImportExportPage(): import(
|
|
8
|
+
export default function ImportExportPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function LogisticsProceduresPage(): import(
|
|
1
|
+
export default function LogisticsProceduresPage(): import('react').JSX.Element;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* across ROAD/AIR/OCEAN/RAIL, previewing each leg's real mode-specific rate
|
|
6
6
|
* before booking, then lists previously planned multi-modal shipments.
|
|
7
7
|
*/
|
|
8
|
-
export default function MultiModalShipmentPage(): import(
|
|
8
|
+
export default function MultiModalShipmentPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function PendingPickPage(): import(
|
|
1
|
+
export default function PendingPickPage(): import('react').JSX.Element;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* create, schedule and generate them via the real mutations. Pre-launch
|
|
6
6
|
* workspaces start empty — no fabricated report history is shown.
|
|
7
7
|
*/
|
|
8
|
-
export default function ReportsPage(): import(
|
|
8
|
+
export default function ReportsPage(): import('react').JSX.Element;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* changes via updateModuleSettings. Integrations read "Not configured" until a
|
|
6
6
|
* real connection is recorded — no fabricated "Connected" statuses.
|
|
7
7
|
*/
|
|
8
|
-
export default function SettingsPage(): import(
|
|
8
|
+
export default function SettingsPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function ShipmentStatusAuthorityPage(): import(
|
|
1
|
+
export default function ShipmentStatusAuthorityPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function StockBindingPage(): import(
|
|
1
|
+
export default function StockBindingPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function StockObservationsPage(): import(
|
|
1
|
+
export default function StockObservationsPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function TrackingEventQualityPage(): import(
|
|
1
|
+
export default function TrackingEventQualityPage(): import('react').JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function TripUtilizationPage(): import(
|
|
1
|
+
export default function TripUtilizationPage(): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FC, PropsWithChildren } from 'react';
|
|
2
2
|
import { MoveTheWheelsRootProps, MoveTheWheelsContextValue } from '../types';
|
|
3
|
-
|
|
4
3
|
export interface MoveTheWheelsProviderProps extends PropsWithChildren<MoveTheWheelsRootProps> {
|
|
5
4
|
}
|
|
6
5
|
export declare const MoveTheWheelsProvider: FC<MoveTheWheelsProviderProps>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { localProcedureInstant } from './procedureInput';
|
|
2
|
-
|
|
3
2
|
export declare const consolidationInstant: typeof localProcedureInstant;
|
|
4
3
|
export declare function nullableText(value: string): string | null;
|
|
5
4
|
/** Keep decimal source text exact. Blank facts are unknown, and explicit zero remains zero. */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReuseRecovery } from './reuseRecovery';
|
|
2
|
-
|
|
3
2
|
export declare const CONSOLIDATION_RECOVERY_STORAGE = "movethewheels.consolidation.unresolved.v1";
|
|
4
3
|
export declare function decodeConsolidationRecovery(raw: string | null): ReuseRecovery | null;
|
|
5
4
|
export declare function encodeConsolidationRecovery(attempt: ReuseRecovery): string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ConsolidationObservationsDocument, ConsolidationObservationsQuery, MtwConsolidationReportKind } from '../../generated/consolidation-operations';
|
|
2
|
-
|
|
3
2
|
type Report = ConsolidationObservationsQuery['mtwConsolidationObservationPage']['items'][number];
|
|
4
3
|
export declare function findConsolidationReportHead(request: <T>(document: typeof ConsolidationObservationsDocument, variables: Record<string, unknown>) => Promise<T>, planId: string, lotId: string, kind: MtwConsolidationReportKind): Promise<Report | null>;
|
|
5
4
|
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { MtwFreightCommercialCaptureInput, MtwFreightCommercialStatus, FreightCommercialLegsQuery } from '../../generated/freight-cost-operations';
|
|
2
|
+
export declare const commercialSlots: readonly ["origin", "destination", "carrier", "service", "cargo", "weight", "volume", "equipment"];
|
|
3
|
+
export type CommercialSlot = (typeof commercialSlots)[number];
|
|
4
|
+
export type CommercialLeg = NonNullable<FreightCommercialLegsQuery['shipment']>['legs'][number];
|
|
5
|
+
export type CommercialCapture = MtwFreightCommercialCaptureInput;
|
|
6
|
+
export declare const unrecordedCommercialReason = "Not recorded for this cost version";
|
|
7
|
+
export interface CommercialFactDraft {
|
|
8
|
+
status: MtwFreightCommercialStatus;
|
|
9
|
+
reason: string;
|
|
10
|
+
label: string;
|
|
11
|
+
reference: string;
|
|
12
|
+
description: string;
|
|
13
|
+
kind: string;
|
|
14
|
+
jurisdiction: string;
|
|
15
|
+
amount: string;
|
|
16
|
+
unit: string;
|
|
17
|
+
zeroReason: string;
|
|
18
|
+
count: string;
|
|
19
|
+
sourceReference: string;
|
|
20
|
+
sourceRevision: string;
|
|
21
|
+
observedAt: string;
|
|
22
|
+
evidenceLinks: {
|
|
23
|
+
fileId: string;
|
|
24
|
+
versionId: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
27
|
+
export type CommercialDraft = Record<CommercialSlot, CommercialFactDraft>;
|
|
28
|
+
export interface CommercialEditorState {
|
|
29
|
+
facts: CommercialDraft;
|
|
30
|
+
selectedLegs: CommercialCapture['selectedLegs'];
|
|
31
|
+
reviewed: string | null;
|
|
32
|
+
}
|
|
33
|
+
export declare function newCommercialEditor(): CommercialEditorState;
|
|
34
|
+
export declare function newCommercialFact(status?: MtwFreightCommercialStatus): CommercialFactDraft;
|
|
35
|
+
export declare function newCommercialDraft(): CommercialDraft;
|
|
36
|
+
/** No source values are inferred from the owner snapshot or other fact slots. */
|
|
37
|
+
export declare function commercialCaptureInput(draft: CommercialDraft, pins: CommercialCapture['selectedLegs'], evidence: {
|
|
38
|
+
fileId: string;
|
|
39
|
+
versionId: string;
|
|
40
|
+
}[]): CommercialCapture;
|
|
41
|
+
export declare function commercialPinsMatch(pins: CommercialCapture['selectedLegs'], legs: CommercialLeg[], shipmentId: string): boolean;
|
|
42
|
+
/** Compare typed GraphQL output with the canonical input without trusting __typename or key order. */
|
|
43
|
+
export declare function commercialCanonical(value: unknown): string;
|
|
44
|
+
export declare function matchesCommercialCapture(receipt: unknown, input: Record<string, unknown>): boolean;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MtwFreightFactsInput, MtwFreightLineInput, MtwFreightFxInput, SaveMtwFreightEstimateInput } from '../../generated/freight-cost-operations';
|
|
2
|
-
|
|
3
2
|
export declare const freightCategories: readonly ["BASE_FREIGHT", "FUEL", "PRE_CARRIAGE", "ON_CARRIAGE", "ORIGIN_HANDLING", "DESTINATION_HANDLING", "INSURANCE", "ACCESSORIAL", "TAX_ESTIMATE", "DUTY_ESTIMATE", "BROKER", "FREE_TIME_EXPOSURE", "OTHER"];
|
|
4
3
|
export declare const freightLabel: (value: string) => string;
|
|
5
4
|
export declare const freightNullable: (value: string) => string | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReuseRecovery } from './reuseRecovery';
|
|
2
|
-
|
|
3
2
|
export declare const FREIGHT_RECOVERY_STORAGE = "movethewheels.freight.unresolved.v1";
|
|
4
3
|
export declare function decodeFreightRecovery(raw: string | null): ReuseRecovery | null;
|
|
5
4
|
export declare function encodeFreightRecovery(attempt: ReuseRecovery): string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CreateMtwPickTaskIntentInput, PickPreparationQuery } from '../../generated/pending-pick-operations';
|
|
2
|
-
|
|
3
2
|
type Context = PickPreparationQuery['mtwPickPreparation'];
|
|
4
3
|
export type PendingPickInput = Omit<CreateMtwPickTaskIntentInput, 'idempotencyKey'>;
|
|
5
4
|
export declare function pendingContextSignature(context: Context): string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { PickReviewReceiptFragment, RecordMtwPickReviewInput } from '../../generated/pending-pick-operations';
|
|
2
|
-
|
|
3
2
|
/** A truthy GraphQL data object is not an acknowledgment of the intended write. */
|
|
4
3
|
export declare function confirmPickReviewAcknowledgement(result: unknown, input: RecordMtwPickReviewInput, kind: PickReviewReceiptFragment['kind'], reviewerActorId: string): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MtwProcedureScopeInput, MtwProcedureStep } from '../../generated/logistics-procedure-operations';
|
|
2
|
-
|
|
3
2
|
export declare const procedureSteps: readonly MtwProcedureStep[];
|
|
4
3
|
export declare const stepLabel: Record<MtwProcedureStep, string>;
|
|
5
4
|
export declare function object(value: unknown): value is Record<string, unknown>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReuseRecovery } from './reuseRecovery';
|
|
2
|
-
|
|
3
2
|
export declare const PROCEDURE_RECOVERY_STORAGE = "movethewheels.procedure.unresolved.v1";
|
|
4
3
|
export declare function decodeProcedureRecovery(raw: string | null): ReuseRecovery | null;
|
|
5
4
|
export declare function encodeProcedureRecovery(attempt: ReuseRecovery): string;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MtwReuseSourceAttestationInput } from '../../generated/empty-reuse-operations';
|
|
2
2
|
import { SelectedEvidence } from '../components/ContainerEvidencePicker';
|
|
3
|
-
|
|
4
3
|
export declare function reuseText(values: FormData, name: string): string;
|
|
5
4
|
export declare function reuseInteger(values: FormData, name: string): number;
|
|
6
5
|
export declare function readReuseSource(values: FormData, name: string, evidence: SelectedEvidence[]): MtwReuseSourceAttestationInput | undefined;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RecordMtwStockBindingAssessmentInput, StockSourceContextFragment, StockAssessmentFragment } from '../../generated/stock-binding-operations';
|
|
2
2
|
import { SelectedEvidence } from '../components/ContainerEvidencePicker';
|
|
3
|
-
|
|
4
3
|
export interface StockDraftPin {
|
|
5
4
|
inventoryItemId: string;
|
|
6
5
|
expectedCargoItemId: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RecordMtwStockObservationInput } from '../../generated/stock-observation-operations';
|
|
2
|
-
|
|
3
2
|
/** Blank remains unknown, explicit zero remains zero; no inferred stock adjustment. */
|
|
4
3
|
export declare function reportedCount(value: string): number | null;
|
|
5
4
|
export declare function stockObservationInput(inventoryItemId: string, form: FormData): Omit<RecordMtwStockObservationInput, 'idempotencyKey'>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RecordMtwTripUtilizationReportInput, MtwTripUtilizationBasis, MtwTripUtilizationCoverage } from '../../generated/trip-utilization-operations';
|
|
2
2
|
import { SelectedEvidence } from '../components/ContainerEvidencePicker';
|
|
3
|
-
|
|
4
3
|
export type TripReportDraft = Omit<RecordMtwTripUtilizationReportInput, 'routeId' | 'vehicleId' | 'expectedRouteUpdatedAt' | 'expectedVehicleUpdatedAt' | 'idempotencyKey'>;
|
|
5
4
|
export declare function tripQuantity(text: string, maximum: number, positive?: boolean): number | null;
|
|
6
5
|
export declare function readTripDraft(values: FormData, ids: string[], basis: MtwTripUtilizationBasis, coverage: MtwTripUtilizationCoverage, evidence: SelectedEvidence[]): TripReportDraft;
|