@headspace/protos-events 1.678.0 → 1.680.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 CHANGED
@@ -44255,6 +44255,114 @@ export class ClinicalCoverageDeleted implements IClinicalCoverageDeleted {
44255
44255
  public toJSON(): { [k: string]: any };
44256
44256
  }
44257
44257
 
44258
+ /** Properties of a ClinicalCoverageUpgraded. */
44259
+ export interface IClinicalCoverageUpgraded {
44260
+
44261
+ /** ClinicalCoverageUpgraded orgId */
44262
+ orgId?: (number|Long|null);
44263
+
44264
+ /** ClinicalCoverageUpgraded upgradedAt */
44265
+ upgradedAt?: (number|Long|null);
44266
+
44267
+ /** ClinicalCoverageUpgraded priorClinicalCoverageType */
44268
+ priorClinicalCoverageType?: (b2b.ClinicalCoverageType|null);
44269
+
44270
+ /** ClinicalCoverageUpgraded clinicalCoverageType */
44271
+ clinicalCoverageType?: (b2b.ClinicalCoverageType|null);
44272
+ }
44273
+
44274
+ /** Represents a ClinicalCoverageUpgraded. */
44275
+ export class ClinicalCoverageUpgraded implements IClinicalCoverageUpgraded {
44276
+
44277
+ /**
44278
+ * Constructs a new ClinicalCoverageUpgraded.
44279
+ * @param [properties] Properties to set
44280
+ */
44281
+ constructor(properties?: IClinicalCoverageUpgraded);
44282
+
44283
+ /** ClinicalCoverageUpgraded orgId. */
44284
+ public orgId: (number|Long);
44285
+
44286
+ /** ClinicalCoverageUpgraded upgradedAt. */
44287
+ public upgradedAt: (number|Long);
44288
+
44289
+ /** ClinicalCoverageUpgraded priorClinicalCoverageType. */
44290
+ public priorClinicalCoverageType: b2b.ClinicalCoverageType;
44291
+
44292
+ /** ClinicalCoverageUpgraded clinicalCoverageType. */
44293
+ public clinicalCoverageType: b2b.ClinicalCoverageType;
44294
+
44295
+ /**
44296
+ * Creates a new ClinicalCoverageUpgraded instance using the specified properties.
44297
+ * @param [properties] Properties to set
44298
+ * @returns ClinicalCoverageUpgraded instance
44299
+ */
44300
+ public static create(properties?: IClinicalCoverageUpgraded): ClinicalCoverageUpgraded;
44301
+
44302
+ /**
44303
+ * Encodes the specified ClinicalCoverageUpgraded message. Does not implicitly {@link ClinicalCoverageUpgraded.verify|verify} messages.
44304
+ * @param message ClinicalCoverageUpgraded message or plain object to encode
44305
+ * @param [writer] Writer to encode to
44306
+ * @returns Writer
44307
+ */
44308
+ public static encode(message: IClinicalCoverageUpgraded, writer?: $protobuf.Writer): $protobuf.Writer;
44309
+
44310
+ /**
44311
+ * Encodes the specified ClinicalCoverageUpgraded message, length delimited. Does not implicitly {@link ClinicalCoverageUpgraded.verify|verify} messages.
44312
+ * @param message ClinicalCoverageUpgraded message or plain object to encode
44313
+ * @param [writer] Writer to encode to
44314
+ * @returns Writer
44315
+ */
44316
+ public static encodeDelimited(message: IClinicalCoverageUpgraded, writer?: $protobuf.Writer): $protobuf.Writer;
44317
+
44318
+ /**
44319
+ * Decodes a ClinicalCoverageUpgraded message from the specified reader or buffer.
44320
+ * @param reader Reader or buffer to decode from
44321
+ * @param [length] Message length if known beforehand
44322
+ * @returns ClinicalCoverageUpgraded
44323
+ * @throws {Error} If the payload is not a reader or valid buffer
44324
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
44325
+ */
44326
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ClinicalCoverageUpgraded;
44327
+
44328
+ /**
44329
+ * Decodes a ClinicalCoverageUpgraded message from the specified reader or buffer, length delimited.
44330
+ * @param reader Reader or buffer to decode from
44331
+ * @returns ClinicalCoverageUpgraded
44332
+ * @throws {Error} If the payload is not a reader or valid buffer
44333
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
44334
+ */
44335
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ClinicalCoverageUpgraded;
44336
+
44337
+ /**
44338
+ * Verifies a ClinicalCoverageUpgraded message.
44339
+ * @param message Plain object to verify
44340
+ * @returns `null` if valid, otherwise the reason why it is not
44341
+ */
44342
+ public static verify(message: { [k: string]: any }): (string|null);
44343
+
44344
+ /**
44345
+ * Creates a ClinicalCoverageUpgraded message from a plain object. Also converts values to their respective internal types.
44346
+ * @param object Plain object
44347
+ * @returns ClinicalCoverageUpgraded
44348
+ */
44349
+ public static fromObject(object: { [k: string]: any }): ClinicalCoverageUpgraded;
44350
+
44351
+ /**
44352
+ * Creates a plain object from a ClinicalCoverageUpgraded message. Also converts values to other types if specified.
44353
+ * @param message ClinicalCoverageUpgraded
44354
+ * @param [options] Conversion options
44355
+ * @returns Plain object
44356
+ */
44357
+ public static toObject(message: ClinicalCoverageUpgraded, options?: $protobuf.IConversionOptions): { [k: string]: any };
44358
+
44359
+ /**
44360
+ * Converts this ClinicalCoverageUpgraded to JSON.
44361
+ * @returns JSON object
44362
+ */
44363
+ public toJSON(): { [k: string]: any };
44364
+ }
44365
+
44258
44366
  /** Properties of an EapCoverageCreated. */
