@headspace/protos-events 1.669.0 → 1.671.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
@@ -56714,6 +56714,9 @@ export interface IGingerEligibilityRecordReactivated {
56714
56714
 
56715
56715
  /** GingerEligibilityRecordReactivated hsEligibilityRecordUuid */
56716
56716
  hsEligibilityRecordUuid?: (string|null);
56717
+
56718
+ /** GingerEligibilityRecordReactivated timestamp */
56719
+ timestamp?: (number|Long|null);
56717
56720
  }
56718
56721
 
56719
56722
  /** A terminated member has re-enrolled, their EligibilityRecord is set to active and coupon code reactivated */
@@ -56734,6 +56737,9 @@ export class GingerEligibilityRecordReactivated implements IGingerEligibilityRec
56734
56737
  /** GingerEligibilityRecordReactivated hsEligibilityRecordUuid. */
56735
56738
  public hsEligibilityRecordUuid: string;
56736
56739
 
56740
+ /** GingerEligibilityRecordReactivated timestamp. */
56741
+ public timestamp: (number|Long);
56742
+
56737
56743
  /**
56738
56744
  * Creates a new GingerEligibilityRecordReactivated instance using the specified properties.
56739
56745
  * @param [properties] Properties to set
@@ -59126,6 +59132,133 @@ export class HealthRecordAiNoteAccepted implements IHealthRecordAiNoteAccepted {
59126
59132
  public toJSON(): { [k: string]: any };
59127
59133
  }
59128
59134
 
59135
+ /** BinaryRating enum. */
59136
+ export enum BinaryRating {
59137
+ BINARY_RATING_UNKNOWN = 0,
59138
+ BINARY_RATING_POSITIVE = 1,
59139
+ BINARY_RATING_NEGATIVE = 2
59140
+ }
59141
+
59142
+ /** Properties of a HealthRecordAiNoteFeedbackSubmitted. */
59143
+ export interface IHealthRecordAiNoteFeedbackSubmitted {
59144
+
59145
+ /** HealthRecordAiNoteFeedbackSubmitted appointmentId */
59146
+ appointmentId?: (number|null);
59147
+
59148
+ /** HealthRecordAiNoteFeedbackSubmitted noteType */
59149
+ noteType?: (NoteType|null);
59150
+
59151
+ /** HealthRecordAiNoteFeedbackSubmitted fieldPath */
59152
+ fieldPath?: (string|null);
59153
+
59154
+ /** HealthRecordAiNoteFeedbackSubmitted comments */
59155
+ comments?: (string|null);
59156
+
59157
+ /** HealthRecordAiNoteFeedbackSubmitted binaryRating */
59158
+ binaryRating?: (BinaryRating|null);
59159
+
59160
+ /** HealthRecordAiNoteFeedbackSubmitted timestamp */
59161
+ timestamp?: (number|Long|null);
59162
+ }
59163
+
59164
+ /** Represents a HealthRecordAiNoteFeedbackSubmitted. */
59165
+ export class HealthRecordAiNoteFeedbackSubmitted implements IHealthRecordAiNoteFeedbackSubmitted {
59166
+
59167
+ /**
59168
+ * Constructs a new HealthRecordAiNoteFeedbackSubmitted.
59169
+ * @param [properties] Properties to set
59170
+ */
59171
+ constructor(properties?: IHealthRecordAiNoteFeedbackSubmitted);
59172
+
59173
+ /** HealthRecordAiNoteFeedbackSubmitted appointmentId. */
59174
+ public appointmentId: number;
59175
+
59176
+ /** HealthRecordAiNoteFeedbackSubmitted noteType. */
59177
+ public noteType: NoteType;
59178
+
59179
+ /** HealthRecordAiNoteFeedbackSubmitted fieldPath. */
59180
+ public fieldPath: string;
59181
+
59182
+ /** HealthRecordAiNoteFeedbackSubmitted comments. */
59183
+ public comments: string;
59184
+
59185
+ /** HealthRecordAiNoteFeedbackSubmitted binaryRating. */
59186
+ public binaryRating: BinaryRating;
59187
+
59188
+ /** HealthRecordAiNoteFeedbackSubmitted timestamp. */
59189
+ public timestamp: (number|Long);
59190
+
59191
+ /**
59192
+ * Creates a new HealthRecordAiNoteFeedbackSubmitted instance using the specified properties.
59193
+ * @param [properties] Properties to set
59194
+ * @returns HealthRecordAiNoteFeedbackSubmitted instance
59195
+ */
59196
+ public static create(properties?: IHealthRecordAiNoteFeedbackSubmitted): HealthRecordAiNoteFeedbackSubmitted;
59197
+
59198
+ /**
59199
+ * Encodes the specified HealthRecordAiNoteFeedbackSubmitted message. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
59200
+ * @param message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
59201
+ * @param [writer] Writer to encode to
59202
+ * @returns Writer
59203
+ */
59204
+ public static encode(message: IHealthRecordAiNoteFeedbackSubmitted, writer?: $protobuf.Writer): $protobuf.Writer;
59205
+
59206
+ /**
59207
+ * Encodes the specified HealthRecordAiNoteFeedbackSubmitted message, length delimited. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
59208
+ * @param message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
59209
+ * @param [writer] Writer to encode to
59210
+ * @returns Writer
59211
+ */
59212
+ public static encodeDelimited(message: IHealthRecordAiNoteFeedbackSubmitted, writer?: $protobuf.Writer): $protobuf.Writer;
59213
+
59214
+ /**
59215
+ * Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer.
59216
+ * @param reader Reader or buffer to decode from
59217
+ * @param [length] Message length if known beforehand
59218
+ * @returns HealthRecordAiNoteFeedbackSubmitted
59219
+ * @throws {Error} If the payload is not a reader or valid buffer
59220
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59221
+ */
59222
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): HealthRecordAiNoteFeedbackSubmitted;
59223
+
59224
+ /**
59225
+ * Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer, length delimited.
59226
+ * @param reader Reader or buffer to decode from
59227
+ * @returns HealthRecordAiNoteFeedbackSubmitted
59228
+ * @throws {Error} If the payload is not a reader or valid buffer
59229
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59230
+ */
59231
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): HealthRecordAiNoteFeedbackSubmitted;
59232
+
59233
+ /**
59234
+ * Verifies a HealthRecordAiNoteFeedbackSubmitted message.
59235
+ * @param message Plain object to verify
59236
+ * @returns `null` if valid, otherwise the reason why it is not
59237
+ */
59238
+ public static verify(message: { [k: string]: any }): (string|null);
59239
+
59240
+ /**
59241
+ * Creates a HealthRecordAiNoteFeedbackSubmitted message from a plain object. Also converts values to their respective internal types.
59242
+ * @param object Plain object
59243
+ * @returns HealthRecordAiNoteFeedbackSubmitted
59244
+ */
59245
+ public static fromObject(object: { [k: string]: any }): HealthRecordAiNoteFeedbackSubmitted;
59246
+
59247
+ /**
59248
+ * Creates a plain object from a HealthRecordAiNoteFeedbackSubmitted message. Also converts values to other types if specified.
59249
+ * @param message HealthRecordAiNoteFeedbackSubmitted
59250
+ * @param [options] Conversion options
59251
+ * @returns Plain object
59252
+ */
59253
+ public static toObject(message: HealthRecordAiNoteFeedbackSubmitted, options?: $protobuf.IConversionOptions): { [k: string]: any };
59254
+
59255
+ /**
59256
+ * Converts this HealthRecordAiNoteFeedbackSubmitted to JSON.
59257
+ * @returns JSON object
59258
+ */
59259
+ public toJSON(): { [k: string]: any };
59260
+ }
59261
+
59129
59262
  /** Properties of an InteractiveJournalingParticipant. */
