@headspace/protos-events 1.667.0 → 1.669.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
@@ -55368,6 +55368,9 @@ export interface IEnterpriseUserEnrollmentUpgraded {
55368
55368
 
55369
55369
  /** EnterpriseUserEnrollmentUpgraded enrollmentOrgId */
55370
55370
  enrollmentOrgId?: (number|null);
55371
+
55372
+ /** EnterpriseUserEnrollmentUpgraded overlappedCareOrgId */
55373
+ overlappedCareOrgId?: (number|null);
55371
55374
  }
55372
55375
 
55373
55376
  /** Represents an EnterpriseUserEnrollmentUpgraded. */
@@ -55400,6 +55403,9 @@ export class EnterpriseUserEnrollmentUpgraded implements IEnterpriseUserEnrollme
55400
55403
  /** EnterpriseUserEnrollmentUpgraded enrollmentOrgId. */
55401
55404
  public enrollmentOrgId: number;
55402
55405
 
55406
+ /** EnterpriseUserEnrollmentUpgraded overlappedCareOrgId. */
55407
+ public overlappedCareOrgId: number;
55408
+
55403
55409
  /**
55404
55410
  * Creates a new EnterpriseUserEnrollmentUpgraded instance using the specified properties.
55405
55411
  * @param [properties] Properties to set
@@ -55491,6 +55497,9 @@ export interface IEligibleMemberUpgraded {
55491
55497
 
55492
55498
  /** EligibleMemberUpgraded timestamp */
55493
55499
  timestamp?: (number|Long|null);
55500
+
55501
+ /** EligibleMemberUpgraded overlappedCareOrgId */
55502
+ overlappedCareOrgId?: (number|null);
55494
55503
  }
55495
55504
 
55496
55505
  /** Represents an EligibleMemberUpgraded. */
