ADD new frontend

This commit is contained in:
Urtzi Alfaro
2025-08-28 10:41:04 +02:00
parent 9c247a5f99
commit 0fd273cfce
492 changed files with 114979 additions and 1632 deletions

View File

@@ -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();