44259
44367
  export interface IEapCoverageCreated {
44260
44368
 
@@ -48755,6 +48863,120 @@ export class OrganizationSubscriptionDeleted implements IOrganizationSubscriptio
48755
48863
  public toJSON(): { [k: string]: any };
48756
48864
  }
48757
48865
 
48866
+ /** Properties of an OrganizationContractSwitched. */
48867
+ export interface IOrganizationContractSwitched {
48868
+
48869
+ /** OrganizationContractSwitched organization */
48870
+ organization?: (b2b.IOrganization|null);
48871
+
48872
+ /** OrganizationContractSwitched activatedContract */
48873
+ activatedContract?: (b2b.IB2BSubscriptionManagement|null);
48874
+
48875
+ /** OrganizationContractSwitched expiredContract */
48876
+ expiredContract?: (b2b.IB2BSubscriptionManagement|null);
48877
+
48878
+ /** OrganizationContractSwitched adminPortalUserId */
48879
+ adminPortalUserId?: (string|null);
48880
+
48881
+ /** OrganizationContractSwitched timestamp */
48882
+ timestamp?: (number|Long|null);
48883
+ }
48884
+
48885
+ /** Represents an OrganizationContractSwitched. */
48886
+ export class OrganizationContractSwitched implements IOrganizationContractSwitched {
48887
+
48888
+ /**
48889
+ * Constructs a new OrganizationContractSwitched.
48890
+ * @param [properties] Properties to set
48891
+ */
48892
+ constructor(properties?: IOrganizationContractSwitched);
48893
+
48894
+ /** OrganizationContractSwitched organization. */
48895
+ public organization?: (b2b.IOrganization|null);
48896
+
48897
+ /** OrganizationContractSwitched activatedContract. */
48898
+ public activatedContract?: (b2b.IB2BSubscriptionManagement|null);
48899
+
48900
+ /** OrganizationContractSwitched expiredContract. */
48901
+ public expiredContract?: (b2b.IB2BSubscriptionManagement|null);
48902
+
48903
+ /** OrganizationContractSwitched adminPortalUserId. */
48904
+ public adminPortalUserId: string;
48905
+
48906
+ /** OrganizationContractSwitched timestamp. */
48907
+ public timestamp: (number|Long);
48908
+
48909
+ /**
48910
+ * Creates a new OrganizationContractSwitched instance using the specified properties.
48911
+ * @param [properties] Properties to set
48912
+ * @returns OrganizationContractSwitched instance
48913
+ */
48914
+ public static create(properties?: IOrganizationContractSwitched): OrganizationContractSwitched;
48915
+
48916
+ /**
48917
+ * Encodes the specified OrganizationContractSwitched message. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
48918
+ * @param message OrganizationContractSwitched message or plain object to encode
48919
+ * @param [writer] Writer to encode to
48920
+ * @returns Writer
48921
+ */
48922
+ public static encode(message: IOrganizationContractSwitched, writer?: $protobuf.Writer): $protobuf.Writer;
48923
+
48924
+ /**
48925
+ * Encodes the specified OrganizationContractSwitched message, length delimited. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
48926
+ * @param message OrganizationContractSwitched message or plain object to encode
48927
+ * @param [writer] Writer to encode to
48928
+ * @returns Writer
48929
+ */
48930
+ public static encodeDelimited(message: IOrganizationContractSwitched, writer?: $protobuf.Writer): $protobuf.Writer;
48931
+
48932
+ /**
48933
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer.
48934
+ * @param reader Reader or buffer to decode from
48935
+ * @param [length] Message length if known beforehand
48936
+ * @returns OrganizationContractSwitched
48937
+ * @throws {Error} If the payload is not a reader or valid buffer
48938
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48939
+ */
48940
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OrganizationContractSwitched;
48941
+
48942
+ /**
48943
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer, length delimited.
48944
+ * @param reader Reader or buffer to decode from
48945
+ * @returns OrganizationContractSwitched
48946
+ * @throws {Error} If the payload is not a reader or valid buffer
48947
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48948
+ */
48949
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OrganizationContractSwitched;
48950
+
48951
+ /**
48952
+ * Verifies an OrganizationContractSwitched message.
48953
+ * @param message Plain object to verify
48954
+ * @returns `null` if valid, otherwise the reason why it is not
48955
+ */
48956
+ public static verify(message: { [k: string]: any }): (string|null);
48957
+
48958
+ /**
48959
+ * Creates an OrganizationContractSwitched message from a plain object. Also converts values to their respective internal types.
48960
+ * @param object Plain object
48961
+ * @returns OrganizationContractSwitched
48962
+ */
48963
+ public static fromObject(object: { [k: string]: any }): OrganizationContractSwitched;
48964
+
48965
+ /**
48966
+ * Creates a plain object from an OrganizationContractSwitched message. Also converts values to other types if specified.
48967
+ * @param message OrganizationContractSwitched
48968
+ * @param [options] Conversion options
48969
+ * @returns Plain object
48970
+ */
48971
+ public static toObject(message: OrganizationContractSwitched, options?: $protobuf.IConversionOptions): { [k: string]: any };
48972
+
48973
+ /**
48974
+ * Converts this OrganizationContractSwitched to JSON.
48975
+ * @returns JSON object
48976
+ */
48977
+ public toJSON(): { [k: string]: any };
48978
+ }
48979
+
48758
48980
  /** Properties of a BrazeProxyChatMessageSent. */
