ADD new frontend
This commit is contained in:
@@ -1,64 +0,0 @@
|
||||
// frontend/src/api/index.ts
|
||||
/**
|
||||
* Main API Export
|
||||
* Central entry point for all API functionality
|
||||
*/
|
||||
|
||||
// Export main API client first
|
||||
export { apiClient } from './client';
|
||||
|
||||
// Export all services
|
||||
export {
|
||||
authService,
|
||||
tenantService,
|
||||
salesService,
|
||||
externalService,
|
||||
trainingService,
|
||||
forecastingService,
|
||||
notificationService,
|
||||
inventoryService,
|
||||
api
|
||||
} from './services';
|
||||
|
||||
// Export all hooks
|
||||
export {
|
||||
useAuth,
|
||||
useAuthHeaders,
|
||||
useTenant,
|
||||
useSales,
|
||||
useExternal,
|
||||
useTraining,
|
||||
useForecast,
|
||||
useNotification,
|
||||
useApiHooks,
|
||||
useOnboarding,
|
||||
useInventory,
|
||||
useInventoryProducts
|
||||
} from './hooks';
|
||||
|
||||
// Export WebSocket functionality
|
||||
export {
|
||||
WebSocketManager,
|
||||
useWebSocket,
|
||||
useTrainingWebSocket,
|
||||
useForecastWebSocket,
|
||||
} from './websocket';
|
||||
|
||||
// Export WebSocket types
|
||||
export type {
|
||||
WebSocketConfig,
|
||||
WebSocketMessage,
|
||||
WebSocketHandlers,
|
||||
WebSocketStatus,
|
||||
WebSocketMetrics,
|
||||
} from './websocket';
|
||||
|
||||
// Export types
|
||||
export * from './types';
|
||||
|
||||
// Export configuration
|
||||
export { apiConfig, serviceEndpoints, featureFlags } from './client/config';
|
||||
|
||||
// Setup interceptors on import (move to end to avoid circular deps)
|
||||
import { setupInterceptors } from './client/interceptors';
|
||||
setupInterceptors();
|
||||
Reference in New Issue
Block a user