@headspace/protos-events 1.473.0 → 1.475.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
@@ -15732,7 +15732,11 @@ export class ContentfulCategoryDeleted implements IContentfulCategoryDeleted {
15732
15732
  export enum ContentCollectionType {
15733
15733
  CONTENT_COLLECTION_TYPE_UNRECOGNIZED = 0,
15734
15734
  CONTENT_COLLECTION_TYPE_GENERIC = 1,
15735
- CONTENT_COLLECTION_TYPE_PODCAST = 2
15735
+ CONTENT_COLLECTION_TYPE_PODCAST = 2,
15736
+ CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT = 3,
15737
+ CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION = 4,
15738
+ CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT = 5,
15739
+ CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT = 6
15736
15740
  }
15737
15741
 
15738
15742
  /** Properties of a ContentfulCollectionCreated. */
@@ -32918,6 +32922,9 @@ export interface IFamilyMemberSynced {
32918
32922
  /** FamilyMemberSynced userId */
32919
32923
  userId?: (string|null);
32920
32924
 
32925
+ /** FamilyMemberSynced ownerUserId */
32926
+ ownerUserId?: (string|null);
32927
+
32921
32928
  /** FamilyMemberSynced userGroupId */
32922
32929
  userGroupId?: (number|null);
32923
32930
 
@@ -32928,7 +32935,7 @@ export interface IFamilyMemberSynced {
32928
32935
  orgId?: (number|null);
32929
32936
  }
32930
32937
 
32931
- /** Event published after a UserGroupEntry has it's `removedOn` field updated to match the user group's subscription. `removedOn` must be in the future */
32938
+ /** Event published for each group member when a change (created, amended) to the owner's subscription observed */
32932
32939
  export class FamilyMemberSynced implements IFamilyMemberSynced {
32933
32940
 
32934
32941
  /**
@@ -32946,6 +32953,9 @@ export class FamilyMemberSynced implements IFamilyMemberSynced {
32946
32953
  /** FamilyMemberSynced userId. */
32947
32954
  public userId: string;
32948
32955
 
32956
+ /** FamilyMemberSynced ownerUserId. */
32957
+ public ownerUserId: string;
32958
+
32949
32959
  /** FamilyMemberSynced userGroupId. */
32950
32960
  public userGroupId: number;
32951
32961
 
package/lib/index.js CHANGED
@@ -40348,12 +40348,20 @@ $root.ContentfulCategoryDeleted = (function() {
40348
40348
  * @property {number} CONTENT_COLLECTION_TYPE_UNRECOGNIZED=0 CONTENT_COLLECTION_TYPE_UNRECOGNIZED value
40349
40349
  * @property {number} CONTENT_COLLECTION_TYPE_GENERIC=1 CONTENT_COLLECTION_TYPE_GENERIC value
40350
40350
  * @property {number} CONTENT_COLLECTION_TYPE_PODCAST=2 CONTENT_COLLECTION_TYPE_PODCAST value
40351
+ * @property {number} CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT=3 CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT value
40352
+ * @property {number} CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION=4 CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION value
40353
+ * @property {number} CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT=5 CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT value
40354
+ * @property {number} CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT=6 CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT value
40351
40355
  */
40352
40356
  $root.ContentCollectionType = (function() {
40353
40357
  var valuesById = {}, values = Object.create(valuesById);
40354
40358
  values[valuesById[0] = "CONTENT_COLLECTION_TYPE_UNRECOGNIZED"] = 0;
40355
40359
  values[valuesById[1] = "CONTENT_COLLECTION_TYPE_GENERIC"] = 1;
40356
40360
  values[valuesById[2] = "CONTENT_COLLECTION_TYPE_PODCAST"] = 2;
40361
+ values[valuesById[3] = "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT"] = 3;
40362
+ values[valuesById[4] = "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION"] = 4;
40363
+ values[valuesById[5] = "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT"] = 5;
40364
+ values[valuesById[6] = "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT"] = 6;
40357
40365
  return values;
40358
40366
  })();
40359
40367
 
@@ -40761,6 +40769,10 @@ $root.ContentfulCollectionCreated = (function() {
40761
40769
  case 0:
40762
40770
  case 1:
40763
40771
  case 2:
40772
+ case 3:
40773
+ case 4:
40774
+ case 5:
40775
+ case 6:
40764
40776
  break;
40765
40777
  }
40766
40778
  if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
@@ -40885,6 +40897,22 @@ $root.ContentfulCollectionCreated = (function() {
40885
40897
  case 2:
40886
40898
  message.collectionType = 2;
40887
40899
  break;
40900
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT":
40901
+ case 3:
40902
+ message.collectionType = 3;
40903
+ break;
40904
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION":
40905
+ case 4:
40906
+ message.collectionType = 4;
40907
+ break;
40908
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT":
40909
+ case 5:
40910
+ message.collectionType = 5;
40911
+ break;
40912
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT":
40913
+ case 6:
40914
+ message.collectionType = 6;
40915
+ break;
40888
40916
  }
40889
40917
  if (object.tileMedia) {
40890
40918
  if (typeof object.tileMedia !== "object")
@@ -41470,6 +41498,10 @@ $root.ContentfulCollectionUpdated = (function() {
41470
41498
  case 0:
41471
41499
  case 1:
41472
41500
  case 2:
41501
+ case 3:
41502
+ case 4:
41503
+ case 5:
41504
+ case 6:
41473
41505
  break;
41474
41506
  }
41475
41507
  if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
@@ -41594,6 +41626,22 @@ $root.ContentfulCollectionUpdated = (function() {
41594
41626
  case 2:
41595
41627
  message.collectionType = 2;
41596
41628
  break;
41629
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT":
41630
+ case 3:
41631
+ message.collectionType = 3;
41632
+ break;
41633
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION":
41634
+ case 4:
41635
+ message.collectionType = 4;
41636
+ break;
41637
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT":
41638
+ case 5:
41639
+ message.collectionType = 5;
41640
+ break;
41641
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT":
41642
+ case 6:
41643
+ message.collectionType = 6;
41644
+ break;
41597
41645
  }
41598
41646
  if (object.tileMedia) {
41599
41647
  if (typeof object.tileMedia !== "object")
@@ -65546,6 +65594,10 @@ $root.CollectionCreated = (function() {
65546
65594
  case 0:
65547
65595
  case 1:
65548
65596
  case 2:
65597
+ case 3:
65598
+ case 4:
65599
+ case 5:
65600
+ case 6:
65549
65601
  break;
65550
65602
  }
65551
65603
  if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
@@ -65672,6 +65724,22 @@ $root.CollectionCreated = (function() {
65672
65724
  case 2:
65673
65725
  message.collectionType = 2;
65674
65726
  break;
65727
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT":
65728
+ case 3:
65729
+ message.collectionType = 3;
65730
+ break;
65731
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION":
65732
+ case 4:
65733
+ message.collectionType = 4;
65734
+ break;
65735
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT":
65736
+ case 5:
65737
+ message.collectionType = 5;
65738
+ break;
65739
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT":
65740
+ case 6:
65741
+ message.collectionType = 6;
65742
+ break;
65675
65743
  }
65676
65744
  if (object.accessGroup) {
65677
65745
  if (!Array.isArray(object.accessGroup))
@@ -66313,6 +66381,10 @@ $root.CollectionUpdated = (function() {
66313
66381
  case 0:
66314
66382
  case 1:
66315
66383
  case 2:
66384
+ case 3:
66385
+ case 4:
66386
+ case 5:
66387
+ case 6:
66316
66388
  break;
66317
66389
  }
66318
66390
  if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
@@ -66439,6 +66511,22 @@ $root.CollectionUpdated = (function() {
66439
66511
  case 2:
66440
66512
  message.collectionType = 2;
66441
66513
  break;
66514
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SEGMENT":
66515
+ case 3:
66516
+ message.collectionType = 3;
66517
+ break;
66518
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_SESSION":
66519
+ case 4:
66520
+ message.collectionType = 4;
66521
+ break;
66522
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_REQUIRED_CONTENT":
66523
+ case 5:
66524
+ message.collectionType = 5;
66525
+ break;
66526
+ case "CONTENT_COLLECTION_TYPE_GUIDED_PROGRAM_BONUS_CONTENT":
66527
+ case 6:
66528
+ message.collectionType = 6;
66529
+ break;
66442
66530
  }
66443
66531
  if (object.accessGroup) {
66444
66532
  if (!Array.isArray(object.accessGroup))
@@ -91447,6 +91535,7 @@ $root.FamilyMemberSynced = (function() {
91447
91535
  * @property {number|Long|null} [timestamp] FamilyMemberSynced timestamp
91448
91536
  * @property {number|null} [userGroupEntryId] FamilyMemberSynced userGroupEntryId
91449
91537
  * @property {string|null} [userId] FamilyMemberSynced userId
91538
+ * @property {string|null} [ownerUserId] FamilyMemberSynced ownerUserId
91450
91539
  * @property {number|null} [userGroupId] FamilyMemberSynced userGroupId
91451
91540
  * @property {community.FamilyPlanRole|null} [role] FamilyMemberSynced role
91452
91541
  * @property {number|null} [orgId] FamilyMemberSynced orgId
@@ -91455,7 +91544,7 @@ $root.FamilyMemberSynced = (function() {
91455
91544
  /**
91456
91545
  * Constructs a new FamilyMemberSynced.
91457
91546
  * @name FamilyMemberSynced
91458
- * @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
91547
+ * @classdesc Event published for each group member when a change (created, amended) to the owner's subscription observed
91459
91548
  * @implements IFamilyMemberSynced
91460
91549
  * @constructor
91461
91550
  * @param {IFamilyMemberSynced=} [properties] Properties to set
@@ -91491,6 +91580,14 @@ $root.FamilyMemberSynced = (function() {
91491
91580
  */
91492
91581
  FamilyMemberSynced.prototype.userId = "";
91493
91582
 
91583
+ /**
91584
+ * FamilyMemberSynced ownerUserId.
91585
+ * @member {string} ownerUserId
91586
+ * @memberof FamilyMemberSynced
91587
+ * @instance
91588
+ */
91589
+ FamilyMemberSynced.prototype.ownerUserId = "";
91590
+
91494
91591
  /**
91495
91592
  * FamilyMemberSynced userGroupId.
91496
91593
  * @member {number} userGroupId
@@ -91551,6 +91648,8 @@ $root.FamilyMemberSynced = (function() {
91551
91648
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.role);
91552
91649
  if (message.orgId != null && message.hasOwnProperty("orgId"))
91553
91650
  writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.orgId);
91651
+ if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91652
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.ownerUserId);
91554
91653
  return writer;
91555
91654
  };
91556
91655
 
@@ -91594,6 +91693,9 @@ $root.FamilyMemberSynced = (function() {
91594
91693
  case 3:
91595
91694
  message.userId = reader.string();
91596
91695
  break;
91696
+ case 7:
91697
+ message.ownerUserId = reader.string();
91698
+ break;
91597
91699
  case 4:
91598
91700
  message.userGroupId = reader.uint32();
91599
91701
  break;
@@ -91647,6 +91749,9 @@ $root.FamilyMemberSynced = (function() {
91647
91749
  if (message.userId != null && message.hasOwnProperty("userId"))
91648
91750
  if (!$util.isString(message.userId))
91649
91751
  return "userId: string expected";
91752
+ if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91753
+ if (!$util.isString(message.ownerUserId))
91754
+ return "ownerUserId: string expected";
91650
91755
  if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
91651
91756
  if (!$util.isInteger(message.userGroupId))
91652
91757
  return "userGroupId: integer expected";
@@ -91690,6 +91795,8 @@ $root.FamilyMemberSynced = (function() {
91690
91795
  message.userGroupEntryId = object.userGroupEntryId >>> 0;
91691
91796
  if (object.userId != null)
91692
91797
  message.userId = String(object.userId);
91798
+ if (object.ownerUserId != null)
91799
+ message.ownerUserId = String(object.ownerUserId);
91693
91800
  if (object.userGroupId != null)
91694
91801
  message.userGroupId = object.userGroupId >>> 0;
91695
91802
  switch (object.role) {
@@ -91735,6 +91842,7 @@ $root.FamilyMemberSynced = (function() {
91735
91842
  object.userGroupId = 0;
91736
91843
  object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
91737
91844
  object.orgId = 0;
91845
+ object.ownerUserId = "";
91738
91846
  }
91739
91847
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
91740
91848
  if (typeof message.timestamp === "number")
@@ -91751,6 +91859,8 @@ $root.FamilyMemberSynced = (function() {
91751
91859
  object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
91752
91860
  if (message.orgId != null && message.hasOwnProperty("orgId"))
91753
91861
  object.orgId = message.orgId;
91862
+ if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91863
+ object.ownerUserId = message.ownerUserId;
91754
91864
  return object;
91755
91865
  };
91756
91866
 
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.473.0"
19
+ "version": "1.475.0"
20
20
  }