homey-api 1.5.0 → 1.5.1

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.
@@ -82,6 +82,40 @@
82
82
  }
83
83
  }
84
84
  },
85
+ "browseApps": {
86
+ "path": "/app/browse",
87
+ "method": "get",
88
+ "parameters": {
89
+ "query": {
90
+ "in": "query",
91
+ "type": "string"
92
+ },
93
+ "language": {
94
+ "in": "query",
95
+ "type": "string"
96
+ },
97
+ "platform": {
98
+ "in": "query",
99
+ "type": "array"
100
+ },
101
+ "connectivity": {
102
+ "in": "query",
103
+ "type": "array"
104
+ },
105
+ "category": {
106
+ "in": "query",
107
+ "type": "array"
108
+ },
109
+ "limit": {
110
+ "in": "query",
111
+ "type": "number"
112
+ },
113
+ "offset": {
114
+ "in": "query",
115
+ "type": "number"
116
+ }
117
+ }
118
+ },
85
119
  "syncApps": {
86
120
  "path": "/app/sync",
87
121
  "method": "post",
@@ -185,6 +185,53 @@
185
185
 
186
186
 
187
187
 
188
+ __(
189
+
190
+
191
+
192
+
193
+ input: {
194
+
195
+
196
+ en: string,
197
+
198
+
199
+
200
+ nl: string,
201
+
202
+
203
+ },
204
+
205
+
206
+
207
+
208
+ ):
209
+ string | null;
210
+
211
+ }
212
+
213
+ export class HomeyAPIApp extends HomeyAPIV2 {
214
+
215
+ constructor(
216
+
217
+
218
+
219
+
220
+ homey: Homey,
221
+
222
+
223
+
224
+ debug: boolean,
225
+
226
+
227
+
228
+
229
+ )
230
+
231
+
232
+
233
+
234
+
188
235
  __(
189
236
 
190
237
 
@@ -603,6 +650,8 @@
603
650
 
604
651
 
605
652
 
653
+
654
+
606
655
 
607
656
 
608
657
 
@@ -197,6 +197,49 @@
197
197
 
198
198
 
199
199
 
200
+ ):
201
+ Promise<any>;
202
+
203
+ browseApps(
204
+
205
+
206
+
207
+
208
+ opts: {
209
+
210
+
211
+ query: string,
212
+
213
+
214
+
215
+ language: string,
216
+
217
+
218
+
219
+ platform: Array<any>,
220
+
221
+
222
+
223
+ connectivity: Array<any>,
224
+
225
+
226
+
227
+ category: Array<any>,
228
+
229
+
230
+
231
+ limit: number,
232
+
233
+
234
+
235
+ offset: number,
236
+
237
+
238
+ },
239
+
240
+
241
+
242
+
200
243
  ):
201
244
  Promise<any>;
202
245
 
@@ -277,6 +320,25 @@
277
320
 
278
321
 
279
322
 
323
+ opts: {
324
+
325
+
326
+ appId: string,
327
+
328
+
329
+ },
330
+
331
+
332
+
333
+
334
+ ):
335
+ Promise<any>;
336
+
337
+ getAppChangelog(
338
+
339
+
340
+
341
+
280
342
  opts: {
281
343
 
282
344
 
@@ -4905,6 +4967,53 @@
4905
4967
 
4906
4968
 
4907
4969
 
4970
+ __(
4971
+
4972
+
4973
+
4974
+
4975
+ input: {
4976
+
4977
+
4978
+ en: string,
4979
+
4980
+
4981
+
4982
+ nl: string,
4983
+
4984
+
4985
+ },
4986
+
4987
+
4988
+
4989
+
4990
+ ):
4991
+ string | null;
4992
+
4993
+ }
4994
+
4995
+ export class HomeyAPIApp extends HomeyAPIV2 {
4996
+
4997
+ constructor(
4998
+
4999
+
5000
+
5001
+
5002
+ homey: Homey,
5003
+
5004
+
5005
+
5006
+ debug: boolean,
5007
+
5008
+
5009
+
5010
+
5011
+ )
5012
+
5013
+
5014
+
5015
+
5016
+
4908
5017
  __(
4909
5018
 
4910
5019
 
@@ -5528,6 +5637,8 @@
5528
5637
 
5529
5638
 
5530
5639
 
5640
+
5641
+
5531
5642
 
5532
5643
 
5533
5644
 
@@ -21,7 +21,7 @@ const HomeyAPIV2 = require('./HomeyAPIV2');
21
21
  * }
22
22
  *
23
23
  * // app.js
24
- * const { Homey } = require('homey');
24
+ * const Homey = require('homey');
25
25
  * const { HomeyAPIApp } = require('homey-api');
26
26
  *
27
27
  * class MyApp extends Homey.App {
@@ -47,6 +47,10 @@ class HomeyAPIApp extends HomeyAPIV2 {
47
47
  */
48
48
  static DISCOVERY_STRATEGIES = {};
49
49
 
50
+ /**
51
+ * @param {Homey} homey - The Homey instance of your app, usually `this.homey`.
52
+ * @param {boolean} [debug=false] - Enable debug logs.
53
+ */
50
54
  constructor({
51
55
  homey,
52
56
  debug = false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Homey API",
5
5
  "main": "src/index.js",
6
6
  "types": "assets/types/homey-api.d.ts",