@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,8 +1,7 @@
|
|
|
1
1
|
import { ConsolidationPlanQuery } from '../../../generated/consolidation-operations';
|
|
2
2
|
import { useConsolidationAction } from '../../hooks/useConsolidationAction';
|
|
3
|
-
|
|
4
3
|
export declare function ConsolidationManifestWorkbench({ plan, actions, labels, }: {
|
|
5
4
|
plan: ConsolidationPlanQuery['mtwConsolidationPlan'];
|
|
6
5
|
actions: ReturnType<typeof useConsolidationAction>;
|
|
7
6
|
labels: Record<string, string>;
|
|
8
|
-
}): import(
|
|
7
|
+
}): import('react').JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { SaveMtwConsolidationPlanInput } from '../../../generated/consolidation-operations';
|
|
2
|
-
|
|
3
2
|
export type ConsolidationPlanPin = Omit<SaveMtwConsolidationPlanInput, 'facts' | 'evidence' | 'idempotencyKey'>;
|
|
4
3
|
export declare function ConsolidationPlanForm({ pin, busy, onSave, }: {
|
|
5
4
|
pin: ConsolidationPlanPin;
|
|
6
5
|
busy: boolean;
|
|
7
6
|
onSave: (input: Omit<SaveMtwConsolidationPlanInput, 'idempotencyKey'>) => Promise<void>;
|
|
8
|
-
}): import(
|
|
7
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useConsolidationAction } from '../../hooks/useConsolidationAction';
|
|
2
|
-
|
|
3
2
|
export declare function ConsolidationPlanWorkbench({ actions, }: {
|
|
4
3
|
actions: ReturnType<typeof useConsolidationAction>;
|
|
5
|
-
}): import(
|
|
4
|
+
}): import('react').JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ConsolidationPlanQuery, RecordMtwConsolidationObservationInput } from '../../../generated/consolidation-operations';
|
|
2
|
-
|
|
3
2
|
export type ConsolidationReportPin = Omit<RecordMtwConsolidationObservationInput, 'reportedQuantity' | 'reportedObservedAt' | 'reason' | 'source' | 'evidence' | 'idempotencyKey'>;
|
|
4
3
|
export declare function ConsolidationReportForm({ pin, lot, busy, onSave, }: {
|
|
5
4
|
pin: ConsolidationReportPin;
|
|
6
5
|
lot: ConsolidationPlanQuery['mtwConsolidationPlan']['facts']['lots'][number];
|
|
7
6
|
busy: boolean;
|
|
8
7
|
onSave: (input: Omit<RecordMtwConsolidationObservationInput, 'idempotencyKey'>) => Promise<void>;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ConsolidationPlanQuery } from '../../../generated/consolidation-operations';
|
|
2
2
|
import { useConsolidationAction } from '../../hooks/useConsolidationAction';
|
|
3
|
-
|
|
4
3
|
export declare function ConsolidationReportsWorkbench({ plan, actions, }: {
|
|
5
4
|
plan: ConsolidationPlanQuery['mtwConsolidationPlan'];
|
|
6
5
|
actions: ReturnType<typeof useConsolidationAction>;
|
|
7
|
-
}): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ConsolidationPreviewQuery } from '../../../generated/consolidation-operations';
|
|
2
|
-
|
|
3
2
|
export declare function ConsolidationSummary({ snapshot, labels, }: {
|
|
4
3
|
snapshot: ConsolidationPreviewQuery['previewMtwConsolidationManifest'];
|
|
5
4
|
labels: Record<string, string>;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OriginalConsolidationHistoryTarget } from '../../utils/consolidationHistoryTarget';
|
|
2
|
-
|
|
3
2
|
/** Read the retained request's history without changing its input, key or draft selections. */
|
|
4
3
|
export declare function OriginalConsolidationHistory({ target, revision, refresh, }: {
|
|
5
4
|
target: OriginalConsolidationHistoryTarget;
|
|
6
5
|
revision: number;
|
|
7
6
|
refresh: () => void;
|
|
8
|
-
}): import(
|
|
7
|
+
}): import('react').JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CommercialEditorState } from '../../utils/freightCommercial';
|
|
2
|
+
import { SelectedEvidence } from '../ContainerEvidencePicker';
|
|
3
|
+
export declare function FreightCommercialEditor({ value, onChange, shipmentId, evidence, }: {
|
|
4
|
+
value: CommercialEditorState | null;
|
|
5
|
+
onChange: (value: CommercialEditorState | null) => void;
|
|
6
|
+
shipmentId: string;
|
|
7
|
+
evidence: SelectedEvidence[];
|
|
8
|
+
}): import('react').JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CommercialSlot, CommercialFactDraft } from '../../utils/freightCommercial';
|
|
2
|
+
import { SelectedEvidence } from '../ContainerEvidencePicker';
|
|
3
|
+
export declare function FreightCommercialFactEditor({ slot, value, onChange, evidence, }: {
|
|
4
|
+
slot: CommercialSlot;
|
|
5
|
+
value: CommercialFactDraft;
|
|
6
|
+
onChange: (value: CommercialFactDraft) => void;
|
|
7
|
+
evidence: SelectedEvidence[];
|
|
8
|
+
}): import('react').JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FreightCommercialVersionQuery } from '../../../generated/freight-cost-operations';
|
|
2
|
+
export declare function FreightCommercialHistory({ capture, }: {
|
|
3
|
+
capture: FreightCommercialVersionQuery['mtwFreightEstimateVersion']['commercialCapture'];
|
|
4
|
+
}): import('react').JSX.Element;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { CommercialCapture } from '../../utils/freightCommercial';
|
|
1
2
|
import { MtwFreightFactsInput, PreviewFreightCostsQuery } from '../../../generated/freight-cost-operations';
|
|
2
3
|
import { SelectedEvidence } from '../ContainerEvidencePicker';
|
|
3
|
-
|
|
4
|
-
export declare function FreightDraftForm({ disabled, onPreview, onSave, }: {
|
|
4
|
+
export declare function FreightDraftForm({ disabled, shipmentId, onPreview, onSave, }: {
|
|
5
5
|
disabled: boolean;
|
|
6
|
+
shipmentId: string;
|
|
6
7
|
onPreview: (facts: MtwFreightFactsInput) => Promise<PreviewFreightCostsQuery['previewMtwFreightTotal']>;
|
|
7
|
-
onSave: (facts: MtwFreightFactsInput, evidence: SelectedEvidence[]) => Promise<void>;
|
|
8
|
-
}): import(
|
|
8
|
+
onSave: (facts: MtwFreightFactsInput, evidence: SelectedEvidence[], commercialCapture?: CommercialCapture) => Promise<void>;
|
|
9
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { MtwFreightCurrencyInput } from '../../../generated/freight-cost-operations';
|
|
3
|
-
|
|
4
3
|
export declare const freightInput = "mt-1 min-h-11 w-full rounded border p-2";
|
|
5
4
|
export declare function FreightText({ label, value, onChange, required, type, disabled, }: {
|
|
6
5
|
label: string;
|
|
@@ -9,15 +8,15 @@ export declare function FreightText({ label, value, onChange, required, type, di
|
|
|
9
8
|
required?: boolean;
|
|
10
9
|
type?: string;
|
|
11
10
|
disabled?: boolean;
|
|
12
|
-
}): import(
|
|
11
|
+
}): import('react').JSX.Element;
|
|
13
12
|
export declare function FreightSelect({ label, value, onChange, children, }: {
|
|
14
13
|
label: string;
|
|
15
14
|
value: string;
|
|
16
15
|
onChange: (value: string) => void;
|
|
17
16
|
children: ReactNode;
|
|
18
|
-
}): import(
|
|
17
|
+
}): import('react').JSX.Element;
|
|
19
18
|
export declare function FreightCurrency({ label, value, onChange, }: {
|
|
20
19
|
label: string;
|
|
21
20
|
value: MtwFreightCurrencyInput;
|
|
22
21
|
onChange: (value: MtwFreightCurrencyInput) => void;
|
|
23
|
-
}): import(
|
|
22
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MtwFreightFactsInput } from '../../../generated/freight-cost-operations';
|
|
2
|
-
|
|
3
2
|
export declare function FreightFxEditor({ value, onChange, }: {
|
|
4
3
|
value: MtwFreightFactsInput['fx'];
|
|
5
4
|
onChange: (value: MtwFreightFactsInput['fx']) => void;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FreightCommercialVersionQuery } from '../../../generated/freight-cost-operations';
|
|
3
2
|
export declare function FreightHistory({ record, }: {
|
|
4
|
-
record:
|
|
5
|
-
}): import(
|
|
3
|
+
record: FreightCommercialVersionQuery['mtwFreightEstimateVersion'];
|
|
4
|
+
}): import('react').JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { MtwFreightLineInput } from '../../../generated/freight-cost-operations';
|
|
2
|
-
|
|
3
2
|
export declare function FreightLineEditor({ line, others, onChange, onRemove, }: {
|
|
4
3
|
line: MtwFreightLineInput;
|
|
5
4
|
others: MtwFreightLineInput[];
|
|
6
5
|
onChange: (line: MtwFreightLineInput) => void;
|
|
7
6
|
onRemove: () => void;
|
|
8
|
-
}): import(
|
|
7
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MtwFreightFactsInput } from '../../../generated/freight-cost-operations';
|
|
2
|
-
|
|
3
2
|
export declare function FreightScopeEditor({ value, onChange, }: {
|
|
4
3
|
value: MtwFreightFactsInput['requirements'];
|
|
5
4
|
onChange: (value: MtwFreightFactsInput['requirements']) => void;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PreviewFreightCostsQuery, MtwFreightCurrencyInput } from '../../../generated/freight-cost-operations';
|
|
2
|
-
|
|
3
2
|
export declare function FreightTotals({ value, currency, }: {
|
|
4
3
|
value: PreviewFreightCostsQuery['previewMtwFreightTotal'];
|
|
5
4
|
currency: MtwFreightCurrencyInput | null | undefined;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MtwProcedureStep, ProcedureStepsQuery, ProcedureDeviationsQuery } from '../../../generated/logistics-procedure-operations';
|
|
2
|
-
|
|
3
2
|
type Decision = ProcedureStepsQuery['mtwProcedureStepPage']['items'][number];
|
|
4
3
|
type Deviation = ProcedureDeviationsQuery['mtwProcedureDeviationPage']['items'][number];
|
|
5
4
|
export declare function ProcedureStepForm({ executionId, step, previous, busy, onSave, }: {
|
|
@@ -8,7 +7,7 @@ export declare function ProcedureStepForm({ executionId, step, previous, busy, o
|
|
|
8
7
|
previous: Decision | null;
|
|
9
8
|
busy: boolean;
|
|
10
9
|
onSave: (input: Record<string, unknown>) => Promise<void>;
|
|
11
|
-
}): import(
|
|
10
|
+
}): import('react').JSX.Element;
|
|
12
11
|
export declare function ProcedureDeviationForm({ executionId, issue, previous, busy, onSave, onRevoke, }: {
|
|
13
12
|
executionId: string;
|
|
14
13
|
issue: Decision;
|
|
@@ -16,5 +15,5 @@ export declare function ProcedureDeviationForm({ executionId, issue, previous, b
|
|
|
16
15
|
busy: boolean;
|
|
17
16
|
onSave: (input: Record<string, unknown>) => Promise<void>;
|
|
18
17
|
onRevoke: (input: Record<string, unknown>) => Promise<void>;
|
|
19
|
-
}): import(
|
|
18
|
+
}): import('react').JSX.Element;
|
|
20
19
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
export declare function ProcedureField({ label, value, onChange, type, maxLength, required, }: {
|
|
4
3
|
label: string;
|
|
5
4
|
value: string;
|
|
@@ -7,11 +6,11 @@ export declare function ProcedureField({ label, value, onChange, type, maxLength
|
|
|
7
6
|
type?: string;
|
|
8
7
|
maxLength?: number;
|
|
9
8
|
required?: boolean;
|
|
10
|
-
}): import(
|
|
9
|
+
}): import('react').JSX.Element;
|
|
11
10
|
export declare function ProcedureGroup({ title, children }: {
|
|
12
11
|
title: string;
|
|
13
12
|
children: ReactNode;
|
|
14
|
-
}): import(
|
|
13
|
+
}): import('react').JSX.Element;
|
|
15
14
|
export declare function ProcedureTime({ value }: {
|
|
16
15
|
value: string | null | undefined;
|
|
17
|
-
}): import(
|
|
16
|
+
}): import('react').JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ProcedureRunQuery, ProcedureStepsQuery, ProcedureDeviationsQuery } from '../../../generated/logistics-procedure-operations';
|
|
2
|
-
|
|
3
2
|
export declare function ProcedureHistory({ run, steps, deviations, }: {
|
|
4
3
|
run: ProcedureRunQuery['mtwProcedureExecution'];
|
|
5
4
|
steps: ProcedureStepsQuery['mtwProcedureStepPage']['items'];
|
|
6
5
|
deviations: ProcedureDeviationsQuery['mtwProcedureDeviationPage']['items'];
|
|
7
|
-
}): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ProcedurePolicyQuery } from '../../../generated/logistics-procedure-operations';
|
|
2
|
-
|
|
3
2
|
type Policy = ProcedurePolicyQuery['mtwProcedureVersion'];
|
|
4
3
|
export declare function ProcedurePolicyForm({ reference, previous, busy, onSave, }: {
|
|
5
4
|
reference: string;
|
|
6
5
|
previous: Policy | null;
|
|
7
6
|
busy: boolean;
|
|
8
7
|
onSave: (input: Record<string, unknown>) => Promise<void>;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { useProcedureAction } from '../../hooks/useProcedureAction';
|
|
2
|
-
|
|
3
2
|
export declare function ProcedureRunWorkbench({ id, actions, }: {
|
|
4
3
|
id: string;
|
|
5
4
|
actions: ReturnType<typeof useProcedureAction>;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { useProcedureSelection } from '../../hooks/useProcedureSelection';
|
|
2
|
-
|
|
3
2
|
export declare function ProcedureSubjectPicker({ selection: s, busy, onChange, }: {
|
|
4
3
|
selection: ReturnType<typeof useProcedureSelection>;
|
|
5
4
|
busy: boolean;
|
|
6
5
|
onChange: () => void;
|
|
7
|
-
}): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { MapMarkerStatus } from './leaflet-setup';
|
|
2
|
-
|
|
3
2
|
export interface LogisticsMarker {
|
|
4
3
|
id: string;
|
|
5
4
|
lat: number;
|
|
@@ -26,5 +25,5 @@ interface LogisticsMapProps {
|
|
|
26
25
|
* (0,0) or non-finite values are treated as "no location" and filtered out, so
|
|
27
26
|
* the map is never dumped in the ocean. Empty markers → honest empty state.
|
|
28
27
|
*/
|
|
29
|
-
export declare function LogisticsMap({ markers, routes, height, className, fitToMarkers, emptyMessage, }: LogisticsMapProps): import(
|
|
28
|
+
export declare function LogisticsMap({ markers, routes, height, className, fitToMarkers, emptyMessage, }: LogisticsMapProps): import('react').JSX.Element;
|
|
30
29
|
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
3
2
|
/** SSR/lazy safety: only mount Leaflet (which touches the DOM) after mount. */
|
|
4
3
|
export declare function useIsMounted(): boolean;
|
|
5
4
|
/**
|
|
@@ -28,5 +27,5 @@ interface MapCanvasProps {
|
|
|
28
27
|
* mount-safety, container sizing, rounded/overflow styling, tile layer, and
|
|
29
28
|
* auto-fit. Renders `emptyState` when there is nothing to plot.
|
|
30
29
|
*/
|
|
31
|
-
export declare function MapCanvas({ points, height, className, fitToMarkers, center, zoom, children, emptyState, }: MapCanvasProps): import(
|
|
30
|
+
export declare function MapCanvas({ points, height, className, fitToMarkers, center, zoom, children, emptyState, }: MapCanvasProps): import('react').JSX.Element;
|
|
32
31
|
export {};
|
|
@@ -16,5 +16,5 @@ interface RouteMapProps {
|
|
|
16
16
|
* RouteMap — numbered stop markers in sequence connected by a polyline. Filters
|
|
17
17
|
* out stops without a real coordinate and orders the line by `sequence`.
|
|
18
18
|
*/
|
|
19
|
-
export declare function RouteMap({ stops, height, className, routeColor, emptyMessage, }: RouteMapProps): import(
|
|
19
|
+
export declare function RouteMap({ stops, height, className, routeColor, emptyMessage, }: RouteMapProps): import('react').JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -25,5 +25,5 @@ interface TrackingMapProps {
|
|
|
25
25
|
* pins and a live "current position" dot. Everything is filtered for real
|
|
26
26
|
* coordinates so a missing GPS fix never plots at null-island.
|
|
27
27
|
*/
|
|
28
|
-
export declare function TrackingMap({ origin, destination, trail, current, height, className, trailColor, emptyMessage, }: TrackingMapProps): import(
|
|
28
|
+
export declare function TrackingMap({ origin, destination, trail, current, height, className, trailColor, emptyMessage, }: TrackingMapProps): import('react').JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PickPreparationQuery } from '../../../generated/pending-pick-operations';
|
|
2
2
|
import { PendingPickInput } from '../../utils/pendingPickDraft';
|
|
3
|
-
|
|
4
3
|
export declare function PendingPickDraft({ context, locked, loading, count, reason, draft, stale, onCount, onReason, onReview, onSave, }: {
|
|
5
4
|
context: PickPreparationQuery['mtwPickPreparation'] | undefined;
|
|
6
5
|
locked: boolean;
|
|
@@ -13,4 +12,4 @@ export declare function PendingPickDraft({ context, locked, loading, count, reas
|
|
|
13
12
|
onReason: (value: string) => void;
|
|
14
13
|
onReview: () => void;
|
|
15
14
|
onSave: () => void;
|
|
16
|
-
}): import(
|
|
15
|
+
}): import('react').JSX.Element | null;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PickInventoryQuery } from '../../../generated/pending-pick-operations';
|
|
2
|
-
|
|
3
2
|
export declare function PickLineSelection({ inventory, sourceId, destinationId, locked, offset, onOffset, onSelect, onRefresh, refreshBusy, }: {
|
|
4
3
|
inventory: {
|
|
5
4
|
data: PickInventoryQuery | null;
|
|
@@ -14,4 +13,4 @@ export declare function PickLineSelection({ inventory, sourceId, destinationId,
|
|
|
14
13
|
onSelect: (side: 'source' | 'destination', id: string) => void;
|
|
15
14
|
onRefresh: () => void;
|
|
16
15
|
refreshBusy: boolean;
|
|
17
|
-
}): import(
|
|
16
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StockDraftPin, StockFactDraft } from '../../utils/stockBindingForm';
|
|
2
|
-
|
|
3
2
|
export declare function StockAssessmentDraft({ pin, mismatch, uncertain, startDisabled, formDisabled, onStart, onSubmit, }: {
|
|
4
3
|
pin: (StockDraftPin & {
|
|
5
4
|
generation: string;
|
|
@@ -10,4 +9,4 @@ export declare function StockAssessmentDraft({ pin, mismatch, uncertain, startDi
|
|
|
10
9
|
formDisabled: boolean;
|
|
11
10
|
onStart: () => void;
|
|
12
11
|
onSubmit: (draft: StockFactDraft) => Promise<void>;
|
|
13
|
-
}): import(
|
|
12
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { StockAssessmentFragment, StockBindingHistoryQuery } from '../../../generated/stock-binding-operations';
|
|
2
|
-
|
|
3
2
|
export declare function StockAssessmentHistory({ query, current, selected, onSelect, offset, onPage, busy, }: {
|
|
4
3
|
query: {
|
|
5
4
|
data: StockBindingHistoryQuery | null;
|
|
@@ -15,4 +14,4 @@ export declare function StockAssessmentHistory({ query, current, selected, onSel
|
|
|
15
14
|
offset: number;
|
|
16
15
|
onPage: (offset: number) => void;
|
|
17
16
|
busy: boolean;
|
|
18
|
-
}): import(
|
|
17
|
+
}): import('react').JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { StockAssessmentFragment } from '../../../generated/stock-binding-operations';
|
|
2
|
-
|
|
3
2
|
export declare function StockAssessmentSummary({ assessment, current, }: {
|
|
4
3
|
assessment: StockAssessmentFragment;
|
|
5
4
|
current?: {
|
|
6
5
|
id: string;
|
|
7
6
|
compositionEpoch: number;
|
|
8
7
|
} | null;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { StockFactDraft } from '../../utils/stockBindingForm';
|
|
2
|
-
|
|
3
2
|
export declare function StockFactForm({ busy, onSubmit, }: {
|
|
4
3
|
busy: boolean;
|
|
5
4
|
onSubmit: (draft: StockFactDraft) => Promise<void>;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { RecordMtwStockObservationInput } from '../../../generated/stock-observation-operations';
|
|
2
|
-
|
|
3
2
|
export declare function StockIssueForm({ inventoryItemId, disabled, onSubmit, }: {
|
|
4
3
|
inventoryItemId: string;
|
|
5
4
|
disabled: boolean;
|
|
6
5
|
onSubmit: (input: Omit<RecordMtwStockObservationInput, 'idempotencyKey'>) => Promise<void>;
|
|
7
|
-
}): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ReportedStockIssueFragment } from '../../../generated/stock-observation-operations';
|
|
2
|
-
|
|
3
2
|
export declare function StockIssueHistory({ items, onSelect, disabled, }: {
|
|
4
3
|
items: ReportedStockIssueFragment[];
|
|
5
4
|
onSelect: (id: string) => void;
|
|
6
5
|
disabled: boolean;
|
|
7
|
-
}): import(
|
|
6
|
+
}): import('react').JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { TripReportDraft } from '../../utils/tripUtilizationForm';
|
|
2
|
-
|
|
3
2
|
export declare function TripReportForm({ busy, onSubmit, }: {
|
|
4
3
|
busy: boolean;
|
|
5
4
|
onSubmit: (draft: TripReportDraft) => Promise<void>;
|
|
6
|
-
}): import(
|
|
5
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { UtilizationReportFragment, UtilizationReportsQuery } from '../../../generated/trip-utilization-operations';
|
|
2
|
-
|
|
3
2
|
export declare function TripReportHistory({ query, offset, onPage, selected, onSelect, busy, }: {
|
|
4
3
|
query: {
|
|
5
4
|
data: UtilizationReportsQuery | null;
|
|
@@ -11,4 +10,4 @@ export declare function TripReportHistory({ query, offset, onPage, selected, onS
|
|
|
11
10
|
selected: UtilizationReportFragment | null;
|
|
12
11
|
onSelect: (report: UtilizationReportFragment) => void;
|
|
13
12
|
busy: boolean;
|
|
14
|
-
}): import(
|
|
13
|
+
}): import('react').JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { MtwTripUtilizationBasis } from '../../../generated/trip-utilization-operations';
|
|
2
|
-
|
|
3
2
|
export declare function TripSegmentFields({ id, sequence, basis, onRemove, removable, }: {
|
|
4
3
|
id: string;
|
|
5
4
|
sequence: number;
|
|
6
5
|
basis: MtwTripUtilizationBasis;
|
|
7
6
|
onRemove: () => void;
|
|
8
7
|
removable: boolean;
|
|
9
|
-
}): import(
|
|
8
|
+
}): import('react').JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
|
2
|
-
|
|
3
2
|
/** F08 retains one unresolved request across entity/context remounts; it never sends automatically. */
|
|
4
3
|
export declare function useConsolidationAction(): {
|
|
5
4
|
run: (document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<Record<string, unknown> | null>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
|
2
2
|
import { GraphQLAttemptPolicy } from '../utils/graphqlClient';
|
|
3
|
-
|
|
4
3
|
export declare function useConditionApi(attemptPolicy?: GraphQLAttemptPolicy): <T>(document: DocumentNode, variables: Record<string, unknown>) => Promise<T>;
|
|
5
4
|
/** Bounded pages, cancellation of stale responses, and explicit access failures. */
|
|
6
5
|
export declare function useConditionQuery<T>(document: DocumentNode, variables: Record<string, unknown> | null, revision?: number): {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ContainerEquipmentFieldsFragment, ContainerCycleFieldsFragment, ContainerEventFieldsFragment, RegisterMtwContainerInput, OpenMtwContainerCycleInput, RecordMtwContainerEventInput } from '../../generated/container-operations';
|
|
2
|
-
|
|
3
2
|
export declare const EQUIPMENT_TYPES: readonly ["DRY_20", "DRY_40", "HIGH_CUBE_40", "REEFER_20", "REEFER_40", "OPEN_TOP", "FLAT_RACK", "TANK", "OTHER"];
|
|
4
3
|
export declare const CONTAINER_EVENT_TYPES: readonly ["GATE_OUT", "LOADED", "DISCHARGED", "AVAILABLE_FOR_PICKUP", "GATE_IN", "DELIVERED", "EMPTY_READY", "RETURN_REQUESTED", "EMPTY_RETURNED", "RETURN_ACCEPTED", "POSITION_UPDATE"];
|
|
5
4
|
export type EquipmentType = (typeof EQUIPMENT_TYPES)[number];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
|
2
|
-
|
|
3
2
|
/** An uncertain retry keeps its original body and key, even after a read refresh. */
|
|
4
3
|
export declare function useEmptyReuseAction(): {
|
|
5
4
|
run: <T>(document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<T | null>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
|
2
2
|
import { SaveFreightCostsMutation } from '../../generated/freight-cost-operations';
|
|
3
|
-
|
|
4
3
|
/** F06 retains one unresolved request across entity/context remounts; it never sends automatically. */
|
|
5
4
|
export declare function useFreightRecoveryAction(): {
|
|
6
5
|
run: (document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<SaveFreightCostsMutation | null>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { DocumentNode } from 'graphql';
|
|
2
|
-
|
|
3
2
|
/** F05 retains one unresolved request across entity/context remounts; it never sends automatically. */
|
|
4
3
|
export declare function useProcedureAction(): {
|
|
5
4
|
run: (document: DocumentNode, input: Record<string, unknown>, success: string) => Promise<Record<string, unknown> | null>;
|