@headspace/protos-events 1.834.0 → 1.835.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 +140 -0
- package/lib/index.js +355 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -88380,6 +88380,146 @@ export namespace HieDeliveryFailed {
|
|
|
88380
88380
|
type $Shape = HieDeliveryFailed.$Properties;
|
|
88381
88381
|
}
|
|
88382
88382
|
|
|
88383
|
+
/**
|
|
88384
|
+
* Properties of a GingerClinicalNoteExported.
|
|
88385
|
+
* @deprecated Use GingerClinicalNoteExported.$Properties instead.
|
|
88386
|
+
*/
|
|
88387
|
+
export interface IGingerClinicalNoteExported extends GingerClinicalNoteExported.$Properties {
|
|
88388
|
+
}
|
|
88389
|
+
|
|
88390
|
+
/**
|
|
88391
|
+
* Published when care-web has written a GingerClinicalNotePayload object to the
|
|
88392
|
+
* Headspace HIE S3 export bucket and is ready for hs-hie-service to consume it.
|
|
88393
|
+
* Thin pointer only -- opaque ids and the S3 object key. Classification and
|
|
88394
|
+
* DS4P codes live on GingerClinicalNotePayload (read after GetObject).
|
|
88395
|
+
*/
|
|
88396
|
+
export class GingerClinicalNoteExported {
|
|
88397
|
+
|
|
88398
|
+
/**
|
|
88399
|
+
* Constructs a new GingerClinicalNoteExported.
|
|
88400
|
+
* @param [properties] Properties to set
|
|
88401
|
+
*/
|
|
88402
|
+
constructor(properties?: GingerClinicalNoteExported.$Properties);
|
|
88403
|
+
|
|
88404
|
+
/** Unknown fields preserved while decoding */
|
|
88405
|
+
$unknowns?: Uint8Array[];
|
|
88406
|
+
|
|
88407
|
+
/** GingerClinicalNoteExported timestamp. */
|
|
88408
|
+
timestamp: (number|Long);
|
|
88409
|
+
|
|
88410
|
+
/** GingerClinicalNoteExported noteId. */
|
|
88411
|
+
noteId: string;
|
|
88412
|
+
|
|
88413
|
+
/** GingerClinicalNoteExported hsUserId. */
|
|
88414
|
+
hsUserId: string;
|
|
88415
|
+
|
|
88416
|
+
/** GingerClinicalNoteExported s3Path. */
|
|
88417
|
+
s3Path: string;
|
|
88418
|
+
|
|
88419
|
+
/**
|
|
88420
|
+
* Creates a new GingerClinicalNoteExported instance using the specified properties.
|
|
88421
|
+
* @param [properties] Properties to set
|
|
88422
|
+
* @returns GingerClinicalNoteExported instance
|
|
88423
|
+
*/
|
|
88424
|
+
static create(properties: GingerClinicalNoteExported.$Shape): GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape;
|
|
88425
|
+
static create(properties?: GingerClinicalNoteExported.$Properties): GingerClinicalNoteExported;
|
|
88426
|
+
|
|
88427
|
+
/**
|
|
88428
|
+
* Encodes the specified GingerClinicalNoteExported message. Does not implicitly {@link GingerClinicalNoteExported.verify|verify} messages.
|
|
88429
|
+
* @param message GingerClinicalNoteExported message or plain object to encode
|
|
88430
|
+
* @param [writer] Writer to encode to
|
|
88431
|
+
* @returns Writer
|
|
88432
|
+
*/
|
|
88433
|
+
static encode(message: GingerClinicalNoteExported.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
88434
|
+
|
|
88435
|
+
/**
|
|
88436
|
+
* Encodes the specified GingerClinicalNoteExported message, length delimited. Does not implicitly {@link GingerClinicalNoteExported.verify|verify} messages.
|
|
88437
|
+
* @param message GingerClinicalNoteExported message or plain object to encode
|
|
88438
|
+
* @param [writer] Writer to encode to
|
|
88439
|
+
* @returns Writer
|
|
88440
|
+
*/
|
|
88441
|
+
static encodeDelimited(message: GingerClinicalNoteExported.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
88442
|
+
|
|
88443
|
+
/**
|
|
88444
|
+
* Decodes a GingerClinicalNoteExported message from the specified reader or buffer.
|
|
88445
|
+
* @param reader Reader or buffer to decode from
|
|
88446
|
+
* @param [length] Message length if known beforehand
|
|
88447
|
+
* @returns {GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape} GingerClinicalNoteExported
|
|
88448
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88449
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88450
|
+
*/
|
|
88451
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape;
|
|
88452
|
+
|
|
88453
|
+
/**
|
|
88454
|
+
* Decodes a GingerClinicalNoteExported message from the specified reader or buffer, length delimited.
|
|
88455
|
+
* @param reader Reader or buffer to decode from
|
|
88456
|
+
* @returns {GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape} GingerClinicalNoteExported
|
|
88457
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88458
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88459
|
+
*/
|
|
88460
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape;
|
|
88461
|
+
|
|
88462
|
+
/**
|
|
88463
|
+
* Verifies a GingerClinicalNoteExported message.
|
|
88464
|
+
* @param message Plain object to verify
|
|
88465
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
88466
|
+
*/
|
|
88467
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
88468
|
+
|
|
88469
|
+
/**
|
|
88470
|
+
* Creates a GingerClinicalNoteExported message from a plain object. Also converts values to their respective internal types.
|
|
88471
|
+
* @param object Plain object
|
|
88472
|
+
* @returns GingerClinicalNoteExported
|
|
88473
|
+
*/
|
|
88474
|
+
static fromObject(object: { [k: string]: any }): GingerClinicalNoteExported;
|
|
88475
|
+
|
|
88476
|
+
/**
|
|
88477
|
+
* Creates a plain object from a GingerClinicalNoteExported message. Also converts values to other types if specified.
|
|
88478
|
+
* @param message GingerClinicalNoteExported
|
|
88479
|
+
* @param [options] Conversion options
|
|
88480
|
+
* @returns Plain object
|
|
88481
|
+
*/
|
|
88482
|
+
static toObject(message: GingerClinicalNoteExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
88483
|
+
|
|
88484
|
+
/**
|
|
88485
|
+
* Converts this GingerClinicalNoteExported to JSON.
|
|
88486
|
+
* @returns JSON object
|
|
88487
|
+
*/
|
|
88488
|
+
toJSON(): { [k: string]: any };
|
|
88489
|
+
|
|
88490
|
+
/**
|
|
88491
|
+
* Gets the type url for GingerClinicalNoteExported
|
|
88492
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
88493
|
+
* @returns The type url
|
|
88494
|
+
*/
|
|
88495
|
+
static getTypeUrl(prefix?: string): string;
|
|
88496
|
+
}
|
|
88497
|
+
|
|
88498
|
+
export namespace GingerClinicalNoteExported {
|
|
88499
|
+
|
|
88500
|
+
/** Properties of a GingerClinicalNoteExported. */
|
|
88501
|
+
interface $Properties {
|
|
88502
|
+
|
|
88503
|
+
/** GingerClinicalNoteExported timestamp */
|
|
88504
|
+
timestamp?: (number|Long|null);
|
|
88505
|
+
|
|
88506
|
+
/** GingerClinicalNoteExported noteId */
|
|
88507
|
+
noteId?: (string|null);
|
|
88508
|
+
|
|
88509
|
+
/** GingerClinicalNoteExported hsUserId */
|
|
88510
|
+
hsUserId?: (string|null);
|
|
88511
|
+
|
|
88512
|
+
/** GingerClinicalNoteExported s3Path */
|
|
88513
|
+
s3Path?: (string|null);
|
|
88514
|
+
|
|
88515
|
+
/** Unknown fields preserved while decoding */
|
|
88516
|
+
$unknowns?: Uint8Array[];
|
|
88517
|
+
}
|
|
88518
|
+
|
|
88519
|
+
/** Shape of a GingerClinicalNoteExported. */
|
|
88520
|
+
type $Shape = GingerClinicalNoteExported.$Properties;
|
|
88521
|
+
}
|
|
88522
|
+
|
|
88383
88523
|
/** GingerClinicalNoteType enum. */
|
|
88384
88524
|
export enum GingerClinicalNoteType {
|
|
88385
88525
|
|
package/lib/index.js
CHANGED
|
@@ -260130,6 +260130,361 @@ $root.HieDeliveryFailed = (function() {
|
|
|
260130
260130
|
return HieDeliveryFailed;
|
|
260131
260131
|
})();
|
|
260132
260132
|
|
|
260133
|
+
$root.GingerClinicalNoteExported = (function() {
|
|
260134
|
+
|
|
260135
|
+
/**
|
|
260136
|
+
* Properties of a GingerClinicalNoteExported.
|
|
260137
|
+
* @typedef {Object} GingerClinicalNoteExported.$Properties
|
|
260138
|
+
* @property {number|Long|null} [timestamp] GingerClinicalNoteExported timestamp
|
|
260139
|
+
* @property {string|null} [noteId] GingerClinicalNoteExported noteId
|
|
260140
|
+
* @property {string|null} [hsUserId] GingerClinicalNoteExported hsUserId
|
|
260141
|
+
* @property {string|null} [s3Path] GingerClinicalNoteExported s3Path
|
|
260142
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260143
|
+
*/
|
|
260144
|
+
|
|
260145
|
+
/**
|
|
260146
|
+
* Properties of a GingerClinicalNoteExported.
|
|
260147
|
+
* @name IGingerClinicalNoteExported
|
|
260148
|
+
* @interface IGingerClinicalNoteExported
|
|
260149
|
+
* @augments GingerClinicalNoteExported.$Properties
|
|
260150
|
+
* @deprecated Use GingerClinicalNoteExported.$Properties instead.
|
|
260151
|
+
*/
|
|
260152
|
+
|
|
260153
|
+
/**
|
|
260154
|
+
* Shape of a GingerClinicalNoteExported.
|
|
260155
|
+
* @typedef {GingerClinicalNoteExported.$Properties} GingerClinicalNoteExported.$Shape
|
|
260156
|
+
*/
|
|
260157
|
+
|
|
260158
|
+
/**
|
|
260159
|
+
* Constructs a new GingerClinicalNoteExported.
|
|
260160
|
+
* @name GingerClinicalNoteExported
|
|
260161
|
+
* @classdesc Published when care-web has written a GingerClinicalNotePayload object to the
|
|
260162
|
+
* Headspace HIE S3 export bucket and is ready for hs-hie-service to consume it.
|
|
260163
|
+
* Thin pointer only -- opaque ids and the S3 object key. Classification and
|
|
260164
|
+
* DS4P codes live on GingerClinicalNotePayload (read after GetObject).
|
|
260165
|
+
* @constructor
|
|
260166
|
+
* @param {GingerClinicalNoteExported.$Properties=} [properties] Properties to set
|
|
260167
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
260168
|
+
*/
|
|
260169
|
+
function GingerClinicalNoteExported(properties) {
|
|
260170
|
+
if (properties)
|
|
260171
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
260172
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
260173
|
+
this[keys[i]] = properties[keys[i]];
|
|
260174
|
+
}
|
|
260175
|
+
|
|
260176
|
+
/**
|
|
260177
|
+
* GingerClinicalNoteExported timestamp.
|
|
260178
|
+
* @member {number|Long} timestamp
|
|
260179
|
+
* @memberof GingerClinicalNoteExported
|
|
260180
|
+
* @instance
|
|
260181
|
+
*/
|
|
260182
|
+
GingerClinicalNoteExported.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
260183
|
+
|
|
260184
|
+
/**
|
|
260185
|
+
* GingerClinicalNoteExported noteId.
|
|
260186
|
+
* @member {string} noteId
|
|
260187
|
+
* @memberof GingerClinicalNoteExported
|
|
260188
|
+
* @instance
|
|
260189
|
+
*/
|
|
260190
|
+
GingerClinicalNoteExported.prototype.noteId = "";
|
|
260191
|
+
|
|
260192
|
+
/**
|
|
260193
|
+
* GingerClinicalNoteExported hsUserId.
|
|
260194
|
+
* @member {string} hsUserId
|
|
260195
|
+
* @memberof GingerClinicalNoteExported
|
|
260196
|
+
* @instance
|
|
260197
|
+
*/
|
|
260198
|
+
GingerClinicalNoteExported.prototype.hsUserId = "";
|
|
260199
|
+
|
|
260200
|
+
/**
|
|
260201
|
+
* GingerClinicalNoteExported s3Path.
|
|
260202
|
+
* @member {string} s3Path
|
|
260203
|
+
* @memberof GingerClinicalNoteExported
|
|
260204
|
+
* @instance
|
|
260205
|
+
*/
|
|
260206
|
+
GingerClinicalNoteExported.prototype.s3Path = "";
|
|
260207
|
+
|
|
260208
|
+
/**
|
|
260209
|
+
* Creates a new GingerClinicalNoteExported instance using the specified properties.
|
|
260210
|
+
* @function create
|
|
260211
|
+
* @memberof GingerClinicalNoteExported
|
|
260212
|
+
* @static
|
|
260213
|
+
* @param {GingerClinicalNoteExported.$Properties=} [properties] Properties to set
|
|
260214
|
+
* @returns {GingerClinicalNoteExported} GingerClinicalNoteExported instance
|
|
260215
|
+
* @type {{
|
|
260216
|
+
* (properties: GingerClinicalNoteExported.$Shape): GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape;
|
|
260217
|
+
* (properties?: GingerClinicalNoteExported.$Properties): GingerClinicalNoteExported;
|
|
260218
|
+
* }}
|
|
260219
|
+
*/
|
|
260220
|
+
GingerClinicalNoteExported.create = function create(properties) {
|
|
260221
|
+
return new GingerClinicalNoteExported(properties);
|
|
260222
|
+
};
|
|
260223
|
+
|
|
260224
|
+
/**
|
|
260225
|
+
* Encodes the specified GingerClinicalNoteExported message. Does not implicitly {@link GingerClinicalNoteExported.verify|verify} messages.
|
|
260226
|
+
* @function encode
|
|
260227
|
+
* @memberof GingerClinicalNoteExported
|
|
260228
|
+
* @static
|
|
260229
|
+
* @param {GingerClinicalNoteExported.$Properties} message GingerClinicalNoteExported message or plain object to encode
|
|
260230
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260231
|
+
* @returns {$protobuf.Writer} Writer
|
|
260232
|
+
*/
|
|
260233
|
+
GingerClinicalNoteExported.encode = function encode(message, writer) {
|
|
260234
|
+
if (!writer)
|
|
260235
|
+
writer = $Writer.create();
|
|
260236
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
260237
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
260238
|
+
if (message.noteId != null && Object.hasOwnProperty.call(message, "noteId"))
|
|
260239
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.noteId);
|
|
260240
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
260241
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
260242
|
+
if (message.s3Path != null && Object.hasOwnProperty.call(message, "s3Path"))
|
|
260243
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.s3Path);
|
|
260244
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
260245
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
260246
|
+
writer.raw(message.$unknowns[i]);
|
|
260247
|
+
return writer;
|
|
260248
|
+
};
|
|
260249
|
+
|
|
260250
|
+
/**
|
|
260251
|
+
* Encodes the specified GingerClinicalNoteExported message, length delimited. Does not implicitly {@link GingerClinicalNoteExported.verify|verify} messages.
|
|
260252
|
+
* @function encodeDelimited
|
|
260253
|
+
* @memberof GingerClinicalNoteExported
|
|
260254
|
+
* @static
|
|
260255
|
+
* @param {GingerClinicalNoteExported.$Properties} message GingerClinicalNoteExported message or plain object to encode
|
|
260256
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
260257
|
+
* @returns {$protobuf.Writer} Writer
|
|
260258
|
+
*/
|
|
260259
|
+
GingerClinicalNoteExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
260260
|
+
return this.encode(message, writer).ldelim();
|
|
260261
|
+
};
|
|
260262
|
+
|
|
260263
|
+
/**
|
|
260264
|
+
* Decodes a GingerClinicalNoteExported message from the specified reader or buffer.
|
|
260265
|
+
* @function decode
|
|
260266
|
+
* @memberof GingerClinicalNoteExported
|
|
260267
|
+
* @static
|
|
260268
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260269
|
+
* @param {number} [length] Message length if known beforehand
|
|
260270
|
+
* @returns {GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape} GingerClinicalNoteExported
|
|
260271
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260272
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260273
|
+
*/
|
|
260274
|
+
GingerClinicalNoteExported.decode = function decode(reader, length, _end, _depth, _target) {
|
|
260275
|
+
if (!(reader instanceof $Reader))
|
|
260276
|
+
reader = $Reader.create(reader);
|
|
260277
|
+
if (_depth === undefined)
|
|
260278
|
+
_depth = 0;
|
|
260279
|
+
if (_depth > $Reader.recursionLimit)
|
|
260280
|
+
throw Error("max depth exceeded");
|
|
260281
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.GingerClinicalNoteExported(), value;
|
|
260282
|
+
while (reader.pos < end) {
|
|
260283
|
+
var start = reader.pos;
|
|
260284
|
+
var tag = reader.tag();
|
|
260285
|
+
if (tag === _end) {
|
|
260286
|
+
_end = undefined;
|
|
260287
|
+
break;
|
|
260288
|
+
}
|
|
260289
|
+
var wireType = tag & 7;
|
|
260290
|
+
switch (tag >>>= 3) {
|
|
260291
|
+
case 1: {
|
|
260292
|
+
if (wireType !== 0)
|
|
260293
|
+
break;
|
|
260294
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
260295
|
+
message.timestamp = value;
|
|
260296
|
+
else
|
|
260297
|
+
delete message.timestamp;
|
|
260298
|
+
continue;
|
|
260299
|
+
}
|
|
260300
|
+
case 2: {
|
|
260301
|
+
if (wireType !== 2)
|
|
260302
|
+
break;
|
|
260303
|
+
if ((value = reader.string()).length)
|
|
260304
|
+
message.noteId = value;
|
|
260305
|
+
else
|
|
260306
|
+
delete message.noteId;
|
|
260307
|
+
continue;
|
|
260308
|
+
}
|
|
260309
|
+
case 3: {
|
|
260310
|
+
if (wireType !== 2)
|
|
260311
|
+
break;
|
|
260312
|
+
if ((value = reader.string()).length)
|
|
260313
|
+
message.hsUserId = value;
|
|
260314
|
+
else
|
|
260315
|
+
delete message.hsUserId;
|
|
260316
|
+
continue;
|
|
260317
|
+
}
|
|
260318
|
+
case 4: {
|
|
260319
|
+
if (wireType !== 2)
|
|
260320
|
+
break;
|
|
260321
|
+
if ((value = reader.string()).length)
|
|
260322
|
+
message.s3Path = value;
|
|
260323
|
+
else
|
|
260324
|
+
delete message.s3Path;
|
|
260325
|
+
continue;
|
|
260326
|
+
}
|
|
260327
|
+
}
|
|
260328
|
+
reader.skipType(wireType, _depth, tag);
|
|
260329
|
+
$util.makeProp(message, "$unknowns", false);
|
|
260330
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
260331
|
+
}
|
|
260332
|
+
if (_end !== undefined)
|
|
260333
|
+
throw Error("missing end group");
|
|
260334
|
+
return message;
|
|
260335
|
+
};
|
|
260336
|
+
|
|
260337
|
+
/**
|
|
260338
|
+
* Decodes a GingerClinicalNoteExported message from the specified reader or buffer, length delimited.
|
|
260339
|
+
* @function decodeDelimited
|
|
260340
|
+
* @memberof GingerClinicalNoteExported
|
|
260341
|
+
* @static
|
|
260342
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
260343
|
+
* @returns {GingerClinicalNoteExported & GingerClinicalNoteExported.$Shape} GingerClinicalNoteExported
|
|
260344
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
260345
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
260346
|
+
*/
|
|
260347
|
+
GingerClinicalNoteExported.decodeDelimited = function decodeDelimited(reader) {
|
|
260348
|
+
if (!(reader instanceof $Reader))
|
|
260349
|
+
reader = new $Reader(reader);
|
|
260350
|
+
return this.decode(reader, reader.uint32());
|
|
260351
|
+
};
|
|
260352
|
+
|
|
260353
|
+
/**
|
|
260354
|
+
* Verifies a GingerClinicalNoteExported message.
|
|
260355
|
+
* @function verify
|
|
260356
|
+
* @memberof GingerClinicalNoteExported
|
|
260357
|
+
* @static
|
|
260358
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
260359
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
260360
|
+
*/
|
|
260361
|
+
GingerClinicalNoteExported.verify = function verify(message, _depth) {
|
|
260362
|
+
if (typeof message !== "object" || message === null)
|
|
260363
|
+
return "object expected";
|
|
260364
|
+
if (_depth === undefined)
|
|
260365
|
+
_depth = 0;
|
|
260366
|
+
if (_depth > $util.recursionLimit)
|
|
260367
|
+
return "max depth exceeded";
|
|
260368
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
260369
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
260370
|
+
return "timestamp: integer|Long expected";
|
|
260371
|
+
if (message.noteId != null && message.hasOwnProperty("noteId"))
|
|
260372
|
+
if (!$util.isString(message.noteId))
|
|
260373
|
+
return "noteId: string expected";
|
|
260374
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
260375
|
+
if (!$util.isString(message.hsUserId))
|
|
260376
|
+
return "hsUserId: string expected";
|
|
260377
|
+
if (message.s3Path != null && message.hasOwnProperty("s3Path"))
|
|
260378
|
+
if (!$util.isString(message.s3Path))
|
|
260379
|
+
return "s3Path: string expected";
|
|
260380
|
+
return null;
|
|
260381
|
+
};
|
|
260382
|
+
|
|
260383
|
+
/**
|
|
260384
|
+
* Creates a GingerClinicalNoteExported message from a plain object. Also converts values to their respective internal types.
|
|
260385
|
+
* @function fromObject
|
|
260386
|
+
* @memberof GingerClinicalNoteExported
|
|
260387
|
+
* @static
|
|
260388
|
+
* @param {Object.<string,*>} object Plain object
|
|
260389
|
+
* @returns {GingerClinicalNoteExported} GingerClinicalNoteExported
|
|
260390
|
+
*/
|
|
260391
|
+
GingerClinicalNoteExported.fromObject = function fromObject(object, _depth) {
|
|
260392
|
+
if (object instanceof $root.GingerClinicalNoteExported)
|
|
260393
|
+
return object;
|
|
260394
|
+
if (_depth === undefined)
|
|
260395
|
+
_depth = 0;
|
|
260396
|
+
if (_depth > $util.recursionLimit)
|
|
260397
|
+
throw Error("max depth exceeded");
|
|
260398
|
+
var message = new $root.GingerClinicalNoteExported();
|
|
260399
|
+
if (object.timestamp != null)
|
|
260400
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
260401
|
+
if ($util.Long)
|
|
260402
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
260403
|
+
else if (typeof object.timestamp === "string")
|
|
260404
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
260405
|
+
else if (typeof object.timestamp === "number")
|
|
260406
|
+
message.timestamp = object.timestamp;
|
|
260407
|
+
else if (typeof object.timestamp === "object")
|
|
260408
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
260409
|
+
if (object.noteId != null)
|
|
260410
|
+
if (typeof object.noteId !== "string" || object.noteId.length)
|
|
260411
|
+
message.noteId = String(object.noteId);
|
|
260412
|
+
if (object.hsUserId != null)
|
|
260413
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
260414
|
+
message.hsUserId = String(object.hsUserId);
|
|
260415
|
+
if (object.s3Path != null)
|
|
260416
|
+
if (typeof object.s3Path !== "string" || object.s3Path.length)
|
|
260417
|
+
message.s3Path = String(object.s3Path);
|
|
260418
|
+
return message;
|
|
260419
|
+
};
|
|
260420
|
+
|
|
260421
|
+
/**
|
|
260422
|
+
* Creates a plain object from a GingerClinicalNoteExported message. Also converts values to other types if specified.
|
|
260423
|
+
* @function toObject
|
|
260424
|
+
* @memberof GingerClinicalNoteExported
|
|
260425
|
+
* @static
|
|
260426
|
+
* @param {GingerClinicalNoteExported} message GingerClinicalNoteExported
|
|
260427
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
260428
|
+
* @returns {Object.<string,*>} Plain object
|
|
260429
|
+
*/
|
|
260430
|
+
GingerClinicalNoteExported.toObject = function toObject(message, options) {
|
|
260431
|
+
if (!options)
|
|
260432
|
+
options = {};
|
|
260433
|
+
var object = {};
|
|
260434
|
+
if (options.defaults) {
|
|
260435
|
+
if ($util.Long) {
|
|
260436
|
+
var long = new $util.Long(0, 0, true);
|
|
260437
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
260438
|
+
} else
|
|
260439
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
260440
|
+
object.noteId = "";
|
|
260441
|
+
object.hsUserId = "";
|
|
260442
|
+
object.s3Path = "";
|
|
260443
|
+
}
|
|
260444
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
260445
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
260446
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
260447
|
+
else if (typeof message.timestamp === "number")
|
|
260448
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
260449
|
+
else
|
|
260450
|
+
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;
|
|
260451
|
+
if (message.noteId != null && message.hasOwnProperty("noteId"))
|
|
260452
|
+
object.noteId = message.noteId;
|
|
260453
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
260454
|
+
object.hsUserId = message.hsUserId;
|
|
260455
|
+
if (message.s3Path != null && message.hasOwnProperty("s3Path"))
|
|
260456
|
+
object.s3Path = message.s3Path;
|
|
260457
|
+
return object;
|
|
260458
|
+
};
|
|
260459
|
+
|
|
260460
|
+
/**
|
|
260461
|
+
* Converts this GingerClinicalNoteExported to JSON.
|
|
260462
|
+
* @function toJSON
|
|
260463
|
+
* @memberof GingerClinicalNoteExported
|
|
260464
|
+
* @instance
|
|
260465
|
+
* @returns {Object.<string,*>} JSON object
|
|
260466
|
+
*/
|
|
260467
|
+
GingerClinicalNoteExported.prototype.toJSON = function toJSON() {
|
|
260468
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
260469
|
+
};
|
|
260470
|
+
|
|
260471
|
+
/**
|
|
260472
|
+
* Gets the type url for GingerClinicalNoteExported
|
|
260473
|
+
* @function getTypeUrl
|
|
260474
|
+
* @memberof GingerClinicalNoteExported
|
|
260475
|
+
* @static
|
|
260476
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
260477
|
+
* @returns {string} The type url
|
|
260478
|
+
*/
|
|
260479
|
+
GingerClinicalNoteExported.getTypeUrl = function getTypeUrl(prefix) {
|
|
260480
|
+
if (prefix === undefined)
|
|
260481
|
+
prefix = "type.googleapis.com";
|
|
260482
|
+
return prefix + "/GingerClinicalNoteExported";
|
|
260483
|
+
};
|
|
260484
|
+
|
|
260485
|
+
return GingerClinicalNoteExported;
|
|
260486
|
+
})();
|
|
260487
|
+
|
|
260133
260488
|
/**
|
|
260134
260489
|
* GingerClinicalNoteType enum.
|
|
260135
260490
|
* @name GingerClinicalNoteType
|
package/package.json
CHANGED