@headspace/protos-events 1.44.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 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. */
@@ -1498,6 +1505,9 @@ export interface IUserCreated {
1498
1505
 
1499
1506
  /** UserCreated user */
1500
1507
  user?: (userdomain.IUser|null);
1508
+
1509
+ /** UserCreated createdAt */
1510
+ createdAt?: (number|Long|null);
1501
1511
  }
1502
1512
 
1503
1513
  /** Represents a UserCreated. */
@@ -1512,6 +1522,9 @@ export class UserCreated implements IUserCreated {
1512
1522
  /** UserCreated user. */
1513
1523
  public user?: (userdomain.IUser|null);
1514
1524
 
1525
+ /** UserCreated createdAt. */
1526
+ public createdAt: (number|Long);
1527
+
1515
1528
  /**
1516
1529
  * Creates a new UserCreated instance using the specified properties.
1517
1530
  * @param [properties] Properties to set
@@ -1592,8 +1605,8 @@ export interface IUserUpdated {
1592
1605
  /** UserUpdated updatedAt */
1593
1606
  updatedAt?: (number|Long|null);
1594
1607
 
1595
- /** UserUpdated updatedAttributes */
1596
- updatedAttributes?: (userdomain.IUser|null);
1608
+ /** UserUpdated user */
1609
+ user?: (userdomain.IUser|null);
1597
1610
  }
1598
1611
 
1599
1612
  /** Represents a UserUpdated. */
@@ -1611,8 +1624,8 @@ export class UserUpdated implements IUserUpdated {
1611
1624
  /** UserUpdated updatedAt. */
1612
1625
  public updatedAt: (number|Long);
1613
1626
 
1614
- /** UserUpdated updatedAttributes. */
1615
- public updatedAttributes?: (userdomain.IUser|null);
1627
+ /** UserUpdated user. */
1628
+ public user?: (userdomain.IUser|null);
1616
1629
 
1617
1630
  /**
1618
1631
  * Creates a new UserUpdated instance using the specified properties.
@@ -3397,6 +3410,9 @@ export interface ISubscriptionCreated {
3397
3410
 
3398
3411
  /** SubscriptionCreated platform */
3399
3412
  platform?: (subscription.SubscriptionPlatform|null);
3413
+
3414
+ /** SubscriptionCreated autoRenewalStatus */
3415
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3400
3416
  }
3401
3417
 
3402
3418
  /** Represents a SubscriptionCreated. */
@@ -3432,6 +3448,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
3432
3448
  /** SubscriptionCreated platform. */
3433
3449
  public platform: subscription.SubscriptionPlatform;
3434
3450
 
3451
+ /** SubscriptionCreated autoRenewalStatus. */
3452
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
3453
+
3435
3454
  /**
3436
3455
  * Creates a new SubscriptionCreated instance using the specified properties.
3437
3456
  * @param [properties] Properties to set
@@ -3532,6 +3551,9 @@ export interface ISubscriptionCancelled {
3532
3551
 
3533
3552
  /** SubscriptionCancelled platform */
3534
3553
  platform?: (subscription.SubscriptionPlatform|null);
3554
+
3555
+ /** SubscriptionCancelled autoRenewalStatus */
3556
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3535
3557
  }
3536
3558
 
3537
3559
  /** Represents a SubscriptionCancelled. */
@@ -3570,6 +3592,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
3570
3592
  /** SubscriptionCancelled platform. */
3571
3593
  public platform: subscription.SubscriptionPlatform;
3572
3594
 
3595
+ /** SubscriptionCancelled autoRenewalStatus. */
3596
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
3597
+
3573
3598
  /**
3574
3599
  * Creates a new SubscriptionCancelled instance using the specified properties.
3575
3600
  * @param [properties] Properties to set
@@ -3667,6 +3692,9 @@ export interface ISubscriptionRenewed {
3667
3692
 
3668
3693
  /** SubscriptionRenewed platform */
3669
3694
  platform?: (subscription.SubscriptionPlatform|null);
3695
+
3696
+ /** SubscriptionRenewed autoRenewalStatus */
3697
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3670
3698
  }
3671
3699
 
3672
3700
  /** Represents a SubscriptionRenewed. */
@@ -3702,6 +3730,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
3702
3730
  /** SubscriptionRenewed platform. */
3703
3731
  public platform: subscription.SubscriptionPlatform;
3704
3732
 
