@headspace/protos-events 1.61.0 → 1.62.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
@@ -6340,3 +6340,99 @@ export class UserEmailMarketingOptedIn implements IUserEmailMarketingOptedIn {
6340
6340
  */
6341
6341
  public toJSON(): { [k: string]: any };
6342
6342
  }
6343
+
6344
+ /** Properties of a UserEmailMarketingSubscriptionStatusUpdated. */
6345
+ export interface IUserEmailMarketingSubscriptionStatusUpdated {
6346
+
6347
+ /** UserEmailMarketingSubscriptionStatusUpdated userId */
6348
+ userId?: (string|null);
6349
+
6350
+ /** UserEmailMarketingSubscriptionStatusUpdated status */
6351
+ status?: (string|null);
6352
+ }
6353
+
6354
+ /** Represents a UserEmailMarketingSubscriptionStatusUpdated. */
6355
+ export class UserEmailMarketingSubscriptionStatusUpdated implements IUserEmailMarketingSubscriptionStatusUpdated {
6356
+
6357
+ /**
6358
+ * Constructs a new UserEmailMarketingSubscriptionStatusUpdated.
6359
+ * @param [properties] Properties to set
6360
+ */
6361
+ constructor(properties?: IUserEmailMarketingSubscriptionStatusUpdated);
6362
+
6363
+ /** UserEmailMarketingSubscriptionStatusUpdated userId. */
6364
+ public userId: string;
6365
+
6366
+ /** UserEmailMarketingSubscriptionStatusUpdated status. */
6367
+ public status: string;
6368
+
6369
+ /**
6370
+ * Creates a new UserEmailMarketingSubscriptionStatusUpdated instance using the specified properties.
6371
+ * @param [properties] Properties to set
6372
+ * @returns UserEmailMarketingSubscriptionStatusUpdated instance
6373
+ */
6374
+ public static create(properties?: IUserEmailMarketingSubscriptionStatusUpdated): UserEmailMarketingSubscriptionStatusUpdated;
6375
+
6376
+ /**
6377
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
6378
+ * @param message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
6379
+ * @param [writer] Writer to encode to
6380
+ * @returns Writer
6381
+ */
6382
+ public static encode(message: IUserEmailMarketingSubscriptionStatusUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
6383
+
6384
+ /**
6385
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message, length delimited. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
6386
+ * @param message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
6387
+ * @param [writer] Writer to encode to
6388
+ * @returns Writer
6389
+ */
6390
+ public static encodeDelimited(message: IUserEmailMarketingSubscriptionStatusUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
6391
+
6392
+ /**
6393
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer.
6394
+ * @param reader Reader or buffer to decode from
6395
+ * @param [length] Message length if known beforehand
6396
+ * @returns UserEmailMarketingSubscriptionStatusUpdated
6397
+ * @throws {Error} If the payload is not a reader or valid buffer
6398
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6399
+ */
6400
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailMarketingSubscriptionStatusUpdated;
6401
+
6402
+ /**
6403
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer, length delimited.
6404
+ * @param reader Reader or buffer to decode from
6405
+ * @returns UserEmailMarketingSubscriptionStatusUpdated
6406
+ * @throws {Error} If the payload is not a reader or valid buffer
6407
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6408
+ */
6409
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailMarketingSubscriptionStatusUpdated;
6410
+
6411
+ /**
6412
+ * Verifies a UserEmailMarketingSubscriptionStatusUpdated message.
6413
+ * @param message Plain object to verify
6414
+ * @returns `null` if valid, otherwise the reason why it is not
6415
+ */
6416
+ public static verify(message: { [k: string]: any }): (string|null);
6417
+
6418
+ /**
6419
+ * Creates a UserEmailMarketingSubscriptionStatusUpdated message from a plain object. Also converts values to their respective internal types.
6420
+ * @param object Plain object
6421
+ * @returns UserEmailMarketingSubscriptionStatusUpdated
6422
+ */
6423
+ public static fromObject(object: { [k: string]: any }): UserEmailMarketingSubscriptionStatusUpdated;
6424
+
6425
+ /**
6426
+ * Creates a plain object from a UserEmailMarketingSubscriptionStatusUpdated message. Also converts values to other types if specified.
6427
+ * @param message UserEmailMarketingSubscriptionStatusUpdated
6428
+ * @param [options] Conversion options
6429
+ * @returns Plain object
6430
+ */
6431
+ public static toObject(message: UserEmailMarketingSubscriptionStatusUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
6432
+
6433
+ /**
6434
+ * Converts this UserEmailMarketingSubscriptionStatusUpdated to JSON.
6435
+ * @returns JSON object
6436
+ */
6437
+ public toJSON(): { [k: string]: any };
6438
+ }
package/lib/index.js CHANGED
@@ -17026,4 +17026,214 @@ $root.UserEmailMarketingOptedIn = (function() {
17026
17026
  return UserEmailMarketingOptedIn;
17027
17027
  })();
17028
17028
 
17029
+ $root.UserEmailMarketingSubscriptionStatusUpdated = (function() {
17030
+
17031
+ /**
17032
+ * Properties of a UserEmailMarketingSubscriptionStatusUpdated.
17033
+ * @exports IUserEmailMarketingSubscriptionStatusUpdated
17034
+ * @interface IUserEmailMarketingSubscriptionStatusUpdated
17035
+ * @property {string|null} [userId] UserEmailMarketingSubscriptionStatusUpdated userId
17036
+ * @property {string|null} [status] UserEmailMarketingSubscriptionStatusUpdated status
17037
+ */
17038
+
17039
+ /**
17040
+ * Constructs a new UserEmailMarketingSubscriptionStatusUpdated.
17041
+ * @exports UserEmailMarketingSubscriptionStatusUpdated
17042
+ * @classdesc Represents a UserEmailMarketingSubscriptionStatusUpdated.
17043
+ * @implements IUserEmailMarketingSubscriptionStatusUpdated
17044
+ * @constructor
17045
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated=} [properties] Properties to set
17046
+ */
17047
+ function UserEmailMarketingSubscriptionStatusUpdated(properties) {
17048
+ if (properties)
17049
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17050
+ if (properties[keys[i]] != null)
17051
+ this[keys[i]] = properties[keys[i]];
17052
+ }
17053
+
17054
+ /**
17055
+ * UserEmailMarketingSubscriptionStatusUpdated userId.
17056
+ * @member {string} userId
17057
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17058
+ * @instance
17059
+ */
17060
+ UserEmailMarketingSubscriptionStatusUpdated.prototype.userId = "";
17061
+
17062
+ /**
17063
+ * UserEmailMarketingSubscriptionStatusUpdated status.
17064
+ * @member {string} status
17065
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17066
+ * @instance
17067
+ */
17068
+ UserEmailMarketingSubscriptionStatusUpdated.prototype.status = "";
17069
+
17070
+ /**
17071
+ * Creates a new UserEmailMarketingSubscriptionStatusUpdated instance using the specified properties.
17072
+ * @function create
17073
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17074
+ * @static
17075
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated=} [properties] Properties to set
17076
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated instance
17077
+ */
17078
+ UserEmailMarketingSubscriptionStatusUpdated.create = function create(properties) {
17079
+ return new UserEmailMarketingSubscriptionStatusUpdated(properties);
17080
+ };
17081
+
17082
+ /**
17083
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
17084
+ * @function encode
17085
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17086
+ * @static
17087
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated} message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
17088
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17089
+ * @returns {$protobuf.Writer} Writer
17090
+ */
17091
+ UserEmailMarketingSubscriptionStatusUpdated.encode = function encode(message, writer) {
17092
+ if (!writer)
17093
+ writer = $Writer.create();
17094
+ if (message.userId != null && message.hasOwnProperty("userId"))
17095
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
17096
+ if (message.status != null && message.hasOwnProperty("status"))
17097
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.status);
17098
+ return writer;
17099
+ };
17100
+
17101
+ /**
17102
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message, length delimited. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
17103
+ * @function encodeDelimited
17104
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17105
+ * @static
17106
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated} message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
17107
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17108
+ * @returns {$protobuf.Writer} Writer
17109
+ */
17110
+ UserEmailMarketingSubscriptionStatusUpdated.encodeDelimited = function encodeDelimited(message, writer) {
17111
+ return this.encode(message, writer).ldelim();
17112
+ };
17113
+
17114
+ /**
17115
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer.
17116
+ * @function decode
17117
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17118
+ * @static
17119
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17120
+ * @param {number} [length] Message length if known beforehand
17121
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated
17122
+ * @throws {Error} If the payload is not a reader or valid buffer
17123
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17124
+ */
17125
+ UserEmailMarketingSubscriptionStatusUpdated.decode = function decode(reader, length) {
17126
+ if (!(reader instanceof $Reader))
17127
+ reader = $Reader.create(reader);
17128
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailMarketingSubscriptionStatusUpdated();
17129
+ while (reader.pos < end) {
17130
+ var tag = reader.uint32();
17131
+ switch (tag >>> 3) {
17132
+ case 1:
17133
+ message.userId = reader.string();
17134
+ break;
17135
+ case 2:
17136
+ message.status = reader.string();
17137
+ break;
17138
+ default:
17139
+ reader.skipType(tag & 7);
17140
+ break;
17141
+ }
17142
+ }
17143
+ return message;
17144
+ };
17145
+
17146
+ /**
17147
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer, length delimited.
17148
+ * @function decodeDelimited
17149
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17150
+ * @static
17151
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17152
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated
17153
+ * @throws {Error} If the payload is not a reader or valid buffer
17154
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17155
+ */
17156
+ UserEmailMarketingSubscriptionStatusUpdated.decodeDelimited = function decodeDelimited(reader) {
17157
+ if (!(reader instanceof $Reader))
17158
+ reader = new $Reader(reader);
17159
+ return this.decode(reader, reader.uint32());
17160
+ };
17161
+
17162
+ /**
17163
+ * Verifies a UserEmailMarketingSubscriptionStatusUpdated message.
17164
+ * @function verify
17165
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17166
+ * @static
17167
+ * @param {Object.<string,*>} message Plain object to verify
17168
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17169
+ */
17170
+ UserEmailMarketingSubscriptionStatusUpdated.verify = function verify(message) {
17171
+ if (typeof message !== "object" || message === null)
17172
+ return "object expected";
17173
+ if (message.userId != null && message.hasOwnProperty("userId"))
17174
+ if (!$util.isString(message.userId))
17175
+ return "userId: string expected";
17176
+ if (message.status != null && message.hasOwnProperty("status"))
17177
+ if (!$util.isString(message.status))
17178
+ return "status: string expected";
17179
+ return null;
17180
+ };
17181
+
17182
+ /**
17183
+ * Creates a UserEmailMarketingSubscriptionStatusUpdated message from a plain object. Also converts values to their respective internal types.
17184
+ * @function fromObject
17185
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17186
+ * @static
17187
+ * @param {Object.<string,*>} object Plain object
17188
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated
17189
+ */
17190
+ UserEmailMarketingSubscriptionStatusUpdated.fromObject = function fromObject(object) {
17191
+ if (object instanceof $root.UserEmailMarketingSubscriptionStatusUpdated)
17192
+ return object;
17193
+ var message = new $root.UserEmailMarketingSubscriptionStatusUpdated();
17194
+ if (object.userId != null)
17195
+ message.userId = String(object.userId);
17196
+ if (object.status != null)
17197
+ message.status = String(object.status);
17198
+ return message;
17199
+ };
17200
+
17201
+ /**
17202
+ * Creates a plain object from a UserEmailMarketingSubscriptionStatusUpdated message. Also converts values to other types if specified.
17203
+ * @function toObject
17204
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17205
+ * @static
17206
+ * @param {UserEmailMarketingSubscriptionStatusUpdated} message UserEmailMarketingSubscriptionStatusUpdated
17207
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17208
+ * @returns {Object.<string,*>} Plain object
17209
+ */
17210
+ UserEmailMarketingSubscriptionStatusUpdated.toObject = function toObject(message, options) {
17211
+ if (!options)
17212
+ options = {};
17213
+ var object = {};
17214
+ if (options.defaults) {
17215
+ object.userId = "";
17216
+ object.status = "";
17217
+ }
17218
+ if (message.userId != null && message.hasOwnProperty("userId"))
17219
+ object.userId = message.userId;
17220
+ if (message.status != null && message.hasOwnProperty("status"))
17221
+ object.status = message.status;
17222
+ return object;
17223
+ };
17224
+
17225
+ /**
17226
+ * Converts this UserEmailMarketingSubscriptionStatusUpdated to JSON.
17227
+ * @function toJSON
17228
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17229
+ * @instance
17230
+ * @returns {Object.<string,*>} JSON object
17231
+ */
17232
+ UserEmailMarketingSubscriptionStatusUpdated.prototype.toJSON = function toJSON() {
17233
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17234
+ };
17235
+
17236
+ return UserEmailMarketingSubscriptionStatusUpdated;
17237
+ })();
17238
+
17029
17239
  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.61.0"
19
+ "version": "1.62.0"
20
20
  }