homey-api 1.5.27 → 1.5.30

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.
@@ -34,6 +34,10 @@
34
34
  "quantity": {
35
35
  "type": "number",
36
36
  "in": "body"
37
+ },
38
+ "options": {
39
+ "type": "object",
40
+ "in": "body"
37
41
  }
38
42
  }
39
43
  },
@@ -369,6 +373,93 @@
369
373
  "required": true
370
374
  }
371
375
  }
376
+ },
377
+ "getOffer": {
378
+ "path": "/offer/{offerId}",
379
+ "method": "get",
380
+ "parameters": {
381
+ "offerId": {
382
+ "in": "path",
383
+ "type": "string",
384
+ "required": true
385
+ }
386
+ }
387
+ },
388
+ "redeemOffer": {
389
+ "path": "/offer/{offerId}/redeem",
390
+ "method": "post",
391
+ "parameters": {
392
+ "offerId": {
393
+ "in": "path",
394
+ "type": "string",
395
+ "required": true
396
+ },
397
+ "paymentProvider": {
398
+ "type": "string",
399
+ "in": "body"
400
+ }
401
+ }
402
+ },
403
+ "createOfferCouponApple": {
404
+ "path": "/offer/coupon_apple",
405
+ "method": "post",
406
+ "parameters": {
407
+ "coupon": {
408
+ "type": "string",
409
+ "in": "body"
410
+ },
411
+ "expiresAt": {
412
+ "type": "string",
413
+ "in": "body"
414
+ },
415
+ "subscriptionType": {
416
+ "type": "string",
417
+ "in": "body"
418
+ },
419
+ "subscriptionQuantity": {
420
+ "type": "number",
421
+ "in": "body"
422
+ },
423
+ "subscriptionDuration": {
424
+ "type": "string",
425
+ "in": "body"
426
+ }
427
+ }
428
+ },
429
+ "getOffers": {
430
+ "path": "/offer",
431
+ "method": "get",
432
+ "parameters": {}
433
+ },
434
+ "createOffer": {
435
+ "path": "/offer",
436
+ "method": "post",
437
+ "parameters": {
438
+ "userId": {
439
+ "type": "string",
440
+ "in": "body"
441
+ },
442
+ "expiresAt": {
443
+ "type": "string",
444
+ "in": "body"
445
+ },
446
+ "campaignId": {
447
+ "type": "string",
448
+ "in": "body"
449
+ },
450
+ "subscriptionType": {
451
+ "type": "string",
452
+ "in": "body"
453
+ },
454
+ "subscriptionQuantity": {
455
+ "type": "number",
456
+ "in": "body"
457
+ },
458
+ "subscriptionDuration": {
459
+ "type": "string",
460
+ "in": "body"
461
+ }
462
+ }
372
463
  }
373
464
  }
374
465
  }
@@ -2459,6 +2459,10 @@
2459
2459
  "x-homey-readonly": true,
2460
2460
  "type": "boolean"
2461
2461
  },
