@headspace/protos-events 1.767.0 → 1.768.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
@@ -49266,6 +49266,108 @@ export class UserOnboardingTopicResponses implements IUserOnboardingTopicRespons
49266
49266
  public toJSON(): { [k: string]: any };
49267
49267
  }
49268
49268
 
49269
+ /** Properties of a UserOnboardingPrimaryTopicSelected. */
49270
+ export interface IUserOnboardingPrimaryTopicSelected {
49271
+
49272
+ /** UserOnboardingPrimaryTopicSelected hsUserId */
49273
+ hsUserId?: (string|null);
49274
+
49275
+ /** UserOnboardingPrimaryTopicSelected needState */
49276
+ needState?: (string|null);
49277
+
49278
+ /** UserOnboardingPrimaryTopicSelected needStateDisplayName */
49279
+ needStateDisplayName?: (string|null);
49280
+ }
49281
+
49282
+ /** Represents a UserOnboardingPrimaryTopicSelected. */
49283
+ export class UserOnboardingPrimaryTopicSelected implements IUserOnboardingPrimaryTopicSelected {
49284
+
49285
+ /**
49286
+ * Constructs a new UserOnboardingPrimaryTopicSelected.
49287
+ * @param [properties] Properties to set
49288
+ */
49289
+ constructor(properties?: IUserOnboardingPrimaryTopicSelected);
49290
+
49291
+ /** UserOnboardingPrimaryTopicSelected hsUserId. */
49292
+ public hsUserId: string;
49293
+
49294
+ /** UserOnboardingPrimaryTopicSelected needState. */
49295
+ public needState: string;
49296
+
49297
+ /** UserOnboardingPrimaryTopicSelected needStateDisplayName. */
49298
+ public needStateDisplayName: string;
49299
+
49300
+ /**
49301
+ * Creates a new UserOnboardingPrimaryTopicSelected instance using the specified properties.
49302
+ * @param [properties] Properties to set
49303
+ * @returns UserOnboardingPrimaryTopicSelected instance
49304
+ */
49305
+ public static create(properties?: IUserOnboardingPrimaryTopicSelected): UserOnboardingPrimaryTopicSelected;
49306
+
49307
+ /**
49308
+ * Encodes the specified UserOnboardingPrimaryTopicSelected message. Does not implicitly {@link UserOnboardingPrimaryTopicSelected.verify|verify} messages.
49309
+ * @param message UserOnboardingPrimaryTopicSelected message or plain object to encode
49310
+ * @param [writer] Writer to encode to
49311
+ * @returns Writer
49312
+ */
49313
+ public static encode(message: IUserOnboardingPrimaryTopicSelected, writer?: $protobuf.Writer): $protobuf.Writer;
49314
+
49315
+ /**
49316
+ * Encodes the specified UserOnboardingPrimaryTopicSelected message, length delimited. Does not implicitly {@link UserOnboardingPrimaryTopicSelected.verify|verify} messages.
49317
+ * @param message UserOnboardingPrimaryTopicSelected message or plain object to encode
49318
+ * @param [writer] Writer to encode to
49319
+ * @returns Writer
49320
+ */
49321
+ public static encodeDelimited(message: IUserOnboardingPrimaryTopicSelected, writer?: $protobuf.Writer): $protobuf.Writer;
49322
+
49323
+ /**
49324
+ * Decodes a UserOnboardingPrimaryTopicSelected message from the specified reader or buffer.
49325
+ * @param reader Reader or buffer to decode from
49326
+ * @param [length] Message length if known beforehand
49327
+ * @returns UserOnboardingPrimaryTopicSelected
49328
+ * @throws {Error} If the payload is not a reader or valid buffer
49329
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49330
+ */
49331
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserOnboardingPrimaryTopicSelected;
49332
+
49333
+ /**
49334
+ * Decodes a UserOnboardingPrimaryTopicSelected message from the specified reader or buffer, length delimited.
49335
+ * @param reader Reader or buffer to decode from
49336
+ * @returns UserOnboardingPrimaryTopicSelected
49337
+ * @throws {Error} If the payload is not a reader or valid buffer
49338
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
49339
+ */
49340
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserOnboardingPrimaryTopicSelected;
49341
+
49342
+ /**
49343
+ * Verifies a UserOnboardingPrimaryTopicSelected message.
49344
+ * @param message Plain object to verify
49345
+ * @returns `null` if valid, otherwise the reason why it is not
49346
+ */
49347
+ public static verify(message: { [k: string]: any }): (string|null);
49348
+
49349
+ /**
49350
+ * Creates a UserOnboardingPrimaryTopicSelected message from a plain object. Also converts values to their respective internal types.
49351
+ * @param object Plain object
49352
+ * @returns UserOnboardingPrimaryTopicSelected
49353
+ */
49354
+ public static fromObject(object: { [k: string]: any }): UserOnboardingPrimaryTopicSelected;
49355
+
49356
+ /**
49357
+ * Creates a plain object from a UserOnboardingPrimaryTopicSelected message. Also converts values to other types if specified.
49358
+ * @param message UserOnboardingPrimaryTopicSelected
49359
+ * @param [options] Conversion options
49360
+ * @returns Plain object
49361
+ */
49362
+ public static toObject(message: UserOnboardingPrimaryTopicSelected, options?: $protobuf.IConversionOptions): { [k: string]: any };
49363
+
49364
+ /**
49365
+ * Converts this UserOnboardingPrimaryTopicSelected to JSON.
49366
+ * @returns JSON object
49367
+ */
49368
+ public toJSON(): { [k: string]: any };
49369
+ }
49370
+
49269
49371
  /** Properties of an OnboardingAssigned. */
