@headspace/protos-events 1.8.0 → 1.10.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
@@ -1923,3 +1929,93 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
1923
1929
  */
1924
1930
  public toJSON(): { [k: string]: any };
1925
1931
  }
1932
+
1933
+ /** Properties of a UserDoubleOptInEmailRequested. */
1934
+ export interface IUserDoubleOptInEmailRequested {
1935
+
1936
+ /** UserDoubleOptInEmailRequested userId */
1937
+ userId?: (string|null);
1938
+ }
1939
+
1940
+ /** Represents a UserDoubleOptInEmailRequested. */
1941
+ export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
1942
+
1943
+ /**
1944
+ * Constructs a new UserDoubleOptInEmailRequested.
1945
+ * @param [properties] Properties to set
1946
+ */
1947
+ constructor(properties?: IUserDoubleOptInEmailRequested);
1948
+
1949
+ /** UserDoubleOptInEmailRequested userId. */
1950
+ public userId: string;
1951
+
1952
+ /**
1953
+ * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
1954
+ * @param [properties] Properties to set
1955
+ * @returns UserDoubleOptInEmailRequested instance
1956
+ */
1957
+ public static create(properties?: IUserDoubleOptInEmailRequested): UserDoubleOptInEmailRequested;
1958
+
1959
+ /**
1960
+ * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
1961
+ * @param message UserDoubleOptInEmailRequested message or plain object to encode
1962
+ * @param [writer] Writer to encode to
1963
+ * @returns Writer
1964
+ */
1965
+ public static encode(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
1966
+
1967
+ /**
1968
+ * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
1969
+ * @param message UserDoubleOptInEmailRequested message or plain object to encode
1970
+ * @param [writer] Writer to encode to
1971
+ * @returns Writer
1972
+ */
1973
+ public static encodeDelimited(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
1974
+
1975
+ /**
1976
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
1977
+ * @param reader Reader or buffer to decode from
1978
+ * @param [length] Message length if known beforehand
1979
+ * @returns UserDoubleOptInEmailRequested
1980
+ * @throws {Error} If the payload is not a reader or valid buffer
1981
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1982
+ */
1983
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDoubleOptInEmailRequested;
1984
+
1985
+ /**
1986
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
1987
+ * @param reader Reader or buffer to decode from
1988
+ * @returns UserDoubleOptInEmailRequested
1989
+ * @throws {Error} If the payload is not a reader or valid buffer
1990
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1991
+ */
1992
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDoubleOptInEmailRequested;
1993
+
1994
+ /**
1995
+ * Verifies a UserDoubleOptInEmailRequested message.
1996
+ * @param message Plain object to verify
1997
+ * @returns `null` if valid, otherwise the reason why it is not
1998
+ */
1999
+ public static verify(message: { [k: string]: any }): (string|null);
2000
+
2001
+ /**
2002
+ * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
2003
+ * @param object Plain object
2004
+ * @returns UserDoubleOptInEmailRequested
2005
+ */
2006
+ public static fromObject(object: { [k: string]: any }): UserDoubleOptInEmailRequested;
2007
+
2008
+ /**
2009
+ * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
2010
+ * @param message UserDoubleOptInEmailRequested
2011
+ * @param [options] Conversion options
2012
+ * @returns Plain object
2013
+ */
2014
+ public static toObject(message: UserDoubleOptInEmailRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
2015
+
2016
+ /**
2017
+ * Converts this UserDoubleOptInEmailRequested to JSON.
2018
+ * @returns JSON object
2019
+ */
2020
+ public toJSON(): { [k: string]: any };
2021
+ }
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
 
@@ -4796,4 +4832,191 @@ $root.UserEmailVerificationRequested = (function() {
4796
4832
  return UserEmailVerificationRequested;
4797
4833
  })();
4798
4834
 
4835
+ $root.UserDoubleOptInEmailRequested = (function() {
4836
+
4837
+ /**
4838
+ * Properties of a UserDoubleOptInEmailRequested.
4839
+ * @exports IUserDoubleOptInEmailRequested
4840
+ * @interface IUserDoubleOptInEmailRequested
4841
+ * @property {string|null} [userId] UserDoubleOptInEmailRequested userId
4842
+ */
4843
+
4844
+ /**
4845
+ * Constructs a new UserDoubleOptInEmailRequested.
4846
+ * @exports UserDoubleOptInEmailRequested
4847
+ * @classdesc Represents a UserDoubleOptInEmailRequested.
4848
+ * @implements IUserDoubleOptInEmailRequested
4849
+ * @constructor
4850
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
4851
+ */
4852
+ function UserDoubleOptInEmailRequested(properties) {
4853
+ if (properties)
4854
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4855
+ if (properties[keys[i]] != null)
4856
+ this[keys[i]] = properties[keys[i]];
4857
+ }
4858
+
4859
+ /**
4860
+ * UserDoubleOptInEmailRequested userId.
4861
+ * @member {string} userId
4862
+ * @memberof UserDoubleOptInEmailRequested
4863
+ * @instance
4864
+ */
4865
+ UserDoubleOptInEmailRequested.prototype.userId = "";
4866
+
4867
+ /**
4868
+ * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
4869
+ * @function create
4870
+ * @memberof UserDoubleOptInEmailRequested
4871
+ * @static
4872
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
4873
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
4874
+ */
4875
+ UserDoubleOptInEmailRequested.create = function create(properties) {
4876
+ return new UserDoubleOptInEmailRequested(properties);
4877
+ };
4878
+
4879
+ /**
4880
+ * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
4881
+ * @function encode
4882
+ * @memberof UserDoubleOptInEmailRequested
4883
+ * @static
4884
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
4885
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4886
+ * @returns {$protobuf.Writer} Writer
4887
+ */
4888
+ UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
4889
+ if (!writer)
4890
+ writer = $Writer.create();
4891
+ if (message.userId != null && message.hasOwnProperty("userId"))
4892
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
4893
+ return writer;
4894
+ };
4895
+
4896
+ /**
4897
+ * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
4898
+ * @function encodeDelimited
4899
+ * @memberof UserDoubleOptInEmailRequested
4900
+ * @static
4901
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
4902
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4903
+ * @returns {$protobuf.Writer} Writer
4904
+ */
4905
+ UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
4906
+ return this.encode(message, writer).ldelim();
4907
+ };
4908
+
4909
+ /**
4910
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
4911
+ * @function decode
4912
+ * @memberof UserDoubleOptInEmailRequested
4913
+ * @static
4914
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4915
+ * @param {number} [length] Message length if known beforehand
4916
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
4917
+ * @throws {Error} If the payload is not a reader or valid buffer
4918
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4919
+ */
4920
+ UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
4921
+ if (!(reader instanceof $Reader))
4922
+ reader = $Reader.create(reader);
4923
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
4924
+ while (reader.pos < end) {
4925
+ var tag = reader.uint32();
4926
+ switch (tag >>> 3) {
4927
+ case 1:
4928
+ message.userId = reader.string();
4929
+ break;
4930
+ default:
4931
+ reader.skipType(tag & 7);
4932
+ break;
4933
+ }
4934
+ }
4935
+ return message;
4936
+ };
4937
+
4938
+ /**
4939
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
4940
+ * @function decodeDelimited
4941
+ * @memberof UserDoubleOptInEmailRequested
4942
+ * @static
4943
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4944
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
4945
+ * @throws {Error} If the payload is not a reader or valid buffer
4946
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4947
+ */
4948
+ UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
4949
+ if (!(reader instanceof $Reader))
4950
+ reader = new $Reader(reader);
4951
+ return this.decode(reader, reader.uint32());
4952
+ };
4953
+
4954
+ /**
4955
+ * Verifies a UserDoubleOptInEmailRequested message.
4956
+ * @function verify
4957
+ * @memberof UserDoubleOptInEmailRequested
4958
+ * @static
4959
+ * @param {Object.<string,*>} message Plain object to verify
4960
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4961
+ */
4962
+ UserDoubleOptInEmailRequested.verify = function verify(message) {
4963
+ if (typeof message !== "object" || message === null)
4964
+ return "object expected";
4965
+ if (message.userId != null && message.hasOwnProperty("userId"))
4966
+ if (!$util.isString(message.userId))
4967
+ return "userId: string expected";
4968
+ return null;
4969
+ };
4970
+
4971
+ /**
4972
+ * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
4973
+ * @function fromObject
4974
+ * @memberof UserDoubleOptInEmailRequested
4975
+ * @static
4976
+ * @param {Object.<string,*>} object Plain object
4977
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
4978
+ */
4979
+ UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
4980
+ if (object instanceof $root.UserDoubleOptInEmailRequested)
4981
+ return object;
4982
+ var message = new $root.UserDoubleOptInEmailRequested();
4983
+ if (object.userId != null)
4984
+ message.userId = String(object.userId);
4985
+ return message;
4986
+ };
4987
+
4988
+ /**
4989
+ * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
4990
+ * @function toObject
4991
+ * @memberof UserDoubleOptInEmailRequested
4992
+ * @static
4993
+ * @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
4994
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4995
+ * @returns {Object.<string,*>} Plain object
4996
+ */
4997
+ UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
4998
+ if (!options)
4999
+ options = {};
5000
+ var object = {};
5001
+ if (options.defaults)
5002
+ object.userId = "";
5003
+ if (message.userId != null && message.hasOwnProperty("userId"))
5004
+ object.userId = message.userId;
5005
+ return object;
5006
+ };
5007
+
5008
+ /**
5009
+ * Converts this UserDoubleOptInEmailRequested to JSON.
5010
+ * @function toJSON
5011
+ * @memberof UserDoubleOptInEmailRequested
5012
+ * @instance
5013
+ * @returns {Object.<string,*>} JSON object
5014
+ */
5015
+ UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
5016
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5017
+ };
5018
+
5019
+ return UserDoubleOptInEmailRequested;
5020
+ })();
5021
+
4799
5022
  module.exports = $root;
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.10.0"
20
20
  }