@headspace/protos-events 1.593.0 → 1.594.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
@@ -48651,6 +48651,108 @@ export class UserOnboardingTopicResponses implements IUserOnboardingTopicRespons
48651
48651
  public toJSON(): { [k: string]: any };
48652
48652
  }
48653
48653
 
48654
+ /** Properties of an OnboardingCompleted. */
48655
+ export interface IOnboardingCompleted {
48656
+
48657
+ /** OnboardingCompleted hsUserId */
48658
+ hsUserId?: (string|null);
48659
+
48660
+ /** OnboardingCompleted gingerUserId */
48661
+ gingerUserId?: (number|null);
48662
+
48663
+ /** OnboardingCompleted completedAtIsoDate */
48664
+ completedAtIsoDate?: (string|null);
48665
+ }
48666
+
48667
+ /** Represents an OnboardingCompleted. */
48668
+ export class OnboardingCompleted implements IOnboardingCompleted {
48669
+
48670
+ /**
48671
+ * Constructs a new OnboardingCompleted.
48672
+ * @param [properties] Properties to set
48673
+ */
48674
+ constructor(properties?: IOnboardingCompleted);
48675
+
48676
+ /** OnboardingCompleted hsUserId. */
48677
+ public hsUserId: string;
48678
+
48679
+ /** OnboardingCompleted gingerUserId. */
48680
+ public gingerUserId: number;
48681
+
48682
+ /** OnboardingCompleted completedAtIsoDate. */
48683
+ public completedAtIsoDate: string;
48684
+
48685
+ /**
48686
+ * Creates a new OnboardingCompleted instance using the specified properties.
48687
+ * @param [properties] Properties to set
48688
+ * @returns OnboardingCompleted instance
48689
+ */
48690
+ public static create(properties?: IOnboardingCompleted): OnboardingCompleted;
48691
+
48692
+ /**
48693
+ * Encodes the specified OnboardingCompleted message. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
48694
+ * @param message OnboardingCompleted message or plain object to encode
48695
+ * @param [writer] Writer to encode to
48696
+ * @returns Writer
48697
+ */
48698
+ public static encode(message: IOnboardingCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
48699
+
48700
+ /**
48701
+ * Encodes the specified OnboardingCompleted message, length delimited. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
48702
+ * @param message OnboardingCompleted message or plain object to encode
48703
+ * @param [writer] Writer to encode to
48704
+ * @returns Writer
48705
+ */
48706
+ public static encodeDelimited(message: IOnboardingCompleted, writer?: $protobuf.Writer): $protobuf.Writer;
48707
+
48708
+ /**
48709
+ * Decodes an OnboardingCompleted message from the specified reader or buffer.
48710
+ * @param reader Reader or buffer to decode from
48711
+ * @param [length] Message length if known beforehand
48712
+ * @returns OnboardingCompleted
48713
+ * @throws {Error} If the payload is not a reader or valid buffer
48714
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48715
+ */
48716
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): OnboardingCompleted;
48717
+
48718
+ /**
48719
+ * Decodes an OnboardingCompleted message from the specified reader or buffer, length delimited.
48720
+ * @param reader Reader or buffer to decode from
48721
+ * @returns OnboardingCompleted
48722
+ * @throws {Error} If the payload is not a reader or valid buffer
48723
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48724
+ */
48725
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): OnboardingCompleted;
48726
+
48727
+ /**
48728
+ * Verifies an OnboardingCompleted message.
48729
+ * @param message Plain object to verify
48730
+ * @returns `null` if valid, otherwise the reason why it is not
48731
+ */
48732
+ public static verify(message: { [k: string]: any }): (string|null);
48733
+
48734
+ /**
48735
+ * Creates an OnboardingCompleted message from a plain object. Also converts values to their respective internal types.
48736
+ * @param object Plain object
48737
+ * @returns OnboardingCompleted
48738
+ */
48739
+ public static fromObject(object: { [k: string]: any }): OnboardingCompleted;
48740
+
48741
+ /**
48742
+ * Creates a plain object from an OnboardingCompleted message. Also converts values to other types if specified.
48743
+ * @param message OnboardingCompleted
48744
+ * @param [options] Conversion options
48745
+ * @returns Plain object
48746
+ */
48747
+ public static toObject(message: OnboardingCompleted, options?: $protobuf.IConversionOptions): { [k: string]: any };
48748
+
48749
+ /**
48750
+ * Converts this OnboardingCompleted to JSON.
48751
+ * @returns JSON object
48752
+ */
48753
+ public toJSON(): { [k: string]: any };
48754
+ }
48755
+
48654
48756
  /** Properties of a WakeupPlaylistCreated. */
