New alert service
This commit is contained in:
@@ -18,7 +18,7 @@ export { inventoryService } from './services/inventory';
|
||||
|
||||
// New API Services
|
||||
export { trainingService } from './services/training';
|
||||
export { alertProcessorService } from './services/alert_processor';
|
||||
export { alertService as alertProcessorService } from './services/alertService';
|
||||
export { suppliersService } from './services/suppliers';
|
||||
export { OrdersService } from './services/orders';
|
||||
export { forecastingService } from './services/forecasting';
|
||||
@@ -196,11 +196,8 @@ export { TrainingStatus } from './types/training';
|
||||
|
||||
// Types - Alert Processor
|
||||
export type {
|
||||
AlertMessage,
|
||||
AlertResponse,
|
||||
AlertUpdateRequest,
|
||||
AlertQueryParams,
|
||||
AlertDashboardData,
|
||||
EventResponse as AlertResponse,
|
||||
EventQueryParams as AlertQueryParams,
|
||||
NotificationSettings,
|
||||
ChannelRoutingConfig,
|
||||
WebhookConfig,
|
||||
@@ -208,15 +205,9 @@ export type {
|
||||
ProcessingMetrics,
|
||||
AlertAction,
|
||||
BusinessHours,
|
||||
} from './types/alert_processor';
|
||||
} from './types/events';
|
||||
|
||||
export {
|
||||
AlertItemType,
|
||||
AlertType,
|
||||
AlertSeverity,
|
||||
AlertService,
|
||||
NotificationChannel,
|
||||
} from './types/alert_processor';
|
||||
// No need for additional enums as they are included in events.ts
|
||||
|
||||
// Types - Suppliers
|
||||
export type {
|
||||
@@ -560,29 +551,26 @@ export {
|
||||
|
||||
// Hooks - Alert Processor
|
||||
export {
|
||||
useAlerts,
|
||||
useAlert,
|
||||
useAlertDashboardData,
|
||||
useAlertProcessingStatus,
|
||||
useNotificationSettings,
|
||||
useChannelRoutingConfig,
|
||||
useWebhooks,
|
||||
useProcessingMetrics,
|
||||
useUpdateAlert,
|
||||
useDismissAlert,
|
||||
useEvents as useAlerts,
|
||||
useEvent as useAlert,
|
||||
useEventsSummary as useAlertDashboardData,
|
||||
useAcknowledgeAlert,
|
||||
useResolveAlert,
|
||||
useUpdateNotificationSettings,
|
||||
useCreateWebhook,
|
||||
useUpdateWebhook,
|
||||
useDeleteWebhook,
|
||||
useTestWebhook,
|
||||
useAlertSSE,
|
||||
useActiveAlertsCount,
|
||||
useAlertsByPriority,
|
||||
useUnreadAlertsCount,
|
||||
alertProcessorKeys,
|
||||
} from './hooks/alert_processor';
|
||||
useCancelAutoAction,
|
||||
useDismissRecommendation,
|
||||
useBulkAcknowledgeAlerts,
|
||||
useBulkResolveAlerts,
|
||||
useRecordInteraction,
|
||||
alertKeys as alertProcessorKeys,
|
||||
} from './hooks/useAlerts';
|
||||
|
||||
// Hooks - Unified Alerts
|
||||
export {
|
||||
useUnifiedAlerts,
|
||||
useSingleAlert,
|
||||
useAlertStats,
|
||||
useRealTimeAlerts,
|
||||
} from './hooks/useUnifiedAlerts';
|
||||
|
||||
// Hooks - Suppliers
|
||||
export {
|
||||
@@ -738,29 +726,60 @@ export {
|
||||
useRunDailyWorkflow,
|
||||
} from './hooks/orchestrator';
|
||||
|
||||
// Hooks - New Dashboard (JTBD-aligned)
|
||||
// Hooks - Professional Dashboard (JTBD-aligned)
|
||||
export {
|
||||
useBakeryHealthStatus,
|
||||
useOrchestrationSummary,
|
||||
useActionQueue,
|
||||
useProductionTimeline,
|
||||
useInsights,
|
||||
useApprovePurchaseOrder as useApprovePurchaseOrderDashboard,
|
||||
useDismissAlert as useDismissAlertDashboard,
|
||||
useStartProductionBatch,
|
||||
usePauseProductionBatch,
|
||||
} from './hooks/newDashboard';
|
||||
useExecutionProgress,
|
||||
useUnifiedActionQueue,
|
||||
} from './hooks/useProfessionalDashboard';
|
||||
|
||||
export type {
|
||||
BakeryHealthStatus,
|
||||
HealthChecklistItem,
|
||||
HeadlineData,
|
||||
ReasoningInputs,
|
||||
PurchaseOrderSummary,
|
||||
ProductionBatchSummary,
|
||||
OrchestrationSummary,
|
||||
ActionQueue,
|
||||
ActionButton,
|
||||
ActionItem,
|
||||
ActionQueue,
|
||||
ProductionTimeline,
|
||||
ProductionTimelineItem,
|
||||
Insights,
|
||||
InsightCard,
|
||||
} from './hooks/newDashboard';
|
||||
Insights,
|
||||
UnifiedActionQueue,
|
||||
EnrichedAlert,
|
||||
} from './hooks/useProfessionalDashboard';
|
||||
|
||||
// Hooks - Enterprise Dashboard
|
||||
export {
|
||||
useNetworkSummary,
|
||||
useChildrenPerformance,
|
||||
useDistributionOverview,
|
||||
useForecastSummary,
|
||||
useChildSales,
|
||||
useChildInventory,
|
||||
useChildProduction,
|
||||
useChildTenants,
|
||||
} from './hooks/useEnterpriseDashboard';
|
||||
|
||||
export type {
|
||||
NetworkSummary,
|
||||
PerformanceRankings,
|
||||
ChildPerformance,
|
||||
DistributionOverview,
|
||||
ForecastSummary,
|
||||
ChildTenant,
|
||||
SalesSummary,
|
||||
InventorySummary,
|
||||
ProductionSummary,
|
||||
} from './hooks/useEnterpriseDashboard';
|
||||
|
||||
// Note: All query key factories are already exported in their respective hook sections above
|
||||
|
||||
|
||||
Reference in New Issue
Block a user