@headspace/protos-events 1.9.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
@@ -1929,3 +1929,93 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
1929
1929
  */
1930
1930
  public toJSON(): { [k: string]: any };
1931
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
@@ -4832,4 +4832,191 @@ $root.UserEmailVerificationRequested = (function() {
4832
4832
  return UserEmailVerificationRequested;
4833
4833
  })();
4834
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
+
4835
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.9.0"
19
+ "version": "1.10.0"
20
20
  }