@headspace/protos-events 1.810.0 → 1.812.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
@@ -70626,7 +70626,13 @@ export enum CmsAccessEligibilityResult {
70626
70626
  CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP = 7,
70627
70627
 
70628
70628
  /** CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED value */
70629
- CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED = 8
70629
+ CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED = 8,
70630
+
70631
+ /** CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CLINICAL_EXCLUSION value */
70632
+ CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CLINICAL_EXCLUSION = 9,
70633
+
70634
+ /** CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_MISMATCH value */
70635
+ CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_MISMATCH = 10
70630
70636
  }
70631
70637
 
70632
70638
  /** CmsAccessAlignmentResult enum. */
@@ -70654,7 +70660,16 @@ export enum CmsAccessAlignmentResult {
70654
70660
  CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES = 6,
70655
70661
 
70656
70662
  /** CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES value */
70657
- CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES = 7
70663
+ CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES = 7,
70664
+
70665
+ /** CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CLINICAL_EXCLUSION value */
70666
+ CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CLINICAL_EXCLUSION = 8,
70667
+
70668
+ /** CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_MISMATCH value */
70669
+ CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_MISMATCH = 9,
70670
+
70671
+ /** CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NO_SWITCH_ATTESTATION value */
70672
+ CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NO_SWITCH_ATTESTATION = 10
70658
70673
  }
70659
70674
 
70660
70675
  /** CmsAccessUnalignmentResult enum. */
@@ -104039,6 +104054,139 @@ export namespace UserDeletionRevoked {
104039
104054
  type $Shape = UserDeletionRevoked.$Properties;
104040
104055
  }
104041
104056
 
