@headspace/protos-events 1.45.0 → 1.46.0
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.
- package/lib/index.d.ts +25 -0
- package/lib/index.js +136 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1142,6 +1142,13 @@ export namespace subscription {
|
|
|
1142
1142
|
HEADSPACE = 4,
|
|
1143
1143
|
SPOTIFY = 5
|
|
1144
1144
|
}
|
|
1145
|
+
|
|
1146
|
+
/** AutoRenewalStatus enum. */
|
|
1147
|
+
enum AutoRenewalStatus {
|
|
1148
|
+
UNKNOWN_STATUS = 0,
|
|
1149
|
+
ENABLED = 1,
|
|
1150
|
+
DISABLED = 2
|
|
1151
|
+
}
|
|
1145
1152
|
}
|
|
1146
1153
|
|
|
1147
1154
|
/** Namespace userdomain. */
|
|
@@ -3403,6 +3410,9 @@ export interface ISubscriptionCreated {
|
|
|
3403
3410
|
|
|
3404
3411
|
/** SubscriptionCreated platform */
|
|
3405
3412
|
platform?: (subscription.SubscriptionPlatform|null);
|
|
3413
|
+
|
|
3414
|
+
/** SubscriptionCreated autoRenewalStatus */
|
|
3415
|
+
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
3406
3416
|
}
|
|
3407
3417
|
|
|
3408
3418
|
/** Represents a SubscriptionCreated. */
|
|
@@ -3438,6 +3448,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
3438
3448
|
/** SubscriptionCreated platform. */
|
|
3439
3449
|
public platform: subscription.SubscriptionPlatform;
|
|
3440
3450
|
|
|
3451
|
+
/** SubscriptionCreated autoRenewalStatus. */
|
|
3452
|
+
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
3453
|
+
|
|
3441
3454
|
/**
|
|
3442
3455
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
3443
3456
|
* @param [properties] Properties to set
|
|
@@ -3538,6 +3551,9 @@ export interface ISubscriptionCancelled {
|
|
|
3538
3551
|
|
|
3539
3552
|
/** SubscriptionCancelled platform */
|
|
3540
3553
|
platform?: (subscription.SubscriptionPlatform|null);
|
|
3554
|
+
|
|
3555
|
+
/** SubscriptionCancelled autoRenewalStatus */
|
|
3556
|
+
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
3541
3557
|
}
|
|
3542
3558
|
|
|
3543
3559
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -3576,6 +3592,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
3576
3592
|
/** SubscriptionCancelled platform. */
|
|
3577
3593
|
public platform: subscription.SubscriptionPlatform;
|
|
3578
3594
|
|
|
3595
|
+
/** SubscriptionCancelled autoRenewalStatus. */
|
|
3596
|
+
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
3597
|
+
|
|
3579
3598
|
/**
|
|
3580
3599
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
3581
3600
|
* @param [properties] Properties to set
|
|
@@ -3673,6 +3692,9 @@ export interface ISubscriptionRenewed {
|
|
|
3673
3692
|
|
|
3674
3693
|
/** SubscriptionRenewed platform */
|
|
3675
3694
|
platform?: (subscription.SubscriptionPlatform|null);
|
|
3695
|
+
|
|
3696
|
+
/** SubscriptionRenewed autoRenewalStatus */
|
|
3697
|
+
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
3676
3698
|
}
|
|
3677
3699
|
|
|
3678
3700
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -3708,6 +3730,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
3708
3730
|
/** SubscriptionRenewed platform. */
|
|
3709
3731
|
public platform: subscription.SubscriptionPlatform;
|
|
3710
3732
|
|
|
3733
|
+
/** SubscriptionRenewed autoRenewalStatus. */
|
|
3734
|
+
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
3735
|
+
|
|
3711
3736
|
/**
|
|
3712
3737
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
3713
3738
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -2566,6 +2566,22 @@ $root.subscription = (function() {
|
|
|
2566
2566
|
return values;
|
|
2567
2567
|
})();
|
|
2568
2568
|
|
|
2569
|
+
/**
|
|
2570
|
+
* AutoRenewalStatus enum.
|
|
2571
|
+
* @name subscription.AutoRenewalStatus
|
|
2572
|
+
* @enum {string}
|
|
2573
|
+
* @property {number} UNKNOWN_STATUS=0 UNKNOWN_STATUS value
|
|
2574
|
+
* @property {number} ENABLED=1 ENABLED value
|
|
2575
|
+
* @property {number} DISABLED=2 DISABLED value
|
|
2576
|
+
*/
|
|
2577
|
+
subscription.AutoRenewalStatus = (function() {
|
|
2578
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2579
|
+
values[valuesById[0] = "UNKNOWN_STATUS"] = 0;
|
|
2580
|
+
values[valuesById[1] = "ENABLED"] = 1;
|
|
2581
|
+
values[valuesById[2] = "DISABLED"] = 2;
|
|
2582
|
+
return values;
|
|
2583
|
+
})();
|
|
2584
|
+
|
|
2569
2585
|
return subscription;
|
|
2570
2586
|
})();
|
|
2571
2587
|
|
|
@@ -8132,6 +8148,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
8132
8148
|
* @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
|
|
8133
8149
|
* @property {string|null} [voucherCode] SubscriptionCreated voucherCode
|
|
8134
8150
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
|
|
8151
|
+
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
8135
8152
|
*/
|
|
8136
8153
|
|
|
8137
8154
|
/**
|
|
@@ -8213,6 +8230,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
8213
8230
|
*/
|
|
8214
8231
|
SubscriptionCreated.prototype.platform = 0;
|
|
8215
8232
|
|
|
8233
|
+
/**
|
|
8234
|
+
* SubscriptionCreated autoRenewalStatus.
|
|
8235
|
+
* @member {subscription.AutoRenewalStatus} autoRenewalStatus
|
|
8236
|
+
* @memberof SubscriptionCreated
|
|
8237
|
+
* @instance
|
|
8238
|
+
*/
|
|
8239
|
+
SubscriptionCreated.prototype.autoRenewalStatus = 0;
|
|
8240
|
+
|
|
8216
8241
|
/**
|
|
8217
8242
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
8218
8243
|
* @function create
|
|
@@ -8253,6 +8278,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
8253
8278
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
8254
8279
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8255
8280
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
8281
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8282
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
|
|
8256
8283
|
return writer;
|
|
8257
8284
|
};
|
|
8258
8285
|
|
|
@@ -8311,6 +8338,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
8311
8338
|
case 8:
|
|
8312
8339
|
message.platform = reader.int32();
|
|
8313
8340
|
break;
|
|
8341
|
+
case 9:
|
|
8342
|
+
message.autoRenewalStatus = reader.int32();
|
|
8343
|
+
break;
|
|
8314
8344
|
default:
|
|
8315
8345
|
reader.skipType(tag & 7);
|
|
8316
8346
|
break;
|
|
@@ -8379,6 +8409,15 @@ $root.SubscriptionCreated = (function() {
|
|
|
8379
8409
|
case 5:
|
|
8380
8410
|
break;
|
|
8381
8411
|
}
|
|
8412
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8413
|
+
switch (message.autoRenewalStatus) {
|
|
8414
|
+
default:
|
|
8415
|
+
return "autoRenewalStatus: enum value expected";
|
|
8416
|
+
case 0:
|
|
8417
|
+
case 1:
|
|
8418
|
+
case 2:
|
|
8419
|
+
break;
|
|
8420
|
+
}
|
|
8382
8421
|
return null;
|
|
8383
8422
|
};
|
|
8384
8423
|
|
|
@@ -8462,6 +8501,20 @@ $root.SubscriptionCreated = (function() {
|
|
|
8462
8501
|
message.platform = 5;
|
|
8463
8502
|
break;
|
|
8464
8503
|
}
|
|
8504
|
+
switch (object.autoRenewalStatus) {
|
|
8505
|
+
case "UNKNOWN_STATUS":
|
|
8506
|
+
case 0:
|
|
8507
|
+
message.autoRenewalStatus = 0;
|
|
8508
|
+
break;
|
|
8509
|
+
case "ENABLED":
|
|
8510
|
+
case 1:
|
|
8511
|
+
message.autoRenewalStatus = 1;
|
|
8512
|
+
break;
|
|
8513
|
+
case "DISABLED":
|
|
8514
|
+
case 2:
|
|
8515
|
+
message.autoRenewalStatus = 2;
|
|
8516
|
+
break;
|
|
8517
|
+
}
|
|
8465
8518
|
return message;
|
|
8466
8519
|
};
|
|
8467
8520
|
|
|
@@ -8503,6 +8556,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
8503
8556
|
object.endsAt = options.longs === String ? "0" : 0;
|
|
8504
8557
|
object.voucherCode = "";
|
|
8505
8558
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
8559
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
8506
8560
|
}
|
|
8507
8561
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8508
8562
|
object.id = message.id;
|
|
@@ -8532,6 +8586,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
8532
8586
|
object.voucherCode = message.voucherCode;
|
|
8533
8587
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8534
8588
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
8589
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8590
|
+
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
8535
8591
|
return object;
|
|
8536
8592
|
};
|
|
8537
8593
|
|
|
@@ -8564,6 +8620,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8564
8620
|
* @property {number|Long|null} [endsAt] SubscriptionCancelled endsAt
|
|
8565
8621
|
* @property {string|null} [voucherCode] SubscriptionCancelled voucherCode
|
|
8566
8622
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
|
|
8623
|
+
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCancelled autoRenewalStatus
|
|
8567
8624
|
*/
|
|
8568
8625
|
|
|
8569
8626
|
/**
|
|
@@ -8653,6 +8710,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8653
8710
|
*/
|
|
8654
8711
|
SubscriptionCancelled.prototype.platform = 0;
|
|
8655
8712
|
|
|
8713
|
+
/**
|
|
8714
|
+
* SubscriptionCancelled autoRenewalStatus.
|
|
8715
|
+
* @member {subscription.AutoRenewalStatus} autoRenewalStatus
|
|
8716
|
+
* @memberof SubscriptionCancelled
|
|
8717
|
+
* @instance
|
|
8718
|
+
*/
|
|
8719
|
+
SubscriptionCancelled.prototype.autoRenewalStatus = 0;
|
|
8720
|
+
|
|
8656
8721
|
/**
|
|
8657
8722
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
8658
8723
|
* @function create
|
|
@@ -8695,6 +8760,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8695
8760
|
writer.uint32(/* id 8, wireType 2 =*/66).string(message.voucherCode);
|
|
8696
8761
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8697
8762
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.platform);
|
|
8763
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8764
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.autoRenewalStatus);
|
|
8698
8765
|
return writer;
|
|
8699
8766
|
};
|
|
8700
8767
|
|
|
@@ -8756,6 +8823,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8756
8823
|
case 9:
|
|
8757
8824
|
message.platform = reader.int32();
|
|
8758
8825
|
break;
|
|
8826
|
+
case 10:
|
|
8827
|
+
message.autoRenewalStatus = reader.int32();
|
|
8828
|
+
break;
|
|
8759
8829
|
default:
|
|
8760
8830
|
reader.skipType(tag & 7);
|
|
8761
8831
|
break;
|
|
@@ -8829,6 +8899,15 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8829
8899
|
case 5:
|
|
8830
8900
|
break;
|
|
8831
8901
|
}
|
|
8902
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8903
|
+
switch (message.autoRenewalStatus) {
|
|
8904
|
+
default:
|
|
8905
|
+
return "autoRenewalStatus: enum value expected";
|
|
8906
|
+
case 0:
|
|
8907
|
+
case 1:
|
|
8908
|
+
case 2:
|
|
8909
|
+
break;
|
|
8910
|
+
}
|
|
8832
8911
|
return null;
|
|
8833
8912
|
};
|
|
8834
8913
|
|
|
@@ -8917,6 +8996,20 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8917
8996
|
message.platform = 5;
|
|
8918
8997
|
break;
|
|
8919
8998
|
}
|
|
8999
|
+
switch (object.autoRenewalStatus) {
|
|
9000
|
+
case "UNKNOWN_STATUS":
|
|
9001
|
+
case 0:
|
|
9002
|
+
message.autoRenewalStatus = 0;
|
|
9003
|
+
break;
|
|
9004
|
+
case "ENABLED":
|
|
9005
|
+
case 1:
|
|
9006
|
+
message.autoRenewalStatus = 1;
|
|
9007
|
+
break;
|
|
9008
|
+
case "DISABLED":
|
|
9009
|
+
case 2:
|
|
9010
|
+
message.autoRenewalStatus = 2;
|
|
9011
|
+
break;
|
|
9012
|
+
}
|
|
8920
9013
|
return message;
|
|
8921
9014
|
};
|
|
8922
9015
|
|
|
@@ -8959,6 +9052,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8959
9052
|
object.endsAt = options.longs === String ? "0" : 0;
|
|
8960
9053
|
object.voucherCode = "";
|
|
8961
9054
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9055
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
8962
9056
|
}
|
|
8963
9057
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8964
9058
|
object.id = message.id;
|
|
@@ -8990,6 +9084,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8990
9084
|
object.voucherCode = message.voucherCode;
|
|
8991
9085
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8992
9086
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
9087
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
9088
|
+
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
8993
9089
|
return object;
|
|
8994
9090
|
};
|
|
8995
9091
|
|
|
@@ -9021,6 +9117,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9021
9117
|
* @property {number|Long|null} [endsAt] SubscriptionRenewed endsAt
|
|
9022
9118
|
* @property {string|null} [voucherCode] SubscriptionRenewed voucherCode
|
|
9023
9119
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRenewed platform
|
|
9120
|
+
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
9024
9121
|
*/
|
|
9025
9122
|
|
|
9026
9123
|
/**
|
|
@@ -9102,6 +9199,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9102
9199
|
*/
|
|
9103
9200
|
SubscriptionRenewed.prototype.platform = 0;
|
|
9104
9201
|
|
|
9202
|
+
/**
|
|
9203
|
+
* SubscriptionRenewed autoRenewalStatus.
|
|
9204
|
+
* @member {subscription.AutoRenewalStatus} autoRenewalStatus
|
|
9205
|
+
* @memberof SubscriptionRenewed
|
|
9206
|
+
* @instance
|
|
9207
|
+
*/
|
|
9208
|
+
SubscriptionRenewed.prototype.autoRenewalStatus = 0;
|
|
9209
|
+
|
|
9105
9210
|
/**
|
|
9106
9211
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
9107
9212
|
* @function create
|
|
@@ -9142,6 +9247,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9142
9247
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
9143
9248
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9144
9249
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
9250
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
9251
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
|
|
9145
9252
|
return writer;
|
|
9146
9253
|
};
|
|
9147
9254
|
|
|
@@ -9200,6 +9307,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9200
9307
|
case 8:
|
|
9201
9308
|
message.platform = reader.int32();
|
|
9202
9309
|
break;
|
|
9310
|
+
case 9:
|
|
9311
|
+
message.autoRenewalStatus = reader.int32();
|
|
9312
|
+
break;
|
|
9203
9313
|
default:
|
|
9204
9314
|
reader.skipType(tag & 7);
|
|
9205
9315
|
break;
|
|
@@ -9268,6 +9378,15 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9268
9378
|
case 5:
|
|
9269
9379
|
break;
|
|
9270
9380
|
}
|
|
9381
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
9382
|
+
switch (message.autoRenewalStatus) {
|
|
9383
|
+
default:
|
|
9384
|
+
return "autoRenewalStatus: enum value expected";
|
|
9385
|
+
case 0:
|
|
9386
|
+
case 1:
|
|
9387
|
+
case 2:
|
|
9388
|
+
break;
|
|
9389
|
+
}
|
|
9271
9390
|
return null;
|
|
9272
9391
|
};
|
|
9273
9392
|
|
|
@@ -9351,6 +9470,20 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9351
9470
|
message.platform = 5;
|
|
9352
9471
|
break;
|
|
9353
9472
|
}
|
|
9473
|
+
switch (object.autoRenewalStatus) {
|
|
9474
|
+
case "UNKNOWN_STATUS":
|
|
9475
|
+
case 0:
|
|
9476
|
+
message.autoRenewalStatus = 0;
|
|
9477
|
+
break;
|
|
9478
|
+
case "ENABLED":
|
|
9479
|
+
case 1:
|
|
9480
|
+
message.autoRenewalStatus = 1;
|
|
9481
|
+
break;
|
|
9482
|
+
case "DISABLED":
|
|
9483
|
+
case 2:
|
|
9484
|
+
message.autoRenewalStatus = 2;
|
|
9485
|
+
break;
|
|
9486
|
+
}
|
|
9354
9487
|
return message;
|
|
9355
9488
|
};
|
|
9356
9489
|
|
|
@@ -9392,6 +9525,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9392
9525
|
object.endsAt = options.longs === String ? "0" : 0;
|
|
9393
9526
|
object.voucherCode = "";
|
|
9394
9527
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9528
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
9395
9529
|
}
|
|
9396
9530
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
9397
9531
|
object.id = message.id;
|
|
@@ -9421,6 +9555,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9421
9555
|
object.voucherCode = message.voucherCode;
|
|
9422
9556
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9423
9557
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
9558
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
9559
|
+
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
9424
9560
|
return object;
|
|
9425
9561
|
};
|
|
9426
9562
|
|
package/package.json
CHANGED