homey-api 1.5.6 → 1.5.9

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.
@@ -258,6 +258,17 @@
258
258
  }
259
259
  }
260
260
  },
261
+ "getAppDriversStats": {
262
+ "path": "/app/{appId}/drivers/stats",
263
+ "method": "get",
264
+ "parameters": {
265
+ "appId": {
266
+ "in": "path",
267
+ "type": "string",
268
+ "required": true
269
+ }
270
+ }
271
+ },
261
272
  "getBuilds": {
262
273
  "path": "/app/{appId}/build",
263
274
  "method": "get",
@@ -444,6 +444,25 @@
444
444
 
445
445
 
446
446
 
447
+ opts: {
448
+
449
+
450
+ appId: string,
451
+
452
+
453
+ },
454
+
455
+
456
+
457
+
458
+ ):
459
+ Promise<any>;
460
+
461
+ getAppDriversStats(
462
+
463
+
464
+
465
+
447
466
  opts: {
448
467
 
449
468
 
@@ -2758,6 +2777,11 @@
2758
2777
 
2759
2778
  getAppInstallsStatistics(
2760
2779
 
2780
+ ):
2781
+ Promise<any>;
2782
+
2783
+ getAppDriversStatistics(
2784
+
2761
2785
  ):
2762
2786
  Promise<any>;
2763
2787
 
package/lib/API.js CHANGED
@@ -68,6 +68,8 @@ class API {
68
68
 
69
69
  this[operationId] = async ({
70
70
  $validate = true,
71
+ $timeout = 10000,
72
+ $timeoutMessage = null,
71
73
  $body = {},
72
74
  $query = {},
73
75
  $headers = {},
@@ -144,6 +146,8 @@ class API {
144
146
  body,
145
147
  path: pathWithParameters,
146
148
  context: { operation },
149
+ timeout: $timeout,
150
+ timeoutMessage: $timeoutMessage,
147
151
  });
148
152
  };
149
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.5.6",
3
+ "version": "1.5.9",
4
4
  "description": "Homey API",
5
5
  "main": "src/index.js",
6
6
  "types": "assets/types/homey-api.d.ts",