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