@headspace/protos-events 1.634.0 → 1.636.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 +147 -294
- package/lib/index.js +454 -679
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -405,6 +405,460 @@ $root.clinical = (function() {
|
|
|
405
405
|
*/
|
|
406
406
|
var clinical = {};
|
|
407
407
|
|
|
408
|
+
/**
|
|
409
|
+
* ContactReason enum.
|
|
410
|
+
* @name clinical.ContactReason
|
|
411
|
+
* @enum {string}
|
|
412
|
+
* @property {number} CONTACT_REASON_UNKNOWN=0 CONTACT_REASON_UNKNOWN value
|
|
413
|
+
* @property {number} CONTACT_REASON_COORDINATION_OF_CARE=1 CONTACT_REASON_COORDINATION_OF_CARE value
|
|
414
|
+
* @property {number} CONTACT_REASON_OUTREACH=2 CONTACT_REASON_OUTREACH value
|
|
415
|
+
* @property {number} CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION=3 CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION value
|
|
416
|
+
* @property {number} CONTACT_REASON_OTHER=4 CONTACT_REASON_OTHER value
|
|
417
|
+
*/
|
|
418
|
+
clinical.ContactReason = (function() {
|
|
419
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
420
|
+
values[valuesById[0] = "CONTACT_REASON_UNKNOWN"] = 0;
|
|
421
|
+
values[valuesById[1] = "CONTACT_REASON_COORDINATION_OF_CARE"] = 1;
|
|
422
|
+
values[valuesById[2] = "CONTACT_REASON_OUTREACH"] = 2;
|
|
423
|
+
values[valuesById[3] = "CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION"] = 3;
|
|
424
|
+
values[valuesById[4] = "CONTACT_REASON_OTHER"] = 4;
|
|
425
|
+
return values;
|
|
426
|
+
})();
|
|
427
|
+
|
|
428
|
+
clinical.AdditionalWork = (function() {
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Properties of an AdditionalWork.
|
|
432
|
+
* @memberof clinical
|
|
433
|
+
* @interface IAdditionalWork
|
|
434
|
+
* @property {number|null} [id] AdditionalWork id
|
|
435
|
+
* @property {number|null} [gingerUserId] AdditionalWork gingerUserId
|
|
436
|
+
* @property {string|null} [hsUserId] AdditionalWork hsUserId
|
|
437
|
+
* @property {string|null} [clinicianId] AdditionalWork clinicianId
|
|
438
|
+
* @property {number|Long|null} [createdAt] AdditionalWork createdAt
|
|
439
|
+
* @property {number|Long|null} [updatedAt] AdditionalWork updatedAt
|
|
440
|
+
* @property {number|Long|null} [startedAt] AdditionalWork startedAt
|
|
441
|
+
* @property {number|null} [duration] AdditionalWork duration
|
|
442
|
+
* @property {clinical.ContactReason|null} [reasonForContact] AdditionalWork reasonForContact
|
|
443
|
+
*/
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Constructs a new AdditionalWork.
|
|
447
|
+
* @memberof clinical
|
|
448
|
+
* @classdesc Represents an AdditionalWork.
|
|
449
|
+
* @implements IAdditionalWork
|
|
450
|
+
* @constructor
|
|
451
|
+
* @param {clinical.IAdditionalWork=} [properties] Properties to set
|
|
452
|
+
*/
|
|
453
|
+
function AdditionalWork(properties) {
|
|
454
|
+
if (properties)
|
|
455
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
456
|
+
if (properties[keys[i]] != null)
|
|
457
|
+
this[keys[i]] = properties[keys[i]];
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* AdditionalWork id.
|
|
462
|
+
* @member {number} id
|
|
463
|
+
* @memberof clinical.AdditionalWork
|
|
464
|
+
* @instance
|
|
465
|
+
*/
|
|
466
|
+
AdditionalWork.prototype.id = 0;
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* AdditionalWork gingerUserId.
|
|
470
|
+
* @member {number} gingerUserId
|
|
471
|
+
* @memberof clinical.AdditionalWork
|
|
472
|
+
* @instance
|
|
473
|
+
*/
|
|
474
|
+
AdditionalWork.prototype.gingerUserId = 0;
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* AdditionalWork hsUserId.
|
|
478
|
+
* @member {string} hsUserId
|
|
479
|
+
* @memberof clinical.AdditionalWork
|
|
480
|
+
* @instance
|
|
481
|
+
*/
|
|
482
|
+
AdditionalWork.prototype.hsUserId = "";
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* AdditionalWork clinicianId.
|
|
486
|
+
* @member {string} clinicianId
|
|
487
|
+
* @memberof clinical.AdditionalWork
|
|
488
|
+
* @instance
|
|
489
|
+
*/
|
|
490
|
+
AdditionalWork.prototype.clinicianId = "";
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* AdditionalWork createdAt.
|
|
494
|
+
* @member {number|Long} createdAt
|
|
495
|
+
* @memberof clinical.AdditionalWork
|
|
496
|
+
* @instance
|
|
497
|
+
*/
|
|
498
|
+
AdditionalWork.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* AdditionalWork updatedAt.
|
|
502
|
+
* @member {number|Long} updatedAt
|
|
503
|
+
* @memberof clinical.AdditionalWork
|
|
504
|
+
* @instance
|
|
505
|
+
*/
|
|
506
|
+
AdditionalWork.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* AdditionalWork startedAt.
|
|
510
|
+
* @member {number|Long} startedAt
|
|
511
|
+
* @memberof clinical.AdditionalWork
|
|
512
|
+
* @instance
|
|
513
|
+
*/
|
|
514
|
+
AdditionalWork.prototype.startedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* AdditionalWork duration.
|
|
518
|
+
* @member {number} duration
|
|
519
|
+
* @memberof clinical.AdditionalWork
|
|
520
|
+
* @instance
|
|
521
|
+
*/
|
|
522
|
+
AdditionalWork.prototype.duration = 0;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* AdditionalWork reasonForContact.
|
|
526
|
+
* @member {clinical.ContactReason} reasonForContact
|
|
527
|
+
* @memberof clinical.AdditionalWork
|
|
528
|
+
* @instance
|
|
529
|
+
*/
|
|
530
|
+
AdditionalWork.prototype.reasonForContact = 0;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Creates a new AdditionalWork instance using the specified properties.
|
|
534
|
+
* @function create
|
|
535
|
+
* @memberof clinical.AdditionalWork
|
|
536
|
+
* @static
|
|
537
|
+
* @param {clinical.IAdditionalWork=} [properties] Properties to set
|
|
538
|
+
* @returns {clinical.AdditionalWork} AdditionalWork instance
|
|
539
|
+
*/
|
|
540
|
+
AdditionalWork.create = function create(properties) {
|
|
541
|
+
return new AdditionalWork(properties);
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Encodes the specified AdditionalWork message. Does not implicitly {@link clinical.AdditionalWork.verify|verify} messages.
|
|
546
|
+
* @function encode
|
|
547
|
+
* @memberof clinical.AdditionalWork
|
|
548
|
+
* @static
|
|
549
|
+
* @param {clinical.IAdditionalWork} message AdditionalWork message or plain object to encode
|
|
550
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
551
|
+
* @returns {$protobuf.Writer} Writer
|
|
552
|
+
*/
|
|
553
|
+
AdditionalWork.encode = function encode(message, writer) {
|
|
554
|
+
if (!writer)
|
|
555
|
+
writer = $Writer.create();
|
|
556
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
557
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
558
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
559
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
560
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
561
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
562
|
+
if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
|
|
563
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.clinicianId);
|
|
564
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
565
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
566
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
567
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
|
|
568
|
+
if (message.startedAt != null && message.hasOwnProperty("startedAt"))
|
|
569
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.startedAt);
|
|
570
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
571
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.duration);
|
|
572
|
+
if (message.reasonForContact != null && message.hasOwnProperty("reasonForContact"))
|
|
573
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.reasonForContact);
|
|
574
|
+
return writer;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Encodes the specified AdditionalWork message, length delimited. Does not implicitly {@link clinical.AdditionalWork.verify|verify} messages.
|
|
579
|
+
* @function encodeDelimited
|
|
580
|
+
* @memberof clinical.AdditionalWork
|
|
581
|
+
* @static
|
|
582
|
+
* @param {clinical.IAdditionalWork} message AdditionalWork message or plain object to encode
|
|
583
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
584
|
+
* @returns {$protobuf.Writer} Writer
|
|
585
|
+
*/
|
|
586
|
+
AdditionalWork.encodeDelimited = function encodeDelimited(message, writer) {
|
|
587
|
+
return this.encode(message, writer).ldelim();
|
|
588
|
+
};
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Decodes an AdditionalWork message from the specified reader or buffer.
|
|
592
|
+
* @function decode
|
|
593
|
+
* @memberof clinical.AdditionalWork
|
|
594
|
+
* @static
|
|
595
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
596
|
+
* @param {number} [length] Message length if known beforehand
|
|
597
|
+
* @returns {clinical.AdditionalWork} AdditionalWork
|
|
598
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
599
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
600
|
+
*/
|
|
601
|
+
AdditionalWork.decode = function decode(reader, length) {
|
|
602
|
+
if (!(reader instanceof $Reader))
|
|
603
|
+
reader = $Reader.create(reader);
|
|
604
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.AdditionalWork();
|
|
605
|
+
while (reader.pos < end) {
|
|
606
|
+
var tag = reader.uint32();
|
|
607
|
+
switch (tag >>> 3) {
|
|
608
|
+
case 1:
|
|
609
|
+
message.id = reader.uint32();
|
|
610
|
+
break;
|
|
611
|
+
case 2:
|
|
612
|
+
message.gingerUserId = reader.uint32();
|
|
613
|
+
break;
|
|
614
|
+
case 3:
|
|
615
|
+
message.hsUserId = reader.string();
|
|
616
|
+
break;
|
|
617
|
+
case 4:
|
|
618
|
+
message.clinicianId = reader.string();
|
|
619
|
+
break;
|
|
620
|
+
case 5:
|
|
621
|
+
message.createdAt = reader.uint64();
|
|
622
|
+
break;
|
|
623
|
+
case 6:
|
|
624
|
+
message.updatedAt = reader.uint64();
|
|
625
|
+
break;
|
|
626
|
+
case 7:
|
|
627
|
+
message.startedAt = reader.uint64();
|
|
628
|
+
break;
|
|
629
|
+
case 8:
|
|
630
|
+
message.duration = reader.uint32();
|
|
631
|
+
break;
|
|
632
|
+
case 9:
|
|
633
|
+
message.reasonForContact = reader.int32();
|
|
634
|
+
break;
|
|
635
|
+
default:
|
|
636
|
+
reader.skipType(tag & 7);
|
|
637
|
+
break;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
return message;
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* Decodes an AdditionalWork message from the specified reader or buffer, length delimited.
|
|
645
|
+
* @function decodeDelimited
|
|
646
|
+
* @memberof clinical.AdditionalWork
|
|
647
|
+
* @static
|
|
648
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
649
|
+
* @returns {clinical.AdditionalWork} AdditionalWork
|
|
650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
652
|
+
*/
|
|
653
|
+
AdditionalWork.decodeDelimited = function decodeDelimited(reader) {
|
|
654
|
+
if (!(reader instanceof $Reader))
|
|
655
|
+
reader = new $Reader(reader);
|
|
656
|
+
return this.decode(reader, reader.uint32());
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Verifies an AdditionalWork message.
|
|
661
|
+
* @function verify
|
|
662
|
+
* @memberof clinical.AdditionalWork
|
|
663
|
+
* @static
|
|
664
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
665
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
666
|
+
*/
|
|
667
|
+
AdditionalWork.verify = function verify(message) {
|
|
668
|
+
if (typeof message !== "object" || message === null)
|
|
669
|
+
return "object expected";
|
|
670
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
671
|
+
if (!$util.isInteger(message.id))
|
|
672
|
+
return "id: integer expected";
|
|
673
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
674
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
675
|
+
return "gingerUserId: integer expected";
|
|
676
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
677
|
+
if (!$util.isString(message.hsUserId))
|
|
678
|
+
return "hsUserId: string expected";
|
|
679
|
+
if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
|
|
680
|
+
if (!$util.isString(message.clinicianId))
|
|
681
|
+
return "clinicianId: string expected";
|
|
682
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
683
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
684
|
+
return "createdAt: integer|Long expected";
|
|
685
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
686
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
687
|
+
return "updatedAt: integer|Long expected";
|
|
688
|
+
if (message.startedAt != null && message.hasOwnProperty("startedAt"))
|
|
689
|
+
if (!$util.isInteger(message.startedAt) && !(message.startedAt && $util.isInteger(message.startedAt.low) && $util.isInteger(message.startedAt.high)))
|
|
690
|
+
return "startedAt: integer|Long expected";
|
|
691
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
692
|
+
if (!$util.isInteger(message.duration))
|
|
693
|
+
return "duration: integer expected";
|
|
694
|
+
if (message.reasonForContact != null && message.hasOwnProperty("reasonForContact"))
|
|
695
|
+
switch (message.reasonForContact) {
|
|
696
|
+
default:
|
|
697
|
+
return "reasonForContact: enum value expected";
|
|
698
|
+
case 0:
|
|
699
|
+
case 1:
|
|
700
|
+
case 2:
|
|
701
|
+
case 3:
|
|
702
|
+
case 4:
|
|
703
|
+
break;
|
|
704
|
+
}
|
|
705
|
+
return null;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Creates an AdditionalWork message from a plain object. Also converts values to their respective internal types.
|
|
710
|
+
* @function fromObject
|
|
711
|
+
* @memberof clinical.AdditionalWork
|
|
712
|
+
* @static
|
|
713
|
+
* @param {Object.<string,*>} object Plain object
|
|
714
|
+
* @returns {clinical.AdditionalWork} AdditionalWork
|
|
715
|
+
*/
|
|
716
|
+
AdditionalWork.fromObject = function fromObject(object) {
|
|
717
|
+
if (object instanceof $root.clinical.AdditionalWork)
|
|
718
|
+
return object;
|
|
719
|
+
var message = new $root.clinical.AdditionalWork();
|
|
720
|
+
if (object.id != null)
|
|
721
|
+
message.id = object.id >>> 0;
|
|
722
|
+
if (object.gingerUserId != null)
|
|
723
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
724
|
+
if (object.hsUserId != null)
|
|
725
|
+
message.hsUserId = String(object.hsUserId);
|
|
726
|
+
if (object.clinicianId != null)
|
|
727
|
+
message.clinicianId = String(object.clinicianId);
|
|
728
|
+
if (object.createdAt != null)
|
|
729
|
+
if ($util.Long)
|
|
730
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
731
|
+
else if (typeof object.createdAt === "string")
|
|
732
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
733
|
+
else if (typeof object.createdAt === "number")
|
|
734
|
+
message.createdAt = object.createdAt;
|
|
735
|
+
else if (typeof object.createdAt === "object")
|
|
736
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
737
|
+
if (object.updatedAt != null)
|
|
738
|
+
if ($util.Long)
|
|
739
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
740
|
+
else if (typeof object.updatedAt === "string")
|
|
741
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
742
|
+
else if (typeof object.updatedAt === "number")
|
|
743
|
+
message.updatedAt = object.updatedAt;
|
|
744
|
+
else if (typeof object.updatedAt === "object")
|
|
745
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
746
|
+
if (object.startedAt != null)
|
|
747
|
+
if ($util.Long)
|
|
748
|
+
(message.startedAt = $util.Long.fromValue(object.startedAt)).unsigned = true;
|
|
749
|
+
else if (typeof object.startedAt === "string")
|
|
750
|
+
message.startedAt = parseInt(object.startedAt, 10);
|
|
751
|
+
else if (typeof object.startedAt === "number")
|
|
752
|
+
message.startedAt = object.startedAt;
|
|
753
|
+
else if (typeof object.startedAt === "object")
|
|
754
|
+
message.startedAt = new $util.LongBits(object.startedAt.low >>> 0, object.startedAt.high >>> 0).toNumber(true);
|
|
755
|
+
if (object.duration != null)
|
|
756
|
+
message.duration = object.duration >>> 0;
|
|
757
|
+
switch (object.reasonForContact) {
|
|
758
|
+
case "CONTACT_REASON_UNKNOWN":
|
|
759
|
+
case 0:
|
|
760
|
+
message.reasonForContact = 0;
|
|
761
|
+
break;
|
|
762
|
+
case "CONTACT_REASON_COORDINATION_OF_CARE":
|
|
763
|
+
case 1:
|
|
764
|
+
message.reasonForContact = 1;
|
|
765
|
+
break;
|
|
766
|
+
case "CONTACT_REASON_OUTREACH":
|
|
767
|
+
case 2:
|
|
768
|
+
message.reasonForContact = 2;
|
|
769
|
+
break;
|
|
770
|
+
case "CONTACT_REASON_MEMBER_NO_SHOW_OR_LATE_CANCELLATION":
|
|
771
|
+
case 3:
|
|
772
|
+
message.reasonForContact = 3;
|
|
773
|
+
break;
|
|
774
|
+
case "CONTACT_REASON_OTHER":
|
|
775
|
+
case 4:
|
|
776
|
+
message.reasonForContact = 4;
|
|
777
|
+
break;
|
|
778
|
+
}
|
|
779
|
+
return message;
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Creates a plain object from an AdditionalWork message. Also converts values to other types if specified.
|
|
784
|
+
* @function toObject
|
|
785
|
+
* @memberof clinical.AdditionalWork
|
|
786
|
+
* @static
|
|
787
|
+
* @param {clinical.AdditionalWork} message AdditionalWork
|
|
788
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
789
|
+
* @returns {Object.<string,*>} Plain object
|
|
790
|
+
*/
|
|
791
|
+
AdditionalWork.toObject = function toObject(message, options) {
|
|
792
|
+
if (!options)
|
|
793
|
+
options = {};
|
|
794
|
+
var object = {};
|
|
795
|
+
if (options.defaults) {
|
|
796
|
+
object.id = 0;
|
|
797
|
+
object.gingerUserId = 0;
|
|
798
|
+
object.hsUserId = "";
|
|
799
|
+
object.clinicianId = "";
|
|
800
|
+
if ($util.Long) {
|
|
801
|
+
var long = new $util.Long(0, 0, true);
|
|
802
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
803
|
+
} else
|
|
804
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
805
|
+
if ($util.Long) {
|
|
806
|
+
var long = new $util.Long(0, 0, true);
|
|
807
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
808
|
+
} else
|
|
809
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
810
|
+
if ($util.Long) {
|
|
811
|
+
var long = new $util.Long(0, 0, true);
|
|
812
|
+
object.startedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
813
|
+
} else
|
|
814
|
+
object.startedAt = options.longs === String ? "0" : 0;
|
|
815
|
+
object.duration = 0;
|
|
816
|
+
object.reasonForContact = options.enums === String ? "CONTACT_REASON_UNKNOWN" : 0;
|
|
817
|
+
}
|
|
818
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
819
|
+
object.id = message.id;
|
|
820
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
821
|
+
object.gingerUserId = message.gingerUserId;
|
|
822
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
823
|
+
object.hsUserId = message.hsUserId;
|
|
824
|
+
if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
|
|
825
|
+
object.clinicianId = message.clinicianId;
|
|
826
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
827
|
+
if (typeof message.createdAt === "number")
|
|
828
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
829
|
+
else
|
|
830
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
831
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
832
|
+
if (typeof message.updatedAt === "number")
|
|
833
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
834
|
+
else
|
|
835
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
836
|
+
if (message.startedAt != null && message.hasOwnProperty("startedAt"))
|
|
837
|
+
if (typeof message.startedAt === "number")
|
|
838
|
+
object.startedAt = options.longs === String ? String(message.startedAt) : message.startedAt;
|
|
839
|
+
else
|
|
840
|
+
object.startedAt = options.longs === String ? $util.Long.prototype.toString.call(message.startedAt) : options.longs === Number ? new $util.LongBits(message.startedAt.low >>> 0, message.startedAt.high >>> 0).toNumber(true) : message.startedAt;
|
|
841
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
842
|
+
object.duration = message.duration;
|
|
843
|
+
if (message.reasonForContact != null && message.hasOwnProperty("reasonForContact"))
|
|
844
|
+
object.reasonForContact = options.enums === String ? $root.clinical.ContactReason[message.reasonForContact] : message.reasonForContact;
|
|
845
|
+
return object;
|
|
846
|
+
};
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Converts this AdditionalWork to JSON.
|
|
850
|
+
* @function toJSON
|
|
851
|
+
* @memberof clinical.AdditionalWork
|
|
852
|
+
* @instance
|
|
853
|
+
* @returns {Object.<string,*>} JSON object
|
|
854
|
+
*/
|
|
855
|
+
AdditionalWork.prototype.toJSON = function toJSON() {
|
|
856
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
857
|
+
};
|
|
858
|
+
|
|
859
|
+
return AdditionalWork;
|
|
860
|
+
})();
|
|
861
|
+
|
|
408
862
|
clinical.ClinicalAvailability = (function() {
|
|
409
863
|
|
|
410
864
|
/**
|
|
@@ -160688,685 +161142,6 @@ $root.GoogleSubscriptionExpired = (function() {
|
|
|
160688
161142
|
return GoogleSubscriptionExpired;
|
|
160689
161143
|
})();
|
|
160690
161144
|
|
|
160691
|
-
$root.GuidedProgramCreated = (function() {
|
|
160692
|
-
|
|
160693
|
-
/**
|
|
160694
|
-
* Properties of a GuidedProgramCreated.
|
|
160695
|
-
* @name IGuidedProgramCreated
|
|
160696
|
-
* @interface IGuidedProgramCreated
|
|
160697
|
-
* @property {string|null} [slug] GuidedProgramCreated slug
|
|
160698
|
-
* @property {number|Long|null} [createdAt] GuidedProgramCreated createdAt
|
|
160699
|
-
* @property {number|null} [thumbnailMediaId] GuidedProgramCreated thumbnailMediaId
|
|
160700
|
-
*/
|
|
160701
|
-
|
|
160702
|
-
/**
|
|
160703
|
-
* Constructs a new GuidedProgramCreated.
|
|
160704
|
-
* @name GuidedProgramCreated
|
|
160705
|
-
* @classdesc Represents a GuidedProgramCreated.
|
|
160706
|
-
* @implements IGuidedProgramCreated
|
|
160707
|
-
* @constructor
|
|
160708
|
-
* @param {IGuidedProgramCreated=} [properties] Properties to set
|
|
160709
|
-
*/
|
|
160710
|
-
function GuidedProgramCreated(properties) {
|
|
160711
|
-
if (properties)
|
|
160712
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
160713
|
-
if (properties[keys[i]] != null)
|
|
160714
|
-
this[keys[i]] = properties[keys[i]];
|
|
160715
|
-
}
|
|
160716
|
-
|
|
160717
|
-
/**
|
|
160718
|
-
* GuidedProgramCreated slug.
|
|
160719
|
-
* @member {string} slug
|
|
160720
|
-
* @memberof GuidedProgramCreated
|
|
160721
|
-
* @instance
|
|
160722
|
-
*/
|
|
160723
|
-
GuidedProgramCreated.prototype.slug = "";
|
|
160724
|
-
|
|
160725
|
-
/**
|
|
160726
|
-
* GuidedProgramCreated createdAt.
|
|
160727
|
-
* @member {number|Long} createdAt
|
|
160728
|
-
* @memberof GuidedProgramCreated
|
|
160729
|
-
* @instance
|
|
160730
|
-
*/
|
|
160731
|
-
GuidedProgramCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
160732
|
-
|
|
160733
|
-
/**
|
|
160734
|
-
* GuidedProgramCreated thumbnailMediaId.
|
|
160735
|
-
* @member {number} thumbnailMediaId
|
|
160736
|
-
* @memberof GuidedProgramCreated
|
|
160737
|
-
* @instance
|
|
160738
|
-
*/
|
|
160739
|
-
GuidedProgramCreated.prototype.thumbnailMediaId = 0;
|
|
160740
|
-
|
|
160741
|
-
/**
|
|
160742
|
-
* Creates a new GuidedProgramCreated instance using the specified properties.
|
|
160743
|
-
* @function create
|
|
160744
|
-
* @memberof GuidedProgramCreated
|
|
160745
|
-
* @static
|
|
160746
|
-
* @param {IGuidedProgramCreated=} [properties] Properties to set
|
|
160747
|
-
* @returns {GuidedProgramCreated} GuidedProgramCreated instance
|
|
160748
|
-
*/
|
|
160749
|
-
GuidedProgramCreated.create = function create(properties) {
|
|
160750
|
-
return new GuidedProgramCreated(properties);
|
|
160751
|
-
};
|
|
160752
|
-
|
|
160753
|
-
/**
|
|
160754
|
-
* Encodes the specified GuidedProgramCreated message. Does not implicitly {@link GuidedProgramCreated.verify|verify} messages.
|
|
160755
|
-
* @function encode
|
|
160756
|
-
* @memberof GuidedProgramCreated
|
|
160757
|
-
* @static
|
|
160758
|
-
* @param {IGuidedProgramCreated} message GuidedProgramCreated message or plain object to encode
|
|
160759
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
160760
|
-
* @returns {$protobuf.Writer} Writer
|
|
160761
|
-
*/
|
|
160762
|
-
GuidedProgramCreated.encode = function encode(message, writer) {
|
|
160763
|
-
if (!writer)
|
|
160764
|
-
writer = $Writer.create();
|
|
160765
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
160766
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
160767
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
160768
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.createdAt);
|
|
160769
|
-
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
160770
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.thumbnailMediaId);
|
|
160771
|
-
return writer;
|
|
160772
|
-
};
|
|
160773
|
-
|
|
160774
|
-
/**
|
|
160775
|
-
* Encodes the specified GuidedProgramCreated message, length delimited. Does not implicitly {@link GuidedProgramCreated.verify|verify} messages.
|
|
160776
|
-
* @function encodeDelimited
|
|
160777
|
-
* @memberof GuidedProgramCreated
|
|
160778
|
-
* @static
|
|
160779
|
-
* @param {IGuidedProgramCreated} message GuidedProgramCreated message or plain object to encode
|
|
160780
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
160781
|
-
* @returns {$protobuf.Writer} Writer
|
|
160782
|
-
*/
|
|
160783
|
-
GuidedProgramCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
160784
|
-
return this.encode(message, writer).ldelim();
|
|
160785
|
-
};
|
|
160786
|
-
|
|
160787
|
-
/**
|
|
160788
|
-
* Decodes a GuidedProgramCreated message from the specified reader or buffer.
|
|
160789
|
-
* @function decode
|
|
160790
|
-
* @memberof GuidedProgramCreated
|
|
160791
|
-
* @static
|
|
160792
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
160793
|
-
* @param {number} [length] Message length if known beforehand
|
|
160794
|
-
* @returns {GuidedProgramCreated} GuidedProgramCreated
|
|
160795
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
160796
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
160797
|
-
*/
|
|
160798
|
-
GuidedProgramCreated.decode = function decode(reader, length) {
|
|
160799
|
-
if (!(reader instanceof $Reader))
|
|
160800
|
-
reader = $Reader.create(reader);
|
|
160801
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GuidedProgramCreated();
|
|
160802
|
-
while (reader.pos < end) {
|
|
160803
|
-
var tag = reader.uint32();
|
|
160804
|
-
switch (tag >>> 3) {
|
|
160805
|
-
case 1:
|
|
160806
|
-
message.slug = reader.string();
|
|
160807
|
-
break;
|
|
160808
|
-
case 2:
|
|
160809
|
-
message.createdAt = reader.uint64();
|
|
160810
|
-
break;
|
|
160811
|
-
case 3:
|
|
160812
|
-
message.thumbnailMediaId = reader.uint32();
|
|
160813
|
-
break;
|
|
160814
|
-
default:
|
|
160815
|
-
reader.skipType(tag & 7);
|
|
160816
|
-
break;
|
|
160817
|
-
}
|
|
160818
|
-
}
|
|
160819
|
-
return message;
|
|
160820
|
-
};
|
|
160821
|
-
|
|
160822
|
-
/**
|
|
160823
|
-
* Decodes a GuidedProgramCreated message from the specified reader or buffer, length delimited.
|
|
160824
|
-
* @function decodeDelimited
|
|
160825
|
-
* @memberof GuidedProgramCreated
|
|
160826
|
-
* @static
|
|
160827
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
160828
|
-
* @returns {GuidedProgramCreated} GuidedProgramCreated
|
|
160829
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
160830
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
160831
|
-
*/
|
|
160832
|
-
GuidedProgramCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
160833
|
-
if (!(reader instanceof $Reader))
|
|
160834
|
-
reader = new $Reader(reader);
|
|
160835
|
-
return this.decode(reader, reader.uint32());
|
|
160836
|
-
};
|
|
160837
|
-
|
|
160838
|
-
/**
|
|
160839
|
-
* Verifies a GuidedProgramCreated message.
|
|
160840
|
-
* @function verify
|
|
160841
|
-
* @memberof GuidedProgramCreated
|
|
160842
|
-
* @static
|
|
160843
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
160844
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
160845
|
-
*/
|
|
160846
|
-
GuidedProgramCreated.verify = function verify(message) {
|
|
160847
|
-
if (typeof message !== "object" || message === null)
|
|
160848
|
-
return "object expected";
|
|
160849
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
160850
|
-
if (!$util.isString(message.slug))
|
|
160851
|
-
return "slug: string expected";
|
|
160852
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
160853
|
-
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
160854
|
-
return "createdAt: integer|Long expected";
|
|
160855
|
-
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
160856
|
-
if (!$util.isInteger(message.thumbnailMediaId))
|
|
160857
|
-
return "thumbnailMediaId: integer expected";
|
|
160858
|
-
return null;
|
|
160859
|
-
};
|
|
160860
|
-
|
|
160861
|
-
/**
|
|
160862
|
-
* Creates a GuidedProgramCreated message from a plain object. Also converts values to their respective internal types.
|
|
160863
|
-
* @function fromObject
|
|
160864
|
-
* @memberof GuidedProgramCreated
|
|
160865
|
-
* @static
|
|
160866
|
-
* @param {Object.<string,*>} object Plain object
|
|
160867
|
-
* @returns {GuidedProgramCreated} GuidedProgramCreated
|
|
160868
|
-
*/
|
|
160869
|
-
GuidedProgramCreated.fromObject = function fromObject(object) {
|
|
160870
|
-
if (object instanceof $root.GuidedProgramCreated)
|
|
160871
|
-
return object;
|
|
160872
|
-
var message = new $root.GuidedProgramCreated();
|
|
160873
|
-
if (object.slug != null)
|
|
160874
|
-
message.slug = String(object.slug);
|
|
160875
|
-
if (object.createdAt != null)
|
|
160876
|
-
if ($util.Long)
|
|
160877
|
-
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
160878
|
-
else if (typeof object.createdAt === "string")
|
|
160879
|
-
message.createdAt = parseInt(object.createdAt, 10);
|
|
160880
|
-
else if (typeof object.createdAt === "number")
|
|
160881
|
-
message.createdAt = object.createdAt;
|
|
160882
|
-
else if (typeof object.createdAt === "object")
|
|
160883
|
-
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
160884
|
-
if (object.thumbnailMediaId != null)
|
|
160885
|
-
message.thumbnailMediaId = object.thumbnailMediaId >>> 0;
|
|
160886
|
-
return message;
|
|
160887
|
-
};
|
|
160888
|
-
|
|
160889
|
-
/**
|
|
160890
|
-
* Creates a plain object from a GuidedProgramCreated message. Also converts values to other types if specified.
|
|
160891
|
-
* @function toObject
|
|
160892
|
-
* @memberof GuidedProgramCreated
|
|
160893
|
-
* @static
|
|
160894
|
-
* @param {GuidedProgramCreated} message GuidedProgramCreated
|
|
160895
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
160896
|
-
* @returns {Object.<string,*>} Plain object
|
|
160897
|
-
*/
|
|
160898
|
-
GuidedProgramCreated.toObject = function toObject(message, options) {
|
|
160899
|
-
if (!options)
|
|
160900
|
-
options = {};
|
|
160901
|
-
var object = {};
|
|
160902
|
-
if (options.defaults) {
|
|
160903
|
-
object.slug = "";
|
|
160904
|
-
if ($util.Long) {
|
|
160905
|
-
var long = new $util.Long(0, 0, true);
|
|
160906
|
-
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
160907
|
-
} else
|
|
160908
|
-
object.createdAt = options.longs === String ? "0" : 0;
|
|
160909
|
-
object.thumbnailMediaId = 0;
|
|
160910
|
-
}
|
|
160911
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
160912
|
-
object.slug = message.slug;
|
|
160913
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
160914
|
-
if (typeof message.createdAt === "number")
|
|
160915
|
-
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
160916
|
-
else
|
|
160917
|
-
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
160918
|
-
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
160919
|
-
object.thumbnailMediaId = message.thumbnailMediaId;
|
|
160920
|
-
return object;
|
|
160921
|
-
};
|
|
160922
|
-
|
|
160923
|
-
/**
|
|
160924
|
-
* Converts this GuidedProgramCreated to JSON.
|
|
160925
|
-
* @function toJSON
|
|
160926
|
-
* @memberof GuidedProgramCreated
|
|
160927
|
-
* @instance
|
|
160928
|
-
* @returns {Object.<string,*>} JSON object
|
|
160929
|
-
*/
|
|
160930
|
-
GuidedProgramCreated.prototype.toJSON = function toJSON() {
|
|
160931
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
160932
|
-
};
|
|
160933
|
-
|
|
160934
|
-
return GuidedProgramCreated;
|
|
160935
|
-
})();
|
|
160936
|
-
|
|
160937
|
-
$root.GuidedProgramUpdated = (function() {
|
|
160938
|
-
|
|
160939
|
-
/**
|
|
160940
|
-
* Properties of a GuidedProgramUpdated.
|
|
160941
|
-
* @name IGuidedProgramUpdated
|
|
160942
|
-
* @interface IGuidedProgramUpdated
|
|
160943
|
-
* @property {string|null} [slug] GuidedProgramUpdated slug
|
|
160944
|
-
* @property {number|Long|null} [updatedAt] GuidedProgramUpdated updatedAt
|
|
160945
|
-
* @property {number|null} [thumbnailMediaId] GuidedProgramUpdated thumbnailMediaId
|
|
160946
|
-
*/
|
|
160947
|
-
|
|
160948
|
-
/**
|
|
160949
|
-
* Constructs a new GuidedProgramUpdated.
|
|
160950
|
-
* @name GuidedProgramUpdated
|
|
160951
|
-
* @classdesc Represents a GuidedProgramUpdated.
|
|
160952
|
-
* @implements IGuidedProgramUpdated
|
|
160953
|
-
* @constructor
|
|
160954
|
-
* @param {IGuidedProgramUpdated=} [properties] Properties to set
|
|
160955
|
-
*/
|
|
160956
|
-
function GuidedProgramUpdated(properties) {
|
|
160957
|
-
if (properties)
|
|
160958
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
160959
|
-
if (properties[keys[i]] != null)
|
|
160960
|
-
this[keys[i]] = properties[keys[i]];
|
|
160961
|
-
}
|
|
160962
|
-
|
|
160963
|
-
/**
|
|
160964
|
-
* GuidedProgramUpdated slug.
|
|
160965
|
-
* @member {string} slug
|
|
160966
|
-
* @memberof GuidedProgramUpdated
|
|
160967
|
-
* @instance
|
|
160968
|
-
*/
|
|
160969
|
-
GuidedProgramUpdated.prototype.slug = "";
|
|
160970
|
-
|
|
160971
|
-
/**
|
|
160972
|
-
* GuidedProgramUpdated updatedAt.
|
|
160973
|
-
* @member {number|Long} updatedAt
|
|
160974
|
-
* @memberof GuidedProgramUpdated
|
|
160975
|
-
* @instance
|
|
160976
|
-
*/
|
|
160977
|
-
GuidedProgramUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
160978
|
-
|
|
160979
|
-
/**
|
|
160980
|
-
* GuidedProgramUpdated thumbnailMediaId.
|
|
160981
|
-
* @member {number} thumbnailMediaId
|
|
160982
|
-
* @memberof GuidedProgramUpdated
|
|
160983
|
-
* @instance
|
|
160984
|
-
*/
|
|
160985
|
-
GuidedProgramUpdated.prototype.thumbnailMediaId = 0;
|
|
160986
|
-
|
|
160987
|
-
/**
|
|
160988
|
-
* Creates a new GuidedProgramUpdated instance using the specified properties.
|
|
160989
|
-
* @function create
|
|
160990
|
-
* @memberof GuidedProgramUpdated
|
|
160991
|
-
* @static
|
|
160992
|
-
* @param {IGuidedProgramUpdated=} [properties] Properties to set
|
|
160993
|
-
* @returns {GuidedProgramUpdated} GuidedProgramUpdated instance
|
|
160994
|
-
*/
|
|
160995
|
-
GuidedProgramUpdated.create = function create(properties) {
|
|
160996
|
-
return new GuidedProgramUpdated(properties);
|
|
160997
|
-
};
|
|
160998
|
-
|
|
160999
|
-
/**
|
|
161000
|
-
* Encodes the specified GuidedProgramUpdated message. Does not implicitly {@link GuidedProgramUpdated.verify|verify} messages.
|
|
161001
|
-
* @function encode
|
|
161002
|
-
* @memberof GuidedProgramUpdated
|
|
161003
|
-
* @static
|
|
161004
|
-
* @param {IGuidedProgramUpdated} message GuidedProgramUpdated message or plain object to encode
|
|
161005
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
161006
|
-
* @returns {$protobuf.Writer} Writer
|
|
161007
|
-
*/
|
|
161008
|
-
GuidedProgramUpdated.encode = function encode(message, writer) {
|
|
161009
|
-
if (!writer)
|
|
161010
|
-
writer = $Writer.create();
|
|
161011
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
161012
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
161013
|
-
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
161014
|
-
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
|
|
161015
|
-
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
161016
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.thumbnailMediaId);
|
|
161017
|
-
return writer;
|
|
161018
|
-
};
|
|
161019
|
-
|
|
161020
|
-
/**
|
|
161021
|
-
* Encodes the specified GuidedProgramUpdated message, length delimited. Does not implicitly {@link GuidedProgramUpdated.verify|verify} messages.
|
|
161022
|
-
* @function encodeDelimited
|
|
161023
|
-
* @memberof GuidedProgramUpdated
|
|
161024
|
-
* @static
|
|
161025
|
-
* @param {IGuidedProgramUpdated} message GuidedProgramUpdated message or plain object to encode
|
|
161026
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
161027
|
-
* @returns {$protobuf.Writer} Writer
|
|
161028
|
-
*/
|
|
161029
|
-
GuidedProgramUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
161030
|
-
return this.encode(message, writer).ldelim();
|
|
161031
|
-
};
|
|
161032
|
-
|
|
161033
|
-
/**
|
|
161034
|
-
* Decodes a GuidedProgramUpdated message from the specified reader or buffer.
|
|
161035
|
-
* @function decode
|
|
161036
|
-
* @memberof GuidedProgramUpdated
|
|
161037
|
-
* @static
|
|
161038
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
161039
|
-
* @param {number} [length] Message length if known beforehand
|
|
161040
|
-
* @returns {GuidedProgramUpdated} GuidedProgramUpdated
|
|
161041
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
161042
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
161043
|
-
*/
|
|
161044
|
-
GuidedProgramUpdated.decode = function decode(reader, length) {
|
|
161045
|
-
if (!(reader instanceof $Reader))
|
|
161046
|
-
reader = $Reader.create(reader);
|
|
161047
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GuidedProgramUpdated();
|
|
161048
|
-
while (reader.pos < end) {
|
|
161049
|
-
var tag = reader.uint32();
|
|
161050
|
-
switch (tag >>> 3) {
|
|
161051
|
-
case 1:
|
|
161052
|
-
message.slug = reader.string();
|
|
161053
|
-
break;
|
|
161054
|
-
case 2:
|
|
161055
|
-
message.updatedAt = reader.uint64();
|
|
161056
|
-
break;
|
|
161057
|
-
case 3:
|
|
161058
|
-
message.thumbnailMediaId = reader.uint32();
|
|
161059
|
-
break;
|
|
161060
|
-
default:
|
|
161061
|
-
reader.skipType(tag & 7);
|
|
161062
|
-
break;
|
|
161063
|
-
}
|
|
161064
|
-
}
|
|
161065
|
-
return message;
|
|
161066
|
-
};
|
|
161067
|
-
|
|
161068
|
-
/**
|
|
161069
|
-
* Decodes a GuidedProgramUpdated message from the specified reader or buffer, length delimited.
|
|
161070
|
-
* @function decodeDelimited
|
|
161071
|
-
* @memberof GuidedProgramUpdated
|
|
161072
|
-
* @static
|
|
161073
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
161074
|
-
* @returns {GuidedProgramUpdated} GuidedProgramUpdated
|
|
161075
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
161076
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
161077
|
-
*/
|
|
161078
|
-
GuidedProgramUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
161079
|
-
if (!(reader instanceof $Reader))
|
|
161080
|
-
reader = new $Reader(reader);
|
|
161081
|
-
return this.decode(reader, reader.uint32());
|
|
161082
|
-
};
|
|
161083
|
-
|
|
161084
|
-
/**
|
|
161085
|
-
* Verifies a GuidedProgramUpdated message.
|
|
161086
|
-
* @function verify
|
|
161087
|
-
* @memberof GuidedProgramUpdated
|
|
161088
|
-
* @static
|
|
161089
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
161090
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
161091
|
-
*/
|
|
161092
|
-
GuidedProgramUpdated.verify = function verify(message) {
|
|
161093
|
-
if (typeof message !== "object" || message === null)
|
|
161094
|
-
return "object expected";
|
|
161095
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
161096
|
-
if (!$util.isString(message.slug))
|
|
161097
|
-
return "slug: string expected";
|
|
161098
|
-
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
161099
|
-
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
161100
|
-
return "updatedAt: integer|Long expected";
|
|
161101
|
-
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
161102
|
-
if (!$util.isInteger(message.thumbnailMediaId))
|
|
161103
|
-
return "thumbnailMediaId: integer expected";
|
|
161104
|
-
return null;
|
|
161105
|
-
};
|
|
161106
|
-
|
|
161107
|
-
/**
|
|
161108
|
-
* Creates a GuidedProgramUpdated message from a plain object. Also converts values to their respective internal types.
|
|
161109
|
-
* @function fromObject
|
|
161110
|
-
* @memberof GuidedProgramUpdated
|
|
161111
|
-
* @static
|
|
161112
|
-
* @param {Object.<string,*>} object Plain object
|
|
161113
|
-
* @returns {GuidedProgramUpdated} GuidedProgramUpdated
|
|
161114
|
-
*/
|
|
161115
|
-
GuidedProgramUpdated.fromObject = function fromObject(object) {
|
|
161116
|
-
if (object instanceof $root.GuidedProgramUpdated)
|
|
161117
|
-
return object;
|
|
161118
|
-
var message = new $root.GuidedProgramUpdated();
|
|
161119
|
-
if (object.slug != null)
|
|
161120
|
-
message.slug = String(object.slug);
|
|
161121
|
-
if (object.updatedAt != null)
|
|
161122
|
-
if ($util.Long)
|
|
161123
|
-
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
161124
|
-
else if (typeof object.updatedAt === "string")
|
|
161125
|
-
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
161126
|
-
else if (typeof object.updatedAt === "number")
|
|
161127
|
-
message.updatedAt = object.updatedAt;
|
|
161128
|
-
else if (typeof object.updatedAt === "object")
|
|
161129
|
-
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
161130
|
-
if (object.thumbnailMediaId != null)
|
|
161131
|
-
message.thumbnailMediaId = object.thumbnailMediaId >>> 0;
|
|
161132
|
-
return message;
|
|
161133
|
-
};
|
|
161134
|
-
|
|
161135
|
-
/**
|
|
161136
|
-
* Creates a plain object from a GuidedProgramUpdated message. Also converts values to other types if specified.
|
|
161137
|
-
* @function toObject
|
|
161138
|
-
* @memberof GuidedProgramUpdated
|
|
161139
|
-
* @static
|
|
161140
|
-
* @param {GuidedProgramUpdated} message GuidedProgramUpdated
|
|
161141
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
161142
|
-
* @returns {Object.<string,*>} Plain object
|
|
161143
|
-
*/
|
|
161144
|
-
GuidedProgramUpdated.toObject = function toObject(message, options) {
|
|
161145
|
-
if (!options)
|
|
161146
|
-
options = {};
|
|
161147
|
-
var object = {};
|
|
161148
|
-
if (options.defaults) {
|
|
161149
|
-
object.slug = "";
|
|
161150
|
-
if ($util.Long) {
|
|
161151
|
-
var long = new $util.Long(0, 0, true);
|
|
161152
|
-
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
161153
|
-
} else
|
|
161154
|
-
object.updatedAt = options.longs === String ? "0" : 0;
|
|
161155
|
-
object.thumbnailMediaId = 0;
|
|
161156
|
-
}
|
|
161157
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
161158
|
-
object.slug = message.slug;
|
|
161159
|
-
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
161160
|
-
if (typeof message.updatedAt === "number")
|
|
161161
|
-
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
161162
|
-
else
|
|
161163
|
-
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
161164
|
-
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
161165
|
-
object.thumbnailMediaId = message.thumbnailMediaId;
|
|
161166
|
-
return object;
|
|
161167
|
-
};
|
|
161168
|
-
|
|
161169
|
-
/**
|
|
161170
|
-
* Converts this GuidedProgramUpdated to JSON.
|
|
161171
|
-
* @function toJSON
|
|
161172
|
-
* @memberof GuidedProgramUpdated
|
|
161173
|
-
* @instance
|
|
161174
|
-
* @returns {Object.<string,*>} JSON object
|
|
161175
|
-
*/
|
|
161176
|
-
GuidedProgramUpdated.prototype.toJSON = function toJSON() {
|
|
161177
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
161178
|
-
};
|
|
161179
|
-
|
|
161180
|
-
return GuidedProgramUpdated;
|
|
161181
|
-
})();
|
|
161182
|
-
|
|
161183
|
-
$root.GuidedProgramDeleted = (function() {
|
|
161184
|
-
|
|
161185
|
-
/**
|
|
161186
|
-
* Properties of a GuidedProgramDeleted.
|
|
161187
|
-
* @name IGuidedProgramDeleted
|
|
161188
|
-
* @interface IGuidedProgramDeleted
|
|
161189
|
-
* @property {string|null} [slug] GuidedProgramDeleted slug
|
|
161190
|
-
*/
|
|
161191
|
-
|
|
161192
|
-
/**
|
|
161193
|
-
* Constructs a new GuidedProgramDeleted.
|
|
161194
|
-
* @name GuidedProgramDeleted
|
|
161195
|
-
* @classdesc Represents a GuidedProgramDeleted.
|
|
161196
|
-
* @implements IGuidedProgramDeleted
|
|
161197
|
-
* @constructor
|
|
161198
|
-
* @param {IGuidedProgramDeleted=} [properties] Properties to set
|
|
161199
|
-
*/
|
|
161200
|
-
function GuidedProgramDeleted(properties) {
|
|
161201
|
-
if (properties)
|
|
161202
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
161203
|
-
if (properties[keys[i]] != null)
|
|
161204
|
-
this[keys[i]] = properties[keys[i]];
|
|
161205
|
-
}
|
|
161206
|
-
|
|
161207
|
-
/**
|
|
161208
|
-
* GuidedProgramDeleted slug.
|
|
161209
|
-
* @member {string} slug
|
|
161210
|
-
* @memberof GuidedProgramDeleted
|
|
161211
|
-
* @instance
|
|
161212
|
-
*/
|
|
161213
|
-
GuidedProgramDeleted.prototype.slug = "";
|
|
161214
|
-
|
|
161215
|
-
/**
|
|
161216
|
-
* Creates a new GuidedProgramDeleted instance using the specified properties.
|
|
161217
|
-
* @function create
|
|
161218
|
-
* @memberof GuidedProgramDeleted
|
|
161219
|
-
* @static
|
|
161220
|
-
* @param {IGuidedProgramDeleted=} [properties] Properties to set
|
|
161221
|
-
* @returns {GuidedProgramDeleted} GuidedProgramDeleted instance
|
|
161222
|
-
*/
|
|
161223
|
-
GuidedProgramDeleted.create = function create(properties) {
|
|
161224
|
-
return new GuidedProgramDeleted(properties);
|
|
161225
|
-
};
|
|
161226
|
-
|
|
161227
|
-
/**
|
|
161228
|
-
* Encodes the specified GuidedProgramDeleted message. Does not implicitly {@link GuidedProgramDeleted.verify|verify} messages.
|
|
161229
|
-
* @function encode
|
|
161230
|
-
* @memberof GuidedProgramDeleted
|
|
161231
|
-
* @static
|
|
161232
|
-
* @param {IGuidedProgramDeleted} message GuidedProgramDeleted message or plain object to encode
|
|
161233
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
161234
|
-
* @returns {$protobuf.Writer} Writer
|
|
161235
|
-
*/
|
|
161236
|
-
GuidedProgramDeleted.encode = function encode(message, writer) {
|
|
161237
|
-
if (!writer)
|
|
161238
|
-
writer = $Writer.create();
|
|
161239
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
161240
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
161241
|
-
return writer;
|
|
161242
|
-
};
|
|
161243
|
-
|
|
161244
|
-
/**
|
|
161245
|
-
* Encodes the specified GuidedProgramDeleted message, length delimited. Does not implicitly {@link GuidedProgramDeleted.verify|verify} messages.
|
|
161246
|
-
* @function encodeDelimited
|
|
161247
|
-
* @memberof GuidedProgramDeleted
|
|
161248
|
-
* @static
|
|
161249
|
-
* @param {IGuidedProgramDeleted} message GuidedProgramDeleted message or plain object to encode
|
|
161250
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
161251
|
-
* @returns {$protobuf.Writer} Writer
|
|
161252
|
-
*/
|
|
161253
|
-
GuidedProgramDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
161254
|
-
return this.encode(message, writer).ldelim();
|
|
161255
|
-
};
|
|
161256
|
-
|
|
161257
|
-
/**
|
|
161258
|
-
* Decodes a GuidedProgramDeleted message from the specified reader or buffer.
|
|
161259
|
-
* @function decode
|
|
161260
|
-
* @memberof GuidedProgramDeleted
|
|
161261
|
-
* @static
|
|
161262
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
161263
|
-
* @param {number} [length] Message length if known beforehand
|
|
161264
|
-
* @returns {GuidedProgramDeleted} GuidedProgramDeleted
|
|
161265
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
161266
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
161267
|
-
*/
|
|
161268
|
-
GuidedProgramDeleted.decode = function decode(reader, length) {
|
|
161269
|
-
if (!(reader instanceof $Reader))
|
|
161270
|
-
reader = $Reader.create(reader);
|
|
161271
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GuidedProgramDeleted();
|
|
161272
|
-
while (reader.pos < end) {
|
|
161273
|
-
var tag = reader.uint32();
|
|
161274
|
-
switch (tag >>> 3) {
|
|
161275
|
-
case 1:
|
|
161276
|
-
message.slug = reader.string();
|
|
161277
|
-
break;
|
|
161278
|
-
default:
|
|
161279
|
-
reader.skipType(tag & 7);
|
|
161280
|
-
break;
|
|
161281
|
-
}
|
|
161282
|
-
}
|
|
161283
|
-
return message;
|
|
161284
|
-
};
|
|
161285
|
-
|
|
161286
|
-
/**
|
|
161287
|
-
* Decodes a GuidedProgramDeleted message from the specified reader or buffer, length delimited.
|
|
161288
|
-
* @function decodeDelimited
|
|
161289
|
-
* @memberof GuidedProgramDeleted
|
|
161290
|
-
* @static
|
|
161291
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
161292
|
-
* @returns {GuidedProgramDeleted} GuidedProgramDeleted
|
|
161293
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
161294
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
161295
|
-
*/
|
|
161296
|
-
GuidedProgramDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
161297
|
-
if (!(reader instanceof $Reader))
|
|
161298
|
-
reader = new $Reader(reader);
|
|
161299
|
-
return this.decode(reader, reader.uint32());
|
|
161300
|
-
};
|
|
161301
|
-
|
|
161302
|
-
/**
|
|
161303
|
-
* Verifies a GuidedProgramDeleted message.
|
|
161304
|
-
* @function verify
|
|
161305
|
-
* @memberof GuidedProgramDeleted
|
|
161306
|
-
* @static
|
|
161307
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
161308
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
161309
|
-
*/
|
|
161310
|
-
GuidedProgramDeleted.verify = function verify(message) {
|
|
161311
|
-
if (typeof message !== "object" || message === null)
|
|
161312
|
-
return "object expected";
|
|
161313
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
161314
|
-
if (!$util.isString(message.slug))
|
|
161315
|
-
return "slug: string expected";
|
|
161316
|
-
return null;
|
|
161317
|
-
};
|
|
161318
|
-
|
|
161319
|
-
/**
|
|
161320
|
-
* Creates a GuidedProgramDeleted message from a plain object. Also converts values to their respective internal types.
|
|
161321
|
-
* @function fromObject
|
|
161322
|
-
* @memberof GuidedProgramDeleted
|
|
161323
|
-
* @static
|
|
161324
|
-
* @param {Object.<string,*>} object Plain object
|
|
161325
|
-
* @returns {GuidedProgramDeleted} GuidedProgramDeleted
|
|
161326
|
-
*/
|
|
161327
|
-
GuidedProgramDeleted.fromObject = function fromObject(object) {
|
|
161328
|
-
if (object instanceof $root.GuidedProgramDeleted)
|
|
161329
|
-
return object;
|
|
161330
|
-
var message = new $root.GuidedProgramDeleted();
|
|
161331
|
-
if (object.slug != null)
|
|
161332
|
-
message.slug = String(object.slug);
|
|
161333
|
-
return message;
|
|
161334
|
-
};
|
|
161335
|
-
|
|
161336
|
-
/**
|
|
161337
|
-
* Creates a plain object from a GuidedProgramDeleted message. Also converts values to other types if specified.
|
|
161338
|
-
* @function toObject
|
|
161339
|
-
* @memberof GuidedProgramDeleted
|
|
161340
|
-
* @static
|
|
161341
|
-
* @param {GuidedProgramDeleted} message GuidedProgramDeleted
|
|
161342
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
161343
|
-
* @returns {Object.<string,*>} Plain object
|
|
161344
|
-
*/
|
|
161345
|
-
GuidedProgramDeleted.toObject = function toObject(message, options) {
|
|
161346
|
-
if (!options)
|
|
161347
|
-
options = {};
|
|
161348
|
-
var object = {};
|
|
161349
|
-
if (options.defaults)
|
|
161350
|
-
object.slug = "";
|
|
161351
|
-
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
161352
|
-
object.slug = message.slug;
|
|
161353
|
-
return object;
|
|
161354
|
-
};
|
|
161355
|
-
|
|
161356
|
-
/**
|
|
161357
|
-
* Converts this GuidedProgramDeleted to JSON.
|
|
161358
|
-
* @function toJSON
|
|
161359
|
-
* @memberof GuidedProgramDeleted
|
|
161360
|
-
* @instance
|
|
161361
|
-
* @returns {Object.<string,*>} JSON object
|
|
161362
|
-
*/
|
|
161363
|
-
GuidedProgramDeleted.prototype.toJSON = function toJSON() {
|
|
161364
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
161365
|
-
};
|
|
161366
|
-
|
|
161367
|
-
return GuidedProgramDeleted;
|
|
161368
|
-
})();
|
|
161369
|
-
|
|
161370
161145
|
$root.InteractiveJournalingParticipant = (function() {
|
|
161371
161146
|
|
|
161372
161147
|
/**
|