@headspace/protos-events 1.58.0 → 1.59.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
@@ -3468,6 +3468,96 @@ export class CheckInCompleted implements ICheckInCompleted {
3468
3468
  public toJSON(): { [k: string]: any };
3469
3469
  }
3470
3470
 
3471
+ /** Properties of a UserEnabledWakeupNotifications. */
3472
+ export interface IUserEnabledWakeupNotifications {
3473
+
3474
+ /** UserEnabledWakeupNotifications userId */
3475
+ userId?: (string|null);
3476
+ }
3477
+
3478
+ /** Represents a UserEnabledWakeupNotifications. */
3479
+ export class UserEnabledWakeupNotifications implements IUserEnabledWakeupNotifications {
3480
+
3481
+ /**
3482
+ * Constructs a new UserEnabledWakeupNotifications.
3483
+ * @param [properties] Properties to set
3484
+ */
3485
+ constructor(properties?: IUserEnabledWakeupNotifications);
3486
+
3487
+ /** UserEnabledWakeupNotifications userId. */
3488
+ public userId: string;
3489
+
3490
+ /**
3491
+ * Creates a new UserEnabledWakeupNotifications instance using the specified properties.
3492
+ * @param [properties] Properties to set
3493
+ * @returns UserEnabledWakeupNotifications instance
3494
+ */
3495
+ public static create(properties?: IUserEnabledWakeupNotifications): UserEnabledWakeupNotifications;
3496
+
3497
+ /**
3498
+ * Encodes the specified UserEnabledWakeupNotifications message. Does not implicitly {@link UserEnabledWakeupNotifications.verify|verify} messages.
3499
+ * @param message UserEnabledWakeupNotifications message or plain object to encode
3500
+ * @param [writer] Writer to encode to
3501
+ * @returns Writer
3502
+ */
3503
+ public static encode(message: IUserEnabledWakeupNotifications, writer?: $protobuf.Writer): $protobuf.Writer;
3504
+
3505
+ /**
3506
+ * Encodes the specified UserEnabledWakeupNotifications message, length delimited. Does not implicitly {@link UserEnabledWakeupNotifications.verify|verify} messages.
3507
+ * @param message UserEnabledWakeupNotifications message or plain object to encode
3508
+ * @param [writer] Writer to encode to
3509
+ * @returns Writer
3510
+ */
3511
+ public static encodeDelimited(message: IUserEnabledWakeupNotifications, writer?: $protobuf.Writer): $protobuf.Writer;
3512
+
3513
+ /**
3514
+ * Decodes a UserEnabledWakeupNotifications message from the specified reader or buffer.
3515
+ * @param reader Reader or buffer to decode from
3516
+ * @param [length] Message length if known beforehand
3517
+ * @returns UserEnabledWakeupNotifications
3518
+ * @throws {Error} If the payload is not a reader or valid buffer
3519
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3520
+ */
3521
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEnabledWakeupNotifications;
3522
+
3523
+ /**
3524
+ * Decodes a UserEnabledWakeupNotifications message from the specified reader or buffer, length delimited.
3525
+ * @param reader Reader or buffer to decode from
3526
+ * @returns UserEnabledWakeupNotifications
3527
+ * @throws {Error} If the payload is not a reader or valid buffer
3528
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
3529
+ */
3530
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEnabledWakeupNotifications;
3531
+
3532
+ /**
3533
+ * Verifies a UserEnabledWakeupNotifications message.
3534
+ * @param message Plain object to verify
3535
+ * @returns `null` if valid, otherwise the reason why it is not
3536
+ */
3537
+ public static verify(message: { [k: string]: any }): (string|null);
3538
+
3539
+ /**
3540
+ * Creates a UserEnabledWakeupNotifications message from a plain object. Also converts values to their respective internal types.
3541
+ * @param object Plain object
3542
+ * @returns UserEnabledWakeupNotifications
3543
+ */
3544
+ public static fromObject(object: { [k: string]: any }): UserEnabledWakeupNotifications;
3545
+
3546
+ /**
3547
+ * Creates a plain object from a UserEnabledWakeupNotifications message. Also converts values to other types if specified.
3548
+ * @param message UserEnabledWakeupNotifications
3549
+ * @param [options] Conversion options
3550
+ * @returns Plain object
3551
+ */
3552
+ public static toObject(message: UserEnabledWakeupNotifications, options?: $protobuf.IConversionOptions): { [k: string]: any };
3553
+
3554
+ /**
3555
+ * Converts this UserEnabledWakeupNotifications to JSON.
3556
+ * @returns JSON object
3557
+ */
3558
+ public toJSON(): { [k: string]: any };
3559
+ }
3560
+
3471
3561
  /** Properties of a ReferralSignedUp. */
