@headspace/protos-events 1.470.1-rc.5 → 1.471.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
@@ -30009,7 +30009,7 @@ export interface IEligibleUserAdded {
30009
30009
  b2bIsPilot?: (boolean|null);
30010
30010
 
30011
30011
  /** EligibleUserAdded b2bEnrollmentFlow */
30012
- b2bEnrollmentFlow?: (string|null);
30012
+ b2bEnrollmentFlow?: (EnrollmentFlow|null);
30013
30013
 
30014
30014
  /** EligibleUserAdded enrollmentUrl */
30015
30015
  enrollmentUrl?: (string|null);
@@ -30058,7 +30058,7 @@ export class EligibleUserAdded implements IEligibleUserAdded {
30058
30058
  public b2bIsPilot: boolean;
30059
30059
 
30060
30060
  /** EligibleUserAdded b2bEnrollmentFlow. */
30061
- public b2bEnrollmentFlow: string;
30061
+ public b2bEnrollmentFlow: EnrollmentFlow;
30062
30062
 
30063
30063
  /** EligibleUserAdded enrollmentUrl. */
30064
30064
  public enrollmentUrl: string;
@@ -30273,7 +30273,7 @@ export interface IEligibleUserAmended {
30273
30273
  b2bIsPilot?: (boolean|null);
30274
30274
 
30275
30275
  /** EligibleUserAmended b2bEnrollmentFlow */
30276
- b2bEnrollmentFlow?: (string|null);
30276
+ b2bEnrollmentFlow?: (EnrollmentFlow|null);
30277
30277
 
30278
30278
  /** EligibleUserAmended enrollmentUrl */
30279
30279
  enrollmentUrl?: (string|null);
@@ -30322,7 +30322,7 @@ export class EligibleUserAmended implements IEligibleUserAmended {
30322
30322
  public b2bIsPilot: boolean;
30323
30323
 
30324
30324
  /** EligibleUserAmended b2bEnrollmentFlow. */
30325
- public b2bEnrollmentFlow: string;
30325
+ public b2bEnrollmentFlow: EnrollmentFlow;
30326
30326
 
30327
30327
  /** EligibleUserAmended enrollmentUrl. */
30328
30328
  public enrollmentUrl: string;
@@ -32906,9 +32906,6 @@ export interface IFamilyMemberSynced {
32906
32906
  /** FamilyMemberSynced userId */
32907
32907
  userId?: (string|null);
32908
32908
 
32909
- /** FamilyMemberSynced ownerUserId */
32910
- ownerUserId?: (string|null);
32911
-
32912
32909
  /** FamilyMemberSynced userGroupId */
32913
32910
  userGroupId?: (number|null);
32914
32911
 
@@ -32919,7 +32916,7 @@ export interface IFamilyMemberSynced {
32919
32916
  orgId?: (number|null);
32920
32917
  }
32921
32918
 
32922
- /** Event published for each group member when a change (created, amended, ended) to the owner's subscription observed */
32919
+ /** Event published after a UserGroupEntry has it's `removedOn` field updated to match the user group's subscription. `removedOn` must be in the future */
32923
32920
  export class FamilyMemberSynced implements IFamilyMemberSynced {
32924
32921
 
32925
32922
  /**
@@ -32937,9 +32934,6 @@ export class FamilyMemberSynced implements IFamilyMemberSynced {
32937
32934
  /** FamilyMemberSynced userId. */
32938
32935
  public userId: string;
32939
32936
 
32940
- /** FamilyMemberSynced ownerUserId. */
32941
- public ownerUserId: string;
32942
-
32943
32937
  /** FamilyMemberSynced userGroupId. */
32944
32938
  public userGroupId: number;
32945
32939
 
@@ -34657,9 +34651,6 @@ export interface IEnterpriseUserEnrollmentCreated {
34657
34651
  /** EnterpriseUserEnrollmentCreated endsAt */
34658
34652
  endsAt?: (number|Long|null);
34659
34653
 
34660
- /** EnterpriseUserEnrollmentCreated previousEndsAt */
34661
- previousEndsAt?: (number|Long|null);
34662
-
34663
34654
  /** EnterpriseUserEnrollmentCreated timestamp */
34664
34655
  timestamp?: (number|Long|null);
34665
34656
 
@@ -34751,9 +34742,6 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
34751
34742
  /** EnterpriseUserEnrollmentCreated endsAt. */
34752
34743
  public endsAt: (number|Long);
34753
34744
 
34754
- /** EnterpriseUserEnrollmentCreated previousEndsAt. */
34755
- public previousEndsAt: (number|Long);
34756
-
34757
34745
  /** EnterpriseUserEnrollmentCreated timestamp. */
34758
34746
  public timestamp: (number|Long);
34759
34747
 
@@ -42750,9 +42738,6 @@ export interface ISubscriptionCreated {
42750
42738
  /** SubscriptionCreated endsAt */
42751
42739
  endsAt?: (number|Long|null);
42752
42740
 
42753
- /** SubscriptionCreated previousEndsAt */
42754
- previousEndsAt?: (number|Long|null);
42755
-
42756
42741
  /** SubscriptionCreated voucherCode */
42757
42742
  voucherCode?: (string|null);
42758
42743
 
@@ -42814,9 +42799,6 @@ export class SubscriptionCreated implements ISubscriptionCreated {
42814
42799
  /** SubscriptionCreated endsAt. */
42815
42800
  public endsAt: (number|Long);
42816
42801
 
42817
- /** SubscriptionCreated previousEndsAt. */
42818
- public previousEndsAt: (number|Long);
42819
-
42820
42802
  /** SubscriptionCreated voucherCode. */
42821
42803
  public voucherCode: string;
42822
42804
 
@@ -44409,9 +44391,6 @@ export interface ISubscriptionAmended {
44409
44391
  /** SubscriptionAmended endsAt */
44410
44392
  endsAt?: (number|Long|null);
44411
44393
 
44412
- /** SubscriptionAmended previousEndsAt */
44413
- previousEndsAt?: (number|Long|null);
44414
-
44415
44394
  /** SubscriptionAmended voucherCode */
44416
44395
  voucherCode?: (string|null);
44417
44396
 
@@ -44473,9 +44452,6 @@ export class SubscriptionAmended implements ISubscriptionAmended {
44473
44452
  /** SubscriptionAmended endsAt. */
44474
44453
  public endsAt: (number|Long);
44475
44454
 
44476
- /** SubscriptionAmended previousEndsAt. */
44477
- public previousEndsAt: (number|Long);
44478
-
44479
44455
  /** SubscriptionAmended voucherCode. */
44480
44456
  public voucherCode: string;
44481
44457
 
package/lib/index.js CHANGED
@@ -83168,7 +83168,7 @@ $root.EligibleUserAdded = (function() {
83168
83168
  * @property {string|null} [b2bOrgCampaignDisplayName] EligibleUserAdded b2bOrgCampaignDisplayName
83169
83169
  * @property {b2b.OrgMemberPlan|null} [b2bPlan] EligibleUserAdded b2bPlan
83170
83170
  * @property {boolean|null} [b2bIsPilot] EligibleUserAdded b2bIsPilot
83171
- * @property {string|null} [b2bEnrollmentFlow] EligibleUserAdded b2bEnrollmentFlow
83171
+ * @property {EnrollmentFlow|null} [b2bEnrollmentFlow] EligibleUserAdded b2bEnrollmentFlow
83172
83172
  * @property {string|null} [enrollmentUrl] EligibleUserAdded enrollmentUrl
83173
83173
  * @property {string|null} [b2bCustomFields] EligibleUserAdded b2bCustomFields
83174
83174
  * @property {number|Long|null} [timestamp] EligibleUserAdded timestamp
@@ -83263,11 +83263,11 @@ $root.EligibleUserAdded = (function() {
83263
83263
 
83264
83264
  /**
83265
83265
  * EligibleUserAdded b2bEnrollmentFlow.
83266
- * @member {string} b2bEnrollmentFlow
83266
+ * @member {EnrollmentFlow} b2bEnrollmentFlow
83267
83267
  * @memberof EligibleUserAdded
83268
83268
  * @instance
83269
83269
  */
83270
- EligibleUserAdded.prototype.b2bEnrollmentFlow = "";
83270
+ EligibleUserAdded.prototype.b2bEnrollmentFlow = 0;
83271
83271
 
83272
83272
  /**
83273
83273
  * EligibleUserAdded enrollmentUrl.
@@ -83336,7 +83336,7 @@ $root.EligibleUserAdded = (function() {
83336
83336
  if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
83337
83337
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.b2bIsPilot);
83338
83338
  if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
83339
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.b2bEnrollmentFlow);
83339
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.b2bEnrollmentFlow);
83340
83340
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
83341
83341
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.enrollmentUrl);
83342
83342
  if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
@@ -83405,7 +83405,7 @@ $root.EligibleUserAdded = (function() {
83405
83405
  message.b2bIsPilot = reader.bool();
83406
83406
  break;
83407
83407
  case 10:
83408
- message.b2bEnrollmentFlow = reader.string();
83408
+ message.b2bEnrollmentFlow = reader.int32();
83409
83409
  break;
83410
83410
  case 11:
83411
83411
  message.enrollmentUrl = reader.string();
@@ -83495,8 +83495,15 @@ $root.EligibleUserAdded = (function() {
83495
83495
  if (typeof message.b2bIsPilot !== "boolean")
83496
83496
  return "b2bIsPilot: boolean expected";
83497
83497
  if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
83498
- if (!$util.isString(message.b2bEnrollmentFlow))
83499
- return "b2bEnrollmentFlow: string expected";
83498
+ switch (message.b2bEnrollmentFlow) {
83499
+ default:
83500
+ return "b2bEnrollmentFlow: enum value expected";
83501
+ case 0:
83502
+ case 1:
83503
+ case 2:
83504
+ case 3:
83505
+ break;
83506
+ }
83500
83507
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
83501
83508
  if (!$util.isString(message.enrollmentUrl))
83502
83509
  return "enrollmentUrl: string expected";
@@ -83586,8 +83593,24 @@ $root.EligibleUserAdded = (function() {
83586
83593
  }
83587
83594
  if (object.b2bIsPilot != null)
83588
83595
  message.b2bIsPilot = Boolean(object.b2bIsPilot);
83589
- if (object.b2bEnrollmentFlow != null)
83590
- message.b2bEnrollmentFlow = String(object.b2bEnrollmentFlow);
83596
+ switch (object.b2bEnrollmentFlow) {
83597
+ case "ENROLLMENT_FLOW_UNKNOWN":
83598
+ case 0:
83599
+ message.b2bEnrollmentFlow = 0;
83600
+ break;
83601
+ case "ENROLLMENT_FLOW_HEADSPACE":
83602
+ case 1:
83603
+ message.b2bEnrollmentFlow = 1;
83604
+ break;
83605
+ case "ENROLLMENT_FLOW_CONNECTED":
83606
+ case 2:
83607
+ message.b2bEnrollmentFlow = 2;
83608
+ break;
83609
+ case "ENROLLMENT_FLOW_UMD":
83610
+ case 3:
83611
+ message.b2bEnrollmentFlow = 3;
83612
+ break;
83613
+ }
83591
83614
  if (object.enrollmentUrl != null)
83592
83615
  message.enrollmentUrl = String(object.enrollmentUrl);
83593
83616
  if (object.b2bCustomFields != null)
@@ -83631,7 +83654,7 @@ $root.EligibleUserAdded = (function() {
83631
83654
  object.b2bOrgCampaignDisplayName = "";
83632
83655
  object.b2bPlan = options.enums === String ? "ORGPLAN_UNKNOWN" : 0;
83633
83656
  object.b2bIsPilot = false;
83634
- object.b2bEnrollmentFlow = "";
83657
+ object.b2bEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
83635
83658
  object.enrollmentUrl = "";
83636
83659
  object.b2bCustomFields = "";
83637
83660
  if ($util.Long) {
@@ -83662,7 +83685,7 @@ $root.EligibleUserAdded = (function() {
83662
83685
  if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
83663
83686
  object.b2bIsPilot = message.b2bIsPilot;
83664
83687
  if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
83665
- object.b2bEnrollmentFlow = message.b2bEnrollmentFlow;
83688
+ object.b2bEnrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.b2bEnrollmentFlow] : message.b2bEnrollmentFlow;
83666
83689
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
83667
83690
  object.enrollmentUrl = message.enrollmentUrl;
83668
83691
  if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
@@ -83964,7 +83987,7 @@ $root.EligibleUserAmended = (function() {
83964
83987
  * @property {string|null} [b2bOrgCampaignDisplayName] EligibleUserAmended b2bOrgCampaignDisplayName
83965
83988
  * @property {b2b.OrgMemberPlan|null} [b2bPlan] EligibleUserAmended b2bPlan
83966
83989
  * @property {boolean|null} [b2bIsPilot] EligibleUserAmended b2bIsPilot
83967
- * @property {string|null} [b2bEnrollmentFlow] EligibleUserAmended b2bEnrollmentFlow
83990
+ * @property {EnrollmentFlow|null} [b2bEnrollmentFlow] EligibleUserAmended b2bEnrollmentFlow
83968
83991
  * @property {string|null} [enrollmentUrl] EligibleUserAmended enrollmentUrl
83969
83992
  * @property {string|null} [b2bCustomFields] EligibleUserAmended b2bCustomFields
83970
83993
  * @property {number|Long|null} [timestamp] EligibleUserAmended timestamp
@@ -84059,11 +84082,11 @@ $root.EligibleUserAmended = (function() {
84059
84082
 
84060
84083
  /**
84061
84084
  * EligibleUserAmended b2bEnrollmentFlow.
84062
- * @member {string} b2bEnrollmentFlow
84085
+ * @member {EnrollmentFlow} b2bEnrollmentFlow
84063
84086
  * @memberof EligibleUserAmended
84064
84087
  * @instance
84065
84088
  */
84066
- EligibleUserAmended.prototype.b2bEnrollmentFlow = "";
84089
+ EligibleUserAmended.prototype.b2bEnrollmentFlow = 0;
84067
84090
 
84068
84091
  /**
84069
84092
  * EligibleUserAmended enrollmentUrl.
@@ -84132,7 +84155,7 @@ $root.EligibleUserAmended = (function() {
84132
84155
  if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
84133
84156
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.b2bIsPilot);
84134
84157
  if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
84135
- writer.uint32(/* id 10, wireType 2 =*/82).string(message.b2bEnrollmentFlow);
84158
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.b2bEnrollmentFlow);
84136
84159
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
84137
84160
  writer.uint32(/* id 11, wireType 2 =*/90).string(message.enrollmentUrl);
84138
84161
  if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
@@ -84201,7 +84224,7 @@ $root.EligibleUserAmended = (function() {
84201
84224
  message.b2bIsPilot = reader.bool();
84202
84225
  break;
84203
84226
  case 10:
84204
- message.b2bEnrollmentFlow = reader.string();
84227
+ message.b2bEnrollmentFlow = reader.int32();
84205
84228
  break;
84206
84229
  case 11:
84207
84230
  message.enrollmentUrl = reader.string();
@@ -84291,8 +84314,15 @@ $root.EligibleUserAmended = (function() {
84291
84314
  if (typeof message.b2bIsPilot !== "boolean")
84292
84315
  return "b2bIsPilot: boolean expected";
84293
84316
  if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
84294
- if (!$util.isString(message.b2bEnrollmentFlow))
84295
- return "b2bEnrollmentFlow: string expected";
84317
+ switch (message.b2bEnrollmentFlow) {
84318
+ default:
84319
+ return "b2bEnrollmentFlow: enum value expected";
84320
+ case 0:
84321
+ case 1:
84322
+ case 2:
84323
+ case 3:
84324
+ break;
84325
+ }
84296
84326
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
84297
84327
  if (!$util.isString(message.enrollmentUrl))
84298
84328
  return "enrollmentUrl: string expected";
@@ -84382,8 +84412,24 @@ $root.EligibleUserAmended = (function() {
84382
84412
  }
84383
84413
  if (object.b2bIsPilot != null)
84384
84414
  message.b2bIsPilot = Boolean(object.b2bIsPilot);
84385
- if (object.b2bEnrollmentFlow != null)
84386
- message.b2bEnrollmentFlow = String(object.b2bEnrollmentFlow);
84415
+ switch (object.b2bEnrollmentFlow) {
84416
+ case "ENROLLMENT_FLOW_UNKNOWN":
84417
+ case 0:
84418
+ message.b2bEnrollmentFlow = 0;
84419
+ break;
84420
+ case "ENROLLMENT_FLOW_HEADSPACE":
84421
+ case 1:
84422
+ message.b2bEnrollmentFlow = 1;
84423
+ break;
84424
+ case "ENROLLMENT_FLOW_CONNECTED":
84425
+ case 2:
84426
+ message.b2bEnrollmentFlow = 2;
84427
+ break;
84428
+ case "ENROLLMENT_FLOW_UMD":
84429
+ case 3:
84430
+ message.b2bEnrollmentFlow = 3;
84431
+ break;
84432
+ }
84387
84433
  if (object.enrollmentUrl != null)
84388
84434
  message.enrollmentUrl = String(object.enrollmentUrl);
84389
84435
  if (object.b2bCustomFields != null)
@@ -84427,7 +84473,7 @@ $root.EligibleUserAmended = (function() {
84427
84473
  object.b2bOrgCampaignDisplayName = "";
84428
84474
  object.b2bPlan = options.enums === String ? "ORGPLAN_UNKNOWN" : 0;
84429
84475
  object.b2bIsPilot = false;
84430
- object.b2bEnrollmentFlow = "";
84476
+ object.b2bEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
84431
84477
  object.enrollmentUrl = "";
84432
84478
  object.b2bCustomFields = "";
84433
84479
  if ($util.Long) {
@@ -84458,7 +84504,7 @@ $root.EligibleUserAmended = (function() {
84458
84504
  if (message.b2bIsPilot != null && message.hasOwnProperty("b2bIsPilot"))
84459
84505
  object.b2bIsPilot = message.b2bIsPilot;
84460
84506
  if (message.b2bEnrollmentFlow != null && message.hasOwnProperty("b2bEnrollmentFlow"))
84461
- object.b2bEnrollmentFlow = message.b2bEnrollmentFlow;
84507
+ object.b2bEnrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.b2bEnrollmentFlow] : message.b2bEnrollmentFlow;
84462
84508
  if (message.enrollmentUrl != null && message.hasOwnProperty("enrollmentUrl"))
84463
84509
  object.enrollmentUrl = message.enrollmentUrl;
84464
84510
  if (message.b2bCustomFields != null && message.hasOwnProperty("b2bCustomFields"))
@@ -91371,7 +91417,6 @@ $root.FamilyMemberSynced = (function() {
91371
91417
  * @property {number|Long|null} [timestamp] FamilyMemberSynced timestamp
91372
91418
  * @property {number|null} [userGroupEntryId] FamilyMemberSynced userGroupEntryId
91373
91419
  * @property {string|null} [userId] FamilyMemberSynced userId
91374
- * @property {string|null} [ownerUserId] FamilyMemberSynced ownerUserId
91375
91420
  * @property {number|null} [userGroupId] FamilyMemberSynced userGroupId
91376
91421
  * @property {community.FamilyPlanRole|null} [role] FamilyMemberSynced role
91377
91422
  * @property {number|null} [orgId] FamilyMemberSynced orgId
@@ -91380,7 +91425,7 @@ $root.FamilyMemberSynced = (function() {
91380
91425
  /**
91381
91426
  * Constructs a new FamilyMemberSynced.
91382
91427
  * @name FamilyMemberSynced
91383
- * @classdesc Event published for each group member when a change (created, amended, ended) to the owner's subscription observed
91428
+ * @classdesc Event published after a UserGroupEntry has it's `removedOn` field updated to match the user group's subscription. `removedOn` must be in the future
91384
91429
  * @implements IFamilyMemberSynced
91385
91430
  * @constructor
91386
91431
  * @param {IFamilyMemberSynced=} [properties] Properties to set
@@ -91416,14 +91461,6 @@ $root.FamilyMemberSynced = (function() {
91416
91461
  */
91417
91462
  FamilyMemberSynced.prototype.userId = "";
91418
91463
 
91419
- /**
91420
- * FamilyMemberSynced ownerUserId.
91421
- * @member {string} ownerUserId
91422
- * @memberof FamilyMemberSynced
91423
- * @instance
91424
- */
91425
- FamilyMemberSynced.prototype.ownerUserId = "";
91426
-
91427
91464
  /**
91428
91465
  * FamilyMemberSynced userGroupId.
91429
91466
  * @member {number} userGroupId
@@ -91484,8 +91521,6 @@ $root.FamilyMemberSynced = (function() {
91484
91521
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.role);
91485
91522
  if (message.orgId != null && message.hasOwnProperty("orgId"))
91486
91523
  writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.orgId);
91487
- if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91488
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.ownerUserId);
91489
91524
  return writer;
91490
91525
  };
91491
91526
 
@@ -91529,9 +91564,6 @@ $root.FamilyMemberSynced = (function() {
91529
91564
  case 3:
91530
91565
  message.userId = reader.string();
91531
91566
  break;
91532
- case 7:
91533
- message.ownerUserId = reader.string();
91534
- break;
91535
91567
  case 4:
91536
91568
  message.userGroupId = reader.uint32();
91537
91569
  break;
@@ -91585,9 +91617,6 @@ $root.FamilyMemberSynced = (function() {
91585
91617
  if (message.userId != null && message.hasOwnProperty("userId"))
91586
91618
  if (!$util.isString(message.userId))
91587
91619
  return "userId: string expected";
91588
- if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91589
- if (!$util.isString(message.ownerUserId))
91590
- return "ownerUserId: string expected";
91591
91620
  if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
91592
91621
  if (!$util.isInteger(message.userGroupId))
91593
91622
  return "userGroupId: integer expected";
@@ -91631,8 +91660,6 @@ $root.FamilyMemberSynced = (function() {
91631
91660
  message.userGroupEntryId = object.userGroupEntryId >>> 0;
91632
91661
  if (object.userId != null)
91633
91662
  message.userId = String(object.userId);
91634
- if (object.ownerUserId != null)
91635
- message.ownerUserId = String(object.ownerUserId);
91636
91663
  if (object.userGroupId != null)
91637
91664
  message.userGroupId = object.userGroupId >>> 0;
91638
91665
  switch (object.role) {
@@ -91678,7 +91705,6 @@ $root.FamilyMemberSynced = (function() {
91678
91705
  object.userGroupId = 0;
91679
91706
  object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
91680
91707
  object.orgId = 0;
91681
- object.ownerUserId = "";
91682
91708
  }
91683
91709
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
91684
91710
  if (typeof message.timestamp === "number")
@@ -91695,8 +91721,6 @@ $root.FamilyMemberSynced = (function() {
91695
91721
  object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
91696
91722
  if (message.orgId != null && message.hasOwnProperty("orgId"))
91697
91723
  object.orgId = message.orgId;
91698
- if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91699
- object.ownerUserId = message.ownerUserId;
91700
91724
  return object;
91701
91725
  };
91702
91726
 
@@ -96297,7 +96321,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96297
96321
  * @property {b2b.OrgType|null} [orgType] EnterpriseUserEnrollmentCreated orgType
96298
96322
  * @property {number|Long|null} [startsAt] EnterpriseUserEnrollmentCreated startsAt
96299
96323
  * @property {number|Long|null} [endsAt] EnterpriseUserEnrollmentCreated endsAt
96300
- * @property {number|Long|null} [previousEndsAt] EnterpriseUserEnrollmentCreated previousEndsAt
96301
96324
  * @property {number|Long|null} [timestamp] EnterpriseUserEnrollmentCreated timestamp
96302
96325
  * @property {boolean|null} [isPartialPay] EnterpriseUserEnrollmentCreated isPartialPay
96303
96326
  * @property {b2b.OrgMemberPlan|null} [plan] EnterpriseUserEnrollmentCreated plan
@@ -96384,14 +96407,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96384
96407
  */
96385
96408
  EnterpriseUserEnrollmentCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
96386
96409
 
96387
- /**
96388
- * EnterpriseUserEnrollmentCreated previousEndsAt.
96389
- * @member {number|Long} previousEndsAt
96390
- * @memberof EnterpriseUserEnrollmentCreated
96391
- * @instance
96392
- */
96393
- EnterpriseUserEnrollmentCreated.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
96394
-
96395
96410
  /**
96396
96411
  * EnterpriseUserEnrollmentCreated timestamp.
96397
96412
  * @member {number|Long} timestamp
@@ -96638,8 +96653,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96638
96653
  writer.uint32(/* id 30, wireType 2 =*/242).string(message.ssoType);
96639
96654
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
96640
96655
  writer.uint32(/* id 31, wireType 0 =*/248).int32(message.enrollmentFlow);
96641
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
96642
- writer.uint32(/* id 32, wireType 0 =*/256).uint64(message.previousEndsAt);
96643
96656
  return writer;
96644
96657
  };
96645
96658
 
@@ -96692,9 +96705,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96692
96705
  case 6:
96693
96706
  message.endsAt = reader.uint64();
96694
96707
  break;
96695
- case 32:
96696
- message.previousEndsAt = reader.uint64();
96697
- break;
96698
96708
  case 7:
96699
96709
  message.timestamp = reader.uint64();
96700
96710
  break;
@@ -96821,9 +96831,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96821
96831
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
96822
96832
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
96823
96833
  return "endsAt: integer|Long expected";
96824
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
96825
- if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
96826
- return "previousEndsAt: integer|Long expected";
96827
96834
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
96828
96835
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
96829
96836
  return "timestamp: integer|Long expected";
@@ -96975,15 +96982,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
96975
96982
  message.endsAt = object.endsAt;
96976
96983
  else if (typeof object.endsAt === "object")
96977
96984
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
96978
- if (object.previousEndsAt != null)
96979
- if ($util.Long)
96980
- (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
96981
- else if (typeof object.previousEndsAt === "string")
96982
- message.previousEndsAt = parseInt(object.previousEndsAt, 10);
96983
- else if (typeof object.previousEndsAt === "number")
96984
- message.previousEndsAt = object.previousEndsAt;
96985
- else if (typeof object.previousEndsAt === "object")
96986
- message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
96987
96985
  if (object.timestamp != null)
96988
96986
  if ($util.Long)
96989
96987
  (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
@@ -97151,11 +97149,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
97151
97149
  object.gingerBundlingEnabled = false;
97152
97150
  object.ssoType = "";
97153
97151
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
97154
- if ($util.Long) {
97155
- var long = new $util.Long(0, 0, true);
97156
- object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
97157
- } else
97158
- object.previousEndsAt = options.longs === String ? "0" : 0;
97159
97152
  }
97160
97153
  if (message.userId != null && message.hasOwnProperty("userId"))
97161
97154
  object.userId = message.userId;
@@ -97226,11 +97219,6 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
97226
97219
  object.ssoType = message.ssoType;
97227
97220
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
97228
97221
  object.enrollmentFlow = options.enums === String ? $root.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
97229
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
97230
- if (typeof message.previousEndsAt === "number")
97231
- object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
97232
- else
97233
- object.previousEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.previousEndsAt) : options.longs === Number ? new $util.LongBits(message.previousEndsAt.low >>> 0, message.previousEndsAt.high >>> 0).toNumber(true) : message.previousEndsAt;
97234
97222
  return object;
97235
97223
  };
97236
97224
 
@@ -119785,7 +119773,6 @@ $root.SubscriptionCreated = (function() {
119785
119773
  * @property {number|Long|null} [createdAt] SubscriptionCreated createdAt
119786
119774
  * @property {number|Long|null} [startsAt] SubscriptionCreated startsAt
119787
119775
  * @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
119788
- * @property {number|Long|null} [previousEndsAt] SubscriptionCreated previousEndsAt
119789
119776
  * @property {string|null} [voucherCode] SubscriptionCreated voucherCode
119790
119777
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
119791
119778
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
@@ -119864,14 +119851,6 @@ $root.SubscriptionCreated = (function() {
119864
119851
  */
119865
119852
  SubscriptionCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
119866
119853
 
119867
- /**
119868
- * SubscriptionCreated previousEndsAt.
119869
- * @member {number|Long} previousEndsAt
119870
- * @memberof SubscriptionCreated
119871
- * @instance
119872
- */
119873
- SubscriptionCreated.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
119874
-
119875
119854
  /**
119876
119855
  * SubscriptionCreated voucherCode.
119877
119856
  * @member {string} voucherCode
@@ -120023,8 +120002,6 @@ $root.SubscriptionCreated = (function() {
120023
120002
  $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
120024
120003
  if (message.orgId != null && message.hasOwnProperty("orgId"))
120025
120004
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.orgId);
120026
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120027
- writer.uint32(/* id 18, wireType 0 =*/144).uint64(message.previousEndsAt);
120028
120005
  return writer;
120029
120006
  };
120030
120007
 
@@ -120077,9 +120054,6 @@ $root.SubscriptionCreated = (function() {
120077
120054
  case 6:
120078
120055
  message.endsAt = reader.uint64();
120079
120056
  break;
120080
- case 18:
120081
- message.previousEndsAt = reader.uint64();
120082
- break;
120083
120057
  case 7:
120084
120058
  message.voucherCode = reader.string();
120085
120059
  break;
@@ -120175,9 +120149,6 @@ $root.SubscriptionCreated = (function() {
120175
120149
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
120176
120150
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
120177
120151
  return "endsAt: integer|Long expected";
120178
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120179
- if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
120180
- return "previousEndsAt: integer|Long expected";
120181
120152
  if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
120182
120153
  if (!$util.isString(message.voucherCode))
120183
120154
  return "voucherCode: string expected";
@@ -120315,15 +120286,6 @@ $root.SubscriptionCreated = (function() {
120315
120286
  message.endsAt = object.endsAt;
120316
120287
  else if (typeof object.endsAt === "object")
120317
120288
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
120318
- if (object.previousEndsAt != null)
120319
- if ($util.Long)
120320
- (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
120321
- else if (typeof object.previousEndsAt === "string")
120322
- message.previousEndsAt = parseInt(object.previousEndsAt, 10);
120323
- else if (typeof object.previousEndsAt === "number")
120324
- message.previousEndsAt = object.previousEndsAt;
120325
- else if (typeof object.previousEndsAt === "object")
120326
- message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
120327
120289
  if (object.voucherCode != null)
120328
120290
  message.voucherCode = String(object.voucherCode);
120329
120291
  switch (object.platform) {
@@ -120499,11 +120461,6 @@ $root.SubscriptionCreated = (function() {
120499
120461
  object.membership = options.enums === String ? "PRIMARY" : 0;
120500
120462
  object.productSku = null;
120501
120463
  object.orgId = 0;
120502
- if ($util.Long) {
120503
- var long = new $util.Long(0, 0, true);
120504
- object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
120505
- } else
120506
- object.previousEndsAt = options.longs === String ? "0" : 0;
120507
120464
  }
120508
120465
  if (message.id != null && message.hasOwnProperty("id"))
120509
120466
  object.id = message.id;
@@ -120557,11 +120514,6 @@ $root.SubscriptionCreated = (function() {
120557
120514
  object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
120558
120515
  if (message.orgId != null && message.hasOwnProperty("orgId"))
120559
120516
  object.orgId = message.orgId;
120560
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
120561
- if (typeof message.previousEndsAt === "number")
120562
- object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
120563
- else
120564
- object.previousEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.previousEndsAt) : options.longs === Number ? new $util.LongBits(message.previousEndsAt.low >>> 0, message.previousEndsAt.high >>> 0).toNumber(true) : message.previousEndsAt;
120565
120517
  return object;
120566
120518
  };
120567
120519
 
@@ -126313,7 +126265,6 @@ $root.SubscriptionAmended = (function() {
126313
126265
  * @property {number|Long|null} [createdAt] SubscriptionAmended createdAt
126314
126266
  * @property {number|Long|null} [startsAt] SubscriptionAmended startsAt
126315
126267
  * @property {number|Long|null} [endsAt] SubscriptionAmended endsAt
126316
- * @property {number|Long|null} [previousEndsAt] SubscriptionAmended previousEndsAt
126317
126268
  * @property {string|null} [voucherCode] SubscriptionAmended voucherCode
126318
126269
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionAmended platform
126319
126270
  * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionAmended autoRenewalStatus
@@ -126385,14 +126336,6 @@ $root.SubscriptionAmended = (function() {
126385
126336
  */
126386
126337
  SubscriptionAmended.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
126387
126338
 
126388
- /**
126389
- * SubscriptionAmended previousEndsAt.
126390
- * @member {number|Long} previousEndsAt
126391
- * @memberof SubscriptionAmended
126392
- * @instance
126393
- */
126394
- SubscriptionAmended.prototype.previousEndsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
126395
-
126396
126339
  /**
126397
126340
  * SubscriptionAmended voucherCode.
126398
126341
  * @member {string} voucherCode
@@ -126552,8 +126495,6 @@ $root.SubscriptionAmended = (function() {
126552
126495
  $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
126553
126496
  if (message.orgId != null && message.hasOwnProperty("orgId"))
126554
126497
  writer.uint32(/* id 18, wireType 0 =*/144).int32(message.orgId);
126555
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
126556
- writer.uint32(/* id 19, wireType 0 =*/152).uint64(message.previousEndsAt);
126557
126498
  return writer;
126558
126499
  };
126559
126500
 
@@ -126603,9 +126544,6 @@ $root.SubscriptionAmended = (function() {
126603
126544
  case 6:
126604
126545
  message.endsAt = reader.uint64();
126605
126546
  break;
126606
- case 19:
126607
- message.previousEndsAt = reader.uint64();
126608
- break;
126609
126547
  case 7:
126610
126548
  message.voucherCode = reader.string();
126611
126549
  break;
@@ -126701,9 +126639,6 @@ $root.SubscriptionAmended = (function() {
126701
126639
  if (message.endsAt != null && message.hasOwnProperty("endsAt"))
126702
126640
  if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
126703
126641
  return "endsAt: integer|Long expected";
126704
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
126705
- if (!$util.isInteger(message.previousEndsAt) && !(message.previousEndsAt && $util.isInteger(message.previousEndsAt.low) && $util.isInteger(message.previousEndsAt.high)))
126706
- return "previousEndsAt: integer|Long expected";
126707
126642
  if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
126708
126643
  if (!$util.isString(message.voucherCode))
126709
126644
  return "voucherCode: string expected";
@@ -126842,15 +126777,6 @@ $root.SubscriptionAmended = (function() {
126842
126777
  message.endsAt = object.endsAt;
126843
126778
  else if (typeof object.endsAt === "object")
126844
126779
  message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
126845
- if (object.previousEndsAt != null)
126846
- if ($util.Long)
126847
- (message.previousEndsAt = $util.Long.fromValue(object.previousEndsAt)).unsigned = true;
126848
- else if (typeof object.previousEndsAt === "string")
126849
- message.previousEndsAt = parseInt(object.previousEndsAt, 10);
126850
- else if (typeof object.previousEndsAt === "number")
126851
- message.previousEndsAt = object.previousEndsAt;
126852
- else if (typeof object.previousEndsAt === "object")
126853
- message.previousEndsAt = new $util.LongBits(object.previousEndsAt.low >>> 0, object.previousEndsAt.high >>> 0).toNumber(true);
126854
126780
  if (object.voucherCode != null)
126855
126781
  message.voucherCode = String(object.voucherCode);
126856
126782
  switch (object.platform) {
@@ -127039,11 +126965,6 @@ $root.SubscriptionAmended = (function() {
127039
126965
  object.membership = options.enums === String ? "PRIMARY" : 0;
127040
126966
  object.productSku = null;
127041
126967
  object.orgId = 0;
127042
- if ($util.Long) {
127043
- var long = new $util.Long(0, 0, true);
127044
- object.previousEndsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
127045
- } else
127046
- object.previousEndsAt = options.longs === String ? "0" : 0;
127047
126968
  }
127048
126969
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
127049
126970
  if (typeof message.updatedOn === "number")
@@ -127100,11 +127021,6 @@ $root.SubscriptionAmended = (function() {
127100
127021
  object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
127101
127022
  if (message.orgId != null && message.hasOwnProperty("orgId"))
127102
127023
  object.orgId = message.orgId;
127103
- if (message.previousEndsAt != null && message.hasOwnProperty("previousEndsAt"))
127104
- if (typeof message.previousEndsAt === "number")
127105
- object.previousEndsAt = options.longs === String ? String(message.previousEndsAt) : message.previousEndsAt;
127106
- else
127107
- object.previousEndsAt = options.longs === String ? $util.Long.prototype.toString.call(message.previousEndsAt) : options.longs === Number ? new $util.LongBits(message.previousEndsAt.low >>> 0, message.previousEndsAt.high >>> 0).toNumber(true) : message.previousEndsAt;
127108
127024
  return object;
127109
127025
  };
127110
127026
 
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.470.1-rc.5"
19
+ "version": "1.471.0"
20
20
  }