@headspace/protos-events 1.105.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 -385
  2. package/lib/index.js +127 -1253
  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
 
@@ -10685,6 +10647,7 @@ $root.AssessmentScore = (function() {
10685
10647
  * @property {string|null} [surveyId] AssessmentScore surveyId
10686
10648
  * @property {number|null} [score] AssessmentScore score
10687
10649
  * @property {string|null} [completedAtIsoDate] AssessmentScore completedAtIsoDate
10650
+ * @property {string|null} [reflectionNote] AssessmentScore reflectionNote
10688
10651
  */
10689
10652
 
10690
10653
  /**
@@ -10734,6 +10697,14 @@ $root.AssessmentScore = (function() {
10734
10697
  */
10735
10698
  AssessmentScore.prototype.completedAtIsoDate = "";
10736
10699
 
10700
+ /**
10701
+ * AssessmentScore reflectionNote.
10702
+ * @member {string} reflectionNote
10703
+ * @memberof AssessmentScore
10704
+ * @instance
10705
+ */
10706
+ AssessmentScore.prototype.reflectionNote = "";
10707
+
10737
10708
  /**
10738
10709
  * Creates a new AssessmentScore instance using the specified properties.
10739
10710
  * @function create
@@ -10766,6 +10737,8 @@ $root.AssessmentScore = (function() {
10766
10737
  writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.score);
10767
10738
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
10768
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);
10769
10742
  return writer;
10770
10743
  };
10771
10744
 
@@ -10812,6 +10785,9 @@ $root.AssessmentScore = (function() {
10812
10785
  case 4:
10813
10786
  message.completedAtIsoDate = reader.string();
10814
10787
  break;
10788
+ case 5:
10789
+ message.reflectionNote = reader.string();
10790
+ break;
10815
10791
  default:
10816
10792
  reader.skipType(tag & 7);
10817
10793
  break;
@@ -10859,6 +10835,9 @@ $root.AssessmentScore = (function() {
10859
10835
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
10860
10836
  if (!$util.isString(message.completedAtIsoDate))
10861
10837
  return "completedAtIsoDate: string expected";
10838
+ if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
10839
+ if (!$util.isString(message.reflectionNote))
10840
+ return "reflectionNote: string expected";
10862
10841
  return null;
10863
10842
  };
10864
10843
 
@@ -10882,6 +10861,8 @@ $root.AssessmentScore = (function() {
10882
10861
  message.score = object.score >>> 0;
10883
10862
  if (object.completedAtIsoDate != null)
10884
10863
  message.completedAtIsoDate = String(object.completedAtIsoDate);
10864
+ if (object.reflectionNote != null)
10865
+ message.reflectionNote = String(object.reflectionNote);
10885
10866
  return message;
10886
10867
  };
10887
10868
 
@@ -10903,6 +10884,7 @@ $root.AssessmentScore = (function() {
10903
10884
  object.surveyId = "";
10904
10885
  object.score = 0;
10905
10886
  object.completedAtIsoDate = "";
10887
+ object.reflectionNote = "";
10906
10888
  }
10907
10889
  if (message.userId != null && message.hasOwnProperty("userId"))
10908
10890
  object.userId = message.userId;
@@ -10912,6 +10894,8 @@ $root.AssessmentScore = (function() {
10912
10894
  object.score = message.score;
10913
10895
  if (message.completedAtIsoDate != null && message.hasOwnProperty("completedAtIsoDate"))
10914
10896
  object.completedAtIsoDate = message.completedAtIsoDate;
10897
+ if (message.reflectionNote != null && message.hasOwnProperty("reflectionNote"))
10898
+ object.reflectionNote = message.reflectionNote;
10915
10899
  return object;
10916
10900
  };
10917
10901
 
@@ -11811,8 +11795,6 @@ $root.IosSubscriptionCreated = (function() {
11811
11795
  * @property {number|Long|null} [endsAt] IosSubscriptionCreated endsAt
11812
11796
  * @property {number|Long|null} [startsAt] IosSubscriptionCreated startsAt
11813
11797
  * @property {string|null} [userId] IosSubscriptionCreated userId
11814
- * @property {string|null} [productId] IosSubscriptionCreated productId
11815
- * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionCreated autoRenewalStatus
11816
11798
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionCreated tags
11817
11799
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionCreated terms
11818
11800
  */
@@ -11866,22 +11848,6 @@ $root.IosSubscriptionCreated = (function() {
11866
11848
  */
11867
11849
  IosSubscriptionCreated.prototype.userId = "";
11868
11850
 
11869
- /**
11870
- * IosSubscriptionCreated productId.
11871
- * @member {string} productId
11872
- * @memberof IosSubscriptionCreated
11873
- * @instance
11874
- */
11875
- IosSubscriptionCreated.prototype.productId = "";
11876
-
11877
- /**
11878
- * IosSubscriptionCreated autoRenewalStatus.
11879
- * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
11880
- * @memberof IosSubscriptionCreated
11881
- * @instance
11882
- */
11883
- IosSubscriptionCreated.prototype.autoRenewalStatus = 0;
11884
-
11885
11851
  /**
11886
11852
  * IosSubscriptionCreated tags.
11887
11853
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -11939,10 +11905,6 @@ $root.IosSubscriptionCreated = (function() {
11939
11905
  if (message.terms != null && message.terms.length)
11940
11906
  for (var i = 0; i < message.terms.length; ++i)
11941
11907
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
11942
- if (message.productId != null && message.hasOwnProperty("productId"))
11943
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
11944
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
11945
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
11946
11908
  return writer;
11947
11909
  };
11948
11910
 
@@ -11989,12 +11951,6 @@ $root.IosSubscriptionCreated = (function() {
11989
11951
  case 4:
11990
11952
  message.userId = reader.string();
11991
11953
  break;
11992
- case 7:
11993
- message.productId = reader.string();
11994
- break;
11995
- case 8:
11996
- message.autoRenewalStatus = reader.int32();
11997
- break;
11998
11954
  case 5:
11999
11955
  if (!(message.tags && message.tags.length))
12000
11956
  message.tags = [];
@@ -12057,18 +12013,6 @@ $root.IosSubscriptionCreated = (function() {
12057
12013
  if (message.userId != null && message.hasOwnProperty("userId"))
12058
12014
  if (!$util.isString(message.userId))
12059
12015
  return "userId: string expected";
12060
- if (message.productId != null && message.hasOwnProperty("productId"))
12061
- if (!$util.isString(message.productId))
12062
- return "productId: string expected";
12063
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12064
- switch (message.autoRenewalStatus) {
12065
- default:
12066
- return "autoRenewalStatus: enum value expected";
12067
- case 0:
12068
- case 1:
12069
- case 2:
12070
- break;
12071
- }
12072
12016
  if (message.tags != null && message.hasOwnProperty("tags")) {
12073
12017
  if (!Array.isArray(message.tags))
12074
12018
  return "tags: array expected";
@@ -12127,22 +12071,6 @@ $root.IosSubscriptionCreated = (function() {
12127
12071
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12128
12072
  if (object.userId != null)
12129
12073
  message.userId = String(object.userId);
12130
- if (object.productId != null)
12131
- message.productId = String(object.productId);
12132
- switch (object.autoRenewalStatus) {
12133
- case "UNKNOWN":
12134
- case 0:
12135
- message.autoRenewalStatus = 0;
12136
- break;
12137
- case "ACTIVE":
12138
- case 1:
12139
- message.autoRenewalStatus = 1;
12140
- break;
12141
- case "CANCELLED":
12142
- case 2:
12143
- message.autoRenewalStatus = 2;
12144
- break;
12145
- }
12146
12074
  if (object.tags) {
12147
12075
  if (!Array.isArray(object.tags))
12148
12076
  throw TypeError(".IosSubscriptionCreated.tags: array expected");
@@ -12203,8 +12131,6 @@ $root.IosSubscriptionCreated = (function() {
12203
12131
  } else
12204
12132
  object.startsAt = options.longs === String ? "0" : 0;
12205
12133
  object.userId = "";
12206
- object.productId = "";
12207
- object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
12208
12134
  }
12209
12135
  if (message.id != null && message.hasOwnProperty("id"))
12210
12136
  object.id = message.id;
@@ -12230,10 +12156,6 @@ $root.IosSubscriptionCreated = (function() {
12230
12156
  for (var j = 0; j < message.terms.length; ++j)
12231
12157
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12232
12158
  }
12233
- if (message.productId != null && message.hasOwnProperty("productId"))
12234
- object.productId = message.productId;
12235
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12236
- object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
12237
12159
  return object;
12238
12160
  };
12239
12161
 
@@ -12261,8 +12183,6 @@ $root.IosSubscriptionRenewed = (function() {
12261
12183
  * @property {number|Long|null} [endsAt] IosSubscriptionRenewed endsAt
12262
12184
  * @property {number|Long|null} [startsAt] IosSubscriptionRenewed startsAt
12263
12185
  * @property {string|null} [userId] IosSubscriptionRenewed userId
12264
- * @property {string|null} [productId] IosSubscriptionRenewed productId
12265
- * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionRenewed autoRenewalStatus
12266
12186
  * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionRenewed tags
12267
12187
  * @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionRenewed terms
12268
12188
  */
@@ -12316,22 +12236,6 @@ $root.IosSubscriptionRenewed = (function() {
12316
12236
  */
12317
12237
  IosSubscriptionRenewed.prototype.userId = "";
12318
12238
 
12319
- /**
12320
- * IosSubscriptionRenewed productId.
12321
- * @member {string} productId
12322
- * @memberof IosSubscriptionRenewed
12323
- * @instance
12324
- */
12325
- IosSubscriptionRenewed.prototype.productId = "";
12326
-
12327
- /**
12328
- * IosSubscriptionRenewed autoRenewalStatus.
12329
- * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
12330
- * @memberof IosSubscriptionRenewed
12331
- * @instance
12332
- */
12333
- IosSubscriptionRenewed.prototype.autoRenewalStatus = 0;
12334
-
12335
12239
  /**
12336
12240
  * IosSubscriptionRenewed tags.
12337
12241
  * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
@@ -12389,10 +12293,6 @@ $root.IosSubscriptionRenewed = (function() {
12389
12293
  if (message.terms != null && message.terms.length)
12390
12294
  for (var i = 0; i < message.terms.length; ++i)
12391
12295
  $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12392
- if (message.productId != null && message.hasOwnProperty("productId"))
12393
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12394
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12395
- writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
12396
12296
  return writer;
12397
12297
  };
12398
12298
 
@@ -12439,12 +12339,6 @@ $root.IosSubscriptionRenewed = (function() {
12439
12339
  case 4:
12440
12340
  message.userId = reader.string();
12441
12341
  break;
12442
- case 7:
12443
- message.productId = reader.string();
12444
- break;
12445
- case 8:
12446
- message.autoRenewalStatus = reader.int32();
12447
- break;
12448
12342
  case 5:
12449
12343
  if (!(message.tags && message.tags.length))
12450
12344
  message.tags = [];
@@ -12507,18 +12401,6 @@ $root.IosSubscriptionRenewed = (function() {
12507
12401
  if (message.userId != null && message.hasOwnProperty("userId"))
12508
12402
  if (!$util.isString(message.userId))
12509
12403
  return "userId: string expected";
12510
- if (message.productId != null && message.hasOwnProperty("productId"))
12511
- if (!$util.isString(message.productId))
12512
- return "productId: string expected";
12513
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12514
- switch (message.autoRenewalStatus) {
12515
- default:
12516
- return "autoRenewalStatus: enum value expected";
12517
- case 0:
12518
- case 1:
12519
- case 2:
12520
- break;
12521
- }
12522
12404
  if (message.tags != null && message.hasOwnProperty("tags")) {
12523
12405
  if (!Array.isArray(message.tags))
12524
12406
  return "tags: array expected";
@@ -12577,22 +12459,6 @@ $root.IosSubscriptionRenewed = (function() {
12577
12459
  message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
12578
12460
  if (object.userId != null)
12579
12461
  message.userId = String(object.userId);
12580
- if (object.productId != null)
12581
- message.productId = String(object.productId);
12582
- switch (object.autoRenewalStatus) {
12583
- case "UNKNOWN":
12584
- case 0:
12585
- message.autoRenewalStatus = 0;
12586
- break;
12587
- case "ACTIVE":
12588
- case 1:
12589
- message.autoRenewalStatus = 1;
12590
- break;
12591
- case "CANCELLED":
12592
- case 2:
12593
- message.autoRenewalStatus = 2;
12594
- break;
12595
- }
12596
12462
  if (object.tags) {
12597
12463
  if (!Array.isArray(object.tags))
12598
12464
  throw TypeError(".IosSubscriptionRenewed.tags: array expected");
@@ -12653,8 +12519,6 @@ $root.IosSubscriptionRenewed = (function() {
12653
12519
  } else
12654
12520
  object.startsAt = options.longs === String ? "0" : 0;
12655
12521
  object.userId = "";
12656
- object.productId = "";
12657
- object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
12658
12522
  }
12659
12523
  if (message.id != null && message.hasOwnProperty("id"))
12660
12524
  object.id = message.id;
@@ -12680,10 +12544,6 @@ $root.IosSubscriptionRenewed = (function() {
12680
12544
  for (var j = 0; j < message.terms.length; ++j)
12681
12545
  object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
12682
12546
  }
12683
- if (message.productId != null && message.hasOwnProperty("productId"))
12684
- object.productId = message.productId;
12685
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12686
- object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
12687
12547
  return object;
12688
12548
  };
12689
12549
 
@@ -12701,33 +12561,24 @@ $root.IosSubscriptionRenewed = (function() {
12701
12561
  return IosSubscriptionRenewed;
12702
12562
  })();
12703
12563
 
12704
- $root.IosSubscriptionAutoRenewalUpdated = (function() {
12564
+ $root.AssetCreated = (function() {
12705
12565
 
12706
12566
  /**
12707
- * Properties of an IosSubscriptionAutoRenewalUpdated.
12708
- * @exports IIosSubscriptionAutoRenewalUpdated
12709
- * @interface IIosSubscriptionAutoRenewalUpdated
12710
- * @property {string|null} [id] IosSubscriptionAutoRenewalUpdated id
12711
- * @property {number|Long|null} [endsAt] IosSubscriptionAutoRenewalUpdated endsAt
12712
- * @property {number|Long|null} [startsAt] IosSubscriptionAutoRenewalUpdated startsAt
12713
- * @property {string|null} [userId] IosSubscriptionAutoRenewalUpdated userId
12714
- * @property {string|null} [productId] IosSubscriptionAutoRenewalUpdated productId
12715
- * @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionAutoRenewalUpdated autoRenewalStatus
12716
- * @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionAutoRenewalUpdated tags
12717
- * @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
12718
12571
  */
12719
12572
 
12720
12573
  /**
12721
- * Constructs a new IosSubscriptionAutoRenewalUpdated.
12722
- * @exports IosSubscriptionAutoRenewalUpdated
12723
- * @classdesc Represents an IosSubscriptionAutoRenewalUpdated.
12724
- * @implements IIosSubscriptionAutoRenewalUpdated
12574
+ * Constructs a new AssetCreated.
12575
+ * @exports AssetCreated
12576
+ * @classdesc Represents an AssetCreated.
12577
+ * @implements IAssetCreated
12725
12578
  * @constructor
12726
- * @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
12579
+ * @param {IAssetCreated=} [properties] Properties to set
12727
12580
  */
12728
- function IosSubscriptionAutoRenewalUpdated(properties) {
12729
- this.tags = [];
12730
- this.terms = [];
12581
+ function AssetCreated(properties) {
12731
12582
  if (properties)
12732
12583
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12733
12584
  if (properties[keys[i]] != null)
@@ -12735,180 +12586,75 @@ $root.IosSubscriptionAutoRenewalUpdated = (function() {
12735
12586
  }
12736
12587
 
12737
12588
  /**
12738
- * IosSubscriptionAutoRenewalUpdated id.
12739
- * @member {string} id
12740
- * @memberof IosSubscriptionAutoRenewalUpdated
12741
- * @instance
12742
- */
12743
- IosSubscriptionAutoRenewalUpdated.prototype.id = "";
12744
-
12745
- /**
12746
- * IosSubscriptionAutoRenewalUpdated endsAt.
12747
- * @member {number|Long} endsAt
12748
- * @memberof IosSubscriptionAutoRenewalUpdated
12749
- * @instance
12750
- */
12751
- IosSubscriptionAutoRenewalUpdated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12752
-
12753
- /**
12754
- * IosSubscriptionAutoRenewalUpdated startsAt.
12755
- * @member {number|Long} startsAt
12756
- * @memberof IosSubscriptionAutoRenewalUpdated
12757
- * @instance
12758
- */
12759
- IosSubscriptionAutoRenewalUpdated.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12760
-
12761
- /**
12762
- * IosSubscriptionAutoRenewalUpdated userId.
12763
- * @member {string} userId
12764
- * @memberof IosSubscriptionAutoRenewalUpdated
12765
- * @instance
12766
- */
12767
- IosSubscriptionAutoRenewalUpdated.prototype.userId = "";
12768
-
12769
- /**
12770
- * IosSubscriptionAutoRenewalUpdated productId.
12771
- * @member {string} productId
12772
- * @memberof IosSubscriptionAutoRenewalUpdated
12773
- * @instance
12774
- */
12775
- IosSubscriptionAutoRenewalUpdated.prototype.productId = "";
12776
-
12777
- /**
12778
- * IosSubscriptionAutoRenewalUpdated autoRenewalStatus.
12779
- * @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
12780
- * @memberof IosSubscriptionAutoRenewalUpdated
12781
- * @instance
12782
- */
12783
- IosSubscriptionAutoRenewalUpdated.prototype.autoRenewalStatus = 0;
12784
-
12785
- /**
12786
- * IosSubscriptionAutoRenewalUpdated tags.
12787
- * @member {Array.<appleReceipt.IosSubscriptionTag>} tags
12788
- * @memberof IosSubscriptionAutoRenewalUpdated
12789
- * @instance
12790
- */
12791
- IosSubscriptionAutoRenewalUpdated.prototype.tags = $util.emptyArray;
12792
-
12793
- /**
12794
- * IosSubscriptionAutoRenewalUpdated terms.
12795
- * @member {Array.<appleReceipt.IIosSubscriptionTerm>} terms
12796
- * @memberof IosSubscriptionAutoRenewalUpdated
12589
+ * AssetCreated asset.
12590
+ * @member {asset.IAsset|null|undefined} asset
12591
+ * @memberof AssetCreated
12797
12592
  * @instance
12798
12593
  */
12799
- IosSubscriptionAutoRenewalUpdated.prototype.terms = $util.emptyArray;
12594
+ AssetCreated.prototype.asset = null;
12800
12595
 
12801
12596
  /**
12802
- * Creates a new IosSubscriptionAutoRenewalUpdated instance using the specified properties.
12597
+ * Creates a new AssetCreated instance using the specified properties.
12803
12598
  * @function create
12804
- * @memberof IosSubscriptionAutoRenewalUpdated
12599
+ * @memberof AssetCreated
12805
12600
  * @static
12806
- * @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
12807
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated instance
12601
+ * @param {IAssetCreated=} [properties] Properties to set
12602
+ * @returns {AssetCreated} AssetCreated instance
12808
12603
  */
12809
- IosSubscriptionAutoRenewalUpdated.create = function create(properties) {
12810
- return new IosSubscriptionAutoRenewalUpdated(properties);
12604
+ AssetCreated.create = function create(properties) {
12605
+ return new AssetCreated(properties);
12811
12606
  };
12812
12607
 
12813
12608
  /**
12814
- * 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.
12815
12610
  * @function encode
12816
- * @memberof IosSubscriptionAutoRenewalUpdated
12611
+ * @memberof AssetCreated
12817
12612
  * @static
12818
- * @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
12613
+ * @param {IAssetCreated} message AssetCreated message or plain object to encode
12819
12614
  * @param {$protobuf.Writer} [writer] Writer to encode to
12820
12615
  * @returns {$protobuf.Writer} Writer
12821
12616
  */
12822
- IosSubscriptionAutoRenewalUpdated.encode = function encode(message, writer) {
12617
+ AssetCreated.encode = function encode(message, writer) {
12823
12618
  if (!writer)
12824
12619
  writer = $Writer.create();
12825
- if (message.id != null && message.hasOwnProperty("id"))
12826
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
12827
- if (message.endsAt != null && message.hasOwnProperty("endsAt"))
12828
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
12829
- if (message.startsAt != null && message.hasOwnProperty("startsAt"))
12830
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.startsAt);
12831
- if (message.userId != null && message.hasOwnProperty("userId"))
12832
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.userId);
12833
- if (message.tags != null && message.tags.length) {
12834
- writer.uint32(/* id 5, wireType 2 =*/42).fork();
12835
- for (var i = 0; i < message.tags.length; ++i)
12836
- writer.int32(message.tags[i]);
12837
- writer.ldelim();
12838
- }
12839
- if (message.terms != null && message.terms.length)
12840
- for (var i = 0; i < message.terms.length; ++i)
12841
- $root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
12842
- if (message.productId != null && message.hasOwnProperty("productId"))
12843
- writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
12844
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12845
- 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();
12846
12622
  return writer;
12847
12623
  };
12848
12624
 
12849
12625
  /**
12850
- * 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.
12851
12627
  * @function encodeDelimited
12852
- * @memberof IosSubscriptionAutoRenewalUpdated
12628
+ * @memberof AssetCreated
12853
12629
  * @static
12854
- * @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
12630
+ * @param {IAssetCreated} message AssetCreated message or plain object to encode
12855
12631
  * @param {$protobuf.Writer} [writer] Writer to encode to
12856
12632
  * @returns {$protobuf.Writer} Writer
12857
12633
  */
12858
- IosSubscriptionAutoRenewalUpdated.encodeDelimited = function encodeDelimited(message, writer) {
12634
+ AssetCreated.encodeDelimited = function encodeDelimited(message, writer) {
12859
12635
  return this.encode(message, writer).ldelim();
12860
12636
  };
12861
12637
 
12862
12638
  /**
12863
- * Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer.
12639
+ * Decodes an AssetCreated message from the specified reader or buffer.
12864
12640
  * @function decode
12865
- * @memberof IosSubscriptionAutoRenewalUpdated
12641
+ * @memberof AssetCreated
12866
12642
  * @static
12867
12643
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12868
12644
  * @param {number} [length] Message length if known beforehand
12869
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
12645
+ * @returns {AssetCreated} AssetCreated
12870
12646
  * @throws {Error} If the payload is not a reader or valid buffer
12871
12647
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12872
12648
  */
12873
- IosSubscriptionAutoRenewalUpdated.decode = function decode(reader, length) {
12649
+ AssetCreated.decode = function decode(reader, length) {
12874
12650
  if (!(reader instanceof $Reader))
12875
12651
  reader = $Reader.create(reader);
12876
- 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();
12877
12653
  while (reader.pos < end) {
12878
12654
  var tag = reader.uint32();
12879
12655
  switch (tag >>> 3) {
12880
12656
  case 1:
12881
- message.id = reader.string();
12882
- break;
12883
- case 2:
12884
- message.endsAt = reader.uint64();
12885
- break;
12886
- case 3:
12887
- message.startsAt = reader.uint64();
12888
- break;
12889
- case 4:
12890
- message.userId = reader.string();
12891
- break;
12892
- case 7:
12893
- message.productId = reader.string();
12894
- break;
12895
- case 8:
12896
- message.autoRenewalStatus = reader.int32();
12897
- break;
12898
- case 5:
12899
- if (!(message.tags && message.tags.length))
12900
- message.tags = [];
12901
- if ((tag & 7) === 2) {
12902
- var end2 = reader.uint32() + reader.pos;
12903
- while (reader.pos < end2)
12904
- message.tags.push(reader.int32());
12905
- } else
12906
- message.tags.push(reader.int32());
12907
- break;
12908
- case 6:
12909
- if (!(message.terms && message.terms.length))
12910
- message.terms = [];
12911
- message.terms.push($root.appleReceipt.IosSubscriptionTerm.decode(reader, reader.uint32()));
12657
+ message.asset = $root.asset.Asset.decode(reader, reader.uint32());
12912
12658
  break;
12913
12659
  default:
12914
12660
  reader.skipType(tag & 7);
@@ -12919,366 +12665,30 @@ $root.IosSubscriptionAutoRenewalUpdated = (function() {
12919
12665
  };
12920
12666
 
12921
12667
  /**
12922
- * 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.
12923
12669
  * @function decodeDelimited
12924
- * @memberof IosSubscriptionAutoRenewalUpdated
12670
+ * @memberof AssetCreated
12925
12671
  * @static
12926
12672
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12927
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
12673
+ * @returns {AssetCreated} AssetCreated
12928
12674
  * @throws {Error} If the payload is not a reader or valid buffer
12929
12675
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
12930
12676
  */
12931
- IosSubscriptionAutoRenewalUpdated.decodeDelimited = function decodeDelimited(reader) {
12677
+ AssetCreated.decodeDelimited = function decodeDelimited(reader) {
12932
12678
  if (!(reader instanceof $Reader))
12933
12679
  reader = new $Reader(reader);
12934
12680
  return this.decode(reader, reader.uint32());
12935
12681
  };
12936
12682
 
12937
12683
  /**
12938
- * Verifies an IosSubscriptionAutoRenewalUpdated message.
12684
+ * Verifies an AssetCreated message.
12939
12685
  * @function verify
12940
- * @memberof IosSubscriptionAutoRenewalUpdated
12686
+ * @memberof AssetCreated
12941
12687
  * @static
12942
12688
  * @param {Object.<string,*>} message Plain object to verify
12943
12689
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
12944
12690
  */
12945
- IosSubscriptionAutoRenewalUpdated.verify = function verify(message) {
12946
- if (typeof message !== "object" || message === null)
12947
- return "object expected";
12948
- if (message.id != null && message.hasOwnProperty("id"))
12949
- if (!$util.isString(message.id))
12950
- return "id: string expected";
12951
- if (message.endsAt != null && message.hasOwnProperty("endsAt"))
12952
- if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
12953
- return "endsAt: integer|Long expected";
12954
- if (message.startsAt != null && message.hasOwnProperty("startsAt"))
12955
- if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
12956
- return "startsAt: integer|Long expected";
12957
- if (message.userId != null && message.hasOwnProperty("userId"))
12958
- if (!$util.isString(message.userId))
12959
- return "userId: string expected";
12960
- if (message.productId != null && message.hasOwnProperty("productId"))
12961
- if (!$util.isString(message.productId))
12962
- return "productId: string expected";
12963
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
12964
- switch (message.autoRenewalStatus) {
12965
- default:
12966
- return "autoRenewalStatus: enum value expected";
12967
- case 0:
12968
- case 1:
12969
- case 2:
12970
- break;
12971
- }
12972
- if (message.tags != null && message.hasOwnProperty("tags")) {
12973
- if (!Array.isArray(message.tags))
12974
- return "tags: array expected";
12975
- for (var i = 0; i < message.tags.length; ++i)
12976
- switch (message.tags[i]) {
12977
- default:
12978
- return "tags: enum value[] expected";
12979
- case 0:
12980
- case 1:
12981
- break;
12982
- }
12983
- }
12984
- if (message.terms != null && message.hasOwnProperty("terms")) {
12985
- if (!Array.isArray(message.terms))
12986
- return "terms: array expected";
12987
- for (var i = 0; i < message.terms.length; ++i) {
12988
- var error = $root.appleReceipt.IosSubscriptionTerm.verify(message.terms[i]);
12989
- if (error)
12990
- return "terms." + error;
12991
- }
12992
- }
12993
- return null;
12994
- };
12995
-
12996
- /**
12997
- * Creates an IosSubscriptionAutoRenewalUpdated message from a plain object. Also converts values to their respective internal types.
12998
- * @function fromObject
12999
- * @memberof IosSubscriptionAutoRenewalUpdated
13000
- * @static
13001
- * @param {Object.<string,*>} object Plain object
13002
- * @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
13003
- */
13004
- IosSubscriptionAutoRenewalUpdated.fromObject = function fromObject(object) {
13005
- if (object instanceof $root.IosSubscriptionAutoRenewalUpdated)
13006
- return object;
13007
- var message = new $root.IosSubscriptionAutoRenewalUpdated();
13008
- if (object.id != null)
13009
- message.id = String(object.id);
13010
- if (object.endsAt != null)
13011
- if ($util.Long)
13012
- (message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
13013
- else if (typeof object.endsAt === "string")
13014
- message.endsAt = parseInt(object.endsAt, 10);
13015
- else if (typeof object.endsAt === "number")
13016
- message.endsAt = object.endsAt;
13017
- else if (typeof object.endsAt === "object")
13018
- message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
13019
- if (object.startsAt != null)
13020
- if ($util.Long)
13021
- (message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
13022
- else if (typeof object.startsAt === "string")
13023
- message.startsAt = parseInt(object.startsAt, 10);
13024
- else if (typeof object.startsAt === "number")
13025
- message.startsAt = object.startsAt;
13026
- else if (typeof object.startsAt === "object")
13027
- message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
13028
- if (object.userId != null)
13029
- message.userId = String(object.userId);
13030
- if (object.productId != null)
13031
- message.productId = String(object.productId);
13032
- switch (object.autoRenewalStatus) {
13033
- case "UNKNOWN":
13034
- case 0:
13035
- message.autoRenewalStatus = 0;
13036
- break;
13037
- case "ACTIVE":
13038
- case 1:
13039
- message.autoRenewalStatus = 1;
13040
- break;
13041
- case "CANCELLED":
13042
- case 2:
13043
- message.autoRenewalStatus = 2;
13044
- break;
13045
- }
13046
- if (object.tags) {
13047
- if (!Array.isArray(object.tags))
13048
- throw TypeError(".IosSubscriptionAutoRenewalUpdated.tags: array expected");
13049
- message.tags = [];
13050
- for (var i = 0; i < object.tags.length; ++i)
13051
- switch (object.tags[i]) {
13052
- default:
13053
- case "IOSTAG_UNKNOWN":
13054
- case 0:
13055
- message.tags[i] = 0;
13056
- break;
13057
- case "IOSTAG_FREE_TRIAL":
13058
- case 1:
13059
- message.tags[i] = 1;
13060
- break;
13061
- }
13062
- }
13063
- if (object.terms) {
13064
- if (!Array.isArray(object.terms))
13065
- throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: array expected");
13066
- message.terms = [];
13067
- for (var i = 0; i < object.terms.length; ++i) {
13068
- if (typeof object.terms[i] !== "object")
13069
- throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: object expected");
13070
- message.terms[i] = $root.appleReceipt.IosSubscriptionTerm.fromObject(object.terms[i]);
13071
- }
13072
- }
13073
- return message;
13074
- };
13075
-
13076
- /**
13077
- * Creates a plain object from an IosSubscriptionAutoRenewalUpdated message. Also converts values to other types if specified.
13078
- * @function toObject
13079
- * @memberof IosSubscriptionAutoRenewalUpdated
13080
- * @static
13081
- * @param {IosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated
13082
- * @param {$protobuf.IConversionOptions} [options] Conversion options
13083
- * @returns {Object.<string,*>} Plain object
13084
- */
13085
- IosSubscriptionAutoRenewalUpdated.toObject = function toObject(message, options) {
13086
- if (!options)
13087
- options = {};
13088
- var object = {};
13089
- if (options.arrays || options.defaults) {
13090
- object.tags = [];
13091
- object.terms = [];
13092
- }
13093
- if (options.defaults) {
13094
- object.id = "";
13095
- if ($util.Long) {
13096
- var long = new $util.Long(0, 0, true);
13097
- object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13098
- } else
13099
- object.endsAt = options.longs === String ? "0" : 0;
13100
- if ($util.Long) {
13101
- var long = new $util.Long(0, 0, true);
13102
- object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13103
- } else
13104
- object.startsAt = options.longs === String ? "0" : 0;
13105
- object.userId = "";
13106
- object.productId = "";
13107
- object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
13108
- }
13109
- if (message.id != null && message.hasOwnProperty("id"))
13110
- object.id = message.id;
13111
- if (message.endsAt != null && message.hasOwnProperty("endsAt"))
13112
- if (typeof message.endsAt === "number")
13113
- object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
13114
- else
13115
- 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;
13116
- if (message.startsAt != null && message.hasOwnProperty("startsAt"))
13117
- if (typeof message.startsAt === "number")
13118
- object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
13119
- else
13120
- 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;
13121
- if (message.userId != null && message.hasOwnProperty("userId"))
13122
- object.userId = message.userId;
13123
- if (message.tags && message.tags.length) {
13124
- object.tags = [];
13125
- for (var j = 0; j < message.tags.length; ++j)
13126
- object.tags[j] = options.enums === String ? $root.appleReceipt.IosSubscriptionTag[message.tags[j]] : message.tags[j];
13127
- }
13128
- if (message.terms && message.terms.length) {
13129
- object.terms = [];
13130
- for (var j = 0; j < message.terms.length; ++j)
13131
- object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
13132
- }
13133
- if (message.productId != null && message.hasOwnProperty("productId"))
13134
- object.productId = message.productId;
13135
- if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
13136
- object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
13137
- return object;
13138
- };
13139
-
13140
- /**
13141
- * Converts this IosSubscriptionAutoRenewalUpdated to JSON.
13142
- * @function toJSON
13143
- * @memberof IosSubscriptionAutoRenewalUpdated
13144
- * @instance
13145
- * @returns {Object.<string,*>} JSON object
13146
- */
13147
- IosSubscriptionAutoRenewalUpdated.prototype.toJSON = function toJSON() {
13148
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13149
- };
13150
-
13151
- return IosSubscriptionAutoRenewalUpdated;
13152
- })();
13153
-
13154
- $root.AssetCreated = (function() {
13155
-
13156
- /**
13157
- * Properties of an AssetCreated.
13158
- * @exports IAssetCreated
13159
- * @interface IAssetCreated
13160
- * @property {asset.IAsset|null} [asset] AssetCreated asset
13161
- */
13162
-
13163
- /**
13164
- * Constructs a new AssetCreated.
13165
- * @exports AssetCreated
13166
- * @classdesc Represents an AssetCreated.
13167
- * @implements IAssetCreated
13168
- * @constructor
13169
- * @param {IAssetCreated=} [properties] Properties to set
13170
- */
13171
- function AssetCreated(properties) {
13172
- if (properties)
13173
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13174
- if (properties[keys[i]] != null)
13175
- this[keys[i]] = properties[keys[i]];
13176
- }
13177
-
13178
- /**
13179
- * AssetCreated asset.
13180
- * @member {asset.IAsset|null|undefined} asset
13181
- * @memberof AssetCreated
13182
- * @instance
13183
- */
13184
- AssetCreated.prototype.asset = null;
13185
-
13186
- /**
13187
- * Creates a new AssetCreated instance using the specified properties.
13188
- * @function create
13189
- * @memberof AssetCreated
13190
- * @static
13191
- * @param {IAssetCreated=} [properties] Properties to set
13192
- * @returns {AssetCreated} AssetCreated instance
13193
- */
13194
- AssetCreated.create = function create(properties) {
13195
- return new AssetCreated(properties);
13196
- };
13197
-
13198
- /**
13199
- * Encodes the specified AssetCreated message. Does not implicitly {@link AssetCreated.verify|verify} messages.
13200
- * @function encode
13201
- * @memberof AssetCreated
13202
- * @static
13203
- * @param {IAssetCreated} message AssetCreated message or plain object to encode
13204
- * @param {$protobuf.Writer} [writer] Writer to encode to
13205
- * @returns {$protobuf.Writer} Writer
13206
- */
13207
- AssetCreated.encode = function encode(message, writer) {
13208
- if (!writer)
13209
- writer = $Writer.create();
13210
- if (message.asset != null && message.hasOwnProperty("asset"))
13211
- $root.asset.Asset.encode(message.asset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
13212
- return writer;
13213
- };
13214
-
13215
- /**
13216
- * Encodes the specified AssetCreated message, length delimited. Does not implicitly {@link AssetCreated.verify|verify} messages.
13217
- * @function encodeDelimited
13218
- * @memberof AssetCreated
13219
- * @static
13220
- * @param {IAssetCreated} message AssetCreated message or plain object to encode
13221
- * @param {$protobuf.Writer} [writer] Writer to encode to
13222
- * @returns {$protobuf.Writer} Writer
13223
- */
13224
- AssetCreated.encodeDelimited = function encodeDelimited(message, writer) {
13225
- return this.encode(message, writer).ldelim();
13226
- };
13227
-
13228
- /**
13229
- * Decodes an AssetCreated message from the specified reader or buffer.
13230
- * @function decode
13231
- * @memberof AssetCreated
13232
- * @static
13233
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13234
- * @param {number} [length] Message length if known beforehand
13235
- * @returns {AssetCreated} AssetCreated
13236
- * @throws {Error} If the payload is not a reader or valid buffer
13237
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13238
- */
13239
- AssetCreated.decode = function decode(reader, length) {
13240
- if (!(reader instanceof $Reader))
13241
- reader = $Reader.create(reader);
13242
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AssetCreated();
13243
- while (reader.pos < end) {
13244
- var tag = reader.uint32();
13245
- switch (tag >>> 3) {
13246
- case 1:
13247
- message.asset = $root.asset.Asset.decode(reader, reader.uint32());
13248
- break;
13249
- default:
13250
- reader.skipType(tag & 7);
13251
- break;
13252
- }
13253
- }
13254
- return message;
13255
- };
13256
-
13257
- /**
13258
- * Decodes an AssetCreated message from the specified reader or buffer, length delimited.
13259
- * @function decodeDelimited
13260
- * @memberof AssetCreated
13261
- * @static
13262
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13263
- * @returns {AssetCreated} AssetCreated
13264
- * @throws {Error} If the payload is not a reader or valid buffer
13265
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
13266
- */
13267
- AssetCreated.decodeDelimited = function decodeDelimited(reader) {
13268
- if (!(reader instanceof $Reader))
13269
- reader = new $Reader(reader);
13270
- return this.decode(reader, reader.uint32());
13271
- };
13272
-
13273
- /**
13274
- * Verifies an AssetCreated message.
13275
- * @function verify
13276
- * @memberof AssetCreated
13277
- * @static
13278
- * @param {Object.<string,*>} message Plain object to verify
13279
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
13280
- */
13281
- AssetCreated.verify = function verify(message) {
12691
+ AssetCreated.verify = function verify(message) {
13282
12692
  if (typeof message !== "object" || message === null)
13283
12693
  return "object expected";
13284
12694
  if (message.asset != null && message.hasOwnProperty("asset")) {
@@ -16734,7 +16144,6 @@ $root.AccessGroupCreated = (function() {
16734
16144
  * @property {string|null} [accessGroupName] AccessGroupCreated accessGroupName
16735
16145
  * @property {string|null} [description] AccessGroupCreated description
16736
16146
  * @property {number|Long|null} [createdAt] AccessGroupCreated createdAt
16737
- * @property {string|null} [slug] AccessGroupCreated slug
16738
16147
  */
16739
16148
 
16740
16149
  /**
@@ -16774,347 +16183,69 @@ $root.AccessGroupCreated = (function() {
16774
16183
  * @memberof AccessGroupCreated
16775
16184
  * @instance
16776
16185
  */
16777
- AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16778
-
16779
- /**
16780
- * AccessGroupCreated slug.
16781
- * @member {string} slug
16782
- * @memberof AccessGroupCreated
16783
- * @instance
16784
- */
16785
- AccessGroupCreated.prototype.slug = "";
16786
-
16787
- /**
16788
- * Creates a new AccessGroupCreated instance using the specified properties.
16789
- * @function create
16790
- * @memberof AccessGroupCreated
16791
- * @static
16792
- * @param {IAccessGroupCreated=} [properties] Properties to set
16793
- * @returns {AccessGroupCreated} AccessGroupCreated instance
16794
- */
16795
- AccessGroupCreated.create = function create(properties) {
16796
- return new AccessGroupCreated(properties);
16797
- };
16798
-
16799
- /**
16800
- * Encodes the specified AccessGroupCreated message. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
16801
- * @function encode
16802
- * @memberof AccessGroupCreated
16803
- * @static
16804
- * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
16805
- * @param {$protobuf.Writer} [writer] Writer to encode to
16806
- * @returns {$protobuf.Writer} Writer
16807
- */
16808
- AccessGroupCreated.encode = function encode(message, writer) {
16809
- if (!writer)
16810
- writer = $Writer.create();
16811
- if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16812
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
16813
- if (message.description != null && message.hasOwnProperty("description"))
16814
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
16815
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16816
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
16817
- if (message.slug != null && message.hasOwnProperty("slug"))
16818
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.slug);
16819
- return writer;
16820
- };
16821
-
16822
- /**
16823
- * Encodes the specified AccessGroupCreated message, length delimited. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
16824
- * @function encodeDelimited
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.encodeDelimited = function encodeDelimited(message, writer) {
16832
- return this.encode(message, writer).ldelim();
16833
- };
16834
-
16835
- /**
16836
- * Decodes an AccessGroupCreated message from the specified reader or buffer.
16837
- * @function decode
16838
- * @memberof AccessGroupCreated
16839
- * @static
16840
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16841
- * @param {number} [length] Message length if known beforehand
16842
- * @returns {AccessGroupCreated} AccessGroupCreated
16843
- * @throws {Error} If the payload is not a reader or valid buffer
16844
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16845
- */
16846
- AccessGroupCreated.decode = function decode(reader, length) {
16847
- if (!(reader instanceof $Reader))
16848
- reader = $Reader.create(reader);
16849
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupCreated();
16850
- while (reader.pos < end) {
16851
- var tag = reader.uint32();
16852
- switch (tag >>> 3) {
16853
- case 1:
16854
- message.accessGroupName = reader.string();
16855
- break;
16856
- case 2:
16857
- message.description = reader.string();
16858
- break;
16859
- case 3:
16860
- message.createdAt = reader.uint64();
16861
- break;
16862
- case 4:
16863
- message.slug = reader.string();
16864
- break;
16865
- default:
16866
- reader.skipType(tag & 7);
16867
- break;
16868
- }
16869
- }
16870
- return message;
16871
- };
16872
-
16873
- /**
16874
- * Decodes an AccessGroupCreated message from the specified reader or buffer, length delimited.
16875
- * @function decodeDelimited
16876
- * @memberof AccessGroupCreated
16877
- * @static
16878
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16879
- * @returns {AccessGroupCreated} AccessGroupCreated
16880
- * @throws {Error} If the payload is not a reader or valid buffer
16881
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16882
- */
16883
- AccessGroupCreated.decodeDelimited = function decodeDelimited(reader) {
16884
- if (!(reader instanceof $Reader))
16885
- reader = new $Reader(reader);
16886
- return this.decode(reader, reader.uint32());
16887
- };
16888
-
16889
- /**
16890
- * Verifies an AccessGroupCreated message.
16891
- * @function verify
16892
- * @memberof AccessGroupCreated
16893
- * @static
16894
- * @param {Object.<string,*>} message Plain object to verify
16895
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
16896
- */
16897
- AccessGroupCreated.verify = function verify(message) {
16898
- if (typeof message !== "object" || message === null)
16899
- return "object expected";
16900
- if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16901
- if (!$util.isString(message.accessGroupName))
16902
- return "accessGroupName: string expected";
16903
- if (message.description != null && message.hasOwnProperty("description"))
16904
- if (!$util.isString(message.description))
16905
- return "description: string expected";
16906
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16907
- if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
16908
- return "createdAt: integer|Long expected";
16909
- if (message.slug != null && message.hasOwnProperty("slug"))
16910
- if (!$util.isString(message.slug))
16911
- return "slug: string expected";
16912
- return null;
16913
- };
16914
-
16915
- /**
16916
- * Creates an AccessGroupCreated message from a plain object. Also converts values to their respective internal types.
16917
- * @function fromObject
16918
- * @memberof AccessGroupCreated
16919
- * @static
16920
- * @param {Object.<string,*>} object Plain object
16921
- * @returns {AccessGroupCreated} AccessGroupCreated
16922
- */
16923
- AccessGroupCreated.fromObject = function fromObject(object) {
16924
- if (object instanceof $root.AccessGroupCreated)
16925
- return object;
16926
- var message = new $root.AccessGroupCreated();
16927
- if (object.accessGroupName != null)
16928
- message.accessGroupName = String(object.accessGroupName);
16929
- if (object.description != null)
16930
- message.description = String(object.description);
16931
- if (object.createdAt != null)
16932
- if ($util.Long)
16933
- (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
16934
- else if (typeof object.createdAt === "string")
16935
- message.createdAt = parseInt(object.createdAt, 10);
16936
- else if (typeof object.createdAt === "number")
16937
- message.createdAt = object.createdAt;
16938
- else if (typeof object.createdAt === "object")
16939
- message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
16940
- if (object.slug != null)
16941
- message.slug = String(object.slug);
16942
- return message;
16943
- };
16944
-
16945
- /**
16946
- * Creates a plain object from an AccessGroupCreated message. Also converts values to other types if specified.
16947
- * @function toObject
16948
- * @memberof AccessGroupCreated
16949
- * @static
16950
- * @param {AccessGroupCreated} message AccessGroupCreated
16951
- * @param {$protobuf.IConversionOptions} [options] Conversion options
16952
- * @returns {Object.<string,*>} Plain object
16953
- */
16954
- AccessGroupCreated.toObject = function toObject(message, options) {
16955
- if (!options)
16956
- options = {};
16957
- var object = {};
16958
- if (options.defaults) {
16959
- object.accessGroupName = "";
16960
- object.description = "";
16961
- if ($util.Long) {
16962
- var long = new $util.Long(0, 0, true);
16963
- object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16964
- } else
16965
- object.createdAt = options.longs === String ? "0" : 0;
16966
- object.slug = "";
16967
- }
16968
- if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
16969
- object.accessGroupName = message.accessGroupName;
16970
- if (message.description != null && message.hasOwnProperty("description"))
16971
- object.description = message.description;
16972
- if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16973
- if (typeof message.createdAt === "number")
16974
- object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
16975
- else
16976
- 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;
16977
- if (message.slug != null && message.hasOwnProperty("slug"))
16978
- object.slug = message.slug;
16979
- return object;
16980
- };
16981
-
16982
- /**
16983
- * Converts this AccessGroupCreated to JSON.
16984
- * @function toJSON
16985
- * @memberof AccessGroupCreated
16986
- * @instance
16987
- * @returns {Object.<string,*>} JSON object
16988
- */
16989
- AccessGroupCreated.prototype.toJSON = function toJSON() {
16990
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16991
- };
16992
-
16993
- return AccessGroupCreated;
16994
- })();
16995
-
16996
- $root.AccessGroupUpdated = (function() {
16997
-
16998
- /**
16999
- * Properties of an AccessGroupUpdated.
17000
- * @exports IAccessGroupUpdated
17001
- * @interface IAccessGroupUpdated
17002
- * @property {string|null} [accessGroupName] AccessGroupUpdated accessGroupName
17003
- * @property {string|null} [description] AccessGroupUpdated description
17004
- * @property {number|Long|null} [updatedAt] AccessGroupUpdated updatedAt
17005
- * @property {string|null} [slug] AccessGroupUpdated slug
17006
- */
17007
-
17008
- /**
17009
- * Constructs a new AccessGroupUpdated.
17010
- * @exports AccessGroupUpdated
17011
- * @classdesc Represents an AccessGroupUpdated.
17012
- * @implements IAccessGroupUpdated
17013
- * @constructor
17014
- * @param {IAccessGroupUpdated=} [properties] Properties to set
17015
- */
17016
- function AccessGroupUpdated(properties) {
17017
- if (properties)
17018
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17019
- if (properties[keys[i]] != null)
17020
- this[keys[i]] = properties[keys[i]];
17021
- }
17022
-
17023
- /**
17024
- * AccessGroupUpdated accessGroupName.
17025
- * @member {string} accessGroupName
17026
- * @memberof AccessGroupUpdated
17027
- * @instance
17028
- */
17029
- AccessGroupUpdated.prototype.accessGroupName = "";
17030
-
17031
- /**
17032
- * AccessGroupUpdated description.
17033
- * @member {string} description
17034
- * @memberof AccessGroupUpdated
17035
- * @instance
17036
- */
17037
- AccessGroupUpdated.prototype.description = "";
17038
-
17039
- /**
17040
- * AccessGroupUpdated updatedAt.
17041
- * @member {number|Long} updatedAt
17042
- * @memberof AccessGroupUpdated
17043
- * @instance
17044
- */
17045
- AccessGroupUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17046
-
17047
- /**
17048
- * AccessGroupUpdated slug.
17049
- * @member {string} slug
17050
- * @memberof AccessGroupUpdated
17051
- * @instance
17052
- */
17053
- AccessGroupUpdated.prototype.slug = "";
16186
+ AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17054
16187
 
17055
16188
  /**
17056
- * Creates a new AccessGroupUpdated instance using the specified properties.
16189
+ * Creates a new AccessGroupCreated instance using the specified properties.
17057
16190
  * @function create
17058
- * @memberof AccessGroupUpdated
16191
+ * @memberof AccessGroupCreated
17059
16192
  * @static
17060
- * @param {IAccessGroupUpdated=} [properties] Properties to set
17061
- * @returns {AccessGroupUpdated} AccessGroupUpdated instance
16193
+ * @param {IAccessGroupCreated=} [properties] Properties to set
16194
+ * @returns {AccessGroupCreated} AccessGroupCreated instance
17062
16195
  */
17063
- AccessGroupUpdated.create = function create(properties) {
17064
- return new AccessGroupUpdated(properties);
16196
+ AccessGroupCreated.create = function create(properties) {
16197
+ return new AccessGroupCreated(properties);
17065
16198
  };
17066
16199
 
17067
16200
  /**
17068
- * 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.
17069
16202
  * @function encode
17070
- * @memberof AccessGroupUpdated
16203
+ * @memberof AccessGroupCreated
17071
16204
  * @static
17072
- * @param {IAccessGroupUpdated} message AccessGroupUpdated message or plain object to encode
16205
+ * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
17073
16206
  * @param {$protobuf.Writer} [writer] Writer to encode to
17074
16207
  * @returns {$protobuf.Writer} Writer
17075
16208
  */
17076
- AccessGroupUpdated.encode = function encode(message, writer) {
16209
+ AccessGroupCreated.encode = function encode(message, writer) {
17077
16210
  if (!writer)
17078
16211
  writer = $Writer.create();
17079
16212
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17080
16213
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
17081
16214
  if (message.description != null && message.hasOwnProperty("description"))
17082
16215
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
17083
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17084
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
17085
- if (message.slug != null && message.hasOwnProperty("slug"))
17086
- 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);
17087
16218
  return writer;
17088
16219
  };
17089
16220
 
17090
16221
  /**
17091
- * 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.
17092
16223
  * @function encodeDelimited
17093
- * @memberof AccessGroupUpdated
16224
+ * @memberof AccessGroupCreated
17094
16225
  * @static
17095
- * @param {IAccessGroupUpdated} message AccessGroupUpdated message or plain object to encode
16226
+ * @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
17096
16227
  * @param {$protobuf.Writer} [writer] Writer to encode to
17097
16228
  * @returns {$protobuf.Writer} Writer
17098
16229
  */
17099
- AccessGroupUpdated.encodeDelimited = function encodeDelimited(message, writer) {
16230
+ AccessGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
17100
16231
  return this.encode(message, writer).ldelim();
17101
16232
  };
17102
16233
 
17103
16234
  /**
17104
- * Decodes an AccessGroupUpdated message from the specified reader or buffer.
16235
+ * Decodes an AccessGroupCreated message from the specified reader or buffer.
17105
16236
  * @function decode
17106
- * @memberof AccessGroupUpdated
16237
+ * @memberof AccessGroupCreated
17107
16238
  * @static
17108
16239
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17109
16240
  * @param {number} [length] Message length if known beforehand
17110
- * @returns {AccessGroupUpdated} AccessGroupUpdated
16241
+ * @returns {AccessGroupCreated} AccessGroupCreated
17111
16242
  * @throws {Error} If the payload is not a reader or valid buffer
17112
16243
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
17113
16244
  */
17114
- AccessGroupUpdated.decode = function decode(reader, length) {
16245
+ AccessGroupCreated.decode = function decode(reader, length) {
17115
16246
  if (!(reader instanceof $Reader))
17116
16247
  reader = $Reader.create(reader);
17117
- 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();
17118
16249
  while (reader.pos < end) {
17119
16250
  var tag = reader.uint32();
17120
16251
  switch (tag >>> 3) {
@@ -17125,10 +16256,7 @@ $root.AccessGroupUpdated = (function() {
17125
16256
  message.description = reader.string();
17126
16257
  break;
17127
16258
  case 3:
17128
- message.updatedAt = reader.uint64();
17129
- break;
17130
- case 4:
17131
- message.slug = reader.string();
16259
+ message.createdAt = reader.uint64();
17132
16260
  break;
17133
16261
  default:
17134
16262
  reader.skipType(tag & 7);
@@ -17139,30 +16267,30 @@ $root.AccessGroupUpdated = (function() {
17139
16267
  };
17140
16268
 
17141
16269
  /**
17142
- * 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.
17143
16271
  * @function decodeDelimited
17144
- * @memberof AccessGroupUpdated
16272
+ * @memberof AccessGroupCreated
17145
16273
  * @static
17146
16274
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17147
- * @returns {AccessGroupUpdated} AccessGroupUpdated
16275
+ * @returns {AccessGroupCreated} AccessGroupCreated
17148
16276
  * @throws {Error} If the payload is not a reader or valid buffer
17149
16277
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
17150
16278
  */
17151
- AccessGroupUpdated.decodeDelimited = function decodeDelimited(reader) {
16279
+ AccessGroupCreated.decodeDelimited = function decodeDelimited(reader) {
17152
16280
  if (!(reader instanceof $Reader))
17153
16281
  reader = new $Reader(reader);
17154
16282
  return this.decode(reader, reader.uint32());
17155
16283
  };
17156
16284
 
17157
16285
  /**
17158
- * Verifies an AccessGroupUpdated message.
16286
+ * Verifies an AccessGroupCreated message.
17159
16287
  * @function verify
17160
- * @memberof AccessGroupUpdated
16288
+ * @memberof AccessGroupCreated
17161
16289
  * @static
17162
16290
  * @param {Object.<string,*>} message Plain object to verify
17163
16291
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
17164
16292
  */
17165
- AccessGroupUpdated.verify = function verify(message) {
16293
+ AccessGroupCreated.verify = function verify(message) {
17166
16294
  if (typeof message !== "object" || message === null)
17167
16295
  return "object expected";
17168
16296
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
@@ -17171,55 +16299,50 @@ $root.AccessGroupUpdated = (function() {
17171
16299
  if (message.description != null && message.hasOwnProperty("description"))
17172
16300
  if (!$util.isString(message.description))
17173
16301
  return "description: string expected";
17174
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17175
- if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
17176
- return "updatedAt: integer|Long expected";
17177
- if (message.slug != null && message.hasOwnProperty("slug"))
17178
- if (!$util.isString(message.slug))
17179
- 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";
17180
16305
  return null;
17181
16306
  };
17182
16307
 
17183
16308
  /**
17184
- * 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.
17185
16310
  * @function fromObject
17186
- * @memberof AccessGroupUpdated
16311
+ * @memberof AccessGroupCreated
17187
16312
  * @static
17188
16313
  * @param {Object.<string,*>} object Plain object
17189
- * @returns {AccessGroupUpdated} AccessGroupUpdated
16314
+ * @returns {AccessGroupCreated} AccessGroupCreated
17190
16315
  */
17191
- AccessGroupUpdated.fromObject = function fromObject(object) {
17192
- if (object instanceof $root.AccessGroupUpdated)
16316
+ AccessGroupCreated.fromObject = function fromObject(object) {
16317
+ if (object instanceof $root.AccessGroupCreated)
17193
16318
  return object;
17194
- var message = new $root.AccessGroupUpdated();
16319
+ var message = new $root.AccessGroupCreated();
17195
16320
  if (object.accessGroupName != null)
17196
16321
  message.accessGroupName = String(object.accessGroupName);
17197
16322
  if (object.description != null)
17198
16323
  message.description = String(object.description);
17199
- if (object.updatedAt != null)
16324
+ if (object.createdAt != null)
17200
16325
  if ($util.Long)
17201
- (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
17202
- else if (typeof object.updatedAt === "string")
17203
- message.updatedAt = parseInt(object.updatedAt, 10);
17204
- else if (typeof object.updatedAt === "number")
17205
- message.updatedAt = object.updatedAt;
17206
- else if (typeof object.updatedAt === "object")
17207
- message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
17208
- if (object.slug != null)
17209
- 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);
17210
16333
  return message;
17211
16334
  };
17212
16335
 
17213
16336
  /**
17214
- * 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.
17215
16338
  * @function toObject
17216
- * @memberof AccessGroupUpdated
16339
+ * @memberof AccessGroupCreated
17217
16340
  * @static
17218
- * @param {AccessGroupUpdated} message AccessGroupUpdated
16341
+ * @param {AccessGroupCreated} message AccessGroupCreated
17219
16342
  * @param {$protobuf.IConversionOptions} [options] Conversion options
17220
16343
  * @returns {Object.<string,*>} Plain object
17221
16344
  */
17222
- AccessGroupUpdated.toObject = function toObject(message, options) {
16345
+ AccessGroupCreated.toObject = function toObject(message, options) {
17223
16346
  if (!options)
17224
16347
  options = {};
17225
16348
  var object = {};
@@ -17228,37 +16351,34 @@ $root.AccessGroupUpdated = (function() {
17228
16351
  object.description = "";
17229
16352
  if ($util.Long) {
17230
16353
  var long = new $util.Long(0, 0, true);
17231
- 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;
17232
16355
  } else
17233
- object.updatedAt = options.longs === String ? "0" : 0;
17234
- object.slug = "";
16356
+ object.createdAt = options.longs === String ? "0" : 0;
17235
16357
  }
17236
16358
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17237
16359
  object.accessGroupName = message.accessGroupName;
17238
16360
  if (message.description != null && message.hasOwnProperty("description"))
17239
16361
  object.description = message.description;
17240
- if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17241
- if (typeof message.updatedAt === "number")
17242
- 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;
17243
16365
  else
17244
- 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;
17245
- if (message.slug != null && message.hasOwnProperty("slug"))
17246
- 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;
17247
16367
  return object;
17248
16368
  };
17249
16369
 
17250
16370
  /**
17251
- * Converts this AccessGroupUpdated to JSON.
16371
+ * Converts this AccessGroupCreated to JSON.
17252
16372
  * @function toJSON
17253
- * @memberof AccessGroupUpdated
16373
+ * @memberof AccessGroupCreated
17254
16374
  * @instance
17255
16375
  * @returns {Object.<string,*>} JSON object
17256
16376
  */
17257
- AccessGroupUpdated.prototype.toJSON = function toJSON() {
16377
+ AccessGroupCreated.prototype.toJSON = function toJSON() {
17258
16378
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17259
16379
  };
17260
16380
 
17261
- return AccessGroupUpdated;
16381
+ return AccessGroupCreated;
17262
16382
  })();
17263
16383
 
17264
16384
  $root.AccessGroupDeleted = (function() {
@@ -17269,7 +16389,6 @@ $root.AccessGroupDeleted = (function() {
17269
16389
  * @interface IAccessGroupDeleted
17270
16390
  * @property {string|null} [accessGroupName] AccessGroupDeleted accessGroupName
17271
16391
  * @property {number|Long|null} [deletedAt] AccessGroupDeleted deletedAt
17272
- * @property {string|null} [slug] AccessGroupDeleted slug
17273
16392
  */
17274
16393
 
17275
16394
  /**
@@ -17303,14 +16422,6 @@ $root.AccessGroupDeleted = (function() {
17303
16422
  */
17304
16423
  AccessGroupDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17305
16424
 
17306
- /**
17307
- * AccessGroupDeleted slug.
17308
- * @member {string} slug
17309
- * @memberof AccessGroupDeleted
17310
- * @instance
17311
- */
17312
- AccessGroupDeleted.prototype.slug = "";
17313
-
17314
16425
  /**
17315
16426
  * Creates a new AccessGroupDeleted instance using the specified properties.
17316
16427
  * @function create
@@ -17339,8 +16450,6 @@ $root.AccessGroupDeleted = (function() {
17339
16450
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
17340
16451
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17341
16452
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
17342
- if (message.slug != null && message.hasOwnProperty("slug"))
17343
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
17344
16453
  return writer;
17345
16454
  };
17346
16455
 
@@ -17381,9 +16490,6 @@ $root.AccessGroupDeleted = (function() {
17381
16490
  case 2:
17382
16491
  message.deletedAt = reader.uint64();
17383
16492
  break;
17384
- case 3:
17385
- message.slug = reader.string();
17386
- break;
17387
16493
  default:
17388
16494
  reader.skipType(tag & 7);
17389
16495
  break;
@@ -17425,9 +16531,6 @@ $root.AccessGroupDeleted = (function() {
17425
16531
  if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17426
16532
  if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
17427
16533
  return "deletedAt: integer|Long expected";
17428
- if (message.slug != null && message.hasOwnProperty("slug"))
17429
- if (!$util.isString(message.slug))
17430
- return "slug: string expected";
17431
16534
  return null;
17432
16535
  };
17433
16536
 
@@ -17454,8 +16557,6 @@ $root.AccessGroupDeleted = (function() {
17454
16557
  message.deletedAt = object.deletedAt;
17455
16558
  else if (typeof object.deletedAt === "object")
17456
16559
  message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
17457
- if (object.slug != null)
17458
- message.slug = String(object.slug);
17459
16560
  return message;
17460
16561
  };
17461
16562
 
@@ -17479,7 +16580,6 @@ $root.AccessGroupDeleted = (function() {
17479
16580
  object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17480
16581
  } else
17481
16582
  object.deletedAt = options.longs === String ? "0" : 0;
17482
- object.slug = "";
17483
16583
  }
17484
16584
  if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
17485
16585
  object.accessGroupName = message.accessGroupName;
@@ -17488,8 +16588,6 @@ $root.AccessGroupDeleted = (function() {
17488
16588
  object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
17489
16589
  else
17490
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;
17491
- if (message.slug != null && message.hasOwnProperty("slug"))
17492
- object.slug = message.slug;
17493
16591
  return object;
17494
16592
  };
17495
16593
 
@@ -29602,228 +28700,4 @@ $root.UserEmailMarketingSubscriptionStatusUpdated = (function() {
29602
28700
  return UserEmailMarketingSubscriptionStatusUpdated;
29603
28701
  })();
29604
28702
 
29605
- $root.UserUnsubscribeRequested = (function() {
29606
-
29607
- /**
29608
- * Properties of a UserUnsubscribeRequested.
29609
- * @exports IUserUnsubscribeRequested
29610
- * @interface IUserUnsubscribeRequested
29611
- * @property {string|null} [userId] UserUnsubscribeRequested userId
29612
- * @property {number|Long|null} [timestamp] UserUnsubscribeRequested timestamp
29613
- */
29614
-
29615
- /**
29616
- * Constructs a new UserUnsubscribeRequested.
29617
- * @exports UserUnsubscribeRequested
29618
- * @classdesc Represents a UserUnsubscribeRequested.
29619
- * @implements IUserUnsubscribeRequested
29620
- * @constructor
29621
- * @param {IUserUnsubscribeRequested=} [properties] Properties to set
29622
- */
29623
- function UserUnsubscribeRequested(properties) {
29624
- if (properties)
29625
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
29626
- if (properties[keys[i]] != null)
29627
- this[keys[i]] = properties[keys[i]];
29628
- }
29629
-
29630
- /**
29631
- * UserUnsubscribeRequested userId.
29632
- * @member {string} userId
29633
- * @memberof UserUnsubscribeRequested
29634
- * @instance
29635
- */
29636
- UserUnsubscribeRequested.prototype.userId = "";
29637
-
29638
- /**
29639
- * UserUnsubscribeRequested timestamp.
29640
- * @member {number|Long} timestamp
29641
- * @memberof UserUnsubscribeRequested
29642
- * @instance
29643
- */
29644
- UserUnsubscribeRequested.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
29645
-
29646
- /**
29647
- * Creates a new UserUnsubscribeRequested instance using the specified properties.
29648
- * @function create
29649
- * @memberof UserUnsubscribeRequested
29650
- * @static
29651
- * @param {IUserUnsubscribeRequested=} [properties] Properties to set
29652
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested instance
29653
- */
29654
- UserUnsubscribeRequested.create = function create(properties) {
29655
- return new UserUnsubscribeRequested(properties);
29656
- };
29657
-
29658
- /**
29659
- * Encodes the specified UserUnsubscribeRequested message. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
29660
- * @function encode
29661
- * @memberof UserUnsubscribeRequested
29662
- * @static
29663
- * @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
29664
- * @param {$protobuf.Writer} [writer] Writer to encode to
29665
- * @returns {$protobuf.Writer} Writer
29666
- */
29667
- UserUnsubscribeRequested.encode = function encode(message, writer) {
29668
- if (!writer)
29669
- writer = $Writer.create();
29670
- if (message.userId != null && message.hasOwnProperty("userId"))
29671
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
29672
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
29673
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
29674
- return writer;
29675
- };
29676
-
29677
- /**
29678
- * Encodes the specified UserUnsubscribeRequested message, length delimited. Does not implicitly {@link UserUnsubscribeRequested.verify|verify} messages.
29679
- * @function encodeDelimited
29680
- * @memberof UserUnsubscribeRequested
29681
- * @static
29682
- * @param {IUserUnsubscribeRequested} message UserUnsubscribeRequested message or plain object to encode
29683
- * @param {$protobuf.Writer} [writer] Writer to encode to
29684
- * @returns {$protobuf.Writer} Writer
29685
- */
29686
- UserUnsubscribeRequested.encodeDelimited = function encodeDelimited(message, writer) {
29687
- return this.encode(message, writer).ldelim();
29688
- };
29689
-
29690
- /**
29691
- * Decodes a UserUnsubscribeRequested message from the specified reader or buffer.
29692
- * @function decode
29693
- * @memberof UserUnsubscribeRequested
29694
- * @static
29695
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29696
- * @param {number} [length] Message length if known beforehand
29697
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
29698
- * @throws {Error} If the payload is not a reader or valid buffer
29699
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
29700
- */
29701
- UserUnsubscribeRequested.decode = function decode(reader, length) {
29702
- if (!(reader instanceof $Reader))
29703
- reader = $Reader.create(reader);
29704
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserUnsubscribeRequested();
29705
- while (reader.pos < end) {
29706
- var tag = reader.uint32();
29707
- switch (tag >>> 3) {
29708
- case 1:
29709
- message.userId = reader.string();
29710
- break;
29711
- case 2:
29712
- message.timestamp = reader.uint64();
29713
- break;
29714
- default:
29715
- reader.skipType(tag & 7);
29716
- break;
29717
- }
29718
- }
29719
- return message;
29720
- };
29721
-
29722
- /**
29723
- * Decodes a UserUnsubscribeRequested message from the specified reader or buffer, length delimited.
29724
- * @function decodeDelimited
29725
- * @memberof UserUnsubscribeRequested
29726
- * @static
29727
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29728
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
29729
- * @throws {Error} If the payload is not a reader or valid buffer
29730
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
29731
- */
29732
- UserUnsubscribeRequested.decodeDelimited = function decodeDelimited(reader) {
29733
- if (!(reader instanceof $Reader))
29734
- reader = new $Reader(reader);
29735
- return this.decode(reader, reader.uint32());
29736
- };
29737
-
29738
- /**
29739
- * Verifies a UserUnsubscribeRequested message.
29740
- * @function verify
29741
- * @memberof UserUnsubscribeRequested
29742
- * @static
29743
- * @param {Object.<string,*>} message Plain object to verify
29744
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
29745
- */
29746
- UserUnsubscribeRequested.verify = function verify(message) {
29747
- if (typeof message !== "object" || message === null)
29748
- return "object expected";
29749
- if (message.userId != null && message.hasOwnProperty("userId"))
29750
- if (!$util.isString(message.userId))
29751
- return "userId: string expected";
29752
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
29753
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
29754
- return "timestamp: integer|Long expected";
29755
- return null;
29756
- };
29757
-
29758
- /**
29759
- * Creates a UserUnsubscribeRequested message from a plain object. Also converts values to their respective internal types.
29760
- * @function fromObject
29761
- * @memberof UserUnsubscribeRequested
29762
- * @static
29763
- * @param {Object.<string,*>} object Plain object
29764
- * @returns {UserUnsubscribeRequested} UserUnsubscribeRequested
29765
- */
29766
- UserUnsubscribeRequested.fromObject = function fromObject(object) {
29767
- if (object instanceof $root.UserUnsubscribeRequested)
29768
- return object;
29769
- var message = new $root.UserUnsubscribeRequested();
29770
- if (object.userId != null)
29771
- message.userId = String(object.userId);
29772
- if (object.timestamp != null)
29773
- if ($util.Long)
29774
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
29775
- else if (typeof object.timestamp === "string")
29776
- message.timestamp = parseInt(object.timestamp, 10);
29777
- else if (typeof object.timestamp === "number")
29778
- message.timestamp = object.timestamp;
29779
- else if (typeof object.timestamp === "object")
29780
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
29781
- return message;
29782
- };
29783
-
29784
- /**
29785
- * Creates a plain object from a UserUnsubscribeRequested message. Also converts values to other types if specified.
29786
- * @function toObject
29787
- * @memberof UserUnsubscribeRequested
29788
- * @static
29789
- * @param {UserUnsubscribeRequested} message UserUnsubscribeRequested
29790
- * @param {$protobuf.IConversionOptions} [options] Conversion options
29791
- * @returns {Object.<string,*>} Plain object
29792
- */
29793
- UserUnsubscribeRequested.toObject = function toObject(message, options) {
29794
- if (!options)
29795
- options = {};
29796
- var object = {};
29797
- if (options.defaults) {
29798
- object.userId = "";
29799
- if ($util.Long) {
29800
- var long = new $util.Long(0, 0, true);
29801
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
29802
- } else
29803
- object.timestamp = options.longs === String ? "0" : 0;
29804
- }
29805
- if (message.userId != null && message.hasOwnProperty("userId"))
29806
- object.userId = message.userId;
29807
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
29808
- if (typeof message.timestamp === "number")
29809
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
29810
- else
29811
- 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;
29812
- return object;
29813
- };
29814
-
29815
- /**
29816
- * Converts this UserUnsubscribeRequested to JSON.
29817
- * @function toJSON
29818
- * @memberof UserUnsubscribeRequested
29819
- * @instance
29820
- * @returns {Object.<string,*>} JSON object
29821
- */
29822
- UserUnsubscribeRequested.prototype.toJSON = function toJSON() {
29823
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
29824
- };
29825
-
29826
- return UserUnsubscribeRequested;
29827
- })();
29828
-
29829
28703
  module.exports = $root;