2462
+ "triggerable": {
2463
+ "x-homey-readonly": true,
2464
+ "type": "boolean"
2465
+ },
2462
2466
  "trigger": {
2463
2467
  "type": "object",
2464
2468
  "required": [
@@ -2863,6 +2867,10 @@
2863
2867
  "x-homey-readonly": true,
2864
2868
  "type": "boolean"
2865
2869
  },
2870
+ "triggerable": {
2871
+ "x-homey-readonly": true,
2872
+ "type": "boolean"
2873
+ },
2866
2874
  "folder": {
2867
2875
  "type": [
2868
2876
  "string",
@@ -2906,6 +2914,25 @@
2906
2914
  }
2907
2915
  },
2908
2916
  "operations": {
2917
+ "triggerAdvancedFlow": {
2918
+ "method": "POST",
2919
+ "path": "/advancedflow/:id/trigger",
2920
+ "private": false,
2921
+ "scopes": [
2922
+ "homey.flow.start"
2923
+ ],
2924
+ "parameters": {
2925
+ "id": {
2926
+ "in": "path",
2927
+ "required": true,
2928
+ "type": "string"
2929
+ },
2930
+ "state": {
2931
+ "in": "body",
2932
+ "root": true
2933
+ }
2934
+ }
2935
+ },
2909
2936
  "deleteAdvancedFlow": {
2910
2937
  "method": "DELETE",
2911
2938
  "path": "/advancedflow/:id",
@@ -5375,6 +5402,24 @@
5375
5402
  ],
5376
5403
  "parameters": {}
5377
5404
  },
5405
+ "stopCPUProfile": {
5406
+ "method": "POST",
5407
+ "path": "/cpuprofile/stop",
5408
+ "private": true,
5409
+ "scopes": [
5410
+ "homey.system.readonly"
5411
+ ],
5412
+ "parameters": {}
5413
+ },
5414
+ "startCPUProfile": {
5415
+ "method": "POST",
5416
+ "path": "/cpuprofile/start",
5417
+ "private": true,
5418
+ "scopes": [
5419
+ "homey.system.readonly"
5420
+ ],
5421
+ "parameters": {}
5422
+ },
5378
5423
  "createHeapdump": {
5379
5424
  "method": "POST",
5380
5425
  "path": "/heapdump",
@@ -1210,6 +1210,8 @@
1210
1210
 
1211
1211
  broken: boolean;
1212
1212
 
1213
+ triggerable: boolean;
1214
+
1213
1215
  folder: string | null;
1214
1216
 
1215
1217
  cards: object;
@@ -1234,6 +1236,8 @@
1234
1236
 
1235
1237
  broken: boolean;
1236
1238
 
1239
+ triggerable: boolean;
1240
+
1237
1241
  trigger: object;
1238
1242
 
1239
1243
  conditions: Array<any>;
@@ -6641,6 +6645,29 @@
6641
6645
 
6642
6646
 
6643
6647
 
6648
+ triggerAdvancedFlow(
6649
+
6650
+
6651
+
6652
+
6653
+ opts: {
6654
+
6655
+
6656
+ id: string,
6657
+
6658
+
6659
+
6660
+ state: *,
6661
+
6662
+
6663
+ },
6664
+
6665
+
6666
+
6667
+
6668
+ ):
6669
+ Promise<any>;
6670
+
6644
6671
  deleteAdvancedFlow(
6645
6672
 
6646
6673
 
@@ -4232,6 +4232,10 @@
4232
4232
  quantity: number,
4233
4233
 
4234
4234
 
4235
+
4236
+ options: object,
4237
+
4238
+
4235
4239
  },
4236
4240
 
4237
4241
 
@@ -4700,6 +4704,127 @@
4700
4704
 
4701
4705
 
4702
4706
 
4707
+ ):
4708
+ Promise<any>;
4709
+
4710
+ getOffer(
4711
+
4712
+
4713
+
4714
+
4715
+ opts: {
4716
+
4717
+
4718
+ offerId: string,
4719
+
4720
+
4721
+ },
4722
+
4723
+
4724
+
4725
+
4726
+ ):
4727
+ Promise<any>;
4728
+
4729
+ redeemOffer(
4730
+
4731
+
4732
+
4733
+
4734
+ opts: {
4735
+
4736
+
4737
+ offerId: string,
4738
+
4739
+
4740
+
4741
+ paymentProvider: string,
4742
+
4743
+
4744
+ },
4745
+
4746
+
4747
+
4748
+
4749
+ ):
4750
+ Promise<any>;
4751
+
4752
+ createOfferCouponApple(
4753
+
4754
+
4755
+
4756
+
4757
+ opts: {
4758
+
4759
+
4760
+ coupon: string,
4761
+
4762
+
4763
+
4764
+ expiresAt: string,
4765
+
4766
+
4767
+
4768
+ subscriptionType: string,
4769
+
4770
+
4771
+
4772
+ subscriptionQuantity: number,
4773
+
4774
+
4775
+
4776
+ subscriptionDuration: string,
4777
+
4778
+
4779
+ },
4780
+
4781
+
4782
+
4783
+
4784
+ ):
4785
+ Promise<any>;
4786
+
4787
+ getOffers(
4788
+
4789
+ ):
4790
+ Promise<any>;
4791
+
4792
+ createOffer(
4793
+
4794
+
4795
+
4796
+
4797
+ opts: {
4798
+
4799
+
4800
+ userId: string,
4801
+
4802
+
4803
+
4804
+ expiresAt: string,
4805
+
4806
+
4807
+
4808
+ campaignId: string,
4809
+
4810
+
4811
+
4812
+ subscriptionType: string,
4813
+
4814
+
4815
+
4816
+ subscriptionQuantity: number,
4817
+
4818
+
4819
+
4820
+ subscriptionDuration: string,
4821
+
4822
+
4823
+ },
4824
+
4825
+
4826
+
4827
+
4703
4828
  ):
4704
4829
  Promise<any>;
4705
4830
 
@@ -6370,6 +6495,8 @@
6370
6495
 
6371
6496
  broken: boolean;
6372
6497
 
6498
+ triggerable: boolean;
6499
+
6373
6500
  folder: string | null;
6374
6501
 
6375
6502
  cards: object;
@@ -6394,6 +6521,8 @@
6394
6521
 
6395
6522
  broken: boolean;
6396
6523
 
6524
+ triggerable: boolean;
6525
+
6397
6526
  trigger: object;
6398
6527
 
6399
6528
  conditions: Array<any>;
@@ -12149,6 +12278,29 @@
12149
12278
 
12150
12279
 
12151
12280
 
12281
+ triggerAdvancedFlow(
12282
+
12283
+
12284
+
12285
+
12286
+ opts: {
12287
+
12288
+
12289
+ id: string,
12290
+
12291
+
12292
+
12293
+ state: *,
12294
+
12295
+
12296
+ },
12297
+
12298
+
12299
+
12300
+
12301
+ ):
12302
+ Promise<any>;
12303
+
12152
12304
  deleteAdvancedFlow(
12153
12305
 
12154
12306
 
@@ -14294,6 +14446,16 @@
14294
14446
 
14295
14447
  runGC(
14296
14448
 
14449
+ ):
14450
+ Promise<any>;
14451
+
14452
+ stopCPUProfile(
14453
+
14454
+ ):
14455
+ Promise<any>;
14456
+
14457
+ startCPUProfile(
14458
+
14297
14459
  ):
14298
14460
  Promise<any>;
14299
14461
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.5.27",
3
+ "version": "1.5.30",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "types": "assets/types/homey-api.d.ts",