Planned Workouts

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 NameStep Intensity Number Value
REST0
WARMUP1
COOLDOWN2
RECOVERY3
INTERVAL4
ACTIVE5

PlannedWorkoutRepeatStep

{
 "description": String,
 "order": Number,
 "intensity": Number,
 "durations": Array<PlannedWorkoutStepDuration>
 "type": 1,
 "targets": Array<PlannedWorkoutStepTarget>,
 "steps" : Array<PlannedWorkoutStep>
}

PlannedWorkoutStepTarget

Step Target TypeModel
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 TypeModel
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 TypeValue
BACKSTROKE0
BREASTSTROKE1
DRILL2
BUTTERFLY3
FREESTYLE4
MIXED5
IM6
Equipement TypeValue
NONE0
SWIM_FINS1
SWIM_KICKBOARD2
SWIM_PADDLES3
SWIM_PULL_BUOY4
SWIM_SNORKEL5
Exercice TypeValue
UNKNOWN0
BENCH_PRESS1
CALF_RAISE2
CARDIO3
CARRY4
CHOP5
CORE6
CRUNCH7
CURL8
DEADLIFT9
FLYE10
HIP_RAISE11
HIP_STABILITY12
HIP_SWING13
HYPEREXTENSION14
LATERAL_RAISE15
LEG_CURL16
LEG_RAISE17
LUNGE18
OLYMPIC_LIFT19
PLANK20
PLYO21
PULL_UP22
PUSH_UP23
ROW24
SHOULDER_PRESS25
SHOULDER_STABILITY26
SHRUG27
SIT_UP28
SQUAT29
TOTAL_BODY30
TRICEPS_EXTENSION31
WARM_UP32
RUN33
BIKE34
CARDIO_SENSORS35