@headspace/protos-events 1.134.0 → 1.135.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
@@ -15865,3 +15865,99 @@ export class UserUnsubscribeRequested implements IUserUnsubscribeRequested {
15865
15865
  */
15866
15866
  public toJSON(): { [k: string]: any };
15867
15867
  }
15868
+
15869
+ /** Properties of a VirginPulseAccountLinked. */
15870
+ export interface IVirginPulseAccountLinked {
15871
+
15872
+ /** VirginPulseAccountLinked timestamp */
15873
+ timestamp?: (number|Long|null);
15874
+
15875
+ /** VirginPulseAccountLinked userId */
15876
+ userId?: (string|null);
15877
+ }
15878
+
15879
+ /** Represents a VirginPulseAccountLinked. */
15880
+ export class VirginPulseAccountLinked implements IVirginPulseAccountLinked {
15881
+
15882
+ /**
15883
+ * Constructs a new VirginPulseAccountLinked.
15884
+ * @param [properties] Properties to set
15885
+ */
15886
+ constructor(properties?: IVirginPulseAccountLinked);
15887
+
15888
+ /** VirginPulseAccountLinked timestamp. */
15889
+ public timestamp: (number|Long);
15890
+
15891
+ /** VirginPulseAccountLinked userId. */
15892
+ public userId: string;
15893
+
15894
+ /**
15895
+ * Creates a new VirginPulseAccountLinked instance using the specified properties.
15896
+ * @param [properties] Properties to set
15897
+ * @returns VirginPulseAccountLinked instance
15898
+ */
15899
+ public static create(properties?: IVirginPulseAccountLinked): VirginPulseAccountLinked;
15900
+
15901
+ /**
15902
+ * Encodes the specified VirginPulseAccountLinked message. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
15903
+ * @param message VirginPulseAccountLinked message or plain object to encode
15904
+ * @param [writer] Writer to encode to
15905
+ * @returns Writer
15906
+ */
15907
+ public static encode(message: IVirginPulseAccountLinked, writer?: $protobuf.Writer): $protobuf.Writer;
15908
+
15909
+ /**
15910
+ * Encodes the specified VirginPulseAccountLinked message, length delimited. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
15911
+ * @param message VirginPulseAccountLinked message or plain object to encode
15912
+ * @param [writer] Writer to encode to
15913
+ * @returns Writer
15914
+ */
15915
+ public static encodeDelimited(message: IVirginPulseAccountLinked, writer?: $protobuf.Writer): $protobuf.Writer;
15916
+
15917
+ /**
15918
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer.
15919
+ * @param reader Reader or buffer to decode from
15920
+ * @param [length] Message length if known beforehand
15921
+ * @returns VirginPulseAccountLinked
15922
+ * @throws {Error} If the payload is not a reader or valid buffer
15923
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15924
+ */
15925
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): VirginPulseAccountLinked;
15926
+
15927
+ /**
15928
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer, length delimited.
15929
+ * @param reader Reader or buffer to decode from
15930
+ * @returns VirginPulseAccountLinked
15931
+ * @throws {Error} If the payload is not a reader or valid buffer
15932
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
15933
+ */
15934
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): VirginPulseAccountLinked;
15935
+
15936
+ /**
15937
+ * Verifies a VirginPulseAccountLinked message.
15938
+ * @param message Plain object to verify
15939
+ * @returns `null` if valid, otherwise the reason why it is not
15940
+ */
15941
+ public static verify(message: { [k: string]: any }): (string|null);
15942
+
15943
+ /**
15944
+ * Creates a VirginPulseAccountLinked message from a plain object. Also converts values to their respective internal types.
15945
+ * @param object Plain object
15946
+ * @returns VirginPulseAccountLinked
15947
+ */
15948
+ public static fromObject(object: { [k: string]: any }): VirginPulseAccountLinked;
15949
+
15950
+ /**
15951
+ * Creates a plain object from a VirginPulseAccountLinked message. Also converts values to other types if specified.
15952
+ * @param message VirginPulseAccountLinked
15953
+ * @param [options] Conversion options
15954
+ * @returns Plain object
15955
+ */
15956
+ public static toObject(message: VirginPulseAccountLinked, options?: $protobuf.IConversionOptions): { [k: string]: any };
15957
+
15958
+ /**
15959
+ * Converts this VirginPulseAccountLinked to JSON.
15960
+ * @returns JSON object
15961
+ */
15962
+ public toJSON(): { [k: string]: any };
15963
+ }
package/lib/index.js CHANGED
@@ -43607,4 +43607,228 @@ $root.UserUnsubscribeRequested = (function() {
43607
43607
  return UserUnsubscribeRequested;
43608
43608
  })();
