@burdenoff/microfe-movethewheels 2026.1108.5 → 2026.1109.2
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 +62 -61
- package/dist/MoveTheWheelsRoutes.js +6 -7
- package/dist/_virtual/_rolldown/runtime.js +4 -5
- package/dist/components/AssignmentSuggestions.js +18 -19
- package/dist/components/CarbonFootprintPanel.js +17 -18
- package/dist/components/CarrierRecommendationDialog.js +1 -2
- package/dist/components/ContainerEvidencePicker.js +15 -16
- package/dist/components/CustomerDeliveryUpdatesFields.js +1 -2
- package/dist/components/CustomerNotificationSettingsCard.js +43 -44
- package/dist/components/CustomerPicker.js +24 -26
- package/dist/components/DataTable.js +169 -170
- package/dist/components/DispatchDecisionCard.js +24 -25
- package/dist/components/DocumentsCard.js +54 -55
- package/dist/components/EntityCombobox.js +21 -22
- package/dist/components/EpodCaptureForm.js +113 -117
- package/dist/components/ExportStatusBanner.js +6 -7
- package/dist/components/FleetAlertsPanel.js +28 -29
- package/dist/components/ForecastModelsPanel.js +2 -3
- package/dist/components/FormError.js +2 -3
- package/dist/components/FreeTimeAgreementForm.js +54 -55
- package/dist/components/GlassPanel.js +1 -2
- package/dist/components/InventoryCoverPanel.js +68 -69
- package/dist/components/MetricCard.js +1 -2
- package/dist/components/Notice.js +3 -4
- package/dist/components/OrderItemRow.js +21 -22
- package/dist/components/PageLayout.js +1 -2
- package/dist/components/ProofOfDeliveryCard.js +19 -20
- package/dist/components/ReturnInstructionForm.js +28 -29
- package/dist/components/ReuseControls.js +1 -2
- package/dist/components/ReusePermissionForm.js +23 -24
- package/dist/components/ReuseProposalForm.js +168 -169
- package/dist/components/ReuseSourceFields.js +1 -2
- package/dist/components/ScenarioPlanningPanel.js +80 -81
- package/dist/components/ShipmentDecisionPanel.js +59 -60
- package/dist/components/ShipmentRiskDialog.js +32 -33
- package/dist/components/ShippingQuoteResults.js +32 -33
- package/dist/components/SignaturePad.js +7 -8
- package/dist/components/StatusBadge.js +1 -2
- package/dist/components/StockActionDialogs.js +77 -78
- package/dist/components/TrackingAlertList.js +26 -27
- package/dist/components/UpcomingDemandPanel.js +24 -25
- package/dist/components/VehicleServiceCard.js +34 -39
- package/dist/components/charts/ChartShell.js +1 -2
- package/dist/components/charts/Sparkline.js +14 -15
- package/dist/components/charts/StatusDonut.js +12 -13
- package/dist/components/charts/TrendChart.js +29 -30
- package/dist/components/charts/VolumeBar.js +21 -22
- package/dist/components/charts/chartTokens.js +1 -2
- package/dist/components/charts/index.js +7 -6
- package/dist/components/consolidation/ConsolidationHistory.js +1 -2
- package/dist/components/consolidation/ConsolidationLotEditor.js +22 -23
- package/dist/components/consolidation/ConsolidationManifestWorkbench.js +30 -31
- package/dist/components/consolidation/ConsolidationPlanForm.js +44 -45
- package/dist/components/consolidation/ConsolidationPlanWorkbench.js +106 -105
- package/dist/components/consolidation/ConsolidationReportForm.js +17 -18
- package/dist/components/consolidation/ConsolidationReportsWorkbench.js +35 -36
- package/dist/components/consolidation/ConsolidationSummary.js +1 -2
- package/dist/components/consolidation/OriginalConsolidationHistory.js +15 -16
- package/dist/components/freight-cost/FreightCommercialEditor.js +39 -40
- package/dist/components/freight-cost/FreightCommercialFactEditor.js +2 -3
- package/dist/components/freight-cost/FreightCommercialHistory.js +8 -9
- package/dist/components/freight-cost/FreightDraftForm.js +45 -47
- package/dist/components/freight-cost/FreightFields.js +1 -2
- package/dist/components/freight-cost/FreightFxEditor.js +1 -2
- package/dist/components/freight-cost/FreightHistory.js +32 -33
- package/dist/components/freight-cost/FreightLineEditor.js +1 -2
- package/dist/components/freight-cost/FreightScopeEditor.js +1 -2
- package/dist/components/freight-cost/FreightTotals.js +1 -2
- package/dist/components/freight-invoice/InvoiceForm.js +41 -42
- package/dist/components/freight-invoice/InvoiceResults.js +42 -43
- package/dist/components/freight-invoice/InvoiceReviewPanel.js +26 -28
- package/dist/components/freight-invoice/InvoiceReviewQueue.js +9 -10
- package/dist/components/index.js +22 -21
- package/dist/components/logistics-procedure/ProcedureDecisionForm.js +24 -25
- package/dist/components/logistics-procedure/ProcedureFields.js +1 -2
- package/dist/components/logistics-procedure/ProcedureHistory.js +29 -30
- package/dist/components/logistics-procedure/ProcedurePolicyForm.js +27 -28
- package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +23 -24
- package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +43 -44
- package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +30 -31
- package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +1 -2
- package/dist/components/maps/LogisticsMap.js +12 -13
- package/dist/components/maps/MapCanvas.js +31 -29
- package/dist/components/maps/RouteMap.js +6 -7
- package/dist/components/maps/TrackingMap.js +17 -18
- package/dist/components/maps/index.js +6 -5
- package/dist/components/maps/leaflet-setup.js +2 -3
- package/dist/components/marketplace/MarketplaceDialogs.js +26 -28
- package/dist/components/pallet-preview/PalletPreviewResults.js +2 -3
- package/dist/components/pending-pick/PendingPickDraft.js +1 -2
- package/dist/components/pending-pick/PendingPickHistory.js +32 -33
- package/dist/components/pending-pick/PickCapture.js +1 -2
- package/dist/components/pending-pick/PickLineSelection.js +1 -2
- package/dist/components/pending-pick/PickReviewPanel.js +53 -53
- package/dist/components/stock-binding/StockAssessmentDraft.js +5 -6
- package/dist/components/stock-binding/StockAssessmentHistory.js +18 -19
- package/dist/components/stock-binding/StockAssessmentSummary.js +1 -2
- package/dist/components/stock-binding/StockFactForm.js +5 -6
- package/dist/components/stock-observation/StockIssueForm.js +1 -2
- package/dist/components/stock-observation/StockIssueHistory.js +1 -2
- package/dist/components/stock-observation/StockIssueReadPanel.js +1 -2
- package/dist/components/trip-utilization/TripReportForm.js +6 -7
- package/dist/components/trip-utilization/TripReportHistory.js +15 -16
- package/dist/components/trip-utilization/TripReportSummary.js +1 -2
- package/dist/components/trip-utilization/TripSegmentFields.js +14 -15
- package/dist/components/ui.js +1 -2
- package/dist/constants/index.js +1 -2
- package/dist/generated/wspace-operations.d.ts +91 -0
- package/dist/generated/wspace-types.d.ts +43259 -9124
- package/dist/hooks/index.js +12 -11
- package/dist/hooks/useAnalytics.js +3 -3
- package/dist/hooks/useCarrierIntegrations.js +1 -2
- package/dist/hooks/useConsolidationAction.js +12 -13
- package/dist/hooks/useConsumedFuelPreview.js +17 -18
- package/dist/hooks/useContainerCondition.js +4 -3
- package/dist/hooks/useContainerLifecycle.js +70 -80
- package/dist/hooks/useCustomers.js +17 -16
- package/dist/hooks/useDebouncedValue.js +1 -2
- package/dist/hooks/useDemandForecast.js +1 -2
- package/dist/hooks/useDispatchPlan.js +3 -3
- package/dist/hooks/useDocumentExtractions.js +12 -13
- package/dist/hooks/useDriverDay.js +3 -4
- package/dist/hooks/useEmptyReuseAction.js +1 -2
- package/dist/hooks/useEntityDocuments.js +25 -27
- package/dist/hooks/useEntityExport.js +7 -8
- package/dist/hooks/useEntityImport.js +1 -2
- package/dist/hooks/useEpod.js +79 -81
- package/dist/hooks/useFleet.js +70 -74
- package/dist/hooks/useFleetIntelligence.js +1 -2
- package/dist/hooks/useForecastModelChoices.js +1 -2
- package/dist/hooks/useFreightRecoveryAction.js +15 -16
- package/dist/hooks/useInventory.js +59 -60
- package/dist/hooks/useInventoryCoverPlan.js +2 -3
- package/dist/hooks/useInvoiceComparisonRecovery.js +52 -52
- package/dist/hooks/useInvoiceReviewPermissions.js +1 -2
- package/dist/hooks/useMarketplace.js +1 -2
- package/dist/hooks/useMultiModalShipments.js +1 -2
- package/dist/hooks/useOrderDispatch.js +6 -5
- package/dist/hooks/useOrders.js +44 -46
- package/dist/hooks/usePalletPreview.js +19 -20
- package/dist/hooks/useProcedureAction.js +24 -25
- package/dist/hooks/useProcedureSelection.js +6 -7
- package/dist/hooks/useRefetchOnLeaveEdit.js +1 -2
- package/dist/hooks/useReuseRecoveryAction.js +26 -27
- package/dist/hooks/useRoutes.js +100 -63
- package/dist/hooks/useScenarioPlanning.js +20 -21
- package/dist/hooks/useShipmentDecision.js +1 -2
- package/dist/hooks/useShipmentPermissions.js +1 -2
- package/dist/hooks/useShipmentRisk.js +12 -14
- package/dist/hooks/useShipmentStatusAuthority.js +7 -5
- package/dist/hooks/useShippingCarriers.js +1 -2
- package/dist/hooks/useTracking.js +53 -52
- package/dist/hooks/useTrackingEventQuality.js +26 -27
- package/dist/index.js +15 -15
- package/dist/movethewheels/hooks/useRoutes.d.ts +3 -2
- package/dist/movethewheels/store/movethewheelsStore.d.ts +1 -1
- package/dist/movethewheels/types/index.d.ts +21 -1
- package/dist/node_modules/@react-leaflet/core/lib/attribution.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/component.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/context.js +0 -1
- package/dist/node_modules/@react-leaflet/core/lib/div-overlay.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/element.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/events.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/generic.js +9 -6
- package/dist/node_modules/@react-leaflet/core/lib/grid-layer.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/layer.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/pane.js +1 -2
- package/dist/node_modules/@react-leaflet/core/lib/path.js +6 -7
- package/dist/node_modules/clsx/dist/clsx.js +8 -7
- package/dist/node_modules/d3-array/dist/d3-array.js +202 -0
- package/dist/node_modules/d3-color/dist/d3-color.js +386 -0
- package/dist/node_modules/d3-format/dist/d3-format.js +184 -0
- package/dist/node_modules/d3-interpolate/dist/d3-interpolate.js +183 -0
- package/dist/node_modules/d3-path/{src/path.js → dist/d3-path.js} +38 -13
- package/dist/node_modules/d3-scale/dist/d3-scale.js +620 -0
- package/dist/node_modules/d3-shape/dist/d3-shape.js +899 -0
- package/dist/node_modules/d3-time/dist/d3-time.js +239 -0
- package/dist/node_modules/d3-time-format/{src/locale.js → dist/d3-time-format.js} +228 -173
- package/dist/node_modules/decimal.js-light/decimal.js +33 -30
- package/dist/node_modules/eventemitter3/index.js +2 -3
- package/dist/node_modules/fast-equals/dist/es/index.js +89 -72
- package/dist/node_modules/leaflet/dist/leaflet-src.js +114 -167
- package/dist/node_modules/lodash/_DataView.js +4 -5
- package/dist/node_modules/lodash/_Hash.js +1 -2
- package/dist/node_modules/lodash/_ListCache.js +1 -2
- package/dist/node_modules/lodash/_Map.js +4 -5
- package/dist/node_modules/lodash/_MapCache.js +1 -2
- package/dist/node_modules/lodash/_Promise.js +4 -5
- package/dist/node_modules/lodash/_Set.js +4 -5
- package/dist/node_modules/lodash/_SetCache.js +1 -2
- package/dist/node_modules/lodash/_Stack.js +1 -2
- package/dist/node_modules/lodash/_Symbol.js +1 -2
- package/dist/node_modules/lodash/_Uint8Array.js +1 -2
- package/dist/node_modules/lodash/_WeakMap.js +4 -5
- package/dist/node_modules/lodash/_apply.js +1 -2
- package/dist/node_modules/lodash/_arrayEvery.js +1 -2
- package/dist/node_modules/lodash/_arrayFilter.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludes.js +1 -2
- package/dist/node_modules/lodash/_arrayIncludesWith.js +1 -2
- package/dist/node_modules/lodash/_arrayLikeKeys.js +5 -6
- package/dist/node_modules/lodash/_arrayMap.js +1 -2
- package/dist/node_modules/lodash/_arrayPush.js +1 -2
- package/dist/node_modules/lodash/_arraySome.js +1 -2
- package/dist/node_modules/lodash/_asciiToArray.js +1 -2
- package/dist/node_modules/lodash/_assocIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseAssignValue.js +1 -2
- package/dist/node_modules/lodash/_baseEach.js +1 -2
- package/dist/node_modules/lodash/_baseEvery.js +1 -2
- package/dist/node_modules/lodash/_baseExtremum.js +1 -2
- package/dist/node_modules/lodash/_baseFindIndex.js +1 -2
- package/dist/node_modules/lodash/_baseFlatten.js +1 -2
- package/dist/node_modules/lodash/_baseFor.js +1 -2
- package/dist/node_modules/lodash/_baseForOwn.js +4 -5
- package/dist/node_modules/lodash/_baseGet.js +1 -2
- package/dist/node_modules/lodash/_baseGetAllKeys.js +4 -5
- package/dist/node_modules/lodash/_baseGetTag.js +1 -2
- package/dist/node_modules/lodash/_baseGt.js +1 -2
- package/dist/node_modules/lodash/_baseHasIn.js +1 -2
- package/dist/node_modules/lodash/_baseIndexOf.js +1 -2
- package/dist/node_modules/lodash/_baseIsArguments.js +1 -2
- package/dist/node_modules/lodash/_baseIsEqual.js +4 -5
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +10 -11
- package/dist/node_modules/lodash/_baseIsMatch.js +1 -2
- package/dist/node_modules/lodash/_baseIsNaN.js +1 -2
- package/dist/node_modules/lodash/_baseIsNative.js +5 -6
- package/dist/node_modules/lodash/_baseIsTypedArray.js +4 -5
- package/dist/node_modules/lodash/_baseIteratee.js +6 -7
- package/dist/node_modules/lodash/_baseKeys.js +1 -2
- package/dist/node_modules/lodash/_baseLt.js +1 -2
- package/dist/node_modules/lodash/_baseMap.js +4 -5
- package/dist/node_modules/lodash/_baseMatches.js +1 -2
- package/dist/node_modules/lodash/_baseMatchesProperty.js +7 -8
- package/dist/node_modules/lodash/_baseOrderBy.js +11 -12
- package/dist/node_modules/lodash/_baseProperty.js +1 -2
- package/dist/node_modules/lodash/_basePropertyDeep.js +1 -2
- package/dist/node_modules/lodash/_baseRange.js +1 -2
- package/dist/node_modules/lodash/_baseRest.js +1 -2
- package/dist/node_modules/lodash/_baseSetToString.js +5 -6
- package/dist/node_modules/lodash/_baseSlice.js +1 -2
- package/dist/node_modules/lodash/_baseSome.js +1 -2
- package/dist/node_modules/lodash/_baseSortBy.js +1 -2
- package/dist/node_modules/lodash/_baseTimes.js +1 -2
- package/dist/node_modules/lodash/_baseToString.js +6 -7
- package/dist/node_modules/lodash/_baseTrim.js +1 -2
- package/dist/node_modules/lodash/_baseUnary.js +1 -2
- package/dist/node_modules/lodash/_baseUniq.js +7 -8
- package/dist/node_modules/lodash/_cacheHas.js +1 -2
- package/dist/node_modules/lodash/_castPath.js +1 -2
- package/dist/node_modules/lodash/_castSlice.js +1 -2
- package/dist/node_modules/lodash/_compareAscending.js +1 -2
- package/dist/node_modules/lodash/_compareMultiple.js +1 -2
- package/dist/node_modules/lodash/_coreJsData.js +1 -2
- package/dist/node_modules/lodash/_createBaseEach.js +1 -2
- package/dist/node_modules/lodash/_createBaseFor.js +1 -2
- package/dist/node_modules/lodash/_createCaseFirst.js +6 -7
- package/dist/node_modules/lodash/_createFind.js +5 -6
- package/dist/node_modules/lodash/_createRange.js +4 -5
- package/dist/node_modules/lodash/_createSet.js +6 -7
- package/dist/node_modules/lodash/_defineProperty.js +1 -2
- package/dist/node_modules/lodash/_equalArrays.js +1 -2
- package/dist/node_modules/lodash/_equalByTag.js +5 -6
- package/dist/node_modules/lodash/_equalObjects.js +1 -2
- package/dist/node_modules/lodash/_freeGlobal.js +1 -2
- package/dist/node_modules/lodash/_getAllKeys.js +1 -2
- package/dist/node_modules/lodash/_getMapData.js +1 -2
- package/dist/node_modules/lodash/_getMatchData.js +4 -5
- package/dist/node_modules/lodash/_getNative.js +1 -2
- package/dist/node_modules/lodash/_getPrototype.js +1 -2
- package/dist/node_modules/lodash/_getRawTag.js +1 -2
- package/dist/node_modules/lodash/_getSymbols.js +1 -2
- package/dist/node_modules/lodash/_getTag.js +9 -10
- package/dist/node_modules/lodash/_getValue.js +1 -2
- package/dist/node_modules/lodash/_hasPath.js +8 -9
- package/dist/node_modules/lodash/_hasUnicode.js +1 -2
- package/dist/node_modules/lodash/_hashClear.js +1 -2
- package/dist/node_modules/lodash/_hashDelete.js +1 -2
- package/dist/node_modules/lodash/_hashGet.js +1 -2
- package/dist/node_modules/lodash/_hashHas.js +1 -2
- package/dist/node_modules/lodash/_hashSet.js +1 -2
- package/dist/node_modules/lodash/_isFlattenable.js +5 -6
- package/dist/node_modules/lodash/_isIndex.js +6 -7
- package/dist/node_modules/lodash/_isIterateeCall.js +5 -6
- package/dist/node_modules/lodash/_isKey.js +1 -2
- package/dist/node_modules/lodash/_isKeyable.js +1 -2
- package/dist/node_modules/lodash/_isMasked.js +1 -2
- package/dist/node_modules/lodash/_isPrototype.js +1 -2
- package/dist/node_modules/lodash/_isStrictComparable.js +1 -2
- package/dist/node_modules/lodash/_listCacheClear.js +1 -2
- package/dist/node_modules/lodash/_listCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_listCacheGet.js +1 -2
- package/dist/node_modules/lodash/_listCacheHas.js +1 -2
- package/dist/node_modules/lodash/_listCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheClear.js +1 -2
- package/dist/node_modules/lodash/_mapCacheDelete.js +1 -2
- package/dist/node_modules/lodash/_mapCacheGet.js +1 -2
- package/dist/node_modules/lodash/_mapCacheHas.js +1 -2
- package/dist/node_modules/lodash/_mapCacheSet.js +1 -2
- package/dist/node_modules/lodash/_mapToArray.js +1 -2
- package/dist/node_modules/lodash/_matchesStrictComparable.js +2 -3
- package/dist/node_modules/lodash/_memoizeCapped.js +1 -2
- package/dist/node_modules/lodash/_nativeCreate.js +1 -2
- package/dist/node_modules/lodash/_nativeKeys.js +1 -2
- package/dist/node_modules/lodash/_nodeUtil.js +1 -2
- package/dist/node_modules/lodash/_objectToString.js +1 -2
- package/dist/node_modules/lodash/_overArg.js +1 -2
- package/dist/node_modules/lodash/_overRest.js +1 -2
- package/dist/node_modules/lodash/_root.js +1 -2
- package/dist/node_modules/lodash/_setCacheAdd.js +4 -6
- package/dist/node_modules/lodash/_setCacheHas.js +1 -2
- package/dist/node_modules/lodash/_setToArray.js +1 -2
- package/dist/node_modules/lodash/_setToString.js +1 -2
- package/dist/node_modules/lodash/_shortOut.js +8 -9
- package/dist/node_modules/lodash/_stackClear.js +1 -2
- package/dist/node_modules/lodash/_stackDelete.js +1 -2
- package/dist/node_modules/lodash/_stackGet.js +1 -2
- package/dist/node_modules/lodash/_stackHas.js +1 -2
- package/dist/node_modules/lodash/_stackSet.js +1 -2
- package/dist/node_modules/lodash/_strictIndexOf.js +1 -2
- package/dist/node_modules/lodash/_stringToArray.js +4 -5
- package/dist/node_modules/lodash/_stringToPath.js +1 -2
- package/dist/node_modules/lodash/_toKey.js +2 -3
- package/dist/node_modules/lodash/_toSource.js +1 -2
- package/dist/node_modules/lodash/_trimmedEndIndex.js +1 -2
- package/dist/node_modules/lodash/_unicodeToArray.js +1 -2
- package/dist/node_modules/lodash/constant.js +1 -2
- package/dist/node_modules/lodash/debounce.js +1 -2
- package/dist/node_modules/lodash/eq.js +1 -2
- package/dist/node_modules/lodash/every.js +7 -8
- package/dist/node_modules/lodash/find.js +1 -2
- package/dist/node_modules/lodash/findIndex.js +4 -5
- package/dist/node_modules/lodash/flatMap.js +1 -2
- package/dist/node_modules/lodash/get.js +1 -2
- package/dist/node_modules/lodash/hasIn.js +1 -2
- package/dist/node_modules/lodash/identity.js +1 -2
- package/dist/node_modules/lodash/isArguments.js +4 -5
- package/dist/node_modules/lodash/isArray.js +1 -2
- package/dist/node_modules/lodash/isArrayLike.js +1 -2
- package/dist/node_modules/lodash/isBoolean.js +1 -2
- package/dist/node_modules/lodash/isBuffer.js +1 -2
- package/dist/node_modules/lodash/isEqual.js +1 -2
- package/dist/node_modules/lodash/isFunction.js +1 -2
- package/dist/node_modules/lodash/isLength.js +4 -6
- package/dist/node_modules/lodash/isNaN.js +1 -2
- package/dist/node_modules/lodash/isNil.js +1 -2
- package/dist/node_modules/lodash/isNumber.js +1 -2
- package/dist/node_modules/lodash/isObject.js +1 -2
- package/dist/node_modules/lodash/isObjectLike.js +1 -2
- package/dist/node_modules/lodash/isPlainObject.js +4 -5
- package/dist/node_modules/lodash/isString.js +4 -5
- package/dist/node_modules/lodash/isSymbol.js +1 -2
- package/dist/node_modules/lodash/isTypedArray.js +1 -2
- package/dist/node_modules/lodash/keys.js +1 -2
- package/dist/node_modules/lodash/last.js +1 -2
- package/dist/node_modules/lodash/map.js +6 -7
- package/dist/node_modules/lodash/mapValues.js +4 -5
- package/dist/node_modules/lodash/max.js +5 -6
- package/dist/node_modules/lodash/maxBy.js +5 -6
- package/dist/node_modules/lodash/memoize.js +1 -2
- package/dist/node_modules/lodash/min.js +5 -6
- package/dist/node_modules/lodash/minBy.js +4 -5
- package/dist/node_modules/lodash/noop.js +1 -2
- package/dist/node_modules/lodash/now.js +1 -2
- package/dist/node_modules/lodash/property.js +6 -7
- package/dist/node_modules/lodash/range.js +1 -2
- package/dist/node_modules/lodash/some.js +7 -8
- package/dist/node_modules/lodash/sortBy.js +1 -2
- package/dist/node_modules/lodash/stubArray.js +1 -2
- package/dist/node_modules/lodash/stubFalse.js +1 -2
- package/dist/node_modules/lodash/throttle.js +4 -5
- package/dist/node_modules/lodash/toFinite.js +2 -3
- package/dist/node_modules/lodash/toInteger.js +1 -2
- package/dist/node_modules/lodash/toNumber.js +4 -5
- package/dist/node_modules/lodash/toString.js +1 -2
- package/dist/node_modules/lodash/uniqBy.js +1 -2
- package/dist/node_modules/lodash/upperFirst.js +1 -2
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +6 -7
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +2 -3
- package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/badge-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/bell-ring.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/bot.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/box.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/boxes.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/building.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calculator.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar-clock.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/car.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chart-column.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-up-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check-big.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/clock.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/cloud-download.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/coffee.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/copy.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/dollar-sign.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/external-link.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-search.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-text.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/file-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/filter.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/fuel.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/git-compare.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/history.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/leaf.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/list.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/lock.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/map-pin.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/map.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/navigation.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/package-plus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/package.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/pause.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/pen-line.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/pencil.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/plane.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/play.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/radio-tower.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/receipt.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/route.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/save.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/scale.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/shield-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/ship.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sigma.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sliders-horizontal.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/square-pen.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/star.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/sticky-note.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/store.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/tag.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/thermometer.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/train-front.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-down.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/trending-up.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/truck.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/type.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-check.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-minus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-plus.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-round.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user-x.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/users.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/wand-sparkles.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/warehouse.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/wifi-off.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/wrench.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/icons/zap.js +3 -4
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +1 -2
- package/dist/node_modules/object-assign/index.js +1 -2
- package/dist/node_modules/prop-types/checkPropTypes.js +1 -2
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +1 -2
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +3 -3
- package/dist/node_modules/prop-types/index.js +1 -2
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -2
- package/dist/node_modules/prop-types/lib/has.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/react-leaflet/lib/MapContainer.js +1 -2
- package/dist/node_modules/react-leaflet/lib/Marker.js +7 -8
- package/dist/node_modules/react-leaflet/lib/Polyline.js +7 -8
- package/dist/node_modules/react-leaflet/lib/Popup.js +7 -7
- package/dist/node_modules/react-leaflet/lib/TileLayer.js +12 -12
- package/dist/node_modules/react-leaflet/lib/hooks.js +1 -2
- package/dist/node_modules/react-smooth/es6/Animate.js +31 -39
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +2 -5
- package/dist/node_modules/react-smooth/es6/configUpdate.js +1 -2
- package/dist/node_modules/react-smooth/es6/easing.js +1 -2
- package/dist/node_modules/react-smooth/es6/index.js +1 -2
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +1 -2
- package/dist/node_modules/react-smooth/es6/util.js +17 -16
- package/dist/node_modules/recharts/es6/cartesian/Area.js +95 -96
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +100 -101
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +23 -24
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +58 -65
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +33 -34
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +17 -18
- package/dist/node_modules/recharts/es6/cartesian/Line.js +76 -77
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +28 -29
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +22 -23
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +28 -29
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +8 -9
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +8 -9
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +5 -6
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +7 -8
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -4
- package/dist/node_modules/recharts/es6/chart/AreaChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/BarChart.js +7 -8
- package/dist/node_modules/recharts/es6/chart/LineChart.js +5 -6
- package/dist/node_modules/recharts/es6/chart/PieChart.js +11 -12
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +534 -533
- package/dist/node_modules/recharts/es6/component/Cell.js +1 -2
- package/dist/node_modules/recharts/es6/component/Cursor.js +16 -17
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +27 -28
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +11 -12
- package/dist/node_modules/recharts/es6/component/Label.js +78 -79
- package/dist/node_modules/recharts/es6/component/LabelList.js +16 -17
- package/dist/node_modules/recharts/es6/component/Legend.js +25 -22
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +14 -15
- package/dist/node_modules/recharts/es6/component/Text.js +17 -20
- package/dist/node_modules/recharts/es6/component/Tooltip.js +16 -17
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +1 -2
- package/dist/node_modules/recharts/es6/container/Layer.js +3 -4
- package/dist/node_modules/recharts/es6/container/Surface.js +3 -4
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +20 -20
- package/dist/node_modules/recharts/es6/polar/Pie.js +102 -106
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +28 -29
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +36 -39
- package/dist/node_modules/recharts/es6/shape/Cross.js +3 -4
- package/dist/node_modules/recharts/es6/shape/Curve.js +38 -49
- package/dist/node_modules/recharts/es6/shape/Dot.js +2 -3
- package/dist/node_modules/recharts/es6/shape/Polygon.js +3 -4
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +8 -9
- package/dist/node_modules/recharts/es6/shape/Sector.js +33 -34
- package/dist/node_modules/recharts/es6/shape/Symbols.js +26 -34
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +8 -9
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +20 -21
- package/dist/node_modules/recharts/es6/util/BarUtils.js +10 -11
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +32 -33
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +231 -236
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +1 -2
- package/dist/node_modules/recharts/es6/util/DataUtils.js +7 -8
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +20 -21
- package/dist/node_modules/recharts/es6/util/Events.js +0 -1
- package/dist/node_modules/recharts/es6/util/Global.js +0 -1
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +1 -2
- package/dist/node_modules/recharts/es6/util/LogUtils.js +9 -8
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +5 -6
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +10 -11
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +4 -5
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +1 -2
- package/dist/node_modules/recharts/es6/util/TickUtils.js +4 -4
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +0 -1
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +7 -6
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +1 -2
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +1 -2
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +1 -2
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +9 -10
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +1 -2
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +4 -5
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +3 -4
- package/dist/node_modules/recharts/es6/util/types.js +1 -2
- package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.development.js +31 -32
- package/dist/node_modules/recharts/node_modules/react-is/cjs/react-is.production.min.js +1 -2
- package/dist/node_modules/recharts/node_modules/react-is/index.js +2 -3
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +2 -3
- package/dist/node_modules/recharts-scale/es6/index.js +1 -1
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +1 -2
- package/dist/node_modules/recharts-scale/es6/util/utils.js +3 -4
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +134 -151
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +2 -3
- package/dist/node_modules/victory-vendor/es/d3-scale.js +28 -45
- package/dist/node_modules/zustand/esm/middleware.js +209 -112
- package/dist/pages/AnalyticsPage.js +41 -42
- package/dist/pages/ConsolidationPage.js +8 -9
- package/dist/pages/ConsumedFuelPreviewPage.js +60 -61
- package/dist/pages/ContainerConditionPage.js +49 -50
- package/dist/pages/ContainersPage.js +53 -53
- package/dist/pages/CreateOrderPage.js +134 -144
- package/dist/pages/CustomerDetailsPage.js +342 -345
- package/dist/pages/CustomersPage.js +36 -37
- package/dist/pages/DashboardPage.js +92 -93
- package/dist/pages/DeliveryCapturePage.js +199 -200
- package/dist/pages/DispatchPlanPage.js +94 -95
- package/dist/pages/DriverDetailsPage.js +393 -399
- package/dist/pages/DriversPage.js +64 -65
- package/dist/pages/EmptyReusePage.js +320 -321
- package/dist/pages/FinancePage.js +72 -70
- package/dist/pages/FleetPage.js +88 -89
- package/dist/pages/FreeTimePage.js +92 -92
- package/dist/pages/FreightEstimatePage.js +92 -93
- package/dist/pages/FreightInvoicePage.js +123 -124
- package/dist/pages/ImportExportPage.js +173 -178
- package/dist/pages/IntegrationsPage.js +264 -267
- package/dist/pages/InventoryPage.js +233 -234
- package/dist/pages/LiveTrackingPage.js +120 -121
- package/dist/pages/LogisticsProceduresPage.js +10 -11
- package/dist/pages/MarketplacePage.js +170 -171
- package/dist/pages/MultiModalShipmentPage.js +172 -177
- package/dist/pages/OrderDetailsPage.js +317 -318
- package/dist/pages/OrdersListPage.js +163 -164
- package/dist/pages/PalletPreviewPage.js +113 -114
- package/dist/pages/PendingPickPage.js +32 -33
- package/dist/pages/ProductDetailsPage.js +164 -166
- package/dist/pages/ProductsPage.js +39 -40
- package/dist/pages/ReportsPage.js +315 -316
- package/dist/pages/RouteDetailsPage.js +425 -357
- package/dist/pages/RoutesPage.js +39 -40
- package/dist/pages/SettingsPage.js +87 -88
- package/dist/pages/ShipmentStatusAuthorityPage.js +67 -67
- package/dist/pages/ShippingRatesPage.js +31 -32
- package/dist/pages/StockBindingPage.js +39 -40
- package/dist/pages/StockObservationsPage.js +23 -24
- package/dist/pages/TrackingEventQualityPage.js +30 -31
- package/dist/pages/TrackingPage.js +88 -89
- package/dist/pages/TripUtilizationPage.js +24 -25
- package/dist/pages/VehicleDetailsPage.js +241 -243
- package/dist/pages/VehiclesPage.js +59 -60
- package/dist/pages/WarehouseDetailsPage.js +151 -156
- package/dist/pages/WarehousesPage.js +33 -34
- package/dist/providers/ModuleSettingsProvider.js +1 -2
- package/dist/providers/MoveTheWheelsProvider.js +2 -7
- package/dist/services/createSandboxAssistantTransport.js +1 -2
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/src/generated/consolidation-operations.js +1 -2
- package/dist/src/generated/consumed-fuel-preview-operations.js +1 -2
- package/dist/src/generated/container-condition-operations.js +1 -2
- package/dist/src/generated/container-operations.js +1 -2
- package/dist/src/generated/empty-reuse-operations.js +1 -2
- package/dist/src/generated/free-time-operations.js +1 -2
- package/dist/src/generated/freight-cost-operations.js +1 -2
- package/dist/src/generated/freight-invoice-operations.js +1 -2
- package/dist/src/generated/logistics-procedure-operations.js +1 -2
- package/dist/src/generated/pallet-preview-operations.js +1 -2
- package/dist/src/generated/pending-pick-operations.js +1 -2
- package/dist/src/generated/shipment-status-authority-operations.js +1 -2
- package/dist/src/generated/stock-binding-operations.js +1 -2
- package/dist/src/generated/stock-observation-operations.js +1 -2
- package/dist/src/generated/tracking-quality-operations.js +1 -2
- package/dist/src/generated/trip-utilization-operations.js +1 -2
- package/dist/src/generated/wspace-operations.js +1 -2
- package/dist/store/movethewheelsStore.js +1 -2
- package/dist/utils/carrierIntegrations.js +4 -5
- package/dist/utils/cn.js +2 -3
- package/dist/utils/consolidationHistoryTarget.js +1 -2
- package/dist/utils/consolidationInput.js +1 -2
- package/dist/utils/consolidationLot.js +1 -2
- package/dist/utils/consolidationPins.js +1 -2
- package/dist/utils/consolidationRecovery.js +1 -2
- package/dist/utils/consolidationReportHead.js +1 -2
- package/dist/utils/consumedFuelInput.js +2 -3
- package/dist/utils/consumedFuelResponse.js +2 -3
- package/dist/utils/customerNotifications.js +2 -3
- package/dist/utils/driverLicenseExpiry.js +1 -2
- package/dist/utils/driverNavigation.js +2 -3
- package/dist/utils/entityExport.js +3 -4
- package/dist/utils/entityImport.js +3 -4
- package/dist/utils/formatters.js +41 -36
- package/dist/utils/freeTimeDate.js +1 -2
- package/dist/utils/freightAcknowledgement.js +1 -2
- package/dist/utils/freightCommercial.js +2 -3
- package/dist/utils/freightDraft.js +1 -2
- package/dist/utils/freightRecovery.js +1 -2
- package/dist/utils/graphqlClient.js +1 -2
- package/dist/utils/invoiceComparison.js +5 -6
- package/dist/utils/invoiceReview.js +1 -2
- package/dist/utils/mapMarkers.js +2 -3
- package/dist/utils/moduleSettings.js +2 -3
- package/dist/utils/navigation.js +2 -3
- package/dist/utils/orderPricing.js +1 -2
- package/dist/utils/orderValidation.js +3 -4
- package/dist/utils/orderVehicleHold.js +2 -3
- package/dist/utils/palletPreviewInput.js +1 -2
- package/dist/utils/palletPreviewResponse.js +2 -3
- package/dist/utils/pendingPickDraft.js +1 -2
- package/dist/utils/pickReviewAcknowledgement.js +1 -2
- package/dist/utils/procedureInput.js +1 -2
- package/dist/utils/procedureRecovery.js +1 -2
- package/dist/utils/reports.js +1 -2
- package/dist/utils/reuseAttempt.js +1 -2
- package/dist/utils/reuseForm.js +1 -2
- package/dist/utils/reuseRecovery.js +2 -3
- package/dist/utils/shipmentStatusDraft.js +1 -2
- package/dist/utils/stockBindingForm.js +1 -2
- package/dist/utils/stockBindingLabels.js +1 -2
- package/dist/utils/stockObservationForm.js +2 -3
- package/dist/utils/trackingAlerts.js +1 -2
- package/dist/utils/tripDraftContext.js +1 -2
- package/dist/utils/tripUtilizationForm.js +2 -3
- package/package.json +136 -86
- package/src/generated/wspace-operations.ts +13 -12
- package/src/generated/wspace-types.ts +43737 -9125
- package/src/movethewheels/hooks/useRoutes.ts +37 -10
- package/src/movethewheels/pages/RouteDetailsPage.tsx +107 -10
- package/src/movethewheels/types/index.ts +27 -1
- package/src/movethewheels/utils/orderPricing.test.ts +1 -1
- package/src/operations/wspace/movethewheels/fragments/core.graphql +15 -0
- package/src/operations/wspace/movethewheels/mutations/logistics.graphql +2 -2
- package/dist/node_modules/d3-array/src/ascending.js +0 -6
- package/dist/node_modules/d3-array/src/bisect.js +0 -8
- package/dist/node_modules/d3-array/src/bisector.js +0 -41
- package/dist/node_modules/d3-array/src/descending.js +0 -6
- package/dist/node_modules/d3-array/src/max.js +0 -12
- package/dist/node_modules/d3-array/src/min.js +0 -12
- package/dist/node_modules/d3-array/src/number.js +0 -13
- package/dist/node_modules/d3-array/src/quantile.js +0 -23
- package/dist/node_modules/d3-array/src/quickselect.js +0 -24
- package/dist/node_modules/d3-array/src/range.js +0 -8
- package/dist/node_modules/d3-array/src/sort.js +0 -15
- package/dist/node_modules/d3-array/src/ticks.js +0 -32
- package/dist/node_modules/d3-color/src/color.js +0 -289
- package/dist/node_modules/d3-color/src/define.js +0 -11
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -13
- package/dist/node_modules/d3-format/src/exponent.js +0 -7
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -11
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -9
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -11
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -27
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -18
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
- package/dist/node_modules/d3-format/src/identity.js +0 -6
- package/dist/node_modules/d3-format/src/locale.js +0 -84
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
- package/dist/node_modules/d3-interpolate/src/array.js +0 -13
- package/dist/node_modules/d3-interpolate/src/basis.js +0 -14
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +0 -11
- package/dist/node_modules/d3-interpolate/src/color.js +0 -23
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
- package/dist/node_modules/d3-interpolate/src/date.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.js +0 -8
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -14
- package/dist/node_modules/d3-interpolate/src/object.js +0 -12
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -17
- package/dist/node_modules/d3-interpolate/src/round.js +0 -8
- package/dist/node_modules/d3-interpolate/src/string.js +0 -26
- package/dist/node_modules/d3-interpolate/src/value.js +0 -16
- package/dist/node_modules/d3-scale/src/band.js +0 -50
- package/dist/node_modules/d3-scale/src/constant.js +0 -8
- package/dist/node_modules/d3-scale/src/continuous.js +0 -71
- package/dist/node_modules/d3-scale/src/diverging.js +0 -80
- package/dist/node_modules/d3-scale/src/identity.js +0 -18
- package/dist/node_modules/d3-scale/src/init.js +0 -27
- package/dist/node_modules/d3-scale/src/linear.js +0 -34
- package/dist/node_modules/d3-scale/src/log.js +0 -75
- package/dist/node_modules/d3-scale/src/nice.js +0 -8
- package/dist/node_modules/d3-scale/src/number.js +0 -6
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -29
- package/dist/node_modules/d3-scale/src/pow.js +0 -35
- package/dist/node_modules/d3-scale/src/quantile.js +0 -35
- package/dist/node_modules/d3-scale/src/quantize.js +0 -31
- package/dist/node_modules/d3-scale/src/radial.js +0 -37
- package/dist/node_modules/d3-scale/src/sequential.js +0 -65
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +0 -28
- package/dist/node_modules/d3-scale/src/symlog.js +0 -28
- package/dist/node_modules/d3-scale/src/threshold.js +0 -23
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -29
- package/dist/node_modules/d3-scale/src/time.js +0 -45
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
- package/dist/node_modules/d3-shape/src/area.js +0 -53
- package/dist/node_modules/d3-shape/src/array.js +0 -6
- package/dist/node_modules/d3-shape/src/constant.js +0 -8
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -47
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -48
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -44
- package/dist/node_modules/d3-shape/src/curve/bump.js +0 -38
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -34
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -92
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -37
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -45
- package/dist/node_modules/d3-shape/src/line.js +0 -28
- package/dist/node_modules/d3-shape/src/math.js +0 -6
- package/dist/node_modules/d3-shape/src/noop.js +0 -4
- package/dist/node_modules/d3-shape/src/offset/expand.js +0 -13
- package/dist/node_modules/d3-shape/src/offset/none.js +0 -6
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +0 -13
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +0 -19
- package/dist/node_modules/d3-shape/src/order/none.js +0 -7
- package/dist/node_modules/d3-shape/src/path.js +0 -17
- package/dist/node_modules/d3-shape/src/point.js +0 -9
- package/dist/node_modules/d3-shape/src/stack.js +0 -32
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -13
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -8
- package/dist/node_modules/d3-shape/src/symbol.js +0 -21
- package/dist/node_modules/d3-time/src/day.js +0 -19
- package/dist/node_modules/d3-time/src/duration.js +0 -4
- package/dist/node_modules/d3-time/src/hour.js +0 -17
- package/dist/node_modules/d3-time/src/interval.js +0 -26
- package/dist/node_modules/d3-time/src/millisecond.js +0 -12
- package/dist/node_modules/d3-time/src/minute.js +0 -17
- package/dist/node_modules/d3-time/src/month.js +0 -16
- package/dist/node_modules/d3-time/src/second.js +0 -11
- package/dist/node_modules/d3-time/src/ticks.js +0 -123
- package/dist/node_modules/d3-time/src/week.js +0 -23
- package/dist/node_modules/d3-time/src/year.js +0 -24
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -60
- package/dist/node_modules/internmap/src/index.js +0 -38
package/dist/hooks/index.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "../shared/hooks/useTr.js";
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./useAnalytics.js";
|
|
8
|
-
import "./useTracking.js";
|
|
9
|
-
import "./useEntityDocuments.js";
|
|
10
|
-
import "./useDriverDay.js";
|
|
11
|
-
import "./useEpod.js";
|
|
1
|
+
import { useTr as e } from "../shared/hooks/useTr.js";
|
|
2
|
+
import { useOrder as t, useOrderStats as n, useOrders as r } from "./useOrders.js";
|
|
3
|
+
import { useDriver as i, useDriverStatusCounts as a, useDrivers as o, useFleet as s, useFleetStats as c, useVehicle as l, useVehicleDrivers as u, useVehicles as d } from "./useFleet.js";
|
|
4
|
+
import { useInventory as f, useInventoryStats as p, useInventoryTransactions as m, useProduct as h, useProductStockLevels as g, useProducts as _, useStockActions as v, useWarehouse as y, useWarehouses as b } from "./useInventory.js";
|
|
5
|
+
import { useCustomer as x, useCustomerStats as S, useCustomers as C } from "./useCustomers.js";
|
|
6
|
+
import { useRoute as w, useRouteStats as T, useRoutes as E } from "./useRoutes.js";
|
|
7
|
+
import { useAnalytics as D, useDashboardMetrics as O, useEmissionsSummary as k, useFinanceMetrics as A, useFleetAnalytics as j, useOrderAnalytics as M, usePerformanceAnalytics as N, useRevenueAnalytics as P } from "./useAnalytics.js";
|
|
8
|
+
import { useDriverTracking as F, useGeofence as I, useLiveTracking as L, useOrderTracking as R, useTracking as z, useTrackingAlerts as B, useVehicleTracking as V } from "./useTracking.js";
|
|
9
|
+
import { useEntityDocuments as H } from "./useEntityDocuments.js";
|
|
10
|
+
import { useMyDeliveryDay as U, useOnlineStatus as W } from "./useDriverDay.js";
|
|
11
|
+
import { useCaptureEpod as G, useEpod as K, useEpodPhotoUpload as q, useEpodPhotoUrl as J, useMyPendingEpodDeliveryJobs as Y } from "./useEpod.js";
|
|
12
|
+
export { D as useAnalytics, G as useCaptureEpod, x as useCustomer, S as useCustomerStats, C as useCustomers, O as useDashboardMetrics, i as useDriver, a as useDriverStatusCounts, F as useDriverTracking, o as useDrivers, k as useEmissionsSummary, H as useEntityDocuments, K as useEpod, q as useEpodPhotoUpload, J as useEpodPhotoUrl, A as useFinanceMetrics, s as useFleet, j as useFleetAnalytics, c as useFleetStats, I as useGeofence, f as useInventory, p as useInventoryStats, m as useInventoryTransactions, L as useLiveTracking, U as useMyDeliveryDay, Y as useMyPendingEpodDeliveryJobs, W as useOnlineStatus, t as useOrder, M as useOrderAnalytics, n as useOrderStats, R as useOrderTracking, r as useOrders, N as usePerformanceAnalytics, h as useProduct, g as useProductStockLevels, _ as useProducts, P as useRevenueAnalytics, w as useRoute, T as useRouteStats, E as useRoutes, v as useStockActions, e as useTr, z as useTracking, B as useTrackingAlerts, l as useVehicle, u as useVehicleDrivers, V as useVehicleTracking, d as useVehicles, y as useWarehouse, b as useWarehouses };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
2
|
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
3
|
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
4
|
-
|
|
4
|
+
// src/movethewheels/hooks/useAnalytics.ts
|
|
5
5
|
var o = "\n query GetMovethewheelsAnalytics {\n analytics {\n orderTrend {\n label\n value\n }\n deliveryTrend {\n label\n value\n }\n revenueTrend {\n label\n value\n }\n }\n dashboardMetrics {\n totalDeliveryJobs\n activeDeliveries\n availableDrivers\n activeVehicles\n lowStockItems\n totalRevenue\n onTimeDeliveryRate\n customerSatisfaction\n }\n fleetStats {\n totalVehicles\n activeVehicles\n maintenanceVehicles\n avgDriverRating\n }\n }\n", s = "\n query GetDashboardMetrics {\n dashboardMetrics {\n totalDeliveryJobs\n activeDeliveries\n availableDrivers\n activeVehicles\n lowStockItems\n totalRevenue\n onTimeDeliveryRate\n customerSatisfaction\n }\n deliveryJobStats {\n total\n pending\n confirmed\n assigned\n pickedUp\n inTransit\n outForDelivery\n delivered\n cancelled\n failed\n returned\n }\n fleetStats {\n totalVehicles\n activeVehicles\n maintenanceVehicles\n totalDrivers\n availableDrivers\n onDeliveryDrivers\n avgDriverRating\n }\n financeMetrics {\n revenue {\n totalRevenue\n averageOrderValue\n }\n }\n }\n", c = "\n query GetOrderAnalytics {\n deliveryJobStats {\n pending\n confirmed\n assigned\n pickedUp\n inTransit\n outForDelivery\n delivered\n cancelled\n failed\n returned\n }\n analytics {\n orderTrend {\n label\n value\n }\n }\n }\n";
|
|
6
6
|
function l() {
|
|
7
7
|
return {
|
|
@@ -391,7 +391,8 @@ function y() {
|
|
|
391
391
|
]), b = n(async () => {
|
|
392
392
|
h(!0), v(null);
|
|
393
393
|
try {
|
|
394
|
-
|
|
394
|
+
let e = await t(y, g);
|
|
395
|
+
p(e.emissionsSummary);
|
|
395
396
|
} catch (e) {
|
|
396
397
|
v(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load emissions summary"));
|
|
397
398
|
} finally {
|
|
@@ -409,5 +410,4 @@ function y() {
|
|
|
409
410
|
}, [b])
|
|
410
411
|
};
|
|
411
412
|
}
|
|
412
|
-
//#endregion
|
|
413
413
|
export { u as useAnalytics, d as useDashboardMetrics, y as useEmissionsSummary, _ as useFinanceMetrics, m as useFleetAnalytics, p as useOrderAnalytics, v as usePerformanceAnalytics, f as useRevenueAnalytics };
|
|
@@ -2,7 +2,7 @@ import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
|
2
2
|
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
3
|
import { CREATE_INTEGRATION_MUTATION as n, DELETE_INTEGRATION_MUTATION as r, INTEGRATION_COUNTS_QUERY as i, INTEGRATION_EVENTS_QUERY as a, LIST_INTEGRATIONS_QUERY as o, POLL_INTEGRATION_NOW_MUTATION as s, UPDATE_INTEGRATION_MUTATION as c } from "../utils/carrierIntegrations.js";
|
|
4
4
|
import { useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
5
|
-
|
|
5
|
+
// src/movethewheels/hooks/useCarrierIntegrations.ts
|
|
6
6
|
function m() {
|
|
7
7
|
let { apiGatewayUrl: t, authToken: n, workspaceToken: r, workspaceId: i, tenantId: a, currentUser: o } = e();
|
|
8
8
|
return d(() => ({
|
|
@@ -138,5 +138,4 @@ function y() {
|
|
|
138
138
|
remove: async (n) => (await t(e, r, { id: n })).deleteIntegration
|
|
139
139
|
}), [e]);
|
|
140
140
|
}
|
|
141
|
-
//#endregion
|
|
142
141
|
export { y as useCarrierIntegrationActions, _ as useCarrierIntegrationCounts, v as useCarrierIntegrationEvents, g as useCarrierIntegrations };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useConditionApi as e } from "./useContainerCondition.js";
|
|
2
|
+
import { useMoveTheWheels as t } from "../providers/MoveTheWheelsProvider.js";
|
|
3
3
|
import { RecordConsolidationObservationDocument as n, SaveConsolidationManifestDocument as r, SaveConsolidationPlanDocument as i } from "../src/generated/consolidation-operations.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { originalConsolidationHistoryTarget as a } from "../utils/consolidationHistoryTarget.js";
|
|
5
|
+
import { consolidationAcknowledgement as o } from "../utils/consolidationInput.js";
|
|
6
|
+
import { reuseRecoveryContextKey as s, reuseRecoveryScope as c, sameReuseRecoveryScope as l } from "../utils/reuseRecovery.js";
|
|
7
7
|
import { CONSOLIDATION_RECOVERY_STORAGE as u, decodeConsolidationRecovery as d, encodeConsolidationRecovery as f } from "../utils/consolidationRecovery.js";
|
|
8
8
|
import { useRef as p, useState as m } from "react";
|
|
9
9
|
import { print as h } from "graphql";
|
|
10
|
-
|
|
10
|
+
// src/movethewheels/hooks/useConsolidationAction.ts
|
|
11
11
|
var g = [
|
|
12
12
|
i,
|
|
13
13
|
n,
|
|
@@ -28,7 +28,7 @@ function _() {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
function v() {
|
|
31
|
-
let n =
|
|
31
|
+
let n = e("SINGLE_ATTEMPT"), r = t(), i = c(r.currentUser?.id, r.workspaceId, r.tenantId, r.apiGatewayUrl, r.workspaceToken), [v] = m(_), [y, b] = m(v.attempt), [x, S] = m(v.blocked), C = p(y), w = p(!1), [T, E] = m(!1), D = s(i), [O, k] = m({
|
|
32
32
|
scopeKey: D,
|
|
33
33
|
error: null,
|
|
34
34
|
notice: null
|
|
@@ -44,12 +44,12 @@ function v() {
|
|
|
44
44
|
if (e) sessionStorage.setItem(u, f(e));
|
|
45
45
|
else {
|
|
46
46
|
let e = d(sessionStorage.getItem(u));
|
|
47
|
-
(!t || e?.key === t.key &&
|
|
47
|
+
(!t || e?.key === t.key && l(e.scope, t.scope)) && sessionStorage.removeItem(u);
|
|
48
48
|
}
|
|
49
49
|
C.current = e, b(e), S(!1);
|
|
50
50
|
}, F = async (e) => {
|
|
51
51
|
if (w.current) return null;
|
|
52
|
-
if (!
|
|
52
|
+
if (!l(e.scope, i)) return A("Return to the original account, organization, workspace and project before retrying."), null;
|
|
53
53
|
let t = g.find((t) => h(t) === e.operation);
|
|
54
54
|
if (!t) return A("The saved operation changed. Check history before abandoning this attempt."), null;
|
|
55
55
|
w.current = !0, E(!0), A(null), j(null);
|
|
@@ -58,7 +58,7 @@ function v() {
|
|
|
58
58
|
...e.input,
|
|
59
59
|
idempotencyKey: e.key
|
|
60
60
|
} });
|
|
61
|
-
if (!
|
|
61
|
+
if (!o(r, e.input, e.scope.actorId)) throw Error("The save reply could not be confirmed. Keep the original request and check history.");
|
|
62
62
|
return P(null, e), N((e) => e + 1), j(e.success), r;
|
|
63
63
|
} catch (e) {
|
|
64
64
|
return A(e instanceof Error ? e.message : "Unable to save. Check history before retrying."), null;
|
|
@@ -109,11 +109,10 @@ function v() {
|
|
|
109
109
|
revision: M,
|
|
110
110
|
uncertain: y !== null || x,
|
|
111
111
|
recoveryInvalid: x,
|
|
112
|
-
canRetry: y !== null &&
|
|
112
|
+
canRetry: y !== null && l(y.scope, i),
|
|
113
113
|
originalContext: y?.scope ?? null,
|
|
114
|
-
originalHistoryTarget:
|
|
114
|
+
originalHistoryTarget: a(y, i),
|
|
115
115
|
contextKey: D
|
|
116
116
|
};
|
|
117
117
|
}
|
|
118
|
-
//#endregion
|
|
119
118
|
export { v as useConsolidationAction };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { MtwConsumedFuelPreviewDocument as e } from "../src/generated/consumed-fuel-preview-operations.js";
|
|
2
|
+
import { useMoveTheWheels as t } from "../providers/MoveTheWheelsProvider.js";
|
|
3
|
+
import { executeGraphQL as n } from "../utils/graphqlClient.js";
|
|
4
4
|
import { parseConsumedFuelPreview as r, validateConsumedFuelEnvelope as i } from "../utils/consumedFuelResponse.js";
|
|
5
5
|
import { useCallback as a, useEffect as o, useLayoutEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
6
6
|
import { print as d } from "graphql";
|
|
7
|
-
|
|
8
|
-
var f = d(
|
|
7
|
+
// src/movethewheels/hooks/useConsumedFuelPreview.ts
|
|
8
|
+
var f = d(e);
|
|
9
9
|
function p() {
|
|
10
|
-
let { workspaceId:
|
|
11
|
-
workspaceId:
|
|
10
|
+
let { workspaceId: e, tenantId: d, currentUser: p, apiGatewayUrl: m, authToken: h, workspaceToken: g } = t(), _ = c(() => ({
|
|
11
|
+
workspaceId: e,
|
|
12
12
|
tenantId: d,
|
|
13
13
|
actorId: p?.id,
|
|
14
14
|
apiGatewayUrl: m,
|
|
15
15
|
authToken: h,
|
|
16
16
|
workspaceToken: g
|
|
17
17
|
}), [
|
|
18
|
-
|
|
18
|
+
e,
|
|
19
19
|
d,
|
|
20
20
|
p?.id,
|
|
21
21
|
m,
|
|
@@ -38,8 +38,8 @@ function p() {
|
|
|
38
38
|
let T = a(async (e) => {
|
|
39
39
|
if (v.current !== _ || b.current || !_.workspaceId || !_.actorId) return;
|
|
40
40
|
e = structuredClone(e);
|
|
41
|
-
let
|
|
42
|
-
b.current =
|
|
41
|
+
let t = new AbortController();
|
|
42
|
+
b.current = t;
|
|
43
43
|
let a = ++y.current;
|
|
44
44
|
S({
|
|
45
45
|
context: _,
|
|
@@ -50,21 +50,21 @@ function p() {
|
|
|
50
50
|
failed: !1
|
|
51
51
|
});
|
|
52
52
|
try {
|
|
53
|
-
let o =
|
|
53
|
+
let o = await n({
|
|
54
54
|
..._,
|
|
55
|
-
signal:
|
|
55
|
+
signal: t.signal,
|
|
56
56
|
validateResponse: i
|
|
57
|
-
}, f, { input: e }, "SINGLE_ATTEMPT"), e);
|
|
58
|
-
!
|
|
57
|
+
}, f, { input: e }, "SINGLE_ATTEMPT"), s = r(o, e);
|
|
58
|
+
!t.signal.aborted && v.current === _ && y.current === a && S({
|
|
59
59
|
context: _,
|
|
60
60
|
generation: a,
|
|
61
61
|
loading: !1,
|
|
62
|
-
result:
|
|
62
|
+
result: s,
|
|
63
63
|
input: e,
|
|
64
64
|
failed: !1
|
|
65
65
|
});
|
|
66
66
|
} catch {
|
|
67
|
-
!
|
|
67
|
+
!t.signal.aborted && v.current === _ && y.current === a && S({
|
|
68
68
|
context: _,
|
|
69
69
|
generation: a,
|
|
70
70
|
loading: !1,
|
|
@@ -73,7 +73,7 @@ function p() {
|
|
|
73
73
|
failed: !0
|
|
74
74
|
});
|
|
75
75
|
} finally {
|
|
76
|
-
b.current ===
|
|
76
|
+
b.current === t && (b.current = null);
|
|
77
77
|
}
|
|
78
78
|
}, [_]), E = x?.context === _;
|
|
79
79
|
return {
|
|
@@ -86,5 +86,4 @@ function p() {
|
|
|
86
86
|
failed: E ? x.failed : !1
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
//#endregion
|
|
90
89
|
export { p as useConsumedFuelPreview };
|
|
@@ -2,7 +2,7 @@ import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
|
2
2
|
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
3
|
import { useCallback as n, useEffect as r, useMemo as i, useRef as a, useState as o } from "react";
|
|
4
4
|
import { print as s } from "graphql";
|
|
5
|
-
|
|
5
|
+
// src/movethewheels/hooks/useContainerCondition.ts
|
|
6
6
|
function c(r = "RETRY_TRANSIENT") {
|
|
7
7
|
let { apiGatewayUrl: a, authToken: o, workspaceToken: c, workspaceId: l, tenantId: u, currentUser: d } = e(), f = i(() => ({
|
|
8
8
|
apiGatewayUrl: a,
|
|
@@ -34,7 +34,9 @@ function l(e, t, n = 0) {
|
|
|
34
34
|
data: null,
|
|
35
35
|
error: null,
|
|
36
36
|
loading: a !== "null"
|
|
37
|
-
}), a
|
|
37
|
+
}), a === "null") return;
|
|
38
|
+
let o = JSON.parse(a);
|
|
39
|
+
return i(e, o).then((e) => {
|
|
38
40
|
t && l({
|
|
39
41
|
...r,
|
|
40
42
|
data: e,
|
|
@@ -101,5 +103,4 @@ function u() {
|
|
|
101
103
|
}
|
|
102
104
|
};
|
|
103
105
|
}
|
|
104
|
-
//#endregion
|
|
105
106
|
export { u as useConditionAction, c as useConditionApi, l as useConditionQuery };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { useCallback as
|
|
1
|
+
import { CloseContainerCycleDocument as e, ContainerCyclesDocument as t, ContainerEventsDocument as n, ContainerRegistryDocument as r, OpenContainerCycleDocument as i, RecordContainerEventDocument as ee, RegisterContainerDocument as te } from "../src/generated/container-operations.js";
|
|
2
|
+
import { useMoveTheWheels as ne } from "../providers/MoveTheWheelsProvider.js";
|
|
3
|
+
import { executeGraphQL as a } from "../utils/graphqlClient.js";
|
|
4
|
+
import { useCallback as re, useEffect as o, useMemo as ie, useRef as s, useState as c } from "react";
|
|
5
5
|
import { print as l } from "graphql";
|
|
6
|
-
|
|
6
|
+
// src/movethewheels/hooks/useContainerLifecycle.ts
|
|
7
7
|
var u = [
|
|
8
8
|
"DRY_20",
|
|
9
9
|
"DRY_40",
|
|
@@ -31,7 +31,7 @@ function p(e) {
|
|
|
31
31
|
return e instanceof Error ? e.message : "The operation could not be completed.";
|
|
32
32
|
}
|
|
33
33
|
function m(u = !0) {
|
|
34
|
-
let { apiGatewayUrl: d, authToken: m, workspaceToken: h, workspaceId: g, tenantId: _, currentUser: v } =
|
|
34
|
+
let { apiGatewayUrl: d, authToken: m, workspaceToken: h, workspaceId: g, tenantId: _, currentUser: v } = ne(), y = ie(() => ({
|
|
35
35
|
apiGatewayUrl: d,
|
|
36
36
|
authToken: m,
|
|
37
37
|
workspaceToken: h,
|
|
@@ -45,88 +45,79 @@ function m(u = !0) {
|
|
|
45
45
|
g,
|
|
46
46
|
_,
|
|
47
47
|
v?.id
|
|
48
|
-
]), [b, x] = c([]), [ae, S] = c([]), [oe, C] = c([]), [se, w] = c(!1), [
|
|
49
|
-
|
|
48
|
+
]), [b, x] = c([]), [ae, S] = c([]), [oe, C] = c([]), [se, w] = c(!1), [T, E] = c(!1), [ce, D] = c(!1), [O, k] = c(""), [A, j] = c(""), [M, N] = c(0), [P, F] = c(0), [I, L] = c(0), [R, z] = c(0), [B, V] = c(!1), [H, U] = c(!1), [W, G] = c(!1), [le, K] = c(null), [ue, q] = c(null), [de, J] = c(null);
|
|
49
|
+
o(() => {
|
|
50
50
|
let e = !1;
|
|
51
|
-
if (
|
|
52
|
-
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
return t(y, l(ee), { pagination: {
|
|
51
|
+
if (V(!0), K(null), x([]), w(!1), !u) V(!1);
|
|
52
|
+
else return a(y, l(r), { pagination: {
|
|
56
53
|
limit: f,
|
|
57
|
-
offset:
|
|
54
|
+
offset: M * f
|
|
58
55
|
} }).then((t) => {
|
|
59
56
|
e || (x(t.mtwContainerPage.items), w(t.mtwContainerPage.hasMore));
|
|
60
57
|
}).catch((t) => {
|
|
61
|
-
e ||
|
|
58
|
+
e || K(p(t));
|
|
62
59
|
}).finally(() => {
|
|
63
|
-
e ||
|
|
60
|
+
e || V(!1);
|
|
64
61
|
}), () => {
|
|
65
62
|
e = !0;
|
|
66
63
|
};
|
|
67
64
|
}, [
|
|
68
65
|
y,
|
|
69
|
-
|
|
70
|
-
|
|
66
|
+
M,
|
|
67
|
+
R,
|
|
71
68
|
u
|
|
72
|
-
]),
|
|
73
|
-
|
|
74
|
-
}, [y]),
|
|
69
|
+
]), o(() => {
|
|
70
|
+
k(""), j(""), N(0), F(0), L(0);
|
|
71
|
+
}, [y]), o(() => {
|
|
75
72
|
let e = !1;
|
|
76
|
-
if (S([]),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
return H(!0), t(y, l(r), {
|
|
81
|
-
containerId: D,
|
|
73
|
+
if (S([]), E(!1), q(null), !u || !O) U(!1);
|
|
74
|
+
else return U(!0), a(y, l(t), {
|
|
75
|
+
containerId: O,
|
|
82
76
|
pagination: {
|
|
83
77
|
limit: f,
|
|
84
|
-
offset:
|
|
78
|
+
offset: P * f
|
|
85
79
|
}
|
|
86
80
|
}).then((t) => {
|
|
87
|
-
e || (S(t.mtwContainerCyclePage.items),
|
|
81
|
+
e || (S(t.mtwContainerCyclePage.items), E(t.mtwContainerCyclePage.hasMore));
|
|
88
82
|
}).catch((t) => {
|
|
89
|
-
e ||
|
|
83
|
+
e || q(p(t));
|
|
90
84
|
}).finally(() => {
|
|
91
|
-
e ||
|
|
85
|
+
e || U(!1);
|
|
92
86
|
}), () => {
|
|
93
87
|
e = !0;
|
|
94
88
|
};
|
|
95
89
|
}, [
|
|
96
90
|
y,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
O,
|
|
92
|
+
P,
|
|
93
|
+
R,
|
|
100
94
|
u
|
|
101
|
-
]),
|
|
95
|
+
]), o(() => {
|
|
102
96
|
let e = !1;
|
|
103
|
-
if (C([]),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
107
|
-
return W(!0), t(y, l(i), {
|
|
108
|
-
cycleId: k,
|
|
97
|
+
if (C([]), D(!1), J(null), !u || !A) G(!1);
|
|
98
|
+
else return G(!0), a(y, l(n), {
|
|
99
|
+
cycleId: A,
|
|
109
100
|
pagination: {
|
|
110
101
|
limit: f,
|
|
111
|
-
offset:
|
|
102
|
+
offset: I * f
|
|
112
103
|
}
|
|
113
104
|
}).then((t) => {
|
|
114
|
-
e || (C(t.mtwContainerEventPage.items),
|
|
105
|
+
e || (C(t.mtwContainerEventPage.items), D(t.mtwContainerEventPage.hasMore));
|
|
115
106
|
}).catch((t) => {
|
|
116
107
|
e || J(p(t));
|
|
117
108
|
}).finally(() => {
|
|
118
|
-
e ||
|
|
109
|
+
e || G(!1);
|
|
119
110
|
}), () => {
|
|
120
111
|
e = !0;
|
|
121
112
|
};
|
|
122
113
|
}, [
|
|
123
114
|
y,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
115
|
+
A,
|
|
116
|
+
I,
|
|
117
|
+
R,
|
|
127
118
|
u
|
|
128
119
|
]);
|
|
129
|
-
let Y =
|
|
120
|
+
let Y = re(() => z((e) => e + 1), []), X = s(/* @__PURE__ */ new Map()), Z = (e, t) => {
|
|
130
121
|
let n = JSON.stringify(t), r = X.current.get(e);
|
|
131
122
|
if (r?.fingerprint === n) return r.key;
|
|
132
123
|
let i = crypto.randomUUID();
|
|
@@ -135,65 +126,64 @@ function m(u = !0) {
|
|
|
135
126
|
key: i
|
|
136
127
|
}), i;
|
|
137
128
|
}, Q = (e) => {
|
|
138
|
-
|
|
129
|
+
k(e), j(""), F(0), L(0);
|
|
139
130
|
}, $ = (e) => {
|
|
140
|
-
|
|
131
|
+
j(e), L(0);
|
|
141
132
|
};
|
|
142
133
|
return {
|
|
143
134
|
containers: b,
|
|
144
135
|
cycles: ae,
|
|
145
136
|
events: oe,
|
|
146
|
-
containerId:
|
|
147
|
-
cycleId:
|
|
148
|
-
loading:
|
|
149
|
-
cyclesLoading:
|
|
150
|
-
eventsLoading:
|
|
151
|
-
error:
|
|
152
|
-
cycleError:
|
|
153
|
-
eventError:
|
|
154
|
-
page:
|
|
155
|
-
setPage:
|
|
156
|
-
cyclePage:
|
|
157
|
-
setCyclePage:
|
|
158
|
-
eventPage:
|
|
159
|
-
setEventPage:
|
|
137
|
+
containerId: O,
|
|
138
|
+
cycleId: A,
|
|
139
|
+
loading: B,
|
|
140
|
+
cyclesLoading: H,
|
|
141
|
+
eventsLoading: W,
|
|
142
|
+
error: le,
|
|
143
|
+
cycleError: ue,
|
|
144
|
+
eventError: de,
|
|
145
|
+
page: M,
|
|
146
|
+
setPage: N,
|
|
147
|
+
cyclePage: P,
|
|
148
|
+
setCyclePage: F,
|
|
149
|
+
eventPage: I,
|
|
150
|
+
setEventPage: L,
|
|
160
151
|
hasMore: se,
|
|
161
|
-
hasMoreCycles:
|
|
162
|
-
hasMoreEvents:
|
|
152
|
+
hasMoreCycles: T,
|
|
153
|
+
hasMoreEvents: ce,
|
|
163
154
|
selectContainer: Q,
|
|
164
155
|
selectCycle: $,
|
|
165
156
|
refresh: Y,
|
|
166
157
|
register: async (e) => {
|
|
167
|
-
let
|
|
158
|
+
let t = await a(y, l(te), { input: {
|
|
168
159
|
...e,
|
|
169
160
|
idempotencyKey: Z("register", e)
|
|
170
161
|
} });
|
|
171
|
-
X.current.delete("register"),
|
|
162
|
+
X.current.delete("register"), N(0), Y(), Q(t.registerMtwContainer.id);
|
|
172
163
|
},
|
|
173
164
|
openCycle: async (e) => {
|
|
174
|
-
let
|
|
165
|
+
let t = await a(y, l(i), { input: {
|
|
175
166
|
...e,
|
|
176
167
|
idempotencyKey: Z("open", e)
|
|
177
168
|
} });
|
|
178
|
-
X.current.delete("open"),
|
|
169
|
+
X.current.delete("open"), F(0), Y(), $(t.openMtwContainerCycle.id);
|
|
179
170
|
},
|
|
180
171
|
recordEvent: async (e) => {
|
|
181
|
-
await
|
|
172
|
+
await a(y, l(ee), { input: {
|
|
182
173
|
...e,
|
|
183
174
|
idempotencyKey: Z("record", e)
|
|
184
|
-
} }), X.current.delete("record"),
|
|
175
|
+
} }), X.current.delete("record"), L(0), Y();
|
|
185
176
|
},
|
|
186
|
-
closeCycle: async (
|
|
187
|
-
let
|
|
188
|
-
cycleId:
|
|
189
|
-
expectedVersion:
|
|
177
|
+
closeCycle: async (t) => {
|
|
178
|
+
let n = {
|
|
179
|
+
cycleId: t.id,
|
|
180
|
+
expectedVersion: t.version
|
|
190
181
|
};
|
|
191
|
-
await
|
|
192
|
-
...
|
|
193
|
-
idempotencyKey: Z("close",
|
|
182
|
+
await a(y, l(e), { input: {
|
|
183
|
+
...n,
|
|
184
|
+
idempotencyKey: Z("close", n)
|
|
194
185
|
} }), X.current.delete("close"), Y();
|
|
195
186
|
}
|
|
196
187
|
};
|
|
197
188
|
}
|
|
198
|
-
//#endregion
|
|
199
189
|
export { d as CONTAINER_EVENT_TYPES, u as EQUIPMENT_TYPES, m as useContainerLifecycle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
2
|
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
3
|
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
4
|
-
|
|
4
|
+
// src/movethewheels/hooks/useCustomers.ts
|
|
5
5
|
var o = "\n query ListCustomers($filter: CustomerFilterInput, $pagination: PaginationInput) {\n customers(filter: $filter, pagination: $pagination) {\n id\n name\n email\n phone\n type\n company\n address\n businessLicense\n taxId\n rating\n notifyByEmail\n notifyBySms\n createdAt\n updatedAt\n deletedAt\n }\n customersCount(filter: $filter)\n }\n", s = "\n query GetCustomer($id: ID!) {\n customer(id: $id) {\n id\n name\n email\n phone\n type\n company\n address\n businessLicense\n taxId\n rating\n notifyByEmail\n notifyBySms\n createdAt\n updatedAt\n deletedAt\n }\n }\n", c = "\n mutation CreateCustomer($input: CreateCustomerInput!) {\n createCustomer(input: $input) {\n id\n name\n email\n phone\n type\n company\n address\n businessLicense\n taxId\n rating\n notifyByEmail\n notifyBySms\n createdAt\n updatedAt\n deletedAt\n }\n }\n", l = "\n mutation UpdateCustomer($id: ID!, $input: UpdateCustomerInput!) {\n updateCustomer(id: $id, input: $input) {\n id\n name\n email\n phone\n type\n company\n address\n businessLicense\n taxId\n rating\n notifyByEmail\n notifyBySms\n createdAt\n updatedAt\n deletedAt\n }\n }\n", u = "\n mutation DeleteCustomer($id: ID!) {\n deleteCustomer(id: $id)\n }\n";
|
|
6
6
|
function d(e) {
|
|
7
7
|
let t = e.address ?? {};
|
|
@@ -54,7 +54,9 @@ function f(s = {}) {
|
|
|
54
54
|
offset: m
|
|
55
55
|
}
|
|
56
56
|
}), n = e.customers;
|
|
57
|
-
T(e.customersCount), D(m + n.length < e.customersCount)
|
|
57
|
+
T(e.customersCount), D(m + n.length < e.customersCount);
|
|
58
|
+
let r = n.map(d);
|
|
59
|
+
C(r);
|
|
58
60
|
} catch (e) {
|
|
59
61
|
N(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load customers"));
|
|
60
62
|
} finally {
|
|
@@ -168,18 +170,17 @@ function p(o) {
|
|
|
168
170
|
p,
|
|
169
171
|
m?.id
|
|
170
172
|
]), S = n(async () => {
|
|
171
|
-
if (!o)
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
v(!1);
|
|
173
|
+
if (!o) g(null);
|
|
174
|
+
else {
|
|
175
|
+
v(!0), b(null);
|
|
176
|
+
try {
|
|
177
|
+
let e = await t(x, s, { id: o });
|
|
178
|
+
g(e.customer ? d(e.customer) : null);
|
|
179
|
+
} catch (e) {
|
|
180
|
+
b(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load customer"));
|
|
181
|
+
} finally {
|
|
182
|
+
v(!1);
|
|
183
|
+
}
|
|
183
184
|
}
|
|
184
185
|
}, [o, x]);
|
|
185
186
|
return r(() => {
|
|
@@ -221,7 +222,8 @@ function h() {
|
|
|
221
222
|
(async () => {
|
|
222
223
|
g(!0), v(null);
|
|
223
224
|
try {
|
|
224
|
-
|
|
225
|
+
let e = await t(d, m);
|
|
226
|
+
p(e.customerStats);
|
|
225
227
|
} catch (e) {
|
|
226
228
|
v(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load customer stats"));
|
|
227
229
|
} finally {
|
|
@@ -234,5 +236,4 @@ function h() {
|
|
|
234
236
|
error: _
|
|
235
237
|
};
|
|
236
238
|
}
|
|
237
|
-
//#endregion
|
|
238
239
|
export { p as useCustomer, h as useCustomerStats, f as useCustomers };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect as e, useState as t } from "react";
|
|
2
|
-
|
|
2
|
+
// src/movethewheels/hooks/useDebouncedValue.ts
|
|
3
3
|
function n(n, r = 300) {
|
|
4
4
|
let [i, a] = t(n);
|
|
5
5
|
return e(() => {
|
|
@@ -7,5 +7,4 @@ function n(n, r = 300) {
|
|
|
7
7
|
return () => window.clearTimeout(e);
|
|
8
8
|
}, [n, r]), i;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { n as useDebouncedValue };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
2
|
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
3
|
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
4
|
-
|
|
4
|
+
// src/movethewheels/hooks/useDemandForecast.ts
|
|
5
5
|
var o = "\n query GetMovethewheelsDemandForecast($weeks: Int!, $varianceLimit: Int!) {\n demandForecastByLane(weeks: $weeks) {\n scopeType\n scopeKey\n scopeLabel\n periodStart\n periodEnd\n predictedVolume\n predictedRevenue\n actualVolume\n actualRevenue\n confidence\n model\n }\n demandForecastByCustomer(weeks: $weeks) {\n scopeType\n scopeKey\n scopeLabel\n periodStart\n periodEnd\n predictedVolume\n predictedRevenue\n actualVolume\n actualRevenue\n confidence\n model\n }\n laneVariance: demandForecastVariance(scopeType: LANE, limit: $varianceLimit) {\n scopeType\n scopeKey\n scopeLabel\n periodStart\n periodEnd\n predictedVolume\n actualVolume\n volumeVariance\n predictedRevenue\n actualRevenue\n revenueVariance\n }\n customerVariance: demandForecastVariance(scopeType: CUSTOMER, limit: $varianceLimit) {\n scopeType\n scopeKey\n scopeLabel\n periodStart\n periodEnd\n predictedVolume\n actualVolume\n volumeVariance\n predictedRevenue\n actualRevenue\n revenueVariance\n }\n }\n";
|
|
6
6
|
function s(s = 4, c = 8) {
|
|
7
7
|
let { apiGatewayUrl: l, authToken: u, workspaceToken: d, workspaceId: f, tenantId: p, currentUser: m } = e(), [h, g] = a([]), [_, v] = a([]), [y, b] = a([]), [x, S] = a([]), [C, w] = a(!1), [T, E] = a(null), D = i(() => ({
|
|
@@ -50,5 +50,4 @@ function s(s = 4, c = 8) {
|
|
|
50
50
|
}, [O])
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
//#endregion
|
|
54
53
|
export { s as useDemandForecast };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
2
|
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
3
|
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
4
|
-
|
|
4
|
+
// src/movethewheels/hooks/useDispatchPlan.ts
|
|
5
5
|
var o = "\n id\n status\n method\n aiStatus\n aiSummary\n aiModel\n assignments {\n id\n sequence\n shipmentId\n shipmentNumber\n estimatedDelivery\n vehicleId\n vehicleNumber\n vehicleType\n driverId\n driverName\n confidence\n reasons\n rationale\n aiRationale\n estimatedDistanceKm\n estimatedDurationMinutes\n decision\n decisionReason\n routeId\n }\n unassigned {\n shipmentId\n shipmentNumber\n reason\n }\n acceptedCount\n rejectedCount\n staleCount\n pendingCount\n expiresAt\n decidedAt\n createdAt\n", s = `
|
|
6
6
|
query LatestDispatchPlan {
|
|
7
7
|
mtwLatestDispatchPlan {
|
|
@@ -49,7 +49,8 @@ function f() {
|
|
|
49
49
|
let e = d(), [i, o] = a(null), [f, p] = a(!0), [m, h] = a(null), [g, _] = a(null), v = n(async () => {
|
|
50
50
|
p(!0), h(null);
|
|
51
51
|
try {
|
|
52
|
-
|
|
52
|
+
let n = await t(e, s);
|
|
53
|
+
o(n.mtwLatestDispatchPlan);
|
|
53
54
|
} catch (e) {
|
|
54
55
|
h(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load the dispatch plan"));
|
|
55
56
|
} finally {
|
|
@@ -84,5 +85,4 @@ function f() {
|
|
|
84
85
|
reject: n((n) => y("reject", () => t(e, u, { planId: n }, "SINGLE_ATTEMPT"), (e) => e.mtwRejectDispatchPlan), [e, y])
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
|
-
//#endregion
|
|
88
88
|
export { f as useDispatchPlan };
|