@headspace/protos-events 1.14.0 → 1.16.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
@@ -2695,6 +2695,9 @@ export interface IUserEmailVerificationRequested {
2695
2695
 
2696
2696
  /** UserEmailVerificationRequested timestamp */
2697
2697
  timestamp?: (number|Long|null);
2698
+
2699
+ /** UserEmailVerificationRequested optIn */
2700
+ optIn?: (boolean|null);
2698
2701
  }
2699
2702
 
2700
2703
  /** Represents a UserEmailVerificationRequested. */
@@ -2715,6 +2718,9 @@ export class UserEmailVerificationRequested implements IUserEmailVerificationReq
2715
2718
  /** UserEmailVerificationRequested timestamp. */
2716
2719
  public timestamp: (number|Long);
2717
2720
 
2721
+ /** UserEmailVerificationRequested optIn. */
2722
+ public optIn: boolean;
2723
+
2718
2724
  /**
2719
2725
  * Creates a new UserEmailVerificationRequested instance using the specified properties.
2720
2726
  * @param [properties] Properties to set
@@ -2887,3 +2893,93 @@ export class UserPasswordUpdated implements IUserPasswordUpdated {
2887
2893
  */
2888
2894
  public toJSON(): { [k: string]: any };
2889
2895
  }
2896
+
2897
+ /** Properties of a UserEmailMarketingOptedIn. */
2898
+ export interface IUserEmailMarketingOptedIn {
2899
+
2900
+ /** UserEmailMarketingOptedIn userId */
2901
+ userId?: (string|null);
2902
+ }
2903
+
2904
+ /** Represents a UserEmailMarketingOptedIn. */
2905
+ export class UserEmailMarketingOptedIn implements IUserEmailMarketingOptedIn {
2906
+
2907
+ /**
2908
+ * Constructs a new UserEmailMarketingOptedIn.
2909
+ * @param [properties] Properties to set
2910
+ */
2911
+ constructor(properties?: IUserEmailMarketingOptedIn);
2912
+
2913
+ /** UserEmailMarketingOptedIn userId. */
2914
+ public userId: string;
2915
+
2916
+ /**
2917
+ * Creates a new UserEmailMarketingOptedIn instance using the specified properties.
2918
+ * @param [properties] Properties to set
2919
+ * @returns UserEmailMarketingOptedIn instance
2920
+ */
2921
+ public static create(properties?: IUserEmailMarketingOptedIn): UserEmailMarketingOptedIn;
2922
+
2923
+ /**
2924
+ * Encodes the specified UserEmailMarketingOptedIn message. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
2925
+ * @param message UserEmailMarketingOptedIn message or plain object to encode
2926
+ * @param [writer] Writer to encode to
2927
+ * @returns Writer
2928
+ */
2929
+ public static encode(message: IUserEmailMarketingOptedIn, writer?: $protobuf.Writer): $protobuf.Writer;
2930
+
2931
+ /**
2932
+ * Encodes the specified UserEmailMarketingOptedIn message, length delimited. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
2933
+ * @param message UserEmailMarketingOptedIn message or plain object to encode
2934
+ * @param [writer] Writer to encode to
2935
+ * @returns Writer
2936
+ */
2937
+ public static encodeDelimited(message: IUserEmailMarketingOptedIn, writer?: $protobuf.Writer): $protobuf.Writer;
2938
+
2939
+ /**
2940
+ * Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer.
2941
+ * @param reader Reader or buffer to decode from
2942
+ * @param [length] Message length if known beforehand
2943
+ * @returns UserEmailMarketingOptedIn
2944
+ * @throws {Error} If the payload is not a reader or valid buffer
2945
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2946
+ */
2947
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailMarketingOptedIn;
2948
+
2949
+ /**
2950
+ * Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer, length delimited.
2951
+ * @param reader Reader or buffer to decode from
2952
+ * @returns UserEmailMarketingOptedIn
2953
+ * @throws {Error} If the payload is not a reader or valid buffer
2954
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2955
+ */
2956
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailMarketingOptedIn;
2957
+
2958
+ /**
2959
+ * Verifies a UserEmailMarketingOptedIn message.
2960
+ * @param message Plain object to verify
2961
+ * @returns `null` if valid, otherwise the reason why it is not
2962
+ */
2963
+ public static verify(message: { [k: string]: any }): (string|null);
2964
+
2965
+ /**
2966
+ * Creates a UserEmailMarketingOptedIn message from a plain object. Also converts values to their respective internal types.
2967
+ * @param object Plain object
2968
+ * @returns UserEmailMarketingOptedIn
2969
+ */
2970
+ public static fromObject(object: { [k: string]: any }): UserEmailMarketingOptedIn;
2971
+
2972
+ /**
2973
+ * Creates a plain object from a UserEmailMarketingOptedIn message. Also converts values to other types if specified.
2974
+ * @param message UserEmailMarketingOptedIn
2975
+ * @param [options] Conversion options
2976
+ * @returns Plain object
2977
+ */
2978
+ public static toObject(message: UserEmailMarketingOptedIn, options?: $protobuf.IConversionOptions): { [k: string]: any };
2979
+
2980
+ /**
2981
+ * Converts this UserEmailMarketingOptedIn to JSON.
2982
+ * @returns JSON object
2983
+ */
2984
+ public toJSON(): { [k: string]: any };
2985
+ }
package/lib/index.js CHANGED
@@ -6503,6 +6503,7 @@ $root.UserEmailVerificationRequested = (function() {
6503
6503
  * @property {string|null} [userId] UserEmailVerificationRequested userId
6504
6504
  * @property {string|null} [verificationCode] UserEmailVerificationRequested verificationCode
6505
6505
  * @property {number|Long|null} [timestamp] UserEmailVerificationRequested timestamp
6506
+ * @property {boolean|null} [optIn] UserEmailVerificationRequested optIn
6506
6507
  */
6507
6508
 
6508
6509
  /**
@@ -6544,6 +6545,14 @@ $root.UserEmailVerificationRequested = (function() {
6544
6545
  */
6545
6546
  UserEmailVerificationRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6546
6547
 
6548
+ /**
6549
+ * UserEmailVerificationRequested optIn.
6550
+ * @member {boolean} optIn
6551
+ * @memberof UserEmailVerificationRequested
6552
+ * @instance
6553
+ */
6554
+ UserEmailVerificationRequested.prototype.optIn = false;
6555
+
6547
6556
  /**
6548
6557
  * Creates a new UserEmailVerificationRequested instance using the specified properties.
6549
6558
  * @function create
@@ -6574,6 +6583,8 @@ $root.UserEmailVerificationRequested = (function() {
6574
6583
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode);
6575
6584
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6576
6585
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
6586
+ if (message.optIn != null && message.hasOwnProperty("optIn"))
6587
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.optIn);
6577
6588
  return writer;
6578
6589
  };
6579
6590
 
@@ -6617,6 +6628,9 @@ $root.UserEmailVerificationRequested = (function() {
6617
6628
  case 3:
6618
6629
  message.timestamp = reader.uint64();
6619
6630
  break;
6631
+ case 4:
6632
+ message.optIn = reader.bool();
6633
+ break;
6620
6634
  default:
6621
6635
  reader.skipType(tag & 7);
6622
6636
  break;
@@ -6661,6 +6675,9 @@ $root.UserEmailVerificationRequested = (function() {
6661
6675
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6662
6676
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
6663
6677
  return "timestamp: integer|Long expected";
6678
+ if (message.optIn != null && message.hasOwnProperty("optIn"))
6679
+ if (typeof message.optIn !== "boolean")
6680
+ return "optIn: boolean expected";
6664
6681
  return null;
6665
6682
  };
6666
6683
 
@@ -6689,6 +6706,8 @@ $root.UserEmailVerificationRequested = (function() {
6689
6706
  message.timestamp = object.timestamp;
6690
6707
  else if (typeof object.timestamp === "object")
6691
6708
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
6709
+ if (object.optIn != null)
6710
+ message.optIn = Boolean(object.optIn);
6692
6711
  return message;
6693
6712
  };
6694
6713
 
@@ -6713,6 +6732,7 @@ $root.UserEmailVerificationRequested = (function() {
6713
6732
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6714
6733
  } else
6715
6734
  object.timestamp = options.longs === String ? "0" : 0;
6735
+ object.optIn = false;
6716
6736
  }
6717
6737
  if (message.userId != null && message.hasOwnProperty("userId"))
6718
6738
  object.userId = message.userId;
@@ -6723,6 +6743,8 @@ $root.UserEmailVerificationRequested = (function() {
6723
6743
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
6724
6744
  else
6725
6745
  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;
6746
+ if (message.optIn != null && message.hasOwnProperty("optIn"))
6747
+ object.optIn = message.optIn;
6726
6748
  return object;
6727
6749
  };
6728
6750
 
@@ -6986,4 +7008,191 @@ $root.UserPasswordUpdated = (function() {
6986
7008
  return UserPasswordUpdated;
6987
7009
  })();
6988
7010
 
7011
+ $root.UserEmailMarketingOptedIn = (function() {
7012
+
7013
+ /**
7014
+ * Properties of a UserEmailMarketingOptedIn.
7015
+ * @exports IUserEmailMarketingOptedIn
7016
+ * @interface IUserEmailMarketingOptedIn
7017
+ * @property {string|null} [userId] UserEmailMarketingOptedIn userId
7018
+ */
7019
+
7020
+ /**
7021
+ * Constructs a new UserEmailMarketingOptedIn.
7022
+ * @exports UserEmailMarketingOptedIn
7023
+ * @classdesc Represents a UserEmailMarketingOptedIn.
7024
+ * @implements IUserEmailMarketingOptedIn
7025
+ * @constructor
7026
+ * @param {IUserEmailMarketingOptedIn=} [properties] Properties to set
7027
+ */
7028
+ function UserEmailMarketingOptedIn(properties) {
7029
+ if (properties)
7030
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7031
+ if (properties[keys[i]] != null)
7032
+ this[keys[i]] = properties[keys[i]];
7033
+ }
7034
+
7035
+ /**
7036
+ * UserEmailMarketingOptedIn userId.
7037
+ * @member {string} userId
7038
+ * @memberof UserEmailMarketingOptedIn
7039
+ * @instance
7040
+ */
7041
+ UserEmailMarketingOptedIn.prototype.userId = "";
7042
+
7043
+ /**
7044
+ * Creates a new UserEmailMarketingOptedIn instance using the specified properties.
7045
+ * @function create
7046
+ * @memberof UserEmailMarketingOptedIn
7047
+ * @static
7048
+ * @param {IUserEmailMarketingOptedIn=} [properties] Properties to set
7049
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn instance
7050
+ */
7051
+ UserEmailMarketingOptedIn.create = function create(properties) {
7052
+ return new UserEmailMarketingOptedIn(properties);
7053
+ };
7054
+
7055
+ /**
7056
+ * Encodes the specified UserEmailMarketingOptedIn message. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
7057
+ * @function encode
7058
+ * @memberof UserEmailMarketingOptedIn
7059
+ * @static
7060
+ * @param {IUserEmailMarketingOptedIn} message UserEmailMarketingOptedIn message or plain object to encode
7061
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7062
+ * @returns {$protobuf.Writer} Writer
7063
+ */
7064
+ UserEmailMarketingOptedIn.encode = function encode(message, writer) {
7065
+ if (!writer)
7066
+ writer = $Writer.create();
7067
+ if (message.userId != null && message.hasOwnProperty("userId"))
7068
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
7069
+ return writer;
7070
+ };
7071
+
7072
+ /**
7073
+ * Encodes the specified UserEmailMarketingOptedIn message, length delimited. Does not implicitly {@link UserEmailMarketingOptedIn.verify|verify} messages.
7074
+ * @function encodeDelimited
7075
+ * @memberof UserEmailMarketingOptedIn
7076
+ * @static
7077
+ * @param {IUserEmailMarketingOptedIn} message UserEmailMarketingOptedIn message or plain object to encode
7078
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7079
+ * @returns {$protobuf.Writer} Writer
7080
+ */
7081
+ UserEmailMarketingOptedIn.encodeDelimited = function encodeDelimited(message, writer) {
7082
+ return this.encode(message, writer).ldelim();
7083
+ };
7084
+
7085
+ /**
7086
+ * Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer.
7087
+ * @function decode
7088
+ * @memberof UserEmailMarketingOptedIn
7089
+ * @static
7090
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7091
+ * @param {number} [length] Message length if known beforehand
7092
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
7093
+ * @throws {Error} If the payload is not a reader or valid buffer
7094
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7095
+ */
7096
+ UserEmailMarketingOptedIn.decode = function decode(reader, length) {
7097
+ if (!(reader instanceof $Reader))
7098
+ reader = $Reader.create(reader);
7099
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailMarketingOptedIn();
7100
+ while (reader.pos < end) {
7101
+ var tag = reader.uint32();
7102
+ switch (tag >>> 3) {
7103
+ case 1:
7104
+ message.userId = reader.string();
7105
+ break;
7106
+ default:
7107
+ reader.skipType(tag & 7);
7108
+ break;
7109
+ }
7110
+ }
7111
+ return message;
7112
+ };
7113
+
7114
+ /**
7115
+ * Decodes a UserEmailMarketingOptedIn message from the specified reader or buffer, length delimited.
7116
+ * @function decodeDelimited
7117
+ * @memberof UserEmailMarketingOptedIn
7118
+ * @static
7119
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7120
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
7121
+ * @throws {Error} If the payload is not a reader or valid buffer
7122
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7123
+ */
7124
+ UserEmailMarketingOptedIn.decodeDelimited = function decodeDelimited(reader) {
7125
+ if (!(reader instanceof $Reader))
7126
+ reader = new $Reader(reader);
7127
+ return this.decode(reader, reader.uint32());
7128
+ };
7129
+
7130
+ /**
7131
+ * Verifies a UserEmailMarketingOptedIn message.
7132
+ * @function verify
7133
+ * @memberof UserEmailMarketingOptedIn
7134
+ * @static
7135
+ * @param {Object.<string,*>} message Plain object to verify
7136
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7137
+ */
7138
+ UserEmailMarketingOptedIn.verify = function verify(message) {
7139
+ if (typeof message !== "object" || message === null)
7140
+ return "object expected";
7141
+ if (message.userId != null && message.hasOwnProperty("userId"))
7142
+ if (!$util.isString(message.userId))
7143
+ return "userId: string expected";
7144
+ return null;
7145
+ };
7146
+
7147
+ /**
7148
+ * Creates a UserEmailMarketingOptedIn message from a plain object. Also converts values to their respective internal types.
7149
+ * @function fromObject
7150
+ * @memberof UserEmailMarketingOptedIn
7151
+ * @static
7152
+ * @param {Object.<string,*>} object Plain object
7153
+ * @returns {UserEmailMarketingOptedIn} UserEmailMarketingOptedIn
7154
+ */
7155
+ UserEmailMarketingOptedIn.fromObject = function fromObject(object) {
7156
+ if (object instanceof $root.UserEmailMarketingOptedIn)
7157
+ return object;
7158
+ var message = new $root.UserEmailMarketingOptedIn();
7159
+ if (object.userId != null)
7160
+ message.userId = String(object.userId);
7161
+ return message;
7162
+ };
7163
+
7164
+ /**
7165
+ * Creates a plain object from a UserEmailMarketingOptedIn message. Also converts values to other types if specified.
7166
+ * @function toObject
7167
+ * @memberof UserEmailMarketingOptedIn
7168
+ * @static
7169
+ * @param {UserEmailMarketingOptedIn} message UserEmailMarketingOptedIn
7170
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
7171
+ * @returns {Object.<string,*>} Plain object
7172
+ */
7173
+ UserEmailMarketingOptedIn.toObject = function toObject(message, options) {
7174
+ if (!options)
7175
+ options = {};
7176
+ var object = {};
7177
+ if (options.defaults)
7178
+ object.userId = "";
7179
+ if (message.userId != null && message.hasOwnProperty("userId"))
7180
+ object.userId = message.userId;
7181
+ return object;
7182
+ };
7183
+
7184
+ /**
7185
+ * Converts this UserEmailMarketingOptedIn to JSON.
7186
+ * @function toJSON
7187
+ * @memberof UserEmailMarketingOptedIn
7188
+ * @instance
7189
+ * @returns {Object.<string,*>} JSON object
7190
+ */
7191
+ UserEmailMarketingOptedIn.prototype.toJSON = function toJSON() {
7192
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7193
+ };
7194
+
7195
+ return UserEmailMarketingOptedIn;
7196
+ })();
7197
+
6989
7198
  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.14.0"
19
+ "version": "1.16.0"
20
20
  }