@headspace/protos-events 1.61.0 → 1.63.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
@@ -2482,6 +2482,12 @@ export interface IBuddyAccepted {
2482
2482
 
2483
2483
  /** BuddyAccepted deepLink */
2484
2484
  deepLink?: (string|null);
2485
+
2486
+ /** BuddyAccepted buddyAcceptedText */
2487
+ buddyAcceptedText?: (string|null);
2488
+
2489
+ /** BuddyAccepted buddyAcceptedTitle */
2490
+ buddyAcceptedTitle?: (string|null);
2485
2491
  }
2486
2492
 
2487
2493
  /** Represents a BuddyAccepted. */
@@ -2502,6 +2508,12 @@ export class BuddyAccepted implements IBuddyAccepted {
2502
2508
  /** BuddyAccepted deepLink. */
2503
2509
  public deepLink: string;
2504
2510
 
2511
+ /** BuddyAccepted buddyAcceptedText. */
2512
+ public buddyAcceptedText: string;
2513
+
2514
+ /** BuddyAccepted buddyAcceptedTitle. */
2515
+ public buddyAcceptedTitle: string;
2516
+
2505
2517
  /**
2506
2518
  * Creates a new BuddyAccepted instance using the specified properties.
2507
2519
  * @param [properties] Properties to set
@@ -6340,3 +6352,99 @@ export class UserEmailMarketingOptedIn implements IUserEmailMarketingOptedIn {
6340
6352
  */
6341
6353
  public toJSON(): { [k: string]: any };
6342
6354
  }
