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

Copy Markdown View Source

Plan header with name and attributes

Summary

Types

difficulty()

@type difficulty() :: :beginner | :intermediate | :advanced | :adaptive

plan_type()

@type plan_type() :: :workout | :nutrition | :meditation | :recovery | :hybrid

t()

@type t() :: %WplAi.AST.Header{
  difficulty: difficulty() | nil,
  duration: Duration.t() | nil,
  language: String.t() | nil,
  meta: map(),
  min_app_version: String.t() | nil,
  name: String.t(),
  schema: String.t() | nil,
  tags: [String.t()] | nil,
  type: plan_type(),
  visibility: visibility() | nil
}

visibility()

@type visibility() :: :private | :public | :template