feat(08-02): add TypeScript types for hourly and day/hour API responses
This commit is contained in:
parent
f8b22da9de
commit
0691567952
1 changed files with 23 additions and 0 deletions
|
|
@ -12,6 +12,29 @@ export interface HeatmapData {
|
|||
};
|
||||
}
|
||||
|
||||
export interface HourEntry {
|
||||
hour: number; // 0-23
|
||||
hours: number;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface DayHourEntry {
|
||||
day: number; // 0-6, relative to weekStart
|
||||
hour: number; // 0-23
|
||||
hours: number;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface HourlyData {
|
||||
hours: HourEntry[];
|
||||
range: { begin: string; end: string };
|
||||
}
|
||||
|
||||
export interface DayHourData {
|
||||
matrix: DayHourEntry[];
|
||||
range: { begin: string; end: string };
|
||||
}
|
||||
|
||||
export interface HeatmapConfig {
|
||||
cellSize: number;
|
||||
cellGap: number;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue