@ix-xs/metamob.api 3.0.23 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ix-xs/metamob.api",
3
- "version": "3.0.23",
3
+ "version": "3.1.0",
4
4
  "description": "API Metamob Javascript",
5
5
  "keywords": [
6
6
  "API",
@@ -22,6 +22,6 @@
22
22
  "url": "git+https://github.com/ix-xs/metamob.api.git"
23
23
  },
24
24
  "dependencies": {
25
- "@ix-xs/node-comfort": "^1.0.15"
25
+ "@ix-xs/node-comfort": "^1.0.0"
26
26
  }
27
27
  }
@@ -34587,7 +34587,7 @@
34587
34587
  ]
34588
34588
  },
34589
34589
  {
34590
- "id": 638,
34590
+ "id": 274,
34591
34591
  "name": {
34592
34592
  "fr": "Robot Fléau",
34593
34593
  "en": "Robo Mace",
@@ -34604,41 +34604,21 @@
34604
34604
  "es": "monstruo"
34605
34605
  }
34606
34606
  },
34607
- "zones": []
34608
- },
34609
- {
34610
- "id": 274,
34611
- "name": {
34612
- "fr": "Robot Fléau",
34613
- "en": "Robo Mace",
34614
- "es": "Robot mangual"
34615
- },
34616
- "image": "robot_fleau.png",
34617
- "level_min": 138,
34618
- "level_max": 138,
34619
- "type": {
34620
- "id": 1,
34621
- "name": {
34622
- "fr": "monstre",
34623
- "en": "monster",
34624
- "es": "monstruo"
34625
- }
34626
- },
34627
34607
  "zones": [
34628
34608
  {
34629
- "id": 1,
34609
+ "id": 12,
34630
34610
  "name": {
34631
- "fr": "Amakna",
34632
- "en": "Amakna",
34633
- "es": "Amakna"
34611
+ "fr": "Plaines de Cania",
34612
+ "en": "Cania Plains",
34613
+ "es": "Llanuras de Cania"
34634
34614
  },
34635
34615
  "subzones": [
34636
34616
  {
34637
- "id": 160,
34617
+ "id": 158,
34638
34618
  "name": {
34639
- "fr": "Territoire souterrain des Porcos",
34640
- "en": "Underground Porco Territory",
34641
- "es": "Territorio subterráneo de los porcos"
34619
+ "fr": "Massif de Cania",
34620
+ "en": "Cania Massif",
34621
+ "es": "Sierra de Cania"
34642
34622
  }
34643
34623
  }
34644
34624
  ]
package/src/MetamobAPI.js CHANGED
@@ -840,11 +840,20 @@ module.exports = class MetamobAPI {
840
840
  /**
841
841
  * ### Profil utilisateur
842
842
 
843
+ * @typedef {object} UserQuest
844
+ * @property {string} slug
845
+ * @property {string} character_name
846
+ * @property {number} current_step
847
+ * @property {number} parallel_quests
848
+ * @property {Server} server
849
+ * @property {QuestTemplate} quest_template
850
+
843
851
  * @typedef {object} User
844
852
  * @property {string} username
845
853
  * @property {string} bio
846
854
  * @property {UserAvatar} avatar
847
855
  * @property {string} last_active
856
+ * @property {Array<Quest>} quests
848
857
 
849
858
  * @param {string} username
850
859
 
@@ -884,8 +893,6 @@ module.exports = class MetamobAPI {
884
893
 
885
894
  if (result.ok) {
886
895
  data = convertIds(await _.json());
887
-
888
- delete data.data.quests;
889
896
  }
890
897
 
891
898
  result = {