@headspace/protos-events 1.184.0 → 1.186.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
@@ -3319,6 +3319,13 @@ export namespace b2b {
3319
3319
  REMOVAL_REASON_EXPIRATION = 3,
3320
3320
  REMOVAL_REASON_MERGE_ORGS = 4
3321
3321
  }
3322
+
3323
+ /** OrgMemberPlan enum. */
3324
+ enum OrgMemberPlan {
3325
+ ORGPLAN_UNKNOWN = 0,
3326
+ ORGPLAN_B2B = 1,
3327
+ ORGPLAN_B2B_FAMILY_PLAN = 2
3328
+ }
3322
3329
  }
3323
3330
 
3324
3331
  /** Namespace elf. */
@@ -10613,7 +10620,7 @@ export interface IContentfulSleepcastCreated {
10613
10620
  description?: ({ [k: string]: string }|null);
10614
10621
 
10615
10622
  /** ContentfulSleepcastCreated recipe */
10616
- recipe?: ({ [k: string]: contentful.ISlugReference }|null);
10623
+ recipe?: (contentful.ISlugReference|null);
10617
10624
 
10618
10625
  /** ContentfulSleepcastCreated tileBackgroundMedia */
10619
10626
  tileBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
@@ -10665,7 +10672,7 @@ export class ContentfulSleepcastCreated implements IContentfulSleepcastCreated {
10665
10672
  public description: { [k: string]: string };
10666
10673
 
10667
10674
  /** ContentfulSleepcastCreated recipe. */
10668
- public recipe: { [k: string]: contentful.ISlugReference };
10675
+ public recipe?: (contentful.ISlugReference|null);
10669
10676
 
10670
10677
  /** ContentfulSleepcastCreated tileBackgroundMedia. */
10671
10678
  public tileBackgroundMedia: { [k: string]: contentful.IIdReference };
@@ -10781,7 +10788,7 @@ export interface IContentfulSleepcastUpdated {
10781
10788
  description?: ({ [k: string]: string }|null);
10782
10789
 
10783
10790
  /** ContentfulSleepcastUpdated recipe */
10784
- recipe?: ({ [k: string]: contentful.ISlugReference }|null);
10791
+ recipe?: (contentful.ISlugReference|null);
10785
10792
 
10786
10793
  /** ContentfulSleepcastUpdated tileBackgroundMedia */
10787
10794
  tileBackgroundMedia?: ({ [k: string]: contentful.IIdReference }|null);
@@ -10833,7 +10840,7 @@ export class ContentfulSleepcastUpdated implements IContentfulSleepcastUpdated {
10833
10840
  public description: { [k: string]: string };
10834
10841
 
10835
10842
  /** ContentfulSleepcastUpdated recipe. */
10836
- public recipe: { [k: string]: contentful.ISlugReference };
10843
+ public recipe?: (contentful.ISlugReference|null);
10837
10844
 
10838
10845
  /** ContentfulSleepcastUpdated tileBackgroundMedia. */
10839
10846
  public tileBackgroundMedia: { [k: string]: contentful.IIdReference };
@@ -16411,6 +16418,9 @@ export interface IEnterpriseUserEnrollmentCreated {
16411
16418
 
16412
16419
  /** EnterpriseUserEnrollmentCreated isPartialPay */
16413
16420
  isPartialPay?: (boolean|null);
16421
+
16422
+ /** EnterpriseUserEnrollmentCreated plan */
16423
+ plan?: (b2b.OrgMemberPlan|null);
16414
16424
  }
16415
16425
 
16416
16426
  /** Represents an EnterpriseUserEnrollmentCreated. */
@@ -16446,6 +16456,9 @@ export class EnterpriseUserEnrollmentCreated implements IEnterpriseUserEnrollmen
16446
16456
  /** EnterpriseUserEnrollmentCreated isPartialPay. */
16447
16457
  public isPartialPay: boolean;
16448
16458
 
16459
+ /** EnterpriseUserEnrollmentCreated plan. */
16460
+ public plan: b2b.OrgMemberPlan;
16461
+
16449
16462
  /**
16450
16463
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
16451
16464
  * @param [properties] Properties to set
@@ -16546,6 +16559,9 @@ export interface IEnterpriseUserEnrollmentRemoved {
16546
16559
 
16547
16560
  /** EnterpriseUserEnrollmentRemoved isPartialPay */
16548
16561
  isPartialPay?: (boolean|null);
16562
+
16563
+ /** EnterpriseUserEnrollmentRemoved plan */
16564
+ plan?: (b2b.OrgMemberPlan|null);
16549
16565
  }
16550
16566
 
16551
16567
  /** Represents an EnterpriseUserEnrollmentRemoved. */
@@ -16584,6 +16600,9 @@ export class EnterpriseUserEnrollmentRemoved implements IEnterpriseUserEnrollmen
16584
16600
  /** EnterpriseUserEnrollmentRemoved isPartialPay. */
16585
16601
  public isPartialPay: boolean;
16586
16602
 
16603
+ /** EnterpriseUserEnrollmentRemoved plan. */
16604
+ public plan: b2b.OrgMemberPlan;
16605
+
16587
16606
  /**
16588
16607
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
16589
16608
  * @param [properties] Properties to set
@@ -16681,6 +16700,9 @@ export interface IEnterpriseUserEnrollmentAmended {
16681
16700
 
16682
16701
  /** EnterpriseUserEnrollmentAmended isPartialPay */
16683
16702
  isPartialPay?: (boolean|null);
16703
+
16704
+ /** EnterpriseUserEnrollmentAmended plan */
16705
+ plan?: (b2b.OrgMemberPlan|null);
16684
16706
  }
16685
16707
 
16686
16708
  /** Represents an EnterpriseUserEnrollmentAmended. */
@@ -16716,6 +16738,9 @@ export class EnterpriseUserEnrollmentAmended implements IEnterpriseUserEnrollmen
16716
16738
  /** EnterpriseUserEnrollmentAmended isPartialPay. */
16717
16739
  public isPartialPay: boolean;
16718
16740
 
16741
+ /** EnterpriseUserEnrollmentAmended plan. */
16742
+ public plan: b2b.OrgMemberPlan;
16743
+
16719
16744
  /**
16720
16745
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
16721
16746
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -7531,6 +7531,22 @@ $root.b2b = (function() {
7531
7531
  return values;
7532
7532
  })();
7533
7533
 
7534
+ /**
7535
+ * OrgMemberPlan enum.
7536
+ * @name b2b.OrgMemberPlan
7537
+ * @enum {string}
7538
+ * @property {number} ORGPLAN_UNKNOWN=0 ORGPLAN_UNKNOWN value
7539
+ * @property {number} ORGPLAN_B2B=1 ORGPLAN_B2B value
7540
+ * @property {number} ORGPLAN_B2B_FAMILY_PLAN=2 ORGPLAN_B2B_FAMILY_PLAN value
7541
+ */
7542
+ b2b.OrgMemberPlan = (function() {
7543
+ var valuesById = {}, values = Object.create(valuesById);
7544
+ values[valuesById[0] = "ORGPLAN_UNKNOWN"] = 0;
7545
+ values[valuesById[1] = "ORGPLAN_B2B"] = 1;
7546
+ values[valuesById[2] = "ORGPLAN_B2B_FAMILY_PLAN"] = 2;
7547
+ return values;
7548
+ })();
7549
+
7534
7550
  return b2b;
7535
7551
  })();
