Improve the dahboard 4
This commit is contained in:
43
frontend/src/types/weather.ts
Normal file
43
frontend/src/types/weather.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
// Weather data types for the bakery application
|
||||
|
||||
export interface WeatherData {
|
||||
date: string;
|
||||
temperature: number;
|
||||
precipitation: number;
|
||||
humidity: number;
|
||||
wind_speed: number;
|
||||
pressure: number;
|
||||
description: string;
|
||||
source: 'aemet' | 'synthetic' | 'default';
|
||||
}
|
||||
|
||||
export interface HourlyForecast {
|
||||
forecast_datetime: string;
|
||||
generated_at: string;
|
||||
temperature: number;
|
||||
precipitation: number;
|
||||
humidity: number;
|
||||
wind_speed: number;
|
||||
description: string;
|
||||
source: string;
|
||||
hour: number;
|
||||
}
|
||||
|
||||
export interface WeatherForecast {
|
||||
forecast_date: string;
|
||||
generated_at: string;
|
||||
temperature: number;
|
||||
precipitation: number;
|
||||
humidity: number;
|
||||
wind_speed: number;
|
||||
description: string;
|
||||
source: string;
|
||||
}
|
||||
|
||||
export interface WeatherImpact {
|
||||
type: 'sales' | 'operations' | 'inventory' | 'staffing';
|
||||
severity: 'low' | 'medium' | 'high';
|
||||
description: string;
|
||||
recommendation: string;
|
||||
confidence: number;
|
||||
}
|
||||
Reference in New Issue
Block a user