@@ -55520,6 +55529,9 @@ export class EligibleMemberUpgraded implements IEligibleMemberUpgraded {
55520
55529
  /** EligibleMemberUpgraded timestamp. */
55521
55530
  public timestamp: (number|Long);
55522
55531
 
55532
+ /** EligibleMemberUpgraded overlappedCareOrgId. */
55533
+ public overlappedCareOrgId: number;
55534
+
55523
55535
  /**
55524
55536
  * Creates a new EligibleMemberUpgraded instance using the specified properties.
55525
55537
  * @param [properties] Properties to set
@@ -59006,6 +59018,114 @@ export class GoogleSubscriptionExpired implements IGoogleSubscriptionExpired {
59006
59018
  public toJSON(): { [k: string]: any };
59007
59019
  }
59008
59020
 
59021
+ /** NoteType enum. */
59022
+ export enum NoteType {
59023
+ NOTE_TYPE_UNKNOWN = 0,
59024
+ NOTE_TYPE_THERAPY_INTAKE = 1
59025
+ }
59026
+
59027
+ /** Properties of a HealthRecordAiNoteAccepted. */
59028
+ export interface IHealthRecordAiNoteAccepted {
59029
+
59030
+ /** HealthRecordAiNoteAccepted appointmentId */
59031
+ appointmentId?: (number|null);
59032
+
59033
+ /** HealthRecordAiNoteAccepted noteType */
59034
+ noteType?: (NoteType|null);
59035
+
59036
+ /** HealthRecordAiNoteAccepted timestamp */
59037
+ timestamp?: (number|Long|null);
59038
+ }
59039
+
59040
+ /** Represents a HealthRecordAiNoteAccepted. */
59041
+ export class HealthRecordAiNoteAccepted implements IHealthRecordAiNoteAccepted {
59042
+
59043
+ /**
59044
+ * Constructs a new HealthRecordAiNoteAccepted.
59045
+ * @param [properties] Properties to set
59046
+ */
59047
+ constructor(properties?: IHealthRecordAiNoteAccepted);
59048
+
59049
+ /** HealthRecordAiNoteAccepted appointmentId. */
59050
+ public appointmentId: number;
59051
+
59052
+ /** HealthRecordAiNoteAccepted noteType. */
59053
+ public noteType: NoteType;
59054
+
59055
+ /** HealthRecordAiNoteAccepted timestamp. */
59056
+ public timestamp: (number|Long);
59057
+
59058
+ /**
59059
+ * Creates a new HealthRecordAiNoteAccepted instance using the specified properties.
59060
+ * @param [properties] Properties to set
59061
+ * @returns HealthRecordAiNoteAccepted instance
59062
+ */
59063
+ public static create(properties?: IHealthRecordAiNoteAccepted): HealthRecordAiNoteAccepted;
59064
+
59065
+ /**
59066
+ * Encodes the specified HealthRecordAiNoteAccepted message. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
59067
+ * @param message HealthRecordAiNoteAccepted message or plain object to encode
59068
+ * @param [writer] Writer to encode to
59069
+ * @returns Writer
59070
+ */
59071
+ public static encode(message: IHealthRecordAiNoteAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
59072
+
59073
+ /**
59074
+ * Encodes the specified HealthRecordAiNoteAccepted message, length delimited. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
59075
+ * @param message HealthRecordAiNoteAccepted message or plain object to encode
59076
+ * @param [writer] Writer to encode to
59077
+ * @returns Writer
59078
+ */
59079
+ public static encodeDelimited(message: IHealthRecordAiNoteAccepted, writer?: $protobuf.Writer): $protobuf.Writer;
59080
+
59081
+ /**
59082
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer.
59083
+ * @param reader Reader or buffer to decode from
59084
+ * @param [length] Message length if known beforehand
59085
+ * @returns HealthRecordAiNoteAccepted
59086
+ * @throws {Error} If the payload is not a reader or valid buffer
59087
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59088
+ */
59089
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): HealthRecordAiNoteAccepted;
59090
+
59091
+ /**
59092
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer, length delimited.
59093
+ * @param reader Reader or buffer to decode from
59094
+ * @returns HealthRecordAiNoteAccepted
59095
+ * @throws {Error} If the payload is not a reader or valid buffer
59096
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59097
+ */
59098
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): HealthRecordAiNoteAccepted;
59099
+
59100
+ /**
59101
+ * Verifies a HealthRecordAiNoteAccepted message.
59102
+ * @param message Plain object to verify
59103
+ * @returns `null` if valid, otherwise the reason why it is not
59104
+ */
59105
+ public static verify(message: { [k: string]: any }): (string|null);
59106
+
59107
+ /**
59108
+ * Creates a HealthRecordAiNoteAccepted message from a plain object. Also converts values to their respective internal types.
59109
+ * @param object Plain object
59110
+ * @returns HealthRecordAiNoteAccepted
59111
+ */
59112
+ public static fromObject(object: { [k: string]: any }): HealthRecordAiNoteAccepted;
59113
+
59114
+ /**
59115
+ * Creates a plain object from a HealthRecordAiNoteAccepted message. Also converts values to other types if specified.
59116
+ * @param message HealthRecordAiNoteAccepted
59117
+ * @param [options] Conversion options
59118
+ * @returns Plain object
59119
+ */
59120
+ public static toObject(message: HealthRecordAiNoteAccepted, options?: $protobuf.IConversionOptions): { [k: string]: any };
59121
+
59122
+ /**
59123
+ * Converts this HealthRecordAiNoteAccepted to JSON.
59124
+ * @returns JSON object
59125
+ */
59126
+ public toJSON(): { [k: string]: any };
59127
+ }
59128
+
59009
59129
  /** Properties of an InteractiveJournalingParticipant. */
