@headspace/protos-events 1.8.0 → 1.9.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
@@ -1836,6 +1836,9 @@ export interface IUserEmailVerificationRequested {
1836
1836
 
1837
1837
  /** UserEmailVerificationRequested verificationCode */
1838
1838
  verificationCode?: (string|null);
1839
+
1840
+ /** UserEmailVerificationRequested timestamp */
1841
+ timestamp?: (number|Long|null);
1839
1842
  }
1840
1843
 
1841
1844
  /** Represents a UserEmailVerificationRequested. */
@@ -1853,6 +1856,9 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
1853
1856
  /** UserEmailVerificationRequested verificationCode. */
1854
1857
  public verificationCode: string;
1855
1858
 
1859
+ /** UserEmailVerificationRequested timestamp. */
1860
+ public timestamp: (number|Long);
1861
+
1856
1862
  /**
1857
1863
  * Creates a new UserEmailVerificationRequested instance using the specified properties.
1858
1864
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -4594,6 +4594,7 @@ $root.UserEmailVerificationRequested = (function() {
4594
4594
  * @interface IUserEmailVerificationRequested
4595
4595
  * @property {string|null} [userId] UserEmailVerificationRequested userId
4596
4596
  * @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
4597
+ * @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
4597
4598
  */
4598
4599
 
4599
4600
  /**
@@ -4627,6 +4628,14 @@ $root.UserEmailVerificationRequested = (function() {
4627
4628
  */
4628
4629
  UserEmailVerificationRequested.prototype.verificationCode = "";
4629
4630
 
4631
+ /**
4632
+ * UserEmailVerificationRequested timestamp.
4633
+ * @member {number|Long} timestamp
4634
+ * @memberof UserEmailVerificationRequested
4635
+ * @instance
4636
+ */
4637
+ UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
4638
+
4630
4639
  /**
4631
4640
  * Creates a new UserEmailVerificationRequested instance using the specified properties.
4632
4641
  * @function create
@@ -4655,6 +4664,8 @@ $root.UserEmailVerificationRequested = (function() {
4655
4664
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
4656
4665
  if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
4657
4666
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
4667
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
4668
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
4658
4669
  return writer;
4659
4670
  };
4660
4671
 
@@ -4695,6 +4706,9 @@ $root.UserEmailVerificationRequested = (function() {
4695
4706
  case 2:
4696
4707
  message.verificationCode = reader.string();
4697
4708
  break;
4709
+ case 3:
4710
+ message.timestamp = reader.uint64();
4711
+ break;
4698
4712
  default:
4699
4713
  reader.skipType(tag & 7);
4700
4714
  break;
@@ -4736,6 +4750,9 @@ $root.UserEmailVerificationRequested = (function() {
4736
4750
  if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
4737
4751
  if (!$util.isString(message.verificationCode))
4738
4752
  return "verificationCode: string expected";
4753
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
4754
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
4755
+ return "timestamp: integer|Long expected";
4739
4756
  return null;
4740
4757
  };
4741
4758
 
@@ -4755,6 +4772,15 @@ $root.UserEmailVerificationRequested = (function() {
4755
4772
  message.userId = String(object.userId);
4756
4773
  if (object.verificationCode != null)
4757
4774
  message.verificationCode = String(object.verificationCode);
4775
+ if (object.timestamp != null)
4776
+ if ($util.Long)
4777
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
4778
+ else if (typeof object.timestamp === "string")
4779
+ message.timestamp = parseInt(object.timestamp, 10);
4780
+ else if (typeof object.timestamp === "number")
4781
+ message.timestamp = object.timestamp;
4782
+ else if (typeof object.timestamp === "object")
4783
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
4758
4784
  return message;
4759
4785
  };
4760
4786
 
@@ -4774,11 +4800,21 @@ $root.UserEmailVerificationRequested = (function() {
4774
4800
  if (options.defaults) {
4775
4801
  object.userId = "";
4776
4802
  object.verificationCode = "";
4803
+ if ($util.Long) {
4804
+ var long = new $util.Long(0, 0, true);
4805
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
4806
+ } else
4807
+ object.timestamp = options.longs === String ? "0" : 0;
4777
4808
  }
4778
4809
  if (message.userId != null && message.hasOwnProperty("userId"))
4779
4810
  object.userId = message.userId;
4780
4811
  if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
4781
4812
  object.verificationCode = message.verificationCode;
4813
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
4814
+ if (typeof message.timestamp === "number")
4815
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
4816
+ else
4817
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
4782
4818
  return object;
4783
4819
  };
4784
4820
 
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.8.0"
19
+ "version": "1.9.0"
20
20
  }