Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | 1x | // Shared types and constants for strengthsys
// ── Generated Supabase types ───────────────────────────────
export type { Database, Json } from './database.types';
// ── Helper types for table/enum access ─────────────────────
export type { Tables, TablesInsert, TablesUpdate, Enums } from './helpers';
// ── Domain enums (runtime objects + types) ─────────────────
export {
MovementPattern,
SessionType,
SetFeeling,
ExperienceLevel,
DifficultyTier,
ExerciseDomain,
Laterality,
ExerciseReadiness,
} from './enums';
// ── Value Types (from spec/strengthsys.allium) ──────────────
export interface WeightReps {
weight_kg: number;
reps: number;
}
export interface SetPrescription {
target_weight_kg: number | null;
target_reps: number;
target_rpe: number | null;
rest_seconds: number;
}
// ── Logging Types (from spec/logging.allium) ────────────────
export interface SetLog {
prescribed_exercise_id: string;
set_number: number;
actual_weight_kg: number | null;
actual_reps: number | null;
feeling: import('./enums').SetFeeling;
skipped: boolean;
movement_patterns: import('./enums').MovementPattern[];
}
// ── Programming Types (from spec/programming.allium) ────────
export interface PrescribedExercise {
id: string;
exercise_id: string;
exercise_name: string;
order: number;
sets: SetPrescription[];
is_warmup: boolean;
is_backup: boolean;
notes: string | null;
movement_patterns: import('./enums').MovementPattern[];
}
// ── AI Generation Types (from spec/ai-generation.allium) ────
export type {
// Intent artefacts (persisted as mesocycles.intent / blocks.intent)
MesocycleIntent,
BlockIntent,
WorkoutEmphasis,
PatternVolumeTarget,
// Workout-detail context bundle (per-call; never persisted)
WorkoutGenerationContext,
PriorWorkoutSummary,
WorkoutRef,
AthleteRef,
MesocycleRef,
BlockRef,
WorkoutSlotRef,
TrainingLocationRef,
EquipmentTypeRef,
ExerciseRef,
AthleteConstraintRef,
PostWorkoutReviewRef,
DisruptionRef,
// Validation, plan, outcomes
ValidationViolation,
ValidationResult,
WorkoutPlan,
RefusalReason,
WorkoutGenerationOutcome,
CycleIntentOutcome,
BlockIntentOutcome,
} from './ai-generation';
|