homey-api 3.4.27 → 3.4.29

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.
@@ -385,6 +385,20 @@
385
385
  }
386
386
  }
387
387
  },
388
+ "redeemReferAFriend": {
389
+ "path": "/offer/refer_a_friend",
390
+ "method": "post",
391
+ "parameters": {
392
+ "paymentProvider": {
393
+ "type": "string",
394
+ "in": "body"
395
+ },
396
+ "inviterId": {
397
+ "type": "string",
398
+ "in": "body"
399
+ }
400
+ }
401
+ },
388
402
  "redeemOffer": {
389
403
  "path": "/offer/{offerId}/redeem",
390
404
  "method": "post",
@@ -428,6 +442,10 @@
428
442
  "subscriptionDuration": {
429
443
  "type": "string",
430
444
  "in": "body"
445
+ },
446
+ "newCustomersOnly": {
447
+ "type": "boolean",
448
+ "in": "body"
431
449
  }
432
450
  }
433
451
  },
@@ -2596,6 +2596,202 @@
2596
2596
  }
2597
2597
  }
2598
2598
  },
2599
+ "ManagerMoods": {
2600
+ "id": "moods",
2601
+ "idCamelCase": "moods",
2602
+ "private": true,
2603
+ "items": {
2604
+ "Mood": {
2605
+ "id": "mood",
2606
+ "schema": {
2607
+ "type": "object",
2608
+ "properties": {
2609
+ "id": {
2610
+ "type": "string"
2611
+ },
2612
+ "name": {
2613
+ "type": "string"
2614
+ },
2615
+ "zone": {
2616
+ "type": "string"
2617
+ },
2618
+ "devices": {
2619
+ "type": "object",
2620
+ "additionalProperties": false,
2621
+ "patternProperties": {
2622
+ "^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$": {
2623
+ "type": "object",
2624
+ "additionalProperties": false,
2625
+ "properties": {
2626
+ "state": {
2627
+ "type": "object",
2628
+ "additionalProperties": false,
2629
+ "patternProperties": {
2630
+ ".*": {
2631
+ "anyOf": [
2632
+ {
2633
+ "type": "string"
2634
+ },
2635
+ {
2636
+ "type": "boolean"
2637
+ },
2638
+ {
2639
+ "type": "number"
2640
+ }
2641
+ ]
2642
+ }
2643
+ }
2644
+ }
2645
+ }
2646
+ }
2647
+ }
2648
+ }
2649
+ },
2650
+ "additionalProperties": false
2651
+ }
2652
+ }
2653
+ },
2654
+ "operations": {
2655
+ "getState": {
2656
+ "method": "get",
2657
+ "path": "/state",
2658
+ "private": false,
2659
+ "scopes": [
2660
+ "homey.system.readonly"
2661
+ ],
2662
+ "parameters": {}
2663
+ },
2664
+ "getMoods": {
2665
+ "method": "get",
2666
+ "path": "/mood",
2667
+ "private": false,
2668
+ "scopes": [
2669
+ "homey.mood.readonly"
2670
+ ],
2671
+ "crud": {
2672
+ "type": "getAll",
2673
+ "item": "Mood"
2674
+ },
2675
+ "parameters": {}
2676
+ },
2677
+ "getMood": {
2678
+ "method": "get",
2679
+ "path": "/mood/:id",
2680
+ "private": false,
2681
+ "scopes": [
2682
+ "homey.mood.readonly"
2683
+ ],
2684
+ "crud": {
2685
+ "type": "getOne",
2686
+ "item": "Mood"
2687
+ },
2688
+ "parameters": {
2689
+ "id": {
2690
+ "in": "path",
2691
+ "type": "string",
2692
+ "required": true
2693
+ }
2694
+ }
2695
+ },
2696
+ "createMood": {
2697
+ "method": "post",
2698
+ "path": "/mood",
2699
+ "private": false,
2700
+ "scopes": [
2701
+ "homey.mood"
2702
+ ],
2703
+ "crud": {
2704
+ "type": "createOne",
2705
+ "item": "Mood"
2706
+ },
2707
+ "parameters": {
2708
+ "mood": {
2709
+ "in": "body",
2710
+ "type": "object",
2711
+ "root": true,
2712
+ "required": true,
2713
+ "properties": {
2714
+ "name": {
2715
+ "type": "string",
2716
+ "required": true
2717
+ },
2718
+ "devices": {
2719
+ "type": "object",
2720
+ "required": true
2721
+ }
2722
+ }
2723
+ }
2724
+ }
2725
+ },
2726
+ "updateMood": {
2727
+ "method": "put",
2728
+ "path": "/mood/:id",
2729
+ "private": false,
2730
+ "scopes": [
2731
+ "homey.mood"
2732
+ ],
2733
+ "crud": {
2734
+ "type": "updateOne",
2735
+ "item": "Mood"
2736
+ },
2737
+ "parameters": {
2738
+ "id": {
2739
+ "in": "path",
2740
+ "type": "string",
2741
+ "required": true
2742
+ },
2743
+ "mood": {
2744
+ "in": "body",
2745
+ "type": "object",
2746
+ "root": true,
2747
+ "required": true,
2748
+ "properties": {
2749
+ "name": {
2750
+ "type": "string"
2751
+ },
2752
+ "devices": {
2753
+ "type": "object"
2754
+ }
2755
+ }
2756
+ }
2757
+ }
2758
+ },
2759
+ "setMood": {
2760
+ "method": "post",
2761
+ "path": "/mood/:id/set",
2762
+ "private": false,
2763
+ "scopes": [
2764
+ "homey.mood.set"
2765
+ ],
2766
+ "parameters": {
2767
+ "id": {
2768
+ "in": "path",
2769
+ "type": "string",
2770
+ "required": true
2771
+ }
2772
+ }
2773
+ },
2774
+ "deleteMood": {
2775
+ "method": "delete",
2776
+ "path": "/mood/:id",
2777
+ "private": false,
2778
+ "scopes": [
2779
+ "homey.mood"
2780
+ ],
2781
+ "crud": {
2782
+ "type": "deleteOne",
2783
+ "item": "Mood"
2784
+ },
2785
+ "parameters": {
2786
+ "id": {
2787
+ "in": "path",
2788
+ "type": "string",
2789
+ "required": true
2790
+ }
2791
+ }
2792
+ }
2793
+ }
2794
+ },
2599
2795
  "ManagerNotifications": {
2600
2796
  "id": "notifications",
2601
2797
  "idCamelCase": "notifications",
@@ -935,6 +935,18 @@ export namespace HomeyAPIV3Cloud.ManagerLogic {
935
935
  }
936
936
  }