6355
+
6356
+ /** Properties of a UserEmailMarketingSubscriptionStatusUpdated. */
6357
+ export interface IUserEmailMarketingSubscriptionStatusUpdated {
6358
+
6359
+ /** UserEmailMarketingSubscriptionStatusUpdated userId */
6360
+ userId?: (string|null);
6361
+
6362
+ /** UserEmailMarketingSubscriptionStatusUpdated status */
6363
+ status?: (string|null);
6364
+ }
6365
+
6366
+ /** Represents a UserEmailMarketingSubscriptionStatusUpdated. */
6367
+ export class UserEmailMarketingSubscriptionStatusUpdated implements IUserEmailMarketingSubscriptionStatusUpdated {
6368
+
6369
+ /**
6370
+ * Constructs a new UserEmailMarketingSubscriptionStatusUpdated.
6371
+ * @param [properties] Properties to set
6372
+ */
6373
+ constructor(properties?: IUserEmailMarketingSubscriptionStatusUpdated);
6374
+
6375
+ /** UserEmailMarketingSubscriptionStatusUpdated userId. */
6376
+ public userId: string;
6377
+
6378
+ /** UserEmailMarketingSubscriptionStatusUpdated status. */
6379
+ public status: string;
6380
+
6381
+ /**
6382
+ * Creates a new UserEmailMarketingSubscriptionStatusUpdated instance using the specified properties.
6383
+ * @param [properties] Properties to set
6384
+ * @returns UserEmailMarketingSubscriptionStatusUpdated instance
6385
+ */
6386
+ public static create(properties?: IUserEmailMarketingSubscriptionStatusUpdated): UserEmailMarketingSubscriptionStatusUpdated;
6387
+
6388
+ /**
6389
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
6390
+ * @param message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
6391
+ * @param [writer] Writer to encode to
6392
+ * @returns Writer
6393
+ */
6394
+ public static encode(message: IUserEmailMarketingSubscriptionStatusUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
6395
+
6396
+ /**
6397
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message, length delimited. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
6398
+ * @param message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
6399
+ * @param [writer] Writer to encode to
6400
+ * @returns Writer
6401
+ */
6402
+ public static encodeDelimited(message: IUserEmailMarketingSubscriptionStatusUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
6403
+
6404
+ /**
6405
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer.
6406
+ * @param reader Reader or buffer to decode from
6407
+ * @param [length] Message length if known beforehand
6408
+ * @returns UserEmailMarketingSubscriptionStatusUpdated
6409
+ * @throws {Error} If the payload is not a reader or valid buffer
6410
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6411
+ */
6412
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserEmailMarketingSubscriptionStatusUpdated;
6413
+
6414
+ /**
6415
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer, length delimited.
6416
+ * @param reader Reader or buffer to decode from
6417
+ * @returns UserEmailMarketingSubscriptionStatusUpdated
6418
+ * @throws {Error} If the payload is not a reader or valid buffer
6419
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6420
+ */
6421
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserEmailMarketingSubscriptionStatusUpdated;
6422
+
6423
+ /**
6424
+ * Verifies a UserEmailMarketingSubscriptionStatusUpdated message.
6425
+ * @param message Plain object to verify
6426
+ * @returns `null` if valid, otherwise the reason why it is not
6427
+ */
6428
+ public static verify(message: { [k: string]: any }): (string|null);
6429
+
6430
+ /**
6431
+ * Creates a UserEmailMarketingSubscriptionStatusUpdated message from a plain object. Also converts values to their respective internal types.
6432
+ * @param object Plain object
6433
+ * @returns UserEmailMarketingSubscriptionStatusUpdated
6434
+ */
6435
+ public static fromObject(object: { [k: string]: any }): UserEmailMarketingSubscriptionStatusUpdated;
6436
+
6437
+ /**
6438
+ * Creates a plain object from a UserEmailMarketingSubscriptionStatusUpdated message. Also converts values to other types if specified.
6439
+ * @param message UserEmailMarketingSubscriptionStatusUpdated
6440
+ * @param [options] Conversion options
6441
+ * @returns Plain object
6442
+ */
6443
+ public static toObject(message: UserEmailMarketingSubscriptionStatusUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
6444
+
6445
+ /**
6446
+ * Converts this UserEmailMarketingSubscriptionStatusUpdated to JSON.
6447
+ * @returns JSON object
6448
+ */
6449
+ public toJSON(): { [k: string]: any };
6450
+ }
package/lib/index.js CHANGED
@@ -5884,6 +5884,8 @@ $root.BuddyAccepted = (function() {
5884
5884
  * @property {string|null} [buddyName] BuddyAccepted buddyName
5885
5885
  * @property {string|null} [userId] BuddyAccepted userId
5886
5886
  * @property {string|null} [deepLink] BuddyAccepted deepLink
5887
+ * @property {string|null} [buddyAcceptedText] BuddyAccepted buddyAcceptedText
5888
+ * @property {string|null} [buddyAcceptedTitle] BuddyAccepted buddyAcceptedTitle
5887
5889
  */
5888
5890
 
5889
5891
  /**
@@ -5925,6 +5927,22 @@ $root.BuddyAccepted = (function() {
5925
5927
  */
5926
5928
  BuddyAccepted.prototype.deepLink = "";
5927
5929
 
5930
+ /**
5931
+ * BuddyAccepted buddyAcceptedText.
5932
+ * @member {string} buddyAcceptedText
5933
+ * @memberof BuddyAccepted
5934
+ * @instance
5935
+ */
5936
+ BuddyAccepted.prototype.buddyAcceptedText = "";
5937
+
5938
+ /**
5939
+ * BuddyAccepted buddyAcceptedTitle.
5940
+ * @member {string} buddyAcceptedTitle
5941
+ * @memberof BuddyAccepted
5942
+ * @instance
5943
+ */
5944
+ BuddyAccepted.prototype.buddyAcceptedTitle = "";
5945
+
5928
5946
  /**
5929
5947
  * Creates a new BuddyAccepted instance using the specified properties.
5930
5948
  * @function create
@@ -5955,6 +5973,10 @@ $root.BuddyAccepted = (function() {
5955
5973
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
5956
5974
  if (message.deepLink != null && message.hasOwnProperty("deepLink"))
5957
5975
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.deepLink);
5976
+ if (message.buddyAcceptedText != null && message.hasOwnProperty("buddyAcceptedText"))
5977
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.buddyAcceptedText);
5978
+ if (message.buddyAcceptedTitle != null && message.hasOwnProperty("buddyAcceptedTitle"))
5979
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.buddyAcceptedTitle);
5958
5980
  return writer;
5959
5981
  };
5960
5982
 
@@ -5998,6 +6020,12 @@ $root.BuddyAccepted = (function() {
5998
6020
  case 3:
5999
6021
  message.deepLink = reader.string();
6000
6022
  break;
6023
+ case 4:
6024
+ message.buddyAcceptedText = reader.string();
6025
+ break;
6026
+ case 5:
6027
+ message.buddyAcceptedTitle = reader.string();
6028
+ break;
6001
6029
  default:
6002
6030
  reader.skipType(tag & 7);
6003
6031
  break;
@@ -6042,6 +6070,12 @@ $root.BuddyAccepted = (function() {
6042
6070
  if (message.deepLink != null && message.hasOwnProperty("deepLink"))
6043
6071
  if (!$util.isString(message.deepLink))
6044
6072
  return "deepLink: string expected";
6073
+ if (message.buddyAcceptedText != null && message.hasOwnProperty("buddyAcceptedText"))
6074
+ if (!$util.isString(message.buddyAcceptedText))
6075
+ return "buddyAcceptedText: string expected";
6076
+ if (message.buddyAcceptedTitle != null && message.hasOwnProperty("buddyAcceptedTitle"))
6077
+ if (!$util.isString(message.buddyAcceptedTitle))
6078
+ return "buddyAcceptedTitle: string expected";
6045
6079
  return null;
6046
6080
  };
6047
6081
 
@@ -6063,6 +6097,10 @@ $root.BuddyAccepted = (function() {
6063
6097
  message.userId = String(object.userId);
6064
6098
  if (object.deepLink != null)
6065
6099
  message.deepLink = String(object.deepLink);
6100
+ if (object.buddyAcceptedText != null)
6101
+ message.buddyAcceptedText = String(object.buddyAcceptedText);
6102
+ if (object.buddyAcceptedTitle != null)
6103
+ message.buddyAcceptedTitle = String(object.buddyAcceptedTitle);
6066
6104
  return message;
6067
6105
  };
6068
6106
 
@@ -6083,6 +6121,8 @@ $root.BuddyAccepted = (function() {
6083
6121
  object.buddyName = "";
6084
6122
  object.userId = "";
6085
6123
  object.deepLink = "";
6124
+ object.buddyAcceptedText = "";
6125
+ object.buddyAcceptedTitle = "";
6086
6126
  }
6087
6127
  if (message.buddyName != null && message.hasOwnProperty("buddyName"))
6088
6128
  object.buddyName = message.buddyName;
@@ -6090,6 +6130,10 @@ $root.BuddyAccepted = (function() {
6090
6130
  object.userId = message.userId;
6091
6131
  if (message.deepLink != null && message.hasOwnProperty("deepLink"))
6092
6132
  object.deepLink = message.deepLink;
6133
+ if (message.buddyAcceptedText != null && message.hasOwnProperty("buddyAcceptedText"))
6134
+ object.buddyAcceptedText = message.buddyAcceptedText;
6135
+ if (message.buddyAcceptedTitle != null && message.hasOwnProperty("buddyAcceptedTitle"))
6136
+ object.buddyAcceptedTitle = message.buddyAcceptedTitle;
6093
6137
  return object;
6094
6138
  };
6095
6139
 
@@ -17026,4 +17070,214 @@ $root.UserEmailMarketingOptedIn = (function() {
17026
17070
  return UserEmailMarketingOptedIn;
17027
17071
  })();
17028
17072
 
17073
+ $root.UserEmailMarketingSubscriptionStatusUpdated = (function() {
17074
+
17075
+ /**
17076
+ * Properties of a UserEmailMarketingSubscriptionStatusUpdated.
17077
+ * @exports IUserEmailMarketingSubscriptionStatusUpdated
17078
+ * @interface IUserEmailMarketingSubscriptionStatusUpdated
17079
+ * @property {string|null} [userId] UserEmailMarketingSubscriptionStatusUpdated userId
17080
+ * @property {string|null} [status] UserEmailMarketingSubscriptionStatusUpdated status
17081
+ */
17082
+
17083
+ /**
17084
+ * Constructs a new UserEmailMarketingSubscriptionStatusUpdated.
17085
+ * @exports UserEmailMarketingSubscriptionStatusUpdated
17086
+ * @classdesc Represents a UserEmailMarketingSubscriptionStatusUpdated.
17087
+ * @implements IUserEmailMarketingSubscriptionStatusUpdated
17088
+ * @constructor
17089
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated=} [properties] Properties to set
17090
+ */
17091
+ function UserEmailMarketingSubscriptionStatusUpdated(properties) {
17092
+ if (properties)
17093
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17094
+ if (properties[keys[i]] != null)
17095
+ this[keys[i]] = properties[keys[i]];
17096
+ }
17097
+
17098
+ /**
17099
+ * UserEmailMarketingSubscriptionStatusUpdated userId.
17100
+ * @member {string} userId
17101
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17102
+ * @instance
17103
+ */
17104
+ UserEmailMarketingSubscriptionStatusUpdated.prototype.userId = "";
17105
+
17106
+ /**
17107
+ * UserEmailMarketingSubscriptionStatusUpdated status.
17108
+ * @member {string} status
17109
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17110
+ * @instance
17111
+ */
17112
+ UserEmailMarketingSubscriptionStatusUpdated.prototype.status = "";
17113
+
17114
+ /**
17115
+ * Creates a new UserEmailMarketingSubscriptionStatusUpdated instance using the specified properties.
17116
+ * @function create
17117
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17118
+ * @static
17119
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated=} [properties] Properties to set
17120
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated instance
17121
+ */
17122
+ UserEmailMarketingSubscriptionStatusUpdated.create = function create(properties) {
17123
+ return new UserEmailMarketingSubscriptionStatusUpdated(properties);
17124
+ };
17125
+
17126
+ /**
17127
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
17128
+ * @function encode
17129
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17130
+ * @static
17131
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated} message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
17132
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17133
+ * @returns {$protobuf.Writer} Writer
17134
+ */
17135
+ UserEmailMarketingSubscriptionStatusUpdated.encode = function encode(message, writer) {
17136
+ if (!writer)
17137
+ writer = $Writer.create();
17138
+ if (message.userId != null && message.hasOwnProperty("userId"))
17139
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
17140
+ if (message.status != null && message.hasOwnProperty("status"))
17141
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.status);
17142
+ return writer;
17143
+ };
17144
+
17145
+ /**
17146
+ * Encodes the specified UserEmailMarketingSubscriptionStatusUpdated message, length delimited. Does not implicitly {@link UserEmailMarketingSubscriptionStatusUpdated.verify|verify} messages.
17147
+ * @function encodeDelimited
17148
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17149
+ * @static
17150
+ * @param {IUserEmailMarketingSubscriptionStatusUpdated} message UserEmailMarketingSubscriptionStatusUpdated message or plain object to encode
17151
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17152
+ * @returns {$protobuf.Writer} Writer
17153
+ */
17154
+ UserEmailMarketingSubscriptionStatusUpdated.encodeDelimited = function encodeDelimited(message, writer) {
17155
+ return this.encode(message, writer).ldelim();
17156
+ };
17157
+
17158
+ /**
17159
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer.
17160
+ * @function decode
17161
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17162
+ * @static
17163
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17164
+ * @param {number} [length] Message length if known beforehand
17165
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated
17166
+ * @throws {Error} If the payload is not a reader or valid buffer
17167
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17168
+ */
17169
+ UserEmailMarketingSubscriptionStatusUpdated.decode = function decode(reader, length) {
17170
+ if (!(reader instanceof $Reader))
17171
+ reader = $Reader.create(reader);
17172
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailMarketingSubscriptionStatusUpdated();
17173
+ while (reader.pos < end) {
17174
+ var tag = reader.uint32();
17175
+ switch (tag >>> 3) {
17176
+ case 1:
17177
+ message.userId = reader.string();
17178
+ break;
17179
+ case 2:
17180
+ message.status = reader.string();
17181
+ break;
17182
+ default:
17183
+ reader.skipType(tag & 7);
17184
+ break;
17185
+ }
17186
+ }
17187
+ return message;
17188
+ };
17189
+
17190
+ /**
17191
+ * Decodes a UserEmailMarketingSubscriptionStatusUpdated message from the specified reader or buffer, length delimited.
17192
+ * @function decodeDelimited
17193
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17194
+ * @static
17195
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17196
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated
17197
+ * @throws {Error} If the payload is not a reader or valid buffer
17198
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17199
+ */
17200
+ UserEmailMarketingSubscriptionStatusUpdated.decodeDelimited = function decodeDelimited(reader) {
17201
+ if (!(reader instanceof $Reader))
17202
+ reader = new $Reader(reader);
17203
+ return this.decode(reader, reader.uint32());
17204
+ };
17205
+
17206
+ /**
17207
+ * Verifies a UserEmailMarketingSubscriptionStatusUpdated message.
17208
+ * @function verify
17209
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17210
+ * @static
17211
+ * @param {Object.<string,*>} message Plain object to verify
17212
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17213
+ */
17214
+ UserEmailMarketingSubscriptionStatusUpdated.verify = function verify(message) {
17215
+ if (typeof message !== "object" || message === null)
17216
+ return "object expected";
17217
+ if (message.userId != null && message.hasOwnProperty("userId"))
17218
+ if (!$util.isString(message.userId))
17219
+ return "userId: string expected";
17220
+ if (message.status != null && message.hasOwnProperty("status"))
17221
+ if (!$util.isString(message.status))
17222
+ return "status: string expected";
17223
+ return null;
17224
+ };
17225
+
17226
+ /**
17227
+ * Creates a UserEmailMarketingSubscriptionStatusUpdated message from a plain object. Also converts values to their respective internal types.
17228
+ * @function fromObject
17229
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17230
+ * @static
17231
+ * @param {Object.<string,*>} object Plain object
17232
+ * @returns {UserEmailMarketingSubscriptionStatusUpdated} UserEmailMarketingSubscriptionStatusUpdated
17233
+ */
17234
+ UserEmailMarketingSubscriptionStatusUpdated.fromObject = function fromObject(object) {
17235
+ if (object instanceof $root.UserEmailMarketingSubscriptionStatusUpdated)
17236
+ return object;
17237
+ var message = new $root.UserEmailMarketingSubscriptionStatusUpdated();
17238
+ if (object.userId != null)
17239
+ message.userId = String(object.userId);
17240
+ if (object.status != null)
17241
+ message.status = String(object.status);
17242
+ return message;
17243
+ };
17244
+
17245
+ /**
17246
+ * Creates a plain object from a UserEmailMarketingSubscriptionStatusUpdated message. Also converts values to other types if specified.
17247
+ * @function toObject
17248
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17249
+ * @static
17250
+ * @param {UserEmailMarketingSubscriptionStatusUpdated} message UserEmailMarketingSubscriptionStatusUpdated
17251
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17252
+ * @returns {Object.<string,*>} Plain object
17253
+ */
17254
+ UserEmailMarketingSubscriptionStatusUpdated.toObject = function toObject(message, options) {
17255
+ if (!options)
17256
+ options = {};
17257
+ var object = {};
17258
+ if (options.defaults) {
17259
+ object.userId = "";
17260
+ object.status = "";
17261
+ }
17262
+ if (message.userId != null && message.hasOwnProperty("userId"))
17263
+ object.userId = message.userId;
17264
+ if (message.status != null && message.hasOwnProperty("status"))
17265
+ object.status = message.status;
17266
+ return object;
17267
+ };
17268
+
17269
+ /**
17270
+ * Converts this UserEmailMarketingSubscriptionStatusUpdated to JSON.
17271
+ * @function toJSON
17272
+ * @memberof UserEmailMarketingSubscriptionStatusUpdated
17273
+ * @instance
17274
+ * @returns {Object.<string,*>} JSON object
17275
+ */
17276
+ UserEmailMarketingSubscriptionStatusUpdated.prototype.toJSON = function toJSON() {
17277
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17278
+ };
17279
+
17280
+ return UserEmailMarketingSubscriptionStatusUpdated;
17281
+ })();
17282
+
17029
17283
  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.63.0"
20
20
  }