Skip to content

Content Configuration

Content Schema contains bunch document data[Array of objects | objects]. There are various type of schema and based on a schema configure the stuff. Schema of content are contains following configuration.

Content Schema

Each Content schema contain the different type of schema describe below and based on user requirement.

ProgramTask:-

Attributes

  • handle: handle of each task
  • variant: variant of task
  • orNext: allow to move next task
  • model: model of task
  • instance:- Different options for each task from below describe ##Excersise Profile

ExerciseImage:-

Attributes

  • previewImage: contain the attachment details
  • attachment
  • relation
  • url
  • slideshow: contain array of attachment details
  • lang
  • model

SupportImage:-

Attributes

  • previewImage: contain the attachment details
    • attachment
    • relation
    • url
  • image: contain array of attachment details
  • lang
  • model

EntryExercise:-

Attributes

  • images:
    • attachment
    • relation
    • url
  • profiles: Different options for below describe Exercise Profile Options
  • task: Array of object of task which consist below attributes
    • title
    • body
    • introduction
    • goodForms: consist the array ##ExceriseAdvise option from below
    • poorForms: consist the array ##ExceriseAdvise option from below
    • equipment

Excersise Profile Options

  • level
  • low
  • high
  • normalized
  • prep: allow prep time or not
  • restType: Rest between each sets."failure" | "deep-burn" | "rep-max" | "none"
  • rest
  • countUnit: Count unit of task from one of "steps" | "seconds" | "minutes" | "repetitions" | "breaths" | "kilometers" | "jumps" .default is "minutes"
  • max
  • weight
  • prepTime: preparation time for task
  • sets: number of set of each task
  • styles
  • classes
  • overlay: Allow overlay text for each task
    • text: text to be display on overlay
    • icon: icon to be display on overlay
  • userEntry "workout" | "set" | "exercise"
  • userKey: api key for the component schema
  • field: component schema

By providing userEntry, userKey and field the system will prompt the user for input.

The component schema is based on Tracker $capture.as.

ExerciseAdvise options

  • title
  • body
  • image
    • attachment
    • relation
    • url