@headspace/protos-events 1.238.0 → 1.239.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
@@ -28995,6 +28995,108 @@ export class UserConsentUpdated implements IUserConsentUpdated {
28995
28995
  public toJSON(): { [k: string]: any };
28996
28996
  }
28997
28997
 
28998
+ /** Properties of a UserOnboardingStepCompleted. */
28999
+ export interface IUserOnboardingStepCompleted {
29000
+
29001
+ /** UserOnboardingStepCompleted userId */
29002
+ userId?: (string|null);
29003
+
29004
+ /** UserOnboardingStepCompleted pushMessageBody */
29005
+ pushMessageBody?: (string|null);
29006
+
29007
+ /** UserOnboardingStepCompleted pushScheduledAt */
29008
+ pushScheduledAt?: (number|Long|null);
29009
+ }
29010
+
29011
+ /** Represents a UserOnboardingStepCompleted. */
29012
+ export class UserOnboardingStepCompleted implements IUserOnboardingStepCompleted {
29013
+
29014
+ /**
29015
+ * Constructs a new UserOnboardingStepCompleted.
29016
+ * @param [properties] Properties to set
29017
+ */
29018
+ constructor(properties?: IUserOnboardingStepCompleted);
29019
+
29020
+ /** UserOnboardingStepCompleted userId. */
29021
+ public userId: string;
29022
+
29023
+ /** UserOnboardingStepCompleted pushMessageBody. */
29024
+ public pushMessageBody: string;
29025
+
29026
+ /** UserOnboardingStepCompleted pushScheduledAt. */
29027
+ public pushScheduledAt: (number|Long);
29028
+
29029
+ /**
29030
+ * Creates a new UserOnboardingStepCompleted instance using the specified properties.
29031
+ * @param [properties] Properties to set
29032
+ * @returns UserOnboardingStepCompleted instance
29033
+ */
29034
+ public static create(properties?: IUserOnboardingStepCompleted): UserOnboardingStepCompleted;
29035
+
29036
+ /**
29037
+ * Encodes the specified UserOnboardingStepCompleted message. Does not implicitly {@link UserOnboardingStepCompleted.verify|verify} messages.
29038
+ * @param message UserOnboardingStepCompleted message or plain object to encode
29039
+ * @param [writer] Writer to encode to
29040
+ * @returns Writer
29041
+ */
29042
+ public static encode(message: IUserOnboardingStepCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
29043
+
29044
+ /**
29045
+ * Encodes the specified UserOnboardingStepCompleted message, length delimited. Does not implicitly {@link UserOnboardingStepCompleted.verify|verify} messages.
29046
+ * @param message UserOnboardingStepCompleted message or plain object to encode
29047
+ * @param [writer] Writer to encode to
29048
+ * @returns Writer
29049
+ */
29050
+ public static encodeDelimited(message: IUserOnboardingStepCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
29051
+
29052
+ /**
29053
+ * Decodes a UserOnboardingStepCompleted message from the specified reader or buffer.
29054
+ * @param reader Reader or buffer to decode from
29055
+ * @param [length] Message length if known beforehand
29056
+ * @returns UserOnboardingStepCompleted
29057
+ * @throws {Error} If the payload is not a reader or valid buffer
29058
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29059
+ */
29060
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingStepCompleted;
29061
+
29062
+ /**
29063
+ * Decodes a UserOnboardingStepCompleted message from the specified reader or buffer, length delimited.
29064
+ * @param reader Reader or buffer to decode from
29065
+ * @returns UserOnboardingStepCompleted
29066
+ * @throws {Error} If the payload is not a reader or valid buffer
29067
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29068
+ */
29069
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingStepCompleted;
29070
+
29071
+ /**
29072
+ * Verifies a UserOnboardingStepCompleted message.
29073
+ * @param message Plain object to verify
29074
+ * @returns `null` if valid, otherwise the reason why it is not
29075
+ */
29076
+ public static verify(message: { [k: string]: any }): (string|null);
29077
+
29078
+ /**
29079
+ * Creates a UserOnboardingStepCompleted message from a plain object. Also converts values to their respective internal types.
29080
+ * @param object Plain object
29081
+ * @returns UserOnboardingStepCompleted
29082
+ */
29083
+ public static fromObject(object: { [k: string]: any }): UserOnboardingStepCompleted;
29084
+
29085
+ /**
29086
+ * Creates a plain object from a UserOnboardingStepCompleted message. Also converts values to other types if specified.
29087
+ * @param message UserOnboardingStepCompleted
29088
+ * @param [options] Conversion options
29089
+ * @returns Plain object
29090
+ */
29091
+ public static toObject(message: UserOnboardingStepCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
29092
+
29093
+ /**
29094
+ * Converts this UserOnboardingStepCompleted to JSON.
29095
+ * @returns JSON object
29096
+ */
29097
+ public toJSON(): { [k: string]: any };
29098
+ }
29099
+
28998
29100
  /** Properties of a VirginPulseAccountLinked. */
28999
29101
  export interface IVirginPulseAccountLinked {
29000
29102
 
package/lib/index.js CHANGED
@@ -82537,6 +82537,252 @@ $root.UserConsentUpdated = (function() {
82537
82537
  return UserConsentUpdated;
82538
82538
  })();
82539
82539
 
82540
+ $root.UserOnboardingStepCompleted = (function() {
82541
+
82542
+ /**
82543
+ * Properties of a UserOnboardingStepCompleted.
82544
+ * @exports IUserOnboardingStepCompleted
82545
+ * @interface IUserOnboardingStepCompleted
82546
+ * @property {string|null} [userId] UserOnboardingStepCompleted userId
82547
+ * @property {string|null} [pushMessageBody] UserOnboardingStepCompleted pushMessageBody
82548
+ * @property {number|Long|null} [pushScheduledAt] UserOnboardingStepCompleted pushScheduledAt
82549
+ */
82550
+
82551
+ /**
82552
+ * Constructs a new UserOnboardingStepCompleted.
82553
+ * @exports UserOnboardingStepCompleted
82554
+ * @classdesc Represents a UserOnboardingStepCompleted.
82555
+ * @implements IUserOnboardingStepCompleted
82556
+ * @constructor
82557
+ * @param {IUserOnboardingStepCompleted=} [properties] Properties to set
82558
+ */
82559
+ function UserOnboardingStepCompleted(properties) {
82560
+ if (properties)
82561
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
82562
+ if (properties[keys[i]] != null)
82563
+ this[keys[i]] = properties[keys[i]];
82564
+ }
82565
+
82566
+ /**
82567
+ * UserOnboardingStepCompleted userId.
82568
+ * @member {string} userId
82569
+ * @memberof UserOnboardingStepCompleted
82570
+ * @instance
82571
+ */
82572
+ UserOnboardingStepCompleted.prototype.userId = "";
82573
+
82574
+ /**
82575
+ * UserOnboardingStepCompleted pushMessageBody.
82576
+ * @member {string} pushMessageBody
82577
+ * @memberof UserOnboardingStepCompleted
82578
+ * @instance
82579
+ */
82580
+ UserOnboardingStepCompleted.prototype.pushMessageBody = "";
82581
+
82582
+ /**
82583
+ * UserOnboardingStepCompleted pushScheduledAt.
82584
+ * @member {number|Long} pushScheduledAt
82585
+ * @memberof UserOnboardingStepCompleted
82586
+ * @instance
82587
+ */
82588
+ UserOnboardingStepCompleted.prototype.pushScheduledAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
82589
+
82590
+ /**
82591
+ * Creates a new UserOnboardingStepCompleted instance using the specified properties.
82592
+ * @function create
82593
+ * @memberof UserOnboardingStepCompleted
82594
+ * @static
82595
+ * @param {IUserOnboardingStepCompleted=} [properties] Properties to set
82596
+ * @returns {UserOnboardingStepCompleted} UserOnboardingStepCompleted instance
82597
+ */
82598
+ UserOnboardingStepCompleted.create = function create(properties) {
82599
+ return new UserOnboardingStepCompleted(properties);
82600
+ };
82601
+
82602
+ /**
82603
+ * Encodes the specified UserOnboardingStepCompleted message. Does not implicitly {@link UserOnboardingStepCompleted.verify|verify} messages.
82604
+ * @function encode
82605
+ * @memberof UserOnboardingStepCompleted
82606
+ * @static
82607
+ * @param {IUserOnboardingStepCompleted} message UserOnboardingStepCompleted message or plain object to encode
82608
+ * @param {$protobuf.Writer} [writer] Writer to encode to
82609
+ * @returns {$protobuf.Writer} Writer
82610
+ */
82611
+ UserOnboardingStepCompleted.encode = function encode(message, writer) {
82612
+ if (!writer)
82613
+ writer = $Writer.create();
82614
+ if (message.userId != null && message.hasOwnProperty("userId"))
82615
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
82616
+ if (message.pushMessageBody != null && message.hasOwnProperty("pushMessageBody"))
82617
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.pushMessageBody);
82618
+ if (message.pushScheduledAt != null && message.hasOwnProperty("pushScheduledAt"))
82619
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.pushScheduledAt);
82620
+ return writer;
82621
+ };
82622
+
82623
+ /**
82624
+ * Encodes the specified UserOnboardingStepCompleted message, length delimited. Does not implicitly {@link UserOnboardingStepCompleted.verify|verify} messages.
82625
+ * @function encodeDelimited
82626
+ * @memberof UserOnboardingStepCompleted
82627
+ * @static
82628
+ * @param {IUserOnboardingStepCompleted} message UserOnboardingStepCompleted message or plain object to encode
82629
+ * @param {$protobuf.Writer} [writer] Writer to encode to
82630
+ * @returns {$protobuf.Writer} Writer
82631
+ */
82632
+ UserOnboardingStepCompleted.encodeDelimited = function encodeDelimited(message, writer) {
82633
+ return this.encode(message, writer).ldelim();
82634
+ };
82635
+
82636
+ /**
82637
+ * Decodes a UserOnboardingStepCompleted message from the specified reader or buffer.
82638
+ * @function decode
82639
+ * @memberof UserOnboardingStepCompleted
82640
+ * @static
82641
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
82642
+ * @param {number} [length] Message length if known beforehand
82643
+ * @returns {UserOnboardingStepCompleted} UserOnboardingStepCompleted
82644
+ * @throws {Error} If the payload is not a reader or valid buffer
82645
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
82646
+ */
82647
+ UserOnboardingStepCompleted.decode = function decode(reader, length) {
82648
+ if (!(reader instanceof $Reader))
82649
+ reader = $Reader.create(reader);
82650
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserOnboardingStepCompleted();
82651
+ while (reader.pos < end) {
82652
+ var tag = reader.uint32();
82653
+ switch (tag >>> 3) {
82654
+ case 1:
82655
+ message.userId = reader.string();
82656
+ break;
82657
+ case 2:
82658
+ message.pushMessageBody = reader.string();
82659
+ break;
82660
+ case 3:
82661
+ message.pushScheduledAt = reader.uint64();
82662
+ break;
82663
+ default:
82664
+ reader.skipType(tag & 7);
82665
+ break;
82666
+ }
82667
+ }
82668
+ return message;
82669
+ };
82670
+
82671
+ /**
82672
+ * Decodes a UserOnboardingStepCompleted message from the specified reader or buffer, length delimited.
82673
+ * @function decodeDelimited
82674
+ * @memberof UserOnboardingStepCompleted
82675
+ * @static
82676
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
82677
+ * @returns {UserOnboardingStepCompleted} UserOnboardingStepCompleted
82678
+ * @throws {Error} If the payload is not a reader or valid buffer
82679
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
82680
+ */
82681
+ UserOnboardingStepCompleted.decodeDelimited = function decodeDelimited(reader) {
82682
+ if (!(reader instanceof $Reader))
82683
+ reader = new $Reader(reader);
82684
+ return this.decode(reader, reader.uint32());
82685
+ };
82686
+
82687
+ /**
82688
+ * Verifies a UserOnboardingStepCompleted message.
82689
+ * @function verify
82690
+ * @memberof UserOnboardingStepCompleted
82691
+ * @static
82692
+ * @param {Object.<string,*>} message Plain object to verify
82693
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
82694
+ */
82695
+ UserOnboardingStepCompleted.verify = function verify(message) {
82696
+ if (typeof message !== "object" || message === null)
82697
+ return "object expected";
82698
+ if (message.userId != null && message.hasOwnProperty("userId"))
82699
+ if (!$util.isString(message.userId))
82700
+ return "userId: string expected";
82701
+ if (message.pushMessageBody != null && message.hasOwnProperty("pushMessageBody"))
82702
+ if (!$util.isString(message.pushMessageBody))
82703
+ return "pushMessageBody: string expected";
82704
+ if (message.pushScheduledAt != null && message.hasOwnProperty("pushScheduledAt"))
82705
+ if (!$util.isInteger(message.pushScheduledAt) && !(message.pushScheduledAt && $util.isInteger(message.pushScheduledAt.low) && $util.isInteger(message.pushScheduledAt.high)))
82706
+ return "pushScheduledAt: integer|Long expected";
82707
+ return null;
82708
+ };
82709
+
82710
+ /**
82711
+ * Creates a UserOnboardingStepCompleted message from a plain object. Also converts values to their respective internal types.
82712
+ * @function fromObject
82713
+ * @memberof UserOnboardingStepCompleted
82714
+ * @static
82715
+ * @param {Object.<string,*>} object Plain object
82716
+ * @returns {UserOnboardingStepCompleted} UserOnboardingStepCompleted
82717
+ */
82718
+ UserOnboardingStepCompleted.fromObject = function fromObject(object) {
82719
+ if (object instanceof $root.UserOnboardingStepCompleted)
82720
+ return object;
82721
+ var message = new $root.UserOnboardingStepCompleted();
82722
+ if (object.userId != null)
82723
+ message.userId = String(object.userId);
82724
+ if (object.pushMessageBody != null)
82725
+ message.pushMessageBody = String(object.pushMessageBody);
82726
+ if (object.pushScheduledAt != null)
82727
+ if ($util.Long)
82728
+ (message.pushScheduledAt = $util.Long.fromValue(object.pushScheduledAt)).unsigned = true;
82729
+ else if (typeof object.pushScheduledAt === "string")
82730
+ message.pushScheduledAt = parseInt(object.pushScheduledAt, 10);
82731
+ else if (typeof object.pushScheduledAt === "number")
82732
+ message.pushScheduledAt = object.pushScheduledAt;
82733
+ else if (typeof object.pushScheduledAt === "object")
82734
+ message.pushScheduledAt = new $util.LongBits(object.pushScheduledAt.low >>> 0, object.pushScheduledAt.high >>> 0).toNumber(true);
82735
+ return message;
82736
+ };
82737
+
82738
+ /**
82739
+ * Creates a plain object from a UserOnboardingStepCompleted message. Also converts values to other types if specified.
82740
+ * @function toObject
82741
+ * @memberof UserOnboardingStepCompleted
82742
+ * @static
82743
+ * @param {UserOnboardingStepCompleted} message UserOnboardingStepCompleted
82744
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
82745
+ * @returns {Object.<string,*>} Plain object
82746
+ */
82747
+ UserOnboardingStepCompleted.toObject = function toObject(message, options) {
82748
+ if (!options)
82749
+ options = {};
82750
+ var object = {};
82751
+ if (options.defaults) {
82752
+ object.userId = "";
82753
+ object.pushMessageBody = "";
82754
+ if ($util.Long) {
82755
+ var long = new $util.Long(0, 0, true);
82756
+ object.pushScheduledAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
82757
+ } else
82758
+ object.pushScheduledAt = options.longs === String ? "0" : 0;
82759
+ }
82760
+ if (message.userId != null && message.hasOwnProperty("userId"))
82761
+ object.userId = message.userId;
82762
+ if (message.pushMessageBody != null && message.hasOwnProperty("pushMessageBody"))
82763
+ object.pushMessageBody = message.pushMessageBody;
82764
+ if (message.pushScheduledAt != null && message.hasOwnProperty("pushScheduledAt"))
82765
+ if (typeof message.pushScheduledAt === "number")
82766
+ object.pushScheduledAt = options.longs === String ? String(message.pushScheduledAt) : message.pushScheduledAt;
82767
+ else
82768
+ object.pushScheduledAt = options.longs === String ? $util.Long.prototype.toString.call(message.pushScheduledAt) : options.longs === Number ? new $util.LongBits(message.pushScheduledAt.low >>> 0, message.pushScheduledAt.high >>> 0).toNumber(true) : message.pushScheduledAt;
82769
+ return object;
82770
+ };
82771
+
82772
+ /**
82773
+ * Converts this UserOnboardingStepCompleted to JSON.
82774
+ * @function toJSON
82775
+ * @memberof UserOnboardingStepCompleted
82776
+ * @instance
82777
+ * @returns {Object.<string,*>} JSON object
82778
+ */
82779
+ UserOnboardingStepCompleted.prototype.toJSON = function toJSON() {
82780
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
82781
+ };
82782
+
82783
+ return UserOnboardingStepCompleted;
82784
+ })();
82785
+
82540
82786
  $root.VirginPulseAccountLinked = (function() {
82541
82787
 
82542
82788
  /**
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.238.0"
19
+ "version": "1.239.0"
20
20
  }