@headspace/protos-events 1.742.0 → 1.744.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 +1285 -133
- package/lib/index.js +2713 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -114443,6 +114443,702 @@ $root.EligibleMemberUpgraded = (function() {
|
|
|
114443
114443
|
return EligibleMemberUpgraded;
|
|
114444
114444
|
})();
|
|
114445
114445
|
|
|
114446
|
+
$root.GADAssessmentAssigned = (function() {
|
|
114447
|
+
|
|
114448
|
+
/**
|
|
114449
|
+
* Properties of a GADAssessmentAssigned.
|
|
114450
|
+
* @name IGADAssessmentAssigned
|
|
114451
|
+
* @interface IGADAssessmentAssigned
|
|
114452
|
+
* @property {string|null} [hsUserId] GADAssessmentAssigned hsUserId
|
|
114453
|
+
* @property {number|null} [gingerUserId] GADAssessmentAssigned gingerUserId
|
|
114454
|
+
* @property {string|null} [assignedAtIsoDate] GADAssessmentAssigned assignedAtIsoDate
|
|
114455
|
+
*/
|
|
114456
|
+
|
|
114457
|
+
/**
|
|
114458
|
+
* Constructs a new GADAssessmentAssigned.
|
|
114459
|
+
* @name GADAssessmentAssigned
|
|
114460
|
+
* @classdesc Represents a GADAssessmentAssigned.
|
|
114461
|
+
* @implements IGADAssessmentAssigned
|
|
114462
|
+
* @constructor
|
|
114463
|
+
* @param {IGADAssessmentAssigned=} [properties] Properties to set
|
|
114464
|
+
*/
|
|
114465
|
+
function GADAssessmentAssigned(properties) {
|
|
114466
|
+
if (properties)
|
|
114467
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114468
|
+
if (properties[keys[i]] != null)
|
|
114469
|
+
this[keys[i]] = properties[keys[i]];
|
|
114470
|
+
}
|
|
114471
|
+
|
|
114472
|
+
/**
|
|
114473
|
+
* GADAssessmentAssigned hsUserId.
|
|
114474
|
+
* @member {string} hsUserId
|
|
114475
|
+
* @memberof GADAssessmentAssigned
|
|
114476
|
+
* @instance
|
|
114477
|
+
*/
|
|
114478
|
+
GADAssessmentAssigned.prototype.hsUserId = "";
|
|
114479
|
+
|
|
114480
|
+
/**
|
|
114481
|
+
* GADAssessmentAssigned gingerUserId.
|
|
114482
|
+
* @member {number} gingerUserId
|
|
114483
|
+
* @memberof GADAssessmentAssigned
|
|
114484
|
+
* @instance
|
|
114485
|
+
*/
|
|
114486
|
+
GADAssessmentAssigned.prototype.gingerUserId = 0;
|
|
114487
|
+
|
|
114488
|
+
/**
|
|
114489
|
+
* GADAssessmentAssigned assignedAtIsoDate.
|
|
114490
|
+
* @member {string} assignedAtIsoDate
|
|
114491
|
+
* @memberof GADAssessmentAssigned
|
|
114492
|
+
* @instance
|
|
114493
|
+
*/
|
|
114494
|
+
GADAssessmentAssigned.prototype.assignedAtIsoDate = "";
|
|
114495
|
+
|
|
114496
|
+
/**
|
|
114497
|
+
* Creates a new GADAssessmentAssigned instance using the specified properties.
|
|
114498
|
+
* @function create
|
|
114499
|
+
* @memberof GADAssessmentAssigned
|
|
114500
|
+
* @static
|
|
114501
|
+
* @param {IGADAssessmentAssigned=} [properties] Properties to set
|
|
114502
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned instance
|
|
114503
|
+
*/
|
|
114504
|
+
GADAssessmentAssigned.create = function create(properties) {
|
|
114505
|
+
return new GADAssessmentAssigned(properties);
|
|
114506
|
+
};
|
|
114507
|
+
|
|
114508
|
+
/**
|
|
114509
|
+
* Encodes the specified GADAssessmentAssigned message. Does not implicitly {@link GADAssessmentAssigned.verify|verify} messages.
|
|
114510
|
+
* @function encode
|
|
114511
|
+
* @memberof GADAssessmentAssigned
|
|
114512
|
+
* @static
|
|
114513
|
+
* @param {IGADAssessmentAssigned} message GADAssessmentAssigned message or plain object to encode
|
|
114514
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114515
|
+
* @returns {$protobuf.Writer} Writer
|
|
114516
|
+
*/
|
|
114517
|
+
GADAssessmentAssigned.encode = function encode(message, writer) {
|
|
114518
|
+
if (!writer)
|
|
114519
|
+
writer = $Writer.create();
|
|
114520
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114521
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
114522
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114523
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
114524
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
114525
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
114526
|
+
return writer;
|
|
114527
|
+
};
|
|
114528
|
+
|
|
114529
|
+
/**
|
|
114530
|
+
* Encodes the specified GADAssessmentAssigned message, length delimited. Does not implicitly {@link GADAssessmentAssigned.verify|verify} messages.
|
|
114531
|
+
* @function encodeDelimited
|
|
114532
|
+
* @memberof GADAssessmentAssigned
|
|
114533
|
+
* @static
|
|
114534
|
+
* @param {IGADAssessmentAssigned} message GADAssessmentAssigned message or plain object to encode
|
|
114535
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114536
|
+
* @returns {$protobuf.Writer} Writer
|
|
114537
|
+
*/
|
|
114538
|
+
GADAssessmentAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114539
|
+
return this.encode(message, writer).ldelim();
|
|
114540
|
+
};
|
|
114541
|
+
|
|
114542
|
+
/**
|
|
114543
|
+
* Decodes a GADAssessmentAssigned message from the specified reader or buffer.
|
|
114544
|
+
* @function decode
|
|
114545
|
+
* @memberof GADAssessmentAssigned
|
|
114546
|
+
* @static
|
|
114547
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114548
|
+
* @param {number} [length] Message length if known beforehand
|
|
114549
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned
|
|
114550
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114551
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114552
|
+
*/
|
|
114553
|
+
GADAssessmentAssigned.decode = function decode(reader, length) {
|
|
114554
|
+
if (!(reader instanceof $Reader))
|
|
114555
|
+
reader = $Reader.create(reader);
|
|
114556
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GADAssessmentAssigned();
|
|
114557
|
+
while (reader.pos < end) {
|
|
114558
|
+
var tag = reader.uint32();
|
|
114559
|
+
switch (tag >>> 3) {
|
|
114560
|
+
case 1:
|
|
114561
|
+
message.hsUserId = reader.string();
|
|
114562
|
+
break;
|
|
114563
|
+
case 2:
|
|
114564
|
+
message.gingerUserId = reader.uint32();
|
|
114565
|
+
break;
|
|
114566
|
+
case 3:
|
|
114567
|
+
message.assignedAtIsoDate = reader.string();
|
|
114568
|
+
break;
|
|
114569
|
+
default:
|
|
114570
|
+
reader.skipType(tag & 7);
|
|
114571
|
+
break;
|
|
114572
|
+
}
|
|
114573
|
+
}
|
|
114574
|
+
return message;
|
|
114575
|
+
};
|
|
114576
|
+
|
|
114577
|
+
/**
|
|
114578
|
+
* Decodes a GADAssessmentAssigned message from the specified reader or buffer, length delimited.
|
|
114579
|
+
* @function decodeDelimited
|
|
114580
|
+
* @memberof GADAssessmentAssigned
|
|
114581
|
+
* @static
|
|
114582
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114583
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned
|
|
114584
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114585
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114586
|
+
*/
|
|
114587
|
+
GADAssessmentAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
114588
|
+
if (!(reader instanceof $Reader))
|
|
114589
|
+
reader = new $Reader(reader);
|
|
114590
|
+
return this.decode(reader, reader.uint32());
|
|
114591
|
+
};
|
|
114592
|
+
|
|
114593
|
+
/**
|
|
114594
|
+
* Verifies a GADAssessmentAssigned message.
|
|
114595
|
+
* @function verify
|
|
114596
|
+
* @memberof GADAssessmentAssigned
|
|
114597
|
+
* @static
|
|
114598
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114599
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114600
|
+
*/
|
|
114601
|
+
GADAssessmentAssigned.verify = function verify(message) {
|
|
114602
|
+
if (typeof message !== "object" || message === null)
|
|
114603
|
+
return "object expected";
|
|
114604
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114605
|
+
if (!$util.isString(message.hsUserId))
|
|
114606
|
+
return "hsUserId: string expected";
|
|
114607
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114608
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
114609
|
+
return "gingerUserId: integer expected";
|
|
114610
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
114611
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
114612
|
+
return "assignedAtIsoDate: string expected";
|
|
114613
|
+
return null;
|
|
114614
|
+
};
|
|
114615
|
+
|
|
114616
|
+
/**
|
|
114617
|
+
* Creates a GADAssessmentAssigned message from a plain object. Also converts values to their respective internal types.
|
|
114618
|
+
* @function fromObject
|
|
114619
|
+
* @memberof GADAssessmentAssigned
|
|
114620
|
+
* @static
|
|
114621
|
+
* @param {Object.<string,*>} object Plain object
|
|
114622
|
+
* @returns {GADAssessmentAssigned} GADAssessmentAssigned
|
|
114623
|
+
*/
|
|
114624
|
+
GADAssessmentAssigned.fromObject = function fromObject(object) {
|
|
114625
|
+
if (object instanceof $root.GADAssessmentAssigned)
|
|
114626
|
+
return object;
|
|
114627
|
+
var message = new $root.GADAssessmentAssigned();
|
|
114628
|
+
if (object.hsUserId != null)
|
|
114629
|
+
message.hsUserId = String(object.hsUserId);
|
|
114630
|
+
if (object.gingerUserId != null)
|
|
114631
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
114632
|
+
if (object.assignedAtIsoDate != null)
|
|
114633
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
114634
|
+
return message;
|
|
114635
|
+
};
|
|
114636
|
+
|
|
114637
|
+
/**
|
|
114638
|
+
* Creates a plain object from a GADAssessmentAssigned message. Also converts values to other types if specified.
|
|
114639
|
+
* @function toObject
|
|
114640
|
+
* @memberof GADAssessmentAssigned
|
|
114641
|
+
* @static
|
|
114642
|
+
* @param {GADAssessmentAssigned} message GADAssessmentAssigned
|
|
114643
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114644
|
+
* @returns {Object.<string,*>} Plain object
|
|
114645
|
+
*/
|
|
114646
|
+
GADAssessmentAssigned.toObject = function toObject(message, options) {
|
|
114647
|
+
if (!options)
|
|
114648
|
+
options = {};
|
|
114649
|
+
var object = {};
|
|
114650
|
+
if (options.defaults) {
|
|
114651
|
+
object.hsUserId = "";
|
|
114652
|
+
object.gingerUserId = 0;
|
|
114653
|
+
object.assignedAtIsoDate = "";
|
|
114654
|
+
}
|
|
114655
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114656
|
+
object.hsUserId = message.hsUserId;
|
|
114657
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114658
|
+
object.gingerUserId = message.gingerUserId;
|
|
114659
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
114660
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
114661
|
+
return object;
|
|
114662
|
+
};
|
|
114663
|
+
|
|
114664
|
+
/**
|
|
114665
|
+
* Converts this GADAssessmentAssigned to JSON.
|
|
114666
|
+
* @function toJSON
|
|
114667
|
+
* @memberof GADAssessmentAssigned
|
|
114668
|
+
* @instance
|
|
114669
|
+
* @returns {Object.<string,*>} JSON object
|
|
114670
|
+
*/
|
|
114671
|
+
GADAssessmentAssigned.prototype.toJSON = function toJSON() {
|
|
114672
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114673
|
+
};
|
|
114674
|
+
|
|
114675
|
+
return GADAssessmentAssigned;
|
|
114676
|
+
})();
|
|
114677
|
+
|
|
114678
|
+
$root.GADAssessmentStarted = (function() {
|
|
114679
|
+
|
|
114680
|
+
/**
|
|
114681
|
+
* Properties of a GADAssessmentStarted.
|
|
114682
|
+
* @name IGADAssessmentStarted
|
|
114683
|
+
* @interface IGADAssessmentStarted
|
|
114684
|
+
* @property {string|null} [hsUserId] GADAssessmentStarted hsUserId
|
|
114685
|
+
* @property {number|null} [gingerUserId] GADAssessmentStarted gingerUserId
|
|
114686
|
+
* @property {string|null} [startedAtIsoDate] GADAssessmentStarted startedAtIsoDate
|
|
114687
|
+
*/
|
|
114688
|
+
|
|
114689
|
+
/**
|
|
114690
|
+
* Constructs a new GADAssessmentStarted.
|
|
114691
|
+
* @name GADAssessmentStarted
|
|
114692
|
+
* @classdesc Represents a GADAssessmentStarted.
|
|
114693
|
+
* @implements IGADAssessmentStarted
|
|
114694
|
+
* @constructor
|
|
114695
|
+
* @param {IGADAssessmentStarted=} [properties] Properties to set
|
|
114696
|
+
*/
|
|
114697
|
+
function GADAssessmentStarted(properties) {
|
|
114698
|
+
if (properties)
|
|
114699
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114700
|
+
if (properties[keys[i]] != null)
|
|
114701
|
+
this[keys[i]] = properties[keys[i]];
|
|
114702
|
+
}
|
|
114703
|
+
|
|
114704
|
+
/**
|
|
114705
|
+
* GADAssessmentStarted hsUserId.
|
|
114706
|
+
* @member {string} hsUserId
|
|
114707
|
+
* @memberof GADAssessmentStarted
|
|
114708
|
+
* @instance
|
|
114709
|
+
*/
|
|
114710
|
+
GADAssessmentStarted.prototype.hsUserId = "";
|
|
114711
|
+
|
|
114712
|
+
/**
|
|
114713
|
+
* GADAssessmentStarted gingerUserId.
|
|
114714
|
+
* @member {number} gingerUserId
|
|
114715
|
+
* @memberof GADAssessmentStarted
|
|
114716
|
+
* @instance
|
|
114717
|
+
*/
|
|
114718
|
+
GADAssessmentStarted.prototype.gingerUserId = 0;
|
|
114719
|
+
|
|
114720
|
+
/**
|
|
114721
|
+
* GADAssessmentStarted startedAtIsoDate.
|
|
114722
|
+
* @member {string} startedAtIsoDate
|
|
114723
|
+
* @memberof GADAssessmentStarted
|
|
114724
|
+
* @instance
|
|
114725
|
+
*/
|
|
114726
|
+
GADAssessmentStarted.prototype.startedAtIsoDate = "";
|
|
114727
|
+
|
|
114728
|
+
/**
|
|
114729
|
+
* Creates a new GADAssessmentStarted instance using the specified properties.
|
|
114730
|
+
* @function create
|
|
114731
|
+
* @memberof GADAssessmentStarted
|
|
114732
|
+
* @static
|
|
114733
|
+
* @param {IGADAssessmentStarted=} [properties] Properties to set
|
|
114734
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted instance
|
|
114735
|
+
*/
|
|
114736
|
+
GADAssessmentStarted.create = function create(properties) {
|
|
114737
|
+
return new GADAssessmentStarted(properties);
|
|
114738
|
+
};
|
|
114739
|
+
|
|
114740
|
+
/**
|
|
114741
|
+
* Encodes the specified GADAssessmentStarted message. Does not implicitly {@link GADAssessmentStarted.verify|verify} messages.
|
|
114742
|
+
* @function encode
|
|
114743
|
+
* @memberof GADAssessmentStarted
|
|
114744
|
+
* @static
|
|
114745
|
+
* @param {IGADAssessmentStarted} message GADAssessmentStarted message or plain object to encode
|
|
114746
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114747
|
+
* @returns {$protobuf.Writer} Writer
|
|
114748
|
+
*/
|
|
114749
|
+
GADAssessmentStarted.encode = function encode(message, writer) {
|
|
114750
|
+
if (!writer)
|
|
114751
|
+
writer = $Writer.create();
|
|
114752
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114753
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
114754
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114755
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
114756
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
114757
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
114758
|
+
return writer;
|
|
114759
|
+
};
|
|
114760
|
+
|
|
114761
|
+
/**
|
|
114762
|
+
* Encodes the specified GADAssessmentStarted message, length delimited. Does not implicitly {@link GADAssessmentStarted.verify|verify} messages.
|
|
114763
|
+
* @function encodeDelimited
|
|
114764
|
+
* @memberof GADAssessmentStarted
|
|
114765
|
+
* @static
|
|
114766
|
+
* @param {IGADAssessmentStarted} message GADAssessmentStarted message or plain object to encode
|
|
114767
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114768
|
+
* @returns {$protobuf.Writer} Writer
|
|
114769
|
+
*/
|
|
114770
|
+
GADAssessmentStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114771
|
+
return this.encode(message, writer).ldelim();
|
|
114772
|
+
};
|
|
114773
|
+
|
|
114774
|
+
/**
|
|
114775
|
+
* Decodes a GADAssessmentStarted message from the specified reader or buffer.
|
|
114776
|
+
* @function decode
|
|
114777
|
+
* @memberof GADAssessmentStarted
|
|
114778
|
+
* @static
|
|
114779
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114780
|
+
* @param {number} [length] Message length if known beforehand
|
|
114781
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted
|
|
114782
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114783
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114784
|
+
*/
|
|
114785
|
+
GADAssessmentStarted.decode = function decode(reader, length) {
|
|
114786
|
+
if (!(reader instanceof $Reader))
|
|
114787
|
+
reader = $Reader.create(reader);
|
|
114788
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GADAssessmentStarted();
|
|
114789
|
+
while (reader.pos < end) {
|
|
114790
|
+
var tag = reader.uint32();
|
|
114791
|
+
switch (tag >>> 3) {
|
|
114792
|
+
case 1:
|
|
114793
|
+
message.hsUserId = reader.string();
|
|
114794
|
+
break;
|
|
114795
|
+
case 2:
|
|
114796
|
+
message.gingerUserId = reader.uint32();
|
|
114797
|
+
break;
|
|
114798
|
+
case 3:
|
|
114799
|
+
message.startedAtIsoDate = reader.string();
|
|
114800
|
+
break;
|
|
114801
|
+
default:
|
|
114802
|
+
reader.skipType(tag & 7);
|
|
114803
|
+
break;
|
|
114804
|
+
}
|
|
114805
|
+
}
|
|
114806
|
+
return message;
|
|
114807
|
+
};
|
|
114808
|
+
|
|
114809
|
+
/**
|
|
114810
|
+
* Decodes a GADAssessmentStarted message from the specified reader or buffer, length delimited.
|
|
114811
|
+
* @function decodeDelimited
|
|
114812
|
+
* @memberof GADAssessmentStarted
|
|
114813
|
+
* @static
|
|
114814
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114815
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted
|
|
114816
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114817
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114818
|
+
*/
|
|
114819
|
+
GADAssessmentStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
114820
|
+
if (!(reader instanceof $Reader))
|
|
114821
|
+
reader = new $Reader(reader);
|
|
114822
|
+
return this.decode(reader, reader.uint32());
|
|
114823
|
+
};
|
|
114824
|
+
|
|
114825
|
+
/**
|
|
114826
|
+
* Verifies a GADAssessmentStarted message.
|
|
114827
|
+
* @function verify
|
|
114828
|
+
* @memberof GADAssessmentStarted
|
|
114829
|
+
* @static
|
|
114830
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114831
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114832
|
+
*/
|
|
114833
|
+
GADAssessmentStarted.verify = function verify(message) {
|
|
114834
|
+
if (typeof message !== "object" || message === null)
|
|
114835
|
+
return "object expected";
|
|
114836
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114837
|
+
if (!$util.isString(message.hsUserId))
|
|
114838
|
+
return "hsUserId: string expected";
|
|
114839
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114840
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
114841
|
+
return "gingerUserId: integer expected";
|
|
114842
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
114843
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
114844
|
+
return "startedAtIsoDate: string expected";
|
|
114845
|
+
return null;
|
|
114846
|
+
};
|
|
114847
|
+
|
|
114848
|
+
/**
|
|
114849
|
+
* Creates a GADAssessmentStarted message from a plain object. Also converts values to their respective internal types.
|
|
114850
|
+
* @function fromObject
|
|
114851
|
+
* @memberof GADAssessmentStarted
|
|
114852
|
+
* @static
|
|
114853
|
+
* @param {Object.<string,*>} object Plain object
|
|
114854
|
+
* @returns {GADAssessmentStarted} GADAssessmentStarted
|
|
114855
|
+
*/
|
|
114856
|
+
GADAssessmentStarted.fromObject = function fromObject(object) {
|
|
114857
|
+
if (object instanceof $root.GADAssessmentStarted)
|
|
114858
|
+
return object;
|
|
114859
|
+
var message = new $root.GADAssessmentStarted();
|
|
114860
|
+
if (object.hsUserId != null)
|
|
114861
|
+
message.hsUserId = String(object.hsUserId);
|
|
114862
|
+
if (object.gingerUserId != null)
|
|
114863
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
114864
|
+
if (object.startedAtIsoDate != null)
|
|
114865
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
114866
|
+
return message;
|
|
114867
|
+
};
|
|
114868
|
+
|
|
114869
|
+
/**
|
|
114870
|
+
* Creates a plain object from a GADAssessmentStarted message. Also converts values to other types if specified.
|
|
114871
|
+
* @function toObject
|
|
114872
|
+
* @memberof GADAssessmentStarted
|
|
114873
|
+
* @static
|
|
114874
|
+
* @param {GADAssessmentStarted} message GADAssessmentStarted
|
|
114875
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114876
|
+
* @returns {Object.<string,*>} Plain object
|
|
114877
|
+
*/
|
|
114878
|
+
GADAssessmentStarted.toObject = function toObject(message, options) {
|
|
114879
|
+
if (!options)
|
|
114880
|
+
options = {};
|
|
114881
|
+
var object = {};
|
|
114882
|
+
if (options.defaults) {
|
|
114883
|
+
object.hsUserId = "";
|
|
114884
|
+
object.gingerUserId = 0;
|
|
114885
|
+
object.startedAtIsoDate = "";
|
|
114886
|
+
}
|
|
114887
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114888
|
+
object.hsUserId = message.hsUserId;
|
|
114889
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114890
|
+
object.gingerUserId = message.gingerUserId;
|
|
114891
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
114892
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
114893
|
+
return object;
|
|
114894
|
+
};
|
|
114895
|
+
|
|
114896
|
+
/**
|
|
114897
|
+
* Converts this GADAssessmentStarted to JSON.
|
|
114898
|
+
* @function toJSON
|
|
114899
|
+
* @memberof GADAssessmentStarted
|
|
114900
|
+
* @instance
|
|
114901
|
+
* @returns {Object.<string,*>} JSON object
|
|
114902
|
+
*/
|
|
114903
|
+
GADAssessmentStarted.prototype.toJSON = function toJSON() {
|
|
114904
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114905
|
+
};
|
|
114906
|
+
|
|
114907
|
+
return GADAssessmentStarted;
|
|
114908
|
+
})();
|
|
114909
|
+
|
|
114910
|
+
$root.GADAssessmentCompleted = (function() {
|
|
114911
|
+
|
|
114912
|
+
/**
|
|
114913
|
+
* Properties of a GADAssessmentCompleted.
|
|
114914
|
+
* @name IGADAssessmentCompleted
|
|
114915
|
+
* @interface IGADAssessmentCompleted
|
|
114916
|
+
* @property {string|null} [hsUserId] GADAssessmentCompleted hsUserId
|
|
114917
|
+
* @property {number|null} [gingerUserId] GADAssessmentCompleted gingerUserId
|
|
114918
|
+
* @property {string|null} [completedAtIsoDate] GADAssessmentCompleted completedAtIsoDate
|
|
114919
|
+
*/
|
|
114920
|
+
|
|
114921
|
+
/**
|
|
114922
|
+
* Constructs a new GADAssessmentCompleted.
|
|
114923
|
+
* @name GADAssessmentCompleted
|
|
114924
|
+
* @classdesc Represents a GADAssessmentCompleted.
|
|
114925
|
+
* @implements IGADAssessmentCompleted
|
|
114926
|
+
* @constructor
|
|
114927
|
+
* @param {IGADAssessmentCompleted=} [properties] Properties to set
|
|
114928
|
+
*/
|
|
114929
|
+
function GADAssessmentCompleted(properties) {
|
|
114930
|
+
if (properties)
|
|
114931
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114932
|
+
if (properties[keys[i]] != null)
|
|
114933
|
+
this[keys[i]] = properties[keys[i]];
|
|
114934
|
+
}
|
|
114935
|
+
|
|
114936
|
+
/**
|
|
114937
|
+
* GADAssessmentCompleted hsUserId.
|
|
114938
|
+
* @member {string} hsUserId
|
|
114939
|
+
* @memberof GADAssessmentCompleted
|
|
114940
|
+
* @instance
|
|
114941
|
+
*/
|
|
114942
|
+
GADAssessmentCompleted.prototype.hsUserId = "";
|
|
114943
|
+
|
|
114944
|
+
/**
|
|
114945
|
+
* GADAssessmentCompleted gingerUserId.
|
|
114946
|
+
* @member {number} gingerUserId
|
|
114947
|
+
* @memberof GADAssessmentCompleted
|
|
114948
|
+
* @instance
|
|
114949
|
+
*/
|
|
114950
|
+
GADAssessmentCompleted.prototype.gingerUserId = 0;
|
|
114951
|
+
|
|
114952
|
+
/**
|
|
114953
|
+
* GADAssessmentCompleted completedAtIsoDate.
|
|
114954
|
+
* @member {string} completedAtIsoDate
|
|
114955
|
+
* @memberof GADAssessmentCompleted
|
|
114956
|
+
* @instance
|
|
114957
|
+
*/
|
|
114958
|
+
GADAssessmentCompleted.prototype.completedAtIsoDate = "";
|
|
114959
|
+
|
|
114960
|
+
/**
|
|
114961
|
+
* Creates a new GADAssessmentCompleted instance using the specified properties.
|
|
114962
|
+
* @function create
|
|
114963
|
+
* @memberof GADAssessmentCompleted
|
|
114964
|
+
* @static
|
|
114965
|
+
* @param {IGADAssessmentCompleted=} [properties] Properties to set
|
|
114966
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted instance
|
|
114967
|
+
*/
|
|
114968
|
+
GADAssessmentCompleted.create = function create(properties) {
|
|
114969
|
+
return new GADAssessmentCompleted(properties);
|
|
114970
|
+
};
|
|
114971
|
+
|
|
114972
|
+
/**
|
|
114973
|
+
* Encodes the specified GADAssessmentCompleted message. Does not implicitly {@link GADAssessmentCompleted.verify|verify} messages.
|
|
114974
|
+
* @function encode
|
|
114975
|
+
* @memberof GADAssessmentCompleted
|
|
114976
|
+
* @static
|
|
114977
|
+
* @param {IGADAssessmentCompleted} message GADAssessmentCompleted message or plain object to encode
|
|
114978
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114979
|
+
* @returns {$protobuf.Writer} Writer
|
|
114980
|
+
*/
|
|
114981
|
+
GADAssessmentCompleted.encode = function encode(message, writer) {
|
|
114982
|
+
if (!writer)
|
|
114983
|
+
writer = $Writer.create();
|
|
114984
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
114985
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
114986
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
114987
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
114988
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
114989
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
|
|
114990
|
+
return writer;
|
|
114991
|
+
};
|
|
114992
|
+
|
|
114993
|
+
/**
|
|
114994
|
+
* Encodes the specified GADAssessmentCompleted message, length delimited. Does not implicitly {@link GADAssessmentCompleted.verify|verify} messages.
|
|
114995
|
+
* @function encodeDelimited
|
|
114996
|
+
* @memberof GADAssessmentCompleted
|
|
114997
|
+
* @static
|
|
114998
|
+
* @param {IGADAssessmentCompleted} message GADAssessmentCompleted message or plain object to encode
|
|
114999
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
115000
|
+
* @returns {$protobuf.Writer} Writer
|
|
115001
|
+
*/
|
|
115002
|
+
GADAssessmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
115003
|
+
return this.encode(message, writer).ldelim();
|
|
115004
|
+
};
|
|
115005
|
+
|
|
115006
|
+
/**
|
|
115007
|
+
* Decodes a GADAssessmentCompleted message from the specified reader or buffer.
|
|
115008
|
+
* @function decode
|
|
115009
|
+
* @memberof GADAssessmentCompleted
|
|
115010
|
+
* @static
|
|
115011
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
115012
|
+
* @param {number} [length] Message length if known beforehand
|
|
115013
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted
|
|
115014
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
115015
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
115016
|
+
*/
|
|
115017
|
+
GADAssessmentCompleted.decode = function decode(reader, length) {
|
|
115018
|
+
if (!(reader instanceof $Reader))
|
|
115019
|
+
reader = $Reader.create(reader);
|
|
115020
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GADAssessmentCompleted();
|
|
115021
|
+
while (reader.pos < end) {
|
|
115022
|
+
var tag = reader.uint32();
|
|
115023
|
+
switch (tag >>> 3) {
|
|
115024
|
+
case 1:
|
|
115025
|
+
message.hsUserId = reader.string();
|
|
115026
|
+
break;
|
|
115027
|
+
case 2:
|
|
115028
|
+
message.gingerUserId = reader.uint32();
|
|
115029
|
+
break;
|
|
115030
|
+
case 3:
|
|
115031
|
+
message.completedAtIsoDate = reader.string();
|
|
115032
|
+
break;
|
|
115033
|
+
default:
|
|
115034
|
+
reader.skipType(tag & 7);
|
|
115035
|
+
break;
|
|
115036
|
+
}
|
|
115037
|
+
}
|
|
115038
|
+
return message;
|
|
115039
|
+
};
|
|
115040
|
+
|
|
115041
|
+
/**
|
|
115042
|
+
* Decodes a GADAssessmentCompleted message from the specified reader or buffer, length delimited.
|
|
115043
|
+
* @function decodeDelimited
|
|
115044
|
+
* @memberof GADAssessmentCompleted
|
|
115045
|
+
* @static
|
|
115046
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
115047
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted
|
|
115048
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
115049
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
115050
|
+
*/
|
|
115051
|
+
GADAssessmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
115052
|
+
if (!(reader instanceof $Reader))
|
|
115053
|
+
reader = new $Reader(reader);
|
|
115054
|
+
return this.decode(reader, reader.uint32());
|
|
115055
|
+
};
|
|
115056
|
+
|
|
115057
|
+
/**
|
|
115058
|
+
* Verifies a GADAssessmentCompleted message.
|
|
115059
|
+
* @function verify
|
|
115060
|
+
* @memberof GADAssessmentCompleted
|
|
115061
|
+
* @static
|
|
115062
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
115063
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
115064
|
+
*/
|
|
115065
|
+
GADAssessmentCompleted.verify = function verify(message) {
|
|
115066
|
+
if (typeof message !== "object" || message === null)
|
|
115067
|
+
return "object expected";
|
|
115068
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
115069
|
+
if (!$util.isString(message.hsUserId))
|
|
115070
|
+
return "hsUserId: string expected";
|
|
115071
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
115072
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
115073
|
+
return "gingerUserId: integer expected";
|
|
115074
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
115075
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
115076
|
+
return "completedAtIsoDate: string expected";
|
|
115077
|
+
return null;
|
|
115078
|
+
};
|
|
115079
|
+
|
|
115080
|
+
/**
|
|
115081
|
+
* Creates a GADAssessmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
115082
|
+
* @function fromObject
|
|
115083
|
+
* @memberof GADAssessmentCompleted
|
|
115084
|
+
* @static
|
|
115085
|
+
* @param {Object.<string,*>} object Plain object
|
|
115086
|
+
* @returns {GADAssessmentCompleted} GADAssessmentCompleted
|
|
115087
|
+
*/
|
|
115088
|
+
GADAssessmentCompleted.fromObject = function fromObject(object) {
|
|
115089
|
+
if (object instanceof $root.GADAssessmentCompleted)
|
|
115090
|
+
return object;
|
|
115091
|
+
var message = new $root.GADAssessmentCompleted();
|
|
115092
|
+
if (object.hsUserId != null)
|
|
115093
|
+
message.hsUserId = String(object.hsUserId);
|
|
115094
|
+
if (object.gingerUserId != null)
|
|
115095
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
115096
|
+
if (object.completedAtIsoDate != null)
|
|
115097
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
115098
|
+
return message;
|
|
115099
|
+
};
|
|
115100
|
+
|
|
115101
|
+
/**
|
|
115102
|
+
* Creates a plain object from a GADAssessmentCompleted message. Also converts values to other types if specified.
|
|
115103
|
+
* @function toObject
|
|
115104
|
+
* @memberof GADAssessmentCompleted
|
|
115105
|
+
* @static
|
|
115106
|
+
* @param {GADAssessmentCompleted} message GADAssessmentCompleted
|
|
115107
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
115108
|
+
* @returns {Object.<string,*>} Plain object
|
|
115109
|
+
*/
|
|
115110
|
+
GADAssessmentCompleted.toObject = function toObject(message, options) {
|
|
115111
|
+
if (!options)
|
|
115112
|
+
options = {};
|
|
115113
|
+
var object = {};
|
|
115114
|
+
if (options.defaults) {
|
|
115115
|
+
object.hsUserId = "";
|
|
115116
|
+
object.gingerUserId = 0;
|
|
115117
|
+
object.completedAtIsoDate = "";
|
|
115118
|
+
}
|
|
115119
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
115120
|
+
object.hsUserId = message.hsUserId;
|
|
115121
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
115122
|
+
object.gingerUserId = message.gingerUserId;
|
|
115123
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
115124
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
115125
|
+
return object;
|
|
115126
|
+
};
|
|
115127
|
+
|
|
115128
|
+
/**
|
|
115129
|
+
* Converts this GADAssessmentCompleted to JSON.
|
|
115130
|
+
* @function toJSON
|
|
115131
|
+
* @memberof GADAssessmentCompleted
|
|
115132
|
+
* @instance
|
|
115133
|
+
* @returns {Object.<string,*>} JSON object
|
|
115134
|
+
*/
|
|
115135
|
+
GADAssessmentCompleted.prototype.toJSON = function toJSON() {
|
|
115136
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
115137
|
+
};
|
|
115138
|
+
|
|
115139
|
+
return GADAssessmentCompleted;
|
|
115140
|
+
})();
|
|
115141
|
+
|
|
114446
115142
|
$root.GiftRedeemed = (function() {
|
|
114447
115143
|
|
|
114448
115144
|
/**
|
|
@@ -132965,6 +133661,702 @@ $root.PartnerRedemptionRevoked = (function() {
|
|
|
132965
133661
|
return PartnerRedemptionRevoked;
|
|
132966
133662
|
})();
|
|
132967
133663
|
|
|
133664
|
+
$root.PHQAssessmentAssigned = (function() {
|
|
133665
|
+
|
|
133666
|
+
/**
|
|
133667
|
+
* Properties of a PHQAssessmentAssigned.
|
|
133668
|
+
* @name IPHQAssessmentAssigned
|
|
133669
|
+
* @interface IPHQAssessmentAssigned
|
|
133670
|
+
* @property {string|null} [hsUserId] PHQAssessmentAssigned hsUserId
|
|
133671
|
+
* @property {number|null} [gingerUserId] PHQAssessmentAssigned gingerUserId
|
|
133672
|
+
* @property {string|null} [assignedAtIsoDate] PHQAssessmentAssigned assignedAtIsoDate
|
|
133673
|
+
*/
|
|
133674
|
+
|
|
133675
|
+
/**
|
|
133676
|
+
* Constructs a new PHQAssessmentAssigned.
|
|
133677
|
+
* @name PHQAssessmentAssigned
|
|
133678
|
+
* @classdesc Represents a PHQAssessmentAssigned.
|
|
133679
|
+
* @implements IPHQAssessmentAssigned
|
|
133680
|
+
* @constructor
|
|
133681
|
+
* @param {IPHQAssessmentAssigned=} [properties] Properties to set
|
|
133682
|
+
*/
|
|
133683
|
+
function PHQAssessmentAssigned(properties) {
|
|
133684
|
+
if (properties)
|
|
133685
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
133686
|
+
if (properties[keys[i]] != null)
|
|
133687
|
+
this[keys[i]] = properties[keys[i]];
|
|
133688
|
+
}
|
|
133689
|
+
|
|
133690
|
+
/**
|
|
133691
|
+
* PHQAssessmentAssigned hsUserId.
|
|
133692
|
+
* @member {string} hsUserId
|
|
133693
|
+
* @memberof PHQAssessmentAssigned
|
|
133694
|
+
* @instance
|
|
133695
|
+
*/
|
|
133696
|
+
PHQAssessmentAssigned.prototype.hsUserId = "";
|
|
133697
|
+
|
|
133698
|
+
/**
|
|
133699
|
+
* PHQAssessmentAssigned gingerUserId.
|
|
133700
|
+
* @member {number} gingerUserId
|
|
133701
|
+
* @memberof PHQAssessmentAssigned
|
|
133702
|
+
* @instance
|
|
133703
|
+
*/
|
|
133704
|
+
PHQAssessmentAssigned.prototype.gingerUserId = 0;
|
|
133705
|
+
|
|
133706
|
+
/**
|
|
133707
|
+
* PHQAssessmentAssigned assignedAtIsoDate.
|
|
133708
|
+
* @member {string} assignedAtIsoDate
|
|
133709
|
+
* @memberof PHQAssessmentAssigned
|
|
133710
|
+
* @instance
|
|
133711
|
+
*/
|
|
133712
|
+
PHQAssessmentAssigned.prototype.assignedAtIsoDate = "";
|
|
133713
|
+
|
|
133714
|
+
/**
|
|
133715
|
+
* Creates a new PHQAssessmentAssigned instance using the specified properties.
|
|
133716
|
+
* @function create
|
|
133717
|
+
* @memberof PHQAssessmentAssigned
|
|
133718
|
+
* @static
|
|
133719
|
+
* @param {IPHQAssessmentAssigned=} [properties] Properties to set
|
|
133720
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned instance
|
|
133721
|
+
*/
|
|
133722
|
+
PHQAssessmentAssigned.create = function create(properties) {
|
|
133723
|
+
return new PHQAssessmentAssigned(properties);
|
|
133724
|
+
};
|
|
133725
|
+
|
|
133726
|
+
/**
|
|
133727
|
+
* Encodes the specified PHQAssessmentAssigned message. Does not implicitly {@link PHQAssessmentAssigned.verify|verify} messages.
|
|
133728
|
+
* @function encode
|
|
133729
|
+
* @memberof PHQAssessmentAssigned
|
|
133730
|
+
* @static
|
|
133731
|
+
* @param {IPHQAssessmentAssigned} message PHQAssessmentAssigned message or plain object to encode
|
|
133732
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
133733
|
+
* @returns {$protobuf.Writer} Writer
|
|
133734
|
+
*/
|
|
133735
|
+
PHQAssessmentAssigned.encode = function encode(message, writer) {
|
|
133736
|
+
if (!writer)
|
|
133737
|
+
writer = $Writer.create();
|
|
133738
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133739
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
133740
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
133741
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
133742
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133743
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
133744
|
+
return writer;
|
|
133745
|
+
};
|
|
133746
|
+
|
|
133747
|
+
/**
|
|
133748
|
+
* Encodes the specified PHQAssessmentAssigned message, length delimited. Does not implicitly {@link PHQAssessmentAssigned.verify|verify} messages.
|
|
133749
|
+
* @function encodeDelimited
|
|
133750
|
+
* @memberof PHQAssessmentAssigned
|
|
133751
|
+
* @static
|
|
133752
|
+
* @param {IPHQAssessmentAssigned} message PHQAssessmentAssigned message or plain object to encode
|
|
133753
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
133754
|
+
* @returns {$protobuf.Writer} Writer
|
|
133755
|
+
*/
|
|
133756
|
+
PHQAssessmentAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
133757
|
+
return this.encode(message, writer).ldelim();
|
|
133758
|
+
};
|
|
133759
|
+
|
|
133760
|
+
/**
|
|
133761
|
+
* Decodes a PHQAssessmentAssigned message from the specified reader or buffer.
|
|
133762
|
+
* @function decode
|
|
133763
|
+
* @memberof PHQAssessmentAssigned
|
|
133764
|
+
* @static
|
|
133765
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
133766
|
+
* @param {number} [length] Message length if known beforehand
|
|
133767
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned
|
|
133768
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
133769
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
133770
|
+
*/
|
|
133771
|
+
PHQAssessmentAssigned.decode = function decode(reader, length) {
|
|
133772
|
+
if (!(reader instanceof $Reader))
|
|
133773
|
+
reader = $Reader.create(reader);
|
|
133774
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PHQAssessmentAssigned();
|
|
133775
|
+
while (reader.pos < end) {
|
|
133776
|
+
var tag = reader.uint32();
|
|
133777
|
+
switch (tag >>> 3) {
|
|
133778
|
+
case 1:
|
|
133779
|
+
message.hsUserId = reader.string();
|
|
133780
|
+
break;
|
|
133781
|
+
case 2:
|
|
133782
|
+
message.gingerUserId = reader.uint32();
|
|
133783
|
+
break;
|
|
133784
|
+
case 3:
|
|
133785
|
+
message.assignedAtIsoDate = reader.string();
|
|
133786
|
+
break;
|
|
133787
|
+
default:
|
|
133788
|
+
reader.skipType(tag & 7);
|
|
133789
|
+
break;
|
|
133790
|
+
}
|
|
133791
|
+
}
|
|
133792
|
+
return message;
|
|
133793
|
+
};
|
|
133794
|
+
|
|
133795
|
+
/**
|
|
133796
|
+
* Decodes a PHQAssessmentAssigned message from the specified reader or buffer, length delimited.
|
|
133797
|
+
* @function decodeDelimited
|
|
133798
|
+
* @memberof PHQAssessmentAssigned
|
|
133799
|
+
* @static
|
|
133800
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
133801
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned
|
|
133802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
133803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
133804
|
+
*/
|
|
133805
|
+
PHQAssessmentAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
133806
|
+
if (!(reader instanceof $Reader))
|
|
133807
|
+
reader = new $Reader(reader);
|
|
133808
|
+
return this.decode(reader, reader.uint32());
|
|
133809
|
+
};
|
|
133810
|
+
|
|
133811
|
+
/**
|
|
133812
|
+
* Verifies a PHQAssessmentAssigned message.
|
|
133813
|
+
* @function verify
|
|
133814
|
+
* @memberof PHQAssessmentAssigned
|
|
133815
|
+
* @static
|
|
133816
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
133817
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
133818
|
+
*/
|
|
133819
|
+
PHQAssessmentAssigned.verify = function verify(message) {
|
|
133820
|
+
if (typeof message !== "object" || message === null)
|
|
133821
|
+
return "object expected";
|
|
133822
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133823
|
+
if (!$util.isString(message.hsUserId))
|
|
133824
|
+
return "hsUserId: string expected";
|
|
133825
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
133826
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
133827
|
+
return "gingerUserId: integer expected";
|
|
133828
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133829
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
133830
|
+
return "assignedAtIsoDate: string expected";
|
|
133831
|
+
return null;
|
|
133832
|
+
};
|
|
133833
|
+
|
|
133834
|
+
/**
|
|
133835
|
+
* Creates a PHQAssessmentAssigned message from a plain object. Also converts values to their respective internal types.
|
|
133836
|
+
* @function fromObject
|
|
133837
|
+
* @memberof PHQAssessmentAssigned
|
|
133838
|
+
* @static
|
|
133839
|
+
* @param {Object.<string,*>} object Plain object
|
|
133840
|
+
* @returns {PHQAssessmentAssigned} PHQAssessmentAssigned
|
|
133841
|
+
*/
|
|
133842
|
+
PHQAssessmentAssigned.fromObject = function fromObject(object) {
|
|
133843
|
+
if (object instanceof $root.PHQAssessmentAssigned)
|
|
133844
|
+
return object;
|
|
133845
|
+
var message = new $root.PHQAssessmentAssigned();
|
|
133846
|
+
if (object.hsUserId != null)
|
|
133847
|
+
message.hsUserId = String(object.hsUserId);
|
|
133848
|
+
if (object.gingerUserId != null)
|
|
133849
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
133850
|
+
if (object.assignedAtIsoDate != null)
|
|
133851
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
133852
|
+
return message;
|
|
133853
|
+
};
|
|
133854
|
+
|
|
133855
|
+
/**
|
|
133856
|
+
* Creates a plain object from a PHQAssessmentAssigned message. Also converts values to other types if specified.
|
|
133857
|
+
* @function toObject
|
|
133858
|
+
* @memberof PHQAssessmentAssigned
|
|
133859
|
+
* @static
|
|
133860
|
+
* @param {PHQAssessmentAssigned} message PHQAssessmentAssigned
|
|
133861
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
133862
|
+
* @returns {Object.<string,*>} Plain object
|
|
133863
|
+
*/
|
|
133864
|
+
PHQAssessmentAssigned.toObject = function toObject(message, options) {
|
|
133865
|
+
if (!options)
|
|
133866
|
+
options = {};
|
|
133867
|
+
var object = {};
|
|
133868
|
+
if (options.defaults) {
|
|
133869
|
+
object.hsUserId = "";
|
|
133870
|
+
object.gingerUserId = 0;
|
|
133871
|
+
object.assignedAtIsoDate = "";
|
|
133872
|
+
}
|
|
133873
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133874
|
+
object.hsUserId = message.hsUserId;
|
|
133875
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
133876
|
+
object.gingerUserId = message.gingerUserId;
|
|
133877
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
133878
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
133879
|
+
return object;
|
|
133880
|
+
};
|
|
133881
|
+
|
|
133882
|
+
/**
|
|
133883
|
+
* Converts this PHQAssessmentAssigned to JSON.
|
|
133884
|
+
* @function toJSON
|
|
133885
|
+
* @memberof PHQAssessmentAssigned
|
|
133886
|
+
* @instance
|
|
133887
|
+
* @returns {Object.<string,*>} JSON object
|
|
133888
|
+
*/
|
|
133889
|
+
PHQAssessmentAssigned.prototype.toJSON = function toJSON() {
|
|
133890
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
133891
|
+
};
|
|
133892
|
+
|
|
133893
|
+
return PHQAssessmentAssigned;
|
|
133894
|
+
})();
|
|
133895
|
+
|
|
133896
|
+
$root.PHQAssessmentStarted = (function() {
|
|
133897
|
+
|
|
133898
|
+
/**
|
|
133899
|
+
* Properties of a PHQAssessmentStarted.
|
|
133900
|
+
* @name IPHQAssessmentStarted
|
|
133901
|
+
* @interface IPHQAssessmentStarted
|
|
133902
|
+
* @property {string|null} [hsUserId] PHQAssessmentStarted hsUserId
|
|
133903
|
+
* @property {number|null} [gingerUserId] PHQAssessmentStarted gingerUserId
|
|
133904
|
+
* @property {string|null} [startedAtIsoDate] PHQAssessmentStarted startedAtIsoDate
|
|
133905
|
+
*/
|
|
133906
|
+
|
|
133907
|
+
/**
|
|
133908
|
+
* Constructs a new PHQAssessmentStarted.
|
|
133909
|
+
* @name PHQAssessmentStarted
|
|
133910
|
+
* @classdesc Represents a PHQAssessmentStarted.
|
|
133911
|
+
* @implements IPHQAssessmentStarted
|
|
133912
|
+
* @constructor
|
|
133913
|
+
* @param {IPHQAssessmentStarted=} [properties] Properties to set
|
|
133914
|
+
*/
|
|
133915
|
+
function PHQAssessmentStarted(properties) {
|
|
133916
|
+
if (properties)
|
|
133917
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
133918
|
+
if (properties[keys[i]] != null)
|
|
133919
|
+
this[keys[i]] = properties[keys[i]];
|
|
133920
|
+
}
|
|
133921
|
+
|
|
133922
|
+
/**
|
|
133923
|
+
* PHQAssessmentStarted hsUserId.
|
|
133924
|
+
* @member {string} hsUserId
|
|
133925
|
+
* @memberof PHQAssessmentStarted
|
|
133926
|
+
* @instance
|
|
133927
|
+
*/
|
|
133928
|
+
PHQAssessmentStarted.prototype.hsUserId = "";
|
|
133929
|
+
|
|
133930
|
+
/**
|
|
133931
|
+
* PHQAssessmentStarted gingerUserId.
|
|
133932
|
+
* @member {number} gingerUserId
|
|
133933
|
+
* @memberof PHQAssessmentStarted
|
|
133934
|
+
* @instance
|
|
133935
|
+
*/
|
|
133936
|
+
PHQAssessmentStarted.prototype.gingerUserId = 0;
|
|
133937
|
+
|
|
133938
|
+
/**
|
|
133939
|
+
* PHQAssessmentStarted startedAtIsoDate.
|
|
133940
|
+
* @member {string} startedAtIsoDate
|
|
133941
|
+
* @memberof PHQAssessmentStarted
|
|
133942
|
+
* @instance
|
|
133943
|
+
*/
|
|
133944
|
+
PHQAssessmentStarted.prototype.startedAtIsoDate = "";
|
|
133945
|
+
|
|
133946
|
+
/**
|
|
133947
|
+
* Creates a new PHQAssessmentStarted instance using the specified properties.
|
|
133948
|
+
* @function create
|
|
133949
|
+
* @memberof PHQAssessmentStarted
|
|
133950
|
+
* @static
|
|
133951
|
+
* @param {IPHQAssessmentStarted=} [properties] Properties to set
|
|
133952
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted instance
|
|
133953
|
+
*/
|
|
133954
|
+
PHQAssessmentStarted.create = function create(properties) {
|
|
133955
|
+
return new PHQAssessmentStarted(properties);
|
|
133956
|
+
};
|
|
133957
|
+
|
|
133958
|
+
/**
|
|
133959
|
+
* Encodes the specified PHQAssessmentStarted message. Does not implicitly {@link PHQAssessmentStarted.verify|verify} messages.
|
|
133960
|
+
* @function encode
|
|
133961
|
+
* @memberof PHQAssessmentStarted
|
|
133962
|
+
* @static
|
|
133963
|
+
* @param {IPHQAssessmentStarted} message PHQAssessmentStarted message or plain object to encode
|
|
133964
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
133965
|
+
* @returns {$protobuf.Writer} Writer
|
|
133966
|
+
*/
|
|
133967
|
+
PHQAssessmentStarted.encode = function encode(message, writer) {
|
|
133968
|
+
if (!writer)
|
|
133969
|
+
writer = $Writer.create();
|
|
133970
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
133971
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
133972
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
133973
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
133974
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
133975
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
133976
|
+
return writer;
|
|
133977
|
+
};
|
|
133978
|
+
|
|
133979
|
+
/**
|
|
133980
|
+
* Encodes the specified PHQAssessmentStarted message, length delimited. Does not implicitly {@link PHQAssessmentStarted.verify|verify} messages.
|
|
133981
|
+
* @function encodeDelimited
|
|
133982
|
+
* @memberof PHQAssessmentStarted
|
|
133983
|
+
* @static
|
|
133984
|
+
* @param {IPHQAssessmentStarted} message PHQAssessmentStarted message or plain object to encode
|
|
133985
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
133986
|
+
* @returns {$protobuf.Writer} Writer
|
|
133987
|
+
*/
|
|
133988
|
+
PHQAssessmentStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
133989
|
+
return this.encode(message, writer).ldelim();
|
|
133990
|
+
};
|
|
133991
|
+
|
|
133992
|
+
/**
|
|
133993
|
+
* Decodes a PHQAssessmentStarted message from the specified reader or buffer.
|
|
133994
|
+
* @function decode
|
|
133995
|
+
* @memberof PHQAssessmentStarted
|
|
133996
|
+
* @static
|
|
133997
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
133998
|
+
* @param {number} [length] Message length if known beforehand
|
|
133999
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted
|
|
134000
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134001
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134002
|
+
*/
|
|
134003
|
+
PHQAssessmentStarted.decode = function decode(reader, length) {
|
|
134004
|
+
if (!(reader instanceof $Reader))
|
|
134005
|
+
reader = $Reader.create(reader);
|
|
134006
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PHQAssessmentStarted();
|
|
134007
|
+
while (reader.pos < end) {
|
|
134008
|
+
var tag = reader.uint32();
|
|
134009
|
+
switch (tag >>> 3) {
|
|
134010
|
+
case 1:
|
|
134011
|
+
message.hsUserId = reader.string();
|
|
134012
|
+
break;
|
|
134013
|
+
case 2:
|
|
134014
|
+
message.gingerUserId = reader.uint32();
|
|
134015
|
+
break;
|
|
134016
|
+
case 3:
|
|
134017
|
+
message.startedAtIsoDate = reader.string();
|
|
134018
|
+
break;
|
|
134019
|
+
default:
|
|
134020
|
+
reader.skipType(tag & 7);
|
|
134021
|
+
break;
|
|
134022
|
+
}
|
|
134023
|
+
}
|
|
134024
|
+
return message;
|
|
134025
|
+
};
|
|
134026
|
+
|
|
134027
|
+
/**
|
|
134028
|
+
* Decodes a PHQAssessmentStarted message from the specified reader or buffer, length delimited.
|
|
134029
|
+
* @function decodeDelimited
|
|
134030
|
+
* @memberof PHQAssessmentStarted
|
|
134031
|
+
* @static
|
|
134032
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134033
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted
|
|
134034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134036
|
+
*/
|
|
134037
|
+
PHQAssessmentStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
134038
|
+
if (!(reader instanceof $Reader))
|
|
134039
|
+
reader = new $Reader(reader);
|
|
134040
|
+
return this.decode(reader, reader.uint32());
|
|
134041
|
+
};
|
|
134042
|
+
|
|
134043
|
+
/**
|
|
134044
|
+
* Verifies a PHQAssessmentStarted message.
|
|
134045
|
+
* @function verify
|
|
134046
|
+
* @memberof PHQAssessmentStarted
|
|
134047
|
+
* @static
|
|
134048
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
134049
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
134050
|
+
*/
|
|
134051
|
+
PHQAssessmentStarted.verify = function verify(message) {
|
|
134052
|
+
if (typeof message !== "object" || message === null)
|
|
134053
|
+
return "object expected";
|
|
134054
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134055
|
+
if (!$util.isString(message.hsUserId))
|
|
134056
|
+
return "hsUserId: string expected";
|
|
134057
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134058
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
134059
|
+
return "gingerUserId: integer expected";
|
|
134060
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
134061
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
134062
|
+
return "startedAtIsoDate: string expected";
|
|
134063
|
+
return null;
|
|
134064
|
+
};
|
|
134065
|
+
|
|
134066
|
+
/**
|
|
134067
|
+
* Creates a PHQAssessmentStarted message from a plain object. Also converts values to their respective internal types.
|
|
134068
|
+
* @function fromObject
|
|
134069
|
+
* @memberof PHQAssessmentStarted
|
|
134070
|
+
* @static
|
|
134071
|
+
* @param {Object.<string,*>} object Plain object
|
|
134072
|
+
* @returns {PHQAssessmentStarted} PHQAssessmentStarted
|
|
134073
|
+
*/
|
|
134074
|
+
PHQAssessmentStarted.fromObject = function fromObject(object) {
|
|
134075
|
+
if (object instanceof $root.PHQAssessmentStarted)
|
|
134076
|
+
return object;
|
|
134077
|
+
var message = new $root.PHQAssessmentStarted();
|
|
134078
|
+
if (object.hsUserId != null)
|
|
134079
|
+
message.hsUserId = String(object.hsUserId);
|
|
134080
|
+
if (object.gingerUserId != null)
|
|
134081
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
134082
|
+
if (object.startedAtIsoDate != null)
|
|
134083
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
134084
|
+
return message;
|
|
134085
|
+
};
|
|
134086
|
+
|
|
134087
|
+
/**
|
|
134088
|
+
* Creates a plain object from a PHQAssessmentStarted message. Also converts values to other types if specified.
|
|
134089
|
+
* @function toObject
|
|
134090
|
+
* @memberof PHQAssessmentStarted
|
|
134091
|
+
* @static
|
|
134092
|
+
* @param {PHQAssessmentStarted} message PHQAssessmentStarted
|
|
134093
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
134094
|
+
* @returns {Object.<string,*>} Plain object
|
|
134095
|
+
*/
|
|
134096
|
+
PHQAssessmentStarted.toObject = function toObject(message, options) {
|
|
134097
|
+
if (!options)
|
|
134098
|
+
options = {};
|
|
134099
|
+
var object = {};
|
|
134100
|
+
if (options.defaults) {
|
|
134101
|
+
object.hsUserId = "";
|
|
134102
|
+
object.gingerUserId = 0;
|
|
134103
|
+
object.startedAtIsoDate = "";
|
|
134104
|
+
}
|
|
134105
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134106
|
+
object.hsUserId = message.hsUserId;
|
|
134107
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134108
|
+
object.gingerUserId = message.gingerUserId;
|
|
134109
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
134110
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
134111
|
+
return object;
|
|
134112
|
+
};
|
|
134113
|
+
|
|
134114
|
+
/**
|
|
134115
|
+
* Converts this PHQAssessmentStarted to JSON.
|
|
134116
|
+
* @function toJSON
|
|
134117
|
+
* @memberof PHQAssessmentStarted
|
|
134118
|
+
* @instance
|
|
134119
|
+
* @returns {Object.<string,*>} JSON object
|
|
134120
|
+
*/
|
|
134121
|
+
PHQAssessmentStarted.prototype.toJSON = function toJSON() {
|
|
134122
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
134123
|
+
};
|
|
134124
|
+
|
|
134125
|
+
return PHQAssessmentStarted;
|
|
134126
|
+
})();
|
|
134127
|
+
|
|
134128
|
+
$root.PHQAssessmentCompleted = (function() {
|
|
134129
|
+
|
|
134130
|
+
/**
|
|
134131
|
+
* Properties of a PHQAssessmentCompleted.
|
|
134132
|
+
* @name IPHQAssessmentCompleted
|
|
134133
|
+
* @interface IPHQAssessmentCompleted
|
|
134134
|
+
* @property {string|null} [hsUserId] PHQAssessmentCompleted hsUserId
|
|
134135
|
+
* @property {number|null} [gingerUserId] PHQAssessmentCompleted gingerUserId
|
|
134136
|
+
* @property {string|null} [completedAtIsoDate] PHQAssessmentCompleted completedAtIsoDate
|
|
134137
|
+
*/
|
|
134138
|
+
|
|
134139
|
+
/**
|
|
134140
|
+
* Constructs a new PHQAssessmentCompleted.
|
|
134141
|
+
* @name PHQAssessmentCompleted
|
|
134142
|
+
* @classdesc Represents a PHQAssessmentCompleted.
|
|
134143
|
+
* @implements IPHQAssessmentCompleted
|
|
134144
|
+
* @constructor
|
|
134145
|
+
* @param {IPHQAssessmentCompleted=} [properties] Properties to set
|
|
134146
|
+
*/
|
|
134147
|
+
function PHQAssessmentCompleted(properties) {
|
|
134148
|
+
if (properties)
|
|
134149
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
134150
|
+
if (properties[keys[i]] != null)
|
|
134151
|
+
this[keys[i]] = properties[keys[i]];
|
|
134152
|
+
}
|
|
134153
|
+
|
|
134154
|
+
/**
|
|
134155
|
+
* PHQAssessmentCompleted hsUserId.
|
|
134156
|
+
* @member {string} hsUserId
|
|
134157
|
+
* @memberof PHQAssessmentCompleted
|
|
134158
|
+
* @instance
|
|
134159
|
+
*/
|
|
134160
|
+
PHQAssessmentCompleted.prototype.hsUserId = "";
|
|
134161
|
+
|
|
134162
|
+
/**
|
|
134163
|
+
* PHQAssessmentCompleted gingerUserId.
|
|
134164
|
+
* @member {number} gingerUserId
|
|
134165
|
+
* @memberof PHQAssessmentCompleted
|
|
134166
|
+
* @instance
|
|
134167
|
+
*/
|
|
134168
|
+
PHQAssessmentCompleted.prototype.gingerUserId = 0;
|
|
134169
|
+
|
|
134170
|
+
/**
|
|
134171
|
+
* PHQAssessmentCompleted completedAtIsoDate.
|
|
134172
|
+
* @member {string} completedAtIsoDate
|
|
134173
|
+
* @memberof PHQAssessmentCompleted
|
|
134174
|
+
* @instance
|
|
134175
|
+
*/
|
|
134176
|
+
PHQAssessmentCompleted.prototype.completedAtIsoDate = "";
|
|
134177
|
+
|
|
134178
|
+
/**
|
|
134179
|
+
* Creates a new PHQAssessmentCompleted instance using the specified properties.
|
|
134180
|
+
* @function create
|
|
134181
|
+
* @memberof PHQAssessmentCompleted
|
|
134182
|
+
* @static
|
|
134183
|
+
* @param {IPHQAssessmentCompleted=} [properties] Properties to set
|
|
134184
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted instance
|
|
134185
|
+
*/
|
|
134186
|
+
PHQAssessmentCompleted.create = function create(properties) {
|
|
134187
|
+
return new PHQAssessmentCompleted(properties);
|
|
134188
|
+
};
|
|
134189
|
+
|
|
134190
|
+
/**
|
|
134191
|
+
* Encodes the specified PHQAssessmentCompleted message. Does not implicitly {@link PHQAssessmentCompleted.verify|verify} messages.
|
|
134192
|
+
* @function encode
|
|
134193
|
+
* @memberof PHQAssessmentCompleted
|
|
134194
|
+
* @static
|
|
134195
|
+
* @param {IPHQAssessmentCompleted} message PHQAssessmentCompleted message or plain object to encode
|
|
134196
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134197
|
+
* @returns {$protobuf.Writer} Writer
|
|
134198
|
+
*/
|
|
134199
|
+
PHQAssessmentCompleted.encode = function encode(message, writer) {
|
|
134200
|
+
if (!writer)
|
|
134201
|
+
writer = $Writer.create();
|
|
134202
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134203
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
134204
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134205
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
134206
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
134207
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
|
|
134208
|
+
return writer;
|
|
134209
|
+
};
|
|
134210
|
+
|
|
134211
|
+
/**
|
|
134212
|
+
* Encodes the specified PHQAssessmentCompleted message, length delimited. Does not implicitly {@link PHQAssessmentCompleted.verify|verify} messages.
|
|
134213
|
+
* @function encodeDelimited
|
|
134214
|
+
* @memberof PHQAssessmentCompleted
|
|
134215
|
+
* @static
|
|
134216
|
+
* @param {IPHQAssessmentCompleted} message PHQAssessmentCompleted message or plain object to encode
|
|
134217
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
134218
|
+
* @returns {$protobuf.Writer} Writer
|
|
134219
|
+
*/
|
|
134220
|
+
PHQAssessmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
134221
|
+
return this.encode(message, writer).ldelim();
|
|
134222
|
+
};
|
|
134223
|
+
|
|
134224
|
+
/**
|
|
134225
|
+
* Decodes a PHQAssessmentCompleted message from the specified reader or buffer.
|
|
134226
|
+
* @function decode
|
|
134227
|
+
* @memberof PHQAssessmentCompleted
|
|
134228
|
+
* @static
|
|
134229
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134230
|
+
* @param {number} [length] Message length if known beforehand
|
|
134231
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted
|
|
134232
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134233
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134234
|
+
*/
|
|
134235
|
+
PHQAssessmentCompleted.decode = function decode(reader, length) {
|
|
134236
|
+
if (!(reader instanceof $Reader))
|
|
134237
|
+
reader = $Reader.create(reader);
|
|
134238
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PHQAssessmentCompleted();
|
|
134239
|
+
while (reader.pos < end) {
|
|
134240
|
+
var tag = reader.uint32();
|
|
134241
|
+
switch (tag >>> 3) {
|
|
134242
|
+
case 1:
|
|
134243
|
+
message.hsUserId = reader.string();
|
|
134244
|
+
break;
|
|
134245
|
+
case 2:
|
|
134246
|
+
message.gingerUserId = reader.uint32();
|
|
134247
|
+
break;
|
|
134248
|
+
case 3:
|
|
134249
|
+
message.completedAtIsoDate = reader.string();
|
|
134250
|
+
break;
|
|
134251
|
+
default:
|
|
134252
|
+
reader.skipType(tag & 7);
|
|
134253
|
+
break;
|
|
134254
|
+
}
|
|
134255
|
+
}
|
|
134256
|
+
return message;
|
|
134257
|
+
};
|
|
134258
|
+
|
|
134259
|
+
/**
|
|
134260
|
+
* Decodes a PHQAssessmentCompleted message from the specified reader or buffer, length delimited.
|
|
134261
|
+
* @function decodeDelimited
|
|
134262
|
+
* @memberof PHQAssessmentCompleted
|
|
134263
|
+
* @static
|
|
134264
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
134265
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted
|
|
134266
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
134267
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
134268
|
+
*/
|
|
134269
|
+
PHQAssessmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
134270
|
+
if (!(reader instanceof $Reader))
|
|
134271
|
+
reader = new $Reader(reader);
|
|
134272
|
+
return this.decode(reader, reader.uint32());
|
|
134273
|
+
};
|
|
134274
|
+
|
|
134275
|
+
/**
|
|
134276
|
+
* Verifies a PHQAssessmentCompleted message.
|
|
134277
|
+
* @function verify
|
|
134278
|
+
* @memberof PHQAssessmentCompleted
|
|
134279
|
+
* @static
|
|
134280
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
134281
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
134282
|
+
*/
|
|
134283
|
+
PHQAssessmentCompleted.verify = function verify(message) {
|
|
134284
|
+
if (typeof message !== "object" || message === null)
|
|
134285
|
+
return "object expected";
|
|
134286
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134287
|
+
if (!$util.isString(message.hsUserId))
|
|
134288
|
+
return "hsUserId: string expected";
|
|
134289
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134290
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
134291
|
+
return "gingerUserId: integer expected";
|
|
134292
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
134293
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
134294
|
+
return "completedAtIsoDate: string expected";
|
|
134295
|
+
return null;
|
|
134296
|
+
};
|
|
134297
|
+
|
|
134298
|
+
/**
|
|
134299
|
+
* Creates a PHQAssessmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
134300
|
+
* @function fromObject
|
|
134301
|
+
* @memberof PHQAssessmentCompleted
|
|
134302
|
+
* @static
|
|
134303
|
+
* @param {Object.<string,*>} object Plain object
|
|
134304
|
+
* @returns {PHQAssessmentCompleted} PHQAssessmentCompleted
|
|
134305
|
+
*/
|
|
134306
|
+
PHQAssessmentCompleted.fromObject = function fromObject(object) {
|
|
134307
|
+
if (object instanceof $root.PHQAssessmentCompleted)
|
|
134308
|
+
return object;
|
|
134309
|
+
var message = new $root.PHQAssessmentCompleted();
|
|
134310
|
+
if (object.hsUserId != null)
|
|
134311
|
+
message.hsUserId = String(object.hsUserId);
|
|
134312
|
+
if (object.gingerUserId != null)
|
|
134313
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
134314
|
+
if (object.completedAtIsoDate != null)
|
|
134315
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
134316
|
+
return message;
|
|
134317
|
+
};
|
|
134318
|
+
|
|
134319
|
+
/**
|
|
134320
|
+
* Creates a plain object from a PHQAssessmentCompleted message. Also converts values to other types if specified.
|
|
134321
|
+
* @function toObject
|
|
134322
|
+
* @memberof PHQAssessmentCompleted
|
|
134323
|
+
* @static
|
|
134324
|
+
* @param {PHQAssessmentCompleted} message PHQAssessmentCompleted
|
|
134325
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
134326
|
+
* @returns {Object.<string,*>} Plain object
|
|
134327
|
+
*/
|
|
134328
|
+
PHQAssessmentCompleted.toObject = function toObject(message, options) {
|
|
134329
|
+
if (!options)
|
|
134330
|
+
options = {};
|
|
134331
|
+
var object = {};
|
|
134332
|
+
if (options.defaults) {
|
|
134333
|
+
object.hsUserId = "";
|
|
134334
|
+
object.gingerUserId = 0;
|
|
134335
|
+
object.completedAtIsoDate = "";
|
|
134336
|
+
}
|
|
134337
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
134338
|
+
object.hsUserId = message.hsUserId;
|
|
134339
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
134340
|
+
object.gingerUserId = message.gingerUserId;
|
|
134341
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
134342
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
134343
|
+
return object;
|
|
134344
|
+
};
|
|
134345
|
+
|
|
134346
|
+
/**
|
|
134347
|
+
* Converts this PHQAssessmentCompleted to JSON.
|
|
134348
|
+
* @function toJSON
|
|
134349
|
+
* @memberof PHQAssessmentCompleted
|
|
134350
|
+
* @instance
|
|
134351
|
+
* @returns {Object.<string,*>} JSON object
|
|
134352
|
+
*/
|
|
134353
|
+
PHQAssessmentCompleted.prototype.toJSON = function toJSON() {
|
|
134354
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
134355
|
+
};
|
|
134356
|
+
|
|
134357
|
+
return PHQAssessmentCompleted;
|
|
134358
|
+
})();
|
|
134359
|
+
|
|
132968
134360
|
$root.WakeupPlaylistCreated = (function() {
|
|
132969
134361
|
|
|
132970
134362
|
/**
|
|
@@ -140957,6 +142349,702 @@ $root.ProductSkuVersioned = (function() {
|
|
|
140957
142349
|
return ProductSkuVersioned;
|
|
140958
142350
|
})();
|
|
140959
142351
|
|
|
142352
|
+
$root.PSSAssessmentAssigned = (function() {
|
|
142353
|
+
|
|
142354
|
+
/**
|
|
142355
|
+
* Properties of a PSSAssessmentAssigned.
|
|
142356
|
+
* @name IPSSAssessmentAssigned
|
|
142357
|
+
* @interface IPSSAssessmentAssigned
|
|
142358
|
+
* @property {string|null} [hsUserId] PSSAssessmentAssigned hsUserId
|
|
142359
|
+
* @property {number|null} [gingerUserId] PSSAssessmentAssigned gingerUserId
|
|
142360
|
+
* @property {string|null} [assignedAtIsoDate] PSSAssessmentAssigned assignedAtIsoDate
|
|
142361
|
+
*/
|
|
142362
|
+
|
|
142363
|
+
/**
|
|
142364
|
+
* Constructs a new PSSAssessmentAssigned.
|
|
142365
|
+
* @name PSSAssessmentAssigned
|
|
142366
|
+
* @classdesc Represents a PSSAssessmentAssigned.
|
|
142367
|
+
* @implements IPSSAssessmentAssigned
|
|
142368
|
+
* @constructor
|
|
142369
|
+
* @param {IPSSAssessmentAssigned=} [properties] Properties to set
|
|
142370
|
+
*/
|
|
142371
|
+
function PSSAssessmentAssigned(properties) {
|
|
142372
|
+
if (properties)
|
|
142373
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
142374
|
+
if (properties[keys[i]] != null)
|
|
142375
|
+
this[keys[i]] = properties[keys[i]];
|
|
142376
|
+
}
|
|
142377
|
+
|
|
142378
|
+
/**
|
|
142379
|
+
* PSSAssessmentAssigned hsUserId.
|
|
142380
|
+
* @member {string} hsUserId
|
|
142381
|
+
* @memberof PSSAssessmentAssigned
|
|
142382
|
+
* @instance
|
|
142383
|
+
*/
|
|
142384
|
+
PSSAssessmentAssigned.prototype.hsUserId = "";
|
|
142385
|
+
|
|
142386
|
+
/**
|
|
142387
|
+
* PSSAssessmentAssigned gingerUserId.
|
|
142388
|
+
* @member {number} gingerUserId
|
|
142389
|
+
* @memberof PSSAssessmentAssigned
|
|
142390
|
+
* @instance
|
|
142391
|
+
*/
|
|
142392
|
+
PSSAssessmentAssigned.prototype.gingerUserId = 0;
|
|
142393
|
+
|
|
142394
|
+
/**
|
|
142395
|
+
* PSSAssessmentAssigned assignedAtIsoDate.
|
|
142396
|
+
* @member {string} assignedAtIsoDate
|
|
142397
|
+
* @memberof PSSAssessmentAssigned
|
|
142398
|
+
* @instance
|
|
142399
|
+
*/
|
|
142400
|
+
PSSAssessmentAssigned.prototype.assignedAtIsoDate = "";
|
|
142401
|
+
|
|
142402
|
+
/**
|
|
142403
|
+
* Creates a new PSSAssessmentAssigned instance using the specified properties.
|
|
142404
|
+
* @function create
|
|
142405
|
+
* @memberof PSSAssessmentAssigned
|
|
142406
|
+
* @static
|
|
142407
|
+
* @param {IPSSAssessmentAssigned=} [properties] Properties to set
|
|
142408
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned instance
|
|
142409
|
+
*/
|
|
142410
|
+
PSSAssessmentAssigned.create = function create(properties) {
|
|
142411
|
+
return new PSSAssessmentAssigned(properties);
|
|
142412
|
+
};
|
|
142413
|
+
|
|
142414
|
+
/**
|
|
142415
|
+
* Encodes the specified PSSAssessmentAssigned message. Does not implicitly {@link PSSAssessmentAssigned.verify|verify} messages.
|
|
142416
|
+
* @function encode
|
|
142417
|
+
* @memberof PSSAssessmentAssigned
|
|
142418
|
+
* @static
|
|
142419
|
+
* @param {IPSSAssessmentAssigned} message PSSAssessmentAssigned message or plain object to encode
|
|
142420
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142421
|
+
* @returns {$protobuf.Writer} Writer
|
|
142422
|
+
*/
|
|
142423
|
+
PSSAssessmentAssigned.encode = function encode(message, writer) {
|
|
142424
|
+
if (!writer)
|
|
142425
|
+
writer = $Writer.create();
|
|
142426
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142427
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
142428
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142429
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
142430
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
142431
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.assignedAtIsoDate);
|
|
142432
|
+
return writer;
|
|
142433
|
+
};
|
|
142434
|
+
|
|
142435
|
+
/**
|
|
142436
|
+
* Encodes the specified PSSAssessmentAssigned message, length delimited. Does not implicitly {@link PSSAssessmentAssigned.verify|verify} messages.
|
|
142437
|
+
* @function encodeDelimited
|
|
142438
|
+
* @memberof PSSAssessmentAssigned
|
|
142439
|
+
* @static
|
|
142440
|
+
* @param {IPSSAssessmentAssigned} message PSSAssessmentAssigned message or plain object to encode
|
|
142441
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142442
|
+
* @returns {$protobuf.Writer} Writer
|
|
142443
|
+
*/
|
|
142444
|
+
PSSAssessmentAssigned.encodeDelimited = function encodeDelimited(message, writer) {
|
|
142445
|
+
return this.encode(message, writer).ldelim();
|
|
142446
|
+
};
|
|
142447
|
+
|
|
142448
|
+
/**
|
|
142449
|
+
* Decodes a PSSAssessmentAssigned message from the specified reader or buffer.
|
|
142450
|
+
* @function decode
|
|
142451
|
+
* @memberof PSSAssessmentAssigned
|
|
142452
|
+
* @static
|
|
142453
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142454
|
+
* @param {number} [length] Message length if known beforehand
|
|
142455
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned
|
|
142456
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142457
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142458
|
+
*/
|
|
142459
|
+
PSSAssessmentAssigned.decode = function decode(reader, length) {
|
|
142460
|
+
if (!(reader instanceof $Reader))
|
|
142461
|
+
reader = $Reader.create(reader);
|
|
142462
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PSSAssessmentAssigned();
|
|
142463
|
+
while (reader.pos < end) {
|
|
142464
|
+
var tag = reader.uint32();
|
|
142465
|
+
switch (tag >>> 3) {
|
|
142466
|
+
case 1:
|
|
142467
|
+
message.hsUserId = reader.string();
|
|
142468
|
+
break;
|
|
142469
|
+
case 2:
|
|
142470
|
+
message.gingerUserId = reader.uint32();
|
|
142471
|
+
break;
|
|
142472
|
+
case 3:
|
|
142473
|
+
message.assignedAtIsoDate = reader.string();
|
|
142474
|
+
break;
|
|
142475
|
+
default:
|
|
142476
|
+
reader.skipType(tag & 7);
|
|
142477
|
+
break;
|
|
142478
|
+
}
|
|
142479
|
+
}
|
|
142480
|
+
return message;
|
|
142481
|
+
};
|
|
142482
|
+
|
|
142483
|
+
/**
|
|
142484
|
+
* Decodes a PSSAssessmentAssigned message from the specified reader or buffer, length delimited.
|
|
142485
|
+
* @function decodeDelimited
|
|
142486
|
+
* @memberof PSSAssessmentAssigned
|
|
142487
|
+
* @static
|
|
142488
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142489
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned
|
|
142490
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142491
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142492
|
+
*/
|
|
142493
|
+
PSSAssessmentAssigned.decodeDelimited = function decodeDelimited(reader) {
|
|
142494
|
+
if (!(reader instanceof $Reader))
|
|
142495
|
+
reader = new $Reader(reader);
|
|
142496
|
+
return this.decode(reader, reader.uint32());
|
|
142497
|
+
};
|
|
142498
|
+
|
|
142499
|
+
/**
|
|
142500
|
+
* Verifies a PSSAssessmentAssigned message.
|
|
142501
|
+
* @function verify
|
|
142502
|
+
* @memberof PSSAssessmentAssigned
|
|
142503
|
+
* @static
|
|
142504
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
142505
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
142506
|
+
*/
|
|
142507
|
+
PSSAssessmentAssigned.verify = function verify(message) {
|
|
142508
|
+
if (typeof message !== "object" || message === null)
|
|
142509
|
+
return "object expected";
|
|
142510
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142511
|
+
if (!$util.isString(message.hsUserId))
|
|
142512
|
+
return "hsUserId: string expected";
|
|
142513
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142514
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
142515
|
+
return "gingerUserId: integer expected";
|
|
142516
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
142517
|
+
if (!$util.isString(message.assignedAtIsoDate))
|
|
142518
|
+
return "assignedAtIsoDate: string expected";
|
|
142519
|
+
return null;
|
|
142520
|
+
};
|
|
142521
|
+
|
|
142522
|
+
/**
|
|
142523
|
+
* Creates a PSSAssessmentAssigned message from a plain object. Also converts values to their respective internal types.
|
|
142524
|
+
* @function fromObject
|
|
142525
|
+
* @memberof PSSAssessmentAssigned
|
|
142526
|
+
* @static
|
|
142527
|
+
* @param {Object.<string,*>} object Plain object
|
|
142528
|
+
* @returns {PSSAssessmentAssigned} PSSAssessmentAssigned
|
|
142529
|
+
*/
|
|
142530
|
+
PSSAssessmentAssigned.fromObject = function fromObject(object) {
|
|
142531
|
+
if (object instanceof $root.PSSAssessmentAssigned)
|
|
142532
|
+
return object;
|
|
142533
|
+
var message = new $root.PSSAssessmentAssigned();
|
|
142534
|
+
if (object.hsUserId != null)
|
|
142535
|
+
message.hsUserId = String(object.hsUserId);
|
|
142536
|
+
if (object.gingerUserId != null)
|
|
142537
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
142538
|
+
if (object.assignedAtIsoDate != null)
|
|
142539
|
+
message.assignedAtIsoDate = String(object.assignedAtIsoDate);
|
|
142540
|
+
return message;
|
|
142541
|
+
};
|
|
142542
|
+
|
|
142543
|
+
/**
|
|
142544
|
+
* Creates a plain object from a PSSAssessmentAssigned message. Also converts values to other types if specified.
|
|
142545
|
+
* @function toObject
|
|
142546
|
+
* @memberof PSSAssessmentAssigned
|
|
142547
|
+
* @static
|
|
142548
|
+
* @param {PSSAssessmentAssigned} message PSSAssessmentAssigned
|
|
142549
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
142550
|
+
* @returns {Object.<string,*>} Plain object
|
|
142551
|
+
*/
|
|
142552
|
+
PSSAssessmentAssigned.toObject = function toObject(message, options) {
|
|
142553
|
+
if (!options)
|
|
142554
|
+
options = {};
|
|
142555
|
+
var object = {};
|
|
142556
|
+
if (options.defaults) {
|
|
142557
|
+
object.hsUserId = "";
|
|
142558
|
+
object.gingerUserId = 0;
|
|
142559
|
+
object.assignedAtIsoDate = "";
|
|
142560
|
+
}
|
|
142561
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142562
|
+
object.hsUserId = message.hsUserId;
|
|
142563
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142564
|
+
object.gingerUserId = message.gingerUserId;
|
|
142565
|
+
if (message.assignedAtIsoDate != null && message.hasOwnProperty("assignedAtIsoDate"))
|
|
142566
|
+
object.assignedAtIsoDate = message.assignedAtIsoDate;
|
|
142567
|
+
return object;
|
|
142568
|
+
};
|
|
142569
|
+
|
|
142570
|
+
/**
|
|
142571
|
+
* Converts this PSSAssessmentAssigned to JSON.
|
|
142572
|
+
* @function toJSON
|
|
142573
|
+
* @memberof PSSAssessmentAssigned
|
|
142574
|
+
* @instance
|
|
142575
|
+
* @returns {Object.<string,*>} JSON object
|
|
142576
|
+
*/
|
|
142577
|
+
PSSAssessmentAssigned.prototype.toJSON = function toJSON() {
|
|
142578
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
142579
|
+
};
|
|
142580
|
+
|
|
142581
|
+
return PSSAssessmentAssigned;
|
|
142582
|
+
})();
|
|
142583
|
+
|
|
142584
|
+
$root.PSSAssessmentStarted = (function() {
|
|
142585
|
+
|
|
142586
|
+
/**
|
|
142587
|
+
* Properties of a PSSAssessmentStarted.
|
|
142588
|
+
* @name IPSSAssessmentStarted
|
|
142589
|
+
* @interface IPSSAssessmentStarted
|
|
142590
|
+
* @property {string|null} [hsUserId] PSSAssessmentStarted hsUserId
|
|
142591
|
+
* @property {number|null} [gingerUserId] PSSAssessmentStarted gingerUserId
|
|
142592
|
+
* @property {string|null} [startedAtIsoDate] PSSAssessmentStarted startedAtIsoDate
|
|
142593
|
+
*/
|
|
142594
|
+
|
|
142595
|
+
/**
|
|
142596
|
+
* Constructs a new PSSAssessmentStarted.
|
|
142597
|
+
* @name PSSAssessmentStarted
|
|
142598
|
+
* @classdesc Represents a PSSAssessmentStarted.
|
|
142599
|
+
* @implements IPSSAssessmentStarted
|
|
142600
|
+
* @constructor
|
|
142601
|
+
* @param {IPSSAssessmentStarted=} [properties] Properties to set
|
|
142602
|
+
*/
|
|
142603
|
+
function PSSAssessmentStarted(properties) {
|
|
142604
|
+
if (properties)
|
|
142605
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
142606
|
+
if (properties[keys[i]] != null)
|
|
142607
|
+
this[keys[i]] = properties[keys[i]];
|
|
142608
|
+
}
|
|
142609
|
+
|
|
142610
|
+
/**
|
|
142611
|
+
* PSSAssessmentStarted hsUserId.
|
|
142612
|
+
* @member {string} hsUserId
|
|
142613
|
+
* @memberof PSSAssessmentStarted
|
|
142614
|
+
* @instance
|
|
142615
|
+
*/
|
|
142616
|
+
PSSAssessmentStarted.prototype.hsUserId = "";
|
|
142617
|
+
|
|
142618
|
+
/**
|
|
142619
|
+
* PSSAssessmentStarted gingerUserId.
|
|
142620
|
+
* @member {number} gingerUserId
|
|
142621
|
+
* @memberof PSSAssessmentStarted
|
|
142622
|
+
* @instance
|
|
142623
|
+
*/
|
|
142624
|
+
PSSAssessmentStarted.prototype.gingerUserId = 0;
|
|
142625
|
+
|
|
142626
|
+
/**
|
|
142627
|
+
* PSSAssessmentStarted startedAtIsoDate.
|
|
142628
|
+
* @member {string} startedAtIsoDate
|
|
142629
|
+
* @memberof PSSAssessmentStarted
|
|
142630
|
+
* @instance
|
|
142631
|
+
*/
|
|
142632
|
+
PSSAssessmentStarted.prototype.startedAtIsoDate = "";
|
|
142633
|
+
|
|
142634
|
+
/**
|
|
142635
|
+
* Creates a new PSSAssessmentStarted instance using the specified properties.
|
|
142636
|
+
* @function create
|
|
142637
|
+
* @memberof PSSAssessmentStarted
|
|
142638
|
+
* @static
|
|
142639
|
+
* @param {IPSSAssessmentStarted=} [properties] Properties to set
|
|
142640
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted instance
|
|
142641
|
+
*/
|
|
142642
|
+
PSSAssessmentStarted.create = function create(properties) {
|
|
142643
|
+
return new PSSAssessmentStarted(properties);
|
|
142644
|
+
};
|
|
142645
|
+
|
|
142646
|
+
/**
|
|
142647
|
+
* Encodes the specified PSSAssessmentStarted message. Does not implicitly {@link PSSAssessmentStarted.verify|verify} messages.
|
|
142648
|
+
* @function encode
|
|
142649
|
+
* @memberof PSSAssessmentStarted
|
|
142650
|
+
* @static
|
|
142651
|
+
* @param {IPSSAssessmentStarted} message PSSAssessmentStarted message or plain object to encode
|
|
142652
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142653
|
+
* @returns {$protobuf.Writer} Writer
|
|
142654
|
+
*/
|
|
142655
|
+
PSSAssessmentStarted.encode = function encode(message, writer) {
|
|
142656
|
+
if (!writer)
|
|
142657
|
+
writer = $Writer.create();
|
|
142658
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142659
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
142660
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142661
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
142662
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142663
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.startedAtIsoDate);
|
|
142664
|
+
return writer;
|
|
142665
|
+
};
|
|
142666
|
+
|
|
142667
|
+
/**
|
|
142668
|
+
* Encodes the specified PSSAssessmentStarted message, length delimited. Does not implicitly {@link PSSAssessmentStarted.verify|verify} messages.
|
|
142669
|
+
* @function encodeDelimited
|
|
142670
|
+
* @memberof PSSAssessmentStarted
|
|
142671
|
+
* @static
|
|
142672
|
+
* @param {IPSSAssessmentStarted} message PSSAssessmentStarted message or plain object to encode
|
|
142673
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142674
|
+
* @returns {$protobuf.Writer} Writer
|
|
142675
|
+
*/
|
|
142676
|
+
PSSAssessmentStarted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
142677
|
+
return this.encode(message, writer).ldelim();
|
|
142678
|
+
};
|
|
142679
|
+
|
|
142680
|
+
/**
|
|
142681
|
+
* Decodes a PSSAssessmentStarted message from the specified reader or buffer.
|
|
142682
|
+
* @function decode
|
|
142683
|
+
* @memberof PSSAssessmentStarted
|
|
142684
|
+
* @static
|
|
142685
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142686
|
+
* @param {number} [length] Message length if known beforehand
|
|
142687
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted
|
|
142688
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142689
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142690
|
+
*/
|
|
142691
|
+
PSSAssessmentStarted.decode = function decode(reader, length) {
|
|
142692
|
+
if (!(reader instanceof $Reader))
|
|
142693
|
+
reader = $Reader.create(reader);
|
|
142694
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PSSAssessmentStarted();
|
|
142695
|
+
while (reader.pos < end) {
|
|
142696
|
+
var tag = reader.uint32();
|
|
142697
|
+
switch (tag >>> 3) {
|
|
142698
|
+
case 1:
|
|
142699
|
+
message.hsUserId = reader.string();
|
|
142700
|
+
break;
|
|
142701
|
+
case 2:
|
|
142702
|
+
message.gingerUserId = reader.uint32();
|
|
142703
|
+
break;
|
|
142704
|
+
case 3:
|
|
142705
|
+
message.startedAtIsoDate = reader.string();
|
|
142706
|
+
break;
|
|
142707
|
+
default:
|
|
142708
|
+
reader.skipType(tag & 7);
|
|
142709
|
+
break;
|
|
142710
|
+
}
|
|
142711
|
+
}
|
|
142712
|
+
return message;
|
|
142713
|
+
};
|
|
142714
|
+
|
|
142715
|
+
/**
|
|
142716
|
+
* Decodes a PSSAssessmentStarted message from the specified reader or buffer, length delimited.
|
|
142717
|
+
* @function decodeDelimited
|
|
142718
|
+
* @memberof PSSAssessmentStarted
|
|
142719
|
+
* @static
|
|
142720
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142721
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted
|
|
142722
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142723
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142724
|
+
*/
|
|
142725
|
+
PSSAssessmentStarted.decodeDelimited = function decodeDelimited(reader) {
|
|
142726
|
+
if (!(reader instanceof $Reader))
|
|
142727
|
+
reader = new $Reader(reader);
|
|
142728
|
+
return this.decode(reader, reader.uint32());
|
|
142729
|
+
};
|
|
142730
|
+
|
|
142731
|
+
/**
|
|
142732
|
+
* Verifies a PSSAssessmentStarted message.
|
|
142733
|
+
* @function verify
|
|
142734
|
+
* @memberof PSSAssessmentStarted
|
|
142735
|
+
* @static
|
|
142736
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
142737
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
142738
|
+
*/
|
|
142739
|
+
PSSAssessmentStarted.verify = function verify(message) {
|
|
142740
|
+
if (typeof message !== "object" || message === null)
|
|
142741
|
+
return "object expected";
|
|
142742
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142743
|
+
if (!$util.isString(message.hsUserId))
|
|
142744
|
+
return "hsUserId: string expected";
|
|
142745
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142746
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
142747
|
+
return "gingerUserId: integer expected";
|
|
142748
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142749
|
+
if (!$util.isString(message.startedAtIsoDate))
|
|
142750
|
+
return "startedAtIsoDate: string expected";
|
|
142751
|
+
return null;
|
|
142752
|
+
};
|
|
142753
|
+
|
|
142754
|
+
/**
|
|
142755
|
+
* Creates a PSSAssessmentStarted message from a plain object. Also converts values to their respective internal types.
|
|
142756
|
+
* @function fromObject
|
|
142757
|
+
* @memberof PSSAssessmentStarted
|
|
142758
|
+
* @static
|
|
142759
|
+
* @param {Object.<string,*>} object Plain object
|
|
142760
|
+
* @returns {PSSAssessmentStarted} PSSAssessmentStarted
|
|
142761
|
+
*/
|
|
142762
|
+
PSSAssessmentStarted.fromObject = function fromObject(object) {
|
|
142763
|
+
if (object instanceof $root.PSSAssessmentStarted)
|
|
142764
|
+
return object;
|
|
142765
|
+
var message = new $root.PSSAssessmentStarted();
|
|
142766
|
+
if (object.hsUserId != null)
|
|
142767
|
+
message.hsUserId = String(object.hsUserId);
|
|
142768
|
+
if (object.gingerUserId != null)
|
|
142769
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
142770
|
+
if (object.startedAtIsoDate != null)
|
|
142771
|
+
message.startedAtIsoDate = String(object.startedAtIsoDate);
|
|
142772
|
+
return message;
|
|
142773
|
+
};
|
|
142774
|
+
|
|
142775
|
+
/**
|
|
142776
|
+
* Creates a plain object from a PSSAssessmentStarted message. Also converts values to other types if specified.
|
|
142777
|
+
* @function toObject
|
|
142778
|
+
* @memberof PSSAssessmentStarted
|
|
142779
|
+
* @static
|
|
142780
|
+
* @param {PSSAssessmentStarted} message PSSAssessmentStarted
|
|
142781
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
142782
|
+
* @returns {Object.<string,*>} Plain object
|
|
142783
|
+
*/
|
|
142784
|
+
PSSAssessmentStarted.toObject = function toObject(message, options) {
|
|
142785
|
+
if (!options)
|
|
142786
|
+
options = {};
|
|
142787
|
+
var object = {};
|
|
142788
|
+
if (options.defaults) {
|
|
142789
|
+
object.hsUserId = "";
|
|
142790
|
+
object.gingerUserId = 0;
|
|
142791
|
+
object.startedAtIsoDate = "";
|
|
142792
|
+
}
|
|
142793
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142794
|
+
object.hsUserId = message.hsUserId;
|
|
142795
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142796
|
+
object.gingerUserId = message.gingerUserId;
|
|
142797
|
+
if (message.startedAtIsoDate != null && message.hasOwnProperty("startedAtIsoDate"))
|
|
142798
|
+
object.startedAtIsoDate = message.startedAtIsoDate;
|
|
142799
|
+
return object;
|
|
142800
|
+
};
|
|
142801
|
+
|
|
142802
|
+
/**
|
|
142803
|
+
* Converts this PSSAssessmentStarted to JSON.
|
|
142804
|
+
* @function toJSON
|
|
142805
|
+
* @memberof PSSAssessmentStarted
|
|
142806
|
+
* @instance
|
|
142807
|
+
* @returns {Object.<string,*>} JSON object
|
|
142808
|
+
*/
|
|
142809
|
+
PSSAssessmentStarted.prototype.toJSON = function toJSON() {
|
|
142810
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
142811
|
+
};
|
|
142812
|
+
|
|
142813
|
+
return PSSAssessmentStarted;
|
|
142814
|
+
})();
|
|
142815
|
+
|
|
142816
|
+
$root.PSSAssessmentCompleted = (function() {
|
|
142817
|
+
|
|
142818
|
+
/**
|
|
142819
|
+
* Properties of a PSSAssessmentCompleted.
|
|
142820
|
+
* @name IPSSAssessmentCompleted
|
|
142821
|
+
* @interface IPSSAssessmentCompleted
|
|
142822
|
+
* @property {string|null} [hsUserId] PSSAssessmentCompleted hsUserId
|
|
142823
|
+
* @property {number|null} [gingerUserId] PSSAssessmentCompleted gingerUserId
|
|
142824
|
+
* @property {string|null} [completedAtIsoDate] PSSAssessmentCompleted completedAtIsoDate
|
|
142825
|
+
*/
|
|
142826
|
+
|
|
142827
|
+
/**
|
|
142828
|
+
* Constructs a new PSSAssessmentCompleted.
|
|
142829
|
+
* @name PSSAssessmentCompleted
|
|
142830
|
+
* @classdesc Represents a PSSAssessmentCompleted.
|
|
142831
|
+
* @implements IPSSAssessmentCompleted
|
|
142832
|
+
* @constructor
|
|
142833
|
+
* @param {IPSSAssessmentCompleted=} [properties] Properties to set
|
|
142834
|
+
*/
|
|
142835
|
+
function PSSAssessmentCompleted(properties) {
|
|
142836
|
+
if (properties)
|
|
142837
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
142838
|
+
if (properties[keys[i]] != null)
|
|
142839
|
+
this[keys[i]] = properties[keys[i]];
|
|
142840
|
+
}
|
|
142841
|
+
|
|
142842
|
+
/**
|
|
142843
|
+
* PSSAssessmentCompleted hsUserId.
|
|
142844
|
+
* @member {string} hsUserId
|
|
142845
|
+
* @memberof PSSAssessmentCompleted
|
|
142846
|
+
* @instance
|
|
142847
|
+
*/
|
|
142848
|
+
PSSAssessmentCompleted.prototype.hsUserId = "";
|
|
142849
|
+
|
|
142850
|
+
/**
|
|
142851
|
+
* PSSAssessmentCompleted gingerUserId.
|
|
142852
|
+
* @member {number} gingerUserId
|
|
142853
|
+
* @memberof PSSAssessmentCompleted
|
|
142854
|
+
* @instance
|
|
142855
|
+
*/
|
|
142856
|
+
PSSAssessmentCompleted.prototype.gingerUserId = 0;
|
|
142857
|
+
|
|
142858
|
+
/**
|
|
142859
|
+
* PSSAssessmentCompleted completedAtIsoDate.
|
|
142860
|
+
* @member {string} completedAtIsoDate
|
|
142861
|
+
* @memberof PSSAssessmentCompleted
|
|
142862
|
+
* @instance
|
|
142863
|
+
*/
|
|
142864
|
+
PSSAssessmentCompleted.prototype.completedAtIsoDate = "";
|
|
142865
|
+
|
|
142866
|
+
/**
|
|
142867
|
+
* Creates a new PSSAssessmentCompleted instance using the specified properties.
|
|
142868
|
+
* @function create
|
|
142869
|
+
* @memberof PSSAssessmentCompleted
|
|
142870
|
+
* @static
|
|
142871
|
+
* @param {IPSSAssessmentCompleted=} [properties] Properties to set
|
|
142872
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted instance
|
|
142873
|
+
*/
|
|
142874
|
+
PSSAssessmentCompleted.create = function create(properties) {
|
|
142875
|
+
return new PSSAssessmentCompleted(properties);
|
|
142876
|
+
};
|
|
142877
|
+
|
|
142878
|
+
/**
|
|
142879
|
+
* Encodes the specified PSSAssessmentCompleted message. Does not implicitly {@link PSSAssessmentCompleted.verify|verify} messages.
|
|
142880
|
+
* @function encode
|
|
142881
|
+
* @memberof PSSAssessmentCompleted
|
|
142882
|
+
* @static
|
|
142883
|
+
* @param {IPSSAssessmentCompleted} message PSSAssessmentCompleted message or plain object to encode
|
|
142884
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142885
|
+
* @returns {$protobuf.Writer} Writer
|
|
142886
|
+
*/
|
|
142887
|
+
PSSAssessmentCompleted.encode = function encode(message, writer) {
|
|
142888
|
+
if (!writer)
|
|
142889
|
+
writer = $Writer.create();
|
|
142890
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142891
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
142892
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142893
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
|
|
142894
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
142895
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
|
|
142896
|
+
return writer;
|
|
142897
|
+
};
|
|
142898
|
+
|
|
142899
|
+
/**
|
|
142900
|
+
* Encodes the specified PSSAssessmentCompleted message, length delimited. Does not implicitly {@link PSSAssessmentCompleted.verify|verify} messages.
|
|
142901
|
+
* @function encodeDelimited
|
|
142902
|
+
* @memberof PSSAssessmentCompleted
|
|
142903
|
+
* @static
|
|
142904
|
+
* @param {IPSSAssessmentCompleted} message PSSAssessmentCompleted message or plain object to encode
|
|
142905
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
142906
|
+
* @returns {$protobuf.Writer} Writer
|
|
142907
|
+
*/
|
|
142908
|
+
PSSAssessmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
142909
|
+
return this.encode(message, writer).ldelim();
|
|
142910
|
+
};
|
|
142911
|
+
|
|
142912
|
+
/**
|
|
142913
|
+
* Decodes a PSSAssessmentCompleted message from the specified reader or buffer.
|
|
142914
|
+
* @function decode
|
|
142915
|
+
* @memberof PSSAssessmentCompleted
|
|
142916
|
+
* @static
|
|
142917
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142918
|
+
* @param {number} [length] Message length if known beforehand
|
|
142919
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted
|
|
142920
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142921
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142922
|
+
*/
|
|
142923
|
+
PSSAssessmentCompleted.decode = function decode(reader, length) {
|
|
142924
|
+
if (!(reader instanceof $Reader))
|
|
142925
|
+
reader = $Reader.create(reader);
|
|
142926
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.PSSAssessmentCompleted();
|
|
142927
|
+
while (reader.pos < end) {
|
|
142928
|
+
var tag = reader.uint32();
|
|
142929
|
+
switch (tag >>> 3) {
|
|
142930
|
+
case 1:
|
|
142931
|
+
message.hsUserId = reader.string();
|
|
142932
|
+
break;
|
|
142933
|
+
case 2:
|
|
142934
|
+
message.gingerUserId = reader.uint32();
|
|
142935
|
+
break;
|
|
142936
|
+
case 3:
|
|
142937
|
+
message.completedAtIsoDate = reader.string();
|
|
142938
|
+
break;
|
|
142939
|
+
default:
|
|
142940
|
+
reader.skipType(tag & 7);
|
|
142941
|
+
break;
|
|
142942
|
+
}
|
|
142943
|
+
}
|
|
142944
|
+
return message;
|
|
142945
|
+
};
|
|
142946
|
+
|
|
142947
|
+
/**
|
|
142948
|
+
* Decodes a PSSAssessmentCompleted message from the specified reader or buffer, length delimited.
|
|
142949
|
+
* @function decodeDelimited
|
|
142950
|
+
* @memberof PSSAssessmentCompleted
|
|
142951
|
+
* @static
|
|
142952
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
142953
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted
|
|
142954
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
142955
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
142956
|
+
*/
|
|
142957
|
+
PSSAssessmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
142958
|
+
if (!(reader instanceof $Reader))
|
|
142959
|
+
reader = new $Reader(reader);
|
|
142960
|
+
return this.decode(reader, reader.uint32());
|
|
142961
|
+
};
|
|
142962
|
+
|
|
142963
|
+
/**
|
|
142964
|
+
* Verifies a PSSAssessmentCompleted message.
|
|
142965
|
+
* @function verify
|
|
142966
|
+
* @memberof PSSAssessmentCompleted
|
|
142967
|
+
* @static
|
|
142968
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
142969
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
142970
|
+
*/
|
|
142971
|
+
PSSAssessmentCompleted.verify = function verify(message) {
|
|
142972
|
+
if (typeof message !== "object" || message === null)
|
|
142973
|
+
return "object expected";
|
|
142974
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
142975
|
+
if (!$util.isString(message.hsUserId))
|
|
142976
|
+
return "hsUserId: string expected";
|
|
142977
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
142978
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
142979
|
+
return "gingerUserId: integer expected";
|
|
142980
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
142981
|
+
if (!$util.isString(message.completedAtIsoDate))
|
|
142982
|
+
return "completedAtIsoDate: string expected";
|
|
142983
|
+
return null;
|
|
142984
|
+
};
|
|
142985
|
+
|
|
142986
|
+
/**
|
|
142987
|
+
* Creates a PSSAssessmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
142988
|
+
* @function fromObject
|
|
142989
|
+
* @memberof PSSAssessmentCompleted
|
|
142990
|
+
* @static
|
|
142991
|
+
* @param {Object.<string,*>} object Plain object
|
|
142992
|
+
* @returns {PSSAssessmentCompleted} PSSAssessmentCompleted
|
|
142993
|
+
*/
|
|
142994
|
+
PSSAssessmentCompleted.fromObject = function fromObject(object) {
|
|
142995
|
+
if (object instanceof $root.PSSAssessmentCompleted)
|
|
142996
|
+
return object;
|
|
142997
|
+
var message = new $root.PSSAssessmentCompleted();
|
|
142998
|
+
if (object.hsUserId != null)
|
|
142999
|
+
message.hsUserId = String(object.hsUserId);
|
|
143000
|
+
if (object.gingerUserId != null)
|
|
143001
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
143002
|
+
if (object.completedAtIsoDate != null)
|
|
143003
|
+
message.completedAtIsoDate = String(object.completedAtIsoDate);
|
|
143004
|
+
return message;
|
|
143005
|
+
};
|
|
143006
|
+
|
|
143007
|
+
/**
|
|
143008
|
+
* Creates a plain object from a PSSAssessmentCompleted message. Also converts values to other types if specified.
|
|
143009
|
+
* @function toObject
|
|
143010
|
+
* @memberof PSSAssessmentCompleted
|
|
143011
|
+
* @static
|
|
143012
|
+
* @param {PSSAssessmentCompleted} message PSSAssessmentCompleted
|
|
143013
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
143014
|
+
* @returns {Object.<string,*>} Plain object
|
|
143015
|
+
*/
|
|
143016
|
+
PSSAssessmentCompleted.toObject = function toObject(message, options) {
|
|
143017
|
+
if (!options)
|
|
143018
|
+
options = {};
|
|
143019
|
+
var object = {};
|
|
143020
|
+
if (options.defaults) {
|
|
143021
|
+
object.hsUserId = "";
|
|
143022
|
+
object.gingerUserId = 0;
|
|
143023
|
+
object.completedAtIsoDate = "";
|
|
143024
|
+
}
|
|
143025
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
143026
|
+
object.hsUserId = message.hsUserId;
|
|
143027
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
143028
|
+
object.gingerUserId = message.gingerUserId;
|
|
143029
|
+
if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
|
|
143030
|
+
object.completedAtIsoDate = message.completedAtIsoDate;
|
|
143031
|
+
return object;
|
|
143032
|
+
};
|
|
143033
|
+
|
|
143034
|
+
/**
|
|
143035
|
+
* Converts this PSSAssessmentCompleted to JSON.
|
|
143036
|
+
* @function toJSON
|
|
143037
|
+
* @memberof PSSAssessmentCompleted
|
|
143038
|
+
* @instance
|
|
143039
|
+
* @returns {Object.<string,*>} JSON object
|
|
143040
|
+
*/
|
|
143041
|
+
PSSAssessmentCompleted.prototype.toJSON = function toJSON() {
|
|
143042
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
143043
|
+
};
|
|
143044
|
+
|
|
143045
|
+
return PSSAssessmentCompleted;
|
|
143046
|
+
})();
|
|
143047
|
+
|
|
140960
143048
|
$root.PubnubChatMessage = (function() {
|
|
140961
143049
|
|
|
140962
143050
|
/**
|
|
@@ -166698,6 +168786,8 @@ $root.clinical = (function() {
|
|
|
166698
168786
|
* @property {Array.<clinical.ClinicianAgeRangeSpecialty>|null} [ageRangeSpecialties] List of clinician's age range specialties. Exported from: ProviderAttribute model in ginger-web
|
|
166699
168787
|
* @property {Array.<clinical.ClinicianRace>|null} [races] List of clinician's racial identities. Exported from: ProviderAttribute model in ginger-web
|
|
166700
168788
|
* @property {Array.<clinical.ClinicianGender>|null} [genders] List of clinician's gender identities. Exported from: ProviderAttribute model in ginger-web
|
|
168789
|
+
* @property {Array.<clinical.IClinicianLicenseExported>|null} [licenses] List of clinician licenses. Exported from License model in HeadspaceMeditation/web.
|
|
168790
|
+
* Includes all licenses (not filtered for validity) since valid_start and valid_end dates are included.
|
|
166701
168791
|
*/
|
|
166702
168792
|
|
|
166703
168793
|
/**
|
|
@@ -166718,6 +168808,7 @@ $root.clinical = (function() {
|
|
|
166718
168808
|
this.ageRangeSpecialties = [];
|
|
166719
168809
|
this.races = [];
|
|
166720
168810
|
this.genders = [];
|
|
168811
|
+
this.licenses = [];
|
|
166721
168812
|
if (properties)
|
|
166722
168813
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
166723
168814
|
if (properties[keys[i]] != null)
|
|
@@ -166943,6 +169034,15 @@ $root.clinical = (function() {
|
|
|
166943
169034
|
*/
|
|
166944
169035
|
Clinician.prototype.genders = $util.emptyArray;
|
|
166945
169036
|
|
|
169037
|
+
/**
|
|
169038
|
+
* List of clinician licenses. Exported from License model in HeadspaceMeditation/web.
|
|
169039
|
+
* Includes all licenses (not filtered for validity) since valid_start and valid_end dates are included.
|
|
169040
|
+
* @member {Array.<clinical.IClinicianLicenseExported>} licenses
|
|
169041
|
+
* @memberof clinical.Clinician
|
|
169042
|
+
* @instance
|
|
169043
|
+
*/
|
|
169044
|
+
Clinician.prototype.licenses = $util.emptyArray;
|
|
169045
|
+
|
|
166946
169046
|
/**
|
|
166947
169047
|
* Creates a new Clinician instance using the specified properties.
|
|
166948
169048
|
* @function create
|
|
@@ -167042,6 +169142,9 @@ $root.clinical = (function() {
|
|
|
167042
169142
|
writer.int32(message.genders[i]);
|
|
167043
169143
|
writer.ldelim();
|
|
167044
169144
|
}
|
|
169145
|
+
if (message.licenses != null && message.licenses.length)
|
|
169146
|
+
for (var i = 0; i < message.licenses.length; ++i)
|
|
169147
|
+
$root.clinical.ClinicianLicenseExported.encode(message.licenses[i], writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
167045
169148
|
return writer;
|
|
167046
169149
|
};
|
|
167047
169150
|
|
|
@@ -167195,6 +169298,11 @@ $root.clinical = (function() {
|
|
|
167195
169298
|
} else
|
|
167196
169299
|
message.genders.push(reader.int32());
|
|
167197
169300
|
break;
|
|
169301
|
+
case 28:
|
|
169302
|
+
if (!(message.licenses && message.licenses.length))
|
|
169303
|
+
message.licenses = [];
|
|
169304
|
+
message.licenses.push($root.clinical.ClinicianLicenseExported.decode(reader, reader.uint32()));
|
|
169305
|
+
break;
|
|
167198
169306
|
default:
|
|
167199
169307
|
reader.skipType(tag & 7);
|
|
167200
169308
|
break;
|
|
@@ -167426,6 +169534,15 @@ $root.clinical = (function() {
|
|
|
167426
169534
|
break;
|
|
167427
169535
|
}
|
|
167428
169536
|
}
|
|
169537
|
+
if (message.licenses != null && message.hasOwnProperty("licenses")) {
|
|
169538
|
+
if (!Array.isArray(message.licenses))
|
|
169539
|
+
return "licenses: array expected";
|
|
169540
|
+
for (var i = 0; i < message.licenses.length; ++i) {
|
|
169541
|
+
var error = $root.clinical.ClinicianLicenseExported.verify(message.licenses[i]);
|
|
169542
|
+
if (error)
|
|
169543
|
+
return "licenses." + error;
|
|
169544
|
+
}
|
|
169545
|
+
}
|
|
167429
169546
|
return null;
|
|
167430
169547
|
};
|
|
167431
169548
|
|
|
@@ -167748,6 +169865,16 @@ $root.clinical = (function() {
|
|
|
167748
169865
|
break;
|
|
167749
169866
|
}
|
|
167750
169867
|
}
|
|
169868
|
+
if (object.licenses) {
|
|
169869
|
+
if (!Array.isArray(object.licenses))
|
|
169870
|
+
throw TypeError(".clinical.Clinician.licenses: array expected");
|
|
169871
|
+
message.licenses = [];
|
|
169872
|
+
for (var i = 0; i < object.licenses.length; ++i) {
|
|
169873
|
+
if (typeof object.licenses[i] !== "object")
|
|
169874
|
+
throw TypeError(".clinical.Clinician.licenses: object expected");
|
|
169875
|
+
message.licenses[i] = $root.clinical.ClinicianLicenseExported.fromObject(object.licenses[i]);
|
|
169876
|
+
}
|
|
169877
|
+
}
|
|
167751
169878
|
return message;
|
|
167752
169879
|
};
|
|
167753
169880
|
|
|
@@ -167774,6 +169901,7 @@ $root.clinical = (function() {
|
|
|
167774
169901
|
object.ageRangeSpecialties = [];
|
|
167775
169902
|
object.races = [];
|
|
167776
169903
|
object.genders = [];
|
|
169904
|
+
object.licenses = [];
|
|
167777
169905
|
}
|
|
167778
169906
|
if (options.defaults) {
|
|
167779
169907
|
object.id = "";
|
|
@@ -167890,6 +170018,11 @@ $root.clinical = (function() {
|
|
|
167890
170018
|
for (var j = 0; j < message.genders.length; ++j)
|
|
167891
170019
|
object.genders[j] = options.enums === String ? $root.clinical.ClinicianGender[message.genders[j]] : message.genders[j];
|
|
167892
170020
|
}
|
|
170021
|
+
if (message.licenses && message.licenses.length) {
|
|
170022
|
+
object.licenses = [];
|
|
170023
|
+
for (var j = 0; j < message.licenses.length; ++j)
|
|
170024
|
+
object.licenses[j] = $root.clinical.ClinicianLicenseExported.toObject(message.licenses[j], options);
|
|
170025
|
+
}
|
|
167893
170026
|
return object;
|
|
167894
170027
|
};
|
|
167895
170028
|
|
|
@@ -168292,6 +170425,586 @@ $root.clinical = (function() {
|
|
|
168292
170425
|
return values;
|
|
168293
170426
|
})();
|
|
168294
170427
|
|
|
170428
|
+
clinical.InsuranceCarrierExported = (function() {
|
|
170429
|
+
|
|
170430
|
+
/**
|
|
170431
|
+
* Properties of an InsuranceCarrierExported.
|
|
170432
|
+
* @memberof clinical
|
|
170433
|
+
* @interface IInsuranceCarrierExported
|
|
170434
|
+
* @property {number|null} [id] Primary key of the carrier
|
|
170435
|
+
* @property {string|null} [name] Unique name of the carrier
|
|
170436
|
+
* @property {boolean|null} [active] Whether this carrier is currently active
|
|
170437
|
+
*/
|
|
170438
|
+
|
|
170439
|
+
/**
|
|
170440
|
+
* Constructs a new InsuranceCarrierExported.
|
|
170441
|
+
* @memberof clinical
|
|
170442
|
+
* @classdesc Represents an InsuranceCarrierExported.
|
|
170443
|
+
* @implements IInsuranceCarrierExported
|
|
170444
|
+
* @constructor
|
|
170445
|
+
* @param {clinical.IInsuranceCarrierExported=} [properties] Properties to set
|
|
170446
|
+
*/
|
|
170447
|
+
function InsuranceCarrierExported(properties) {
|
|
170448
|
+
if (properties)
|
|
170449
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
170450
|
+
if (properties[keys[i]] != null)
|
|
170451
|
+
this[keys[i]] = properties[keys[i]];
|
|
170452
|
+
}
|
|
170453
|
+
|
|
170454
|
+
/**
|
|
170455
|
+
* Primary key of the carrier
|
|
170456
|
+
* @member {number} id
|
|
170457
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170458
|
+
* @instance
|
|
170459
|
+
*/
|
|
170460
|
+
InsuranceCarrierExported.prototype.id = 0;
|
|
170461
|
+
|
|
170462
|
+
/**
|
|
170463
|
+
* Unique name of the carrier
|
|
170464
|
+
* @member {string} name
|
|
170465
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170466
|
+
* @instance
|
|
170467
|
+
*/
|
|
170468
|
+
InsuranceCarrierExported.prototype.name = "";
|
|
170469
|
+
|
|
170470
|
+
/**
|
|
170471
|
+
* Whether this carrier is currently active
|
|
170472
|
+
* @member {boolean} active
|
|
170473
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170474
|
+
* @instance
|
|
170475
|
+
*/
|
|
170476
|
+
InsuranceCarrierExported.prototype.active = false;
|
|
170477
|
+
|
|
170478
|
+
/**
|
|
170479
|
+
* Creates a new InsuranceCarrierExported instance using the specified properties.
|
|
170480
|
+
* @function create
|
|
170481
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170482
|
+
* @static
|
|
170483
|
+
* @param {clinical.IInsuranceCarrierExported=} [properties] Properties to set
|
|
170484
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported instance
|
|
170485
|
+
*/
|
|
170486
|
+
InsuranceCarrierExported.create = function create(properties) {
|
|
170487
|
+
return new InsuranceCarrierExported(properties);
|
|
170488
|
+
};
|
|
170489
|
+
|
|
170490
|
+
/**
|
|
170491
|
+
* Encodes the specified InsuranceCarrierExported message. Does not implicitly {@link clinical.InsuranceCarrierExported.verify|verify} messages.
|
|
170492
|
+
* @function encode
|
|
170493
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170494
|
+
* @static
|
|
170495
|
+
* @param {clinical.IInsuranceCarrierExported} message InsuranceCarrierExported message or plain object to encode
|
|
170496
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
170497
|
+
* @returns {$protobuf.Writer} Writer
|
|
170498
|
+
*/
|
|
170499
|
+
InsuranceCarrierExported.encode = function encode(message, writer) {
|
|
170500
|
+
if (!writer)
|
|
170501
|
+
writer = $Writer.create();
|
|
170502
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
170503
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id);
|
|
170504
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
170505
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
170506
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
170507
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.active);
|
|
170508
|
+
return writer;
|
|
170509
|
+
};
|
|
170510
|
+
|
|
170511
|
+
/**
|
|
170512
|
+
* Encodes the specified InsuranceCarrierExported message, length delimited. Does not implicitly {@link clinical.InsuranceCarrierExported.verify|verify} messages.
|
|
170513
|
+
* @function encodeDelimited
|
|
170514
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170515
|
+
* @static
|
|
170516
|
+
* @param {clinical.IInsuranceCarrierExported} message InsuranceCarrierExported message or plain object to encode
|
|
170517
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
170518
|
+
* @returns {$protobuf.Writer} Writer
|
|
170519
|
+
*/
|
|
170520
|
+
InsuranceCarrierExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
170521
|
+
return this.encode(message, writer).ldelim();
|
|
170522
|
+
};
|
|
170523
|
+
|
|
170524
|
+
/**
|
|
170525
|
+
* Decodes an InsuranceCarrierExported message from the specified reader or buffer.
|
|
170526
|
+
* @function decode
|
|
170527
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170528
|
+
* @static
|
|
170529
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
170530
|
+
* @param {number} [length] Message length if known beforehand
|
|
170531
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported
|
|
170532
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
170533
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
170534
|
+
*/
|
|
170535
|
+
InsuranceCarrierExported.decode = function decode(reader, length) {
|
|
170536
|
+
if (!(reader instanceof $Reader))
|
|
170537
|
+
reader = $Reader.create(reader);
|
|
170538
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.InsuranceCarrierExported();
|
|
170539
|
+
while (reader.pos < end) {
|
|
170540
|
+
var tag = reader.uint32();
|
|
170541
|
+
switch (tag >>> 3) {
|
|
170542
|
+
case 1:
|
|
170543
|
+
message.id = reader.int32();
|
|
170544
|
+
break;
|
|
170545
|
+
case 2:
|
|
170546
|
+
message.name = reader.string();
|
|
170547
|
+
break;
|
|
170548
|
+
case 3:
|
|
170549
|
+
message.active = reader.bool();
|
|
170550
|
+
break;
|
|
170551
|
+
default:
|
|
170552
|
+
reader.skipType(tag & 7);
|
|
170553
|
+
break;
|
|
170554
|
+
}
|
|
170555
|
+
}
|
|
170556
|
+
return message;
|
|
170557
|
+
};
|
|
170558
|
+
|
|
170559
|
+
/**
|
|
170560
|
+
* Decodes an InsuranceCarrierExported message from the specified reader or buffer, length delimited.
|
|
170561
|
+
* @function decodeDelimited
|
|
170562
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170563
|
+
* @static
|
|
170564
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
170565
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported
|
|
170566
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
170567
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
170568
|
+
*/
|
|
170569
|
+
InsuranceCarrierExported.decodeDelimited = function decodeDelimited(reader) {
|
|
170570
|
+
if (!(reader instanceof $Reader))
|
|
170571
|
+
reader = new $Reader(reader);
|
|
170572
|
+
return this.decode(reader, reader.uint32());
|
|
170573
|
+
};
|
|
170574
|
+
|
|
170575
|
+
/**
|
|
170576
|
+
* Verifies an InsuranceCarrierExported message.
|
|
170577
|
+
* @function verify
|
|
170578
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170579
|
+
* @static
|
|
170580
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
170581
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
170582
|
+
*/
|
|
170583
|
+
InsuranceCarrierExported.verify = function verify(message) {
|
|
170584
|
+
if (typeof message !== "object" || message === null)
|
|
170585
|
+
return "object expected";
|
|
170586
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
170587
|
+
if (!$util.isInteger(message.id))
|
|
170588
|
+
return "id: integer expected";
|
|
170589
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
170590
|
+
if (!$util.isString(message.name))
|
|
170591
|
+
return "name: string expected";
|
|
170592
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
170593
|
+
if (typeof message.active !== "boolean")
|
|
170594
|
+
return "active: boolean expected";
|
|
170595
|
+
return null;
|
|
170596
|
+
};
|
|
170597
|
+
|
|
170598
|
+
/**
|
|
170599
|
+
* Creates an InsuranceCarrierExported message from a plain object. Also converts values to their respective internal types.
|
|
170600
|
+
* @function fromObject
|
|
170601
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170602
|
+
* @static
|
|
170603
|
+
* @param {Object.<string,*>} object Plain object
|
|
170604
|
+
* @returns {clinical.InsuranceCarrierExported} InsuranceCarrierExported
|
|
170605
|
+
*/
|
|
170606
|
+
InsuranceCarrierExported.fromObject = function fromObject(object) {
|
|
170607
|
+
if (object instanceof $root.clinical.InsuranceCarrierExported)
|
|
170608
|
+
return object;
|
|
170609
|
+
var message = new $root.clinical.InsuranceCarrierExported();
|
|
170610
|
+
if (object.id != null)
|
|
170611
|
+
message.id = object.id | 0;
|
|
170612
|
+
if (object.name != null)
|
|
170613
|
+
message.name = String(object.name);
|
|
170614
|
+
if (object.active != null)
|
|
170615
|
+
message.active = Boolean(object.active);
|
|
170616
|
+
return message;
|
|
170617
|
+
};
|
|
170618
|
+
|
|
170619
|
+
/**
|
|
170620
|
+
* Creates a plain object from an InsuranceCarrierExported message. Also converts values to other types if specified.
|
|
170621
|
+
* @function toObject
|
|
170622
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170623
|
+
* @static
|
|
170624
|
+
* @param {clinical.InsuranceCarrierExported} message InsuranceCarrierExported
|
|
170625
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
170626
|
+
* @returns {Object.<string,*>} Plain object
|
|
170627
|
+
*/
|
|
170628
|
+
InsuranceCarrierExported.toObject = function toObject(message, options) {
|
|
170629
|
+
if (!options)
|
|
170630
|
+
options = {};
|
|
170631
|
+
var object = {};
|
|
170632
|
+
if (options.defaults) {
|
|
170633
|
+
object.id = 0;
|
|
170634
|
+
object.name = "";
|
|
170635
|
+
object.active = false;
|
|
170636
|
+
}
|
|
170637
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
170638
|
+
object.id = message.id;
|
|
170639
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
170640
|
+
object.name = message.name;
|
|
170641
|
+
if (message.active != null && message.hasOwnProperty("active"))
|
|
170642
|
+
object.active = message.active;
|
|
170643
|
+
return object;
|
|
170644
|
+
};
|
|
170645
|
+
|
|
170646
|
+
/**
|
|
170647
|
+
* Converts this InsuranceCarrierExported to JSON.
|
|
170648
|
+
* @function toJSON
|
|
170649
|
+
* @memberof clinical.InsuranceCarrierExported
|
|
170650
|
+
* @instance
|
|
170651
|
+
* @returns {Object.<string,*>} JSON object
|
|
170652
|
+
*/
|
|
170653
|
+
InsuranceCarrierExported.prototype.toJSON = function toJSON() {
|
|
170654
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
170655
|
+
};
|
|
170656
|
+
|
|
170657
|
+
return InsuranceCarrierExported;
|
|
170658
|
+
})();
|
|
170659
|
+
|
|
170660
|
+
clinical.ClinicianLicenseExported = (function() {
|
|
170661
|
+
|
|
170662
|
+
/**
|
|
170663
|
+
* Properties of a ClinicianLicenseExported.
|
|
170664
|
+
* @memberof clinical
|
|
170665
|
+
* @interface IClinicianLicenseExported
|
|
170666
|
+
* @property {number|null} [id] Primary key of the license
|
|
170667
|
+
* @property {string|null} [stateLocation] State abbreviation where the license is issued (e.g., "CA", "NY")
|
|
170668
|
+
* @property {boolean|null} [intakesEnabled] Whether intakes are enabled for this license
|
|
170669
|
+
* @property {Array.<clinical.IInsuranceCarrierExported>|null} [carriers] List of insurance carriers associated with this license
|
|
170670
|
+
* @property {number|Long|null} [validStart] UTC timestamp in milliseconds since epoch when the license becomes valid
|
|
170671
|
+
* @property {number|Long|null} [validEnd] UTC timestamp in milliseconds since epoch when the license expires
|
|
170672
|
+
*/
|
|
170673
|
+
|
|
170674
|
+
/**
|
|
170675
|
+
* Constructs a new ClinicianLicenseExported.
|
|
170676
|
+
* @memberof clinical
|
|
170677
|
+
* @classdesc Represents a ClinicianLicenseExported.
|
|
170678
|
+
* @implements IClinicianLicenseExported
|
|
170679
|
+
* @constructor
|
|
170680
|
+
* @param {clinical.IClinicianLicenseExported=} [properties] Properties to set
|
|
170681
|
+
*/
|
|
170682
|
+
function ClinicianLicenseExported(properties) {
|
|
170683
|
+
this.carriers = [];
|
|
170684
|
+
if (properties)
|
|
170685
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
170686
|
+
if (properties[keys[i]] != null)
|
|
170687
|
+
this[keys[i]] = properties[keys[i]];
|
|
170688
|
+
}
|
|
170689
|
+
|
|
170690
|
+
/**
|
|
170691
|
+
* Primary key of the license
|
|
170692
|
+
* @member {number} id
|
|
170693
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170694
|
+
* @instance
|
|
170695
|
+
*/
|
|
170696
|
+
ClinicianLicenseExported.prototype.id = 0;
|
|
170697
|
+
|
|
170698
|
+
/**
|
|
170699
|
+
* State abbreviation where the license is issued (e.g., "CA", "NY")
|
|
170700
|
+
* @member {string} stateLocation
|
|
170701
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170702
|
+
* @instance
|
|
170703
|
+
*/
|
|
170704
|
+
ClinicianLicenseExported.prototype.stateLocation = "";
|
|
170705
|
+
|
|
170706
|
+
/**
|
|
170707
|
+
* Whether intakes are enabled for this license
|
|
170708
|
+
* @member {boolean} intakesEnabled
|
|
170709
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170710
|
+
* @instance
|
|
170711
|
+
*/
|
|
170712
|
+
ClinicianLicenseExported.prototype.intakesEnabled = false;
|
|
170713
|
+
|
|
170714
|
+
/**
|
|
170715
|
+
* List of insurance carriers associated with this license
|
|
170716
|
+
* @member {Array.<clinical.IInsuranceCarrierExported>} carriers
|
|
170717
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170718
|
+
* @instance
|
|
170719
|
+
*/
|
|
170720
|
+
ClinicianLicenseExported.prototype.carriers = $util.emptyArray;
|
|
170721
|
+
|
|
170722
|
+
/**
|
|
170723
|
+
* UTC timestamp in milliseconds since epoch when the license becomes valid
|
|
170724
|
+
* @member {number|Long} validStart
|
|
170725
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170726
|
+
* @instance
|
|
170727
|
+
*/
|
|
170728
|
+
ClinicianLicenseExported.prototype.validStart = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
170729
|
+
|
|
170730
|
+
/**
|
|
170731
|
+
* UTC timestamp in milliseconds since epoch when the license expires
|
|
170732
|
+
* @member {number|Long} validEnd
|
|
170733
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170734
|
+
* @instance
|
|
170735
|
+
*/
|
|
170736
|
+
ClinicianLicenseExported.prototype.validEnd = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
170737
|
+
|
|
170738
|
+
/**
|
|
170739
|
+
* Creates a new ClinicianLicenseExported instance using the specified properties.
|
|
170740
|
+
* @function create
|
|
170741
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170742
|
+
* @static
|
|
170743
|
+
* @param {clinical.IClinicianLicenseExported=} [properties] Properties to set
|
|
170744
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported instance
|
|
170745
|
+
*/
|
|
170746
|
+
ClinicianLicenseExported.create = function create(properties) {
|
|
170747
|
+
return new ClinicianLicenseExported(properties);
|
|
170748
|
+
};
|
|
170749
|
+
|
|
170750
|
+
/**
|
|
170751
|
+
* Encodes the specified ClinicianLicenseExported message. Does not implicitly {@link clinical.ClinicianLicenseExported.verify|verify} messages.
|
|
170752
|
+
* @function encode
|
|
170753
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170754
|
+
* @static
|
|
170755
|
+
* @param {clinical.IClinicianLicenseExported} message ClinicianLicenseExported message or plain object to encode
|
|
170756
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
170757
|
+
* @returns {$protobuf.Writer} Writer
|
|
170758
|
+
*/
|
|
170759
|
+
ClinicianLicenseExported.encode = function encode(message, writer) {
|
|
170760
|
+
if (!writer)
|
|
170761
|
+
writer = $Writer.create();
|
|
170762
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
170763
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id);
|
|
170764
|
+
if (message.stateLocation != null && message.hasOwnProperty("stateLocation"))
|
|
170765
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.stateLocation);
|
|
170766
|
+
if (message.intakesEnabled != null && message.hasOwnProperty("intakesEnabled"))
|
|
170767
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.intakesEnabled);
|
|
170768
|
+
if (message.carriers != null && message.carriers.length)
|
|
170769
|
+
for (var i = 0; i < message.carriers.length; ++i)
|
|
170770
|
+
$root.clinical.InsuranceCarrierExported.encode(message.carriers[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
170771
|
+
if (message.validStart != null && message.hasOwnProperty("validStart"))
|
|
170772
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.validStart);
|
|
170773
|
+
if (message.validEnd != null && message.hasOwnProperty("validEnd"))
|
|
170774
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.validEnd);
|
|
170775
|
+
return writer;
|
|
170776
|
+
};
|
|
170777
|
+
|
|
170778
|
+
/**
|
|
170779
|
+
* Encodes the specified ClinicianLicenseExported message, length delimited. Does not implicitly {@link clinical.ClinicianLicenseExported.verify|verify} messages.
|
|
170780
|
+
* @function encodeDelimited
|
|
170781
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170782
|
+
* @static
|
|
170783
|
+
* @param {clinical.IClinicianLicenseExported} message ClinicianLicenseExported message or plain object to encode
|
|
170784
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
170785
|
+
* @returns {$protobuf.Writer} Writer
|
|
170786
|
+
*/
|
|
170787
|
+
ClinicianLicenseExported.encodeDelimited = function encodeDelimited(message, writer) {
|
|
170788
|
+
return this.encode(message, writer).ldelim();
|
|
170789
|
+
};
|
|
170790
|
+
|
|
170791
|
+
/**
|
|
170792
|
+
* Decodes a ClinicianLicenseExported message from the specified reader or buffer.
|
|
170793
|
+
* @function decode
|
|
170794
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170795
|
+
* @static
|
|
170796
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
170797
|
+
* @param {number} [length] Message length if known beforehand
|
|
170798
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported
|
|
170799
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
170800
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
170801
|
+
*/
|
|
170802
|
+
ClinicianLicenseExported.decode = function decode(reader, length) {
|
|
170803
|
+
if (!(reader instanceof $Reader))
|
|
170804
|
+
reader = $Reader.create(reader);
|
|
170805
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.clinical.ClinicianLicenseExported();
|
|
170806
|
+
while (reader.pos < end) {
|
|
170807
|
+
var tag = reader.uint32();
|
|
170808
|
+
switch (tag >>> 3) {
|
|
170809
|
+
case 1:
|
|
170810
|
+
message.id = reader.int32();
|
|
170811
|
+
break;
|
|
170812
|
+
case 2:
|
|
170813
|
+
message.stateLocation = reader.string();
|
|
170814
|
+
break;
|
|
170815
|
+
case 3:
|
|
170816
|
+
message.intakesEnabled = reader.bool();
|
|
170817
|
+
break;
|
|
170818
|
+
case 4:
|
|
170819
|
+
if (!(message.carriers && message.carriers.length))
|
|
170820
|
+
message.carriers = [];
|
|
170821
|
+
message.carriers.push($root.clinical.InsuranceCarrierExported.decode(reader, reader.uint32()));
|
|
170822
|
+
break;
|
|
170823
|
+
case 5:
|
|
170824
|
+
message.validStart = reader.uint64();
|
|
170825
|
+
break;
|
|
170826
|
+
case 6:
|
|
170827
|
+
message.validEnd = reader.uint64();
|
|
170828
|
+
break;
|
|
170829
|
+
default:
|
|
170830
|
+
reader.skipType(tag & 7);
|
|
170831
|
+
break;
|
|
170832
|
+
}
|
|
170833
|
+
}
|
|
170834
|
+
return message;
|
|
170835
|
+
};
|
|
170836
|
+
|
|
170837
|
+
/**
|
|
170838
|
+
* Decodes a ClinicianLicenseExported message from the specified reader or buffer, length delimited.
|
|
170839
|
+
* @function decodeDelimited
|
|
170840
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170841
|
+
* @static
|
|
170842
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
170843
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported
|
|
170844
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
170845
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
170846
|
+
*/
|
|
170847
|
+
ClinicianLicenseExported.decodeDelimited = function decodeDelimited(reader) {
|
|
170848
|
+
if (!(reader instanceof $Reader))
|
|
170849
|
+
reader = new $Reader(reader);
|
|
170850
|
+
return this.decode(reader, reader.uint32());
|
|
170851
|
+
};
|
|
170852
|
+
|
|
170853
|
+
/**
|
|
170854
|
+
* Verifies a ClinicianLicenseExported message.
|
|
170855
|
+
* @function verify
|
|
170856
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170857
|
+
* @static
|
|
170858
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
170859
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
170860
|
+
*/
|
|
170861
|
+
ClinicianLicenseExported.verify = function verify(message) {
|
|
170862
|
+
if (typeof message !== "object" || message === null)
|
|
170863
|
+
return "object expected";
|
|
170864
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
170865
|
+
if (!$util.isInteger(message.id))
|
|
170866
|
+
return "id: integer expected";
|
|
170867
|
+
if (message.stateLocation != null && message.hasOwnProperty("stateLocation"))
|
|
170868
|
+
if (!$util.isString(message.stateLocation))
|
|
170869
|
+
return "stateLocation: string expected";
|
|
170870
|
+
if (message.intakesEnabled != null && message.hasOwnProperty("intakesEnabled"))
|
|
170871
|
+
if (typeof message.intakesEnabled !== "boolean")
|
|
170872
|
+
return "intakesEnabled: boolean expected";
|
|
170873
|
+
if (message.carriers != null && message.hasOwnProperty("carriers")) {
|
|
170874
|
+
if (!Array.isArray(message.carriers))
|
|
170875
|
+
return "carriers: array expected";
|
|
170876
|
+
for (var i = 0; i < message.carriers.length; ++i) {
|
|
170877
|
+
var error = $root.clinical.InsuranceCarrierExported.verify(message.carriers[i]);
|
|
170878
|
+
if (error)
|
|
170879
|
+
return "carriers." + error;
|
|
170880
|
+
}
|
|
170881
|
+
}
|
|
170882
|
+
if (message.validStart != null && message.hasOwnProperty("validStart"))
|
|
170883
|
+
if (!$util.isInteger(message.validStart) && !(message.validStart && $util.isInteger(message.validStart.low) && $util.isInteger(message.validStart.high)))
|
|
170884
|
+
return "validStart: integer|Long expected";
|
|
170885
|
+
if (message.validEnd != null && message.hasOwnProperty("validEnd"))
|
|
170886
|
+
if (!$util.isInteger(message.validEnd) && !(message.validEnd && $util.isInteger(message.validEnd.low) && $util.isInteger(message.validEnd.high)))
|
|
170887
|
+
return "validEnd: integer|Long expected";
|
|
170888
|
+
return null;
|
|
170889
|
+
};
|
|
170890
|
+
|
|
170891
|
+
/**
|
|
170892
|
+
* Creates a ClinicianLicenseExported message from a plain object. Also converts values to their respective internal types.
|
|
170893
|
+
* @function fromObject
|
|
170894
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170895
|
+
* @static
|
|
170896
|
+
* @param {Object.<string,*>} object Plain object
|
|
170897
|
+
* @returns {clinical.ClinicianLicenseExported} ClinicianLicenseExported
|
|
170898
|
+
*/
|
|
170899
|
+
ClinicianLicenseExported.fromObject = function fromObject(object) {
|
|
170900
|
+
if (object instanceof $root.clinical.ClinicianLicenseExported)
|
|
170901
|
+
return object;
|
|
170902
|
+
var message = new $root.clinical.ClinicianLicenseExported();
|
|
170903
|
+
if (object.id != null)
|
|
170904
|
+
message.id = object.id | 0;
|
|
170905
|
+
if (object.stateLocation != null)
|
|
170906
|
+
message.stateLocation = String(object.stateLocation);
|
|
170907
|
+
if (object.intakesEnabled != null)
|
|
170908
|
+
message.intakesEnabled = Boolean(object.intakesEnabled);
|
|
170909
|
+
if (object.carriers) {
|
|
170910
|
+
if (!Array.isArray(object.carriers))
|
|
170911
|
+
throw TypeError(".clinical.ClinicianLicenseExported.carriers: array expected");
|
|
170912
|
+
message.carriers = [];
|
|
170913
|
+
for (var i = 0; i < object.carriers.length; ++i) {
|
|
170914
|
+
if (typeof object.carriers[i] !== "object")
|
|
170915
|
+
throw TypeError(".clinical.ClinicianLicenseExported.carriers: object expected");
|
|
170916
|
+
message.carriers[i] = $root.clinical.InsuranceCarrierExported.fromObject(object.carriers[i]);
|
|
170917
|
+
}
|
|
170918
|
+
}
|
|
170919
|
+
if (object.validStart != null)
|
|
170920
|
+
if ($util.Long)
|
|
170921
|
+
(message.validStart = $util.Long.fromValue(object.validStart)).unsigned = true;
|
|
170922
|
+
else if (typeof object.validStart === "string")
|
|
170923
|
+
message.validStart = parseInt(object.validStart, 10);
|
|
170924
|
+
else if (typeof object.validStart === "number")
|
|
170925
|
+
message.validStart = object.validStart;
|
|
170926
|
+
else if (typeof object.validStart === "object")
|
|
170927
|
+
message.validStart = new $util.LongBits(object.validStart.low >>> 0, object.validStart.high >>> 0).toNumber(true);
|
|
170928
|
+
if (object.validEnd != null)
|
|
170929
|
+
if ($util.Long)
|
|
170930
|
+
(message.validEnd = $util.Long.fromValue(object.validEnd)).unsigned = true;
|
|
170931
|
+
else if (typeof object.validEnd === "string")
|
|
170932
|
+
message.validEnd = parseInt(object.validEnd, 10);
|
|
170933
|
+
else if (typeof object.validEnd === "number")
|
|
170934
|
+
message.validEnd = object.validEnd;
|
|
170935
|
+
else if (typeof object.validEnd === "object")
|
|
170936
|
+
message.validEnd = new $util.LongBits(object.validEnd.low >>> 0, object.validEnd.high >>> 0).toNumber(true);
|
|
170937
|
+
return message;
|
|
170938
|
+
};
|
|
170939
|
+
|
|
170940
|
+
/**
|
|
170941
|
+
* Creates a plain object from a ClinicianLicenseExported message. Also converts values to other types if specified.
|
|
170942
|
+
* @function toObject
|
|
170943
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170944
|
+
* @static
|
|
170945
|
+
* @param {clinical.ClinicianLicenseExported} message ClinicianLicenseExported
|
|
170946
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
170947
|
+
* @returns {Object.<string,*>} Plain object
|
|
170948
|
+
*/
|
|
170949
|
+
ClinicianLicenseExported.toObject = function toObject(message, options) {
|
|
170950
|
+
if (!options)
|
|
170951
|
+
options = {};
|
|
170952
|
+
var object = {};
|
|
170953
|
+
if (options.arrays || options.defaults)
|
|
170954
|
+
object.carriers = [];
|
|
170955
|
+
if (options.defaults) {
|
|
170956
|
+
object.id = 0;
|
|
170957
|
+
object.stateLocation = "";
|
|
170958
|
+
object.intakesEnabled = false;
|
|
170959
|
+
if ($util.Long) {
|
|
170960
|
+
var long = new $util.Long(0, 0, true);
|
|
170961
|
+
object.validStart = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
170962
|
+
} else
|
|
170963
|
+
object.validStart = options.longs === String ? "0" : 0;
|
|
170964
|
+
if ($util.Long) {
|
|
170965
|
+
var long = new $util.Long(0, 0, true);
|
|
170966
|
+
object.validEnd = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
170967
|
+
} else
|
|
170968
|
+
object.validEnd = options.longs === String ? "0" : 0;
|
|
170969
|
+
}
|
|
170970
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
170971
|
+
object.id = message.id;
|
|
170972
|
+
if (message.stateLocation != null && message.hasOwnProperty("stateLocation"))
|
|
170973
|
+
object.stateLocation = message.stateLocation;
|
|
170974
|
+
if (message.intakesEnabled != null && message.hasOwnProperty("intakesEnabled"))
|
|
170975
|
+
object.intakesEnabled = message.intakesEnabled;
|
|
170976
|
+
if (message.carriers && message.carriers.length) {
|
|
170977
|
+
object.carriers = [];
|
|
170978
|
+
for (var j = 0; j < message.carriers.length; ++j)
|
|
170979
|
+
object.carriers[j] = $root.clinical.InsuranceCarrierExported.toObject(message.carriers[j], options);
|
|
170980
|
+
}
|
|
170981
|
+
if (message.validStart != null && message.hasOwnProperty("validStart"))
|
|
170982
|
+
if (typeof message.validStart === "number")
|
|
170983
|
+
object.validStart = options.longs === String ? String(message.validStart) : message.validStart;
|
|
170984
|
+
else
|
|
170985
|
+
object.validStart = options.longs === String ? $util.Long.prototype.toString.call(message.validStart) : options.longs === Number ? new $util.LongBits(message.validStart.low >>> 0, message.validStart.high >>> 0).toNumber(true) : message.validStart;
|
|
170986
|
+
if (message.validEnd != null && message.hasOwnProperty("validEnd"))
|
|
170987
|
+
if (typeof message.validEnd === "number")
|
|
170988
|
+
object.validEnd = options.longs === String ? String(message.validEnd) : message.validEnd;
|
|
170989
|
+
else
|
|
170990
|
+
object.validEnd = options.longs === String ? $util.Long.prototype.toString.call(message.validEnd) : options.longs === Number ? new $util.LongBits(message.validEnd.low >>> 0, message.validEnd.high >>> 0).toNumber(true) : message.validEnd;
|
|
170991
|
+
return object;
|
|
170992
|
+
};
|
|
170993
|
+
|
|
170994
|
+
/**
|
|
170995
|
+
* Converts this ClinicianLicenseExported to JSON.
|
|
170996
|
+
* @function toJSON
|
|
170997
|
+
* @memberof clinical.ClinicianLicenseExported
|
|
170998
|
+
* @instance
|
|
170999
|
+
* @returns {Object.<string,*>} JSON object
|
|
171000
|
+
*/
|
|
171001
|
+
ClinicianLicenseExported.prototype.toJSON = function toJSON() {
|
|
171002
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
171003
|
+
};
|
|
171004
|
+
|
|
171005
|
+
return ClinicianLicenseExported;
|
|
171006
|
+
})();
|
|
171007
|
+
|
|
168295
171008
|
clinical.Coach = (function() {
|
|
168296
171009
|
|
|
168297
171010
|
/**
|