(range: keyof typeof timeWindows)
| 285 | } |
| 286 | |
| 287 | export function isHourIntervalEnabledByRange(range: keyof typeof timeWindows) { |
| 288 | return ( |
| 289 | isMinuteIntervalEnabledByRange(range) || |
| 290 | range === 'today' || |
| 291 | range === 'yesterday' || |
| 292 | range === 'last24h' || |
| 293 | range === '7d' |
| 294 | ); |
| 295 | } |
| 296 | |
| 297 | export function getDefaultIntervalByRange( |
| 298 | range: keyof typeof timeWindows |
no test coverage detected