3733
+ /** SubscriptionRenewed autoRenewalStatus. */
3734
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
3735
+
3705
3736
  /**
3706
3737
  * Creates a new SubscriptionRenewed instance using the specified properties.
3707
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
 
@@ -3511,6 +3527,7 @@ $root.UserCreated = (function() {
3511
3527
  * @exports IUserCreated
3512
3528
  * @interface IUserCreated
3513
3529
  * @property {userdomain.IUser|null} [user] UserCreated user
3530
+ * @property {number|Long|null} [createdAt] UserCreated createdAt
3514
3531
  */
3515
3532
 
3516
3533
  /**
@@ -3536,6 +3553,14 @@ $root.UserCreated = (function() {
3536
3553
  */
3537
3554
  UserCreated.prototype.user = null;
3538
3555
 
3556
+ /**
3557
+ * UserCreated createdAt.
3558
+ * @member {number|Long} createdAt
3559
+ * @memberof UserCreated
3560
+ * @instance
3561
+ */
3562
+ UserCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3563
+
3539
3564
  /**
3540
3565
  * Creates a new UserCreated instance using the specified properties.
3541
3566
  * @function create
@@ -3562,6 +3587,8 @@ $root.UserCreated = (function() {
3562
3587
  writer = $Writer.create();
3563
3588
  if (message.user != null && message.hasOwnProperty("user"))
3564
3589
  $root.userdomain.User.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
3590
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
3591
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.createdAt);
3565
3592
  return writer;
3566
3593
  };
3567
3594
 
@@ -3599,6 +3626,9 @@ $root.UserCreated = (function() {
3599
3626
  case 1:
3600
3627
  message.user = $root.userdomain.User.decode(reader, reader.uint32());
3601
3628
  break;
3629
+ case 2:
3630
+ message.createdAt = reader.uint64();
3631
+ break;
3602
3632
  default:
3603
3633
  reader.skipType(tag & 7);
3604
3634
  break;
@@ -3639,6 +3669,9 @@ $root.UserCreated = (function() {
3639
3669
  if (error)
3640
3670
  return "user." + error;
3641
3671
  }
3672
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
3673
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
3674
+ return "createdAt: integer|Long expected";
3642
3675
  return null;
3643
3676
  };
3644
3677
 
@@ -3659,6 +3692,15 @@ $root.UserCreated = (function() {
3659
3692
  throw TypeError(".UserCreated.user: object expected");
3660
3693
  message.user = $root.userdomain.User.fromObject(object.user);
3661
3694
  }
3695
+ if (object.createdAt != null)
3696
+ if ($util.Long)
3697
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
3698
+ else if (typeof object.createdAt === "string")
3699
+ message.createdAt = parseInt(object.createdAt, 10);
3700
+ else if (typeof object.createdAt === "number")
3701
+ message.createdAt = object.createdAt;
3702
+ else if (typeof object.createdAt === "object")
3703
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
3662
3704
  return message;
3663
3705
  };
3664
3706
 
@@ -3675,10 +3717,21 @@ $root.UserCreated = (function() {
3675
3717
  if (!options)
3676
3718
  options = {};
3677
3719
  var object = {};
3678
- if (options.defaults)
3720
+ if (options.defaults) {
3679
3721
  object.user = null;
3722
+ if ($util.Long) {
3723
+ var long = new $util.Long(0, 0, true);
3724
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
3725
+ } else
3726
+ object.createdAt = options.longs === String ? "0" : 0;
3727
+ }
3680
3728
  if (message.user != null && message.hasOwnProperty("user"))
3681
3729
  object.user = $root.userdomain.User.toObject(message.user, options);
3730
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
3731
+ if (typeof message.createdAt === "number")
3732
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
3733
+ else
3734
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
3682
3735
  return object;
3683
3736
  };
3684
3737
 
@@ -3704,7 +3757,7 @@ $root.UserUpdated = (function() {
3704
3757
  * @interface IUserUpdated
3705
3758
  * @property {string|null} [hsId] UserUpdated hsId
3706
3759
  * @property {number|Long|null} [updatedAt] UserUpdated updatedAt
3707
- * @property {userdomain.IUser|null} [updatedAttributes] UserUpdated updatedAttributes
3760
+ * @property {userdomain.IUser|null} [user] UserUpdated user
3708
3761
  */
3709
3762
 
