PlannedWorkout
{
"steps": Array<PlannedWorkoutStep||PlannedWorkoutRepeatStep>,
"metadata": {
"id": String,
"estimated_if": Number,
"provider": String,
"estimated_distance_meters": Number,
"estimated_elevation_gain_meters": Number,
"estimated_energy_kj": Number,
"estimated_speed_meters_per_second": Number,
"planned_date": ISO-Date-String,
"created_date": ISO-Date-String,
"estimated_tss": Number,
"type": WorkoutTypeNumber,
"name": String,
"description": String,
"pool_length_meters": Number,
"estimated_calories": Number,
"estimated_duration_seconds": Number
}
}
The Workout Types follow the same numbering as the Activity Types that can be found in https://docs.tryterra.co/reference/enums#activitytype
PlannedWorkoutStep
{
"description": String,
"order": Number,
"intensity": Number,
"durations": Array<PlannedWorkoutStepDuration>
"type": 0,
"targets": Array<PlannedWorkoutStepTarget>,
"stroke_type": Number, //for Swimming Workouts
"equipement_type": Number, //for Swimming Workouts
"exercice_category" : Number, //for Strength and Cardio workouts
"exercice_name": String, //for Strength and Cardio workouts
"weight_kg": Number, //for Strength workouts
}
Step Intensity Name | Step Intensity Number Value |
---|---|
REST | 0 |
WARMUP | 1 |
COOLDOWN | 2 |
RECOVERY | 3 |
INTERVAL | 4 |
ACTIVE | 5 |
PlannedWorkoutRepeatStep
{
"description": String,
"order": Number,
"intensity": Number,
"durations": Array<PlannedWorkoutStepDuration>
"type": 1,
"targets": Array<PlannedWorkoutStepTarget>,
"steps" : Array<PlannedWorkoutStep>
}
PlannedWorkoutStepTarget
Step Target Type | Model |
---|---|
SPEED | { "target_type": 0, "speed_meters_per_second": Number, "speed_meters_per_second_low": Number, "speed_meters_per_second_high": Number } |
HEART_RATE | { "target_type": 1, "hr_bpm_high": Number, "hr_bpm_low": Number } |
OPEN | { "target_type": 2, } |
CADENCE | { "target_type": 3, "cadence": Number, "cadence_high": Number, "cadence_low" : Number } |
POWER | { "target_type": 4, "power_watt_high": Number, "power_watt_low": Number, "power_watt": Number } |
SWIM_STROKE | { "target_type": 8, "swim_strokes": Number } |
PACE | { "target_type": 11, "speed_meters_per_second": Number, "speed_meters_per_second_low": Number, "speed_meters_per_second_high": Number } |
HEART_RATE_THRESHOLD_PERCENTAGE | { "target_type": 12, "hr_percentage": Number, "hr_percentage_low": Number, "hr_percentage_high": Number } |
HEART_RATE_MAX_PERCENTAGE | { "target_type": 13, "hr_percentage": Number, "hr_percentage_low": Number, "hr_percentage_high": Number } |
SPEED_PERCENTAGE | { "target_type": 14, "speed_percentage": Number, "speed_percentage_low": Number, "speed_percentage_high": Number } |
POWER_PERCENTAGE | { "target_type": 15, "power_percentage": Number, "power_percentage_low": Number, "power_percentage_high": Number, } |
REPETITION | { "target_type": 16, "repetitions": Number } |
PlannedWorkoutStepDuration
Step Duration Type | Model |
---|---|
TIME | { "duration_type": 0, "seconds": Number } |
DISTANCE_METERS | { "duration_type": 1, "distance_meters": Number } |
HR_LESS_THAN | { "duration_type": 2, "hr_below_bpm": Number } |
HR_GREATER_THAN | { "duration_type": 3, "hr_above_bpm": Number } |
CALORIES | { "duration_type": 4, "calories": 2.0 } |
OPEN | { "duration_type": 5, } |
POWER_LESS_THAN | { "duration_type": 6, "power_below_watts": Number } |
POWER_GREATER_THAN | { "duration_type": 7, "power_above_watts": Number } |
REPS | { "duration_type": 9, "reps": Number } |
FIXED_REST | { "duration_type": 10, "rest_seconds": Number } |
STEPS | { "duration_type": 12, "steps": Number } |
Enums
Stroke Type | Value |
---|---|
BACKSTROKE | 0 |
BREASTSTROKE | 1 |
DRILL | 2 |
BUTTERFLY | 3 |
FREESTYLE | 4 |
MIXED | 5 |
IM | 6 |
Equipement Type | Value |
---|---|
NONE | 0 |
SWIM_FINS | 1 |
SWIM_KICKBOARD | 2 |
SWIM_PADDLES | 3 |
SWIM_PULL_BUOY | 4 |
SWIM_SNORKEL | 5 |
Exercice Type | Value |
---|---|
UNKNOWN | 0 |
BENCH_PRESS | 1 |
CALF_RAISE | 2 |
CARDIO | 3 |
CARRY | 4 |
CHOP | 5 |
CORE | 6 |
CRUNCH | 7 |
CURL | 8 |
DEADLIFT | 9 |
FLYE | 10 |
HIP_RAISE | 11 |
HIP_STABILITY | 12 |
HIP_SWING | 13 |
HYPEREXTENSION | 14 |
LATERAL_RAISE | 15 |
LEG_CURL | 16 |
LEG_RAISE | 17 |
LUNGE | 18 |
OLYMPIC_LIFT | 19 |
PLANK | 20 |
PLYO | 21 |
PULL_UP | 22 |
PUSH_UP | 23 |
ROW | 24 |
SHOULDER_PRESS | 25 |
SHOULDER_STABILITY | 26 |
SHRUG | 27 |
SIT_UP | 28 |
SQUAT | 29 |
TOTAL_BODY | 30 |
TRICEPS_EXTENSION | 31 |
WARM_UP | 32 |
RUN | 33 |
BIKE | 34 |
CARDIO_SENSORS | 35 |