937
937
 
938
+ export namespace HomeyAPIV3Cloud.ManagerMoods {
939
+ export class Mood {
940
+ id: string;
941
+
942
+ name: string;
943
+
944
+ zone: string;
945
+
946
+ devices: object;
947
+ }
948
+ }
949
+
938
950
  export namespace HomeyAPIV3Cloud.ManagerNotifications {
939
951
  export class Notification {
940
952
  id: string;
@@ -4001,6 +4013,12 @@ export class AthomStoreAPI {
4001
4013
 
4002
4014
  getOffer(opts: { offerId: string }): Promise<any>;
4003
4015
 
4016
+ redeemReferAFriend(opts: {
4017
+ paymentProvider?: string;
4018
+
4019
+ inviterId?: string;
4020
+ }): Promise<any>;
4021
+
4004
4022
  redeemOffer(opts: {
4005
4023
  offerId: string;
4006
4024
 
@@ -4019,6 +4037,8 @@ export class AthomStoreAPI {
4019
4037
  subscriptionQuantity?: number;
4020
4038
 
4021
4039
  subscriptionDuration?: string;
4040
+
4041
+ newCustomersOnly?: boolean;
4022
4042
  }): Promise<any>;
4023
4043
 
4024
4044
  getOffers(): Promise<any>;
@@ -4203,6 +4223,12 @@ export class AthomStoreAPI {
4203
4223
 
4204
4224
  getOffer(opts: { offerId: string }): Promise<any>;
4205
4225
 
4226
+ redeemReferAFriend(opts: {
4227
+ paymentProvider?: string;
4228
+
4229
+ inviterId?: string;
4230
+ }): Promise<any>;
4231
+
4206
4232
  redeemOffer(opts: {
4207
4233
  offerId: string;
4208
4234
 
@@ -4221,6 +4247,8 @@ export class AthomStoreAPI {
4221
4247
  subscriptionQuantity?: number;
4222
4248
 
4223
4249
  subscriptionDuration?: string;
4250
+
4251
+ newCustomersOnly?: boolean;
4224
4252
  }): Promise<any>;
4225
4253
 
4226
4254
  getOffers(): Promise<any>;
@@ -7161,6 +7189,12 @@ export class AthomStoreAPI {
7161
7189
 
7162
7190
  getOffer(opts: { offerId: string }): Promise<any>;
7163
7191
 
7192
+ redeemReferAFriend(opts: {
7193
+ paymentProvider?: string;
7194
+
7195
+ inviterId?: string;
7196
+ }): Promise<any>;
7197
+
7164
7198
  redeemOffer(opts: {
7165
7199
  offerId: string;
7166
7200
 
@@ -7179,6 +7213,8 @@ export class AthomStoreAPI {
7179
7213
  subscriptionQuantity?: number;
7180
7214
 
7181
7215
  subscriptionDuration?: string;
7216
+
7217
+ newCustomersOnly?: boolean;
7182
7218
  }): Promise<any>;
7183
7219
 
7184
7220
  getOffers(): Promise<any>;
@@ -7363,6 +7399,12 @@ export class AthomStoreAPI {
7363
7399
 
7364
7400
  getOffer(opts: { offerId: string }): Promise<any>;
7365
7401
 
7402
+ redeemReferAFriend(opts: {
7403
+ paymentProvider?: string;
7404
+
7405
+ inviterId?: string;
7406
+ }): Promise<any>;
7407
+
7366
7408
  redeemOffer(opts: {
7367
7409
  offerId: string;
7368
7410
 
@@ -7381,6 +7423,8 @@ export class AthomStoreAPI {
7381
7423
  subscriptionQuantity?: number;
7382
7424
 
7383
7425
  subscriptionDuration?: string;
7426
+
7427
+ newCustomersOnly?: boolean;
7384
7428
  }): Promise<any>;
7385
7429
 
7386
7430
  getOffers(): Promise<any>;
@@ -8469,6 +8513,36 @@ export namespace HomeyAPIV3Cloud {
8469
8513
  }): Promise<any>;
8470
8514
  }
8471
8515
 
8516
+ export class ManagerMoods extends HomeyAPIV3.ManagerMoods {
8517
+ getState(): Promise<any>;
8518
+
8519
+ getMoods(): Promise<{ [key: string]: HomeyAPIV3Cloud.ManagerMoods.Mood }>;
8520
+
8521
+ getMood(opts: { id: string }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8522
+
8523
+ createMood(opts: {
8524
+ mood: {
8525
+ name: string;
8526
+
8527
+ devices: object;
8528
+ };
8529
+ }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8530
+
8531
+ updateMood(opts: {
8532
+ id: string;
8533
+
8534
+ mood: {
8535
+ name?: string;
8536
+
8537
+ devices?: object;
8538
+ };
8539
+ }): Promise<HomeyAPIV3Cloud.ManagerMoods.Mood>;
8540
+
8541
+ setMood(opts: { id: string }): Promise<any>;
8542
+
8543
+ deleteMood(opts: { id: string }): Promise<any>;
8544
+ }
8545
+
8472
8546
  export class ManagerNotifications extends HomeyAPIV3.ManagerNotifications {
8473
8547
  getState(): Promise<any>;
8474
8548
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "3.4.27",
3
+ "version": "3.4.29",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "test": "jest --verbose",
16
16
  "lint": "eslint .",
17
17
  "serve": "concurrently \"serve jsdoc/\" \"npm run jsdoc:watch\"",
18
- "build": "npm run build:specs; npm run build:jsdoc; npm run build:types; npm run build:webpack;",
18
+ "build": "npm run build:specs && npm run build:jsdoc && npm run build:types && npm run build:webpack;",
19
19
  "build:webpack": "npm run webpack",
20
20
  "build:webpack:watch": "npm run webpack:watch",
21
21
  "build:types": "npm run generate-types;",