@headspace/protos-events 1.44.0 → 1.45.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
@@ -1498,6 +1498,9 @@ export interface IUserCreated {
1498
1498
 
1499
1499
  /** UserCreated user */
1500
1500
  user?: (userdomain.IUser|null);
1501
+
1502
+ /** UserCreated createdAt */
1503
+ createdAt?: (number|Long|null);
1501
1504
  }
1502
1505
 
1503
1506
  /** Represents a UserCreated. */
@@ -1512,6 +1515,9 @@ export class UserCreated implements IUserCreated {
1512
1515
  /** UserCreated user. */
1513
1516
  public user?: (userdomain.IUser|null);
1514
1517
 
1518
+ /** UserCreated createdAt. */
1519
+ public createdAt: (number|Long);
1520
+
1515
1521
  /**
1516
1522
  * Creates a new UserCreated instance using the specified properties.
1517
1523
  * @param [properties] Properties to set
@@ -1592,8 +1598,8 @@ export interface IUserUpdated {
1592
1598
  /** UserUpdated updatedAt */
1593
1599
  updatedAt?: (number|Long|null);
1594
1600
 
1595
- /** UserUpdated updatedAttributes */
1596
- updatedAttributes?: (userdomain.IUser|null);
1601
+ /** UserUpdated user */
1602
+ user?: (userdomain.IUser|null);
1597
1603
  }
1598
1604
 
1599
1605
  /** Represents a UserUpdated. */
