@headspace/protos-events 1.786.0 → 1.787.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
@@ -59579,6 +59579,112 @@ export class UserConsentUpdated implements IUserConsentUpdated {
59579
59579
  public toJSON(): { [k: string]: any };
59580
59580
  }
59581
59581
 
59582
+ /** Properties of a UserAppleWatchNotificationSettingUpdated. */
59583
+ export interface IUserAppleWatchNotificationSettingUpdated {
59584
+
59585
+ /** UserAppleWatchNotificationSettingUpdated hsUserId */
59586
+ hsUserId?: (string|null);
59587
+
59588
+ /** UserAppleWatchNotificationSettingUpdated settingType */
59589
+ settingType?: (string|null);
59590
+
59591
+ /** UserAppleWatchNotificationSettingUpdated isEnabled */
59592
+ isEnabled?: (boolean|null);
59593
+ }
59594
+
59595
+ /**
59596
+ * Sent when a user updates their Apple Watch notification settings.
59597
+ * Responsible team: Consumer Growth
59598
+ *
59599
+ */
59600
+ export class UserAppleWatchNotificationSettingUpdated implements IUserAppleWatchNotificationSettingUpdated {
59601
+
59602
+ /**
59603
+ * Constructs a new UserAppleWatchNotificationSettingUpdated.
59604
+ * @param [properties] Properties to set
59605
+ */
59606
+ constructor(properties?: IUserAppleWatchNotificationSettingUpdated);
59607
+
59608
+ /** UserAppleWatchNotificationSettingUpdated hsUserId. */
59609
+ public hsUserId: string;
59610
+
59611
+ /** UserAppleWatchNotificationSettingUpdated settingType. */
59612
+ public settingType: string;
59613
+
59614
+ /** UserAppleWatchNotificationSettingUpdated isEnabled. */
59615
+ public isEnabled: boolean;
59616
+
59617
+ /**
59618
+ * Creates a new UserAppleWatchNotificationSettingUpdated instance using the specified properties.
59619
+ * @param [properties] Properties to set
59620
+ * @returns UserAppleWatchNotificationSettingUpdated instance
59621
+ */
59622
+ public static create(properties?: IUserAppleWatchNotificationSettingUpdated): UserAppleWatchNotificationSettingUpdated;
59623
+
59624
+ /**
59625
+ * Encodes the specified UserAppleWatchNotificationSettingUpdated message. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
59626
+ * @param message UserAppleWatchNotificationSettingUpdated message or plain object to encode
59627
+ * @param [writer] Writer to encode to
59628
+ * @returns Writer
59629
+ */
59630
+ public static encode(message: IUserAppleWatchNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
59631
+
59632
+ /**
59633
+ * Encodes the specified UserAppleWatchNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
59634
+ * @param message UserAppleWatchNotificationSettingUpdated message or plain object to encode
59635
+ * @param [writer] Writer to encode to
59636
+ * @returns Writer
59637
+ */
59638
+ public static encodeDelimited(message: IUserAppleWatchNotificationSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
59639
+
59640
+ /**
59641
+ * Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer.
59642
+ * @param reader Reader or buffer to decode from
59643
+ * @param [length] Message length if known beforehand
59644
+ * @returns UserAppleWatchNotificationSettingUpdated
59645
+ * @throws {Error} If the payload is not a reader or valid buffer
59646
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59647
+ */
59648
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserAppleWatchNotificationSettingUpdated;
59649
+
59650
+ /**
59651
+ * Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer, length delimited.
59652
+ * @param reader Reader or buffer to decode from
59653
+ * @returns UserAppleWatchNotificationSettingUpdated
59654
+ * @throws {Error} If the payload is not a reader or valid buffer
59655
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59656
+ */
59657
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserAppleWatchNotificationSettingUpdated;
59658
+
59659
+ /**
59660
+ * Verifies a UserAppleWatchNotificationSettingUpdated message.
59661
+ * @param message Plain object to verify
59662
+ * @returns `null` if valid, otherwise the reason why it is not
59663
+ */
59664
+ public static verify(message: { [k: string]: any }): (string|null);
59665
+
59666
+ /**
59667
+ * Creates a UserAppleWatchNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
59668
+ * @param object Plain object
59669
+ * @returns UserAppleWatchNotificationSettingUpdated
59670
+ */
59671
+ public static fromObject(object: { [k: string]: any }): UserAppleWatchNotificationSettingUpdated;
59672
+
59673
+ /**
59674
+ * Creates a plain object from a UserAppleWatchNotificationSettingUpdated message. Also converts values to other types if specified.
59675
+ * @param message UserAppleWatchNotificationSettingUpdated
59676
+ * @param [options] Conversion options
59677
+ * @returns Plain object
59678
+ */
59679
+ public static toObject(message: UserAppleWatchNotificationSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
59680
+
59681
+ /**
59682
+ * Converts this UserAppleWatchNotificationSettingUpdated to JSON.
59683
+ * @returns JSON object
59684
+ */
59685
+ public toJSON(): { [k: string]: any };
59686
+ }
59687
+
59582
59688
  /** Properties of a UserDeletionRequested. */
59583
59689
  export interface IUserDeletionRequested {
59584
59690
 
package/lib/index.js CHANGED
@@ -170190,6 +170190,242 @@ $root.UserConsentUpdated = (function() {
170190
170190
  return UserConsentUpdated;
170191
170191
  })();
170192
170192
 
170193
+ $root.UserAppleWatchNotificationSettingUpdated = (function() {
170194
+
170195
+ /**
170196
+ * Properties of a UserAppleWatchNotificationSettingUpdated.
170197
+ * @name IUserAppleWatchNotificationSettingUpdated
170198
+ * @interface IUserAppleWatchNotificationSettingUpdated
170199
+ * @property {string|null} [hsUserId] UserAppleWatchNotificationSettingUpdated hsUserId
170200
+ * @property {string|null} [settingType] UserAppleWatchNotificationSettingUpdated settingType
170201
+ * @property {boolean|null} [isEnabled] UserAppleWatchNotificationSettingUpdated isEnabled
170202
+ */
170203
+
170204
+ /**
170205
+ * Constructs a new UserAppleWatchNotificationSettingUpdated.
170206
+ * @name UserAppleWatchNotificationSettingUpdated
170207
+ * @classdesc Sent when a user updates their Apple Watch notification settings.
170208
+ * Responsible team: Consumer Growth
170209
+ *
170210
+ * @example User enables their haptic notifications for Apple Watch.
170211
+ * Apple Watch Notifications ticket: https://headspace.atlassian.net/browse/GROW-407
170212
+ * @implements IUserAppleWatchNotificationSettingUpdated
170213
+ * @constructor
170214
+ * @param {IUserAppleWatchNotificationSettingUpdated=} [properties] Properties to set
170215
+ */
170216
+ function UserAppleWatchNotificationSettingUpdated(properties) {
170217
+ if (properties)
170218
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
170219
+ if (properties[keys[i]] != null)
170220
+ this[keys[i]] = properties[keys[i]];
170221
+ }
170222
+
170223
+ /**
170224
+ * UserAppleWatchNotificationSettingUpdated hsUserId.
170225
+ * @member {string} hsUserId
170226
+ * @memberof UserAppleWatchNotificationSettingUpdated
170227
+ * @instance
170228
+ */
170229
+ UserAppleWatchNotificationSettingUpdated.prototype.hsUserId = "";
170230
+
170231
+ /**
170232
+ * UserAppleWatchNotificationSettingUpdated settingType.
170233
+ * @member {string} settingType
170234
+ * @memberof UserAppleWatchNotificationSettingUpdated
170235
+ * @instance
170236
+ */
170237
+ UserAppleWatchNotificationSettingUpdated.prototype.settingType = "";
170238
+
170239
+ /**
170240
+ * UserAppleWatchNotificationSettingUpdated isEnabled.
170241
+ * @member {boolean} isEnabled
170242
+ * @memberof UserAppleWatchNotificationSettingUpdated
170243
+ * @instance
170244
+ */
170245
+ UserAppleWatchNotificationSettingUpdated.prototype.isEnabled = false;
170246
+
170247
+ /**
170248
+ * Creates a new UserAppleWatchNotificationSettingUpdated instance using the specified properties.
170249
+ * @function create
170250
+ * @memberof UserAppleWatchNotificationSettingUpdated
170251
+ * @static
170252
+ * @param {IUserAppleWatchNotificationSettingUpdated=} [properties] Properties to set
170253
+ * @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated instance
170254
+ */
170255
+ UserAppleWatchNotificationSettingUpdated.create = function create(properties) {
170256
+ return new UserAppleWatchNotificationSettingUpdated(properties);
170257
+ };
170258
+
170259
+ /**
170260
+ * Encodes the specified UserAppleWatchNotificationSettingUpdated message. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
170261
+ * @function encode
170262
+ * @memberof UserAppleWatchNotificationSettingUpdated
170263
+ * @static
170264
+ * @param {IUserAppleWatchNotificationSettingUpdated} message UserAppleWatchNotificationSettingUpdated message or plain object to encode
170265
+ * @param {$protobuf.Writer} [writer] Writer to encode to
170266
+ * @returns {$protobuf.Writer} Writer
170267
+ */
170268
+ UserAppleWatchNotificationSettingUpdated.encode = function encode(message, writer) {
170269
+ if (!writer)
170270
+ writer = $Writer.create();
170271
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
170272
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
170273
+ if (message.settingType != null && message.hasOwnProperty("settingType"))
170274
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingType);
170275
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
170276
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isEnabled);
170277
+ return writer;
170278
+ };
170279
+
170280
+ /**
170281
+ * Encodes the specified UserAppleWatchNotificationSettingUpdated message, length delimited. Does not implicitly {@link UserAppleWatchNotificationSettingUpdated.verify|verify} messages.
170282
+ * @function encodeDelimited
170283
+ * @memberof UserAppleWatchNotificationSettingUpdated
170284
+ * @static
170285
+ * @param {IUserAppleWatchNotificationSettingUpdated} message UserAppleWatchNotificationSettingUpdated message or plain object to encode
170286
+ * @param {$protobuf.Writer} [writer] Writer to encode to
170287
+ * @returns {$protobuf.Writer} Writer
170288
+ */
170289
+ UserAppleWatchNotificationSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
170290
+ return this.encode(message, writer).ldelim();
170291
+ };
170292
+
170293
+ /**
170294
+ * Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer.
170295
+ * @function decode
170296
+ * @memberof UserAppleWatchNotificationSettingUpdated
170297
+ * @static
170298
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
170299
+ * @param {number} [length] Message length if known beforehand
170300
+ * @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated
170301
+ * @throws {Error} If the payload is not a reader or valid buffer
170302
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
170303
+ */
170304
+ UserAppleWatchNotificationSettingUpdated.decode = function decode(reader, length) {
170305
+ if (!(reader instanceof $Reader))
170306
+ reader = $Reader.create(reader);
170307
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserAppleWatchNotificationSettingUpdated();
170308
+ while (reader.pos < end) {
170309
+ var tag = reader.uint32();
170310
+ switch (tag >>> 3) {
170311
+ case 1:
170312
+ message.hsUserId = reader.string();
170313
+ break;
170314
+ case 2:
170315
+ message.settingType = reader.string();
170316
+ break;
170317
+ case 3:
170318
+ message.isEnabled = reader.bool();
170319
+ break;
170320
+ default:
170321
+ reader.skipType(tag & 7);
170322
+ break;
170323
+ }
170324
+ }
170325
+ return message;
170326
+ };
170327
+
170328
+ /**
170329
+ * Decodes a UserAppleWatchNotificationSettingUpdated message from the specified reader or buffer, length delimited.
170330
+ * @function decodeDelimited
170331
+ * @memberof UserAppleWatchNotificationSettingUpdated
170332
+ * @static
170333
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
170334
+ * @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated
170335
+ * @throws {Error} If the payload is not a reader or valid buffer
170336
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
170337
+ */
170338
+ UserAppleWatchNotificationSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
170339
+ if (!(reader instanceof $Reader))
170340
+ reader = new $Reader(reader);
170341
+ return this.decode(reader, reader.uint32());
170342
+ };
170343
+
170344
+ /**
170345
+ * Verifies a UserAppleWatchNotificationSettingUpdated message.
170346
+ * @function verify
170347
+ * @memberof UserAppleWatchNotificationSettingUpdated
170348
+ * @static
170349
+ * @param {Object.<string,*>} message Plain object to verify
170350
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
170351
+ */
170352
+ UserAppleWatchNotificationSettingUpdated.verify = function verify(message) {
170353
+ if (typeof message !== "object" || message === null)
170354
+ return "object expected";
170355
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
170356
+ if (!$util.isString(message.hsUserId))
170357
+ return "hsUserId: string expected";
170358
+ if (message.settingType != null && message.hasOwnProperty("settingType"))
170359
+ if (!$util.isString(message.settingType))
170360
+ return "settingType: string expected";
170361
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
170362
+ if (typeof message.isEnabled !== "boolean")
170363
+ return "isEnabled: boolean expected";
170364
+ return null;
170365
+ };
170366
+
170367
+ /**
170368
+ * Creates a UserAppleWatchNotificationSettingUpdated message from a plain object. Also converts values to their respective internal types.
170369
+ * @function fromObject
170370
+ * @memberof UserAppleWatchNotificationSettingUpdated
170371
+ * @static
170372
+ * @param {Object.<string,*>} object Plain object
170373
+ * @returns {UserAppleWatchNotificationSettingUpdated} UserAppleWatchNotificationSettingUpdated
170374
+ */
170375
+ UserAppleWatchNotificationSettingUpdated.fromObject = function fromObject(object) {
170376
+ if (object instanceof $root.UserAppleWatchNotificationSettingUpdated)
170377
+ return object;
170378
+ var message = new $root.UserAppleWatchNotificationSettingUpdated();
170379
+ if (object.hsUserId != null)
170380
+ message.hsUserId = String(object.hsUserId);
170381
+ if (object.settingType != null)
170382
+ message.settingType = String(object.settingType);
170383
+ if (object.isEnabled != null)
170384
+ message.isEnabled = Boolean(object.isEnabled);
170385
+ return message;
170386
+ };
170387
+
170388
+ /**
170389
+ * Creates a plain object from a UserAppleWatchNotificationSettingUpdated message. Also converts values to other types if specified.
170390
+ * @function toObject
170391
+ * @memberof UserAppleWatchNotificationSettingUpdated
170392
+ * @static
170393
+ * @param {UserAppleWatchNotificationSettingUpdated} message UserAppleWatchNotificationSettingUpdated
170394
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
170395
+ * @returns {Object.<string,*>} Plain object
170396
+ */
170397
+ UserAppleWatchNotificationSettingUpdated.toObject = function toObject(message, options) {
170398
+ if (!options)
170399
+ options = {};
170400
+ var object = {};
170401
+ if (options.defaults) {
170402
+ object.hsUserId = "";
170403
+ object.settingType = "";
170404
+ object.isEnabled = false;
170405
+ }
170406
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
170407
+ object.hsUserId = message.hsUserId;
170408
+ if (message.settingType != null && message.hasOwnProperty("settingType"))
170409
+ object.settingType = message.settingType;
170410
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
170411
+ object.isEnabled = message.isEnabled;
170412
+ return object;
170413
+ };
170414
+
170415
+ /**
170416
+ * Converts this UserAppleWatchNotificationSettingUpdated to JSON.
170417
+ * @function toJSON
170418
+ * @memberof UserAppleWatchNotificationSettingUpdated
170419
+ * @instance
170420
+ * @returns {Object.<string,*>} JSON object
170421
+ */
170422
+ UserAppleWatchNotificationSettingUpdated.prototype.toJSON = function toJSON() {
170423
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
170424
+ };
170425
+
170426
+ return UserAppleWatchNotificationSettingUpdated;
170427
+ })();
170428
+
170193
170429
  $root.UserDeletionRequested = (function() {
170194
170430
 
170195
170431
  /**
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.786.0"
19
+ "version": "1.787.0"
20
20
  }