Add production APIs to frontend
This commit is contained in:
@@ -26,6 +26,7 @@ export { alertProcessorService } from './services/alert_processor';
|
||||
export { suppliersService } from './services/suppliers';
|
||||
export { OrdersService } from './services/orders';
|
||||
export { forecastingService } from './services/forecasting';
|
||||
export { productionService } from './services/production';
|
||||
|
||||
// Types - Auth
|
||||
export type {
|
||||
@@ -312,6 +313,37 @@ export type {
|
||||
|
||||
export { BusinessType } from './types/forecasting';
|
||||
|
||||
// Types - Production
|
||||
export type {
|
||||
ProductionBatchBase,
|
||||
ProductionBatchCreate,
|
||||
ProductionBatchUpdate,
|
||||
ProductionBatchStatusUpdate,
|
||||
ProductionBatchResponse,
|
||||
ProductionScheduleBase,
|
||||
ProductionScheduleCreate,
|
||||
ProductionScheduleUpdate,
|
||||
ProductionScheduleResponse,
|
||||
QualityCheckBase,
|
||||
QualityCheckCreate,
|
||||
QualityCheckResponse,
|
||||
ProductionDashboardSummary,
|
||||
DailyProductionRequirements,
|
||||
ProductionMetrics,
|
||||
ProductionBatchListResponse,
|
||||
ProductionScheduleListResponse,
|
||||
QualityCheckListResponse,
|
||||
ProductionScheduleData,
|
||||
ProductionCapacityStatus,
|
||||
ProductionRequirements,
|
||||
ProductionYieldMetrics,
|
||||
} from './types/production';
|
||||
|
||||
export {
|
||||
ProductionStatusEnum,
|
||||
ProductionPriorityEnum,
|
||||
} from './types/production';
|
||||
|
||||
// Hooks - Auth
|
||||
export {
|
||||
useAuthProfile,
|
||||
@@ -583,6 +615,23 @@ export {
|
||||
forecastingKeys,
|
||||
} from './hooks/forecasting';
|
||||
|
||||
// Hooks - Production
|
||||
export {
|
||||
useProductionDashboard,
|
||||
useDailyProductionRequirements,
|
||||
useProductionRequirements,
|
||||
useActiveBatches,
|
||||
useBatchDetails,
|
||||
useProductionSchedule,
|
||||
useCapacityStatus,
|
||||
useYieldMetrics,
|
||||
useCreateProductionBatch,
|
||||
useUpdateBatchStatus,
|
||||
useProductionDashboardData,
|
||||
useProductionPlanningData,
|
||||
productionKeys,
|
||||
} from './hooks/production';
|
||||
|
||||
// Query Key Factories (for advanced usage)
|
||||
export {
|
||||
authKeys,
|
||||
@@ -600,4 +649,5 @@ export {
|
||||
ordersKeys,
|
||||
dataImportKeys,
|
||||
forecastingKeys,
|
||||
productionKeys,
|
||||
};
|
||||
Reference in New Issue
Block a user