@headspace/protos-events 1.106.0 → 1.107.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +6 -391
  2. package/lib/index.js +128 -1277
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -3026,22 +3026,6 @@ $root.appleReceipt = (function() {
3026
3026
  return values;
3027
3027
  })();
3028
3028
 
3029
- /**
3030
- * IosSubscriptionAutoRenewalStatus enum.
3031
- * @name appleReceipt.IosSubscriptionAutoRenewalStatus
3032
- * @enum {string}
3033
- * @property {number} UNKNOWN=0 UNKNOWN value
3034
- * @property {number} ACTIVE=1 ACTIVE value
3035
- * @property {number} CANCELLED=2 CANCELLED value
3036
- */
3037
- appleReceipt.IosSubscriptionAutoRenewalStatus = (function() {
3038
- var valuesById = {}, values = Object.create(valuesById);
3039
- values[valuesById[0] = "UNKNOWN"] = 0;
3040
- values[valuesById[1] = "ACTIVE"] = 1;
3041
- values[valuesById[2] = "CANCELLED"] = 2;
3042
- return values;
3043
- })();
3044
-
3045
3029
  return appleReceipt;
3046
3030
  })();
3047
3031
 
@@ -8384,7 +8368,6 @@ $root.CompletedActivity = (function() {
8384
8368
  * @property {number|null} [activityId] CompletedActivity activityId
8385
8369
  * @property {number|null} [activityVariationId] CompletedActivity activityVariationId
8386
8370
  * @property {string|null} [completedAtIsoDate] CompletedActivity completedAtIsoDate
8387
- * @property {boolean|null} [isFirstEdhsCompletion] CompletedActivity isFirstEdhsCompletion
8388
8371
  */
8389
8372
 
8390
8373
  /**
@@ -8442,14 +8425,6 @@ $root.CompletedActivity = (function() {
8442
8425
  */
8443
8426
  CompletedActivity.prototype.completedAtIsoDate = "";
8444
8427
 
8445
- /**
8446
- * CompletedActivity isFirstEdhsCompletion.
8447
- * @member {boolean} isFirstEdhsCompletion
8448
- * @memberof CompletedActivity
8449
- * @instance
8450
- */
8451
- CompletedActivity.prototype.isFirstEdhsCompletion = false;
8452
-
8453
8428
  /**
8454
8429
  * Creates a new CompletedActivity instance using the specified properties.
8455
8430
  * @function create
@@ -8484,8 +8459,6 @@ $root.CompletedActivity = (function() {
8484
8459
  writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.activityVariationId);
8485
8460
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
8486
8461
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.completedAtIsoDate);
8487
- if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
8488
- writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isFirstEdhsCompletion);
8489
8462
  return writer;
8490
8463
  };
8491
8464
 
@@ -8535,9 +8508,6 @@ $root.CompletedActivity = (function() {
8535
8508
  case 5:
8536
8509
  message.completedAtIsoDate = reader.string();
8537
8510
  break;
8538
- case 6:
8539
- message.isFirstEdhsCompletion = reader.bool();
8540
- break;
8541
8511
  default:
8542
8512
  reader.skipType(tag & 7);
8543
8513
  break;
@@ -8588,9 +8558,6 @@ $root.CompletedActivity = (function() {
8588
8558
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
8589
8559
  if (!$util.isString(message.completedAtIsoDate))
8590
8560
  return "completedAtIsoDate: string expected";
8591
- if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
8592
- if (typeof message.isFirstEdhsCompletion !== "boolean")
8593
- return "isFirstEdhsCompletion: boolean expected";
8594
8561
  return null;
8595
8562
  };
8596
8563
 
@@ -8616,8 +8583,6 @@ $root.CompletedActivity = (function() {
8616
8583
  message.activityVariationId = object.activityVariationId >>> 0;
8617
8584
  if (object.completedAtIsoDate != null)
8618
8585
  message.completedAtIsoDate = String(object.completedAtIsoDate);
8619
- if (object.isFirstEdhsCompletion != null)
8620
- message.isFirstEdhsCompletion = Boolean(object.isFirstEdhsCompletion);
8621
8586
  return message;
8622
8587
  };
8623
8588
 
@@ -8640,7 +8605,6 @@ $root.CompletedActivity = (function() {
8640
8605
  object.activityId = 0;
8641
8606
  object.activityVariationId = 0;
8642
8607
  object.completedAtIsoDate = "";
8643
- object.isFirstEdhsCompletion = false;
8644
8608
  }
8645
8609
  if (message.userId != null && message.hasOwnProperty("userId"))
8646
8610
  object.userId = message.userId;
@@ -8652,8 +8616,6 @@ $root.CompletedActivity = (function() {
8652
8616
  object.activityVariationId = message.activityVariationId;
8653
8617
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
8654
8618
  object.completedAtIsoDate = message.completedAtIsoDate;
8655
- if (message.isFirstEdhsCompletion != null && message.hasOwnProperty("isFirstEdhsCompletion"))
8656
- object.isFirstEdhsCompletion = message.isFirstEdhsCompletion;
8657
8619
  return object;
8658
8620
  };
8659
8621
 
@@ -10196,7 +10158,6 @@ $root.SurveyQuestion = (function() {
10196
10158
  * @interface ISurveyQuestion
10197
10159
  * @property {string|null} [title] SurveyQuestion title
10198
10160
  * @property {Array.<ISurveyAnswer>|null} [answers] SurveyQuestion answers
10199
- * @property {string|null} [shorthand] SurveyQuestion shorthand
10200
10161
  */
10201
10162
 
10202
10163
  /**
@@ -10231,14 +10192,6 @@ $root.SurveyQuestion = (function() {
10231
10192
  */
10232
10193
  SurveyQuestion.prototype.answers = $util.emptyArray;
10233
10194
 
10234
- /**
10235
- * SurveyQuestion shorthand.
10236
- * @member {string} shorthand
10237
- * @memberof SurveyQuestion
10238
- * @instance
10239
- */
10240
- SurveyQuestion.prototype.shorthand = "";
10241
-
10242
10195
  /**
10243
10196
  * Creates a new SurveyQuestion instance using the specified properties.
10244
10197
  * @function create
@@ -10268,8 +10221,6 @@ $root.SurveyQuestion = (function() {
10268
10221
  if (message.answers != null && message.answers.length)
10269
10222
  for (var i = 0; i < message.answers.length; ++i)
10270
10223
  $root.SurveyAnswer.encode(message.answers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10271
- if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10272
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.shorthand);
10273
10224
  return writer;
10274
10225
  };
10275
10226
 
@@ -10312,9 +10263,6 @@ $root.SurveyQuestion = (function() {
10312
10263
  message.answers = [];
10313
10264
  message.answers.push($root.SurveyAnswer.decode(reader, reader.uint32()));
10314
10265
  break;
10315
- case 3:
10316
- message.shorthand = reader.string();
10317
- break;
10318
10266
  default:
10319
10267
  reader.skipType(tag & 7);
10320
10268
  break;
@@ -10362,9 +10310,6 @@ $root.SurveyQuestion = (function() {
10362
10310
  return "answers." + error;
10363
10311
  }
10364
10312
  }
10365
- if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10366
- if (!$util.isString(message.shorthand))
10367
- return "shorthand: string expected";
10368
10313
  return null;
10369
10314
  };
10370
10315
 
@@ -10392,8 +10337,6 @@ $root.SurveyQuestion = (function() {
10392
10337
  message.answers[i] = $root.SurveyAnswer.fromObject(object.answers[i]);
10393
10338
  }
10394
10339
  }
10395
- if (object.shorthand != null)
10396
- message.shorthand = String(object.shorthand);
10397
10340
  return message;
10398
10341
  };
10399
10342
 
@@ -10412,10 +10355,8 @@ $root.SurveyQuestion = (function() {
10412
10355
  var object = {};
10413
10356
  if (options.arrays || options.defaults)
10414
10357
  object.answers = [];
10415
- if (options.defaults) {
10358
+ if (options.defaults)
10416
10359
  object.title = "";
10417
- object.shorthand = "";
10418
- }
10419
10360
  if (message.title != null && message.hasOwnProperty("title"))
10420
10361
  object.title = message.title;
10421
10362
  if (message.answers && message.answers.length) {
@@ -10423,8 +10364,6 @@ $root.SurveyQuestion = (function() {
10423
10364
  for (var j = 0; j < message.answers.length; ++j)
10424
10365
  object.answers[j] = $root.SurveyAnswer.toObject(message.answers[j], options);
10425
10366
  }
10426
- if (message.shorthand != null && message.hasOwnProperty("shorthand"))
10427
- object.shorthand = message.shorthand;
10428
10367
  return object;
10429
10368
  };
10430
10369
 
@@ -10708,6 +10647,7 @@ $root.AssessmentScore = (function() {
10708
10647
  * @property {string|null} [surveyId] AssessmentScore surveyId
10709
10648
  * @property {number|null} [score] AssessmentScore score
10710
10649
  * @property {string|null} [completedAtIsoDate] AssessmentScore completedAtIsoDate
10650
+ * @property {string|null} [reflectionNote] AssessmentScore reflectionNote
10711
10651
  */
10712
10652
 
10713
10653
  /**
@@ -10757,6 +10697,14 @@ $root.AssessmentScore = (function() {
10757
10697
  */
10758
10698
  AssessmentScore.prototype.completedAtIsoDate = "";
10759
10699
 
10700
+ /**
10701
+ * AssessmentScore reflectionNote.
10702
+ * @member {string} reflectionNote
10703
+ * @memberof AssessmentScore
10704
+ * @instance
10705
+ */
10706
+ AssessmentScore.prototype.reflectionNote = "";
10707
+
10760
10708
  /**
10761
10709
  * Creates a new AssessmentScore instance using the specified properties.
10762
10710
  * @function create
@@ -10789,6 +10737,8 @@ $root.AssessmentScore = (function() {
10789
10737
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.score);
10790
10738
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
10791
10739
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.completedAtIsoDate);
10740
+ if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
10741
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.reflectionNote);
10792
10742
  return writer;
10793
10743
  };
10794
10744
 
@@ -10835,6 +10785,9 @@ $root.AssessmentScore = (function() {
10835
10785
  case 4:
10836
10786
  message.completedAtIsoDate = reader.string();
10837
10787
  break;
10788
+ case 5:
10789
+ message.reflectionNote = reader.string();
10790
+ break;
10838
10791
  default:
10839
10792
  reader.skipType(tag & 7);
10840
10793
  break;
@@ -10882,6 +10835,9 @@ $root.AssessmentScore = (function() {
10882
10835
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
10883
10836
  if (!$util.isString(message.completedAtIsoDate))
10884
10837
  return "completedAtIsoDate: string expected";
10838
+ if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
10839
+ if (!$util.isString(message.reflectionNote))
10840
+ return "reflectionNote: string expected";
10885
10841
  return null;
10886
10842
  };
10887
10843
 
@@ -10905,6 +10861,8 @@ $root.AssessmentScore = (function() {
10905
10861
  message.score = object.score >>> 0;
10906
10862
  if (object.completedAtIsoDate != null)
10907
10863
  message.completedAtIsoDate = String(object.completedAtIsoDate);
10864
+ if (object.reflectionNote != null)
10865
+ message.reflectionNote = String(object.reflectionNote);
10908
10866
  return message;
10909
10867
  };
10910
10868
 
@@ -10926,6 +10884,7 @@ $root.AssessmentScore = (function() {
10926
10884
  object.surveyId = "";
10927
10885
  object.score = 0;
10928
10886
  object.completedAtIsoDate = "";
10887
+ object.reflectionNote = "";
10929
10888
  }
10930
10889
  if (message.userId != null && message.hasOwnProperty("userId"))
10931
10890
  object.userId = message.userId;
@@ -10935,6 +10894,8 @@ $root.AssessmentScore = (function() {
10935
10894
  object.score = message.score;
10936
10895
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
10937
10896
  object.completedAtIsoDate = message.completedAtIsoDate;
10897
+ if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
10898
+ object.reflectionNote = message.reflectionNote;
10938
10899
  return object;
10939
10900
  };
10940
10901
 
@@ -11834,8 +11795,6 @@ $root.IosSubscriptionCreated = (function() {
11834
11795
  * @property {number|Long|null} [endsAt] IosSubscriptionCreated endsAt
11835
11796
  * @property {number|Long|null} [startsAt] IosSubscriptionCreated startsAt
11836
11797
  * @property {string|null} [userId] IosSubscriptionCreated userId
11837
- * @property {string|null} [productId] IosSubscriptionCreated productId
11838
- * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionCreated autoRenewalStatus
11839
11798
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionCreated tags
11840
11799
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionCreated terms
11841
11800
  */
@@ -11889,22 +11848,6 @@ $root.IosSubscriptionCreated = (function() {
11889
11848
  */
11890
11849
  IosSubscriptionCreated.prototype.userId = "";
11891
11850
 
11892
- /**
11893
- * IosSubscriptionCreated productId.
11894
- * @member {string} productId
11895
- * @memberof IosSubscriptionCreated
11896
- * @instance
11897
- */
11898
- IosSubscriptionCreated.prototype.productId = "";
11899
-
11900
- /**
11901
- * IosSubscriptionCreated autoRenewalStatus.
11902
- * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
11903
- * @memberof IosSubscriptionCreated
11904
- * @instance
11905
- */
11906
- IosSubscriptionCreated.prototype.autoRenewalStatus = 0;
11907
-
11908
11851
  /**
11909
11852
  * IosSubscriptionCreated tags.
11910
11853
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -11962,10 +11905,6 @@ $root.IosSubscriptionCreated = (function() {
11962
11905
  if (message.terms != null && message.terms.length)
11963
11906
  for (var i = 0; i < message.terms.length; ++i)
11964
11907
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
11965
- if (message.productId != null && message.hasOwnProperty("productId"))
11966
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
11967
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
11968
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
11969
11908
  return writer;
11970
11909
  };
11971
11910
 
@@ -12012,12 +11951,6 @@ $root.IosSubscriptionCreated = (function() {
12012
11951
  case 4:
12013
11952
  message.userId = reader.string();
12014
11953
  break;
12015
- case 7:
12016
- message.productId = reader.string();
12017
- break;
12018
- case 8:
12019
- message.autoRenewalStatus = reader.int32();
12020
- break;
12021
11954
  case 5:
12022
11955
  if (!(message.tags && message.tags.length))
12023
11956
  message.tags = [];
@@ -12080,18 +12013,6 @@ $root.IosSubscriptionCreated = (function() {
12080
12013
  if (message.userId != null && message.hasOwnProperty("userId"))
12081
12014
  if (!$util.isString(message.userId))
12082
12015
  return "userId: string expected";
12083
- if (message.productId != null && message.hasOwnProperty("productId"))
12084
- if (!$util.isString(message.productId))
12085
- return "productId: string expected";
12086
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12087
- switch (message.autoRenewalStatus) {
12088
- default:
12089
- return "autoRenewalStatus: enum value expected";
12090
- case 0:
12091
- case 1:
12092
- case 2:
12093
- break;
12094
- }
12095
12016
  if (message.tags != null && message.hasOwnProperty("tags")) {
12096
12017
  if (!Array.isArray(message.tags))
12097
12018
  return "tags: array expected";
@@ -12150,22 +12071,6 @@ $root.IosSubscriptionCreated = (function() {
12150
12071
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12151
12072
  if (object.userId != null)
12152
12073
  message.userId = String(object.userId);
12153
- if (object.productId != null)
12154
- message.productId = String(object.productId);
12155
- switch (object.autoRenewalStatus) {
12156
- case "UNKNOWN":
12157
- case 0:
12158
- message.autoRenewalStatus = 0;
12159
- break;
12160
- case "ACTIVE":
12161
- case 1:
12162
- message.autoRenewalStatus = 1;
12163
- break;
12164
- case "CANCELLED":
12165
- case 2:
12166
- message.autoRenewalStatus = 2;
12167
- break;
12168
- }
12169
12074
  if (object.tags) {
12170
12075
  if (!Array.isArray(object.tags))
12171
12076
  throw TypeError(".IosSubscriptionCreated.tags: array expected");
@@ -12226,8 +12131,6 @@ $root.IosSubscriptionCreated = (function() {
12226
12131
  } else
12227
12132
  object.startsAt = options.longs === String ? "0" : 0;
12228
12133
  object.userId = "";
12229
- object.productId = "";
12230
- object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
12231
12134
  }
12232
12135
  if (message.id != null && message.hasOwnProperty("id"))
12233
12136
  object.id = message.id;
@@ -12253,10 +12156,6 @@ $root.IosSubscriptionCreated = (function() {
12253
12156
  for (var j = 0; j < message.terms.length; ++j)
12254
12157
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12255
12158
  }
12256
- if (message.productId != null && message.hasOwnProperty("productId"))
12257
- object.productId = message.productId;
12258
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12259
- object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
12260
12159
  return object;
12261
12160
  };
12262
12161
 
@@ -12284,8 +12183,6 @@ $root.IosSubscriptionRenewed = (function() {
12284
12183
  * @property {number|Long|null} [endsAt] IosSubscriptionRenewed endsAt
12285
12184
  * @property {number|Long|null} [startsAt] IosSubscriptionRenewed startsAt
12286
12185
  * @property {string|null} [userId] IosSubscriptionRenewed userId
12287
- * @property {string|null} [productId] IosSubscriptionRenewed productId
12288
- * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionRenewed autoRenewalStatus
12289
12186
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionRenewed tags
12290
12187
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionRenewed terms
12291
12188
  */
@@ -12339,22 +12236,6 @@ $root.IosSubscriptionRenewed = (function() {
12339
12236
  */
12340
12237
  IosSubscriptionRenewed.prototype.userId = "";
12341
12238
 
12342
- /**
12343
- * IosSubscriptionRenewed productId.
12344
- * @member {string} productId
12345
- * @memberof IosSubscriptionRenewed
12346
- * @instance
12347
- */
12348
- IosSubscriptionRenewed.prototype.productId = "";
12349
-
12350
- /**
12351
- * IosSubscriptionRenewed autoRenewalStatus.
12352
- * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
12353
- * @memberof IosSubscriptionRenewed
12354
- * @instance
12355
- */
12356
- IosSubscriptionRenewed.prototype.autoRenewalStatus = 0;
12357
-
12358
12239
  /**
12359
12240
  * IosSubscriptionRenewed tags.
12360
12241
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -12412,10 +12293,6 @@ $root.IosSubscriptionRenewed = (function() {
12412
12293
  if (message.terms != null && message.terms.length)
12413
12294
  for (var i = 0; i < message.terms.length; ++i)
12414
12295
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12415
- if (message.productId != null && message.hasOwnProperty("productId"))
12416
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12417
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12418
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
12419
12296
  return writer;
12420
12297
  };
12421
12298
 
@@ -12462,12 +12339,6 @@ $root.IosSubscriptionRenewed = (function() {
12462
12339
  case 4:
12463
12340
  message.userId = reader.string();
12464
12341
  break;
12465
- case 7:
12466
- message.productId = reader.string();
12467
- break;
12468
- case 8:
12469
- message.autoRenewalStatus = reader.int32();
12470
- break;
12471
12342
  case 5:
12472
12343
  if (!(message.tags && message.tags.length))
12473
12344
  message.tags = [];
@@ -12530,18 +12401,6 @@ $root.IosSubscriptionRenewed = (function() {
12530
12401
  if (message.userId != null && message.hasOwnProperty("userId"))
12531
12402
  if (!$util.isString(message.userId))
12532
12403
  return "userId: string expected";
12533
- if (message.productId != null && message.hasOwnProperty("productId"))
12534
- if (!$util.isString(message.productId))
12535
- return "productId: string expected";
12536
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12537
- switch (message.autoRenewalStatus) {
12538
- default:
12539
- return "autoRenewalStatus: enum value expected";
12540
- case 0:
12541
- case 1:
12542
- case 2:
12543
- break;
12544
- }
12545
12404
  if (message.tags != null && message.hasOwnProperty("tags")) {
12546
12405
  if (!Array.isArray(message.tags))
12547
12406
  return "tags: array expected";
@@ -12600,22 +12459,6 @@ $root.IosSubscriptionRenewed = (function() {
12600
12459
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12601
12460
  if (object.userId != null)
12602
12461
  message.userId = String(object.userId);
12603
- if (object.productId != null)
12604
- message.productId = String(object.productId);
12605
- switch (object.autoRenewalStatus) {
12606
- case "UNKNOWN":
12607
- case 0:
12608
- message.autoRenewalStatus = 0;
12609
- break;
12610
- case "ACTIVE":
12611
- case 1:
12612
- message.autoRenewalStatus = 1;
12613
- break;
12614
- case "CANCELLED":
12615
- case 2:
12616
- message.autoRenewalStatus = 2;
12617
- break;
12618
- }
12619
12462
  if (object.tags) {
12620
12463
  if (!Array.isArray(object.tags))
12621
12464
  throw TypeError(".IosSubscriptionRenewed.tags: array expected");
@@ -12676,8 +12519,6 @@ $root.IosSubscriptionRenewed = (function() {
12676
12519
  } else
12677
12520
  object.startsAt = options.longs === String ? "0" : 0;
12678
12521
  object.userId = "";
12679
- object.productId = "";
12680
- object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
12681
12522
  }
12682
12523
  if (message.id != null && message.hasOwnProperty("id"))
12683
12524
  object.id = message.id;
@@ -12703,10 +12544,6 @@ $root.IosSubscriptionRenewed = (function() {
12703
12544
  for (var j = 0; j < message.terms.length; ++j)
12704
12545
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12705
12546
  }
12706
- if (message.productId != null && message.hasOwnProperty("productId"))
12707
- object.productId = message.productId;
12708
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12709
- object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
12710
12547
  return object;
12711
12548
  };
12712
12549
 
@@ -12724,33 +12561,24 @@ $root.IosSubscriptionRenewed = (function() {
12724
12561
  return IosSubscriptionRenewed;
12725
12562
  })();
12726
12563
 
12727
- $root.IosSubscriptionAutoRenewalUpdated = (function() {
12564
+ $root.AssetCreated = (function() {
12728
12565
 
12729
12566
  /**
12730
- * Properties of an IosSubscriptionAutoRenewalUpdated.
12731
- * @exports IIosSubscriptionAutoRenewalUpdated
12732
- * @interface IIosSubscriptionAutoRenewalUpdated
12733
- * @property {string|null} [id] IosSubscriptionAutoRenewalUpdated id
12734
- * @property {number|Long|null} [endsAt] IosSubscriptionAutoRenewalUpdated endsAt
12735
- * @property {number|Long|null} [startsAt] IosSubscriptionAutoRenewalUpdated startsAt
12736
- * @property {string|null} [userId] IosSubscriptionAutoRenewalUpdated userId
12737
- * @property {string|null} [productId] IosSubscriptionAutoRenewalUpdated productId
12738
- * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionAutoRenewalUpdated autoRenewalStatus
12739
- * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionAutoRenewalUpdated tags
12740
- * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionAutoRenewalUpdated terms
12567
+ * Properties of an AssetCreated.
12568
+ * @exports IAssetCreated
12569
+ * @interface IAssetCreated
12570
+ * @property {asset.IAsset|null} [asset] AssetCreated asset
12741
12571
  */
12742
12572
 
12743
12573
  /**
12744
- * Constructs a new IosSubscriptionAutoRenewalUpdated.
12745
- * @exports IosSubscriptionAutoRenewalUpdated
12746
- * @classdesc Represents an IosSubscriptionAutoRenewalUpdated.
12747
- * @implements IIosSubscriptionAutoRenewalUpdated
12574
+ * Constructs a new AssetCreated.
12575
+ * @exports AssetCreated
12576
+ * @classdesc Represents an AssetCreated.
12577
+ * @implements IAssetCreated
12748
12578
  * @constructor
12749
- * @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
12579
+ * @param {IAssetCreated=} [properties] Properties to set
12750
12580
  */
12751
- function IosSubscriptionAutoRenewalUpdated(properties) {
12752
- this.tags = [];
12753
- this.terms = [];
12581
+ function AssetCreated(properties) {
12754
12582
  if (properties)
12755
12583
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12756
12584
  if (properties[keys[i]] != null)
@@ -12758,180 +12586,75 @@ $root.IosSubscriptionAutoRenewalUpdated = (function() {
12758
12586
  }
12759
12587
 
12760
12588
  /**
12761
- * IosSubscriptionAutoRenewalUpdated id.
12762
- * @member {string} id
12763
- * @memberof IosSubscriptionAutoRenewalUpdated
12764
- * @instance
12765
- */
12766
- IosSubscriptionAutoRenewalUpdated.prototype.id = "";
12767
-
12768
- /**
12769
- * IosSubscriptionAutoRenewalUpdated endsAt.
12770
- * @member {number|Long} endsAt
12771
- * @memberof IosSubscriptionAutoRenewalUpdated
12772
- * @instance
12773
- */
12774
- IosSubscriptionAutoRenewalUpdated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12775
-
12776
- /**
12777
- * IosSubscriptionAutoRenewalUpdated startsAt.
12778
- * @member {number|Long} startsAt
12779
- * @memberof IosSubscriptionAutoRenewalUpdated
12780
- * @instance
12781
- */
12782
- IosSubscriptionAutoRenewalUpdated.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12783
-
12784
- /**
12785
- * IosSubscriptionAutoRenewalUpdated userId.
12786
- * @member {string} userId
12787
- * @memberof IosSubscriptionAutoRenewalUpdated
12788
- * @instance
12789
- */
12790
- IosSubscriptionAutoRenewalUpdated.prototype.userId = "";
12791
-
12792
- /**
12793
- * IosSubscriptionAutoRenewalUpdated productId.
12794
- * @member {string} productId
12795
- * @memberof IosSubscriptionAutoRenewalUpdated
12796
- * @instance
12797
- */
12798
- IosSubscriptionAutoRenewalUpdated.prototype.productId = "";
12799
-
12800
- /**
12801
- * IosSubscriptionAutoRenewalUpdated autoRenewalStatus.
12802
- * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
12803
- * @memberof IosSubscriptionAutoRenewalUpdated
12804
- * @instance
12805
- */
12806
- IosSubscriptionAutoRenewalUpdated.prototype.autoRenewalStatus = 0;
12807
-
12808
- /**
12809
- * IosSubscriptionAutoRenewalUpdated tags.
12810
- * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
12811
- * @memberof IosSubscriptionAutoRenewalUpdated
12812
- * @instance
12813
- */
12814
- IosSubscriptionAutoRenewalUpdated.prototype.tags = $util.emptyArray;
12815
-
12816
- /**
12817
- * IosSubscriptionAutoRenewalUpdated terms.
12818
- * @member {Array.<appleReceipt.IIosSubscriptionTerm>} terms
12819
- * @memberof IosSubscriptionAutoRenewalUpdated
12589
+ * AssetCreated asset.
12590
+ * @member {asset.IAsset|null|undefined} asset
12591
+ * @memberof AssetCreated
12820
12592
  * @instance
12821
12593
  */
12822
- IosSubscriptionAutoRenewalUpdated.prototype.terms = $util.emptyArray;
12594
+ AssetCreated.prototype.asset = null;
12823
12595
 
12824
12596
  /**
12825
- * Creates a new IosSubscriptionAutoRenewalUpdated instance using the specified properties.
12597
+ * Creates a new AssetCreated instance using the specified properties.
12826
12598
  * @function create
12827
- * @memberof IosSubscriptionAutoRenewalUpdated
12599
+ * @memberof AssetCreated
12828
12600
  * @static
12829
- * @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
12830
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated instance
12601
+ * @param {IAssetCreated=} [properties] Properties to set
12602
+ * @returns {AssetCreated} AssetCreated instance
12831
12603
  */
12832
- IosSubscriptionAutoRenewalUpdated.create = function create(properties) {
12833
- return new IosSubscriptionAutoRenewalUpdated(properties);
12604
+ AssetCreated.create = function create(properties) {
12605
+ return new AssetCreated(properties);
12834
12606
  };
12835
12607
 
12836
12608
  /**
12837
- * Encodes the specified IosSubscriptionAutoRenewalUpdated message. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
12609
+ * Encodes the specified AssetCreated message. Does not implicitly {@link AssetCreated.verify|verify} messages.
12838
12610
  * @function encode
12839
- * @memberof IosSubscriptionAutoRenewalUpdated
12611
+ * @memberof AssetCreated
12840
12612
  * @static
12841
- * @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
12613
+ * @param {IAssetCreated} message AssetCreated message or plain object to encode
12842
12614
  * @param {$protobuf.Writer} [writer] Writer to encode to
12843
12615
  * @returns {$protobuf.Writer} Writer
12844
12616
  */
12845
- IosSubscriptionAutoRenewalUpdated.encode = function encode(message, writer) {
12617
+ AssetCreated.encode = function encode(message, writer) {
12846
12618
  if (!writer)
12847
12619
  writer = $Writer.create();
12848
- if (message.id != null && message.hasOwnProperty("id"))
12849
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
12850
- if (message.endsAt != null && message.hasOwnProperty("endsAt"))
12851
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
12852
- if (message.startsAt != null && message.hasOwnProperty("startsAt"))
12853
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.startsAt);
12854
- if (message.userId != null && message.hasOwnProperty("userId"))
12855
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.userId);
12856
- if (message.tags != null && message.tags.length) {
12857
- writer.uint32(/* id 5, wireType 2 =*/42).fork();
12858
- for (var i = 0; i < message.tags.length; ++i)
12859
- writer.int32(message.tags[i]);
12860
- writer.ldelim();
12861
- }
12862
- if (message.terms != null && message.terms.length)
12863
- for (var i = 0; i < message.terms.length; ++i)
12864
- $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12865
- if (message.productId != null && message.hasOwnProperty("productId"))
12866
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12867
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12868
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
12620
+ if (message.asset != null && message.hasOwnProperty("asset"))
12621
+ $root.asset.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
12869
12622
  return writer;
12870
12623
  };
12871
12624
 
12872
12625
  /**
12873
- * Encodes the specified IosSubscriptionAutoRenewalUpdated message, length delimited. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
12626
+ * Encodes the specified AssetCreated message, length delimited. Does not implicitly {@link AssetCreated.verify|verify} messages.
12874
12627
  * @function encodeDelimited
12875
- * @memberof IosSubscriptionAutoRenewalUpdated
12628
+ * @memberof AssetCreated
12876
12629
  * @static
12877
- * @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
12630
+ * @param {IAssetCreated} message AssetCreated message or plain object to encode
12878
12631
  * @param {$protobuf.Writer} [writer] Writer to encode to
12879
12632
  * @returns {$protobuf.Writer} Writer
12880
12633
  */
12881
- IosSubscriptionAutoRenewalUpdated.encodeDelimited = function encodeDelimited(message, writer) {
12634
+ AssetCreated.encodeDelimited = function encodeDelimited(message, writer) {
12882
12635
  return this.encode(message, writer).ldelim();
12883
12636
  };
12884
12637
 
12885
12638
  /**
12886
- * Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer.
12639
+ * Decodes an AssetCreated message from the specified reader or buffer.
12887
12640
  * @function decode
12888
- * @memberof IosSubscriptionAutoRenewalUpdated
12641
+ * @memberof AssetCreated
12889
12642
  * @static
12890
12643
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12891
12644
  * @param {number} [length] Message length if known beforehand
12892
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
12645
+ * @returns {AssetCreated} AssetCreated
12893
12646
  * @throws {Error} If the payload is not a reader or valid buffer
12894
12647
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12895
12648
  */
12896
- IosSubscriptionAutoRenewalUpdated.decode = function decode(reader, length) {
12649
+ AssetCreated.decode = function decode(reader, length) {
12897
12650
  if (!(reader instanceof $Reader))
12898
12651
  reader = $Reader.create(reader);
12899
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IosSubscriptionAutoRenewalUpdated();
12652
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AssetCreated();
12900
12653
  while (reader.pos < end) {
12901
12654
  var tag = reader.uint32();
12902
12655
  switch (tag >>> 3) {
12903
12656
  case 1:
12904
- message.id = reader.string();
12905
- break;
12906
- case 2:
12907
- message.endsAt = reader.uint64();
12908
- break;
12909
- case 3:
12910
- message.startsAt = reader.uint64();
12911
- break;
12912
- case 4:
12913
- message.userId = reader.string();
12914
- break;
12915
- case 7:
12916
- message.productId = reader.string();
12917
- break;
12918
- case 8:
12919
- message.autoRenewalStatus = reader.int32();
12920
- break;
12921
- case 5:
12922
- if (!(message.tags && message.tags.length))
12923
- message.tags = [];
12924
- if ((tag & 7) === 2) {
12925
- var end2 = reader.uint32() + reader.pos;
12926
- while (reader.pos < end2)
12927
- message.tags.push(reader.int32());
12928
- } else
12929
- message.tags.push(reader.int32());
12930
- break;
12931
- case 6:
12932
- if (!(message.terms && message.terms.length))
12933
- message.terms = [];
12934
- message.terms.push($root.appleReceipt.IosSubscriptionTerm.decode(reader, reader.uint32()));
12657
+ message.asset = $root.asset.Asset.decode(reader, reader.uint32());
12935
12658
  break;
12936
12659
  default:
12937
12660
  reader.skipType(tag & 7);
@@ -12942,366 +12665,30 @@ $root.IosSubscriptionAutoRenewalUpdated = (function() {
12942
12665
  };
12943
12666
 
12944
12667
  /**
12945
- * Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer, length delimited.
12668
+ * Decodes an AssetCreated message from the specified reader or buffer, length delimited.
12946
12669
  * @function decodeDelimited
12947
- * @memberof IosSubscriptionAutoRenewalUpdated
12670
+ * @memberof AssetCreated
12948
12671
  * @static
12949
12672
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12950
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
12673
+ * @returns {AssetCreated} AssetCreated
12951
12674
  * @throws {Error} If the payload is not a reader or valid buffer
12952
12675
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12953
12676
  */
12954
- IosSubscriptionAutoRenewalUpdated.decodeDelimited = function decodeDelimited(reader) {
12677
+ AssetCreated.decodeDelimited = function decodeDelimited(reader) {
12955
12678
  if (!(reader instanceof $Reader))
12956
12679
  reader = new $Reader(reader);
12957
12680
  return this.decode(reader, reader.uint32());
12958
12681
  };
12959
12682
 
12960
12683
  /**
12961
- * Verifies an IosSubscriptionAutoRenewalUpdated message.
12684
+ * Verifies an AssetCreated message.
12962
12685
  * @function verify
12963
- * @memberof IosSubscriptionAutoRenewalUpdated
12686
+ * @memberof AssetCreated
12964
12687
  * @static
12965
12688
  * @param {Object.<string,*>} message Plain object to verify
12966
12689
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
12967
12690
  */
12968
- IosSubscriptionAutoRenewalUpdated.verify = function verify(message) {
12969
- if (typeof message !== "object" || message === null)
12970
- return "object expected";
12971
- if (message.id != null && message.hasOwnProperty("id"))
12972
- if (!$util.isString(message.id))
12973
- return "id: string expected";
12974
- if (message.endsAt != null && message.hasOwnProperty("endsAt"))
12975
- if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
12976
- return "endsAt: integer|Long expected";
12977
- if (message.startsAt != null && message.hasOwnProperty("startsAt"))
12978
- if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
12979
- return "startsAt: integer|Long expected";
12980
- if (message.userId != null && message.hasOwnProperty("userId"))
12981
- if (!$util.isString(message.userId))
12982
- return "userId: string expected";
12983
- if (message.productId != null && message.hasOwnProperty("productId"))
12984
- if (!$util.isString(message.productId))
12985
- return "productId: string expected";
12986
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12987
- switch (message.autoRenewalStatus) {
12988
- default:
12989
- return "autoRenewalStatus: enum value expected";
12990
- case 0:
12991
- case 1:
12992
- case 2:
12993
- break;
12994
- }
12995
- if (message.tags != null && message.hasOwnProperty("tags")) {
12996
- if (!Array.isArray(message.tags))
12997
- return "tags: array expected";
12998
- for (var i = 0; i < message.tags.length; ++i)
12999
- switch (message.tags[i]) {
13000
- default:
13001
- return "tags: enum value[] expected";
13002
- case 0:
13003
- case 1:
13004
- break;
13005
- }
13006
- }
13007
- if (message.terms != null && message.hasOwnProperty("terms")) {
13008
- if (!Array.isArray(message.terms))
13009
- return "terms: array expected";
13010
- for (var i = 0; i < message.terms.length; ++i) {
13011
- var error = $root.appleReceipt.IosSubscriptionTerm.verify(message.terms[i]);
13012
- if (error)
13013
- return "terms." + error;
13014
- }
13015
- }
13016
- return null;
13017
- };
13018
-
13019
- /**
13020
- * Creates an IosSubscriptionAutoRenewalUpdated message from a plain object. Also converts values to their respective internal types.
13021
- * @function fromObject
13022
- * @memberof IosSubscriptionAutoRenewalUpdated
13023
- * @static
13024
- * @param {Object.<string,*>} object Plain object
13025
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
13026
- */
13027
- IosSubscriptionAutoRenewalUpdated.fromObject = function fromObject(object) {
13028
- if (object instanceof $root.IosSubscriptionAutoRenewalUpdated)
13029
- return object;
13030
- var message = new $root.IosSubscriptionAutoRenewalUpdated();
13031
- if (object.id != null)
13032
- message.id = String(object.id);
13033
- if (object.endsAt != null)
13034
- if ($util.Long)
13035
- (message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
13036
- else if (typeof object.endsAt === "string")
13037
- message.endsAt = parseInt(object.endsAt, 10);
13038
- else if (typeof object.endsAt === "number")
13039
- message.endsAt = object.endsAt;
13040
- else if (typeof object.endsAt === "object")
13041
- message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
13042
- if (object.startsAt != null)
13043
- if ($util.Long)
13044
- (message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
13045
- else if (typeof object.startsAt === "string")
13046
- message.startsAt = parseInt(object.startsAt, 10);
13047
- else if (typeof object.startsAt === "number")
13048
- message.startsAt = object.startsAt;
13049
- else if (typeof object.startsAt === "object")
13050
- message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
13051
- if (object.userId != null)
13052
- message.userId = String(object.userId);
13053
- if (object.productId != null)
13054
- message.productId = String(object.productId);
13055
- switch (object.autoRenewalStatus) {
13056
- case "UNKNOWN":
13057
- case 0:
13058
- message.autoRenewalStatus = 0;
13059
- break;
13060
- case "ACTIVE":
13061
- case 1:
13062
- message.autoRenewalStatus = 1;
13063
- break;
13064
- case "CANCELLED":
13065
- case 2:
13066
- message.autoRenewalStatus = 2;
13067
- break;
13068
- }
13069
- if (object.tags) {
13070
- if (!Array.isArray(object.tags))
13071
- throw TypeError(".IosSubscriptionAutoRenewalUpdated.tags: array expected");
13072
- message.tags = [];
13073
- for (var i = 0; i < object.tags.length; ++i)
13074
- switch (object.tags[i]) {
13075
- default:
13076
- case "IOSTAG_UNKNOWN":
13077
- case 0:
13078
- message.tags[i] = 0;
13079
- break;
13080
- case "IOSTAG_FREE_TRIAL":
13081
- case 1:
13082
- message.tags[i] = 1;
13083
- break;
13084
- }
13085
- }
13086
- if (object.terms) {
13087
- if (!Array.isArray(object.terms))
13088
- throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: array expected");
13089
- message.terms = [];
13090
- for (var i = 0; i < object.terms.length; ++i) {
13091
- if (typeof object.terms[i] !== "object")
13092
- throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: object expected");
13093
- message.terms[i] = $root.appleReceipt.IosSubscriptionTerm.fromObject(object.terms[i]);
13094
- }
13095
- }
13096
- return message;
13097
- };
13098
-
13099
- /**
13100
- * Creates a plain object from an IosSubscriptionAutoRenewalUpdated message. Also converts values to other types if specified.
13101
- * @function toObject
13102
- * @memberof IosSubscriptionAutoRenewalUpdated
13103
- * @static
13104
- * @param {IosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated
13105
- * @param {$protobuf.IConversionOptions} [options] Conversion options
13106
- * @returns {Object.<string,*>} Plain object
13107
- */
13108
- IosSubscriptionAutoRenewalUpdated.toObject = function toObject(message, options) {
13109
- if (!options)
13110
- options = {};
13111
- var object = {};
13112
- if (options.arrays || options.defaults) {
13113
- object.tags = [];
13114
- object.terms = [];
13115
- }
13116
- if (options.defaults) {
13117
- object.id = "";
13118
- if ($util.Long) {
13119
- var long = new $util.Long(0, 0, true);
13120
- object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13121
- } else
13122
- object.endsAt = options.longs === String ? "0" : 0;
13123
- if ($util.Long) {
13124
- var long = new $util.Long(0, 0, true);
13125
- object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13126
- } else
13127
- object.startsAt = options.longs === String ? "0" : 0;
13128
- object.userId = "";
13129
- object.productId = "";
13130
- object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
13131
- }
13132
- if (message.id != null && message.hasOwnProperty("id"))
13133
- object.id = message.id;
13134
- if (message.endsAt != null && message.hasOwnProperty("endsAt"))
13135
- if (typeof message.endsAt === "number")
13136
- object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
13137
- else
13138
- object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
13139
- if (message.startsAt != null && message.hasOwnProperty("startsAt"))
13140
- if (typeof message.startsAt === "number")
13141
- object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
13142
- else
13143
- object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
13144
- if (message.userId != null && message.hasOwnProperty("userId"))
13145
- object.userId = message.userId;
13146
- if (message.tags && message.tags.length) {
13147
- object.tags = [];
13148
- for (var j = 0; j < message.tags.length; ++j)
13149
- object.tags[j] = options.enums === String ? $root.appleReceipt.IosSubscriptionTag[message.tags[j]] : message.tags[j];
13150
- }
13151
- if (message.terms && message.terms.length) {
13152
- object.terms = [];
13153
- for (var j = 0; j < message.terms.length; ++j)
13154
- object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
13155
- }
13156
- if (message.productId != null && message.hasOwnProperty("productId"))
13157
- object.productId = message.productId;
13158
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
13159
- object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
13160
- return object;
13161
- };
13162
-
13163
- /**
13164
- * Converts this IosSubscriptionAutoRenewalUpdated to JSON.
13165
- * @function toJSON
13166
- * @memberof IosSubscriptionAutoRenewalUpdated
13167
- * @instance
13168
- * @returns {Object.<string,*>} JSON object
13169
- */
13170
- IosSubscriptionAutoRenewalUpdated.prototype.toJSON = function toJSON() {
13171
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13172
- };
13173
-
13174
- return IosSubscriptionAutoRenewalUpdated;
13175
- })();
13176
-
13177
- $root.AssetCreated = (function() {
13178
-
13179
- /**
13180
- * Properties of an AssetCreated.
13181
- * @exports IAssetCreated
13182
- * @interface IAssetCreated
13183
- * @property {asset.IAsset|null} [asset] AssetCreated asset
13184
- */
13185
-
13186
- /**
13187
- * Constructs a new AssetCreated.
13188
- * @exports AssetCreated
13189
- * @classdesc Represents an AssetCreated.
13190
- * @implements IAssetCreated
13191
- * @constructor
13192
- * @param {IAssetCreated=} [properties] Properties to set
13193
- */
13194
- function AssetCreated(properties) {
13195
- if (properties)
13196
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13197
- if (properties[keys[i]] != null)
13198
- this[keys[i]] = properties[keys[i]];
13199
- }
13200
-
13201
- /**
13202
- * AssetCreated asset.
13203
- * @member {asset.IAsset|null|undefined} asset
13204
- * @memberof AssetCreated
13205
- * @instance
13206
- */
13207
- AssetCreated.prototype.asset = null;
13208
-
13209
- /**
13210
- * Creates a new AssetCreated instance using the specified properties.
13211
- * @function create
13212
- * @memberof AssetCreated
13213
- * @static
13214
- * @param {IAssetCreated=} [properties] Properties to set
13215
- * @returns {AssetCreated} AssetCreated instance
13216
- */
13217
- AssetCreated.create = function create(properties) {
13218
- return new AssetCreated(properties);
13219
- };
13220
-
13221
- /**
13222
- * Encodes the specified AssetCreated message. Does not implicitly {@link AssetCreated.verify|verify} messages.
13223
- * @function encode
13224
- * @memberof AssetCreated
13225
- * @static
13226
- * @param {IAssetCreated} message AssetCreated message or plain object to encode
13227
- * @param {$protobuf.Writer} [writer] Writer to encode to
13228
- * @returns {$protobuf.Writer} Writer
13229
- */
13230
- AssetCreated.encode = function encode(message, writer) {
13231
- if (!writer)
13232
- writer = $Writer.create();
13233
- if (message.asset != null && message.hasOwnProperty("asset"))
13234
- $root.asset.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13235
- return writer;
13236
- };
13237
-
13238
- /**
13239
- * Encodes the specified AssetCreated message, length delimited. Does not implicitly {@link AssetCreated.verify|verify} messages.
13240
- * @function encodeDelimited
13241
- * @memberof AssetCreated
13242
- * @static
13243
- * @param {IAssetCreated} message AssetCreated message or plain object to encode
13244
- * @param {$protobuf.Writer} [writer] Writer to encode to
13245
- * @returns {$protobuf.Writer} Writer
13246
- */
13247
- AssetCreated.encodeDelimited = function encodeDelimited(message, writer) {
13248
- return this.encode(message, writer).ldelim();
13249
- };
13250
-
13251
- /**
13252
- * Decodes an AssetCreated message from the specified reader or buffer.
13253
- * @function decode
13254
- * @memberof AssetCreated
13255
- * @static
13256
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13257
- * @param {number} [length] Message length if known beforehand
13258
- * @returns {AssetCreated} AssetCreated
13259
- * @throws {Error} If the payload is not a reader or valid buffer
13260
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13261
- */
13262
- AssetCreated.decode = function decode(reader, length) {
13263
- if (!(reader instanceof $Reader))
13264
- reader = $Reader.create(reader);
13265
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AssetCreated();
13266
- while (reader.pos < end) {
13267
- var tag = reader.uint32();
13268
- switch (tag >>> 3) {
13269
- case 1:
13270
- message.asset = $root.asset.Asset.decode(reader, reader.uint32());
13271
- break;
13272
- default:
13273
- reader.skipType(tag & 7);
13274
- break;
13275
- }
13276
- }
13277
- return message;
13278
- };
13279
-
13280
- /**
13281
- * Decodes an AssetCreated message from the specified reader or buffer, length delimited.
13282
- * @function decodeDelimited
13283
- * @memberof AssetCreated
13284
- * @static
13285
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13286
- * @returns {AssetCreated} AssetCreated
13287
- * @throws {Error} If the payload is not a reader or valid buffer
13288
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13289
- */
13290
- AssetCreated.decodeDelimited = function decodeDelimited(reader) {
13291
- if (!(reader instanceof $Reader))
13292
- reader = new $Reader(reader);
13293
- return this.decode(reader, reader.uint32());
13294
- };
13295
-
13296
- /**
13297
- * Verifies an AssetCreated message.
13298
- * @function verify
13299
- * @memberof AssetCreated
13300
- * @static
13301
- * @param {Object.<string,*>} message Plain object to verify
13302
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
13303
- */
13304
- AssetCreated.verify = function verify(message) {
12691
+ AssetCreated.verify = function verify(message) {
13305
12692
  if (typeof message !== "object" || message === null)
13306
12693
  return "object expected";
13307
12694
  if (message.asset != null && message.hasOwnProperty("asset")) {
@@ -16757,7 +16144,6 @@ $root.AccessGroupCreated = (function() {
16757
16144
  * @property {string|null} [accessGroupName] AccessGroupCreated accessGroupName
16758
16145
  * @property {string|null} [description] AccessGroupCreated description
16759
16146
  * @property {number|Long|null} [createdAt] AccessGroupCreated createdAt
16760
- * @property {string|null} [slug] AccessGroupCreated slug
16761
16147
  */
16762
16148
 
16763
16149
  /**
@@ -16797,347 +16183,69 @@ $root.AccessGroupCreated = (function() {
16797
16183
  * @memberof AccessGroupCreated
16798
16184
  * @instance
16799
16185
  */
16800
- AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16801
-
16802
- /**
16803
- * AccessGroupCreated slug.
16804
- * @member {string} slug
16805
- * @memberof AccessGroupCreated
16806
- * @instance
16807
- */
16808
- AccessGroupCreated.prototype.slug = "";
16809
-
16810
- /**
16811
- * Creates a new AccessGroupCreated instance using the specified properties.
16812
- * @function create
16813
- * @memberof AccessGroupCreated
16814
- * @static
16815
- * @param {IAccessGroupCreated=} [properties] Properties to set
16816
- * @returns {AccessGroupCreated} AccessGroupCreated instance
16817
- */
16818
- AccessGroupCreated.create = function create(properties) {
16819
- return new AccessGroupCreated(properties);
16820
- };
16821
-
16822
- /**
16823
- * Encodes the specified AccessGroupCreated message. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
16824
- * @function encode
16825
- * @memberof AccessGroupCreated
16826
- * @static
16827
- * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
16828
- * @param {$protobuf.Writer} [writer] Writer to encode to
16829
- * @returns {$protobuf.Writer} Writer
16830
- */
16831
- AccessGroupCreated.encode = function encode(message, writer) {
16832
- if (!writer)
16833
- writer = $Writer.create();
16834
- if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16835
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
16836
- if (message.description != null && message.hasOwnProperty("description"))
16837
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
16838
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16839
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
16840
- if (message.slug != null && message.hasOwnProperty("slug"))
16841
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.slug);
16842
- return writer;
16843
- };
16844
-
16845
- /**
16846
- * Encodes the specified AccessGroupCreated message, length delimited. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
16847
- * @function encodeDelimited
16848
- * @memberof AccessGroupCreated
16849
- * @static
16850
- * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
16851
- * @param {$protobuf.Writer} [writer] Writer to encode to
16852
- * @returns {$protobuf.Writer} Writer
16853
- */
16854
- AccessGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
16855
- return this.encode(message, writer).ldelim();
16856
- };
16857
-
16858
- /**
16859
- * Decodes an AccessGroupCreated message from the specified reader or buffer.
16860
- * @function decode
16861
- * @memberof AccessGroupCreated
16862
- * @static
16863
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16864
- * @param {number} [length] Message length if known beforehand
16865
- * @returns {AccessGroupCreated} AccessGroupCreated
16866
- * @throws {Error} If the payload is not a reader or valid buffer
16867
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16868
- */
16869
- AccessGroupCreated.decode = function decode(reader, length) {
16870
- if (!(reader instanceof $Reader))
16871
- reader = $Reader.create(reader);
16872
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupCreated();
16873
- while (reader.pos < end) {
16874
- var tag = reader.uint32();
16875
- switch (tag >>> 3) {
16876
- case 1:
16877
- message.accessGroupName = reader.string();
16878
- break;
16879
- case 2:
16880
- message.description = reader.string();
16881
- break;
16882
- case 3:
16883
- message.createdAt = reader.uint64();
16884
- break;
16885
- case 4:
16886
- message.slug = reader.string();
16887
- break;
16888
- default:
16889
- reader.skipType(tag & 7);
16890
- break;
16891
- }
16892
- }
16893
- return message;
16894
- };
16895
-
16896
- /**
16897
- * Decodes an AccessGroupCreated message from the specified reader or buffer, length delimited.
16898
- * @function decodeDelimited
16899
- * @memberof AccessGroupCreated
16900
- * @static
16901
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16902
- * @returns {AccessGroupCreated} AccessGroupCreated
16903
- * @throws {Error} If the payload is not a reader or valid buffer
16904
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16905
- */
16906
- AccessGroupCreated.decodeDelimited = function decodeDelimited(reader) {
16907
- if (!(reader instanceof $Reader))
16908
- reader = new $Reader(reader);
16909
- return this.decode(reader, reader.uint32());
16910
- };
16911
-
16912
- /**
16913
- * Verifies an AccessGroupCreated message.
16914
- * @function verify
16915
- * @memberof AccessGroupCreated
16916
- * @static
16917
- * @param {Object.<string,*>} message Plain object to verify
16918
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
16919
- */
16920
- AccessGroupCreated.verify = function verify(message) {
16921
- if (typeof message !== "object" || message === null)
16922
- return "object expected";
16923
- if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16924
- if (!$util.isString(message.accessGroupName))
16925
- return "accessGroupName: string expected";
16926
- if (message.description != null && message.hasOwnProperty("description"))
16927
- if (!$util.isString(message.description))
16928
- return "description: string expected";
16929
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16930
- if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
16931
- return "createdAt: integer|Long expected";
16932
- if (message.slug != null && message.hasOwnProperty("slug"))
16933
- if (!$util.isString(message.slug))
16934
- return "slug: string expected";
16935
- return null;
16936
- };
16937
-
16938
- /**
16939
- * Creates an AccessGroupCreated message from a plain object. Also converts values to their respective internal types.
16940
- * @function fromObject
16941
- * @memberof AccessGroupCreated
16942
- * @static
16943
- * @param {Object.<string,*>} object Plain object
16944
- * @returns {AccessGroupCreated} AccessGroupCreated
16945
- */
16946
- AccessGroupCreated.fromObject = function fromObject(object) {
16947
- if (object instanceof $root.AccessGroupCreated)
16948
- return object;
16949
- var message = new $root.AccessGroupCreated();
16950
- if (object.accessGroupName != null)
16951
- message.accessGroupName = String(object.accessGroupName);
16952
- if (object.description != null)
16953
- message.description = String(object.description);
16954
- if (object.createdAt != null)
16955
- if ($util.Long)
16956
- (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
16957
- else if (typeof object.createdAt === "string")
16958
- message.createdAt = parseInt(object.createdAt, 10);
16959
- else if (typeof object.createdAt === "number")
16960
- message.createdAt = object.createdAt;
16961
- else if (typeof object.createdAt === "object")
16962
- message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
16963
- if (object.slug != null)
16964
- message.slug = String(object.slug);
16965
- return message;
16966
- };
16967
-
16968
- /**
16969
- * Creates a plain object from an AccessGroupCreated message. Also converts values to other types if specified.
16970
- * @function toObject
16971
- * @memberof AccessGroupCreated
16972
- * @static
16973
- * @param {AccessGroupCreated} message AccessGroupCreated
16974
- * @param {$protobuf.IConversionOptions} [options] Conversion options
16975
- * @returns {Object.<string,*>} Plain object
16976
- */
16977
- AccessGroupCreated.toObject = function toObject(message, options) {
16978
- if (!options)
16979
- options = {};
16980
- var object = {};
16981
- if (options.defaults) {
16982
- object.accessGroupName = "";
16983
- object.description = "";
16984
- if ($util.Long) {
16985
- var long = new $util.Long(0, 0, true);
16986
- object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16987
- } else
16988
- object.createdAt = options.longs === String ? "0" : 0;
16989
- object.slug = "";
16990
- }
16991
- if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16992
- object.accessGroupName = message.accessGroupName;
16993
- if (message.description != null && message.hasOwnProperty("description"))
16994
- object.description = message.description;
16995
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16996
- if (typeof message.createdAt === "number")
16997
- object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
16998
- else
16999
- object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
17000
- if (message.slug != null && message.hasOwnProperty("slug"))
17001
- object.slug = message.slug;
17002
- return object;
17003
- };
17004
-
17005
- /**
17006
- * Converts this AccessGroupCreated to JSON.
17007
- * @function toJSON
17008
- * @memberof AccessGroupCreated
17009
- * @instance
17010
- * @returns {Object.<string,*>} JSON object
17011
- */
17012
- AccessGroupCreated.prototype.toJSON = function toJSON() {
17013
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17014
- };
17015
-
17016
- return AccessGroupCreated;
17017
- })();
17018
-
17019
- $root.AccessGroupUpdated = (function() {
17020
-
17021
- /**
17022
- * Properties of an AccessGroupUpdated.
17023
- * @exports IAccessGroupUpdated
17024
- * @interface IAccessGroupUpdated
17025
- * @property {string|null} [accessGroupName] AccessGroupUpdated accessGroupName
17026
- * @property {string|null} [description] AccessGroupUpdated description
17027
- * @property {number|Long|null} [updatedAt] AccessGroupUpdated updatedAt
17028
- * @property {string|null} [slug] AccessGroupUpdated slug
17029
- */
17030
-
17031
- /**
17032
- * Constructs a new AccessGroupUpdated.
17033
- * @exports AccessGroupUpdated
17034
- * @classdesc Represents an AccessGroupUpdated.
17035
- * @implements IAccessGroupUpdated
17036
- * @constructor
17037
- * @param {IAccessGroupUpdated=} [properties] Properties to set
17038
- */
17039
- function AccessGroupUpdated(properties) {
17040
- if (properties)
17041
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17042
- if (properties[keys[i]] != null)
17043
- this[keys[i]] = properties[keys[i]];
17044
- }
17045
-
17046
- /**
17047
- * AccessGroupUpdated accessGroupName.
17048
- * @member {string} accessGroupName
17049
- * @memberof AccessGroupUpdated
17050
- * @instance
17051
- */
17052
- AccessGroupUpdated.prototype.accessGroupName = "";
17053
-
17054
- /**
17055
- * AccessGroupUpdated description.
17056
- * @member {string} description
17057
- * @memberof AccessGroupUpdated
17058
- * @instance
17059
- */
17060
- AccessGroupUpdated.prototype.description = "";
17061
-
17062
- /**
17063
- * AccessGroupUpdated updatedAt.
17064
- * @member {number|Long} updatedAt
17065
- * @memberof AccessGroupUpdated
17066
- * @instance
17067
- */
17068
- AccessGroupUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17069
-
17070
- /**
17071
- * AccessGroupUpdated slug.
17072
- * @member {string} slug
17073
- * @memberof AccessGroupUpdated
17074
- * @instance
17075
- */
17076
- AccessGroupUpdated.prototype.slug = "";
16186
+ AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17077
16187
 
17078
16188
  /**
17079
- * Creates a new AccessGroupUpdated instance using the specified properties.
16189
+ * Creates a new AccessGroupCreated instance using the specified properties.
17080
16190
  * @function create
17081
- * @memberof AccessGroupUpdated
16191
+ * @memberof AccessGroupCreated
17082
16192
  * @static
17083
- * @param {IAccessGroupUpdated=} [properties] Properties to set
17084
- * @returns {AccessGroupUpdated} AccessGroupUpdated instance
16193
+ * @param {IAccessGroupCreated=} [properties] Properties to set
16194
+ * @returns {AccessGroupCreated} AccessGroupCreated instance
17085
16195
  */
17086
- AccessGroupUpdated.create = function create(properties) {
17087
- return new AccessGroupUpdated(properties);
16196
+ AccessGroupCreated.create = function create(properties) {
16197
+ return new AccessGroupCreated(properties);
17088
16198
  };
17089
16199
 
17090
16200
  /**
17091
- * Encodes the specified AccessGroupUpdated message. Does not implicitly {@link AccessGroupUpdated.verify|verify} messages.
16201
+ * Encodes the specified AccessGroupCreated message. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
17092
16202
  * @function encode
17093
- * @memberof AccessGroupUpdated
16203
+ * @memberof AccessGroupCreated
17094
16204
  * @static
17095
- * @param {IAccessGroupUpdated} message AccessGroupUpdated message or plain object to encode
16205
+ * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
17096
16206
  * @param {$protobuf.Writer} [writer] Writer to encode to
17097
16207
  * @returns {$protobuf.Writer} Writer
17098
16208
  */
17099
- AccessGroupUpdated.encode = function encode(message, writer) {
16209
+ AccessGroupCreated.encode = function encode(message, writer) {
17100
16210
  if (!writer)
17101
16211
  writer = $Writer.create();
17102
16212
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17103
16213
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
17104
16214
  if (message.description != null && message.hasOwnProperty("description"))
17105
16215
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
17106
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17107
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
17108
- if (message.slug != null && message.hasOwnProperty("slug"))
17109
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.slug);
16216
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16217
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
17110
16218
  return writer;
17111
16219
  };
17112
16220
 
17113
16221
  /**
17114
- * Encodes the specified AccessGroupUpdated message, length delimited. Does not implicitly {@link AccessGroupUpdated.verify|verify} messages.
16222
+ * Encodes the specified AccessGroupCreated message, length delimited. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
17115
16223
  * @function encodeDelimited
17116
- * @memberof AccessGroupUpdated
16224
+ * @memberof AccessGroupCreated
17117
16225
  * @static
17118
- * @param {IAccessGroupUpdated} message AccessGroupUpdated message or plain object to encode
16226
+ * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
17119
16227
  * @param {$protobuf.Writer} [writer] Writer to encode to
17120
16228
  * @returns {$protobuf.Writer} Writer
17121
16229
  */
17122
- AccessGroupUpdated.encodeDelimited = function encodeDelimited(message, writer) {
16230
+ AccessGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
17123
16231
  return this.encode(message, writer).ldelim();
17124
16232
  };
17125
16233
 
17126
16234
  /**
17127
- * Decodes an AccessGroupUpdated message from the specified reader or buffer.
16235
+ * Decodes an AccessGroupCreated message from the specified reader or buffer.
17128
16236
  * @function decode
17129
- * @memberof AccessGroupUpdated
16237
+ * @memberof AccessGroupCreated
17130
16238
  * @static
17131
16239
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17132
16240
  * @param {number} [length] Message length if known beforehand
17133
- * @returns {AccessGroupUpdated} AccessGroupUpdated
16241
+ * @returns {AccessGroupCreated} AccessGroupCreated
17134
16242
  * @throws {Error} If the payload is not a reader or valid buffer
17135
16243
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
17136
16244
  */
17137
- AccessGroupUpdated.decode = function decode(reader, length) {
16245
+ AccessGroupCreated.decode = function decode(reader, length) {
17138
16246
  if (!(reader instanceof $Reader))
17139
16247
  reader = $Reader.create(reader);
17140
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupUpdated();
16248
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupCreated();
17141
16249
  while (reader.pos < end) {
17142
16250
  var tag = reader.uint32();
17143
16251
  switch (tag >>> 3) {
@@ -17148,10 +16256,7 @@ $root.AccessGroupUpdated = (function() {
17148
16256
  message.description = reader.string();
17149
16257
  break;
17150
16258
  case 3:
17151
- message.updatedAt = reader.uint64();
17152
- break;
17153
- case 4:
17154
- message.slug = reader.string();
16259
+ message.createdAt = reader.uint64();
17155
16260
  break;
17156
16261
  default:
17157
16262
  reader.skipType(tag & 7);
@@ -17162,30 +16267,30 @@ $root.AccessGroupUpdated = (function() {
17162
16267
  };
17163
16268
 
17164
16269
  /**
17165
- * Decodes an AccessGroupUpdated message from the specified reader or buffer, length delimited.
16270
+ * Decodes an AccessGroupCreated message from the specified reader or buffer, length delimited.
17166
16271
  * @function decodeDelimited
17167
- * @memberof AccessGroupUpdated
16272
+ * @memberof AccessGroupCreated
17168
16273
  * @static
17169
16274
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17170
- * @returns {AccessGroupUpdated} AccessGroupUpdated
16275
+ * @returns {AccessGroupCreated} AccessGroupCreated
17171
16276
  * @throws {Error} If the payload is not a reader or valid buffer
17172
16277
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
17173
16278
  */
17174
- AccessGroupUpdated.decodeDelimited = function decodeDelimited(reader) {
16279
+ AccessGroupCreated.decodeDelimited = function decodeDelimited(reader) {
17175
16280
  if (!(reader instanceof $Reader))
17176
16281
  reader = new $Reader(reader);
17177
16282
  return this.decode(reader, reader.uint32());
17178
16283
  };
17179
16284
 
17180
16285
  /**
17181
- * Verifies an AccessGroupUpdated message.
16286
+ * Verifies an AccessGroupCreated message.
17182
16287
  * @function verify
17183
- * @memberof AccessGroupUpdated
16288
+ * @memberof AccessGroupCreated
17184
16289
  * @static
17185
16290
  * @param {Object.<string,*>} message Plain object to verify
17186
16291
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
17187
16292
  */
17188
- AccessGroupUpdated.verify = function verify(message) {
16293
+ AccessGroupCreated.verify = function verify(message) {
17189
16294
  if (typeof message !== "object" || message === null)
17190
16295
  return "object expected";
17191
16296
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
@@ -17194,55 +16299,50 @@ $root.AccessGroupUpdated = (function() {
17194
16299
  if (message.description != null && message.hasOwnProperty("description"))
17195
16300
  if (!$util.isString(message.description))
17196
16301
  return "description: string expected";
17197
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17198
- if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
17199
- return "updatedAt: integer|Long expected";
17200
- if (message.slug != null && message.hasOwnProperty("slug"))
17201
- if (!$util.isString(message.slug))
17202
- return "slug: string expected";
16302
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16303
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
16304
+ return "createdAt: integer|Long expected";
17203
16305
  return null;
17204
16306
  };
17205
16307
 
17206
16308
  /**
17207
- * Creates an AccessGroupUpdated message from a plain object. Also converts values to their respective internal types.
16309
+ * Creates an AccessGroupCreated message from a plain object. Also converts values to their respective internal types.
17208
16310
  * @function fromObject
17209
- * @memberof AccessGroupUpdated
16311
+ * @memberof AccessGroupCreated
17210
16312
  * @static
17211
16313
  * @param {Object.<string,*>} object Plain object
17212
- * @returns {AccessGroupUpdated} AccessGroupUpdated
16314
+ * @returns {AccessGroupCreated} AccessGroupCreated
17213
16315
  */
17214
- AccessGroupUpdated.fromObject = function fromObject(object) {
17215
- if (object instanceof $root.AccessGroupUpdated)
16316
+ AccessGroupCreated.fromObject = function fromObject(object) {
16317
+ if (object instanceof $root.AccessGroupCreated)
17216
16318
  return object;
17217
- var message = new $root.AccessGroupUpdated();
16319
+ var message = new $root.AccessGroupCreated();
17218
16320
  if (object.accessGroupName != null)
17219
16321
  message.accessGroupName = String(object.accessGroupName);
17220
16322
  if (object.description != null)
17221
16323
  message.description = String(object.description);
17222
- if (object.updatedAt != null)
16324
+ if (object.createdAt != null)
17223
16325
  if ($util.Long)
17224
- (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
17225
- else if (typeof object.updatedAt === "string")
17226
- message.updatedAt = parseInt(object.updatedAt, 10);
17227
- else if (typeof object.updatedAt === "number")
17228
- message.updatedAt = object.updatedAt;
17229
- else if (typeof object.updatedAt === "object")
17230
- message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
17231
- if (object.slug != null)
17232
- message.slug = String(object.slug);
16326
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
16327
+ else if (typeof object.createdAt === "string")
16328
+ message.createdAt = parseInt(object.createdAt, 10);
16329
+ else if (typeof object.createdAt === "number")
16330
+ message.createdAt = object.createdAt;
16331
+ else if (typeof object.createdAt === "object")
16332
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
17233
16333
  return message;
17234
16334
  };
17235
16335
 
17236
16336
  /**
17237
- * Creates a plain object from an AccessGroupUpdated message. Also converts values to other types if specified.
16337
+ * Creates a plain object from an AccessGroupCreated message. Also converts values to other types if specified.
17238
16338
  * @function toObject
17239
- * @memberof AccessGroupUpdated
16339
+ * @memberof AccessGroupCreated
17240
16340
  * @static
17241
- * @param {AccessGroupUpdated} message AccessGroupUpdated
16341
+ * @param {AccessGroupCreated} message AccessGroupCreated
17242
16342
  * @param {$protobuf.IConversionOptions} [options] Conversion options
17243
16343
  * @returns {Object.<string,*>} Plain object
17244
16344
  */
17245
- AccessGroupUpdated.toObject = function toObject(message, options) {
16345
+ AccessGroupCreated.toObject = function toObject(message, options) {
17246
16346
  if (!options)
17247
16347
  options = {};
17248
16348
  var object = {};
@@ -17251,37 +16351,34 @@ $root.AccessGroupUpdated = (function() {
17251
16351
  object.description = "";
17252
16352
  if ($util.Long) {
17253
16353
  var long = new $util.Long(0, 0, true);
17254
- object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16354
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17255
16355
  } else
17256
- object.updatedAt = options.longs === String ? "0" : 0;
17257
- object.slug = "";
16356
+ object.createdAt = options.longs === String ? "0" : 0;
17258
16357
  }
17259
16358
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17260
16359
  object.accessGroupName = message.accessGroupName;
17261
16360
  if (message.description != null && message.hasOwnProperty("description"))
17262
16361
  object.description = message.description;
17263
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17264
- if (typeof message.updatedAt === "number")
17265
- object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
16362
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16363
+ if (typeof message.createdAt === "number")
16364
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
17266
16365
  else
17267
- object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
17268
- if (message.slug != null && message.hasOwnProperty("slug"))
17269
- object.slug = message.slug;
16366
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
17270
16367
  return object;
17271
16368
  };
17272
16369
 
17273
16370
  /**
17274
- * Converts this AccessGroupUpdated to JSON.
16371
+ * Converts this AccessGroupCreated to JSON.
17275
16372
  * @function toJSON
17276
- * @memberof AccessGroupUpdated
16373
+ * @memberof AccessGroupCreated
17277
16374
  * @instance
17278
16375
  * @returns {Object.<string,*>} JSON object
17279
16376
  */
17280
- AccessGroupUpdated.prototype.toJSON = function toJSON() {
16377
+ AccessGroupCreated.prototype.toJSON = function toJSON() {
17281
16378
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17282
16379
  };
17283
16380
 
17284
- return AccessGroupUpdated;
16381
+ return AccessGroupCreated;
17285
16382
  })();
17286
16383
 
17287
16384
  $root.AccessGroupDeleted = (function() {
@@ -17292,7 +16389,6 @@ $root.AccessGroupDeleted = (function() {
17292
16389
  * @interface IAccessGroupDeleted
17293
16390
  * @property {string|null} [accessGroupName] AccessGroupDeleted accessGroupName
17294
16391
  * @property {number|Long|null} [deletedAt] AccessGroupDeleted deletedAt
17295
- * @property {string|null} [slug] AccessGroupDeleted slug
17296
16392
  */
17297
16393
 
17298
16394
  /**
@@ -17326,14 +16422,6 @@ $root.AccessGroupDeleted = (function() {
17326
16422
  */
17327
16423
  AccessGroupDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17328
16424
 
17329
- /**
17330
- * AccessGroupDeleted slug.
17331
- * @member {string} slug
17332
- * @memberof AccessGroupDeleted
17333
- * @instance
17334
- */
17335
- AccessGroupDeleted.prototype.slug = "";
17336
-
17337
16425
  /**
17338
16426
  * Creates a new AccessGroupDeleted instance using the specified properties.
17339
16427
  * @function create
@@ -17362,8 +16450,6 @@ $root.AccessGroupDeleted = (function() {
17362
16450
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
17363
16451
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17364
16452
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
17365
- if (message.slug != null && message.hasOwnProperty("slug"))
17366
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
17367
16453
  return writer;
17368
16454
  };
17369
16455
 
@@ -17404,9 +16490,6 @@ $root.AccessGroupDeleted = (function() {
17404
16490
  case 2:
17405
16491
  message.deletedAt = reader.uint64();
17406
16492
  break;
17407
- case 3:
17408
- message.slug = reader.string();
17409
- break;
17410
16493
  default:
17411
16494
  reader.skipType(tag & 7);
17412
16495
  break;
@@ -17448,9 +16531,6 @@ $root.AccessGroupDeleted = (function() {
17448
16531
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17449
16532
  if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
17450
16533
  return "deletedAt: integer|Long expected";
17451
- if (message.slug != null && message.hasOwnProperty("slug"))
17452
- if (!$util.isString(message.slug))
17453
- return "slug: string expected";
17454
16534
  return null;
17455
16535
  };
17456
16536
 
@@ -17477,8 +16557,6 @@ $root.AccessGroupDeleted = (function() {
17477
16557
  message.deletedAt = object.deletedAt;
17478
16558
  else if (typeof object.deletedAt === "object")
17479
16559
  message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
17480
- if (object.slug != null)
17481
- message.slug = String(object.slug);
17482
16560
  return message;
17483
16561
  };
17484
16562
 
@@ -17502,7 +16580,6 @@ $root.AccessGroupDeleted = (function() {
17502
16580
  object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17503
16581
  } else
17504
16582
  object.deletedAt = options.longs === String ? "0" : 0;
17505
- object.slug = "";
17506
16583
  }
17507
16584
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17508
16585
  object.accessGroupName = message.accessGroupName;
@@ -17511,8 +16588,6 @@ $root.AccessGroupDeleted = (function() {
17511
16588
  object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
17512
16589
  else
17513
16590
  object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
17514
- if (message.slug != null && message.hasOwnProperty("slug"))
17515
- object.slug = message.slug;
17516
16591
  return object;
17517
16592
  };
17518
16593
 
@@ -29625,228 +28700,4 @@ $root.UserEmailMarketingSubscriptionStatusUpdated = (function() {
29625
28700
  return UserEmailMarketingSubscriptionStatusUpdated;
29626
28701
  })();
29627
28702
 
29628
- $root.UserUnsubscribeRequested = (function() {
29629
-
29630
- /**
29631
- * Properties of a UserUnsubscribeRequested.
29632
- * @exports IUserUnsubscribeRequested
29633
- * @interface IUserUnsubscribeRequested
29634
- * @property {string|null} [userId] UserUnsubscribeRequested userId
29635
- * @property {number|Long|null} [timestamp] UserUnsubscribeRequested timestamp
29636
- */
29637
-
29638
- /**
29639
- * Constructs a new UserUnsubscribeRequested.
29640
- * @exports UserUnsubscribeRequested
29641
- * @classdesc Represents a UserUnsubscribeRequested.
29642
- * @implements IUserUnsubscribeRequested
29643
- * @constructor
29644
- * @param {IUserUnsubscribeRequested=} [properties] Properties to set
29645
- */
29646
- function UserUnsubscribeRequested(properties) {
29647
- if (properties)
29648
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
29649
- if (properties[keys[i]] != null)
29650
- this[keys[i]] = properties[keys[i]];
29651
- }
29652
-
29653
- /**
29654
- * UserUnsubscribeRequested userId.
29655
- * @member {string} userId
29656
- * @memberof UserUnsubscribeRequested
29657
- * @instance
29658
- */
29659
- UserUnsubscribeRequested.prototype.userId = "";
29660
-
29661
- /**
29662
- * UserUnsubscribeRequested timestamp.
29663
- * @member {number|Long} timestamp
29664
- * @memberof UserUnsubscribeRequested
29665
- * @instance
29666
- */
29667
- UserUnsubscribeRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
29668
-
29669
- /**
29670
- * Creates a new UserUnsubscribeRequested instance using the specified properties.
29671
- * @function create
29672
- * @memberof UserUnsubscribeRequested
29673
- * @static
29674
- * @param {IUserUnsubscribeRequested=} [properties] Properties to set
29675
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested instance
29676
- */
29677
- UserUnsubscribeRequested.create = function create(properties) {
29678
- return new UserUnsubscribeRequested(properties);
29679
- };
29680
-
29681
- /**
29682
- * Encodes the specified UserUnsubscribeRequested message. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
29683
- * @function encode
29684
- * @memberof UserUnsubscribeRequested
29685
- * @static
29686
- * @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
29687
- * @param {$protobuf.Writer} [writer] Writer to encode to
29688
- * @returns {$protobuf.Writer} Writer
29689
- */
29690
- UserUnsubscribeRequested.encode = function encode(message, writer) {
29691
- if (!writer)
29692
- writer = $Writer.create();
29693
- if (message.userId != null && message.hasOwnProperty("userId"))
29694
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
29695
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
29696
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
29697
- return writer;
29698
- };
29699
-
29700
- /**
29701
- * Encodes the specified UserUnsubscribeRequested message, length delimited. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
29702
- * @function encodeDelimited
29703
- * @memberof UserUnsubscribeRequested
29704
- * @static
29705
- * @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
29706
- * @param {$protobuf.Writer} [writer] Writer to encode to
29707
- * @returns {$protobuf.Writer} Writer
29708
- */
29709
- UserUnsubscribeRequested.encodeDelimited = function encodeDelimited(message, writer) {
29710
- return this.encode(message, writer).ldelim();
29711
- };
29712
-
29713
- /**
29714
- * Decodes a UserUnsubscribeRequested message from the specified reader or buffer.
29715
- * @function decode
29716
- * @memberof UserUnsubscribeRequested
29717
- * @static
29718
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29719
- * @param {number} [length] Message length if known beforehand
29720
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
29721
- * @throws {Error} If the payload is not a reader or valid buffer
29722
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
29723
- */
29724
- UserUnsubscribeRequested.decode = function decode(reader, length) {
29725
- if (!(reader instanceof $Reader))
29726
- reader = $Reader.create(reader);
29727
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserUnsubscribeRequested();
29728
- while (reader.pos < end) {
29729
- var tag = reader.uint32();
29730
- switch (tag >>> 3) {
29731
- case 1:
29732
- message.userId = reader.string();
29733
- break;
29734
- case 2:
29735
- message.timestamp = reader.uint64();
29736
- break;
29737
- default:
29738
- reader.skipType(tag & 7);
29739
- break;
29740
- }
29741
- }
29742
- return message;
29743
- };
29744
-
29745
- /**
29746
- * Decodes a UserUnsubscribeRequested message from the specified reader or buffer, length delimited.
29747
- * @function decodeDelimited
29748
- * @memberof UserUnsubscribeRequested
29749
- * @static
29750
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29751
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
29752
- * @throws {Error} If the payload is not a reader or valid buffer
29753
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
29754
- */
29755
- UserUnsubscribeRequested.decodeDelimited = function decodeDelimited(reader) {
29756
- if (!(reader instanceof $Reader))
29757
- reader = new $Reader(reader);
29758
- return this.decode(reader, reader.uint32());
29759
- };
29760
-
29761
- /**
29762
- * Verifies a UserUnsubscribeRequested message.
29763
- * @function verify
29764
- * @memberof UserUnsubscribeRequested
29765
- * @static
29766
- * @param {Object.<string,*>} message Plain object to verify
29767
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
29768
- */
29769
- UserUnsubscribeRequested.verify = function verify(message) {
29770
- if (typeof message !== "object" || message === null)
29771
- return "object expected";
29772
- if (message.userId != null && message.hasOwnProperty("userId"))
29773
- if (!$util.isString(message.userId))
29774
- return "userId: string expected";
29775
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
29776
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
29777
- return "timestamp: integer|Long expected";
29778
- return null;
29779
- };
29780
-
29781
- /**
29782
- * Creates a UserUnsubscribeRequested message from a plain object. Also converts values to their respective internal types.
29783
- * @function fromObject
29784
- * @memberof UserUnsubscribeRequested
29785
- * @static
29786
- * @param {Object.<string,*>} object Plain object
29787
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
29788
- */
29789
- UserUnsubscribeRequested.fromObject = function fromObject(object) {
29790
- if (object instanceof $root.UserUnsubscribeRequested)
29791
- return object;
29792
- var message = new $root.UserUnsubscribeRequested();
29793
- if (object.userId != null)
29794
- message.userId = String(object.userId);
29795
- if (object.timestamp != null)
29796
- if ($util.Long)
29797
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
29798
- else if (typeof object.timestamp === "string")
29799
- message.timestamp = parseInt(object.timestamp, 10);
29800
- else if (typeof object.timestamp === "number")
29801
- message.timestamp = object.timestamp;
29802
- else if (typeof object.timestamp === "object")
29803
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
29804
- return message;
29805
- };
29806
-
29807
- /**
29808
- * Creates a plain object from a UserUnsubscribeRequested message. Also converts values to other types if specified.
29809
- * @function toObject
29810
- * @memberof UserUnsubscribeRequested
29811
- * @static
29812
- * @param {UserUnsubscribeRequested} message UserUnsubscribeRequested
29813
- * @param {$protobuf.IConversionOptions} [options] Conversion options
29814
- * @returns {Object.<string,*>} Plain object
29815
- */
29816
- UserUnsubscribeRequested.toObject = function toObject(message, options) {
29817
- if (!options)
29818
- options = {};
29819
- var object = {};
29820
- if (options.defaults) {
29821
- object.userId = "";
29822
- if ($util.Long) {
29823
- var long = new $util.Long(0, 0, true);
29824
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
29825
- } else
29826
- object.timestamp = options.longs === String ? "0" : 0;
29827
- }
29828
- if (message.userId != null && message.hasOwnProperty("userId"))
29829
- object.userId = message.userId;
29830
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
29831
- if (typeof message.timestamp === "number")
29832
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
29833
- else
29834
- 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;
29835
- return object;
29836
- };
29837
-
29838
- /**
29839
- * Converts this UserUnsubscribeRequested to JSON.
29840
- * @function toJSON
29841
- * @memberof UserUnsubscribeRequested
29842
- * @instance
29843
- * @returns {Object.<string,*>} JSON object
29844
- */
29845
- UserUnsubscribeRequested.prototype.toJSON = function toJSON() {
29846
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
29847
- };
29848
-
29849
- return UserUnsubscribeRequested;
29850
- })();
29851
-
29852
28703
  module.exports = $root;