Start integrating the onboarding flow with backend 7
This commit is contained in:
@@ -20,6 +20,11 @@ export { classificationService } from './services/classification';
|
||||
export { inventoryDashboardService } from './services/inventoryDashboard';
|
||||
export { foodSafetyService } from './services/foodSafety';
|
||||
|
||||
// New API Services
|
||||
export { trainingService } from './services/training';
|
||||
export { alertProcessorService } from './services/alert_processor';
|
||||
export { suppliersService } from './services/suppliers';
|
||||
|
||||
// Types - Auth
|
||||
export type {
|
||||
User,
|
||||
@@ -146,6 +151,89 @@ export type {
|
||||
FoodSafetyDashboard,
|
||||
} from './types/foodSafety';
|
||||
|
||||
// Types - Training
|
||||
export type {
|
||||
TrainingJobRequest,
|
||||
TrainingJobResponse,
|
||||
TrainingJobStatus,
|
||||
SingleProductTrainingRequest,
|
||||
TrainingResults,
|
||||
TrainingMetrics,
|
||||
ActiveModelResponse,
|
||||
ModelMetricsResponse,
|
||||
TrainedModelResponse,
|
||||
TenantStatistics as TrainingTenantStatistics,
|
||||
ModelPerformanceResponse,
|
||||
TrainingProgressMessage,
|
||||
TrainingCompletedMessage,
|
||||
TrainingErrorMessage,
|
||||
TrainingWebSocketMessage,
|
||||
ModelsQueryParams,
|
||||
} from './types/training';
|
||||
|
||||
export { TrainingStatus } from './types/training';
|
||||
|
||||
// Types - Alert Processor
|
||||
export type {
|
||||
AlertMessage,
|
||||
AlertResponse,
|
||||
AlertUpdateRequest,
|
||||
AlertQueryParams,
|
||||
AlertDashboardData,
|
||||
NotificationSettings,
|
||||
ChannelRoutingConfig,
|
||||
WebhookConfig,
|
||||
AlertProcessingStatus,
|
||||
ProcessingMetrics,
|
||||
AlertAction,
|
||||
BusinessHours,
|
||||
} from './types/alert_processor';
|
||||
|
||||
export {
|
||||
AlertItemType,
|
||||
AlertType,
|
||||
AlertSeverity,
|
||||
AlertService,
|
||||
NotificationChannel,
|
||||
} from './types/alert_processor';
|
||||
|
||||
// Types - Suppliers
|
||||
export type {
|
||||
SupplierCreate,
|
||||
SupplierUpdate,
|
||||
SupplierResponse,
|
||||
SupplierSummary,
|
||||
SupplierApproval,
|
||||
SupplierQueryParams,
|
||||
SupplierStatistics,
|
||||
TopSuppliersResponse,
|
||||
PurchaseOrderCreate,
|
||||
PurchaseOrderUpdate,
|
||||
PurchaseOrderResponse,
|
||||
PurchaseOrderApproval,
|
||||
PurchaseOrderQueryParams,
|
||||
DeliveryCreate,
|
||||
DeliveryUpdate,
|
||||
DeliveryResponse,
|
||||
DeliveryReceiptConfirmation,
|
||||
DeliveryQueryParams,
|
||||
PerformanceCalculationRequest,
|
||||
PerformanceMetrics,
|
||||
PerformanceAlert,
|
||||
PurchaseOrderItem,
|
||||
DeliveryItem,
|
||||
} from './types/suppliers';
|
||||
|
||||
export {
|
||||
SupplierType,
|
||||
SupplierStatus,
|
||||
PaymentTerms,
|
||||
PurchaseOrderStatus,
|
||||
DeliveryStatus,
|
||||
OrderPriority,
|
||||
PerformanceMetricType,
|
||||
} from './types/suppliers';
|
||||
|
||||
// Hooks - Auth
|
||||
export {
|
||||
useAuthProfile,
|
||||
@@ -289,6 +377,94 @@ export {
|
||||
foodSafetyKeys,
|
||||
} from './hooks/foodSafety';
|
||||
|
||||
// Hooks - Data Import
|
||||
export {
|
||||
useImportStatus,
|
||||
useValidateJsonData,
|
||||
useValidateCsvFile,
|
||||
useImportJsonData,
|
||||
useImportCsvFile,
|
||||
useValidateAndImportFile,
|
||||
dataImportKeys,
|
||||
} from './hooks/dataImport';
|
||||
|
||||
// Hooks - Training
|
||||
export {
|
||||
useTrainingJobStatus,
|
||||
useActiveModel,
|
||||
useModels,
|
||||
useModelMetrics,
|
||||
useModelPerformance,
|
||||
useTenantTrainingStatistics,
|
||||
useCreateTrainingJob,
|
||||
useTrainSingleProduct,
|
||||
useDeleteAllTenantModels,
|
||||
useTrainingWebSocket,
|
||||
useIsTrainingInProgress,
|
||||
useTrainingProgress,
|
||||
trainingKeys,
|
||||
} from './hooks/training';
|
||||
|
||||
// Hooks - Alert Processor
|
||||
export {
|
||||
useAlerts,
|
||||
useAlert,
|
||||
useAlertDashboardData,
|
||||
useAlertProcessingStatus,
|
||||
useNotificationSettings,
|
||||
useChannelRoutingConfig,
|
||||
useWebhooks,
|
||||
useProcessingMetrics,
|
||||
useUpdateAlert,
|
||||
useDismissAlert,
|
||||
useAcknowledgeAlert,
|
||||
useResolveAlert,
|
||||
useUpdateNotificationSettings,
|
||||
useCreateWebhook,
|
||||
useUpdateWebhook,
|
||||
useDeleteWebhook,
|
||||
useTestWebhook,
|
||||
useAlertSSE,
|
||||
useActiveAlertsCount,
|
||||
useAlertsByPriority,
|
||||
useUnreadAlertsCount,
|
||||
alertProcessorKeys,
|
||||
} from './hooks/alert_processor';
|
||||
|
||||
// Hooks - Suppliers
|
||||
export {
|
||||
useSuppliers,
|
||||
useSupplier,
|
||||
useSupplierStatistics,
|
||||
useActiveSuppliers,
|
||||
useTopSuppliers,
|
||||
usePendingApprovalSuppliers,
|
||||
useSuppliersByType,
|
||||
usePurchaseOrders,
|
||||
usePurchaseOrder,
|
||||
useDeliveries,
|
||||
useDelivery,
|
||||
useSupplierPerformanceMetrics,
|
||||
usePerformanceAlerts,
|
||||
useCreateSupplier,
|
||||
useUpdateSupplier,
|
||||
useDeleteSupplier,
|
||||
useApproveSupplier,
|
||||
useCreatePurchaseOrder,
|
||||
useUpdatePurchaseOrder,
|
||||
useApprovePurchaseOrder,
|
||||
useCreateDelivery,
|
||||
useUpdateDelivery,
|
||||
useConfirmDeliveryReceipt,
|
||||
useCalculateSupplierPerformance,
|
||||
useEvaluatePerformanceAlerts,
|
||||
useSuppliersByStatus,
|
||||
useSuppliersCount,
|
||||
useActiveSuppliersCount,
|
||||
usePendingOrdersCount,
|
||||
suppliersKeys,
|
||||
} from './hooks/suppliers';
|
||||
|
||||
// Query Key Factories (for advanced usage)
|
||||
export {
|
||||
authKeys,
|
||||
@@ -300,4 +476,8 @@ export {
|
||||
classificationKeys,
|
||||
inventoryDashboardKeys,
|
||||
foodSafetyKeys,
|
||||
trainingKeys,
|
||||
alertProcessorKeys,
|
||||
suppliersKeys,
|
||||
dataImportKeys,
|
||||
};
|
||||
Reference in New Issue
Block a user