@headspace/protos-events 1.845.0 → 1.847.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 +381 -0
- package/lib/index.js +1276 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -186337,6 +186337,651 @@ $root.CareAssessmentCompleted = (function() {
|
|
|
186337
186337
|
return CareAssessmentCompleted;
|
|
186338
186338
|
})();
|
|
186339
186339
|
|
|
186340
|
+
$root.CareAssessmentMissed = (function() {
|
|
186341
|
+
|
|
186342
|
+
/**
|
|
186343
|
+
* Properties of a CareAssessmentMissed.
|
|
186344
|
+
* @typedef {Object} CareAssessmentMissed.$Properties
|
|
186345
|
+
* @property {number|Long|null} [timestamp] CareAssessmentMissed timestamp
|
|
186346
|
+
* @property {CareAssessmentType|null} [careAssessmentType] CareAssessmentMissed careAssessmentType
|
|
186347
|
+
* @property {string|null} [hsUserId] CareAssessmentMissed hsUserId
|
|
186348
|
+
* @property {number|null} [gingerUserId] CareAssessmentMissed gingerUserId
|
|
186349
|
+
* @property {string|null} [missedAtIsoDate] CareAssessmentMissed missedAtIsoDate
|
|
186350
|
+
* @property {number|Long|null} [assignmentId] CareAssessmentMissed assignmentId
|
|
186351
|
+
* @property {string|null} [activityId] CareAssessmentMissed activityId
|
|
186352
|
+
* @property {CareAssessmentCadence|null} [careAssessmentCadence] CareAssessmentMissed careAssessmentCadence
|
|
186353
|
+
* @property {CareAssessmentContext|null} [assessmentContext] CareAssessmentMissed assessmentContext
|
|
186354
|
+
* @property {string|null} [dueAtIsoDate] CareAssessmentMissed dueAtIsoDate
|
|
186355
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
186356
|
+
*/
|
|
186357
|
+
|
|
186358
|
+
/**
|
|
186359
|
+
* Properties of a CareAssessmentMissed.
|
|
186360
|
+
* @name ICareAssessmentMissed
|
|
186361
|
+
* @interface ICareAssessmentMissed
|
|
186362
|
+
* @augments CareAssessmentMissed.$Properties
|
|
186363
|
+
* @deprecated Use CareAssessmentMissed.$Properties instead.
|
|
186364
|
+
*/
|
|
186365
|
+
|
|
186366
|
+
/**
|
|
186367
|
+
* Shape of a CareAssessmentMissed.
|
|
186368
|
+
* @typedef {CareAssessmentMissed.$Properties} CareAssessmentMissed.$Shape
|
|
186369
|
+
*/
|
|
186370
|
+
|
|
186371
|
+
/**
|
|
186372
|
+
* Constructs a new CareAssessmentMissed.
|
|
186373
|
+
* @name CareAssessmentMissed
|
|
186374
|
+
* @classdesc Represents a CareAssessmentMissed.
|
|
186375
|
+
* @constructor
|
|
186376
|
+
* @param {CareAssessmentMissed.$Properties=} [properties] Properties to set
|
|
186377
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
186378
|
+
*/
|
|
186379
|
+
function CareAssessmentMissed(properties) {
|
|
186380
|
+
if (properties)
|
|
186381
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
186382
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
186383
|
+
this[keys[i]] = properties[keys[i]];
|
|
186384
|
+
}
|
|
186385
|
+
|
|
186386
|
+
/**
|
|
186387
|
+
* CareAssessmentMissed timestamp.
|
|
186388
|
+
* @member {number|Long} timestamp
|
|
186389
|
+
* @memberof CareAssessmentMissed
|
|
186390
|
+
* @instance
|
|
186391
|
+
*/
|
|
186392
|
+
CareAssessmentMissed.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
186393
|
+
|
|
186394
|
+
/**
|
|
186395
|
+
* CareAssessmentMissed careAssessmentType.
|
|
186396
|
+
* @member {CareAssessmentType} careAssessmentType
|
|
186397
|
+
* @memberof CareAssessmentMissed
|
|
186398
|
+
* @instance
|
|
186399
|
+
*/
|
|
186400
|
+
CareAssessmentMissed.prototype.careAssessmentType = 0;
|
|
186401
|
+
|
|
186402
|
+
/**
|
|
186403
|
+
* CareAssessmentMissed hsUserId.
|
|
186404
|
+
* @member {string} hsUserId
|
|
186405
|
+
* @memberof CareAssessmentMissed
|
|
186406
|
+
* @instance
|
|
186407
|
+
*/
|
|
186408
|
+
CareAssessmentMissed.prototype.hsUserId = "";
|
|
186409
|
+
|
|
186410
|
+
/**
|
|
186411
|
+
* CareAssessmentMissed gingerUserId.
|
|
186412
|
+
* @member {number} gingerUserId
|
|
186413
|
+
* @memberof CareAssessmentMissed
|
|
186414
|
+
* @instance
|
|
186415
|
+
*/
|
|
186416
|
+
CareAssessmentMissed.prototype.gingerUserId = 0;
|
|
186417
|
+
|
|
186418
|
+
/**
|
|
186419
|
+
* CareAssessmentMissed missedAtIsoDate.
|
|
186420
|
+
* @member {string} missedAtIsoDate
|
|
186421
|
+
* @memberof CareAssessmentMissed
|
|
186422
|
+
* @instance
|
|
186423
|
+
*/
|
|
186424
|
+
CareAssessmentMissed.prototype.missedAtIsoDate = "";
|
|
186425
|
+
|
|
186426
|
+
/**
|
|
186427
|
+
* CareAssessmentMissed assignmentId.
|
|
186428
|
+
* @member {number|Long} assignmentId
|
|
186429
|
+
* @memberof CareAssessmentMissed
|
|
186430
|
+
* @instance
|
|
186431
|
+
*/
|
|
186432
|
+
CareAssessmentMissed.prototype.assignmentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
186433
|
+
|
|
186434
|
+
/**
|
|
186435
|
+
* CareAssessmentMissed activityId.
|
|
186436
|
+
* @member {string} activityId
|
|
186437
|
+
* @memberof CareAssessmentMissed
|
|
186438
|
+
* @instance
|
|
186439
|
+
*/
|
|
186440
|
+
CareAssessmentMissed.prototype.activityId = "";
|
|
186441
|
+
|
|
186442
|
+
/**
|
|
186443
|
+
* CareAssessmentMissed careAssessmentCadence.
|
|
186444
|
+
* @member {CareAssessmentCadence} careAssessmentCadence
|
|
186445
|
+
* @memberof CareAssessmentMissed
|
|
186446
|
+
* @instance
|
|
186447
|
+
*/
|
|
186448
|
+
CareAssessmentMissed.prototype.careAssessmentCadence = 0;
|
|
186449
|
+
|
|
186450
|
+
/**
|
|
186451
|
+
* CareAssessmentMissed assessmentContext.
|
|
186452
|
+
* @member {CareAssessmentContext|null|undefined} assessmentContext
|
|
186453
|
+
* @memberof CareAssessmentMissed
|
|
186454
|
+
* @instance
|
|
186455
|
+
*/
|
|
186456
|
+
CareAssessmentMissed.prototype.assessmentContext = null;
|
|
186457
|
+
|
|
186458
|
+
/**
|
|
186459
|
+
* CareAssessmentMissed dueAtIsoDate.
|
|
186460
|
+
* @member {string} dueAtIsoDate
|
|
186461
|
+
* @memberof CareAssessmentMissed
|
|
186462
|
+
* @instance
|
|
186463
|
+
*/
|
|
186464
|
+
CareAssessmentMissed.prototype.dueAtIsoDate = "";
|
|
186465
|
+
|
|
186466
|
+
// OneOf field names bound to virtual getters and setters
|
|
186467
|
+
var $oneOfFields;
|
|
186468
|
+
|
|
186469
|
+
// Virtual OneOf for proto3 optional field
|
|
186470
|
+
Object.defineProperty(CareAssessmentMissed.prototype, "_assessmentContext", {
|
|
186471
|
+
get: $util.oneOfGetter($oneOfFields = ["assessmentContext"]),
|
|
186472
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
186473
|
+
});
|
|
186474
|
+
|
|
186475
|
+
/**
|
|
186476
|
+
* Creates a new CareAssessmentMissed instance using the specified properties.
|
|
186477
|
+
* @function create
|
|
186478
|
+
* @memberof CareAssessmentMissed
|
|
186479
|
+
* @static
|
|
186480
|
+
* @param {CareAssessmentMissed.$Properties=} [properties] Properties to set
|
|
186481
|
+
* @returns {CareAssessmentMissed} CareAssessmentMissed instance
|
|
186482
|
+
* @type {{
|
|
186483
|
+
* (properties: CareAssessmentMissed.$Shape): CareAssessmentMissed & CareAssessmentMissed.$Shape;
|
|
186484
|
+
* (properties?: CareAssessmentMissed.$Properties): CareAssessmentMissed;
|
|
186485
|
+
* }}
|
|
186486
|
+
*/
|
|
186487
|
+
CareAssessmentMissed.create = function create(properties) {
|
|
186488
|
+
return new CareAssessmentMissed(properties);
|
|
186489
|
+
};
|
|
186490
|
+
|
|
186491
|
+
/**
|
|
186492
|
+
* Encodes the specified CareAssessmentMissed message. Does not implicitly {@link CareAssessmentMissed.verify|verify} messages.
|
|
186493
|
+
* @function encode
|
|
186494
|
+
* @memberof CareAssessmentMissed
|
|
186495
|
+
* @static
|
|
186496
|
+
* @param {CareAssessmentMissed.$Properties} message CareAssessmentMissed message or plain object to encode
|
|
186497
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
186498
|
+
* @returns {$protobuf.Writer} Writer
|
|
186499
|
+
*/
|
|
186500
|
+
CareAssessmentMissed.encode = function encode(message, writer) {
|
|
186501
|
+
if (!writer)
|
|
186502
|
+
writer = $Writer.create();
|
|
186503
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
186504
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
186505
|
+
if (message.careAssessmentType != null && Object.hasOwnProperty.call(message, "careAssessmentType"))
|
|
186506
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.careAssessmentType);
|
|
186507
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
186508
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
|
|
186509
|
+
if (message.gingerUserId != null && Object.hasOwnProperty.call(message, "gingerUserId"))
|
|
186510
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.gingerUserId);
|
|
186511
|
+
if (message.missedAtIsoDate != null && Object.hasOwnProperty.call(message, "missedAtIsoDate"))
|
|
186512
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.missedAtIsoDate);
|
|
186513
|
+
if (message.assignmentId != null && Object.hasOwnProperty.call(message, "assignmentId"))
|
|
186514
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int64(message.assignmentId);
|
|
186515
|
+
if (message.activityId != null && Object.hasOwnProperty.call(message, "activityId"))
|
|
186516
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.activityId);
|
|
186517
|
+
if (message.careAssessmentCadence != null && Object.hasOwnProperty.call(message, "careAssessmentCadence"))
|
|
186518
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.careAssessmentCadence);
|
|
186519
|
+
if (message.assessmentContext != null && Object.hasOwnProperty.call(message, "assessmentContext"))
|
|
186520
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.assessmentContext);
|
|
186521
|
+
if (message.dueAtIsoDate != null && Object.hasOwnProperty.call(message, "dueAtIsoDate"))
|
|
186522
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.dueAtIsoDate);
|
|
186523
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
186524
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
186525
|
+
writer.raw(message.$unknowns[i]);
|
|
186526
|
+
return writer;
|
|
186527
|
+
};
|
|
186528
|
+
|
|
186529
|
+
/**
|
|
186530
|
+
* Encodes the specified CareAssessmentMissed message, length delimited. Does not implicitly {@link CareAssessmentMissed.verify|verify} messages.
|
|
186531
|
+
* @function encodeDelimited
|
|
186532
|
+
* @memberof CareAssessmentMissed
|
|
186533
|
+
* @static
|
|
186534
|
+
* @param {CareAssessmentMissed.$Properties} message CareAssessmentMissed message or plain object to encode
|
|
186535
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
186536
|
+
* @returns {$protobuf.Writer} Writer
|
|
186537
|
+
*/
|
|
186538
|
+
CareAssessmentMissed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
186539
|
+
return this.encode(message, writer).ldelim();
|
|
186540
|
+
};
|
|
186541
|
+
|
|
186542
|
+
/**
|
|
186543
|
+
* Decodes a CareAssessmentMissed message from the specified reader or buffer.
|
|
186544
|
+
* @function decode
|
|
186545
|
+
* @memberof CareAssessmentMissed
|
|
186546
|
+
* @static
|
|
186547
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
186548
|
+
* @param {number} [length] Message length if known beforehand
|
|
186549
|
+
* @returns {CareAssessmentMissed & CareAssessmentMissed.$Shape} CareAssessmentMissed
|
|
186550
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
186551
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
186552
|
+
*/
|
|
186553
|
+
CareAssessmentMissed.decode = function decode(reader, length, _end, _depth, _target) {
|
|
186554
|
+
if (!(reader instanceof $Reader))
|
|
186555
|
+
reader = $Reader.create(reader);
|
|
186556
|
+
if (_depth === undefined)
|
|
186557
|
+
_depth = 0;
|
|
186558
|
+
if (_depth > $Reader.recursionLimit)
|
|
186559
|
+
throw Error("max depth exceeded");
|
|
186560
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CareAssessmentMissed(), value;
|
|
186561
|
+
while (reader.pos < end) {
|
|
186562
|
+
var start = reader.pos;
|
|
186563
|
+
var tag = reader.tag();
|
|
186564
|
+
if (tag === _end) {
|
|
186565
|
+
_end = undefined;
|
|
186566
|
+
break;
|
|
186567
|
+
}
|
|
186568
|
+
var wireType = tag & 7;
|
|
186569
|
+
switch (tag >>>= 3) {
|
|
186570
|
+
case 1: {
|
|
186571
|
+
if (wireType !== 0)
|
|
186572
|
+
break;
|
|
186573
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
186574
|
+
message.timestamp = value;
|
|
186575
|
+
else
|
|
186576
|
+
delete message.timestamp;
|
|
186577
|
+
continue;
|
|
186578
|
+
}
|
|
186579
|
+
case 2: {
|
|
186580
|
+
if (wireType !== 0)
|
|
186581
|
+
break;
|
|
186582
|
+
if (value = reader.int32())
|
|
186583
|
+
message.careAssessmentType = value;
|
|
186584
|
+
else
|
|
186585
|
+
delete message.careAssessmentType;
|
|
186586
|
+
continue;
|
|
186587
|
+
}
|
|
186588
|
+
case 3: {
|
|
186589
|
+
if (wireType !== 2)
|
|
186590
|
+
break;
|
|
186591
|
+
if ((value = reader.string()).length)
|
|
186592
|
+
message.hsUserId = value;
|
|
186593
|
+
else
|
|
186594
|
+
delete message.hsUserId;
|
|
186595
|
+
continue;
|
|
186596
|
+
}
|
|
186597
|
+
case 4: {
|
|
186598
|
+
if (wireType !== 0)
|
|
186599
|
+
break;
|
|
186600
|
+
if (value = reader.uint32())
|
|
186601
|
+
message.gingerUserId = value;
|
|
186602
|
+
else
|
|
186603
|
+
delete message.gingerUserId;
|
|
186604
|
+
continue;
|
|
186605
|
+
}
|
|
186606
|
+
case 5: {
|
|
186607
|
+
if (wireType !== 2)
|
|
186608
|
+
break;
|
|
186609
|
+
if ((value = reader.string()).length)
|
|
186610
|
+
message.missedAtIsoDate = value;
|
|
186611
|
+
else
|
|
186612
|
+
delete message.missedAtIsoDate;
|
|
186613
|
+
continue;
|
|
186614
|
+
}
|
|
186615
|
+
case 6: {
|
|
186616
|
+
if (wireType !== 0)
|
|
186617
|
+
break;
|
|
186618
|
+
if (typeof (value = reader.int64()) === "object" ? value.low || value.high : value !== 0)
|
|
186619
|
+
message.assignmentId = value;
|
|
186620
|
+
else
|
|
186621
|
+
delete message.assignmentId;
|
|
186622
|
+
continue;
|
|
186623
|
+
}
|
|
186624
|
+
case 7: {
|
|
186625
|
+
if (wireType !== 2)
|
|
186626
|
+
break;
|
|
186627
|
+
if ((value = reader.string()).length)
|
|
186628
|
+
message.activityId = value;
|
|
186629
|
+
else
|
|
186630
|
+
delete message.activityId;
|
|
186631
|
+
continue;
|
|
186632
|
+
}
|
|
186633
|
+
case 8: {
|
|
186634
|
+
if (wireType !== 0)
|
|
186635
|
+
break;
|
|
186636
|
+
if (value = reader.int32())
|
|
186637
|
+
message.careAssessmentCadence = value;
|
|
186638
|
+
else
|
|
186639
|
+
delete message.careAssessmentCadence;
|
|
186640
|
+
continue;
|
|
186641
|
+
}
|
|
186642
|
+
case 9: {
|
|
186643
|
+
if (wireType !== 0)
|
|
186644
|
+
break;
|
|
186645
|
+
message.assessmentContext = reader.int32();
|
|
186646
|
+
message._assessmentContext = "assessmentContext";
|
|
186647
|
+
continue;
|
|
186648
|
+
}
|
|
186649
|
+
case 10: {
|
|
186650
|
+
if (wireType !== 2)
|
|
186651
|
+
break;
|
|
186652
|
+
if ((value = reader.string()).length)
|
|
186653
|
+
message.dueAtIsoDate = value;
|
|
186654
|
+
else
|
|
186655
|
+
delete message.dueAtIsoDate;
|
|
186656
|
+
continue;
|
|
186657
|
+
}
|
|
186658
|
+
}
|
|
186659
|
+
reader.skipType(wireType, _depth, tag);
|
|
186660
|
+
$util.makeProp(message, "$unknowns", false);
|
|
186661
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
186662
|
+
}
|
|
186663
|
+
if (_end !== undefined)
|
|
186664
|
+
throw Error("missing end group");
|
|
186665
|
+
return message;
|
|
186666
|
+
};
|
|
186667
|
+
|
|
186668
|
+
/**
|
|
186669
|
+
* Decodes a CareAssessmentMissed message from the specified reader or buffer, length delimited.
|
|
186670
|
+
* @function decodeDelimited
|
|
186671
|
+
* @memberof CareAssessmentMissed
|
|
186672
|
+
* @static
|
|
186673
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
186674
|
+
* @returns {CareAssessmentMissed & CareAssessmentMissed.$Shape} CareAssessmentMissed
|
|
186675
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
186676
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
186677
|
+
*/
|
|
186678
|
+
CareAssessmentMissed.decodeDelimited = function decodeDelimited(reader) {
|
|
186679
|
+
if (!(reader instanceof $Reader))
|
|
186680
|
+
reader = new $Reader(reader);
|
|
186681
|
+
return this.decode(reader, reader.uint32());
|
|
186682
|
+
};
|
|
186683
|
+
|
|
186684
|
+
/**
|
|
186685
|
+
* Verifies a CareAssessmentMissed message.
|
|
186686
|
+
* @function verify
|
|
186687
|
+
* @memberof CareAssessmentMissed
|
|
186688
|
+
* @static
|
|
186689
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
186690
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
186691
|
+
*/
|
|
186692
|
+
CareAssessmentMissed.verify = function verify(message, _depth) {
|
|
186693
|
+
if (typeof message !== "object" || message === null)
|
|
186694
|
+
return "object expected";
|
|
186695
|
+
if (_depth === undefined)
|
|
186696
|
+
_depth = 0;
|
|
186697
|
+
if (_depth > $util.recursionLimit)
|
|
186698
|
+
return "max depth exceeded";
|
|
186699
|
+
var properties = {};
|
|
186700
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
186701
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
186702
|
+
return "timestamp: integer|Long expected";
|
|
186703
|
+
if (message.careAssessmentType != null && message.hasOwnProperty("careAssessmentType"))
|
|
186704
|
+
switch (message.careAssessmentType) {
|
|
186705
|
+
default:
|
|
186706
|
+
return "careAssessmentType: enum value expected";
|
|
186707
|
+
case 0:
|
|
186708
|
+
case 1:
|
|
186709
|
+
case 2:
|
|
186710
|
+
case 3:
|
|
186711
|
+
case 4:
|
|
186712
|
+
case 5:
|
|
186713
|
+
break;
|
|
186714
|
+
}
|
|
186715
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
186716
|
+
if (!$util.isString(message.hsUserId))
|
|
186717
|
+
return "hsUserId: string expected";
|
|
186718
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
186719
|
+
if (!$util.isInteger(message.gingerUserId))
|
|
186720
|
+
return "gingerUserId: integer expected";
|
|
186721
|
+
if (message.missedAtIsoDate != null && message.hasOwnProperty("missedAtIsoDate"))
|
|
186722
|
+
if (!$util.isString(message.missedAtIsoDate))
|
|
186723
|
+
return "missedAtIsoDate: string expected";
|
|
186724
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
186725
|
+
if (!$util.isInteger(message.assignmentId) && !(message.assignmentId && $util.isInteger(message.assignmentId.low) && $util.isInteger(message.assignmentId.high)))
|
|
186726
|
+
return "assignmentId: integer|Long expected";
|
|
186727
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
186728
|
+
if (!$util.isString(message.activityId))
|
|
186729
|
+
return "activityId: string expected";
|
|
186730
|
+
if (message.careAssessmentCadence != null && message.hasOwnProperty("careAssessmentCadence"))
|
|
186731
|
+
switch (message.careAssessmentCadence) {
|
|
186732
|
+
default:
|
|
186733
|
+
return "careAssessmentCadence: enum value expected";
|
|
186734
|
+
case 0:
|
|
186735
|
+
case 1:
|
|
186736
|
+
case 2:
|
|
186737
|
+
case 3:
|
|
186738
|
+
case 4:
|
|
186739
|
+
break;
|
|
186740
|
+
}
|
|
186741
|
+
if (message.assessmentContext != null && message.hasOwnProperty("assessmentContext")) {
|
|
186742
|
+
properties._assessmentContext = 1;
|
|
186743
|
+
switch (message.assessmentContext) {
|
|
186744
|
+
default:
|
|
186745
|
+
return "assessmentContext: enum value expected";
|
|
186746
|
+
case 0:
|
|
186747
|
+
case 1:
|
|
186748
|
+
break;
|
|
186749
|
+
}
|
|
186750
|
+
}
|
|
186751
|
+
if (message.dueAtIsoDate != null && message.hasOwnProperty("dueAtIsoDate"))
|
|
186752
|
+
if (!$util.isString(message.dueAtIsoDate))
|
|
186753
|
+
return "dueAtIsoDate: string expected";
|
|
186754
|
+
return null;
|
|
186755
|
+
};
|
|
186756
|
+
|
|
186757
|
+
/**
|
|
186758
|
+
* Creates a CareAssessmentMissed message from a plain object. Also converts values to their respective internal types.
|
|
186759
|
+
* @function fromObject
|
|
186760
|
+
* @memberof CareAssessmentMissed
|
|
186761
|
+
* @static
|
|
186762
|
+
* @param {Object.<string,*>} object Plain object
|
|
186763
|
+
* @returns {CareAssessmentMissed} CareAssessmentMissed
|
|
186764
|
+
*/
|
|
186765
|
+
CareAssessmentMissed.fromObject = function fromObject(object, _depth) {
|
|
186766
|
+
if (object instanceof $root.CareAssessmentMissed)
|
|
186767
|
+
return object;
|
|
186768
|
+
if (_depth === undefined)
|
|
186769
|
+
_depth = 0;
|
|
186770
|
+
if (_depth > $util.recursionLimit)
|
|
186771
|
+
throw Error("max depth exceeded");
|
|
186772
|
+
var message = new $root.CareAssessmentMissed();
|
|
186773
|
+
if (object.timestamp != null)
|
|
186774
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
186775
|
+
if ($util.Long)
|
|
186776
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
186777
|
+
else if (typeof object.timestamp === "string")
|
|
186778
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
186779
|
+
else if (typeof object.timestamp === "number")
|
|
186780
|
+
message.timestamp = object.timestamp;
|
|
186781
|
+
else if (typeof object.timestamp === "object")
|
|
186782
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
186783
|
+
if (object.careAssessmentType !== 0 && (typeof object.careAssessmentType !== "string" || $root.CareAssessmentType[object.careAssessmentType] !== 0))
|
|
186784
|
+
switch (object.careAssessmentType) {
|
|
186785
|
+
default:
|
|
186786
|
+
if (typeof object.careAssessmentType === "number") {
|
|
186787
|
+
message.careAssessmentType = object.careAssessmentType;
|
|
186788
|
+
break;
|
|
186789
|
+
}
|
|
186790
|
+
break;
|
|
186791
|
+
case "CARE_ASSESSMENT_TYPE_UNKNOWN":
|
|
186792
|
+
case 0:
|
|
186793
|
+
message.careAssessmentType = 0;
|
|
186794
|
+
break;
|
|
186795
|
+
case "CARE_ASSESSMENT_TYPE_PHQ9":
|
|
186796
|
+
case 1:
|
|
186797
|
+
message.careAssessmentType = 1;
|
|
186798
|
+
break;
|
|
186799
|
+
case "CARE_ASSESSMENT_TYPE_GAD7":
|
|
186800
|
+
case 2:
|
|
186801
|
+
message.careAssessmentType = 2;
|
|
186802
|
+
break;
|
|
186803
|
+
case "CARE_ASSESSMENT_TYPE_PHQ4":
|
|
186804
|
+
case 3:
|
|
186805
|
+
message.careAssessmentType = 3;
|
|
186806
|
+
break;
|
|
186807
|
+
case "CARE_ASSESSMENT_TYPE_PSS":
|
|
186808
|
+
case 4:
|
|
186809
|
+
message.careAssessmentType = 4;
|
|
186810
|
+
break;
|
|
186811
|
+
case "CARE_ASSESSMENT_TYPE_PGIC":
|
|
186812
|
+
case 5:
|
|
186813
|
+
message.careAssessmentType = 5;
|
|
186814
|
+
break;
|
|
186815
|
+
}
|
|
186816
|
+
if (object.hsUserId != null)
|
|
186817
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
186818
|
+
message.hsUserId = String(object.hsUserId);
|
|
186819
|
+
if (object.gingerUserId != null)
|
|
186820
|
+
if (Number(object.gingerUserId) !== 0)
|
|
186821
|
+
message.gingerUserId = object.gingerUserId >>> 0;
|
|
186822
|
+
if (object.missedAtIsoDate != null)
|
|
186823
|
+
if (typeof object.missedAtIsoDate !== "string" || object.missedAtIsoDate.length)
|
|
186824
|
+
message.missedAtIsoDate = String(object.missedAtIsoDate);
|
|
186825
|
+
if (object.assignmentId != null)
|
|
186826
|
+
if (typeof object.assignmentId === "object" ? object.assignmentId.low || object.assignmentId.high : Number(object.assignmentId) !== 0)
|
|
186827
|
+
if ($util.Long)
|
|
186828
|
+
(message.assignmentId = $util.Long.fromValue(object.assignmentId)).unsigned = false;
|
|
186829
|
+
else if (typeof object.assignmentId === "string")
|
|
186830
|
+
message.assignmentId = parseInt(object.assignmentId, 10);
|
|
186831
|
+
else if (typeof object.assignmentId === "number")
|
|
186832
|
+
message.assignmentId = object.assignmentId;
|
|
186833
|
+
else if (typeof object.assignmentId === "object")
|
|
186834
|
+
message.assignmentId = new $util.LongBits(object.assignmentId.low >>> 0, object.assignmentId.high >>> 0).toNumber();
|
|
186835
|
+
if (object.activityId != null)
|
|
186836
|
+
if (typeof object.activityId !== "string" || object.activityId.length)
|
|
186837
|
+
message.activityId = String(object.activityId);
|
|
186838
|
+
if (object.careAssessmentCadence !== 0 && (typeof object.careAssessmentCadence !== "string" || $root.CareAssessmentCadence[object.careAssessmentCadence] !== 0))
|
|
186839
|
+
switch (object.careAssessmentCadence) {
|
|
186840
|
+
default:
|
|
186841
|
+
if (typeof object.careAssessmentCadence === "number") {
|
|
186842
|
+
message.careAssessmentCadence = object.careAssessmentCadence;
|
|
186843
|
+
break;
|
|
186844
|
+
}
|
|
186845
|
+
break;
|
|
186846
|
+
case "CARE_ASSESSMENT_CADENCE_UNKNOWN":
|
|
186847
|
+
case 0:
|
|
186848
|
+
message.careAssessmentCadence = 0;
|
|
186849
|
+
break;
|
|
186850
|
+
case "CARE_ASSESSMENT_CADENCE_ONBOARDING":
|
|
186851
|
+
case 1:
|
|
186852
|
+
message.careAssessmentCadence = 1;
|
|
186853
|
+
break;
|
|
186854
|
+
case "CARE_ASSESSMENT_CADENCE_QUARTERLY":
|
|
186855
|
+
case 2:
|
|
186856
|
+
message.careAssessmentCadence = 2;
|
|
186857
|
+
break;
|
|
186858
|
+
case "CARE_ASSESSMENT_CADENCE_END_OF_PERIOD":
|
|
186859
|
+
case 3:
|
|
186860
|
+
message.careAssessmentCadence = 3;
|
|
186861
|
+
break;
|
|
186862
|
+
case "CARE_ASSESSMENT_CADENCE_EARLY_EXIT":
|
|
186863
|
+
case 4:
|
|
186864
|
+
message.careAssessmentCadence = 4;
|
|
186865
|
+
break;
|
|
186866
|
+
}
|
|
186867
|
+
switch (object.assessmentContext) {
|
|
186868
|
+
default:
|
|
186869
|
+
if (typeof object.assessmentContext === "number") {
|
|
186870
|
+
message.assessmentContext = object.assessmentContext;
|
|
186871
|
+
break;
|
|
186872
|
+
}
|
|
186873
|
+
break;
|
|
186874
|
+
case "CARE_ASSESSMENT_CONTEXT_UNKNOWN":
|
|
186875
|
+
case 0:
|
|
186876
|
+
message.assessmentContext = 0;
|
|
186877
|
+
break;
|
|
186878
|
+
case "CARE_ASSESSMENT_CONTEXT_CMS":
|
|
186879
|
+
case 1:
|
|
186880
|
+
message.assessmentContext = 1;
|
|
186881
|
+
break;
|
|
186882
|
+
}
|
|
186883
|
+
if (object.dueAtIsoDate != null)
|
|
186884
|
+
if (typeof object.dueAtIsoDate !== "string" || object.dueAtIsoDate.length)
|
|
186885
|
+
message.dueAtIsoDate = String(object.dueAtIsoDate);
|
|
186886
|
+
return message;
|
|
186887
|
+
};
|
|
186888
|
+
|
|
186889
|
+
/**
|
|
186890
|
+
* Creates a plain object from a CareAssessmentMissed message. Also converts values to other types if specified.
|
|
186891
|
+
* @function toObject
|
|
186892
|
+
* @memberof CareAssessmentMissed
|
|
186893
|
+
* @static
|
|
186894
|
+
* @param {CareAssessmentMissed} message CareAssessmentMissed
|
|
186895
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
186896
|
+
* @returns {Object.<string,*>} Plain object
|
|
186897
|
+
*/
|
|
186898
|
+
CareAssessmentMissed.toObject = function toObject(message, options) {
|
|
186899
|
+
if (!options)
|
|
186900
|
+
options = {};
|
|
186901
|
+
var object = {};
|
|
186902
|
+
if (options.defaults) {
|
|
186903
|
+
if ($util.Long) {
|
|
186904
|
+
var long = new $util.Long(0, 0, true);
|
|
186905
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
186906
|
+
} else
|
|
186907
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
186908
|
+
object.careAssessmentType = options.enums === String ? "CARE_ASSESSMENT_TYPE_UNKNOWN" : 0;
|
|
186909
|
+
object.hsUserId = "";
|
|
186910
|
+
object.gingerUserId = 0;
|
|
186911
|
+
object.missedAtIsoDate = "";
|
|
186912
|
+
if ($util.Long) {
|
|
186913
|
+
var long = new $util.Long(0, 0, false);
|
|
186914
|
+
object.assignmentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
186915
|
+
} else
|
|
186916
|
+
object.assignmentId = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
186917
|
+
object.activityId = "";
|
|
186918
|
+
object.careAssessmentCadence = options.enums === String ? "CARE_ASSESSMENT_CADENCE_UNKNOWN" : 0;
|
|
186919
|
+
object.dueAtIsoDate = "";
|
|
186920
|
+
}
|
|
186921
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
186922
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
186923
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
186924
|
+
else if (typeof message.timestamp === "number")
|
|
186925
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
186926
|
+
else
|
|
186927
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
186928
|
+
if (message.careAssessmentType != null && message.hasOwnProperty("careAssessmentType"))
|
|
186929
|
+
object.careAssessmentType = options.enums === String ? $root.CareAssessmentType[message.careAssessmentType] === undefined ? message.careAssessmentType : $root.CareAssessmentType[message.careAssessmentType] : message.careAssessmentType;
|
|
186930
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
186931
|
+
object.hsUserId = message.hsUserId;
|
|
186932
|
+
if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
|
|
186933
|
+
object.gingerUserId = message.gingerUserId;
|
|
186934
|
+
if (message.missedAtIsoDate != null && message.hasOwnProperty("missedAtIsoDate"))
|
|
186935
|
+
object.missedAtIsoDate = message.missedAtIsoDate;
|
|
186936
|
+
if (message.assignmentId != null && message.hasOwnProperty("assignmentId"))
|
|
186937
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
186938
|
+
object.assignmentId = typeof message.assignmentId === "number" ? BigInt(message.assignmentId) : $util.Long.fromBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0, false).toBigInt();
|
|
186939
|
+
else if (typeof message.assignmentId === "number")
|
|
186940
|
+
object.assignmentId = options.longs === String ? String(message.assignmentId) : message.assignmentId;
|
|
186941
|
+
else
|
|
186942
|
+
object.assignmentId = options.longs === String ? $util.Long.prototype.toString.call(message.assignmentId) : options.longs === Number ? new $util.LongBits(message.assignmentId.low >>> 0, message.assignmentId.high >>> 0).toNumber() : message.assignmentId;
|
|
186943
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
186944
|
+
object.activityId = message.activityId;
|
|
186945
|
+
if (message.careAssessmentCadence != null && message.hasOwnProperty("careAssessmentCadence"))
|
|
186946
|
+
object.careAssessmentCadence = options.enums === String ? $root.CareAssessmentCadence[message.careAssessmentCadence] === undefined ? message.careAssessmentCadence : $root.CareAssessmentCadence[message.careAssessmentCadence] : message.careAssessmentCadence;
|
|
186947
|
+
if (message.assessmentContext != null && message.hasOwnProperty("assessmentContext")) {
|
|
186948
|
+
object.assessmentContext = options.enums === String ? $root.CareAssessmentContext[message.assessmentContext] === undefined ? message.assessmentContext : $root.CareAssessmentContext[message.assessmentContext] : message.assessmentContext;
|
|
186949
|
+
if (options.oneofs)
|
|
186950
|
+
object._assessmentContext = "assessmentContext";
|
|
186951
|
+
}
|
|
186952
|
+
if (message.dueAtIsoDate != null && message.hasOwnProperty("dueAtIsoDate"))
|
|
186953
|
+
object.dueAtIsoDate = message.dueAtIsoDate;
|
|
186954
|
+
return object;
|
|
186955
|
+
};
|
|
186956
|
+
|
|
186957
|
+
/**
|
|
186958
|
+
* Converts this CareAssessmentMissed to JSON.
|
|
186959
|
+
* @function toJSON
|
|
186960
|
+
* @memberof CareAssessmentMissed
|
|
186961
|
+
* @instance
|
|
186962
|
+
* @returns {Object.<string,*>} JSON object
|
|
186963
|
+
*/
|
|
186964
|
+
CareAssessmentMissed.prototype.toJSON = function toJSON() {
|
|
186965
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
186966
|
+
};
|
|
186967
|
+
|
|
186968
|
+
/**
|
|
186969
|
+
* Gets the type url for CareAssessmentMissed
|
|
186970
|
+
* @function getTypeUrl
|
|
186971
|
+
* @memberof CareAssessmentMissed
|
|
186972
|
+
* @static
|
|
186973
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
186974
|
+
* @returns {string} The type url
|
|
186975
|
+
*/
|
|
186976
|
+
CareAssessmentMissed.getTypeUrl = function getTypeUrl(prefix) {
|
|
186977
|
+
if (prefix === undefined)
|
|
186978
|
+
prefix = "type.googleapis.com";
|
|
186979
|
+
return prefix + "/CareAssessmentMissed";
|
|
186980
|
+
};
|
|
186981
|
+
|
|
186982
|
+
return CareAssessmentMissed;
|
|
186983
|
+
})();
|
|
186984
|
+
|
|
186340
186985
|
$root.Survey = (function() {
|
|
186341
186986
|
|
|
186342
186987
|
/**
|
|
@@ -316748,6 +317393,637 @@ $root.GingerTherapySchedulerStatusUpdated = (function() {
|
|
|
316748
317393
|
return GingerTherapySchedulerStatusUpdated;
|
|
316749
317394
|
})();
|
|
316750
317395
|
|
|
317396
|
+
/**
|
|
317397
|
+
* DependentLinkStatus enum.
|
|
317398
|
+
* @name DependentLinkStatus
|
|
317399
|
+
* @enum {number}
|
|
317400
|
+
* @property {number} DEPENDENT_LINK_STATUS_UNKNOWN=0 DEPENDENT_LINK_STATUS_UNKNOWN value
|
|
317401
|
+
* @property {number} DEPENDENT_LINK_STATUS_LINKED=1 DEPENDENT_LINK_STATUS_LINKED value
|
|
317402
|
+
* @property {number} DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT=2 DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT value
|
|
317403
|
+
* @property {number} DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY=3 DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY value
|
|
317404
|
+
* @property {number} DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED=4 DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED value
|
|
317405
|
+
*/
|
|
317406
|
+
$root.DependentLinkStatus = (function() {
|
|
317407
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
317408
|
+
values[valuesById[0] = "DEPENDENT_LINK_STATUS_UNKNOWN"] = 0;
|
|
317409
|
+
values[valuesById[1] = "DEPENDENT_LINK_STATUS_LINKED"] = 1;
|
|
317410
|
+
values[valuesById[2] = "DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT"] = 2;
|
|
317411
|
+
values[valuesById[3] = "DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY"] = 3;
|
|
317412
|
+
values[valuesById[4] = "DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED"] = 4;
|
|
317413
|
+
return values;
|
|
317414
|
+
})();
|
|
317415
|
+
|
|
317416
|
+
/**
|
|
317417
|
+
* DependentLinkMatchMethod enum.
|
|
317418
|
+
* @name DependentLinkMatchMethod
|
|
317419
|
+
* @enum {number}
|
|
317420
|
+
* @property {number} DEPENDENT_LINK_MATCH_METHOD_UNKNOWN=0 DEPENDENT_LINK_MATCH_METHOD_UNKNOWN value
|
|
317421
|
+
* @property {number} DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH=1 DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH value
|
|
317422
|
+
* @property {number} DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL=2 DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL value
|
|
317423
|
+
*/
|
|
317424
|
+
$root.DependentLinkMatchMethod = (function() {
|
|
317425
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
317426
|
+
values[valuesById[0] = "DEPENDENT_LINK_MATCH_METHOD_UNKNOWN"] = 0;
|
|
317427
|
+
values[valuesById[1] = "DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH"] = 1;
|
|
317428
|
+
values[valuesById[2] = "DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL"] = 2;
|
|
317429
|
+
return values;
|
|
317430
|
+
})();
|
|
317431
|
+
|
|
317432
|
+
/**
|
|
317433
|
+
* DependentLinkInitiator enum.
|
|
317434
|
+
* @name DependentLinkInitiator
|
|
317435
|
+
* @enum {number}
|
|
317436
|
+
* @property {number} DEPENDENT_LINK_INITIATOR_UNKNOWN=0 DEPENDENT_LINK_INITIATOR_UNKNOWN value
|
|
317437
|
+
* @property {number} DEPENDENT_LINK_INITIATOR_SYSTEM=1 DEPENDENT_LINK_INITIATOR_SYSTEM value
|
|
317438
|
+
* @property {number} DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER=2 DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER value
|
|
317439
|
+
*/
|
|
317440
|
+
$root.DependentLinkInitiator = (function() {
|
|
317441
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
317442
|
+
values[valuesById[0] = "DEPENDENT_LINK_INITIATOR_UNKNOWN"] = 0;
|
|
317443
|
+
values[valuesById[1] = "DEPENDENT_LINK_INITIATOR_SYSTEM"] = 1;
|
|
317444
|
+
values[valuesById[2] = "DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER"] = 2;
|
|
317445
|
+
return values;
|
|
317446
|
+
})();
|
|
317447
|
+
|
|
317448
|
+
$root.UngatedDependentStatusChanged = (function() {
|
|
317449
|
+
|
|
317450
|
+
/**
|
|
317451
|
+
* Properties of an UngatedDependentStatusChanged.
|
|
317452
|
+
* @typedef {Object} UngatedDependentStatusChanged.$Properties
|
|
317453
|
+
* @property {string|null} [hsUserId] UngatedDependentStatusChanged hsUserId
|
|
317454
|
+
* @property {DependentLinkStatus|null} [linkStatus] UngatedDependentStatusChanged linkStatus
|
|
317455
|
+
* @property {DependentLinkInitiator|null} [initiator] UngatedDependentStatusChanged initiator
|
|
317456
|
+
* @property {DependentLinkMatchMethod|null} [matchMethod] UngatedDependentStatusChanged matchMethod
|
|
317457
|
+
* @property {string|null} [primaryHsUserId] UngatedDependentStatusChanged primaryHsUserId
|
|
317458
|
+
* @property {string|null} [primaryEligibilityRecordUuid] UngatedDependentStatusChanged primaryEligibilityRecordUuid
|
|
317459
|
+
* @property {number|null} [orgId] UngatedDependentStatusChanged orgId
|
|
317460
|
+
* @property {number|null} [rootOrgId] UngatedDependentStatusChanged rootOrgId
|
|
317461
|
+
* @property {number|Long|null} [timestamp] UngatedDependentStatusChanged timestamp
|
|
317462
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
317463
|
+
*/
|
|
317464
|
+
|
|
317465
|
+
/**
|
|
317466
|
+
* Properties of an UngatedDependentStatusChanged.
|
|
317467
|
+
* @name IUngatedDependentStatusChanged
|
|
317468
|
+
* @interface IUngatedDependentStatusChanged
|
|
317469
|
+
* @augments UngatedDependentStatusChanged.$Properties
|
|
317470
|
+
* @deprecated Use UngatedDependentStatusChanged.$Properties instead.
|
|
317471
|
+
*/
|
|
317472
|
+
|
|
317473
|
+
/**
|
|
317474
|
+
* Shape of an UngatedDependentStatusChanged.
|
|
317475
|
+
* @typedef {UngatedDependentStatusChanged.$Properties} UngatedDependentStatusChanged.$Shape
|
|
317476
|
+
*/
|
|
317477
|
+
|
|
317478
|
+
/**
|
|
317479
|
+
* Constructs a new UngatedDependentStatusChanged.
|
|
317480
|
+
* @name UngatedDependentStatusChanged
|
|
317481
|
+
* @classdesc Represents an UngatedDependentStatusChanged.
|
|
317482
|
+
* @constructor
|
|
317483
|
+
* @param {UngatedDependentStatusChanged.$Properties=} [properties] Properties to set
|
|
317484
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
317485
|
+
*/
|
|
317486
|
+
function UngatedDependentStatusChanged(properties) {
|
|
317487
|
+
if (properties)
|
|
317488
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
317489
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
317490
|
+
this[keys[i]] = properties[keys[i]];
|
|
317491
|
+
}
|
|
317492
|
+
|
|
317493
|
+
/**
|
|
317494
|
+
* UngatedDependentStatusChanged hsUserId.
|
|
317495
|
+
* @member {string} hsUserId
|
|
317496
|
+
* @memberof UngatedDependentStatusChanged
|
|
317497
|
+
* @instance
|
|
317498
|
+
*/
|
|
317499
|
+
UngatedDependentStatusChanged.prototype.hsUserId = "";
|
|
317500
|
+
|
|
317501
|
+
/**
|
|
317502
|
+
* UngatedDependentStatusChanged linkStatus.
|
|
317503
|
+
* @member {DependentLinkStatus} linkStatus
|
|
317504
|
+
* @memberof UngatedDependentStatusChanged
|
|
317505
|
+
* @instance
|
|
317506
|
+
*/
|
|
317507
|
+
UngatedDependentStatusChanged.prototype.linkStatus = 0;
|
|
317508
|
+
|
|
317509
|
+
/**
|
|
317510
|
+
* UngatedDependentStatusChanged initiator.
|
|
317511
|
+
* @member {DependentLinkInitiator} initiator
|
|
317512
|
+
* @memberof UngatedDependentStatusChanged
|
|
317513
|
+
* @instance
|
|
317514
|
+
*/
|
|
317515
|
+
UngatedDependentStatusChanged.prototype.initiator = 0;
|
|
317516
|
+
|
|
317517
|
+
/**
|
|
317518
|
+
* UngatedDependentStatusChanged matchMethod.
|
|
317519
|
+
* @member {DependentLinkMatchMethod} matchMethod
|
|
317520
|
+
* @memberof UngatedDependentStatusChanged
|
|
317521
|
+
* @instance
|
|
317522
|
+
*/
|
|
317523
|
+
UngatedDependentStatusChanged.prototype.matchMethod = 0;
|
|
317524
|
+
|
|
317525
|
+
/**
|
|
317526
|
+
* UngatedDependentStatusChanged primaryHsUserId.
|
|
317527
|
+
* @member {string} primaryHsUserId
|
|
317528
|
+
* @memberof UngatedDependentStatusChanged
|
|
317529
|
+
* @instance
|
|
317530
|
+
*/
|
|
317531
|
+
UngatedDependentStatusChanged.prototype.primaryHsUserId = "";
|
|
317532
|
+
|
|
317533
|
+
/**
|
|
317534
|
+
* UngatedDependentStatusChanged primaryEligibilityRecordUuid.
|
|
317535
|
+
* @member {string} primaryEligibilityRecordUuid
|
|
317536
|
+
* @memberof UngatedDependentStatusChanged
|
|
317537
|
+
* @instance
|
|
317538
|
+
*/
|
|
317539
|
+
UngatedDependentStatusChanged.prototype.primaryEligibilityRecordUuid = "";
|
|
317540
|
+
|
|
317541
|
+
/**
|
|
317542
|
+
* UngatedDependentStatusChanged orgId.
|
|
317543
|
+
* @member {number} orgId
|
|
317544
|
+
* @memberof UngatedDependentStatusChanged
|
|
317545
|
+
* @instance
|
|
317546
|
+
*/
|
|
317547
|
+
UngatedDependentStatusChanged.prototype.orgId = 0;
|
|
317548
|
+
|
|
317549
|
+
/**
|
|
317550
|
+
* UngatedDependentStatusChanged rootOrgId.
|
|
317551
|
+
* @member {number} rootOrgId
|
|
317552
|
+
* @memberof UngatedDependentStatusChanged
|
|
317553
|
+
* @instance
|
|
317554
|
+
*/
|
|
317555
|
+
UngatedDependentStatusChanged.prototype.rootOrgId = 0;
|
|
317556
|
+
|
|
317557
|
+
/**
|
|
317558
|
+
* UngatedDependentStatusChanged timestamp.
|
|
317559
|
+
* @member {number|Long} timestamp
|
|
317560
|
+
* @memberof UngatedDependentStatusChanged
|
|
317561
|
+
* @instance
|
|
317562
|
+
*/
|
|
317563
|
+
UngatedDependentStatusChanged.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
317564
|
+
|
|
317565
|
+
/**
|
|
317566
|
+
* Creates a new UngatedDependentStatusChanged instance using the specified properties.
|
|
317567
|
+
* @function create
|
|
317568
|
+
* @memberof UngatedDependentStatusChanged
|
|
317569
|
+
* @static
|
|
317570
|
+
* @param {UngatedDependentStatusChanged.$Properties=} [properties] Properties to set
|
|
317571
|
+
* @returns {UngatedDependentStatusChanged} UngatedDependentStatusChanged instance
|
|
317572
|
+
* @type {{
|
|
317573
|
+
* (properties: UngatedDependentStatusChanged.$Shape): UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape;
|
|
317574
|
+
* (properties?: UngatedDependentStatusChanged.$Properties): UngatedDependentStatusChanged;
|
|
317575
|
+
* }}
|
|
317576
|
+
*/
|
|
317577
|
+
UngatedDependentStatusChanged.create = function create(properties) {
|
|
317578
|
+
return new UngatedDependentStatusChanged(properties);
|
|
317579
|
+
};
|
|
317580
|
+
|
|
317581
|
+
/**
|
|
317582
|
+
* Encodes the specified UngatedDependentStatusChanged message. Does not implicitly {@link UngatedDependentStatusChanged.verify|verify} messages.
|
|
317583
|
+
* @function encode
|
|
317584
|
+
* @memberof UngatedDependentStatusChanged
|
|
317585
|
+
* @static
|
|
317586
|
+
* @param {UngatedDependentStatusChanged.$Properties} message UngatedDependentStatusChanged message or plain object to encode
|
|
317587
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
317588
|
+
* @returns {$protobuf.Writer} Writer
|
|
317589
|
+
*/
|
|
317590
|
+
UngatedDependentStatusChanged.encode = function encode(message, writer) {
|
|
317591
|
+
if (!writer)
|
|
317592
|
+
writer = $Writer.create();
|
|
317593
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
317594
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
|
|
317595
|
+
if (message.linkStatus != null && Object.hasOwnProperty.call(message, "linkStatus"))
|
|
317596
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.linkStatus);
|
|
317597
|
+
if (message.initiator != null && Object.hasOwnProperty.call(message, "initiator"))
|
|
317598
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.initiator);
|
|
317599
|
+
if (message.matchMethod != null && Object.hasOwnProperty.call(message, "matchMethod"))
|
|
317600
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.matchMethod);
|
|
317601
|
+
if (message.primaryHsUserId != null && Object.hasOwnProperty.call(message, "primaryHsUserId"))
|
|
317602
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.primaryHsUserId);
|
|
317603
|
+
if (message.primaryEligibilityRecordUuid != null && Object.hasOwnProperty.call(message, "primaryEligibilityRecordUuid"))
|
|
317604
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.primaryEligibilityRecordUuid);
|
|
317605
|
+
if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
|
|
317606
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.orgId);
|
|
317607
|
+
if (message.rootOrgId != null && Object.hasOwnProperty.call(message, "rootOrgId"))
|
|
317608
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.rootOrgId);
|
|
317609
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
317610
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.timestamp);
|
|
317611
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
317612
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
317613
|
+
writer.raw(message.$unknowns[i]);
|
|
317614
|
+
return writer;
|
|
317615
|
+
};
|
|
317616
|
+
|
|
317617
|
+
/**
|
|
317618
|
+
* Encodes the specified UngatedDependentStatusChanged message, length delimited. Does not implicitly {@link UngatedDependentStatusChanged.verify|verify} messages.
|
|
317619
|
+
* @function encodeDelimited
|
|
317620
|
+
* @memberof UngatedDependentStatusChanged
|
|
317621
|
+
* @static
|
|
317622
|
+
* @param {UngatedDependentStatusChanged.$Properties} message UngatedDependentStatusChanged message or plain object to encode
|
|
317623
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
317624
|
+
* @returns {$protobuf.Writer} Writer
|
|
317625
|
+
*/
|
|
317626
|
+
UngatedDependentStatusChanged.encodeDelimited = function encodeDelimited(message, writer) {
|
|
317627
|
+
return this.encode(message, writer).ldelim();
|
|
317628
|
+
};
|
|
317629
|
+
|
|
317630
|
+
/**
|
|
317631
|
+
* Decodes an UngatedDependentStatusChanged message from the specified reader or buffer.
|
|
317632
|
+
* @function decode
|
|
317633
|
+
* @memberof UngatedDependentStatusChanged
|
|
317634
|
+
* @static
|
|
317635
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
317636
|
+
* @param {number} [length] Message length if known beforehand
|
|
317637
|
+
* @returns {UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape} UngatedDependentStatusChanged
|
|
317638
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
317639
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
317640
|
+
*/
|
|
317641
|
+
UngatedDependentStatusChanged.decode = function decode(reader, length, _end, _depth, _target) {
|
|
317642
|
+
if (!(reader instanceof $Reader))
|
|
317643
|
+
reader = $Reader.create(reader);
|
|
317644
|
+
if (_depth === undefined)
|
|
317645
|
+
_depth = 0;
|
|
317646
|
+
if (_depth > $Reader.recursionLimit)
|
|
317647
|
+
throw Error("max depth exceeded");
|
|
317648
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.UngatedDependentStatusChanged(), value;
|
|
317649
|
+
while (reader.pos < end) {
|
|
317650
|
+
var start = reader.pos;
|
|
317651
|
+
var tag = reader.tag();
|
|
317652
|
+
if (tag === _end) {
|
|
317653
|
+
_end = undefined;
|
|
317654
|
+
break;
|
|
317655
|
+
}
|
|
317656
|
+
var wireType = tag & 7;
|
|
317657
|
+
switch (tag >>>= 3) {
|
|
317658
|
+
case 1: {
|
|
317659
|
+
if (wireType !== 2)
|
|
317660
|
+
break;
|
|
317661
|
+
if ((value = reader.string()).length)
|
|
317662
|
+
message.hsUserId = value;
|
|
317663
|
+
else
|
|
317664
|
+
delete message.hsUserId;
|
|
317665
|
+
continue;
|
|
317666
|
+
}
|
|
317667
|
+
case 2: {
|
|
317668
|
+
if (wireType !== 0)
|
|
317669
|
+
break;
|
|
317670
|
+
if (value = reader.int32())
|
|
317671
|
+
message.linkStatus = value;
|
|
317672
|
+
else
|
|
317673
|
+
delete message.linkStatus;
|
|
317674
|
+
continue;
|
|
317675
|
+
}
|
|
317676
|
+
case 3: {
|
|
317677
|
+
if (wireType !== 0)
|
|
317678
|
+
break;
|
|
317679
|
+
if (value = reader.int32())
|
|
317680
|
+
message.initiator = value;
|
|
317681
|
+
else
|
|
317682
|
+
delete message.initiator;
|
|
317683
|
+
continue;
|
|
317684
|
+
}
|
|
317685
|
+
case 4: {
|
|
317686
|
+
if (wireType !== 0)
|
|
317687
|
+
break;
|
|
317688
|
+
if (value = reader.int32())
|
|
317689
|
+
message.matchMethod = value;
|
|
317690
|
+
else
|
|
317691
|
+
delete message.matchMethod;
|
|
317692
|
+
continue;
|
|
317693
|
+
}
|
|
317694
|
+
case 5: {
|
|
317695
|
+
if (wireType !== 2)
|
|
317696
|
+
break;
|
|
317697
|
+
if ((value = reader.string()).length)
|
|
317698
|
+
message.primaryHsUserId = value;
|
|
317699
|
+
else
|
|
317700
|
+
delete message.primaryHsUserId;
|
|
317701
|
+
continue;
|
|
317702
|
+
}
|
|
317703
|
+
case 6: {
|
|
317704
|
+
if (wireType !== 2)
|
|
317705
|
+
break;
|
|
317706
|
+
if ((value = reader.string()).length)
|
|
317707
|
+
message.primaryEligibilityRecordUuid = value;
|
|
317708
|
+
else
|
|
317709
|
+
delete message.primaryEligibilityRecordUuid;
|
|
317710
|
+
continue;
|
|
317711
|
+
}
|
|
317712
|
+
case 7: {
|
|
317713
|
+
if (wireType !== 0)
|
|
317714
|
+
break;
|
|
317715
|
+
if (value = reader.uint32())
|
|
317716
|
+
message.orgId = value;
|
|
317717
|
+
else
|
|
317718
|
+
delete message.orgId;
|
|
317719
|
+
continue;
|
|
317720
|
+
}
|
|
317721
|
+
case 8: {
|
|
317722
|
+
if (wireType !== 0)
|
|
317723
|
+
break;
|
|
317724
|
+
if (value = reader.uint32())
|
|
317725
|
+
message.rootOrgId = value;
|
|
317726
|
+
else
|
|
317727
|
+
delete message.rootOrgId;
|
|
317728
|
+
continue;
|
|
317729
|
+
}
|
|
317730
|
+
case 9: {
|
|
317731
|
+
if (wireType !== 0)
|
|
317732
|
+
break;
|
|
317733
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
317734
|
+
message.timestamp = value;
|
|
317735
|
+
else
|
|
317736
|
+
delete message.timestamp;
|
|
317737
|
+
continue;
|
|
317738
|
+
}
|
|
317739
|
+
}
|
|
317740
|
+
reader.skipType(wireType, _depth, tag);
|
|
317741
|
+
$util.makeProp(message, "$unknowns", false);
|
|
317742
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
317743
|
+
}
|
|
317744
|
+
if (_end !== undefined)
|
|
317745
|
+
throw Error("missing end group");
|
|
317746
|
+
return message;
|
|
317747
|
+
};
|
|
317748
|
+
|
|
317749
|
+
/**
|
|
317750
|
+
* Decodes an UngatedDependentStatusChanged message from the specified reader or buffer, length delimited.
|
|
317751
|
+
* @function decodeDelimited
|
|
317752
|
+
* @memberof UngatedDependentStatusChanged
|
|
317753
|
+
* @static
|
|
317754
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
317755
|
+
* @returns {UngatedDependentStatusChanged & UngatedDependentStatusChanged.$Shape} UngatedDependentStatusChanged
|
|
317756
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
317757
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
317758
|
+
*/
|
|
317759
|
+
UngatedDependentStatusChanged.decodeDelimited = function decodeDelimited(reader) {
|
|
317760
|
+
if (!(reader instanceof $Reader))
|
|
317761
|
+
reader = new $Reader(reader);
|
|
317762
|
+
return this.decode(reader, reader.uint32());
|
|
317763
|
+
};
|
|
317764
|
+
|
|
317765
|
+
/**
|
|
317766
|
+
* Verifies an UngatedDependentStatusChanged message.
|
|
317767
|
+
* @function verify
|
|
317768
|
+
* @memberof UngatedDependentStatusChanged
|
|
317769
|
+
* @static
|
|
317770
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
317771
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
317772
|
+
*/
|
|
317773
|
+
UngatedDependentStatusChanged.verify = function verify(message, _depth) {
|
|
317774
|
+
if (typeof message !== "object" || message === null)
|
|
317775
|
+
return "object expected";
|
|
317776
|
+
if (_depth === undefined)
|
|
317777
|
+
_depth = 0;
|
|
317778
|
+
if (_depth > $util.recursionLimit)
|
|
317779
|
+
return "max depth exceeded";
|
|
317780
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
317781
|
+
if (!$util.isString(message.hsUserId))
|
|
317782
|
+
return "hsUserId: string expected";
|
|
317783
|
+
if (message.linkStatus != null && message.hasOwnProperty("linkStatus"))
|
|
317784
|
+
switch (message.linkStatus) {
|
|
317785
|
+
default:
|
|
317786
|
+
return "linkStatus: enum value expected";
|
|
317787
|
+
case 0:
|
|
317788
|
+
case 1:
|
|
317789
|
+
case 2:
|
|
317790
|
+
case 3:
|
|
317791
|
+
case 4:
|
|
317792
|
+
break;
|
|
317793
|
+
}
|
|
317794
|
+
if (message.initiator != null && message.hasOwnProperty("initiator"))
|
|
317795
|
+
switch (message.initiator) {
|
|
317796
|
+
default:
|
|
317797
|
+
return "initiator: enum value expected";
|
|
317798
|
+
case 0:
|
|
317799
|
+
case 1:
|
|
317800
|
+
case 2:
|
|
317801
|
+
break;
|
|
317802
|
+
}
|
|
317803
|
+
if (message.matchMethod != null && message.hasOwnProperty("matchMethod"))
|
|
317804
|
+
switch (message.matchMethod) {
|
|
317805
|
+
default:
|
|
317806
|
+
return "matchMethod: enum value expected";
|
|
317807
|
+
case 0:
|
|
317808
|
+
case 1:
|
|
317809
|
+
case 2:
|
|
317810
|
+
break;
|
|
317811
|
+
}
|
|
317812
|
+
if (message.primaryHsUserId != null && message.hasOwnProperty("primaryHsUserId"))
|
|
317813
|
+
if (!$util.isString(message.primaryHsUserId))
|
|
317814
|
+
return "primaryHsUserId: string expected";
|
|
317815
|
+
if (message.primaryEligibilityRecordUuid != null && message.hasOwnProperty("primaryEligibilityRecordUuid"))
|
|
317816
|
+
if (!$util.isString(message.primaryEligibilityRecordUuid))
|
|
317817
|
+
return "primaryEligibilityRecordUuid: string expected";
|
|
317818
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
317819
|
+
if (!$util.isInteger(message.orgId))
|
|
317820
|
+
return "orgId: integer expected";
|
|
317821
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
317822
|
+
if (!$util.isInteger(message.rootOrgId))
|
|
317823
|
+
return "rootOrgId: integer expected";
|
|
317824
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
317825
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
317826
|
+
return "timestamp: integer|Long expected";
|
|
317827
|
+
return null;
|
|
317828
|
+
};
|
|
317829
|
+
|
|
317830
|
+
/**
|
|
317831
|
+
* Creates an UngatedDependentStatusChanged message from a plain object. Also converts values to their respective internal types.
|
|
317832
|
+
* @function fromObject
|
|
317833
|
+
* @memberof UngatedDependentStatusChanged
|
|
317834
|
+
* @static
|
|
317835
|
+
* @param {Object.<string,*>} object Plain object
|
|
317836
|
+
* @returns {UngatedDependentStatusChanged} UngatedDependentStatusChanged
|
|
317837
|
+
*/
|
|
317838
|
+
UngatedDependentStatusChanged.fromObject = function fromObject(object, _depth) {
|
|
317839
|
+
if (object instanceof $root.UngatedDependentStatusChanged)
|
|
317840
|
+
return object;
|
|
317841
|
+
if (_depth === undefined)
|
|
317842
|
+
_depth = 0;
|
|
317843
|
+
if (_depth > $util.recursionLimit)
|
|
317844
|
+
throw Error("max depth exceeded");
|
|
317845
|
+
var message = new $root.UngatedDependentStatusChanged();
|
|
317846
|
+
if (object.hsUserId != null)
|
|
317847
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
317848
|
+
message.hsUserId = String(object.hsUserId);
|
|
317849
|
+
if (object.linkStatus !== 0 && (typeof object.linkStatus !== "string" || $root.DependentLinkStatus[object.linkStatus] !== 0))
|
|
317850
|
+
switch (object.linkStatus) {
|
|
317851
|
+
default:
|
|
317852
|
+
if (typeof object.linkStatus === "number") {
|
|
317853
|
+
message.linkStatus = object.linkStatus;
|
|
317854
|
+
break;
|
|
317855
|
+
}
|
|
317856
|
+
break;
|
|
317857
|
+
case "DEPENDENT_LINK_STATUS_UNKNOWN":
|
|
317858
|
+
case 0:
|
|
317859
|
+
message.linkStatus = 0;
|
|
317860
|
+
break;
|
|
317861
|
+
case "DEPENDENT_LINK_STATUS_LINKED":
|
|
317862
|
+
case 1:
|
|
317863
|
+
message.linkStatus = 1;
|
|
317864
|
+
break;
|
|
317865
|
+
case "DEPENDENT_LINK_STATUS_UNLINKED_INDEPENDENT":
|
|
317866
|
+
case 2:
|
|
317867
|
+
message.linkStatus = 2;
|
|
317868
|
+
break;
|
|
317869
|
+
case "DEPENDENT_LINK_STATUS_REMOVED_BY_PRIMARY":
|
|
317870
|
+
case 3:
|
|
317871
|
+
message.linkStatus = 3;
|
|
317872
|
+
break;
|
|
317873
|
+
case "DEPENDENT_LINK_STATUS_DISENROLLED_PRIMARY_EXPIRED":
|
|
317874
|
+
case 4:
|
|
317875
|
+
message.linkStatus = 4;
|
|
317876
|
+
break;
|
|
317877
|
+
}
|
|
317878
|
+
if (object.initiator !== 0 && (typeof object.initiator !== "string" || $root.DependentLinkInitiator[object.initiator] !== 0))
|
|
317879
|
+
switch (object.initiator) {
|
|
317880
|
+
default:
|
|
317881
|
+
if (typeof object.initiator === "number") {
|
|
317882
|
+
message.initiator = object.initiator;
|
|
317883
|
+
break;
|
|
317884
|
+
}
|
|
317885
|
+
break;
|
|
317886
|
+
case "DEPENDENT_LINK_INITIATOR_UNKNOWN":
|
|
317887
|
+
case 0:
|
|
317888
|
+
message.initiator = 0;
|
|
317889
|
+
break;
|
|
317890
|
+
case "DEPENDENT_LINK_INITIATOR_SYSTEM":
|
|
317891
|
+
case 1:
|
|
317892
|
+
message.initiator = 1;
|
|
317893
|
+
break;
|
|
317894
|
+
case "DEPENDENT_LINK_INITIATOR_PRIMARY_MEMBER":
|
|
317895
|
+
case 2:
|
|
317896
|
+
message.initiator = 2;
|
|
317897
|
+
break;
|
|
317898
|
+
}
|
|
317899
|
+
if (object.matchMethod !== 0 && (typeof object.matchMethod !== "string" || $root.DependentLinkMatchMethod[object.matchMethod] !== 0))
|
|
317900
|
+
switch (object.matchMethod) {
|
|
317901
|
+
default:
|
|
317902
|
+
if (typeof object.matchMethod === "number") {
|
|
317903
|
+
message.matchMethod = object.matchMethod;
|
|
317904
|
+
break;
|
|
317905
|
+
}
|
|
317906
|
+
break;
|
|
317907
|
+
case "DEPENDENT_LINK_MATCH_METHOD_UNKNOWN":
|
|
317908
|
+
case 0:
|
|
317909
|
+
message.matchMethod = 0;
|
|
317910
|
+
break;
|
|
317911
|
+
case "DEPENDENT_LINK_MATCH_METHOD_NAME_AND_DATE_OF_BIRTH":
|
|
317912
|
+
case 1:
|
|
317913
|
+
message.matchMethod = 1;
|
|
317914
|
+
break;
|
|
317915
|
+
case "DEPENDENT_LINK_MATCH_METHOD_NAME_DATE_OF_BIRTH_AND_EMAIL":
|
|
317916
|
+
case 2:
|
|
317917
|
+
message.matchMethod = 2;
|
|
317918
|
+
break;
|
|
317919
|
+
}
|
|
317920
|
+
if (object.primaryHsUserId != null)
|
|
317921
|
+
if (typeof object.primaryHsUserId !== "string" || object.primaryHsUserId.length)
|
|
317922
|
+
message.primaryHsUserId = String(object.primaryHsUserId);
|
|
317923
|
+
if (object.primaryEligibilityRecordUuid != null)
|
|
317924
|
+
if (typeof object.primaryEligibilityRecordUuid !== "string" || object.primaryEligibilityRecordUuid.length)
|
|
317925
|
+
message.primaryEligibilityRecordUuid = String(object.primaryEligibilityRecordUuid);
|
|
317926
|
+
if (object.orgId != null)
|
|
317927
|
+
if (Number(object.orgId) !== 0)
|
|
317928
|
+
message.orgId = object.orgId >>> 0;
|
|
317929
|
+
if (object.rootOrgId != null)
|
|
317930
|
+
if (Number(object.rootOrgId) !== 0)
|
|
317931
|
+
message.rootOrgId = object.rootOrgId >>> 0;
|
|
317932
|
+
if (object.timestamp != null)
|
|
317933
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
317934
|
+
if ($util.Long)
|
|
317935
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
317936
|
+
else if (typeof object.timestamp === "string")
|
|
317937
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
317938
|
+
else if (typeof object.timestamp === "number")
|
|
317939
|
+
message.timestamp = object.timestamp;
|
|
317940
|
+
else if (typeof object.timestamp === "object")
|
|
317941
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
317942
|
+
return message;
|
|
317943
|
+
};
|
|
317944
|
+
|
|
317945
|
+
/**
|
|
317946
|
+
* Creates a plain object from an UngatedDependentStatusChanged message. Also converts values to other types if specified.
|
|
317947
|
+
* @function toObject
|
|
317948
|
+
* @memberof UngatedDependentStatusChanged
|
|
317949
|
+
* @static
|
|
317950
|
+
* @param {UngatedDependentStatusChanged} message UngatedDependentStatusChanged
|
|
317951
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
317952
|
+
* @returns {Object.<string,*>} Plain object
|
|
317953
|
+
*/
|
|
317954
|
+
UngatedDependentStatusChanged.toObject = function toObject(message, options) {
|
|
317955
|
+
if (!options)
|
|
317956
|
+
options = {};
|
|
317957
|
+
var object = {};
|
|
317958
|
+
if (options.defaults) {
|
|
317959
|
+
object.hsUserId = "";
|
|
317960
|
+
object.linkStatus = options.enums === String ? "DEPENDENT_LINK_STATUS_UNKNOWN" : 0;
|
|
317961
|
+
object.initiator = options.enums === String ? "DEPENDENT_LINK_INITIATOR_UNKNOWN" : 0;
|
|
317962
|
+
object.matchMethod = options.enums === String ? "DEPENDENT_LINK_MATCH_METHOD_UNKNOWN" : 0;
|
|
317963
|
+
object.primaryHsUserId = "";
|
|
317964
|
+
object.primaryEligibilityRecordUuid = "";
|
|
317965
|
+
object.orgId = 0;
|
|
317966
|
+
object.rootOrgId = 0;
|
|
317967
|
+
if ($util.Long) {
|
|
317968
|
+
var long = new $util.Long(0, 0, true);
|
|
317969
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
317970
|
+
} else
|
|
317971
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
317972
|
+
}
|
|
317973
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
317974
|
+
object.hsUserId = message.hsUserId;
|
|
317975
|
+
if (message.linkStatus != null && message.hasOwnProperty("linkStatus"))
|
|
317976
|
+
object.linkStatus = options.enums === String ? $root.DependentLinkStatus[message.linkStatus] === undefined ? message.linkStatus : $root.DependentLinkStatus[message.linkStatus] : message.linkStatus;
|
|
317977
|
+
if (message.initiator != null && message.hasOwnProperty("initiator"))
|
|
317978
|
+
object.initiator = options.enums === String ? $root.DependentLinkInitiator[message.initiator] === undefined ? message.initiator : $root.DependentLinkInitiator[message.initiator] : message.initiator;
|
|
317979
|
+
if (message.matchMethod != null && message.hasOwnProperty("matchMethod"))
|
|
317980
|
+
object.matchMethod = options.enums === String ? $root.DependentLinkMatchMethod[message.matchMethod] === undefined ? message.matchMethod : $root.DependentLinkMatchMethod[message.matchMethod] : message.matchMethod;
|
|
317981
|
+
if (message.primaryHsUserId != null && message.hasOwnProperty("primaryHsUserId"))
|
|
317982
|
+
object.primaryHsUserId = message.primaryHsUserId;
|
|
317983
|
+
if (message.primaryEligibilityRecordUuid != null && message.hasOwnProperty("primaryEligibilityRecordUuid"))
|
|
317984
|
+
object.primaryEligibilityRecordUuid = message.primaryEligibilityRecordUuid;
|
|
317985
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
317986
|
+
object.orgId = message.orgId;
|
|
317987
|
+
if (message.rootOrgId != null && message.hasOwnProperty("rootOrgId"))
|
|
317988
|
+
object.rootOrgId = message.rootOrgId;
|
|
317989
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
317990
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
317991
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
317992
|
+
else if (typeof message.timestamp === "number")
|
|
317993
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
317994
|
+
else
|
|
317995
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
317996
|
+
return object;
|
|
317997
|
+
};
|
|
317998
|
+
|
|
317999
|
+
/**
|
|
318000
|
+
* Converts this UngatedDependentStatusChanged to JSON.
|
|
318001
|
+
* @function toJSON
|
|
318002
|
+
* @memberof UngatedDependentStatusChanged
|
|
318003
|
+
* @instance
|
|
318004
|
+
* @returns {Object.<string,*>} JSON object
|
|
318005
|
+
*/
|
|
318006
|
+
UngatedDependentStatusChanged.prototype.toJSON = function toJSON() {
|
|
318007
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
318008
|
+
};
|
|
318009
|
+
|
|
318010
|
+
/**
|
|
318011
|
+
* Gets the type url for UngatedDependentStatusChanged
|
|
318012
|
+
* @function getTypeUrl
|
|
318013
|
+
* @memberof UngatedDependentStatusChanged
|
|
318014
|
+
* @static
|
|
318015
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
318016
|
+
* @returns {string} The type url
|
|
318017
|
+
*/
|
|
318018
|
+
UngatedDependentStatusChanged.getTypeUrl = function getTypeUrl(prefix) {
|
|
318019
|
+
if (prefix === undefined)
|
|
318020
|
+
prefix = "type.googleapis.com";
|
|
318021
|
+
return prefix + "/UngatedDependentStatusChanged";
|
|
318022
|
+
};
|
|
318023
|
+
|
|
318024
|
+
return UngatedDependentStatusChanged;
|
|
318025
|
+
})();
|
|
318026
|
+
|
|
316751
318027
|
$root.UserDoubleOptInEmailRequested = (function() {
|
|
316752
318028
|
|
|
316753
318029
|
/**
|