@headspace/protos-events 1.640.0 → 1.641.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
@@ -55214,6 +55214,13 @@ export interface IGingerMemberUpgraded {
55214
55214
 
55215
55215
  /** GingerMemberUpgraded gracePeriodEndDate */
55216
55216
  gracePeriodEndDate?: (number|Long|null);
55217
+
55218
+ /**
55219
+ * [Optional] The uuid of the user's EligibilityRecord, not to be confused with legacy EligibilityRecord in Ginger web
55220
+ * Expect this field to be populated only when migrating KP National legacy Headspace care members to Fusion
55221
+ * For all other organizations and flows, eligibility is linked during enrollment
55222
+ */
55223
+ hsEligibilityRecordUuid?: (string|null);
55217
55224
  }
55218
55225
 
55219
55226
  /**
@@ -55268,6 +55275,13 @@ export class GingerMemberUpgraded implements IGingerMemberUpgraded {
55268
55275
  /** GingerMemberUpgraded gracePeriodEndDate. */
55269
55276
  public gracePeriodEndDate: (number|Long);
55270
55277
 
55278
+ /**
55279
+ * [Optional] The uuid of the user's EligibilityRecord, not to be confused with legacy EligibilityRecord in Ginger web
55280
+ * Expect this field to be populated only when migrating KP National legacy Headspace care members to Fusion
55281
+ * For all other organizations and flows, eligibility is linked during enrollment
55282
+ */
55283
+ public hsEligibilityRecordUuid: string;
55284
+
55271
55285
  /**
55272
55286
  * Creates a new GingerMemberUpgraded instance using the specified properties.
55273
55287
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -153986,6 +153986,9 @@ $root.GingerMemberUpgraded = (function() {
153986
153986
  * @property {number|null} [b2bRootOrgId] GingerMemberUpgraded b2bRootOrgId
153987
153987
  * @property {number|Long|null} [firstEnrolledAt] GingerMemberUpgraded firstEnrolledAt
153988
153988
  * @property {number|Long|null} [gracePeriodEndDate] GingerMemberUpgraded gracePeriodEndDate
153989
+ * @property {string|null} [hsEligibilityRecordUuid] [Optional] The uuid of the user's EligibilityRecord, not to be confused with legacy EligibilityRecord in Ginger web
153990
+ * Expect this field to be populated only when migrating KP National legacy Headspace care members to Fusion
153991
+ * For all other organizations and flows, eligibility is linked during enrollment
153989
153992
  */
153990
153993
 
153991
153994
  /**
@@ -154109,6 +154112,16 @@ $root.GingerMemberUpgraded = (function() {
154109
154112
  */
154110
154113
  GingerMemberUpgraded.prototype.gracePeriodEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
154111
154114
 
154115
+ /**
154116
+ * [Optional] The uuid of the user's EligibilityRecord, not to be confused with legacy EligibilityRecord in Ginger web
154117
+ * Expect this field to be populated only when migrating KP National legacy Headspace care members to Fusion
154118
+ * For all other organizations and flows, eligibility is linked during enrollment
154119
+ * @member {string} hsEligibilityRecordUuid
154120
+ * @memberof GingerMemberUpgraded
154121
+ * @instance
154122
+ */
154123
+ GingerMemberUpgraded.prototype.hsEligibilityRecordUuid = "";
154124
+
154112
154125
  /**
154113
154126
  * Creates a new GingerMemberUpgraded instance using the specified properties.
154114
154127
  * @function create
@@ -154159,6 +154172,8 @@ $root.GingerMemberUpgraded = (function() {
154159
154172
  writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.firstEnrolledAt);
154160
154173
  if (message.gracePeriodEndDate != null && message.hasOwnProperty("gracePeriodEndDate"))
154161
154174
  writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.gracePeriodEndDate);
154175
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
154176
+ writer.uint32(/* id 14, wireType 2 =*/114).string(message.hsEligibilityRecordUuid);
154162
154177
  return writer;
154163
154178
  };
154164
154179
 
@@ -154232,6 +154247,9 @@ $root.GingerMemberUpgraded = (function() {
154232
154247
  case 13:
154233
154248
  message.gracePeriodEndDate = reader.uint64();
154234
154249
  break;
154250
+ case 14:
154251
+ message.hsEligibilityRecordUuid = reader.string();
154252
+ break;
154235
154253
  default:
154236
154254
  reader.skipType(tag & 7);
154237
154255
  break;
@@ -154324,6 +154342,9 @@ $root.GingerMemberUpgraded = (function() {
154324
154342
  if (message.gracePeriodEndDate != null && message.hasOwnProperty("gracePeriodEndDate"))
154325
154343
  if (!$util.isInteger(message.gracePeriodEndDate) && !(message.gracePeriodEndDate && $util.isInteger(message.gracePeriodEndDate.low) && $util.isInteger(message.gracePeriodEndDate.high)))
154326
154344
  return "gracePeriodEndDate: integer|Long expected";
154345
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
154346
+ if (!$util.isString(message.hsEligibilityRecordUuid))
154347
+ return "hsEligibilityRecordUuid: string expected";
154327
154348
  return null;
154328
154349
  };
154329
154350
 
@@ -154427,6 +154448,8 @@ $root.GingerMemberUpgraded = (function() {
154427
154448
  message.gracePeriodEndDate = object.gracePeriodEndDate;
154428
154449
  else if (typeof object.gracePeriodEndDate === "object")
154429
154450
  message.gracePeriodEndDate = new $util.LongBits(object.gracePeriodEndDate.low >>> 0, object.gracePeriodEndDate.high >>> 0).toNumber(true);
154451
+ if (object.hsEligibilityRecordUuid != null)
154452
+ message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
154430
154453
  return message;
154431
154454
  };
154432
154455
 
@@ -154465,6 +154488,7 @@ $root.GingerMemberUpgraded = (function() {
154465
154488
  object.gracePeriodEndDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
154466
154489
  } else
154467
154490
  object.gracePeriodEndDate = options.longs === String ? "0" : 0;
154491
+ object.hsEligibilityRecordUuid = "";
154468
154492
  }
154469
154493
  if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
154470
154494
  object.headspaceHealthOrgId = message.headspaceHealthOrgId;
@@ -154498,6 +154522,8 @@ $root.GingerMemberUpgraded = (function() {
154498
154522
  object.gracePeriodEndDate = options.longs === String ? String(message.gracePeriodEndDate) : message.gracePeriodEndDate;
154499
154523
  else
154500
154524
  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;
154525
+ if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
154526
+ object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
154501
154527
  return object;
154502
154528
  };
154503
154529
 
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.640.0"
19
+ "version": "1.641.0"
20
20
  }