3710
3763
  /**
@@ -3739,12 +3792,12 @@ $root.UserUpdated = (function() {
3739
3792
  UserUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3740
3793
 
3741
3794
  /**
3742
- * UserUpdated updatedAttributes.
3743
- * @member {userdomain.IUser|null|undefined} updatedAttributes
3795
+ * UserUpdated user.
3796
+ * @member {userdomain.IUser|null|undefined} user
3744
3797
  * @memberof UserUpdated
3745
3798
  * @instance
3746
3799
  */
3747
- UserUpdated.prototype.updatedAttributes = null;
3800
+ UserUpdated.prototype.user = null;
3748
3801
 
3749
3802
  /**
3750
3803
  * Creates a new UserUpdated instance using the specified properties.
@@ -3774,8 +3827,8 @@ $root.UserUpdated = (function() {
3774
3827
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
3775
3828
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
3776
3829
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
3777
- if (message.updatedAttributes != null && message.hasOwnProperty("updatedAttributes"))
3778
- $root.userdomain.User.encode(message.updatedAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
3830
+ if (message.user != null && message.hasOwnProperty("user"))
3831
+ $root.userdomain.User.encode(message.user, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
3779
3832
  return writer;
3780
3833
  };
3781
3834
 
@@ -3817,7 +3870,7 @@ $root.UserUpdated = (function() {
3817
3870
  message.updatedAt = reader.uint64();
3818
3871
  break;
3819
3872
  case 3:
3820
- message.updatedAttributes = $root.userdomain.User.decode(reader, reader.uint32());
3873
+ message.user = $root.userdomain.User.decode(reader, reader.uint32());
3821
3874
  break;
3822
3875
  default:
3823
3876
  reader.skipType(tag & 7);
@@ -3860,10 +3913,10 @@ $root.UserUpdated = (function() {
3860
3913
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
3861
3914
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
3862
3915
  return "updatedAt: integer|Long expected";
3863
- if (message.updatedAttributes != null && message.hasOwnProperty("updatedAttributes")) {
3864
- var error = $root.userdomain.User.verify(message.updatedAttributes);
3916
+ if (message.user != null && message.hasOwnProperty("user")) {
3917
+ var error = $root.userdomain.User.verify(message.user);
3865
3918
  if (error)
3866
- return "updatedAttributes." + error;
3919
+ return "user." + error;
3867
3920
  }
3868
3921
  return null;
3869
3922
  };
@@ -3891,10 +3944,10 @@ $root.UserUpdated = (function() {
3891
3944
  message.updatedAt = object.updatedAt;
3892
3945
  else if (typeof object.updatedAt === "object")
3893
3946
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
3894
- if (object.updatedAttributes != null) {
3895
- if (typeof object.updatedAttributes !== "object")
3896
- throw TypeError(".UserUpdated.updatedAttributes: object expected");
3897
- message.updatedAttributes = $root.userdomain.User.fromObject(object.updatedAttributes);
3947
+ if (object.user != null) {
3948
+ if (typeof object.user !== "object")
3949
+ throw TypeError(".UserUpdated.user: object expected");
3950
+ message.user = $root.userdomain.User.fromObject(object.user);
3898
3951
  }
3899
3952
  return message;
3900
3953
  };
@@ -3919,7 +3972,7 @@ $root.UserUpdated = (function() {
3919
3972
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
3920
3973
  } else
3921
3974
  object.updatedAt = options.longs === String ? "0" : 0;
3922
- object.updatedAttributes = null;
3975
+ object.user = null;
3923
3976
  }
3924
3977
  if (message.hsId != null && message.hasOwnProperty("hsId"))
3925
3978
  object.hsId = message.hsId;
@@ -3928,8 +3981,8 @@ $root.UserUpdated = (function() {
3928
3981
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
3929
3982
  else
3930
3983
  object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
3931
- if (message.updatedAttributes != null && message.hasOwnProperty("updatedAttributes"))
3932
- object.updatedAttributes = $root.userdomain.User.toObject(message.updatedAttributes, options);
3984
+ if (message.user != null && message.hasOwnProperty("user"))
3985
+ object.user = $root.userdomain.User.toObject(message.user, options);
3933
3986
  return object;
3934
3987
  };
3935
3988
 
@@ -8095,6 +8148,7 @@ $root.SubscriptionCreated = (function() {
8095
8148
  * @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
8096
8149
  * @property {string|null} [voucherCode] SubscriptionCreated voucherCode
8097
8150
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
8151
+ * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
8098
8152
  */
