@headspace/protos-events 1.606.0 → 1.608.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 +462 -0
- package/lib/index.js +1948 -178
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -37507,6 +37507,7 @@ $root.b2b = (function() {
|
|
|
37507
37507
|
* @property {b2b.EnrollmentFlow|null} [enrollmentFlow] B2BSubscriptionManagement enrollmentFlow
|
|
37508
37508
|
* @property {boolean|null} [elfDependentsEnabled] B2BSubscriptionManagement elfDependentsEnabled
|
|
37509
37509
|
* @property {b2b.EapType|null} [eapType] B2BSubscriptionManagement eapType
|
|
37510
|
+
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] B2BSubscriptionManagement clinicalCoverageType
|
|
37510
37511
|
*/
|
|
37511
37512
|
|
|
37512
37513
|
/**
|
|
@@ -37629,6 +37630,14 @@ $root.b2b = (function() {
|
|
|
37629
37630
|
*/
|
|
37630
37631
|
B2BSubscriptionManagement.prototype.eapType = 0;
|
|
37631
37632
|
|
|
37633
|
+
/**
|
|
37634
|
+
* B2BSubscriptionManagement clinicalCoverageType.
|
|
37635
|
+
* @member {b2b.ClinicalCoverageType} clinicalCoverageType
|
|
37636
|
+
* @memberof b2b.B2BSubscriptionManagement
|
|
37637
|
+
* @instance
|
|
37638
|
+
*/
|
|
37639
|
+
B2BSubscriptionManagement.prototype.clinicalCoverageType = 0;
|
|
37640
|
+
|
|
37632
37641
|
/**
|
|
37633
37642
|
* Creates a new B2BSubscriptionManagement instance using the specified properties.
|
|
37634
37643
|
* @function create
|
|
@@ -37683,6 +37692,8 @@ $root.b2b = (function() {
|
|
|
37683
37692
|
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.elfDependentsEnabled);
|
|
37684
37693
|
if (message.eapType != null && message.hasOwnProperty("eapType"))
|
|
37685
37694
|
writer.uint32(/* id 14, wireType 0 =*/112).int32(message.eapType);
|
|
37695
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
37696
|
+
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.clinicalCoverageType);
|
|
37686
37697
|
return writer;
|
|
37687
37698
|
};
|
|
37688
37699
|
|
|
@@ -37763,6 +37774,9 @@ $root.b2b = (function() {
|
|
|
37763
37774
|
case 14:
|
|
37764
37775
|
message.eapType = reader.int32();
|
|
37765
37776
|
break;
|
|
37777
|
+
case 15:
|
|
37778
|
+
message.clinicalCoverageType = reader.int32();
|
|
37779
|
+
break;
|
|
37766
37780
|
default:
|
|
37767
37781
|
reader.skipType(tag & 7);
|
|
37768
37782
|
break;
|
|
@@ -37862,6 +37876,16 @@ $root.b2b = (function() {
|
|
|
37862
37876
|
case 2:
|
|
37863
37877
|
break;
|
|
37864
37878
|
}
|
|
37879
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
37880
|
+
switch (message.clinicalCoverageType) {
|
|
37881
|
+
default:
|
|
37882
|
+
return "clinicalCoverageType: enum value expected";
|
|
37883
|
+
case 0:
|
|
37884
|
+
case 1:
|
|
37885
|
+
case 2:
|
|
37886
|
+
case 3:
|
|
37887
|
+
break;
|
|
37888
|
+
}
|
|
37865
37889
|
return null;
|
|
37866
37890
|
};
|
|
37867
37891
|
|
|
@@ -37986,6 +38010,24 @@ $root.b2b = (function() {
|
|
|
37986
38010
|
message.eapType = 2;
|
|
37987
38011
|
break;
|
|
37988
38012
|
}
|
|
38013
|
+
switch (object.clinicalCoverageType) {
|
|
38014
|
+
case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
|
|
38015
|
+
case 0:
|
|
38016
|
+
message.clinicalCoverageType = 0;
|
|
38017
|
+
break;
|
|
38018
|
+
case "CLINICAL_COVERAGE_TYPE_NONE":
|
|
38019
|
+
case 1:
|
|
38020
|
+
message.clinicalCoverageType = 1;
|
|
38021
|
+
break;
|
|
38022
|
+
case "CLINICAL_COVERAGE_TYPE_EAP_V2":
|
|
38023
|
+
case 2:
|
|
38024
|
+
message.clinicalCoverageType = 2;
|
|
38025
|
+
break;
|
|
38026
|
+
case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
|
|
38027
|
+
case 3:
|
|
38028
|
+
message.clinicalCoverageType = 3;
|
|
38029
|
+
break;
|
|
38030
|
+
}
|
|
37989
38031
|
return message;
|
|
37990
38032
|
};
|
|
37991
38033
|
|
|
@@ -38033,6 +38075,7 @@ $root.b2b = (function() {
|
|
|
38033
38075
|
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
38034
38076
|
object.elfDependentsEnabled = false;
|
|
38035
38077
|
object.eapType = options.enums === String ? "EAP_TYPE_UNKNOWN" : 0;
|
|
38078
|
+
object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
38036
38079
|
}
|
|
38037
38080
|
if (message.salesforceOpportunityId != null && message.hasOwnProperty("salesforceOpportunityId"))
|
|
38038
38081
|
object.salesforceOpportunityId = message.salesforceOpportunityId;
|
|
@@ -38075,6 +38118,8 @@ $root.b2b = (function() {
|
|
|
38075
38118
|
object.elfDependentsEnabled = message.elfDependentsEnabled;
|
|
38076
38119
|
if (message.eapType != null && message.hasOwnProperty("eapType"))
|
|
38077
38120
|
object.eapType = options.enums === String ? $root.b2b.EapType[message.eapType] : message.eapType;
|
|
38121
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
38122
|
+
object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
|
|
38078
38123
|
return object;
|
|
38079
38124
|
};
|
|
38080
38125
|
|
|
@@ -38344,6 +38389,60 @@ $root.b2b = (function() {
|
|
|
38344
38389
|
return values;
|
|
38345
38390
|
})();
|
|
38346
38391
|
|
|
38392
|
+
/**
|
|
38393
|
+
* ClinicalCoverageType enum.
|
|
38394
|
+
* @name b2b.ClinicalCoverageType
|
|
38395
|
+
* @enum {string}
|
|
38396
|
+
* @property {number} CLINICAL_COVERAGE_TYPE_UNKNOWN=0 CLINICAL_COVERAGE_TYPE_UNKNOWN value
|
|
38397
|
+
* @property {number} CLINICAL_COVERAGE_TYPE_NONE=1 CLINICAL_COVERAGE_TYPE_NONE value
|
|
38398
|
+
* @property {number} CLINICAL_COVERAGE_TYPE_EAP_V2=2 CLINICAL_COVERAGE_TYPE_EAP_V2 value
|
|
38399
|
+
* @property {number} CLINICAL_COVERAGE_TYPE_INTL_THERAPY=3 CLINICAL_COVERAGE_TYPE_INTL_THERAPY value
|
|
38400
|
+
*/
|
|
38401
|
+
b2b.ClinicalCoverageType = (function() {
|
|
38402
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
38403
|
+
values[valuesById[0] = "CLINICAL_COVERAGE_TYPE_UNKNOWN"] = 0;
|
|
38404
|
+
values[valuesById[1] = "CLINICAL_COVERAGE_TYPE_NONE"] = 1;
|
|
38405
|
+
values[valuesById[2] = "CLINICAL_COVERAGE_TYPE_EAP_V2"] = 2;
|
|
38406
|
+
values[valuesById[3] = "CLINICAL_COVERAGE_TYPE_INTL_THERAPY"] = 3;
|
|
38407
|
+
return values;
|
|
38408
|
+
})();
|
|
38409
|
+
|
|
38410
|
+
/**
|
|
38411
|
+
* ClinicalServiceType enum.
|
|
38412
|
+
* @name b2b.ClinicalServiceType
|
|
38413
|
+
* @enum {string}
|
|
38414
|
+
* @property {number} CLINICAL_SERVICE_TYPE_UNKNOWN=0 CLINICAL_SERVICE_TYPE_UNKNOWN value
|
|
38415
|
+
* @property {number} CLINICAL_SERVICE_TYPE_PSYCHIATRY=1 CLINICAL_SERVICE_TYPE_PSYCHIATRY value
|
|
38416
|
+
* @property {number} CLINICAL_SERVICE_TYPE_THERAPY=2 CLINICAL_SERVICE_TYPE_THERAPY value
|
|
38417
|
+
* @property {number} CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY=3 CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY value
|
|
38418
|
+
*/
|
|
38419
|
+
b2b.ClinicalServiceType = (function() {
|
|
38420
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
38421
|
+
values[valuesById[0] = "CLINICAL_SERVICE_TYPE_UNKNOWN"] = 0;
|
|
38422
|
+
values[valuesById[1] = "CLINICAL_SERVICE_TYPE_PSYCHIATRY"] = 1;
|
|
38423
|
+
values[valuesById[2] = "CLINICAL_SERVICE_TYPE_THERAPY"] = 2;
|
|
38424
|
+
values[valuesById[3] = "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY"] = 3;
|
|
38425
|
+
return values;
|
|
38426
|
+
})();
|
|
38427
|
+
|
|
38428
|
+
/**
|
|
38429
|
+
* ClinicalCoverageProvider enum.
|
|
38430
|
+
* @name b2b.ClinicalCoverageProvider
|
|
38431
|
+
* @enum {string}
|
|
38432
|
+
* @property {number} CLINICAL_COVERAGE_PROVIDER_UNKNOWN=0 CLINICAL_COVERAGE_PROVIDER_UNKNOWN value
|
|
38433
|
+
* @property {number} CLINICAL_COVERAGE_PROVIDER_CCA=1 CLINICAL_COVERAGE_PROVIDER_CCA value
|
|
38434
|
+
* @property {number} CLINICAL_COVERAGE_PROVIDER_WPO=2 CLINICAL_COVERAGE_PROVIDER_WPO value
|
|
38435
|
+
* @property {number} CLINICAL_COVERAGE_PROVIDER_NONE=3 CLINICAL_COVERAGE_PROVIDER_NONE value
|
|
38436
|
+
*/
|
|
38437
|
+
b2b.ClinicalCoverageProvider = (function() {
|
|
38438
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
38439
|
+
values[valuesById[0] = "CLINICAL_COVERAGE_PROVIDER_UNKNOWN"] = 0;
|
|
38440
|
+
values[valuesById[1] = "CLINICAL_COVERAGE_PROVIDER_CCA"] = 1;
|
|
38441
|
+
values[valuesById[2] = "CLINICAL_COVERAGE_PROVIDER_WPO"] = 2;
|
|
38442
|
+
values[valuesById[3] = "CLINICAL_COVERAGE_PROVIDER_NONE"] = 3;
|
|
38443
|
+
return values;
|
|
38444
|
+
})();
|
|
38445
|
+
|
|
38347
38446
|
return b2b;
|
|
38348
38447
|
})();
|
|
38349
38448
|
|
|
@@ -117475,29 +117574,30 @@ $root.B2BChallengeCanceled = (function() {
|
|
|
117475
117574
|
return B2BChallengeCanceled;
|
|
117476
117575
|
})();
|
|
117477
117576
|
|
|
117478
|
-
$root.
|
|
117577
|
+
$root.ClinicalCoverageCreated = (function() {
|
|
117479
117578
|
|
|
117480
117579
|
/**
|
|
117481
|
-
* Properties of
|
|
117482
|
-
* @name
|
|
117483
|
-
* @interface
|
|
117484
|
-
* @property {number|Long|null} [orgId]
|
|
117485
|
-
* @property {b2b.
|
|
117486
|
-
* @property {number|Long|null} [coverageTotal]
|
|
117487
|
-
* @property {number|Long|null} [orgSubscriptionEndDate]
|
|
117488
|
-
* @property {number|Long|null} [updatedAt]
|
|
117489
|
-
* @property {b2b.
|
|
117580
|
+
* Properties of a ClinicalCoverageCreated.
|
|
117581
|
+
* @name IClinicalCoverageCreated
|
|
117582
|
+
* @interface IClinicalCoverageCreated
|
|
117583
|
+
* @property {number|Long|null} [orgId] ClinicalCoverageCreated orgId
|
|
117584
|
+
* @property {b2b.ClinicalServiceType|null} [serviceType] ClinicalCoverageCreated serviceType
|
|
117585
|
+
* @property {number|Long|null} [coverageTotal] ClinicalCoverageCreated coverageTotal
|
|
117586
|
+
* @property {number|Long|null} [orgSubscriptionEndDate] ClinicalCoverageCreated orgSubscriptionEndDate
|
|
117587
|
+
* @property {number|Long|null} [updatedAt] ClinicalCoverageCreated updatedAt
|
|
117588
|
+
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageCreated clinicalCoverageProvider
|
|
117589
|
+
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageCreated clinicalCoverageType
|
|
117490
117590
|
*/
|
|
117491
117591
|
|
|
117492
117592
|
/**
|
|
117493
|
-
* Constructs a new
|
|
117494
|
-
* @name
|
|
117495
|
-
* @classdesc Represents
|
|
117496
|
-
* @implements
|
|
117593
|
+
* Constructs a new ClinicalCoverageCreated.
|
|
117594
|
+
* @name ClinicalCoverageCreated
|
|
117595
|
+
* @classdesc Represents a ClinicalCoverageCreated.
|
|
117596
|
+
* @implements IClinicalCoverageCreated
|
|
117497
117597
|
* @constructor
|
|
117498
|
-
* @param {
|
|
117598
|
+
* @param {IClinicalCoverageCreated=} [properties] Properties to set
|
|
117499
117599
|
*/
|
|
117500
|
-
function
|
|
117600
|
+
function ClinicalCoverageCreated(properties) {
|
|
117501
117601
|
if (properties)
|
|
117502
117602
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
117503
117603
|
if (properties[keys[i]] != null)
|
|
@@ -117505,75 +117605,83 @@ $root.EapCoverageCreated = (function() {
|
|
|
117505
117605
|
}
|
|
117506
117606
|
|
|
117507
117607
|
/**
|
|
117508
|
-
*
|
|
117608
|
+
* ClinicalCoverageCreated orgId.
|
|
117509
117609
|
* @member {number|Long} orgId
|
|
117510
|
-
* @memberof
|
|
117610
|
+
* @memberof ClinicalCoverageCreated
|
|
117511
117611
|
* @instance
|
|
117512
117612
|
*/
|
|
117513
|
-
|
|
117613
|
+
ClinicalCoverageCreated.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117514
117614
|
|
|
117515
117615
|
/**
|
|
117516
|
-
*
|
|
117517
|
-
* @member {b2b.
|
|
117518
|
-
* @memberof
|
|
117616
|
+
* ClinicalCoverageCreated serviceType.
|
|
117617
|
+
* @member {b2b.ClinicalServiceType} serviceType
|
|
117618
|
+
* @memberof ClinicalCoverageCreated
|
|
117519
117619
|
* @instance
|
|
117520
117620
|
*/
|
|
117521
|
-
|
|
117621
|
+
ClinicalCoverageCreated.prototype.serviceType = 0;
|
|
117522
117622
|
|
|
117523
117623
|
/**
|
|
117524
|
-
*
|
|
117624
|
+
* ClinicalCoverageCreated coverageTotal.
|
|
117525
117625
|
* @member {number|Long} coverageTotal
|
|
117526
|
-
* @memberof
|
|
117626
|
+
* @memberof ClinicalCoverageCreated
|
|
117527
117627
|
* @instance
|
|
117528
117628
|
*/
|
|
117529
|
-
|
|
117629
|
+
ClinicalCoverageCreated.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117530
117630
|
|
|
117531
117631
|
/**
|
|
117532
|
-
*
|
|
117632
|
+
* ClinicalCoverageCreated orgSubscriptionEndDate.
|
|
117533
117633
|
* @member {number|Long} orgSubscriptionEndDate
|
|
117534
|
-
* @memberof
|
|
117634
|
+
* @memberof ClinicalCoverageCreated
|
|
117535
117635
|
* @instance
|
|
117536
117636
|
*/
|
|
117537
|
-
|
|
117637
|
+
ClinicalCoverageCreated.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117538
117638
|
|
|
117539
117639
|
/**
|
|
117540
|
-
*
|
|
117640
|
+
* ClinicalCoverageCreated updatedAt.
|
|
117541
117641
|
* @member {number|Long} updatedAt
|
|
117542
|
-
* @memberof
|
|
117642
|
+
* @memberof ClinicalCoverageCreated
|
|
117543
117643
|
* @instance
|
|
117544
117644
|
*/
|
|
117545
|
-
|
|
117645
|
+
ClinicalCoverageCreated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117546
117646
|
|
|
117547
117647
|
/**
|
|
117548
|
-
*
|
|
117549
|
-
* @member {b2b.
|
|
117550
|
-
* @memberof
|
|
117648
|
+
* ClinicalCoverageCreated clinicalCoverageProvider.
|
|
117649
|
+
* @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
|
|
117650
|
+
* @memberof ClinicalCoverageCreated
|
|
117551
117651
|
* @instance
|
|
117552
117652
|
*/
|
|
117553
|
-
|
|
117653
|
+
ClinicalCoverageCreated.prototype.clinicalCoverageProvider = 0;
|
|
117554
117654
|
|
|
117555
117655
|
/**
|
|
117556
|
-
*
|
|
117656
|
+
* ClinicalCoverageCreated clinicalCoverageType.
|
|
117657
|
+
* @member {b2b.ClinicalCoverageType} clinicalCoverageType
|
|
117658
|
+
* @memberof ClinicalCoverageCreated
|
|
117659
|
+
* @instance
|
|
117660
|
+
*/
|
|
117661
|
+
ClinicalCoverageCreated.prototype.clinicalCoverageType = 0;
|
|
117662
|
+
|
|
117663
|
+
/**
|
|
117664
|
+
* Creates a new ClinicalCoverageCreated instance using the specified properties.
|
|
117557
117665
|
* @function create
|
|
117558
|
-
* @memberof
|
|
117666
|
+
* @memberof ClinicalCoverageCreated
|
|
117559
117667
|
* @static
|
|
117560
|
-
* @param {
|
|
117561
|
-
* @returns {
|
|
117668
|
+
* @param {IClinicalCoverageCreated=} [properties] Properties to set
|
|
117669
|
+
* @returns {ClinicalCoverageCreated} ClinicalCoverageCreated instance
|
|
117562
117670
|
*/
|
|
117563
|
-
|
|
117564
|
-
return new
|
|
117671
|
+
ClinicalCoverageCreated.create = function create(properties) {
|
|
117672
|
+
return new ClinicalCoverageCreated(properties);
|
|
117565
117673
|
};
|
|
117566
117674
|
|
|
117567
117675
|
/**
|
|
117568
|
-
* Encodes the specified
|
|
117676
|
+
* Encodes the specified ClinicalCoverageCreated message. Does not implicitly {@link ClinicalCoverageCreated.verify|verify} messages.
|
|
117569
117677
|
* @function encode
|
|
117570
|
-
* @memberof
|
|
117678
|
+
* @memberof ClinicalCoverageCreated
|
|
117571
117679
|
* @static
|
|
117572
|
-
* @param {
|
|
117680
|
+
* @param {IClinicalCoverageCreated} message ClinicalCoverageCreated message or plain object to encode
|
|
117573
117681
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
117574
117682
|
* @returns {$protobuf.Writer} Writer
|
|
117575
117683
|
*/
|
|
117576
|
-
|
|
117684
|
+
ClinicalCoverageCreated.encode = function encode(message, writer) {
|
|
117577
117685
|
if (!writer)
|
|
117578
117686
|
writer = $Writer.create();
|
|
117579
117687
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
@@ -117586,39 +117694,41 @@ $root.EapCoverageCreated = (function() {
|
|
|
117586
117694
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.orgSubscriptionEndDate);
|
|
117587
117695
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
117588
117696
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
117589
|
-
if (message.
|
|
117590
|
-
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.
|
|
117697
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
117698
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clinicalCoverageProvider);
|
|
117699
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
117700
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
|
|
117591
117701
|
return writer;
|
|
117592
117702
|
};
|
|
117593
117703
|
|
|
117594
117704
|
/**
|
|
117595
|
-
* Encodes the specified
|
|
117705
|
+
* Encodes the specified ClinicalCoverageCreated message, length delimited. Does not implicitly {@link ClinicalCoverageCreated.verify|verify} messages.
|
|
117596
117706
|
* @function encodeDelimited
|
|
117597
|
-
* @memberof
|
|
117707
|
+
* @memberof ClinicalCoverageCreated
|
|
117598
117708
|
* @static
|
|
117599
|
-
* @param {
|
|
117709
|
+
* @param {IClinicalCoverageCreated} message ClinicalCoverageCreated message or plain object to encode
|
|
117600
117710
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
117601
117711
|
* @returns {$protobuf.Writer} Writer
|
|
117602
117712
|
*/
|
|
117603
|
-
|
|
117713
|
+
ClinicalCoverageCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
117604
117714
|
return this.encode(message, writer).ldelim();
|
|
117605
117715
|
};
|
|
117606
117716
|
|
|
117607
117717
|
/**
|
|
117608
|
-
* Decodes
|
|
117718
|
+
* Decodes a ClinicalCoverageCreated message from the specified reader or buffer.
|
|
117609
117719
|
* @function decode
|
|
117610
|
-
* @memberof
|
|
117720
|
+
* @memberof ClinicalCoverageCreated
|
|
117611
117721
|
* @static
|
|
117612
117722
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
117613
117723
|
* @param {number} [length] Message length if known beforehand
|
|
117614
|
-
* @returns {
|
|
117724
|
+
* @returns {ClinicalCoverageCreated} ClinicalCoverageCreated
|
|
117615
117725
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
117616
117726
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
117617
117727
|
*/
|
|
117618
|
-
|
|
117728
|
+
ClinicalCoverageCreated.decode = function decode(reader, length) {
|
|
117619
117729
|
if (!(reader instanceof $Reader))
|
|
117620
117730
|
reader = $Reader.create(reader);
|
|
117621
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
117731
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalCoverageCreated();
|
|
117622
117732
|
while (reader.pos < end) {
|
|
117623
117733
|
var tag = reader.uint32();
|
|
117624
117734
|
switch (tag >>> 3) {
|
|
@@ -117638,7 +117748,10 @@ $root.EapCoverageCreated = (function() {
|
|
|
117638
117748
|
message.updatedAt = reader.uint64();
|
|
117639
117749
|
break;
|
|
117640
117750
|
case 6:
|
|
117641
|
-
message.
|
|
117751
|
+
message.clinicalCoverageProvider = reader.int32();
|
|
117752
|
+
break;
|
|
117753
|
+
case 7:
|
|
117754
|
+
message.clinicalCoverageType = reader.int32();
|
|
117642
117755
|
break;
|
|
117643
117756
|
default:
|
|
117644
117757
|
reader.skipType(tag & 7);
|
|
@@ -117649,30 +117762,30 @@ $root.EapCoverageCreated = (function() {
|
|
|
117649
117762
|
};
|
|
117650
117763
|
|
|
117651
117764
|
/**
|
|
117652
|
-
* Decodes
|
|
117765
|
+
* Decodes a ClinicalCoverageCreated message from the specified reader or buffer, length delimited.
|
|
117653
117766
|
* @function decodeDelimited
|
|
117654
|
-
* @memberof
|
|
117767
|
+
* @memberof ClinicalCoverageCreated
|
|
117655
117768
|
* @static
|
|
117656
117769
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
117657
|
-
* @returns {
|
|
117770
|
+
* @returns {ClinicalCoverageCreated} ClinicalCoverageCreated
|
|
117658
117771
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
117659
117772
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
117660
117773
|
*/
|
|
117661
|
-
|
|
117774
|
+
ClinicalCoverageCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
117662
117775
|
if (!(reader instanceof $Reader))
|
|
117663
117776
|
reader = new $Reader(reader);
|
|
117664
117777
|
return this.decode(reader, reader.uint32());
|
|
117665
117778
|
};
|
|
117666
117779
|
|
|
117667
117780
|
/**
|
|
117668
|
-
* Verifies
|
|
117781
|
+
* Verifies a ClinicalCoverageCreated message.
|
|
117669
117782
|
* @function verify
|
|
117670
|
-
* @memberof
|
|
117783
|
+
* @memberof ClinicalCoverageCreated
|
|
117671
117784
|
* @static
|
|
117672
117785
|
* @param {Object.<string,*>} message Plain object to verify
|
|
117673
117786
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
117674
117787
|
*/
|
|
117675
|
-
|
|
117788
|
+
ClinicalCoverageCreated.verify = function verify(message) {
|
|
117676
117789
|
if (typeof message !== "object" || message === null)
|
|
117677
117790
|
return "object expected";
|
|
117678
117791
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
@@ -117697,10 +117810,20 @@ $root.EapCoverageCreated = (function() {
|
|
|
117697
117810
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
117698
117811
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
117699
117812
|
return "updatedAt: integer|Long expected";
|
|
117700
|
-
if (message.
|
|
117701
|
-
switch (message.
|
|
117813
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
117814
|
+
switch (message.clinicalCoverageProvider) {
|
|
117702
117815
|
default:
|
|
117703
|
-
return "
|
|
117816
|
+
return "clinicalCoverageProvider: enum value expected";
|
|
117817
|
+
case 0:
|
|
117818
|
+
case 1:
|
|
117819
|
+
case 2:
|
|
117820
|
+
case 3:
|
|
117821
|
+
break;
|
|
117822
|
+
}
|
|
117823
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
117824
|
+
switch (message.clinicalCoverageType) {
|
|
117825
|
+
default:
|
|
117826
|
+
return "clinicalCoverageType: enum value expected";
|
|
117704
117827
|
case 0:
|
|
117705
117828
|
case 1:
|
|
117706
117829
|
case 2:
|
|
@@ -117711,17 +117834,17 @@ $root.EapCoverageCreated = (function() {
|
|
|
117711
117834
|
};
|
|
117712
117835
|
|
|
117713
117836
|
/**
|
|
117714
|
-
* Creates
|
|
117837
|
+
* Creates a ClinicalCoverageCreated message from a plain object. Also converts values to their respective internal types.
|
|
117715
117838
|
* @function fromObject
|
|
117716
|
-
* @memberof
|
|
117839
|
+
* @memberof ClinicalCoverageCreated
|
|
117717
117840
|
* @static
|
|
117718
117841
|
* @param {Object.<string,*>} object Plain object
|
|
117719
|
-
* @returns {
|
|
117842
|
+
* @returns {ClinicalCoverageCreated} ClinicalCoverageCreated
|
|
117720
117843
|
*/
|
|
117721
|
-
|
|
117722
|
-
if (object instanceof $root.
|
|
117844
|
+
ClinicalCoverageCreated.fromObject = function fromObject(object) {
|
|
117845
|
+
if (object instanceof $root.ClinicalCoverageCreated)
|
|
117723
117846
|
return object;
|
|
117724
|
-
var message = new $root.
|
|
117847
|
+
var message = new $root.ClinicalCoverageCreated();
|
|
117725
117848
|
if (object.orgId != null)
|
|
117726
117849
|
if ($util.Long)
|
|
117727
117850
|
(message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
|
|
@@ -117732,19 +117855,19 @@ $root.EapCoverageCreated = (function() {
|
|
|
117732
117855
|
else if (typeof object.orgId === "object")
|
|
117733
117856
|
message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
|
|
117734
117857
|
switch (object.serviceType) {
|
|
117735
|
-
case "
|
|
117858
|
+
case "CLINICAL_SERVICE_TYPE_UNKNOWN":
|
|
117736
117859
|
case 0:
|
|
117737
117860
|
message.serviceType = 0;
|
|
117738
117861
|
break;
|
|
117739
|
-
case "
|
|
117862
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
|
|
117740
117863
|
case 1:
|
|
117741
117864
|
message.serviceType = 1;
|
|
117742
117865
|
break;
|
|
117743
|
-
case "
|
|
117866
|
+
case "CLINICAL_SERVICE_TYPE_THERAPY":
|
|
117744
117867
|
case 2:
|
|
117745
117868
|
message.serviceType = 2;
|
|
117746
117869
|
break;
|
|
117747
|
-
case "
|
|
117870
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
117748
117871
|
case 3:
|
|
117749
117872
|
message.serviceType = 3;
|
|
117750
117873
|
break;
|
|
@@ -117776,37 +117899,55 @@ $root.EapCoverageCreated = (function() {
|
|
|
117776
117899
|
message.updatedAt = object.updatedAt;
|
|
117777
117900
|
else if (typeof object.updatedAt === "object")
|
|
117778
117901
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
117779
|
-
switch (object.
|
|
117780
|
-
case "
|
|
117902
|
+
switch (object.clinicalCoverageProvider) {
|
|
117903
|
+
case "CLINICAL_COVERAGE_PROVIDER_UNKNOWN":
|
|
117781
117904
|
case 0:
|
|
117782
|
-
message.
|
|
117905
|
+
message.clinicalCoverageProvider = 0;
|
|
117783
117906
|
break;
|
|
117784
|
-
case "
|
|
117907
|
+
case "CLINICAL_COVERAGE_PROVIDER_CCA":
|
|
117785
117908
|
case 1:
|
|
117786
|
-
message.
|
|
117909
|
+
message.clinicalCoverageProvider = 1;
|
|
117787
117910
|
break;
|
|
117788
|
-
case "
|
|
117911
|
+
case "CLINICAL_COVERAGE_PROVIDER_WPO":
|
|
117789
117912
|
case 2:
|
|
117790
|
-
message.
|
|
117913
|
+
message.clinicalCoverageProvider = 2;
|
|
117791
117914
|
break;
|
|
117792
|
-
case "
|
|
117915
|
+
case "CLINICAL_COVERAGE_PROVIDER_NONE":
|
|
117793
117916
|
case 3:
|
|
117794
|
-
message.
|
|
117917
|
+
message.clinicalCoverageProvider = 3;
|
|
117918
|
+
break;
|
|
117919
|
+
}
|
|
117920
|
+
switch (object.clinicalCoverageType) {
|
|
117921
|
+
case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
|
|
117922
|
+
case 0:
|
|
117923
|
+
message.clinicalCoverageType = 0;
|
|
117924
|
+
break;
|
|
117925
|
+
case "CLINICAL_COVERAGE_TYPE_NONE":
|
|
117926
|
+
case 1:
|
|
117927
|
+
message.clinicalCoverageType = 1;
|
|
117928
|
+
break;
|
|
117929
|
+
case "CLINICAL_COVERAGE_TYPE_EAP_V2":
|
|
117930
|
+
case 2:
|
|
117931
|
+
message.clinicalCoverageType = 2;
|
|
117932
|
+
break;
|
|
117933
|
+
case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
|
|
117934
|
+
case 3:
|
|
117935
|
+
message.clinicalCoverageType = 3;
|
|
117795
117936
|
break;
|
|
117796
117937
|
}
|
|
117797
117938
|
return message;
|
|
117798
117939
|
};
|
|
117799
117940
|
|
|
117800
117941
|
/**
|
|
117801
|
-
* Creates a plain object from
|
|
117942
|
+
* Creates a plain object from a ClinicalCoverageCreated message. Also converts values to other types if specified.
|
|
117802
117943
|
* @function toObject
|
|
117803
|
-
* @memberof
|
|
117944
|
+
* @memberof ClinicalCoverageCreated
|
|
117804
117945
|
* @static
|
|
117805
|
-
* @param {
|
|
117946
|
+
* @param {ClinicalCoverageCreated} message ClinicalCoverageCreated
|
|
117806
117947
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
117807
117948
|
* @returns {Object.<string,*>} Plain object
|
|
117808
117949
|
*/
|
|
117809
|
-
|
|
117950
|
+
ClinicalCoverageCreated.toObject = function toObject(message, options) {
|
|
117810
117951
|
if (!options)
|
|
117811
117952
|
options = {};
|
|
117812
117953
|
var object = {};
|
|
@@ -117816,7 +117957,7 @@ $root.EapCoverageCreated = (function() {
|
|
|
117816
117957
|
object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
117817
117958
|
} else
|
|
117818
117959
|
object.orgId = options.longs === String ? "0" : 0;
|
|
117819
|
-
object.serviceType = options.enums === String ? "
|
|
117960
|
+
object.serviceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
|
|
117820
117961
|
if ($util.Long) {
|
|
117821
117962
|
var long = new $util.Long(0, 0, true);
|
|
117822
117963
|
object.coverageTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
@@ -117832,7 +117973,8 @@ $root.EapCoverageCreated = (function() {
|
|
|
117832
117973
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
117833
117974
|
} else
|
|
117834
117975
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
117835
|
-
object.
|
|
117976
|
+
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
117977
|
+
object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
117836
117978
|
}
|
|
117837
117979
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
117838
117980
|
if (typeof message.orgId === "number")
|
|
@@ -117840,7 +117982,7 @@ $root.EapCoverageCreated = (function() {
|
|
|
117840
117982
|
else
|
|
117841
117983
|
object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
|
|
117842
117984
|
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
117843
|
-
object.serviceType = options.enums === String ? $root.b2b.
|
|
117985
|
+
object.serviceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.serviceType] : message.serviceType;
|
|
117844
117986
|
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
117845
117987
|
if (typeof message.coverageTotal === "number")
|
|
117846
117988
|
object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
|
|
@@ -117856,48 +117998,51 @@ $root.EapCoverageCreated = (function() {
|
|
|
117856
117998
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
117857
117999
|
else
|
|
117858
118000
|
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
117859
|
-
if (message.
|
|
117860
|
-
object.
|
|
118001
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
118002
|
+
object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
|
|
118003
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
118004
|
+
object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
|
|
117861
118005
|
return object;
|
|
117862
118006
|
};
|
|
117863
118007
|
|
|
117864
118008
|
/**
|
|
117865
|
-
* Converts this
|
|
118009
|
+
* Converts this ClinicalCoverageCreated to JSON.
|
|
117866
118010
|
* @function toJSON
|
|
117867
|
-
* @memberof
|
|
118011
|
+
* @memberof ClinicalCoverageCreated
|
|
117868
118012
|
* @instance
|
|
117869
118013
|
* @returns {Object.<string,*>} JSON object
|
|
117870
118014
|
*/
|
|
117871
|
-
|
|
118015
|
+
ClinicalCoverageCreated.prototype.toJSON = function toJSON() {
|
|
117872
118016
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
117873
118017
|
};
|
|
117874
118018
|
|
|
117875
|
-
return
|
|
118019
|
+
return ClinicalCoverageCreated;
|
|
117876
118020
|
})();
|
|
117877
118021
|
|
|
117878
|
-
$root.
|
|
118022
|
+
$root.ClinicalCoverageUpdated = (function() {
|
|
117879
118023
|
|
|
117880
118024
|
/**
|
|
117881
|
-
* Properties of
|
|
117882
|
-
* @name
|
|
117883
|
-
* @interface
|
|
117884
|
-
* @property {number|Long|null} [orgId]
|
|
117885
|
-
* @property {b2b.
|
|
117886
|
-
* @property {number|Long|null} [coverageTotal]
|
|
117887
|
-
* @property {number|Long|null} [orgSubscriptionEndDate]
|
|
117888
|
-
* @property {number|Long|null} [updatedAt]
|
|
117889
|
-
* @property {b2b.
|
|
118025
|
+
* Properties of a ClinicalCoverageUpdated.
|
|
118026
|
+
* @name IClinicalCoverageUpdated
|
|
118027
|
+
* @interface IClinicalCoverageUpdated
|
|
118028
|
+
* @property {number|Long|null} [orgId] ClinicalCoverageUpdated orgId
|
|
118029
|
+
* @property {b2b.ClinicalServiceType|null} [serviceType] ClinicalCoverageUpdated serviceType
|
|
118030
|
+
* @property {number|Long|null} [coverageTotal] ClinicalCoverageUpdated coverageTotal
|
|
118031
|
+
* @property {number|Long|null} [orgSubscriptionEndDate] ClinicalCoverageUpdated orgSubscriptionEndDate
|
|
118032
|
+
* @property {number|Long|null} [updatedAt] ClinicalCoverageUpdated updatedAt
|
|
118033
|
+
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageUpdated clinicalCoverageProvider
|
|
118034
|
+
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageUpdated clinicalCoverageType
|
|
117890
118035
|
*/
|
|
117891
118036
|
|
|
117892
118037
|
/**
|
|
117893
|
-
* Constructs a new
|
|
117894
|
-
* @name
|
|
117895
|
-
* @classdesc Represents
|
|
117896
|
-
* @implements
|
|
118038
|
+
* Constructs a new ClinicalCoverageUpdated.
|
|
118039
|
+
* @name ClinicalCoverageUpdated
|
|
118040
|
+
* @classdesc Represents a ClinicalCoverageUpdated.
|
|
118041
|
+
* @implements IClinicalCoverageUpdated
|
|
117897
118042
|
* @constructor
|
|
117898
|
-
* @param {
|
|
118043
|
+
* @param {IClinicalCoverageUpdated=} [properties] Properties to set
|
|
117899
118044
|
*/
|
|
117900
|
-
function
|
|
118045
|
+
function ClinicalCoverageUpdated(properties) {
|
|
117901
118046
|
if (properties)
|
|
117902
118047
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
117903
118048
|
if (properties[keys[i]] != null)
|
|
@@ -117905,75 +118050,83 @@ $root.EapCoverageUpdated = (function() {
|
|
|
117905
118050
|
}
|
|
117906
118051
|
|
|
117907
118052
|
/**
|
|
117908
|
-
*
|
|
118053
|
+
* ClinicalCoverageUpdated orgId.
|
|
117909
118054
|
* @member {number|Long} orgId
|
|
117910
|
-
* @memberof
|
|
118055
|
+
* @memberof ClinicalCoverageUpdated
|
|
117911
118056
|
* @instance
|
|
117912
118057
|
*/
|
|
117913
|
-
|
|
118058
|
+
ClinicalCoverageUpdated.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117914
118059
|
|
|
117915
118060
|
/**
|
|
117916
|
-
*
|
|
117917
|
-
* @member {b2b.
|
|
117918
|
-
* @memberof
|
|
118061
|
+
* ClinicalCoverageUpdated serviceType.
|
|
118062
|
+
* @member {b2b.ClinicalServiceType} serviceType
|
|
118063
|
+
* @memberof ClinicalCoverageUpdated
|
|
117919
118064
|
* @instance
|
|
117920
118065
|
*/
|
|
117921
|
-
|
|
118066
|
+
ClinicalCoverageUpdated.prototype.serviceType = 0;
|
|
117922
118067
|
|
|
117923
118068
|
/**
|
|
117924
|
-
*
|
|
118069
|
+
* ClinicalCoverageUpdated coverageTotal.
|
|
117925
118070
|
* @member {number|Long} coverageTotal
|
|
117926
|
-
* @memberof
|
|
118071
|
+
* @memberof ClinicalCoverageUpdated
|
|
117927
118072
|
* @instance
|
|
117928
118073
|
*/
|
|
117929
|
-
|
|
118074
|
+
ClinicalCoverageUpdated.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117930
118075
|
|
|
117931
118076
|
/**
|
|
117932
|
-
*
|
|
118077
|
+
* ClinicalCoverageUpdated orgSubscriptionEndDate.
|
|
117933
118078
|
* @member {number|Long} orgSubscriptionEndDate
|
|
117934
|
-
* @memberof
|
|
118079
|
+
* @memberof ClinicalCoverageUpdated
|
|
117935
118080
|
* @instance
|
|
117936
118081
|
*/
|
|
117937
|
-
|
|
118082
|
+
ClinicalCoverageUpdated.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117938
118083
|
|
|
117939
118084
|
/**
|
|
117940
|
-
*
|
|
118085
|
+
* ClinicalCoverageUpdated updatedAt.
|
|
117941
118086
|
* @member {number|Long} updatedAt
|
|
117942
|
-
* @memberof
|
|
118087
|
+
* @memberof ClinicalCoverageUpdated
|
|
117943
118088
|
* @instance
|
|
117944
118089
|
*/
|
|
117945
|
-
|
|
118090
|
+
ClinicalCoverageUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
117946
118091
|
|
|
117947
118092
|
/**
|
|
117948
|
-
*
|
|
117949
|
-
* @member {b2b.
|
|
117950
|
-
* @memberof
|
|
118093
|
+
* ClinicalCoverageUpdated clinicalCoverageProvider.
|
|
118094
|
+
* @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
|
|
118095
|
+
* @memberof ClinicalCoverageUpdated
|
|
117951
118096
|
* @instance
|
|
117952
118097
|
*/
|
|
117953
|
-
|
|
118098
|
+
ClinicalCoverageUpdated.prototype.clinicalCoverageProvider = 0;
|
|
117954
118099
|
|
|
117955
118100
|
/**
|
|
117956
|
-
*
|
|
118101
|
+
* ClinicalCoverageUpdated clinicalCoverageType.
|
|
118102
|
+
* @member {b2b.ClinicalCoverageType} clinicalCoverageType
|
|
118103
|
+
* @memberof ClinicalCoverageUpdated
|
|
118104
|
+
* @instance
|
|
118105
|
+
*/
|
|
118106
|
+
ClinicalCoverageUpdated.prototype.clinicalCoverageType = 0;
|
|
118107
|
+
|
|
118108
|
+
/**
|
|
118109
|
+
* Creates a new ClinicalCoverageUpdated instance using the specified properties.
|
|
117957
118110
|
* @function create
|
|
117958
|
-
* @memberof
|
|
118111
|
+
* @memberof ClinicalCoverageUpdated
|
|
117959
118112
|
* @static
|
|
117960
|
-
* @param {
|
|
117961
|
-
* @returns {
|
|
118113
|
+
* @param {IClinicalCoverageUpdated=} [properties] Properties to set
|
|
118114
|
+
* @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated instance
|
|
117962
118115
|
*/
|
|
117963
|
-
|
|
117964
|
-
return new
|
|
118116
|
+
ClinicalCoverageUpdated.create = function create(properties) {
|
|
118117
|
+
return new ClinicalCoverageUpdated(properties);
|
|
117965
118118
|
};
|
|
117966
118119
|
|
|
117967
118120
|
/**
|
|
117968
|
-
* Encodes the specified
|
|
118121
|
+
* Encodes the specified ClinicalCoverageUpdated message. Does not implicitly {@link ClinicalCoverageUpdated.verify|verify} messages.
|
|
117969
118122
|
* @function encode
|
|
117970
|
-
* @memberof
|
|
118123
|
+
* @memberof ClinicalCoverageUpdated
|
|
117971
118124
|
* @static
|
|
117972
|
-
* @param {
|
|
118125
|
+
* @param {IClinicalCoverageUpdated} message ClinicalCoverageUpdated message or plain object to encode
|
|
117973
118126
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
117974
118127
|
* @returns {$protobuf.Writer} Writer
|
|
117975
118128
|
*/
|
|
117976
|
-
|
|
118129
|
+
ClinicalCoverageUpdated.encode = function encode(message, writer) {
|
|
117977
118130
|
if (!writer)
|
|
117978
118131
|
writer = $Writer.create();
|
|
117979
118132
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
@@ -117986,39 +118139,41 @@ $root.EapCoverageUpdated = (function() {
|
|
|
117986
118139
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.orgSubscriptionEndDate);
|
|
117987
118140
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
117988
118141
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
117989
|
-
if (message.
|
|
117990
|
-
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.
|
|
118142
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
118143
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clinicalCoverageProvider);
|
|
118144
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
118145
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
|
|
117991
118146
|
return writer;
|
|
117992
118147
|
};
|
|
117993
118148
|
|
|
117994
118149
|
/**
|
|
117995
|
-
* Encodes the specified
|
|
118150
|
+
* Encodes the specified ClinicalCoverageUpdated message, length delimited. Does not implicitly {@link ClinicalCoverageUpdated.verify|verify} messages.
|
|
117996
118151
|
* @function encodeDelimited
|
|
117997
|
-
* @memberof
|
|
118152
|
+
* @memberof ClinicalCoverageUpdated
|
|
117998
118153
|
* @static
|
|
117999
|
-
* @param {
|
|
118154
|
+
* @param {IClinicalCoverageUpdated} message ClinicalCoverageUpdated message or plain object to encode
|
|
118000
118155
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
118001
118156
|
* @returns {$protobuf.Writer} Writer
|
|
118002
118157
|
*/
|
|
118003
|
-
|
|
118158
|
+
ClinicalCoverageUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
118004
118159
|
return this.encode(message, writer).ldelim();
|
|
118005
118160
|
};
|
|
118006
118161
|
|
|
118007
118162
|
/**
|
|
118008
|
-
* Decodes
|
|
118163
|
+
* Decodes a ClinicalCoverageUpdated message from the specified reader or buffer.
|
|
118009
118164
|
* @function decode
|
|
118010
|
-
* @memberof
|
|
118165
|
+
* @memberof ClinicalCoverageUpdated
|
|
118011
118166
|
* @static
|
|
118012
118167
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118013
118168
|
* @param {number} [length] Message length if known beforehand
|
|
118014
|
-
* @returns {
|
|
118169
|
+
* @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated
|
|
118015
118170
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118016
118171
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118017
118172
|
*/
|
|
118018
|
-
|
|
118173
|
+
ClinicalCoverageUpdated.decode = function decode(reader, length) {
|
|
118019
118174
|
if (!(reader instanceof $Reader))
|
|
118020
118175
|
reader = $Reader.create(reader);
|
|
118021
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
118176
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalCoverageUpdated();
|
|
118022
118177
|
while (reader.pos < end) {
|
|
118023
118178
|
var tag = reader.uint32();
|
|
118024
118179
|
switch (tag >>> 3) {
|
|
@@ -118038,7 +118193,10 @@ $root.EapCoverageUpdated = (function() {
|
|
|
118038
118193
|
message.updatedAt = reader.uint64();
|
|
118039
118194
|
break;
|
|
118040
118195
|
case 6:
|
|
118041
|
-
message.
|
|
118196
|
+
message.clinicalCoverageProvider = reader.int32();
|
|
118197
|
+
break;
|
|
118198
|
+
case 7:
|
|
118199
|
+
message.clinicalCoverageType = reader.int32();
|
|
118042
118200
|
break;
|
|
118043
118201
|
default:
|
|
118044
118202
|
reader.skipType(tag & 7);
|
|
@@ -118049,30 +118207,30 @@ $root.EapCoverageUpdated = (function() {
|
|
|
118049
118207
|
};
|
|
118050
118208
|
|
|
118051
118209
|
/**
|
|
118052
|
-
* Decodes
|
|
118210
|
+
* Decodes a ClinicalCoverageUpdated message from the specified reader or buffer, length delimited.
|
|
118053
118211
|
* @function decodeDelimited
|
|
118054
|
-
* @memberof
|
|
118212
|
+
* @memberof ClinicalCoverageUpdated
|
|
118055
118213
|
* @static
|
|
118056
118214
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118057
|
-
* @returns {
|
|
118215
|
+
* @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated
|
|
118058
118216
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118059
118217
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118060
118218
|
*/
|
|
118061
|
-
|
|
118219
|
+
ClinicalCoverageUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
118062
118220
|
if (!(reader instanceof $Reader))
|
|
118063
118221
|
reader = new $Reader(reader);
|
|
118064
118222
|
return this.decode(reader, reader.uint32());
|
|
118065
118223
|
};
|
|
118066
118224
|
|
|
118067
118225
|
/**
|
|
118068
|
-
* Verifies
|
|
118226
|
+
* Verifies a ClinicalCoverageUpdated message.
|
|
118069
118227
|
* @function verify
|
|
118070
|
-
* @memberof
|
|
118228
|
+
* @memberof ClinicalCoverageUpdated
|
|
118071
118229
|
* @static
|
|
118072
118230
|
* @param {Object.<string,*>} message Plain object to verify
|
|
118073
118231
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
118074
118232
|
*/
|
|
118075
|
-
|
|
118233
|
+
ClinicalCoverageUpdated.verify = function verify(message) {
|
|
118076
118234
|
if (typeof message !== "object" || message === null)
|
|
118077
118235
|
return "object expected";
|
|
118078
118236
|
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
@@ -118097,10 +118255,20 @@ $root.EapCoverageUpdated = (function() {
|
|
|
118097
118255
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
118098
118256
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
118099
118257
|
return "updatedAt: integer|Long expected";
|
|
118100
|
-
if (message.
|
|
118101
|
-
switch (message.
|
|
118258
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
118259
|
+
switch (message.clinicalCoverageProvider) {
|
|
118102
118260
|
default:
|
|
118103
|
-
return "
|
|
118261
|
+
return "clinicalCoverageProvider: enum value expected";
|
|
118262
|
+
case 0:
|
|
118263
|
+
case 1:
|
|
118264
|
+
case 2:
|
|
118265
|
+
case 3:
|
|
118266
|
+
break;
|
|
118267
|
+
}
|
|
118268
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
118269
|
+
switch (message.clinicalCoverageType) {
|
|
118270
|
+
default:
|
|
118271
|
+
return "clinicalCoverageType: enum value expected";
|
|
118104
118272
|
case 0:
|
|
118105
118273
|
case 1:
|
|
118106
118274
|
case 2:
|
|
@@ -118111,17 +118279,17 @@ $root.EapCoverageUpdated = (function() {
|
|
|
118111
118279
|
};
|
|
118112
118280
|
|
|
118113
118281
|
/**
|
|
118114
|
-
* Creates
|
|
118282
|
+
* Creates a ClinicalCoverageUpdated message from a plain object. Also converts values to their respective internal types.
|
|
118115
118283
|
* @function fromObject
|
|
118116
|
-
* @memberof
|
|
118284
|
+
* @memberof ClinicalCoverageUpdated
|
|
118117
118285
|
* @static
|
|
118118
118286
|
* @param {Object.<string,*>} object Plain object
|
|
118119
|
-
* @returns {
|
|
118287
|
+
* @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated
|
|
118120
118288
|
*/
|
|
118121
|
-
|
|
118122
|
-
if (object instanceof $root.
|
|
118289
|
+
ClinicalCoverageUpdated.fromObject = function fromObject(object) {
|
|
118290
|
+
if (object instanceof $root.ClinicalCoverageUpdated)
|
|
118123
118291
|
return object;
|
|
118124
|
-
var message = new $root.
|
|
118292
|
+
var message = new $root.ClinicalCoverageUpdated();
|
|
118125
118293
|
if (object.orgId != null)
|
|
118126
118294
|
if ($util.Long)
|
|
118127
118295
|
(message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
|
|
@@ -118132,19 +118300,1285 @@ $root.EapCoverageUpdated = (function() {
|
|
|
118132
118300
|
else if (typeof object.orgId === "object")
|
|
118133
118301
|
message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
|
|
118134
118302
|
switch (object.serviceType) {
|
|
118135
|
-
case "
|
|
118303
|
+
case "CLINICAL_SERVICE_TYPE_UNKNOWN":
|
|
118136
118304
|
case 0:
|
|
118137
118305
|
message.serviceType = 0;
|
|
118138
118306
|
break;
|
|
118139
|
-
case "
|
|
118307
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
|
|
118140
118308
|
case 1:
|
|
118141
118309
|
message.serviceType = 1;
|
|
118142
118310
|
break;
|
|
118143
|
-
case "
|
|
118311
|
+
case "CLINICAL_SERVICE_TYPE_THERAPY":
|
|
118144
118312
|
case 2:
|
|
118145
118313
|
message.serviceType = 2;
|
|
118146
118314
|
break;
|
|
118147
|
-
case "
|
|
118315
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
118316
|
+
case 3:
|
|
118317
|
+
message.serviceType = 3;
|
|
118318
|
+
break;
|
|
118319
|
+
}
|
|
118320
|
+
if (object.coverageTotal != null)
|
|
118321
|
+
if ($util.Long)
|
|
118322
|
+
(message.coverageTotal = $util.Long.fromValue(object.coverageTotal)).unsigned = true;
|
|
118323
|
+
else if (typeof object.coverageTotal === "string")
|
|
118324
|
+
message.coverageTotal = parseInt(object.coverageTotal, 10);
|
|
118325
|
+
else if (typeof object.coverageTotal === "number")
|
|
118326
|
+
message.coverageTotal = object.coverageTotal;
|
|
118327
|
+
else if (typeof object.coverageTotal === "object")
|
|
118328
|
+
message.coverageTotal = new $util.LongBits(object.coverageTotal.low >>> 0, object.coverageTotal.high >>> 0).toNumber(true);
|
|
118329
|
+
if (object.orgSubscriptionEndDate != null)
|
|
118330
|
+
if ($util.Long)
|
|
118331
|
+
(message.orgSubscriptionEndDate = $util.Long.fromValue(object.orgSubscriptionEndDate)).unsigned = true;
|
|
118332
|
+
else if (typeof object.orgSubscriptionEndDate === "string")
|
|
118333
|
+
message.orgSubscriptionEndDate = parseInt(object.orgSubscriptionEndDate, 10);
|
|
118334
|
+
else if (typeof object.orgSubscriptionEndDate === "number")
|
|
118335
|
+
message.orgSubscriptionEndDate = object.orgSubscriptionEndDate;
|
|
118336
|
+
else if (typeof object.orgSubscriptionEndDate === "object")
|
|
118337
|
+
message.orgSubscriptionEndDate = new $util.LongBits(object.orgSubscriptionEndDate.low >>> 0, object.orgSubscriptionEndDate.high >>> 0).toNumber(true);
|
|
118338
|
+
if (object.updatedAt != null)
|
|
118339
|
+
if ($util.Long)
|
|
118340
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
118341
|
+
else if (typeof object.updatedAt === "string")
|
|
118342
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
118343
|
+
else if (typeof object.updatedAt === "number")
|
|
118344
|
+
message.updatedAt = object.updatedAt;
|
|
118345
|
+
else if (typeof object.updatedAt === "object")
|
|
118346
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
118347
|
+
switch (object.clinicalCoverageProvider) {
|
|
118348
|
+
case "CLINICAL_COVERAGE_PROVIDER_UNKNOWN":
|
|
118349
|
+
case 0:
|
|
118350
|
+
message.clinicalCoverageProvider = 0;
|
|
118351
|
+
break;
|
|
118352
|
+
case "CLINICAL_COVERAGE_PROVIDER_CCA":
|
|
118353
|
+
case 1:
|
|
118354
|
+
message.clinicalCoverageProvider = 1;
|
|
118355
|
+
break;
|
|
118356
|
+
case "CLINICAL_COVERAGE_PROVIDER_WPO":
|
|
118357
|
+
case 2:
|
|
118358
|
+
message.clinicalCoverageProvider = 2;
|
|
118359
|
+
break;
|
|
118360
|
+
case "CLINICAL_COVERAGE_PROVIDER_NONE":
|
|
118361
|
+
case 3:
|
|
118362
|
+
message.clinicalCoverageProvider = 3;
|
|
118363
|
+
break;
|
|
118364
|
+
}
|
|
118365
|
+
switch (object.clinicalCoverageType) {
|
|
118366
|
+
case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
|
|
118367
|
+
case 0:
|
|
118368
|
+
message.clinicalCoverageType = 0;
|
|
118369
|
+
break;
|
|
118370
|
+
case "CLINICAL_COVERAGE_TYPE_NONE":
|
|
118371
|
+
case 1:
|
|
118372
|
+
message.clinicalCoverageType = 1;
|
|
118373
|
+
break;
|
|
118374
|
+
case "CLINICAL_COVERAGE_TYPE_EAP_V2":
|
|
118375
|
+
case 2:
|
|
118376
|
+
message.clinicalCoverageType = 2;
|
|
118377
|
+
break;
|
|
118378
|
+
case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
|
|
118379
|
+
case 3:
|
|
118380
|
+
message.clinicalCoverageType = 3;
|
|
118381
|
+
break;
|
|
118382
|
+
}
|
|
118383
|
+
return message;
|
|
118384
|
+
};
|
|
118385
|
+
|
|
118386
|
+
/**
|
|
118387
|
+
* Creates a plain object from a ClinicalCoverageUpdated message. Also converts values to other types if specified.
|
|
118388
|
+
* @function toObject
|
|
118389
|
+
* @memberof ClinicalCoverageUpdated
|
|
118390
|
+
* @static
|
|
118391
|
+
* @param {ClinicalCoverageUpdated} message ClinicalCoverageUpdated
|
|
118392
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
118393
|
+
* @returns {Object.<string,*>} Plain object
|
|
118394
|
+
*/
|
|
118395
|
+
ClinicalCoverageUpdated.toObject = function toObject(message, options) {
|
|
118396
|
+
if (!options)
|
|
118397
|
+
options = {};
|
|
118398
|
+
var object = {};
|
|
118399
|
+
if (options.defaults) {
|
|
118400
|
+
if ($util.Long) {
|
|
118401
|
+
var long = new $util.Long(0, 0, true);
|
|
118402
|
+
object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118403
|
+
} else
|
|
118404
|
+
object.orgId = options.longs === String ? "0" : 0;
|
|
118405
|
+
object.serviceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
|
|
118406
|
+
if ($util.Long) {
|
|
118407
|
+
var long = new $util.Long(0, 0, true);
|
|
118408
|
+
object.coverageTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118409
|
+
} else
|
|
118410
|
+
object.coverageTotal = options.longs === String ? "0" : 0;
|
|
118411
|
+
if ($util.Long) {
|
|
118412
|
+
var long = new $util.Long(0, 0, true);
|
|
118413
|
+
object.orgSubscriptionEndDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118414
|
+
} else
|
|
118415
|
+
object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
|
|
118416
|
+
if ($util.Long) {
|
|
118417
|
+
var long = new $util.Long(0, 0, true);
|
|
118418
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118419
|
+
} else
|
|
118420
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
118421
|
+
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
118422
|
+
object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
118423
|
+
}
|
|
118424
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
118425
|
+
if (typeof message.orgId === "number")
|
|
118426
|
+
object.orgId = options.longs === String ? String(message.orgId) : message.orgId;
|
|
118427
|
+
else
|
|
118428
|
+
object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
|
|
118429
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
118430
|
+
object.serviceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.serviceType] : message.serviceType;
|
|
118431
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
118432
|
+
if (typeof message.coverageTotal === "number")
|
|
118433
|
+
object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
|
|
118434
|
+
else
|
|
118435
|
+
object.coverageTotal = options.longs === String ? $util.Long.prototype.toString.call(message.coverageTotal) : options.longs === Number ? new $util.LongBits(message.coverageTotal.low >>> 0, message.coverageTotal.high >>> 0).toNumber(true) : message.coverageTotal;
|
|
118436
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
118437
|
+
if (typeof message.orgSubscriptionEndDate === "number")
|
|
118438
|
+
object.orgSubscriptionEndDate = options.longs === String ? String(message.orgSubscriptionEndDate) : message.orgSubscriptionEndDate;
|
|
118439
|
+
else
|
|
118440
|
+
object.orgSubscriptionEndDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionEndDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionEndDate.low >>> 0, message.orgSubscriptionEndDate.high >>> 0).toNumber(true) : message.orgSubscriptionEndDate;
|
|
118441
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
118442
|
+
if (typeof message.updatedAt === "number")
|
|
118443
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
118444
|
+
else
|
|
118445
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
118446
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
118447
|
+
object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
|
|
118448
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
118449
|
+
object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
|
|
118450
|
+
return object;
|
|
118451
|
+
};
|
|
118452
|
+
|
|
118453
|
+
/**
|
|
118454
|
+
* Converts this ClinicalCoverageUpdated to JSON.
|
|
118455
|
+
* @function toJSON
|
|
118456
|
+
* @memberof ClinicalCoverageUpdated
|
|
118457
|
+
* @instance
|
|
118458
|
+
* @returns {Object.<string,*>} JSON object
|
|
118459
|
+
*/
|
|
118460
|
+
ClinicalCoverageUpdated.prototype.toJSON = function toJSON() {
|
|
118461
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
118462
|
+
};
|
|
118463
|
+
|
|
118464
|
+
return ClinicalCoverageUpdated;
|
|
118465
|
+
})();
|
|
118466
|
+
|
|
118467
|
+
$root.ClinicalCoverageDeleted = (function() {
|
|
118468
|
+
|
|
118469
|
+
/**
|
|
118470
|
+
* Properties of a ClinicalCoverageDeleted.
|
|
118471
|
+
* @name IClinicalCoverageDeleted
|
|
118472
|
+
* @interface IClinicalCoverageDeleted
|
|
118473
|
+
* @property {number|Long|null} [orgId] ClinicalCoverageDeleted orgId
|
|
118474
|
+
* @property {b2b.ClinicalServiceType|null} [serviceType] ClinicalCoverageDeleted serviceType
|
|
118475
|
+
* @property {number|Long|null} [coverageTotal] ClinicalCoverageDeleted coverageTotal
|
|
118476
|
+
* @property {number|Long|null} [orgSubscriptionEndDate] ClinicalCoverageDeleted orgSubscriptionEndDate
|
|
118477
|
+
* @property {number|Long|null} [updatedAt] ClinicalCoverageDeleted updatedAt
|
|
118478
|
+
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] ClinicalCoverageDeleted clinicalCoverageProvider
|
|
118479
|
+
* @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageDeleted clinicalCoverageType
|
|
118480
|
+
*/
|
|
118481
|
+
|
|
118482
|
+
/**
|
|
118483
|
+
* Constructs a new ClinicalCoverageDeleted.
|
|
118484
|
+
* @name ClinicalCoverageDeleted
|
|
118485
|
+
* @classdesc Represents a ClinicalCoverageDeleted.
|
|
118486
|
+
* @implements IClinicalCoverageDeleted
|
|
118487
|
+
* @constructor
|
|
118488
|
+
* @param {IClinicalCoverageDeleted=} [properties] Properties to set
|
|
118489
|
+
*/
|
|
118490
|
+
function ClinicalCoverageDeleted(properties) {
|
|
118491
|
+
if (properties)
|
|
118492
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
118493
|
+
if (properties[keys[i]] != null)
|
|
118494
|
+
this[keys[i]] = properties[keys[i]];
|
|
118495
|
+
}
|
|
118496
|
+
|
|
118497
|
+
/**
|
|
118498
|
+
* ClinicalCoverageDeleted orgId.
|
|
118499
|
+
* @member {number|Long} orgId
|
|
118500
|
+
* @memberof ClinicalCoverageDeleted
|
|
118501
|
+
* @instance
|
|
118502
|
+
*/
|
|
118503
|
+
ClinicalCoverageDeleted.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118504
|
+
|
|
118505
|
+
/**
|
|
118506
|
+
* ClinicalCoverageDeleted serviceType.
|
|
118507
|
+
* @member {b2b.ClinicalServiceType} serviceType
|
|
118508
|
+
* @memberof ClinicalCoverageDeleted
|
|
118509
|
+
* @instance
|
|
118510
|
+
*/
|
|
118511
|
+
ClinicalCoverageDeleted.prototype.serviceType = 0;
|
|
118512
|
+
|
|
118513
|
+
/**
|
|
118514
|
+
* ClinicalCoverageDeleted coverageTotal.
|
|
118515
|
+
* @member {number|Long} coverageTotal
|
|
118516
|
+
* @memberof ClinicalCoverageDeleted
|
|
118517
|
+
* @instance
|
|
118518
|
+
*/
|
|
118519
|
+
ClinicalCoverageDeleted.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118520
|
+
|
|
118521
|
+
/**
|
|
118522
|
+
* ClinicalCoverageDeleted orgSubscriptionEndDate.
|
|
118523
|
+
* @member {number|Long} orgSubscriptionEndDate
|
|
118524
|
+
* @memberof ClinicalCoverageDeleted
|
|
118525
|
+
* @instance
|
|
118526
|
+
*/
|
|
118527
|
+
ClinicalCoverageDeleted.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118528
|
+
|
|
118529
|
+
/**
|
|
118530
|
+
* ClinicalCoverageDeleted updatedAt.
|
|
118531
|
+
* @member {number|Long} updatedAt
|
|
118532
|
+
* @memberof ClinicalCoverageDeleted
|
|
118533
|
+
* @instance
|
|
118534
|
+
*/
|
|
118535
|
+
ClinicalCoverageDeleted.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118536
|
+
|
|
118537
|
+
/**
|
|
118538
|
+
* ClinicalCoverageDeleted clinicalCoverageProvider.
|
|
118539
|
+
* @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
|
|
118540
|
+
* @memberof ClinicalCoverageDeleted
|
|
118541
|
+
* @instance
|
|
118542
|
+
*/
|
|
118543
|
+
ClinicalCoverageDeleted.prototype.clinicalCoverageProvider = 0;
|
|
118544
|
+
|
|
118545
|
+
/**
|
|
118546
|
+
* ClinicalCoverageDeleted clinicalCoverageType.
|
|
118547
|
+
* @member {b2b.ClinicalCoverageType} clinicalCoverageType
|
|
118548
|
+
* @memberof ClinicalCoverageDeleted
|
|
118549
|
+
* @instance
|
|
118550
|
+
*/
|
|
118551
|
+
ClinicalCoverageDeleted.prototype.clinicalCoverageType = 0;
|
|
118552
|
+
|
|
118553
|
+
/**
|
|
118554
|
+
* Creates a new ClinicalCoverageDeleted instance using the specified properties.
|
|
118555
|
+
* @function create
|
|
118556
|
+
* @memberof ClinicalCoverageDeleted
|
|
118557
|
+
* @static
|
|
118558
|
+
* @param {IClinicalCoverageDeleted=} [properties] Properties to set
|
|
118559
|
+
* @returns {ClinicalCoverageDeleted} ClinicalCoverageDeleted instance
|
|
118560
|
+
*/
|
|
118561
|
+
ClinicalCoverageDeleted.create = function create(properties) {
|
|
118562
|
+
return new ClinicalCoverageDeleted(properties);
|
|
118563
|
+
};
|
|
118564
|
+
|
|
118565
|
+
/**
|
|
118566
|
+
* Encodes the specified ClinicalCoverageDeleted message. Does not implicitly {@link ClinicalCoverageDeleted.verify|verify} messages.
|
|
118567
|
+
* @function encode
|
|
118568
|
+
* @memberof ClinicalCoverageDeleted
|
|
118569
|
+
* @static
|
|
118570
|
+
* @param {IClinicalCoverageDeleted} message ClinicalCoverageDeleted message or plain object to encode
|
|
118571
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
118572
|
+
* @returns {$protobuf.Writer} Writer
|
|
118573
|
+
*/
|
|
118574
|
+
ClinicalCoverageDeleted.encode = function encode(message, writer) {
|
|
118575
|
+
if (!writer)
|
|
118576
|
+
writer = $Writer.create();
|
|
118577
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
118578
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
|
|
118579
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
118580
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serviceType);
|
|
118581
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
118582
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.coverageTotal);
|
|
118583
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
118584
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.orgSubscriptionEndDate);
|
|
118585
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
118586
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
118587
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
118588
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clinicalCoverageProvider);
|
|
118589
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
118590
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clinicalCoverageType);
|
|
118591
|
+
return writer;
|
|
118592
|
+
};
|
|
118593
|
+
|
|
118594
|
+
/**
|
|
118595
|
+
* Encodes the specified ClinicalCoverageDeleted message, length delimited. Does not implicitly {@link ClinicalCoverageDeleted.verify|verify} messages.
|
|
118596
|
+
* @function encodeDelimited
|
|
118597
|
+
* @memberof ClinicalCoverageDeleted
|
|
118598
|
+
* @static
|
|
118599
|
+
* @param {IClinicalCoverageDeleted} message ClinicalCoverageDeleted message or plain object to encode
|
|
118600
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
118601
|
+
* @returns {$protobuf.Writer} Writer
|
|
118602
|
+
*/
|
|
118603
|
+
ClinicalCoverageDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
118604
|
+
return this.encode(message, writer).ldelim();
|
|
118605
|
+
};
|
|
118606
|
+
|
|
118607
|
+
/**
|
|
118608
|
+
* Decodes a ClinicalCoverageDeleted message from the specified reader or buffer.
|
|
118609
|
+
* @function decode
|
|
118610
|
+
* @memberof ClinicalCoverageDeleted
|
|
118611
|
+
* @static
|
|
118612
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118613
|
+
* @param {number} [length] Message length if known beforehand
|
|
118614
|
+
* @returns {ClinicalCoverageDeleted} ClinicalCoverageDeleted
|
|
118615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118617
|
+
*/
|
|
118618
|
+
ClinicalCoverageDeleted.decode = function decode(reader, length) {
|
|
118619
|
+
if (!(reader instanceof $Reader))
|
|
118620
|
+
reader = $Reader.create(reader);
|
|
118621
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalCoverageDeleted();
|
|
118622
|
+
while (reader.pos < end) {
|
|
118623
|
+
var tag = reader.uint32();
|
|
118624
|
+
switch (tag >>> 3) {
|
|
118625
|
+
case 1:
|
|
118626
|
+
message.orgId = reader.uint64();
|
|
118627
|
+
break;
|
|
118628
|
+
case 2:
|
|
118629
|
+
message.serviceType = reader.int32();
|
|
118630
|
+
break;
|
|
118631
|
+
case 3:
|
|
118632
|
+
message.coverageTotal = reader.uint64();
|
|
118633
|
+
break;
|
|
118634
|
+
case 4:
|
|
118635
|
+
message.orgSubscriptionEndDate = reader.uint64();
|
|
118636
|
+
break;
|
|
118637
|
+
case 5:
|
|
118638
|
+
message.updatedAt = reader.uint64();
|
|
118639
|
+
break;
|
|
118640
|
+
case 6:
|
|
118641
|
+
message.clinicalCoverageProvider = reader.int32();
|
|
118642
|
+
break;
|
|
118643
|
+
case 7:
|
|
118644
|
+
message.clinicalCoverageType = reader.int32();
|
|
118645
|
+
break;
|
|
118646
|
+
default:
|
|
118647
|
+
reader.skipType(tag & 7);
|
|
118648
|
+
break;
|
|
118649
|
+
}
|
|
118650
|
+
}
|
|
118651
|
+
return message;
|
|
118652
|
+
};
|
|
118653
|
+
|
|
118654
|
+
/**
|
|
118655
|
+
* Decodes a ClinicalCoverageDeleted message from the specified reader or buffer, length delimited.
|
|
118656
|
+
* @function decodeDelimited
|
|
118657
|
+
* @memberof ClinicalCoverageDeleted
|
|
118658
|
+
* @static
|
|
118659
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
118660
|
+
* @returns {ClinicalCoverageDeleted} ClinicalCoverageDeleted
|
|
118661
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
118662
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
118663
|
+
*/
|
|
118664
|
+
ClinicalCoverageDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
118665
|
+
if (!(reader instanceof $Reader))
|
|
118666
|
+
reader = new $Reader(reader);
|
|
118667
|
+
return this.decode(reader, reader.uint32());
|
|
118668
|
+
};
|
|
118669
|
+
|
|
118670
|
+
/**
|
|
118671
|
+
* Verifies a ClinicalCoverageDeleted message.
|
|
118672
|
+
* @function verify
|
|
118673
|
+
* @memberof ClinicalCoverageDeleted
|
|
118674
|
+
* @static
|
|
118675
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
118676
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
118677
|
+
*/
|
|
118678
|
+
ClinicalCoverageDeleted.verify = function verify(message) {
|
|
118679
|
+
if (typeof message !== "object" || message === null)
|
|
118680
|
+
return "object expected";
|
|
118681
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
118682
|
+
if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
|
|
118683
|
+
return "orgId: integer|Long expected";
|
|
118684
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
118685
|
+
switch (message.serviceType) {
|
|
118686
|
+
default:
|
|
118687
|
+
return "serviceType: enum value expected";
|
|
118688
|
+
case 0:
|
|
118689
|
+
case 1:
|
|
118690
|
+
case 2:
|
|
118691
|
+
case 3:
|
|
118692
|
+
break;
|
|
118693
|
+
}
|
|
118694
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
118695
|
+
if (!$util.isInteger(message.coverageTotal) && !(message.coverageTotal && $util.isInteger(message.coverageTotal.low) && $util.isInteger(message.coverageTotal.high)))
|
|
118696
|
+
return "coverageTotal: integer|Long expected";
|
|
118697
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
118698
|
+
if (!$util.isInteger(message.orgSubscriptionEndDate) && !(message.orgSubscriptionEndDate && $util.isInteger(message.orgSubscriptionEndDate.low) && $util.isInteger(message.orgSubscriptionEndDate.high)))
|
|
118699
|
+
return "orgSubscriptionEndDate: integer|Long expected";
|
|
118700
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
118701
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
118702
|
+
return "updatedAt: integer|Long expected";
|
|
118703
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
118704
|
+
switch (message.clinicalCoverageProvider) {
|
|
118705
|
+
default:
|
|
118706
|
+
return "clinicalCoverageProvider: enum value expected";
|
|
118707
|
+
case 0:
|
|
118708
|
+
case 1:
|
|
118709
|
+
case 2:
|
|
118710
|
+
case 3:
|
|
118711
|
+
break;
|
|
118712
|
+
}
|
|
118713
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
118714
|
+
switch (message.clinicalCoverageType) {
|
|
118715
|
+
default:
|
|
118716
|
+
return "clinicalCoverageType: enum value expected";
|
|
118717
|
+
case 0:
|
|
118718
|
+
case 1:
|
|
118719
|
+
case 2:
|
|
118720
|
+
case 3:
|
|
118721
|
+
break;
|
|
118722
|
+
}
|
|
118723
|
+
return null;
|
|
118724
|
+
};
|
|
118725
|
+
|
|
118726
|
+
/**
|
|
118727
|
+
* Creates a ClinicalCoverageDeleted message from a plain object. Also converts values to their respective internal types.
|
|
118728
|
+
* @function fromObject
|
|
118729
|
+
* @memberof ClinicalCoverageDeleted
|
|
118730
|
+
* @static
|
|
118731
|
+
* @param {Object.<string,*>} object Plain object
|
|
118732
|
+
* @returns {ClinicalCoverageDeleted} ClinicalCoverageDeleted
|
|
118733
|
+
*/
|
|
118734
|
+
ClinicalCoverageDeleted.fromObject = function fromObject(object) {
|
|
118735
|
+
if (object instanceof $root.ClinicalCoverageDeleted)
|
|
118736
|
+
return object;
|
|
118737
|
+
var message = new $root.ClinicalCoverageDeleted();
|
|
118738
|
+
if (object.orgId != null)
|
|
118739
|
+
if ($util.Long)
|
|
118740
|
+
(message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
|
|
118741
|
+
else if (typeof object.orgId === "string")
|
|
118742
|
+
message.orgId = parseInt(object.orgId, 10);
|
|
118743
|
+
else if (typeof object.orgId === "number")
|
|
118744
|
+
message.orgId = object.orgId;
|
|
118745
|
+
else if (typeof object.orgId === "object")
|
|
118746
|
+
message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
|
|
118747
|
+
switch (object.serviceType) {
|
|
118748
|
+
case "CLINICAL_SERVICE_TYPE_UNKNOWN":
|
|
118749
|
+
case 0:
|
|
118750
|
+
message.serviceType = 0;
|
|
118751
|
+
break;
|
|
118752
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
|
|
118753
|
+
case 1:
|
|
118754
|
+
message.serviceType = 1;
|
|
118755
|
+
break;
|
|
118756
|
+
case "CLINICAL_SERVICE_TYPE_THERAPY":
|
|
118757
|
+
case 2:
|
|
118758
|
+
message.serviceType = 2;
|
|
118759
|
+
break;
|
|
118760
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
118761
|
+
case 3:
|
|
118762
|
+
message.serviceType = 3;
|
|
118763
|
+
break;
|
|
118764
|
+
}
|
|
118765
|
+
if (object.coverageTotal != null)
|
|
118766
|
+
if ($util.Long)
|
|
118767
|
+
(message.coverageTotal = $util.Long.fromValue(object.coverageTotal)).unsigned = true;
|
|
118768
|
+
else if (typeof object.coverageTotal === "string")
|
|
118769
|
+
message.coverageTotal = parseInt(object.coverageTotal, 10);
|
|
118770
|
+
else if (typeof object.coverageTotal === "number")
|
|
118771
|
+
message.coverageTotal = object.coverageTotal;
|
|
118772
|
+
else if (typeof object.coverageTotal === "object")
|
|
118773
|
+
message.coverageTotal = new $util.LongBits(object.coverageTotal.low >>> 0, object.coverageTotal.high >>> 0).toNumber(true);
|
|
118774
|
+
if (object.orgSubscriptionEndDate != null)
|
|
118775
|
+
if ($util.Long)
|
|
118776
|
+
(message.orgSubscriptionEndDate = $util.Long.fromValue(object.orgSubscriptionEndDate)).unsigned = true;
|
|
118777
|
+
else if (typeof object.orgSubscriptionEndDate === "string")
|
|
118778
|
+
message.orgSubscriptionEndDate = parseInt(object.orgSubscriptionEndDate, 10);
|
|
118779
|
+
else if (typeof object.orgSubscriptionEndDate === "number")
|
|
118780
|
+
message.orgSubscriptionEndDate = object.orgSubscriptionEndDate;
|
|
118781
|
+
else if (typeof object.orgSubscriptionEndDate === "object")
|
|
118782
|
+
message.orgSubscriptionEndDate = new $util.LongBits(object.orgSubscriptionEndDate.low >>> 0, object.orgSubscriptionEndDate.high >>> 0).toNumber(true);
|
|
118783
|
+
if (object.updatedAt != null)
|
|
118784
|
+
if ($util.Long)
|
|
118785
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
118786
|
+
else if (typeof object.updatedAt === "string")
|
|
118787
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
118788
|
+
else if (typeof object.updatedAt === "number")
|
|
118789
|
+
message.updatedAt = object.updatedAt;
|
|
118790
|
+
else if (typeof object.updatedAt === "object")
|
|
118791
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
118792
|
+
switch (object.clinicalCoverageProvider) {
|
|
118793
|
+
case "CLINICAL_COVERAGE_PROVIDER_UNKNOWN":
|
|
118794
|
+
case 0:
|
|
118795
|
+
message.clinicalCoverageProvider = 0;
|
|
118796
|
+
break;
|
|
118797
|
+
case "CLINICAL_COVERAGE_PROVIDER_CCA":
|
|
118798
|
+
case 1:
|
|
118799
|
+
message.clinicalCoverageProvider = 1;
|
|
118800
|
+
break;
|
|
118801
|
+
case "CLINICAL_COVERAGE_PROVIDER_WPO":
|
|
118802
|
+
case 2:
|
|
118803
|
+
message.clinicalCoverageProvider = 2;
|
|
118804
|
+
break;
|
|
118805
|
+
case "CLINICAL_COVERAGE_PROVIDER_NONE":
|
|
118806
|
+
case 3:
|
|
118807
|
+
message.clinicalCoverageProvider = 3;
|
|
118808
|
+
break;
|
|
118809
|
+
}
|
|
118810
|
+
switch (object.clinicalCoverageType) {
|
|
118811
|
+
case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
|
|
118812
|
+
case 0:
|
|
118813
|
+
message.clinicalCoverageType = 0;
|
|
118814
|
+
break;
|
|
118815
|
+
case "CLINICAL_COVERAGE_TYPE_NONE":
|
|
118816
|
+
case 1:
|
|
118817
|
+
message.clinicalCoverageType = 1;
|
|
118818
|
+
break;
|
|
118819
|
+
case "CLINICAL_COVERAGE_TYPE_EAP_V2":
|
|
118820
|
+
case 2:
|
|
118821
|
+
message.clinicalCoverageType = 2;
|
|
118822
|
+
break;
|
|
118823
|
+
case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
|
|
118824
|
+
case 3:
|
|
118825
|
+
message.clinicalCoverageType = 3;
|
|
118826
|
+
break;
|
|
118827
|
+
}
|
|
118828
|
+
return message;
|
|
118829
|
+
};
|
|
118830
|
+
|
|
118831
|
+
/**
|
|
118832
|
+
* Creates a plain object from a ClinicalCoverageDeleted message. Also converts values to other types if specified.
|
|
118833
|
+
* @function toObject
|
|
118834
|
+
* @memberof ClinicalCoverageDeleted
|
|
118835
|
+
* @static
|
|
118836
|
+
* @param {ClinicalCoverageDeleted} message ClinicalCoverageDeleted
|
|
118837
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
118838
|
+
* @returns {Object.<string,*>} Plain object
|
|
118839
|
+
*/
|
|
118840
|
+
ClinicalCoverageDeleted.toObject = function toObject(message, options) {
|
|
118841
|
+
if (!options)
|
|
118842
|
+
options = {};
|
|
118843
|
+
var object = {};
|
|
118844
|
+
if (options.defaults) {
|
|
118845
|
+
if ($util.Long) {
|
|
118846
|
+
var long = new $util.Long(0, 0, true);
|
|
118847
|
+
object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118848
|
+
} else
|
|
118849
|
+
object.orgId = options.longs === String ? "0" : 0;
|
|
118850
|
+
object.serviceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
|
|
118851
|
+
if ($util.Long) {
|
|
118852
|
+
var long = new $util.Long(0, 0, true);
|
|
118853
|
+
object.coverageTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118854
|
+
} else
|
|
118855
|
+
object.coverageTotal = options.longs === String ? "0" : 0;
|
|
118856
|
+
if ($util.Long) {
|
|
118857
|
+
var long = new $util.Long(0, 0, true);
|
|
118858
|
+
object.orgSubscriptionEndDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118859
|
+
} else
|
|
118860
|
+
object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
|
|
118861
|
+
if ($util.Long) {
|
|
118862
|
+
var long = new $util.Long(0, 0, true);
|
|
118863
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
118864
|
+
} else
|
|
118865
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
118866
|
+
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
118867
|
+
object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
|
|
118868
|
+
}
|
|
118869
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
118870
|
+
if (typeof message.orgId === "number")
|
|
118871
|
+
object.orgId = options.longs === String ? String(message.orgId) : message.orgId;
|
|
118872
|
+
else
|
|
118873
|
+
object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
|
|
118874
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
118875
|
+
object.serviceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.serviceType] : message.serviceType;
|
|
118876
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
118877
|
+
if (typeof message.coverageTotal === "number")
|
|
118878
|
+
object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
|
|
118879
|
+
else
|
|
118880
|
+
object.coverageTotal = options.longs === String ? $util.Long.prototype.toString.call(message.coverageTotal) : options.longs === Number ? new $util.LongBits(message.coverageTotal.low >>> 0, message.coverageTotal.high >>> 0).toNumber(true) : message.coverageTotal;
|
|
118881
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
118882
|
+
if (typeof message.orgSubscriptionEndDate === "number")
|
|
118883
|
+
object.orgSubscriptionEndDate = options.longs === String ? String(message.orgSubscriptionEndDate) : message.orgSubscriptionEndDate;
|
|
118884
|
+
else
|
|
118885
|
+
object.orgSubscriptionEndDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionEndDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionEndDate.low >>> 0, message.orgSubscriptionEndDate.high >>> 0).toNumber(true) : message.orgSubscriptionEndDate;
|
|
118886
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
118887
|
+
if (typeof message.updatedAt === "number")
|
|
118888
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
118889
|
+
else
|
|
118890
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
118891
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
118892
|
+
object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
|
|
118893
|
+
if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
|
|
118894
|
+
object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
|
|
118895
|
+
return object;
|
|
118896
|
+
};
|
|
118897
|
+
|
|
118898
|
+
/**
|
|
118899
|
+
* Converts this ClinicalCoverageDeleted to JSON.
|
|
118900
|
+
* @function toJSON
|
|
118901
|
+
* @memberof ClinicalCoverageDeleted
|
|
118902
|
+
* @instance
|
|
118903
|
+
* @returns {Object.<string,*>} JSON object
|
|
118904
|
+
*/
|
|
118905
|
+
ClinicalCoverageDeleted.prototype.toJSON = function toJSON() {
|
|
118906
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
118907
|
+
};
|
|
118908
|
+
|
|
118909
|
+
return ClinicalCoverageDeleted;
|
|
118910
|
+
})();
|
|
118911
|
+
|
|
118912
|
+
$root.EapCoverageCreated = (function() {
|
|
118913
|
+
|
|
118914
|
+
/**
|
|
118915
|
+
* Properties of an EapCoverageCreated.
|
|
118916
|
+
* @name IEapCoverageCreated
|
|
118917
|
+
* @interface IEapCoverageCreated
|
|
118918
|
+
* @property {number|Long|null} [orgId] EapCoverageCreated orgId
|
|
118919
|
+
* @property {b2b.EapServiceType|null} [serviceType] EapCoverageCreated serviceType
|
|
118920
|
+
* @property {number|Long|null} [coverageTotal] EapCoverageCreated coverageTotal
|
|
118921
|
+
* @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageCreated orgSubscriptionEndDate
|
|
118922
|
+
* @property {number|Long|null} [updatedAt] EapCoverageCreated updatedAt
|
|
118923
|
+
* @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageCreated eapCoverage
|
|
118924
|
+
*/
|
|
118925
|
+
|
|
118926
|
+
/**
|
|
118927
|
+
* Constructs a new EapCoverageCreated.
|
|
118928
|
+
* @name EapCoverageCreated
|
|
118929
|
+
* @classdesc Represents an EapCoverageCreated.
|
|
118930
|
+
* @implements IEapCoverageCreated
|
|
118931
|
+
* @constructor
|
|
118932
|
+
* @param {IEapCoverageCreated=} [properties] Properties to set
|
|
118933
|
+
*/
|
|
118934
|
+
function EapCoverageCreated(properties) {
|
|
118935
|
+
if (properties)
|
|
118936
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
118937
|
+
if (properties[keys[i]] != null)
|
|
118938
|
+
this[keys[i]] = properties[keys[i]];
|
|
118939
|
+
}
|
|
118940
|
+
|
|
118941
|
+
/**
|
|
118942
|
+
* EapCoverageCreated orgId.
|
|
118943
|
+
* @member {number|Long} orgId
|
|
118944
|
+
* @memberof EapCoverageCreated
|
|
118945
|
+
* @instance
|
|
118946
|
+
*/
|
|
118947
|
+
EapCoverageCreated.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118948
|
+
|
|
118949
|
+
/**
|
|
118950
|
+
* EapCoverageCreated serviceType.
|
|
118951
|
+
* @member {b2b.EapServiceType} serviceType
|
|
118952
|
+
* @memberof EapCoverageCreated
|
|
118953
|
+
* @instance
|
|
118954
|
+
*/
|
|
118955
|
+
EapCoverageCreated.prototype.serviceType = 0;
|
|
118956
|
+
|
|
118957
|
+
/**
|
|
118958
|
+
* EapCoverageCreated coverageTotal.
|
|
118959
|
+
* @member {number|Long} coverageTotal
|
|
118960
|
+
* @memberof EapCoverageCreated
|
|
118961
|
+
* @instance
|
|
118962
|
+
*/
|
|
118963
|
+
EapCoverageCreated.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118964
|
+
|
|
118965
|
+
/**
|
|
118966
|
+
* EapCoverageCreated orgSubscriptionEndDate.
|
|
118967
|
+
* @member {number|Long} orgSubscriptionEndDate
|
|
118968
|
+
* @memberof EapCoverageCreated
|
|
118969
|
+
* @instance
|
|
118970
|
+
*/
|
|
118971
|
+
EapCoverageCreated.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118972
|
+
|
|
118973
|
+
/**
|
|
118974
|
+
* EapCoverageCreated updatedAt.
|
|
118975
|
+
* @member {number|Long} updatedAt
|
|
118976
|
+
* @memberof EapCoverageCreated
|
|
118977
|
+
* @instance
|
|
118978
|
+
*/
|
|
118979
|
+
EapCoverageCreated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
118980
|
+
|
|
118981
|
+
/**
|
|
118982
|
+
* EapCoverageCreated eapCoverage.
|
|
118983
|
+
* @member {b2b.EapCoverage} eapCoverage
|
|
118984
|
+
* @memberof EapCoverageCreated
|
|
118985
|
+
* @instance
|
|
118986
|
+
*/
|
|
118987
|
+
EapCoverageCreated.prototype.eapCoverage = 0;
|
|
118988
|
+
|
|
118989
|
+
/**
|
|
118990
|
+
* Creates a new EapCoverageCreated instance using the specified properties.
|
|
118991
|
+
* @function create
|
|
118992
|
+
* @memberof EapCoverageCreated
|
|
118993
|
+
* @static
|
|
118994
|
+
* @param {IEapCoverageCreated=} [properties] Properties to set
|
|
118995
|
+
* @returns {EapCoverageCreated} EapCoverageCreated instance
|
|
118996
|
+
*/
|
|
118997
|
+
EapCoverageCreated.create = function create(properties) {
|
|
118998
|
+
return new EapCoverageCreated(properties);
|
|
118999
|
+
};
|
|
119000
|
+
|
|
119001
|
+
/**
|
|
119002
|
+
* Encodes the specified EapCoverageCreated message. Does not implicitly {@link EapCoverageCreated.verify|verify} messages.
|
|
119003
|
+
* @function encode
|
|
119004
|
+
* @memberof EapCoverageCreated
|
|
119005
|
+
* @static
|
|
119006
|
+
* @param {IEapCoverageCreated} message EapCoverageCreated message or plain object to encode
|
|
119007
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119008
|
+
* @returns {$protobuf.Writer} Writer
|
|
119009
|
+
*/
|
|
119010
|
+
EapCoverageCreated.encode = function encode(message, writer) {
|
|
119011
|
+
if (!writer)
|
|
119012
|
+
writer = $Writer.create();
|
|
119013
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
119014
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
|
|
119015
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
119016
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serviceType);
|
|
119017
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
119018
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.coverageTotal);
|
|
119019
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
119020
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.orgSubscriptionEndDate);
|
|
119021
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
119022
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
119023
|
+
if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
|
|
119024
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
|
|
119025
|
+
return writer;
|
|
119026
|
+
};
|
|
119027
|
+
|
|
119028
|
+
/**
|
|
119029
|
+
* Encodes the specified EapCoverageCreated message, length delimited. Does not implicitly {@link EapCoverageCreated.verify|verify} messages.
|
|
119030
|
+
* @function encodeDelimited
|
|
119031
|
+
* @memberof EapCoverageCreated
|
|
119032
|
+
* @static
|
|
119033
|
+
* @param {IEapCoverageCreated} message EapCoverageCreated message or plain object to encode
|
|
119034
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119035
|
+
* @returns {$protobuf.Writer} Writer
|
|
119036
|
+
*/
|
|
119037
|
+
EapCoverageCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
119038
|
+
return this.encode(message, writer).ldelim();
|
|
119039
|
+
};
|
|
119040
|
+
|
|
119041
|
+
/**
|
|
119042
|
+
* Decodes an EapCoverageCreated message from the specified reader or buffer.
|
|
119043
|
+
* @function decode
|
|
119044
|
+
* @memberof EapCoverageCreated
|
|
119045
|
+
* @static
|
|
119046
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119047
|
+
* @param {number} [length] Message length if known beforehand
|
|
119048
|
+
* @returns {EapCoverageCreated} EapCoverageCreated
|
|
119049
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119050
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119051
|
+
*/
|
|
119052
|
+
EapCoverageCreated.decode = function decode(reader, length) {
|
|
119053
|
+
if (!(reader instanceof $Reader))
|
|
119054
|
+
reader = $Reader.create(reader);
|
|
119055
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EapCoverageCreated();
|
|
119056
|
+
while (reader.pos < end) {
|
|
119057
|
+
var tag = reader.uint32();
|
|
119058
|
+
switch (tag >>> 3) {
|
|
119059
|
+
case 1:
|
|
119060
|
+
message.orgId = reader.uint64();
|
|
119061
|
+
break;
|
|
119062
|
+
case 2:
|
|
119063
|
+
message.serviceType = reader.int32();
|
|
119064
|
+
break;
|
|
119065
|
+
case 3:
|
|
119066
|
+
message.coverageTotal = reader.uint64();
|
|
119067
|
+
break;
|
|
119068
|
+
case 4:
|
|
119069
|
+
message.orgSubscriptionEndDate = reader.uint64();
|
|
119070
|
+
break;
|
|
119071
|
+
case 5:
|
|
119072
|
+
message.updatedAt = reader.uint64();
|
|
119073
|
+
break;
|
|
119074
|
+
case 6:
|
|
119075
|
+
message.eapCoverage = reader.int32();
|
|
119076
|
+
break;
|
|
119077
|
+
default:
|
|
119078
|
+
reader.skipType(tag & 7);
|
|
119079
|
+
break;
|
|
119080
|
+
}
|
|
119081
|
+
}
|
|
119082
|
+
return message;
|
|
119083
|
+
};
|
|
119084
|
+
|
|
119085
|
+
/**
|
|
119086
|
+
* Decodes an EapCoverageCreated message from the specified reader or buffer, length delimited.
|
|
119087
|
+
* @function decodeDelimited
|
|
119088
|
+
* @memberof EapCoverageCreated
|
|
119089
|
+
* @static
|
|
119090
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119091
|
+
* @returns {EapCoverageCreated} EapCoverageCreated
|
|
119092
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119093
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119094
|
+
*/
|
|
119095
|
+
EapCoverageCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
119096
|
+
if (!(reader instanceof $Reader))
|
|
119097
|
+
reader = new $Reader(reader);
|
|
119098
|
+
return this.decode(reader, reader.uint32());
|
|
119099
|
+
};
|
|
119100
|
+
|
|
119101
|
+
/**
|
|
119102
|
+
* Verifies an EapCoverageCreated message.
|
|
119103
|
+
* @function verify
|
|
119104
|
+
* @memberof EapCoverageCreated
|
|
119105
|
+
* @static
|
|
119106
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
119107
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
119108
|
+
*/
|
|
119109
|
+
EapCoverageCreated.verify = function verify(message) {
|
|
119110
|
+
if (typeof message !== "object" || message === null)
|
|
119111
|
+
return "object expected";
|
|
119112
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
119113
|
+
if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
|
|
119114
|
+
return "orgId: integer|Long expected";
|
|
119115
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
119116
|
+
switch (message.serviceType) {
|
|
119117
|
+
default:
|
|
119118
|
+
return "serviceType: enum value expected";
|
|
119119
|
+
case 0:
|
|
119120
|
+
case 1:
|
|
119121
|
+
case 2:
|
|
119122
|
+
case 3:
|
|
119123
|
+
break;
|
|
119124
|
+
}
|
|
119125
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
119126
|
+
if (!$util.isInteger(message.coverageTotal) && !(message.coverageTotal && $util.isInteger(message.coverageTotal.low) && $util.isInteger(message.coverageTotal.high)))
|
|
119127
|
+
return "coverageTotal: integer|Long expected";
|
|
119128
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
119129
|
+
if (!$util.isInteger(message.orgSubscriptionEndDate) && !(message.orgSubscriptionEndDate && $util.isInteger(message.orgSubscriptionEndDate.low) && $util.isInteger(message.orgSubscriptionEndDate.high)))
|
|
119130
|
+
return "orgSubscriptionEndDate: integer|Long expected";
|
|
119131
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
119132
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
119133
|
+
return "updatedAt: integer|Long expected";
|
|
119134
|
+
if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
|
|
119135
|
+
switch (message.eapCoverage) {
|
|
119136
|
+
default:
|
|
119137
|
+
return "eapCoverage: enum value expected";
|
|
119138
|
+
case 0:
|
|
119139
|
+
case 1:
|
|
119140
|
+
case 2:
|
|
119141
|
+
case 3:
|
|
119142
|
+
break;
|
|
119143
|
+
}
|
|
119144
|
+
return null;
|
|
119145
|
+
};
|
|
119146
|
+
|
|
119147
|
+
/**
|
|
119148
|
+
* Creates an EapCoverageCreated message from a plain object. Also converts values to their respective internal types.
|
|
119149
|
+
* @function fromObject
|
|
119150
|
+
* @memberof EapCoverageCreated
|
|
119151
|
+
* @static
|
|
119152
|
+
* @param {Object.<string,*>} object Plain object
|
|
119153
|
+
* @returns {EapCoverageCreated} EapCoverageCreated
|
|
119154
|
+
*/
|
|
119155
|
+
EapCoverageCreated.fromObject = function fromObject(object) {
|
|
119156
|
+
if (object instanceof $root.EapCoverageCreated)
|
|
119157
|
+
return object;
|
|
119158
|
+
var message = new $root.EapCoverageCreated();
|
|
119159
|
+
if (object.orgId != null)
|
|
119160
|
+
if ($util.Long)
|
|
119161
|
+
(message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
|
|
119162
|
+
else if (typeof object.orgId === "string")
|
|
119163
|
+
message.orgId = parseInt(object.orgId, 10);
|
|
119164
|
+
else if (typeof object.orgId === "number")
|
|
119165
|
+
message.orgId = object.orgId;
|
|
119166
|
+
else if (typeof object.orgId === "object")
|
|
119167
|
+
message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
|
|
119168
|
+
switch (object.serviceType) {
|
|
119169
|
+
case "EAP_SERVICE_TYPE_UNKNOWN":
|
|
119170
|
+
case 0:
|
|
119171
|
+
message.serviceType = 0;
|
|
119172
|
+
break;
|
|
119173
|
+
case "EAP_SERVICE_TYPE_PSYCHIATRY":
|
|
119174
|
+
case 1:
|
|
119175
|
+
message.serviceType = 1;
|
|
119176
|
+
break;
|
|
119177
|
+
case "EAP_SERVICE_TYPE_THERAPY":
|
|
119178
|
+
case 2:
|
|
119179
|
+
message.serviceType = 2;
|
|
119180
|
+
break;
|
|
119181
|
+
case "EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
119182
|
+
case 3:
|
|
119183
|
+
message.serviceType = 3;
|
|
119184
|
+
break;
|
|
119185
|
+
}
|
|
119186
|
+
if (object.coverageTotal != null)
|
|
119187
|
+
if ($util.Long)
|
|
119188
|
+
(message.coverageTotal = $util.Long.fromValue(object.coverageTotal)).unsigned = true;
|
|
119189
|
+
else if (typeof object.coverageTotal === "string")
|
|
119190
|
+
message.coverageTotal = parseInt(object.coverageTotal, 10);
|
|
119191
|
+
else if (typeof object.coverageTotal === "number")
|
|
119192
|
+
message.coverageTotal = object.coverageTotal;
|
|
119193
|
+
else if (typeof object.coverageTotal === "object")
|
|
119194
|
+
message.coverageTotal = new $util.LongBits(object.coverageTotal.low >>> 0, object.coverageTotal.high >>> 0).toNumber(true);
|
|
119195
|
+
if (object.orgSubscriptionEndDate != null)
|
|
119196
|
+
if ($util.Long)
|
|
119197
|
+
(message.orgSubscriptionEndDate = $util.Long.fromValue(object.orgSubscriptionEndDate)).unsigned = true;
|
|
119198
|
+
else if (typeof object.orgSubscriptionEndDate === "string")
|
|
119199
|
+
message.orgSubscriptionEndDate = parseInt(object.orgSubscriptionEndDate, 10);
|
|
119200
|
+
else if (typeof object.orgSubscriptionEndDate === "number")
|
|
119201
|
+
message.orgSubscriptionEndDate = object.orgSubscriptionEndDate;
|
|
119202
|
+
else if (typeof object.orgSubscriptionEndDate === "object")
|
|
119203
|
+
message.orgSubscriptionEndDate = new $util.LongBits(object.orgSubscriptionEndDate.low >>> 0, object.orgSubscriptionEndDate.high >>> 0).toNumber(true);
|
|
119204
|
+
if (object.updatedAt != null)
|
|
119205
|
+
if ($util.Long)
|
|
119206
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
119207
|
+
else if (typeof object.updatedAt === "string")
|
|
119208
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
119209
|
+
else if (typeof object.updatedAt === "number")
|
|
119210
|
+
message.updatedAt = object.updatedAt;
|
|
119211
|
+
else if (typeof object.updatedAt === "object")
|
|
119212
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
119213
|
+
switch (object.eapCoverage) {
|
|
119214
|
+
case "EAP_COVERAGE_UNKNOWN":
|
|
119215
|
+
case 0:
|
|
119216
|
+
message.eapCoverage = 0;
|
|
119217
|
+
break;
|
|
119218
|
+
case "EAP_COVERAGE_CCA":
|
|
119219
|
+
case 1:
|
|
119220
|
+
message.eapCoverage = 1;
|
|
119221
|
+
break;
|
|
119222
|
+
case "EAP_COVERAGE_WPO":
|
|
119223
|
+
case 2:
|
|
119224
|
+
message.eapCoverage = 2;
|
|
119225
|
+
break;
|
|
119226
|
+
case "EAP_COVERAGE_NONE":
|
|
119227
|
+
case 3:
|
|
119228
|
+
message.eapCoverage = 3;
|
|
119229
|
+
break;
|
|
119230
|
+
}
|
|
119231
|
+
return message;
|
|
119232
|
+
};
|
|
119233
|
+
|
|
119234
|
+
/**
|
|
119235
|
+
* Creates a plain object from an EapCoverageCreated message. Also converts values to other types if specified.
|
|
119236
|
+
* @function toObject
|
|
119237
|
+
* @memberof EapCoverageCreated
|
|
119238
|
+
* @static
|
|
119239
|
+
* @param {EapCoverageCreated} message EapCoverageCreated
|
|
119240
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
119241
|
+
* @returns {Object.<string,*>} Plain object
|
|
119242
|
+
*/
|
|
119243
|
+
EapCoverageCreated.toObject = function toObject(message, options) {
|
|
119244
|
+
if (!options)
|
|
119245
|
+
options = {};
|
|
119246
|
+
var object = {};
|
|
119247
|
+
if (options.defaults) {
|
|
119248
|
+
if ($util.Long) {
|
|
119249
|
+
var long = new $util.Long(0, 0, true);
|
|
119250
|
+
object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
119251
|
+
} else
|
|
119252
|
+
object.orgId = options.longs === String ? "0" : 0;
|
|
119253
|
+
object.serviceType = options.enums === String ? "EAP_SERVICE_TYPE_UNKNOWN" : 0;
|
|
119254
|
+
if ($util.Long) {
|
|
119255
|
+
var long = new $util.Long(0, 0, true);
|
|
119256
|
+
object.coverageTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
119257
|
+
} else
|
|
119258
|
+
object.coverageTotal = options.longs === String ? "0" : 0;
|
|
119259
|
+
if ($util.Long) {
|
|
119260
|
+
var long = new $util.Long(0, 0, true);
|
|
119261
|
+
object.orgSubscriptionEndDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
119262
|
+
} else
|
|
119263
|
+
object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
|
|
119264
|
+
if ($util.Long) {
|
|
119265
|
+
var long = new $util.Long(0, 0, true);
|
|
119266
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
119267
|
+
} else
|
|
119268
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
119269
|
+
object.eapCoverage = options.enums === String ? "EAP_COVERAGE_UNKNOWN" : 0;
|
|
119270
|
+
}
|
|
119271
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
119272
|
+
if (typeof message.orgId === "number")
|
|
119273
|
+
object.orgId = options.longs === String ? String(message.orgId) : message.orgId;
|
|
119274
|
+
else
|
|
119275
|
+
object.orgId = options.longs === String ? $util.Long.prototype.toString.call(message.orgId) : options.longs === Number ? new $util.LongBits(message.orgId.low >>> 0, message.orgId.high >>> 0).toNumber(true) : message.orgId;
|
|
119276
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
119277
|
+
object.serviceType = options.enums === String ? $root.b2b.EapServiceType[message.serviceType] : message.serviceType;
|
|
119278
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
119279
|
+
if (typeof message.coverageTotal === "number")
|
|
119280
|
+
object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
|
|
119281
|
+
else
|
|
119282
|
+
object.coverageTotal = options.longs === String ? $util.Long.prototype.toString.call(message.coverageTotal) : options.longs === Number ? new $util.LongBits(message.coverageTotal.low >>> 0, message.coverageTotal.high >>> 0).toNumber(true) : message.coverageTotal;
|
|
119283
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
119284
|
+
if (typeof message.orgSubscriptionEndDate === "number")
|
|
119285
|
+
object.orgSubscriptionEndDate = options.longs === String ? String(message.orgSubscriptionEndDate) : message.orgSubscriptionEndDate;
|
|
119286
|
+
else
|
|
119287
|
+
object.orgSubscriptionEndDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionEndDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionEndDate.low >>> 0, message.orgSubscriptionEndDate.high >>> 0).toNumber(true) : message.orgSubscriptionEndDate;
|
|
119288
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
119289
|
+
if (typeof message.updatedAt === "number")
|
|
119290
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
119291
|
+
else
|
|
119292
|
+
object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
|
|
119293
|
+
if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
|
|
119294
|
+
object.eapCoverage = options.enums === String ? $root.b2b.EapCoverage[message.eapCoverage] : message.eapCoverage;
|
|
119295
|
+
return object;
|
|
119296
|
+
};
|
|
119297
|
+
|
|
119298
|
+
/**
|
|
119299
|
+
* Converts this EapCoverageCreated to JSON.
|
|
119300
|
+
* @function toJSON
|
|
119301
|
+
* @memberof EapCoverageCreated
|
|
119302
|
+
* @instance
|
|
119303
|
+
* @returns {Object.<string,*>} JSON object
|
|
119304
|
+
*/
|
|
119305
|
+
EapCoverageCreated.prototype.toJSON = function toJSON() {
|
|
119306
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
119307
|
+
};
|
|
119308
|
+
|
|
119309
|
+
return EapCoverageCreated;
|
|
119310
|
+
})();
|
|
119311
|
+
|
|
119312
|
+
$root.EapCoverageUpdated = (function() {
|
|
119313
|
+
|
|
119314
|
+
/**
|
|
119315
|
+
* Properties of an EapCoverageUpdated.
|
|
119316
|
+
* @name IEapCoverageUpdated
|
|
119317
|
+
* @interface IEapCoverageUpdated
|
|
119318
|
+
* @property {number|Long|null} [orgId] EapCoverageUpdated orgId
|
|
119319
|
+
* @property {b2b.EapServiceType|null} [serviceType] EapCoverageUpdated serviceType
|
|
119320
|
+
* @property {number|Long|null} [coverageTotal] EapCoverageUpdated coverageTotal
|
|
119321
|
+
* @property {number|Long|null} [orgSubscriptionEndDate] EapCoverageUpdated orgSubscriptionEndDate
|
|
119322
|
+
* @property {number|Long|null} [updatedAt] EapCoverageUpdated updatedAt
|
|
119323
|
+
* @property {b2b.EapCoverage|null} [eapCoverage] EapCoverageUpdated eapCoverage
|
|
119324
|
+
*/
|
|
119325
|
+
|
|
119326
|
+
/**
|
|
119327
|
+
* Constructs a new EapCoverageUpdated.
|
|
119328
|
+
* @name EapCoverageUpdated
|
|
119329
|
+
* @classdesc Represents an EapCoverageUpdated.
|
|
119330
|
+
* @implements IEapCoverageUpdated
|
|
119331
|
+
* @constructor
|
|
119332
|
+
* @param {IEapCoverageUpdated=} [properties] Properties to set
|
|
119333
|
+
*/
|
|
119334
|
+
function EapCoverageUpdated(properties) {
|
|
119335
|
+
if (properties)
|
|
119336
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
119337
|
+
if (properties[keys[i]] != null)
|
|
119338
|
+
this[keys[i]] = properties[keys[i]];
|
|
119339
|
+
}
|
|
119340
|
+
|
|
119341
|
+
/**
|
|
119342
|
+
* EapCoverageUpdated orgId.
|
|
119343
|
+
* @member {number|Long} orgId
|
|
119344
|
+
* @memberof EapCoverageUpdated
|
|
119345
|
+
* @instance
|
|
119346
|
+
*/
|
|
119347
|
+
EapCoverageUpdated.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
119348
|
+
|
|
119349
|
+
/**
|
|
119350
|
+
* EapCoverageUpdated serviceType.
|
|
119351
|
+
* @member {b2b.EapServiceType} serviceType
|
|
119352
|
+
* @memberof EapCoverageUpdated
|
|
119353
|
+
* @instance
|
|
119354
|
+
*/
|
|
119355
|
+
EapCoverageUpdated.prototype.serviceType = 0;
|
|
119356
|
+
|
|
119357
|
+
/**
|
|
119358
|
+
* EapCoverageUpdated coverageTotal.
|
|
119359
|
+
* @member {number|Long} coverageTotal
|
|
119360
|
+
* @memberof EapCoverageUpdated
|
|
119361
|
+
* @instance
|
|
119362
|
+
*/
|
|
119363
|
+
EapCoverageUpdated.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
119364
|
+
|
|
119365
|
+
/**
|
|
119366
|
+
* EapCoverageUpdated orgSubscriptionEndDate.
|
|
119367
|
+
* @member {number|Long} orgSubscriptionEndDate
|
|
119368
|
+
* @memberof EapCoverageUpdated
|
|
119369
|
+
* @instance
|
|
119370
|
+
*/
|
|
119371
|
+
EapCoverageUpdated.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
119372
|
+
|
|
119373
|
+
/**
|
|
119374
|
+
* EapCoverageUpdated updatedAt.
|
|
119375
|
+
* @member {number|Long} updatedAt
|
|
119376
|
+
* @memberof EapCoverageUpdated
|
|
119377
|
+
* @instance
|
|
119378
|
+
*/
|
|
119379
|
+
EapCoverageUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
119380
|
+
|
|
119381
|
+
/**
|
|
119382
|
+
* EapCoverageUpdated eapCoverage.
|
|
119383
|
+
* @member {b2b.EapCoverage} eapCoverage
|
|
119384
|
+
* @memberof EapCoverageUpdated
|
|
119385
|
+
* @instance
|
|
119386
|
+
*/
|
|
119387
|
+
EapCoverageUpdated.prototype.eapCoverage = 0;
|
|
119388
|
+
|
|
119389
|
+
/**
|
|
119390
|
+
* Creates a new EapCoverageUpdated instance using the specified properties.
|
|
119391
|
+
* @function create
|
|
119392
|
+
* @memberof EapCoverageUpdated
|
|
119393
|
+
* @static
|
|
119394
|
+
* @param {IEapCoverageUpdated=} [properties] Properties to set
|
|
119395
|
+
* @returns {EapCoverageUpdated} EapCoverageUpdated instance
|
|
119396
|
+
*/
|
|
119397
|
+
EapCoverageUpdated.create = function create(properties) {
|
|
119398
|
+
return new EapCoverageUpdated(properties);
|
|
119399
|
+
};
|
|
119400
|
+
|
|
119401
|
+
/**
|
|
119402
|
+
* Encodes the specified EapCoverageUpdated message. Does not implicitly {@link EapCoverageUpdated.verify|verify} messages.
|
|
119403
|
+
* @function encode
|
|
119404
|
+
* @memberof EapCoverageUpdated
|
|
119405
|
+
* @static
|
|
119406
|
+
* @param {IEapCoverageUpdated} message EapCoverageUpdated message or plain object to encode
|
|
119407
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119408
|
+
* @returns {$protobuf.Writer} Writer
|
|
119409
|
+
*/
|
|
119410
|
+
EapCoverageUpdated.encode = function encode(message, writer) {
|
|
119411
|
+
if (!writer)
|
|
119412
|
+
writer = $Writer.create();
|
|
119413
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
119414
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
|
|
119415
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
119416
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serviceType);
|
|
119417
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
119418
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.coverageTotal);
|
|
119419
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
119420
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.orgSubscriptionEndDate);
|
|
119421
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
119422
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
119423
|
+
if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
|
|
119424
|
+
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.eapCoverage);
|
|
119425
|
+
return writer;
|
|
119426
|
+
};
|
|
119427
|
+
|
|
119428
|
+
/**
|
|
119429
|
+
* Encodes the specified EapCoverageUpdated message, length delimited. Does not implicitly {@link EapCoverageUpdated.verify|verify} messages.
|
|
119430
|
+
* @function encodeDelimited
|
|
119431
|
+
* @memberof EapCoverageUpdated
|
|
119432
|
+
* @static
|
|
119433
|
+
* @param {IEapCoverageUpdated} message EapCoverageUpdated message or plain object to encode
|
|
119434
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
119435
|
+
* @returns {$protobuf.Writer} Writer
|
|
119436
|
+
*/
|
|
119437
|
+
EapCoverageUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
119438
|
+
return this.encode(message, writer).ldelim();
|
|
119439
|
+
};
|
|
119440
|
+
|
|
119441
|
+
/**
|
|
119442
|
+
* Decodes an EapCoverageUpdated message from the specified reader or buffer.
|
|
119443
|
+
* @function decode
|
|
119444
|
+
* @memberof EapCoverageUpdated
|
|
119445
|
+
* @static
|
|
119446
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119447
|
+
* @param {number} [length] Message length if known beforehand
|
|
119448
|
+
* @returns {EapCoverageUpdated} EapCoverageUpdated
|
|
119449
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119450
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119451
|
+
*/
|
|
119452
|
+
EapCoverageUpdated.decode = function decode(reader, length) {
|
|
119453
|
+
if (!(reader instanceof $Reader))
|
|
119454
|
+
reader = $Reader.create(reader);
|
|
119455
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.EapCoverageUpdated();
|
|
119456
|
+
while (reader.pos < end) {
|
|
119457
|
+
var tag = reader.uint32();
|
|
119458
|
+
switch (tag >>> 3) {
|
|
119459
|
+
case 1:
|
|
119460
|
+
message.orgId = reader.uint64();
|
|
119461
|
+
break;
|
|
119462
|
+
case 2:
|
|
119463
|
+
message.serviceType = reader.int32();
|
|
119464
|
+
break;
|
|
119465
|
+
case 3:
|
|
119466
|
+
message.coverageTotal = reader.uint64();
|
|
119467
|
+
break;
|
|
119468
|
+
case 4:
|
|
119469
|
+
message.orgSubscriptionEndDate = reader.uint64();
|
|
119470
|
+
break;
|
|
119471
|
+
case 5:
|
|
119472
|
+
message.updatedAt = reader.uint64();
|
|
119473
|
+
break;
|
|
119474
|
+
case 6:
|
|
119475
|
+
message.eapCoverage = reader.int32();
|
|
119476
|
+
break;
|
|
119477
|
+
default:
|
|
119478
|
+
reader.skipType(tag & 7);
|
|
119479
|
+
break;
|
|
119480
|
+
}
|
|
119481
|
+
}
|
|
119482
|
+
return message;
|
|
119483
|
+
};
|
|
119484
|
+
|
|
119485
|
+
/**
|
|
119486
|
+
* Decodes an EapCoverageUpdated message from the specified reader or buffer, length delimited.
|
|
119487
|
+
* @function decodeDelimited
|
|
119488
|
+
* @memberof EapCoverageUpdated
|
|
119489
|
+
* @static
|
|
119490
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
119491
|
+
* @returns {EapCoverageUpdated} EapCoverageUpdated
|
|
119492
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
119493
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
119494
|
+
*/
|
|
119495
|
+
EapCoverageUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
119496
|
+
if (!(reader instanceof $Reader))
|
|
119497
|
+
reader = new $Reader(reader);
|
|
119498
|
+
return this.decode(reader, reader.uint32());
|
|
119499
|
+
};
|
|
119500
|
+
|
|
119501
|
+
/**
|
|
119502
|
+
* Verifies an EapCoverageUpdated message.
|
|
119503
|
+
* @function verify
|
|
119504
|
+
* @memberof EapCoverageUpdated
|
|
119505
|
+
* @static
|
|
119506
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
119507
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
119508
|
+
*/
|
|
119509
|
+
EapCoverageUpdated.verify = function verify(message) {
|
|
119510
|
+
if (typeof message !== "object" || message === null)
|
|
119511
|
+
return "object expected";
|
|
119512
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
119513
|
+
if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
|
|
119514
|
+
return "orgId: integer|Long expected";
|
|
119515
|
+
if (message.serviceType != null && message.hasOwnProperty("serviceType"))
|
|
119516
|
+
switch (message.serviceType) {
|
|
119517
|
+
default:
|
|
119518
|
+
return "serviceType: enum value expected";
|
|
119519
|
+
case 0:
|
|
119520
|
+
case 1:
|
|
119521
|
+
case 2:
|
|
119522
|
+
case 3:
|
|
119523
|
+
break;
|
|
119524
|
+
}
|
|
119525
|
+
if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
|
|
119526
|
+
if (!$util.isInteger(message.coverageTotal) && !(message.coverageTotal && $util.isInteger(message.coverageTotal.low) && $util.isInteger(message.coverageTotal.high)))
|
|
119527
|
+
return "coverageTotal: integer|Long expected";
|
|
119528
|
+
if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
|
|
119529
|
+
if (!$util.isInteger(message.orgSubscriptionEndDate) && !(message.orgSubscriptionEndDate && $util.isInteger(message.orgSubscriptionEndDate.low) && $util.isInteger(message.orgSubscriptionEndDate.high)))
|
|
119530
|
+
return "orgSubscriptionEndDate: integer|Long expected";
|
|
119531
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
119532
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
119533
|
+
return "updatedAt: integer|Long expected";
|
|
119534
|
+
if (message.eapCoverage != null && message.hasOwnProperty("eapCoverage"))
|
|
119535
|
+
switch (message.eapCoverage) {
|
|
119536
|
+
default:
|
|
119537
|
+
return "eapCoverage: enum value expected";
|
|
119538
|
+
case 0:
|
|
119539
|
+
case 1:
|
|
119540
|
+
case 2:
|
|
119541
|
+
case 3:
|
|
119542
|
+
break;
|
|
119543
|
+
}
|
|
119544
|
+
return null;
|
|
119545
|
+
};
|
|
119546
|
+
|
|
119547
|
+
/**
|
|
119548
|
+
* Creates an EapCoverageUpdated message from a plain object. Also converts values to their respective internal types.
|
|
119549
|
+
* @function fromObject
|
|
119550
|
+
* @memberof EapCoverageUpdated
|
|
119551
|
+
* @static
|
|
119552
|
+
* @param {Object.<string,*>} object Plain object
|
|
119553
|
+
* @returns {EapCoverageUpdated} EapCoverageUpdated
|
|
119554
|
+
*/
|
|
119555
|
+
EapCoverageUpdated.fromObject = function fromObject(object) {
|
|
119556
|
+
if (object instanceof $root.EapCoverageUpdated)
|
|
119557
|
+
return object;
|
|
119558
|
+
var message = new $root.EapCoverageUpdated();
|
|
119559
|
+
if (object.orgId != null)
|
|
119560
|
+
if ($util.Long)
|
|
119561
|
+
(message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
|
|
119562
|
+
else if (typeof object.orgId === "string")
|
|
119563
|
+
message.orgId = parseInt(object.orgId, 10);
|
|
119564
|
+
else if (typeof object.orgId === "number")
|
|
119565
|
+
message.orgId = object.orgId;
|
|
119566
|
+
else if (typeof object.orgId === "object")
|
|
119567
|
+
message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
|
|
119568
|
+
switch (object.serviceType) {
|
|
119569
|
+
case "EAP_SERVICE_TYPE_UNKNOWN":
|
|
119570
|
+
case 0:
|
|
119571
|
+
message.serviceType = 0;
|
|
119572
|
+
break;
|
|
119573
|
+
case "EAP_SERVICE_TYPE_PSYCHIATRY":
|
|
119574
|
+
case 1:
|
|
119575
|
+
message.serviceType = 1;
|
|
119576
|
+
break;
|
|
119577
|
+
case "EAP_SERVICE_TYPE_THERAPY":
|
|
119578
|
+
case 2:
|
|
119579
|
+
message.serviceType = 2;
|
|
119580
|
+
break;
|
|
119581
|
+
case "EAP_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
118148
119582
|
case 3:
|
|
118149
119583
|
message.serviceType = 3;
|
|
118150
119584
|
break;
|
|
@@ -141124,6 +142558,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
141124
142558
|
* @property {string|null} [healthHub] EnterpriseUserEnrollmentCreated healthHub
|
|
141125
142559
|
* @property {number|null} [subscriptionOrgId] EnterpriseUserEnrollmentCreated subscriptionOrgId
|
|
141126
142560
|
* @property {string|null} [healthHubName] EnterpriseUserEnrollmentCreated healthHubName
|
|
142561
|
+
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] EnterpriseUserEnrollmentCreated clinicalCoverageProvider
|
|
142562
|
+
* @property {number|null} [clinicalCoverageTotal] EnterpriseUserEnrollmentCreated clinicalCoverageTotal
|
|
142563
|
+
* @property {b2b.ClinicalServiceType|null} [clinicalServiceType] EnterpriseUserEnrollmentCreated clinicalServiceType
|
|
141127
142564
|
*/
|
|
141128
142565
|
|
|
141129
142566
|
/**
|
|
@@ -141453,6 +142890,30 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
141453
142890
|
*/
|
|
141454
142891
|
EnterpriseUserEnrollmentCreated.prototype.healthHubName = "";
|
|
141455
142892
|
|
|
142893
|
+
/**
|
|
142894
|
+
* EnterpriseUserEnrollmentCreated clinicalCoverageProvider.
|
|
142895
|
+
* @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
|
|
142896
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
142897
|
+
* @instance
|
|
142898
|
+
*/
|
|
142899
|
+
EnterpriseUserEnrollmentCreated.prototype.clinicalCoverageProvider = 0;
|
|
142900
|
+
|
|
142901
|
+
/**
|
|
142902
|
+
* EnterpriseUserEnrollmentCreated clinicalCoverageTotal.
|
|
142903
|
+
* @member {number} clinicalCoverageTotal
|
|
142904
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
142905
|
+
* @instance
|
|
142906
|
+
*/
|
|
142907
|
+
EnterpriseUserEnrollmentCreated.prototype.clinicalCoverageTotal = 0;
|
|
142908
|
+
|
|
142909
|
+
/**
|
|
142910
|
+
* EnterpriseUserEnrollmentCreated clinicalServiceType.
|
|
142911
|
+
* @member {b2b.ClinicalServiceType} clinicalServiceType
|
|
142912
|
+
* @memberof EnterpriseUserEnrollmentCreated
|
|
142913
|
+
* @instance
|
|
142914
|
+
*/
|
|
142915
|
+
EnterpriseUserEnrollmentCreated.prototype.clinicalServiceType = 0;
|
|
142916
|
+
|
|
141456
142917
|
/**
|
|
141457
142918
|
* Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
|
|
141458
142919
|
* @function create
|
|
@@ -141555,6 +143016,12 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
141555
143016
|
writer.uint32(/* id 43, wireType 0 =*/344).uint32(message.subscriptionOrgId);
|
|
141556
143017
|
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
141557
143018
|
writer.uint32(/* id 44, wireType 2 =*/354).string(message.healthHubName);
|
|
143019
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
143020
|
+
writer.uint32(/* id 45, wireType 0 =*/360).int32(message.clinicalCoverageProvider);
|
|
143021
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
143022
|
+
writer.uint32(/* id 46, wireType 0 =*/368).uint32(message.clinicalCoverageTotal);
|
|
143023
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
143024
|
+
writer.uint32(/* id 47, wireType 0 =*/376).int32(message.clinicalServiceType);
|
|
141558
143025
|
return writer;
|
|
141559
143026
|
};
|
|
141560
143027
|
|
|
@@ -141706,6 +143173,15 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
141706
143173
|
case 44:
|
|
141707
143174
|
message.healthHubName = reader.string();
|
|
141708
143175
|
break;
|
|
143176
|
+
case 45:
|
|
143177
|
+
message.clinicalCoverageProvider = reader.int32();
|
|
143178
|
+
break;
|
|
143179
|
+
case 46:
|
|
143180
|
+
message.clinicalCoverageTotal = reader.uint32();
|
|
143181
|
+
break;
|
|
143182
|
+
case 47:
|
|
143183
|
+
message.clinicalServiceType = reader.int32();
|
|
143184
|
+
break;
|
|
141709
143185
|
default:
|
|
141710
143186
|
reader.skipType(tag & 7);
|
|
141711
143187
|
break;
|
|
@@ -141903,6 +143379,29 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
141903
143379
|
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
141904
143380
|
if (!$util.isString(message.healthHubName))
|
|
141905
143381
|
return "healthHubName: string expected";
|
|
143382
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
143383
|
+
switch (message.clinicalCoverageProvider) {
|
|
143384
|
+
default:
|
|
143385
|
+
return "clinicalCoverageProvider: enum value expected";
|
|
143386
|
+
case 0:
|
|
143387
|
+
case 1:
|
|
143388
|
+
case 2:
|
|
143389
|
+
case 3:
|
|
143390
|
+
break;
|
|
143391
|
+
}
|
|
143392
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
143393
|
+
if (!$util.isInteger(message.clinicalCoverageTotal))
|
|
143394
|
+
return "clinicalCoverageTotal: integer expected";
|
|
143395
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
143396
|
+
switch (message.clinicalServiceType) {
|
|
143397
|
+
default:
|
|
143398
|
+
return "clinicalServiceType: enum value expected";
|
|
143399
|
+
case 0:
|
|
143400
|
+
case 1:
|
|
143401
|
+
case 2:
|
|
143402
|
+
case 3:
|
|
143403
|
+
break;
|
|
143404
|
+
}
|
|
141906
143405
|
return null;
|
|
141907
143406
|
};
|
|
141908
143407
|
|
|
@@ -142139,6 +143638,44 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
142139
143638
|
message.subscriptionOrgId = object.subscriptionOrgId >>> 0;
|
|
142140
143639
|
if (object.healthHubName != null)
|
|
142141
143640
|
message.healthHubName = String(object.healthHubName);
|
|
143641
|
+
switch (object.clinicalCoverageProvider) {
|
|
143642
|
+
case "CLINICAL_COVERAGE_PROVIDER_UNKNOWN":
|
|
143643
|
+
case 0:
|
|
143644
|
+
message.clinicalCoverageProvider = 0;
|
|
143645
|
+
break;
|
|
143646
|
+
case "CLINICAL_COVERAGE_PROVIDER_CCA":
|
|
143647
|
+
case 1:
|
|
143648
|
+
message.clinicalCoverageProvider = 1;
|
|
143649
|
+
break;
|
|
143650
|
+
case "CLINICAL_COVERAGE_PROVIDER_WPO":
|
|
143651
|
+
case 2:
|
|
143652
|
+
message.clinicalCoverageProvider = 2;
|
|
143653
|
+
break;
|
|
143654
|
+
case "CLINICAL_COVERAGE_PROVIDER_NONE":
|
|
143655
|
+
case 3:
|
|
143656
|
+
message.clinicalCoverageProvider = 3;
|
|
143657
|
+
break;
|
|
143658
|
+
}
|
|
143659
|
+
if (object.clinicalCoverageTotal != null)
|
|
143660
|
+
message.clinicalCoverageTotal = object.clinicalCoverageTotal >>> 0;
|
|
143661
|
+
switch (object.clinicalServiceType) {
|
|
143662
|
+
case "CLINICAL_SERVICE_TYPE_UNKNOWN":
|
|
143663
|
+
case 0:
|
|
143664
|
+
message.clinicalServiceType = 0;
|
|
143665
|
+
break;
|
|
143666
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
|
|
143667
|
+
case 1:
|
|
143668
|
+
message.clinicalServiceType = 1;
|
|
143669
|
+
break;
|
|
143670
|
+
case "CLINICAL_SERVICE_TYPE_THERAPY":
|
|
143671
|
+
case 2:
|
|
143672
|
+
message.clinicalServiceType = 2;
|
|
143673
|
+
break;
|
|
143674
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
143675
|
+
case 3:
|
|
143676
|
+
message.clinicalServiceType = 3;
|
|
143677
|
+
break;
|
|
143678
|
+
}
|
|
142142
143679
|
return message;
|
|
142143
143680
|
};
|
|
142144
143681
|
|
|
@@ -142215,6 +143752,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
142215
143752
|
object.healthHub = "";
|
|
142216
143753
|
object.subscriptionOrgId = 0;
|
|
142217
143754
|
object.healthHubName = "";
|
|
143755
|
+
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
143756
|
+
object.clinicalCoverageTotal = 0;
|
|
143757
|
+
object.clinicalServiceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
|
|
142218
143758
|
}
|
|
142219
143759
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
142220
143760
|
object.userId = message.userId;
|
|
@@ -142309,6 +143849,12 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
|
|
|
142309
143849
|
object.subscriptionOrgId = message.subscriptionOrgId;
|
|
142310
143850
|
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
142311
143851
|
object.healthHubName = message.healthHubName;
|
|
143852
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
143853
|
+
object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
|
|
143854
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
143855
|
+
object.clinicalCoverageTotal = message.clinicalCoverageTotal;
|
|
143856
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
143857
|
+
object.clinicalServiceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.clinicalServiceType] : message.clinicalServiceType;
|
|
142312
143858
|
return object;
|
|
142313
143859
|
};
|
|
142314
143860
|
|
|
@@ -142366,6 +143912,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
142366
143912
|
* @property {number|null} [eapCoverageTotal] EnterpriseUserEnrollmentRemoved eapCoverageTotal
|
|
142367
143913
|
* @property {b2b.EapServiceType|null} [eapServiceType] EnterpriseUserEnrollmentRemoved eapServiceType
|
|
142368
143914
|
* @property {number|null} [subscriptionOrgId] EnterpriseUserEnrollmentRemoved subscriptionOrgId
|
|
143915
|
+
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] EnterpriseUserEnrollmentRemoved clinicalCoverageProvider
|
|
143916
|
+
* @property {number|null} [clinicalCoverageTotal] EnterpriseUserEnrollmentRemoved clinicalCoverageTotal
|
|
143917
|
+
* @property {b2b.ClinicalServiceType|null} [clinicalServiceType] EnterpriseUserEnrollmentRemoved clinicalServiceType
|
|
142369
143918
|
*/
|
|
142370
143919
|
|
|
142371
143920
|
/**
|
|
@@ -142655,6 +144204,30 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
142655
144204
|
*/
|
|
142656
144205
|
EnterpriseUserEnrollmentRemoved.prototype.subscriptionOrgId = 0;
|
|
142657
144206
|
|
|
144207
|
+
/**
|
|
144208
|
+
* EnterpriseUserEnrollmentRemoved clinicalCoverageProvider.
|
|
144209
|
+
* @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
|
|
144210
|
+
* @memberof EnterpriseUserEnrollmentRemoved
|
|
144211
|
+
* @instance
|
|
144212
|
+
*/
|
|
144213
|
+
EnterpriseUserEnrollmentRemoved.prototype.clinicalCoverageProvider = 0;
|
|
144214
|
+
|
|
144215
|
+
/**
|
|
144216
|
+
* EnterpriseUserEnrollmentRemoved clinicalCoverageTotal.
|
|
144217
|
+
* @member {number} clinicalCoverageTotal
|
|
144218
|
+
* @memberof EnterpriseUserEnrollmentRemoved
|
|
144219
|
+
* @instance
|
|
144220
|
+
*/
|
|
144221
|
+
EnterpriseUserEnrollmentRemoved.prototype.clinicalCoverageTotal = 0;
|
|
144222
|
+
|
|
144223
|
+
/**
|
|
144224
|
+
* EnterpriseUserEnrollmentRemoved clinicalServiceType.
|
|
144225
|
+
* @member {b2b.ClinicalServiceType} clinicalServiceType
|
|
144226
|
+
* @memberof EnterpriseUserEnrollmentRemoved
|
|
144227
|
+
* @instance
|
|
144228
|
+
*/
|
|
144229
|
+
EnterpriseUserEnrollmentRemoved.prototype.clinicalServiceType = 0;
|
|
144230
|
+
|
|
142658
144231
|
/**
|
|
142659
144232
|
* Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
|
|
142660
144233
|
* @function create
|
|
@@ -142747,6 +144320,12 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
142747
144320
|
writer.uint32(/* id 38, wireType 0 =*/304).int32(message.eapServiceType);
|
|
142748
144321
|
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
142749
144322
|
writer.uint32(/* id 39, wireType 0 =*/312).uint32(message.subscriptionOrgId);
|
|
144323
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
144324
|
+
writer.uint32(/* id 40, wireType 0 =*/320).int32(message.clinicalCoverageProvider);
|
|
144325
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
144326
|
+
writer.uint32(/* id 41, wireType 0 =*/328).uint32(message.clinicalCoverageTotal);
|
|
144327
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
144328
|
+
writer.uint32(/* id 42, wireType 0 =*/336).int32(message.clinicalServiceType);
|
|
142750
144329
|
return writer;
|
|
142751
144330
|
};
|
|
142752
144331
|
|
|
@@ -142883,6 +144462,15 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
142883
144462
|
case 39:
|
|
142884
144463
|
message.subscriptionOrgId = reader.uint32();
|
|
142885
144464
|
break;
|
|
144465
|
+
case 40:
|
|
144466
|
+
message.clinicalCoverageProvider = reader.int32();
|
|
144467
|
+
break;
|
|
144468
|
+
case 41:
|
|
144469
|
+
message.clinicalCoverageTotal = reader.uint32();
|
|
144470
|
+
break;
|
|
144471
|
+
case 42:
|
|
144472
|
+
message.clinicalServiceType = reader.int32();
|
|
144473
|
+
break;
|
|
142886
144474
|
default:
|
|
142887
144475
|
reader.skipType(tag & 7);
|
|
142888
144476
|
break;
|
|
@@ -143080,6 +144668,29 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
143080
144668
|
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
143081
144669
|
if (!$util.isInteger(message.subscriptionOrgId))
|
|
143082
144670
|
return "subscriptionOrgId: integer expected";
|
|
144671
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
144672
|
+
switch (message.clinicalCoverageProvider) {
|
|
144673
|
+
default:
|
|
144674
|
+
return "clinicalCoverageProvider: enum value expected";
|
|
144675
|
+
case 0:
|
|
144676
|
+
case 1:
|
|
144677
|
+
case 2:
|
|
144678
|
+
case 3:
|
|
144679
|
+
break;
|
|
144680
|
+
}
|
|
144681
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
144682
|
+
if (!$util.isInteger(message.clinicalCoverageTotal))
|
|
144683
|
+
return "clinicalCoverageTotal: integer expected";
|
|
144684
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
144685
|
+
switch (message.clinicalServiceType) {
|
|
144686
|
+
default:
|
|
144687
|
+
return "clinicalServiceType: enum value expected";
|
|
144688
|
+
case 0:
|
|
144689
|
+
case 1:
|
|
144690
|
+
case 2:
|
|
144691
|
+
case 3:
|
|
144692
|
+
break;
|
|
144693
|
+
}
|
|
143083
144694
|
return null;
|
|
143084
144695
|
};
|
|
143085
144696
|
|
|
@@ -143354,6 +144965,44 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
143354
144965
|
}
|
|
143355
144966
|
if (object.subscriptionOrgId != null)
|
|
143356
144967
|
message.subscriptionOrgId = object.subscriptionOrgId >>> 0;
|
|
144968
|
+
switch (object.clinicalCoverageProvider) {
|
|
144969
|
+
case "CLINICAL_COVERAGE_PROVIDER_UNKNOWN":
|
|
144970
|
+
case 0:
|
|
144971
|
+
message.clinicalCoverageProvider = 0;
|
|
144972
|
+
break;
|
|
144973
|
+
case "CLINICAL_COVERAGE_PROVIDER_CCA":
|
|
144974
|
+
case 1:
|
|
144975
|
+
message.clinicalCoverageProvider = 1;
|
|
144976
|
+
break;
|
|
144977
|
+
case "CLINICAL_COVERAGE_PROVIDER_WPO":
|
|
144978
|
+
case 2:
|
|
144979
|
+
message.clinicalCoverageProvider = 2;
|
|
144980
|
+
break;
|
|
144981
|
+
case "CLINICAL_COVERAGE_PROVIDER_NONE":
|
|
144982
|
+
case 3:
|
|
144983
|
+
message.clinicalCoverageProvider = 3;
|
|
144984
|
+
break;
|
|
144985
|
+
}
|
|
144986
|
+
if (object.clinicalCoverageTotal != null)
|
|
144987
|
+
message.clinicalCoverageTotal = object.clinicalCoverageTotal >>> 0;
|
|
144988
|
+
switch (object.clinicalServiceType) {
|
|
144989
|
+
case "CLINICAL_SERVICE_TYPE_UNKNOWN":
|
|
144990
|
+
case 0:
|
|
144991
|
+
message.clinicalServiceType = 0;
|
|
144992
|
+
break;
|
|
144993
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
|
|
144994
|
+
case 1:
|
|
144995
|
+
message.clinicalServiceType = 1;
|
|
144996
|
+
break;
|
|
144997
|
+
case "CLINICAL_SERVICE_TYPE_THERAPY":
|
|
144998
|
+
case 2:
|
|
144999
|
+
message.clinicalServiceType = 2;
|
|
145000
|
+
break;
|
|
145001
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
145002
|
+
case 3:
|
|
145003
|
+
message.clinicalServiceType = 3;
|
|
145004
|
+
break;
|
|
145005
|
+
}
|
|
143357
145006
|
return message;
|
|
143358
145007
|
};
|
|
143359
145008
|
|
|
@@ -143425,6 +145074,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
143425
145074
|
object.eapCoverageTotal = 0;
|
|
143426
145075
|
object.eapServiceType = options.enums === String ? "EAP_SERVICE_TYPE_UNKNOWN" : 0;
|
|
143427
145076
|
object.subscriptionOrgId = 0;
|
|
145077
|
+
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
145078
|
+
object.clinicalCoverageTotal = 0;
|
|
145079
|
+
object.clinicalServiceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
|
|
143428
145080
|
}
|
|
143429
145081
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
143430
145082
|
object.userId = message.userId;
|
|
@@ -143509,6 +145161,12 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
143509
145161
|
object.eapServiceType = options.enums === String ? $root.b2b.EapServiceType[message.eapServiceType] : message.eapServiceType;
|
|
143510
145162
|
if (message.subscriptionOrgId != null && message.hasOwnProperty("subscriptionOrgId"))
|
|
143511
145163
|
object.subscriptionOrgId = message.subscriptionOrgId;
|
|
145164
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
145165
|
+
object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
|
|
145166
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
145167
|
+
object.clinicalCoverageTotal = message.clinicalCoverageTotal;
|
|
145168
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
145169
|
+
object.clinicalServiceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.clinicalServiceType] : message.clinicalServiceType;
|
|
143512
145170
|
return object;
|
|
143513
145171
|
};
|
|
143514
145172
|
|
|
@@ -143570,6 +145228,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
143570
145228
|
* @property {string|null} [healthHub] EnterpriseUserEnrollmentAmended healthHub
|
|
143571
145229
|
* @property {number|null} [subscriptionOrgId] EnterpriseUserEnrollmentAmended subscriptionOrgId
|
|
143572
145230
|
* @property {string|null} [healthHubName] EnterpriseUserEnrollmentAmended healthHubName
|
|
145231
|
+
* @property {b2b.ClinicalCoverageProvider|null} [clinicalCoverageProvider] EnterpriseUserEnrollmentAmended clinicalCoverageProvider
|
|
145232
|
+
* @property {number|null} [clinicalCoverageTotal] EnterpriseUserEnrollmentAmended clinicalCoverageTotal
|
|
145233
|
+
* @property {b2b.ClinicalServiceType|null} [clinicalServiceType] EnterpriseUserEnrollmentAmended clinicalServiceType
|
|
143573
145234
|
*/
|
|
143574
145235
|
|
|
143575
145236
|
/**
|
|
@@ -143891,6 +145552,30 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
143891
145552
|
*/
|
|
143892
145553
|
EnterpriseUserEnrollmentAmended.prototype.healthHubName = "";
|
|
143893
145554
|
|
|
145555
|
+
/**
|
|
145556
|
+
* EnterpriseUserEnrollmentAmended clinicalCoverageProvider.
|
|
145557
|
+
* @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
|
|
145558
|
+
* @memberof EnterpriseUserEnrollmentAmended
|
|
145559
|
+
* @instance
|
|
145560
|
+
*/
|
|
145561
|
+
EnterpriseUserEnrollmentAmended.prototype.clinicalCoverageProvider = 0;
|
|
145562
|
+
|
|
145563
|
+
/**
|
|
145564
|
+
* EnterpriseUserEnrollmentAmended clinicalCoverageTotal.
|
|
145565
|
+
* @member {number} clinicalCoverageTotal
|
|
145566
|
+
* @memberof EnterpriseUserEnrollmentAmended
|
|
145567
|
+
* @instance
|
|
145568
|
+
*/
|
|
145569
|
+
EnterpriseUserEnrollmentAmended.prototype.clinicalCoverageTotal = 0;
|
|
145570
|
+
|
|
145571
|
+
/**
|
|
145572
|
+
* EnterpriseUserEnrollmentAmended clinicalServiceType.
|
|
145573
|
+
* @member {b2b.ClinicalServiceType} clinicalServiceType
|
|
145574
|
+
* @memberof EnterpriseUserEnrollmentAmended
|
|
145575
|
+
* @instance
|
|
145576
|
+
*/
|
|
145577
|
+
EnterpriseUserEnrollmentAmended.prototype.clinicalServiceType = 0;
|
|
145578
|
+
|
|
143894
145579
|
/**
|
|
143895
145580
|
* Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
|
|
143896
145581
|
* @function create
|
|
@@ -143991,6 +145676,12 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
143991
145676
|
writer.uint32(/* id 43, wireType 0 =*/344).uint32(message.subscriptionOrgId);
|
|
143992
145677
|
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
143993
145678
|
writer.uint32(/* id 44, wireType 2 =*/354).string(message.healthHubName);
|
|
145679
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
145680
|
+
writer.uint32(/* id 45, wireType 0 =*/360).int32(message.clinicalCoverageProvider);
|
|
145681
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
145682
|
+
writer.uint32(/* id 46, wireType 0 =*/368).uint32(message.clinicalCoverageTotal);
|
|
145683
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
145684
|
+
writer.uint32(/* id 47, wireType 0 =*/376).int32(message.clinicalServiceType);
|
|
143994
145685
|
return writer;
|
|
143995
145686
|
};
|
|
143996
145687
|
|
|
@@ -144139,6 +145830,15 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
144139
145830
|
case 44:
|
|
144140
145831
|
message.healthHubName = reader.string();
|
|
144141
145832
|
break;
|
|
145833
|
+
case 45:
|
|
145834
|
+
message.clinicalCoverageProvider = reader.int32();
|
|
145835
|
+
break;
|
|
145836
|
+
case 46:
|
|
145837
|
+
message.clinicalCoverageTotal = reader.uint32();
|
|
145838
|
+
break;
|
|
145839
|
+
case 47:
|
|
145840
|
+
message.clinicalServiceType = reader.int32();
|
|
145841
|
+
break;
|
|
144142
145842
|
default:
|
|
144143
145843
|
reader.skipType(tag & 7);
|
|
144144
145844
|
break;
|
|
@@ -144333,6 +146033,29 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
144333
146033
|
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
144334
146034
|
if (!$util.isString(message.healthHubName))
|
|
144335
146035
|
return "healthHubName: string expected";
|
|
146036
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
146037
|
+
switch (message.clinicalCoverageProvider) {
|
|
146038
|
+
default:
|
|
146039
|
+
return "clinicalCoverageProvider: enum value expected";
|
|
146040
|
+
case 0:
|
|
146041
|
+
case 1:
|
|
146042
|
+
case 2:
|
|
146043
|
+
case 3:
|
|
146044
|
+
break;
|
|
146045
|
+
}
|
|
146046
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
146047
|
+
if (!$util.isInteger(message.clinicalCoverageTotal))
|
|
146048
|
+
return "clinicalCoverageTotal: integer expected";
|
|
146049
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
146050
|
+
switch (message.clinicalServiceType) {
|
|
146051
|
+
default:
|
|
146052
|
+
return "clinicalServiceType: enum value expected";
|
|
146053
|
+
case 0:
|
|
146054
|
+
case 1:
|
|
146055
|
+
case 2:
|
|
146056
|
+
case 3:
|
|
146057
|
+
break;
|
|
146058
|
+
}
|
|
144336
146059
|
return null;
|
|
144337
146060
|
};
|
|
144338
146061
|
|
|
@@ -144567,6 +146290,44 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
144567
146290
|
message.subscriptionOrgId = object.subscriptionOrgId >>> 0;
|
|
144568
146291
|
if (object.healthHubName != null)
|
|
144569
146292
|
message.healthHubName = String(object.healthHubName);
|
|
146293
|
+
switch (object.clinicalCoverageProvider) {
|
|
146294
|
+
case "CLINICAL_COVERAGE_PROVIDER_UNKNOWN":
|
|
146295
|
+
case 0:
|
|
146296
|
+
message.clinicalCoverageProvider = 0;
|
|
146297
|
+
break;
|
|
146298
|
+
case "CLINICAL_COVERAGE_PROVIDER_CCA":
|
|
146299
|
+
case 1:
|
|
146300
|
+
message.clinicalCoverageProvider = 1;
|
|
146301
|
+
break;
|
|
146302
|
+
case "CLINICAL_COVERAGE_PROVIDER_WPO":
|
|
146303
|
+
case 2:
|
|
146304
|
+
message.clinicalCoverageProvider = 2;
|
|
146305
|
+
break;
|
|
146306
|
+
case "CLINICAL_COVERAGE_PROVIDER_NONE":
|
|
146307
|
+
case 3:
|
|
146308
|
+
message.clinicalCoverageProvider = 3;
|
|
146309
|
+
break;
|
|
146310
|
+
}
|
|
146311
|
+
if (object.clinicalCoverageTotal != null)
|
|
146312
|
+
message.clinicalCoverageTotal = object.clinicalCoverageTotal >>> 0;
|
|
146313
|
+
switch (object.clinicalServiceType) {
|
|
146314
|
+
case "CLINICAL_SERVICE_TYPE_UNKNOWN":
|
|
146315
|
+
case 0:
|
|
146316
|
+
message.clinicalServiceType = 0;
|
|
146317
|
+
break;
|
|
146318
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
|
|
146319
|
+
case 1:
|
|
146320
|
+
message.clinicalServiceType = 1;
|
|
146321
|
+
break;
|
|
146322
|
+
case "CLINICAL_SERVICE_TYPE_THERAPY":
|
|
146323
|
+
case 2:
|
|
146324
|
+
message.clinicalServiceType = 2;
|
|
146325
|
+
break;
|
|
146326
|
+
case "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY":
|
|
146327
|
+
case 3:
|
|
146328
|
+
message.clinicalServiceType = 3;
|
|
146329
|
+
break;
|
|
146330
|
+
}
|
|
144570
146331
|
return message;
|
|
144571
146332
|
};
|
|
144572
146333
|
|
|
@@ -144642,6 +146403,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
144642
146403
|
object.healthHub = "";
|
|
144643
146404
|
object.subscriptionOrgId = 0;
|
|
144644
146405
|
object.healthHubName = "";
|
|
146406
|
+
object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
|
|
146407
|
+
object.clinicalCoverageTotal = 0;
|
|
146408
|
+
object.clinicalServiceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
|
|
144645
146409
|
}
|
|
144646
146410
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
144647
146411
|
object.userId = message.userId;
|
|
@@ -144734,6 +146498,12 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
|
|
|
144734
146498
|
object.subscriptionOrgId = message.subscriptionOrgId;
|
|
144735
146499
|
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
144736
146500
|
object.healthHubName = message.healthHubName;
|
|
146501
|
+
if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
|
|
146502
|
+
object.clinicalCoverageProvider = options.enums === String ? $root.b2b.ClinicalCoverageProvider[message.clinicalCoverageProvider] : message.clinicalCoverageProvider;
|
|
146503
|
+
if (message.clinicalCoverageTotal != null && message.hasOwnProperty("clinicalCoverageTotal"))
|
|
146504
|
+
object.clinicalCoverageTotal = message.clinicalCoverageTotal;
|
|
146505
|
+
if (message.clinicalServiceType != null && message.hasOwnProperty("clinicalServiceType"))
|
|
146506
|
+
object.clinicalServiceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.clinicalServiceType] : message.clinicalServiceType;
|
|
144737
146507
|
return object;
|
|
144738
146508
|
};
|
|
144739
146509
|
|