@burdenoff/microfe-movethewheels 2026.525.2 → 2026.525.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/package.json +1 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/generated/global-operations.d.ts +0 -1
- package/dist/generated/global-types.d.ts +0 -23526
- package/dist/generated/wspace-operations.d.ts +0 -3704
- package/dist/generated/wspace-types.d.ts +0 -57850
- package/dist/index.d.ts +0 -4
- package/dist/movethewheels/MoveTheWheelsRoot.d.ts +0 -25
- package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +0 -7
- package/dist/movethewheels/components/DataTable.d.ts +0 -32
- package/dist/movethewheels/components/MetricCard.d.ts +0 -43
- package/dist/movethewheels/components/PageLayout.d.ts +0 -68
- package/dist/movethewheels/components/StatusBadge.d.ts +0 -49
- package/dist/movethewheels/components/index.d.ts +0 -10
- package/dist/movethewheels/components/ui.d.ts +0 -22
- package/dist/movethewheels/constants/index.d.ts +0 -24
- package/dist/movethewheels/constants/mockData.d.ts +0 -33
- package/dist/movethewheels/hooks/index.d.ts +0 -12
- package/dist/movethewheels/hooks/useAnalytics.d.ts +0 -118
- package/dist/movethewheels/hooks/useCustomers.d.ts +0 -37
- package/dist/movethewheels/hooks/useFleet.d.ts +0 -71
- package/dist/movethewheels/hooks/useInventory.d.ts +0 -60
- package/dist/movethewheels/hooks/useOrders.d.ts +0 -47
- package/dist/movethewheels/hooks/useRoutes.d.ts +0 -41
- package/dist/movethewheels/hooks/useTracking.d.ts +0 -69
- package/dist/movethewheels/index.d.ts +0 -30
- package/dist/movethewheels/pages/AIAssistantPage.d.ts +0 -4
- package/dist/movethewheels/pages/AnalyticsPage.d.ts +0 -4
- package/dist/movethewheels/pages/CreateOrderPage.d.ts +0 -6
- package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +0 -4
- package/dist/movethewheels/pages/CustomersPage.d.ts +0 -4
- package/dist/movethewheels/pages/DashboardPage.d.ts +0 -6
- package/dist/movethewheels/pages/DriverDetailsPage.d.ts +0 -4
- package/dist/movethewheels/pages/DriversPage.d.ts +0 -4
- package/dist/movethewheels/pages/FinancePage.d.ts +0 -4
- package/dist/movethewheels/pages/FleetPage.d.ts +0 -6
- package/dist/movethewheels/pages/ImportExportPage.d.ts +0 -4
- package/dist/movethewheels/pages/InventoryPage.d.ts +0 -4
- package/dist/movethewheels/pages/LiveTrackingPage.d.ts +0 -6
- package/dist/movethewheels/pages/MarketplacePage.d.ts +0 -4
- package/dist/movethewheels/pages/OrderDetailsPage.d.ts +0 -6
- package/dist/movethewheels/pages/OrdersListPage.d.ts +0 -6
- package/dist/movethewheels/pages/ProductDetailsPage.d.ts +0 -4
- package/dist/movethewheels/pages/ProductsPage.d.ts +0 -4
- package/dist/movethewheels/pages/ReportsPage.d.ts +0 -4
- package/dist/movethewheels/pages/RouteDetailsPage.d.ts +0 -4
- package/dist/movethewheels/pages/RoutesPage.d.ts +0 -4
- package/dist/movethewheels/pages/SettingsPage.d.ts +0 -4
- package/dist/movethewheels/pages/TrackingPage.d.ts +0 -6
- package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +0 -4
- package/dist/movethewheels/pages/VehiclesPage.d.ts +0 -4
- package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +0 -4
- package/dist/movethewheels/pages/WarehousesPage.d.ts +0 -4
- package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +0 -16
- package/dist/movethewheels/store/movethewheelsStore.d.ts +0 -73
- package/dist/movethewheels/types/index.d.ts +0 -655
- package/dist/movethewheels/utils/cn.d.ts +0 -6
- package/dist/movethewheels/utils/formatters.d.ts +0 -60
- package/dist/movethewheels/utils/graphqlClient.d.ts +0 -11
- package/dist/movethewheels/utils/index.d.ts +0 -7
- package/dist/movethewheels/utils/navigation.d.ts +0 -23
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Route, RouteStop } from '../types';
|
|
2
|
-
|
|
3
|
-
interface UseRoutesOptions {
|
|
4
|
-
driverId?: string;
|
|
5
|
-
vehicleId?: string;
|
|
6
|
-
status?: 'planned' | 'in_progress' | 'completed' | 'cancelled';
|
|
7
|
-
}
|
|
8
|
-
interface UseRoutesResult {
|
|
9
|
-
routes: Route[];
|
|
10
|
-
totalRoutes: number;
|
|
11
|
-
isLoading: boolean;
|
|
12
|
-
error: Error | null;
|
|
13
|
-
refetch: () => void;
|
|
14
|
-
createRoute: (route: Partial<Route>) => Promise<Route>;
|
|
15
|
-
updateRoute: (id: string, updates: Partial<Route>) => Promise<Route>;
|
|
16
|
-
deleteRoute: (id: string) => Promise<void>;
|
|
17
|
-
optimizeRoute: (routeId: string) => Promise<Route>;
|
|
18
|
-
updateStopStatus: (routeId: string, stopId: string, status: RouteStop['status']) => Promise<Route>;
|
|
19
|
-
}
|
|
20
|
-
export declare function useRoutes(options?: UseRoutesOptions): UseRoutesResult;
|
|
21
|
-
export declare function useRoute(routeId: string | undefined): {
|
|
22
|
-
route: Route | null;
|
|
23
|
-
isLoading: boolean;
|
|
24
|
-
error: Error | null;
|
|
25
|
-
refetch: () => undefined;
|
|
26
|
-
};
|
|
27
|
-
export declare function useRouteStats(): {
|
|
28
|
-
stats: {
|
|
29
|
-
totalRoutes: number;
|
|
30
|
-
totalDistance: number;
|
|
31
|
-
totalDuration: number;
|
|
32
|
-
avgDistance: number;
|
|
33
|
-
avgDuration: number;
|
|
34
|
-
completedRoutes: number;
|
|
35
|
-
inProgressRoutes: number;
|
|
36
|
-
plannedRoutes: number;
|
|
37
|
-
};
|
|
38
|
-
isLoading: boolean;
|
|
39
|
-
error: Error | null;
|
|
40
|
-
};
|
|
41
|
-
export {};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { Location, Tracking, TrackingAlert } from '../types';
|
|
2
|
-
|
|
3
|
-
interface UseTrackingOptions {
|
|
4
|
-
entityId?: string;
|
|
5
|
-
entityType?: 'order' | 'vehicle' | 'driver';
|
|
6
|
-
realtime?: boolean;
|
|
7
|
-
}
|
|
8
|
-
interface UseTrackingResult {
|
|
9
|
-
tracking: Tracking[];
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
error: Error | null;
|
|
12
|
-
refetch: () => void;
|
|
13
|
-
}
|
|
14
|
-
export declare function useTracking(options?: UseTrackingOptions): UseTrackingResult;
|
|
15
|
-
export declare function useOrderTracking(orderId: string | undefined): {
|
|
16
|
-
tracking: Tracking | null;
|
|
17
|
-
order: import('..').Order | null;
|
|
18
|
-
isLoading: boolean;
|
|
19
|
-
error: Error | null;
|
|
20
|
-
refetch: () => undefined;
|
|
21
|
-
};
|
|
22
|
-
export declare function useVehicleTracking(vehicleId: string | undefined): {
|
|
23
|
-
tracking: Tracking | null;
|
|
24
|
-
vehicle: import('..').Vehicle | null;
|
|
25
|
-
isLoading: boolean;
|
|
26
|
-
error: Error | null;
|
|
27
|
-
refetch: () => void;
|
|
28
|
-
};
|
|
29
|
-
export declare function useDriverTracking(driverId: string | undefined): {
|
|
30
|
-
tracking: Tracking | null;
|
|
31
|
-
driver: import('..').Driver | null;
|
|
32
|
-
isLoading: boolean;
|
|
33
|
-
error: Error | null;
|
|
34
|
-
refetch: () => void;
|
|
35
|
-
};
|
|
36
|
-
export declare function useLiveTracking(): {
|
|
37
|
-
activeDeliveries: {
|
|
38
|
-
order: import('..').Order;
|
|
39
|
-
driver: import('..').Driver | null;
|
|
40
|
-
vehicle: import('..').Vehicle | null;
|
|
41
|
-
tracking: Tracking | null;
|
|
42
|
-
estimatedArrival: Date | undefined;
|
|
43
|
-
}[];
|
|
44
|
-
isLoading: boolean;
|
|
45
|
-
error: Error | null;
|
|
46
|
-
refetch: () => undefined;
|
|
47
|
-
};
|
|
48
|
-
export declare function useTrackingAlerts(): {
|
|
49
|
-
alerts: TrackingAlert[];
|
|
50
|
-
unacknowledgedAlerts: TrackingAlert[];
|
|
51
|
-
acknowledgeAlert: (alertId: string) => Promise<void>;
|
|
52
|
-
isLoading: boolean;
|
|
53
|
-
error: Error | null;
|
|
54
|
-
refetch: () => undefined;
|
|
55
|
-
};
|
|
56
|
-
export declare function useGeofence(center: Location, radiusKm: number): {
|
|
57
|
-
entitiesInRange: {
|
|
58
|
-
type: "vehicle" | "driver";
|
|
59
|
-
entity: VehicleOrDriver;
|
|
60
|
-
distance: number;
|
|
61
|
-
}[];
|
|
62
|
-
isLoading: boolean;
|
|
63
|
-
error: null;
|
|
64
|
-
};
|
|
65
|
-
type VehicleOrDriver = {
|
|
66
|
-
id: string;
|
|
67
|
-
currentLocation?: Location;
|
|
68
|
-
};
|
|
69
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MoveTheWheels Microfrontend
|
|
3
|
-
*
|
|
4
|
-
* Provides a comprehensive logistics and supply chain management interface
|
|
5
|
-
* for orders, fleet, inventory, customers, and analytics.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```tsx
|
|
9
|
-
* import { MoveTheWheelsRoot, type MoveTheWheelsRootProps } from '@burdenoff/microfe-movethewheels';
|
|
10
|
-
*
|
|
11
|
-
* function App() {
|
|
12
|
-
* const props: MoveTheWheelsRootProps = {
|
|
13
|
-
* basePath: '/movethewheels',
|
|
14
|
-
* navigate: (path) => router.push(path),
|
|
15
|
-
* currentUser: { id: '1', email: 'user@example.com' },
|
|
16
|
-
* workspaceId: 'ws-123',
|
|
17
|
-
* apiGatewayUrl: 'https://api.example.com',
|
|
18
|
-
* authToken: 'token',
|
|
19
|
-
* };
|
|
20
|
-
*
|
|
21
|
-
* return <MoveTheWheelsRoot {...props} />;
|
|
22
|
-
* }
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export { MoveTheWheelsRoot } from './MoveTheWheelsRoot';
|
|
26
|
-
export type { MoveTheWheelsRootProps, MoveTheWheelsContextValue, Order, OrderItem, OrderStatus, OrderFilter, Customer, CustomerFilter, Vehicle, VehicleType, VehicleStatus, Driver, DriverStatus, Warehouse, Inventory, InventoryFilter, Product, Route, Tracking, Analytics, ServiceProvider, ServiceOffering, Notification, Address, Location, Dimensions, NavItem, FooterItem, User, UserRole, } from './types';
|
|
27
|
-
export { useMoveTheWheels, useMoveTheWheelsNavigate } from './providers/MoveTheWheelsProvider';
|
|
28
|
-
export { useMoveTheWheelsStore } from './store/movethewheelsStore';
|
|
29
|
-
export * from './hooks';
|
|
30
|
-
export * from './components';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FC, PropsWithChildren } from 'react';
|
|
2
|
-
import { MoveTheWheelsRootProps, MoveTheWheelsContextValue } from '../types';
|
|
3
|
-
|
|
4
|
-
export interface MoveTheWheelsProviderProps extends PropsWithChildren<MoveTheWheelsRootProps> {
|
|
5
|
-
}
|
|
6
|
-
export declare const MoveTheWheelsProvider: FC<MoveTheWheelsProviderProps>;
|
|
7
|
-
/**
|
|
8
|
-
* Hook to access the MoveTheWheels context.
|
|
9
|
-
*
|
|
10
|
-
* @throws Error if used outside of MoveTheWheelsProvider
|
|
11
|
-
*/
|
|
12
|
-
export declare function useMoveTheWheels(): MoveTheWheelsContextValue;
|
|
13
|
-
/**
|
|
14
|
-
* Hook to get the navigate function from context.
|
|
15
|
-
*/
|
|
16
|
-
export declare function useMoveTheWheelsNavigate(): (path: string) => void;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { OrderFilter, FleetFilter, InventoryFilter, CustomerFilter } from '../types';
|
|
2
|
-
|
|
3
|
-
interface MoveTheWheelsState {
|
|
4
|
-
viewMode: 'grid' | 'list' | 'table';
|
|
5
|
-
sidebarCollapsed: boolean;
|
|
6
|
-
selectedOrderId: string | null;
|
|
7
|
-
selectedVehicleId: string | null;
|
|
8
|
-
selectedDriverId: string | null;
|
|
9
|
-
selectedCustomerId: string | null;
|
|
10
|
-
selectedWarehouseId: string | null;
|
|
11
|
-
selectedRouteId: string | null;
|
|
12
|
-
orderFilters: OrderFilter;
|
|
13
|
-
fleetFilters: FleetFilter;
|
|
14
|
-
inventoryFilters: InventoryFilter;
|
|
15
|
-
customerFilters: CustomerFilter;
|
|
16
|
-
globalSearch: string;
|
|
17
|
-
setViewMode: (mode: 'grid' | 'list' | 'table') => void;
|
|
18
|
-
setSidebarCollapsed: (collapsed: boolean) => void;
|
|
19
|
-
toggleSidebar: () => void;
|
|
20
|
-
setSelectedOrderId: (id: string | null) => void;
|
|
21
|
-
setSelectedVehicleId: (id: string | null) => void;
|
|
22
|
-
setSelectedDriverId: (id: string | null) => void;
|
|
23
|
-
setSelectedCustomerId: (id: string | null) => void;
|
|
24
|
-
setSelectedWarehouseId: (id: string | null) => void;
|
|
25
|
-
setSelectedRouteId: (id: string | null) => void;
|
|
26
|
-
setOrderFilters: (filters: Partial<OrderFilter>) => void;
|
|
27
|
-
setFleetFilters: (filters: Partial<FleetFilter>) => void;
|
|
28
|
-
setInventoryFilters: (filters: Partial<InventoryFilter>) => void;
|
|
29
|
-
setCustomerFilters: (filters: Partial<CustomerFilter>) => void;
|
|
30
|
-
clearAllFilters: () => void;
|
|
31
|
-
setGlobalSearch: (search: string) => void;
|
|
32
|
-
reset: () => void;
|
|
33
|
-
}
|
|
34
|
-
export declare const useMoveTheWheelsStore: import('zustand').UseBoundStore<Omit<Omit<import('zustand').StoreApi<MoveTheWheelsState>, "setState" | "devtools"> & {
|
|
35
|
-
setState(partial: MoveTheWheelsState | Partial<MoveTheWheelsState> | ((state: MoveTheWheelsState) => MoveTheWheelsState | Partial<MoveTheWheelsState>), replace?: false | undefined, action?: (string | {
|
|
36
|
-
[x: string]: unknown;
|
|
37
|
-
[x: number]: unknown;
|
|
38
|
-
[x: symbol]: unknown;
|
|
39
|
-
type: string;
|
|
40
|
-
}) | undefined): void;
|
|
41
|
-
setState(state: MoveTheWheelsState | ((state: MoveTheWheelsState) => MoveTheWheelsState), replace: true, action?: (string | {
|
|
42
|
-
[x: string]: unknown;
|
|
43
|
-
[x: number]: unknown;
|
|
44
|
-
[x: symbol]: unknown;
|
|
45
|
-
type: string;
|
|
46
|
-
}) | undefined): void;
|
|
47
|
-
devtools: {
|
|
48
|
-
cleanup: () => void;
|
|
49
|
-
};
|
|
50
|
-
}, "setState" | "persist"> & {
|
|
51
|
-
setState(partial: MoveTheWheelsState | Partial<MoveTheWheelsState> | ((state: MoveTheWheelsState) => MoveTheWheelsState | Partial<MoveTheWheelsState>), replace?: false | undefined, action?: (string | {
|
|
52
|
-
[x: string]: unknown;
|
|
53
|
-
[x: number]: unknown;
|
|
54
|
-
[x: symbol]: unknown;
|
|
55
|
-
type: string;
|
|
56
|
-
}) | undefined): unknown;
|
|
57
|
-
setState(state: MoveTheWheelsState | ((state: MoveTheWheelsState) => MoveTheWheelsState), replace: true, action?: (string | {
|
|
58
|
-
[x: string]: unknown;
|
|
59
|
-
[x: number]: unknown;
|
|
60
|
-
[x: symbol]: unknown;
|
|
61
|
-
type: string;
|
|
62
|
-
}) | undefined): unknown;
|
|
63
|
-
persist: {
|
|
64
|
-
setOptions: (options: Partial<import('zustand/middleware').PersistOptions<MoveTheWheelsState, unknown, unknown>>) => void;
|
|
65
|
-
clearStorage: () => void;
|
|
66
|
-
rehydrate: () => Promise<void> | void;
|
|
67
|
-
hasHydrated: () => boolean;
|
|
68
|
-
onHydrate: (fn: (state: MoveTheWheelsState) => void) => () => void;
|
|
69
|
-
onFinishHydration: (fn: (state: MoveTheWheelsState) => void) => () => void;
|
|
70
|
-
getOptions: () => Partial<import('zustand/middleware').PersistOptions<MoveTheWheelsState, unknown, unknown>>;
|
|
71
|
-
};
|
|
72
|
-
}>;
|
|
73
|
-
export {};
|