REFACTOR ALL APIs
This commit is contained in:
@@ -14,11 +14,7 @@ export { onboardingService } from './services/onboarding';
|
||||
export { tenantService } from './services/tenant';
|
||||
export { subscriptionService } from './services/subscription';
|
||||
export { salesService } from './services/sales';
|
||||
export { dataImportService } from './services/dataImport';
|
||||
export { inventoryService } from './services/inventory';
|
||||
export { classificationService } from './services/classification';
|
||||
export { inventoryDashboardService } from './services/inventoryDashboard';
|
||||
export { foodSafetyService } from './services/foodSafety';
|
||||
|
||||
// New API Services
|
||||
export { trainingService } from './services/training';
|
||||
@@ -504,58 +500,9 @@ export {
|
||||
inventoryKeys,
|
||||
} from './hooks/inventory';
|
||||
|
||||
// Hooks - Classification
|
||||
export {
|
||||
useClassifyProduct,
|
||||
useClassifyProductsBatch,
|
||||
classificationKeys,
|
||||
} from './hooks/classification';
|
||||
|
||||
// Hooks - Inventory Dashboard
|
||||
export {
|
||||
useInventoryDashboardSummary,
|
||||
useInventoryAnalytics,
|
||||
useBusinessModelInsights,
|
||||
useRecentActivity,
|
||||
useInventoryAlerts,
|
||||
useStockSummary,
|
||||
useTopCategories,
|
||||
useExpiryCalendar,
|
||||
inventoryDashboardKeys,
|
||||
} from './hooks/inventoryDashboard';
|
||||
|
||||
// Hooks - Food Safety
|
||||
export {
|
||||
useComplianceRecords,
|
||||
useComplianceRecord,
|
||||
useTemperatureLogs,
|
||||
useTemperatureAnalytics,
|
||||
useTemperatureViolations,
|
||||
useFoodSafetyAlerts,
|
||||
useFoodSafetyAlert,
|
||||
useFoodSafetyDashboard,
|
||||
useFoodSafetyMetrics,
|
||||
useComplianceRate,
|
||||
useCreateComplianceRecord,
|
||||
useUpdateComplianceRecord,
|
||||
useCreateTemperatureLog,
|
||||
useCreateBulkTemperatureLogs,
|
||||
useCreateFoodSafetyAlert,
|
||||
useUpdateFoodSafetyAlert,
|
||||
foodSafetyKeys,
|
||||
} from './hooks/foodSafety';
|
||||
|
||||
// Hooks - Data Import
|
||||
export {
|
||||
useImportStatus,
|
||||
useValidateJsonData,
|
||||
useValidateCsvFile,
|
||||
useImportJsonData,
|
||||
useImportCsvFile,
|
||||
useValidateFileOnly,
|
||||
useValidateAndImportFile,
|
||||
dataImportKeys,
|
||||
} from './hooks/dataImport';
|
||||
// Note: Classification hooks consolidated into inventory.ts hooks (useClassifyBatch)
|
||||
// Note: Data Import hooks consolidated into sales.ts hooks (useValidateImportFile, useImportSalesData)
|
||||
// Note: Inventory Dashboard and Food Safety hooks consolidated into inventory.ts hooks
|
||||
|
||||
// Hooks - Training
|
||||
export {
|
||||
|
||||
Reference in New Issue
Block a user