3472
3562
  export interface IReferralSignedUp {
3473
3563
 
package/lib/index.js CHANGED
@@ -8383,6 +8383,193 @@ $root.CheckInCompleted = (function() {
8383
8383
  return CheckInCompleted;
8384
8384
  })();
8385
8385
 
8386
+ $root.UserEnabledWakeupNotifications = (function() {
8387
+
8388
+ /**
8389
+ * Properties of a UserEnabledWakeupNotifications.
8390
+ * @exports IUserEnabledWakeupNotifications
8391
+ * @interface IUserEnabledWakeupNotifications
8392
+ * @property {string|null} [userId] UserEnabledWakeupNotifications userId
8393
+ */
8394
+
8395
+ /**
8396
+ * Constructs a new UserEnabledWakeupNotifications.
8397
+ * @exports UserEnabledWakeupNotifications
8398
+ * @classdesc Represents a UserEnabledWakeupNotifications.
8399
+ * @implements IUserEnabledWakeupNotifications
8400
+ * @constructor
8401
+ * @param {IUserEnabledWakeupNotifications=} [properties] Properties to set
8402
+ */
8403
+ function UserEnabledWakeupNotifications(properties) {
8404
+ if (properties)
8405
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8406
+ if (properties[keys[i]] != null)
8407
+ this[keys[i]] = properties[keys[i]];
8408
+ }
8409
+
8410
+ /**
8411
+ * UserEnabledWakeupNotifications userId.
8412
+ * @member {string} userId
8413
+ * @memberof UserEnabledWakeupNotifications
8414
+ * @instance
8415
+ */
8416
+ UserEnabledWakeupNotifications.prototype.userId = "";
8417
+
8418
+ /**
8419
+ * Creates a new UserEnabledWakeupNotifications instance using the specified properties.
8420
+ * @function create
8421
+ * @memberof UserEnabledWakeupNotifications
8422
+ * @static
8423
+ * @param {IUserEnabledWakeupNotifications=} [properties] Properties to set
8424
+ * @returns {UserEnabledWakeupNotifications} UserEnabledWakeupNotifications instance
8425
+ */
8426
+ UserEnabledWakeupNotifications.create = function create(properties) {
8427
+ return new UserEnabledWakeupNotifications(properties);
8428
+ };
8429
+
8430
+ /**
8431
+ * Encodes the specified UserEnabledWakeupNotifications message. Does not implicitly {@link UserEnabledWakeupNotifications.verify|verify} messages.
8432
+ * @function encode
8433
+ * @memberof UserEnabledWakeupNotifications
8434
+ * @static
8435
+ * @param {IUserEnabledWakeupNotifications} message UserEnabledWakeupNotifications message or plain object to encode
8436
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8437
+ * @returns {$protobuf.Writer} Writer
8438
+ */
8439
+ UserEnabledWakeupNotifications.encode = function encode(message, writer) {
8440
+ if (!writer)
8441
+ writer = $Writer.create();
8442
+ if (message.userId != null && message.hasOwnProperty("userId"))
8443
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
8444
+ return writer;
8445
+ };
8446
+
8447
+ /**
8448
+ * Encodes the specified UserEnabledWakeupNotifications message, length delimited. Does not implicitly {@link UserEnabledWakeupNotifications.verify|verify} messages.
8449
+ * @function encodeDelimited
8450
+ * @memberof UserEnabledWakeupNotifications
8451
+ * @static
8452
+ * @param {IUserEnabledWakeupNotifications} message UserEnabledWakeupNotifications message or plain object to encode
8453
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8454
+ * @returns {$protobuf.Writer} Writer
8455
+ */
8456
+ UserEnabledWakeupNotifications.encodeDelimited = function encodeDelimited(message, writer) {
8457
+ return this.encode(message, writer).ldelim();
8458
+ };
8459
+
8460
+ /**
8461
+ * Decodes a UserEnabledWakeupNotifications message from the specified reader or buffer.
8462
+ * @function decode
8463
+ * @memberof UserEnabledWakeupNotifications
8464
+ * @static
8465
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8466
+ * @param {number} [length] Message length if known beforehand
8467
+ * @returns {UserEnabledWakeupNotifications} UserEnabledWakeupNotifications
8468
+ * @throws {Error} If the payload is not a reader or valid buffer
8469
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8470
+ */
8471
+ UserEnabledWakeupNotifications.decode = function decode(reader, length) {
8472
+ if (!(reader instanceof $Reader))
8473
+ reader = $Reader.create(reader);
8474
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEnabledWakeupNotifications();
8475
+ while (reader.pos < end) {
8476
+ var tag = reader.uint32();
8477
+ switch (tag >>> 3) {
8478
+ case 1:
8479
+ message.userId = reader.string();
8480
+ break;
8481
+ default:
8482
+ reader.skipType(tag & 7);
8483
+ break;
8484
+ }
8485
+ }
8486
+ return message;
8487
+ };
8488
+
8489
+ /**
8490
+ * Decodes a UserEnabledWakeupNotifications message from the specified reader or buffer, length delimited.
8491
+ * @function decodeDelimited
8492
+ * @memberof UserEnabledWakeupNotifications
8493
+ * @static
8494
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8495
+ * @returns {UserEnabledWakeupNotifications} UserEnabledWakeupNotifications
8496
+ * @throws {Error} If the payload is not a reader or valid buffer
8497
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8498
+ */
8499
+ UserEnabledWakeupNotifications.decodeDelimited = function decodeDelimited(reader) {
8500
+ if (!(reader instanceof $Reader))
8501
+ reader = new $Reader(reader);
8502
+ return this.decode(reader, reader.uint32());
8503
+ };
8504
+
8505
+ /**
8506
+ * Verifies a UserEnabledWakeupNotifications message.
8507
+ * @function verify
8508
+ * @memberof UserEnabledWakeupNotifications
8509
+ * @static
8510
+ * @param {Object.<string,*>} message Plain object to verify
8511
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8512
+ */
8513
+ UserEnabledWakeupNotifications.verify = function verify(message) {
8514
+ if (typeof message !== "object" || message === null)
8515
+ return "object expected";
8516
+ if (message.userId != null && message.hasOwnProperty("userId"))
8517
+ if (!$util.isString(message.userId))
8518
+ return "userId: string expected";
8519
+ return null;
8520
+ };
8521
+
8522
+ /**
8523
+ * Creates a UserEnabledWakeupNotifications message from a plain object. Also converts values to their respective internal types.
8524
+ * @function fromObject
8525
+ * @memberof UserEnabledWakeupNotifications
8526
+ * @static
8527
+ * @param {Object.<string,*>} object Plain object
8528
+ * @returns {UserEnabledWakeupNotifications} UserEnabledWakeupNotifications
8529
+ */
8530
+ UserEnabledWakeupNotifications.fromObject = function fromObject(object) {
8531
+ if (object instanceof $root.UserEnabledWakeupNotifications)
8532
+ return object;
8533
+ var message = new $root.UserEnabledWakeupNotifications();
8534
+ if (object.userId != null)
8535
+ message.userId = String(object.userId);
8536
+ return message;
8537
+ };
8538
+
8539
+ /**
8540
+ * Creates a plain object from a UserEnabledWakeupNotifications message. Also converts values to other types if specified.
8541
+ * @function toObject
8542
+ * @memberof UserEnabledWakeupNotifications
8543
+ * @static
8544
+ * @param {UserEnabledWakeupNotifications} message UserEnabledWakeupNotifications
8545
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8546
+ * @returns {Object.<string,*>} Plain object
8547
+ */
8548
+ UserEnabledWakeupNotifications.toObject = function toObject(message, options) {
8549
+ if (!options)
8550
+ options = {};
8551
+ var object = {};
8552
+ if (options.defaults)
8553
+ object.userId = "";
8554
+ if (message.userId != null && message.hasOwnProperty("userId"))
8555
+ object.userId = message.userId;
8556
+ return object;
8557
+ };
8558
+
8559
+ /**
8560
+ * Converts this UserEnabledWakeupNotifications to JSON.
8561
+ * @function toJSON
8562
+ * @memberof UserEnabledWakeupNotifications
8563
+ * @instance
8564
+ * @returns {Object.<string,*>} JSON object
8565
+ */
8566
+ UserEnabledWakeupNotifications.prototype.toJSON = function toJSON() {
8567
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8568
+ };
8569
+
8570
+ return UserEnabledWakeupNotifications;
8571
+ })();
8572
+
8386
8573
  $root.ReferralSignedUp = (function() {
8387
8574
 
8388
8575
  /**
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.58.0"
19
+ "version": "1.59.0"
20
20
  }