43609
43609
 
43610
+ $root.VirginPulseAccountLinked = (function() {
43611
+
43612
+ /**
43613
+ * Properties of a VirginPulseAccountLinked.
43614
+ * @exports IVirginPulseAccountLinked
43615
+ * @interface IVirginPulseAccountLinked
43616
+ * @property {number|Long|null} [timestamp] VirginPulseAccountLinked timestamp
43617
+ * @property {string|null} [userId] VirginPulseAccountLinked userId
43618
+ */
43619
+
43620
+ /**
43621
+ * Constructs a new VirginPulseAccountLinked.
43622
+ * @exports VirginPulseAccountLinked
43623
+ * @classdesc Represents a VirginPulseAccountLinked.
43624
+ * @implements IVirginPulseAccountLinked
43625
+ * @constructor
43626
+ * @param {IVirginPulseAccountLinked=} [properties] Properties to set
43627
+ */
43628
+ function VirginPulseAccountLinked(properties) {
43629
+ if (properties)
43630
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
43631
+ if (properties[keys[i]] != null)
43632
+ this[keys[i]] = properties[keys[i]];
43633
+ }
43634
+
43635
+ /**
43636
+ * VirginPulseAccountLinked timestamp.
43637
+ * @member {number|Long} timestamp
43638
+ * @memberof VirginPulseAccountLinked
43639
+ * @instance
43640
+ */
43641
+ VirginPulseAccountLinked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
43642
+
43643
+ /**
43644
+ * VirginPulseAccountLinked userId.
43645
+ * @member {string} userId
43646
+ * @memberof VirginPulseAccountLinked
43647
+ * @instance
43648
+ */
43649
+ VirginPulseAccountLinked.prototype.userId = "";
43650
+
43651
+ /**
43652
+ * Creates a new VirginPulseAccountLinked instance using the specified properties.
43653
+ * @function create
43654
+ * @memberof VirginPulseAccountLinked
43655
+ * @static
43656
+ * @param {IVirginPulseAccountLinked=} [properties] Properties to set
43657
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked instance
43658
+ */
43659
+ VirginPulseAccountLinked.create = function create(properties) {
43660
+ return new VirginPulseAccountLinked(properties);
43661
+ };
43662
+
43663
+ /**
43664
+ * Encodes the specified VirginPulseAccountLinked message. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
43665
+ * @function encode
43666
+ * @memberof VirginPulseAccountLinked
43667
+ * @static
43668
+ * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
43669
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43670
+ * @returns {$protobuf.Writer} Writer
43671
+ */
43672
+ VirginPulseAccountLinked.encode = function encode(message, writer) {
43673
+ if (!writer)
43674
+ writer = $Writer.create();
43675
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
43676
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
43677
+ if (message.userId != null && message.hasOwnProperty("userId"))
43678
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
43679
+ return writer;
43680
+ };
43681
+
43682
+ /**
43683
+ * Encodes the specified VirginPulseAccountLinked message, length delimited. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
43684
+ * @function encodeDelimited
43685
+ * @memberof VirginPulseAccountLinked
43686
+ * @static
43687
+ * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
43688
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43689
+ * @returns {$protobuf.Writer} Writer
43690
+ */
43691
+ VirginPulseAccountLinked.encodeDelimited = function encodeDelimited(message, writer) {
43692
+ return this.encode(message, writer).ldelim();
43693
+ };
43694
+
43695
+ /**
43696
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer.
43697
+ * @function decode
43698
+ * @memberof VirginPulseAccountLinked
43699
+ * @static
43700
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43701
+ * @param {number} [length] Message length if known beforehand
43702
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
43703
+ * @throws {Error} If the payload is not a reader or valid buffer
43704
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43705
+ */
43706
+ VirginPulseAccountLinked.decode = function decode(reader, length) {
43707
+ if (!(reader instanceof $Reader))
43708
+ reader = $Reader.create(reader);
43709
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VirginPulseAccountLinked();
43710
+ while (reader.pos < end) {
43711
+ var tag = reader.uint32();
43712
+ switch (tag >>> 3) {
43713
+ case 1:
43714
+ message.timestamp = reader.uint64();
43715
+ break;
43716
+ case 2:
43717
+ message.userId = reader.string();
43718
+ break;
43719
+ default:
43720
+ reader.skipType(tag & 7);
43721
+ break;
43722
+ }
43723
+ }
43724
+ return message;
43725
+ };
43726
+
43727
+ /**
43728
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer, length delimited.
43729
+ * @function decodeDelimited
43730
+ * @memberof VirginPulseAccountLinked
43731
+ * @static
43732
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43733
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
43734
+ * @throws {Error} If the payload is not a reader or valid buffer
43735
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43736
+ */
43737
+ VirginPulseAccountLinked.decodeDelimited = function decodeDelimited(reader) {
43738
+ if (!(reader instanceof $Reader))
43739
+ reader = new $Reader(reader);
43740
+ return this.decode(reader, reader.uint32());
43741
+ };
43742
+
43743
+ /**
43744
+ * Verifies a VirginPulseAccountLinked message.
43745
+ * @function verify
43746
+ * @memberof VirginPulseAccountLinked
43747
+ * @static
43748
+ * @param {Object.<string,*>} message Plain object to verify
43749
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
43750
+ */
43751
+ VirginPulseAccountLinked.verify = function verify(message) {
43752
+ if (typeof message !== "object" || message === null)
43753
+ return "object expected";
43754
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
43755
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
43756
+ return "timestamp: integer|Long expected";
43757
+ if (message.userId != null && message.hasOwnProperty("userId"))
43758
+ if (!$util.isString(message.userId))
43759
+ return "userId: string expected";
43760
+ return null;
43761
+ };
43762
+
43763
+ /**
43764
+ * Creates a VirginPulseAccountLinked message from a plain object. Also converts values to their respective internal types.
43765
+ * @function fromObject
43766
+ * @memberof VirginPulseAccountLinked
43767
+ * @static
43768
+ * @param {Object.<string,*>} object Plain object
43769
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
43770
+ */
43771
+ VirginPulseAccountLinked.fromObject = function fromObject(object) {
43772
+ if (object instanceof $root.VirginPulseAccountLinked)
43773
+ return object;
43774
+ var message = new $root.VirginPulseAccountLinked();
43775
+ if (object.timestamp != null)
43776
+ if ($util.Long)
43777
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
43778
+ else if (typeof object.timestamp === "string")
43779
+ message.timestamp = parseInt(object.timestamp, 10);
43780
+ else if (typeof object.timestamp === "number")
43781
+ message.timestamp = object.timestamp;
43782
+ else if (typeof object.timestamp === "object")
43783
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
43784
+ if (object.userId != null)
43785
+ message.userId = String(object.userId);
43786
+ return message;
43787
+ };
43788
+
43789
+ /**
43790
+ * Creates a plain object from a VirginPulseAccountLinked message. Also converts values to other types if specified.
43791
+ * @function toObject
43792
+ * @memberof VirginPulseAccountLinked
43793
+ * @static
43794
+ * @param {VirginPulseAccountLinked} message VirginPulseAccountLinked
43795
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43796
+ * @returns {Object.<string,*>} Plain object
43797
+ */
43798
+ VirginPulseAccountLinked.toObject = function toObject(message, options) {
43799
+ if (!options)
43800
+ options = {};
43801
+ var object = {};
43802
+ if (options.defaults) {
43803
+ if ($util.Long) {
43804
+ var long = new $util.Long(0, 0, true);
43805
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
43806
+ } else
43807
+ object.timestamp = options.longs === String ? "0" : 0;
43808
+ object.userId = "";
43809
+ }
43810
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
43811
+ if (typeof message.timestamp === "number")
43812
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
43813
+ else
43814
+ 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;
43815
+ if (message.userId != null && message.hasOwnProperty("userId"))
43816
+ object.userId = message.userId;
43817
+ return object;
43818
+ };
43819
+
43820
+ /**
43821
+ * Converts this VirginPulseAccountLinked to JSON.
43822
+ * @function toJSON
43823
+ * @memberof VirginPulseAccountLinked
43824
+ * @instance
43825
+ * @returns {Object.<string,*>} JSON object
43826
+ */
43827
+ VirginPulseAccountLinked.prototype.toJSON = function toJSON() {
43828
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43829
+ };
43830
+
43831
+ return VirginPulseAccountLinked;
43832
+ })();
43833
+
43610
43834
  module.exports = $root;
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.134.0"
19
+ "version": "1.135.0"
20
20
  }