@headspace/protos-events 1.669.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 +127 -0
- package/lib/index.js +359 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -59126,6 +59126,133 @@ export class HealthRecordAiNoteAccepted implements IHealthRecordAiNoteAccepted {
|
|
|
59126
59126
|
public toJSON(): { [k: string]: any };
|
|
59127
59127
|
}
|
|
59128
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
|
+
|
|
59129
59256
|
/** Properties of an InteractiveJournalingParticipant. */
|
|
59130
59257
|
export interface IInteractiveJournalingParticipant {
|
|
59131
59258
|
|
package/lib/index.js
CHANGED
|
@@ -165938,6 +165938,365 @@ $root.HealthRecordAiNoteAccepted = (function() {
|
|
|
165938
165938
|
return HealthRecordAiNoteAccepted;
|
|
165939
165939
|
})();
|
|
165940
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
|
+
|
|
165941
166300
|
$root.InteractiveJournalingParticipant = (function() {
|
|
165942
166301
|
|
|
165943
166302
|
/**
|
package/package.json
CHANGED