48759
48981
  export interface IBrazeProxyChatMessageSent {
48760
48982
 
package/lib/index.js CHANGED
@@ -121604,6 +121604,334 @@ $root.ClinicalCoverageDeleted = (function() {
121604
121604
  return ClinicalCoverageDeleted;
121605
121605
  })();
121606
121606
 
121607
+ $root.ClinicalCoverageUpgraded = (function() {
121608
+
121609
+ /**
121610
+ * Properties of a ClinicalCoverageUpgraded.
121611
+ * @name IClinicalCoverageUpgraded
121612
+ * @interface IClinicalCoverageUpgraded
121613
+ * @property {number|Long|null} [orgId] ClinicalCoverageUpgraded orgId
121614
+ * @property {number|Long|null} [upgradedAt] ClinicalCoverageUpgraded upgradedAt
121615
+ * @property {b2b.ClinicalCoverageType|null} [priorClinicalCoverageType] ClinicalCoverageUpgraded priorClinicalCoverageType
121616
+ * @property {b2b.ClinicalCoverageType|null} [clinicalCoverageType] ClinicalCoverageUpgraded clinicalCoverageType
121617
+ */
121618
+
121619
+ /**
121620
+ * Constructs a new ClinicalCoverageUpgraded.
121621
+ * @name ClinicalCoverageUpgraded
121622
+ * @classdesc Represents a ClinicalCoverageUpgraded.
121623
+ * @implements IClinicalCoverageUpgraded
121624
+ * @constructor
121625
+ * @param {IClinicalCoverageUpgraded=} [properties] Properties to set
121626
+ */
121627
+ function ClinicalCoverageUpgraded(properties) {
121628
+ if (properties)
121629
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
121630
+ if (properties[keys[i]] != null)
121631
+ this[keys[i]] = properties[keys[i]];
121632
+ }
121633
+
121634
+ /**
121635
+ * ClinicalCoverageUpgraded orgId.
121636
+ * @member {number|Long} orgId
121637
+ * @memberof ClinicalCoverageUpgraded
121638
+ * @instance
121639
+ */
121640
+ ClinicalCoverageUpgraded.prototype.orgId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
121641
+
121642
+ /**
121643
+ * ClinicalCoverageUpgraded upgradedAt.
121644
+ * @member {number|Long} upgradedAt
121645
+ * @memberof ClinicalCoverageUpgraded
121646
+ * @instance
121647
+ */
121648
+ ClinicalCoverageUpgraded.prototype.upgradedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
121649
+
121650
+ /**
121651
+ * ClinicalCoverageUpgraded priorClinicalCoverageType.
121652
+ * @member {b2b.ClinicalCoverageType} priorClinicalCoverageType
121653
+ * @memberof ClinicalCoverageUpgraded
121654
+ * @instance
121655
+ */
121656
+ ClinicalCoverageUpgraded.prototype.priorClinicalCoverageType = 0;
121657
+
121658
+ /**
121659
+ * ClinicalCoverageUpgraded clinicalCoverageType.
121660
+ * @member {b2b.ClinicalCoverageType} clinicalCoverageType
121661
+ * @memberof ClinicalCoverageUpgraded
121662
+ * @instance
121663
+ */
121664
+ ClinicalCoverageUpgraded.prototype.clinicalCoverageType = 0;
121665
+
121666
+ /**
121667
+ * Creates a new ClinicalCoverageUpgraded instance using the specified properties.
121668
+ * @function create
121669
+ * @memberof ClinicalCoverageUpgraded
121670
+ * @static
121671
+ * @param {IClinicalCoverageUpgraded=} [properties] Properties to set
121672
+ * @returns {ClinicalCoverageUpgraded} ClinicalCoverageUpgraded instance
121673
+ */
121674
+ ClinicalCoverageUpgraded.create = function create(properties) {
121675
+ return new ClinicalCoverageUpgraded(properties);
121676
+ };
121677
+
121678
+ /**
121679
+ * Encodes the specified ClinicalCoverageUpgraded message. Does not implicitly {@link ClinicalCoverageUpgraded.verify|verify} messages.
121680
+ * @function encode
121681
+ * @memberof ClinicalCoverageUpgraded
121682
+ * @static
121683
+ * @param {IClinicalCoverageUpgraded} message ClinicalCoverageUpgraded message or plain object to encode
121684
+ * @param {$protobuf.Writer} [writer] Writer to encode to
121685
+ * @returns {$protobuf.Writer} Writer
121686
+ */
121687
+ ClinicalCoverageUpgraded.encode = function encode(message, writer) {
121688
+ if (!writer)
121689
+ writer = $Writer.create();
121690
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
121691
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.orgId);
121692
+ if (message.upgradedAt != null && message.hasOwnProperty("upgradedAt"))
121693
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.upgradedAt);
121694
+ if (message.priorClinicalCoverageType != null && message.hasOwnProperty("priorClinicalCoverageType"))
121695
+ writer.uint32(/* id 3, wireType 0 =*/24).int32(message.priorClinicalCoverageType);
121696
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
121697
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.clinicalCoverageType);
121698
+ return writer;
121699
+ };
121700
+
121701
+ /**
121702
+ * Encodes the specified ClinicalCoverageUpgraded message, length delimited. Does not implicitly {@link ClinicalCoverageUpgraded.verify|verify} messages.
121703
+ * @function encodeDelimited
121704
+ * @memberof ClinicalCoverageUpgraded
121705
+ * @static
121706
+ * @param {IClinicalCoverageUpgraded} message ClinicalCoverageUpgraded message or plain object to encode
121707
+ * @param {$protobuf.Writer} [writer] Writer to encode to
121708
+ * @returns {$protobuf.Writer} Writer
121709
+ */
121710
+ ClinicalCoverageUpgraded.encodeDelimited = function encodeDelimited(message, writer) {
121711
+ return this.encode(message, writer).ldelim();
121712
+ };
121713
+
121714
+ /**
121715
+ * Decodes a ClinicalCoverageUpgraded message from the specified reader or buffer.
121716
+ * @function decode
121717
+ * @memberof ClinicalCoverageUpgraded
121718
+ * @static
121719
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
121720
+ * @param {number} [length] Message length if known beforehand
121721
+ * @returns {ClinicalCoverageUpgraded} ClinicalCoverageUpgraded
121722
+ * @throws {Error} If the payload is not a reader or valid buffer
121723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
121724
+ */
121725
+ ClinicalCoverageUpgraded.decode = function decode(reader, length) {
121726
+ if (!(reader instanceof $Reader))
121727
+ reader = $Reader.create(reader);
121728
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ClinicalCoverageUpgraded();
121729
+ while (reader.pos < end) {
121730
+ var tag = reader.uint32();
121731
+ switch (tag >>> 3) {
121732
+ case 1:
121733
+ message.orgId = reader.uint64();
121734
+ break;
121735
+ case 2:
121736
+ message.upgradedAt = reader.uint64();
121737
+ break;
121738
+ case 3:
121739
+ message.priorClinicalCoverageType = reader.int32();
121740
+ break;
121741
+ case 4:
121742
+ message.clinicalCoverageType = reader.int32();
121743
+ break;
121744
+ default:
121745
+ reader.skipType(tag & 7);
121746
+ break;
121747
+ }
121748
+ }
121749
+ return message;
121750
+ };
121751
+
121752
+ /**
121753
+ * Decodes a ClinicalCoverageUpgraded message from the specified reader or buffer, length delimited.
121754
+ * @function decodeDelimited
121755
+ * @memberof ClinicalCoverageUpgraded
121756
+ * @static
121757
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
121758
+ * @returns {ClinicalCoverageUpgraded} ClinicalCoverageUpgraded
121759
+ * @throws {Error} If the payload is not a reader or valid buffer
121760
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
121761
+ */
121762
+ ClinicalCoverageUpgraded.decodeDelimited = function decodeDelimited(reader) {
121763
+ if (!(reader instanceof $Reader))
121764
+ reader = new $Reader(reader);
121765
+ return this.decode(reader, reader.uint32());
121766
+ };
121767
+
121768
+ /**
121769
+ * Verifies a ClinicalCoverageUpgraded message.
121770
+ * @function verify
121771
+ * @memberof ClinicalCoverageUpgraded
121772
+ * @static
121773
+ * @param {Object.<string,*>} message Plain object to verify
121774
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
121775
+ */
121776
+ ClinicalCoverageUpgraded.verify = function verify(message) {
121777
+ if (typeof message !== "object" || message === null)
121778
+ return "object expected";
121779
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
121780
+ if (!$util.isInteger(message.orgId) && !(message.orgId && $util.isInteger(message.orgId.low) && $util.isInteger(message.orgId.high)))
121781
+ return "orgId: integer|Long expected";
121782
+ if (message.upgradedAt != null && message.hasOwnProperty("upgradedAt"))
121783
+ if (!$util.isInteger(message.upgradedAt) && !(message.upgradedAt && $util.isInteger(message.upgradedAt.low) && $util.isInteger(message.upgradedAt.high)))
121784
+ return "upgradedAt: integer|Long expected";
121785
+ if (message.priorClinicalCoverageType != null && message.hasOwnProperty("priorClinicalCoverageType"))
121786
+ switch (message.priorClinicalCoverageType) {
121787
+ default:
121788
+ return "priorClinicalCoverageType: enum value expected";
121789
+ case 0:
121790
+ case 1:
121791
+ case 2:
121792
+ case 3:
121793
+ break;
121794
+ }
121795
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
121796
+ switch (message.clinicalCoverageType) {
121797
+ default:
121798
+ return "clinicalCoverageType: enum value expected";
121799
+ case 0:
121800
+ case 1:
121801
+ case 2:
121802
+ case 3:
121803
+ break;
121804
+ }
121805
+ return null;
121806
+ };
121807
+
121808
+ /**
121809
+ * Creates a ClinicalCoverageUpgraded message from a plain object. Also converts values to their respective internal types.
121810
+ * @function fromObject
121811
+ * @memberof ClinicalCoverageUpgraded
121812
+ * @static
121813
+ * @param {Object.<string,*>} object Plain object
121814
+ * @returns {ClinicalCoverageUpgraded} ClinicalCoverageUpgraded
121815
+ */
121816
+ ClinicalCoverageUpgraded.fromObject = function fromObject(object) {
121817
+ if (object instanceof $root.ClinicalCoverageUpgraded)
121818
+ return object;
121819
+ var message = new $root.ClinicalCoverageUpgraded();
121820
+ if (object.orgId != null)
121821
+ if ($util.Long)
121822
+ (message.orgId = $util.Long.fromValue(object.orgId)).unsigned = true;
121823
+ else if (typeof object.orgId === "string")
121824
+ message.orgId = parseInt(object.orgId, 10);
121825
+ else if (typeof object.orgId === "number")
121826
+ message.orgId = object.orgId;
121827
+ else if (typeof object.orgId === "object")
121828
+ message.orgId = new $util.LongBits(object.orgId.low >>> 0, object.orgId.high >>> 0).toNumber(true);
121829
+ if (object.upgradedAt != null)
121830
+ if ($util.Long)
121831
+ (message.upgradedAt = $util.Long.fromValue(object.upgradedAt)).unsigned = true;
121832
+ else if (typeof object.upgradedAt === "string")
121833
+ message.upgradedAt = parseInt(object.upgradedAt, 10);
121834
+ else if (typeof object.upgradedAt === "number")
121835
+ message.upgradedAt = object.upgradedAt;
121836
+ else if (typeof object.upgradedAt === "object")
121837
+ message.upgradedAt = new $util.LongBits(object.upgradedAt.low >>> 0, object.upgradedAt.high >>> 0).toNumber(true);
121838
+ switch (object.priorClinicalCoverageType) {
121839
+ case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
121840
+ case 0:
121841
+ message.priorClinicalCoverageType = 0;
121842
+ break;
121843
+ case "CLINICAL_COVERAGE_TYPE_NONE":
121844
+ case 1:
121845
+ message.priorClinicalCoverageType = 1;
121846
+ break;
121847
+ case "CLINICAL_COVERAGE_TYPE_EAP_V2":
121848
+ case 2:
121849
+ message.priorClinicalCoverageType = 2;
121850
+ break;
121851
+ case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
121852
+ case 3:
121853
+ message.priorClinicalCoverageType = 3;
121854
+ break;
121855
+ }
121856
+ switch (object.clinicalCoverageType) {
121857
+ case "CLINICAL_COVERAGE_TYPE_UNKNOWN":
121858
+ case 0:
121859
+ message.clinicalCoverageType = 0;
121860
+ break;
121861
+ case "CLINICAL_COVERAGE_TYPE_NONE":
121862
+ case 1:
121863
+ message.clinicalCoverageType = 1;
121864
+ break;
121865
+ case "CLINICAL_COVERAGE_TYPE_EAP_V2":
121866
+ case 2:
121867
+ message.clinicalCoverageType = 2;
121868
+ break;
121869
+ case "CLINICAL_COVERAGE_TYPE_INTL_THERAPY":
121870
+ case 3:
121871
+ message.clinicalCoverageType = 3;
121872
+ break;
121873
+ }
121874
+ return message;
121875
+ };
121876
+
121877
+ /**
121878
+ * Creates a plain object from a ClinicalCoverageUpgraded message. Also converts values to other types if specified.
121879
+ * @function toObject
121880
+ * @memberof ClinicalCoverageUpgraded
121881
+ * @static
121882
+ * @param {ClinicalCoverageUpgraded} message ClinicalCoverageUpgraded
121883
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
121884
+ * @returns {Object.<string,*>} Plain object
121885
+ */
121886
+ ClinicalCoverageUpgraded.toObject = function toObject(message, options) {
121887
+ if (!options)
121888
+ options = {};
121889
+ var object = {};
121890
+ if (options.defaults) {
121891
+ if ($util.Long) {
121892
+ var long = new $util.Long(0, 0, true);
121893
+ object.orgId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
121894
+ } else
121895
+ object.orgId = options.longs === String ? "0" : 0;
121896
+ if ($util.Long) {
121897
+ var long = new $util.Long(0, 0, true);
121898
+ object.upgradedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
121899
+ } else
121900
+ object.upgradedAt = options.longs === String ? "0" : 0;
121901
+ object.priorClinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
121902
+ object.clinicalCoverageType = options.enums === String ? "CLINICAL_COVERAGE_TYPE_UNKNOWN" : 0;
121903
+ }
121904
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
121905
+ if (typeof message.orgId === "number")
121906
+ object.orgId = options.longs === String ? String(message.orgId) : message.orgId;
121907
+ else
121908
+ 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;
121909
+ if (message.upgradedAt != null && message.hasOwnProperty("upgradedAt"))
121910
+ if (typeof message.upgradedAt === "number")
121911
+ object.upgradedAt = options.longs === String ? String(message.upgradedAt) : message.upgradedAt;
121912
+ else
121913
+ object.upgradedAt = options.longs === String ? $util.Long.prototype.toString.call(message.upgradedAt) : options.longs === Number ? new $util.LongBits(message.upgradedAt.low >>> 0, message.upgradedAt.high >>> 0).toNumber(true) : message.upgradedAt;
121914
+ if (message.priorClinicalCoverageType != null && message.hasOwnProperty("priorClinicalCoverageType"))
121915
+ object.priorClinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.priorClinicalCoverageType] : message.priorClinicalCoverageType;
121916
+ if (message.clinicalCoverageType != null && message.hasOwnProperty("clinicalCoverageType"))
121917
+ object.clinicalCoverageType = options.enums === String ? $root.b2b.ClinicalCoverageType[message.clinicalCoverageType] : message.clinicalCoverageType;
121918
+ return object;
121919
+ };
121920
+
121921
+ /**
121922
+ * Converts this ClinicalCoverageUpgraded to JSON.
121923
+ * @function toJSON
121924
+ * @memberof ClinicalCoverageUpgraded
121925
+ * @instance
121926
+ * @returns {Object.<string,*>} JSON object
121927
+ */
121928
+ ClinicalCoverageUpgraded.prototype.toJSON = function toJSON() {
121929
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
121930
+ };
121931
+
121932
+ return ClinicalCoverageUpgraded;
121933
+ })();
121934
+
121607
121935
  $root.EapCoverageCreated = (function() {
121608
121936
 
121609
121937
  /**
@@ -134660,6 +134988,311 @@ $root.OrganizationSubscriptionDeleted = (function() {
134660
134988
  return OrganizationSubscriptionDeleted;
134661
134989
  })();
134662
134990
 
134991
+ $root.OrganizationContractSwitched = (function() {
134992
+
134993
+ /**
134994
+ * Properties of an OrganizationContractSwitched.
134995
+ * @name IOrganizationContractSwitched
134996
+ * @interface IOrganizationContractSwitched
134997
+ * @property {b2b.IOrganization|null} [organization] OrganizationContractSwitched organization
134998
+ * @property {b2b.IB2BSubscriptionManagement|null} [activatedContract] OrganizationContractSwitched activatedContract
134999
+ * @property {b2b.IB2BSubscriptionManagement|null} [expiredContract] OrganizationContractSwitched expiredContract
135000
+ * @property {string|null} [adminPortalUserId] OrganizationContractSwitched adminPortalUserId
135001
+ * @property {number|Long|null} [timestamp] OrganizationContractSwitched timestamp
135002
+ */
135003
+
135004
+ /**
135005
+ * Constructs a new OrganizationContractSwitched.
135006
+ * @name OrganizationContractSwitched
135007
+ * @classdesc Represents an OrganizationContractSwitched.
135008
+ * @implements IOrganizationContractSwitched
135009
+ * @constructor
135010
+ * @param {IOrganizationContractSwitched=} [properties] Properties to set
135011
+ */
135012
+ function OrganizationContractSwitched(properties) {
135013
+ if (properties)
135014
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
135015
+ if (properties[keys[i]] != null)
135016
+ this[keys[i]] = properties[keys[i]];
135017
+ }
135018
+
135019
+ /**
135020
+ * OrganizationContractSwitched organization.
135021
+ * @member {b2b.IOrganization|null|undefined} organization
135022
+ * @memberof OrganizationContractSwitched
135023
+ * @instance
135024
+ */
135025
+ OrganizationContractSwitched.prototype.organization = null;
135026
+
135027
+ /**
135028
+ * OrganizationContractSwitched activatedContract.
135029
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} activatedContract
135030
+ * @memberof OrganizationContractSwitched
135031
+ * @instance
135032
+ */
135033
+ OrganizationContractSwitched.prototype.activatedContract = null;
135034
+
135035
+ /**
135036
+ * OrganizationContractSwitched expiredContract.
135037
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} expiredContract
135038
+ * @memberof OrganizationContractSwitched
135039
+ * @instance
135040
+ */
135041
+ OrganizationContractSwitched.prototype.expiredContract = null;
135042
+
135043
+ /**
135044
+ * OrganizationContractSwitched adminPortalUserId.
135045
+ * @member {string} adminPortalUserId
135046
+ * @memberof OrganizationContractSwitched
135047
+ * @instance
135048
+ */
135049
+ OrganizationContractSwitched.prototype.adminPortalUserId = "";
135050
+
135051
+ /**
135052
+ * OrganizationContractSwitched timestamp.
135053
+ * @member {number|Long} timestamp
135054
+ * @memberof OrganizationContractSwitched
135055
+ * @instance
135056
+ */
135057
+ OrganizationContractSwitched.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
135058
+
135059
+ /**
135060
+ * Creates a new OrganizationContractSwitched instance using the specified properties.
135061
+ * @function create
135062
+ * @memberof OrganizationContractSwitched
135063
+ * @static
135064
+ * @param {IOrganizationContractSwitched=} [properties] Properties to set
135065
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched instance
135066
+ */
135067
+ OrganizationContractSwitched.create = function create(properties) {
135068
+ return new OrganizationContractSwitched(properties);
135069
+ };
135070
+
135071
+ /**
135072
+ * Encodes the specified OrganizationContractSwitched message. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
135073
+ * @function encode
135074
+ * @memberof OrganizationContractSwitched
135075
+ * @static
135076
+ * @param {IOrganizationContractSwitched} message OrganizationContractSwitched message or plain object to encode
135077
+ * @param {$protobuf.Writer} [writer] Writer to encode to
135078
+ * @returns {$protobuf.Writer} Writer
135079
+ */
135080
+ OrganizationContractSwitched.encode = function encode(message, writer) {
135081
+ if (!writer)
135082
+ writer = $Writer.create();
135083
+ if (message.organization != null && message.hasOwnProperty("organization"))
135084
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
135085
+ if (message.activatedContract != null && message.hasOwnProperty("activatedContract"))
135086
+ $root.b2b.B2BSubscriptionManagement.encode(message.activatedContract, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
135087
+ if (message.expiredContract != null && message.hasOwnProperty("expiredContract"))
135088
+ $root.b2b.B2BSubscriptionManagement.encode(message.expiredContract, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
135089
+ if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
135090
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.adminPortalUserId);
135091
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
135092
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.timestamp);
135093
+ return writer;
135094
+ };
135095
+
135096
+ /**
135097
+ * Encodes the specified OrganizationContractSwitched message, length delimited. Does not implicitly {@link OrganizationContractSwitched.verify|verify} messages.
135098
+ * @function encodeDelimited
135099
+ * @memberof OrganizationContractSwitched
135100
+ * @static
135101
+ * @param {IOrganizationContractSwitched} message OrganizationContractSwitched message or plain object to encode
135102
+ * @param {$protobuf.Writer} [writer] Writer to encode to
135103
+ * @returns {$protobuf.Writer} Writer
135104
+ */
135105
+ OrganizationContractSwitched.encodeDelimited = function encodeDelimited(message, writer) {
135106
+ return this.encode(message, writer).ldelim();
135107
+ };
135108
+
135109
+ /**
135110
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer.
135111
+ * @function decode
135112
+ * @memberof OrganizationContractSwitched
135113
+ * @static
135114
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
135115
+ * @param {number} [length] Message length if known beforehand
135116
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched
135117
+ * @throws {Error} If the payload is not a reader or valid buffer
135118
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
135119
+ */
135120
+ OrganizationContractSwitched.decode = function decode(reader, length) {
135121
+ if (!(reader instanceof $Reader))
135122
+ reader = $Reader.create(reader);
135123
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationContractSwitched();
135124
+ while (reader.pos < end) {
135125
+ var tag = reader.uint32();
135126
+ switch (tag >>> 3) {
135127
+ case 1:
135128
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
135129
+ break;
135130
+ case 2:
135131
+ message.activatedContract = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
135132
+ break;
135133
+ case 3:
135134
+ message.expiredContract = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
135135
+ break;
135136
+ case 4:
135137
+ message.adminPortalUserId = reader.string();
135138
+ break;
135139
+ case 5:
135140
+ message.timestamp = reader.uint64();
135141
+ break;
135142
+ default:
135143
+ reader.skipType(tag & 7);
135144
+ break;
135145
+ }
135146
+ }
135147
+ return message;
135148
+ };
135149
+
135150
+ /**
135151
+ * Decodes an OrganizationContractSwitched message from the specified reader or buffer, length delimited.
135152
+ * @function decodeDelimited
135153
+ * @memberof OrganizationContractSwitched
135154
+ * @static
135155
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
135156
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched
135157
+ * @throws {Error} If the payload is not a reader or valid buffer
135158
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
135159
+ */
135160
+ OrganizationContractSwitched.decodeDelimited = function decodeDelimited(reader) {
135161
+ if (!(reader instanceof $Reader))
135162
+ reader = new $Reader(reader);
135163
+ return this.decode(reader, reader.uint32());
135164
+ };
135165
+
135166
+ /**
135167
+ * Verifies an OrganizationContractSwitched message.
135168
+ * @function verify
135169
+ * @memberof OrganizationContractSwitched
135170
+ * @static
135171
+ * @param {Object.<string,*>} message Plain object to verify
135172
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
135173
+ */
135174
+ OrganizationContractSwitched.verify = function verify(message) {
135175
+ if (typeof message !== "object" || message === null)
135176
+ return "object expected";
135177
+ if (message.organization != null && message.hasOwnProperty("organization")) {
135178
+ var error = $root.b2b.Organization.verify(message.organization);
135179
+ if (error)
135180
+ return "organization." + error;
135181
+ }
135182
+ if (message.activatedContract != null && message.hasOwnProperty("activatedContract")) {
135183
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.activatedContract);
135184
+ if (error)
135185
+ return "activatedContract." + error;
135186
+ }
135187
+ if (message.expiredContract != null && message.hasOwnProperty("expiredContract")) {
135188
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.expiredContract);
135189
+ if (error)
135190
+ return "expiredContract." + error;
135191
+ }
135192
+ if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
135193
+ if (!$util.isString(message.adminPortalUserId))
135194
+ return "adminPortalUserId: string expected";
135195
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
135196
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
135197
+ return "timestamp: integer|Long expected";
135198
+ return null;
135199
+ };
135200
+
135201
+ /**
135202
+ * Creates an OrganizationContractSwitched message from a plain object. Also converts values to their respective internal types.
135203
+ * @function fromObject
135204
+ * @memberof OrganizationContractSwitched
135205
+ * @static
135206
+ * @param {Object.<string,*>} object Plain object
135207
+ * @returns {OrganizationContractSwitched} OrganizationContractSwitched
135208
+ */
135209
+ OrganizationContractSwitched.fromObject = function fromObject(object) {
135210
+ if (object instanceof $root.OrganizationContractSwitched)
135211
+ return object;
135212
+ var message = new $root.OrganizationContractSwitched();
135213
+ if (object.organization != null) {
135214
+ if (typeof object.organization !== "object")
135215
+ throw TypeError(".OrganizationContractSwitched.organization: object expected");
135216
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
135217
+ }
135218
+ if (object.activatedContract != null) {
135219
+ if (typeof object.activatedContract !== "object")
135220
+ throw TypeError(".OrganizationContractSwitched.activatedContract: object expected");
135221
+ message.activatedContract = $root.b2b.B2BSubscriptionManagement.fromObject(object.activatedContract);
135222
+ }
135223
+ if (object.expiredContract != null) {
135224
+ if (typeof object.expiredContract !== "object")
135225
+ throw TypeError(".OrganizationContractSwitched.expiredContract: object expected");
135226
+ message.expiredContract = $root.b2b.B2BSubscriptionManagement.fromObject(object.expiredContract);
135227
+ }
135228
+ if (object.adminPortalUserId != null)
135229
+ message.adminPortalUserId = String(object.adminPortalUserId);
135230
+ if (object.timestamp != null)
135231
+ if ($util.Long)
135232
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
135233
+ else if (typeof object.timestamp === "string")
135234
+ message.timestamp = parseInt(object.timestamp, 10);
135235
+ else if (typeof object.timestamp === "number")
135236
+ message.timestamp = object.timestamp;
135237
+ else if (typeof object.timestamp === "object")
135238
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
135239
+ return message;
135240
+ };
135241
+
135242
+ /**
135243
+ * Creates a plain object from an OrganizationContractSwitched message. Also converts values to other types if specified.
135244
+ * @function toObject
135245
+ * @memberof OrganizationContractSwitched
135246
+ * @static
135247
+ * @param {OrganizationContractSwitched} message OrganizationContractSwitched
135248
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
135249
+ * @returns {Object.<string,*>} Plain object
135250
+ */
135251
+ OrganizationContractSwitched.toObject = function toObject(message, options) {
135252
+ if (!options)
135253
+ options = {};
135254
+ var object = {};
135255
+ if (options.defaults) {
135256
+ object.organization = null;
135257
+ object.activatedContract = null;
135258
+ object.expiredContract = null;
135259
+ object.adminPortalUserId = "";
135260
+ if ($util.Long) {
135261
+ var long = new $util.Long(0, 0, true);
135262
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
135263
+ } else
135264
+ object.timestamp = options.longs === String ? "0" : 0;
135265
+ }
135266
+ if (message.organization != null && message.hasOwnProperty("organization"))
135267
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
135268
+ if (message.activatedContract != null && message.hasOwnProperty("activatedContract"))
135269
+ object.activatedContract = $root.b2b.B2BSubscriptionManagement.toObject(message.activatedContract, options);
135270
+ if (message.expiredContract != null && message.hasOwnProperty("expiredContract"))
135271
+ object.expiredContract = $root.b2b.B2BSubscriptionManagement.toObject(message.expiredContract, options);
135272
+ if (message.adminPortalUserId != null && message.hasOwnProperty("adminPortalUserId"))
135273
+ object.adminPortalUserId = message.adminPortalUserId;
135274
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
135275
+ if (typeof message.timestamp === "number")
135276
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
135277
+ else
135278
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
135279
+ return object;
135280
+ };
135281
+
135282
+ /**
135283
+ * Converts this OrganizationContractSwitched to JSON.
135284
+ * @function toJSON
135285
+ * @memberof OrganizationContractSwitched
135286
+ * @instance
135287
+ * @returns {Object.<string,*>} JSON object
135288
+ */
135289
+ OrganizationContractSwitched.prototype.toJSON = function toJSON() {
135290
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
135291
+ };
135292
+
135293
+ return OrganizationContractSwitched;
135294
+ })();
135295
+
134663
135296
  $root.BrazeProxyChatMessageSent = (function() {
134664
135297
 
134665
135298
  /**
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.678.0"
19
+ "version": "1.680.0"
20
20
  }