homey-api 3.6.0 → 3.6.2

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.
@@ -294,6 +294,11 @@
294
294
  "method": "get",
295
295
  "parameters": {}
296
296
  },
297
+ "getAllLiveApps": {
298
+ "path": "/app/all",
299
+ "method": "get",
300
+ "parameters": {}
301
+ },
297
302
  "getReviewApps": {
298
303
  "path": "/app/review",
299
304
  "method": "get",
@@ -1090,6 +1090,26 @@
1090
1090
  }
1091
1091
  }
1092
1092
  },
1093
+ "updateHomeySendConnectionNotifications": {
1094
+ "path": "/homey/{homeyId}/send-connection-notifications",
1095
+ "method": "put",
1096
+ "private": true,
1097
+ "parameters": {
1098
+ "homeyId": {
1099
+ "in": "path",
1100
+ "type": "string",
1101
+ "required": true
1102
+ },
1103
+ "push": {
1104
+ "type": "boolean",
1105
+ "in": "body"
1106
+ },
1107
+ "email": {
1108
+ "type": "boolean",
1109
+ "in": "body"
1110
+ }
1111
+ }
1112
+ },
1093
1113
  "sendFormattedEmail": {
1094
1114
  "path": "/mail/formatted",
1095
1115
  "method": "post",
@@ -195,6 +195,10 @@
195
195
  "business_vat": {
196
196
  "type": "string",
197
197
  "in": "body"
198
+ },
199
+ "business_reference": {
200
+ "type": "string",
201
+ "in": "body"
198
202
  }
199
203
  }
200
204
  },
@@ -609,6 +609,12 @@ export namespace HomeyAPIV2.ManagerZones {
609
609
  active: boolean;
610
610
 
611
611
  icon: string;
612
+
613
+ uri: string;
614
+
615
+ manager: HomeyAPIV3.Manager;
616
+
617
+ homey: HomeyAPIV3;
612
618
  }
613
619
  }
614
620
 
@@ -982,8 +988,20 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
982
988
  }
983
989
 
984
990
  export namespace HomeyAPIV3Cloud.ManagerZones {
985
- export class Zone {
991
+ export class Zone extends HomeyAPIV3.ManagerZones.Zone {
986
992
  id: string;
993
+
994
+ uri: string;
995
+
996
+ manager: HomeyAPIV3.Manager;
997
+
998
+ homey: HomeyAPIV3;
999
+
1000
+ getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
1001
+
1002
+ connect(): Promise<any>;
1003
+
1004
+ disconnect(): Promise<any>;
987
1005
  }
988
1006
  }
989
1007
 
@@ -1425,8 +1443,20 @@ export namespace HomeyAPIV3Local.ManagerVirtualDevice {
1425
1443
  }
1426
1444
 
1427
1445
  export namespace HomeyAPIV3Local.ManagerZones {
1428
- export class Zone {
1446
+ export class Zone extends HomeyAPIV3.ManagerZones.Zone {
1429
1447
  id: string;
1448
+
1449
+ uri: string;
1450
+
1451
+ manager: HomeyAPIV3.Manager;
1452
+
1453
+ homey: HomeyAPIV3;
1454
+
1455
+ getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
1456
+
1457
+ connect(): Promise<any>;
1458
+
1459
+ disconnect(): Promise<any>;
1430
1460
  }
1431
1461
  }
1432
1462
 
@@ -4425,3 +4455,21 @@ export namespace HomeyAPIV3.ManagerInsights {
4425
4455
  disconnect(): Promise<any>;
4426
4456
  }
4427
4457
  }
4458
+
4459
+ export namespace HomeyAPIV3.ManagerZones {
4460
+ export class Zone extends HomeyAPIV3.Item {
4461
+ id: string;
4462
+
4463
+ uri: string;
4464
+
4465
+ manager: HomeyAPIV3.Manager;
4466
+
4467
+ homey: HomeyAPIV3;
4468
+
4469
+ getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
4470
+
4471
+ connect(): Promise<any>;
4472
+
4473
+ disconnect(): Promise<any>;
4474
+ }
4475
+ }
@@ -633,6 +633,12 @@ export namespace HomeyAPIV2.ManagerZones {
633
633
  active: boolean;
634
634
 
635
635
  icon: string;
636
+
637
+ uri: string;
638
+
639
+ manager: HomeyAPIV3.Manager;
640
+
641
+ homey: HomeyAPIV3;
636
642
  }
637
643
  }
638
644
 
@@ -1030,8 +1036,20 @@ export namespace HomeyAPIV3Cloud.ManagerVirtualDevice {
1030
1036
  }
1031
1037
 
