homey-api 1.5.28 → 1.5.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.
@@ -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,63 @@
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
+ "provider": {
398
+ "type": "string",
399
+ "in": "body"
400
+ }
401
+ }
402
+ },
403
+ "getOffers": {
404
+ "path": "/offer",
405
+ "method": "get",
406
+ "parameters": {}
407
+ },
408
+ "createOffer": {
409
+ "path": "/offer",
410
+ "method": "post",
411
+ "parameters": {
412
+ "userId": {
413
+ "type": "string",
414
+ "in": "body"
415
+ },
416
+ "expiresAt": {
417
+ "type": "string",
418
+ "in": "body"
419
+ },
420
+ "subscriptionType": {
421
+ "type": "string",
422
+ "in": "body"
423
+ },
424
+ "subscriptionQuantity": {
425
+ "type": "number",
426
+ "in": "body"
427
+ },
428
+ "subscriptionDuration": {
429
+ "type": "string",
430
+ "in": "body"
431
+ }
432
+ }
372
433
  }
373
434
  }
374
435
  }
@@ -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,88 @@
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
+ provider: string,
4742
+
4743
+
4744
+ },
4745
+
4746
+
4747
+
4748
+
4749
+ ):
4750
+ Promise<any>;
4751
+
4752
+ getOffers(
4753
+
4754
+ ):
4755
+ Promise<any>;
4756
+
4757
+ createOffer(
4758
+
4759
+
4760
+
4761
+
4762
+ opts: {
4763
+
4764
+
4765
+ userId: string,
4766
+
4767
+
4768
+
4769
+ expiresAt: string,
4770
+
4771
+
4772
+
4773
+ subscriptionType: string,
4774
+
4775
+
4776
+
4777
+ subscriptionQuantity: number,
4778
+
4779
+
4780
+
4781
+ subscriptionDuration: string,
4782
+
4783
+
4784
+ },
4785
+
4786
+
4787
+
4788
+
4703
4789
  ):
4704
4790
  Promise<any>;
4705
4791
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homey-api",
3
- "version": "1.5.28",
3
+ "version": "1.5.29",
4
4
  "description": "Homey API",
5
5
  "main": "index.js",
6
6
  "types": "assets/types/homey-api.d.ts",