@headspace/protos-events 1.302.0 → 1.304.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
@@ -27780,6 +27780,18 @@ export interface IEligibilityFileProcessed {
27780
27780
 
27781
27781
  /** EligibilityFileProcessed numMembersRemoved */
27782
27782
  numMembersRemoved?: (number|null);
27783
+
27784
+ /** EligibilityFileProcessed orgId */
27785
+ orgId?: (number|null);
27786
+
27787
+ /** EligibilityFileProcessed numEligibleHeadspace */
27788
+ numEligibleHeadspace?: (number|null);
27789
+
27790
+ /** EligibilityFileProcessed numEligibleGinger */
27791
+ numEligibleGinger?: (number|null);
27792
+
27793
+ /** EligibilityFileProcessed numEligibleBoth */
27794
+ numEligibleBoth?: (number|null);
27783
27795
  }
27784
27796
 
27785
27797
  /** Represents an EligibilityFileProcessed. */
@@ -27815,6 +27827,18 @@ export class EligibilityFileProcessed implements IEligibilityFileProcessed {
27815
27827
  /** EligibilityFileProcessed numMembersRemoved. */
27816
27828
  public numMembersRemoved: number;
27817
27829
 
27830
+ /** EligibilityFileProcessed orgId. */
27831
+ public orgId: number;
27832
+
27833
+ /** EligibilityFileProcessed numEligibleHeadspace. */
27834
+ public numEligibleHeadspace: number;
27835
+
27836
+ /** EligibilityFileProcessed numEligibleGinger. */
27837
+ public numEligibleGinger: number;
27838
+
27839
+ /** EligibilityFileProcessed numEligibleBoth. */
27840
+ public numEligibleBoth: number;
27841
+
27818
27842
  /**
27819
27843
  * Creates a new EligibilityFileProcessed instance using the specified properties.
27820
27844
  * @param [properties] Properties to set
@@ -40606,6 +40630,198 @@ export class UserConsentUpdated implements IUserConsentUpdated {
40606
40630
  public toJSON(): { [k: string]: any };
40607
40631
  }
40608
40632
 
40633
+ /** Properties of a UserBedtimeNotificationsSettingUpdated. */
40634
+ export interface IUserBedtimeNotificationsSettingUpdated {
40635
+
40636
+ /** UserBedtimeNotificationsSettingUpdated userId */
40637
+ userId?: (string|null);
40638
+
40639
+ /** UserBedtimeNotificationsSettingUpdated isEnabled */
40640
+ isEnabled?: (boolean|null);
40641
+ }
40642
+
40643
+ /** Represents a UserBedtimeNotificationsSettingUpdated. */
40644
+ export class UserBedtimeNotificationsSettingUpdated implements IUserBedtimeNotificationsSettingUpdated {
40645
+
40646
+ /**
40647
+ * Constructs a new UserBedtimeNotificationsSettingUpdated.
40648
+ * @param [properties] Properties to set
40649
+ */
40650
+ constructor(properties?: IUserBedtimeNotificationsSettingUpdated);
40651
+
40652
+ /** UserBedtimeNotificationsSettingUpdated userId. */
40653
+ public userId: string;
40654
+
40655
+ /** UserBedtimeNotificationsSettingUpdated isEnabled. */
40656
+ public isEnabled: boolean;
40657
+
40658
+ /**
40659
+ * Creates a new UserBedtimeNotificationsSettingUpdated instance using the specified properties.
40660
+ * @param [properties] Properties to set
40661
+ * @returns UserBedtimeNotificationsSettingUpdated instance
40662
+ */
40663
+ public static create(properties?: IUserBedtimeNotificationsSettingUpdated): UserBedtimeNotificationsSettingUpdated;
40664
+
40665
+ /**
40666
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
40667
+ * @param message UserBedtimeNotificationsSettingUpdated message or plain object to encode
40668
+ * @param [writer] Writer to encode to
40669
+ * @returns Writer
40670
+ */
40671
+ public static encode(message: IUserBedtimeNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40672
+
40673
+ /**
40674
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
40675
+ * @param message UserBedtimeNotificationsSettingUpdated message or plain object to encode
40676
+ * @param [writer] Writer to encode to
40677
+ * @returns Writer
40678
+ */
40679
+ public static encodeDelimited(message: IUserBedtimeNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40680
+
40681
+ /**
40682
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer.
40683
+ * @param reader Reader or buffer to decode from
40684
+ * @param [length] Message length if known beforehand
40685
+ * @returns UserBedtimeNotificationsSettingUpdated
40686
+ * @throws {Error} If the payload is not a reader or valid buffer
40687
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40688
+ */
40689
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserBedtimeNotificationsSettingUpdated;
40690
+
40691
+ /**
40692
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
40693
+ * @param reader Reader or buffer to decode from
40694
+ * @returns UserBedtimeNotificationsSettingUpdated
40695
+ * @throws {Error} If the payload is not a reader or valid buffer
40696
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40697
+ */
40698
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserBedtimeNotificationsSettingUpdated;
40699
+
40700
+ /**
40701
+ * Verifies a UserBedtimeNotificationsSettingUpdated message.
40702
+ * @param message Plain object to verify
40703
+ * @returns `null` if valid, otherwise the reason why it is not
40704
+ */
40705
+ public static verify(message: { [k: string]: any }): (string|null);
40706
+
40707
+ /**
40708
+ * Creates a UserBedtimeNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
40709
+ * @param object Plain object
40710
+ * @returns UserBedtimeNotificationsSettingUpdated
40711
+ */
40712
+ public static fromObject(object: { [k: string]: any }): UserBedtimeNotificationsSettingUpdated;
40713
+
40714
+ /**
40715
+ * Creates a plain object from a UserBedtimeNotificationsSettingUpdated message. Also converts values to other types if specified.
40716
+ * @param message UserBedtimeNotificationsSettingUpdated
40717
+ * @param [options] Conversion options
40718
+ * @returns Plain object
40719
+ */
40720
+ public static toObject(message: UserBedtimeNotificationsSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40721
+
40722
+ /**
40723
+ * Converts this UserBedtimeNotificationsSettingUpdated to JSON.
40724
+ * @returns JSON object
40725
+ */
40726
+ public toJSON(): { [k: string]: any };
40727
+ }
40728
+
40729
+ /** Properties of a UserWindDownNotificationsSettingUpdated. */
40730
+ export interface IUserWindDownNotificationsSettingUpdated {
40731
+
40732
+ /** UserWindDownNotificationsSettingUpdated userId */
40733
+ userId?: (string|null);
40734
+
40735
+ /** UserWindDownNotificationsSettingUpdated isEnabled */
40736
+ isEnabled?: (boolean|null);
40737
+ }
40738
+
40739
+ /** Represents a UserWindDownNotificationsSettingUpdated. */
40740
+ export class UserWindDownNotificationsSettingUpdated implements IUserWindDownNotificationsSettingUpdated {
40741
+
40742
+ /**
40743
+ * Constructs a new UserWindDownNotificationsSettingUpdated.
40744
+ * @param [properties] Properties to set
40745
+ */
40746
+ constructor(properties?: IUserWindDownNotificationsSettingUpdated);
40747
+
40748
+ /** UserWindDownNotificationsSettingUpdated userId. */
40749
+ public userId: string;
40750
+
40751
+ /** UserWindDownNotificationsSettingUpdated isEnabled. */
40752
+ public isEnabled: boolean;
40753
+
40754
+ /**
40755
+ * Creates a new UserWindDownNotificationsSettingUpdated instance using the specified properties.
40756
+ * @param [properties] Properties to set
40757
+ * @returns UserWindDownNotificationsSettingUpdated instance
40758
+ */
40759
+ public static create(properties?: IUserWindDownNotificationsSettingUpdated): UserWindDownNotificationsSettingUpdated;
40760
+
40761
+ /**
40762
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
40763
+ * @param message UserWindDownNotificationsSettingUpdated message or plain object to encode
40764
+ * @param [writer] Writer to encode to
40765
+ * @returns Writer
40766
+ */
40767
+ public static encode(message: IUserWindDownNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40768
+
40769
+ /**
40770
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
40771
+ * @param message UserWindDownNotificationsSettingUpdated message or plain object to encode
40772
+ * @param [writer] Writer to encode to
40773
+ * @returns Writer
40774
+ */
40775
+ public static encodeDelimited(message: IUserWindDownNotificationsSettingUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
40776
+
40777
+ /**
40778
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer.
40779
+ * @param reader Reader or buffer to decode from
40780
+ * @param [length] Message length if known beforehand
40781
+ * @returns UserWindDownNotificationsSettingUpdated
40782
+ * @throws {Error} If the payload is not a reader or valid buffer
40783
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40784
+ */
40785
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserWindDownNotificationsSettingUpdated;
40786
+
40787
+ /**
40788
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
40789
+ * @param reader Reader or buffer to decode from
40790
+ * @returns UserWindDownNotificationsSettingUpdated
40791
+ * @throws {Error} If the payload is not a reader or valid buffer
40792
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40793
+ */
40794
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserWindDownNotificationsSettingUpdated;
40795
+
40796
+ /**
40797
+ * Verifies a UserWindDownNotificationsSettingUpdated message.
40798
+ * @param message Plain object to verify
40799
+ * @returns `null` if valid, otherwise the reason why it is not
40800
+ */
40801
+ public static verify(message: { [k: string]: any }): (string|null);
40802
+
40803
+ /**
40804
+ * Creates a UserWindDownNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
40805
+ * @param object Plain object
40806
+ * @returns UserWindDownNotificationsSettingUpdated
40807
+ */
40808
+ public static fromObject(object: { [k: string]: any }): UserWindDownNotificationsSettingUpdated;
40809
+
40810
+ /**
40811
+ * Creates a plain object from a UserWindDownNotificationsSettingUpdated message. Also converts values to other types if specified.
40812
+ * @param message UserWindDownNotificationsSettingUpdated
40813
+ * @param [options] Conversion options
40814
+ * @returns Plain object
40815
+ */
40816
+ public static toObject(message: UserWindDownNotificationsSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40817
+
40818
+ /**
40819
+ * Converts this UserWindDownNotificationsSettingUpdated to JSON.
40820
+ * @returns JSON object
40821
+ */
40822
+ public toJSON(): { [k: string]: any };
40823
+ }
40824
+
40609
40825
  /** Properties of a VirginPulseAccountLinked. */
40610
40826
  export interface IVirginPulseAccountLinked {
40611
40827
 
package/lib/index.js CHANGED
@@ -76796,6 +76796,10 @@ $root.EligibilityFileProcessed = (function() {
76796
76796
  * @property {number|null} [numDupedEmails] EligibilityFileProcessed numDupedEmails
76797
76797
  * @property {number|null} [numBadEmails] EligibilityFileProcessed numBadEmails
76798
76798
  * @property {number|null} [numMembersRemoved] EligibilityFileProcessed numMembersRemoved
76799
+ * @property {number|null} [orgId] EligibilityFileProcessed orgId
76800
+ * @property {number|null} [numEligibleHeadspace] EligibilityFileProcessed numEligibleHeadspace
76801
+ * @property {number|null} [numEligibleGinger] EligibilityFileProcessed numEligibleGinger
76802
+ * @property {number|null} [numEligibleBoth] EligibilityFileProcessed numEligibleBoth
76799
76803
  */
76800
76804
 
76801
76805
  /**
@@ -76877,6 +76881,38 @@ $root.EligibilityFileProcessed = (function() {
76877
76881
  */
76878
76882
  EligibilityFileProcessed.prototype.numMembersRemoved = 0;
76879
76883
 
76884
+ /**
76885
+ * EligibilityFileProcessed orgId.
76886
+ * @member {number} orgId
76887
+ * @memberof EligibilityFileProcessed
76888
+ * @instance
76889
+ */
76890
+ EligibilityFileProcessed.prototype.orgId = 0;
76891
+
76892
+ /**
76893
+ * EligibilityFileProcessed numEligibleHeadspace.
76894
+ * @member {number} numEligibleHeadspace
76895
+ * @memberof EligibilityFileProcessed
76896
+ * @instance
76897
+ */
76898
+ EligibilityFileProcessed.prototype.numEligibleHeadspace = 0;
76899
+
76900
+ /**
76901
+ * EligibilityFileProcessed numEligibleGinger.
76902
+ * @member {number} numEligibleGinger
76903
+ * @memberof EligibilityFileProcessed
76904
+ * @instance
76905
+ */
76906
+ EligibilityFileProcessed.prototype.numEligibleGinger = 0;
76907
+
76908
+ /**
76909
+ * EligibilityFileProcessed numEligibleBoth.
76910
+ * @member {number} numEligibleBoth
76911
+ * @memberof EligibilityFileProcessed
76912
+ * @instance
76913
+ */
76914
+ EligibilityFileProcessed.prototype.numEligibleBoth = 0;
76915
+
76880
76916
  /**
76881
76917
  * Creates a new EligibilityFileProcessed instance using the specified properties.
76882
76918
  * @function create
@@ -76917,6 +76953,14 @@ $root.EligibilityFileProcessed = (function() {
76917
76953
  writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.numBadEmails);
76918
76954
  if (message.numMembersRemoved != null && message.hasOwnProperty("numMembersRemoved"))
76919
76955
  writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.numMembersRemoved);
76956
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
76957
+ writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.orgId);
76958
+ if (message.numEligibleHeadspace != null && message.hasOwnProperty("numEligibleHeadspace"))
76959
+ writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.numEligibleHeadspace);
76960
+ if (message.numEligibleGinger != null && message.hasOwnProperty("numEligibleGinger"))
76961
+ writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.numEligibleGinger);
76962
+ if (message.numEligibleBoth != null && message.hasOwnProperty("numEligibleBoth"))
76963
+ writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.numEligibleBoth);
76920
76964
  return writer;
76921
76965
  };
76922
76966
 
@@ -76975,6 +77019,18 @@ $root.EligibilityFileProcessed = (function() {
76975
77019
  case 8:
76976
77020
  message.numMembersRemoved = reader.uint32();
76977
77021
  break;
77022
+ case 9:
77023
+ message.orgId = reader.uint32();
77024
+ break;
77025
+ case 10:
77026
+ message.numEligibleHeadspace = reader.uint32();
77027
+ break;
77028
+ case 11:
77029
+ message.numEligibleGinger = reader.uint32();
77030
+ break;
77031
+ case 12:
77032
+ message.numEligibleBoth = reader.uint32();
77033
+ break;
76978
77034
  default:
76979
77035
  reader.skipType(tag & 7);
76980
77036
  break;
@@ -77036,6 +77092,18 @@ $root.EligibilityFileProcessed = (function() {
77036
77092
  if (message.numMembersRemoved != null && message.hasOwnProperty("numMembersRemoved"))
77037
77093
  if (!$util.isInteger(message.numMembersRemoved))
77038
77094
  return "numMembersRemoved: integer expected";
77095
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
77096
+ if (!$util.isInteger(message.orgId))
77097
+ return "orgId: integer expected";
77098
+ if (message.numEligibleHeadspace != null && message.hasOwnProperty("numEligibleHeadspace"))
77099
+ if (!$util.isInteger(message.numEligibleHeadspace))
77100
+ return "numEligibleHeadspace: integer expected";
77101
+ if (message.numEligibleGinger != null && message.hasOwnProperty("numEligibleGinger"))
77102
+ if (!$util.isInteger(message.numEligibleGinger))
77103
+ return "numEligibleGinger: integer expected";
77104
+ if (message.numEligibleBoth != null && message.hasOwnProperty("numEligibleBoth"))
77105
+ if (!$util.isInteger(message.numEligibleBoth))
77106
+ return "numEligibleBoth: integer expected";
77039
77107
  return null;
77040
77108
  };
77041
77109
 
@@ -77077,6 +77145,14 @@ $root.EligibilityFileProcessed = (function() {
77077
77145
  message.numBadEmails = object.numBadEmails >>> 0;
77078
77146
  if (object.numMembersRemoved != null)
77079
77147
  message.numMembersRemoved = object.numMembersRemoved >>> 0;
77148
+ if (object.orgId != null)
77149
+ message.orgId = object.orgId >>> 0;
77150
+ if (object.numEligibleHeadspace != null)
77151
+ message.numEligibleHeadspace = object.numEligibleHeadspace >>> 0;
77152
+ if (object.numEligibleGinger != null)
77153
+ message.numEligibleGinger = object.numEligibleGinger >>> 0;
77154
+ if (object.numEligibleBoth != null)
77155
+ message.numEligibleBoth = object.numEligibleBoth >>> 0;
77080
77156
  return message;
77081
77157
  };
77082
77158
 
@@ -77106,6 +77182,10 @@ $root.EligibilityFileProcessed = (function() {
77106
77182
  object.numDupedEmails = 0;
77107
77183
  object.numBadEmails = 0;
77108
77184
  object.numMembersRemoved = 0;
77185
+ object.orgId = 0;
77186
+ object.numEligibleHeadspace = 0;
77187
+ object.numEligibleGinger = 0;
77188
+ object.numEligibleBoth = 0;
77109
77189
  }
77110
77190
  if (message.email != null && message.hasOwnProperty("email"))
77111
77191
  object.email = $root.Email.toObject(message.email, options);
@@ -77126,6 +77206,14 @@ $root.EligibilityFileProcessed = (function() {
77126
77206
  object.numBadEmails = message.numBadEmails;
77127
77207
  if (message.numMembersRemoved != null && message.hasOwnProperty("numMembersRemoved"))
77128
77208
  object.numMembersRemoved = message.numMembersRemoved;
77209
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
77210
+ object.orgId = message.orgId;
77211
+ if (message.numEligibleHeadspace != null && message.hasOwnProperty("numEligibleHeadspace"))
77212
+ object.numEligibleHeadspace = message.numEligibleHeadspace;
77213
+ if (message.numEligibleGinger != null && message.hasOwnProperty("numEligibleGinger"))
77214
+ object.numEligibleGinger = message.numEligibleGinger;
77215
+ if (message.numEligibleBoth != null && message.hasOwnProperty("numEligibleBoth"))
77216
+ object.numEligibleBoth = message.numEligibleBoth;
77129
77217
  return object;
77130
77218
  };
77131
77219
 
@@ -114505,6 +114593,426 @@ $root.UserConsentUpdated = (function() {
114505
114593
  return UserConsentUpdated;
114506
114594
  })();
114507
114595
 
114596
+ $root.UserBedtimeNotificationsSettingUpdated = (function() {
114597
+
114598
+ /**
114599
+ * Properties of a UserBedtimeNotificationsSettingUpdated.
114600
+ * @exports IUserBedtimeNotificationsSettingUpdated
114601
+ * @interface IUserBedtimeNotificationsSettingUpdated
114602
+ * @property {string|null} [userId] UserBedtimeNotificationsSettingUpdated userId
114603
+ * @property {boolean|null} [isEnabled] UserBedtimeNotificationsSettingUpdated isEnabled
114604
+ */
114605
+
114606
+ /**
114607
+ * Constructs a new UserBedtimeNotificationsSettingUpdated.
114608
+ * @exports UserBedtimeNotificationsSettingUpdated
114609
+ * @classdesc Represents a UserBedtimeNotificationsSettingUpdated.
114610
+ * @implements IUserBedtimeNotificationsSettingUpdated
114611
+ * @constructor
114612
+ * @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
114613
+ */
114614
+ function UserBedtimeNotificationsSettingUpdated(properties) {
114615
+ if (properties)
114616
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
114617
+ if (properties[keys[i]] != null)
114618
+ this[keys[i]] = properties[keys[i]];
114619
+ }
114620
+
114621
+ /**
114622
+ * UserBedtimeNotificationsSettingUpdated userId.
114623
+ * @member {string} userId
114624
+ * @memberof UserBedtimeNotificationsSettingUpdated
114625
+ * @instance
114626
+ */
114627
+ UserBedtimeNotificationsSettingUpdated.prototype.userId = "";
114628
+
114629
+ /**
114630
+ * UserBedtimeNotificationsSettingUpdated isEnabled.
114631
+ * @member {boolean} isEnabled
114632
+ * @memberof UserBedtimeNotificationsSettingUpdated
114633
+ * @instance
114634
+ */
114635
+ UserBedtimeNotificationsSettingUpdated.prototype.isEnabled = false;
114636
+
114637
+ /**
114638
+ * Creates a new UserBedtimeNotificationsSettingUpdated instance using the specified properties.
114639
+ * @function create
114640
+ * @memberof UserBedtimeNotificationsSettingUpdated
114641
+ * @static
114642
+ * @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
114643
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated instance
114644
+ */
114645
+ UserBedtimeNotificationsSettingUpdated.create = function create(properties) {
114646
+ return new UserBedtimeNotificationsSettingUpdated(properties);
114647
+ };
114648
+
114649
+ /**
114650
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
114651
+ * @function encode
114652
+ * @memberof UserBedtimeNotificationsSettingUpdated
114653
+ * @static
114654
+ * @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
114655
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114656
+ * @returns {$protobuf.Writer} Writer
114657
+ */
114658
+ UserBedtimeNotificationsSettingUpdated.encode = function encode(message, writer) {
114659
+ if (!writer)
114660
+ writer = $Writer.create();
114661
+ if (message.userId != null && message.hasOwnProperty("userId"))
114662
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
114663
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114664
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
114665
+ return writer;
114666
+ };
114667
+
114668
+ /**
114669
+ * Encodes the specified UserBedtimeNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
114670
+ * @function encodeDelimited
114671
+ * @memberof UserBedtimeNotificationsSettingUpdated
114672
+ * @static
114673
+ * @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
114674
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114675
+ * @returns {$protobuf.Writer} Writer
114676
+ */
114677
+ UserBedtimeNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
114678
+ return this.encode(message, writer).ldelim();
114679
+ };
114680
+
114681
+ /**
114682
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer.
114683
+ * @function decode
114684
+ * @memberof UserBedtimeNotificationsSettingUpdated
114685
+ * @static
114686
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114687
+ * @param {number} [length] Message length if known beforehand
114688
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
114689
+ * @throws {Error} If the payload is not a reader or valid buffer
114690
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114691
+ */
114692
+ UserBedtimeNotificationsSettingUpdated.decode = function decode(reader, length) {
114693
+ if (!(reader instanceof $Reader))
114694
+ reader = $Reader.create(reader);
114695
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserBedtimeNotificationsSettingUpdated();
114696
+ while (reader.pos < end) {
114697
+ var tag = reader.uint32();
114698
+ switch (tag >>> 3) {
114699
+ case 1:
114700
+ message.userId = reader.string();
114701
+ break;
114702
+ case 2:
114703
+ message.isEnabled = reader.bool();
114704
+ break;
114705
+ default:
114706
+ reader.skipType(tag & 7);
114707
+ break;
114708
+ }
114709
+ }
114710
+ return message;
114711
+ };
114712
+
114713
+ /**
114714
+ * Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
114715
+ * @function decodeDelimited
114716
+ * @memberof UserBedtimeNotificationsSettingUpdated
114717
+ * @static
114718
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114719
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
114720
+ * @throws {Error} If the payload is not a reader or valid buffer
114721
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114722
+ */
114723
+ UserBedtimeNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
114724
+ if (!(reader instanceof $Reader))
114725
+ reader = new $Reader(reader);
114726
+ return this.decode(reader, reader.uint32());
114727
+ };
114728
+
114729
+ /**
114730
+ * Verifies a UserBedtimeNotificationsSettingUpdated message.
114731
+ * @function verify
114732
+ * @memberof UserBedtimeNotificationsSettingUpdated
114733
+ * @static
114734
+ * @param {Object.<string,*>} message Plain object to verify
114735
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
114736
+ */
114737
+ UserBedtimeNotificationsSettingUpdated.verify = function verify(message) {
114738
+ if (typeof message !== "object" || message === null)
114739
+ return "object expected";
114740
+ if (message.userId != null && message.hasOwnProperty("userId"))
114741
+ if (!$util.isString(message.userId))
114742
+ return "userId: string expected";
114743
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114744
+ if (typeof message.isEnabled !== "boolean")
114745
+ return "isEnabled: boolean expected";
114746
+ return null;
114747
+ };
114748
+
114749
+ /**
114750
+ * Creates a UserBedtimeNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
114751
+ * @function fromObject
114752
+ * @memberof UserBedtimeNotificationsSettingUpdated
114753
+ * @static
114754
+ * @param {Object.<string,*>} object Plain object
114755
+ * @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
114756
+ */
114757
+ UserBedtimeNotificationsSettingUpdated.fromObject = function fromObject(object) {
114758
+ if (object instanceof $root.UserBedtimeNotificationsSettingUpdated)
114759
+ return object;
114760
+ var message = new $root.UserBedtimeNotificationsSettingUpdated();
114761
+ if (object.userId != null)
114762
+ message.userId = String(object.userId);
114763
+ if (object.isEnabled != null)
114764
+ message.isEnabled = Boolean(object.isEnabled);
114765
+ return message;
114766
+ };
114767
+
114768
+ /**
114769
+ * Creates a plain object from a UserBedtimeNotificationsSettingUpdated message. Also converts values to other types if specified.
114770
+ * @function toObject
114771
+ * @memberof UserBedtimeNotificationsSettingUpdated
114772
+ * @static
114773
+ * @param {UserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated
114774
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
114775
+ * @returns {Object.<string,*>} Plain object
114776
+ */
114777
+ UserBedtimeNotificationsSettingUpdated.toObject = function toObject(message, options) {
114778
+ if (!options)
114779
+ options = {};
114780
+ var object = {};
114781
+ if (options.defaults) {
114782
+ object.userId = "";
114783
+ object.isEnabled = false;
114784
+ }
114785
+ if (message.userId != null && message.hasOwnProperty("userId"))
114786
+ object.userId = message.userId;
114787
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114788
+ object.isEnabled = message.isEnabled;
114789
+ return object;
114790
+ };
114791
+
114792
+ /**
114793
+ * Converts this UserBedtimeNotificationsSettingUpdated to JSON.
114794
+ * @function toJSON
114795
+ * @memberof UserBedtimeNotificationsSettingUpdated
114796
+ * @instance
114797
+ * @returns {Object.<string,*>} JSON object
114798
+ */
114799
+ UserBedtimeNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
114800
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
114801
+ };
114802
+
114803
+ return UserBedtimeNotificationsSettingUpdated;
114804
+ })();
114805
+
114806
+ $root.UserWindDownNotificationsSettingUpdated = (function() {
114807
+
114808
+ /**
114809
+ * Properties of a UserWindDownNotificationsSettingUpdated.
114810
+ * @exports IUserWindDownNotificationsSettingUpdated
114811
+ * @interface IUserWindDownNotificationsSettingUpdated
114812
+ * @property {string|null} [userId] UserWindDownNotificationsSettingUpdated userId
114813
+ * @property {boolean|null} [isEnabled] UserWindDownNotificationsSettingUpdated isEnabled
114814
+ */
114815
+
114816
+ /**
114817
+ * Constructs a new UserWindDownNotificationsSettingUpdated.
114818
+ * @exports UserWindDownNotificationsSettingUpdated
114819
+ * @classdesc Represents a UserWindDownNotificationsSettingUpdated.
114820
+ * @implements IUserWindDownNotificationsSettingUpdated
114821
+ * @constructor
114822
+ * @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
114823
+ */
114824
+ function UserWindDownNotificationsSettingUpdated(properties) {
114825
+ if (properties)
114826
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
114827
+ if (properties[keys[i]] != null)
114828
+ this[keys[i]] = properties[keys[i]];
114829
+ }
114830
+
114831
+ /**
114832
+ * UserWindDownNotificationsSettingUpdated userId.
114833
+ * @member {string} userId
114834
+ * @memberof UserWindDownNotificationsSettingUpdated
114835
+ * @instance
114836
+ */
114837
+ UserWindDownNotificationsSettingUpdated.prototype.userId = "";
114838
+
114839
+ /**
114840
+ * UserWindDownNotificationsSettingUpdated isEnabled.
114841
+ * @member {boolean} isEnabled
114842
+ * @memberof UserWindDownNotificationsSettingUpdated
114843
+ * @instance
114844
+ */
114845
+ UserWindDownNotificationsSettingUpdated.prototype.isEnabled = false;
114846
+
114847
+ /**
114848
+ * Creates a new UserWindDownNotificationsSettingUpdated instance using the specified properties.
114849
+ * @function create
114850
+ * @memberof UserWindDownNotificationsSettingUpdated
114851
+ * @static
114852
+ * @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
114853
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated instance
114854
+ */
114855
+ UserWindDownNotificationsSettingUpdated.create = function create(properties) {
114856
+ return new UserWindDownNotificationsSettingUpdated(properties);
114857
+ };
114858
+
114859
+ /**
114860
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
114861
+ * @function encode
114862
+ * @memberof UserWindDownNotificationsSettingUpdated
114863
+ * @static
114864
+ * @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
114865
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114866
+ * @returns {$protobuf.Writer} Writer
114867
+ */
114868
+ UserWindDownNotificationsSettingUpdated.encode = function encode(message, writer) {
114869
+ if (!writer)
114870
+ writer = $Writer.create();
114871
+ if (message.userId != null && message.hasOwnProperty("userId"))
114872
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
114873
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114874
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
114875
+ return writer;
114876
+ };
114877
+
114878
+ /**
114879
+ * Encodes the specified UserWindDownNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
114880
+ * @function encodeDelimited
114881
+ * @memberof UserWindDownNotificationsSettingUpdated
114882
+ * @static
114883
+ * @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
114884
+ * @param {$protobuf.Writer} [writer] Writer to encode to
114885
+ * @returns {$protobuf.Writer} Writer
114886
+ */
114887
+ UserWindDownNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
114888
+ return this.encode(message, writer).ldelim();
114889
+ };
114890
+
114891
+ /**
114892
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer.
114893
+ * @function decode
114894
+ * @memberof UserWindDownNotificationsSettingUpdated
114895
+ * @static
114896
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114897
+ * @param {number} [length] Message length if known beforehand
114898
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
114899
+ * @throws {Error} If the payload is not a reader or valid buffer
114900
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114901
+ */
114902
+ UserWindDownNotificationsSettingUpdated.decode = function decode(reader, length) {
114903
+ if (!(reader instanceof $Reader))
114904
+ reader = $Reader.create(reader);
114905
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserWindDownNotificationsSettingUpdated();
114906
+ while (reader.pos < end) {
114907
+ var tag = reader.uint32();
114908
+ switch (tag >>> 3) {
114909
+ case 1:
114910
+ message.userId = reader.string();
114911
+ break;
114912
+ case 2:
114913
+ message.isEnabled = reader.bool();
114914
+ break;
114915
+ default:
114916
+ reader.skipType(tag & 7);
114917
+ break;
114918
+ }
114919
+ }
114920
+ return message;
114921
+ };
114922
+
114923
+ /**
114924
+ * Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
114925
+ * @function decodeDelimited
114926
+ * @memberof UserWindDownNotificationsSettingUpdated
114927
+ * @static
114928
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
114929
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
114930
+ * @throws {Error} If the payload is not a reader or valid buffer
114931
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
114932
+ */
114933
+ UserWindDownNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
114934
+ if (!(reader instanceof $Reader))
114935
+ reader = new $Reader(reader);
114936
+ return this.decode(reader, reader.uint32());
114937
+ };
114938
+
114939
+ /**
114940
+ * Verifies a UserWindDownNotificationsSettingUpdated message.
114941
+ * @function verify
114942
+ * @memberof UserWindDownNotificationsSettingUpdated
114943
+ * @static
114944
+ * @param {Object.<string,*>} message Plain object to verify
114945
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
114946
+ */
114947
+ UserWindDownNotificationsSettingUpdated.verify = function verify(message) {
114948
+ if (typeof message !== "object" || message === null)
114949
+ return "object expected";
114950
+ if (message.userId != null && message.hasOwnProperty("userId"))
114951
+ if (!$util.isString(message.userId))
114952
+ return "userId: string expected";
114953
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114954
+ if (typeof message.isEnabled !== "boolean")
114955
+ return "isEnabled: boolean expected";
114956
+ return null;
114957
+ };
114958
+
114959
+ /**
114960
+ * Creates a UserWindDownNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
114961
+ * @function fromObject
114962
+ * @memberof UserWindDownNotificationsSettingUpdated
114963
+ * @static
114964
+ * @param {Object.<string,*>} object Plain object
114965
+ * @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
114966
+ */
114967
+ UserWindDownNotificationsSettingUpdated.fromObject = function fromObject(object) {
114968
+ if (object instanceof $root.UserWindDownNotificationsSettingUpdated)
114969
+ return object;
114970
+ var message = new $root.UserWindDownNotificationsSettingUpdated();
114971
+ if (object.userId != null)
114972
+ message.userId = String(object.userId);
114973
+ if (object.isEnabled != null)
114974
+ message.isEnabled = Boolean(object.isEnabled);
114975
+ return message;
114976
+ };
114977
+
114978
+ /**
114979
+ * Creates a plain object from a UserWindDownNotificationsSettingUpdated message. Also converts values to other types if specified.
114980
+ * @function toObject
114981
+ * @memberof UserWindDownNotificationsSettingUpdated
114982
+ * @static
114983
+ * @param {UserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated
114984
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
114985
+ * @returns {Object.<string,*>} Plain object
114986
+ */
114987
+ UserWindDownNotificationsSettingUpdated.toObject = function toObject(message, options) {
114988
+ if (!options)
114989
+ options = {};
114990
+ var object = {};
114991
+ if (options.defaults) {
114992
+ object.userId = "";
114993
+ object.isEnabled = false;
114994
+ }
114995
+ if (message.userId != null && message.hasOwnProperty("userId"))
114996
+ object.userId = message.userId;
114997
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
114998
+ object.isEnabled = message.isEnabled;
114999
+ return object;
115000
+ };
115001
+
115002
+ /**
115003
+ * Converts this UserWindDownNotificationsSettingUpdated to JSON.
115004
+ * @function toJSON
115005
+ * @memberof UserWindDownNotificationsSettingUpdated
115006
+ * @instance
115007
+ * @returns {Object.<string,*>} JSON object
115008
+ */
115009
+ UserWindDownNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
115010
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
115011
+ };
115012
+
115013
+ return UserWindDownNotificationsSettingUpdated;
115014
+ })();
115015
+
114508
115016
  $root.VirginPulseAccountLinked = (function() {
114509
115017
 
114510
115018
  /**
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.302.0"
19
+ "version": "1.304.0"
20
20
  }