48655
48757
  export interface IWakeupPlaylistCreated {
48656
48758
 
package/lib/index.js CHANGED
@@ -139788,6 +139788,238 @@ $root.UserOnboardingTopicResponses = (function() {
139788
139788
  return UserOnboardingTopicResponses;
139789
139789
  })();
139790
139790
 
139791
+ $root.OnboardingCompleted = (function() {
139792
+
139793
+ /**
139794
+ * Properties of an OnboardingCompleted.
139795
+ * @name IOnboardingCompleted
139796
+ * @interface IOnboardingCompleted
139797
+ * @property {string|null} [hsUserId] OnboardingCompleted hsUserId
139798
+ * @property {number|null} [gingerUserId] OnboardingCompleted gingerUserId
139799
+ * @property {string|null} [completedAtIsoDate] OnboardingCompleted completedAtIsoDate
139800
+ */
139801
+
139802
+ /**
139803
+ * Constructs a new OnboardingCompleted.
139804
+ * @name OnboardingCompleted
139805
+ * @classdesc Represents an OnboardingCompleted.
139806
+ * @implements IOnboardingCompleted
139807
+ * @constructor
139808
+ * @param {IOnboardingCompleted=} [properties] Properties to set
139809
+ */
139810
+ function OnboardingCompleted(properties) {
139811
+ if (properties)
139812
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
139813
+ if (properties[keys[i]] != null)
139814
+ this[keys[i]] = properties[keys[i]];
139815
+ }
139816
+
139817
+ /**
139818
+ * OnboardingCompleted hsUserId.
139819
+ * @member {string} hsUserId
139820
+ * @memberof OnboardingCompleted
139821
+ * @instance
139822
+ */
139823
+ OnboardingCompleted.prototype.hsUserId = "";
139824
+
139825
+ /**
139826
+ * OnboardingCompleted gingerUserId.
139827
+ * @member {number} gingerUserId
139828
+ * @memberof OnboardingCompleted
139829
+ * @instance
139830
+ */
139831
+ OnboardingCompleted.prototype.gingerUserId = 0;
139832
+
139833
+ /**
139834
+ * OnboardingCompleted completedAtIsoDate.
139835
+ * @member {string} completedAtIsoDate
139836
+ * @memberof OnboardingCompleted
139837
+ * @instance
139838
+ */
139839
+ OnboardingCompleted.prototype.completedAtIsoDate = "";
139840
+
139841
+ /**
139842
+ * Creates a new OnboardingCompleted instance using the specified properties.
139843
+ * @function create
139844
+ * @memberof OnboardingCompleted
139845
+ * @static
139846
+ * @param {IOnboardingCompleted=} [properties] Properties to set
139847
+ * @returns {OnboardingCompleted} OnboardingCompleted instance
139848
+ */
139849
+ OnboardingCompleted.create = function create(properties) {
139850
+ return new OnboardingCompleted(properties);
139851
+ };
139852
+
139853
+ /**
139854
+ * Encodes the specified OnboardingCompleted message. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
139855
+ * @function encode
139856
+ * @memberof OnboardingCompleted
139857
+ * @static
139858
+ * @param {IOnboardingCompleted} message OnboardingCompleted message or plain object to encode
139859
+ * @param {$protobuf.Writer} [writer] Writer to encode to
139860
+ * @returns {$protobuf.Writer} Writer
139861
+ */
139862
+ OnboardingCompleted.encode = function encode(message, writer) {
139863
+ if (!writer)
139864
+ writer = $Writer.create();
139865
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
139866
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
139867
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
139868
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.gingerUserId);
139869
+ if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
139870
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.completedAtIsoDate);
139871
+ return writer;
139872
+ };
139873
+
139874
+ /**
139875
+ * Encodes the specified OnboardingCompleted message, length delimited. Does not implicitly {@link OnboardingCompleted.verify|verify} messages.
139876
+ * @function encodeDelimited
139877
+ * @memberof OnboardingCompleted
139878
+ * @static
139879
+ * @param {IOnboardingCompleted} message OnboardingCompleted message or plain object to encode
139880
+ * @param {$protobuf.Writer} [writer] Writer to encode to
139881
+ * @returns {$protobuf.Writer} Writer
139882
+ */
139883
+ OnboardingCompleted.encodeDelimited = function encodeDelimited(message, writer) {
139884
+ return this.encode(message, writer).ldelim();
139885
+ };
139886
+
139887
+ /**
139888
+ * Decodes an OnboardingCompleted message from the specified reader or buffer.
139889
+ * @function decode
139890
+ * @memberof OnboardingCompleted
139891
+ * @static
139892
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
139893
+ * @param {number} [length] Message length if known beforehand
139894
+ * @returns {OnboardingCompleted} OnboardingCompleted
139895
+ * @throws {Error} If the payload is not a reader or valid buffer
139896
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
139897
+ */
139898
+ OnboardingCompleted.decode = function decode(reader, length) {
139899
+ if (!(reader instanceof $Reader))
139900
+ reader = $Reader.create(reader);
139901
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OnboardingCompleted();
139902
+ while (reader.pos < end) {
139903
+ var tag = reader.uint32();
139904
+ switch (tag >>> 3) {
139905
+ case 1:
139906
+ message.hsUserId = reader.string();
139907
+ break;
139908
+ case 2:
139909
+ message.gingerUserId = reader.uint32();
139910
+ break;
139911
+ case 3:
139912
+ message.completedAtIsoDate = reader.string();
139913
+ break;
139914
+ default:
139915
+ reader.skipType(tag & 7);
139916
+ break;
139917
+ }
139918
+ }
139919
+ return message;
139920
+ };
139921
+
139922
+ /**
139923
+ * Decodes an OnboardingCompleted message from the specified reader or buffer, length delimited.
139924
+ * @function decodeDelimited
139925
+ * @memberof OnboardingCompleted
139926
+ * @static
139927
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
139928
+ * @returns {OnboardingCompleted} OnboardingCompleted
139929
+ * @throws {Error} If the payload is not a reader or valid buffer
139930
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
139931
+ */
139932
+ OnboardingCompleted.decodeDelimited = function decodeDelimited(reader) {
139933
+ if (!(reader instanceof $Reader))
139934
+ reader = new $Reader(reader);
139935
+ return this.decode(reader, reader.uint32());
139936
+ };
139937
+
139938
+ /**
139939
+ * Verifies an OnboardingCompleted message.
139940
+ * @function verify
139941
+ * @memberof OnboardingCompleted
139942
+ * @static
139943
+ * @param {Object.<string,*>} message Plain object to verify
139944
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
139945
+ */
139946
+ OnboardingCompleted.verify = function verify(message) {
139947
+ if (typeof message !== "object" || message === null)
139948
+ return "object expected";
139949
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
139950
+ if (!$util.isString(message.hsUserId))
139951
+ return "hsUserId: string expected";
139952
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
139953
+ if (!$util.isInteger(message.gingerUserId))
139954
+ return "gingerUserId: integer expected";
139955
+ if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
139956
+ if (!$util.isString(message.completedAtIsoDate))
139957
+ return "completedAtIsoDate: string expected";
139958
+ return null;
139959
+ };
139960
+
139961
+ /**
139962
+ * Creates an OnboardingCompleted message from a plain object. Also converts values to their respective internal types.
139963
+ * @function fromObject
139964
+ * @memberof OnboardingCompleted
139965
+ * @static
139966
+ * @param {Object.<string,*>} object Plain object
139967
+ * @returns {OnboardingCompleted} OnboardingCompleted
139968
+ */
139969
+ OnboardingCompleted.fromObject = function fromObject(object) {
139970
+ if (object instanceof $root.OnboardingCompleted)
139971
+ return object;
139972
+ var message = new $root.OnboardingCompleted();
139973
+ if (object.hsUserId != null)
139974
+ message.hsUserId = String(object.hsUserId);
139975
+ if (object.gingerUserId != null)
139976
+ message.gingerUserId = object.gingerUserId >>> 0;
139977
+ if (object.completedAtIsoDate != null)
139978
+ message.completedAtIsoDate = String(object.completedAtIsoDate);
139979
+ return message;
139980
+ };
139981
+
139982
+ /**
139983
+ * Creates a plain object from an OnboardingCompleted message. Also converts values to other types if specified.
139984
+ * @function toObject
139985
+ * @memberof OnboardingCompleted
139986
+ * @static
139987
+ * @param {OnboardingCompleted} message OnboardingCompleted
139988
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
139989
+ * @returns {Object.<string,*>} Plain object
139990
+ */
139991
+ OnboardingCompleted.toObject = function toObject(message, options) {
139992
+ if (!options)
139993
+ options = {};
139994
+ var object = {};
139995
+ if (options.defaults) {
139996
+ object.hsUserId = "";
139997
+ object.gingerUserId = 0;
139998
+ object.completedAtIsoDate = "";
139999
+ }
140000
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140001
+ object.hsUserId = message.hsUserId;
140002
+ if (message.gingerUserId != null && message.hasOwnProperty("gingerUserId"))
140003
+ object.gingerUserId = message.gingerUserId;
140004
+ if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
140005
+ object.completedAtIsoDate = message.completedAtIsoDate;
140006
+ return object;
140007
+ };
140008
+
140009
+ /**
140010
+ * Converts this OnboardingCompleted to JSON.
140011
+ * @function toJSON
140012
+ * @memberof OnboardingCompleted
140013
+ * @instance
140014
+ * @returns {Object.<string,*>} JSON object
140015
+ */
140016
+ OnboardingCompleted.prototype.toJSON = function toJSON() {
140017
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140018
+ };
140019
+
140020
+ return OnboardingCompleted;
140021
+ })();
140022
+
139791
140023
  $root.WakeupPlaylistCreated = (function() {
139792
140024
 
139793
140025
  /**
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.593.0"
19
+ "version": "1.594.0"
20
20
  }