@headspace/protos-events 1.420.0 → 1.421.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
@@ -42202,114 +42202,6 @@ export class UserEmailUpdated implements IUserEmailUpdated {
42202
42202
  public toJSON(): { [k: string]: any };
42203
42203
  }
42204
42204
 
42205
- /** Properties of a UserEmailVerificationRequested. */
42206
- export interface IUserEmailVerificationRequested {
42207
-
42208
- /** UserEmailVerificationRequested userId */
42209
- userId?: (string|null);
42210
-
42211
- /** UserEmailVerificationRequested verificationCode */
42212
- verificationCode?: (string|null);
42213
-
42214
- /** UserEmailVerificationRequested timestamp */
42215
- timestamp?: (number|Long|null);
42216
-
42217
- /** UserEmailVerificationRequested optIn */
42218
- optIn?: (boolean|null);
42219
- }
42220
-
42221
- /** Represents a UserEmailVerificationRequested. */
42222
- export class UserEmailVerificationRequested implements IUserEmailVerificationRequested {
42223
-
42224
- /**
42225
- * Constructs a new UserEmailVerificationRequested.
42226
- * @param [properties] Properties to set
42227
- */
42228
- constructor(properties?: IUserEmailVerificationRequested);
42229
-
42230
- /** UserEmailVerificationRequested userId. */
42231
- public userId: string;
42232
-
42233
- /** UserEmailVerificationRequested verificationCode. */
42234
- public verificationCode: string;
42235
-
42236
- /** UserEmailVerificationRequested timestamp. */
42237
- public timestamp: (number|Long);
42238
-
42239
- /** UserEmailVerificationRequested optIn. */
42240
- public optIn: boolean;
42241
-
42242
- /**
42243
- * Creates a new UserEmailVerificationRequested instance using the specified properties.
42244
- * @param [properties] Properties to set
42245
- * @returns UserEmailVerificationRequested instance
42246
- */
42247
- public static create(properties?: IUserEmailVerificationRequested): UserEmailVerificationRequested;
42248
-
42249
- /**
42250
- * Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
42251
- * @param message UserEmailVerificationRequested message or plain object to encode
42252
- * @param [writer] Writer to encode to
42253
- * @returns Writer
42254
- */
42255
- public static encode(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
42256
-
42257
- /**
42258
- * Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
42259
- * @param message UserEmailVerificationRequested message or plain object to encode
42260
- * @param [writer] Writer to encode to
42261
- * @returns Writer
42262
- */
42263
- public static encodeDelimited(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
42264
-
42265
- /**
42266
- * Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
42267
- * @param reader Reader or buffer to decode from
42268
- * @param [length] Message length if known beforehand
42269
- * @returns UserEmailVerificationRequested
42270
- * @throws {Error} If the payload is not a reader or valid buffer
42271
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
42272
- */
42273
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailVerificationRequested;
42274
-
42275
- /**
42276
- * Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
42277
- * @param reader Reader or buffer to decode from
42278
- * @returns UserEmailVerificationRequested
42279
- * @throws {Error} If the payload is not a reader or valid buffer
42280
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
42281
- */
42282
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailVerificationRequested;
42283
-
42284
- /**
42285
- * Verifies a UserEmailVerificationRequested message.
42286
- * @param message Plain object to verify
42287
- * @returns `null` if valid, otherwise the reason why it is not
42288
- */
42289
- public static verify(message: { [k: string]: any }): (string|null);
42290
-
42291
- /**
42292
- * Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
42293
- * @param object Plain object
42294
- * @returns UserEmailVerificationRequested
42295
- */
42296
- public static fromObject(object: { [k: string]: any }): UserEmailVerificationRequested;
42297
-
42298
- /**
42299
- * Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
42300
- * @param message UserEmailVerificationRequested
42301
- * @param [options] Conversion options
42302
- * @returns Plain object
42303
- */
42304
- public static toObject(message: UserEmailVerificationRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
42305
-
42306
- /**
42307
- * Converts this UserEmailVerificationRequested to JSON.
42308
- * @returns JSON object
42309
- */
42310
- public toJSON(): { [k: string]: any };
42311
- }
42312
-
42313
42205
  /** Properties of a UserEmailVerificationCompleted. */
42314
42206
  export interface IUserEmailVerificationCompleted {
42315
42207
 
package/lib/index.js CHANGED
@@ -120023,274 +120023,6 @@ $root.UserEmailUpdated = (function() {
120023
120023
  return UserEmailUpdated;
120024
120024
  })();
120025
120025
 
120026
- $root.UserEmailVerificationRequested = (function() {
120027
-
120028
- /**
120029
- * Properties of a UserEmailVerificationRequested.
120030
- * @exports IUserEmailVerificationRequested
120031
- * @interface IUserEmailVerificationRequested
120032
- * @property {string|null} [userId] UserEmailVerificationRequested userId
120033
- * @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
120034
- * @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
120035
- * @property {boolean|null} [optIn] UserEmailVerificationRequested optIn
120036
- */
120037
-
120038
- /**
120039
- * Constructs a new UserEmailVerificationRequested.
120040
- * @exports UserEmailVerificationRequested
120041
- * @classdesc Represents a UserEmailVerificationRequested.
120042
- * @implements IUserEmailVerificationRequested
120043
- * @constructor
120044
- * @param {IUserEmailVerificationRequested=} [properties] Properties to set
120045
- */
120046
- function UserEmailVerificationRequested(properties) {
120047
- if (properties)
120048
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
120049
- if (properties[keys[i]] != null)
120050
- this[keys[i]] = properties[keys[i]];
120051
- }
120052
-
120053
- /**
120054
- * UserEmailVerificationRequested userId.
120055
- * @member {string} userId
120056
- * @memberof UserEmailVerificationRequested
120057
- * @instance
120058
- */
120059
- UserEmailVerificationRequested.prototype.userId = "";
120060
-
120061
- /**
120062
- * UserEmailVerificationRequested verificationCode.
120063
- * @member {string} verificationCode
120064
- * @memberof UserEmailVerificationRequested
120065
- * @instance
120066
- */
120067
- UserEmailVerificationRequested.prototype.verificationCode = "";
120068
-
120069
- /**
120070
- * UserEmailVerificationRequested timestamp.
120071
- * @member {number|Long} timestamp
120072
- * @memberof UserEmailVerificationRequested
120073
- * @instance
120074
- */
120075
- UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
120076
-
120077
- /**
120078
- * UserEmailVerificationRequested optIn.
120079
- * @member {boolean} optIn
120080
- * @memberof UserEmailVerificationRequested
120081
- * @instance
120082
- */
120083
- UserEmailVerificationRequested.prototype.optIn = false;
120084
-
120085
- /**
120086
- * Creates a new UserEmailVerificationRequested instance using the specified properties.
120087
- * @function create
120088
- * @memberof UserEmailVerificationRequested
120089
- * @static
120090
- * @param {IUserEmailVerificationRequested=} [properties] Properties to set
120091
- * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested instance
120092
- */
120093
- UserEmailVerificationRequested.create = function create(properties) {
120094
- return new UserEmailVerificationRequested(properties);
120095
- };
120096
-
120097
- /**
120098
- * Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
120099
- * @function encode
120100
- * @memberof UserEmailVerificationRequested
120101
- * @static
120102
- * @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
120103
- * @param {$protobuf.Writer} [writer] Writer to encode to
120104
- * @returns {$protobuf.Writer} Writer
120105
- */
120106
- UserEmailVerificationRequested.encode = function encode(message, writer) {
120107
- if (!writer)
120108
- writer = $Writer.create();
120109
- if (message.userId != null && message.hasOwnProperty("userId"))
120110
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
120111
- if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
120112
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
120113
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
120114
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
120115
- if (message.optIn != null && message.hasOwnProperty("optIn"))
120116
- writer.uint32(/* id 4, wireType 0 =*/32).bool(message.optIn);
120117
- return writer;
120118
- };
120119
-
120120
- /**
120121
- * Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
120122
- * @function encodeDelimited
120123
- * @memberof UserEmailVerificationRequested
120124
- * @static
120125
- * @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
120126
- * @param {$protobuf.Writer} [writer] Writer to encode to
120127
- * @returns {$protobuf.Writer} Writer
120128
- */
120129
- UserEmailVerificationRequested.encodeDelimited = function encodeDelimited(message, writer) {
120130
- return this.encode(message, writer).ldelim();
120131
- };
120132
-
120133
- /**
120134
- * Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
120135
- * @function decode
120136
- * @memberof UserEmailVerificationRequested
120137
- * @static
120138
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
120139
- * @param {number} [length] Message length if known beforehand
120140
- * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
120141
- * @throws {Error} If the payload is not a reader or valid buffer
120142
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
120143
- */
120144
- UserEmailVerificationRequested.decode = function decode(reader, length) {
120145
- if (!(reader instanceof $Reader))
120146
- reader = $Reader.create(reader);
120147
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationRequested();
120148
- while (reader.pos < end) {
120149
- var tag = reader.uint32();
120150
- switch (tag >>> 3) {
120151
- case 1:
120152
- message.userId = reader.string();
120153
- break;
120154
- case 2:
120155
- message.verificationCode = reader.string();
120156
- break;
120157
- case 3:
120158
- message.timestamp = reader.uint64();
120159
- break;
120160
- case 4:
120161
- message.optIn = reader.bool();
120162
- break;
120163
- default:
120164
- reader.skipType(tag & 7);
120165
- break;
120166
- }
120167
- }
120168
- return message;
120169
- };
120170
-
120171
- /**
120172
- * Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
120173
- * @function decodeDelimited
120174
- * @memberof UserEmailVerificationRequested
120175
- * @static
120176
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
120177
- * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
120178
- * @throws {Error} If the payload is not a reader or valid buffer
120179
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
120180
- */
120181
- UserEmailVerificationRequested.decodeDelimited = function decodeDelimited(reader) {
120182
- if (!(reader instanceof $Reader))
120183
- reader = new $Reader(reader);
120184
- return this.decode(reader, reader.uint32());
120185
- };
120186
-
120187
- /**
120188
- * Verifies a UserEmailVerificationRequested message.
120189
- * @function verify
120190
- * @memberof UserEmailVerificationRequested
120191
- * @static
120192
- * @param {Object.<string,*>} message Plain object to verify
120193
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
120194
- */
120195
- UserEmailVerificationRequested.verify = function verify(message) {
120196
- if (typeof message !== "object" || message === null)
120197
- return "object expected";
120198
- if (message.userId != null && message.hasOwnProperty("userId"))
120199
- if (!$util.isString(message.userId))
120200
- return "userId: string expected";
120201
- if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
120202
- if (!$util.isString(message.verificationCode))
120203
- return "verificationCode: string expected";
120204
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
120205
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
120206
- return "timestamp: integer|Long expected";
120207
- if (message.optIn != null && message.hasOwnProperty("optIn"))
120208
- if (typeof message.optIn !== "boolean")
120209
- return "optIn: boolean expected";
120210
- return null;
120211
- };
120212
-
120213
- /**
120214
- * Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
120215
- * @function fromObject
120216
- * @memberof UserEmailVerificationRequested
120217
- * @static
120218
- * @param {Object.<string,*>} object Plain object
120219
- * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
120220
- */
120221
- UserEmailVerificationRequested.fromObject = function fromObject(object) {
120222
- if (object instanceof $root.UserEmailVerificationRequested)
120223
- return object;
120224
- var message = new $root.UserEmailVerificationRequested();
120225
- if (object.userId != null)
120226
- message.userId = String(object.userId);
120227
- if (object.verificationCode != null)
120228
- message.verificationCode = String(object.verificationCode);
120229
- if (object.timestamp != null)
120230
- if ($util.Long)
120231
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
120232
- else if (typeof object.timestamp === "string")
120233
- message.timestamp = parseInt(object.timestamp, 10);
120234
- else if (typeof object.timestamp === "number")
120235
- message.timestamp = object.timestamp;
120236
- else if (typeof object.timestamp === "object")
120237
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
120238
- if (object.optIn != null)
120239
- message.optIn = Boolean(object.optIn);
120240
- return message;
120241
- };
120242
-
120243
- /**
120244
- * Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
120245
- * @function toObject
120246
- * @memberof UserEmailVerificationRequested
120247
- * @static
120248
- * @param {UserEmailVerificationRequested} message UserEmailVerificationRequested
120249
- * @param {$protobuf.IConversionOptions} [options] Conversion options
120250
- * @returns {Object.<string,*>} Plain object
120251
- */
120252
- UserEmailVerificationRequested.toObject = function toObject(message, options) {
120253
- if (!options)
120254
- options = {};
120255
- var object = {};
120256
- if (options.defaults) {
120257
- object.userId = "";
120258
- object.verificationCode = "";
120259
- if ($util.Long) {
120260
- var long = new $util.Long(0, 0, true);
120261
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
120262
- } else
120263
- object.timestamp = options.longs === String ? "0" : 0;
120264
- object.optIn = false;
120265
- }
120266
- if (message.userId != null && message.hasOwnProperty("userId"))
120267
- object.userId = message.userId;
120268
- if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
120269
- object.verificationCode = message.verificationCode;
120270
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
120271
- if (typeof message.timestamp === "number")
120272
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
120273
- else
120274
- 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;
120275
- if (message.optIn != null && message.hasOwnProperty("optIn"))
120276
- object.optIn = message.optIn;
120277
- return object;
120278
- };
120279
-
120280
- /**
120281
- * Converts this UserEmailVerificationRequested to JSON.
120282
- * @function toJSON
120283
- * @memberof UserEmailVerificationRequested
120284
- * @instance
120285
- * @returns {Object.<string,*>} JSON object
120286
- */
120287
- UserEmailVerificationRequested.prototype.toJSON = function toJSON() {
120288
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
120289
- };
120290
-
120291
- return UserEmailVerificationRequested;
120292
- })();
120293
-
120294
120026
  $root.UserEmailVerificationCompleted = (function() {
120295
120027
 
120296
120028
  /**
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.420.0"
19
+ "version": "1.421.0"
20
20
  }