30 lines
864 B
TypeScript
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' };
|
|
}
|