8099
8153
 
8100
8154
  /**
@@ -8176,6 +8230,14 @@ $root.SubscriptionCreated = (function() {
8176
8230
  */
8177
8231
  SubscriptionCreated.prototype.platform = 0;
8178
8232
 
8233
+ /**
8234
+ * SubscriptionCreated autoRenewalStatus.
8235
+ * @member {subscription.AutoRenewalStatus} autoRenewalStatus
8236
+ * @memberof SubscriptionCreated
8237
+ * @instance
8238
+ */
8239
+ SubscriptionCreated.prototype.autoRenewalStatus = 0;
8240
+
8179
8241
  /**
8180
8242
  * Creates a new SubscriptionCreated instance using the specified properties.
8181
8243
  * @function create
@@ -8216,6 +8278,8 @@ $root.SubscriptionCreated = (function() {
8216
8278
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
8217
8279
  if (message.platform != null && message.hasOwnProperty("platform"))
8218
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);
8219
8283
  return writer;
8220
8284
  };
8221
8285
 
@@ -8274,6 +8338,9 @@ $root.SubscriptionCreated = (function() {
8274
8338
  case 8:
8275
8339
  message.platform = reader.int32();
8276
8340
  break;
8341
+ case 9:
8342
+ message.autoRenewalStatus = reader.int32();
8343
+ break;
8277
8344
  default:
8278
8345
  reader.skipType(tag & 7);
8279
8346
  break;
@@ -8342,6 +8409,15 @@ $root.SubscriptionCreated = (function() {
8342
8409
  case 5:
8343
8410
  break;
8344
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
+ }
8345
8421
  return null;
8346
8422
  };
8347
8423
 
@@ -8425,6 +8501,20 @@ $root.SubscriptionCreated = (function() {
8425
8501
  message.platform = 5;
8426
8502
  break;
8427
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
+ }
8428
8518
  return message;
8429
8519
  };
8430
8520
 
@@ -8466,6 +8556,7 @@ $root.SubscriptionCreated = (function() {
8466
8556
  object.endsAt = options.longs === String ? "0" : 0;
8467
8557
  object.voucherCode = "";
8468
8558
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
8559
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
8469
8560
  }
8470
8561
  if (message.id != null && message.hasOwnProperty("id"))
8471
8562
  object.id = message.id;
@@ -8495,6 +8586,8 @@ $root.SubscriptionCreated = (function() {
8495
8586
  object.voucherCode = message.voucherCode;
8496
8587
  if (message.platform != null && message.hasOwnProperty("platform"))
8497
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;
8498
8591
  return object;
8499
8592
  };
8500
8593
 
@@ -8527,6 +8620,7 @@ $root.SubscriptionCancelled = (function() {
8527
8620
  * @property {number|Long|null} [endsAt] SubscriptionCancelled endsAt
8528
8621
  * @property {string|null} [voucherCode] SubscriptionCancelled voucherCode
8529
8622
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
8623
+ * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCancelled autoRenewalStatus
8530
8624
  */
8531
8625
 
8532
8626
  /**
@@ -8616,6 +8710,14 @@ $root.SubscriptionCancelled = (function() {
8616
8710
  */
8617
8711
  SubscriptionCancelled.prototype.platform = 0;
8618
8712
 
