homey-api 1.10.12 → 1.10.14

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.
@@ -79,6 +79,14 @@
79
79
  "homeyPlatform": {
80
80
  "in": "query",
81
81
  "type": "string"
82
+ },
83
+ "homeyPlatformVersion": {
84
+ "in": "query",
85
+ "type": "string"
86
+ },
87
+ "homeyModel": {
88
+ "in": "query",
89
+ "type": "string"
82
90
  }
83
91
  }
84
92
  },
@@ -216,6 +216,14 @@
216
216
  homeyPlatform: string,
217
217
 
218
218
 
219
+
220
+ homeyPlatformVersion: string,
221
+
222
+
223
+
224
+ homeyModel: string,
225
+
226
+
219
227
  },
220
228
 
221
229
 
@@ -113,9 +113,13 @@ class HomeyAPIV2 extends HomeyAPI {
113
113
  * A manager instance is created when it's first accessed
114
114
  */
115
115
 
116
- generateManagersFromSpecification() {
116
+ getSpecification() {
117
117
  // eslint-disable-next-line global-require
118
- const { managers } = require('../../assets/specifications/HomeyAPIV2.json');
118
+ return require('../../assets/specifications/HomeyAPIV2.json');
119
+ }
120
+
121
+ generateManagersFromSpecification() {
122
+ const { managers } = this.getSpecification();
119
123
  Object.entries(managers).forEach(([managerName, manager]) => {
120
124
  this.generateManagerFromSpecification(managerName, manager);
121
125
  });
@@ -33,6 +33,11 @@ class HomeyAPIV3Cloud extends HomeyAPIV3 {
33
33
  });
34
34
  }
35
35
 
36
+ getSpecification() {
37
+ // eslint-disable-next-line global-require
38
+ return require('../../assets/specifications/HomeyAPIV3Cloud.json');
39
+ }
40
+
36
41
  }
37
42
 
38
43
  module.exports = HomeyAPIV3Cloud;
@@ -11,6 +11,11 @@ const HomeyAPIV3 = require('./HomeyAPIV3');
11
11
  */
12
12
  class HomeyAPIV3Local extends HomeyAPIV3 {
13
13
 
14
+ getSpecification() {
15
+ // eslint-disable-next-line global-require
16
+ return require('../../assets/specifications/HomeyAPIV3Local.json');
17
+ }
18
+
14
19
  }
15
20
 
16
21
  module.exports = HomeyAPIV3Local;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.10.12",
3
+ "version": "1.10.14",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -48,7 +48,7 @@
48
48
  "core-js": "^3.19.1",
49
49
  "node-fetch": "^2.6.7",
50
50
  "regenerator-runtime": "^0.13.9",
51
- "socket.io-client": "^1.7.4"
51
+ "socket.io-client": "^2.5.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@athombv/jsdoc-template": "^1.6.1",