104057
+ /**
104058
+ * Properties of a UserAppleHealthConnectionSettingUpdated.
104059
+ * @deprecated Use UserAppleHealthConnectionSettingUpdated.$Properties instead.
104060
+ */
104061
+ export interface IUserAppleHealthConnectionSettingUpdated extends UserAppleHealthConnectionSettingUpdated.$Properties {
104062
+ }
104063
+
104064
+ /**
104065
+ * Sent when a user's Apple Health connection setting is updated.
104066
+ * Responsible team: Consumer Growth
104067
+ *
104068
+ */
104069
+ export class UserAppleHealthConnectionSettingUpdated {
104070
+
104071
+ /**
104072
+ * Constructs a new UserAppleHealthConnectionSettingUpdated.
104073
+ * @param [properties] Properties to set
104074
+ */
104075
+ constructor(properties?: UserAppleHealthConnectionSettingUpdated.$Properties);
104076
+
104077
+ /** Unknown fields preserved while decoding */
104078
+ $unknowns?: Uint8Array[];
104079
+
104080
+ /** UserAppleHealthConnectionSettingUpdated hsUserId. */
104081
+ hsUserId: string;
104082
+
104083
+ /** UserAppleHealthConnectionSettingUpdated settingValue. */
104084
+ settingValue: string;
104085
+
104086
+ /** UserAppleHealthConnectionSettingUpdated updatedAt. */
104087
+ updatedAt: (number|Long);
104088
+
104089
+ /**
104090
+ * Creates a new UserAppleHealthConnectionSettingUpdated instance using the specified properties.
104091
+ * @param [properties] Properties to set
104092
+ * @returns UserAppleHealthConnectionSettingUpdated instance
104093
+ */
104094
+ static create(properties: UserAppleHealthConnectionSettingUpdated.$Shape): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104095
+ static create(properties?: UserAppleHealthConnectionSettingUpdated.$Properties): UserAppleHealthConnectionSettingUpdated;
104096
+
104097
+ /**
104098
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
104099
+ * @param message UserAppleHealthConnectionSettingUpdated message or plain object to encode
104100
+ * @param [writer] Writer to encode to
104101
+ * @returns Writer
104102
+ */
104103
+ static encode(message: UserAppleHealthConnectionSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104104
+
104105
+ /**
104106
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
104107
+ * @param message UserAppleHealthConnectionSettingUpdated message or plain object to encode
104108
+ * @param [writer] Writer to encode to
104109
+ * @returns Writer
104110
+ */
104111
+ static encodeDelimited(message: UserAppleHealthConnectionSettingUpdated.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
104112
+
104113
+ /**
104114
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer.
104115
+ * @param reader Reader or buffer to decode from
104116
+ * @param [length] Message length if known beforehand
104117
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
104118
+ * @throws {Error} If the payload is not a reader or valid buffer
104119
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104120
+ */
104121
+ static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104122
+
104123
+ /**
104124
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer, length delimited.
104125
+ * @param reader Reader or buffer to decode from
104126
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
104127
+ * @throws {Error} If the payload is not a reader or valid buffer
104128
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
104129
+ */
104130
+ static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
104131
+
104132
+ /**
104133
+ * Verifies a UserAppleHealthConnectionSettingUpdated message.
104134
+ * @param message Plain object to verify
104135
+ * @returns `null` if valid, otherwise the reason why it is not
104136
+ */
104137
+ static verify(message: { [k: string]: any }): (string|null);
104138
+
104139
+ /**
104140
+ * Creates a UserAppleHealthConnectionSettingUpdated message from a plain object. Also converts values to their respective internal types.
104141
+ * @param object Plain object
104142
+ * @returns UserAppleHealthConnectionSettingUpdated
104143
+ */
104144
+ static fromObject(object: { [k: string]: any }): UserAppleHealthConnectionSettingUpdated;
104145
+
104146
+ /**
104147
+ * Creates a plain object from a UserAppleHealthConnectionSettingUpdated message. Also converts values to other types if specified.
104148
+ * @param message UserAppleHealthConnectionSettingUpdated
104149
+ * @param [options] Conversion options
104150
+ * @returns Plain object
104151
+ */
104152
+ static toObject(message: UserAppleHealthConnectionSettingUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
104153
+
104154
+ /**
104155
+ * Converts this UserAppleHealthConnectionSettingUpdated to JSON.
104156
+ * @returns JSON object
104157
+ */
104158
+ toJSON(): { [k: string]: any };
104159
+
104160
+ /**
104161
+ * Gets the type url for UserAppleHealthConnectionSettingUpdated
104162
+ * @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
104163
+ * @returns The type url
104164
+ */
104165
+ static getTypeUrl(prefix?: string): string;
104166
+ }
104167
+
104168
+ export namespace UserAppleHealthConnectionSettingUpdated {
104169
+
104170
+ /** Properties of a UserAppleHealthConnectionSettingUpdated. */
104171
+ interface $Properties {
104172
+
104173
+ /** UserAppleHealthConnectionSettingUpdated hsUserId */
104174
+ hsUserId?: (string|null);
104175
+
104176
+ /** UserAppleHealthConnectionSettingUpdated settingValue */
104177
+ settingValue?: (string|null);
104178
+
104179
+ /** UserAppleHealthConnectionSettingUpdated updatedAt */
104180
+ updatedAt?: (number|Long|null);
104181
+
104182
+ /** Unknown fields preserved while decoding */
104183
+ $unknowns?: Uint8Array[];
104184
+ }
104185
+
104186
+ /** Shape of a UserAppleHealthConnectionSettingUpdated. */
104187
+ type $Shape = UserAppleHealthConnectionSettingUpdated.$Properties;
104188
+ }
104189
+
104042
104190
  /**
104043
104191
  * User Deletion Request Origin
104044
104192
  *
package/lib/index.js CHANGED
@@ -205001,6 +205001,8 @@ $root.CmsAccessSubmissionType = (function() {
205001
205001
  * @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_DIAGNOSES=6 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_DIAGNOSES value
205002
205002
  * @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP=7 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP value
205003
205003
  * @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED=8 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED value
205004
+ * @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CLINICAL_EXCLUSION=9 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CLINICAL_EXCLUSION value
205005
+ * @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_MISMATCH=10 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_MISMATCH value
205004
205006
  */
205005
205007
  $root.CmsAccessEligibilityResult = (function() {
205006
205008
  var valuesById = {}, values = Object.create(valuesById);
@@ -205013,6 +205015,8 @@ $root.CmsAccessEligibilityResult = (function() {
205013
205015
  values[valuesById[6] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_DIAGNOSES"] = 6;
205014
205016
  values[valuesById[7] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP"] = 7;
205015
205017
  values[valuesById[8] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED"] = 8;
205018
+ values[valuesById[9] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CLINICAL_EXCLUSION"] = 9;
205019
+ values[valuesById[10] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_MISMATCH"] = 10;
205016
205020
  return values;
205017
205021
  })();
205018
205022
 
@@ -205028,6 +205032,9 @@ $root.CmsAccessEligibilityResult = (function() {
205028
205032
  * @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NOT_MEDICARE=5 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NOT_MEDICARE value
205029
205033
  * @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES=6 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES value
205030
205034
  * @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES=7 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES value
205035
+ * @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CLINICAL_EXCLUSION=8 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CLINICAL_EXCLUSION value
205036
+ * @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_MISMATCH=9 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_MISMATCH value
205037
+ * @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NO_SWITCH_ATTESTATION=10 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NO_SWITCH_ATTESTATION value
205031
205038
  */
205032
205039
  $root.CmsAccessAlignmentResult = (function() {
205033
205040
  var valuesById = {}, values = Object.create(valuesById);
@@ -205039,6 +205046,9 @@ $root.CmsAccessAlignmentResult = (function() {
205039
205046
  values[valuesById[5] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NOT_MEDICARE"] = 5;
205040
205047
  values[valuesById[6] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES"] = 6;
205041
205048
  values[valuesById[7] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES"] = 7;
205049
+ values[valuesById[8] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CLINICAL_EXCLUSION"] = 8;
205050
+ values[valuesById[9] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_MISMATCH"] = 9;
205051
+ values[valuesById[10] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NO_SWITCH_ATTESTATION"] = 10;
205042
205052
  return values;
205043
205053
  })();
205044
205054
 
@@ -205381,6 +205391,8 @@ $root.CmsAccessEligibilityDetermined = (function() {
205381
205391
  case 6:
205382
205392
  case 7:
205383
205393
  case 8:
205394
+ case 9:
205395
+ case 10:
205384
205396
  break;
205385
205397
  }
205386
205398
  if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
@@ -205465,6 +205477,14 @@ $root.CmsAccessEligibilityDetermined = (function() {
205465
205477
  case 8:
205466
205478
  message.result = 8;
205467
205479
  break;
205480
+ case "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CLINICAL_EXCLUSION":
205481
+ case 9:
205482
+ message.result = 9;
205483
+ break;
205484
+ case "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_MISMATCH":
205485
+ case 10:
205486
+ message.result = 10;
205487
+ break;
205468
205488
  }
205469
205489
  if (object.cmsSubmissionId != null)
205470
205490
  if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
@@ -205858,6 +205878,9 @@ $root.CmsAccessAlignmentCompleted = (function() {
205858
205878
  case 5:
205859
205879
  case 6:
205860
205880
  case 7:
205881
+ case 8:
205882
+ case 9:
205883
+ case 10:
205861
205884
  break;
205862
205885
  }
205863
205886
  if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
@@ -205944,6 +205967,18 @@ $root.CmsAccessAlignmentCompleted = (function() {
205944
205967
  case 7:
205945
205968
  message.result = 7;
205946
205969
  break;
205970
+ case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CLINICAL_EXCLUSION":
205971
+ case 8:
205972
+ message.result = 8;
205973
+ break;
205974
+ case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_MISMATCH":
205975
+ case 9:
205976
+ message.result = 9;
205977
+ break;
205978
+ case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NO_SWITCH_ATTESTATION":
205979
+ case 10:
205980
+ message.result = 10;
205981
+ break;
205947
205982
  }
205948
205983
  if (object.cmsSubmissionId != null)
205949
205984
  if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
@@ -304728,6 +304763,332 @@ $root.UserDeletionRevoked = (function() {
304728
304763
  return UserDeletionRevoked;
304729
304764
  })();
304730
304765
 
304766
+ $root.UserAppleHealthConnectionSettingUpdated = (function() {
304767
+
304768
+ /**
304769
+ * Properties of a UserAppleHealthConnectionSettingUpdated.
304770
+ * @typedef {Object} UserAppleHealthConnectionSettingUpdated.$Properties
304771
+ * @property {string|null} [hsUserId] UserAppleHealthConnectionSettingUpdated hsUserId
304772
+ * @property {string|null} [settingValue] UserAppleHealthConnectionSettingUpdated settingValue
304773
+ * @property {number|Long|null} [updatedAt] UserAppleHealthConnectionSettingUpdated updatedAt
304774
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
304775
+ */
304776
+
304777
+ /**
304778
+ * Properties of a UserAppleHealthConnectionSettingUpdated.
304779
+ * @name IUserAppleHealthConnectionSettingUpdated
304780
+ * @interface IUserAppleHealthConnectionSettingUpdated
304781
+ * @augments UserAppleHealthConnectionSettingUpdated.$Properties
304782
+ * @deprecated Use UserAppleHealthConnectionSettingUpdated.$Properties instead.
304783
+ */
304784
+
304785
+ /**
304786
+ * Shape of a UserAppleHealthConnectionSettingUpdated.
304787
+ * @typedef {UserAppleHealthConnectionSettingUpdated.$Properties} UserAppleHealthConnectionSettingUpdated.$Shape
304788
+ */
304789
+
304790
+ /**
304791
+ * Constructs a new UserAppleHealthConnectionSettingUpdated.
304792
+ * @name UserAppleHealthConnectionSettingUpdated
304793
+ * @classdesc Sent when a user's Apple Health connection setting is updated.
304794
+ * Responsible team: Consumer Growth
304795
+ *
304796
+ * @example User links their Apple Health, transitioning the setting from "pending" to "active".
304797
+ * @constructor
304798
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties=} [properties] Properties to set
304799
+ * @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
304800
+ */
304801
+ function UserAppleHealthConnectionSettingUpdated(properties) {
304802
+ if (properties)
304803
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
304804
+ if (properties[keys[i]] != null && keys[i] !== "__proto__")
304805
+ this[keys[i]] = properties[keys[i]];
304806
+ }
304807
+
304808
+ /**
304809
+ * UserAppleHealthConnectionSettingUpdated hsUserId.
304810
+ * @member {string} hsUserId
304811
+ * @memberof UserAppleHealthConnectionSettingUpdated
304812
+ * @instance
304813
+ */
304814
+ UserAppleHealthConnectionSettingUpdated.prototype.hsUserId = "";
304815
+
304816
+ /**
304817
+ * UserAppleHealthConnectionSettingUpdated settingValue.
304818
+ * @member {string} settingValue
304819
+ * @memberof UserAppleHealthConnectionSettingUpdated
304820
+ * @instance
304821
+ */
304822
+ UserAppleHealthConnectionSettingUpdated.prototype.settingValue = "";
304823
+
304824
+ /**
304825
+ * UserAppleHealthConnectionSettingUpdated updatedAt.
304826
+ * @member {number|Long} updatedAt
304827
+ * @memberof UserAppleHealthConnectionSettingUpdated
304828
+ * @instance
304829
+ */
304830
+ UserAppleHealthConnectionSettingUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
304831
+
304832
+ /**
304833
+ * Creates a new UserAppleHealthConnectionSettingUpdated instance using the specified properties.
304834
+ * @function create
304835
+ * @memberof UserAppleHealthConnectionSettingUpdated
304836
+ * @static
304837
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties=} [properties] Properties to set
304838
+ * @returns {UserAppleHealthConnectionSettingUpdated} UserAppleHealthConnectionSettingUpdated instance
304839
+ * @type {{
304840
+ * (properties: UserAppleHealthConnectionSettingUpdated.$Shape): UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape;
304841
+ * (properties?: UserAppleHealthConnectionSettingUpdated.$Properties): UserAppleHealthConnectionSettingUpdated;
304842
+ * }}
304843
+ */
304844
+ UserAppleHealthConnectionSettingUpdated.create = function create(properties) {
304845
+ return new UserAppleHealthConnectionSettingUpdated(properties);
304846
+ };
304847
+
304848
+ /**
304849
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
304850
+ * @function encode
304851
+ * @memberof UserAppleHealthConnectionSettingUpdated
304852
+ * @static
304853
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties} message UserAppleHealthConnectionSettingUpdated message or plain object to encode
304854
+ * @param {$protobuf.Writer} [writer] Writer to encode to
304855
+ * @returns {$protobuf.Writer} Writer
304856
+ */
304857
+ UserAppleHealthConnectionSettingUpdated.encode = function encode(message, writer) {
304858
+ if (!writer)
304859
+ writer = $Writer.create();
304860
+ if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
304861
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
304862
+ if (message.settingValue != null && Object.hasOwnProperty.call(message, "settingValue"))
304863
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingValue);
304864
+ if (message.updatedAt != null && Object.hasOwnProperty.call(message, "updatedAt"))
304865
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
304866
+ if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
304867
+ for (var i = 0; i < message.$unknowns.length; ++i)
304868
+ writer.raw(message.$unknowns[i]);
304869
+ return writer;
304870
+ };
304871
+
304872
+ /**
304873
+ * Encodes the specified UserAppleHealthConnectionSettingUpdated message, length delimited. Does not implicitly {@link UserAppleHealthConnectionSettingUpdated.verify|verify} messages.
304874
+ * @function encodeDelimited
304875
+ * @memberof UserAppleHealthConnectionSettingUpdated
304876
+ * @static
304877
+ * @param {UserAppleHealthConnectionSettingUpdated.$Properties} message UserAppleHealthConnectionSettingUpdated message or plain object to encode
304878
+ * @param {$protobuf.Writer} [writer] Writer to encode to
304879
+ * @returns {$protobuf.Writer} Writer
304880
+ */
304881
+ UserAppleHealthConnectionSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
304882
+ return this.encode(message, writer).ldelim();
304883
+ };
304884
+
304885
+ /**
304886
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer.
304887
+ * @function decode
304888
+ * @memberof UserAppleHealthConnectionSettingUpdated
304889
+ * @static
304890
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
304891
+ * @param {number} [length] Message length if known beforehand
304892
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
304893
+ * @throws {Error} If the payload is not a reader or valid buffer
304894
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
304895
+ */
304896
+ UserAppleHealthConnectionSettingUpdated.decode = function decode(reader, length, _end, _depth, _target) {
304897
+ if (!(reader instanceof $Reader))
304898
+ reader = $Reader.create(reader);
304899
+ if (_depth === undefined)
304900
+ _depth = 0;
304901
+ if (_depth > $Reader.recursionLimit)
304902
+ throw Error("max depth exceeded");
304903
+ var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UserAppleHealthConnectionSettingUpdated(), value;
304904
+ while (reader.pos < end) {
304905
+ var start = reader.pos;
304906
+ var tag = reader.tag();
304907
+ if (tag === _end) {
304908
+ _end = undefined;
304909
+ break;
304910
+ }
304911
+ var wireType = tag & 7;
304912
+ switch (tag >>>= 3) {
304913
+ case 1: {
304914
+ if (wireType !== 2)
304915
+ break;
304916
+ if ((value = reader.string()).length)
304917
+ message.hsUserId = value;
304918
+ else
304919
+ delete message.hsUserId;
304920
+ continue;
304921
+ }
304922
+ case 2: {
304923
+ if (wireType !== 2)
304924
+ break;
304925
+ if ((value = reader.string()).length)
304926
+ message.settingValue = value;
304927
+ else
304928
+ delete message.settingValue;
304929
+ continue;
304930
+ }
304931
+ case 3: {
304932
+ if (wireType !== 0)
304933
+ break;
304934
+ if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
304935
+ message.updatedAt = value;
304936
+ else
304937
+ delete message.updatedAt;
304938
+ continue;
304939
+ }
304940
+ }
304941
+ reader.skipType(wireType, _depth, tag);
304942
+ $util.makeProp(message, "$unknowns", false);
304943
+ (message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
304944
+ }
304945
+ if (_end !== undefined)
304946
+ throw Error("missing end group");
304947
+ return message;
304948
+ };
304949
+
304950
+ /**
304951
+ * Decodes a UserAppleHealthConnectionSettingUpdated message from the specified reader or buffer, length delimited.
304952
+ * @function decodeDelimited
304953
+ * @memberof UserAppleHealthConnectionSettingUpdated
304954
+ * @static
304955
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
304956
+ * @returns {UserAppleHealthConnectionSettingUpdated & UserAppleHealthConnectionSettingUpdated.$Shape} UserAppleHealthConnectionSettingUpdated
304957
+ * @throws {Error} If the payload is not a reader or valid buffer
304958
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
304959
+ */
304960
+ UserAppleHealthConnectionSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
304961
+ if (!(reader instanceof $Reader))
304962
+ reader = new $Reader(reader);
304963
+ return this.decode(reader, reader.uint32());
304964
+ };
304965
+
304966
+ /**
304967
+ * Verifies a UserAppleHealthConnectionSettingUpdated message.
304968
+ * @function verify
304969
+ * @memberof UserAppleHealthConnectionSettingUpdated
304970
+ * @static
304971
+ * @param {Object.<string,*>} message Plain object to verify
304972
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
304973
+ */
304974
+ UserAppleHealthConnectionSettingUpdated.verify = function verify(message, _depth) {
304975
+ if (typeof message !== "object" || message === null)
304976
+ return "object expected";
304977
+ if (_depth === undefined)
304978
+ _depth = 0;
304979
+ if (_depth > $util.recursionLimit)
304980
+ return "max depth exceeded";
304981
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
304982
+ if (!$util.isString(message.hsUserId))
304983
+ return "hsUserId: string expected";
304984
+ if (message.settingValue != null && message.hasOwnProperty("settingValue"))
304985
+ if (!$util.isString(message.settingValue))
304986
+ return "settingValue: string expected";
304987
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
304988
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
304989
+ return "updatedAt: integer|Long expected";
304990
+ return null;
304991
+ };
304992
+
304993
+ /**
304994
+ * Creates a UserAppleHealthConnectionSettingUpdated message from a plain object. Also converts values to their respective internal types.
304995
+ * @function fromObject
304996
+ * @memberof UserAppleHealthConnectionSettingUpdated
304997
+ * @static
304998
+ * @param {Object.<string,*>} object Plain object
304999
+ * @returns {UserAppleHealthConnectionSettingUpdated} UserAppleHealthConnectionSettingUpdated
305000
+ */
305001
+ UserAppleHealthConnectionSettingUpdated.fromObject = function fromObject(object, _depth) {
305002
+ if (object instanceof $root.UserAppleHealthConnectionSettingUpdated)
305003
+ return object;
305004
+ if (_depth === undefined)
305005
+ _depth = 0;
305006
+ if (_depth > $util.recursionLimit)
305007
+ throw Error("max depth exceeded");
305008
+ var message = new $root.UserAppleHealthConnectionSettingUpdated();
305009
+ if (object.hsUserId != null)
305010
+ if (typeof object.hsUserId !== "string" || object.hsUserId.length)
305011
+ message.hsUserId = String(object.hsUserId);
305012
+ if (object.settingValue != null)
305013
+ if (typeof object.settingValue !== "string" || object.settingValue.length)
305014
+ message.settingValue = String(object.settingValue);
305015
+ if (object.updatedAt != null)
305016
+ if (typeof object.updatedAt === "object" ? object.updatedAt.low || object.updatedAt.high : Number(object.updatedAt) !== 0)
305017
+ if ($util.Long)
305018
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
305019
+ else if (typeof object.updatedAt === "string")
305020
+ message.updatedAt = parseInt(object.updatedAt, 10);
305021
+ else if (typeof object.updatedAt === "number")
305022
+ message.updatedAt = object.updatedAt;
305023
+ else if (typeof object.updatedAt === "object")
305024
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
305025
+ return message;
305026
+ };
305027
+
305028
+ /**
305029
+ * Creates a plain object from a UserAppleHealthConnectionSettingUpdated message. Also converts values to other types if specified.
305030
+ * @function toObject
305031
+ * @memberof UserAppleHealthConnectionSettingUpdated
305032
+ * @static
305033
+ * @param {UserAppleHealthConnectionSettingUpdated} message UserAppleHealthConnectionSettingUpdated
305034
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
305035
+ * @returns {Object.<string,*>} Plain object
305036
+ */
305037
+ UserAppleHealthConnectionSettingUpdated.toObject = function toObject(message, options) {
305038
+ if (!options)
305039
+ options = {};
305040
+ var object = {};
305041
+ if (options.defaults) {
305042
+ object.hsUserId = "";
305043
+ object.settingValue = "";
305044
+ if ($util.Long) {
305045
+ var long = new $util.Long(0, 0, true);
305046
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
305047
+ } else
305048
+ object.updatedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
305049
+ }
305050
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
305051
+ object.hsUserId = message.hsUserId;
305052
+ if (message.settingValue != null && message.hasOwnProperty("settingValue"))
305053
+ object.settingValue = message.settingValue;
305054
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
305055
+ if (typeof BigInt !== "undefined" && options.longs === BigInt)
305056
+ object.updatedAt = typeof message.updatedAt === "number" ? BigInt(message.updatedAt) : $util.Long.fromBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0, true).toBigInt();
305057
+ else if (typeof message.updatedAt === "number")
305058
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
305059
+ else
305060
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
305061
+ return object;
305062
+ };
305063
+
305064
+ /**
305065
+ * Converts this UserAppleHealthConnectionSettingUpdated to JSON.
305066
+ * @function toJSON
305067
+ * @memberof UserAppleHealthConnectionSettingUpdated
305068
+ * @instance
305069
+ * @returns {Object.<string,*>} JSON object
305070
+ */
305071
+ UserAppleHealthConnectionSettingUpdated.prototype.toJSON = function toJSON() {
305072
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
305073
+ };
305074
+
305075
+ /**
305076
+ * Gets the type url for UserAppleHealthConnectionSettingUpdated
305077
+ * @function getTypeUrl
305078
+ * @memberof UserAppleHealthConnectionSettingUpdated
305079
+ * @static
305080
+ * @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
305081
+ * @returns {string} The type url
305082
+ */
305083
+ UserAppleHealthConnectionSettingUpdated.getTypeUrl = function getTypeUrl(prefix) {
305084
+ if (prefix === undefined)
305085
+ prefix = "type.googleapis.com";
305086
+ return prefix + "/UserAppleHealthConnectionSettingUpdated";
305087
+ };
305088
+
305089
+ return UserAppleHealthConnectionSettingUpdated;
305090
+ })();
305091
+
304731
305092
  /**
304732
305093
  * User Deletion Request Origin
304733
305094
  *
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.810.0"
19
+ "version": "1.812.0"
20
20
  }