protobuf-platform 1.2.675 → 1.2.676

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.
@@ -75,6 +75,8 @@ message UserSearchRequest {
75
75
  optional bool is_checked = 2;
76
76
  optional int32 limit = 3;
77
77
  optional int32 offset = 4;
78
+ // Administrative history includes expired recipient rows. Client retrieval leaves this unset.
79
+ optional bool include_expired = 5;
78
80
  }
79
81
  message ItemsBunchRequest {
80
82
  repeated int32 ids = 1;
@@ -103,6 +105,10 @@ message NotificationItemRequest {
103
105
  optional string target_title = 12;
104
106
  optional string target_slug = 13;
105
107
  optional string button_text = 14;
108
+ // Positive hours. Absent on update leaves the stored value unchanged.
109
+ optional int32 remove_after_hours = 15;
110
+ // Explicit clear of remove_after_hours. Independent of field 15 so unset and null stay distinct.
111
+ optional bool clear_remove_after_hours = 16;
106
112
  }
107
113
  message NotificationRequest {
108
114
  oneof request {
@@ -200,6 +206,7 @@ message NotificationItem {
200
206
  optional string target_slug = 16;
201
207
  optional string button_text = 17;
202
208
  optional string target_provider_slug = 18; // response-only; enriched from game-service
209
+ optional int32 remove_after_hours = 19;
203
210
  }
204
211
  message NotificationResponse {
205
212
  NotificationItem data = 1;
@@ -2419,7 +2419,8 @@ proto.notification.UserSearchRequest.toObject = function(includeInstance, msg) {
2419
2419
  userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
2420
2420
  isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
2421
2421
  limit: jspb.Message.getFieldWithDefault(msg, 3, 0),
2422
- offset: jspb.Message.getFieldWithDefault(msg, 4, 0)
2422
+ offset: jspb.Message.getFieldWithDefault(msg, 4, 0),
2423
+ includeExpired: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
2423
2424
  };
2424
2425
 
2425
2426
  if (includeInstance) {
@@ -2472,6 +2473,10 @@ proto.notification.UserSearchRequest.deserializeBinaryFromReader = function(msg,
2472
2473
  var value = /** @type {number} */ (reader.readInt32());
2473
2474
  msg.setOffset(value);
2474
2475
  break;
2476
+ case 5:
2477
+ var value = /** @type {boolean} */ (reader.readBool());
2478
+ msg.setIncludeExpired(value);
2479
+ break;
2475
2480
  default:
2476
2481
  reader.skipField();
2477
2482
  break;
@@ -2529,6 +2534,13 @@ proto.notification.UserSearchRequest.serializeBinaryToWriter = function(message,
2529
2534
  f
2530
2535
  );
2531
2536
  }
2537
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
2538
+ if (f != null) {
2539
+ writer.writeBool(
2540
+ 5,
2541
+ f
2542
+ );
2543
+ }
2532
2544
  };
2533
2545
 
2534
2546
 
@@ -2658,6 +2670,42 @@ proto.notification.UserSearchRequest.prototype.hasOffset = function() {
2658
2670
  };
2659
2671
 
2660
2672
 
2673
+ /**
2674
+ * optional bool include_expired = 5;
2675
+ * @return {boolean}
2676
+ */
2677
+ proto.notification.UserSearchRequest.prototype.getIncludeExpired = function() {
2678
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
2679
+ };
2680
+
2681
+
2682
+ /**
2683
+ * @param {boolean} value
2684
+ * @return {!proto.notification.UserSearchRequest} returns this
2685
+ */
2686
+ proto.notification.UserSearchRequest.prototype.setIncludeExpired = function(value) {
2687
+ return jspb.Message.setField(this, 5, value);
2688
+ };
2689
+
2690
+
2691
+ /**
2692
+ * Clears the field making it undefined.
2693
+ * @return {!proto.notification.UserSearchRequest} returns this
2694
+ */
2695
+ proto.notification.UserSearchRequest.prototype.clearIncludeExpired = function() {
2696
+ return jspb.Message.setField(this, 5, undefined);
2697
+ };
2698
+
2699
+
2700
+ /**
2701
+ * Returns whether this field is set.
2702
+ * @return {boolean}
2703
+ */
2704
+ proto.notification.UserSearchRequest.prototype.hasIncludeExpired = function() {
2705
+ return jspb.Message.getField(this, 5) != null;
2706
+ };
2707
+
2708
+
2661
2709
 
2662
2710
  /**
2663
2711
  * List of repeated fields within this message type.
@@ -3271,7 +3319,9 @@ proto.notification.NotificationItemRequest.toObject = function(includeInstance,
3271
3319
  targetId: jspb.Message.getFieldWithDefault(msg, 11, 0),
3272
3320
  targetTitle: jspb.Message.getFieldWithDefault(msg, 12, ""),
3273
3321
  targetSlug: jspb.Message.getFieldWithDefault(msg, 13, ""),
3274
- buttonText: jspb.Message.getFieldWithDefault(msg, 14, "")
3322
+ buttonText: jspb.Message.getFieldWithDefault(msg, 14, ""),
3323
+ removeAfterHours: jspb.Message.getFieldWithDefault(msg, 15, 0),
3324
+ clearRemoveAfterHours: jspb.Message.getBooleanFieldWithDefault(msg, 16, false)
3275
3325
  };
3276
3326
 
3277
3327
  if (includeInstance) {
@@ -3364,6 +3414,14 @@ proto.notification.NotificationItemRequest.deserializeBinaryFromReader = functio
3364
3414
  var value = /** @type {string} */ (reader.readString());
3365
3415
  msg.setButtonText(value);
3366
3416
  break;
3417
+ case 15:
3418
+ var value = /** @type {number} */ (reader.readInt32());
3419
+ msg.setRemoveAfterHours(value);
3420
+ break;
3421
+ case 16:
3422
+ var value = /** @type {boolean} */ (reader.readBool());
3423
+ msg.setClearRemoveAfterHours(value);
3424
+ break;
3367
3425
  default:
3368
3426
  reader.skipField();
3369
3427
  break;
@@ -3491,6 +3549,20 @@ proto.notification.NotificationItemRequest.serializeBinaryToWriter = function(me
3491
3549
  f
3492
3550
  );
3493
3551
  }
3552
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
3553
+ if (f != null) {
3554
+ writer.writeInt32(
3555
+ 15,
3556
+ f
3557
+ );
3558
+ }
3559
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 16));
3560
+ if (f != null) {
3561
+ writer.writeBool(
3562
+ 16,
3563
+ f
3564
+ );
3565
+ }
3494
3566
  };
