@headspace/protos-events 1.668.0 → 1.670.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 +235 -0
- package/lib/index.js +632 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -59018,6 +59018,241 @@ export class GoogleSubscriptionExpired implements IGoogleSubscriptionExpired {
|
|
|
59018
59018
|
public toJSON(): { [k: string]: any };
|
|
59019
59019
|
}
|
|
59020
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
|
+
|
|
59129
|
+
/** BinaryRating enum. */
|
|
59130
|
+
export enum BinaryRating {
|
|
59131
|
+
BINARY_RATING_UNKNOWN = 0,
|
|
59132
|
+
BINARY_RATING_POSITIVE = 1,
|
|
59133
|
+
BINARY_RATING_NEGATIVE = 2
|
|
59134
|
+
}
|
|
59135
|
+
|
|
59136
|
+
/** Properties of a HealthRecordAiNoteFeedbackSubmitted. */
|
|
59137
|
+
export interface IHealthRecordAiNoteFeedbackSubmitted {
|
|
59138
|
+
|
|
59139
|
+
/** HealthRecordAiNoteFeedbackSubmitted appointmentId */
|
|
59140
|
+
appointmentId?: (number|null);
|
|
59141
|
+
|
|
59142
|
+
/** HealthRecordAiNoteFeedbackSubmitted noteType */
|
|
59143
|
+
noteType?: (NoteType|null);
|
|
59144
|
+
|
|
59145
|
+
/** HealthRecordAiNoteFeedbackSubmitted fieldPath */
|
|
59146
|
+
fieldPath?: (string|null);
|
|
59147
|
+
|
|
59148
|
+
/** HealthRecordAiNoteFeedbackSubmitted comments */
|
|
59149
|
+
comments?: (string|null);
|
|
59150
|
+
|
|
59151
|
+
/** HealthRecordAiNoteFeedbackSubmitted binaryRating */
|
|
59152
|
+
binaryRating?: (BinaryRating|null);
|
|
59153
|
+
|
|
59154
|
+
/** HealthRecordAiNoteFeedbackSubmitted timestamp */
|
|
59155
|
+
timestamp?: (number|Long|null);
|
|
59156
|
+
}
|
|
59157
|
+
|
|
59158
|
+
/** Represents a HealthRecordAiNoteFeedbackSubmitted. */
|
|
59159
|
+
export class HealthRecordAiNoteFeedbackSubmitted implements IHealthRecordAiNoteFeedbackSubmitted {
|
|
59160
|
+
|
|
59161
|
+
/**
|
|
59162
|
+
* Constructs a new HealthRecordAiNoteFeedbackSubmitted.
|
|
59163
|
+
* @param [properties] Properties to set
|
|
59164
|
+
*/
|
|
59165
|
+
constructor(properties?: IHealthRecordAiNoteFeedbackSubmitted);
|
|
59166
|
+
|
|
59167
|
+
/** HealthRecordAiNoteFeedbackSubmitted appointmentId. */
|
|
59168
|
+
public appointmentId: number;
|
|
59169
|
+
|
|
59170
|
+
/** HealthRecordAiNoteFeedbackSubmitted noteType. */
|
|
59171
|
+
public noteType: NoteType;
|
|
59172
|
+
|
|
59173
|
+
/** HealthRecordAiNoteFeedbackSubmitted fieldPath. */
|
|
59174
|
+
public fieldPath: string;
|
|
59175
|
+
|
|
59176
|
+
/** HealthRecordAiNoteFeedbackSubmitted comments. */
|
|
59177
|
+
public comments: string;
|
|
59178
|
+
|
|
59179
|
+
/** HealthRecordAiNoteFeedbackSubmitted binaryRating. */
|
|
59180
|
+
public binaryRating: BinaryRating;
|
|
59181
|
+
|
|
59182
|
+
/** HealthRecordAiNoteFeedbackSubmitted timestamp. */
|
|
59183
|
+
public timestamp: (number|Long);
|
|
59184
|
+
|
|
59185
|
+
/**
|
|
59186
|
+
* Creates a new HealthRecordAiNoteFeedbackSubmitted instance using the specified properties.
|
|
59187
|
+
* @param [properties] Properties to set
|
|
59188
|
+
* @returns HealthRecordAiNoteFeedbackSubmitted instance
|
|
59189
|
+
*/
|
|
59190
|
+
public static create(properties?: IHealthRecordAiNoteFeedbackSubmitted): HealthRecordAiNoteFeedbackSubmitted;
|
|
59191
|
+
|
|
59192
|
+
/**
|
|
59193
|
+
* Encodes the specified HealthRecordAiNoteFeedbackSubmitted message. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
|
|
59194
|
+
* @param message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
|
|
59195
|
+
* @param [writer] Writer to encode to
|
|
59196
|
+
* @returns Writer
|
|
59197
|
+
*/
|
|
59198
|
+
public static encode(message: IHealthRecordAiNoteFeedbackSubmitted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
59199
|
+
|
|
59200
|
+
/**
|
|
59201
|
+
* Encodes the specified HealthRecordAiNoteFeedbackSubmitted message, length delimited. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
|
|
59202
|
+
* @param message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
|
|
59203
|
+
* @param [writer] Writer to encode to
|
|
59204
|
+
* @returns Writer
|
|
59205
|
+
*/
|
|
59206
|
+
public static encodeDelimited(message: IHealthRecordAiNoteFeedbackSubmitted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
59207
|
+
|
|
59208
|
+
/**
|
|
59209
|
+
* Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer.
|
|
59210
|
+
* @param reader Reader or buffer to decode from
|
|
59211
|
+
* @param [length] Message length if known beforehand
|
|
59212
|
+
* @returns HealthRecordAiNoteFeedbackSubmitted
|
|
59213
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59214
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59215
|
+
*/
|
|
59216
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): HealthRecordAiNoteFeedbackSubmitted;
|
|
59217
|
+
|
|
59218
|
+
/**
|
|
59219
|
+
* Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer, length delimited.
|
|
59220
|
+
* @param reader Reader or buffer to decode from
|
|
59221
|
+
* @returns HealthRecordAiNoteFeedbackSubmitted
|
|
59222
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59223
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59224
|
+
*/
|
|
59225
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): HealthRecordAiNoteFeedbackSubmitted;
|
|
59226
|
+
|
|
59227
|
+
/**
|
|
59228
|
+
* Verifies a HealthRecordAiNoteFeedbackSubmitted message.
|
|
59229
|
+
* @param message Plain object to verify
|
|
59230
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
59231
|
+
*/
|
|
59232
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
59233
|
+
|
|
59234
|
+
/**
|
|
59235
|
+
* Creates a HealthRecordAiNoteFeedbackSubmitted message from a plain object. Also converts values to their respective internal types.
|
|
59236
|
+
* @param object Plain object
|
|
59237
|
+
* @returns HealthRecordAiNoteFeedbackSubmitted
|
|
59238
|
+
*/
|
|
59239
|
+
public static fromObject(object: { [k: string]: any }): HealthRecordAiNoteFeedbackSubmitted;
|
|
59240
|
+
|
|
59241
|
+
/**
|
|
59242
|
+
* Creates a plain object from a HealthRecordAiNoteFeedbackSubmitted message. Also converts values to other types if specified.
|
|
59243
|
+
* @param message HealthRecordAiNoteFeedbackSubmitted
|
|
59244
|
+
* @param [options] Conversion options
|
|
59245
|
+
* @returns Plain object
|
|
59246
|
+
*/
|
|
59247
|
+
public static toObject(message: HealthRecordAiNoteFeedbackSubmitted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
59248
|
+
|
|
59249
|
+
/**
|
|
59250
|
+
* Converts this HealthRecordAiNoteFeedbackSubmitted to JSON.
|
|
59251
|
+
* @returns JSON object
|
|
59252
|
+
*/
|
|
59253
|
+
public toJSON(): { [k: string]: any };
|
|
59254
|
+
}
|
|
59255
|
+
|
|
59021
59256
|
/** Properties of an InteractiveJournalingParticipant. */
|
|
59022
59257
|
export interface IInteractiveJournalingParticipant {
|
|
59023
59258
|
|
package/lib/index.js
CHANGED
|
@@ -165665,6 +165665,638 @@ $root.GoogleSubscriptionExpired = (function() {
|
|
|
165665
165665
|
return GoogleSubscriptionExpired;
|
|
165666
165666
|
})();
|
|
165667
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
|
+
|
|
165941
|
+
/**
|
|
165942
|
+
* BinaryRating enum.
|
|
165943
|
+
* @name BinaryRating
|
|
165944
|
+
* @enum {string}
|
|
165945
|
+
* @property {number} BINARY_RATING_UNKNOWN=0 BINARY_RATING_UNKNOWN value
|
|
165946
|
+
* @property {number} BINARY_RATING_POSITIVE=1 BINARY_RATING_POSITIVE value
|
|
165947
|
+
* @property {number} BINARY_RATING_NEGATIVE=2 BINARY_RATING_NEGATIVE value
|
|
165948
|
+
*/
|
|
165949
|
+
$root.BinaryRating = (function() {
|
|
165950
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
165951
|
+
values[valuesById[0] = "BINARY_RATING_UNKNOWN"] = 0;
|
|
165952
|
+
values[valuesById[1] = "BINARY_RATING_POSITIVE"] = 1;
|
|
165953
|
+
values[valuesById[2] = "BINARY_RATING_NEGATIVE"] = 2;
|
|
165954
|
+
return values;
|
|
165955
|
+
})();
|
|
165956
|
+
|
|
165957
|
+
$root.HealthRecordAiNoteFeedbackSubmitted = (function() {
|
|
165958
|
+
|
|
165959
|
+
/**
|
|
165960
|
+
* Properties of a HealthRecordAiNoteFeedbackSubmitted.
|
|
165961
|
+
* @name IHealthRecordAiNoteFeedbackSubmitted
|
|
165962
|
+
* @interface IHealthRecordAiNoteFeedbackSubmitted
|
|
165963
|
+
* @property {number|null} [appointmentId] HealthRecordAiNoteFeedbackSubmitted appointmentId
|
|
165964
|
+
* @property {NoteType|null} [noteType] HealthRecordAiNoteFeedbackSubmitted noteType
|
|
165965
|
+
* @property {string|null} [fieldPath] HealthRecordAiNoteFeedbackSubmitted fieldPath
|
|
165966
|
+
* @property {string|null} [comments] HealthRecordAiNoteFeedbackSubmitted comments
|
|
165967
|
+
* @property {BinaryRating|null} [binaryRating] HealthRecordAiNoteFeedbackSubmitted binaryRating
|
|
165968
|
+
* @property {number|Long|null} [timestamp] HealthRecordAiNoteFeedbackSubmitted timestamp
|
|
165969
|
+
*/
|
|
165970
|
+
|
|
165971
|
+
/**
|
|
165972
|
+
* Constructs a new HealthRecordAiNoteFeedbackSubmitted.
|
|
165973
|
+
* @name HealthRecordAiNoteFeedbackSubmitted
|
|
165974
|
+
* @classdesc Represents a HealthRecordAiNoteFeedbackSubmitted.
|
|
165975
|
+
* @implements IHealthRecordAiNoteFeedbackSubmitted
|
|
165976
|
+
* @constructor
|
|
165977
|
+
* @param {IHealthRecordAiNoteFeedbackSubmitted=} [properties] Properties to set
|
|
165978
|
+
*/
|
|
165979
|
+
function HealthRecordAiNoteFeedbackSubmitted(properties) {
|
|
165980
|
+
if (properties)
|
|
165981
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
165982
|
+
if (properties[keys[i]] != null)
|
|
165983
|
+
this[keys[i]] = properties[keys[i]];
|
|
165984
|
+
}
|
|
165985
|
+
|
|
165986
|
+
/**
|
|
165987
|
+
* HealthRecordAiNoteFeedbackSubmitted appointmentId.
|
|
165988
|
+
* @member {number} appointmentId
|
|
165989
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
165990
|
+
* @instance
|
|
165991
|
+
*/
|
|
165992
|
+
HealthRecordAiNoteFeedbackSubmitted.prototype.appointmentId = 0;
|
|
165993
|
+
|
|
165994
|
+
/**
|
|
165995
|
+
* HealthRecordAiNoteFeedbackSubmitted noteType.
|
|
165996
|
+
* @member {NoteType} noteType
|
|
165997
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
165998
|
+
* @instance
|
|
165999
|
+
*/
|
|
166000
|
+
HealthRecordAiNoteFeedbackSubmitted.prototype.noteType = 0;
|
|
166001
|
+
|
|
166002
|
+
/**
|
|
166003
|
+
* HealthRecordAiNoteFeedbackSubmitted fieldPath.
|
|
166004
|
+
* @member {string} fieldPath
|
|
166005
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166006
|
+
* @instance
|
|
166007
|
+
*/
|
|
166008
|
+
HealthRecordAiNoteFeedbackSubmitted.prototype.fieldPath = "";
|
|
166009
|
+
|
|
166010
|
+
/**
|
|
166011
|
+
* HealthRecordAiNoteFeedbackSubmitted comments.
|
|
166012
|
+
* @member {string} comments
|
|
166013
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166014
|
+
* @instance
|
|
166015
|
+
*/
|
|
166016
|
+
HealthRecordAiNoteFeedbackSubmitted.prototype.comments = "";
|
|
166017
|
+
|
|
166018
|
+
/**
|
|
166019
|
+
* HealthRecordAiNoteFeedbackSubmitted binaryRating.
|
|
166020
|
+
* @member {BinaryRating} binaryRating
|
|
166021
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166022
|
+
* @instance
|
|
166023
|
+
*/
|
|
166024
|
+
HealthRecordAiNoteFeedbackSubmitted.prototype.binaryRating = 0;
|
|
166025
|
+
|
|
166026
|
+
/**
|
|
166027
|
+
* HealthRecordAiNoteFeedbackSubmitted timestamp.
|
|
166028
|
+
* @member {number|Long} timestamp
|
|
166029
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166030
|
+
* @instance
|
|
166031
|
+
*/
|
|
166032
|
+
HealthRecordAiNoteFeedbackSubmitted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
166033
|
+
|
|
166034
|
+
/**
|
|
166035
|
+
* Creates a new HealthRecordAiNoteFeedbackSubmitted instance using the specified properties.
|
|
166036
|
+
* @function create
|
|
166037
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166038
|
+
* @static
|
|
166039
|
+
* @param {IHealthRecordAiNoteFeedbackSubmitted=} [properties] Properties to set
|
|
166040
|
+
* @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted instance
|
|
166041
|
+
*/
|
|
166042
|
+
HealthRecordAiNoteFeedbackSubmitted.create = function create(properties) {
|
|
166043
|
+
return new HealthRecordAiNoteFeedbackSubmitted(properties);
|
|
166044
|
+
};
|
|
166045
|
+
|
|
166046
|
+
/**
|
|
166047
|
+
* Encodes the specified HealthRecordAiNoteFeedbackSubmitted message. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
|
|
166048
|
+
* @function encode
|
|
166049
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166050
|
+
* @static
|
|
166051
|
+
* @param {IHealthRecordAiNoteFeedbackSubmitted} message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
|
|
166052
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
166053
|
+
* @returns {$protobuf.Writer} Writer
|
|
166054
|
+
*/
|
|
166055
|
+
HealthRecordAiNoteFeedbackSubmitted.encode = function encode(message, writer) {
|
|
166056
|
+
if (!writer)
|
|
166057
|
+
writer = $Writer.create();
|
|
166058
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
166059
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.appointmentId);
|
|
166060
|
+
if (message.noteType != null && message.hasOwnProperty("noteType"))
|
|
166061
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.noteType);
|
|
166062
|
+
if (message.fieldPath != null && message.hasOwnProperty("fieldPath"))
|
|
166063
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.fieldPath);
|
|
166064
|
+
if (message.comments != null && message.hasOwnProperty("comments"))
|
|
166065
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.comments);
|
|
166066
|
+
if (message.binaryRating != null && message.hasOwnProperty("binaryRating"))
|
|
166067
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.binaryRating);
|
|
166068
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
166069
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.timestamp);
|
|
166070
|
+
return writer;
|
|
166071
|
+
};
|
|
166072
|
+
|
|
166073
|
+
/**
|
|
166074
|
+
* Encodes the specified HealthRecordAiNoteFeedbackSubmitted message, length delimited. Does not implicitly {@link HealthRecordAiNoteFeedbackSubmitted.verify|verify} messages.
|
|
166075
|
+
* @function encodeDelimited
|
|
166076
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166077
|
+
* @static
|
|
166078
|
+
* @param {IHealthRecordAiNoteFeedbackSubmitted} message HealthRecordAiNoteFeedbackSubmitted message or plain object to encode
|
|
166079
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
166080
|
+
* @returns {$protobuf.Writer} Writer
|
|
166081
|
+
*/
|
|
166082
|
+
HealthRecordAiNoteFeedbackSubmitted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
166083
|
+
return this.encode(message, writer).ldelim();
|
|
166084
|
+
};
|
|
166085
|
+
|
|
166086
|
+
/**
|
|
166087
|
+
* Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer.
|
|
166088
|
+
* @function decode
|
|
166089
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166090
|
+
* @static
|
|
166091
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
166092
|
+
* @param {number} [length] Message length if known beforehand
|
|
166093
|
+
* @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted
|
|
166094
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
166095
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
166096
|
+
*/
|
|
166097
|
+
HealthRecordAiNoteFeedbackSubmitted.decode = function decode(reader, length) {
|
|
166098
|
+
if (!(reader instanceof $Reader))
|
|
166099
|
+
reader = $Reader.create(reader);
|
|
166100
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.HealthRecordAiNoteFeedbackSubmitted();
|
|
166101
|
+
while (reader.pos < end) {
|
|
166102
|
+
var tag = reader.uint32();
|
|
166103
|
+
switch (tag >>> 3) {
|
|
166104
|
+
case 1:
|
|
166105
|
+
message.appointmentId = reader.uint32();
|
|
166106
|
+
break;
|
|
166107
|
+
case 2:
|
|
166108
|
+
message.noteType = reader.int32();
|
|
166109
|
+
break;
|
|
166110
|
+
case 3:
|
|
166111
|
+
message.fieldPath = reader.string();
|
|
166112
|
+
break;
|
|
166113
|
+
case 4:
|
|
166114
|
+
message.comments = reader.string();
|
|
166115
|
+
break;
|
|
166116
|
+
case 5:
|
|
166117
|
+
message.binaryRating = reader.int32();
|
|
166118
|
+
break;
|
|
166119
|
+
case 6:
|
|
166120
|
+
message.timestamp = reader.uint64();
|
|
166121
|
+
break;
|
|
166122
|
+
default:
|
|
166123
|
+
reader.skipType(tag & 7);
|
|
166124
|
+
break;
|
|
166125
|
+
}
|
|
166126
|
+
}
|
|
166127
|
+
return message;
|
|
166128
|
+
};
|
|
166129
|
+
|
|
166130
|
+
/**
|
|
166131
|
+
* Decodes a HealthRecordAiNoteFeedbackSubmitted message from the specified reader or buffer, length delimited.
|
|
166132
|
+
* @function decodeDelimited
|
|
166133
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166134
|
+
* @static
|
|
166135
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
166136
|
+
* @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted
|
|
166137
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
166138
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
166139
|
+
*/
|
|
166140
|
+
HealthRecordAiNoteFeedbackSubmitted.decodeDelimited = function decodeDelimited(reader) {
|
|
166141
|
+
if (!(reader instanceof $Reader))
|
|
166142
|
+
reader = new $Reader(reader);
|
|
166143
|
+
return this.decode(reader, reader.uint32());
|
|
166144
|
+
};
|
|
166145
|
+
|
|
166146
|
+
/**
|
|
166147
|
+
* Verifies a HealthRecordAiNoteFeedbackSubmitted message.
|
|
166148
|
+
* @function verify
|
|
166149
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166150
|
+
* @static
|
|
166151
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
166152
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
166153
|
+
*/
|
|
166154
|
+
HealthRecordAiNoteFeedbackSubmitted.verify = function verify(message) {
|
|
166155
|
+
if (typeof message !== "object" || message === null)
|
|
166156
|
+
return "object expected";
|
|
166157
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
166158
|
+
if (!$util.isInteger(message.appointmentId))
|
|
166159
|
+
return "appointmentId: integer expected";
|
|
166160
|
+
if (message.noteType != null && message.hasOwnProperty("noteType"))
|
|
166161
|
+
switch (message.noteType) {
|
|
166162
|
+
default:
|
|
166163
|
+
return "noteType: enum value expected";
|
|
166164
|
+
case 0:
|
|
166165
|
+
case 1:
|
|
166166
|
+
break;
|
|
166167
|
+
}
|
|
166168
|
+
if (message.fieldPath != null && message.hasOwnProperty("fieldPath"))
|
|
166169
|
+
if (!$util.isString(message.fieldPath))
|
|
166170
|
+
return "fieldPath: string expected";
|
|
166171
|
+
if (message.comments != null && message.hasOwnProperty("comments"))
|
|
166172
|
+
if (!$util.isString(message.comments))
|
|
166173
|
+
return "comments: string expected";
|
|
166174
|
+
if (message.binaryRating != null && message.hasOwnProperty("binaryRating"))
|
|
166175
|
+
switch (message.binaryRating) {
|
|
166176
|
+
default:
|
|
166177
|
+
return "binaryRating: enum value expected";
|
|
166178
|
+
case 0:
|
|
166179
|
+
case 1:
|
|
166180
|
+
case 2:
|
|
166181
|
+
break;
|
|
166182
|
+
}
|
|
166183
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
166184
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
166185
|
+
return "timestamp: integer|Long expected";
|
|
166186
|
+
return null;
|
|
166187
|
+
};
|
|
166188
|
+
|
|
166189
|
+
/**
|
|
166190
|
+
* Creates a HealthRecordAiNoteFeedbackSubmitted message from a plain object. Also converts values to their respective internal types.
|
|
166191
|
+
* @function fromObject
|
|
166192
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166193
|
+
* @static
|
|
166194
|
+
* @param {Object.<string,*>} object Plain object
|
|
166195
|
+
* @returns {HealthRecordAiNoteFeedbackSubmitted} HealthRecordAiNoteFeedbackSubmitted
|
|
166196
|
+
*/
|
|
166197
|
+
HealthRecordAiNoteFeedbackSubmitted.fromObject = function fromObject(object) {
|
|
166198
|
+
if (object instanceof $root.HealthRecordAiNoteFeedbackSubmitted)
|
|
166199
|
+
return object;
|
|
166200
|
+
var message = new $root.HealthRecordAiNoteFeedbackSubmitted();
|
|
166201
|
+
if (object.appointmentId != null)
|
|
166202
|
+
message.appointmentId = object.appointmentId >>> 0;
|
|
166203
|
+
switch (object.noteType) {
|
|
166204
|
+
case "NOTE_TYPE_UNKNOWN":
|
|
166205
|
+
case 0:
|
|
166206
|
+
message.noteType = 0;
|
|
166207
|
+
break;
|
|
166208
|
+
case "NOTE_TYPE_THERAPY_INTAKE":
|
|
166209
|
+
case 1:
|
|
166210
|
+
message.noteType = 1;
|
|
166211
|
+
break;
|
|
166212
|
+
}
|
|
166213
|
+
if (object.fieldPath != null)
|
|
166214
|
+
message.fieldPath = String(object.fieldPath);
|
|
166215
|
+
if (object.comments != null)
|
|
166216
|
+
message.comments = String(object.comments);
|
|
166217
|
+
switch (object.binaryRating) {
|
|
166218
|
+
case "BINARY_RATING_UNKNOWN":
|
|
166219
|
+
case 0:
|
|
166220
|
+
message.binaryRating = 0;
|
|
166221
|
+
break;
|
|
166222
|
+
case "BINARY_RATING_POSITIVE":
|
|
166223
|
+
case 1:
|
|
166224
|
+
message.binaryRating = 1;
|
|
166225
|
+
break;
|
|
166226
|
+
case "BINARY_RATING_NEGATIVE":
|
|
166227
|
+
case 2:
|
|
166228
|
+
message.binaryRating = 2;
|
|
166229
|
+
break;
|
|
166230
|
+
}
|
|
166231
|
+
if (object.timestamp != null)
|
|
166232
|
+
if ($util.Long)
|
|
166233
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
166234
|
+
else if (typeof object.timestamp === "string")
|
|
166235
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
166236
|
+
else if (typeof object.timestamp === "number")
|
|
166237
|
+
message.timestamp = object.timestamp;
|
|
166238
|
+
else if (typeof object.timestamp === "object")
|
|
166239
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
166240
|
+
return message;
|
|
166241
|
+
};
|
|
166242
|
+
|
|
166243
|
+
/**
|
|
166244
|
+
* Creates a plain object from a HealthRecordAiNoteFeedbackSubmitted message. Also converts values to other types if specified.
|
|
166245
|
+
* @function toObject
|
|
166246
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166247
|
+
* @static
|
|
166248
|
+
* @param {HealthRecordAiNoteFeedbackSubmitted} message HealthRecordAiNoteFeedbackSubmitted
|
|
166249
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
166250
|
+
* @returns {Object.<string,*>} Plain object
|
|
166251
|
+
*/
|
|
166252
|
+
HealthRecordAiNoteFeedbackSubmitted.toObject = function toObject(message, options) {
|
|
166253
|
+
if (!options)
|
|
166254
|
+
options = {};
|
|
166255
|
+
var object = {};
|
|
166256
|
+
if (options.defaults) {
|
|
166257
|
+
object.appointmentId = 0;
|
|
166258
|
+
object.noteType = options.enums === String ? "NOTE_TYPE_UNKNOWN" : 0;
|
|
166259
|
+
object.fieldPath = "";
|
|
166260
|
+
object.comments = "";
|
|
166261
|
+
object.binaryRating = options.enums === String ? "BINARY_RATING_UNKNOWN" : 0;
|
|
166262
|
+
if ($util.Long) {
|
|
166263
|
+
var long = new $util.Long(0, 0, true);
|
|
166264
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
166265
|
+
} else
|
|
166266
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
166267
|
+
}
|
|
166268
|
+
if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
|
|
166269
|
+
object.appointmentId = message.appointmentId;
|
|
166270
|
+
if (message.noteType != null && message.hasOwnProperty("noteType"))
|
|
166271
|
+
object.noteType = options.enums === String ? $root.NoteType[message.noteType] : message.noteType;
|
|
166272
|
+
if (message.fieldPath != null && message.hasOwnProperty("fieldPath"))
|
|
166273
|
+
object.fieldPath = message.fieldPath;
|
|
166274
|
+
if (message.comments != null && message.hasOwnProperty("comments"))
|
|
166275
|
+
object.comments = message.comments;
|
|
166276
|
+
if (message.binaryRating != null && message.hasOwnProperty("binaryRating"))
|
|
166277
|
+
object.binaryRating = options.enums === String ? $root.BinaryRating[message.binaryRating] : message.binaryRating;
|
|
166278
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
166279
|
+
if (typeof message.timestamp === "number")
|
|
166280
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
166281
|
+
else
|
|
166282
|
+
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;
|
|
166283
|
+
return object;
|
|
166284
|
+
};
|
|
166285
|
+
|
|
166286
|
+
/**
|
|
166287
|
+
* Converts this HealthRecordAiNoteFeedbackSubmitted to JSON.
|
|
166288
|
+
* @function toJSON
|
|
166289
|
+
* @memberof HealthRecordAiNoteFeedbackSubmitted
|
|
166290
|
+
* @instance
|
|
166291
|
+
* @returns {Object.<string,*>} JSON object
|
|
166292
|
+
*/
|
|
166293
|
+
HealthRecordAiNoteFeedbackSubmitted.prototype.toJSON = function toJSON() {
|
|
166294
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
166295
|
+
};
|
|
166296
|
+
|
|
166297
|
+
return HealthRecordAiNoteFeedbackSubmitted;
|
|
166298
|
+
})();
|
|
166299
|
+
|
|
165668
166300
|
$root.InteractiveJournalingParticipant = (function() {
|
|
165669
166301
|
|
|
165670
166302
|
/**
|
package/package.json
CHANGED