7536
7552
 
@@ -29477,7 +29493,7 @@ $root.ContentfulSleepcastCreated = (function() {
29477
29493
  * @property {string|null} [slug] ContentfulSleepcastCreated slug
29478
29494
  * @property {Object.<string,string>|null} [subtitle] ContentfulSleepcastCreated subtitle
29479
29495
  * @property {Object.<string,string>|null} [description] ContentfulSleepcastCreated description
29480
- * @property {Object.<string,contentful.ISlugReference>|null} [recipe] ContentfulSleepcastCreated recipe
29496
+ * @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastCreated recipe
29481
29497
  * @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastCreated tileBackgroundMedia
29482
29498
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastCreated playerBackgroundMedia
29483
29499
  * @property {boolean|null} [useVariantPresets] ContentfulSleepcastCreated useVariantPresets
@@ -29501,7 +29517,6 @@ $root.ContentfulSleepcastCreated = (function() {
29501
29517
  this.title = {};
29502
29518
  this.subtitle = {};
29503
29519
  this.description = {};
29504
- this.recipe = {};
29505
29520
  this.tileBackgroundMedia = {};
29506
29521
  this.playerBackgroundMedia = {};
29507
29522
  this.primaryAudioMedia = {};
@@ -29548,11 +29563,11 @@ $root.ContentfulSleepcastCreated = (function() {
29548
29563
 
29549
29564
  /**
29550
29565
  * ContentfulSleepcastCreated recipe.
29551
- * @member {Object.<string,contentful.ISlugReference>} recipe
29566
+ * @member {contentful.ISlugReference|null|undefined} recipe
29552
29567
  * @memberof ContentfulSleepcastCreated
29553
29568
  * @instance
29554
29569
  */
29555
- ContentfulSleepcastCreated.prototype.recipe = $util.emptyObject;
29570
+ ContentfulSleepcastCreated.prototype.recipe = null;
29556
29571
 
29557
29572
  /**
29558
29573
  * ContentfulSleepcastCreated tileBackgroundMedia.
@@ -29662,10 +29677,7 @@ $root.ContentfulSleepcastCreated = (function() {
29662
29677
  for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
29663
29678
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
29664
29679
  if (message.recipe != null && message.hasOwnProperty("recipe"))
29665
- for (var keys = Object.keys(message.recipe), i = 0; i < keys.length; ++i) {
29666
- writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29667
- $root.contentful.SlugReference.encode(message.recipe[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29668
- }
29680
+ $root.contentful.SlugReference.encode(message.recipe, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
29669
29681
  if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
29670
29682
  for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
29671
29683
  writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
@@ -29762,12 +29774,7 @@ $root.ContentfulSleepcastCreated = (function() {
29762
29774
  message.description[key] = reader.string();
29763
29775
  break;
29764
29776
  case 5:
29765
- reader.skip().pos++;
29766
- if (message.recipe === $util.emptyObject)
29767
- message.recipe = {};
29768
- key = reader.string();
29769
- reader.pos++;
29770
- message.recipe[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
29777
+ message.recipe = $root.contentful.SlugReference.decode(reader, reader.uint32());
29771
29778
  break;
29772
29779
  case 6:
29773
29780
  reader.skip().pos++;
@@ -29886,14 +29893,9 @@ $root.ContentfulSleepcastCreated = (function() {
29886
29893
  return "description: string{k:string} expected";
29887
29894
  }
29888
29895
  if (message.recipe != null && message.hasOwnProperty("recipe")) {
29889
- if (!$util.isObject(message.recipe))
29890
- return "recipe: object expected";
29891
- var key = Object.keys(message.recipe);
29892
- for (var i = 0; i < key.length; ++i) {
29893
- var error = $root.contentful.SlugReference.verify(message.recipe[key[i]]);
29894
- if (error)
29895
- return "recipe." + error;
29896
- }
29896
+ var error = $root.contentful.SlugReference.verify(message.recipe);
29897
+ if (error)
29898
+ return "recipe." + error;
29897
29899
  }
29898
29900
  if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
29899
29901
  if (!$util.isObject(message.tileBackgroundMedia))
@@ -30001,15 +30003,10 @@ $root.ContentfulSleepcastCreated = (function() {
30001
30003
  for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
30002
30004
  message.description[keys[i]] = String(object.description[keys[i]]);
30003
30005
  }
30004
- if (object.recipe) {
30006
+ if (object.recipe != null) {
30005
30007
  if (typeof object.recipe !== "object")
30006
30008
  throw TypeError(".ContentfulSleepcastCreated.recipe: object expected");
30007
- message.recipe = {};
30008
- for (var keys = Object.keys(object.recipe), i = 0; i < keys.length; ++i) {
30009
- if (typeof object.recipe[keys[i]] !== "object")
30010
- throw TypeError(".ContentfulSleepcastCreated.recipe: object expected");
30011
- message.recipe[keys[i]] = $root.contentful.SlugReference.fromObject(object.recipe[keys[i]]);
30012
- }
30009
+ message.recipe = $root.contentful.SlugReference.fromObject(object.recipe);
30013
30010
  }
30014
30011
  if (object.tileBackgroundMedia) {
30015
30012
  if (typeof object.tileBackgroundMedia !== "object")
@@ -30106,7 +30103,6 @@ $root.ContentfulSleepcastCreated = (function() {
30106
30103
  object.title = {};
30107
30104
  object.subtitle = {};
30108
30105
  object.description = {};
30109
- object.recipe = {};
30110
30106
  object.tileBackgroundMedia = {};
30111
30107
  object.playerBackgroundMedia = {};
30112
30108
  object.primaryAudioMedia = {};
@@ -30115,6 +30111,7 @@ $root.ContentfulSleepcastCreated = (function() {
30115
30111
  }
30116
30112
  if (options.defaults) {
30117
30113
  object.slug = "";
30114
+ object.recipe = null;
30118
30115
  object.useVariantPresets = false;
30119
30116
  object.isEnabled = false;
30120
30117
  if ($util.Long) {
@@ -30141,11 +30138,8 @@ $root.ContentfulSleepcastCreated = (function() {
30141
30138
  for (var j = 0; j < keys2.length; ++j)
30142
30139
  object.description[keys2[j]] = message.description[keys2[j]];
30143
30140
  }
30144
- if (message.recipe && (keys2 = Object.keys(message.recipe)).length) {
30145
- object.recipe = {};
30146
- for (var j = 0; j < keys2.length; ++j)
30147
- object.recipe[keys2[j]] = $root.contentful.SlugReference.toObject(message.recipe[keys2[j]], options);
30148
- }
30141
+ if (message.recipe != null && message.hasOwnProperty("recipe"))
30142
+ object.recipe = $root.contentful.SlugReference.toObject(message.recipe, options);
30149
30143
  if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
30150
30144
  object.tileBackgroundMedia = {};
30151
30145
  for (var j = 0; j < keys2.length; ++j)
@@ -30212,7 +30206,7 @@ $root.ContentfulSleepcastUpdated = (function() {
30212
30206
  * @property {string|null} [slug] ContentfulSleepcastUpdated slug
30213
30207
  * @property {Object.<string,string>|null} [subtitle] ContentfulSleepcastUpdated subtitle
30214
30208
  * @property {Object.<string,string>|null} [description] ContentfulSleepcastUpdated description
30215
- * @property {Object.<string,contentful.ISlugReference>|null} [recipe] ContentfulSleepcastUpdated recipe
30209
+ * @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastUpdated recipe
30216
30210
  * @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastUpdated tileBackgroundMedia
30217
30211
  * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
30218
30212
  * @property {boolean|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
@@ -30236,7 +30230,6 @@ $root.ContentfulSleepcastUpdated = (function() {
30236
30230
  this.title = {};
30237
30231
  this.subtitle = {};
30238
30232
  this.description = {};
30239
- this.recipe = {};
30240
30233
  this.tileBackgroundMedia = {};
30241
30234
  this.playerBackgroundMedia = {};
30242
30235
  this.primaryAudioMedia = {};
@@ -30283,11 +30276,11 @@ $root.ContentfulSleepcastUpdated = (function() {
30283
30276
 
30284
30277
  /**
30285
30278
  * ContentfulSleepcastUpdated recipe.
30286
- * @member {Object.<string,contentful.ISlugReference>} recipe
30279
+ * @member {contentful.ISlugReference|null|undefined} recipe
30287
30280
  * @memberof ContentfulSleepcastUpdated
30288
30281
  * @instance
30289
30282
  */
30290
- ContentfulSleepcastUpdated.prototype.recipe = $util.emptyObject;
30283
+ ContentfulSleepcastUpdated.prototype.recipe = null;
30291
30284
 
30292
30285
  /**
30293
30286
  * ContentfulSleepcastUpdated tileBackgroundMedia.
@@ -30397,10 +30390,7 @@ $root.ContentfulSleepcastUpdated = (function() {
30397
30390
  for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
30398
30391
  writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
30399
30392
  if (message.recipe != null && message.hasOwnProperty("recipe"))
30400
- for (var keys = Object.keys(message.recipe), i = 0; i < keys.length; ++i) {
30401
- writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30402
- $root.contentful.SlugReference.encode(message.recipe[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30403
- }
30393
+ $root.contentful.SlugReference.encode(message.recipe, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
30404
30394
  if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
30405
30395
  for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
30406
30396
  writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
@@ -30497,12 +30487,7 @@ $root.ContentfulSleepcastUpdated = (function() {
30497
30487
  message.description[key] = reader.string();
30498
30488
  break;
30499
30489
  case 5:
30500
- reader.skip().pos++;
30501
- if (message.recipe === $util.emptyObject)
30502
- message.recipe = {};
30503
- key = reader.string();
30504
- reader.pos++;
30505
- message.recipe[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
30490
+ message.recipe = $root.contentful.SlugReference.decode(reader, reader.uint32());
30506
30491
  break;
30507
30492
  case 6:
30508
30493
  reader.skip().pos++;
@@ -30621,14 +30606,9 @@ $root.ContentfulSleepcastUpdated = (function() {
30621
30606
  return "description: string{k:string} expected";
30622
30607
  }
30623
30608
  if (message.recipe != null && message.hasOwnProperty("recipe")) {
30624
- if (!$util.isObject(message.recipe))
30625
- return "recipe: object expected";
30626
- var key = Object.keys(message.recipe);
30627
- for (var i = 0; i < key.length; ++i) {
30628
- var error = $root.contentful.SlugReference.verify(message.recipe[key[i]]);
30629
- if (error)
30630
- return "recipe." + error;
30631
- }
30609
+ var error = $root.contentful.SlugReference.verify(message.recipe);
30610
+ if (error)
30611
+ return "recipe." + error;
30632
30612
  }
30633
30613
  if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
30634
30614
  if (!$util.isObject(message.tileBackgroundMedia))
@@ -30736,15 +30716,10 @@ $root.ContentfulSleepcastUpdated = (function() {
30736
30716
  for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
30737
30717
  message.description[keys[i]] = String(object.description[keys[i]]);
30738
30718
  }
30739
- if (object.recipe) {
30719
+ if (object.recipe != null) {
30740
30720
  if (typeof object.recipe !== "object")
30741
30721
  throw TypeError(".ContentfulSleepcastUpdated.recipe: object expected");
30742
- message.recipe = {};
30743
- for (var keys = Object.keys(object.recipe), i = 0; i < keys.length; ++i) {
30744
- if (typeof object.recipe[keys[i]] !== "object")
30745
- throw TypeError(".ContentfulSleepcastUpdated.recipe: object expected");
30746
- message.recipe[keys[i]] = $root.contentful.SlugReference.fromObject(object.recipe[keys[i]]);
30747
- }
30722
+ message.recipe = $root.contentful.SlugReference.fromObject(object.recipe);
30748
30723
  }
30749
30724
  if (object.tileBackgroundMedia) {
30750
30725
  if (typeof object.tileBackgroundMedia !== "object")
@@ -30841,7 +30816,6 @@ $root.ContentfulSleepcastUpdated = (function() {
30841
30816
  object.title = {};
30842
30817
  object.subtitle = {};
30843
30818
  object.description = {};
30844
- object.recipe = {};
30845
30819
  object.tileBackgroundMedia = {};
30846
30820
  object.playerBackgroundMedia = {};
30847
30821
  object.primaryAudioMedia = {};
@@ -30850,6 +30824,7 @@ $root.ContentfulSleepcastUpdated = (function() {
30850
30824
  }
30851
30825
  if (options.defaults) {
30852
30826
  object.slug = "";
30827
+ object.recipe = null;
30853
30828
  object.useVariantPresets = false;
30854
30829
  object.isEnabled = false;
30855
30830
  if ($util.Long) {
@@ -30876,11 +30851,8 @@ $root.ContentfulSleepcastUpdated = (function() {
30876
30851
  for (var j = 0; j < keys2.length; ++j)
30877
30852
  object.description[keys2[j]] = message.description[keys2[j]];
30878
30853
  }
30879
- if (message.recipe && (keys2 = Object.keys(message.recipe)).length) {
30880
- object.recipe = {};
30881
- for (var j = 0; j < keys2.length; ++j)
30882
- object.recipe[keys2[j]] = $root.contentful.SlugReference.toObject(message.recipe[keys2[j]], options);
30883
- }
30854
+ if (message.recipe != null && message.hasOwnProperty("recipe"))
30855
+ object.recipe = $root.contentful.SlugReference.toObject(message.recipe, options);
30884
30856
  if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
30885
30857
  object.tileBackgroundMedia = {};
30886
30858
  for (var j = 0; j < keys2.length; ++j)
@@ -44946,6 +44918,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
44946
44918
  * @property {number|Long|null} [endsAt] EnterpriseUserEnrollmentCreated endsAt
44947
44919
  * @property {number|Long|null} [timestamp] EnterpriseUserEnrollmentCreated timestamp
44948
44920
  * @property {boolean|null} [isPartialPay] EnterpriseUserEnrollmentCreated isPartialPay
44921
+ * @property {b2b.OrgMemberPlan|null} [plan] EnterpriseUserEnrollmentCreated plan
44949
44922
  */
44950
44923
 
44951
44924
  /**
@@ -45027,6 +45000,14 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
45027
45000
  */
45028
45001
  EnterpriseUserEnrollmentCreated.prototype.isPartialPay = false;
45029
45002
 
45003
+ /**
45004
+ * EnterpriseUserEnrollmentCreated plan.
45005
+ * @member {b2b.OrgMemberPlan} plan
45006
+ * @memberof EnterpriseUserEnrollmentCreated
45007
+ * @instance
45008
+ */
45009
+ EnterpriseUserEnrollmentCreated.prototype.plan = 0;
45010
+
45030
45011
  /**
45031
45012
  * Creates a new EnterpriseUserEnrollmentCreated instance using the specified properties.
45032
45013
  * @function create
@@ -45067,6 +45048,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
45067
45048
  writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timestamp);
45068
45049
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
45069
45050
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isPartialPay);
45051
+ if (message.plan != null && message.hasOwnProperty("plan"))
45052
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.plan);
45070
45053
  return writer;
45071
45054
  };
45072
45055
 
@@ -45125,6 +45108,9 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
45125
45108
  case 8:
45126
45109
  message.isPartialPay = reader.bool();
45127
45110
  break;
45111
+ case 9:
45112
+ message.plan = reader.int32();
45113
+ break;
45128
45114
  default:
45129
45115
  reader.skipType(tag & 7);
45130
45116
  break;
@@ -45194,6 +45180,15 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
45194
45180
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
45195
45181
  if (typeof message.isPartialPay !== "boolean")
45196
45182
  return "isPartialPay: boolean expected";
45183
+ if (message.plan != null && message.hasOwnProperty("plan"))
45184
+ switch (message.plan) {
45185
+ default:
45186
+ return "plan: enum value expected";
45187
+ case 0:
45188
+ case 1:
45189
+ case 2:
45190
+ break;
45191
+ }
45197
45192
  return null;
45198
45193
  };
45199
45194
 
@@ -45274,6 +45269,20 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
45274
45269
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
45275
45270
  if (object.isPartialPay != null)
45276
45271
  message.isPartialPay = Boolean(object.isPartialPay);
45272
+ switch (object.plan) {
45273
+ case "ORGPLAN_UNKNOWN":
45274
+ case 0:
45275
+ message.plan = 0;
45276
+ break;
45277
+ case "ORGPLAN_B2B":
45278
+ case 1:
45279
+ message.plan = 1;
45280
+ break;
45281
+ case "ORGPLAN_B2B_FAMILY_PLAN":
45282
+ case 2:
45283
+ message.plan = 2;
45284
+ break;
45285
+ }
45277
45286
  return message;
45278
45287
  };
45279
45288
 
@@ -45311,6 +45320,7 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
45311
45320
  } else
45312
45321
  object.timestamp = options.longs === String ? "0" : 0;
45313
45322
  object.isPartialPay = false;
45323
+ object.plan = options.enums === String ? "ORGPLAN_UNKNOWN" : 0;
45314
45324
  }
45315
45325
  if (message.userId != null && message.hasOwnProperty("userId"))
45316
45326
  object.userId = message.userId;
@@ -45337,6 +45347,8 @@ $root.EnterpriseUserEnrollmentCreated = (function() {
45337
45347
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
45338
45348
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
45339
45349
  object.isPartialPay = message.isPartialPay;
45350
+ if (message.plan != null && message.hasOwnProperty("plan"))
45351
+ object.plan = options.enums === String ? $root.b2b.OrgMemberPlan[message.plan] : message.plan;
45340
45352
  return object;
45341
45353
  };
45342
45354
 
@@ -45369,6 +45381,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45369
45381
  * @property {b2b.OrgMemberRemovalReason|null} [reason] EnterpriseUserEnrollmentRemoved reason
45370
45382
  * @property {number|Long|null} [timestamp] EnterpriseUserEnrollmentRemoved timestamp
45371
45383
  * @property {boolean|null} [isPartialPay] EnterpriseUserEnrollmentRemoved isPartialPay
45384
+ * @property {b2b.OrgMemberPlan|null} [plan] EnterpriseUserEnrollmentRemoved plan
45372
45385
  */
45373
45386
 
45374
45387
  /**
@@ -45458,6 +45471,14 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45458
45471
  */
45459
45472
  EnterpriseUserEnrollmentRemoved.prototype.isPartialPay = false;
45460
45473
 
45474
+ /**
45475
+ * EnterpriseUserEnrollmentRemoved plan.
45476
+ * @member {b2b.OrgMemberPlan} plan
45477
+ * @memberof EnterpriseUserEnrollmentRemoved
45478
+ * @instance
45479
+ */
45480
+ EnterpriseUserEnrollmentRemoved.prototype.plan = 0;
45481
+
45461
45482
  /**
45462
45483
  * Creates a new EnterpriseUserEnrollmentRemoved instance using the specified properties.
45463
45484
  * @function create
@@ -45500,6 +45521,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45500
45521
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timestamp);
45501
45522
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
45502
45523
  writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isPartialPay);
45524
+ if (message.plan != null && message.hasOwnProperty("plan"))
45525
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.plan);
45503
45526
  return writer;
45504
45527
  };
45505
45528
 
@@ -45561,6 +45584,9 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45561
45584
  case 9:
45562
45585
  message.isPartialPay = reader.bool();
45563
45586
  break;
45587
+ case 10:
45588
+ message.plan = reader.int32();
45589
+ break;
45564
45590
  default:
45565
45591
  reader.skipType(tag & 7);
45566
45592
  break;
@@ -45641,6 +45667,15 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45641
45667
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
45642
45668
  if (typeof message.isPartialPay !== "boolean")
45643
45669
  return "isPartialPay: boolean expected";
45670
+ if (message.plan != null && message.hasOwnProperty("plan"))
45671
+ switch (message.plan) {
45672
+ default:
45673
+ return "plan: enum value expected";
45674
+ case 0:
45675
+ case 1:
45676
+ case 2:
45677
+ break;
45678
+ }
45644
45679
  return null;
45645
45680
  };
45646
45681
 
@@ -45743,6 +45778,20 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45743
45778
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
45744
45779
  if (object.isPartialPay != null)
45745
45780
  message.isPartialPay = Boolean(object.isPartialPay);
45781
+ switch (object.plan) {
45782
+ case "ORGPLAN_UNKNOWN":
45783
+ case 0:
45784
+ message.plan = 0;
45785
+ break;
45786
+ case "ORGPLAN_B2B":
45787
+ case 1:
45788
+ message.plan = 1;
45789
+ break;
45790
+ case "ORGPLAN_B2B_FAMILY_PLAN":
45791
+ case 2:
45792
+ message.plan = 2;
45793
+ break;
45794
+ }
45746
45795
  return message;
45747
45796
  };
45748
45797
 
@@ -45781,6 +45830,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45781
45830
  } else
45782
45831
  object.timestamp = options.longs === String ? "0" : 0;
45783
45832
  object.isPartialPay = false;
45833
+ object.plan = options.enums === String ? "ORGPLAN_UNKNOWN" : 0;
45784
45834
  }
45785
45835
  if (message.userId != null && message.hasOwnProperty("userId"))
45786
45836
  object.userId = message.userId;
@@ -45809,6 +45859,8 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
45809
45859
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
45810
45860
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
45811
45861
  object.isPartialPay = message.isPartialPay;
45862
+ if (message.plan != null && message.hasOwnProperty("plan"))
45863
+ object.plan = options.enums === String ? $root.b2b.OrgMemberPlan[message.plan] : message.plan;
45812
45864
  return object;
45813
45865
  };
45814
45866
 
@@ -45840,6 +45892,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
45840
45892
  * @property {number|Long|null} [endsAt] EnterpriseUserEnrollmentAmended endsAt
45841
45893
  * @property {number|Long|null} [timestamp] EnterpriseUserEnrollmentAmended timestamp
45842
45894
  * @property {boolean|null} [isPartialPay] EnterpriseUserEnrollmentAmended isPartialPay
45895
+ * @property {b2b.OrgMemberPlan|null} [plan] EnterpriseUserEnrollmentAmended plan
45843
45896
  */
45844
45897
 
45845
45898
  /**
@@ -45921,6 +45974,14 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
45921
45974
  */
45922
45975
  EnterpriseUserEnrollmentAmended.prototype.isPartialPay = false;
45923
45976
 
45977
+ /**
45978
+ * EnterpriseUserEnrollmentAmended plan.
45979
+ * @member {b2b.OrgMemberPlan} plan
45980
+ * @memberof EnterpriseUserEnrollmentAmended
45981
+ * @instance
45982
+ */
45983
+ EnterpriseUserEnrollmentAmended.prototype.plan = 0;
45984
+
45924
45985
  /**
45925
45986
  * Creates a new EnterpriseUserEnrollmentAmended instance using the specified properties.
45926
45987
  * @function create
@@ -45961,6 +46022,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
45961
46022
  writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.timestamp);
45962
46023
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
45963
46024
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isPartialPay);
46025
+ if (message.plan != null && message.hasOwnProperty("plan"))
46026
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.plan);
45964
46027
  return writer;
45965
46028
  };
45966
46029
 
@@ -46019,6 +46082,9 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
46019
46082
  case 8:
46020
46083
  message.isPartialPay = reader.bool();
46021
46084
  break;
46085
+ case 9:
46086
+ message.plan = reader.int32();
46087
+ break;
46022
46088
  default:
46023
46089
  reader.skipType(tag & 7);
46024
46090
  break;
@@ -46088,6 +46154,15 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
46088
46154
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
46089
46155
  if (typeof message.isPartialPay !== "boolean")
46090
46156
  return "isPartialPay: boolean expected";
46157
+ if (message.plan != null && message.hasOwnProperty("plan"))
46158
+ switch (message.plan) {
46159
+ default:
46160
+ return "plan: enum value expected";
46161
+ case 0:
46162
+ case 1:
46163
+ case 2:
46164
+ break;
46165
+ }
46091
46166
  return null;
46092
46167
  };
46093
46168
 
@@ -46168,6 +46243,20 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
46168
46243
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
46169
46244
  if (object.isPartialPay != null)
46170
46245
  message.isPartialPay = Boolean(object.isPartialPay);
46246
+ switch (object.plan) {
46247
+ case "ORGPLAN_UNKNOWN":
46248
+ case 0:
46249
+ message.plan = 0;
46250
+ break;
46251
+ case "ORGPLAN_B2B":
46252
+ case 1:
46253
+ message.plan = 1;
46254
+ break;
46255
+ case "ORGPLAN_B2B_FAMILY_PLAN":
46256
+ case 2:
46257
+ message.plan = 2;
46258
+ break;
46259
+ }
46171
46260
  return message;
46172
46261
  };
46173
46262
 
@@ -46205,6 +46294,7 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
46205
46294
  } else
46206
46295
  object.timestamp = options.longs === String ? "0" : 0;
46207
46296
  object.isPartialPay = false;
46297
+ object.plan = options.enums === String ? "ORGPLAN_UNKNOWN" : 0;
46208
46298
  }
46209
46299
  if (message.userId != null && message.hasOwnProperty("userId"))
46210
46300
  object.userId = message.userId;
@@ -46231,6 +46321,8 @@ $root.EnterpriseUserEnrollmentAmended = (function() {
46231
46321
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
46232
46322
  if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
46233
46323
  object.isPartialPay = message.isPartialPay;
46324
+ if (message.plan != null && message.hasOwnProperty("plan"))
46325
+ object.plan = options.enums === String ? $root.b2b.OrgMemberPlan[message.plan] : message.plan;
46234
46326
  return object;
46235
46327
  };
46236
46328
 
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.184.0"
19
+ "version": "1.186.0"
20
20
  }