homey-api 3.4.27 → 3.4.28
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
|
},
|
|
@@ -4001,6 +4001,12 @@ export class AthomStoreAPI {
|
|
|
4001
4001
|
|
|
4002
4002
|
getOffer(opts: { offerId: string }): Promise<any>;
|
|
4003
4003
|
|
|
4004
|
+
redeemReferAFriend(opts: {
|
|
4005
|
+
paymentProvider?: string;
|
|
4006
|
+
|
|
4007
|
+
inviterId?: string;
|
|
4008
|
+
}): Promise<any>;
|
|
4009
|
+
|
|
4004
4010
|
redeemOffer(opts: {
|
|
4005
4011
|
offerId: string;
|
|
4006
4012
|
|
|
@@ -4019,6 +4025,8 @@ export class AthomStoreAPI {
|
|
|
4019
4025
|
subscriptionQuantity?: number;
|
|
4020
4026
|
|
|
4021
4027
|
subscriptionDuration?: string;
|
|
4028
|
+
|
|
4029
|
+
newCustomersOnly?: boolean;
|
|
4022
4030
|
}): Promise<any>;
|
|
4023
4031
|
|
|
4024
4032
|
getOffers(): Promise<any>;
|
|
@@ -4203,6 +4211,12 @@ export class AthomStoreAPI {
|
|
|
4203
4211
|
|
|
4204
4212
|
getOffer(opts: { offerId: string }): Promise<any>;
|
|
4205
4213
|
|
|
4214
|
+
redeemReferAFriend(opts: {
|
|
4215
|
+
paymentProvider?: string;
|
|
4216
|
+
|
|
4217
|
+
inviterId?: string;
|
|
4218
|
+
}): Promise<any>;
|
|
4219
|
+
|
|
4206
4220
|
redeemOffer(opts: {
|
|
4207
4221
|
offerId: string;
|
|
4208
4222
|
|
|
@@ -4221,6 +4235,8 @@ export class AthomStoreAPI {
|
|
|
4221
4235
|
subscriptionQuantity?: number;
|
|
4222
4236
|
|
|
4223
4237
|
subscriptionDuration?: string;
|
|
4238
|
+
|
|
4239
|
+
newCustomersOnly?: boolean;
|
|
4224
4240
|
}): Promise<any>;
|
|
4225
4241
|
|
|
4226
4242
|
getOffers(): Promise<any>;
|
|
@@ -7161,6 +7177,12 @@ export class AthomStoreAPI {
|
|
|
7161
7177
|
|
|
7162
7178
|
getOffer(opts: { offerId: string }): Promise<any>;
|
|
7163
7179
|
|
|
7180
|
+
redeemReferAFriend(opts: {
|
|
7181
|
+
paymentProvider?: string;
|
|
7182
|
+
|
|
7183
|
+
inviterId?: string;
|
|
7184
|
+
}): Promise<any>;
|
|
7185
|
+
|
|
7164
7186
|
redeemOffer(opts: {
|
|
7165
7187
|
offerId: string;
|
|
7166
7188
|
|
|
@@ -7179,6 +7201,8 @@ export class AthomStoreAPI {
|
|
|
7179
7201
|
subscriptionQuantity?: number;
|
|
7180
7202
|
|
|
7181
7203
|
subscriptionDuration?: string;
|
|
7204
|
+
|
|
7205
|
+
newCustomersOnly?: boolean;
|
|
7182
7206
|
}): Promise<any>;
|
|
7183
7207
|
|
|
7184
7208
|
getOffers(): Promise<any>;
|
|
@@ -7363,6 +7387,12 @@ export class AthomStoreAPI {
|
|
|
7363
7387
|
|
|
7364
7388
|
getOffer(opts: { offerId: string }): Promise<any>;
|
|
7365
7389
|
|
|
7390
|
+
redeemReferAFriend(opts: {
|
|
7391
|
+
paymentProvider?: string;
|
|
7392
|
+
|
|
7393
|
+
inviterId?: string;
|
|
7394
|
+
}): Promise<any>;
|
|
7395
|
+
|
|
7366
7396
|
redeemOffer(opts: {
|
|
7367
7397
|
offerId: string;
|
|
7368
7398
|
|
|
@@ -7381,6 +7411,8 @@ export class AthomStoreAPI {
|
|
|
7381
7411
|
subscriptionQuantity?: number;
|
|
7382
7412
|
|
|
7383
7413
|
subscriptionDuration?: string;
|
|
7414
|
+
|
|
7415
|
+
newCustomersOnly?: boolean;
|
|
7384
7416
|
}): Promise<any>;
|
|
7385
7417
|
|
|
7386
7418
|
getOffers(): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homey-api",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.28",
|
|
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
|
|
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;",
|