@headspace/protos-events 1.642.0 → 1.643.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 +20 -0
- package/lib/index.js +46 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -55222,6 +55222,16 @@ export interface IGingerMemberUpgraded {
|
|
|
55222
55222
|
* For all other organizations and flows, eligibility is linked during enrollment
|
|
55223
55223
|
*/
|
|
55224
55224
|
hsEligibilityRecordUuid?: (string|null);
|
|
55225
|
+
|
|
55226
|
+
/**
|
|
55227
|
+
* [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
|
|
55228
|
+
* populated with the most recent RenewableBenefitCycleSubscription.start_date
|
|
55229
|
+
* indicating the start of their current active subscription
|
|
55230
|
+
* This value will replace the default value of OrgMember.activeSince when the member is upgraded
|
|
55231
|
+
* (in millis since epoch UTC)
|
|
55232
|
+
* This field is NOT to be confused with first_enrolled_at
|
|
55233
|
+
*/
|
|
55234
|
+
legacyCycleStartDate?: (number|Long|null);
|
|
55225
55235
|
}
|
|
55226
55236
|
|
|
55227
55237
|
/**
|
|
@@ -55283,6 +55293,16 @@ export class GingerMemberUpgraded implements IGingerMemberUpgraded {
|
|
|
55283
55293
|
*/
|
|
55284
55294
|
public hsEligibilityRecordUuid: string;
|
|
55285
55295
|
|
|
55296
|
+
/**
|
|
55297
|
+
* [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
|
|
55298
|
+
* populated with the most recent RenewableBenefitCycleSubscription.start_date
|
|
55299
|
+
* indicating the start of their current active subscription
|
|
55300
|
+
* This value will replace the default value of OrgMember.activeSince when the member is upgraded
|
|
55301
|
+
* (in millis since epoch UTC)
|
|
55302
|
+
* This field is NOT to be confused with first_enrolled_at
|
|
55303
|
+
*/
|
|
55304
|
+
public legacyCycleStartDate: (number|Long);
|
|
55305
|
+
|
|
55286
55306
|
/**
|
|
55287
55307
|
* Creates a new GingerMemberUpgraded instance using the specified properties.
|
|
55288
55308
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -154001,6 +154001,12 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154001
154001
|
* @property {string|null} [hsEligibilityRecordUuid] [Optional] The uuid of the user's EligibilityRecord, not to be confused with legacy EligibilityRecord in Ginger web
|
|
154002
154002
|
* Expect this field to be populated only when migrating KP National legacy Headspace care members to Fusion
|
|
154003
154003
|
* For all other organizations and flows, eligibility is linked during enrollment
|
|
154004
|
+
* @property {number|Long|null} [legacyCycleStartDate] [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
|
|
154005
|
+
* populated with the most recent RenewableBenefitCycleSubscription.start_date
|
|
154006
|
+
* indicating the start of their current active subscription
|
|
154007
|
+
* This value will replace the default value of OrgMember.activeSince when the member is upgraded
|
|
154008
|
+
* (in millis since epoch UTC)
|
|
154009
|
+
* This field is NOT to be confused with first_enrolled_at
|
|
154004
154010
|
*/
|
|
154005
154011
|
|
|
154006
154012
|
/**
|
|
@@ -154134,6 +154140,19 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154134
154140
|
*/
|
|
154135
154141
|
GingerMemberUpgraded.prototype.hsEligibilityRecordUuid = "";
|
|
154136
154142
|
|
|
154143
|
+
/**
|
|
154144
|
+
* [Optional] If the member is an active enrolled KP National legacy Headspace care member, this field will be
|
|
154145
|
+
* populated with the most recent RenewableBenefitCycleSubscription.start_date
|
|
154146
|
+
* indicating the start of their current active subscription
|
|
154147
|
+
* This value will replace the default value of OrgMember.activeSince when the member is upgraded
|
|
154148
|
+
* (in millis since epoch UTC)
|
|
154149
|
+
* This field is NOT to be confused with first_enrolled_at
|
|
154150
|
+
* @member {number|Long} legacyCycleStartDate
|
|
154151
|
+
* @memberof GingerMemberUpgraded
|
|
154152
|
+
* @instance
|
|
154153
|
+
*/
|
|
154154
|
+
GingerMemberUpgraded.prototype.legacyCycleStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
154155
|
+
|
|
154137
154156
|
/**
|
|
154138
154157
|
* Creates a new GingerMemberUpgraded instance using the specified properties.
|
|
154139
154158
|
* @function create
|
|
@@ -154186,6 +154205,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154186
154205
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.gracePeriodEndDate);
|
|
154187
154206
|
if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
|
|
154188
154207
|
writer.uint32(/* id 14, wireType 2 =*/114).string(message.hsEligibilityRecordUuid);
|
|
154208
|
+
if (message.legacyCycleStartDate != null && message.hasOwnProperty("legacyCycleStartDate"))
|
|
154209
|
+
writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.legacyCycleStartDate);
|
|
154189
154210
|
return writer;
|
|
154190
154211
|
};
|
|
154191
154212
|
|
|
@@ -154262,6 +154283,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154262
154283
|
case 14:
|
|
154263
154284
|
message.hsEligibilityRecordUuid = reader.string();
|
|
154264
154285
|
break;
|
|
154286
|
+
case 15:
|
|
154287
|
+
message.legacyCycleStartDate = reader.uint64();
|
|
154288
|
+
break;
|
|
154265
154289
|
default:
|
|
154266
154290
|
reader.skipType(tag & 7);
|
|
154267
154291
|
break;
|
|
@@ -154357,6 +154381,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154357
154381
|
if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
|
|
154358
154382
|
if (!$util.isString(message.hsEligibilityRecordUuid))
|
|
154359
154383
|
return "hsEligibilityRecordUuid: string expected";
|
|
154384
|
+
if (message.legacyCycleStartDate != null && message.hasOwnProperty("legacyCycleStartDate"))
|
|
154385
|
+
if (!$util.isInteger(message.legacyCycleStartDate) && !(message.legacyCycleStartDate && $util.isInteger(message.legacyCycleStartDate.low) && $util.isInteger(message.legacyCycleStartDate.high)))
|
|
154386
|
+
return "legacyCycleStartDate: integer|Long expected";
|
|
154360
154387
|
return null;
|
|
154361
154388
|
};
|
|
154362
154389
|
|
|
@@ -154462,6 +154489,15 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154462
154489
|
message.gracePeriodEndDate = new $util.LongBits(object.gracePeriodEndDate.low >>> 0, object.gracePeriodEndDate.high >>> 0).toNumber(true);
|
|
154463
154490
|
if (object.hsEligibilityRecordUuid != null)
|
|
154464
154491
|
message.hsEligibilityRecordUuid = String(object.hsEligibilityRecordUuid);
|
|
154492
|
+
if (object.legacyCycleStartDate != null)
|
|
154493
|
+
if ($util.Long)
|
|
154494
|
+
(message.legacyCycleStartDate = $util.Long.fromValue(object.legacyCycleStartDate)).unsigned = true;
|
|
154495
|
+
else if (typeof object.legacyCycleStartDate === "string")
|
|
154496
|
+
message.legacyCycleStartDate = parseInt(object.legacyCycleStartDate, 10);
|
|
154497
|
+
else if (typeof object.legacyCycleStartDate === "number")
|
|
154498
|
+
message.legacyCycleStartDate = object.legacyCycleStartDate;
|
|
154499
|
+
else if (typeof object.legacyCycleStartDate === "object")
|
|
154500
|
+
message.legacyCycleStartDate = new $util.LongBits(object.legacyCycleStartDate.low >>> 0, object.legacyCycleStartDate.high >>> 0).toNumber(true);
|
|
154465
154501
|
return message;
|
|
154466
154502
|
};
|
|
154467
154503
|
|
|
@@ -154501,6 +154537,11 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154501
154537
|
} else
|
|
154502
154538
|
object.gracePeriodEndDate = options.longs === String ? "0" : 0;
|
|
154503
154539
|
object.hsEligibilityRecordUuid = "";
|
|
154540
|
+
if ($util.Long) {
|
|
154541
|
+
var long = new $util.Long(0, 0, true);
|
|
154542
|
+
object.legacyCycleStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
154543
|
+
} else
|
|
154544
|
+
object.legacyCycleStartDate = options.longs === String ? "0" : 0;
|
|
154504
154545
|
}
|
|
154505
154546
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
154506
154547
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -154536,6 +154577,11 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
154536
154577
|
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
154578
|
if (message.hsEligibilityRecordUuid != null && message.hasOwnProperty("hsEligibilityRecordUuid"))
|
|
154538
154579
|
object.hsEligibilityRecordUuid = message.hsEligibilityRecordUuid;
|
|
154580
|
+
if (message.legacyCycleStartDate != null && message.hasOwnProperty("legacyCycleStartDate"))
|
|
154581
|
+
if (typeof message.legacyCycleStartDate === "number")
|
|
154582
|
+
object.legacyCycleStartDate = options.longs === String ? String(message.legacyCycleStartDate) : message.legacyCycleStartDate;
|
|
154583
|
+
else
|
|
154584
|
+
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
154585
|
return object;
|
|
154540
154586
|
};
|
|
154541
154587
|
|
package/package.json
CHANGED