diff --git a/docs/ecolyo/project_architecture/doctypes.md b/docs/ecolyo/project_architecture/doctypes.md index 46be97491ee79589719174885031b17cd296453c..8fe946e34f79543274929e788af7a6a6ed867cd0 100644 --- a/docs/ecolyo/project_architecture/doctypes.md +++ b/docs/ecolyo/project_architecture/doctypes.md @@ -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_ | | quiz | UserQuiz | Complete Quiz object with progress | | exploration | UserExploration | Complete Exploration object with progress | +| action | UserActionEntity | Complete Action object | | 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_ | | 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 "target": 3, "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", "state": 3, "success": 0, @@ -485,7 +531,8 @@ This doctype is used to store all quiz. "type": 0, "timeStep": 20, "interval": 30, - "period": {} + "period": {}, + "singleFluid": true } } ```