@@ -1611,8 +1617,8 @@ export class UserUpdated implements IUserUpdated {
1611
1617
  /** UserUpdated updatedAt. */
1612
1618
  public updatedAt: (number|Long);
1613
1619
 
1614
- /** UserUpdated updatedAttributes. */
1615
- public updatedAttributes?: (userdomain.IUser|null);
1620
+ /** UserUpdated user. */
1621
+ public user?: (userdomain.IUser|null);
1616
1622
 
1617
1623
  /**
1618
1624
  * Creates a new UserUpdated instance using the specified properties.
package/lib/index.js CHANGED
@@ -3511,6 +3511,7 @@ $root.UserCreated = (function() {
3511
3511
  * @exports IUserCreated
3512
3512
  * @interface IUserCreated
3513
3513
  * @property {userdomain.IUser|null} [user] UserCreated user
3514
+ * @property {number|Long|null} [createdAt] UserCreated createdAt
3514
3515
  */
3515
3516
 
3516
3517
  /**
@@ -3536,6 +3537,14 @@ $root.UserCreated = (function() {
3536
3537
  */
3537
3538
  UserCreated.prototype.user = null;
3538
3539
 
3540
+ /**
3541
+ * UserCreated createdAt.
3542
+ * @member {number|Long} createdAt
3543
+ * @memberof UserCreated
3544
+ * @instance
3545
+ */
3546
+ UserCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3547
+
3539
3548
  /**
3540
3549
  * Creates a new UserCreated instance using the specified properties.
3541
3550
  * @function create
@@ -3562,6 +3571,8 @@ $root.UserCreated = (function() {
3562
3571
  writer = $Writer.create();
3563
3572
  if (message.user != null && message.hasOwnProperty("user"))
3564
3573
  $root.userdomain.User.encode(message.user, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
3574
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
3575
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.createdAt);
3565
3576
  return writer;
3566
3577
  };
3567
3578
 
@@ -3599,6 +3610,9 @@ $root.UserCreated = (function() {
3599
3610
  case 1:
3600
3611
  message.user = $root.userdomain.User.decode(reader, reader.uint32());
3601
3612
  break;
3613
+ case 2:
3614
+ message.createdAt = reader.uint64();
3615
+ break;
3602
3616
  default:
3603
3617
  reader.skipType(tag & 7);
3604
3618
  break;
@@ -3639,6 +3653,9 @@ $root.UserCreated = (function() {
3639
3653
  if (error)
3640
3654
  return "user." + error;
3641
3655
  }
3656
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
3657
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
3658
+ return "createdAt: integer|Long expected";
3642
3659
  return null;
3643
3660
  };
3644
3661
 
@@ -3659,6 +3676,15 @@ $root.UserCreated = (function() {
3659
3676
  throw TypeError(".UserCreated.user: object expected");
3660
3677
  message.user = $root.userdomain.User.fromObject(object.user);
3661
3678
  }
3679
+ if (object.createdAt != null)
3680
+ if ($util.Long)
3681
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
3682
+ else if (typeof object.createdAt === "string")
3683
+ message.createdAt = parseInt(object.createdAt, 10);
3684
+ else if (typeof object.createdAt === "number")
3685
+ message.createdAt = object.createdAt;
3686
+ else if (typeof object.createdAt === "object")
3687
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
3662
3688
  return message;
3663
3689
  };
3664
3690
 
@@ -3675,10 +3701,21 @@ $root.UserCreated = (function() {
3675
3701
  if (!options)
3676
3702
  options = {};
3677
3703
  var object = {};
3678
- if (options.defaults)
3704
+ if (options.defaults) {
3679
3705
  object.user = null;
3706
+ if ($util.Long) {
3707
+ var long = new $util.Long(0, 0, true);
3708
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
3709
+ } else
3710
+ object.createdAt = options.longs === String ? "0" : 0;
3711
+ }
3680
3712
  if (message.user != null && message.hasOwnProperty("user"))
3681
3713
  object.user = $root.userdomain.User.toObject(message.user, options);
3714
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
3715
+ if (typeof message.createdAt === "number")
3716
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
3717
+ else
3718
+ 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
3719
  return object;
3683
3720
  };
3684
3721
 
@@ -3704,7 +3741,7 @@ $root.UserUpdated = (function() {
3704
3741
  * @interface IUserUpdated
3705
3742
  * @property {string|null} [hsId] UserUpdated hsId
3706
3743
  * @property {number|Long|null} [updatedAt] UserUpdated updatedAt
3707
- * @property {userdomain.IUser|null} [updatedAttributes] UserUpdated updatedAttributes
3744
+ * @property {userdomain.IUser|null} [user] UserUpdated user
3708
3745
  */
3709
3746
 
3710
3747
  /**
@@ -3739,12 +3776,12 @@ $root.UserUpdated = (function() {
3739
3776
  UserUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
3740
3777
 
3741
3778
  /**
3742
- * UserUpdated updatedAttributes.
3743
- * @member {userdomain.IUser|null|undefined} updatedAttributes
3779
+ * UserUpdated user.
3780
+ * @member {userdomain.IUser|null|undefined} user
3744
3781
  * @memberof UserUpdated
3745
3782
  * @instance
3746
3783
  */
3747
- UserUpdated.prototype.updatedAttributes = null;
3784
+ UserUpdated.prototype.user = null;
3748
3785
 
3749
3786
  /**
3750
3787
  * Creates a new UserUpdated instance using the specified properties.
@@ -3774,8 +3811,8 @@ $root.UserUpdated = (function() {
3774
3811
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
3775
3812
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
3776
3813
  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();
3814
+ if (message.user != null && message.hasOwnProperty("user"))
3815
+ $root.userdomain.User.encode(message.user, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
3779
3816
  return writer;
3780
3817
  };
3781
3818
 
@@ -3817,7 +3854,7 @@ $root.UserUpdated = (function() {
3817
3854
  message.updatedAt = reader.uint64();
3818
3855
  break;
3819
3856
  case 3:
3820
- message.updatedAttributes = $root.userdomain.User.decode(reader, reader.uint32());
3857
+ message.user = $root.userdomain.User.decode(reader, reader.uint32());
3821
3858
  break;
3822
3859
  default:
3823
3860
  reader.skipType(tag & 7);
@@ -3860,10 +3897,10 @@ $root.UserUpdated = (function() {
3860
3897
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
3861
3898
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
3862
3899
  return "updatedAt: integer|Long expected";
3863
- if (message.updatedAttributes != null && message.hasOwnProperty("updatedAttributes")) {
3864
- var error = $root.userdomain.User.verify(message.updatedAttributes);
3900
+ if (message.user != null && message.hasOwnProperty("user")) {
3901
+ var error = $root.userdomain.User.verify(message.user);
3865
3902
  if (error)
3866
- return "updatedAttributes." + error;
3903
+ return "user." + error;
3867
3904
  }
3868
3905
  return null;
3869
3906
  };
@@ -3891,10 +3928,10 @@ $root.UserUpdated = (function() {
3891
3928
  message.updatedAt = object.updatedAt;
3892
3929
  else if (typeof object.updatedAt === "object")
3893
3930
  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);
3931
+ if (object.user != null) {
3932
+ if (typeof object.user !== "object")
3933
+ throw TypeError(".UserUpdated.user: object expected");
3934
+ message.user = $root.userdomain.User.fromObject(object.user);
3898
3935
  }
3899
3936
  return message;
3900
3937
  };
@@ -3919,7 +3956,7 @@ $root.UserUpdated = (function() {
3919
3956
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
3920
3957
  } else
3921
3958
  object.updatedAt = options.longs === String ? "0" : 0;
3922
- object.updatedAttributes = null;
3959
+ object.user = null;
3923
3960
  }
3924
3961
  if (message.hsId != null && message.hasOwnProperty("hsId"))
3925
3962
  object.hsId = message.hsId;
@@ -3928,8 +3965,8 @@ $root.UserUpdated = (function() {
3928
3965
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
3929
3966
  else
3930
3967
  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);
3968
+ if (message.user != null && message.hasOwnProperty("user"))
3969
+ object.user = $root.userdomain.User.toObject(message.user, options);
3933
3970
  return object;
3934
3971
  };
3935
3972
 
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.45.0"
20
20
  }