@headspace/protos-events 1.101.0 → 1.103.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
@@ -4722,6 +4722,9 @@ export interface IIosSubscriptionCreated {
4722
4722
  /** IosSubscriptionCreated userId */
4723
4723
  userId?: (string|null);
4724
4724
 
4725
+ /** IosSubscriptionCreated productId */
4726
+ productId?: (string|null);
4727
+
4725
4728
  /** IosSubscriptionCreated tags */
4726
4729
  tags?: (appleReceipt.IosSubscriptionTag[]|null);
4727
4730
 
@@ -4750,6 +4753,9 @@ export class IosSubscriptionCreated implements IIosSubscriptionCreated {
4750
4753
  /** IosSubscriptionCreated userId. */
4751
4754
  public userId: string;
4752
4755
 
4756
+ /** IosSubscriptionCreated productId. */
4757
+ public productId: string;
4758
+
4753
4759
  /** IosSubscriptionCreated tags. */
4754
4760
  public tags: appleReceipt.IosSubscriptionTag[];
4755
4761
 
@@ -4842,6 +4848,9 @@ export interface IIosSubscriptionRenewed {
4842
4848
  /** IosSubscriptionRenewed userId */
4843
4849
  userId?: (string|null);
4844
4850
 
4851
+ /** IosSubscriptionRenewed productId */
4852
+ productId?: (string|null);
4853
+
4845
4854
  /** IosSubscriptionRenewed tags */
4846
4855
  tags?: (appleReceipt.IosSubscriptionTag[]|null);
4847
4856
 
@@ -4870,6 +4879,9 @@ export class IosSubscriptionRenewed implements IIosSubscriptionRenewed {
4870
4879
  /** IosSubscriptionRenewed userId. */
4871
4880
  public userId: string;
4872
4881
 
4882
+ /** IosSubscriptionRenewed productId. */
4883
+ public productId: string;
4884
+
4873
4885
  /** IosSubscriptionRenewed tags. */
4874
4886
  public tags: appleReceipt.IosSubscriptionTag[];
4875
4887
 
@@ -10712,3 +10724,99 @@ export class UserEmailMarketingSubscriptionStatusUpdated implements IUserEmailMa
10712
10724
  */
10713
10725
  public toJSON(): { [k: string]: any };
10714
10726
  }
10727
+
10728
+ /** Properties of a UserUnsubscribeRequested. */
10729
+ export interface IUserUnsubscribeRequested {
10730
+
10731
+ /** UserUnsubscribeRequested userId */
10732
+ userId?: (string|null);
10733
+
10734
+ /** UserUnsubscribeRequested timestamp */
10735
+ timestamp?: (number|Long|null);
10736
+ }
10737
+
10738
+ /** Represents a UserUnsubscribeRequested. */
10739
+ export class UserUnsubscribeRequested implements IUserUnsubscribeRequested {
10740
+
10741
+ /**
10742
+ * Constructs a new UserUnsubscribeRequested.
10743
+ * @param [properties] Properties to set
10744
+ */
10745
+ constructor(properties?: IUserUnsubscribeRequested);
10746
+
10747
+ /** UserUnsubscribeRequested userId. */
10748
+ public userId: string;
10749
+
10750
+ /** UserUnsubscribeRequested timestamp. */
10751
+ public timestamp: (number|Long);
10752
+
10753
+ /**
10754
+ * Creates a new UserUnsubscribeRequested instance using the specified properties.
10755
+ * @param [properties] Properties to set
10756
+ * @returns UserUnsubscribeRequested instance
10757
+ */
10758
+ public static create(properties?: IUserUnsubscribeRequested): UserUnsubscribeRequested;
10759
+
10760
+ /**
10761
+ * Encodes the specified UserUnsubscribeRequested message. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
10762
+ * @param message UserUnsubscribeRequested message or plain object to encode
10763
+ * @param [writer] Writer to encode to
10764
+ * @returns Writer
10765
+ */
10766
+ public static encode(message: IUserUnsubscribeRequested, writer?: $protobuf.Writer): $protobuf.Writer;
10767
+
10768
+ /**
10769
+ * Encodes the specified UserUnsubscribeRequested message, length delimited. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
10770
+ * @param message UserUnsubscribeRequested message or plain object to encode
10771
+ * @param [writer] Writer to encode to
10772
+ * @returns Writer
10773
+ */
10774
+ public static encodeDelimited(message: IUserUnsubscribeRequested, writer?: $protobuf.Writer): $protobuf.Writer;
10775
+
10776
+ /**
10777
+ * Decodes a UserUnsubscribeRequested message from the specified reader or buffer.
10778
+ * @param reader Reader or buffer to decode from
10779
+ * @param [length] Message length if known beforehand
10780
+ * @returns UserUnsubscribeRequested
10781
+ * @throws {Error} If the payload is not a reader or valid buffer
10782
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10783
+ */
10784
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): UserUnsubscribeRequested;
10785
+
10786
+ /**
10787
+ * Decodes a UserUnsubscribeRequested message from the specified reader or buffer, length delimited.
10788
+ * @param reader Reader or buffer to decode from
10789
+ * @returns UserUnsubscribeRequested
10790
+ * @throws {Error} If the payload is not a reader or valid buffer
10791
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10792
+ */
10793
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): UserUnsubscribeRequested;
10794
+
10795
+ /**
10796
+ * Verifies a UserUnsubscribeRequested message.
10797
+ * @param message Plain object to verify
10798
+ * @returns `null` if valid, otherwise the reason why it is not
10799
+ */
10800
+ public static verify(message: { [k: string]: any }): (string|null);
10801
+
10802
+ /**
10803
+ * Creates a UserUnsubscribeRequested message from a plain object. Also converts values to their respective internal types.
10804
+ * @param object Plain object
10805
+ * @returns UserUnsubscribeRequested
10806
+ */
10807
+ public static fromObject(object: { [k: string]: any }): UserUnsubscribeRequested;
10808
+
10809
+ /**
10810
+ * Creates a plain object from a UserUnsubscribeRequested message. Also converts values to other types if specified.
10811
+ * @param message UserUnsubscribeRequested
10812
+ * @param [options] Conversion options
10813
+ * @returns Plain object
10814
+ */
10815
+ public static toObject(message: UserUnsubscribeRequested, options?: $protobuf.IConversionOptions): { [k: string]: any };
10816
+
10817
+ /**
10818
+ * Converts this UserUnsubscribeRequested to JSON.
10819
+ * @returns JSON object
10820
+ */
10821
+ public toJSON(): { [k: string]: any };
10822
+ }
package/lib/index.js CHANGED
@@ -11795,6 +11795,7 @@ $root.IosSubscriptionCreated = (function() {
11795
11795
  * @property {number|Long|null} [endsAt] IosSubscriptionCreated endsAt
11796
11796
  * @property {number|Long|null} [startsAt] IosSubscriptionCreated startsAt
11797
11797
  * @property {string|null} [userId] IosSubscriptionCreated userId
11798
+ * @property {string|null} [productId] IosSubscriptionCreated productId
11798
11799
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionCreated tags
11799
11800
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionCreated terms
11800
11801
  */
@@ -11848,6 +11849,14 @@ $root.IosSubscriptionCreated = (function() {
11848
11849
  */
11849
11850
  IosSubscriptionCreated.prototype.userId = "";
11850
11851
 
11852
+ /**
11853
+ * IosSubscriptionCreated productId.
11854
+ * @member {string} productId
11855
+ * @memberof IosSubscriptionCreated
11856
+ * @instance
11857
+ */
11858
+ IosSubscriptionCreated.prototype.productId = "";
11859
+
11851
11860
  /**
11852
11861
  * IosSubscriptionCreated tags.
11853
11862
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -11905,6 +11914,8 @@ $root.IosSubscriptionCreated = (function() {
11905
11914
  if (message.terms != null && message.terms.length)
11906
11915
  for (var i = 0; i < message.terms.length; ++i)
11907
11916
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
11917
+ if (message.productId != null && message.hasOwnProperty("productId"))
11918
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
11908
11919
  return writer;
11909
11920
  };
11910
11921
 
@@ -11951,6 +11962,9 @@ $root.IosSubscriptionCreated = (function() {
11951
11962
  case 4:
11952
11963
  message.userId = reader.string();
11953
11964
  break;
11965
+ case 7:
11966
+ message.productId = reader.string();
11967
+ break;
11954
11968
  case 5:
11955
11969
  if (!(message.tags && message.tags.length))
11956
11970
  message.tags = [];
@@ -12013,6 +12027,9 @@ $root.IosSubscriptionCreated = (function() {
12013
12027
  if (message.userId != null && message.hasOwnProperty("userId"))
12014
12028
  if (!$util.isString(message.userId))
12015
12029
  return "userId: string expected";
12030
+ if (message.productId != null && message.hasOwnProperty("productId"))
12031
+ if (!$util.isString(message.productId))
12032
+ return "productId: string expected";
12016
12033
  if (message.tags != null && message.hasOwnProperty("tags")) {
12017
12034
  if (!Array.isArray(message.tags))
12018
12035
  return "tags: array expected";
@@ -12071,6 +12088,8 @@ $root.IosSubscriptionCreated = (function() {
12071
12088
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12072
12089
  if (object.userId != null)
12073
12090
  message.userId = String(object.userId);
12091
+ if (object.productId != null)
12092
+ message.productId = String(object.productId);
12074
12093
  if (object.tags) {
12075
12094
  if (!Array.isArray(object.tags))
12076
12095
  throw TypeError(".IosSubscriptionCreated.tags: array expected");
@@ -12131,6 +12150,7 @@ $root.IosSubscriptionCreated = (function() {
12131
12150
  } else
12132
12151
  object.startsAt = options.longs === String ? "0" : 0;
12133
12152
  object.userId = "";
12153
+ object.productId = "";
12134
12154
  }
12135
12155
  if (message.id != null && message.hasOwnProperty("id"))
12136
12156
  object.id = message.id;
@@ -12156,6 +12176,8 @@ $root.IosSubscriptionCreated = (function() {
12156
12176
  for (var j = 0; j < message.terms.length; ++j)
12157
12177
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12158
12178
  }
12179
+ if (message.productId != null && message.hasOwnProperty("productId"))
12180
+ object.productId = message.productId;
12159
12181
  return object;
12160
12182
  };
12161
12183
 
@@ -12183,6 +12205,7 @@ $root.IosSubscriptionRenewed = (function() {
12183
12205
  * @property {number|Long|null} [endsAt] IosSubscriptionRenewed endsAt
12184
12206
  * @property {number|Long|null} [startsAt] IosSubscriptionRenewed startsAt
12185
12207
  * @property {string|null} [userId] IosSubscriptionRenewed userId
12208
+ * @property {string|null} [productId] IosSubscriptionRenewed productId
12186
12209
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionRenewed tags
12187
12210
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionRenewed terms
12188
12211
  */
@@ -12236,6 +12259,14 @@ $root.IosSubscriptionRenewed = (function() {
12236
12259
  */
12237
12260
  IosSubscriptionRenewed.prototype.userId = "";
12238
12261
 
12262
+ /**
12263
+ * IosSubscriptionRenewed productId.
12264
+ * @member {string} productId
12265
+ * @memberof IosSubscriptionRenewed
12266
+ * @instance
12267
+ */
12268
+ IosSubscriptionRenewed.prototype.productId = "";
12269
+
12239
12270
  /**
12240
12271
  * IosSubscriptionRenewed tags.
12241
12272
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -12293,6 +12324,8 @@ $root.IosSubscriptionRenewed = (function() {
12293
12324
  if (message.terms != null && message.terms.length)
12294
12325
  for (var i = 0; i < message.terms.length; ++i)
12295
12326
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12327
+ if (message.productId != null && message.hasOwnProperty("productId"))
12328
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12296
12329
  return writer;
12297
12330
  };
12298
12331
 
@@ -12339,6 +12372,9 @@ $root.IosSubscriptionRenewed = (function() {
12339
12372
  case 4:
12340
12373
  message.userId = reader.string();
12341
12374
  break;
12375
+ case 7:
12376
+ message.productId = reader.string();
12377
+ break;
12342
12378
  case 5:
12343
12379
  if (!(message.tags && message.tags.length))
12344
12380
  message.tags = [];
@@ -12401,6 +12437,9 @@ $root.IosSubscriptionRenewed = (function() {
12401
12437
  if (message.userId != null && message.hasOwnProperty("userId"))
12402
12438
  if (!$util.isString(message.userId))
12403
12439
  return "userId: string expected";
12440
+ if (message.productId != null && message.hasOwnProperty("productId"))
12441
+ if (!$util.isString(message.productId))
12442
+ return "productId: string expected";
12404
12443
  if (message.tags != null && message.hasOwnProperty("tags")) {
12405
12444
  if (!Array.isArray(message.tags))
12406
12445
  return "tags: array expected";
@@ -12459,6 +12498,8 @@ $root.IosSubscriptionRenewed = (function() {
12459
12498
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12460
12499
  if (object.userId != null)
12461
12500
  message.userId = String(object.userId);
12501
+ if (object.productId != null)
12502
+ message.productId = String(object.productId);
12462
12503
  if (object.tags) {
12463
12504
  if (!Array.isArray(object.tags))
12464
12505
  throw TypeError(".IosSubscriptionRenewed.tags: array expected");
@@ -12519,6 +12560,7 @@ $root.IosSubscriptionRenewed = (function() {
12519
12560
  } else
12520
12561
  object.startsAt = options.longs === String ? "0" : 0;
12521
12562
  object.userId = "";
12563
+ object.productId = "";
12522
12564
  }
12523
12565
  if (message.id != null && message.hasOwnProperty("id"))
12524
12566
  object.id = message.id;
@@ -12544,6 +12586,8 @@ $root.IosSubscriptionRenewed = (function() {
12544
12586
  for (var j = 0; j < message.terms.length; ++j)
12545
12587
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12546
12588
  }
12589
+ if (message.productId != null && message.hasOwnProperty("productId"))
12590
+ object.productId = message.productId;
12547
12591
  return object;
12548
12592
  };
12549
12593
 
@@ -28700,4 +28744,228 @@ $root.UserEmailMarketingSubscriptionStatusUpdated = (function() {
28700
28744
  return UserEmailMarketingSubscriptionStatusUpdated;
28701
28745
  })();
28702
28746
 
28747
+ $root.UserUnsubscribeRequested = (function() {
28748
+
28749
+ /**
28750
+ * Properties of a UserUnsubscribeRequested.
28751
+ * @exports IUserUnsubscribeRequested
28752
+ * @interface IUserUnsubscribeRequested
28753
+ * @property {string|null} [userId] UserUnsubscribeRequested userId
28754
+ * @property {number|Long|null} [timestamp] UserUnsubscribeRequested timestamp
28755
+ */
28756
+
28757
+ /**
28758
+ * Constructs a new UserUnsubscribeRequested.
28759
+ * @exports UserUnsubscribeRequested
28760
+ * @classdesc Represents a UserUnsubscribeRequested.
28761
+ * @implements IUserUnsubscribeRequested
28762
+ * @constructor
28763
+ * @param {IUserUnsubscribeRequested=} [properties] Properties to set
28764
+ */
28765
+ function UserUnsubscribeRequested(properties) {
28766
+ if (properties)
28767
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28768
+ if (properties[keys[i]] != null)
28769
+ this[keys[i]] = properties[keys[i]];
28770
+ }
28771
+
28772
+ /**
28773
+ * UserUnsubscribeRequested userId.
28774
+ * @member {string} userId
28775
+ * @memberof UserUnsubscribeRequested
28776
+ * @instance
28777
+ */
28778
+ UserUnsubscribeRequested.prototype.userId = "";
28779
+
28780
+ /**
28781
+ * UserUnsubscribeRequested timestamp.
28782
+ * @member {number|Long} timestamp
28783
+ * @memberof UserUnsubscribeRequested
28784
+ * @instance
28785
+ */
28786
+ UserUnsubscribeRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
28787
+
28788
+ /**
28789
+ * Creates a new UserUnsubscribeRequested instance using the specified properties.
28790
+ * @function create
28791
+ * @memberof UserUnsubscribeRequested
28792
+ * @static
28793
+ * @param {IUserUnsubscribeRequested=} [properties] Properties to set
28794
+ * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested instance
28795
+ */
28796
+ UserUnsubscribeRequested.create = function create(properties) {
28797
+ return new UserUnsubscribeRequested(properties);
28798
+ };
28799
+
28800
+ /**
28801
+ * Encodes the specified UserUnsubscribeRequested message. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
28802
+ * @function encode
28803
+ * @memberof UserUnsubscribeRequested
28804
+ * @static
28805
+ * @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
28806
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28807
+ * @returns {$protobuf.Writer} Writer
28808
+ */
28809
+ UserUnsubscribeRequested.encode = function encode(message, writer) {
28810
+ if (!writer)
28811
+ writer = $Writer.create();
28812
+ if (message.userId != null && message.hasOwnProperty("userId"))
28813
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
28814
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
28815
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
28816
+ return writer;
28817
+ };
28818
+
28819
+ /**
28820
+ * Encodes the specified UserUnsubscribeRequested message, length delimited. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
28821
+ * @function encodeDelimited
28822
+ * @memberof UserUnsubscribeRequested
28823
+ * @static
28824
+ * @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
28825
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28826
+ * @returns {$protobuf.Writer} Writer
28827
+ */
28828
+ UserUnsubscribeRequested.encodeDelimited = function encodeDelimited(message, writer) {
28829
+ return this.encode(message, writer).ldelim();
28830
+ };
28831
+
28832
+ /**
28833
+ * Decodes a UserUnsubscribeRequested message from the specified reader or buffer.
28834
+ * @function decode
28835
+ * @memberof UserUnsubscribeRequested
28836
+ * @static
28837
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28838
+ * @param {number} [length] Message length if known beforehand
28839
+ * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
28840
+ * @throws {Error} If the payload is not a reader or valid buffer
28841
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28842
+ */
28843
+ UserUnsubscribeRequested.decode = function decode(reader, length) {
28844
+ if (!(reader instanceof $Reader))
28845
+ reader = $Reader.create(reader);
28846
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserUnsubscribeRequested();
28847
+ while (reader.pos < end) {
28848
+ var tag = reader.uint32();
28849
+ switch (tag >>> 3) {
28850
+ case 1:
28851
+ message.userId = reader.string();
28852
+ break;
28853
+ case 2:
28854
+ message.timestamp = reader.uint64();
28855
+ break;
28856
+ default:
28857
+ reader.skipType(tag & 7);
28858
+ break;
28859
+ }
28860
+ }
28861
+ return message;
28862
+ };
28863
+
28864
+ /**
28865
+ * Decodes a UserUnsubscribeRequested message from the specified reader or buffer, length delimited.
28866
+ * @function decodeDelimited
28867
+ * @memberof UserUnsubscribeRequested
28868
+ * @static
28869
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28870
+ * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
28871
+ * @throws {Error} If the payload is not a reader or valid buffer
28872
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28873
+ */
28874
+ UserUnsubscribeRequested.decodeDelimited = function decodeDelimited(reader) {
28875
+ if (!(reader instanceof $Reader))
28876
+ reader = new $Reader(reader);
28877
+ return this.decode(reader, reader.uint32());
28878
+ };
28879
+
28880
+ /**
28881
+ * Verifies a UserUnsubscribeRequested message.
28882
+ * @function verify
28883
+ * @memberof UserUnsubscribeRequested
28884
+ * @static
28885
+ * @param {Object.<string,*>} message Plain object to verify
28886
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28887
+ */
28888
+ UserUnsubscribeRequested.verify = function verify(message) {
28889
+ if (typeof message !== "object" || message === null)
28890
+ return "object expected";
28891
+ if (message.userId != null && message.hasOwnProperty("userId"))
28892
+ if (!$util.isString(message.userId))
28893
+ return "userId: string expected";
28894
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
28895
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
28896
+ return "timestamp: integer|Long expected";
28897
+ return null;
28898
+ };
28899
+
28900
+ /**
28901
+ * Creates a UserUnsubscribeRequested message from a plain object. Also converts values to their respective internal types.
28902
+ * @function fromObject
28903
+ * @memberof UserUnsubscribeRequested
28904
+ * @static
28905
+ * @param {Object.<string,*>} object Plain object
28906
+ * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
28907
+ */
28908
+ UserUnsubscribeRequested.fromObject = function fromObject(object) {
28909
+ if (object instanceof $root.UserUnsubscribeRequested)
28910
+ return object;
28911
+ var message = new $root.UserUnsubscribeRequested();
28912
+ if (object.userId != null)
28913
+ message.userId = String(object.userId);
28914
+ if (object.timestamp != null)
28915
+ if ($util.Long)
28916
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
28917
+ else if (typeof object.timestamp === "string")
28918
+ message.timestamp = parseInt(object.timestamp, 10);
28919
+ else if (typeof object.timestamp === "number")
28920
+ message.timestamp = object.timestamp;
28921
+ else if (typeof object.timestamp === "object")
28922
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
28923
+ return message;
28924
+ };
28925
+
28926
+ /**
28927
+ * Creates a plain object from a UserUnsubscribeRequested message. Also converts values to other types if specified.
28928
+ * @function toObject
28929
+ * @memberof UserUnsubscribeRequested
28930
+ * @static
28931
+ * @param {UserUnsubscribeRequested} message UserUnsubscribeRequested
28932
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28933
+ * @returns {Object.<string,*>} Plain object
28934
+ */
28935
+ UserUnsubscribeRequested.toObject = function toObject(message, options) {
28936
+ if (!options)
28937
+ options = {};
28938
+ var object = {};
28939
+ if (options.defaults) {
28940
+ object.userId = "";
28941
+ if ($util.Long) {
28942
+ var long = new $util.Long(0, 0, true);
28943
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
28944
+ } else
28945
+ object.timestamp = options.longs === String ? "0" : 0;
28946
+ }
28947
+ if (message.userId != null && message.hasOwnProperty("userId"))
28948
+ object.userId = message.userId;
28949
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
28950
+ if (typeof message.timestamp === "number")
28951
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
28952
+ else
28953
+ 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;
28954
+ return object;
28955
+ };
28956
+
28957
+ /**
28958
+ * Converts this UserUnsubscribeRequested to JSON.
28959
+ * @function toJSON
28960
+ * @memberof UserUnsubscribeRequested
28961
+ * @instance
28962
+ * @returns {Object.<string,*>} JSON object
28963
+ */
28964
+ UserUnsubscribeRequested.prototype.toJSON = function toJSON() {
28965
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28966
+ };
28967
+
28968
+ return UserUnsubscribeRequested;
28969
+ })();
28970
+
28703
28971
  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.101.0"
19
+ "version": "1.103.0"
20
20
  }