@headspace/protos-events 1.677.0 → 1.679.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
@@ -27174,6 +27174,146 @@ export class ContentfulContentModelDeleted implements IContentfulContentModelDel
27174
27174
  public toJSON(): { [k: string]: any };
27175
27175
  }
27176
27176
 
27177
+ /** GingerUserDomainStatus enum. */
27178
+ export enum GingerUserDomainStatus {
27179
+ GINGER_USER_DOMAIN_STATUS_UNKNOWN = 0,
27180
+ GINGER_USER_DOMAIN_STATUS_ACTIVE = 1,
27181
+ GINGER_USER_DOMAIN_STATUS_PENDING = 2,
27182
+ GINGER_USER_DOMAIN_STATUS_DEACTIVATED = 3
27183
+ }
27184
+
27185
+ /** Properties of a GingerUserDomainExported. */
27186
+ export interface IGingerUserDomainExported {
27187
+
27188
+ /** GingerUserDomainExported gingerUserId */
27189
+ gingerUserId?: (string|null);
27190
+
27191
+ /** GingerUserDomainExported headspaceUserId */
27192
+ headspaceUserId?: (string|null);
27193
+
27194
+ /** GingerUserDomainExported fusionUpgradedAt */
27195
+ fusionUpgradedAt?: (number|Long|null);
27196
+
27197
+ /** GingerUserDomainExported status */
27198
+ status?: (GingerUserDomainStatus|null);
27199
+
27200
+ /** GingerUserDomainExported hasCompletedOnboarding */
27201
+ hasCompletedOnboarding?: (boolean|null);
27202
+
27203
+ /** GingerUserDomainExported organizationalUnitId */
27204
+ organizationalUnitId?: (number|Long|null);
27205
+
27206
+ /** GingerUserDomainExported isStaff */
27207
+ isStaff?: (boolean|null);
27208
+
27209
+ /** GingerUserDomainExported registeredAt */
27210
+ registeredAt?: (number|Long|null);
27211
+ }
27212
+
27213
+ /** Represents a GingerUserDomainExported. */
27214
+ export class GingerUserDomainExported implements IGingerUserDomainExported {
27215
+
27216
+ /**
27217
+ * Constructs a new GingerUserDomainExported.
27218
+ * @param [properties] Properties to set
27219
+ */
27220
+ constructor(properties?: IGingerUserDomainExported);
27221
+
27222
+ /** GingerUserDomainExported gingerUserId. */
27223
+ public gingerUserId: string;
27224
+
27225
+ /** GingerUserDomainExported headspaceUserId. */
27226
+ public headspaceUserId: string;
27227
+
27228
+ /** GingerUserDomainExported fusionUpgradedAt. */
27229
+ public fusionUpgradedAt: (number|Long);
27230
+
27231
+ /** GingerUserDomainExported status. */
27232
+ public status: GingerUserDomainStatus;
27233
+
27234
+ /** GingerUserDomainExported hasCompletedOnboarding. */
27235
+ public hasCompletedOnboarding: boolean;
27236
+
27237
+ /** GingerUserDomainExported organizationalUnitId. */
27238
+ public organizationalUnitId: (number|Long);
27239
+
27240
+ /** GingerUserDomainExported isStaff. */
27241
+ public isStaff: boolean;
27242
+
27243
+ /** GingerUserDomainExported registeredAt. */
27244
+ public registeredAt: (number|Long);
27245
+
27246
+ /**
27247
+ * Creates a new GingerUserDomainExported instance using the specified properties.
27248
+ * @param [properties] Properties to set
27249
+ * @returns GingerUserDomainExported instance
27250
+ */
27251
+ public static create(properties?: IGingerUserDomainExported): GingerUserDomainExported;
27252
+
27253
+ /**
27254
+ * Encodes the specified GingerUserDomainExported message. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
27255
+ * @param message GingerUserDomainExported message or plain object to encode
27256
+ * @param [writer] Writer to encode to
27257
+ * @returns Writer
27258
+ */
27259
+ public static encode(message: IGingerUserDomainExported, writer?: $protobuf.Writer): $protobuf.Writer;
27260
+
27261
+ /**
27262
+ * Encodes the specified GingerUserDomainExported message, length delimited. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
27263
+ * @param message GingerUserDomainExported message or plain object to encode
27264
+ * @param [writer] Writer to encode to
27265
+ * @returns Writer
27266
+ */
27267
+ public static encodeDelimited(message: IGingerUserDomainExported, writer?: $protobuf.Writer): $protobuf.Writer;
27268
+
27269
+ /**
27270
+ * Decodes a GingerUserDomainExported message from the specified reader or buffer.
27271
+ * @param reader Reader or buffer to decode from
27272
+ * @param [length] Message length if known beforehand
27273
+ * @returns GingerUserDomainExported
27274
+ * @throws {Error} If the payload is not a reader or valid buffer
27275
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27276
+ */
27277
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerUserDomainExported;
27278
+
27279
+ /**
27280
+ * Decodes a GingerUserDomainExported message from the specified reader or buffer, length delimited.
27281
+ * @param reader Reader or buffer to decode from
27282
+ * @returns GingerUserDomainExported
27283
+ * @throws {Error} If the payload is not a reader or valid buffer
27284
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27285
+ */
27286
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerUserDomainExported;
27287
+
27288
+ /**
27289
+ * Verifies a GingerUserDomainExported message.
27290
+ * @param message Plain object to verify
27291
+ * @returns `null` if valid, otherwise the reason why it is not
27292
+ */
27293
+ public static verify(message: { [k: string]: any }): (string|null);
27294
+
27295
+ /**
27296
+ * Creates a GingerUserDomainExported message from a plain object. Also converts values to their respective internal types.
27297
+ * @param object Plain object
27298
+ * @returns GingerUserDomainExported
27299
+ */
27300
+ public static fromObject(object: { [k: string]: any }): GingerUserDomainExported;
27301
+
27302
+ /**
27303
+ * Creates a plain object from a GingerUserDomainExported message. Also converts values to other types if specified.
27304
+ * @param message GingerUserDomainExported
27305
+ * @param [options] Conversion options
27306
+ * @returns Plain object
27307
+ */
27308
+ public static toObject(message: GingerUserDomainExported, options?: $protobuf.IConversionOptions): { [k: string]: any };
27309
+
27310
+ /**
27311
+ * Converts this GingerUserDomainExported to JSON.
27312
+ * @returns JSON object
27313
+ */
27314
+ public toJSON(): { [k: string]: any };
27315
+ }
27316
+
27177
27317
  /** Properties of a UserDomainCreated. */
