@headspace/protos-events 1.311.0 → 1.313.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
@@ -29399,6 +29399,138 @@ export class FamilyMemberInvited implements IFamilyMemberInvited {
29399
29399
  public toJSON(): { [k: string]: any };
29400
29400
  }
29401
29401
 
29402
+ /** Properties of a FamilyMemberSynced. */
29403
+ export interface IFamilyMemberSynced {
29404
+
29405
+ /** FamilyMemberSynced timestamp */
29406
+ timestamp?: (number|Long|null);
29407
+
29408
+ /** FamilyMemberSynced userGroupEntryId */
29409
+ userGroupEntryId?: (number|null);
29410
+
29411
+ /** FamilyMemberSynced userId */
29412
+ userId?: (string|null);
29413
+
29414
+ /** FamilyMemberSynced userGroupId */
29415
+ userGroupId?: (number|null);
29416
+
29417
+ /** FamilyMemberSynced email */
29418
+ email?: (string|null);
29419
+
29420
+ /** FamilyMemberSynced token */
29421
+ token?: (string|null);
29422
+
29423
+ /** FamilyMemberSynced role */
29424
+ role?: (community.FamilyPlanRole|null);
29425
+
29426
+ /** FamilyMemberSynced orgId */
29427
+ orgId?: (number|null);
29428
+ }
29429
+
29430
+ /** Represents a FamilyMemberSynced. */
29431
+ export class FamilyMemberSynced implements IFamilyMemberSynced {
29432
+
29433
+ /**
29434
+ * Constructs a new FamilyMemberSynced.
29435
+ * @param [properties] Properties to set
29436
+ */
29437
+ constructor(properties?: IFamilyMemberSynced);
29438
+
29439
+ /** FamilyMemberSynced timestamp. */
29440
+ public timestamp: (number|Long);
29441
+
29442
+ /** FamilyMemberSynced userGroupEntryId. */
29443
+ public userGroupEntryId: number;
29444
+
29445
+ /** FamilyMemberSynced userId. */
29446
+ public userId: string;
29447
+
29448
+ /** FamilyMemberSynced userGroupId. */
29449
+ public userGroupId: number;
29450
+
29451
+ /** FamilyMemberSynced email. */
29452
+ public email: string;
29453
+
29454
+ /** FamilyMemberSynced token. */
29455
+ public token: string;
29456
+
29457
+ /** FamilyMemberSynced role. */
29458
+ public role: community.FamilyPlanRole;
29459
+
29460
+ /** FamilyMemberSynced orgId. */
29461
+ public orgId: number;
29462
+
29463
+ /**
29464
+ * Creates a new FamilyMemberSynced instance using the specified properties.
29465
+ * @param [properties] Properties to set
29466
+ * @returns FamilyMemberSynced instance
29467
+ */
29468
+ public static create(properties?: IFamilyMemberSynced): FamilyMemberSynced;
29469
+
29470
+ /**
29471
+ * Encodes the specified FamilyMemberSynced message. Does not implicitly {@link FamilyMemberSynced.verify|verify} messages.
29472
+ * @param message FamilyMemberSynced message or plain object to encode
29473
+ * @param [writer] Writer to encode to
29474
+ * @returns Writer
29475
+ */
29476
+ public static encode(message: IFamilyMemberSynced, writer?: $protobuf.Writer): $protobuf.Writer;
29477
+
29478
+ /**
29479
+ * Encodes the specified FamilyMemberSynced message, length delimited. Does not implicitly {@link FamilyMemberSynced.verify|verify} messages.
29480
+ * @param message FamilyMemberSynced message or plain object to encode
29481
+ * @param [writer] Writer to encode to
29482
+ * @returns Writer
29483
+ */
29484
+ public static encodeDelimited(message: IFamilyMemberSynced, writer?: $protobuf.Writer): $protobuf.Writer;
29485
+
29486
+ /**
29487
+ * Decodes a FamilyMemberSynced message from the specified reader or buffer.
29488
+ * @param reader Reader or buffer to decode from
29489
+ * @param [length] Message length if known beforehand
29490
+ * @returns FamilyMemberSynced
29491
+ * @throws {Error} If the payload is not a reader or valid buffer
29492
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29493
+ */
29494
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): FamilyMemberSynced;
29495
+
29496
+ /**
29497
+ * Decodes a FamilyMemberSynced message from the specified reader or buffer, length delimited.
29498
+ * @param reader Reader or buffer to decode from
29499
+ * @returns FamilyMemberSynced
29500
+ * @throws {Error} If the payload is not a reader or valid buffer
29501
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29502
+ */
29503
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): FamilyMemberSynced;
29504
+
29505
+ /**
29506
+ * Verifies a FamilyMemberSynced message.
29507
+ * @param message Plain object to verify
29508
+ * @returns `null` if valid, otherwise the reason why it is not
29509
+ */
29510
+ public static verify(message: { [k: string]: any }): (string|null);
29511
+
29512
+ /**
29513
+ * Creates a FamilyMemberSynced message from a plain object. Also converts values to their respective internal types.
29514
+ * @param object Plain object
29515
+ * @returns FamilyMemberSynced
29516
+ */
29517
+ public static fromObject(object: { [k: string]: any }): FamilyMemberSynced;
29518
+
29519
+ /**
29520
+ * Creates a plain object from a FamilyMemberSynced message. Also converts values to other types if specified.
29521
+ * @param message FamilyMemberSynced
29522
+ * @param [options] Conversion options
29523
+ * @returns Plain object
29524
+ */
29525
+ public static toObject(message: FamilyMemberSynced, options?: $protobuf.IConversionOptions): { [k: string]: any };
29526
+
29527
+ /**
29528
+ * Converts this FamilyMemberSynced to JSON.
29529
+ * @returns JSON object
29530
+ */
29531
+ public toJSON(): { [k: string]: any };
29532
+ }
29533
+
29402
29534
  /** Properties of a FamilyMemberRejected. */
