/**
 * TabataFit Activity Types
 */

export interface WorkoutResult {
  id: string
  workoutId: string
  completedAt: number
  calories: number
  durationMinutes: number
  rounds: number
  /** 0..1 */
  completionRate: number
}

export interface DayActivity {
  date: string
  completed: boolean
  workoutCount: number
}

export interface WeeklyStats {
  days: DayActivity[]
  totalWorkouts: number
  totalMinutes: number
  totalCalories: number
}

export interface Streak {
  current: number
  longest: number
}
