Skip to content

Schema Types

Content schema contains different type of schema

Direct

If schema is direct then allow user to dispatch the data.

Timed-task

Time task contains following attributes:-

Attributes

  • task.time: one of below option for time tasked
    • gong
    • timerComplete
    • timerEnding
    • timerEnds
    • timerMin
    • click
    • start
    • none
  • task.time.duration: Duration of time task in number default is 5
  • task.time.countUnit: Count unit of task from one of "steps" | "seconds" | "minutes" | "repetitions" | "breaths" | "kilometers" | "jumps" .default is "minutes"
  • task.time.prep: Preparation time of task
  • task.time.rest: Rest time of task
  • task.time.cycles: Indicate the task cycles
  • task.time.cycleLabel
  • task.time.prepAlert
  • task.time.checkpoint

Exercise-chooser

Allow user to choose exercise from set of exercises.

Attributes

  • handle
  • model
  • instance:- Different options for each task from below describe ##Excersise Profile

Example

{
  "handle": "cardio",
  "header": "Day 1 cardio",
  "title": "Cardio",
  "image": {
    "url": "Image url",
    "remote": true
  },
  "estimatedTime": "6",
  "cycleWorkout": false,
  "entries": [
    {
      "handle": "elliptical-machine",
      "model": "model-1",
      "instance": {
        "orNext": false,
        "rest": 0,
        "low": 10,
        "high": 20,
        "sets": 1,
        "weight": "0",
        "max": "none",
        "countUnit": "minutes"
      }
    },
    {
      "handle": "jogging",
      "model": "model-1",
      "instance": {
        "orNext": false,
        "rest": 0,
        "low": 10,
        "high": 20,
        "sets": 1,
        "weight": "0",
        "max": "none",
        "countUnit": "minutes"
      }
    }
  ],
  "post": null,
  "pre": null,
  "schema": "exercise-chooser",
  "start": "START CARDIO",
  "profile": "default",
  "values": {
    "title": "Kenzai Ski-boot day 1"
  },
  "_id": "53"
}

Task-chooser

Allow user to choose a workout from set of workout.

Attributes

  • task.chooser: contain below attributes as an array of objects
    • title
    • variant
  • task.variants: Based on chooser config the various exercise variants and it's sets.

Example

{
  "schema": "task-chooser",
  "query": "current user, given tracker[maintenance] from today to -10 days",
  "chooser": [
    {
      "title": "Light",
      "variant": "light"
    },
    {
      "title": "Moderate",
      "variant": "moderate"
    }
  ],
  "variants": {
    "light": [
      {
        "title": "Blast",
        "introduction": "Quick workout",
        "key": "blast",
        "handle": "workout",
        "day": 1,
        "level": "light",
        "previewImage": {
          "remote": true,
          "url": "https://weave-io-files-images.s3.amazonaws.com/assets/7be40b03-e0c3-4fce-b816-078e78fc8ceb/exercise-splits/Blast.jpg"
        },
        "entries": [
          {
            "handle": "half-burpee",
            "language": "en",
            "instance": {
              "orNext": false,
              "rest": "0",
              "low": "8",
              "high": "10",
              "sets": "1",
              "weight": "0",
              "max": "none"
            }
          }
        ]
      }
    ],
    "Moderate": [
      "configuration as same above"
    ]
  }
}

Task-paths

Allow user to choose a workout paths from set of workout

Attributes

  • task.chooser: contain below attributes as an array of objects
    • title
    • variant

Message

Allow user to read the html content.

Attributes

  • start: start button message
  • body: content to be display

Example

{
  "_id": "360",
  "title": "Welcome to Fusion!",
  "handle": "shout",
  "schema": "message",
  "start": "READ",
  "body": "<p>Hello test content</p>"
}

Lesson

  • start: start button message
  • body: content to be display
  • estimatedTime: Indicate timing to read the content
  • rating: Default rating to content
  • introduction: Intro portion of content
  • values.title
  • note
  • image
    • remote
    • url

Example

{
  "handle": "lesson",
  "header": "Day 1 lesson",
  "title": "Intro",
  "body": "<p>Hello test lessson</p>",
  "image": {
    "remote": true,
    "url": ""
  },
  "note": "",
  "estimatedTime": "6",
  "rating": "5",
  "introduction": "",
  "schema": "lesson",
  "start": "START LESSON",
  "values": {
    "title": "Day 1"
  }
}

Meditation

Display round timer for meditation and content.

Attributes

  • body: Body content
  • time: Timing for rounder timer

Exercise-list

Exercise-selected