49270
49372
  export interface IOnboardingAssigned {
49271
49373
 
package/lib/index.js CHANGED
@@ -140533,6 +140533,238 @@ $root.UserOnboardingTopicResponses = (function() {
140533
140533
  return UserOnboardingTopicResponses;
140534
140534
  })();
140535
140535
 
140536
+ $root.UserOnboardingPrimaryTopicSelected = (function() {
140537
+
140538
+ /**
140539
+ * Properties of a UserOnboardingPrimaryTopicSelected.
140540
+ * @name IUserOnboardingPrimaryTopicSelected
140541
+ * @interface IUserOnboardingPrimaryTopicSelected
140542
+ * @property {string|null} [hsUserId] UserOnboardingPrimaryTopicSelected hsUserId
140543
+ * @property {string|null} [needState] UserOnboardingPrimaryTopicSelected needState
140544
+ * @property {string|null} [needStateDisplayName] UserOnboardingPrimaryTopicSelected needStateDisplayName
140545
+ */
140546
+
140547
+ /**
140548
+ * Constructs a new UserOnboardingPrimaryTopicSelected.
140549
+ * @name UserOnboardingPrimaryTopicSelected
140550
+ * @classdesc Represents a UserOnboardingPrimaryTopicSelected.
140551
+ * @implements IUserOnboardingPrimaryTopicSelected
140552
+ * @constructor
140553
+ * @param {IUserOnboardingPrimaryTopicSelected=} [properties] Properties to set
140554
+ */
140555
+ function UserOnboardingPrimaryTopicSelected(properties) {
140556
+ if (properties)
140557
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
140558
+ if (properties[keys[i]] != null)
140559
+ this[keys[i]] = properties[keys[i]];
140560
+ }
140561
+
140562
+ /**
140563
+ * UserOnboardingPrimaryTopicSelected hsUserId.
140564
+ * @member {string} hsUserId
140565
+ * @memberof UserOnboardingPrimaryTopicSelected
140566
+ * @instance
140567
+ */
140568
+ UserOnboardingPrimaryTopicSelected.prototype.hsUserId = "";
140569
+
140570
+ /**
140571
+ * UserOnboardingPrimaryTopicSelected needState.
140572
+ * @member {string} needState
140573
+ * @memberof UserOnboardingPrimaryTopicSelected
140574
+ * @instance
140575
+ */
140576
+ UserOnboardingPrimaryTopicSelected.prototype.needState = "";
140577
+
140578
+ /**
140579
+ * UserOnboardingPrimaryTopicSelected needStateDisplayName.
140580
+ * @member {string} needStateDisplayName
140581
+ * @memberof UserOnboardingPrimaryTopicSelected
140582
+ * @instance
140583
+ */
140584
+ UserOnboardingPrimaryTopicSelected.prototype.needStateDisplayName = "";
140585
+
140586
+ /**
140587
+ * Creates a new UserOnboardingPrimaryTopicSelected instance using the specified properties.
140588
+ * @function create
140589
+ * @memberof UserOnboardingPrimaryTopicSelected
140590
+ * @static
140591
+ * @param {IUserOnboardingPrimaryTopicSelected=} [properties] Properties to set
140592
+ * @returns {UserOnboardingPrimaryTopicSelected} UserOnboardingPrimaryTopicSelected instance
140593
+ */
140594
+ UserOnboardingPrimaryTopicSelected.create = function create(properties) {
140595
+ return new UserOnboardingPrimaryTopicSelected(properties);
140596
+ };
140597
+
140598
+ /**
140599
+ * Encodes the specified UserOnboardingPrimaryTopicSelected message. Does not implicitly {@link UserOnboardingPrimaryTopicSelected.verify|verify} messages.
140600
+ * @function encode
140601
+ * @memberof UserOnboardingPrimaryTopicSelected
140602
+ * @static
140603
+ * @param {IUserOnboardingPrimaryTopicSelected} message UserOnboardingPrimaryTopicSelected message or plain object to encode
140604
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140605
+ * @returns {$protobuf.Writer} Writer
140606
+ */
140607
+ UserOnboardingPrimaryTopicSelected.encode = function encode(message, writer) {
140608
+ if (!writer)
140609
+ writer = $Writer.create();
140610
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140611
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
140612
+ if (message.needState != null && message.hasOwnProperty("needState"))
140613
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.needState);
140614
+ if (message.needStateDisplayName != null && message.hasOwnProperty("needStateDisplayName"))
140615
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.needStateDisplayName);
140616
+ return writer;
140617
+ };
140618
+
140619
+ /**
140620
+ * Encodes the specified UserOnboardingPrimaryTopicSelected message, length delimited. Does not implicitly {@link UserOnboardingPrimaryTopicSelected.verify|verify} messages.
140621
+ * @function encodeDelimited
140622
+ * @memberof UserOnboardingPrimaryTopicSelected
140623
+ * @static
140624
+ * @param {IUserOnboardingPrimaryTopicSelected} message UserOnboardingPrimaryTopicSelected message or plain object to encode
140625
+ * @param {$protobuf.Writer} [writer] Writer to encode to
140626
+ * @returns {$protobuf.Writer} Writer
140627
+ */
140628
+ UserOnboardingPrimaryTopicSelected.encodeDelimited = function encodeDelimited(message, writer) {
140629
+ return this.encode(message, writer).ldelim();
140630
+ };
140631
+
140632
+ /**
140633
+ * Decodes a UserOnboardingPrimaryTopicSelected message from the specified reader or buffer.
140634
+ * @function decode
140635
+ * @memberof UserOnboardingPrimaryTopicSelected
140636
+ * @static
140637
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140638
+ * @param {number} [length] Message length if known beforehand
140639
+ * @returns {UserOnboardingPrimaryTopicSelected} UserOnboardingPrimaryTopicSelected
140640
+ * @throws {Error} If the payload is not a reader or valid buffer
140641
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140642
+ */
140643
+ UserOnboardingPrimaryTopicSelected.decode = function decode(reader, length) {
140644
+ if (!(reader instanceof $Reader))
140645
+ reader = $Reader.create(reader);
140646
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserOnboardingPrimaryTopicSelected();
140647
+ while (reader.pos < end) {
140648
+ var tag = reader.uint32();
140649
+ switch (tag >>> 3) {
140650
+ case 1:
140651
+ message.hsUserId = reader.string();
140652
+ break;
140653
+ case 2:
140654
+ message.needState = reader.string();
140655
+ break;
140656
+ case 3:
140657
+ message.needStateDisplayName = reader.string();
140658
+ break;
140659
+ default:
140660
+ reader.skipType(tag & 7);
140661
+ break;
140662
+ }
140663
+ }
140664
+ return message;
140665
+ };
140666
+
140667
+ /**
140668
+ * Decodes a UserOnboardingPrimaryTopicSelected message from the specified reader or buffer, length delimited.
140669
+ * @function decodeDelimited
140670
+ * @memberof UserOnboardingPrimaryTopicSelected
140671
+ * @static
140672
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
140673
+ * @returns {UserOnboardingPrimaryTopicSelected} UserOnboardingPrimaryTopicSelected
140674
+ * @throws {Error} If the payload is not a reader or valid buffer
140675
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
140676
+ */
140677
+ UserOnboardingPrimaryTopicSelected.decodeDelimited = function decodeDelimited(reader) {
140678
+ if (!(reader instanceof $Reader))
140679
+ reader = new $Reader(reader);
140680
+ return this.decode(reader, reader.uint32());
140681
+ };
140682
+
140683
+ /**
140684
+ * Verifies a UserOnboardingPrimaryTopicSelected message.
140685
+ * @function verify
140686
+ * @memberof UserOnboardingPrimaryTopicSelected
140687
+ * @static
140688
+ * @param {Object.<string,*>} message Plain object to verify
140689
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
140690
+ */
140691
+ UserOnboardingPrimaryTopicSelected.verify = function verify(message) {
140692
+ if (typeof message !== "object" || message === null)
140693
+ return "object expected";
140694
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140695
+ if (!$util.isString(message.hsUserId))
140696
+ return "hsUserId: string expected";
140697
+ if (message.needState != null && message.hasOwnProperty("needState"))
140698
+ if (!$util.isString(message.needState))
140699
+ return "needState: string expected";
140700
+ if (message.needStateDisplayName != null && message.hasOwnProperty("needStateDisplayName"))
140701
+ if (!$util.isString(message.needStateDisplayName))
140702
+ return "needStateDisplayName: string expected";
140703
+ return null;
140704
+ };
140705
+
140706
+ /**
140707
+ * Creates a UserOnboardingPrimaryTopicSelected message from a plain object. Also converts values to their respective internal types.
140708
+ * @function fromObject
140709
+ * @memberof UserOnboardingPrimaryTopicSelected
140710
+ * @static
140711
+ * @param {Object.<string,*>} object Plain object
140712
+ * @returns {UserOnboardingPrimaryTopicSelected} UserOnboardingPrimaryTopicSelected
140713
+ */
140714
+ UserOnboardingPrimaryTopicSelected.fromObject = function fromObject(object) {
140715
+ if (object instanceof $root.UserOnboardingPrimaryTopicSelected)
140716
+ return object;
140717
+ var message = new $root.UserOnboardingPrimaryTopicSelected();
140718
+ if (object.hsUserId != null)
140719
+ message.hsUserId = String(object.hsUserId);
140720
+ if (object.needState != null)
140721
+ message.needState = String(object.needState);
140722
+ if (object.needStateDisplayName != null)
140723
+ message.needStateDisplayName = String(object.needStateDisplayName);
140724
+ return message;
140725
+ };
140726
+
140727
+ /**
140728
+ * Creates a plain object from a UserOnboardingPrimaryTopicSelected message. Also converts values to other types if specified.
140729
+ * @function toObject
140730
+ * @memberof UserOnboardingPrimaryTopicSelected
140731
+ * @static
140732
+ * @param {UserOnboardingPrimaryTopicSelected} message UserOnboardingPrimaryTopicSelected
140733
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
140734
+ * @returns {Object.<string,*>} Plain object
140735
+ */
140736
+ UserOnboardingPrimaryTopicSelected.toObject = function toObject(message, options) {
140737
+ if (!options)
140738
+ options = {};
140739
+ var object = {};
140740
+ if (options.defaults) {
140741
+ object.hsUserId = "";
140742
+ object.needState = "";
140743
+ object.needStateDisplayName = "";
140744
+ }
140745
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
140746
+ object.hsUserId = message.hsUserId;
140747
+ if (message.needState != null && message.hasOwnProperty("needState"))
140748
+ object.needState = message.needState;
140749
+ if (message.needStateDisplayName != null && message.hasOwnProperty("needStateDisplayName"))
140750
+ object.needStateDisplayName = message.needStateDisplayName;
140751
+ return object;
140752
+ };
140753
+
140754
+ /**
140755
+ * Converts this UserOnboardingPrimaryTopicSelected to JSON.
140756
+ * @function toJSON
140757
+ * @memberof UserOnboardingPrimaryTopicSelected
140758
+ * @instance
140759
+ * @returns {Object.<string,*>} JSON object
140760
+ */
140761
+ UserOnboardingPrimaryTopicSelected.prototype.toJSON = function toJSON() {
140762
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
140763
+ };
140764
+
140765
+ return UserOnboardingPrimaryTopicSelected;
140766
+ })();
140767
+
140536
140768
  $root.OnboardingAssigned = (function() {
140537
140769
 
140538
140770
  /**
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.767.0"
19
+ "version": "1.768.0"
20
20
  }