@headspace/protos-events 1.607.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +378 -0
  2. package/lib/index.js +1335 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -117574,6 +117574,1341 @@ $root.B2BChallengeCanceled = (function() {
117574
117574
  return B2BChallengeCanceled;
117575
117575
  })();
117576
117576
 
117577
+ $root.ClinicalCoverageCreated = (function() {
117578
+
117579
+ /**
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
117590
+ */
117591
+
117592
+ /**
117593
+ * Constructs a new ClinicalCoverageCreated.
117594
+ * @name ClinicalCoverageCreated
117595
+ * @classdesc Represents a ClinicalCoverageCreated.
117596
+ * @implements IClinicalCoverageCreated
117597
+ * @constructor
117598
+ * @param {IClinicalCoverageCreated=} [properties] Properties to set
117599
+ */
117600
+ function ClinicalCoverageCreated(properties) {
117601
+ if (properties)
117602
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
117603
+ if (properties[keys[i]] != null)
117604
+ this[keys[i]] = properties[keys[i]];
117605
+ }
117606
+
117607
+ /**
117608
+ * ClinicalCoverageCreated orgId.
117609
+ * @member {number|Long} orgId
117610
+ * @memberof ClinicalCoverageCreated
117611
+ * @instance
117612
+ */
117613
+ ClinicalCoverageCreated.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
117614
+
117615
+ /**
117616
+ * ClinicalCoverageCreated serviceType.
117617
+ * @member {b2b.ClinicalServiceType} serviceType
117618
+ * @memberof ClinicalCoverageCreated
117619
+ * @instance
117620
+ */
117621
+ ClinicalCoverageCreated.prototype.serviceType = 0;
117622
+
117623
+ /**
117624
+ * ClinicalCoverageCreated coverageTotal.
117625
+ * @member {number|Long} coverageTotal
117626
+ * @memberof ClinicalCoverageCreated
117627
+ * @instance
117628
+ */
117629
+ ClinicalCoverageCreated.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
117630
+
117631
+ /**
117632
+ * ClinicalCoverageCreated orgSubscriptionEndDate.
117633
+ * @member {number|Long} orgSubscriptionEndDate
117634
+ * @memberof ClinicalCoverageCreated
117635
+ * @instance
117636
+ */
117637
+ ClinicalCoverageCreated.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
117638
+
117639
+ /**
117640
+ * ClinicalCoverageCreated updatedAt.
117641
+ * @member {number|Long} updatedAt
117642
+ * @memberof ClinicalCoverageCreated
117643
+ * @instance
117644
+ */
117645
+ ClinicalCoverageCreated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
117646
+
117647
+ /**
117648
+ * ClinicalCoverageCreated clinicalCoverageProvider.
117649
+ * @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
117650
+ * @memberof ClinicalCoverageCreated
117651
+ * @instance
117652
+ */
117653
+ ClinicalCoverageCreated.prototype.clinicalCoverageProvider = 0;
117654
+
117655
+ /**
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.
117665
+ * @function create
117666
+ * @memberof ClinicalCoverageCreated
117667
+ * @static
117668
+ * @param {IClinicalCoverageCreated=} [properties] Properties to set
117669
+ * @returns {ClinicalCoverageCreated} ClinicalCoverageCreated instance
117670
+ */
117671
+ ClinicalCoverageCreated.create = function create(properties) {
117672
+ return new ClinicalCoverageCreated(properties);
117673
+ };
117674
+
117675
+ /**
117676
+ * Encodes the specified ClinicalCoverageCreated message. Does not implicitly {@link ClinicalCoverageCreated.verify|verify} messages.
117677
+ * @function encode
117678
+ * @memberof ClinicalCoverageCreated
117679
+ * @static
117680
+ * @param {IClinicalCoverageCreated} message ClinicalCoverageCreated message or plain object to encode
117681
+ * @param {$protobuf.Writer} [writer] Writer to encode to
117682
+ * @returns {$protobuf.Writer} Writer
117683
+ */
117684
+ ClinicalCoverageCreated.encode = function encode(message, writer) {
117685
+ if (!writer)
117686
+ writer = $Writer.create();
117687
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
117688
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
117689
+ if (message.serviceType != null && message.hasOwnProperty("serviceType"))
117690
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serviceType);
117691
+ if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
117692
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.coverageTotal);
117693
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
117694
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.orgSubscriptionEndDate);
117695
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
117696
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
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);
117701
+ return writer;
117702
+ };
117703
+
117704
+ /**
117705
+ * Encodes the specified ClinicalCoverageCreated message, length delimited. Does not implicitly {@link ClinicalCoverageCreated.verify|verify} messages.
117706
+ * @function encodeDelimited
117707
+ * @memberof ClinicalCoverageCreated
117708
+ * @static
117709
+ * @param {IClinicalCoverageCreated} message ClinicalCoverageCreated message or plain object to encode
117710
+ * @param {$protobuf.Writer} [writer] Writer to encode to
117711
+ * @returns {$protobuf.Writer} Writer
117712
+ */
117713
+ ClinicalCoverageCreated.encodeDelimited = function encodeDelimited(message, writer) {
117714
+ return this.encode(message, writer).ldelim();
117715
+ };
117716
+
117717
+ /**
117718
+ * Decodes a ClinicalCoverageCreated message from the specified reader or buffer.
117719
+ * @function decode
117720
+ * @memberof ClinicalCoverageCreated
117721
+ * @static
117722
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
117723
+ * @param {number} [length] Message length if known beforehand
117724
+ * @returns {ClinicalCoverageCreated} ClinicalCoverageCreated
117725
+ * @throws {Error} If the payload is not a reader or valid buffer
117726
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
117727
+ */
117728
+ ClinicalCoverageCreated.decode = function decode(reader, length) {
117729
+ if (!(reader instanceof $Reader))
117730
+ reader = $Reader.create(reader);
117731
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalCoverageCreated();
117732
+ while (reader.pos < end) {
117733
+ var tag = reader.uint32();
117734
+ switch (tag >>> 3) {
117735
+ case 1:
117736
+ message.orgId = reader.uint64();
117737
+ break;
117738
+ case 2:
117739
+ message.serviceType = reader.int32();
117740
+ break;
117741
+ case 3:
117742
+ message.coverageTotal = reader.uint64();
117743
+ break;
117744
+ case 4:
117745
+ message.orgSubscriptionEndDate = reader.uint64();
117746
+ break;
117747
+ case 5:
117748
+ message.updatedAt = reader.uint64();
117749
+ break;
117750
+ case 6:
117751
+ message.clinicalCoverageProvider = reader.int32();
117752
+ break;
117753
+ case 7:
117754
+ message.clinicalCoverageType = reader.int32();
117755
+ break;
117756
+ default:
117757
+ reader.skipType(tag & 7);
117758
+ break;
117759
+ }
117760
+ }
117761
+ return message;
117762
+ };
117763
+
117764
+ /**
117765
+ * Decodes a ClinicalCoverageCreated message from the specified reader or buffer, length delimited.
117766
+ * @function decodeDelimited
117767
+ * @memberof ClinicalCoverageCreated
117768
+ * @static
117769
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
117770
+ * @returns {ClinicalCoverageCreated} ClinicalCoverageCreated
117771
+ * @throws {Error} If the payload is not a reader or valid buffer
117772
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
117773
+ */
117774
+ ClinicalCoverageCreated.decodeDelimited = function decodeDelimited(reader) {
117775
+ if (!(reader instanceof $Reader))
117776
+ reader = new $Reader(reader);
117777
+ return this.decode(reader, reader.uint32());
117778
+ };
117779
+
117780
+ /**
117781
+ * Verifies a ClinicalCoverageCreated message.
117782
+ * @function verify
117783
+ * @memberof ClinicalCoverageCreated
117784
+ * @static
117785
+ * @param {Object.<string,*>} message Plain object to verify
117786
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
117787
+ */
117788
+ ClinicalCoverageCreated.verify = function verify(message) {
117789
+ if (typeof message !== "object" || message === null)
117790
+ return "object expected";
117791
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
117792
+ if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
117793
+ return "orgId: integer|Long expected";
117794
+ if (message.serviceType != null && message.hasOwnProperty("serviceType"))
117795
+ switch (message.serviceType) {
117796
+ default:
117797
+ return "serviceType: enum value expected";
117798
+ case 0:
117799
+ case 1:
117800
+ case 2:
117801
+ case 3:
117802
+ break;
117803
+ }
117804
+ if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
117805
+ if (!$util.isInteger(message.coverageTotal) && !(message.coverageTotal && $util.isInteger(message.coverageTotal.low) && $util.isInteger(message.coverageTotal.high)))
117806
+ return "coverageTotal: integer|Long expected";
117807
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
117808
+ if (!$util.isInteger(message.orgSubscriptionEndDate) && !(message.orgSubscriptionEndDate && $util.isInteger(message.orgSubscriptionEndDate.low) && $util.isInteger(message.orgSubscriptionEndDate.high)))
117809
+ return "orgSubscriptionEndDate: integer|Long expected";
117810
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
117811
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
117812
+ return "updatedAt: integer|Long expected";
117813
+ if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
117814
+ switch (message.clinicalCoverageProvider) {
117815
+ default:
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";
117827
+ case 0:
117828
+ case 1:
117829
+ case 2:
117830
+ case 3:
117831
+ break;
117832
+ }
117833
+ return null;
117834
+ };
117835
+
117836
+ /**
117837
+ * Creates a ClinicalCoverageCreated message from a plain object. Also converts values to their respective internal types.
117838
+ * @function fromObject
117839
+ * @memberof ClinicalCoverageCreated
117840
+ * @static
117841
+ * @param {Object.<string,*>} object Plain object
117842
+ * @returns {ClinicalCoverageCreated} ClinicalCoverageCreated
117843
+ */
117844
+ ClinicalCoverageCreated.fromObject = function fromObject(object) {
117845
+ if (object instanceof $root.ClinicalCoverageCreated)
117846
+ return object;
117847
+ var message = new $root.ClinicalCoverageCreated();
117848
+ if (object.orgId != null)
117849
+ if ($util.Long)
117850
+ (message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
117851
+ else if (typeof object.orgId === "string")
117852
+ message.orgId = parseInt(object.orgId, 10);
117853
+ else if (typeof object.orgId === "number")
117854
+ message.orgId = object.orgId;
117855
+ else if (typeof object.orgId === "object")
117856
+ message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
117857
+ switch (object.serviceType) {
117858
+ case "CLINICAL_SERVICE_TYPE_UNKNOWN":
117859
+ case 0:
117860
+ message.serviceType = 0;
117861
+ break;
117862
+ case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
117863
+ case 1:
117864
+ message.serviceType = 1;
117865
+ break;
117866
+ case "CLINICAL_SERVICE_TYPE_THERAPY":
117867
+ case 2:
117868
+ message.serviceType = 2;
117869
+ break;
117870
+ case "CLINICAL_SERVICE_TYPE_PSYCHIATRY_THERAPY":
117871
+ case 3:
117872
+ message.serviceType = 3;
117873
+ break;
117874
+ }
117875
+ if (object.coverageTotal != null)
117876
+ if ($util.Long)
117877
+ (message.coverageTotal = $util.Long.fromValue(object.coverageTotal)).unsigned = true;
117878
+ else if (typeof object.coverageTotal === "string")
117879
+ message.coverageTotal = parseInt(object.coverageTotal, 10);
117880
+ else if (typeof object.coverageTotal === "number")
117881
+ message.coverageTotal = object.coverageTotal;
117882
+ else if (typeof object.coverageTotal === "object")
117883
+ message.coverageTotal = new $util.LongBits(object.coverageTotal.low >>> 0, object.coverageTotal.high >>> 0).toNumber(true);
117884
+ if (object.orgSubscriptionEndDate != null)
117885
+ if ($util.Long)
117886
+ (message.orgSubscriptionEndDate = $util.Long.fromValue(object.orgSubscriptionEndDate)).unsigned = true;
117887
+ else if (typeof object.orgSubscriptionEndDate === "string")
117888
+ message.orgSubscriptionEndDate = parseInt(object.orgSubscriptionEndDate, 10);
117889
+ else if (typeof object.orgSubscriptionEndDate === "number")
117890
+ message.orgSubscriptionEndDate = object.orgSubscriptionEndDate;
117891
+ else if (typeof object.orgSubscriptionEndDate === "object")
117892
+ message.orgSubscriptionEndDate = new $util.LongBits(object.orgSubscriptionEndDate.low >>> 0, object.orgSubscriptionEndDate.high >>> 0).toNumber(true);
117893
+ if (object.updatedAt != null)
117894
+ if ($util.Long)
117895
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
117896
+ else if (typeof object.updatedAt === "string")
117897
+ message.updatedAt = parseInt(object.updatedAt, 10);
117898
+ else if (typeof object.updatedAt === "number")
117899
+ message.updatedAt = object.updatedAt;
117900
+ else if (typeof object.updatedAt === "object")
117901
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
117902
+ switch (object.clinicalCoverageProvider) {
117903
+ case "CLINICAL_COVERAGE_PROVIDER_UNKNOWN":
117904
+ case 0:
117905
+ message.clinicalCoverageProvider = 0;
117906
+ break;
117907
+ case "CLINICAL_COVERAGE_PROVIDER_CCA":
117908
+ case 1:
117909
+ message.clinicalCoverageProvider = 1;
117910
+ break;
117911
+ case "CLINICAL_COVERAGE_PROVIDER_WPO":
117912
+ case 2:
117913
+ message.clinicalCoverageProvider = 2;
117914
+ break;
117915
+ case "CLINICAL_COVERAGE_PROVIDER_NONE":
117916
+ case 3:
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;
117936
+ break;
117937
+ }
117938
+ return message;
117939
+ };
117940
+
117941
+ /**
117942
+ * Creates a plain object from a ClinicalCoverageCreated message. Also converts values to other types if specified.
117943
+ * @function toObject
117944
+ * @memberof ClinicalCoverageCreated
117945
+ * @static
117946
+ * @param {ClinicalCoverageCreated} message ClinicalCoverageCreated
117947
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
117948
+ * @returns {Object.<string,*>} Plain object
117949
+ */
117950
+ ClinicalCoverageCreated.toObject = function toObject(message, options) {
117951
+ if (!options)
117952
+ options = {};
117953
+ var object = {};
117954
+ if (options.defaults) {
117955
+ if ($util.Long) {
117956
+ var long = new $util.Long(0, 0, true);
117957
+ object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
117958
+ } else
117959
+ object.orgId = options.longs === String ? "0" : 0;
117960
+ object.serviceType = options.enums === String ? "CLINICAL_SERVICE_TYPE_UNKNOWN" : 0;
117961
+ if ($util.Long) {
117962
+ var long = new $util.Long(0, 0, true);
117963
+ object.coverageTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
117964
+ } else
117965
+ object.coverageTotal = options.longs === String ? "0" : 0;
117966
+ if ($util.Long) {
117967
+ var long = new $util.Long(0, 0, true);
117968
+ object.orgSubscriptionEndDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
117969
+ } else
117970
+ object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
117971
+ if ($util.Long) {
117972
+ var long = new $util.Long(0, 0, true);
117973
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
117974
+ } else
117975
+ object.updatedAt = options.longs === String ? "0" : 0;
117976
+ object.clinicalCoverageProvider = options.enums === String ? "CLINICAL_COVERAGE_PROVIDER_UNKNOWN" : 0;
117977
+ object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
117978
+ }
117979
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
117980
+ if (typeof message.orgId === "number")
117981
+ object.orgId = options.longs === String ? String(message.orgId) : message.orgId;
117982
+ else
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;
117984
+ if (message.serviceType != null && message.hasOwnProperty("serviceType"))
117985
+ object.serviceType = options.enums === String ? $root.b2b.ClinicalServiceType[message.serviceType] : message.serviceType;
117986
+ if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
117987
+ if (typeof message.coverageTotal === "number")
117988
+ object.coverageTotal = options.longs === String ? String(message.coverageTotal) : message.coverageTotal;
117989
+ else
117990
+ 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;
117991
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
117992
+ if (typeof message.orgSubscriptionEndDate === "number")
117993
+ object.orgSubscriptionEndDate = options.longs === String ? String(message.orgSubscriptionEndDate) : message.orgSubscriptionEndDate;
117994
+ else
117995
+ 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;
117996
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
117997
+ if (typeof message.updatedAt === "number")
117998
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
117999
+ else
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;
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;
118005
+ return object;
118006
+ };
118007
+
118008
+ /**
118009
+ * Converts this ClinicalCoverageCreated to JSON.
118010
+ * @function toJSON
118011
+ * @memberof ClinicalCoverageCreated
118012
+ * @instance
118013
+ * @returns {Object.<string,*>} JSON object
118014
+ */
118015
+ ClinicalCoverageCreated.prototype.toJSON = function toJSON() {
118016
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
118017
+ };
118018
+
118019
+ return ClinicalCoverageCreated;
118020
+ })();
118021
+
118022
+ $root.ClinicalCoverageUpdated = (function() {
118023
+
118024
+ /**
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
118035
+ */
118036
+
118037
+ /**
118038
+ * Constructs a new ClinicalCoverageUpdated.
118039
+ * @name ClinicalCoverageUpdated
118040
+ * @classdesc Represents a ClinicalCoverageUpdated.
118041
+ * @implements IClinicalCoverageUpdated
118042
+ * @constructor
118043
+ * @param {IClinicalCoverageUpdated=} [properties] Properties to set
118044
+ */
118045
+ function ClinicalCoverageUpdated(properties) {
118046
+ if (properties)
118047
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
118048
+ if (properties[keys[i]] != null)
118049
+ this[keys[i]] = properties[keys[i]];
118050
+ }
118051
+
118052
+ /**
118053
+ * ClinicalCoverageUpdated orgId.
118054
+ * @member {number|Long} orgId
118055
+ * @memberof ClinicalCoverageUpdated
118056
+ * @instance
118057
+ */
118058
+ ClinicalCoverageUpdated.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
118059
+
118060
+ /**
118061
+ * ClinicalCoverageUpdated serviceType.
118062
+ * @member {b2b.ClinicalServiceType} serviceType
118063
+ * @memberof ClinicalCoverageUpdated
118064
+ * @instance
118065
+ */
118066
+ ClinicalCoverageUpdated.prototype.serviceType = 0;
118067
+
118068
+ /**
118069
+ * ClinicalCoverageUpdated coverageTotal.
118070
+ * @member {number|Long} coverageTotal
118071
+ * @memberof ClinicalCoverageUpdated
118072
+ * @instance
118073
+ */
118074
+ ClinicalCoverageUpdated.prototype.coverageTotal = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
118075
+
118076
+ /**
118077
+ * ClinicalCoverageUpdated orgSubscriptionEndDate.
118078
+ * @member {number|Long} orgSubscriptionEndDate
118079
+ * @memberof ClinicalCoverageUpdated
118080
+ * @instance
118081
+ */
118082
+ ClinicalCoverageUpdated.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
118083
+
118084
+ /**
118085
+ * ClinicalCoverageUpdated updatedAt.
118086
+ * @member {number|Long} updatedAt
118087
+ * @memberof ClinicalCoverageUpdated
118088
+ * @instance
118089
+ */
118090
+ ClinicalCoverageUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
118091
+
118092
+ /**
118093
+ * ClinicalCoverageUpdated clinicalCoverageProvider.
118094
+ * @member {b2b.ClinicalCoverageProvider} clinicalCoverageProvider
118095
+ * @memberof ClinicalCoverageUpdated
118096
+ * @instance
118097
+ */
118098
+ ClinicalCoverageUpdated.prototype.clinicalCoverageProvider = 0;
118099
+
118100
+ /**
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.
118110
+ * @function create
118111
+ * @memberof ClinicalCoverageUpdated
118112
+ * @static
118113
+ * @param {IClinicalCoverageUpdated=} [properties] Properties to set
118114
+ * @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated instance
118115
+ */
118116
+ ClinicalCoverageUpdated.create = function create(properties) {
118117
+ return new ClinicalCoverageUpdated(properties);
118118
+ };
118119
+
118120
+ /**
118121
+ * Encodes the specified ClinicalCoverageUpdated message. Does not implicitly {@link ClinicalCoverageUpdated.verify|verify} messages.
118122
+ * @function encode
118123
+ * @memberof ClinicalCoverageUpdated
118124
+ * @static
118125
+ * @param {IClinicalCoverageUpdated} message ClinicalCoverageUpdated message or plain object to encode
118126
+ * @param {$protobuf.Writer} [writer] Writer to encode to
118127
+ * @returns {$protobuf.Writer} Writer
118128
+ */
118129
+ ClinicalCoverageUpdated.encode = function encode(message, writer) {
118130
+ if (!writer)
118131
+ writer = $Writer.create();
118132
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
118133
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
118134
+ if (message.serviceType != null && message.hasOwnProperty("serviceType"))
118135
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serviceType);
118136
+ if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
118137
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.coverageTotal);
118138
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
118139
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.orgSubscriptionEndDate);
118140
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
118141
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
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);
118146
+ return writer;
118147
+ };
118148
+
118149
+ /**
118150
+ * Encodes the specified ClinicalCoverageUpdated message, length delimited. Does not implicitly {@link ClinicalCoverageUpdated.verify|verify} messages.
118151
+ * @function encodeDelimited
118152
+ * @memberof ClinicalCoverageUpdated
118153
+ * @static
118154
+ * @param {IClinicalCoverageUpdated} message ClinicalCoverageUpdated message or plain object to encode
118155
+ * @param {$protobuf.Writer} [writer] Writer to encode to
118156
+ * @returns {$protobuf.Writer} Writer
118157
+ */
118158
+ ClinicalCoverageUpdated.encodeDelimited = function encodeDelimited(message, writer) {
118159
+ return this.encode(message, writer).ldelim();
118160
+ };
118161
+
118162
+ /**
118163
+ * Decodes a ClinicalCoverageUpdated message from the specified reader or buffer.
118164
+ * @function decode
118165
+ * @memberof ClinicalCoverageUpdated
118166
+ * @static
118167
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
118168
+ * @param {number} [length] Message length if known beforehand
118169
+ * @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated
118170
+ * @throws {Error} If the payload is not a reader or valid buffer
118171
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
118172
+ */
118173
+ ClinicalCoverageUpdated.decode = function decode(reader, length) {
118174
+ if (!(reader instanceof $Reader))
118175
+ reader = $Reader.create(reader);
118176
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalCoverageUpdated();
118177
+ while (reader.pos < end) {
118178
+ var tag = reader.uint32();
118179
+ switch (tag >>> 3) {
118180
+ case 1:
118181
+ message.orgId = reader.uint64();
118182
+ break;
118183
+ case 2:
118184
+ message.serviceType = reader.int32();
118185
+ break;
118186
+ case 3:
118187
+ message.coverageTotal = reader.uint64();
118188
+ break;
118189
+ case 4:
118190
+ message.orgSubscriptionEndDate = reader.uint64();
118191
+ break;
118192
+ case 5:
118193
+ message.updatedAt = reader.uint64();
118194
+ break;
118195
+ case 6:
118196
+ message.clinicalCoverageProvider = reader.int32();
118197
+ break;
118198
+ case 7:
118199
+ message.clinicalCoverageType = reader.int32();
118200
+ break;
118201
+ default:
118202
+ reader.skipType(tag & 7);
118203
+ break;
118204
+ }
118205
+ }
118206
+ return message;
118207
+ };
118208
+
118209
+ /**
118210
+ * Decodes a ClinicalCoverageUpdated message from the specified reader or buffer, length delimited.
118211
+ * @function decodeDelimited
118212
+ * @memberof ClinicalCoverageUpdated
118213
+ * @static
118214
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
118215
+ * @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated
118216
+ * @throws {Error} If the payload is not a reader or valid buffer
118217
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
118218
+ */
118219
+ ClinicalCoverageUpdated.decodeDelimited = function decodeDelimited(reader) {
118220
+ if (!(reader instanceof $Reader))
118221
+ reader = new $Reader(reader);
118222
+ return this.decode(reader, reader.uint32());
118223
+ };
118224
+
118225
+ /**
118226
+ * Verifies a ClinicalCoverageUpdated message.
118227
+ * @function verify
118228
+ * @memberof ClinicalCoverageUpdated
118229
+ * @static
118230
+ * @param {Object.<string,*>} message Plain object to verify
118231
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
118232
+ */
118233
+ ClinicalCoverageUpdated.verify = function verify(message) {
118234
+ if (typeof message !== "object" || message === null)
118235
+ return "object expected";
118236
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
118237
+ if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
118238
+ return "orgId: integer|Long expected";
118239
+ if (message.serviceType != null && message.hasOwnProperty("serviceType"))
118240
+ switch (message.serviceType) {
118241
+ default:
118242
+ return "serviceType: enum value expected";
118243
+ case 0:
118244
+ case 1:
118245
+ case 2:
118246
+ case 3:
118247
+ break;
118248
+ }
118249
+ if (message.coverageTotal != null && message.hasOwnProperty("coverageTotal"))
118250
+ if (!$util.isInteger(message.coverageTotal) && !(message.coverageTotal && $util.isInteger(message.coverageTotal.low) && $util.isInteger(message.coverageTotal.high)))
118251
+ return "coverageTotal: integer|Long expected";
118252
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
118253
+ if (!$util.isInteger(message.orgSubscriptionEndDate) && !(message.orgSubscriptionEndDate && $util.isInteger(message.orgSubscriptionEndDate.low) && $util.isInteger(message.orgSubscriptionEndDate.high)))
118254
+ return "orgSubscriptionEndDate: integer|Long expected";
118255
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
118256
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
118257
+ return "updatedAt: integer|Long expected";
118258
+ if (message.clinicalCoverageProvider != null && message.hasOwnProperty("clinicalCoverageProvider"))
118259
+ switch (message.clinicalCoverageProvider) {
118260
+ default:
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";
118272
+ case 0:
118273
+ case 1:
118274
+ case 2:
118275
+ case 3:
118276
+ break;
118277
+ }
118278
+ return null;
118279
+ };
118280
+
118281
+ /**
118282
+ * Creates a ClinicalCoverageUpdated message from a plain object. Also converts values to their respective internal types.
118283
+ * @function fromObject
118284
+ * @memberof ClinicalCoverageUpdated
118285
+ * @static
118286
+ * @param {Object.<string,*>} object Plain object
118287
+ * @returns {ClinicalCoverageUpdated} ClinicalCoverageUpdated
118288
+ */
118289
+ ClinicalCoverageUpdated.fromObject = function fromObject(object) {
118290
+ if (object instanceof $root.ClinicalCoverageUpdated)
118291
+ return object;
118292
+ var message = new $root.ClinicalCoverageUpdated();
118293
+ if (object.orgId != null)
118294
+ if ($util.Long)
118295
+ (message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
118296
+ else if (typeof object.orgId === "string")
118297
+ message.orgId = parseInt(object.orgId, 10);
118298
+ else if (typeof object.orgId === "number")
118299
+ message.orgId = object.orgId;
118300
+ else if (typeof object.orgId === "object")
118301
+ message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
118302
+ switch (object.serviceType) {
118303
+ case "CLINICAL_SERVICE_TYPE_UNKNOWN":
118304
+ case 0:
118305
+ message.serviceType = 0;
118306
+ break;
118307
+ case "CLINICAL_SERVICE_TYPE_PSYCHIATRY":
118308
+ case 1:
118309
+ message.serviceType = 1;
118310
+ break;
118311
+ case "CLINICAL_SERVICE_TYPE_THERAPY":
118312
+ case 2:
118313
+ message.serviceType = 2;
118314
+ break;
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
+
117577
118912
  $root.EapCoverageCreated = (function() {
117578
118913
 
117579
118914
  /**