@headspace/protos-events 1.474.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
@@ -32922,6 +32922,9 @@ export interface IFamilyMemberSynced {
32922
32922
  /** FamilyMemberSynced userId */
32923
32923
  userId?: (string|null);
32924
32924
 
32925
+ /** FamilyMemberSynced ownerUserId */
32926
+ ownerUserId?: (string|null);
32927
+
32925
32928
  /** FamilyMemberSynced userGroupId */
32926
32929
  userGroupId?: (number|null);
32927
32930
 
@@ -32932,7 +32935,7 @@ export interface IFamilyMemberSynced {
32932
32935
  orgId?: (number|null);
32933
32936
  }
32934
32937
 
32935
- /** 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 */
32936
32939
  export class FamilyMemberSynced implements IFamilyMemberSynced {
32937
32940
 
32938
32941
  /**
@@ -32950,6 +32953,9 @@ export class FamilyMemberSynced implements IFamilyMemberSynced {
32950
32953
  /** FamilyMemberSynced userId. */
32951
32954
  public userId: string;
32952
32955
 
32956
+ /** FamilyMemberSynced ownerUserId. */
32957
+ public ownerUserId: string;
32958
+
32953
32959
  /** FamilyMemberSynced userGroupId. */
32954
32960
  public userGroupId: number;
32955
32961
 
package/lib/index.js CHANGED
@@ -91535,6 +91535,7 @@ $root.FamilyMemberSynced = (function() {
91535
91535
  * @property {number|Long|null} [timestamp] FamilyMemberSynced timestamp
91536
91536
  * @property {number|null} [userGroupEntryId] FamilyMemberSynced userGroupEntryId
91537
91537
  * @property {string|null} [userId] FamilyMemberSynced userId
91538
+ * @property {string|null} [ownerUserId] FamilyMemberSynced ownerUserId
91538
91539
  * @property {number|null} [userGroupId] FamilyMemberSynced userGroupId
91539
91540
  * @property {community.FamilyPlanRole|null} [role] FamilyMemberSynced role
91540
91541
  * @property {number|null} [orgId] FamilyMemberSynced orgId
@@ -91543,7 +91544,7 @@ $root.FamilyMemberSynced = (function() {
91543
91544
  /**
91544
91545
  * Constructs a new FamilyMemberSynced.
91545
91546
  * @name FamilyMemberSynced
91546
- * @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
91547
91548
  * @implements IFamilyMemberSynced
91548
91549
  * @constructor
91549
91550
  * @param {IFamilyMemberSynced=} [properties] Properties to set
@@ -91579,6 +91580,14 @@ $root.FamilyMemberSynced = (function() {
91579
91580
  */
91580
91581
  FamilyMemberSynced.prototype.userId = "";
91581
91582
 
91583
+ /**
91584
+ * FamilyMemberSynced ownerUserId.
91585
+ * @member {string} ownerUserId
91586
+ * @memberof FamilyMemberSynced
91587
+ * @instance
91588
+ */
91589
+ FamilyMemberSynced.prototype.ownerUserId = "";
91590
+
91582
91591
  /**
91583
91592
  * FamilyMemberSynced userGroupId.
91584
91593
  * @member {number} userGroupId
@@ -91639,6 +91648,8 @@ $root.FamilyMemberSynced = (function() {
91639
91648
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.role);
91640
91649
  if (message.orgId != null && message.hasOwnProperty("orgId"))
91641
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);
91642
91653
  return writer;
91643
91654
  };
91644
91655
 
@@ -91682,6 +91693,9 @@ $root.FamilyMemberSynced = (function() {
91682
91693
  case 3:
91683
91694
  message.userId = reader.string();
91684
91695
  break;
91696
+ case 7:
91697
+ message.ownerUserId = reader.string();
91698
+ break;
91685
91699
  case 4:
91686
91700
  message.userGroupId = reader.uint32();
91687
91701
  break;
@@ -91735,6 +91749,9 @@ $root.FamilyMemberSynced = (function() {
91735
91749
  if (message.userId != null && message.hasOwnProperty("userId"))
91736
91750
  if (!$util.isString(message.userId))
91737
91751
  return "userId: string expected";
91752
+ if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91753
+ if (!$util.isString(message.ownerUserId))
91754
+ return "ownerUserId: string expected";
91738
91755
  if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
91739
91756
  if (!$util.isInteger(message.userGroupId))
91740
91757
  return "userGroupId: integer expected";
@@ -91778,6 +91795,8 @@ $root.FamilyMemberSynced = (function() {
91778
91795
  message.userGroupEntryId = object.userGroupEntryId >>> 0;
91779
91796
  if (object.userId != null)
91780
91797
  message.userId = String(object.userId);
91798
+ if (object.ownerUserId != null)
91799
+ message.ownerUserId = String(object.ownerUserId);
91781
91800
  if (object.userGroupId != null)
91782
91801
  message.userGroupId = object.userGroupId >>> 0;
91783
91802
  switch (object.role) {
@@ -91823,6 +91842,7 @@ $root.FamilyMemberSynced = (function() {
91823
91842
  object.userGroupId = 0;
91824
91843
  object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
91825
91844
  object.orgId = 0;
91845
+ object.ownerUserId = "";
91826
91846
  }
91827
91847
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
91828
91848
  if (typeof message.timestamp === "number")
@@ -91839,6 +91859,8 @@ $root.FamilyMemberSynced = (function() {
91839
91859
  object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
91840
91860
  if (message.orgId != null && message.hasOwnProperty("orgId"))
91841
91861
  object.orgId = message.orgId;
91862
+ if (message.ownerUserId != null && message.hasOwnProperty("ownerUserId"))
91863
+ object.ownerUserId = message.ownerUserId;
91842
91864
  return object;
91843
91865
  };
91844
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.474.0"
19
+ "version": "1.475.0"
20
20
  }