@headspace/protos-events 1.15.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
@@ -2492,6 +2492,96 @@ export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined
2492
2492
  public toJSON(): { [k: string]: any };
2493
2493
  }
2494
2494
 
2495
+ /** Properties of a UserDoubleOptInEmailRequested. */
2496
+ export interface IUserDoubleOptInEmailRequested {
2497
+
2498
+ /** UserDoubleOptInEmailRequested userId */
2499
+ userId?: (string|null);
2500
+ }
2501
+
2502
+ /** Represents a UserDoubleOptInEmailRequested. */
2503
+ export class UserDoubleOptInEmailRequested implements IUserDoubleOptInEmailRequested {
2504
+
2505
+ /**
2506
+ * Constructs a new UserDoubleOptInEmailRequested.
2507
+ * @param [properties] Properties to set
2508
+ */
2509
+ constructor(properties?: IUserDoubleOptInEmailRequested);
2510
+
2511
+ /** UserDoubleOptInEmailRequested userId. */
2512
+ public userId: string;
2513
+
2514
+ /**
2515
+ * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
2516
+ * @param [properties] Properties to set
2517
+ * @returns UserDoubleOptInEmailRequested instance
2518
+ */
2519
+ public static create(properties?: IUserDoubleOptInEmailRequested): UserDoubleOptInEmailRequested;
2520
+
2521
+ /**
2522
+ * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
2523
+ * @param message UserDoubleOptInEmailRequested message or plain object to encode
2524
+ * @param [writer] Writer to encode to
2525
+ * @returns Writer
2526
+ */
2527
+ public static encode(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
2528
+
2529
+ /**
2530
+ * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
2531
+ * @param message UserDoubleOptInEmailRequested message or plain object to encode
2532
+ * @param [writer] Writer to encode to
2533
+ * @returns Writer
2534
+ */
2535
+ public static encodeDelimited(message: IUserDoubleOptInEmailRequested, writer?: $protobuf.Writer): $protobuf.Writer;
2536
+
2537
+ /**
2538
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
2539
+ * @param reader Reader or buffer to decode from
2540
+ * @param [length] Message length if known beforehand
2541
+ * @returns UserDoubleOptInEmailRequested
2542
+ * @throws {Error} If the payload is not a reader or valid buffer
2543
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2544
+ */
2545
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserDoubleOptInEmailRequested;
2546
+
2547
+ /**
2548
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
2549
+ * @param reader Reader or buffer to decode from
2550
+ * @returns UserDoubleOptInEmailRequested
2551
+ * @throws {Error} If the payload is not a reader or valid buffer
2552
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2553
+ */
2554
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserDoubleOptInEmailRequested;
2555
+
2556
+ /**
2557
+ * Verifies a UserDoubleOptInEmailRequested message.
2558
+ * @param message Plain object to verify
2559
+ * @returns `null` if valid, otherwise the reason why it is not
2560
+ */
2561
+ public static verify(message: { [k: string]: any }): (string|null);
2562
+
2563
+ /**
2564
+ * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
2565
+ * @param object Plain object
2566
+ * @returns UserDoubleOptInEmailRequested
2567
+ */
2568
+ public static fromObject(object: { [k: string]: any }): UserDoubleOptInEmailRequested;
2569
+
2570
+ /**
2571
+ * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
2572
+ * @param message UserDoubleOptInEmailRequested
2573
+ * @param [options] Conversion options
2574
+ * @returns Plain object
2575
+ */
2576
+ public static toObject(message: UserDoubleOptInEmailRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
2577
+
2578
+ /**
2579
+ * Converts this UserDoubleOptInEmailRequested to JSON.
2580
+ * @returns JSON object
2581
+ */
2582
+ public toJSON(): { [k: string]: any };
2583
+ }
2584
+
2495
2585
  /** Properties of a UserEmailUpdated. */
2496
2586
  export interface IUserEmailUpdated {
2497
2587
 
package/lib/index.js CHANGED
@@ -6061,6 +6061,193 @@ $root.SubscriptionPaymentDeclined = (function() {
6061
6061
  return SubscriptionPaymentDeclined;
6062
6062
  })();
6063
6063
 
6064
+ $root.UserDoubleOptInEmailRequested = (function() {
6065
+
6066
+ /**
6067
+ * Properties of a UserDoubleOptInEmailRequested.
6068
+ * @exports IUserDoubleOptInEmailRequested
6069
+ * @interface IUserDoubleOptInEmailRequested
6070
+ * @property {string|null} [userId] UserDoubleOptInEmailRequested userId
6071
+ */
6072
+
6073
+ /**
6074
+ * Constructs a new UserDoubleOptInEmailRequested.
6075
+ * @exports UserDoubleOptInEmailRequested
6076
+ * @classdesc Represents a UserDoubleOptInEmailRequested.
6077
+ * @implements IUserDoubleOptInEmailRequested
6078
+ * @constructor
6079
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6080
+ */
6081
+ function UserDoubleOptInEmailRequested(properties) {
6082
+ if (properties)
6083
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6084
+ if (properties[keys[i]] != null)
6085
+ this[keys[i]] = properties[keys[i]];
6086
+ }
6087
+
6088
+ /**
6089
+ * UserDoubleOptInEmailRequested userId.
6090
+ * @member {string} userId
6091
+ * @memberof UserDoubleOptInEmailRequested
6092
+ * @instance
6093
+ */
6094
+ UserDoubleOptInEmailRequested.prototype.userId = "";
6095
+
6096
+ /**
6097
+ * Creates a new UserDoubleOptInEmailRequested instance using the specified properties.
6098
+ * @function create
6099
+ * @memberof UserDoubleOptInEmailRequested
6100
+ * @static
6101
+ * @param {IUserDoubleOptInEmailRequested=} [properties] Properties to set
6102
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested instance
6103
+ */
6104
+ UserDoubleOptInEmailRequested.create = function create(properties) {
6105
+ return new UserDoubleOptInEmailRequested(properties);
6106
+ };
6107
+
6108
+ /**
6109
+ * Encodes the specified UserDoubleOptInEmailRequested message. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6110
+ * @function encode
6111
+ * @memberof UserDoubleOptInEmailRequested
6112
+ * @static
6113
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6114
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6115
+ * @returns {$protobuf.Writer} Writer
6116
+ */
6117
+ UserDoubleOptInEmailRequested.encode = function encode(message, writer) {
6118
+ if (!writer)
6119
+ writer = $Writer.create();
6120
+ if (message.userId != null && message.hasOwnProperty("userId"))
6121
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
6122
+ return writer;
6123
+ };
6124
+
6125
+ /**
6126
+ * Encodes the specified UserDoubleOptInEmailRequested message, length delimited. Does not implicitly {@link UserDoubleOptInEmailRequested.verify|verify} messages.
6127
+ * @function encodeDelimited
6128
+ * @memberof UserDoubleOptInEmailRequested
6129
+ * @static
6130
+ * @param {IUserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested message or plain object to encode
6131
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6132
+ * @returns {$protobuf.Writer} Writer
6133
+ */
6134
+ UserDoubleOptInEmailRequested.encodeDelimited = function encodeDelimited(message, writer) {
6135
+ return this.encode(message, writer).ldelim();
6136
+ };
6137
+
6138
+ /**
6139
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer.
6140
+ * @function decode
6141
+ * @memberof UserDoubleOptInEmailRequested
6142
+ * @static
6143
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6144
+ * @param {number} [length] Message length if known beforehand
6145
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6146
+ * @throws {Error} If the payload is not a reader or valid buffer
6147
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6148
+ */
6149
+ UserDoubleOptInEmailRequested.decode = function decode(reader, length) {
6150
+ if (!(reader instanceof $Reader))
6151
+ reader = $Reader.create(reader);
6152
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDoubleOptInEmailRequested();
6153
+ while (reader.pos < end) {
6154
+ var tag = reader.uint32();
6155
+ switch (tag >>> 3) {
6156
+ case 1:
6157
+ message.userId = reader.string();
6158
+ break;
6159
+ default:
6160
+ reader.skipType(tag & 7);
6161
+ break;
6162
+ }
6163
+ }
6164
+ return message;
6165
+ };
6166
+
6167
+ /**
6168
+ * Decodes a UserDoubleOptInEmailRequested message from the specified reader or buffer, length delimited.
6169
+ * @function decodeDelimited
6170
+ * @memberof UserDoubleOptInEmailRequested
6171
+ * @static
6172
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6173
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6174
+ * @throws {Error} If the payload is not a reader or valid buffer
6175
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6176
+ */
6177
+ UserDoubleOptInEmailRequested.decodeDelimited = function decodeDelimited(reader) {
6178
+ if (!(reader instanceof $Reader))
6179
+ reader = new $Reader(reader);
6180
+ return this.decode(reader, reader.uint32());
6181
+ };
6182
+
6183
+ /**
6184
+ * Verifies a UserDoubleOptInEmailRequested message.
6185
+ * @function verify
6186
+ * @memberof UserDoubleOptInEmailRequested
6187
+ * @static
6188
+ * @param {Object.<string,*>} message Plain object to verify
6189
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
6190
+ */
6191
+ UserDoubleOptInEmailRequested.verify = function verify(message) {
6192
+ if (typeof message !== "object" || message === null)
6193
+ return "object expected";
6194
+ if (message.userId != null && message.hasOwnProperty("userId"))
6195
+ if (!$util.isString(message.userId))
6196
+ return "userId: string expected";
6197
+ return null;
6198
+ };
6199
+
6200
+ /**
6201
+ * Creates a UserDoubleOptInEmailRequested message from a plain object. Also converts values to their respective internal types.
6202
+ * @function fromObject
6203
+ * @memberof UserDoubleOptInEmailRequested
6204
+ * @static
6205
+ * @param {Object.<string,*>} object Plain object
6206
+ * @returns {UserDoubleOptInEmailRequested} UserDoubleOptInEmailRequested
6207
+ */
6208
+ UserDoubleOptInEmailRequested.fromObject = function fromObject(object) {
6209
+ if (object instanceof $root.UserDoubleOptInEmailRequested)
6210
+ return object;
6211
+ var message = new $root.UserDoubleOptInEmailRequested();
6212
+ if (object.userId != null)
6213
+ message.userId = String(object.userId);
6214
+ return message;
6215
+ };
6216
+
6217
+ /**
6218
+ * Creates a plain object from a UserDoubleOptInEmailRequested message. Also converts values to other types if specified.
6219
+ * @function toObject
6220
+ * @memberof UserDoubleOptInEmailRequested
6221
+ * @static
6222
+ * @param {UserDoubleOptInEmailRequested} message UserDoubleOptInEmailRequested
6223
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
6224
+ * @returns {Object.<string,*>} Plain object
6225
+ */
6226
+ UserDoubleOptInEmailRequested.toObject = function toObject(message, options) {
6227
+ if (!options)
6228
+ options = {};
6229
+ var object = {};
6230
+ if (options.defaults)
6231
+ object.userId = "";
6232
+ if (message.userId != null && message.hasOwnProperty("userId"))
6233
+ object.userId = message.userId;
6234
+ return object;
6235
+ };
6236
+
6237
+ /**
6238
+ * Converts this UserDoubleOptInEmailRequested to JSON.
6239
+ * @function toJSON
6240
+ * @memberof UserDoubleOptInEmailRequested
6241
+ * @instance
6242
+ * @returns {Object.<string,*>} JSON object
6243
+ */
6244
+ UserDoubleOptInEmailRequested.prototype.toJSON = function toJSON() {
6245
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6246
+ };
6247
+
6248
+ return UserDoubleOptInEmailRequested;
6249
+ })();
6250
+
6064
6251
  $root.UserEmailUpdated = (function() {
6065
6252
 
6066
6253
  /**
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.15.0"
19
+ "version": "1.16.0"
20
20
  }