59010
59130
  export interface IInteractiveJournalingParticipant {
59011
59131
 
package/lib/index.js CHANGED
@@ -154517,6 +154517,7 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154517
154517
  * @property {b2b.EnrollmentFlow|null} [priorEnrollmentFlow] EnterpriseUserEnrollmentUpgraded priorEnrollmentFlow
154518
154518
  * @property {number|Long|null} [timestamp] EnterpriseUserEnrollmentUpgraded timestamp
154519
154519
  * @property {number|null} [enrollmentOrgId] EnterpriseUserEnrollmentUpgraded enrollmentOrgId
154520
+ * @property {number|null} [overlappedCareOrgId] EnterpriseUserEnrollmentUpgraded overlappedCareOrgId
154520
154521
  */
154521
154522
 
154522
154523
  /**
@@ -154590,6 +154591,14 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154590
154591
  */
154591
154592
  EnterpriseUserEnrollmentUpgraded.prototype.enrollmentOrgId = 0;
154592
154593
 
154594
+ /**
154595
+ * EnterpriseUserEnrollmentUpgraded overlappedCareOrgId.
154596
+ * @member {number} overlappedCareOrgId
154597
+ * @memberof EnterpriseUserEnrollmentUpgraded
154598
+ * @instance
154599
+ */
154600
+ EnterpriseUserEnrollmentUpgraded.prototype.overlappedCareOrgId = 0;
154601
+
154593
154602
  /**
154594
154603
  * Creates a new EnterpriseUserEnrollmentUpgraded instance using the specified properties.
154595
154604
  * @function create
@@ -154628,6 +154637,8 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154628
154637
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
154629
154638
  if (message.enrollmentOrgId != null && message.hasOwnProperty("enrollmentOrgId"))
154630
154639
  writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.enrollmentOrgId);
154640
+ if (message.overlappedCareOrgId != null && message.hasOwnProperty("overlappedCareOrgId"))
154641
+ writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.overlappedCareOrgId);
154631
154642
  return writer;
154632
154643
  };
154633
154644
 
@@ -154683,6 +154694,9 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154683
154694
  case 7:
154684
154695
  message.enrollmentOrgId = reader.uint32();
154685
154696
  break;
154697
+ case 8:
154698
+ message.overlappedCareOrgId = reader.uint32();
154699
+ break;
154686
154700
  default:
154687
154701
  reader.skipType(tag & 7);
154688
154702
  break;
@@ -154757,6 +154771,9 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154757
154771
  if (message.enrollmentOrgId != null && message.hasOwnProperty("enrollmentOrgId"))
154758
154772
  if (!$util.isInteger(message.enrollmentOrgId))
154759
154773
  return "enrollmentOrgId: integer expected";
154774
+ if (message.overlappedCareOrgId != null && message.hasOwnProperty("overlappedCareOrgId"))
154775
+ if (!$util.isInteger(message.overlappedCareOrgId))
154776
+ return "overlappedCareOrgId: integer expected";
154760
154777
  return null;
154761
154778
  };
154762
154779
 
@@ -154841,6 +154858,8 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154841
154858
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
154842
154859
  if (object.enrollmentOrgId != null)
154843
154860
  message.enrollmentOrgId = object.enrollmentOrgId >>> 0;
154861
+ if (object.overlappedCareOrgId != null)
154862
+ message.overlappedCareOrgId = object.overlappedCareOrgId >>> 0;
154844
154863
  return message;
154845
154864
  };
154846
154865
 
@@ -154869,6 +154888,7 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154869
154888
  } else
154870
154889
  object.timestamp = options.longs === String ? "0" : 0;
154871
154890
  object.enrollmentOrgId = 0;
154891
+ object.overlappedCareOrgId = 0;
154872
154892
  }
154873
154893
  if (message.userId != null && message.hasOwnProperty("userId"))
154874
154894
  object.userId = message.userId;
@@ -154887,6 +154907,8 @@ $root.EnterpriseUserEnrollmentUpgraded = (function() {
154887
154907
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
154888
154908
  if (message.enrollmentOrgId != null && message.hasOwnProperty("enrollmentOrgId"))
154889
154909
  object.enrollmentOrgId = message.enrollmentOrgId;
154910
+ if (message.overlappedCareOrgId != null && message.hasOwnProperty("overlappedCareOrgId"))
154911
+ object.overlappedCareOrgId = message.overlappedCareOrgId;
154890
154912
  return object;
154891
154913
  };
154892
154914
 
@@ -154916,6 +154938,7 @@ $root.EligibleMemberUpgraded = (function() {
154916
154938
  * @property {b2b.EnrollmentFlow|null} [b2bEnrollmentFlow] EligibleMemberUpgraded b2bEnrollmentFlow
154917
154939
  * @property {b2b.EnrollmentFlow|null} [priorB2bEnrollmentFlow] EligibleMemberUpgraded priorB2bEnrollmentFlow
154918
154940
  * @property {number|Long|null} [timestamp] EligibleMemberUpgraded timestamp
154941
+ * @property {number|null} [overlappedCareOrgId] EligibleMemberUpgraded overlappedCareOrgId
154919
154942
  */
154920
154943
 
154921
154944
  /**
@@ -154981,6 +155004,14 @@ $root.EligibleMemberUpgraded = (function() {
154981
155004
  */
154982
155005
  EligibleMemberUpgraded.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
154983
155006
 
155007
+ /**
155008
+ * EligibleMemberUpgraded overlappedCareOrgId.
155009
+ * @member {number} overlappedCareOrgId
155010
+ * @memberof EligibleMemberUpgraded
155011
+ * @instance
155012
+ */
155013
+ EligibleMemberUpgraded.prototype.overlappedCareOrgId = 0;
155014
+
154984
155015
  /**
154985
155016
  * Creates a new EligibleMemberUpgraded instance using the specified properties.
154986
155017
  * @function create
@@ -155017,6 +155048,8 @@ $root.EligibleMemberUpgraded = (function() {
155017
155048
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.priorB2bEnrollmentFlow);
155018
155049
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
155019
155050
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
155051
+ if (message.overlappedCareOrgId != null && message.hasOwnProperty("overlappedCareOrgId"))
155052
+ writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.overlappedCareOrgId);
155020
155053
  return writer;
155021
155054
  };
155022
155055
 
@@ -155069,6 +155102,9 @@ $root.EligibleMemberUpgraded = (function() {
155069
155102
  case 6:
155070
155103
  message.timestamp = reader.uint64();
155071
155104
  break;
155105
+ case 7:
155106
+ message.overlappedCareOrgId = reader.uint32();
155107
+ break;
155072
155108
  default:
155073
155109
  reader.skipType(tag & 7);
155074
155110
  break;
@@ -155140,6 +155176,9 @@ $root.EligibleMemberUpgraded = (function() {
155140
155176
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
155141
155177
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
155142
155178
  return "timestamp: integer|Long expected";
155179
+ if (message.overlappedCareOrgId != null && message.hasOwnProperty("overlappedCareOrgId"))
155180
+ if (!$util.isInteger(message.overlappedCareOrgId))
155181
+ return "overlappedCareOrgId: integer expected";
155143
155182
  return null;
155144
155183
  };
155145
155184
 
@@ -155222,6 +155261,8 @@ $root.EligibleMemberUpgraded = (function() {
155222
155261
  message.timestamp = object.timestamp;
155223
155262
  else if (typeof object.timestamp === "object")
155224
155263
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
155264
+ if (object.overlappedCareOrgId != null)
155265
+ message.overlappedCareOrgId = object.overlappedCareOrgId >>> 0;
155225
155266
  return message;
155226
155267
  };
155227
155268
 
@@ -155249,6 +155290,7 @@ $root.EligibleMemberUpgraded = (function() {
155249
155290
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
155250
155291
  } else
155251
155292
  object.timestamp = options.longs === String ? "0" : 0;
155293
+ object.overlappedCareOrgId = 0;
155252
155294
  }
155253
155295
  if (message.b2bOrgId != null && message.hasOwnProperty("b2bOrgId"))
155254
155296
  object.b2bOrgId = message.b2bOrgId;
@@ -155265,6 +155307,8 @@ $root.EligibleMemberUpgraded = (function() {
155265
155307
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
155266
155308
  else
155267
155309
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
155310
+ if (message.overlappedCareOrgId != null && message.hasOwnProperty("overlappedCareOrgId"))
155311
+ object.overlappedCareOrgId = message.overlappedCareOrgId;
155268
155312
  return object;
155269
155313
  };
155270
155314
 
@@ -165621,6 +165665,279 @@ $root.GoogleSubscriptionExpired = (function() {
165621
165665
  return GoogleSubscriptionExpired;
165622
165666
  })();
165623
165667
 
165668
+ /**
165669
+ * NoteType enum.
165670
+ * @name NoteType
165671
+ * @enum {string}
165672
+ * @property {number} NOTE_TYPE_UNKNOWN=0 NOTE_TYPE_UNKNOWN value
165673
+ * @property {number} NOTE_TYPE_THERAPY_INTAKE=1 NOTE_TYPE_THERAPY_INTAKE value
165674
+ */
165675
+ $root.NoteType = (function() {
165676
+ var valuesById = {}, values = Object.create(valuesById);
165677
+ values[valuesById[0] = "NOTE_TYPE_UNKNOWN"] = 0;
165678
+ values[valuesById[1] = "NOTE_TYPE_THERAPY_INTAKE"] = 1;
165679
+ return values;
165680
+ })();
165681
+
165682
+ $root.HealthRecordAiNoteAccepted = (function() {
165683
+
165684
+ /**
165685
+ * Properties of a HealthRecordAiNoteAccepted.
165686
+ * @name IHealthRecordAiNoteAccepted
165687
+ * @interface IHealthRecordAiNoteAccepted
165688
+ * @property {number|null} [appointmentId] HealthRecordAiNoteAccepted appointmentId
165689
+ * @property {NoteType|null} [noteType] HealthRecordAiNoteAccepted noteType
165690
+ * @property {number|Long|null} [timestamp] HealthRecordAiNoteAccepted timestamp
165691
+ */
165692
+
165693
+ /**
165694
+ * Constructs a new HealthRecordAiNoteAccepted.
165695
+ * @name HealthRecordAiNoteAccepted
165696
+ * @classdesc Represents a HealthRecordAiNoteAccepted.
165697
+ * @implements IHealthRecordAiNoteAccepted
165698
+ * @constructor
165699
+ * @param {IHealthRecordAiNoteAccepted=} [properties] Properties to set
165700
+ */
165701
+ function HealthRecordAiNoteAccepted(properties) {
165702
+ if (properties)
165703
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
165704
+ if (properties[keys[i]] != null)
165705
+ this[keys[i]] = properties[keys[i]];
165706
+ }
165707
+
165708
+ /**
165709
+ * HealthRecordAiNoteAccepted appointmentId.
165710
+ * @member {number} appointmentId
165711
+ * @memberof HealthRecordAiNoteAccepted
165712
+ * @instance
165713
+ */
165714
+ HealthRecordAiNoteAccepted.prototype.appointmentId = 0;
165715
+
165716
+ /**
165717
+ * HealthRecordAiNoteAccepted noteType.
165718
+ * @member {NoteType} noteType
165719
+ * @memberof HealthRecordAiNoteAccepted
165720
+ * @instance
165721
+ */
165722
+ HealthRecordAiNoteAccepted.prototype.noteType = 0;
165723
+
165724
+ /**
165725
+ * HealthRecordAiNoteAccepted timestamp.
165726
+ * @member {number|Long} timestamp
165727
+ * @memberof HealthRecordAiNoteAccepted
165728
+ * @instance
165729
+ */
165730
+ HealthRecordAiNoteAccepted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
165731
+
165732
+ /**
165733
+ * Creates a new HealthRecordAiNoteAccepted instance using the specified properties.
165734
+ * @function create
165735
+ * @memberof HealthRecordAiNoteAccepted
165736
+ * @static
165737
+ * @param {IHealthRecordAiNoteAccepted=} [properties] Properties to set
165738
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted instance
165739
+ */
165740
+ HealthRecordAiNoteAccepted.create = function create(properties) {
165741
+ return new HealthRecordAiNoteAccepted(properties);
165742
+ };
165743
+
165744
+ /**
165745
+ * Encodes the specified HealthRecordAiNoteAccepted message. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
165746
+ * @function encode
165747
+ * @memberof HealthRecordAiNoteAccepted
165748
+ * @static
165749
+ * @param {IHealthRecordAiNoteAccepted} message HealthRecordAiNoteAccepted message or plain object to encode
165750
+ * @param {$protobuf.Writer} [writer] Writer to encode to
165751
+ * @returns {$protobuf.Writer} Writer
165752
+ */
165753
+ HealthRecordAiNoteAccepted.encode = function encode(message, writer) {
165754
+ if (!writer)
165755
+ writer = $Writer.create();
165756
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
165757
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.appointmentId);
165758
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
165759
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.noteType);
165760
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
165761
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
165762
+ return writer;
165763
+ };
165764
+
165765
+ /**
165766
+ * Encodes the specified HealthRecordAiNoteAccepted message, length delimited. Does not implicitly {@link HealthRecordAiNoteAccepted.verify|verify} messages.
165767
+ * @function encodeDelimited
165768
+ * @memberof HealthRecordAiNoteAccepted
165769
+ * @static
165770
+ * @param {IHealthRecordAiNoteAccepted} message HealthRecordAiNoteAccepted message or plain object to encode
165771
+ * @param {$protobuf.Writer} [writer] Writer to encode to
165772
+ * @returns {$protobuf.Writer} Writer
165773
+ */
165774
+ HealthRecordAiNoteAccepted.encodeDelimited = function encodeDelimited(message, writer) {
165775
+ return this.encode(message, writer).ldelim();
165776
+ };
165777
+
165778
+ /**
165779
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer.
165780
+ * @function decode
165781
+ * @memberof HealthRecordAiNoteAccepted
165782
+ * @static
165783
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
165784
+ * @param {number} [length] Message length if known beforehand
165785
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted
165786
+ * @throws {Error} If the payload is not a reader or valid buffer
165787
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
165788
+ */
165789
+ HealthRecordAiNoteAccepted.decode = function decode(reader, length) {
165790
+ if (!(reader instanceof $Reader))
165791
+ reader = $Reader.create(reader);
165792
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.HealthRecordAiNoteAccepted();
165793
+ while (reader.pos < end) {
165794
+ var tag = reader.uint32();
165795
+ switch (tag >>> 3) {
165796
+ case 1:
165797
+ message.appointmentId = reader.uint32();
165798
+ break;
165799
+ case 2:
165800
+ message.noteType = reader.int32();
165801
+ break;
165802
+ case 3:
165803
+ message.timestamp = reader.uint64();
165804
+ break;
165805
+ default:
165806
+ reader.skipType(tag & 7);
165807
+ break;
165808
+ }
165809
+ }
165810
+ return message;
165811
+ };
165812
+
165813
+ /**
165814
+ * Decodes a HealthRecordAiNoteAccepted message from the specified reader or buffer, length delimited.
165815
+ * @function decodeDelimited
165816
+ * @memberof HealthRecordAiNoteAccepted
165817
+ * @static
165818
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
165819
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted
165820
+ * @throws {Error} If the payload is not a reader or valid buffer
165821
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
165822
+ */
165823
+ HealthRecordAiNoteAccepted.decodeDelimited = function decodeDelimited(reader) {
165824
+ if (!(reader instanceof $Reader))
165825
+ reader = new $Reader(reader);
165826
+ return this.decode(reader, reader.uint32());
165827
+ };
165828
+
165829
+ /**
165830
+ * Verifies a HealthRecordAiNoteAccepted message.
165831
+ * @function verify
165832
+ * @memberof HealthRecordAiNoteAccepted
165833
+ * @static
165834
+ * @param {Object.<string,*>} message Plain object to verify
165835
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
165836
+ */
165837
+ HealthRecordAiNoteAccepted.verify = function verify(message) {
165838
+ if (typeof message !== "object" || message === null)
165839
+ return "object expected";
165840
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
165841
+ if (!$util.isInteger(message.appointmentId))
165842
+ return "appointmentId: integer expected";
165843
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
165844
+ switch (message.noteType) {
165845
+ default:
165846
+ return "noteType: enum value expected";
165847
+ case 0:
165848
+ case 1:
165849
+ break;
165850
+ }
165851
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
165852
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
165853
+ return "timestamp: integer|Long expected";
165854
+ return null;
165855
+ };
165856
+
165857
+ /**
165858
+ * Creates a HealthRecordAiNoteAccepted message from a plain object. Also converts values to their respective internal types.
165859
+ * @function fromObject
165860
+ * @memberof HealthRecordAiNoteAccepted
165861
+ * @static
165862
+ * @param {Object.<string,*>} object Plain object
165863
+ * @returns {HealthRecordAiNoteAccepted} HealthRecordAiNoteAccepted
165864
+ */
165865
+ HealthRecordAiNoteAccepted.fromObject = function fromObject(object) {
165866
+ if (object instanceof $root.HealthRecordAiNoteAccepted)
165867
+ return object;
165868
+ var message = new $root.HealthRecordAiNoteAccepted();
165869
+ if (object.appointmentId != null)
165870
+ message.appointmentId = object.appointmentId >>> 0;
165871
+ switch (object.noteType) {
165872
+ case "NOTE_TYPE_UNKNOWN":
165873
+ case 0:
165874
+ message.noteType = 0;
165875
+ break;
165876
+ case "NOTE_TYPE_THERAPY_INTAKE":
165877
+ case 1:
165878
+ message.noteType = 1;
165879
+ break;
165880
+ }
165881
+ if (object.timestamp != null)
165882
+ if ($util.Long)
165883
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
165884
+ else if (typeof object.timestamp === "string")
165885
+ message.timestamp = parseInt(object.timestamp, 10);
165886
+ else if (typeof object.timestamp === "number")
165887
+ message.timestamp = object.timestamp;
165888
+ else if (typeof object.timestamp === "object")
165889
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
165890
+ return message;
165891
+ };
165892
+
165893
+ /**
165894
+ * Creates a plain object from a HealthRecordAiNoteAccepted message. Also converts values to other types if specified.
165895
+ * @function toObject
165896
+ * @memberof HealthRecordAiNoteAccepted
165897
+ * @static
165898
+ * @param {HealthRecordAiNoteAccepted} message HealthRecordAiNoteAccepted
165899
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
165900
+ * @returns {Object.<string,*>} Plain object
165901
+ */
165902
+ HealthRecordAiNoteAccepted.toObject = function toObject(message, options) {
165903
+ if (!options)
165904
+ options = {};
165905
+ var object = {};
165906
+ if (options.defaults) {
165907
+ object.appointmentId = 0;
165908
+ object.noteType = options.enums === String ? "NOTE_TYPE_UNKNOWN" : 0;
165909
+ if ($util.Long) {
165910
+ var long = new $util.Long(0, 0, true);
165911
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
165912
+ } else
165913
+ object.timestamp = options.longs === String ? "0" : 0;
165914
+ }
165915
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
165916
+ object.appointmentId = message.appointmentId;
165917
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
165918
+ object.noteType = options.enums === String ? $root.NoteType[message.noteType] : message.noteType;
165919
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
165920
+ if (typeof message.timestamp === "number")
165921
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
165922
+ else
165923
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
165924
+ return object;
165925
+ };
165926
+
165927
+ /**
165928
+ * Converts this HealthRecordAiNoteAccepted to JSON.
165929
+ * @function toJSON
165930
+ * @memberof HealthRecordAiNoteAccepted
165931
+ * @instance
165932
+ * @returns {Object.<string,*>} JSON object
165933
+ */
165934
+ HealthRecordAiNoteAccepted.prototype.toJSON = function toJSON() {
165935
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
165936
+ };
165937
+
165938
+ return HealthRecordAiNoteAccepted;
165939
+ })();
165940
+
165624
165941
  $root.InteractiveJournalingParticipant = (function() {
165625
165942
 
165626
165943
  /**
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.667.0"
19
+ "version": "1.669.0"
20
20
  }