@headspace/protos-events 1.805.0 → 1.807.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 +915 -1
- package/lib/index.js +2575 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -69649,6 +69649,8 @@ $root.coaching = (function() {
|
|
|
69649
69649
|
case 0:
|
|
69650
69650
|
case 1:
|
|
69651
69651
|
case 2:
|
|
69652
|
+
case 3:
|
|
69653
|
+
case 4:
|
|
69652
69654
|
break;
|
|
69653
69655
|
}
|
|
69654
69656
|
return null;
|
|
@@ -69779,6 +69781,14 @@ $root.coaching = (function() {
|
|
|
69779
69781
|
case 2:
|
|
69780
69782
|
message.type = 2;
|
|
69781
69783
|
break;
|
|
69784
|
+
case "COACHING_AVAILABILITY_TYPE_ITMS":
|
|
69785
|
+
case 3:
|
|
69786
|
+
message.type = 3;
|
|
69787
|
+
break;
|
|
69788
|
+
case "COACHING_AVAILABILITY_TYPE_UNAVAILABLE":
|
|
69789
|
+
case 4:
|
|
69790
|
+
message.type = 4;
|
|
69791
|
+
break;
|
|
69782
69792
|
}
|
|
69783
69793
|
return message;
|
|
69784
69794
|
};
|
|
@@ -69926,12 +69936,16 @@ $root.coaching = (function() {
|
|
|
69926
69936
|
* @property {number} COACHING_AVAILABILITY_TYPE_UNKNOWN=0 COACHING_AVAILABILITY_TYPE_UNKNOWN value
|
|
69927
69937
|
* @property {number} COACHING_AVAILABILITY_TYPE_CHAT=1 COACHING_AVAILABILITY_TYPE_CHAT value
|
|
69928
69938
|
* @property {number} COACHING_AVAILABILITY_TYPE_VIDEO=2 COACHING_AVAILABILITY_TYPE_VIDEO value
|
|
69939
|
+
* @property {number} COACHING_AVAILABILITY_TYPE_ITMS=3 COACHING_AVAILABILITY_TYPE_ITMS value
|
|
69940
|
+
* @property {number} COACHING_AVAILABILITY_TYPE_UNAVAILABLE=4 COACHING_AVAILABILITY_TYPE_UNAVAILABLE value
|
|
69929
69941
|
*/
|
|
69930
69942
|
coaching.CoachingAvailabilityType = (function() {
|
|
69931
69943
|
var valuesById = {}, values = Object.create(valuesById);
|
|
69932
69944
|
values[valuesById[0] = "COACHING_AVAILABILITY_TYPE_UNKNOWN"] = 0;
|
|
69933
69945
|
values[valuesById[1] = "COACHING_AVAILABILITY_TYPE_CHAT"] = 1;
|
|
69934
69946
|
values[valuesById[2] = "COACHING_AVAILABILITY_TYPE_VIDEO"] = 2;
|
|
69947
|
+
values[valuesById[3] = "COACHING_AVAILABILITY_TYPE_ITMS"] = 3;
|
|
69948
|
+
values[valuesById[4] = "COACHING_AVAILABILITY_TYPE_UNAVAILABLE"] = 4;
|
|
69935
69949
|
return values;
|
|
69936
69950
|
})();
|
|
69937
69951
|
|
|
@@ -204527,6 +204541,2567 @@ $root.ClinicalIntakeCompleted = (function() {
|
|
|
204527
204541
|
return ClinicalIntakeCompleted;
|
|
204528
204542
|
})();
|
|
204529
204543
|
|
|
204544
|
+
/**
|
|
204545
|
+
* CmsAccessSubmissionType enum.
|
|
204546
|
+
* @name CmsAccessSubmissionType
|
|
204547
|
+
* @enum {number}
|
|
204548
|
+
* @property {number} CMS_ACCESS_SUBMISSION_TYPE_UNKNOWN=0 CMS_ACCESS_SUBMISSION_TYPE_UNKNOWN value
|
|
204549
|
+
* @property {number} CMS_ACCESS_SUBMISSION_TYPE_ELIGIBILITY=1 CMS_ACCESS_SUBMISSION_TYPE_ELIGIBILITY value
|
|
204550
|
+
* @property {number} CMS_ACCESS_SUBMISSION_TYPE_ALIGNMENT=2 CMS_ACCESS_SUBMISSION_TYPE_ALIGNMENT value
|
|
204551
|
+
* @property {number} CMS_ACCESS_SUBMISSION_TYPE_UNALIGNMENT=3 CMS_ACCESS_SUBMISSION_TYPE_UNALIGNMENT value
|
|
204552
|
+
*/
|
|
204553
|
+
$root.CmsAccessSubmissionType = (function() {
|
|
204554
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
204555
|
+
values[valuesById[0] = "CMS_ACCESS_SUBMISSION_TYPE_UNKNOWN"] = 0;
|
|
204556
|
+
values[valuesById[1] = "CMS_ACCESS_SUBMISSION_TYPE_ELIGIBILITY"] = 1;
|
|
204557
|
+
values[valuesById[2] = "CMS_ACCESS_SUBMISSION_TYPE_ALIGNMENT"] = 2;
|
|
204558
|
+
values[valuesById[3] = "CMS_ACCESS_SUBMISSION_TYPE_UNALIGNMENT"] = 3;
|
|
204559
|
+
return values;
|
|
204560
|
+
})();
|
|
204561
|
+
|
|
204562
|
+
/**
|
|
204563
|
+
* CmsAccessEligibilityResult enum.
|
|
204564
|
+
* @name CmsAccessEligibilityResult
|
|
204565
|
+
* @enum {number}
|
|
204566
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_UNKNOWN=0 CMS_ACCESS_ELIGIBILITY_RESULT_UNKNOWN value
|
|
204567
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE=1 CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE value
|
|
204568
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_PENDING_DIAGNOSIS=2 CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_PENDING_DIAGNOSIS value
|
|
204569
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_SWITCH_PARTICIPANTS=3 CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_SWITCH_PARTICIPANTS value
|
|
204570
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_NOT_MEDICARE=4 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_NOT_MEDICARE value
|
|
204571
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_SERVICES=5 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_SERVICES value
|
|
204572
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_DIAGNOSES=6 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_DIAGNOSES value
|
|
204573
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP=7 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP value
|
|
204574
|
+
* @property {number} CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED=8 CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED value
|
|
204575
|
+
*/
|
|
204576
|
+
$root.CmsAccessEligibilityResult = (function() {
|
|
204577
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
204578
|
+
values[valuesById[0] = "CMS_ACCESS_ELIGIBILITY_RESULT_UNKNOWN"] = 0;
|
|
204579
|
+
values[valuesById[1] = "CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE"] = 1;
|
|
204580
|
+
values[valuesById[2] = "CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_PENDING_DIAGNOSIS"] = 2;
|
|
204581
|
+
values[valuesById[3] = "CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_SWITCH_PARTICIPANTS"] = 3;
|
|
204582
|
+
values[valuesById[4] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_NOT_MEDICARE"] = 4;
|
|
204583
|
+
values[valuesById[5] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_SERVICES"] = 5;
|
|
204584
|
+
values[valuesById[6] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_DIAGNOSES"] = 6;
|
|
204585
|
+
values[valuesById[7] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP"] = 7;
|
|
204586
|
+
values[valuesById[8] = "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED"] = 8;
|
|
204587
|
+
return values;
|
|
204588
|
+
})();
|
|
204589
|
+
|
|
204590
|
+
/**
|
|
204591
|
+
* CmsAccessAlignmentResult enum.
|
|
204592
|
+
* @name CmsAccessAlignmentResult
|
|
204593
|
+
* @enum {number}
|
|
204594
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_UNKNOWN=0 CMS_ACCESS_ALIGNMENT_RESULT_UNKNOWN value
|
|
204595
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED=1 CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED value
|
|
204596
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED_SWITCH_APPROVED=2 CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED_SWITCH_APPROVED value
|
|
204597
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CONTROL_GROUP=3 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CONTROL_GROUP value
|
|
204598
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_ALREADY_ALIGNED=4 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_ALREADY_ALIGNED value
|
|
204599
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NOT_MEDICARE=5 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NOT_MEDICARE value
|
|
204600
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES=6 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES value
|
|
204601
|
+
* @property {number} CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES=7 CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES value
|
|
204602
|
+
*/
|
|
204603
|
+
$root.CmsAccessAlignmentResult = (function() {
|
|
204604
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
204605
|
+
values[valuesById[0] = "CMS_ACCESS_ALIGNMENT_RESULT_UNKNOWN"] = 0;
|
|
204606
|
+
values[valuesById[1] = "CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED"] = 1;
|
|
204607
|
+
values[valuesById[2] = "CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED_SWITCH_APPROVED"] = 2;
|
|
204608
|
+
values[valuesById[3] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CONTROL_GROUP"] = 3;
|
|
204609
|
+
values[valuesById[4] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_ALREADY_ALIGNED"] = 4;
|
|
204610
|
+
values[valuesById[5] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NOT_MEDICARE"] = 5;
|
|
204611
|
+
values[valuesById[6] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES"] = 6;
|
|
204612
|
+
values[valuesById[7] = "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES"] = 7;
|
|
204613
|
+
return values;
|
|
204614
|
+
})();
|
|
204615
|
+
|
|
204616
|
+
/**
|
|
204617
|
+
* CmsAccessUnalignmentResult enum.
|
|
204618
|
+
* @name CmsAccessUnalignmentResult
|
|
204619
|
+
* @enum {number}
|
|
204620
|
+
* @property {number} CMS_ACCESS_UNALIGNMENT_RESULT_UNKNOWN=0 CMS_ACCESS_UNALIGNMENT_RESULT_UNKNOWN value
|
|
204621
|
+
* @property {number} CMS_ACCESS_UNALIGNMENT_RESULT_UNALIGNED=1 CMS_ACCESS_UNALIGNMENT_RESULT_UNALIGNED value
|
|
204622
|
+
* @property {number} CMS_ACCESS_UNALIGNMENT_RESULT_PENDING=2 CMS_ACCESS_UNALIGNMENT_RESULT_PENDING value
|
|
204623
|
+
* @property {number} CMS_ACCESS_UNALIGNMENT_RESULT_NOT_ALIGNED=3 CMS_ACCESS_UNALIGNMENT_RESULT_NOT_ALIGNED value
|
|
204624
|
+
* @property {number} CMS_ACCESS_UNALIGNMENT_RESULT_LOCK_IN=4 CMS_ACCESS_UNALIGNMENT_RESULT_LOCK_IN value
|
|
204625
|
+
*/
|
|
204626
|
+
$root.CmsAccessUnalignmentResult = (function() {
|
|
204627
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
204628
|
+
values[valuesById[0] = "CMS_ACCESS_UNALIGNMENT_RESULT_UNKNOWN"] = 0;
|
|
204629
|
+
values[valuesById[1] = "CMS_ACCESS_UNALIGNMENT_RESULT_UNALIGNED"] = 1;
|
|
204630
|
+
values[valuesById[2] = "CMS_ACCESS_UNALIGNMENT_RESULT_PENDING"] = 2;
|
|
204631
|
+
values[valuesById[3] = "CMS_ACCESS_UNALIGNMENT_RESULT_NOT_ALIGNED"] = 3;
|
|
204632
|
+
values[valuesById[4] = "CMS_ACCESS_UNALIGNMENT_RESULT_LOCK_IN"] = 4;
|
|
204633
|
+
return values;
|
|
204634
|
+
})();
|
|
204635
|
+
|
|
204636
|
+
/**
|
|
204637
|
+
* CmsAccessFailureReason enum.
|
|
204638
|
+
* @name CmsAccessFailureReason
|
|
204639
|
+
* @enum {number}
|
|
204640
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_UNKNOWN=0 CMS_ACCESS_FAILURE_REASON_UNKNOWN value
|
|
204641
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_SUBMIT_ERROR=1 CMS_ACCESS_FAILURE_REASON_SUBMIT_ERROR value
|
|
204642
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_POLL_TIMEOUT=2 CMS_ACCESS_FAILURE_REASON_POLL_TIMEOUT value
|
|
204643
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_POLL_ERROR=3 CMS_ACCESS_FAILURE_REASON_POLL_ERROR value
|
|
204644
|
+
* @property {number} CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE=4 CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE value
|
|
204645
|
+
*/
|
|
204646
|
+
$root.CmsAccessFailureReason = (function() {
|
|
204647
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
204648
|
+
values[valuesById[0] = "CMS_ACCESS_FAILURE_REASON_UNKNOWN"] = 0;
|
|
204649
|
+
values[valuesById[1] = "CMS_ACCESS_FAILURE_REASON_SUBMIT_ERROR"] = 1;
|
|
204650
|
+
values[valuesById[2] = "CMS_ACCESS_FAILURE_REASON_POLL_TIMEOUT"] = 2;
|
|
204651
|
+
values[valuesById[3] = "CMS_ACCESS_FAILURE_REASON_POLL_ERROR"] = 3;
|
|
204652
|
+
values[valuesById[4] = "CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE"] = 4;
|
|
204653
|
+
return values;
|
|
204654
|
+
})();
|
|
204655
|
+
|
|
204656
|
+
/**
|
|
204657
|
+
* CmsAccessDisenrollmentReason enum.
|
|
204658
|
+
* @name CmsAccessDisenrollmentReason
|
|
204659
|
+
* @enum {number}
|
|
204660
|
+
* @property {number} CMS_ACCESS_DISENROLLMENT_REASON_UNKNOWN=0 CMS_ACCESS_DISENROLLMENT_REASON_UNKNOWN value
|
|
204661
|
+
* @property {number} CMS_ACCESS_DISENROLLMENT_REASON_GEOGRAPHIC_RELOCATED=1 CMS_ACCESS_DISENROLLMENT_REASON_GEOGRAPHIC_RELOCATED value
|
|
204662
|
+
* @property {number} CMS_ACCESS_DISENROLLMENT_REASON_LOSS_OF_CONTACT=2 CMS_ACCESS_DISENROLLMENT_REASON_LOSS_OF_CONTACT value
|
|
204663
|
+
* @property {number} CMS_ACCESS_DISENROLLMENT_REASON_NO_LONGER_CLINICALLY_ELIGIBLE=3 CMS_ACCESS_DISENROLLMENT_REASON_NO_LONGER_CLINICALLY_ELIGIBLE value
|
|
204664
|
+
* @property {number} CMS_ACCESS_DISENROLLMENT_REASON_PATIENT_INITIATED=4 CMS_ACCESS_DISENROLLMENT_REASON_PATIENT_INITIATED value
|
|
204665
|
+
* @property {number} CMS_ACCESS_DISENROLLMENT_REASON_CMS_INITIATED=5 CMS_ACCESS_DISENROLLMENT_REASON_CMS_INITIATED value
|
|
204666
|
+
*/
|
|
204667
|
+
$root.CmsAccessDisenrollmentReason = (function() {
|
|
204668
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
204669
|
+
values[valuesById[0] = "CMS_ACCESS_DISENROLLMENT_REASON_UNKNOWN"] = 0;
|
|
204670
|
+
values[valuesById[1] = "CMS_ACCESS_DISENROLLMENT_REASON_GEOGRAPHIC_RELOCATED"] = 1;
|
|
204671
|
+
values[valuesById[2] = "CMS_ACCESS_DISENROLLMENT_REASON_LOSS_OF_CONTACT"] = 2;
|
|
204672
|
+
values[valuesById[3] = "CMS_ACCESS_DISENROLLMENT_REASON_NO_LONGER_CLINICALLY_ELIGIBLE"] = 3;
|
|
204673
|
+
values[valuesById[4] = "CMS_ACCESS_DISENROLLMENT_REASON_PATIENT_INITIATED"] = 4;
|
|
204674
|
+
values[valuesById[5] = "CMS_ACCESS_DISENROLLMENT_REASON_CMS_INITIATED"] = 5;
|
|
204675
|
+
return values;
|
|
204676
|
+
})();
|
|
204677
|
+
|
|
204678
|
+
$root.CmsAccessEligibilityDetermined = (function() {
|
|
204679
|
+
|
|
204680
|
+
/**
|
|
204681
|
+
* Properties of a CmsAccessEligibilityDetermined.
|
|
204682
|
+
* @typedef {Object} CmsAccessEligibilityDetermined.$Properties
|
|
204683
|
+
* @property {number|Long|null} [timestamp] CmsAccessEligibilityDetermined timestamp
|
|
204684
|
+
* @property {string|null} [hsUserId] CmsAccessEligibilityDetermined hsUserId
|
|
204685
|
+
* @property {string|null} [trackingId] CmsAccessEligibilityDetermined trackingId
|
|
204686
|
+
* @property {CmsAccessEligibilityResult|null} [result] CmsAccessEligibilityDetermined result
|
|
204687
|
+
* @property {string|null} [cmsSubmissionId] CmsAccessEligibilityDetermined cmsSubmissionId
|
|
204688
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
204689
|
+
*/
|
|
204690
|
+
|
|
204691
|
+
/**
|
|
204692
|
+
* Properties of a CmsAccessEligibilityDetermined.
|
|
204693
|
+
* @name ICmsAccessEligibilityDetermined
|
|
204694
|
+
* @interface ICmsAccessEligibilityDetermined
|
|
204695
|
+
* @augments CmsAccessEligibilityDetermined.$Properties
|
|
204696
|
+
* @deprecated Use CmsAccessEligibilityDetermined.$Properties instead.
|
|
204697
|
+
*/
|
|
204698
|
+
|
|
204699
|
+
/**
|
|
204700
|
+
* Shape of a CmsAccessEligibilityDetermined.
|
|
204701
|
+
* @typedef {CmsAccessEligibilityDetermined.$Properties} CmsAccessEligibilityDetermined.$Shape
|
|
204702
|
+
*/
|
|
204703
|
+
|
|
204704
|
+
/**
|
|
204705
|
+
* Constructs a new CmsAccessEligibilityDetermined.
|
|
204706
|
+
* @name CmsAccessEligibilityDetermined
|
|
204707
|
+
* @classdesc Published when a CMS ACCESS eligibility check completes successfully.
|
|
204708
|
+
* Contains the eligibility determination result from CMS.
|
|
204709
|
+
* Fired by: hs-cms-access-service
|
|
204710
|
+
* Responsible team: Health Plans
|
|
204711
|
+
* @constructor
|
|
204712
|
+
* @param {CmsAccessEligibilityDetermined.$Properties=} [properties] Properties to set
|
|
204713
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
204714
|
+
*/
|
|
204715
|
+
function CmsAccessEligibilityDetermined(properties) {
|
|
204716
|
+
if (properties)
|
|
204717
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
204718
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
204719
|
+
this[keys[i]] = properties[keys[i]];
|
|
204720
|
+
}
|
|
204721
|
+
|
|
204722
|
+
/**
|
|
204723
|
+
* CmsAccessEligibilityDetermined timestamp.
|
|
204724
|
+
* @member {number|Long} timestamp
|
|
204725
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204726
|
+
* @instance
|
|
204727
|
+
*/
|
|
204728
|
+
CmsAccessEligibilityDetermined.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
204729
|
+
|
|
204730
|
+
/**
|
|
204731
|
+
* CmsAccessEligibilityDetermined hsUserId.
|
|
204732
|
+
* @member {string} hsUserId
|
|
204733
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204734
|
+
* @instance
|
|
204735
|
+
*/
|
|
204736
|
+
CmsAccessEligibilityDetermined.prototype.hsUserId = "";
|
|
204737
|
+
|
|
204738
|
+
/**
|
|
204739
|
+
* CmsAccessEligibilityDetermined trackingId.
|
|
204740
|
+
* @member {string} trackingId
|
|
204741
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204742
|
+
* @instance
|
|
204743
|
+
*/
|
|
204744
|
+
CmsAccessEligibilityDetermined.prototype.trackingId = "";
|
|
204745
|
+
|
|
204746
|
+
/**
|
|
204747
|
+
* CmsAccessEligibilityDetermined result.
|
|
204748
|
+
* @member {CmsAccessEligibilityResult} result
|
|
204749
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204750
|
+
* @instance
|
|
204751
|
+
*/
|
|
204752
|
+
CmsAccessEligibilityDetermined.prototype.result = 0;
|
|
204753
|
+
|
|
204754
|
+
/**
|
|
204755
|
+
* CmsAccessEligibilityDetermined cmsSubmissionId.
|
|
204756
|
+
* @member {string} cmsSubmissionId
|
|
204757
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204758
|
+
* @instance
|
|
204759
|
+
*/
|
|
204760
|
+
CmsAccessEligibilityDetermined.prototype.cmsSubmissionId = "";
|
|
204761
|
+
|
|
204762
|
+
/**
|
|
204763
|
+
* Creates a new CmsAccessEligibilityDetermined instance using the specified properties.
|
|
204764
|
+
* @function create
|
|
204765
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204766
|
+
* @static
|
|
204767
|
+
* @param {CmsAccessEligibilityDetermined.$Properties=} [properties] Properties to set
|
|
204768
|
+
* @returns {CmsAccessEligibilityDetermined} CmsAccessEligibilityDetermined instance
|
|
204769
|
+
* @type {{
|
|
204770
|
+
* (properties: CmsAccessEligibilityDetermined.$Shape): CmsAccessEligibilityDetermined & CmsAccessEligibilityDetermined.$Shape;
|
|
204771
|
+
* (properties?: CmsAccessEligibilityDetermined.$Properties): CmsAccessEligibilityDetermined;
|
|
204772
|
+
* }}
|
|
204773
|
+
*/
|
|
204774
|
+
CmsAccessEligibilityDetermined.create = function create(properties) {
|
|
204775
|
+
return new CmsAccessEligibilityDetermined(properties);
|
|
204776
|
+
};
|
|
204777
|
+
|
|
204778
|
+
/**
|
|
204779
|
+
* Encodes the specified CmsAccessEligibilityDetermined message. Does not implicitly {@link CmsAccessEligibilityDetermined.verify|verify} messages.
|
|
204780
|
+
* @function encode
|
|
204781
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204782
|
+
* @static
|
|
204783
|
+
* @param {CmsAccessEligibilityDetermined.$Properties} message CmsAccessEligibilityDetermined message or plain object to encode
|
|
204784
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
204785
|
+
* @returns {$protobuf.Writer} Writer
|
|
204786
|
+
*/
|
|
204787
|
+
CmsAccessEligibilityDetermined.encode = function encode(message, writer) {
|
|
204788
|
+
if (!writer)
|
|
204789
|
+
writer = $Writer.create();
|
|
204790
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
204791
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
204792
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
204793
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
204794
|
+
if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
|
|
204795
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
|
|
204796
|
+
if (message.result != null && Object.hasOwnProperty.call(message, "result"))
|
|
204797
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.result);
|
|
204798
|
+
if (message.cmsSubmissionId != null && Object.hasOwnProperty.call(message, "cmsSubmissionId"))
|
|
204799
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.cmsSubmissionId);
|
|
204800
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
204801
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
204802
|
+
writer.raw(message.$unknowns[i]);
|
|
204803
|
+
return writer;
|
|
204804
|
+
};
|
|
204805
|
+
|
|
204806
|
+
/**
|
|
204807
|
+
* Encodes the specified CmsAccessEligibilityDetermined message, length delimited. Does not implicitly {@link CmsAccessEligibilityDetermined.verify|verify} messages.
|
|
204808
|
+
* @function encodeDelimited
|
|
204809
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204810
|
+
* @static
|
|
204811
|
+
* @param {CmsAccessEligibilityDetermined.$Properties} message CmsAccessEligibilityDetermined message or plain object to encode
|
|
204812
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
204813
|
+
* @returns {$protobuf.Writer} Writer
|
|
204814
|
+
*/
|
|
204815
|
+
CmsAccessEligibilityDetermined.encodeDelimited = function encodeDelimited(message, writer) {
|
|
204816
|
+
return this.encode(message, writer).ldelim();
|
|
204817
|
+
};
|
|
204818
|
+
|
|
204819
|
+
/**
|
|
204820
|
+
* Decodes a CmsAccessEligibilityDetermined message from the specified reader or buffer.
|
|
204821
|
+
* @function decode
|
|
204822
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204823
|
+
* @static
|
|
204824
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
204825
|
+
* @param {number} [length] Message length if known beforehand
|
|
204826
|
+
* @returns {CmsAccessEligibilityDetermined & CmsAccessEligibilityDetermined.$Shape} CmsAccessEligibilityDetermined
|
|
204827
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
204828
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
204829
|
+
*/
|
|
204830
|
+
CmsAccessEligibilityDetermined.decode = function decode(reader, length, _end, _depth, _target) {
|
|
204831
|
+
if (!(reader instanceof $Reader))
|
|
204832
|
+
reader = $Reader.create(reader);
|
|
204833
|
+
if (_depth === undefined)
|
|
204834
|
+
_depth = 0;
|
|
204835
|
+
if (_depth > $Reader.recursionLimit)
|
|
204836
|
+
throw Error("max depth exceeded");
|
|
204837
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessEligibilityDetermined(), value;
|
|
204838
|
+
while (reader.pos < end) {
|
|
204839
|
+
var start = reader.pos;
|
|
204840
|
+
var tag = reader.tag();
|
|
204841
|
+
if (tag === _end) {
|
|
204842
|
+
_end = undefined;
|
|
204843
|
+
break;
|
|
204844
|
+
}
|
|
204845
|
+
var wireType = tag & 7;
|
|
204846
|
+
switch (tag >>>= 3) {
|
|
204847
|
+
case 1: {
|
|
204848
|
+
if (wireType !== 0)
|
|
204849
|
+
break;
|
|
204850
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
204851
|
+
message.timestamp = value;
|
|
204852
|
+
else
|
|
204853
|
+
delete message.timestamp;
|
|
204854
|
+
continue;
|
|
204855
|
+
}
|
|
204856
|
+
case 2: {
|
|
204857
|
+
if (wireType !== 2)
|
|
204858
|
+
break;
|
|
204859
|
+
if ((value = reader.string()).length)
|
|
204860
|
+
message.hsUserId = value;
|
|
204861
|
+
else
|
|
204862
|
+
delete message.hsUserId;
|
|
204863
|
+
continue;
|
|
204864
|
+
}
|
|
204865
|
+
case 3: {
|
|
204866
|
+
if (wireType !== 2)
|
|
204867
|
+
break;
|
|
204868
|
+
if ((value = reader.string()).length)
|
|
204869
|
+
message.trackingId = value;
|
|
204870
|
+
else
|
|
204871
|
+
delete message.trackingId;
|
|
204872
|
+
continue;
|
|
204873
|
+
}
|
|
204874
|
+
case 4: {
|
|
204875
|
+
if (wireType !== 0)
|
|
204876
|
+
break;
|
|
204877
|
+
if (value = reader.int32())
|
|
204878
|
+
message.result = value;
|
|
204879
|
+
else
|
|
204880
|
+
delete message.result;
|
|
204881
|
+
continue;
|
|
204882
|
+
}
|
|
204883
|
+
case 5: {
|
|
204884
|
+
if (wireType !== 2)
|
|
204885
|
+
break;
|
|
204886
|
+
if ((value = reader.string()).length)
|
|
204887
|
+
message.cmsSubmissionId = value;
|
|
204888
|
+
else
|
|
204889
|
+
delete message.cmsSubmissionId;
|
|
204890
|
+
continue;
|
|
204891
|
+
}
|
|
204892
|
+
}
|
|
204893
|
+
reader.skipType(wireType, _depth, tag);
|
|
204894
|
+
$util.makeProp(message, "$unknowns", false);
|
|
204895
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
204896
|
+
}
|
|
204897
|
+
if (_end !== undefined)
|
|
204898
|
+
throw Error("missing end group");
|
|
204899
|
+
return message;
|
|
204900
|
+
};
|
|
204901
|
+
|
|
204902
|
+
/**
|
|
204903
|
+
* Decodes a CmsAccessEligibilityDetermined message from the specified reader or buffer, length delimited.
|
|
204904
|
+
* @function decodeDelimited
|
|
204905
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204906
|
+
* @static
|
|
204907
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
204908
|
+
* @returns {CmsAccessEligibilityDetermined & CmsAccessEligibilityDetermined.$Shape} CmsAccessEligibilityDetermined
|
|
204909
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
204910
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
204911
|
+
*/
|
|
204912
|
+
CmsAccessEligibilityDetermined.decodeDelimited = function decodeDelimited(reader) {
|
|
204913
|
+
if (!(reader instanceof $Reader))
|
|
204914
|
+
reader = new $Reader(reader);
|
|
204915
|
+
return this.decode(reader, reader.uint32());
|
|
204916
|
+
};
|
|
204917
|
+
|
|
204918
|
+
/**
|
|
204919
|
+
* Verifies a CmsAccessEligibilityDetermined message.
|
|
204920
|
+
* @function verify
|
|
204921
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204922
|
+
* @static
|
|
204923
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
204924
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
204925
|
+
*/
|
|
204926
|
+
CmsAccessEligibilityDetermined.verify = function verify(message, _depth) {
|
|
204927
|
+
if (typeof message !== "object" || message === null)
|
|
204928
|
+
return "object expected";
|
|
204929
|
+
if (_depth === undefined)
|
|
204930
|
+
_depth = 0;
|
|
204931
|
+
if (_depth > $util.recursionLimit)
|
|
204932
|
+
return "max depth exceeded";
|
|
204933
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
204934
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
204935
|
+
return "timestamp: integer|Long expected";
|
|
204936
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
204937
|
+
if (!$util.isString(message.hsUserId))
|
|
204938
|
+
return "hsUserId: string expected";
|
|
204939
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
204940
|
+
if (!$util.isString(message.trackingId))
|
|
204941
|
+
return "trackingId: string expected";
|
|
204942
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
204943
|
+
switch (message.result) {
|
|
204944
|
+
default:
|
|
204945
|
+
return "result: enum value expected";
|
|
204946
|
+
case 0:
|
|
204947
|
+
case 1:
|
|
204948
|
+
case 2:
|
|
204949
|
+
case 3:
|
|
204950
|
+
case 4:
|
|
204951
|
+
case 5:
|
|
204952
|
+
case 6:
|
|
204953
|
+
case 7:
|
|
204954
|
+
case 8:
|
|
204955
|
+
break;
|
|
204956
|
+
}
|
|
204957
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
204958
|
+
if (!$util.isString(message.cmsSubmissionId))
|
|
204959
|
+
return "cmsSubmissionId: string expected";
|
|
204960
|
+
return null;
|
|
204961
|
+
};
|
|
204962
|
+
|
|
204963
|
+
/**
|
|
204964
|
+
* Creates a CmsAccessEligibilityDetermined message from a plain object. Also converts values to their respective internal types.
|
|
204965
|
+
* @function fromObject
|
|
204966
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
204967
|
+
* @static
|
|
204968
|
+
* @param {Object.<string,*>} object Plain object
|
|
204969
|
+
* @returns {CmsAccessEligibilityDetermined} CmsAccessEligibilityDetermined
|
|
204970
|
+
*/
|
|
204971
|
+
CmsAccessEligibilityDetermined.fromObject = function fromObject(object, _depth) {
|
|
204972
|
+
if (object instanceof $root.CmsAccessEligibilityDetermined)
|
|
204973
|
+
return object;
|
|
204974
|
+
if (_depth === undefined)
|
|
204975
|
+
_depth = 0;
|
|
204976
|
+
if (_depth > $util.recursionLimit)
|
|
204977
|
+
throw Error("max depth exceeded");
|
|
204978
|
+
var message = new $root.CmsAccessEligibilityDetermined();
|
|
204979
|
+
if (object.timestamp != null)
|
|
204980
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
204981
|
+
if ($util.Long)
|
|
204982
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
204983
|
+
else if (typeof object.timestamp === "string")
|
|
204984
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
204985
|
+
else if (typeof object.timestamp === "number")
|
|
204986
|
+
message.timestamp = object.timestamp;
|
|
204987
|
+
else if (typeof object.timestamp === "object")
|
|
204988
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
204989
|
+
if (object.hsUserId != null)
|
|
204990
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
204991
|
+
message.hsUserId = String(object.hsUserId);
|
|
204992
|
+
if (object.trackingId != null)
|
|
204993
|
+
if (typeof object.trackingId !== "string" || object.trackingId.length)
|
|
204994
|
+
message.trackingId = String(object.trackingId);
|
|
204995
|
+
if (object.result !== 0 && (typeof object.result !== "string" || $root.CmsAccessEligibilityResult[object.result] !== 0))
|
|
204996
|
+
switch (object.result) {
|
|
204997
|
+
default:
|
|
204998
|
+
if (typeof object.result === "number") {
|
|
204999
|
+
message.result = object.result;
|
|
205000
|
+
break;
|
|
205001
|
+
}
|
|
205002
|
+
break;
|
|
205003
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_UNKNOWN":
|
|
205004
|
+
case 0:
|
|
205005
|
+
message.result = 0;
|
|
205006
|
+
break;
|
|
205007
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE":
|
|
205008
|
+
case 1:
|
|
205009
|
+
message.result = 1;
|
|
205010
|
+
break;
|
|
205011
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_PENDING_DIAGNOSIS":
|
|
205012
|
+
case 2:
|
|
205013
|
+
message.result = 2;
|
|
205014
|
+
break;
|
|
205015
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_ELIGIBLE_SWITCH_PARTICIPANTS":
|
|
205016
|
+
case 3:
|
|
205017
|
+
message.result = 3;
|
|
205018
|
+
break;
|
|
205019
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_NOT_MEDICARE":
|
|
205020
|
+
case 4:
|
|
205021
|
+
message.result = 4;
|
|
205022
|
+
break;
|
|
205023
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_SERVICES":
|
|
205024
|
+
case 5:
|
|
205025
|
+
message.result = 5;
|
|
205026
|
+
break;
|
|
205027
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_DIAGNOSES":
|
|
205028
|
+
case 6:
|
|
205029
|
+
message.result = 6;
|
|
205030
|
+
break;
|
|
205031
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_CONTROL_GROUP":
|
|
205032
|
+
case 7:
|
|
205033
|
+
message.result = 7;
|
|
205034
|
+
break;
|
|
205035
|
+
case "CMS_ACCESS_ELIGIBILITY_RESULT_NOT_ELIGIBLE_ALREADY_ALIGNED":
|
|
205036
|
+
case 8:
|
|
205037
|
+
message.result = 8;
|
|
205038
|
+
break;
|
|
205039
|
+
}
|
|
205040
|
+
if (object.cmsSubmissionId != null)
|
|
205041
|
+
if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
|
|
205042
|
+
message.cmsSubmissionId = String(object.cmsSubmissionId);
|
|
205043
|
+
return message;
|
|
205044
|
+
};
|
|
205045
|
+
|
|
205046
|
+
/**
|
|
205047
|
+
* Creates a plain object from a CmsAccessEligibilityDetermined message. Also converts values to other types if specified.
|
|
205048
|
+
* @function toObject
|
|
205049
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
205050
|
+
* @static
|
|
205051
|
+
* @param {CmsAccessEligibilityDetermined} message CmsAccessEligibilityDetermined
|
|
205052
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
205053
|
+
* @returns {Object.<string,*>} Plain object
|
|
205054
|
+
*/
|
|
205055
|
+
CmsAccessEligibilityDetermined.toObject = function toObject(message, options) {
|
|
205056
|
+
if (!options)
|
|
205057
|
+
options = {};
|
|
205058
|
+
var object = {};
|
|
205059
|
+
if (options.defaults) {
|
|
205060
|
+
if ($util.Long) {
|
|
205061
|
+
var long = new $util.Long(0, 0, true);
|
|
205062
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
205063
|
+
} else
|
|
205064
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
205065
|
+
object.hsUserId = "";
|
|
205066
|
+
object.trackingId = "";
|
|
205067
|
+
object.result = options.enums === String ? "CMS_ACCESS_ELIGIBILITY_RESULT_UNKNOWN" : 0;
|
|
205068
|
+
object.cmsSubmissionId = "";
|
|
205069
|
+
}
|
|
205070
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
205071
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
205072
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
205073
|
+
else if (typeof message.timestamp === "number")
|
|
205074
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
205075
|
+
else
|
|
205076
|
+
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;
|
|
205077
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
205078
|
+
object.hsUserId = message.hsUserId;
|
|
205079
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
205080
|
+
object.trackingId = message.trackingId;
|
|
205081
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
205082
|
+
object.result = options.enums === String ? $root.CmsAccessEligibilityResult[message.result] === undefined ? message.result : $root.CmsAccessEligibilityResult[message.result] : message.result;
|
|
205083
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
205084
|
+
object.cmsSubmissionId = message.cmsSubmissionId;
|
|
205085
|
+
return object;
|
|
205086
|
+
};
|
|
205087
|
+
|
|
205088
|
+
/**
|
|
205089
|
+
* Converts this CmsAccessEligibilityDetermined to JSON.
|
|
205090
|
+
* @function toJSON
|
|
205091
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
205092
|
+
* @instance
|
|
205093
|
+
* @returns {Object.<string,*>} JSON object
|
|
205094
|
+
*/
|
|
205095
|
+
CmsAccessEligibilityDetermined.prototype.toJSON = function toJSON() {
|
|
205096
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
205097
|
+
};
|
|
205098
|
+
|
|
205099
|
+
/**
|
|
205100
|
+
* Gets the type url for CmsAccessEligibilityDetermined
|
|
205101
|
+
* @function getTypeUrl
|
|
205102
|
+
* @memberof CmsAccessEligibilityDetermined
|
|
205103
|
+
* @static
|
|
205104
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
205105
|
+
* @returns {string} The type url
|
|
205106
|
+
*/
|
|
205107
|
+
CmsAccessEligibilityDetermined.getTypeUrl = function getTypeUrl(prefix) {
|
|
205108
|
+
if (prefix === undefined)
|
|
205109
|
+
prefix = "type.googleapis.com";
|
|
205110
|
+
return prefix + "/CmsAccessEligibilityDetermined";
|
|
205111
|
+
};
|
|
205112
|
+
|
|
205113
|
+
return CmsAccessEligibilityDetermined;
|
|
205114
|
+
})();
|
|
205115
|
+
|
|
205116
|
+
$root.CmsAccessAlignmentCompleted = (function() {
|
|
205117
|
+
|
|
205118
|
+
/**
|
|
205119
|
+
* Properties of a CmsAccessAlignmentCompleted.
|
|
205120
|
+
* @typedef {Object} CmsAccessAlignmentCompleted.$Properties
|
|
205121
|
+
* @property {number|Long|null} [timestamp] CmsAccessAlignmentCompleted timestamp
|
|
205122
|
+
* @property {string|null} [hsUserId] CmsAccessAlignmentCompleted hsUserId
|
|
205123
|
+
* @property {string|null} [trackingId] CmsAccessAlignmentCompleted trackingId
|
|
205124
|
+
* @property {CmsAccessAlignmentResult|null} [result] CmsAccessAlignmentCompleted result
|
|
205125
|
+
* @property {string|null} [cmsSubmissionId] CmsAccessAlignmentCompleted cmsSubmissionId
|
|
205126
|
+
* @property {number|Long|null} [alignedAt] CmsAccessAlignmentCompleted alignedAt
|
|
205127
|
+
* @property {number|Long|null} [carePeriodEndsAt] CmsAccessAlignmentCompleted carePeriodEndsAt
|
|
205128
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
205129
|
+
*/
|
|
205130
|
+
|
|
205131
|
+
/**
|
|
205132
|
+
* Properties of a CmsAccessAlignmentCompleted.
|
|
205133
|
+
* @name ICmsAccessAlignmentCompleted
|
|
205134
|
+
* @interface ICmsAccessAlignmentCompleted
|
|
205135
|
+
* @augments CmsAccessAlignmentCompleted.$Properties
|
|
205136
|
+
* @deprecated Use CmsAccessAlignmentCompleted.$Properties instead.
|
|
205137
|
+
*/
|
|
205138
|
+
|
|
205139
|
+
/**
|
|
205140
|
+
* Shape of a CmsAccessAlignmentCompleted.
|
|
205141
|
+
* @typedef {CmsAccessAlignmentCompleted.$Properties} CmsAccessAlignmentCompleted.$Shape
|
|
205142
|
+
*/
|
|
205143
|
+
|
|
205144
|
+
/**
|
|
205145
|
+
* Constructs a new CmsAccessAlignmentCompleted.
|
|
205146
|
+
* @name CmsAccessAlignmentCompleted
|
|
205147
|
+
* @classdesc Published when a CMS ACCESS patient alignment completes successfully.
|
|
205148
|
+
* This event triggers subscription creation in hs-subscription-service.
|
|
205149
|
+
* Fired by: hs-cms-access-service
|
|
205150
|
+
* Responsible team: Health Plans
|
|
205151
|
+
* @constructor
|
|
205152
|
+
* @param {CmsAccessAlignmentCompleted.$Properties=} [properties] Properties to set
|
|
205153
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
205154
|
+
*/
|
|
205155
|
+
function CmsAccessAlignmentCompleted(properties) {
|
|
205156
|
+
if (properties)
|
|
205157
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
205158
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
205159
|
+
this[keys[i]] = properties[keys[i]];
|
|
205160
|
+
}
|
|
205161
|
+
|
|
205162
|
+
/**
|
|
205163
|
+
* CmsAccessAlignmentCompleted timestamp.
|
|
205164
|
+
* @member {number|Long} timestamp
|
|
205165
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205166
|
+
* @instance
|
|
205167
|
+
*/
|
|
205168
|
+
CmsAccessAlignmentCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
205169
|
+
|
|
205170
|
+
/**
|
|
205171
|
+
* CmsAccessAlignmentCompleted hsUserId.
|
|
205172
|
+
* @member {string} hsUserId
|
|
205173
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205174
|
+
* @instance
|
|
205175
|
+
*/
|
|
205176
|
+
CmsAccessAlignmentCompleted.prototype.hsUserId = "";
|
|
205177
|
+
|
|
205178
|
+
/**
|
|
205179
|
+
* CmsAccessAlignmentCompleted trackingId.
|
|
205180
|
+
* @member {string} trackingId
|
|
205181
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205182
|
+
* @instance
|
|
205183
|
+
*/
|
|
205184
|
+
CmsAccessAlignmentCompleted.prototype.trackingId = "";
|
|
205185
|
+
|
|
205186
|
+
/**
|
|
205187
|
+
* CmsAccessAlignmentCompleted result.
|
|
205188
|
+
* @member {CmsAccessAlignmentResult} result
|
|
205189
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205190
|
+
* @instance
|
|
205191
|
+
*/
|
|
205192
|
+
CmsAccessAlignmentCompleted.prototype.result = 0;
|
|
205193
|
+
|
|
205194
|
+
/**
|
|
205195
|
+
* CmsAccessAlignmentCompleted cmsSubmissionId.
|
|
205196
|
+
* @member {string} cmsSubmissionId
|
|
205197
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205198
|
+
* @instance
|
|
205199
|
+
*/
|
|
205200
|
+
CmsAccessAlignmentCompleted.prototype.cmsSubmissionId = "";
|
|
205201
|
+
|
|
205202
|
+
/**
|
|
205203
|
+
* CmsAccessAlignmentCompleted alignedAt.
|
|
205204
|
+
* @member {number|Long} alignedAt
|
|
205205
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205206
|
+
* @instance
|
|
205207
|
+
*/
|
|
205208
|
+
CmsAccessAlignmentCompleted.prototype.alignedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
205209
|
+
|
|
205210
|
+
/**
|
|
205211
|
+
* CmsAccessAlignmentCompleted carePeriodEndsAt.
|
|
205212
|
+
* @member {number|Long} carePeriodEndsAt
|
|
205213
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205214
|
+
* @instance
|
|
205215
|
+
*/
|
|
205216
|
+
CmsAccessAlignmentCompleted.prototype.carePeriodEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
205217
|
+
|
|
205218
|
+
/**
|
|
205219
|
+
* Creates a new CmsAccessAlignmentCompleted instance using the specified properties.
|
|
205220
|
+
* @function create
|
|
205221
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205222
|
+
* @static
|
|
205223
|
+
* @param {CmsAccessAlignmentCompleted.$Properties=} [properties] Properties to set
|
|
205224
|
+
* @returns {CmsAccessAlignmentCompleted} CmsAccessAlignmentCompleted instance
|
|
205225
|
+
* @type {{
|
|
205226
|
+
* (properties: CmsAccessAlignmentCompleted.$Shape): CmsAccessAlignmentCompleted & CmsAccessAlignmentCompleted.$Shape;
|
|
205227
|
+
* (properties?: CmsAccessAlignmentCompleted.$Properties): CmsAccessAlignmentCompleted;
|
|
205228
|
+
* }}
|
|
205229
|
+
*/
|
|
205230
|
+
CmsAccessAlignmentCompleted.create = function create(properties) {
|
|
205231
|
+
return new CmsAccessAlignmentCompleted(properties);
|
|
205232
|
+
};
|
|
205233
|
+
|
|
205234
|
+
/**
|
|
205235
|
+
* Encodes the specified CmsAccessAlignmentCompleted message. Does not implicitly {@link CmsAccessAlignmentCompleted.verify|verify} messages.
|
|
205236
|
+
* @function encode
|
|
205237
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205238
|
+
* @static
|
|
205239
|
+
* @param {CmsAccessAlignmentCompleted.$Properties} message CmsAccessAlignmentCompleted message or plain object to encode
|
|
205240
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
205241
|
+
* @returns {$protobuf.Writer} Writer
|
|
205242
|
+
*/
|
|
205243
|
+
CmsAccessAlignmentCompleted.encode = function encode(message, writer) {
|
|
205244
|
+
if (!writer)
|
|
205245
|
+
writer = $Writer.create();
|
|
205246
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
205247
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
205248
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
205249
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
205250
|
+
if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
|
|
205251
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
|
|
205252
|
+
if (message.result != null && Object.hasOwnProperty.call(message, "result"))
|
|
205253
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.result);
|
|
205254
|
+
if (message.cmsSubmissionId != null && Object.hasOwnProperty.call(message, "cmsSubmissionId"))
|
|
205255
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.cmsSubmissionId);
|
|
205256
|
+
if (message.alignedAt != null && Object.hasOwnProperty.call(message, "alignedAt"))
|
|
205257
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.alignedAt);
|
|
205258
|
+
if (message.carePeriodEndsAt != null && Object.hasOwnProperty.call(message, "carePeriodEndsAt"))
|
|
205259
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.carePeriodEndsAt);
|
|
205260
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
205261
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
205262
|
+
writer.raw(message.$unknowns[i]);
|
|
205263
|
+
return writer;
|
|
205264
|
+
};
|
|
205265
|
+
|
|
205266
|
+
/**
|
|
205267
|
+
* Encodes the specified CmsAccessAlignmentCompleted message, length delimited. Does not implicitly {@link CmsAccessAlignmentCompleted.verify|verify} messages.
|
|
205268
|
+
* @function encodeDelimited
|
|
205269
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205270
|
+
* @static
|
|
205271
|
+
* @param {CmsAccessAlignmentCompleted.$Properties} message CmsAccessAlignmentCompleted message or plain object to encode
|
|
205272
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
205273
|
+
* @returns {$protobuf.Writer} Writer
|
|
205274
|
+
*/
|
|
205275
|
+
CmsAccessAlignmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
205276
|
+
return this.encode(message, writer).ldelim();
|
|
205277
|
+
};
|
|
205278
|
+
|
|
205279
|
+
/**
|
|
205280
|
+
* Decodes a CmsAccessAlignmentCompleted message from the specified reader or buffer.
|
|
205281
|
+
* @function decode
|
|
205282
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205283
|
+
* @static
|
|
205284
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
205285
|
+
* @param {number} [length] Message length if known beforehand
|
|
205286
|
+
* @returns {CmsAccessAlignmentCompleted & CmsAccessAlignmentCompleted.$Shape} CmsAccessAlignmentCompleted
|
|
205287
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
205288
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
205289
|
+
*/
|
|
205290
|
+
CmsAccessAlignmentCompleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
205291
|
+
if (!(reader instanceof $Reader))
|
|
205292
|
+
reader = $Reader.create(reader);
|
|
205293
|
+
if (_depth === undefined)
|
|
205294
|
+
_depth = 0;
|
|
205295
|
+
if (_depth > $Reader.recursionLimit)
|
|
205296
|
+
throw Error("max depth exceeded");
|
|
205297
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessAlignmentCompleted(), value;
|
|
205298
|
+
while (reader.pos < end) {
|
|
205299
|
+
var start = reader.pos;
|
|
205300
|
+
var tag = reader.tag();
|
|
205301
|
+
if (tag === _end) {
|
|
205302
|
+
_end = undefined;
|
|
205303
|
+
break;
|
|
205304
|
+
}
|
|
205305
|
+
var wireType = tag & 7;
|
|
205306
|
+
switch (tag >>>= 3) {
|
|
205307
|
+
case 1: {
|
|
205308
|
+
if (wireType !== 0)
|
|
205309
|
+
break;
|
|
205310
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
205311
|
+
message.timestamp = value;
|
|
205312
|
+
else
|
|
205313
|
+
delete message.timestamp;
|
|
205314
|
+
continue;
|
|
205315
|
+
}
|
|
205316
|
+
case 2: {
|
|
205317
|
+
if (wireType !== 2)
|
|
205318
|
+
break;
|
|
205319
|
+
if ((value = reader.string()).length)
|
|
205320
|
+
message.hsUserId = value;
|
|
205321
|
+
else
|
|
205322
|
+
delete message.hsUserId;
|
|
205323
|
+
continue;
|
|
205324
|
+
}
|
|
205325
|
+
case 3: {
|
|
205326
|
+
if (wireType !== 2)
|
|
205327
|
+
break;
|
|
205328
|
+
if ((value = reader.string()).length)
|
|
205329
|
+
message.trackingId = value;
|
|
205330
|
+
else
|
|
205331
|
+
delete message.trackingId;
|
|
205332
|
+
continue;
|
|
205333
|
+
}
|
|
205334
|
+
case 4: {
|
|
205335
|
+
if (wireType !== 0)
|
|
205336
|
+
break;
|
|
205337
|
+
if (value = reader.int32())
|
|
205338
|
+
message.result = value;
|
|
205339
|
+
else
|
|
205340
|
+
delete message.result;
|
|
205341
|
+
continue;
|
|
205342
|
+
}
|
|
205343
|
+
case 5: {
|
|
205344
|
+
if (wireType !== 2)
|
|
205345
|
+
break;
|
|
205346
|
+
if ((value = reader.string()).length)
|
|
205347
|
+
message.cmsSubmissionId = value;
|
|
205348
|
+
else
|
|
205349
|
+
delete message.cmsSubmissionId;
|
|
205350
|
+
continue;
|
|
205351
|
+
}
|
|
205352
|
+
case 6: {
|
|
205353
|
+
if (wireType !== 0)
|
|
205354
|
+
break;
|
|
205355
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
205356
|
+
message.alignedAt = value;
|
|
205357
|
+
else
|
|
205358
|
+
delete message.alignedAt;
|
|
205359
|
+
continue;
|
|
205360
|
+
}
|
|
205361
|
+
case 7: {
|
|
205362
|
+
if (wireType !== 0)
|
|
205363
|
+
break;
|
|
205364
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
205365
|
+
message.carePeriodEndsAt = value;
|
|
205366
|
+
else
|
|
205367
|
+
delete message.carePeriodEndsAt;
|
|
205368
|
+
continue;
|
|
205369
|
+
}
|
|
205370
|
+
}
|
|
205371
|
+
reader.skipType(wireType, _depth, tag);
|
|
205372
|
+
$util.makeProp(message, "$unknowns", false);
|
|
205373
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
205374
|
+
}
|
|
205375
|
+
if (_end !== undefined)
|
|
205376
|
+
throw Error("missing end group");
|
|
205377
|
+
return message;
|
|
205378
|
+
};
|
|
205379
|
+
|
|
205380
|
+
/**
|
|
205381
|
+
* Decodes a CmsAccessAlignmentCompleted message from the specified reader or buffer, length delimited.
|
|
205382
|
+
* @function decodeDelimited
|
|
205383
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205384
|
+
* @static
|
|
205385
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
205386
|
+
* @returns {CmsAccessAlignmentCompleted & CmsAccessAlignmentCompleted.$Shape} CmsAccessAlignmentCompleted
|
|
205387
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
205388
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
205389
|
+
*/
|
|
205390
|
+
CmsAccessAlignmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
205391
|
+
if (!(reader instanceof $Reader))
|
|
205392
|
+
reader = new $Reader(reader);
|
|
205393
|
+
return this.decode(reader, reader.uint32());
|
|
205394
|
+
};
|
|
205395
|
+
|
|
205396
|
+
/**
|
|
205397
|
+
* Verifies a CmsAccessAlignmentCompleted message.
|
|
205398
|
+
* @function verify
|
|
205399
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205400
|
+
* @static
|
|
205401
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
205402
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
205403
|
+
*/
|
|
205404
|
+
CmsAccessAlignmentCompleted.verify = function verify(message, _depth) {
|
|
205405
|
+
if (typeof message !== "object" || message === null)
|
|
205406
|
+
return "object expected";
|
|
205407
|
+
if (_depth === undefined)
|
|
205408
|
+
_depth = 0;
|
|
205409
|
+
if (_depth > $util.recursionLimit)
|
|
205410
|
+
return "max depth exceeded";
|
|
205411
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
205412
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
205413
|
+
return "timestamp: integer|Long expected";
|
|
205414
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
205415
|
+
if (!$util.isString(message.hsUserId))
|
|
205416
|
+
return "hsUserId: string expected";
|
|
205417
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
205418
|
+
if (!$util.isString(message.trackingId))
|
|
205419
|
+
return "trackingId: string expected";
|
|
205420
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
205421
|
+
switch (message.result) {
|
|
205422
|
+
default:
|
|
205423
|
+
return "result: enum value expected";
|
|
205424
|
+
case 0:
|
|
205425
|
+
case 1:
|
|
205426
|
+
case 2:
|
|
205427
|
+
case 3:
|
|
205428
|
+
case 4:
|
|
205429
|
+
case 5:
|
|
205430
|
+
case 6:
|
|
205431
|
+
case 7:
|
|
205432
|
+
break;
|
|
205433
|
+
}
|
|
205434
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
205435
|
+
if (!$util.isString(message.cmsSubmissionId))
|
|
205436
|
+
return "cmsSubmissionId: string expected";
|
|
205437
|
+
if (message.alignedAt != null && message.hasOwnProperty("alignedAt"))
|
|
205438
|
+
if (!$util.isInteger(message.alignedAt) && !(message.alignedAt && $util.isInteger(message.alignedAt.low) && $util.isInteger(message.alignedAt.high)))
|
|
205439
|
+
return "alignedAt: integer|Long expected";
|
|
205440
|
+
if (message.carePeriodEndsAt != null && message.hasOwnProperty("carePeriodEndsAt"))
|
|
205441
|
+
if (!$util.isInteger(message.carePeriodEndsAt) && !(message.carePeriodEndsAt && $util.isInteger(message.carePeriodEndsAt.low) && $util.isInteger(message.carePeriodEndsAt.high)))
|
|
205442
|
+
return "carePeriodEndsAt: integer|Long expected";
|
|
205443
|
+
return null;
|
|
205444
|
+
};
|
|
205445
|
+
|
|
205446
|
+
/**
|
|
205447
|
+
* Creates a CmsAccessAlignmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
205448
|
+
* @function fromObject
|
|
205449
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205450
|
+
* @static
|
|
205451
|
+
* @param {Object.<string,*>} object Plain object
|
|
205452
|
+
* @returns {CmsAccessAlignmentCompleted} CmsAccessAlignmentCompleted
|
|
205453
|
+
*/
|
|
205454
|
+
CmsAccessAlignmentCompleted.fromObject = function fromObject(object, _depth) {
|
|
205455
|
+
if (object instanceof $root.CmsAccessAlignmentCompleted)
|
|
205456
|
+
return object;
|
|
205457
|
+
if (_depth === undefined)
|
|
205458
|
+
_depth = 0;
|
|
205459
|
+
if (_depth > $util.recursionLimit)
|
|
205460
|
+
throw Error("max depth exceeded");
|
|
205461
|
+
var message = new $root.CmsAccessAlignmentCompleted();
|
|
205462
|
+
if (object.timestamp != null)
|
|
205463
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
205464
|
+
if ($util.Long)
|
|
205465
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
205466
|
+
else if (typeof object.timestamp === "string")
|
|
205467
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
205468
|
+
else if (typeof object.timestamp === "number")
|
|
205469
|
+
message.timestamp = object.timestamp;
|
|
205470
|
+
else if (typeof object.timestamp === "object")
|
|
205471
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
205472
|
+
if (object.hsUserId != null)
|
|
205473
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
205474
|
+
message.hsUserId = String(object.hsUserId);
|
|
205475
|
+
if (object.trackingId != null)
|
|
205476
|
+
if (typeof object.trackingId !== "string" || object.trackingId.length)
|
|
205477
|
+
message.trackingId = String(object.trackingId);
|
|
205478
|
+
if (object.result !== 0 && (typeof object.result !== "string" || $root.CmsAccessAlignmentResult[object.result] !== 0))
|
|
205479
|
+
switch (object.result) {
|
|
205480
|
+
default:
|
|
205481
|
+
if (typeof object.result === "number") {
|
|
205482
|
+
message.result = object.result;
|
|
205483
|
+
break;
|
|
205484
|
+
}
|
|
205485
|
+
break;
|
|
205486
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_UNKNOWN":
|
|
205487
|
+
case 0:
|
|
205488
|
+
message.result = 0;
|
|
205489
|
+
break;
|
|
205490
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED":
|
|
205491
|
+
case 1:
|
|
205492
|
+
message.result = 1;
|
|
205493
|
+
break;
|
|
205494
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_ALIGNED_SWITCH_APPROVED":
|
|
205495
|
+
case 2:
|
|
205496
|
+
message.result = 2;
|
|
205497
|
+
break;
|
|
205498
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_CONTROL_GROUP":
|
|
205499
|
+
case 3:
|
|
205500
|
+
message.result = 3;
|
|
205501
|
+
break;
|
|
205502
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_ALREADY_ALIGNED":
|
|
205503
|
+
case 4:
|
|
205504
|
+
message.result = 4;
|
|
205505
|
+
break;
|
|
205506
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_NOT_MEDICARE":
|
|
205507
|
+
case 5:
|
|
205508
|
+
message.result = 5;
|
|
205509
|
+
break;
|
|
205510
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_SERVICES":
|
|
205511
|
+
case 6:
|
|
205512
|
+
message.result = 6;
|
|
205513
|
+
break;
|
|
205514
|
+
case "CMS_ACCESS_ALIGNMENT_RESULT_NOT_ALIGNED_DIAGNOSES":
|
|
205515
|
+
case 7:
|
|
205516
|
+
message.result = 7;
|
|
205517
|
+
break;
|
|
205518
|
+
}
|
|
205519
|
+
if (object.cmsSubmissionId != null)
|
|
205520
|
+
if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
|
|
205521
|
+
message.cmsSubmissionId = String(object.cmsSubmissionId);
|
|
205522
|
+
if (object.alignedAt != null)
|
|
205523
|
+
if (typeof object.alignedAt === "object" ? object.alignedAt.low || object.alignedAt.high : Number(object.alignedAt) !== 0)
|
|
205524
|
+
if ($util.Long)
|
|
205525
|
+
(message.alignedAt = $util.Long.fromValue(object.alignedAt)).unsigned = true;
|
|
205526
|
+
else if (typeof object.alignedAt === "string")
|
|
205527
|
+
message.alignedAt = parseInt(object.alignedAt, 10);
|
|
205528
|
+
else if (typeof object.alignedAt === "number")
|
|
205529
|
+
message.alignedAt = object.alignedAt;
|
|
205530
|
+
else if (typeof object.alignedAt === "object")
|
|
205531
|
+
message.alignedAt = new $util.LongBits(object.alignedAt.low >>> 0, object.alignedAt.high >>> 0).toNumber(true);
|
|
205532
|
+
if (object.carePeriodEndsAt != null)
|
|
205533
|
+
if (typeof object.carePeriodEndsAt === "object" ? object.carePeriodEndsAt.low || object.carePeriodEndsAt.high : Number(object.carePeriodEndsAt) !== 0)
|
|
205534
|
+
if ($util.Long)
|
|
205535
|
+
(message.carePeriodEndsAt = $util.Long.fromValue(object.carePeriodEndsAt)).unsigned = true;
|
|
205536
|
+
else if (typeof object.carePeriodEndsAt === "string")
|
|
205537
|
+
message.carePeriodEndsAt = parseInt(object.carePeriodEndsAt, 10);
|
|
205538
|
+
else if (typeof object.carePeriodEndsAt === "number")
|
|
205539
|
+
message.carePeriodEndsAt = object.carePeriodEndsAt;
|
|
205540
|
+
else if (typeof object.carePeriodEndsAt === "object")
|
|
205541
|
+
message.carePeriodEndsAt = new $util.LongBits(object.carePeriodEndsAt.low >>> 0, object.carePeriodEndsAt.high >>> 0).toNumber(true);
|
|
205542
|
+
return message;
|
|
205543
|
+
};
|
|
205544
|
+
|
|
205545
|
+
/**
|
|
205546
|
+
* Creates a plain object from a CmsAccessAlignmentCompleted message. Also converts values to other types if specified.
|
|
205547
|
+
* @function toObject
|
|
205548
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205549
|
+
* @static
|
|
205550
|
+
* @param {CmsAccessAlignmentCompleted} message CmsAccessAlignmentCompleted
|
|
205551
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
205552
|
+
* @returns {Object.<string,*>} Plain object
|
|
205553
|
+
*/
|
|
205554
|
+
CmsAccessAlignmentCompleted.toObject = function toObject(message, options) {
|
|
205555
|
+
if (!options)
|
|
205556
|
+
options = {};
|
|
205557
|
+
var object = {};
|
|
205558
|
+
if (options.defaults) {
|
|
205559
|
+
if ($util.Long) {
|
|
205560
|
+
var long = new $util.Long(0, 0, true);
|
|
205561
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
205562
|
+
} else
|
|
205563
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
205564
|
+
object.hsUserId = "";
|
|
205565
|
+
object.trackingId = "";
|
|
205566
|
+
object.result = options.enums === String ? "CMS_ACCESS_ALIGNMENT_RESULT_UNKNOWN" : 0;
|
|
205567
|
+
object.cmsSubmissionId = "";
|
|
205568
|
+
if ($util.Long) {
|
|
205569
|
+
var long = new $util.Long(0, 0, true);
|
|
205570
|
+
object.alignedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
205571
|
+
} else
|
|
205572
|
+
object.alignedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
205573
|
+
if ($util.Long) {
|
|
205574
|
+
var long = new $util.Long(0, 0, true);
|
|
205575
|
+
object.carePeriodEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
205576
|
+
} else
|
|
205577
|
+
object.carePeriodEndsAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
205578
|
+
}
|
|
205579
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
205580
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
205581
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
205582
|
+
else if (typeof message.timestamp === "number")
|
|
205583
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
205584
|
+
else
|
|
205585
|
+
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;
|
|
205586
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
205587
|
+
object.hsUserId = message.hsUserId;
|
|
205588
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
205589
|
+
object.trackingId = message.trackingId;
|
|
205590
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
205591
|
+
object.result = options.enums === String ? $root.CmsAccessAlignmentResult[message.result] === undefined ? message.result : $root.CmsAccessAlignmentResult[message.result] : message.result;
|
|
205592
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
205593
|
+
object.cmsSubmissionId = message.cmsSubmissionId;
|
|
205594
|
+
if (message.alignedAt != null && message.hasOwnProperty("alignedAt"))
|
|
205595
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
205596
|
+
object.alignedAt = typeof message.alignedAt === "number" ? BigInt(message.alignedAt) : $util.Long.fromBits(message.alignedAt.low >>> 0, message.alignedAt.high >>> 0, true).toBigInt();
|
|
205597
|
+
else if (typeof message.alignedAt === "number")
|
|
205598
|
+
object.alignedAt = options.longs === String ? String(message.alignedAt) : message.alignedAt;
|
|
205599
|
+
else
|
|
205600
|
+
object.alignedAt = options.longs === String ? $util.Long.prototype.toString.call(message.alignedAt) : options.longs === Number ? new $util.LongBits(message.alignedAt.low >>> 0, message.alignedAt.high >>> 0).toNumber(true) : message.alignedAt;
|
|
205601
|
+
if (message.carePeriodEndsAt != null && message.hasOwnProperty("carePeriodEndsAt"))
|
|
205602
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
205603
|
+
object.carePeriodEndsAt = typeof message.carePeriodEndsAt === "number" ? BigInt(message.carePeriodEndsAt) : $util.Long.fromBits(message.carePeriodEndsAt.low >>> 0, message.carePeriodEndsAt.high >>> 0, true).toBigInt();
|
|
205604
|
+
else if (typeof message.carePeriodEndsAt === "number")
|
|
205605
|
+
object.carePeriodEndsAt = options.longs === String ? String(message.carePeriodEndsAt) : message.carePeriodEndsAt;
|
|
205606
|
+
else
|
|
205607
|
+
object.carePeriodEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.carePeriodEndsAt) : options.longs === Number ? new $util.LongBits(message.carePeriodEndsAt.low >>> 0, message.carePeriodEndsAt.high >>> 0).toNumber(true) : message.carePeriodEndsAt;
|
|
205608
|
+
return object;
|
|
205609
|
+
};
|
|
205610
|
+
|
|
205611
|
+
/**
|
|
205612
|
+
* Converts this CmsAccessAlignmentCompleted to JSON.
|
|
205613
|
+
* @function toJSON
|
|
205614
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205615
|
+
* @instance
|
|
205616
|
+
* @returns {Object.<string,*>} JSON object
|
|
205617
|
+
*/
|
|
205618
|
+
CmsAccessAlignmentCompleted.prototype.toJSON = function toJSON() {
|
|
205619
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
205620
|
+
};
|
|
205621
|
+
|
|
205622
|
+
/**
|
|
205623
|
+
* Gets the type url for CmsAccessAlignmentCompleted
|
|
205624
|
+
* @function getTypeUrl
|
|
205625
|
+
* @memberof CmsAccessAlignmentCompleted
|
|
205626
|
+
* @static
|
|
205627
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
205628
|
+
* @returns {string} The type url
|
|
205629
|
+
*/
|
|
205630
|
+
CmsAccessAlignmentCompleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
205631
|
+
if (prefix === undefined)
|
|
205632
|
+
prefix = "type.googleapis.com";
|
|
205633
|
+
return prefix + "/CmsAccessAlignmentCompleted";
|
|
205634
|
+
};
|
|
205635
|
+
|
|
205636
|
+
return CmsAccessAlignmentCompleted;
|
|
205637
|
+
})();
|
|
205638
|
+
|
|
205639
|
+
$root.CmsAccessUnalignmentCompleted = (function() {
|
|
205640
|
+
|
|
205641
|
+
/**
|
|
205642
|
+
* Properties of a CmsAccessUnalignmentCompleted.
|
|
205643
|
+
* @typedef {Object} CmsAccessUnalignmentCompleted.$Properties
|
|
205644
|
+
* @property {number|Long|null} [timestamp] CmsAccessUnalignmentCompleted timestamp
|
|
205645
|
+
* @property {string|null} [hsUserId] CmsAccessUnalignmentCompleted hsUserId
|
|
205646
|
+
* @property {string|null} [trackingId] CmsAccessUnalignmentCompleted trackingId
|
|
205647
|
+
* @property {CmsAccessUnalignmentResult|null} [result] CmsAccessUnalignmentCompleted result
|
|
205648
|
+
* @property {string|null} [cmsSubmissionId] CmsAccessUnalignmentCompleted cmsSubmissionId
|
|
205649
|
+
* @property {number|Long|null} [unalignedAt] CmsAccessUnalignmentCompleted unalignedAt
|
|
205650
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
205651
|
+
*/
|
|
205652
|
+
|
|
205653
|
+
/**
|
|
205654
|
+
* Properties of a CmsAccessUnalignmentCompleted.
|
|
205655
|
+
* @name ICmsAccessUnalignmentCompleted
|
|
205656
|
+
* @interface ICmsAccessUnalignmentCompleted
|
|
205657
|
+
* @augments CmsAccessUnalignmentCompleted.$Properties
|
|
205658
|
+
* @deprecated Use CmsAccessUnalignmentCompleted.$Properties instead.
|
|
205659
|
+
*/
|
|
205660
|
+
|
|
205661
|
+
/**
|
|
205662
|
+
* Shape of a CmsAccessUnalignmentCompleted.
|
|
205663
|
+
* @typedef {CmsAccessUnalignmentCompleted.$Properties} CmsAccessUnalignmentCompleted.$Shape
|
|
205664
|
+
*/
|
|
205665
|
+
|
|
205666
|
+
/**
|
|
205667
|
+
* Constructs a new CmsAccessUnalignmentCompleted.
|
|
205668
|
+
* @name CmsAccessUnalignmentCompleted
|
|
205669
|
+
* @classdesc Published when a CMS ACCESS unalignment request completes successfully.
|
|
205670
|
+
* Contains the unalignment status result from CMS.
|
|
205671
|
+
* Used for observability and alerting — no downstream business logic depends on this event.
|
|
205672
|
+
* Fired by: hs-cms-access-service
|
|
205673
|
+
* Responsible team: Health Plans
|
|
205674
|
+
* @constructor
|
|
205675
|
+
* @param {CmsAccessUnalignmentCompleted.$Properties=} [properties] Properties to set
|
|
205676
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
205677
|
+
*/
|
|
205678
|
+
function CmsAccessUnalignmentCompleted(properties) {
|
|
205679
|
+
if (properties)
|
|
205680
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
205681
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
205682
|
+
this[keys[i]] = properties[keys[i]];
|
|
205683
|
+
}
|
|
205684
|
+
|
|
205685
|
+
/**
|
|
205686
|
+
* CmsAccessUnalignmentCompleted timestamp.
|
|
205687
|
+
* @member {number|Long} timestamp
|
|
205688
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205689
|
+
* @instance
|
|
205690
|
+
*/
|
|
205691
|
+
CmsAccessUnalignmentCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
205692
|
+
|
|
205693
|
+
/**
|
|
205694
|
+
* CmsAccessUnalignmentCompleted hsUserId.
|
|
205695
|
+
* @member {string} hsUserId
|
|
205696
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205697
|
+
* @instance
|
|
205698
|
+
*/
|
|
205699
|
+
CmsAccessUnalignmentCompleted.prototype.hsUserId = "";
|
|
205700
|
+
|
|
205701
|
+
/**
|
|
205702
|
+
* CmsAccessUnalignmentCompleted trackingId.
|
|
205703
|
+
* @member {string} trackingId
|
|
205704
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205705
|
+
* @instance
|
|
205706
|
+
*/
|
|
205707
|
+
CmsAccessUnalignmentCompleted.prototype.trackingId = "";
|
|
205708
|
+
|
|
205709
|
+
/**
|
|
205710
|
+
* CmsAccessUnalignmentCompleted result.
|
|
205711
|
+
* @member {CmsAccessUnalignmentResult} result
|
|
205712
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205713
|
+
* @instance
|
|
205714
|
+
*/
|
|
205715
|
+
CmsAccessUnalignmentCompleted.prototype.result = 0;
|
|
205716
|
+
|
|
205717
|
+
/**
|
|
205718
|
+
* CmsAccessUnalignmentCompleted cmsSubmissionId.
|
|
205719
|
+
* @member {string} cmsSubmissionId
|
|
205720
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205721
|
+
* @instance
|
|
205722
|
+
*/
|
|
205723
|
+
CmsAccessUnalignmentCompleted.prototype.cmsSubmissionId = "";
|
|
205724
|
+
|
|
205725
|
+
/**
|
|
205726
|
+
* CmsAccessUnalignmentCompleted unalignedAt.
|
|
205727
|
+
* @member {number|Long} unalignedAt
|
|
205728
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205729
|
+
* @instance
|
|
205730
|
+
*/
|
|
205731
|
+
CmsAccessUnalignmentCompleted.prototype.unalignedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
205732
|
+
|
|
205733
|
+
/**
|
|
205734
|
+
* Creates a new CmsAccessUnalignmentCompleted instance using the specified properties.
|
|
205735
|
+
* @function create
|
|
205736
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205737
|
+
* @static
|
|
205738
|
+
* @param {CmsAccessUnalignmentCompleted.$Properties=} [properties] Properties to set
|
|
205739
|
+
* @returns {CmsAccessUnalignmentCompleted} CmsAccessUnalignmentCompleted instance
|
|
205740
|
+
* @type {{
|
|
205741
|
+
* (properties: CmsAccessUnalignmentCompleted.$Shape): CmsAccessUnalignmentCompleted & CmsAccessUnalignmentCompleted.$Shape;
|
|
205742
|
+
* (properties?: CmsAccessUnalignmentCompleted.$Properties): CmsAccessUnalignmentCompleted;
|
|
205743
|
+
* }}
|
|
205744
|
+
*/
|
|
205745
|
+
CmsAccessUnalignmentCompleted.create = function create(properties) {
|
|
205746
|
+
return new CmsAccessUnalignmentCompleted(properties);
|
|
205747
|
+
};
|
|
205748
|
+
|
|
205749
|
+
/**
|
|
205750
|
+
* Encodes the specified CmsAccessUnalignmentCompleted message. Does not implicitly {@link CmsAccessUnalignmentCompleted.verify|verify} messages.
|
|
205751
|
+
* @function encode
|
|
205752
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205753
|
+
* @static
|
|
205754
|
+
* @param {CmsAccessUnalignmentCompleted.$Properties} message CmsAccessUnalignmentCompleted message or plain object to encode
|
|
205755
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
205756
|
+
* @returns {$protobuf.Writer} Writer
|
|
205757
|
+
*/
|
|
205758
|
+
CmsAccessUnalignmentCompleted.encode = function encode(message, writer) {
|
|
205759
|
+
if (!writer)
|
|
205760
|
+
writer = $Writer.create();
|
|
205761
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
205762
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
205763
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
205764
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
205765
|
+
if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
|
|
205766
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
|
|
205767
|
+
if (message.result != null && Object.hasOwnProperty.call(message, "result"))
|
|
205768
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.result);
|
|
205769
|
+
if (message.cmsSubmissionId != null && Object.hasOwnProperty.call(message, "cmsSubmissionId"))
|
|
205770
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.cmsSubmissionId);
|
|
205771
|
+
if (message.unalignedAt != null && Object.hasOwnProperty.call(message, "unalignedAt"))
|
|
205772
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.unalignedAt);
|
|
205773
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
205774
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
205775
|
+
writer.raw(message.$unknowns[i]);
|
|
205776
|
+
return writer;
|
|
205777
|
+
};
|
|
205778
|
+
|
|
205779
|
+
/**
|
|
205780
|
+
* Encodes the specified CmsAccessUnalignmentCompleted message, length delimited. Does not implicitly {@link CmsAccessUnalignmentCompleted.verify|verify} messages.
|
|
205781
|
+
* @function encodeDelimited
|
|
205782
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205783
|
+
* @static
|
|
205784
|
+
* @param {CmsAccessUnalignmentCompleted.$Properties} message CmsAccessUnalignmentCompleted message or plain object to encode
|
|
205785
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
205786
|
+
* @returns {$protobuf.Writer} Writer
|
|
205787
|
+
*/
|
|
205788
|
+
CmsAccessUnalignmentCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
205789
|
+
return this.encode(message, writer).ldelim();
|
|
205790
|
+
};
|
|
205791
|
+
|
|
205792
|
+
/**
|
|
205793
|
+
* Decodes a CmsAccessUnalignmentCompleted message from the specified reader or buffer.
|
|
205794
|
+
* @function decode
|
|
205795
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205796
|
+
* @static
|
|
205797
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
205798
|
+
* @param {number} [length] Message length if known beforehand
|
|
205799
|
+
* @returns {CmsAccessUnalignmentCompleted & CmsAccessUnalignmentCompleted.$Shape} CmsAccessUnalignmentCompleted
|
|
205800
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
205801
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
205802
|
+
*/
|
|
205803
|
+
CmsAccessUnalignmentCompleted.decode = function decode(reader, length, _end, _depth, _target) {
|
|
205804
|
+
if (!(reader instanceof $Reader))
|
|
205805
|
+
reader = $Reader.create(reader);
|
|
205806
|
+
if (_depth === undefined)
|
|
205807
|
+
_depth = 0;
|
|
205808
|
+
if (_depth > $Reader.recursionLimit)
|
|
205809
|
+
throw Error("max depth exceeded");
|
|
205810
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessUnalignmentCompleted(), value;
|
|
205811
|
+
while (reader.pos < end) {
|
|
205812
|
+
var start = reader.pos;
|
|
205813
|
+
var tag = reader.tag();
|
|
205814
|
+
if (tag === _end) {
|
|
205815
|
+
_end = undefined;
|
|
205816
|
+
break;
|
|
205817
|
+
}
|
|
205818
|
+
var wireType = tag & 7;
|
|
205819
|
+
switch (tag >>>= 3) {
|
|
205820
|
+
case 1: {
|
|
205821
|
+
if (wireType !== 0)
|
|
205822
|
+
break;
|
|
205823
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
205824
|
+
message.timestamp = value;
|
|
205825
|
+
else
|
|
205826
|
+
delete message.timestamp;
|
|
205827
|
+
continue;
|
|
205828
|
+
}
|
|
205829
|
+
case 2: {
|
|
205830
|
+
if (wireType !== 2)
|
|
205831
|
+
break;
|
|
205832
|
+
if ((value = reader.string()).length)
|
|
205833
|
+
message.hsUserId = value;
|
|
205834
|
+
else
|
|
205835
|
+
delete message.hsUserId;
|
|
205836
|
+
continue;
|
|
205837
|
+
}
|
|
205838
|
+
case 3: {
|
|
205839
|
+
if (wireType !== 2)
|
|
205840
|
+
break;
|
|
205841
|
+
if ((value = reader.string()).length)
|
|
205842
|
+
message.trackingId = value;
|
|
205843
|
+
else
|
|
205844
|
+
delete message.trackingId;
|
|
205845
|
+
continue;
|
|
205846
|
+
}
|
|
205847
|
+
case 4: {
|
|
205848
|
+
if (wireType !== 0)
|
|
205849
|
+
break;
|
|
205850
|
+
if (value = reader.int32())
|
|
205851
|
+
message.result = value;
|
|
205852
|
+
else
|
|
205853
|
+
delete message.result;
|
|
205854
|
+
continue;
|
|
205855
|
+
}
|
|
205856
|
+
case 5: {
|
|
205857
|
+
if (wireType !== 2)
|
|
205858
|
+
break;
|
|
205859
|
+
if ((value = reader.string()).length)
|
|
205860
|
+
message.cmsSubmissionId = value;
|
|
205861
|
+
else
|
|
205862
|
+
delete message.cmsSubmissionId;
|
|
205863
|
+
continue;
|
|
205864
|
+
}
|
|
205865
|
+
case 6: {
|
|
205866
|
+
if (wireType !== 0)
|
|
205867
|
+
break;
|
|
205868
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
205869
|
+
message.unalignedAt = value;
|
|
205870
|
+
else
|
|
205871
|
+
delete message.unalignedAt;
|
|
205872
|
+
continue;
|
|
205873
|
+
}
|
|
205874
|
+
}
|
|
205875
|
+
reader.skipType(wireType, _depth, tag);
|
|
205876
|
+
$util.makeProp(message, "$unknowns", false);
|
|
205877
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
205878
|
+
}
|
|
205879
|
+
if (_end !== undefined)
|
|
205880
|
+
throw Error("missing end group");
|
|
205881
|
+
return message;
|
|
205882
|
+
};
|
|
205883
|
+
|
|
205884
|
+
/**
|
|
205885
|
+
* Decodes a CmsAccessUnalignmentCompleted message from the specified reader or buffer, length delimited.
|
|
205886
|
+
* @function decodeDelimited
|
|
205887
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205888
|
+
* @static
|
|
205889
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
205890
|
+
* @returns {CmsAccessUnalignmentCompleted & CmsAccessUnalignmentCompleted.$Shape} CmsAccessUnalignmentCompleted
|
|
205891
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
205892
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
205893
|
+
*/
|
|
205894
|
+
CmsAccessUnalignmentCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
205895
|
+
if (!(reader instanceof $Reader))
|
|
205896
|
+
reader = new $Reader(reader);
|
|
205897
|
+
return this.decode(reader, reader.uint32());
|
|
205898
|
+
};
|
|
205899
|
+
|
|
205900
|
+
/**
|
|
205901
|
+
* Verifies a CmsAccessUnalignmentCompleted message.
|
|
205902
|
+
* @function verify
|
|
205903
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205904
|
+
* @static
|
|
205905
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
205906
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
205907
|
+
*/
|
|
205908
|
+
CmsAccessUnalignmentCompleted.verify = function verify(message, _depth) {
|
|
205909
|
+
if (typeof message !== "object" || message === null)
|
|
205910
|
+
return "object expected";
|
|
205911
|
+
if (_depth === undefined)
|
|
205912
|
+
_depth = 0;
|
|
205913
|
+
if (_depth > $util.recursionLimit)
|
|
205914
|
+
return "max depth exceeded";
|
|
205915
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
205916
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
205917
|
+
return "timestamp: integer|Long expected";
|
|
205918
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
205919
|
+
if (!$util.isString(message.hsUserId))
|
|
205920
|
+
return "hsUserId: string expected";
|
|
205921
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
205922
|
+
if (!$util.isString(message.trackingId))
|
|
205923
|
+
return "trackingId: string expected";
|
|
205924
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
205925
|
+
switch (message.result) {
|
|
205926
|
+
default:
|
|
205927
|
+
return "result: enum value expected";
|
|
205928
|
+
case 0:
|
|
205929
|
+
case 1:
|
|
205930
|
+
case 2:
|
|
205931
|
+
case 3:
|
|
205932
|
+
case 4:
|
|
205933
|
+
break;
|
|
205934
|
+
}
|
|
205935
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
205936
|
+
if (!$util.isString(message.cmsSubmissionId))
|
|
205937
|
+
return "cmsSubmissionId: string expected";
|
|
205938
|
+
if (message.unalignedAt != null && message.hasOwnProperty("unalignedAt"))
|
|
205939
|
+
if (!$util.isInteger(message.unalignedAt) && !(message.unalignedAt && $util.isInteger(message.unalignedAt.low) && $util.isInteger(message.unalignedAt.high)))
|
|
205940
|
+
return "unalignedAt: integer|Long expected";
|
|
205941
|
+
return null;
|
|
205942
|
+
};
|
|
205943
|
+
|
|
205944
|
+
/**
|
|
205945
|
+
* Creates a CmsAccessUnalignmentCompleted message from a plain object. Also converts values to their respective internal types.
|
|
205946
|
+
* @function fromObject
|
|
205947
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
205948
|
+
* @static
|
|
205949
|
+
* @param {Object.<string,*>} object Plain object
|
|
205950
|
+
* @returns {CmsAccessUnalignmentCompleted} CmsAccessUnalignmentCompleted
|
|
205951
|
+
*/
|
|
205952
|
+
CmsAccessUnalignmentCompleted.fromObject = function fromObject(object, _depth) {
|
|
205953
|
+
if (object instanceof $root.CmsAccessUnalignmentCompleted)
|
|
205954
|
+
return object;
|
|
205955
|
+
if (_depth === undefined)
|
|
205956
|
+
_depth = 0;
|
|
205957
|
+
if (_depth > $util.recursionLimit)
|
|
205958
|
+
throw Error("max depth exceeded");
|
|
205959
|
+
var message = new $root.CmsAccessUnalignmentCompleted();
|
|
205960
|
+
if (object.timestamp != null)
|
|
205961
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
205962
|
+
if ($util.Long)
|
|
205963
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
205964
|
+
else if (typeof object.timestamp === "string")
|
|
205965
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
205966
|
+
else if (typeof object.timestamp === "number")
|
|
205967
|
+
message.timestamp = object.timestamp;
|
|
205968
|
+
else if (typeof object.timestamp === "object")
|
|
205969
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
205970
|
+
if (object.hsUserId != null)
|
|
205971
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
205972
|
+
message.hsUserId = String(object.hsUserId);
|
|
205973
|
+
if (object.trackingId != null)
|
|
205974
|
+
if (typeof object.trackingId !== "string" || object.trackingId.length)
|
|
205975
|
+
message.trackingId = String(object.trackingId);
|
|
205976
|
+
if (object.result !== 0 && (typeof object.result !== "string" || $root.CmsAccessUnalignmentResult[object.result] !== 0))
|
|
205977
|
+
switch (object.result) {
|
|
205978
|
+
default:
|
|
205979
|
+
if (typeof object.result === "number") {
|
|
205980
|
+
message.result = object.result;
|
|
205981
|
+
break;
|
|
205982
|
+
}
|
|
205983
|
+
break;
|
|
205984
|
+
case "CMS_ACCESS_UNALIGNMENT_RESULT_UNKNOWN":
|
|
205985
|
+
case 0:
|
|
205986
|
+
message.result = 0;
|
|
205987
|
+
break;
|
|
205988
|
+
case "CMS_ACCESS_UNALIGNMENT_RESULT_UNALIGNED":
|
|
205989
|
+
case 1:
|
|
205990
|
+
message.result = 1;
|
|
205991
|
+
break;
|
|
205992
|
+
case "CMS_ACCESS_UNALIGNMENT_RESULT_PENDING":
|
|
205993
|
+
case 2:
|
|
205994
|
+
message.result = 2;
|
|
205995
|
+
break;
|
|
205996
|
+
case "CMS_ACCESS_UNALIGNMENT_RESULT_NOT_ALIGNED":
|
|
205997
|
+
case 3:
|
|
205998
|
+
message.result = 3;
|
|
205999
|
+
break;
|
|
206000
|
+
case "CMS_ACCESS_UNALIGNMENT_RESULT_LOCK_IN":
|
|
206001
|
+
case 4:
|
|
206002
|
+
message.result = 4;
|
|
206003
|
+
break;
|
|
206004
|
+
}
|
|
206005
|
+
if (object.cmsSubmissionId != null)
|
|
206006
|
+
if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
|
|
206007
|
+
message.cmsSubmissionId = String(object.cmsSubmissionId);
|
|
206008
|
+
if (object.unalignedAt != null)
|
|
206009
|
+
if (typeof object.unalignedAt === "object" ? object.unalignedAt.low || object.unalignedAt.high : Number(object.unalignedAt) !== 0)
|
|
206010
|
+
if ($util.Long)
|
|
206011
|
+
(message.unalignedAt = $util.Long.fromValue(object.unalignedAt)).unsigned = true;
|
|
206012
|
+
else if (typeof object.unalignedAt === "string")
|
|
206013
|
+
message.unalignedAt = parseInt(object.unalignedAt, 10);
|
|
206014
|
+
else if (typeof object.unalignedAt === "number")
|
|
206015
|
+
message.unalignedAt = object.unalignedAt;
|
|
206016
|
+
else if (typeof object.unalignedAt === "object")
|
|
206017
|
+
message.unalignedAt = new $util.LongBits(object.unalignedAt.low >>> 0, object.unalignedAt.high >>> 0).toNumber(true);
|
|
206018
|
+
return message;
|
|
206019
|
+
};
|
|
206020
|
+
|
|
206021
|
+
/**
|
|
206022
|
+
* Creates a plain object from a CmsAccessUnalignmentCompleted message. Also converts values to other types if specified.
|
|
206023
|
+
* @function toObject
|
|
206024
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
206025
|
+
* @static
|
|
206026
|
+
* @param {CmsAccessUnalignmentCompleted} message CmsAccessUnalignmentCompleted
|
|
206027
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
206028
|
+
* @returns {Object.<string,*>} Plain object
|
|
206029
|
+
*/
|
|
206030
|
+
CmsAccessUnalignmentCompleted.toObject = function toObject(message, options) {
|
|
206031
|
+
if (!options)
|
|
206032
|
+
options = {};
|
|
206033
|
+
var object = {};
|
|
206034
|
+
if (options.defaults) {
|
|
206035
|
+
if ($util.Long) {
|
|
206036
|
+
var long = new $util.Long(0, 0, true);
|
|
206037
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
206038
|
+
} else
|
|
206039
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
206040
|
+
object.hsUserId = "";
|
|
206041
|
+
object.trackingId = "";
|
|
206042
|
+
object.result = options.enums === String ? "CMS_ACCESS_UNALIGNMENT_RESULT_UNKNOWN" : 0;
|
|
206043
|
+
object.cmsSubmissionId = "";
|
|
206044
|
+
if ($util.Long) {
|
|
206045
|
+
var long = new $util.Long(0, 0, true);
|
|
206046
|
+
object.unalignedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
206047
|
+
} else
|
|
206048
|
+
object.unalignedAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
206049
|
+
}
|
|
206050
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
206051
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
206052
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
206053
|
+
else if (typeof message.timestamp === "number")
|
|
206054
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
206055
|
+
else
|
|
206056
|
+
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;
|
|
206057
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
206058
|
+
object.hsUserId = message.hsUserId;
|
|
206059
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
206060
|
+
object.trackingId = message.trackingId;
|
|
206061
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
206062
|
+
object.result = options.enums === String ? $root.CmsAccessUnalignmentResult[message.result] === undefined ? message.result : $root.CmsAccessUnalignmentResult[message.result] : message.result;
|
|
206063
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
206064
|
+
object.cmsSubmissionId = message.cmsSubmissionId;
|
|
206065
|
+
if (message.unalignedAt != null && message.hasOwnProperty("unalignedAt"))
|
|
206066
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
206067
|
+
object.unalignedAt = typeof message.unalignedAt === "number" ? BigInt(message.unalignedAt) : $util.Long.fromBits(message.unalignedAt.low >>> 0, message.unalignedAt.high >>> 0, true).toBigInt();
|
|
206068
|
+
else if (typeof message.unalignedAt === "number")
|
|
206069
|
+
object.unalignedAt = options.longs === String ? String(message.unalignedAt) : message.unalignedAt;
|
|
206070
|
+
else
|
|
206071
|
+
object.unalignedAt = options.longs === String ? $util.Long.prototype.toString.call(message.unalignedAt) : options.longs === Number ? new $util.LongBits(message.unalignedAt.low >>> 0, message.unalignedAt.high >>> 0).toNumber(true) : message.unalignedAt;
|
|
206072
|
+
return object;
|
|
206073
|
+
};
|
|
206074
|
+
|
|
206075
|
+
/**
|
|
206076
|
+
* Converts this CmsAccessUnalignmentCompleted to JSON.
|
|
206077
|
+
* @function toJSON
|
|
206078
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
206079
|
+
* @instance
|
|
206080
|
+
* @returns {Object.<string,*>} JSON object
|
|
206081
|
+
*/
|
|
206082
|
+
CmsAccessUnalignmentCompleted.prototype.toJSON = function toJSON() {
|
|
206083
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
206084
|
+
};
|
|
206085
|
+
|
|
206086
|
+
/**
|
|
206087
|
+
* Gets the type url for CmsAccessUnalignmentCompleted
|
|
206088
|
+
* @function getTypeUrl
|
|
206089
|
+
* @memberof CmsAccessUnalignmentCompleted
|
|
206090
|
+
* @static
|
|
206091
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
206092
|
+
* @returns {string} The type url
|
|
206093
|
+
*/
|
|
206094
|
+
CmsAccessUnalignmentCompleted.getTypeUrl = function getTypeUrl(prefix) {
|
|
206095
|
+
if (prefix === undefined)
|
|
206096
|
+
prefix = "type.googleapis.com";
|
|
206097
|
+
return prefix + "/CmsAccessUnalignmentCompleted";
|
|
206098
|
+
};
|
|
206099
|
+
|
|
206100
|
+
return CmsAccessUnalignmentCompleted;
|
|
206101
|
+
})();
|
|
206102
|
+
|
|
206103
|
+
$root.CmsAccessSubmissionFailed = (function() {
|
|
206104
|
+
|
|
206105
|
+
/**
|
|
206106
|
+
* Properties of a CmsAccessSubmissionFailed.
|
|
206107
|
+
* @typedef {Object} CmsAccessSubmissionFailed.$Properties
|
|
206108
|
+
* @property {number|Long|null} [timestamp] CmsAccessSubmissionFailed timestamp
|
|
206109
|
+
* @property {string|null} [hsUserId] CmsAccessSubmissionFailed hsUserId
|
|
206110
|
+
* @property {string|null} [trackingId] CmsAccessSubmissionFailed trackingId
|
|
206111
|
+
* @property {CmsAccessSubmissionType|null} [submissionType] CmsAccessSubmissionFailed submissionType
|
|
206112
|
+
* @property {CmsAccessFailureReason|null} [failureReason] CmsAccessSubmissionFailed failureReason
|
|
206113
|
+
* @property {string|null} [errorDetail] CmsAccessSubmissionFailed errorDetail
|
|
206114
|
+
* @property {string|null} [cmsSubmissionId] CmsAccessSubmissionFailed cmsSubmissionId
|
|
206115
|
+
* @property {number|null} [pollCount] CmsAccessSubmissionFailed pollCount
|
|
206116
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
206117
|
+
*/
|
|
206118
|
+
|
|
206119
|
+
/**
|
|
206120
|
+
* Properties of a CmsAccessSubmissionFailed.
|
|
206121
|
+
* @name ICmsAccessSubmissionFailed
|
|
206122
|
+
* @interface ICmsAccessSubmissionFailed
|
|
206123
|
+
* @augments CmsAccessSubmissionFailed.$Properties
|
|
206124
|
+
* @deprecated Use CmsAccessSubmissionFailed.$Properties instead.
|
|
206125
|
+
*/
|
|
206126
|
+
|
|
206127
|
+
/**
|
|
206128
|
+
* Shape of a CmsAccessSubmissionFailed.
|
|
206129
|
+
* @typedef {CmsAccessSubmissionFailed.$Properties} CmsAccessSubmissionFailed.$Shape
|
|
206130
|
+
*/
|
|
206131
|
+
|
|
206132
|
+
/**
|
|
206133
|
+
* Constructs a new CmsAccessSubmissionFailed.
|
|
206134
|
+
* @name CmsAccessSubmissionFailed
|
|
206135
|
+
* @classdesc Published when a CMS ACCESS submission fails (eligibility or alignment).
|
|
206136
|
+
* Used for observability and alerting — no downstream business logic depends on this event.
|
|
206137
|
+
* Fired by: hs-cms-access-service
|
|
206138
|
+
* Responsible team: Health Plans
|
|
206139
|
+
* @constructor
|
|
206140
|
+
* @param {CmsAccessSubmissionFailed.$Properties=} [properties] Properties to set
|
|
206141
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
206142
|
+
*/
|
|
206143
|
+
function CmsAccessSubmissionFailed(properties) {
|
|
206144
|
+
if (properties)
|
|
206145
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
206146
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
206147
|
+
this[keys[i]] = properties[keys[i]];
|
|
206148
|
+
}
|
|
206149
|
+
|
|
206150
|
+
/**
|
|
206151
|
+
* CmsAccessSubmissionFailed timestamp.
|
|
206152
|
+
* @member {number|Long} timestamp
|
|
206153
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206154
|
+
* @instance
|
|
206155
|
+
*/
|
|
206156
|
+
CmsAccessSubmissionFailed.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
206157
|
+
|
|
206158
|
+
/**
|
|
206159
|
+
* CmsAccessSubmissionFailed hsUserId.
|
|
206160
|
+
* @member {string} hsUserId
|
|
206161
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206162
|
+
* @instance
|
|
206163
|
+
*/
|
|
206164
|
+
CmsAccessSubmissionFailed.prototype.hsUserId = "";
|
|
206165
|
+
|
|
206166
|
+
/**
|
|
206167
|
+
* CmsAccessSubmissionFailed trackingId.
|
|
206168
|
+
* @member {string} trackingId
|
|
206169
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206170
|
+
* @instance
|
|
206171
|
+
*/
|
|
206172
|
+
CmsAccessSubmissionFailed.prototype.trackingId = "";
|
|
206173
|
+
|
|
206174
|
+
/**
|
|
206175
|
+
* CmsAccessSubmissionFailed submissionType.
|
|
206176
|
+
* @member {CmsAccessSubmissionType} submissionType
|
|
206177
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206178
|
+
* @instance
|
|
206179
|
+
*/
|
|
206180
|
+
CmsAccessSubmissionFailed.prototype.submissionType = 0;
|
|
206181
|
+
|
|
206182
|
+
/**
|
|
206183
|
+
* CmsAccessSubmissionFailed failureReason.
|
|
206184
|
+
* @member {CmsAccessFailureReason} failureReason
|
|
206185
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206186
|
+
* @instance
|
|
206187
|
+
*/
|
|
206188
|
+
CmsAccessSubmissionFailed.prototype.failureReason = 0;
|
|
206189
|
+
|
|
206190
|
+
/**
|
|
206191
|
+
* CmsAccessSubmissionFailed errorDetail.
|
|
206192
|
+
* @member {string} errorDetail
|
|
206193
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206194
|
+
* @instance
|
|
206195
|
+
*/
|
|
206196
|
+
CmsAccessSubmissionFailed.prototype.errorDetail = "";
|
|
206197
|
+
|
|
206198
|
+
/**
|
|
206199
|
+
* CmsAccessSubmissionFailed cmsSubmissionId.
|
|
206200
|
+
* @member {string} cmsSubmissionId
|
|
206201
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206202
|
+
* @instance
|
|
206203
|
+
*/
|
|
206204
|
+
CmsAccessSubmissionFailed.prototype.cmsSubmissionId = "";
|
|
206205
|
+
|
|
206206
|
+
/**
|
|
206207
|
+
* CmsAccessSubmissionFailed pollCount.
|
|
206208
|
+
* @member {number} pollCount
|
|
206209
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206210
|
+
* @instance
|
|
206211
|
+
*/
|
|
206212
|
+
CmsAccessSubmissionFailed.prototype.pollCount = 0;
|
|
206213
|
+
|
|
206214
|
+
/**
|
|
206215
|
+
* Creates a new CmsAccessSubmissionFailed instance using the specified properties.
|
|
206216
|
+
* @function create
|
|
206217
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206218
|
+
* @static
|
|
206219
|
+
* @param {CmsAccessSubmissionFailed.$Properties=} [properties] Properties to set
|
|
206220
|
+
* @returns {CmsAccessSubmissionFailed} CmsAccessSubmissionFailed instance
|
|
206221
|
+
* @type {{
|
|
206222
|
+
* (properties: CmsAccessSubmissionFailed.$Shape): CmsAccessSubmissionFailed & CmsAccessSubmissionFailed.$Shape;
|
|
206223
|
+
* (properties?: CmsAccessSubmissionFailed.$Properties): CmsAccessSubmissionFailed;
|
|
206224
|
+
* }}
|
|
206225
|
+
*/
|
|
206226
|
+
CmsAccessSubmissionFailed.create = function create(properties) {
|
|
206227
|
+
return new CmsAccessSubmissionFailed(properties);
|
|
206228
|
+
};
|
|
206229
|
+
|
|
206230
|
+
/**
|
|
206231
|
+
* Encodes the specified CmsAccessSubmissionFailed message. Does not implicitly {@link CmsAccessSubmissionFailed.verify|verify} messages.
|
|
206232
|
+
* @function encode
|
|
206233
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206234
|
+
* @static
|
|
206235
|
+
* @param {CmsAccessSubmissionFailed.$Properties} message CmsAccessSubmissionFailed message or plain object to encode
|
|
206236
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
206237
|
+
* @returns {$protobuf.Writer} Writer
|
|
206238
|
+
*/
|
|
206239
|
+
CmsAccessSubmissionFailed.encode = function encode(message, writer) {
|
|
206240
|
+
if (!writer)
|
|
206241
|
+
writer = $Writer.create();
|
|
206242
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
206243
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
206244
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
206245
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
206246
|
+
if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
|
|
206247
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
|
|
206248
|
+
if (message.submissionType != null && Object.hasOwnProperty.call(message, "submissionType"))
|
|
206249
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.submissionType);
|
|
206250
|
+
if (message.failureReason != null && Object.hasOwnProperty.call(message, "failureReason"))
|
|
206251
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.failureReason);
|
|
206252
|
+
if (message.errorDetail != null && Object.hasOwnProperty.call(message, "errorDetail"))
|
|
206253
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.errorDetail);
|
|
206254
|
+
if (message.cmsSubmissionId != null && Object.hasOwnProperty.call(message, "cmsSubmissionId"))
|
|
206255
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.cmsSubmissionId);
|
|
206256
|
+
if (message.pollCount != null && Object.hasOwnProperty.call(message, "pollCount"))
|
|
206257
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.pollCount);
|
|
206258
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
206259
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
206260
|
+
writer.raw(message.$unknowns[i]);
|
|
206261
|
+
return writer;
|
|
206262
|
+
};
|
|
206263
|
+
|
|
206264
|
+
/**
|
|
206265
|
+
* Encodes the specified CmsAccessSubmissionFailed message, length delimited. Does not implicitly {@link CmsAccessSubmissionFailed.verify|verify} messages.
|
|
206266
|
+
* @function encodeDelimited
|
|
206267
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206268
|
+
* @static
|
|
206269
|
+
* @param {CmsAccessSubmissionFailed.$Properties} message CmsAccessSubmissionFailed message or plain object to encode
|
|
206270
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
206271
|
+
* @returns {$protobuf.Writer} Writer
|
|
206272
|
+
*/
|
|
206273
|
+
CmsAccessSubmissionFailed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
206274
|
+
return this.encode(message, writer).ldelim();
|
|
206275
|
+
};
|
|
206276
|
+
|
|
206277
|
+
/**
|
|
206278
|
+
* Decodes a CmsAccessSubmissionFailed message from the specified reader or buffer.
|
|
206279
|
+
* @function decode
|
|
206280
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206281
|
+
* @static
|
|
206282
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
206283
|
+
* @param {number} [length] Message length if known beforehand
|
|
206284
|
+
* @returns {CmsAccessSubmissionFailed & CmsAccessSubmissionFailed.$Shape} CmsAccessSubmissionFailed
|
|
206285
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
206286
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
206287
|
+
*/
|
|
206288
|
+
CmsAccessSubmissionFailed.decode = function decode(reader, length, _end, _depth, _target) {
|
|
206289
|
+
if (!(reader instanceof $Reader))
|
|
206290
|
+
reader = $Reader.create(reader);
|
|
206291
|
+
if (_depth === undefined)
|
|
206292
|
+
_depth = 0;
|
|
206293
|
+
if (_depth > $Reader.recursionLimit)
|
|
206294
|
+
throw Error("max depth exceeded");
|
|
206295
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessSubmissionFailed(), value;
|
|
206296
|
+
while (reader.pos < end) {
|
|
206297
|
+
var start = reader.pos;
|
|
206298
|
+
var tag = reader.tag();
|
|
206299
|
+
if (tag === _end) {
|
|
206300
|
+
_end = undefined;
|
|
206301
|
+
break;
|
|
206302
|
+
}
|
|
206303
|
+
var wireType = tag & 7;
|
|
206304
|
+
switch (tag >>>= 3) {
|
|
206305
|
+
case 1: {
|
|
206306
|
+
if (wireType !== 0)
|
|
206307
|
+
break;
|
|
206308
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
206309
|
+
message.timestamp = value;
|
|
206310
|
+
else
|
|
206311
|
+
delete message.timestamp;
|
|
206312
|
+
continue;
|
|
206313
|
+
}
|
|
206314
|
+
case 2: {
|
|
206315
|
+
if (wireType !== 2)
|
|
206316
|
+
break;
|
|
206317
|
+
if ((value = reader.string()).length)
|
|
206318
|
+
message.hsUserId = value;
|
|
206319
|
+
else
|
|
206320
|
+
delete message.hsUserId;
|
|
206321
|
+
continue;
|
|
206322
|
+
}
|
|
206323
|
+
case 3: {
|
|
206324
|
+
if (wireType !== 2)
|
|
206325
|
+
break;
|
|
206326
|
+
if ((value = reader.string()).length)
|
|
206327
|
+
message.trackingId = value;
|
|
206328
|
+
else
|
|
206329
|
+
delete message.trackingId;
|
|
206330
|
+
continue;
|
|
206331
|
+
}
|
|
206332
|
+
case 4: {
|
|
206333
|
+
if (wireType !== 0)
|
|
206334
|
+
break;
|
|
206335
|
+
if (value = reader.int32())
|
|
206336
|
+
message.submissionType = value;
|
|
206337
|
+
else
|
|
206338
|
+
delete message.submissionType;
|
|
206339
|
+
continue;
|
|
206340
|
+
}
|
|
206341
|
+
case 5: {
|
|
206342
|
+
if (wireType !== 0)
|
|
206343
|
+
break;
|
|
206344
|
+
if (value = reader.int32())
|
|
206345
|
+
message.failureReason = value;
|
|
206346
|
+
else
|
|
206347
|
+
delete message.failureReason;
|
|
206348
|
+
continue;
|
|
206349
|
+
}
|
|
206350
|
+
case 6: {
|
|
206351
|
+
if (wireType !== 2)
|
|
206352
|
+
break;
|
|
206353
|
+
if ((value = reader.string()).length)
|
|
206354
|
+
message.errorDetail = value;
|
|
206355
|
+
else
|
|
206356
|
+
delete message.errorDetail;
|
|
206357
|
+
continue;
|
|
206358
|
+
}
|
|
206359
|
+
case 7: {
|
|
206360
|
+
if (wireType !== 2)
|
|
206361
|
+
break;
|
|
206362
|
+
if ((value = reader.string()).length)
|
|
206363
|
+
message.cmsSubmissionId = value;
|
|
206364
|
+
else
|
|
206365
|
+
delete message.cmsSubmissionId;
|
|
206366
|
+
continue;
|
|
206367
|
+
}
|
|
206368
|
+
case 8: {
|
|
206369
|
+
if (wireType !== 0)
|
|
206370
|
+
break;
|
|
206371
|
+
if (value = reader.uint32())
|
|
206372
|
+
message.pollCount = value;
|
|
206373
|
+
else
|
|
206374
|
+
delete message.pollCount;
|
|
206375
|
+
continue;
|
|
206376
|
+
}
|
|
206377
|
+
}
|
|
206378
|
+
reader.skipType(wireType, _depth, tag);
|
|
206379
|
+
$util.makeProp(message, "$unknowns", false);
|
|
206380
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
206381
|
+
}
|
|
206382
|
+
if (_end !== undefined)
|
|
206383
|
+
throw Error("missing end group");
|
|
206384
|
+
return message;
|
|
206385
|
+
};
|
|
206386
|
+
|
|
206387
|
+
/**
|
|
206388
|
+
* Decodes a CmsAccessSubmissionFailed message from the specified reader or buffer, length delimited.
|
|
206389
|
+
* @function decodeDelimited
|
|
206390
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206391
|
+
* @static
|
|
206392
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
206393
|
+
* @returns {CmsAccessSubmissionFailed & CmsAccessSubmissionFailed.$Shape} CmsAccessSubmissionFailed
|
|
206394
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
206395
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
206396
|
+
*/
|
|
206397
|
+
CmsAccessSubmissionFailed.decodeDelimited = function decodeDelimited(reader) {
|
|
206398
|
+
if (!(reader instanceof $Reader))
|
|
206399
|
+
reader = new $Reader(reader);
|
|
206400
|
+
return this.decode(reader, reader.uint32());
|
|
206401
|
+
};
|
|
206402
|
+
|
|
206403
|
+
/**
|
|
206404
|
+
* Verifies a CmsAccessSubmissionFailed message.
|
|
206405
|
+
* @function verify
|
|
206406
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206407
|
+
* @static
|
|
206408
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
206409
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
206410
|
+
*/
|
|
206411
|
+
CmsAccessSubmissionFailed.verify = function verify(message, _depth) {
|
|
206412
|
+
if (typeof message !== "object" || message === null)
|
|
206413
|
+
return "object expected";
|
|
206414
|
+
if (_depth === undefined)
|
|
206415
|
+
_depth = 0;
|
|
206416
|
+
if (_depth > $util.recursionLimit)
|
|
206417
|
+
return "max depth exceeded";
|
|
206418
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
206419
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
206420
|
+
return "timestamp: integer|Long expected";
|
|
206421
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
206422
|
+
if (!$util.isString(message.hsUserId))
|
|
206423
|
+
return "hsUserId: string expected";
|
|
206424
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
206425
|
+
if (!$util.isString(message.trackingId))
|
|
206426
|
+
return "trackingId: string expected";
|
|
206427
|
+
if (message.submissionType != null && message.hasOwnProperty("submissionType"))
|
|
206428
|
+
switch (message.submissionType) {
|
|
206429
|
+
default:
|
|
206430
|
+
return "submissionType: enum value expected";
|
|
206431
|
+
case 0:
|
|
206432
|
+
case 1:
|
|
206433
|
+
case 2:
|
|
206434
|
+
case 3:
|
|
206435
|
+
break;
|
|
206436
|
+
}
|
|
206437
|
+
if (message.failureReason != null && message.hasOwnProperty("failureReason"))
|
|
206438
|
+
switch (message.failureReason) {
|
|
206439
|
+
default:
|
|
206440
|
+
return "failureReason: enum value expected";
|
|
206441
|
+
case 0:
|
|
206442
|
+
case 1:
|
|
206443
|
+
case 2:
|
|
206444
|
+
case 3:
|
|
206445
|
+
case 4:
|
|
206446
|
+
break;
|
|
206447
|
+
}
|
|
206448
|
+
if (message.errorDetail != null && message.hasOwnProperty("errorDetail"))
|
|
206449
|
+
if (!$util.isString(message.errorDetail))
|
|
206450
|
+
return "errorDetail: string expected";
|
|
206451
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
206452
|
+
if (!$util.isString(message.cmsSubmissionId))
|
|
206453
|
+
return "cmsSubmissionId: string expected";
|
|
206454
|
+
if (message.pollCount != null && message.hasOwnProperty("pollCount"))
|
|
206455
|
+
if (!$util.isInteger(message.pollCount))
|
|
206456
|
+
return "pollCount: integer expected";
|
|
206457
|
+
return null;
|
|
206458
|
+
};
|
|
206459
|
+
|
|
206460
|
+
/**
|
|
206461
|
+
* Creates a CmsAccessSubmissionFailed message from a plain object. Also converts values to their respective internal types.
|
|
206462
|
+
* @function fromObject
|
|
206463
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206464
|
+
* @static
|
|
206465
|
+
* @param {Object.<string,*>} object Plain object
|
|
206466
|
+
* @returns {CmsAccessSubmissionFailed} CmsAccessSubmissionFailed
|
|
206467
|
+
*/
|
|
206468
|
+
CmsAccessSubmissionFailed.fromObject = function fromObject(object, _depth) {
|
|
206469
|
+
if (object instanceof $root.CmsAccessSubmissionFailed)
|
|
206470
|
+
return object;
|
|
206471
|
+
if (_depth === undefined)
|
|
206472
|
+
_depth = 0;
|
|
206473
|
+
if (_depth > $util.recursionLimit)
|
|
206474
|
+
throw Error("max depth exceeded");
|
|
206475
|
+
var message = new $root.CmsAccessSubmissionFailed();
|
|
206476
|
+
if (object.timestamp != null)
|
|
206477
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
206478
|
+
if ($util.Long)
|
|
206479
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
206480
|
+
else if (typeof object.timestamp === "string")
|
|
206481
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
206482
|
+
else if (typeof object.timestamp === "number")
|
|
206483
|
+
message.timestamp = object.timestamp;
|
|
206484
|
+
else if (typeof object.timestamp === "object")
|
|
206485
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
206486
|
+
if (object.hsUserId != null)
|
|
206487
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
206488
|
+
message.hsUserId = String(object.hsUserId);
|
|
206489
|
+
if (object.trackingId != null)
|
|
206490
|
+
if (typeof object.trackingId !== "string" || object.trackingId.length)
|
|
206491
|
+
message.trackingId = String(object.trackingId);
|
|
206492
|
+
if (object.submissionType !== 0 && (typeof object.submissionType !== "string" || $root.CmsAccessSubmissionType[object.submissionType] !== 0))
|
|
206493
|
+
switch (object.submissionType) {
|
|
206494
|
+
default:
|
|
206495
|
+
if (typeof object.submissionType === "number") {
|
|
206496
|
+
message.submissionType = object.submissionType;
|
|
206497
|
+
break;
|
|
206498
|
+
}
|
|
206499
|
+
break;
|
|
206500
|
+
case "CMS_ACCESS_SUBMISSION_TYPE_UNKNOWN":
|
|
206501
|
+
case 0:
|
|
206502
|
+
message.submissionType = 0;
|
|
206503
|
+
break;
|
|
206504
|
+
case "CMS_ACCESS_SUBMISSION_TYPE_ELIGIBILITY":
|
|
206505
|
+
case 1:
|
|
206506
|
+
message.submissionType = 1;
|
|
206507
|
+
break;
|
|
206508
|
+
case "CMS_ACCESS_SUBMISSION_TYPE_ALIGNMENT":
|
|
206509
|
+
case 2:
|
|
206510
|
+
message.submissionType = 2;
|
|
206511
|
+
break;
|
|
206512
|
+
case "CMS_ACCESS_SUBMISSION_TYPE_UNALIGNMENT":
|
|
206513
|
+
case 3:
|
|
206514
|
+
message.submissionType = 3;
|
|
206515
|
+
break;
|
|
206516
|
+
}
|
|
206517
|
+
if (object.failureReason !== 0 && (typeof object.failureReason !== "string" || $root.CmsAccessFailureReason[object.failureReason] !== 0))
|
|
206518
|
+
switch (object.failureReason) {
|
|
206519
|
+
default:
|
|
206520
|
+
if (typeof object.failureReason === "number") {
|
|
206521
|
+
message.failureReason = object.failureReason;
|
|
206522
|
+
break;
|
|
206523
|
+
}
|
|
206524
|
+
break;
|
|
206525
|
+
case "CMS_ACCESS_FAILURE_REASON_UNKNOWN":
|
|
206526
|
+
case 0:
|
|
206527
|
+
message.failureReason = 0;
|
|
206528
|
+
break;
|
|
206529
|
+
case "CMS_ACCESS_FAILURE_REASON_SUBMIT_ERROR":
|
|
206530
|
+
case 1:
|
|
206531
|
+
message.failureReason = 1;
|
|
206532
|
+
break;
|
|
206533
|
+
case "CMS_ACCESS_FAILURE_REASON_POLL_TIMEOUT":
|
|
206534
|
+
case 2:
|
|
206535
|
+
message.failureReason = 2;
|
|
206536
|
+
break;
|
|
206537
|
+
case "CMS_ACCESS_FAILURE_REASON_POLL_ERROR":
|
|
206538
|
+
case 3:
|
|
206539
|
+
message.failureReason = 3;
|
|
206540
|
+
break;
|
|
206541
|
+
case "CMS_ACCESS_FAILURE_REASON_INVALID_RESPONSE":
|
|
206542
|
+
case 4:
|
|
206543
|
+
message.failureReason = 4;
|
|
206544
|
+
break;
|
|
206545
|
+
}
|
|
206546
|
+
if (object.errorDetail != null)
|
|
206547
|
+
if (typeof object.errorDetail !== "string" || object.errorDetail.length)
|
|
206548
|
+
message.errorDetail = String(object.errorDetail);
|
|
206549
|
+
if (object.cmsSubmissionId != null)
|
|
206550
|
+
if (typeof object.cmsSubmissionId !== "string" || object.cmsSubmissionId.length)
|
|
206551
|
+
message.cmsSubmissionId = String(object.cmsSubmissionId);
|
|
206552
|
+
if (object.pollCount != null)
|
|
206553
|
+
if (Number(object.pollCount) !== 0)
|
|
206554
|
+
message.pollCount = object.pollCount >>> 0;
|
|
206555
|
+
return message;
|
|
206556
|
+
};
|
|
206557
|
+
|
|
206558
|
+
/**
|
|
206559
|
+
* Creates a plain object from a CmsAccessSubmissionFailed message. Also converts values to other types if specified.
|
|
206560
|
+
* @function toObject
|
|
206561
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206562
|
+
* @static
|
|
206563
|
+
* @param {CmsAccessSubmissionFailed} message CmsAccessSubmissionFailed
|
|
206564
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
206565
|
+
* @returns {Object.<string,*>} Plain object
|
|
206566
|
+
*/
|
|
206567
|
+
CmsAccessSubmissionFailed.toObject = function toObject(message, options) {
|
|
206568
|
+
if (!options)
|
|
206569
|
+
options = {};
|
|
206570
|
+
var object = {};
|
|
206571
|
+
if (options.defaults) {
|
|
206572
|
+
if ($util.Long) {
|
|
206573
|
+
var long = new $util.Long(0, 0, true);
|
|
206574
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
206575
|
+
} else
|
|
206576
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
206577
|
+
object.hsUserId = "";
|
|
206578
|
+
object.trackingId = "";
|
|
206579
|
+
object.submissionType = options.enums === String ? "CMS_ACCESS_SUBMISSION_TYPE_UNKNOWN" : 0;
|
|
206580
|
+
object.failureReason = options.enums === String ? "CMS_ACCESS_FAILURE_REASON_UNKNOWN" : 0;
|
|
206581
|
+
object.errorDetail = "";
|
|
206582
|
+
object.cmsSubmissionId = "";
|
|
206583
|
+
object.pollCount = 0;
|
|
206584
|
+
}
|
|
206585
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
206586
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
206587
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
206588
|
+
else if (typeof message.timestamp === "number")
|
|
206589
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
206590
|
+
else
|
|
206591
|
+
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;
|
|
206592
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
206593
|
+
object.hsUserId = message.hsUserId;
|
|
206594
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
206595
|
+
object.trackingId = message.trackingId;
|
|
206596
|
+
if (message.submissionType != null && message.hasOwnProperty("submissionType"))
|
|
206597
|
+
object.submissionType = options.enums === String ? $root.CmsAccessSubmissionType[message.submissionType] === undefined ? message.submissionType : $root.CmsAccessSubmissionType[message.submissionType] : message.submissionType;
|
|
206598
|
+
if (message.failureReason != null && message.hasOwnProperty("failureReason"))
|
|
206599
|
+
object.failureReason = options.enums === String ? $root.CmsAccessFailureReason[message.failureReason] === undefined ? message.failureReason : $root.CmsAccessFailureReason[message.failureReason] : message.failureReason;
|
|
206600
|
+
if (message.errorDetail != null && message.hasOwnProperty("errorDetail"))
|
|
206601
|
+
object.errorDetail = message.errorDetail;
|
|
206602
|
+
if (message.cmsSubmissionId != null && message.hasOwnProperty("cmsSubmissionId"))
|
|
206603
|
+
object.cmsSubmissionId = message.cmsSubmissionId;
|
|
206604
|
+
if (message.pollCount != null && message.hasOwnProperty("pollCount"))
|
|
206605
|
+
object.pollCount = message.pollCount;
|
|
206606
|
+
return object;
|
|
206607
|
+
};
|
|
206608
|
+
|
|
206609
|
+
/**
|
|
206610
|
+
* Converts this CmsAccessSubmissionFailed to JSON.
|
|
206611
|
+
* @function toJSON
|
|
206612
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206613
|
+
* @instance
|
|
206614
|
+
* @returns {Object.<string,*>} JSON object
|
|
206615
|
+
*/
|
|
206616
|
+
CmsAccessSubmissionFailed.prototype.toJSON = function toJSON() {
|
|
206617
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
206618
|
+
};
|
|
206619
|
+
|
|
206620
|
+
/**
|
|
206621
|
+
* Gets the type url for CmsAccessSubmissionFailed
|
|
206622
|
+
* @function getTypeUrl
|
|
206623
|
+
* @memberof CmsAccessSubmissionFailed
|
|
206624
|
+
* @static
|
|
206625
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
206626
|
+
* @returns {string} The type url
|
|
206627
|
+
*/
|
|
206628
|
+
CmsAccessSubmissionFailed.getTypeUrl = function getTypeUrl(prefix) {
|
|
206629
|
+
if (prefix === undefined)
|
|
206630
|
+
prefix = "type.googleapis.com";
|
|
206631
|
+
return prefix + "/CmsAccessSubmissionFailed";
|
|
206632
|
+
};
|
|
206633
|
+
|
|
206634
|
+
return CmsAccessSubmissionFailed;
|
|
206635
|
+
})();
|
|
206636
|
+
|
|
206637
|
+
$root.CmsAccessMemberDisenrolled = (function() {
|
|
206638
|
+
|
|
206639
|
+
/**
|
|
206640
|
+
* Properties of a CmsAccessMemberDisenrolled.
|
|
206641
|
+
* @typedef {Object} CmsAccessMemberDisenrolled.$Properties
|
|
206642
|
+
* @property {number|Long|null} [timestamp] CmsAccessMemberDisenrolled timestamp
|
|
206643
|
+
* @property {string|null} [hsUserId] CmsAccessMemberDisenrolled hsUserId
|
|
206644
|
+
* @property {string|null} [trackingId] CmsAccessMemberDisenrolled trackingId
|
|
206645
|
+
* @property {CmsAccessDisenrollmentReason|null} [reason] CmsAccessMemberDisenrolled reason
|
|
206646
|
+
* @property {number|Long|null} [effectiveAt] CmsAccessMemberDisenrolled effectiveAt
|
|
206647
|
+
* @property {string|null} [detail] CmsAccessMemberDisenrolled detail
|
|
206648
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
206649
|
+
*/
|
|
206650
|
+
|
|
206651
|
+
/**
|
|
206652
|
+
* Properties of a CmsAccessMemberDisenrolled.
|
|
206653
|
+
* @name ICmsAccessMemberDisenrolled
|
|
206654
|
+
* @interface ICmsAccessMemberDisenrolled
|
|
206655
|
+
* @augments CmsAccessMemberDisenrolled.$Properties
|
|
206656
|
+
* @deprecated Use CmsAccessMemberDisenrolled.$Properties instead.
|
|
206657
|
+
*/
|
|
206658
|
+
|
|
206659
|
+
/**
|
|
206660
|
+
* Shape of a CmsAccessMemberDisenrolled.
|
|
206661
|
+
* @typedef {CmsAccessMemberDisenrolled.$Properties} CmsAccessMemberDisenrolled.$Shape
|
|
206662
|
+
*/
|
|
206663
|
+
|
|
206664
|
+
/**
|
|
206665
|
+
* Constructs a new CmsAccessMemberDisenrolled.
|
|
206666
|
+
* @name CmsAccessMemberDisenrolled
|
|
206667
|
+
* @classdesc Published when a CMS ACCESS member is disenrolled (voluntarily or involuntarily).
|
|
206668
|
+
* This event triggers subscription cancellation in hs-subscription-service.
|
|
206669
|
+
* Fired by: hs-cms-access-service
|
|
206670
|
+
* Responsible team: Health Plans
|
|
206671
|
+
* @constructor
|
|
206672
|
+
* @param {CmsAccessMemberDisenrolled.$Properties=} [properties] Properties to set
|
|
206673
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
206674
|
+
*/
|
|
206675
|
+
function CmsAccessMemberDisenrolled(properties) {
|
|
206676
|
+
if (properties)
|
|
206677
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
206678
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
206679
|
+
this[keys[i]] = properties[keys[i]];
|
|
206680
|
+
}
|
|
206681
|
+
|
|
206682
|
+
/**
|
|
206683
|
+
* CmsAccessMemberDisenrolled timestamp.
|
|
206684
|
+
* @member {number|Long} timestamp
|
|
206685
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206686
|
+
* @instance
|
|
206687
|
+
*/
|
|
206688
|
+
CmsAccessMemberDisenrolled.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
206689
|
+
|
|
206690
|
+
/**
|
|
206691
|
+
* CmsAccessMemberDisenrolled hsUserId.
|
|
206692
|
+
* @member {string} hsUserId
|
|
206693
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206694
|
+
* @instance
|
|
206695
|
+
*/
|
|
206696
|
+
CmsAccessMemberDisenrolled.prototype.hsUserId = "";
|
|
206697
|
+
|
|
206698
|
+
/**
|
|
206699
|
+
* CmsAccessMemberDisenrolled trackingId.
|
|
206700
|
+
* @member {string} trackingId
|
|
206701
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206702
|
+
* @instance
|
|
206703
|
+
*/
|
|
206704
|
+
CmsAccessMemberDisenrolled.prototype.trackingId = "";
|
|
206705
|
+
|
|
206706
|
+
/**
|
|
206707
|
+
* CmsAccessMemberDisenrolled reason.
|
|
206708
|
+
* @member {CmsAccessDisenrollmentReason} reason
|
|
206709
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206710
|
+
* @instance
|
|
206711
|
+
*/
|
|
206712
|
+
CmsAccessMemberDisenrolled.prototype.reason = 0;
|
|
206713
|
+
|
|
206714
|
+
/**
|
|
206715
|
+
* CmsAccessMemberDisenrolled effectiveAt.
|
|
206716
|
+
* @member {number|Long} effectiveAt
|
|
206717
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206718
|
+
* @instance
|
|
206719
|
+
*/
|
|
206720
|
+
CmsAccessMemberDisenrolled.prototype.effectiveAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
206721
|
+
|
|
206722
|
+
/**
|
|
206723
|
+
* CmsAccessMemberDisenrolled detail.
|
|
206724
|
+
* @member {string} detail
|
|
206725
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206726
|
+
* @instance
|
|
206727
|
+
*/
|
|
206728
|
+
CmsAccessMemberDisenrolled.prototype.detail = "";
|
|
206729
|
+
|
|
206730
|
+
/**
|
|
206731
|
+
* Creates a new CmsAccessMemberDisenrolled instance using the specified properties.
|
|
206732
|
+
* @function create
|
|
206733
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206734
|
+
* @static
|
|
206735
|
+
* @param {CmsAccessMemberDisenrolled.$Properties=} [properties] Properties to set
|
|
206736
|
+
* @returns {CmsAccessMemberDisenrolled} CmsAccessMemberDisenrolled instance
|
|
206737
|
+
* @type {{
|
|
206738
|
+
* (properties: CmsAccessMemberDisenrolled.$Shape): CmsAccessMemberDisenrolled & CmsAccessMemberDisenrolled.$Shape;
|
|
206739
|
+
* (properties?: CmsAccessMemberDisenrolled.$Properties): CmsAccessMemberDisenrolled;
|
|
206740
|
+
* }}
|
|
206741
|
+
*/
|
|
206742
|
+
CmsAccessMemberDisenrolled.create = function create(properties) {
|
|
206743
|
+
return new CmsAccessMemberDisenrolled(properties);
|
|
206744
|
+
};
|
|
206745
|
+
|
|
206746
|
+
/**
|
|
206747
|
+
* Encodes the specified CmsAccessMemberDisenrolled message. Does not implicitly {@link CmsAccessMemberDisenrolled.verify|verify} messages.
|
|
206748
|
+
* @function encode
|
|
206749
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206750
|
+
* @static
|
|
206751
|
+
* @param {CmsAccessMemberDisenrolled.$Properties} message CmsAccessMemberDisenrolled message or plain object to encode
|
|
206752
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
206753
|
+
* @returns {$protobuf.Writer} Writer
|
|
206754
|
+
*/
|
|
206755
|
+
CmsAccessMemberDisenrolled.encode = function encode(message, writer) {
|
|
206756
|
+
if (!writer)
|
|
206757
|
+
writer = $Writer.create();
|
|
206758
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
206759
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
206760
|
+
if (message.hsUserId != null && Object.hasOwnProperty.call(message, "hsUserId"))
|
|
206761
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.hsUserId);
|
|
206762
|
+
if (message.trackingId != null && Object.hasOwnProperty.call(message, "trackingId"))
|
|
206763
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.trackingId);
|
|
206764
|
+
if (message.reason != null && Object.hasOwnProperty.call(message, "reason"))
|
|
206765
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.reason);
|
|
206766
|
+
if (message.effectiveAt != null && Object.hasOwnProperty.call(message, "effectiveAt"))
|
|
206767
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.effectiveAt);
|
|
206768
|
+
if (message.detail != null && Object.hasOwnProperty.call(message, "detail"))
|
|
206769
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.detail);
|
|
206770
|
+
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
206771
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
206772
|
+
writer.raw(message.$unknowns[i]);
|
|
206773
|
+
return writer;
|
|
206774
|
+
};
|
|
206775
|
+
|
|
206776
|
+
/**
|
|
206777
|
+
* Encodes the specified CmsAccessMemberDisenrolled message, length delimited. Does not implicitly {@link CmsAccessMemberDisenrolled.verify|verify} messages.
|
|
206778
|
+
* @function encodeDelimited
|
|
206779
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206780
|
+
* @static
|
|
206781
|
+
* @param {CmsAccessMemberDisenrolled.$Properties} message CmsAccessMemberDisenrolled message or plain object to encode
|
|
206782
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
206783
|
+
* @returns {$protobuf.Writer} Writer
|
|
206784
|
+
*/
|
|
206785
|
+
CmsAccessMemberDisenrolled.encodeDelimited = function encodeDelimited(message, writer) {
|
|
206786
|
+
return this.encode(message, writer).ldelim();
|
|
206787
|
+
};
|
|
206788
|
+
|
|
206789
|
+
/**
|
|
206790
|
+
* Decodes a CmsAccessMemberDisenrolled message from the specified reader or buffer.
|
|
206791
|
+
* @function decode
|
|
206792
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206793
|
+
* @static
|
|
206794
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
206795
|
+
* @param {number} [length] Message length if known beforehand
|
|
206796
|
+
* @returns {CmsAccessMemberDisenrolled & CmsAccessMemberDisenrolled.$Shape} CmsAccessMemberDisenrolled
|
|
206797
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
206798
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
206799
|
+
*/
|
|
206800
|
+
CmsAccessMemberDisenrolled.decode = function decode(reader, length, _end, _depth, _target) {
|
|
206801
|
+
if (!(reader instanceof $Reader))
|
|
206802
|
+
reader = $Reader.create(reader);
|
|
206803
|
+
if (_depth === undefined)
|
|
206804
|
+
_depth = 0;
|
|
206805
|
+
if (_depth > $Reader.recursionLimit)
|
|
206806
|
+
throw Error("max depth exceeded");
|
|
206807
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = _target || new $root.CmsAccessMemberDisenrolled(), value;
|
|
206808
|
+
while (reader.pos < end) {
|
|
206809
|
+
var start = reader.pos;
|
|
206810
|
+
var tag = reader.tag();
|
|
206811
|
+
if (tag === _end) {
|
|
206812
|
+
_end = undefined;
|
|
206813
|
+
break;
|
|
206814
|
+
}
|
|
206815
|
+
var wireType = tag & 7;
|
|
206816
|
+
switch (tag >>>= 3) {
|
|
206817
|
+
case 1: {
|
|
206818
|
+
if (wireType !== 0)
|
|
206819
|
+
break;
|
|
206820
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
206821
|
+
message.timestamp = value;
|
|
206822
|
+
else
|
|
206823
|
+
delete message.timestamp;
|
|
206824
|
+
continue;
|
|
206825
|
+
}
|
|
206826
|
+
case 2: {
|
|
206827
|
+
if (wireType !== 2)
|
|
206828
|
+
break;
|
|
206829
|
+
if ((value = reader.string()).length)
|
|
206830
|
+
message.hsUserId = value;
|
|
206831
|
+
else
|
|
206832
|
+
delete message.hsUserId;
|
|
206833
|
+
continue;
|
|
206834
|
+
}
|
|
206835
|
+
case 3: {
|
|
206836
|
+
if (wireType !== 2)
|
|
206837
|
+
break;
|
|
206838
|
+
if ((value = reader.string()).length)
|
|
206839
|
+
message.trackingId = value;
|
|
206840
|
+
else
|
|
206841
|
+
delete message.trackingId;
|
|
206842
|
+
continue;
|
|
206843
|
+
}
|
|
206844
|
+
case 4: {
|
|
206845
|
+
if (wireType !== 0)
|
|
206846
|
+
break;
|
|
206847
|
+
if (value = reader.int32())
|
|
206848
|
+
message.reason = value;
|
|
206849
|
+
else
|
|
206850
|
+
delete message.reason;
|
|
206851
|
+
continue;
|
|
206852
|
+
}
|
|
206853
|
+
case 5: {
|
|
206854
|
+
if (wireType !== 0)
|
|
206855
|
+
break;
|
|
206856
|
+
if (typeof (value = reader.uint64()) === "object" ? value.low || value.high : value !== 0)
|
|
206857
|
+
message.effectiveAt = value;
|
|
206858
|
+
else
|
|
206859
|
+
delete message.effectiveAt;
|
|
206860
|
+
continue;
|
|
206861
|
+
}
|
|
206862
|
+
case 6: {
|
|
206863
|
+
if (wireType !== 2)
|
|
206864
|
+
break;
|
|
206865
|
+
if ((value = reader.string()).length)
|
|
206866
|
+
message.detail = value;
|
|
206867
|
+
else
|
|
206868
|
+
delete message.detail;
|
|
206869
|
+
continue;
|
|
206870
|
+
}
|
|
206871
|
+
}
|
|
206872
|
+
reader.skipType(wireType, _depth, tag);
|
|
206873
|
+
$util.makeProp(message, "$unknowns", false);
|
|
206874
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
206875
|
+
}
|
|
206876
|
+
if (_end !== undefined)
|
|
206877
|
+
throw Error("missing end group");
|
|
206878
|
+
return message;
|
|
206879
|
+
};
|
|
206880
|
+
|
|
206881
|
+
/**
|
|
206882
|
+
* Decodes a CmsAccessMemberDisenrolled message from the specified reader or buffer, length delimited.
|
|
206883
|
+
* @function decodeDelimited
|
|
206884
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206885
|
+
* @static
|
|
206886
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
206887
|
+
* @returns {CmsAccessMemberDisenrolled & CmsAccessMemberDisenrolled.$Shape} CmsAccessMemberDisenrolled
|
|
206888
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
206889
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
206890
|
+
*/
|
|
206891
|
+
CmsAccessMemberDisenrolled.decodeDelimited = function decodeDelimited(reader) {
|
|
206892
|
+
if (!(reader instanceof $Reader))
|
|
206893
|
+
reader = new $Reader(reader);
|
|
206894
|
+
return this.decode(reader, reader.uint32());
|
|
206895
|
+
};
|
|
206896
|
+
|
|
206897
|
+
/**
|
|
206898
|
+
* Verifies a CmsAccessMemberDisenrolled message.
|
|
206899
|
+
* @function verify
|
|
206900
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206901
|
+
* @static
|
|
206902
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
206903
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
206904
|
+
*/
|
|
206905
|
+
CmsAccessMemberDisenrolled.verify = function verify(message, _depth) {
|
|
206906
|
+
if (typeof message !== "object" || message === null)
|
|
206907
|
+
return "object expected";
|
|
206908
|
+
if (_depth === undefined)
|
|
206909
|
+
_depth = 0;
|
|
206910
|
+
if (_depth > $util.recursionLimit)
|
|
206911
|
+
return "max depth exceeded";
|
|
206912
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
206913
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
206914
|
+
return "timestamp: integer|Long expected";
|
|
206915
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
206916
|
+
if (!$util.isString(message.hsUserId))
|
|
206917
|
+
return "hsUserId: string expected";
|
|
206918
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
206919
|
+
if (!$util.isString(message.trackingId))
|
|
206920
|
+
return "trackingId: string expected";
|
|
206921
|
+
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
206922
|
+
switch (message.reason) {
|
|
206923
|
+
default:
|
|
206924
|
+
return "reason: enum value expected";
|
|
206925
|
+
case 0:
|
|
206926
|
+
case 1:
|
|
206927
|
+
case 2:
|
|
206928
|
+
case 3:
|
|
206929
|
+
case 4:
|
|
206930
|
+
case 5:
|
|
206931
|
+
break;
|
|
206932
|
+
}
|
|
206933
|
+
if (message.effectiveAt != null && message.hasOwnProperty("effectiveAt"))
|
|
206934
|
+
if (!$util.isInteger(message.effectiveAt) && !(message.effectiveAt && $util.isInteger(message.effectiveAt.low) && $util.isInteger(message.effectiveAt.high)))
|
|
206935
|
+
return "effectiveAt: integer|Long expected";
|
|
206936
|
+
if (message.detail != null && message.hasOwnProperty("detail"))
|
|
206937
|
+
if (!$util.isString(message.detail))
|
|
206938
|
+
return "detail: string expected";
|
|
206939
|
+
return null;
|
|
206940
|
+
};
|
|
206941
|
+
|
|
206942
|
+
/**
|
|
206943
|
+
* Creates a CmsAccessMemberDisenrolled message from a plain object. Also converts values to their respective internal types.
|
|
206944
|
+
* @function fromObject
|
|
206945
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
206946
|
+
* @static
|
|
206947
|
+
* @param {Object.<string,*>} object Plain object
|
|
206948
|
+
* @returns {CmsAccessMemberDisenrolled} CmsAccessMemberDisenrolled
|
|
206949
|
+
*/
|
|
206950
|
+
CmsAccessMemberDisenrolled.fromObject = function fromObject(object, _depth) {
|
|
206951
|
+
if (object instanceof $root.CmsAccessMemberDisenrolled)
|
|
206952
|
+
return object;
|
|
206953
|
+
if (_depth === undefined)
|
|
206954
|
+
_depth = 0;
|
|
206955
|
+
if (_depth > $util.recursionLimit)
|
|
206956
|
+
throw Error("max depth exceeded");
|
|
206957
|
+
var message = new $root.CmsAccessMemberDisenrolled();
|
|
206958
|
+
if (object.timestamp != null)
|
|
206959
|
+
if (typeof object.timestamp === "object" ? object.timestamp.low || object.timestamp.high : Number(object.timestamp) !== 0)
|
|
206960
|
+
if ($util.Long)
|
|
206961
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
206962
|
+
else if (typeof object.timestamp === "string")
|
|
206963
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
206964
|
+
else if (typeof object.timestamp === "number")
|
|
206965
|
+
message.timestamp = object.timestamp;
|
|
206966
|
+
else if (typeof object.timestamp === "object")
|
|
206967
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
206968
|
+
if (object.hsUserId != null)
|
|
206969
|
+
if (typeof object.hsUserId !== "string" || object.hsUserId.length)
|
|
206970
|
+
message.hsUserId = String(object.hsUserId);
|
|
206971
|
+
if (object.trackingId != null)
|
|
206972
|
+
if (typeof object.trackingId !== "string" || object.trackingId.length)
|
|
206973
|
+
message.trackingId = String(object.trackingId);
|
|
206974
|
+
if (object.reason !== 0 && (typeof object.reason !== "string" || $root.CmsAccessDisenrollmentReason[object.reason] !== 0))
|
|
206975
|
+
switch (object.reason) {
|
|
206976
|
+
default:
|
|
206977
|
+
if (typeof object.reason === "number") {
|
|
206978
|
+
message.reason = object.reason;
|
|
206979
|
+
break;
|
|
206980
|
+
}
|
|
206981
|
+
break;
|
|
206982
|
+
case "CMS_ACCESS_DISENROLLMENT_REASON_UNKNOWN":
|
|
206983
|
+
case 0:
|
|
206984
|
+
message.reason = 0;
|
|
206985
|
+
break;
|
|
206986
|
+
case "CMS_ACCESS_DISENROLLMENT_REASON_GEOGRAPHIC_RELOCATED":
|
|
206987
|
+
case 1:
|
|
206988
|
+
message.reason = 1;
|
|
206989
|
+
break;
|
|
206990
|
+
case "CMS_ACCESS_DISENROLLMENT_REASON_LOSS_OF_CONTACT":
|
|
206991
|
+
case 2:
|
|
206992
|
+
message.reason = 2;
|
|
206993
|
+
break;
|
|
206994
|
+
case "CMS_ACCESS_DISENROLLMENT_REASON_NO_LONGER_CLINICALLY_ELIGIBLE":
|
|
206995
|
+
case 3:
|
|
206996
|
+
message.reason = 3;
|
|
206997
|
+
break;
|
|
206998
|
+
case "CMS_ACCESS_DISENROLLMENT_REASON_PATIENT_INITIATED":
|
|
206999
|
+
case 4:
|
|
207000
|
+
message.reason = 4;
|
|
207001
|
+
break;
|
|
207002
|
+
case "CMS_ACCESS_DISENROLLMENT_REASON_CMS_INITIATED":
|
|
207003
|
+
case 5:
|
|
207004
|
+
message.reason = 5;
|
|
207005
|
+
break;
|
|
207006
|
+
}
|
|
207007
|
+
if (object.effectiveAt != null)
|
|
207008
|
+
if (typeof object.effectiveAt === "object" ? object.effectiveAt.low || object.effectiveAt.high : Number(object.effectiveAt) !== 0)
|
|
207009
|
+
if ($util.Long)
|
|
207010
|
+
(message.effectiveAt = $util.Long.fromValue(object.effectiveAt)).unsigned = true;
|
|
207011
|
+
else if (typeof object.effectiveAt === "string")
|
|
207012
|
+
message.effectiveAt = parseInt(object.effectiveAt, 10);
|
|
207013
|
+
else if (typeof object.effectiveAt === "number")
|
|
207014
|
+
message.effectiveAt = object.effectiveAt;
|
|
207015
|
+
else if (typeof object.effectiveAt === "object")
|
|
207016
|
+
message.effectiveAt = new $util.LongBits(object.effectiveAt.low >>> 0, object.effectiveAt.high >>> 0).toNumber(true);
|
|
207017
|
+
if (object.detail != null)
|
|
207018
|
+
if (typeof object.detail !== "string" || object.detail.length)
|
|
207019
|
+
message.detail = String(object.detail);
|
|
207020
|
+
return message;
|
|
207021
|
+
};
|
|
207022
|
+
|
|
207023
|
+
/**
|
|
207024
|
+
* Creates a plain object from a CmsAccessMemberDisenrolled message. Also converts values to other types if specified.
|
|
207025
|
+
* @function toObject
|
|
207026
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
207027
|
+
* @static
|
|
207028
|
+
* @param {CmsAccessMemberDisenrolled} message CmsAccessMemberDisenrolled
|
|
207029
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
207030
|
+
* @returns {Object.<string,*>} Plain object
|
|
207031
|
+
*/
|
|
207032
|
+
CmsAccessMemberDisenrolled.toObject = function toObject(message, options) {
|
|
207033
|
+
if (!options)
|
|
207034
|
+
options = {};
|
|
207035
|
+
var object = {};
|
|
207036
|
+
if (options.defaults) {
|
|
207037
|
+
if ($util.Long) {
|
|
207038
|
+
var long = new $util.Long(0, 0, true);
|
|
207039
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
207040
|
+
} else
|
|
207041
|
+
object.timestamp = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
207042
|
+
object.hsUserId = "";
|
|
207043
|
+
object.trackingId = "";
|
|
207044
|
+
object.reason = options.enums === String ? "CMS_ACCESS_DISENROLLMENT_REASON_UNKNOWN" : 0;
|
|
207045
|
+
if ($util.Long) {
|
|
207046
|
+
var long = new $util.Long(0, 0, true);
|
|
207047
|
+
object.effectiveAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
207048
|
+
} else
|
|
207049
|
+
object.effectiveAt = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
207050
|
+
object.detail = "";
|
|
207051
|
+
}
|
|
207052
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
207053
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
207054
|
+
object.timestamp = typeof message.timestamp === "number" ? BigInt(message.timestamp) : $util.Long.fromBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0, true).toBigInt();
|
|
207055
|
+
else if (typeof message.timestamp === "number")
|
|
207056
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
207057
|
+
else
|
|
207058
|
+
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;
|
|
207059
|
+
if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
|
|
207060
|
+
object.hsUserId = message.hsUserId;
|
|
207061
|
+
if (message.trackingId != null && message.hasOwnProperty("trackingId"))
|
|
207062
|
+
object.trackingId = message.trackingId;
|
|
207063
|
+
if (message.reason != null && message.hasOwnProperty("reason"))
|
|
207064
|
+
object.reason = options.enums === String ? $root.CmsAccessDisenrollmentReason[message.reason] === undefined ? message.reason : $root.CmsAccessDisenrollmentReason[message.reason] : message.reason;
|
|
207065
|
+
if (message.effectiveAt != null && message.hasOwnProperty("effectiveAt"))
|
|
207066
|
+
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
207067
|
+
object.effectiveAt = typeof message.effectiveAt === "number" ? BigInt(message.effectiveAt) : $util.Long.fromBits(message.effectiveAt.low >>> 0, message.effectiveAt.high >>> 0, true).toBigInt();
|
|
207068
|
+
else if (typeof message.effectiveAt === "number")
|
|
207069
|
+
object.effectiveAt = options.longs === String ? String(message.effectiveAt) : message.effectiveAt;
|
|
207070
|
+
else
|
|
207071
|
+
object.effectiveAt = options.longs === String ? $util.Long.prototype.toString.call(message.effectiveAt) : options.longs === Number ? new $util.LongBits(message.effectiveAt.low >>> 0, message.effectiveAt.high >>> 0).toNumber(true) : message.effectiveAt;
|
|
207072
|
+
if (message.detail != null && message.hasOwnProperty("detail"))
|
|
207073
|
+
object.detail = message.detail;
|
|
207074
|
+
return object;
|
|
207075
|
+
};
|
|
207076
|
+
|
|
207077
|
+
/**
|
|
207078
|
+
* Converts this CmsAccessMemberDisenrolled to JSON.
|
|
207079
|
+
* @function toJSON
|
|
207080
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
207081
|
+
* @instance
|
|
207082
|
+
* @returns {Object.<string,*>} JSON object
|
|
207083
|
+
*/
|
|
207084
|
+
CmsAccessMemberDisenrolled.prototype.toJSON = function toJSON() {
|
|
207085
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
207086
|
+
};
|
|
207087
|
+
|
|
207088
|
+
/**
|
|
207089
|
+
* Gets the type url for CmsAccessMemberDisenrolled
|
|
207090
|
+
* @function getTypeUrl
|
|
207091
|
+
* @memberof CmsAccessMemberDisenrolled
|
|
207092
|
+
* @static
|
|
207093
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
207094
|
+
* @returns {string} The type url
|
|
207095
|
+
*/
|
|
207096
|
+
CmsAccessMemberDisenrolled.getTypeUrl = function getTypeUrl(prefix) {
|
|
207097
|
+
if (prefix === undefined)
|
|
207098
|
+
prefix = "type.googleapis.com";
|
|
207099
|
+
return prefix + "/CmsAccessMemberDisenrolled";
|
|
207100
|
+
};
|
|
207101
|
+
|
|
207102
|
+
return CmsAccessMemberDisenrolled;
|
|
207103
|
+
})();
|
|
207104
|
+
|
|
204530
207105
|
$root.TaggedCustomField = (function() {
|
|
204531
207106
|
|
|
204532
207107
|
/**
|