Skip to content
Snippets Groups Projects
Commit ab4176f9 authored by HAUTBOIS Aurelie's avatar HAUTBOIS Aurelie
Browse files

update userchallenge and quiz doctype

parent cc8262da
Branches
No related tags found
No related merge requests found
Pipeline #12316 passed
...@@ -238,6 +238,7 @@ This doctype is used to store all additionnal information about a challenge star ...@@ -238,6 +238,7 @@ This doctype is used to store all additionnal information about a challenge star
| progress | ChallengeProgress | Number of stars earned by the user for each challenge<br><br>ChallengeProgress enum<br>- _quizzProgress: number_<br>- _explorationProgress: number_<br>- _actionProgress: number_ | | progress | ChallengeProgress | Number of stars earned by the user for each challenge<br><br>ChallengeProgress enum<br>- _quizzProgress: number_<br>- _explorationProgress: number_<br>- _actionProgress: number_ |
| quiz | UserQuiz | Complete Quiz object with progress | | quiz | UserQuiz | Complete Quiz object with progress |
| exploration | UserExploration | Complete Exploration object with progress | | exploration | UserExploration | Complete Exploration object with progress |
| action | UserActionEntity | Complete Action object |
| duel | UserDuelEntity | Complete Duel object with progress included | | duel | UserDuelEntity | Complete Duel object with progress included |
| success | UserChallengeSuccess | Success state of the challenge<br><br>UserChallengeSuccess enum<br>- _ONGOING = 0_<br>- _LOST = 1_<br>- _WIN = 2_ | | success | UserChallengeSuccess | Success state of the challenge<br><br>UserChallengeSuccess enum<br>- _ONGOING = 0_<br>- _LOST = 1_<br>- _WIN = 2_ |
| startDate | string null | starting date of the the challenge | | startDate | string null | starting date of the the challenge |
...@@ -380,6 +381,51 @@ This doctype is used to store all additionnal information about a challenge star ...@@ -380,6 +381,51 @@ This doctype is used to store all additionnal information about a challenge star
"target": 3, "target": 3,
"type": 2 "type": 2
}, },
"action": {
"ecogesture": {
"_id": "ECOGESTURE0004",
"_rev": "3-da2ad5c7b81e4260e2254c98ec6ee971",
"_type": "com.grandlyon.ecolyo.ecogesture",
"action": true,
"actionDuration": 3,
"actionName": "Je coupe l'eau de la douche pendant que je me savonne.",
"cozyMetadata": {
"createdAt": "2021-03-08T09:52:41.029Z",
"createdByApp": "Ecolyo",
"createdByAppVersion": "1.0.4",
"metadataVersion": 1,
"updatedAt": "2021-03-08T09:52:41.029Z",
"updatedByApps": [
{
"date": "2021-03-08T09:52:41.029Z",
"slug": "Ecolyo",
"version": "1.0.4"
}
]
},
"difficulty": 1,
"efficiency": 2.5,
"equipment": false,
"equipmentInstallation": true,
"equipmentType": [],
"fluidTypes": [
1
],
"id": "ECOGESTURE0004",
"impactLevel": 5,
"investment": null,
"longDescription": "Si vous n’êtes pas frileux, coupez l'eau pendant que vous vous savonnez : l'économie en eau peut aller jusqu'à 50% !",
"longName": "Je coupe l'eau de la douche pendant que je me savonne.",
"room": [
1
],
"season": "Sans saison",
"shortName": "Déesse des eaux",
"usage": 3
},
"startDate": "2021-03-09T17:57:44.600Z",
"state": 1
},
"startDate": "2021-01-04T00:00:00.000Z", "startDate": "2021-01-04T00:00:00.000Z",
"state": 3, "state": 3,
"success": 0, "success": 0,
...@@ -485,7 +531,8 @@ This doctype is used to store all quiz. ...@@ -485,7 +531,8 @@ This doctype is used to store all quiz.
"type": 0, "type": 0,
"timeStep": 20, "timeStep": 20,
"interval": 30, "interval": 30,
"period": {} "period": {},
"singleFluid": true
} }
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment