@headspace/protos-events 1.642.0 → 1.644.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
@@ -40236,6 +40236,145 @@ export class MemberDeactivationStarted implements IMemberDeactivationStarted {
40236
40236
  public toJSON(): { [k: string]: any };
40237
40237
  }
40238
40238
 
40239
+ /** CostShareType enum. */
40240
+ export enum CostShareType {
40241
+ COST_SHARE_TYPE_UNKNOWN = 0,
40242
+ COST_SHARE_TYPE_ESTIMATE = 1,
40243
+ COST_SHARE_TYPE_BILLED = 2
40244
+ }
40245
+
40246
+ /** Properties of a GingerClinicalAppointmentCostShareCreated. */
40247
+ export interface IGingerClinicalAppointmentCostShareCreated {
40248
+
40249
+ /** GingerClinicalAppointmentCostShareCreated appointmentId */
40250
+ appointmentId?: (number|null);
40251
+
40252
+ /** GingerClinicalAppointmentCostShareCreated gingerUserId */
40253
+ gingerUserId?: (number|null);
40254
+
40255
+ /** GingerClinicalAppointmentCostShareCreated hsUserId */
40256
+ hsUserId?: (string|null);
40257
+
40258
+ /** GingerClinicalAppointmentCostShareCreated clinicianId */
40259
+ clinicianId?: (string|null);
40260
+
40261
+ /** GingerClinicalAppointmentCostShareCreated createdAt */
40262
+ createdAt?: (number|Long|null);
40263
+
40264
+ /** GingerClinicalAppointmentCostShareCreated updatedAt */
40265
+ updatedAt?: (number|Long|null);
40266
+
40267
+ /** GingerClinicalAppointmentCostShareCreated centsValue */
40268
+ centsValue?: (number|Long|null);
40269
+
40270
+ /** GingerClinicalAppointmentCostShareCreated type */
40271
+ type?: (CostShareType|null);
40272
+ }
40273
+
40274
+ /** Represents a GingerClinicalAppointmentCostShareCreated. */
40275
+ export class GingerClinicalAppointmentCostShareCreated implements IGingerClinicalAppointmentCostShareCreated {
40276
+
40277
+ /**
40278
+ * Constructs a new GingerClinicalAppointmentCostShareCreated.
40279
+ * @param [properties] Properties to set
40280
+ */
40281
+ constructor(properties?: IGingerClinicalAppointmentCostShareCreated);
40282
+
40283
+ /** GingerClinicalAppointmentCostShareCreated appointmentId. */
40284
+ public appointmentId: number;
40285
+
40286
+ /** GingerClinicalAppointmentCostShareCreated gingerUserId. */
40287
+ public gingerUserId: number;
40288
+
40289
+ /** GingerClinicalAppointmentCostShareCreated hsUserId. */
40290
+ public hsUserId: string;
40291
+
40292
+ /** GingerClinicalAppointmentCostShareCreated clinicianId. */
40293
+ public clinicianId: string;
40294
+
40295
+ /** GingerClinicalAppointmentCostShareCreated createdAt. */
40296
+ public createdAt: (number|Long);
40297
+
40298
+ /** GingerClinicalAppointmentCostShareCreated updatedAt. */
40299
+ public updatedAt: (number|Long);
40300
+
40301
+ /** GingerClinicalAppointmentCostShareCreated centsValue. */
40302
+ public centsValue: (number|Long);
40303
+
40304
+ /** GingerClinicalAppointmentCostShareCreated type. */
40305
+ public type: CostShareType;
40306
+
40307
+ /**
40308
+ * Creates a new GingerClinicalAppointmentCostShareCreated instance using the specified properties.
40309
+ * @param [properties] Properties to set
40310
+ * @returns GingerClinicalAppointmentCostShareCreated instance
40311
+ */
40312
+ public static create(properties?: IGingerClinicalAppointmentCostShareCreated): GingerClinicalAppointmentCostShareCreated;
40313
+
40314
+ /**
40315
+ * Encodes the specified GingerClinicalAppointmentCostShareCreated message. Does not implicitly {@link GingerClinicalAppointmentCostShareCreated.verify|verify} messages.
40316
+ * @param message GingerClinicalAppointmentCostShareCreated message or plain object to encode
40317
+ * @param [writer] Writer to encode to
40318
+ * @returns Writer
40319
+ */
40320
+ public static encode(message: IGingerClinicalAppointmentCostShareCreated, writer?: $protobuf.Writer): $protobuf.Writer;
40321
+
40322
+ /**
40323
+ * Encodes the specified GingerClinicalAppointmentCostShareCreated message, length delimited. Does not implicitly {@link GingerClinicalAppointmentCostShareCreated.verify|verify} messages.
40324
+ * @param message GingerClinicalAppointmentCostShareCreated message or plain object to encode
40325
+ * @param [writer] Writer to encode to
40326
+ * @returns Writer
40327
+ */
40328
+ public static encodeDelimited(message: IGingerClinicalAppointmentCostShareCreated, writer?: $protobuf.Writer): $protobuf.Writer;
40329
+
40330
+ /**
40331
+ * Decodes a GingerClinicalAppointmentCostShareCreated message from the specified reader or buffer.
40332
+ * @param reader Reader or buffer to decode from
40333
+ * @param [length] Message length if known beforehand
40334
+ * @returns GingerClinicalAppointmentCostShareCreated
40335
+ * @throws {Error} If the payload is not a reader or valid buffer
40336
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40337
+ */
40338
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GingerClinicalAppointmentCostShareCreated;
40339
+
40340
+ /**
40341
+ * Decodes a GingerClinicalAppointmentCostShareCreated message from the specified reader or buffer, length delimited.
40342
+ * @param reader Reader or buffer to decode from
40343
+ * @returns GingerClinicalAppointmentCostShareCreated
40344
+ * @throws {Error} If the payload is not a reader or valid buffer
40345
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
40346
+ */
40347
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GingerClinicalAppointmentCostShareCreated;
40348
+
40349
+ /**
40350
+ * Verifies a GingerClinicalAppointmentCostShareCreated message.
40351
+ * @param message Plain object to verify
40352
+ * @returns `null` if valid, otherwise the reason why it is not
40353
+ */
40354
+ public static verify(message: { [k: string]: any }): (string|null);
40355
+
40356
+ /**
40357
+ * Creates a GingerClinicalAppointmentCostShareCreated message from a plain object. Also converts values to their respective internal types.
40358
+ * @param object Plain object
40359
+ * @returns GingerClinicalAppointmentCostShareCreated
40360
+ */
40361
+ public static fromObject(object: { [k: string]: any }): GingerClinicalAppointmentCostShareCreated;
40362
+
40363
+ /**
40364
+ * Creates a plain object from a GingerClinicalAppointmentCostShareCreated message. Also converts values to other types if specified.
40365
+ * @param message GingerClinicalAppointmentCostShareCreated
40366
+ * @param [options] Conversion options
40367
+ * @returns Plain object
40368
+ */
40369
+ public static toObject(message: GingerClinicalAppointmentCostShareCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
40370
+
40371
+ /**
40372
+ * Converts this GingerClinicalAppointmentCostShareCreated to JSON.
40373
+ * @returns JSON object
40374
+ */
40375
+ public toJSON(): { [k: string]: any };
40376
+ }
40377
+
40239
40378
  /** Properties of a ClinicalAvailabilityCreated. */
40240
40379
  export interface IClinicalAvailabilityCreated {
40241
40380
 
@@ -55222,6 +55361,16 @@ export interface IGingerMemberUpgraded {
55222
55361
  * For all other organizations and flows, eligibility is linked during enrollment
55223
55362
  */
55224
55363
  hsEligibilityRecordUuid?: (string|null);
55364
+
55365
+ /**
55366
+ * [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
55367
+ * populated with the most recent RenewableBenefitCycleSubscription.start_date
55368
+ * indicating the start of their current active subscription
55369
+ * This value will replace the default value of OrgMember.activeSince when the member is upgraded
55370
+ * (in millis since epoch UTC)
55371
+ * This field is NOT to be confused with first_enrolled_at
55372
+ */
55373
+ legacyCycleStartDate?: (number|Long|null);
55225
55374
  }
55226
55375
 
55227
55376
  /**
@@ -55283,6 +55432,16 @@ export class GingerMemberUpgraded implements IGingerMemberUpgraded {
55283
55432
  */
55284
55433
  public hsEligibilityRecordUuid: string;
55285
55434
 
55435
+ /**
55436
+ * [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
55437
+ * populated with the most recent RenewableBenefitCycleSubscription.start_date
55438
+ * indicating the start of their current active subscription
55439
+ * This value will replace the default value of OrgMember.activeSince when the member is upgraded
55440
+ * (in millis since epoch UTC)
55441
+ * This field is NOT to be confused with first_enrolled_at
55442
+ */
55443
+ public legacyCycleStartDate: (number|Long);
55444
+
55286
55445
  /**
55287
55446
  * Creates a new GingerMemberUpgraded instance using the specified properties.
55288
55447
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -110724,6 +110724,424 @@ $root.MemberDeactivationStarted = (function() {
110724
110724
  return MemberDeactivationStarted;
110725
110725
  })();
110726
110726
 
110727
+ /**
110728
+ * CostShareType enum.
110729
+ * @name CostShareType
110730
+ * @enum {string}
110731
+ * @property {number} COST_SHARE_TYPE_UNKNOWN=0 COST_SHARE_TYPE_UNKNOWN value
110732
+ * @property {number} COST_SHARE_TYPE_ESTIMATE=1 COST_SHARE_TYPE_ESTIMATE value
110733
+ * @property {number} COST_SHARE_TYPE_BILLED=2 COST_SHARE_TYPE_BILLED value
110734
+ */
110735
+ $root.CostShareType = (function() {
110736
+ var valuesById = {}, values = Object.create(valuesById);
110737
+ values[valuesById[0] = "COST_SHARE_TYPE_UNKNOWN"] = 0;
110738
+ values[valuesById[1] = "COST_SHARE_TYPE_ESTIMATE"] = 1;
110739
+ values[valuesById[2] = "COST_SHARE_TYPE_BILLED"] = 2;
110740
+ return values;
110741
+ })();
110742
+
110743
+ $root.GingerClinicalAppointmentCostShareCreated = (function() {
110744
+
110745
+ /**
110746
+ * Properties of a GingerClinicalAppointmentCostShareCreated.
110747
+ * @name IGingerClinicalAppointmentCostShareCreated
110748
+ * @interface IGingerClinicalAppointmentCostShareCreated
110749
+ * @property {number|null} [appointmentId] GingerClinicalAppointmentCostShareCreated appointmentId
110750
+ * @property {number|null} [gingerUserId] GingerClinicalAppointmentCostShareCreated gingerUserId
110751
+ * @property {string|null} [hsUserId] GingerClinicalAppointmentCostShareCreated hsUserId
110752
+ * @property {string|null} [clinicianId] GingerClinicalAppointmentCostShareCreated clinicianId
110753
+ * @property {number|Long|null} [createdAt] GingerClinicalAppointmentCostShareCreated createdAt
110754
+ * @property {number|Long|null} [updatedAt] GingerClinicalAppointmentCostShareCreated updatedAt
110755
+ * @property {number|Long|null} [centsValue] GingerClinicalAppointmentCostShareCreated centsValue
110756
+ * @property {CostShareType|null} [type] GingerClinicalAppointmentCostShareCreated type
110757
+ */
110758
+
110759
+ /**
110760
+ * Constructs a new GingerClinicalAppointmentCostShareCreated.
110761
+ * @name GingerClinicalAppointmentCostShareCreated
110762
+ * @classdesc Represents a GingerClinicalAppointmentCostShareCreated.
110763
+ * @implements IGingerClinicalAppointmentCostShareCreated
110764
+ * @constructor
110765
+ * @param {IGingerClinicalAppointmentCostShareCreated=} [properties] Properties to set
110766
+ */
110767
+ function GingerClinicalAppointmentCostShareCreated(properties) {
110768
+ if (properties)
110769
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
110770
+ if (properties[keys[i]] != null)
110771
+ this[keys[i]] = properties[keys[i]];
110772
+ }
110773
+
110774
+ /**
110775
+ * GingerClinicalAppointmentCostShareCreated appointmentId.
110776
+ * @member {number} appointmentId
110777
+ * @memberof GingerClinicalAppointmentCostShareCreated
110778
+ * @instance
110779
+ */
110780
+ GingerClinicalAppointmentCostShareCreated.prototype.appointmentId = 0;
110781
+
110782
+ /**
110783
+ * GingerClinicalAppointmentCostShareCreated gingerUserId.
110784
+ * @member {number} gingerUserId
110785
+ * @memberof GingerClinicalAppointmentCostShareCreated
110786
+ * @instance
110787
+ */
110788
+ GingerClinicalAppointmentCostShareCreated.prototype.gingerUserId = 0;
110789
+
110790
+ /**
110791
+ * GingerClinicalAppointmentCostShareCreated hsUserId.
110792
+ * @member {string} hsUserId
110793
+ * @memberof GingerClinicalAppointmentCostShareCreated
110794
+ * @instance
110795
+ */
110796
+ GingerClinicalAppointmentCostShareCreated.prototype.hsUserId = "";
110797
+
110798
+ /**
110799
+ * GingerClinicalAppointmentCostShareCreated clinicianId.
110800
+ * @member {string} clinicianId
110801
+ * @memberof GingerClinicalAppointmentCostShareCreated
110802
+ * @instance
110803
+ */
110804
+ GingerClinicalAppointmentCostShareCreated.prototype.clinicianId = "";
110805
+
110806
+ /**
110807
+ * GingerClinicalAppointmentCostShareCreated createdAt.
110808
+ * @member {number|Long} createdAt
110809
+ * @memberof GingerClinicalAppointmentCostShareCreated
110810
+ * @instance
110811
+ */
110812
+ GingerClinicalAppointmentCostShareCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
110813
+
110814
+ /**
110815
+ * GingerClinicalAppointmentCostShareCreated updatedAt.
110816
+ * @member {number|Long} updatedAt
110817
+ * @memberof GingerClinicalAppointmentCostShareCreated
110818
+ * @instance
110819
+ */
110820
+ GingerClinicalAppointmentCostShareCreated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
110821
+
110822
+ /**
110823
+ * GingerClinicalAppointmentCostShareCreated centsValue.
110824
+ * @member {number|Long} centsValue
110825
+ * @memberof GingerClinicalAppointmentCostShareCreated
110826
+ * @instance
110827
+ */
110828
+ GingerClinicalAppointmentCostShareCreated.prototype.centsValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
110829
+
110830
+ /**
110831
+ * GingerClinicalAppointmentCostShareCreated type.
110832
+ * @member {CostShareType} type
110833
+ * @memberof GingerClinicalAppointmentCostShareCreated
110834
+ * @instance
110835
+ */
110836
+ GingerClinicalAppointmentCostShareCreated.prototype.type = 0;
110837
+
110838
+ /**
110839
+ * Creates a new GingerClinicalAppointmentCostShareCreated instance using the specified properties.
110840
+ * @function create
110841
+ * @memberof GingerClinicalAppointmentCostShareCreated
110842
+ * @static
110843
+ * @param {IGingerClinicalAppointmentCostShareCreated=} [properties] Properties to set
110844
+ * @returns {GingerClinicalAppointmentCostShareCreated} GingerClinicalAppointmentCostShareCreated instance
110845
+ */
110846
+ GingerClinicalAppointmentCostShareCreated.create = function create(properties) {
110847
+ return new GingerClinicalAppointmentCostShareCreated(properties);
110848
+ };
110849
+
110850
+ /**
110851
+ * Encodes the specified GingerClinicalAppointmentCostShareCreated message. Does not implicitly {@link GingerClinicalAppointmentCostShareCreated.verify|verify} messages.
110852
+ * @function encode
110853
+ * @memberof GingerClinicalAppointmentCostShareCreated
110854
+ * @static
110855
+ * @param {IGingerClinicalAppointmentCostShareCreated} message GingerClinicalAppointmentCostShareCreated message or plain object to encode
110856
+ * @param {$protobuf.Writer} [writer] Writer to encode to
110857
+ * @returns {$protobuf.Writer} Writer
110858
+ */
110859
+ GingerClinicalAppointmentCostShareCreated.encode = function encode(message, writer) {
110860
+ if (!writer)
110861
+ writer = $Writer.create();
110862
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
110863
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.appointmentId);
110864
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
110865
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
110866
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
110867
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.hsUserId);
110868
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
110869
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.clinicianId);
110870
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
110871
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
110872
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
110873
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
110874
+ if (message.centsValue != null && message.hasOwnProperty("centsValue"))
110875
+ writer.uint32(/* id 7, wireType 0 =*/56).int64(message.centsValue);
110876
+ if (message.type != null && message.hasOwnProperty("type"))
110877
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.type);
110878
+ return writer;
110879
+ };
110880
+
110881
+ /**
110882
+ * Encodes the specified GingerClinicalAppointmentCostShareCreated message, length delimited. Does not implicitly {@link GingerClinicalAppointmentCostShareCreated.verify|verify} messages.
110883
+ * @function encodeDelimited
110884
+ * @memberof GingerClinicalAppointmentCostShareCreated
110885
+ * @static
110886
+ * @param {IGingerClinicalAppointmentCostShareCreated} message GingerClinicalAppointmentCostShareCreated message or plain object to encode
110887
+ * @param {$protobuf.Writer} [writer] Writer to encode to
110888
+ * @returns {$protobuf.Writer} Writer
110889
+ */
110890
+ GingerClinicalAppointmentCostShareCreated.encodeDelimited = function encodeDelimited(message, writer) {
110891
+ return this.encode(message, writer).ldelim();
110892
+ };
110893
+
110894
+ /**
110895
+ * Decodes a GingerClinicalAppointmentCostShareCreated message from the specified reader or buffer.
110896
+ * @function decode
110897
+ * @memberof GingerClinicalAppointmentCostShareCreated
110898
+ * @static
110899
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
110900
+ * @param {number} [length] Message length if known beforehand
110901
+ * @returns {GingerClinicalAppointmentCostShareCreated} GingerClinicalAppointmentCostShareCreated
110902
+ * @throws {Error} If the payload is not a reader or valid buffer
110903
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
110904
+ */
110905
+ GingerClinicalAppointmentCostShareCreated.decode = function decode(reader, length) {
110906
+ if (!(reader instanceof $Reader))
110907
+ reader = $Reader.create(reader);
110908
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GingerClinicalAppointmentCostShareCreated();
110909
+ while (reader.pos < end) {
110910
+ var tag = reader.uint32();
110911
+ switch (tag >>> 3) {
110912
+ case 1:
110913
+ message.appointmentId = reader.uint32();
110914
+ break;
110915
+ case 2:
110916
+ message.gingerUserId = reader.uint32();
110917
+ break;
110918
+ case 3:
110919
+ message.hsUserId = reader.string();
110920
+ break;
110921
+ case 4:
110922
+ message.clinicianId = reader.string();
110923
+ break;
110924
+ case 5:
110925
+ message.createdAt = reader.uint64();
110926
+ break;
110927
+ case 6:
110928
+ message.updatedAt = reader.uint64();
110929
+ break;
110930
+ case 7:
110931
+ message.centsValue = reader.int64();
110932
+ break;
110933
+ case 8:
110934
+ message.type = reader.int32();
110935
+ break;
110936
+ default:
110937
+ reader.skipType(tag & 7);
110938
+ break;
110939
+ }
110940
+ }
110941
+ return message;
110942
+ };
110943
+
110944
+ /**
110945
+ * Decodes a GingerClinicalAppointmentCostShareCreated message from the specified reader or buffer, length delimited.
110946
+ * @function decodeDelimited
110947
+ * @memberof GingerClinicalAppointmentCostShareCreated
110948
+ * @static
110949
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
110950
+ * @returns {GingerClinicalAppointmentCostShareCreated} GingerClinicalAppointmentCostShareCreated
110951
+ * @throws {Error} If the payload is not a reader or valid buffer
110952
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
110953
+ */
110954
+ GingerClinicalAppointmentCostShareCreated.decodeDelimited = function decodeDelimited(reader) {
110955
+ if (!(reader instanceof $Reader))
110956
+ reader = new $Reader(reader);
110957
+ return this.decode(reader, reader.uint32());
110958
+ };
110959
+
110960
+ /**
110961
+ * Verifies a GingerClinicalAppointmentCostShareCreated message.
110962
+ * @function verify
110963
+ * @memberof GingerClinicalAppointmentCostShareCreated
110964
+ * @static
110965
+ * @param {Object.<string,*>} message Plain object to verify
110966
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
110967
+ */
110968
+ GingerClinicalAppointmentCostShareCreated.verify = function verify(message) {
110969
+ if (typeof message !== "object" || message === null)
110970
+ return "object expected";
110971
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
110972
+ if (!$util.isInteger(message.appointmentId))
110973
+ return "appointmentId: integer expected";
110974
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
110975
+ if (!$util.isInteger(message.gingerUserId))
110976
+ return "gingerUserId: integer expected";
110977
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
110978
+ if (!$util.isString(message.hsUserId))
110979
+ return "hsUserId: string expected";
110980
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
110981
+ if (!$util.isString(message.clinicianId))
110982
+ return "clinicianId: string expected";
110983
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
110984
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
110985
+ return "createdAt: integer|Long expected";
110986
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
110987
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
110988
+ return "updatedAt: integer|Long expected";
110989
+ if (message.centsValue != null && message.hasOwnProperty("centsValue"))
110990
+ if (!$util.isInteger(message.centsValue) && !(message.centsValue && $util.isInteger(message.centsValue.low) && $util.isInteger(message.centsValue.high)))
110991
+ return "centsValue: integer|Long expected";
110992
+ if (message.type != null && message.hasOwnProperty("type"))
110993
+ switch (message.type) {
110994
+ default:
110995
+ return "type: enum value expected";
110996
+ case 0:
110997
+ case 1:
110998
+ case 2:
110999
+ break;
111000
+ }
111001
+ return null;
111002
+ };
111003
+
111004
+ /**
111005
+ * Creates a GingerClinicalAppointmentCostShareCreated message from a plain object. Also converts values to their respective internal types.
111006
+ * @function fromObject
111007
+ * @memberof GingerClinicalAppointmentCostShareCreated
111008
+ * @static
111009
+ * @param {Object.<string,*>} object Plain object
111010
+ * @returns {GingerClinicalAppointmentCostShareCreated} GingerClinicalAppointmentCostShareCreated
111011
+ */
111012
+ GingerClinicalAppointmentCostShareCreated.fromObject = function fromObject(object) {
111013
+ if (object instanceof $root.GingerClinicalAppointmentCostShareCreated)
111014
+ return object;
111015
+ var message = new $root.GingerClinicalAppointmentCostShareCreated();
111016
+ if (object.appointmentId != null)
111017
+ message.appointmentId = object.appointmentId >>> 0;
111018
+ if (object.gingerUserId != null)
111019
+ message.gingerUserId = object.gingerUserId >>> 0;
111020
+ if (object.hsUserId != null)
111021
+ message.hsUserId = String(object.hsUserId);
111022
+ if (object.clinicianId != null)
111023
+ message.clinicianId = String(object.clinicianId);
111024
+ if (object.createdAt != null)
111025
+ if ($util.Long)
111026
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
111027
+ else if (typeof object.createdAt === "string")
111028
+ message.createdAt = parseInt(object.createdAt, 10);
111029
+ else if (typeof object.createdAt === "number")
111030
+ message.createdAt = object.createdAt;
111031
+ else if (typeof object.createdAt === "object")
111032
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
111033
+ if (object.updatedAt != null)
111034
+ if ($util.Long)
111035
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
111036
+ else if (typeof object.updatedAt === "string")
111037
+ message.updatedAt = parseInt(object.updatedAt, 10);
111038
+ else if (typeof object.updatedAt === "number")
111039
+ message.updatedAt = object.updatedAt;
111040
+ else if (typeof object.updatedAt === "object")
111041
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
111042
+ if (object.centsValue != null)
111043
+ if ($util.Long)
111044
+ (message.centsValue = $util.Long.fromValue(object.centsValue)).unsigned = false;
111045
+ else if (typeof object.centsValue === "string")
111046
+ message.centsValue = parseInt(object.centsValue, 10);
111047
+ else if (typeof object.centsValue === "number")
111048
+ message.centsValue = object.centsValue;
111049
+ else if (typeof object.centsValue === "object")
111050
+ message.centsValue = new $util.LongBits(object.centsValue.low >>> 0, object.centsValue.high >>> 0).toNumber();
111051
+ switch (object.type) {
111052
+ case "COST_SHARE_TYPE_UNKNOWN":
111053
+ case 0:
111054
+ message.type = 0;
111055
+ break;
111056
+ case "COST_SHARE_TYPE_ESTIMATE":
111057
+ case 1:
111058
+ message.type = 1;
111059
+ break;
111060
+ case "COST_SHARE_TYPE_BILLED":
111061
+ case 2:
111062
+ message.type = 2;
111063
+ break;
111064
+ }
111065
+ return message;
111066
+ };
111067
+
111068
+ /**
111069
+ * Creates a plain object from a GingerClinicalAppointmentCostShareCreated message. Also converts values to other types if specified.
111070
+ * @function toObject
111071
+ * @memberof GingerClinicalAppointmentCostShareCreated
111072
+ * @static
111073
+ * @param {GingerClinicalAppointmentCostShareCreated} message GingerClinicalAppointmentCostShareCreated
111074
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
111075
+ * @returns {Object.<string,*>} Plain object
111076
+ */
111077
+ GingerClinicalAppointmentCostShareCreated.toObject = function toObject(message, options) {
111078
+ if (!options)
111079
+ options = {};
111080
+ var object = {};
111081
+ if (options.defaults) {
111082
+ object.appointmentId = 0;
111083
+ object.gingerUserId = 0;
111084
+ object.hsUserId = "";
111085
+ object.clinicianId = "";
111086
+ if ($util.Long) {
111087
+ var long = new $util.Long(0, 0, true);
111088
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
111089
+ } else
111090
+ object.createdAt = options.longs === String ? "0" : 0;
111091
+ if ($util.Long) {
111092
+ var long = new $util.Long(0, 0, true);
111093
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
111094
+ } else
111095
+ object.updatedAt = options.longs === String ? "0" : 0;
111096
+ if ($util.Long) {
111097
+ var long = new $util.Long(0, 0, false);
111098
+ object.centsValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
111099
+ } else
111100
+ object.centsValue = options.longs === String ? "0" : 0;
111101
+ object.type = options.enums === String ? "COST_SHARE_TYPE_UNKNOWN" : 0;
111102
+ }
111103
+ if (message.appointmentId != null && message.hasOwnProperty("appointmentId"))
111104
+ object.appointmentId = message.appointmentId;
111105
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
111106
+ object.gingerUserId = message.gingerUserId;
111107
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
111108
+ object.hsUserId = message.hsUserId;
111109
+ if (message.clinicianId != null && message.hasOwnProperty("clinicianId"))
111110
+ object.clinicianId = message.clinicianId;
111111
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
111112
+ if (typeof message.createdAt === "number")
111113
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
111114
+ else
111115
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
111116
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
111117
+ if (typeof message.updatedAt === "number")
111118
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
111119
+ else
111120
+ 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;
111121
+ if (message.centsValue != null && message.hasOwnProperty("centsValue"))
111122
+ if (typeof message.centsValue === "number")
111123
+ object.centsValue = options.longs === String ? String(message.centsValue) : message.centsValue;
111124
+ else
111125
+ object.centsValue = options.longs === String ? $util.Long.prototype.toString.call(message.centsValue) : options.longs === Number ? new $util.LongBits(message.centsValue.low >>> 0, message.centsValue.high >>> 0).toNumber() : message.centsValue;
111126
+ if (message.type != null && message.hasOwnProperty("type"))
111127
+ object.type = options.enums === String ? $root.CostShareType[message.type] : message.type;
111128
+ return object;
111129
+ };
111130
+
111131
+ /**
111132
+ * Converts this GingerClinicalAppointmentCostShareCreated to JSON.
111133
+ * @function toJSON
111134
+ * @memberof GingerClinicalAppointmentCostShareCreated
111135
+ * @instance
111136
+ * @returns {Object.<string,*>} JSON object
111137
+ */
111138
+ GingerClinicalAppointmentCostShareCreated.prototype.toJSON = function toJSON() {
111139
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
111140
+ };
111141
+
111142
+ return GingerClinicalAppointmentCostShareCreated;
111143
+ })();
111144
+
110727
111145
  $root.ClinicalAvailabilityCreated = (function() {
110728
111146
 
110729
111147
  /**
@@ -154001,6 +154419,12 @@ $root.GingerMemberUpgraded = (function() {
154001
154419
  * @property {string|null} [hsEligibilityRecordUuid] [Optional] The uuid of the user's EligibilityRecord, not to be confused with legacy EligibilityRecord in Ginger web
154002
154420
  * Expect this field to be populated only when migrating KP National legacy Headspace care members to Fusion
154003
154421
  * For all other organizations and flows, eligibility is linked during enrollment
154422
+ * @property {number|Long|null} [legacyCycleStartDate] [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
154423
+ * populated with the most recent RenewableBenefitCycleSubscription.start_date
154424
+ * indicating the start of their current active subscription
154425
+ * This value will replace the default value of OrgMember.activeSince when the member is upgraded
154426
+ * (in millis since epoch UTC)
154427
+ * This field is NOT to be confused with first_enrolled_at
154004
154428
  */
154005
154429
 
154006
154430
  /**
@@ -154134,6 +154558,19 @@ $root.GingerMemberUpgraded = (function() {
154134
154558
  */
154135
154559
  GingerMemberUpgraded.prototype.hsEligibilityRecordUuid = "";
154136
154560
 
154561
+ /**
154562
+ * [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
154563
+ * populated with the most recent RenewableBenefitCycleSubscription.start_date
154564
+ * indicating the start of their current active subscription
154565
+ * This value will replace the default value of OrgMember.activeSince when the member is upgraded
154566
+ * (in millis since epoch UTC)
154567
+ * This field is NOT to be confused with first_enrolled_at
154568
+ * @member {number|Long} legacyCycleStartDate
154569
+ * @memberof GingerMemberUpgraded
154570
+ * @instance
154571
+ */
154572
+ GingerMemberUpgraded.prototype.legacyCycleStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
154573
+
154137
154574
  /**
154138
154575
  * Creates a new GingerMemberUpgraded instance using the specified properties.
154139
154576
  * @function create
@@ -154186,6 +154623,8 @@ $root.GingerMemberUpgraded = (function() {
154186
154623
  writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.gracePeriodEndDate);
154187
154624
  if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
154188
154625
  writer.uint32(/* id 14, wireType 2 =*/114).string(message.hsEligibilityRecordUuid);
154626
+ if (message.legacyCycleStartDate != null && message.hasOwnProperty("legacyCycleStartDate"))
154627
+ writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.legacyCycleStartDate);
154189
154628
  return writer;
154190
154629
  };
154191
154630
 
@@ -154262,6 +154701,9 @@ $root.GingerMemberUpgraded = (function() {
154262
154701
  case 14:
154263
154702
  message.hsEligibilityRecordUuid = reader.string();
154264
154703
  break;
154704
+ case 15:
154705
+ message.legacyCycleStartDate = reader.uint64();
154706
+ break;
154265
154707
  default:
154266
154708
  reader.skipType(tag & 7);
154267
154709
  break;
@@ -154357,6 +154799,9 @@ $root.GingerMemberUpgraded = (function() {
154357
154799
  if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
154358
154800
  if (!$util.isString(message.hsEligibilityRecordUuid))
154359
154801
  return "hsEligibilityRecordUuid: string expected";
154802
+ if (message.legacyCycleStartDate != null && message.hasOwnProperty("legacyCycleStartDate"))
154803
+ if (!$util.isInteger(message.legacyCycleStartDate) && !(message.legacyCycleStartDate && $util.isInteger(message.legacyCycleStartDate.low) && $util.isInteger(message.legacyCycleStartDate.high)))
154804
+ return "legacyCycleStartDate: integer|Long expected";
154360
154805
  return null;
154361
154806
  };
154362
154807
 
@@ -154462,6 +154907,15 @@ $root.GingerMemberUpgraded = (function() {
154462
154907
  message.gracePeriodEndDate = new $util.LongBits(object.gracePeriodEndDate.low >>> 0, object.gracePeriodEndDate.high >>> 0).toNumber(true);
154463
154908
  if (object.hsEligibilityRecordUuid != null)
154464
154909
  message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
154910
+ if (object.legacyCycleStartDate != null)
154911
+ if ($util.Long)
154912
+ (message.legacyCycleStartDate = $util.Long.fromValue(object.legacyCycleStartDate)).unsigned = true;
154913
+ else if (typeof object.legacyCycleStartDate === "string")
154914
+ message.legacyCycleStartDate = parseInt(object.legacyCycleStartDate, 10);
154915
+ else if (typeof object.legacyCycleStartDate === "number")
154916
+ message.legacyCycleStartDate = object.legacyCycleStartDate;
154917
+ else if (typeof object.legacyCycleStartDate === "object")
154918
+ message.legacyCycleStartDate = new $util.LongBits(object.legacyCycleStartDate.low >>> 0, object.legacyCycleStartDate.high >>> 0).toNumber(true);
154465
154919
  return message;
154466
154920
  };
154467
154921
 
@@ -154501,6 +154955,11 @@ $root.GingerMemberUpgraded = (function() {
154501
154955
  } else
154502
154956
  object.gracePeriodEndDate = options.longs === String ? "0" : 0;
154503
154957
  object.hsEligibilityRecordUuid = "";
154958
+ if ($util.Long) {
154959
+ var long = new $util.Long(0, 0, true);
154960
+ object.legacyCycleStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
154961
+ } else
154962
+ object.legacyCycleStartDate = options.longs === String ? "0" : 0;
154504
154963
  }
154505
154964
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
154506
154965
  object.headspaceHealthOrgId = message.headspaceHealthOrgId;
@@ -154536,6 +154995,11 @@ $root.GingerMemberUpgraded = (function() {
154536
154995
  object.gracePeriodEndDate = options.longs === String ? $util.Long.prototype.toString.call(message.gracePeriodEndDate) : options.longs === Number ? new $util.LongBits(message.gracePeriodEndDate.low >>> 0, message.gracePeriodEndDate.high >>> 0).toNumber(true) : message.gracePeriodEndDate;
154537
154996
  if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
154538
154997
  object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
154998
+ if (message.legacyCycleStartDate != null && message.hasOwnProperty("legacyCycleStartDate"))
154999
+ if (typeof message.legacyCycleStartDate === "number")
155000
+ object.legacyCycleStartDate = options.longs === String ? String(message.legacyCycleStartDate) : message.legacyCycleStartDate;
155001
+ else
155002
+ object.legacyCycleStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.legacyCycleStartDate) : options.longs === Number ? new $util.LongBits(message.legacyCycleStartDate.low >>> 0, message.legacyCycleStartDate.high >>> 0).toNumber(true) : message.legacyCycleStartDate;
154539
155003
  return object;
154540
155004
  };
154541
155005
 
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.642.0"
19
+ "version": "1.644.0"
20
20
  }