3495
3567
 
3496
3568
 
@@ -3998,6 +4070,78 @@ proto.notification.NotificationItemRequest.prototype.hasButtonText = function()
3998
4070
  };
3999
4071
 
4000
4072
 
4073
+ /**
4074
+ * optional int32 remove_after_hours = 15;
4075
+ * @return {number}
4076
+ */
4077
+ proto.notification.NotificationItemRequest.prototype.getRemoveAfterHours = function() {
4078
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
4079
+ };
4080
+
4081
+
4082
+ /**
4083
+ * @param {number} value
4084
+ * @return {!proto.notification.NotificationItemRequest} returns this
4085
+ */
4086
+ proto.notification.NotificationItemRequest.prototype.setRemoveAfterHours = function(value) {
4087
+ return jspb.Message.setField(this, 15, value);
4088
+ };
4089
+
4090
+
4091
+ /**
4092
+ * Clears the field making it undefined.
4093
+ * @return {!proto.notification.NotificationItemRequest} returns this
4094
+ */
4095
+ proto.notification.NotificationItemRequest.prototype.clearRemoveAfterHours = function() {
4096
+ return jspb.Message.setField(this, 15, undefined);
4097
+ };
4098
+
4099
+
4100
+ /**
4101
+ * Returns whether this field is set.
4102
+ * @return {boolean}
4103
+ */
4104
+ proto.notification.NotificationItemRequest.prototype.hasRemoveAfterHours = function() {
4105
+ return jspb.Message.getField(this, 15) != null;
4106
+ };
4107
+
4108
+
4109
+ /**
4110
+ * optional bool clear_remove_after_hours = 16;
4111
+ * @return {boolean}
4112
+ */
4113
+ proto.notification.NotificationItemRequest.prototype.getClearRemoveAfterHours = function() {
4114
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
4115
+ };
4116
+
4117
+
4118
+ /**
4119
+ * @param {boolean} value
4120
+ * @return {!proto.notification.NotificationItemRequest} returns this
4121
+ */
4122
+ proto.notification.NotificationItemRequest.prototype.setClearRemoveAfterHours = function(value) {
4123
+ return jspb.Message.setField(this, 16, value);
4124
+ };
4125
+
4126
+
4127
+ /**
4128
+ * Clears the field making it undefined.
4129
+ * @return {!proto.notification.NotificationItemRequest} returns this
4130
+ */
4131
+ proto.notification.NotificationItemRequest.prototype.clearClearRemoveAfterHours = function() {
4132
+ return jspb.Message.setField(this, 16, undefined);
4133
+ };
4134
+
4135
+
4136
+ /**
4137
+ * Returns whether this field is set.
4138
+ * @return {boolean}
4139
+ */
4140
+ proto.notification.NotificationItemRequest.prototype.hasClearRemoveAfterHours = function() {
4141
+ return jspb.Message.getField(this, 16) != null;
4142
+ };
4143
+
4144
+
4001
4145
 
