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

25 lines
622 B
TypeScript

export interface FeedWastageStats {
currentWastage: { value: number; unit: string; status: 'ok' | 'warning' | 'critical' };
totalWastedKg: { value: number; unit: string };
estimatedLoss: { value: number; unit: string };
criticalZones: { value: number; unit: string };
}
export interface WastageHotspot {
id: string;
level: 'low' | 'medium' | 'high'; // Corresponds to color coding
}
export interface FeedWastageAlert {
id: string;
location: string;
wastageLevel: number; // percentage
timestamp: Date;
message: string;
}
export interface WastageDataPoint {
date: string;
percentage: number;
}