@headspace/protos-events 1.799.0 → 1.800.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
@@ -86380,6 +86380,119 @@ export class UserAppleWatchNotificationSettingUpdated implements IUserAppleWatch
86380
86380
  public static getTypeUrl(typeUrlPrefix?: string): string;
86381
86381
  }
86382
86382
 
86383
+ /** Properties of a UserOuraNotificationSettingUpdated. */
86384
+ export interface IUserOuraNotificationSettingUpdated {
86385
+
86386
+ /** UserOuraNotificationSettingUpdated hsUserId */
86387
+ hsUserId?: (string|null);
86388
+
86389
+ /** UserOuraNotificationSettingUpdated settingType */
86390
+ settingType?: (string|null);
86391
+
86392
+ /** UserOuraNotificationSettingUpdated isEnabled */
86393
+ isEnabled?: (boolean|null);
86394
+ }
86395
+
86396
+ /**
86397
+ * Sent when a user updates their Oura notification settings.
86398
+ * Responsible team: Consumer Growth
86399
+ *
86400
+ */
86401
+ export class UserOuraNotificationSettingUpdated implements IUserOuraNotificationSettingUpdated {
86402
+
86403
+ /**
86404
+ * Constructs a new UserOuraNotificationSettingUpdated.
86405
+ * @param [properties] Properties to set
86406
+ */
86407
+ constructor(properties?: IUserOuraNotificationSettingUpdated);
86408
+
86409
+ /** UserOuraNotificationSettingUpdated hsUserId. */
86410
+ public hsUserId: string;
86411
+
86412
+ /** UserOuraNotificationSettingUpdated settingType. */
86413
+ public settingType: string;
86414
+
86415
+ /** UserOuraNotificationSettingUpdated isEnabled. */
86416
+ public isEnabled: boolean;
86417
+
86418
+ /**
86419
+ * Creates a new UserOuraNotificationSettingUpdated instance using the specified properties.
86420
+ * @param [properties] Properties to set
86421
+ * @returns UserOuraNotificationSettingUpdated instance
86422
+ */
86423
+ public static create(properties?: IUserOuraNotificationSettingUpdated): UserOuraNotificationSettingUpdated;
86424
+
86425
+ /**
86426
+ * Encodes the specified UserOuraNotificationSettingUpdated message. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
86427
+ * @param message UserOuraNotificationSettingUpdated message or plain object to encode
86428
+ * @param [writer] Writer to encode to
86429
+ * @returns Writer
86430
+ */
86431
+ public static encode(message: IUserOuraNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
86432
+
86433
+ /**
86434
+ * Encodes the specified UserOuraNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
86435
+ * @param message UserOuraNotificationSettingUpdated message or plain object to encode
86436
+ * @param [writer] Writer to encode to
86437
+ * @returns Writer
86438
+ */
86439
+ public static encodeDelimited(message: IUserOuraNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
86440
+
86441
+ /**
86442
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer.
86443
+ * @param reader Reader or buffer to decode from
86444
+ * @param [length] Message length if known beforehand
86445
+ * @returns UserOuraNotificationSettingUpdated
86446
+ * @throws {Error} If the payload is not a reader or valid buffer
86447
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86448
+ */
86449
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOuraNotificationSettingUpdated;
86450
+
86451
+ /**
86452
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer, length delimited.
86453
+ * @param reader Reader or buffer to decode from
86454
+ * @returns UserOuraNotificationSettingUpdated
86455
+ * @throws {Error} If the payload is not a reader or valid buffer
86456
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
86457
+ */
86458
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOuraNotificationSettingUpdated;
86459
+
86460
+ /**
86461
+ * Verifies a UserOuraNotificationSettingUpdated message.
86462
+ * @param message Plain object to verify
86463
+ * @returns `null` if valid, otherwise the reason why it is not
86464
+ */
86465
+ public static verify(message: { [k: string]: any }): (string|null);
86466
+
86467
+ /**
86468
+ * Creates a UserOuraNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
86469
+ * @param object Plain object
86470
+ * @returns UserOuraNotificationSettingUpdated
86471
+ */
86472
+ public static fromObject(object: { [k: string]: any }): UserOuraNotificationSettingUpdated;
86473
+
86474
+ /**
86475
+ * Creates a plain object from a UserOuraNotificationSettingUpdated message. Also converts values to other types if specified.
86476
+ * @param message UserOuraNotificationSettingUpdated
86477
+ * @param [options] Conversion options
86478
+ * @returns Plain object
86479
+ */
86480
+ public static toObject(message: UserOuraNotificationSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
86481
+
86482
+ /**
86483
+ * Converts this UserOuraNotificationSettingUpdated to JSON.
86484
+ * @returns JSON object
86485
+ */
86486
+ public toJSON(): { [k: string]: any };
86487
+
86488
+ /**
86489
+ * Gets the default type url for UserOuraNotificationSettingUpdated
86490
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
86491
+ * @returns The default type url
86492
+ */
86493
+ public static getTypeUrl(typeUrlPrefix?: string): string;
86494
+ }
86495
+
86383
86496
  /** Properties of a UserDeletionRequested. */
86384
86497
  export interface IUserDeletionRequested {
86385
86498
 
package/lib/index.js CHANGED
@@ -262219,6 +262219,274 @@ $root.UserAppleWatchNotificationSettingUpdated = (function() {
262219
262219
  return UserAppleWatchNotificationSettingUpdated;
262220
262220
  })();
262221
262221
 
262222
+ $root.UserOuraNotificationSettingUpdated = (function() {
262223
+
262224
+ /**
262225
+ * Properties of a UserOuraNotificationSettingUpdated.
262226
+ * @name IUserOuraNotificationSettingUpdated
262227
+ * @interface IUserOuraNotificationSettingUpdated
262228
+ * @property {string|null} [hsUserId] UserOuraNotificationSettingUpdated hsUserId
262229
+ * @property {string|null} [settingType] UserOuraNotificationSettingUpdated settingType
262230
+ * @property {boolean|null} [isEnabled] UserOuraNotificationSettingUpdated isEnabled
262231
+ */
262232
+
262233
+ /**
262234
+ * Constructs a new UserOuraNotificationSettingUpdated.
262235
+ * @name UserOuraNotificationSettingUpdated
262236
+ * @classdesc Sent when a user updates their Oura notification settings.
262237
+ * Responsible team: Consumer Growth
262238
+ *
262239
+ * @example User enables their sleep notifications for Oura.
262240
+ * Oura Notifications ticket: https://headspace.atlassian.net/browse/GROW-394
262241
+ * @implements IUserOuraNotificationSettingUpdated
262242
+ * @constructor
262243
+ * @param {IUserOuraNotificationSettingUpdated=} [properties] Properties to set
262244
+ */
262245
+ function UserOuraNotificationSettingUpdated(properties) {
262246
+ if (properties)
262247
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
262248
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
262249
+ this[keys[i]] = properties[keys[i]];
262250
+ }
262251
+
262252
+ /**
262253
+ * UserOuraNotificationSettingUpdated hsUserId.
262254
+ * @member {string} hsUserId
262255
+ * @memberof UserOuraNotificationSettingUpdated
262256
+ * @instance
262257
+ */
262258
+ UserOuraNotificationSettingUpdated.prototype.hsUserId = "";
262259
+
262260
+ /**
262261
+ * UserOuraNotificationSettingUpdated settingType.
262262
+ * @member {string} settingType
262263
+ * @memberof UserOuraNotificationSettingUpdated
262264
+ * @instance
262265
+ */
262266
+ UserOuraNotificationSettingUpdated.prototype.settingType = "";
262267
+
262268
+ /**
262269
+ * UserOuraNotificationSettingUpdated isEnabled.
262270
+ * @member {boolean} isEnabled
262271
+ * @memberof UserOuraNotificationSettingUpdated
262272
+ * @instance
262273
+ */
262274
+ UserOuraNotificationSettingUpdated.prototype.isEnabled = false;
262275
+
262276
+ /**
262277
+ * Creates a new UserOuraNotificationSettingUpdated instance using the specified properties.
262278
+ * @function create
262279
+ * @memberof UserOuraNotificationSettingUpdated
262280
+ * @static
262281
+ * @param {IUserOuraNotificationSettingUpdated=} [properties] Properties to set
262282
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated instance
262283
+ */
262284
+ UserOuraNotificationSettingUpdated.create = function create(properties) {
262285
+ return new UserOuraNotificationSettingUpdated(properties);
262286
+ };
262287
+
262288
+ /**
262289
+ * Encodes the specified UserOuraNotificationSettingUpdated message. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
262290
+ * @function encode
262291
+ * @memberof UserOuraNotificationSettingUpdated
262292
+ * @static
262293
+ * @param {IUserOuraNotificationSettingUpdated} message UserOuraNotificationSettingUpdated message or plain object to encode
262294
+ * @param {$protobuf.Writer} [writer] Writer to encode to
262295
+ * @returns {$protobuf.Writer} Writer
262296
+ */
262297
+ UserOuraNotificationSettingUpdated.encode = function encode(message, writer) {
262298
+ if (!writer)
262299
+ writer = $Writer.create();
262300
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
262301
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
262302
+ if (message.settingType != null && Object.hasOwnProperty.call(message, "settingType"))
262303
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingType);
262304
+ if (message.isEnabled != null && Object.hasOwnProperty.call(message, "isEnabled"))
262305
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isEnabled);
262306
+ return writer;
262307
+ };
262308
+
262309
+ /**
262310
+ * Encodes the specified UserOuraNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserOuraNotificationSettingUpdated.verify|verify} messages.
262311
+ * @function encodeDelimited
262312
+ * @memberof UserOuraNotificationSettingUpdated
262313
+ * @static
262314
+ * @param {IUserOuraNotificationSettingUpdated} message UserOuraNotificationSettingUpdated message or plain object to encode
262315
+ * @param {$protobuf.Writer} [writer] Writer to encode to
262316
+ * @returns {$protobuf.Writer} Writer
262317
+ */
262318
+ UserOuraNotificationSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
262319
+ return this.encode(message, writer).ldelim();
262320
+ };
262321
+
262322
+ /**
262323
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer.
262324
+ * @function decode
262325
+ * @memberof UserOuraNotificationSettingUpdated
262326
+ * @static
262327
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
262328
+ * @param {number} [length] Message length if known beforehand
262329
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated
262330
+ * @throws {Error} If the payload is not a reader or valid buffer
262331
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
262332
+ */
262333
+ UserOuraNotificationSettingUpdated.decode = function decode(reader, length, error, long) {
262334
+ if (!(reader instanceof $Reader))
262335
+ reader = $Reader.create(reader);
262336
+ if (long === undefined)
262337
+ long = 0;
262338
+ if (long > $Reader.recursionLimit)
262339
+ throw Error("maximum nesting depth exceeded");
262340
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserOuraNotificationSettingUpdated();
262341
+ while (reader.pos < end) {
262342
+ var tag = reader.uint32();
262343
+ if (tag === error)
262344
+ break;
262345
+ switch (tag >>> 3) {
262346
+ case 1: {
262347
+ message.hsUserId = reader.string();
262348
+ break;
262349
+ }
262350
+ case 2: {
262351
+ message.settingType = reader.string();
262352
+ break;
262353
+ }
262354
+ case 3: {
262355
+ message.isEnabled = reader.bool();
262356
+ break;
262357
+ }
262358
+ default:
262359
+ reader.skipType(tag & 7, long);
262360
+ break;
262361
+ }
262362
+ }
262363
+ return message;
262364
+ };
262365
+
262366
+ /**
262367
+ * Decodes a UserOuraNotificationSettingUpdated message from the specified reader or buffer, length delimited.
262368
+ * @function decodeDelimited
262369
+ * @memberof UserOuraNotificationSettingUpdated
262370
+ * @static
262371
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
262372
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated
262373
+ * @throws {Error} If the payload is not a reader or valid buffer
262374
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
262375
+ */
262376
+ UserOuraNotificationSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
262377
+ if (!(reader instanceof $Reader))
262378
+ reader = new $Reader(reader);
262379
+ return this.decode(reader, reader.uint32());
262380
+ };
262381
+
262382
+ /**
262383
+ * Verifies a UserOuraNotificationSettingUpdated message.
262384
+ * @function verify
262385
+ * @memberof UserOuraNotificationSettingUpdated
262386
+ * @static
262387
+ * @param {Object.<string,*>} message Plain object to verify
262388
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
262389
+ */
262390
+ UserOuraNotificationSettingUpdated.verify = function verify(message, long) {
262391
+ if (typeof message !== "object" || message === null)
262392
+ return "object expected";
262393
+ if (long === undefined)
262394
+ long = 0;
262395
+ if (long > $util.recursionLimit)
262396
+ return "maximum nesting depth exceeded";
262397
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
262398
+ if (!$util.isString(message.hsUserId))
262399
+ return "hsUserId: string expected";
262400
+ if (message.settingType != null && message.hasOwnProperty("settingType"))
262401
+ if (!$util.isString(message.settingType))
262402
+ return "settingType: string expected";
262403
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
262404
+ if (typeof message.isEnabled !== "boolean")
262405
+ return "isEnabled: boolean expected";
262406
+ return null;
262407
+ };
262408
+
262409
+ /**
262410
+ * Creates a UserOuraNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
262411
+ * @function fromObject
262412
+ * @memberof UserOuraNotificationSettingUpdated
262413
+ * @static
262414
+ * @param {Object.<string,*>} object Plain object
262415
+ * @returns {UserOuraNotificationSettingUpdated} UserOuraNotificationSettingUpdated
262416
+ */
262417
+ UserOuraNotificationSettingUpdated.fromObject = function fromObject(object, long) {
262418
+ if (object instanceof $root.UserOuraNotificationSettingUpdated)
262419
+ return object;
262420
+ if (long === undefined)
262421
+ long = 0;
262422
+ if (long > $util.recursionLimit)
262423
+ throw Error("maximum nesting depth exceeded");
262424
+ var message = new $root.UserOuraNotificationSettingUpdated();
262425
+ if (object.hsUserId != null)
262426
+ message.hsUserId = String(object.hsUserId);
262427
+ if (object.settingType != null)
262428
+ message.settingType = String(object.settingType);
262429
+ if (object.isEnabled != null)
262430
+ message.isEnabled = Boolean(object.isEnabled);
262431
+ return message;
262432
+ };
262433
+
262434
+ /**
262435
+ * Creates a plain object from a UserOuraNotificationSettingUpdated message. Also converts values to other types if specified.
262436
+ * @function toObject
262437
+ * @memberof UserOuraNotificationSettingUpdated
262438
+ * @static
262439
+ * @param {UserOuraNotificationSettingUpdated} message UserOuraNotificationSettingUpdated
262440
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
262441
+ * @returns {Object.<string,*>} Plain object
262442
+ */
262443
+ UserOuraNotificationSettingUpdated.toObject = function toObject(message, options) {
262444
+ if (!options)
262445
+ options = {};
262446
+ var object = {};
262447
+ if (options.defaults) {
262448
+ object.hsUserId = "";
262449
+ object.settingType = "";
262450
+ object.isEnabled = false;
262451
+ }
262452
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
262453
+ object.hsUserId = message.hsUserId;
262454
+ if (message.settingType != null && message.hasOwnProperty("settingType"))
262455
+ object.settingType = message.settingType;
262456
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
262457
+ object.isEnabled = message.isEnabled;
262458
+ return object;
262459
+ };
262460
+
262461
+ /**
262462
+ * Converts this UserOuraNotificationSettingUpdated to JSON.
262463
+ * @function toJSON
262464
+ * @memberof UserOuraNotificationSettingUpdated
262465
+ * @instance
262466
+ * @returns {Object.<string,*>} JSON object
262467
+ */
262468
+ UserOuraNotificationSettingUpdated.prototype.toJSON = function toJSON() {
262469
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
262470
+ };
262471
+
262472
+ /**
262473
+ * Gets the default type url for UserOuraNotificationSettingUpdated
262474
+ * @function getTypeUrl
262475
+ * @memberof UserOuraNotificationSettingUpdated
262476
+ * @static
262477
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
262478
+ * @returns {string} The default type url
262479
+ */
262480
+ UserOuraNotificationSettingUpdated.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
262481
+ if (typeUrlPrefix === undefined) {
262482
+ typeUrlPrefix = "type.googleapis.com";
262483
+ }
262484
+ return typeUrlPrefix + "/UserOuraNotificationSettingUpdated";
262485
+ };
262486
+
262487
+ return UserOuraNotificationSettingUpdated;
262488
+ })();
262489
+
262222
262490
  $root.UserDeletionRequested = (function() {
262223
262491
 
262224
262492
  /**
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.799.0"
19
+ "version": "1.800.0"
20
20
  }