4002
4146
  /**
4003
4147
  * Oneof group definitions for this message. Each group defines the field
@@ -7514,7 +7658,8 @@ proto.notification.NotificationItem.toObject = function(includeInstance, msg) {
7514
7658
  targetTitle: jspb.Message.getFieldWithDefault(msg, 15, ""),
7515
7659
  targetSlug: jspb.Message.getFieldWithDefault(msg, 16, ""),
7516
7660
  buttonText: jspb.Message.getFieldWithDefault(msg, 17, ""),
7517
- targetProviderSlug: jspb.Message.getFieldWithDefault(msg, 18, "")
7661
+ targetProviderSlug: jspb.Message.getFieldWithDefault(msg, 18, ""),
7662
+ removeAfterHours: jspb.Message.getFieldWithDefault(msg, 19, 0)
7518
7663
  };
7519
7664
 
7520
7665
  if (includeInstance) {
@@ -7623,6 +7768,10 @@ proto.notification.NotificationItem.deserializeBinaryFromReader = function(msg,
7623
7768
  var value = /** @type {string} */ (reader.readString());
7624
7769
  msg.setTargetProviderSlug(value);
7625
7770
  break;
7771
+ case 19:
7772
+ var value = /** @type {number} */ (reader.readInt32());
7773
+ msg.setRemoveAfterHours(value);
7774
+ break;
7626
7775
  default:
7627
7776
  reader.skipField();
7628
7777
  break;
@@ -7778,6 +7927,13 @@ proto.notification.NotificationItem.serializeBinaryToWriter = function(message,
7778
7927
  f
7779
7928
  );
7780
7929
  }
7930
+ f = /** @type {number} */ (jspb.Message.getField(message, 19));
7931
+ if (f != null) {
7932
+ writer.writeInt32(
7933
+ 19,
7934
+ f
7935
+ );
7936
+ }
7781
7937
  };
7782
7938
 
7783
7939
 
@@ -8321,6 +8477,42 @@ proto.notification.NotificationItem.prototype.hasTargetProviderSlug = function()
8321
8477
  };
8322
8478
 
8323
8479
 
8480
+ /**
8481
+ * optional int32 remove_after_hours = 19;
8482
+ * @return {number}
8483
+ */
8484
+ proto.notification.NotificationItem.prototype.getRemoveAfterHours = function() {
8485
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
8486
+ };
8487
+
8488
+
8489
+ /**
8490
+ * @param {number} value
8491
+ * @return {!proto.notification.NotificationItem} returns this
8492
+ */
8493
+ proto.notification.NotificationItem.prototype.setRemoveAfterHours = function(value) {
8494
+ return jspb.Message.setField(this, 19, value);
8495
+ };
8496
+
8497
+
8498
+ /**
8499
+ * Clears the field making it undefined.
8500
+ * @return {!proto.notification.NotificationItem} returns this
8501
+ */
8502
+ proto.notification.NotificationItem.prototype.clearRemoveAfterHours = function() {
8503
+ return jspb.Message.setField(this, 19, undefined);
8504
+ };
8505
+
8506
+
8507
+ /**
8508
+ * Returns whether this field is set.
8509
+ * @return {boolean}
8510
+ */
8511
+ proto.notification.NotificationItem.prototype.hasRemoveAfterHours = function() {
8512
+ return jspb.Message.getField(this, 19) != null;
8513
+ };
8514
+
8515
+
8324
8516
 
8325
8517
 
8326
8518
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.675",
3
+ "version": "1.2.676",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {