Files
dashboard/types/scheduling.ts
T
Alberto-Audrix 32a36cceff
CI / lint-and-test (push) Canceled after 0s
first commit
2026-07-28 08:55:05 +07:00

30 lines
864 B
TypeScript

export interface FeedScheduleRecommendation {
nextFeedingTime: Date;
lastFeedingTime: Date;
reason: string;
}
export interface FeedingEvent {
id: string;
time: Date;
type: 'AI Recommended' | 'Manual' | 'Skipped';
status: 'completed' | 'upcoming' | 'skipped';
operatorId: string;
operatorName: string;
feedType: string;
quantityKg: number;
quantitySacks: number;
}
export interface ConsumptionPatternPoint {
hour: number;
predicted: number; // percentage of daily total
actual: number | null; // percentage of daily total
}
export interface ScheduleInfluencingFactors {
temperature: { value: number; unit: string; status: 'ok' | 'warning' | 'critical' };
humidity: { value: number; unit: string; status: 'ok' | 'warning' | 'critical' };
activityLevel: { value: number; unit: string; status: 'ok' | 'warning' | 'critical' };
}