@headspace/protos-events 1.7.0 → 1.8.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
@@ -1827,3 +1827,99 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
1827
1827
  */
1828
1828
  public toJSON(): { [k: string]: any };
1829
1829
  }
1830
+
1831
+ /** Properties of a UserEmailVerificationRequested. */
1832
+ export interface IUserEmailVerificationRequested {
1833
+
1834
+ /** UserEmailVerificationRequested userId */
1835
+ userId?: (string|null);
1836
+
1837
+ /** UserEmailVerificationRequested verificationCode */
1838
+ verificationCode?: (string|null);
1839
+ }
1840
+
1841
+ /** Represents a UserEmailVerificationRequested. */
1842
+ export class UserEmailVerificationRequested implements IUserEmailVerificationRequested {
1843
+
1844
+ /**
1845
+ * Constructs a new UserEmailVerificationRequested.
1846
+ * @param [properties] Properties to set
1847
+ */
1848
+ constructor(properties?: IUserEmailVerificationRequested);
1849
+
1850
+ /** UserEmailVerificationRequested userId. */
1851
+ public userId: string;
1852
+
1853
+ /** UserEmailVerificationRequested verificationCode. */
1854
+ public verificationCode: string;
1855
+
1856
+ /**
1857
+ * Creates a new UserEmailVerificationRequested instance using the specified properties.
1858
+ * @param [properties] Properties to set
1859
+ * @returns UserEmailVerificationRequested instance
1860
+ */
1861
+ public static create(properties?: IUserEmailVerificationRequested): UserEmailVerificationRequested;
1862
+
1863
+ /**
1864
+ * Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
1865
+ * @param message UserEmailVerificationRequested message or plain object to encode
1866
+ * @param [writer] Writer to encode to
1867
+ * @returns Writer
1868
+ */
1869
+ public static encode(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
1870
+
1871
+ /**
1872
+ * Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
1873
+ * @param message UserEmailVerificationRequested message or plain object to encode
1874
+ * @param [writer] Writer to encode to
1875
+ * @returns Writer
1876
+ */
1877
+ public static encodeDelimited(message: IUserEmailVerificationRequested, writer?: $protobuf.Writer): $protobuf.Writer;
1878
+
1879
+ /**
1880
+ * Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
1881
+ * @param reader Reader or buffer to decode from
1882
+ * @param [length] Message length if known beforehand
1883
+ * @returns UserEmailVerificationRequested
1884
+ * @throws {Error} If the payload is not a reader or valid buffer
1885
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1886
+ */
1887
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailVerificationRequested;
1888
+
1889
+ /**
1890
+ * Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
1891
+ * @param reader Reader or buffer to decode from
1892
+ * @returns UserEmailVerificationRequested
1893
+ * @throws {Error} If the payload is not a reader or valid buffer
1894
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1895
+ */
1896
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailVerificationRequested;
1897
+
1898
+ /**
1899
+ * Verifies a UserEmailVerificationRequested message.
1900
+ * @param message Plain object to verify
1901
+ * @returns `null` if valid, otherwise the reason why it is not
1902
+ */
1903
+ public static verify(message: { [k: string]: any }): (string|null);
1904
+
1905
+ /**
1906
+ * Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
1907
+ * @param object Plain object
1908
+ * @returns UserEmailVerificationRequested
1909
+ */
1910
+ public static fromObject(object: { [k: string]: any }): UserEmailVerificationRequested;
1911
+
1912
+ /**
1913
+ * Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
1914
+ * @param message UserEmailVerificationRequested
1915
+ * @param [options] Conversion options
1916
+ * @returns Plain object
1917
+ */
1918
+ public static toObject(message: UserEmailVerificationRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
1919
+
1920
+ /**
1921
+ * Converts this UserEmailVerificationRequested to JSON.
1922
+ * @returns JSON object
1923
+ */
1924
+ public toJSON(): { [k: string]: any };
1925
+ }
package/lib/index.js CHANGED
@@ -4586,4 +4586,214 @@ $root.UserPasswordUpdated = (function() {
4586
4586
  return UserPasswordUpdated;
4587
4587
  })();
4588
4588
 
4589
+ $root.UserEmailVerificationRequested = (function() {
4590
+
4591
+ /**
4592
+ * Properties of a UserEmailVerificationRequested.
4593
+ * @exports IUserEmailVerificationRequested
4594
+ * @interface IUserEmailVerificationRequested
4595
+ * @property {string|null} [userId] UserEmailVerificationRequested userId
4596
+ * @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
4597
+ */
4598
+
4599
+ /**
4600
+ * Constructs a new UserEmailVerificationRequested.
4601
+ * @exports UserEmailVerificationRequested
4602
+ * @classdesc Represents a UserEmailVerificationRequested.
4603
+ * @implements IUserEmailVerificationRequested
4604
+ * @constructor
4605
+ * @param {IUserEmailVerificationRequested=} [properties] Properties to set
4606
+ */
4607
+ function UserEmailVerificationRequested(properties) {
4608
+ if (properties)
4609
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
4610
+ if (properties[keys[i]] != null)
4611
+ this[keys[i]] = properties[keys[i]];
4612
+ }
4613
+
4614
+ /**
4615
+ * UserEmailVerificationRequested userId.
4616
+ * @member {string} userId
4617
+ * @memberof UserEmailVerificationRequested
4618
+ * @instance
4619
+ */
4620
+ UserEmailVerificationRequested.prototype.userId = "";
4621
+
4622
+ /**
4623
+ * UserEmailVerificationRequested verificationCode.
4624
+ * @member {string} verificationCode
4625
+ * @memberof UserEmailVerificationRequested
4626
+ * @instance
4627
+ */
4628
+ UserEmailVerificationRequested.prototype.verificationCode = "";
4629
+
4630
+ /**
4631
+ * Creates a new UserEmailVerificationRequested instance using the specified properties.
4632
+ * @function create
4633
+ * @memberof UserEmailVerificationRequested
4634
+ * @static
4635
+ * @param {IUserEmailVerificationRequested=} [properties] Properties to set
4636
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested instance
4637
+ */
4638
+ UserEmailVerificationRequested.create = function create(properties) {
4639
+ return new UserEmailVerificationRequested(properties);
4640
+ };
4641
+
4642
+ /**
4643
+ * Encodes the specified UserEmailVerificationRequested message. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
4644
+ * @function encode
4645
+ * @memberof UserEmailVerificationRequested
4646
+ * @static
4647
+ * @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
4648
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4649
+ * @returns {$protobuf.Writer} Writer
4650
+ */
4651
+ UserEmailVerificationRequested.encode = function encode(message, writer) {
4652
+ if (!writer)
4653
+ writer = $Writer.create();
4654
+ if (message.userId != null && message.hasOwnProperty("userId"))
4655
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
4656
+ if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
4657
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
4658
+ return writer;
4659
+ };
4660
+
4661
+ /**
4662
+ * Encodes the specified UserEmailVerificationRequested message, length delimited. Does not implicitly {@link UserEmailVerificationRequested.verify|verify} messages.
4663
+ * @function encodeDelimited
4664
+ * @memberof UserEmailVerificationRequested
4665
+ * @static
4666
+ * @param {IUserEmailVerificationRequested} message UserEmailVerificationRequested message or plain object to encode
4667
+ * @param {$protobuf.Writer} [writer] Writer to encode to
4668
+ * @returns {$protobuf.Writer} Writer
4669
+ */
4670
+ UserEmailVerificationRequested.encodeDelimited = function encodeDelimited(message, writer) {
4671
+ return this.encode(message, writer).ldelim();
4672
+ };
4673
+
4674
+ /**
4675
+ * Decodes a UserEmailVerificationRequested message from the specified reader or buffer.
4676
+ * @function decode
4677
+ * @memberof UserEmailVerificationRequested
4678
+ * @static
4679
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4680
+ * @param {number} [length] Message length if known beforehand
4681
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
4682
+ * @throws {Error} If the payload is not a reader or valid buffer
4683
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4684
+ */
4685
+ UserEmailVerificationRequested.decode = function decode(reader, length) {
4686
+ if (!(reader instanceof $Reader))
4687
+ reader = $Reader.create(reader);
4688
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationRequested();
4689
+ while (reader.pos < end) {
4690
+ var tag = reader.uint32();
4691
+ switch (tag >>> 3) {
4692
+ case 1:
4693
+ message.userId = reader.string();
4694
+ break;
4695
+ case 2:
4696
+ message.verificationCode = reader.string();
4697
+ break;
4698
+ default:
4699
+ reader.skipType(tag & 7);
4700
+ break;
4701
+ }
4702
+ }
4703
+ return message;
4704
+ };
4705
+
4706
+ /**
4707
+ * Decodes a UserEmailVerificationRequested message from the specified reader or buffer, length delimited.
4708
+ * @function decodeDelimited
4709
+ * @memberof UserEmailVerificationRequested
4710
+ * @static
4711
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
4712
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
4713
+ * @throws {Error} If the payload is not a reader or valid buffer
4714
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
4715
+ */
4716
+ UserEmailVerificationRequested.decodeDelimited = function decodeDelimited(reader) {
4717
+ if (!(reader instanceof $Reader))
4718
+ reader = new $Reader(reader);
4719
+ return this.decode(reader, reader.uint32());
4720
+ };
4721
+
4722
+ /**
4723
+ * Verifies a UserEmailVerificationRequested message.
4724
+ * @function verify
4725
+ * @memberof UserEmailVerificationRequested
4726
+ * @static
4727
+ * @param {Object.<string,*>} message Plain object to verify
4728
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
4729
+ */
4730
+ UserEmailVerificationRequested.verify = function verify(message) {
4731
+ if (typeof message !== "object" || message === null)
4732
+ return "object expected";
4733
+ if (message.userId != null && message.hasOwnProperty("userId"))
4734
+ if (!$util.isString(message.userId))
4735
+ return "userId: string expected";
4736
+ if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
4737
+ if (!$util.isString(message.verificationCode))
4738
+ return "verificationCode: string expected";
4739
+ return null;
4740
+ };
4741
+
4742
+ /**
4743
+ * Creates a UserEmailVerificationRequested message from a plain object. Also converts values to their respective internal types.
4744
+ * @function fromObject
4745
+ * @memberof UserEmailVerificationRequested
4746
+ * @static
4747
+ * @param {Object.<string,*>} object Plain object
4748
+ * @returns {UserEmailVerificationRequested} UserEmailVerificationRequested
4749
+ */
4750
+ UserEmailVerificationRequested.fromObject = function fromObject(object) {
4751
+ if (object instanceof $root.UserEmailVerificationRequested)
4752
+ return object;
4753
+ var message = new $root.UserEmailVerificationRequested();
4754
+ if (object.userId != null)
4755
+ message.userId = String(object.userId);
4756
+ if (object.verificationCode != null)
4757
+ message.verificationCode = String(object.verificationCode);
4758
+ return message;
4759
+ };
4760
+
4761
+ /**
4762
+ * Creates a plain object from a UserEmailVerificationRequested message. Also converts values to other types if specified.
4763
+ * @function toObject
4764
+ * @memberof UserEmailVerificationRequested
4765
+ * @static
4766
+ * @param {UserEmailVerificationRequested} message UserEmailVerificationRequested
4767
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
4768
+ * @returns {Object.<string,*>} Plain object
4769
+ */
4770
+ UserEmailVerificationRequested.toObject = function toObject(message, options) {
4771
+ if (!options)
4772
+ options = {};
4773
+ var object = {};
4774
+ if (options.defaults) {
4775
+ object.userId = "";
4776
+ object.verificationCode = "";
4777
+ }
4778
+ if (message.userId != null && message.hasOwnProperty("userId"))
4779
+ object.userId = message.userId;
4780
+ if (message.verificationCode != null && message.hasOwnProperty("verificationCode"))
4781
+ object.verificationCode = message.verificationCode;
4782
+ return object;
4783
+ };
4784
+
4785
+ /**
4786
+ * Converts this UserEmailVerificationRequested to JSON.
4787
+ * @function toJSON
4788
+ * @memberof UserEmailVerificationRequested
4789
+ * @instance
4790
+ * @returns {Object.<string,*>} JSON object
4791
+ */
4792
+ UserEmailVerificationRequested.prototype.toJSON = function toJSON() {
4793
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
4794
+ };
4795
+
4796
+ return UserEmailVerificationRequested;
4797
+ })();
4798
+
4589
4799
  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.7.0"
19
+ "version": "1.8.0"
20
20
  }