8713
+ /**
8714
+ * SubscriptionCancelled autoRenewalStatus.
8715
+ * @member {subscription.AutoRenewalStatus} autoRenewalStatus
8716
+ * @memberof SubscriptionCancelled
8717
+ * @instance
8718
+ */
8719
+ SubscriptionCancelled.prototype.autoRenewalStatus = 0;
8720
+
8619
8721
  /**
8620
8722
  * Creates a new SubscriptionCancelled instance using the specified properties.
8621
8723
  * @function create
@@ -8658,6 +8760,8 @@ $root.SubscriptionCancelled = (function() {
8658
8760
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.voucherCode);
8659
8761
  if (message.platform != null && message.hasOwnProperty("platform"))
8660
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);
8661
8765
  return writer;
8662
8766
  };
8663
8767
 
@@ -8719,6 +8823,9 @@ $root.SubscriptionCancelled = (function() {
8719
8823
  case 9:
8720
8824
  message.platform = reader.int32();
8721
8825
  break;
8826
+ case 10:
8827
+ message.autoRenewalStatus = reader.int32();
8828
+ break;
8722
8829
  default:
8723
8830
  reader.skipType(tag & 7);
8724
8831
  break;
@@ -8792,6 +8899,15 @@ $root.SubscriptionCancelled = (function() {
8792
8899
  case 5:
8793
8900
  break;
8794
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
+ }
8795
8911
  return null;
8796
8912
  };
8797
8913
 
@@ -8880,6 +8996,20 @@ $root.SubscriptionCancelled = (function() {
8880
8996
  message.platform = 5;
8881
8997
  break;
8882
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
+ }
8883
9013
  return message;
8884
9014
  };
8885
9015
 
@@ -8922,6 +9052,7 @@ $root.SubscriptionCancelled = (function() {
8922
9052
  object.endsAt = options.longs === String ? "0" : 0;
8923
9053
  object.voucherCode = "";
8924
9054
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
9055
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
8925
9056
  }
8926
9057
  if (message.id != null && message.hasOwnProperty("id"))
8927
9058
  object.id = message.id;
@@ -8953,6 +9084,8 @@ $root.SubscriptionCancelled = (function() {
8953
9084
  object.voucherCode = message.voucherCode;
8954
9085
  if (message.platform != null && message.hasOwnProperty("platform"))
8955
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;
8956
9089
  return object;
8957
9090
  };
8958
9091
 
@@ -8984,6 +9117,7 @@ $root.SubscriptionRenewed = (function() {
8984
9117
  * @property {number|Long|null} [endsAt] SubscriptionRenewed endsAt
8985
9118
  * @property {string|null} [voucherCode] SubscriptionRenewed voucherCode
8986
9119
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRenewed platform
9120
+ * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
8987
9121
  */
8988
9122
 
8989
9123
  /**
@@ -9065,6 +9199,14 @@ $root.SubscriptionRenewed = (function() {
9065
9199
  */
9066
9200
  SubscriptionRenewed.prototype.platform = 0;
9067
9201
 
9202
+ /**
9203
+ * SubscriptionRenewed autoRenewalStatus.
9204
+ * @member {subscription.AutoRenewalStatus} autoRenewalStatus
9205
+ * @memberof SubscriptionRenewed
9206
+ * @instance
9207
+ */
9208
+ SubscriptionRenewed.prototype.autoRenewalStatus = 0;
9209
+
9068
9210
  /**
9069
9211
  * Creates a new SubscriptionRenewed instance using the specified properties.
9070
9212
  * @function create
@@ -9105,6 +9247,8 @@ $root.SubscriptionRenewed = (function() {
9105
9247
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
9106
9248
  if (message.platform != null && message.hasOwnProperty("platform"))
9107
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);
9108
9252
  return writer;
9109
9253
  };
9110
9254
 
@@ -9163,6 +9307,9 @@ $root.SubscriptionRenewed = (function() {
9163
9307
  case 8:
9164
9308
  message.platform = reader.int32();
9165
9309
  break;
9310
+ case 9:
9311
+ message.autoRenewalStatus = reader.int32();
9312
+ break;
9166
9313
  default:
9167
9314
  reader.skipType(tag & 7);
9168
9315
  break;
@@ -9231,6 +9378,15 @@ $root.SubscriptionRenewed = (function() {
9231
9378
  case 5:
9232
9379
  break;
9233
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
+ }
9234
9390
  return null;
9235
9391
  };
9236
9392
 
@@ -9314,6 +9470,20 @@ $root.SubscriptionRenewed = (function() {
9314
9470
  message.platform = 5;
9315
9471
  break;
9316
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
+ }
9317
9487
  return message;
9318
9488
  };
9319
9489
 
@@ -9355,6 +9525,7 @@ $root.SubscriptionRenewed = (function() {
9355
9525
  object.endsAt = options.longs === String ? "0" : 0;
9356
9526
  object.voucherCode = "";
9357
9527
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
9528
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
9358
9529
  }
9359
9530
  if (message.id != null && message.hasOwnProperty("id"))
9360
9531
  object.id = message.id;
@@ -9384,6 +9555,8 @@ $root.SubscriptionRenewed = (function() {
9384
9555
  object.voucherCode = message.voucherCode;
9385
9556
  if (message.platform != null && message.hasOwnProperty("platform"))
9386
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;
9387
9560
  return object;
9388
9561
  };
9389
9562
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.44.0"
19
+ "version": "1.46.0"
20
20
  }