Set logging is now a united. Sporadic set table removed.
This commit is contained in:
18
types.ts
18
types.ts
@@ -22,6 +22,7 @@ export interface WorkoutSet {
|
||||
bodyWeightPercentage?: number; // Percentage of bodyweight used (e.g. 65 for pushups)
|
||||
timestamp: number;
|
||||
side?: 'LEFT' | 'RIGHT'; // For unilateral exercises
|
||||
completed: boolean;
|
||||
}
|
||||
|
||||
export interface WorkoutSession {
|
||||
@@ -33,6 +34,7 @@ export interface WorkoutSession {
|
||||
userBodyWeight?: number;
|
||||
planId?: string; // Link to a plan if used
|
||||
planName?: string;
|
||||
type: 'STANDARD' | 'QUICK_LOG';
|
||||
}
|
||||
|
||||
export interface ExerciseDef {
|
||||
@@ -81,22 +83,6 @@ export interface BodyWeightRecord {
|
||||
dateStr: string; // YYYY-MM-DD
|
||||
}
|
||||
|
||||
export interface SporadicSet {
|
||||
id: string;
|
||||
exerciseId: string;
|
||||
exerciseName: string;
|
||||
type: ExerciseType;
|
||||
reps?: number;
|
||||
weight?: number;
|
||||
durationSeconds?: number;
|
||||
distanceMeters?: number;
|
||||
height?: number;
|
||||
bodyWeightPercentage?: number;
|
||||
timestamp: number;
|
||||
note?: string;
|
||||
side?: 'LEFT' | 'RIGHT'; // For unilateral exercises
|
||||
}
|
||||
|
||||
export interface User {
|
||||
id: string;
|
||||
email: string;
|
||||
|
||||
Reference in New Issue
Block a user