29403
29535
  export interface IFamilyMemberRejected {
29404
29536
 
package/lib/index.js CHANGED
@@ -81461,6 +81461,380 @@ $root.FamilyMemberInvited = (function() {
81461
81461
  return FamilyMemberInvited;
81462
81462
  })();
81463
81463
 
81464
+ $root.FamilyMemberSynced = (function() {
81465
+
81466
+ /**
81467
+ * Properties of a FamilyMemberSynced.
81468
+ * @exports IFamilyMemberSynced
81469
+ * @interface IFamilyMemberSynced
81470
+ * @property {number|Long|null} [timestamp] FamilyMemberSynced timestamp
81471
+ * @property {number|null} [userGroupEntryId] FamilyMemberSynced userGroupEntryId
81472
+ * @property {string|null} [userId] FamilyMemberSynced userId
81473
+ * @property {number|null} [userGroupId] FamilyMemberSynced userGroupId
81474
+ * @property {string|null} [email] FamilyMemberSynced email
81475
+ * @property {string|null} [token] FamilyMemberSynced token
81476
+ * @property {community.FamilyPlanRole|null} [role] FamilyMemberSynced role
81477
+ * @property {number|null} [orgId] FamilyMemberSynced orgId
81478
+ */
81479
+
81480
+ /**
81481
+ * Constructs a new FamilyMemberSynced.
81482
+ * @exports FamilyMemberSynced
81483
+ * @classdesc Represents a FamilyMemberSynced.
81484
+ * @implements IFamilyMemberSynced
81485
+ * @constructor
81486
+ * @param {IFamilyMemberSynced=} [properties] Properties to set
81487
+ */
81488
+ function FamilyMemberSynced(properties) {
81489
+ if (properties)
81490
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
81491
+ if (properties[keys[i]] != null)
81492
+ this[keys[i]] = properties[keys[i]];
81493
+ }
81494
+
81495
+ /**
81496
+ * FamilyMemberSynced timestamp.
81497
+ * @member {number|Long} timestamp
81498
+ * @memberof FamilyMemberSynced
81499
+ * @instance
81500
+ */
81501
+ FamilyMemberSynced.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
81502
+
81503
+ /**
81504
+ * FamilyMemberSynced userGroupEntryId.
81505
+ * @member {number} userGroupEntryId
81506
+ * @memberof FamilyMemberSynced
81507
+ * @instance
81508
+ */
81509
+ FamilyMemberSynced.prototype.userGroupEntryId = 0;
81510
+
81511
+ /**
81512
+ * FamilyMemberSynced userId.
81513
+ * @member {string} userId
81514
+ * @memberof FamilyMemberSynced
81515
+ * @instance
81516
+ */
81517
+ FamilyMemberSynced.prototype.userId = "";
81518
+
81519
+ /**
81520
+ * FamilyMemberSynced userGroupId.
81521
+ * @member {number} userGroupId
81522
+ * @memberof FamilyMemberSynced
81523
+ * @instance
81524
+ */
81525
+ FamilyMemberSynced.prototype.userGroupId = 0;
81526
+
81527
+ /**
81528
+ * FamilyMemberSynced email.
81529
+ * @member {string} email
81530
+ * @memberof FamilyMemberSynced
81531
+ * @instance
81532
+ */
81533
+ FamilyMemberSynced.prototype.email = "";
81534
+
81535
+ /**
81536
+ * FamilyMemberSynced token.
81537
+ * @member {string} token
81538
+ * @memberof FamilyMemberSynced
81539
+ * @instance
81540
+ */
81541
+ FamilyMemberSynced.prototype.token = "";
81542
+
81543
+ /**
81544
+ * FamilyMemberSynced role.
81545
+ * @member {community.FamilyPlanRole} role
81546
+ * @memberof FamilyMemberSynced
81547
+ * @instance
81548
+ */
81549
+ FamilyMemberSynced.prototype.role = 0;
81550
+
81551
+ /**
81552
+ * FamilyMemberSynced orgId.
81553
+ * @member {number} orgId
81554
+ * @memberof FamilyMemberSynced
81555
+ * @instance
81556
+ */
81557
+ FamilyMemberSynced.prototype.orgId = 0;
81558
+
81559
+ /**
81560
+ * Creates a new FamilyMemberSynced instance using the specified properties.
81561
+ * @function create
81562
+ * @memberof FamilyMemberSynced
81563
+ * @static
81564
+ * @param {IFamilyMemberSynced=} [properties] Properties to set
81565
+ * @returns {FamilyMemberSynced} FamilyMemberSynced instance
81566
+ */
81567
+ FamilyMemberSynced.create = function create(properties) {
81568
+ return new FamilyMemberSynced(properties);
81569
+ };
81570
+
81571
+ /**
81572
+ * Encodes the specified FamilyMemberSynced message. Does not implicitly {@link FamilyMemberSynced.verify|verify} messages.
81573
+ * @function encode
81574
+ * @memberof FamilyMemberSynced
81575
+ * @static
81576
+ * @param {IFamilyMemberSynced} message FamilyMemberSynced message or plain object to encode
81577
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81578
+ * @returns {$protobuf.Writer} Writer
81579
+ */
81580
+ FamilyMemberSynced.encode = function encode(message, writer) {
81581
+ if (!writer)
81582
+ writer = $Writer.create();
81583
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81584
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
81585
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
81586
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
81587
+ if (message.userId != null && message.hasOwnProperty("userId"))
81588
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
81589
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
81590
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.userGroupId);
81591
+ if (message.email != null && message.hasOwnProperty("email"))
81592
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.email);
81593
+ if (message.token != null && message.hasOwnProperty("token"))
81594
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.token);
81595
+ if (message.role != null && message.hasOwnProperty("role"))
81596
+ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.role);
81597
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
81598
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.orgId);
81599
+ return writer;
81600
+ };
81601
+
81602
+ /**
81603
+ * Encodes the specified FamilyMemberSynced message, length delimited. Does not implicitly {@link FamilyMemberSynced.verify|verify} messages.
81604
+ * @function encodeDelimited
81605
+ * @memberof FamilyMemberSynced
81606
+ * @static
81607
+ * @param {IFamilyMemberSynced} message FamilyMemberSynced message or plain object to encode
81608
+ * @param {$protobuf.Writer} [writer] Writer to encode to
81609
+ * @returns {$protobuf.Writer} Writer
81610
+ */
81611
+ FamilyMemberSynced.encodeDelimited = function encodeDelimited(message, writer) {
81612
+ return this.encode(message, writer).ldelim();
81613
+ };
81614
+
81615
+ /**
81616
+ * Decodes a FamilyMemberSynced message from the specified reader or buffer.
81617
+ * @function decode
81618
+ * @memberof FamilyMemberSynced
81619
+ * @static
81620
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81621
+ * @param {number} [length] Message length if known beforehand
81622
+ * @returns {FamilyMemberSynced} FamilyMemberSynced
81623
+ * @throws {Error} If the payload is not a reader or valid buffer
81624
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81625
+ */
81626
+ FamilyMemberSynced.decode = function decode(reader, length) {
81627
+ if (!(reader instanceof $Reader))
81628
+ reader = $Reader.create(reader);
81629
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberSynced();
81630
+ while (reader.pos < end) {
81631
+ var tag = reader.uint32();
81632
+ switch (tag >>> 3) {
81633
+ case 1:
81634
+ message.timestamp = reader.uint64();
81635
+ break;
81636
+ case 2:
81637
+ message.userGroupEntryId = reader.uint32();
81638
+ break;
81639
+ case 3:
81640
+ message.userId = reader.string();
81641
+ break;
81642
+ case 4:
81643
+ message.userGroupId = reader.uint32();
81644
+ break;
81645
+ case 5:
81646
+ message.email = reader.string();
81647
+ break;
81648
+ case 6:
81649
+ message.token = reader.string();
81650
+ break;
81651
+ case 7:
81652
+ message.role = reader.int32();
81653
+ break;
81654
+ case 8:
81655
+ message.orgId = reader.int32();
81656
+ break;
81657
+ default:
81658
+ reader.skipType(tag & 7);
81659
+ break;
81660
+ }
81661
+ }
81662
+ return message;
81663
+ };
81664
+
81665
+ /**
81666
+ * Decodes a FamilyMemberSynced message from the specified reader or buffer, length delimited.
81667
+ * @function decodeDelimited
81668
+ * @memberof FamilyMemberSynced
81669
+ * @static
81670
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
81671
+ * @returns {FamilyMemberSynced} FamilyMemberSynced
81672
+ * @throws {Error} If the payload is not a reader or valid buffer
81673
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
81674
+ */
81675
+ FamilyMemberSynced.decodeDelimited = function decodeDelimited(reader) {
81676
+ if (!(reader instanceof $Reader))
81677
+ reader = new $Reader(reader);
81678
+ return this.decode(reader, reader.uint32());
81679
+ };
81680
+
81681
+ /**
81682
+ * Verifies a FamilyMemberSynced message.
81683
+ * @function verify
81684
+ * @memberof FamilyMemberSynced
81685
+ * @static
81686
+ * @param {Object.<string,*>} message Plain object to verify
81687
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
81688
+ */
81689
+ FamilyMemberSynced.verify = function verify(message) {
81690
+ if (typeof message !== "object" || message === null)
81691
+ return "object expected";
81692
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81693
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
81694
+ return "timestamp: integer|Long expected";
81695
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
81696
+ if (!$util.isInteger(message.userGroupEntryId))
81697
+ return "userGroupEntryId: integer expected";
81698
+ if (message.userId != null && message.hasOwnProperty("userId"))
81699
+ if (!$util.isString(message.userId))
81700
+ return "userId: string expected";
81701
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
81702
+ if (!$util.isInteger(message.userGroupId))
81703
+ return "userGroupId: integer expected";
81704
+ if (message.email != null && message.hasOwnProperty("email"))
81705
+ if (!$util.isString(message.email))
81706
+ return "email: string expected";
81707
+ if (message.token != null && message.hasOwnProperty("token"))
81708
+ if (!$util.isString(message.token))
81709
+ return "token: string expected";
81710
+ if (message.role != null && message.hasOwnProperty("role"))
81711
+ switch (message.role) {
81712
+ default:
81713
+ return "role: enum value expected";
81714
+ case 0:
81715
+ case 1:
81716
+ case 2:
81717
+ break;
81718
+ }
81719
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
81720
+ if (!$util.isInteger(message.orgId))
81721
+ return "orgId: integer expected";
81722
+ return null;
81723
+ };
81724
+
81725
+ /**
81726
+ * Creates a FamilyMemberSynced message from a plain object. Also converts values to their respective internal types.
81727
+ * @function fromObject
81728
+ * @memberof FamilyMemberSynced
81729
+ * @static
81730
+ * @param {Object.<string,*>} object Plain object
81731
+ * @returns {FamilyMemberSynced} FamilyMemberSynced
81732
+ */
81733
+ FamilyMemberSynced.fromObject = function fromObject(object) {
81734
+ if (object instanceof $root.FamilyMemberSynced)
81735
+ return object;
81736
+ var message = new $root.FamilyMemberSynced();
81737
+ if (object.timestamp != null)
81738
+ if ($util.Long)
81739
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
81740
+ else if (typeof object.timestamp === "string")
81741
+ message.timestamp = parseInt(object.timestamp, 10);
81742
+ else if (typeof object.timestamp === "number")
81743
+ message.timestamp = object.timestamp;
81744
+ else if (typeof object.timestamp === "object")
81745
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
81746
+ if (object.userGroupEntryId != null)
81747
+ message.userGroupEntryId = object.userGroupEntryId >>> 0;
81748
+ if (object.userId != null)
81749
+ message.userId = String(object.userId);
81750
+ if (object.userGroupId != null)
81751
+ message.userGroupId = object.userGroupId >>> 0;
81752
+ if (object.email != null)
81753
+ message.email = String(object.email);
81754
+ if (object.token != null)
81755
+ message.token = String(object.token);
81756
+ switch (object.role) {
81757
+ case "FAMILYPLAN_UNKNOWN":
81758
+ case 0:
81759
+ message.role = 0;
81760
+ break;
81761
+ case "FAMILYPLAN_OWNER":
81762
+ case 1:
81763
+ message.role = 1;
81764
+ break;
81765
+ case "FAMILYPLAN_MEMBER":
81766
+ case 2:
81767
+ message.role = 2;
81768
+ break;
81769
+ }
81770
+ if (object.orgId != null)
81771
+ message.orgId = object.orgId | 0;
81772
+ return message;
81773
+ };
81774
+
81775
+ /**
81776
+ * Creates a plain object from a FamilyMemberSynced message. Also converts values to other types if specified.
81777
+ * @function toObject
81778
+ * @memberof FamilyMemberSynced
81779
+ * @static
81780
+ * @param {FamilyMemberSynced} message FamilyMemberSynced
81781
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
81782
+ * @returns {Object.<string,*>} Plain object
81783
+ */
81784
+ FamilyMemberSynced.toObject = function toObject(message, options) {
81785
+ if (!options)
81786
+ options = {};
81787
+ var object = {};
81788
+ if (options.defaults) {
81789
+ if ($util.Long) {
81790
+ var long = new $util.Long(0, 0, true);
81791
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
81792
+ } else
81793
+ object.timestamp = options.longs === String ? "0" : 0;
81794
+ object.userGroupEntryId = 0;
81795
+ object.userId = "";
81796
+ object.userGroupId = 0;
81797
+ object.email = "";
81798
+ object.token = "";
81799
+ object.role = options.enums === String ? "FAMILYPLAN_UNKNOWN" : 0;
81800
+ object.orgId = 0;
81801
+ }
81802
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
81803
+ if (typeof message.timestamp === "number")
81804
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
81805
+ else
81806
+ 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;
81807
+ if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
81808
+ object.userGroupEntryId = message.userGroupEntryId;
81809
+ if (message.userId != null && message.hasOwnProperty("userId"))
81810
+ object.userId = message.userId;
81811
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
81812
+ object.userGroupId = message.userGroupId;
81813
+ if (message.email != null && message.hasOwnProperty("email"))
81814
+ object.email = message.email;
81815
+ if (message.token != null && message.hasOwnProperty("token"))
81816
+ object.token = message.token;
81817
+ if (message.role != null && message.hasOwnProperty("role"))
81818
+ object.role = options.enums === String ? $root.community.FamilyPlanRole[message.role] : message.role;
81819
+ if (message.orgId != null && message.hasOwnProperty("orgId"))
81820
+ object.orgId = message.orgId;
81821
+ return object;
81822
+ };
81823
+
81824
+ /**
81825
+ * Converts this FamilyMemberSynced to JSON.
81826
+ * @function toJSON
81827
+ * @memberof FamilyMemberSynced
81828
+ * @instance
81829
+ * @returns {Object.<string,*>} JSON object
81830
+ */
81831
+ FamilyMemberSynced.prototype.toJSON = function toJSON() {
81832
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
81833
+ };
81834
+
81835
+ return FamilyMemberSynced;
81836
+ })();
81837
+
81464
81838
  $root.FamilyMemberRejected = (function() {
81465
81839
 
81466
81840
  /**
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.311.0"
19
+ "version": "1.313.0"
20
20
  }