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 taskedgong
timerComplete
timerEnding
timerEnds
timerMin
click
start
none
task.time.duration
: Duration of time task in number default is 5task.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 tasktask.time.rest
: Rest time of tasktask.time.cycles
: Indicate the task cyclestask.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 objectstitle
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 objectstitle
variant
Message
Allow user to read the html content.
Attributes
start
: start button messagebody
: 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 messagebody
: content to be displayestimatedTime
: Indicate timing to read the contentrating
: Default rating to contentintroduction
: Intro portion of contentvalues.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 contenttime
: Timing for rounder timer