27178
27318
  export interface IUserDomainCreated {
27179
27319
 
@@ -44115,6 +44255,114 @@ export class ClinicalCoverageDeleted implements IClinicalCoverageDeleted {
44115
44255
  public toJSON(): { [k: string]: any };
44116
44256
  }
44117
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
+
44118
44366
  /** Properties of an EapCoverageCreated. */
44119
44367
  export interface IEapCoverageCreated {
44120
44368
 
package/lib/index.js CHANGED
@@ -76655,6 +76655,431 @@ $root.ContentfulContentModelDeleted = (function() {
76655
76655
  return ContentfulContentModelDeleted;
76656
76656
  })();
76657
76657
 
76658
+ /**
76659
+ * GingerUserDomainStatus enum.
76660
+ * @name GingerUserDomainStatus
76661
+ * @enum {string}
76662
+ * @property {number} GINGER_USER_DOMAIN_STATUS_UNKNOWN=0 GINGER_USER_DOMAIN_STATUS_UNKNOWN value
76663
+ * @property {number} GINGER_USER_DOMAIN_STATUS_ACTIVE=1 GINGER_USER_DOMAIN_STATUS_ACTIVE value
76664
+ * @property {number} GINGER_USER_DOMAIN_STATUS_PENDING=2 GINGER_USER_DOMAIN_STATUS_PENDING value
76665
+ * @property {number} GINGER_USER_DOMAIN_STATUS_DEACTIVATED=3 GINGER_USER_DOMAIN_STATUS_DEACTIVATED value
76666
+ */
76667
+ $root.GingerUserDomainStatus = (function() {
76668
+ var valuesById = {}, values = Object.create(valuesById);
76669
+ values[valuesById[0] = "GINGER_USER_DOMAIN_STATUS_UNKNOWN"] = 0;
76670
+ values[valuesById[1] = "GINGER_USER_DOMAIN_STATUS_ACTIVE"] = 1;
76671
+ values[valuesById[2] = "GINGER_USER_DOMAIN_STATUS_PENDING"] = 2;
76672
+ values[valuesById[3] = "GINGER_USER_DOMAIN_STATUS_DEACTIVATED"] = 3;
76673
+ return values;
76674
+ })();
76675
+
76676
+ $root.GingerUserDomainExported = (function() {
76677
+
76678
+ /**
76679
+ * Properties of a GingerUserDomainExported.
76680
+ * @name IGingerUserDomainExported
76681
+ * @interface IGingerUserDomainExported
76682
+ * @property {string|null} [gingerUserId] GingerUserDomainExported gingerUserId
76683
+ * @property {string|null} [headspaceUserId] GingerUserDomainExported headspaceUserId
76684
+ * @property {number|Long|null} [fusionUpgradedAt] GingerUserDomainExported fusionUpgradedAt
76685
+ * @property {GingerUserDomainStatus|null} [status] GingerUserDomainExported status
76686
+ * @property {boolean|null} [hasCompletedOnboarding] GingerUserDomainExported hasCompletedOnboarding
76687
+ * @property {number|Long|null} [organizationalUnitId] GingerUserDomainExported organizationalUnitId
76688
+ * @property {boolean|null} [isStaff] GingerUserDomainExported isStaff
76689
+ * @property {number|Long|null} [registeredAt] GingerUserDomainExported registeredAt
76690
+ */
76691
+
76692
+ /**
76693
+ * Constructs a new GingerUserDomainExported.
76694
+ * @name GingerUserDomainExported
76695
+ * @classdesc Represents a GingerUserDomainExported.
76696
+ * @implements IGingerUserDomainExported
76697
+ * @constructor
76698
+ * @param {IGingerUserDomainExported=} [properties] Properties to set
76699
+ */
76700
+ function GingerUserDomainExported(properties) {
76701
+ if (properties)
76702
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
76703
+ if (properties[keys[i]] != null)
76704
+ this[keys[i]] = properties[keys[i]];
76705
+ }
76706
+
76707
+ /**
76708
+ * GingerUserDomainExported gingerUserId.
76709
+ * @member {string} gingerUserId
76710
+ * @memberof GingerUserDomainExported
76711
+ * @instance
76712
+ */
76713
+ GingerUserDomainExported.prototype.gingerUserId = "";
76714
+
76715
+ /**
76716
+ * GingerUserDomainExported headspaceUserId.
76717
+ * @member {string} headspaceUserId
76718
+ * @memberof GingerUserDomainExported
76719
+ * @instance
76720
+ */
76721
+ GingerUserDomainExported.prototype.headspaceUserId = "";
76722
+
76723
+ /**
76724
+ * GingerUserDomainExported fusionUpgradedAt.
76725
+ * @member {number|Long} fusionUpgradedAt
76726
+ * @memberof GingerUserDomainExported
76727
+ * @instance
76728
+ */
76729
+ GingerUserDomainExported.prototype.fusionUpgradedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
76730
+
76731
+ /**
76732
+ * GingerUserDomainExported status.
76733
+ * @member {GingerUserDomainStatus} status
76734
+ * @memberof GingerUserDomainExported
76735
+ * @instance
76736
+ */
76737
+ GingerUserDomainExported.prototype.status = 0;
76738
+
76739
+ /**
76740
+ * GingerUserDomainExported hasCompletedOnboarding.
76741
+ * @member {boolean} hasCompletedOnboarding
76742
+ * @memberof GingerUserDomainExported
76743
+ * @instance
76744
+ */
76745
+ GingerUserDomainExported.prototype.hasCompletedOnboarding = false;
76746
+
76747
+ /**
76748
+ * GingerUserDomainExported organizationalUnitId.
76749
+ * @member {number|Long} organizationalUnitId
76750
+ * @memberof GingerUserDomainExported
76751
+ * @instance
76752
+ */
76753
+ GingerUserDomainExported.prototype.organizationalUnitId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
76754
+
76755
+ /**
76756
+ * GingerUserDomainExported isStaff.
76757
+ * @member {boolean} isStaff
76758
+ * @memberof GingerUserDomainExported
76759
+ * @instance
76760
+ */
76761
+ GingerUserDomainExported.prototype.isStaff = false;
76762
+
76763
+ /**
76764
+ * GingerUserDomainExported registeredAt.
76765
+ * @member {number|Long} registeredAt
76766
+ * @memberof GingerUserDomainExported
76767
+ * @instance
76768
+ */
76769
+ GingerUserDomainExported.prototype.registeredAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
76770
+
76771
+ /**
76772
+ * Creates a new GingerUserDomainExported instance using the specified properties.
76773
+ * @function create
76774
+ * @memberof GingerUserDomainExported
76775
+ * @static
76776
+ * @param {IGingerUserDomainExported=} [properties] Properties to set
76777
+ * @returns {GingerUserDomainExported} GingerUserDomainExported instance
76778
+ */
76779
+ GingerUserDomainExported.create = function create(properties) {
76780
+ return new GingerUserDomainExported(properties);
76781
+ };
76782
+
76783
+ /**
76784
+ * Encodes the specified GingerUserDomainExported message. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
76785
+ * @function encode
76786
+ * @memberof GingerUserDomainExported
76787
+ * @static
76788
+ * @param {IGingerUserDomainExported} message GingerUserDomainExported message or plain object to encode
76789
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76790
+ * @returns {$protobuf.Writer} Writer
76791
+ */
76792
+ GingerUserDomainExported.encode = function encode(message, writer) {
76793
+ if (!writer)
76794
+ writer = $Writer.create();
76795
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
76796
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.gingerUserId);
76797
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
76798
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.headspaceUserId);
76799
+ if (message.fusionUpgradedAt != null && message.hasOwnProperty("fusionUpgradedAt"))
76800
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.fusionUpgradedAt);
76801
+ if (message.status != null && message.hasOwnProperty("status"))
76802
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status);
76803
+ if (message.hasCompletedOnboarding != null && message.hasOwnProperty("hasCompletedOnboarding"))
76804
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasCompletedOnboarding);
76805
+ if (message.organizationalUnitId != null && message.hasOwnProperty("organizationalUnitId"))
76806
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.organizationalUnitId);
76807
+ if (message.isStaff != null && message.hasOwnProperty("isStaff"))
76808
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isStaff);
76809
+ if (message.registeredAt != null && message.hasOwnProperty("registeredAt"))
76810
+ writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.registeredAt);
76811
+ return writer;
76812
+ };
76813
+
76814
+ /**
76815
+ * Encodes the specified GingerUserDomainExported message, length delimited. Does not implicitly {@link GingerUserDomainExported.verify|verify} messages.
76816
+ * @function encodeDelimited
76817
+ * @memberof GingerUserDomainExported
76818
+ * @static
76819
+ * @param {IGingerUserDomainExported} message GingerUserDomainExported message or plain object to encode
76820
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76821
+ * @returns {$protobuf.Writer} Writer
76822
+ */
76823
+ GingerUserDomainExported.encodeDelimited = function encodeDelimited(message, writer) {
76824
+ return this.encode(message, writer).ldelim();
76825
+ };
76826
+
76827
+ /**
76828
+ * Decodes a GingerUserDomainExported message from the specified reader or buffer.
76829
+ * @function decode
76830
+ * @memberof GingerUserDomainExported
76831
+ * @static
76832
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76833
+ * @param {number} [length] Message length if known beforehand
76834
+ * @returns {GingerUserDomainExported} GingerUserDomainExported
76835
+ * @throws {Error} If the payload is not a reader or valid buffer
76836
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76837
+ */
76838
+ GingerUserDomainExported.decode = function decode(reader, length) {
76839
+ if (!(reader instanceof $Reader))
76840
+ reader = $Reader.create(reader);
76841
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerUserDomainExported();
76842
+ while (reader.pos < end) {
76843
+ var tag = reader.uint32();
76844
+ switch (tag >>> 3) {
76845
+ case 1:
76846
+ message.gingerUserId = reader.string();
76847
+ break;
76848
+ case 2:
76849
+ message.headspaceUserId = reader.string();
76850
+ break;
76851
+ case 3:
76852
+ message.fusionUpgradedAt = reader.uint64();
76853
+ break;
76854
+ case 4:
76855
+ message.status = reader.int32();
76856
+ break;
76857
+ case 5:
76858
+ message.hasCompletedOnboarding = reader.bool();
76859
+ break;
76860
+ case 6:
76861
+ message.organizationalUnitId = reader.uint64();
76862
+ break;
76863
+ case 7:
76864
+ message.isStaff = reader.bool();
76865
+ break;
76866
+ case 8:
76867
+ message.registeredAt = reader.uint64();
76868
+ break;
76869
+ default:
76870
+ reader.skipType(tag & 7);
76871
+ break;
76872
+ }
76873
+ }
76874
+ return message;
76875
+ };
76876
+
76877
+ /**
76878
+ * Decodes a GingerUserDomainExported message from the specified reader or buffer, length delimited.
76879
+ * @function decodeDelimited
76880
+ * @memberof GingerUserDomainExported
76881
+ * @static
76882
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76883
+ * @returns {GingerUserDomainExported} GingerUserDomainExported
76884
+ * @throws {Error} If the payload is not a reader or valid buffer
76885
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76886
+ */
76887
+ GingerUserDomainExported.decodeDelimited = function decodeDelimited(reader) {
76888
+ if (!(reader instanceof $Reader))
76889
+ reader = new $Reader(reader);
76890
+ return this.decode(reader, reader.uint32());
76891
+ };
76892
+
76893
+ /**
76894
+ * Verifies a GingerUserDomainExported message.
76895
+ * @function verify
76896
+ * @memberof GingerUserDomainExported
76897
+ * @static
76898
+ * @param {Object.<string,*>} message Plain object to verify
76899
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76900
+ */
76901
+ GingerUserDomainExported.verify = function verify(message) {
76902
+ if (typeof message !== "object" || message === null)
76903
+ return "object expected";
76904
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
76905
+ if (!$util.isString(message.gingerUserId))
76906
+ return "gingerUserId: string expected";
76907
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
76908
+ if (!$util.isString(message.headspaceUserId))
76909
+ return "headspaceUserId: string expected";
76910
+ if (message.fusionUpgradedAt != null && message.hasOwnProperty("fusionUpgradedAt"))
76911
+ if (!$util.isInteger(message.fusionUpgradedAt) && !(message.fusionUpgradedAt && $util.isInteger(message.fusionUpgradedAt.low) && $util.isInteger(message.fusionUpgradedAt.high)))
76912
+ return "fusionUpgradedAt: integer|Long expected";
76913
+ if (message.status != null && message.hasOwnProperty("status"))
76914
+ switch (message.status) {
76915
+ default:
76916
+ return "status: enum value expected";
76917
+ case 0:
76918
+ case 1:
76919
+ case 2:
76920
+ case 3:
76921
+ break;
76922
+ }
76923
+ if (message.hasCompletedOnboarding != null && message.hasOwnProperty("hasCompletedOnboarding"))
76924
+ if (typeof message.hasCompletedOnboarding !== "boolean")
76925
+ return "hasCompletedOnboarding: boolean expected";
76926
+ if (message.organizationalUnitId != null && message.hasOwnProperty("organizationalUnitId"))
76927
+ if (!$util.isInteger(message.organizationalUnitId) && !(message.organizationalUnitId && $util.isInteger(message.organizationalUnitId.low) && $util.isInteger(message.organizationalUnitId.high)))
76928
+ return "organizationalUnitId: integer|Long expected";
76929
+ if (message.isStaff != null && message.hasOwnProperty("isStaff"))
76930
+ if (typeof message.isStaff !== "boolean")
76931
+ return "isStaff: boolean expected";
76932
+ if (message.registeredAt != null && message.hasOwnProperty("registeredAt"))
76933
+ if (!$util.isInteger(message.registeredAt) && !(message.registeredAt && $util.isInteger(message.registeredAt.low) && $util.isInteger(message.registeredAt.high)))
76934
+ return "registeredAt: integer|Long expected";
76935
+ return null;
76936
+ };
76937
+
76938
+ /**
76939
+ * Creates a GingerUserDomainExported message from a plain object. Also converts values to their respective internal types.
76940
+ * @function fromObject
76941
+ * @memberof GingerUserDomainExported
76942
+ * @static
76943
+ * @param {Object.<string,*>} object Plain object
76944
+ * @returns {GingerUserDomainExported} GingerUserDomainExported
76945
+ */
76946
+ GingerUserDomainExported.fromObject = function fromObject(object) {
76947
+ if (object instanceof $root.GingerUserDomainExported)
76948
+ return object;
76949
+ var message = new $root.GingerUserDomainExported();
76950
+ if (object.gingerUserId != null)
76951
+ message.gingerUserId = String(object.gingerUserId);
76952
+ if (object.headspaceUserId != null)
76953
+ message.headspaceUserId = String(object.headspaceUserId);
76954
+ if (object.fusionUpgradedAt != null)
76955
+ if ($util.Long)
76956
+ (message.fusionUpgradedAt = $util.Long.fromValue(object.fusionUpgradedAt)).unsigned = true;
76957
+ else if (typeof object.fusionUpgradedAt === "string")
76958
+ message.fusionUpgradedAt = parseInt(object.fusionUpgradedAt, 10);
76959
+ else if (typeof object.fusionUpgradedAt === "number")
76960
+ message.fusionUpgradedAt = object.fusionUpgradedAt;
76961
+ else if (typeof object.fusionUpgradedAt === "object")
76962
+ message.fusionUpgradedAt = new $util.LongBits(object.fusionUpgradedAt.low >>> 0, object.fusionUpgradedAt.high >>> 0).toNumber(true);
76963
+ switch (object.status) {
76964
+ case "GINGER_USER_DOMAIN_STATUS_UNKNOWN":
76965
+ case 0:
76966
+ message.status = 0;
76967
+ break;
76968
+ case "GINGER_USER_DOMAIN_STATUS_ACTIVE":
76969
+ case 1:
76970
+ message.status = 1;
76971
+ break;
76972
+ case "GINGER_USER_DOMAIN_STATUS_PENDING":
76973
+ case 2:
76974
+ message.status = 2;
76975
+ break;
76976
+ case "GINGER_USER_DOMAIN_STATUS_DEACTIVATED":
76977
+ case 3:
76978
+ message.status = 3;
76979
+ break;
76980
+ }
76981
+ if (object.hasCompletedOnboarding != null)
76982
+ message.hasCompletedOnboarding = Boolean(object.hasCompletedOnboarding);
76983
+ if (object.organizationalUnitId != null)
76984
+ if ($util.Long)
76985
+ (message.organizationalUnitId = $util.Long.fromValue(object.organizationalUnitId)).unsigned = true;
76986
+ else if (typeof object.organizationalUnitId === "string")
76987
+ message.organizationalUnitId = parseInt(object.organizationalUnitId, 10);
76988
+ else if (typeof object.organizationalUnitId === "number")
76989
+ message.organizationalUnitId = object.organizationalUnitId;
76990
+ else if (typeof object.organizationalUnitId === "object")
76991
+ message.organizationalUnitId = new $util.LongBits(object.organizationalUnitId.low >>> 0, object.organizationalUnitId.high >>> 0).toNumber(true);
76992
+ if (object.isStaff != null)
76993
+ message.isStaff = Boolean(object.isStaff);
76994
+ if (object.registeredAt != null)
76995
+ if ($util.Long)
76996
+ (message.registeredAt = $util.Long.fromValue(object.registeredAt)).unsigned = true;
76997
+ else if (typeof object.registeredAt === "string")
76998
+ message.registeredAt = parseInt(object.registeredAt, 10);
76999
+ else if (typeof object.registeredAt === "number")
77000
+ message.registeredAt = object.registeredAt;
77001
+ else if (typeof object.registeredAt === "object")
77002
+ message.registeredAt = new $util.LongBits(object.registeredAt.low >>> 0, object.registeredAt.high >>> 0).toNumber(true);
77003
+ return message;
77004
+ };
77005
+
77006
+ /**
77007
+ * Creates a plain object from a GingerUserDomainExported message. Also converts values to other types if specified.
77008
+ * @function toObject
77009
+ * @memberof GingerUserDomainExported
77010
+ * @static
77011
+ * @param {GingerUserDomainExported} message GingerUserDomainExported
77012
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
77013
+ * @returns {Object.<string,*>} Plain object
77014
+ */
77015
+ GingerUserDomainExported.toObject = function toObject(message, options) {
77016
+ if (!options)
77017
+ options = {};
77018
+ var object = {};
77019
+ if (options.defaults) {
77020
+ object.gingerUserId = "";
77021
+ object.headspaceUserId = "";
77022
+ if ($util.Long) {
77023
+ var long = new $util.Long(0, 0, true);
77024
+ object.fusionUpgradedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
77025
+ } else
77026
+ object.fusionUpgradedAt = options.longs === String ? "0" : 0;
77027
+ object.status = options.enums === String ? "GINGER_USER_DOMAIN_STATUS_UNKNOWN" : 0;
77028
+ object.hasCompletedOnboarding = false;
77029
+ if ($util.Long) {
77030
+ var long = new $util.Long(0, 0, true);
77031
+ object.organizationalUnitId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
77032
+ } else
77033
+ object.organizationalUnitId = options.longs === String ? "0" : 0;
77034
+ object.isStaff = false;
77035
+ if ($util.Long) {
77036
+ var long = new $util.Long(0, 0, true);
77037
+ object.registeredAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
77038
+ } else
77039
+ object.registeredAt = options.longs === String ? "0" : 0;
77040
+ }
77041
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
77042
+ object.gingerUserId = message.gingerUserId;
77043
+ if (message.headspaceUserId != null && message.hasOwnProperty("headspaceUserId"))
77044
+ object.headspaceUserId = message.headspaceUserId;
77045
+ if (message.fusionUpgradedAt != null && message.hasOwnProperty("fusionUpgradedAt"))
77046
+ if (typeof message.fusionUpgradedAt === "number")
77047
+ object.fusionUpgradedAt = options.longs === String ? String(message.fusionUpgradedAt) : message.fusionUpgradedAt;
77048
+ else
77049
+ object.fusionUpgradedAt = options.longs === String ? $util.Long.prototype.toString.call(message.fusionUpgradedAt) : options.longs === Number ? new $util.LongBits(message.fusionUpgradedAt.low >>> 0, message.fusionUpgradedAt.high >>> 0).toNumber(true) : message.fusionUpgradedAt;
77050
+ if (message.status != null && message.hasOwnProperty("status"))
77051
+ object.status = options.enums === String ? $root.GingerUserDomainStatus[message.status] : message.status;
77052
+ if (message.hasCompletedOnboarding != null && message.hasOwnProperty("hasCompletedOnboarding"))
77053
+ object.hasCompletedOnboarding = message.hasCompletedOnboarding;
77054
+ if (message.organizationalUnitId != null && message.hasOwnProperty("organizationalUnitId"))
77055
+ if (typeof message.organizationalUnitId === "number")
77056
+ object.organizationalUnitId = options.longs === String ? String(message.organizationalUnitId) : message.organizationalUnitId;
77057
+ else
77058
+ object.organizationalUnitId = options.longs === String ? $util.Long.prototype.toString.call(message.organizationalUnitId) : options.longs === Number ? new $util.LongBits(message.organizationalUnitId.low >>> 0, message.organizationalUnitId.high >>> 0).toNumber(true) : message.organizationalUnitId;
77059
+ if (message.isStaff != null && message.hasOwnProperty("isStaff"))
77060
+ object.isStaff = message.isStaff;
77061
+ if (message.registeredAt != null && message.hasOwnProperty("registeredAt"))
77062
+ if (typeof message.registeredAt === "number")
77063
+ object.registeredAt = options.longs === String ? String(message.registeredAt) : message.registeredAt;
77064
+ else
77065
+ object.registeredAt = options.longs === String ? $util.Long.prototype.toString.call(message.registeredAt) : options.longs === Number ? new $util.LongBits(message.registeredAt.low >>> 0, message.registeredAt.high >>> 0).toNumber(true) : message.registeredAt;
77066
+ return object;
77067
+ };
77068
+
77069
+ /**
77070
+ * Converts this GingerUserDomainExported to JSON.
77071
+ * @function toJSON
77072
+ * @memberof GingerUserDomainExported
77073
+ * @instance
77074
+ * @returns {Object.<string,*>} JSON object
77075
+ */
77076
+ GingerUserDomainExported.prototype.toJSON = function toJSON() {
77077
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
77078
+ };
77079
+
77080
+ return GingerUserDomainExported;
77081
+ })();
77082
+
76658
77083
  $root.UserDomainCreated = (function() {
76659
77084
 
76660
77085
  /**
@@ -121179,6 +121604,334 @@ $root.ClinicalCoverageDeleted = (function() {
121179
121604
  return ClinicalCoverageDeleted;
121180
121605
  })();
121181
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
+
121182
121935
  $root.EapCoverageCreated = (function() {
121183
121936
 
121184
121937
  /**
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.677.0"
19
+ "version": "1.679.0"
20
20
  }