59130
59263
  export interface IInteractiveJournalingParticipant {
59131
59264
 
package/lib/index.js CHANGED
@@ -158572,6 +158572,7 @@ $root.GingerEligibilityRecordReactivated = (function() {
158572
158572
  * @property {string|null} [hsUserId] GingerEligibilityRecordReactivated hsUserId
158573
158573
  * @property {number|null} [gingerEligibilityRecordId] GingerEligibilityRecordReactivated gingerEligibilityRecordId
158574
158574
  * @property {string|null} [hsEligibilityRecordUuid] GingerEligibilityRecordReactivated hsEligibilityRecordUuid
158575
+ * @property {number|Long|null} [timestamp] GingerEligibilityRecordReactivated timestamp
158575
158576
  */
158576
158577
 
158577
158578
  /**
@@ -158613,6 +158614,14 @@ $root.GingerEligibilityRecordReactivated = (function() {
158613
158614
  */
158614
158615
  GingerEligibilityRecordReactivated.prototype.hsEligibilityRecordUuid = "";
158615
158616
 
158617
+ /**
158618
+ * GingerEligibilityRecordReactivated timestamp.
158619
+ * @member {number|Long} timestamp
158620
+ * @memberof GingerEligibilityRecordReactivated
158621
+ * @instance
158622
+ */
158623
+ GingerEligibilityRecordReactivated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
158624
+
158616
158625
  /**
158617
158626
  * Creates a new GingerEligibilityRecordReactivated instance using the specified properties.
158618
158627
  * @function create
@@ -158643,6 +158652,8 @@ $root.GingerEligibilityRecordReactivated = (function() {
158643
158652
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerEligibilityRecordId);
158644
158653
  if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
158645
158654
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsEligibilityRecordUuid);
158655
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
158656
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
158646
158657
  return writer;
158647
158658
  };
158648
158659
 
@@ -158686,6 +158697,9 @@ $root.GingerEligibilityRecordReactivated = (function() {
158686
158697
  case 3:
158687
158698
  message.hsEligibilityRecordUuid = reader.string();
158688
158699
  break;
158700
+ case 4:
158701
+ message.timestamp = reader.uint64();
158702
+ break;
158689
158703
  default:
158690
158704
  reader.skipType(tag & 7);
158691
158705
  break;
@@ -158730,6 +158744,9 @@ $root.GingerEligibilityRecordReactivated = (function() {
158730
158744
  if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
158731
158745
  if (!$util.isString(message.hsEligibilityRecordUuid))
158732
158746
  return "hsEligibilityRecordUuid: string expected";
158747
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
158748
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
158749
+ return "timestamp: integer|Long expected";
158733
158750
  return null;
158734
158751
  };
158735
158752
 
@@ -158751,6 +158768,15 @@ $root.GingerEligibilityRecordReactivated = (function() {
158751
158768
  message.gingerEligibilityRecordId = object.gingerEligibilityRecordId >>> 0;
158752
158769
  if (object.hsEligibilityRecordUuid != null)
158753
158770
  message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
158771
+ if (object.timestamp != null)
158772
+ if ($util.Long)
158773
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
158774
+ else if (typeof object.timestamp === "string")
158775
+ message.timestamp = parseInt(object.timestamp, 10);
158776
+ else if (typeof object.timestamp === "number")
158777
+ message.timestamp = object.timestamp;
158778
+ else if (typeof object.timestamp === "object")
158779
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
158754
158780
  return message;
158755
158781
  };
158756
158782
 
@@ -158771,6 +158797,11 @@ $root.GingerEligibilityRecordReactivated = (function() {
158771
158797
  object.hsUserId = "";
158772
158798
  object.gingerEligibilityRecordId = 0;
158773
158799
  object.hsEligibilityRecordUuid = "";
158800
+ if ($util.Long) {
158801
+ var long = new $util.Long(0, 0, true);
158802
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
158803
+ } else
158804
+ object.timestamp = options.longs === String ? "0" : 0;
158774
158805
  }
158775
158806
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
158776
158807
  object.hsUserId = message.hsUserId;
@@ -158778,6 +158809,11 @@ $root.GingerEligibilityRecordReactivated = (function() {
158778
158809
  object.gingerEligibilityRecordId = message.gingerEligibilityRecordId;
158779
158810
  if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
158780
158811
  object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
158812
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
158813
+ if (typeof message.timestamp === "number")
158814
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
158815
+ else
158816
+ 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;
158781
158817
  return object;
158782
158818
  };
158783
158819
 
@@ -165938,6 +165974,365 @@ $root.HealthRecordAiNoteAccepted = (function() {
165938
165974
  return HealthRecordAiNoteAccepted;
165939
165975
  })();
165940
165976
 
165977
+ /**
165978
+ * BinaryRating enum.
165979
+ * @name BinaryRating
165980
+ * @enum {string}
165981
+ * @property {number} BINARY_RATING_UNKNOWN=0 BINARY_RATING_UNKNOWN value
165982
+ * @property {number} BINARY_RATING_POSITIVE=1 BINARY_RATING_POSITIVE value
165983
+ * @property {number} BINARY_RATING_NEGATIVE=2 BINARY_RATING_NEGATIVE value
165984
+ */
165985
+ $root.BinaryRating = (function() {
165986
+ var valuesById = {}, values = Object.create(valuesById);
165987
+ values[valuesById[0] = "BINARY_RATING_UNKNOWN"] = 0;
165988
+ values[valuesById[1] = "BINARY_RATING_POSITIVE"] = 1;
165989
+ values[valuesById[2] = "BINARY_RATING_NEGATIVE"] = 2;
165990
+ return values;
165991
+ })();
165992
+
165993
+ $root.HealthRecordAiNoteFeedbackSubmitted = (function() {
165994
+
165995
+ /**
165996
+ * Properties of a HealthRecordAiNoteFeedbackSubmitted.
165997
+ * @name IHealthRecordAiNoteFeedbackSubmitted
165998
+ * @interface IHealthRecordAiNoteFeedbackSubmitted
165999
+ * @property {number|null} [appointmentId] HealthRecordAiNoteFeedbackSubmitted appointmentId
166000
+ * @property {NoteType|null} [noteType] HealthRecordAiNoteFeedbackSubmitted noteType
166001
+ * @property {string|null} [fieldPath] HealthRecordAiNoteFeedbackSubmitted fieldPath
166002
+ * @property {string|null} [comments] HealthRecordAiNoteFeedbackSubmitted comments
166003
+ * @property {BinaryRating|null} [binaryRating] HealthRecordAiNoteFeedbackSubmitted binaryRating
166004
+ * @property {number|Long|null} [timestamp] HealthRecordAiNoteFeedbackSubmitted timestamp
166005
+ */
166006
+
166007
+ /**
166008
+ * Constructs a new HealthRecordAiNoteFeedbackSubmitted.
166009
+ * @name HealthRecordAiNoteFeedbackSubmitted
166010
+ * @classdesc Represents a HealthRecordAiNoteFeedbackSubmitted.
166011
+ * @implements IHealthRecordAiNoteFeedbackSubmitted
166012
+ * @constructor
166013
+ * @param {IHealthRecordAiNoteFeedbackSubmitted=} [properties] Properties to set
166014
+ */
166015
+ function HealthRecordAiNoteFeedbackSubmitted(properties) {
166016
+ if (properties)
166017
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
166018
+ if (properties[keys[i]] != null)
166019
+ this[keys[i]] = properties[keys[i]];
166020
+ }
166021
+
166022
+ /**
166023
+ * HealthRecordAiNoteFeedbackSubmitted appointmentId.
166024
+ * @member {number} appointmentId
166025
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166026
+ * @instance
166027
+ */
166028
+ HealthRecordAiNoteFeedbackSubmitted.prototype.appointmentId = 0;
166029
+
166030
+ /**
166031
+ * HealthRecordAiNoteFeedbackSubmitted noteType.
166032
+ * @member {NoteType} noteType
166033
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166034
+ * @instance
166035
+ */
166036
+ HealthRecordAiNoteFeedbackSubmitted.prototype.noteType = 0;
166037
+
166038
+ /**
166039
+ * HealthRecordAiNoteFeedbackSubmitted fieldPath.
166040
+ * @member {string} fieldPath
166041
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166042
+ * @instance
166043
+ */
166044
+ HealthRecordAiNoteFeedbackSubmitted.prototype.fieldPath = "";
166045
+
166046
+ /**
166047
+ * HealthRecordAiNoteFeedbackSubmitted comments.
166048
+ * @member {string} comments
166049
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166050
+ * @instance
166051
+ */
166052
+ HealthRecordAiNoteFeedbackSubmitted.prototype.comments = "";
166053
+
166054
+ /**
166055
+ * HealthRecordAiNoteFeedbackSubmitted binaryRating.
166056
+ * @member {BinaryRating} binaryRating
166057
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166058
+ * @instance
166059
+ */
166060
+ HealthRecordAiNoteFeedbackSubmitted.prototype.binaryRating = 0;
166061
+
166062
+ /**
166063
+ * HealthRecordAiNoteFeedbackSubmitted timestamp.
166064
+ * @member {number|Long} timestamp
166065
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166066
+ * @instance
166067
+ */
166068
+ HealthRecordAiNoteFeedbackSubmitted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
166069
+
166070
+ /**
166071
+ * Creates a new HealthRecordAiNoteFeedbackSubmitted instance using the specified properties.
166072
+ * @function create
166073
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166074
+ * @static
166075
+ * @param {IHealthRecordAiNoteFeedbackSubmitted=} [properties] Properties to set
166076
+ * @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted instance
166077
+ */
166078
+ HealthRecordAiNoteFeedbackSubmitted.create = function create(properties) {
166079
+ return new HealthRecordAiNoteFeedbackSubmitted(properties);
166080
+ };
166081
+
166082
+ /**
166083
+ * Encodes the specified HealthRecordAiNoteFeedbackSubmitted message. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
166084
+ * @function encode
166085
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166086
+ * @static
166087
+ * @param {IHealthRecordAiNoteFeedbackSubmitted} message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
166088
+ * @param {$protobuf.Writer} [writer] Writer to encode to
166089
+ * @returns {$protobuf.Writer} Writer
166090
+ */
166091
+ HealthRecordAiNoteFeedbackSubmitted.encode = function encode(message, writer) {
166092
+ if (!writer)
166093
+ writer = $Writer.create();
166094
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
166095
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.appointmentId);
166096
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
166097
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.noteType);
166098
+ if (message.fieldPath != null && message.hasOwnProperty("fieldPath"))
166099
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.fieldPath);
166100
+ if (message.comments != null && message.hasOwnProperty("comments"))
166101
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.comments);
166102
+ if (message.binaryRating != null && message.hasOwnProperty("binaryRating"))
166103
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.binaryRating);
166104
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
166105
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
166106
+ return writer;
166107
+ };
166108
+
166109
+ /**
166110
+ * Encodes the specified HealthRecordAiNoteFeedbackSubmitted message, length delimited. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
166111
+ * @function encodeDelimited
166112
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166113
+ * @static
166114
+ * @param {IHealthRecordAiNoteFeedbackSubmitted} message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
166115
+ * @param {$protobuf.Writer} [writer] Writer to encode to
166116
+ * @returns {$protobuf.Writer} Writer
166117
+ */
166118
+ HealthRecordAiNoteFeedbackSubmitted.encodeDelimited = function encodeDelimited(message, writer) {
166119
+ return this.encode(message, writer).ldelim();
166120
+ };
166121
+
166122
+ /**
166123
+ * Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer.
166124
+ * @function decode
166125
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166126
+ * @static
166127
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
166128
+ * @param {number} [length] Message length if known beforehand
166129
+ * @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted
166130
+ * @throws {Error} If the payload is not a reader or valid buffer
166131
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
166132
+ */
166133
+ HealthRecordAiNoteFeedbackSubmitted.decode = function decode(reader, length) {
166134
+ if (!(reader instanceof $Reader))
166135
+ reader = $Reader.create(reader);
166136
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.HealthRecordAiNoteFeedbackSubmitted();
166137
+ while (reader.pos < end) {
166138
+ var tag = reader.uint32();
166139
+ switch (tag >>> 3) {
166140
+ case 1:
166141
+ message.appointmentId = reader.uint32();
166142
+ break;
166143
+ case 2:
166144
+ message.noteType = reader.int32();
166145
+ break;
166146
+ case 3:
166147
+ message.fieldPath = reader.string();
166148
+ break;
166149
+ case 4:
166150
+ message.comments = reader.string();
166151
+ break;
166152
+ case 5:
166153
+ message.binaryRating = reader.int32();
166154
+ break;
166155
+ case 6:
166156
+ message.timestamp = reader.uint64();
166157
+ break;
166158
+ default:
166159
+ reader.skipType(tag & 7);
166160
+ break;
166161
+ }
166162
+ }
166163
+ return message;
166164
+ };
166165
+
166166
+ /**
166167
+ * Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer, length delimited.
166168
+ * @function decodeDelimited
166169
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166170
+ * @static
166171
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
166172
+ * @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted
166173
+ * @throws {Error} If the payload is not a reader or valid buffer
166174
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
166175
+ */
166176
+ HealthRecordAiNoteFeedbackSubmitted.decodeDelimited = function decodeDelimited(reader) {
166177
+ if (!(reader instanceof $Reader))
166178
+ reader = new $Reader(reader);
166179
+ return this.decode(reader, reader.uint32());
166180
+ };
166181
+
166182
+ /**
166183
+ * Verifies a HealthRecordAiNoteFeedbackSubmitted message.
166184
+ * @function verify
166185
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166186
+ * @static
166187
+ * @param {Object.<string,*>} message Plain object to verify
166188
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
166189
+ */
166190
+ HealthRecordAiNoteFeedbackSubmitted.verify = function verify(message) {
166191
+ if (typeof message !== "object" || message === null)
166192
+ return "object expected";
166193
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
166194
+ if (!$util.isInteger(message.appointmentId))
166195
+ return "appointmentId: integer expected";
166196
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
166197
+ switch (message.noteType) {
166198
+ default:
166199
+ return "noteType: enum value expected";
166200
+ case 0:
166201
+ case 1:
166202
+ break;
166203
+ }
166204
+ if (message.fieldPath != null && message.hasOwnProperty("fieldPath"))
166205
+ if (!$util.isString(message.fieldPath))
166206
+ return "fieldPath: string expected";
166207
+ if (message.comments != null && message.hasOwnProperty("comments"))
166208
+ if (!$util.isString(message.comments))
166209
+ return "comments: string expected";
166210
+ if (message.binaryRating != null && message.hasOwnProperty("binaryRating"))
166211
+ switch (message.binaryRating) {
166212
+ default:
166213
+ return "binaryRating: enum value expected";
166214
+ case 0:
166215
+ case 1:
166216
+ case 2:
166217
+ break;
166218
+ }
166219
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
166220
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
166221
+ return "timestamp: integer|Long expected";
166222
+ return null;
166223
+ };
166224
+
166225
+ /**
166226
+ * Creates a HealthRecordAiNoteFeedbackSubmitted message from a plain object. Also converts values to their respective internal types.
166227
+ * @function fromObject
166228
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166229
+ * @static
166230
+ * @param {Object.<string,*>} object Plain object
166231
+ * @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted
166232
+ */
166233
+ HealthRecordAiNoteFeedbackSubmitted.fromObject = function fromObject(object) {
166234
+ if (object instanceof $root.HealthRecordAiNoteFeedbackSubmitted)
166235
+ return object;
166236
+ var message = new $root.HealthRecordAiNoteFeedbackSubmitted();
166237
+ if (object.appointmentId != null)
166238
+ message.appointmentId = object.appointmentId >>> 0;
166239
+ switch (object.noteType) {
166240
+ case "NOTE_TYPE_UNKNOWN":
166241
+ case 0:
166242
+ message.noteType = 0;
166243
+ break;
166244
+ case "NOTE_TYPE_THERAPY_INTAKE":
166245
+ case 1:
166246
+ message.noteType = 1;
166247
+ break;
166248
+ }
166249
+ if (object.fieldPath != null)
166250
+ message.fieldPath = String(object.fieldPath);
166251
+ if (object.comments != null)
166252
+ message.comments = String(object.comments);
166253
+ switch (object.binaryRating) {
166254
+ case "BINARY_RATING_UNKNOWN":
166255
+ case 0:
166256
+ message.binaryRating = 0;
166257
+ break;
166258
+ case "BINARY_RATING_POSITIVE":
166259
+ case 1:
166260
+ message.binaryRating = 1;
166261
+ break;
166262
+ case "BINARY_RATING_NEGATIVE":
166263
+ case 2:
166264
+ message.binaryRating = 2;
166265
+ break;
166266
+ }
166267
+ if (object.timestamp != null)
166268
+ if ($util.Long)
166269
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
166270
+ else if (typeof object.timestamp === "string")
166271
+ message.timestamp = parseInt(object.timestamp, 10);
166272
+ else if (typeof object.timestamp === "number")
166273
+ message.timestamp = object.timestamp;
166274
+ else if (typeof object.timestamp === "object")
166275
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
166276
+ return message;
166277
+ };
166278
+
166279
+ /**
166280
+ * Creates a plain object from a HealthRecordAiNoteFeedbackSubmitted message. Also converts values to other types if specified.
166281
+ * @function toObject
166282
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166283
+ * @static
166284
+ * @param {HealthRecordAiNoteFeedbackSubmitted} message HealthRecordAiNoteFeedbackSubmitted
166285
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
166286
+ * @returns {Object.<string,*>} Plain object
166287
+ */
166288
+ HealthRecordAiNoteFeedbackSubmitted.toObject = function toObject(message, options) {
166289
+ if (!options)
166290
+ options = {};
166291
+ var object = {};
166292
+ if (options.defaults) {
166293
+ object.appointmentId = 0;
166294
+ object.noteType = options.enums === String ? "NOTE_TYPE_UNKNOWN" : 0;
166295
+ object.fieldPath = "";
166296
+ object.comments = "";
166297
+ object.binaryRating = options.enums === String ? "BINARY_RATING_UNKNOWN" : 0;
166298
+ if ($util.Long) {
166299
+ var long = new $util.Long(0, 0, true);
166300
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
166301
+ } else
166302
+ object.timestamp = options.longs === String ? "0" : 0;
166303
+ }
166304
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
166305
+ object.appointmentId = message.appointmentId;
166306
+ if (message.noteType != null && message.hasOwnProperty("noteType"))
166307
+ object.noteType = options.enums === String ? $root.NoteType[message.noteType] : message.noteType;
166308
+ if (message.fieldPath != null && message.hasOwnProperty("fieldPath"))
166309
+ object.fieldPath = message.fieldPath;
166310
+ if (message.comments != null && message.hasOwnProperty("comments"))
166311
+ object.comments = message.comments;
166312
+ if (message.binaryRating != null && message.hasOwnProperty("binaryRating"))
166313
+ object.binaryRating = options.enums === String ? $root.BinaryRating[message.binaryRating] : message.binaryRating;
166314
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
166315
+ if (typeof message.timestamp === "number")
166316
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
166317
+ else
166318
+ 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;
166319
+ return object;
166320
+ };
166321
+
166322
+ /**
166323
+ * Converts this HealthRecordAiNoteFeedbackSubmitted to JSON.
166324
+ * @function toJSON
166325
+ * @memberof HealthRecordAiNoteFeedbackSubmitted
166326
+ * @instance
166327
+ * @returns {Object.<string,*>} JSON object
166328
+ */
166329
+ HealthRecordAiNoteFeedbackSubmitted.prototype.toJSON = function toJSON() {
166330
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
166331
+ };
166332
+
166333
+ return HealthRecordAiNoteFeedbackSubmitted;
166334
+ })();
166335
+
165941
166336
  $root.InteractiveJournalingParticipant = (function() {
165942
166337
 
165943
166338
  /**
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.669.0"
19
+ "version": "1.671.0"
20
20
  }