1032
1038
  export namespace HomeyAPIV3Cloud.ManagerZones {
1033
- export class Zone {
1039
+ export class Zone extends HomeyAPIV3.ManagerZones.Zone {
1034
1040
  id: string;
1041
+
1042
+ uri: string;
1043
+
1044
+ manager: HomeyAPIV3.Manager;
1045
+
1046
+ homey: HomeyAPIV3;
1047
+
1048
+ getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
1049
+
1050
+ connect(): Promise<any>;
1051
+
1052
+ disconnect(): Promise<any>;
1035
1053
  }
1036
1054
  }
1037
1055
 
@@ -1501,8 +1519,20 @@ export namespace HomeyAPIV3Local.ManagerVirtualDevice {
1501
1519
  }
1502
1520
 
1503
1521
  export namespace HomeyAPIV3Local.ManagerZones {
1504
- export class Zone {
1522
+ export class Zone extends HomeyAPIV3.ManagerZones.Zone {
1505
1523
  id: string;
1524
+
1525
+ uri: string;
1526
+
1527
+ manager: HomeyAPIV3.Manager;
1528
+
1529
+ homey: HomeyAPIV3;
1530
+
1531
+ getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
1532
+
1533
+ connect(): Promise<any>;
1534
+
1535
+ disconnect(): Promise<any>;
1506
1536
  }
1507
1537
  }
1508
1538
 
@@ -1679,6 +1709,8 @@ export class AthomAppsAPI {
1679
1709
 
1680
1710
  getAllLiveAppIDs(): Promise<any>;
1681
1711
 
1712
+ getAllLiveApps(): Promise<any>;
1713
+
1682
1714
  getReviewApps(): Promise<any>;
1683
1715
 
1684
1716
  getApp(opts: { appId: string }): Promise<any>;
@@ -1983,6 +2015,8 @@ export class AthomAppsAPI {
1983
2015
 
1984
2016
  getAllLiveAppIDs(): Promise<any>;
1985
2017
 
2018
+ getAllLiveApps(): Promise<any>;
2019
+
1986
2020
  getReviewApps(): Promise<any>;
1987
2021
 
1988
2022
  getApp(opts: { appId: string }): Promise<any>;
@@ -2779,6 +2813,14 @@ export class AthomCloudAPI {
2779
2813
  key: string;
2780
2814
  }): Promise<any>;
2781
2815
 
2816
+ updateHomeySendConnectionNotifications(opts: {
2817
+ homeyId: string;
2818
+
2819
+ push?: boolean;
2820
+
2821
+ email?: boolean;
2822
+ }): Promise<any>;
2823
+
2782
2824
  sendFormattedEmail(opts: {
2783
2825
  to?: string;
2784
2826
 
@@ -3343,6 +3385,14 @@ export class AthomCloudAPI {
3343
3385
  key: string;
3344
3386
  }): Promise<any>;
3345
3387
 
3388
+ updateHomeySendConnectionNotifications(opts: {
3389
+ homeyId: string;
3390
+
3391
+ push?: boolean;
3392
+
3393
+ email?: boolean;
3394
+ }): Promise<any>;
3395
+
3346
3396
  sendFormattedEmail(opts: {
3347
3397
  to?: string;
3348
3398
 
@@ -3999,6 +4049,8 @@ export class AthomStoreAPI {
3999
4049
  business_name?: string;
4000
4050
 
4001
4051
  business_vat?: string;
4052
+
4053
+ business_reference?: string;
4002
4054
  }): Promise<any>;
4003
4055
 
4004
4056
  setBusiness(opts: { business?: boolean }): Promise<any>;
@@ -4223,6 +4275,8 @@ export class AthomStoreAPI {
4223
4275
  business_name?: string;
4224
4276
 
4225
4277
  business_vat?: string;
4278
+
4279
+ business_reference?: string;
4226
4280
  }): Promise<any>;
4227
4281
 
4228
4282
  setBusiness(opts: { business?: boolean }): Promise<any>;
@@ -4939,6 +4993,8 @@ export class AthomAppsAPI {
4939
4993
 
4940
4994
  getAllLiveAppIDs(): Promise<any>;
4941
4995
 
4996
+ getAllLiveApps(): Promise<any>;
4997
+
4942
4998
  getReviewApps(): Promise<any>;
4943
4999
 
4944
5000
  getApp(opts: { appId: string }): Promise<any>;
@@ -5243,6 +5299,8 @@ export class AthomAppsAPI {
5243
5299
 
5244
5300
  getAllLiveAppIDs(): Promise<any>;
5245
5301
 
5302
+ getAllLiveApps(): Promise<any>;
5303
+
5246
5304
  getReviewApps(): Promise<any>;
5247
5305
 
5248
5306
  getApp(opts: { appId: string }): Promise<any>;
@@ -6039,6 +6097,14 @@ export class AthomCloudAPI {
6039
6097
  key: string;
6040
6098
  }): Promise<any>;
6041
6099
 
6100
+ updateHomeySendConnectionNotifications(opts: {
6101
+ homeyId: string;
6102
+
6103
+ push?: boolean;
6104
+
6105
+ email?: boolean;
6106
+ }): Promise<any>;
6107
+
6042
6108
  sendFormattedEmail(opts: {
6043
6109
  to?: string;
6044
6110
 
@@ -6603,6 +6669,14 @@ export class AthomCloudAPI {
6603
6669
  key: string;
6604
6670
  }): Promise<any>;
6605
6671
 
6672
+ updateHomeySendConnectionNotifications(opts: {
6673
+ homeyId: string;
6674
+
6675
+ push?: boolean;
6676
+
6677
+ email?: boolean;
6678
+ }): Promise<any>;
6679
+
6606
6680
  sendFormattedEmail(opts: {
6607
6681
  to?: string;
6608
6682
 
@@ -7259,6 +7333,8 @@ export class AthomStoreAPI {
7259
7333
  business_name?: string;
7260
7334
 
7261
7335
  business_vat?: string;
7336
+
7337
+ business_reference?: string;
7262
7338
  }): Promise<any>;
7263
7339
 
7264
7340
  setBusiness(opts: { business?: boolean }): Promise<any>;
@@ -7483,6 +7559,8 @@ export class AthomStoreAPI {
7483
7559
  business_name?: string;
7484
7560
 
7485
7561
  business_vat?: string;
7562
+
7563
+ business_reference?: string;
7486
7564
  }): Promise<any>;
7487
7565
 
7488
7566
  setBusiness(opts: { business?: boolean }): Promise<any>;
@@ -10907,3 +10985,21 @@ export namespace HomeyAPIV3.ManagerInsights {
10907
10985
  disconnect(): Promise<any>;
10908
10986
  }
10909
10987
  }
10988
+
10989
+ export namespace HomeyAPIV3.ManagerZones {
10990
+ export class Zone extends HomeyAPIV3.Item {
10991
+ id: string;
10992
+
10993
+ uri: string;
10994
+
10995
+ manager: HomeyAPIV3.Manager;
10996
+
10997
+ homey: HomeyAPIV3;
10998
+
10999
+ getParent(): Promise<HomeyAPIV3.ManagerZones.Zone | null>;
11000
+
11001
+ connect(): Promise<any>;
11002
+
11003
+ disconnect(): Promise<any>;
11004
+ }
11005
+ }
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ const Item = require('../Item');
4
+
5
+ /**
6
+ * @class
7
+ * @hideconstructor
8
+ * @extends HomeyAPIV3.Item
9
+ * @memberof HomeyAPIV3.ManagerZones
10
+ */
11
+ class Zone extends Item {
12
+
13
+ /**
14
+ * Get the parent zone.
15
+ * @returns {Promise<HomeyAPIV3.ManagerZones.Zone|null>}
16
+ */
17
+ async getParent() {
18
+ if (!this.parent) return null;
19
+
20
+ return this.homey.zones.getZone({
21
+ id: this.parent,
22
+ });
23
+ }
24
+
25
+ }
26
+
27
+ module.exports = Zone;
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ const Manager = require('./Manager');
4
+ const Zone = require('./ManagerZones/Zone');
5
+
6
+ class ManagerZones extends Manager {
7
+
8
+ static CRUD = {
9
+ ...super.CRUD,
10
+ Zone,
11
+ }
12
+
13
+ }
14
+
15
+ module.exports = ManagerZones;
@@ -12,6 +12,7 @@ const ManagerFlow = require('./HomeyAPIV3/ManagerFlow');
12
12
  const ManagerFlowToken = require('./HomeyAPIV3/ManagerFlowToken');
13
13
  const ManagerInsights = require('./HomeyAPIV3/ManagerInsights');
14
14
  const ManagerUsers = require('./HomeyAPIV3/ManagerUsers');
15
+ const ManagerZones = require('./HomeyAPIV3/ManagerZones');
15
16
  const Manager = require('./HomeyAPIV3/Manager');
16
17
 
17
18
  /**
@@ -29,6 +30,7 @@ class HomeyAPIV3 extends HomeyAPI {
29
30
  ManagerFlowToken,
30
31
  ManagerInsights,
31
32
  ManagerUsers,
33
+ ManagerZones,
32
34
  };
33
35
 
34
36
  static DEFAULT_TIMEOUT = 1000 * 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.6.0",
3
+ "version": "3.6.2",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [