WplAi.AST.Block (WPL-AI v1.6.7)

Copy Markdown View Source

Activity block within a day

Summary

Types

activity()

@type activity() ::
  Exercise.t()
  | Cardio.t()
  | Nutrition.t()
  | Meditation.t()
  | Recovery.t()
  | Habit.t()
  | SimpleActivity.t()
  | SubPlan.t()

block_structure()

@type block_structure() ::
  :circuit | :straight_sets | :superset | :emom | :amrap | :tabata | nil

block_type()

@type block_type() ::
  :warmup
  | :main
  | :cooldown
  | :nutrition
  | :meditation
  | :education
  | :assessment

t()

@type t() :: %WplAi.AST.Block{
  activities: [activity()],
  meta: map(),
  rest_between_rounds: Duration.t() | nil,
  rounds: integer() | nil,
  structure: block_structure(),
  type: block_type()
}