protobuf-platform 1.2.470 → 1.2.472

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.
@@ -61,6 +61,7 @@ message CashbackItem {
61
61
  optional string type = 9;
62
62
  optional string checking_at = 10;
63
63
  repeated CashbackConfigItem config = 11;
64
+ optional int32 bonus_template_id = 12;
64
65
  }
65
66
  message CashbackRequest {
66
67
  oneof request {
@@ -77,6 +78,7 @@ message CashbackItemRequest {
77
78
  optional int32 level = 7;
78
79
  optional string type = 8;
79
80
  optional string checking_at = 9;
81
+ optional int32 bonus_template_id = 10;
80
82
  }
81
83
  message GetCashbackRequest {
82
84
  int32 id = 1;
@@ -143,6 +145,7 @@ message UserCashbackItem {
143
145
  optional float remaining_to_min = 17;
144
146
  optional int32 cashback_user_id = 18;
145
147
  repeated CashbackGamePreview games = 19;
148
+ optional int32 user_bonus_id = 20;
146
149
  }
147
150
  message CashbackUserRequest {
148
151
  int32 user_id = 1;
@@ -166,6 +169,7 @@ message ReactivateCashbackRequest {
166
169
  }
167
170
  message ClaimCashbackResponse {
168
171
  string status = 1;
172
+ optional int32 user_bonus_id = 2;
169
173
  }
170
174
  message UserCashbackResponse {
171
175
  UserCashbackItem data = 1;
@@ -2373,7 +2373,8 @@ proto.cashback.CashbackItem.toObject = function(includeInstance, msg) {
2373
2373
  type: jspb.Message.getFieldWithDefault(msg, 9, ""),
2374
2374
  checkingAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
2375
2375
  configList: jspb.Message.toObjectList(msg.getConfigList(),
2376
- proto.cashback.CashbackConfigItem.toObject, includeInstance)
2376
+ proto.cashback.CashbackConfigItem.toObject, includeInstance),
2377
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 12, 0)
2377
2378
  };
2378
2379
 
2379
2380
  if (includeInstance) {
@@ -2451,6 +2452,10 @@ proto.cashback.CashbackItem.deserializeBinaryFromReader = function(msg, reader)
2451
2452
  reader.readMessage(value,proto.cashback.CashbackConfigItem.deserializeBinaryFromReader);
2452
2453
  msg.addConfig(value);
2453
2454
  break;
2455
+ case 12:
2456
+ var value = /** @type {number} */ (reader.readInt32());
2457
+ msg.setBonusTemplateId(value);
2458
+ break;
2454
2459
  default:
2455
2460
  reader.skipField();
2456
2461
  break;
@@ -2551,6 +2556,13 @@ proto.cashback.CashbackItem.serializeBinaryToWriter = function(message, writer)
2551
2556
  proto.cashback.CashbackConfigItem.serializeBinaryToWriter
2552
2557
  );
2553
2558
  }
2559
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
2560
+ if (f != null) {
2561
+ writer.writeInt32(
2562
+ 12,
2563
+ f
2564
+ );
2565
+ }
2554
2566
  };
2555
2567
 
2556
2568
 
@@ -2916,6 +2928,42 @@ proto.cashback.CashbackItem.prototype.clearConfigList = function() {
2916
2928
  };
2917
2929
 
2918
2930
 
2931
+ /**
2932
+ * optional int32 bonus_template_id = 12;
2933
+ * @return {number}
2934
+ */
2935
+ proto.cashback.CashbackItem.prototype.getBonusTemplateId = function() {
2936
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
2937
+ };
2938
+
2939
+
2940
+ /**
2941
+ * @param {number} value
2942
+ * @return {!proto.cashback.CashbackItem} returns this
2943
+ */
2944
+ proto.cashback.CashbackItem.prototype.setBonusTemplateId = function(value) {
2945
+ return jspb.Message.setField(this, 12, value);
2946
+ };
2947
+
2948
+
2949
+ /**
2950
+ * Clears the field making it undefined.
2951
+ * @return {!proto.cashback.CashbackItem} returns this
2952
+ */
2953
+ proto.cashback.CashbackItem.prototype.clearBonusTemplateId = function() {
2954
+ return jspb.Message.setField(this, 12, undefined);
2955
+ };
2956
+
2957
+
2958
+ /**
2959
+ * Returns whether this field is set.
2960
+ * @return {boolean}
2961
+ */
2962
+ proto.cashback.CashbackItem.prototype.hasBonusTemplateId = function() {
2963
+ return jspb.Message.getField(this, 12) != null;
2964
+ };
2965
+
2966
+
2919
2967
 
2920
2968
  /**
2921
2969
  * Oneof group definitions for this message. Each group defines the field
@@ -3183,7 +3231,8 @@ proto.cashback.CashbackItemRequest.toObject = function(includeInstance, msg) {
3183
3231
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
3184
3232
  level: jspb.Message.getFieldWithDefault(msg, 7, 0),
3185
3233
  type: jspb.Message.getFieldWithDefault(msg, 8, ""),
3186
- checkingAt: jspb.Message.getFieldWithDefault(msg, 9, "")
3234
+ checkingAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
3235
+ bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 10, 0)
3187
3236
  };
3188
3237
 
3189
3238
  if (includeInstance) {
@@ -3252,6 +3301,10 @@ proto.cashback.CashbackItemRequest.deserializeBinaryFromReader = function(msg, r
3252
3301
  var value = /** @type {string} */ (reader.readString());
3253
3302
  msg.setCheckingAt(value);
3254
3303
  break;
3304
+ case 10:
3305
+ var value = /** @type {number} */ (reader.readInt32());
3306
+ msg.setBonusTemplateId(value);
3307
+ break;
3255
3308
  default:
3256
3309
  reader.skipField();
3257
3310
  break;
@@ -3337,6 +3390,13 @@ proto.cashback.CashbackItemRequest.serializeBinaryToWriter = function(message, w
3337
3390
  f
3338
3391
  );
3339
3392
  }
3393
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
3394
+ if (f != null) {
3395
+ writer.writeInt32(
3396
+ 10,
3397
+ f
3398
+ );
3399
+ }
3340
3400
  };
3341
3401
 
3342
3402
 
@@ -3628,6 +3688,42 @@ proto.cashback.CashbackItemRequest.prototype.hasCheckingAt = function() {
3628
3688
  };
3629
3689
 
3630
3690
 
3691
+ /**
3692
+ * optional int32 bonus_template_id = 10;
3693
+ * @return {number}
3694
+ */
3695
+ proto.cashback.CashbackItemRequest.prototype.getBonusTemplateId = function() {
3696
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
3697
+ };
3698
+
3699
+
3700
+ /**
3701
+ * @param {number} value
3702
+ * @return {!proto.cashback.CashbackItemRequest} returns this
3703
+ */
3704
+ proto.cashback.CashbackItemRequest.prototype.setBonusTemplateId = function(value) {
3705
+ return jspb.Message.setField(this, 10, value);
3706
+ };
3707
+
3708
+
3709
+ /**
3710
+ * Clears the field making it undefined.
3711
+ * @return {!proto.cashback.CashbackItemRequest} returns this
3712
+ */
3713
+ proto.cashback.CashbackItemRequest.prototype.clearBonusTemplateId = function() {
3714
+ return jspb.Message.setField(this, 10, undefined);
3715
+ };
3716
+
3717
+
3718
+ /**
3719
+ * Returns whether this field is set.
3720
+ * @return {boolean}
3721
+ */
3722
+ proto.cashback.CashbackItemRequest.prototype.hasBonusTemplateId = function() {
3723
+ return jspb.Message.getField(this, 10) != null;
3724
+ };
3725
+
3726
+
3631
3727
 
3632
3728
 
3633
3729
 
@@ -5395,7 +5491,8 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
5395
5491
  remainingToMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
5396
5492
  cashbackUserId: jspb.Message.getFieldWithDefault(msg, 18, 0),
5397
5493
  gamesList: jspb.Message.toObjectList(msg.getGamesList(),
5398
- proto.cashback.CashbackGamePreview.toObject, includeInstance)
5494
+ proto.cashback.CashbackGamePreview.toObject, includeInstance),
5495
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 20, 0)
5399
5496
  };
5400
5497
 
5401
5498
  if (includeInstance) {
@@ -5510,6 +5607,10 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
5510
5607
  reader.readMessage(value,proto.cashback.CashbackGamePreview.deserializeBinaryFromReader);
5511
5608
  msg.addGames(value);
5512
5609
  break;
5610
+ case 20:
5611
+ var value = /** @type {number} */ (reader.readInt32());
5612
+ msg.setUserBonusId(value);
5613
+ break;
5513
5614
  default:
5514
5615
  reader.skipField();
5515
5616
  break;
@@ -5674,6 +5775,13 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
5674
5775
  proto.cashback.CashbackGamePreview.serializeBinaryToWriter
5675
5776
  );
5676
5777
  }
5778
+ f = /** @type {number} */ (jspb.Message.getField(message, 20));
5779
+ if (f != null) {
5780
+ writer.writeInt32(
5781
+ 20,
5782
+ f
5783
+ );
5784
+ }
5677
5785
  };
5678
5786
 
5679
5787
 
@@ -6256,6 +6364,42 @@ proto.cashback.UserCashbackItem.prototype.clearGamesList = function() {
6256
6364
  };
6257
6365
 
6258
6366
 
6367
+ /**
6368
+ * optional int32 user_bonus_id = 20;
6369
+ * @return {number}
6370
+ */
6371
+ proto.cashback.UserCashbackItem.prototype.getUserBonusId = function() {
6372
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 20, 0));
6373
+ };
6374
+
6375
+
6376
+ /**
6377
+ * @param {number} value
6378
+ * @return {!proto.cashback.UserCashbackItem} returns this
6379
+ */
6380
+ proto.cashback.UserCashbackItem.prototype.setUserBonusId = function(value) {
6381
+ return jspb.Message.setField(this, 20, value);
6382
+ };
6383
+
6384
+
6385
+ /**
6386
+ * Clears the field making it undefined.
6387
+ * @return {!proto.cashback.UserCashbackItem} returns this
6388
+ */
6389
+ proto.cashback.UserCashbackItem.prototype.clearUserBonusId = function() {
6390
+ return jspb.Message.setField(this, 20, undefined);
6391
+ };
6392
+
6393
+
6394
+ /**
6395
+ * Returns whether this field is set.
6396
+ * @return {boolean}
6397
+ */
6398
+ proto.cashback.UserCashbackItem.prototype.hasUserBonusId = function() {
6399
+ return jspb.Message.getField(this, 20) != null;
6400
+ };
6401
+
6402
+
6259
6403
 
6260
6404
 
6261
6405
 
@@ -7186,7 +7330,8 @@ proto.cashback.ClaimCashbackResponse.prototype.toObject = function(opt_includeIn
7186
7330
  */
7187
7331
  proto.cashback.ClaimCashbackResponse.toObject = function(includeInstance, msg) {
7188
7332
  var f, obj = {
7189
- status: jspb.Message.getFieldWithDefault(msg, 1, "")
7333
+ status: jspb.Message.getFieldWithDefault(msg, 1, ""),
7334
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 2, 0)
7190
7335
  };
7191
7336
 
7192
7337
  if (includeInstance) {
@@ -7227,6 +7372,10 @@ proto.cashback.ClaimCashbackResponse.deserializeBinaryFromReader = function(msg,
7227
7372
  var value = /** @type {string} */ (reader.readString());
7228
7373
  msg.setStatus(value);
7229
7374
  break;
7375
+ case 2:
7376
+ var value = /** @type {number} */ (reader.readInt32());
7377
+ msg.setUserBonusId(value);
7378
+ break;
7230
7379
  default:
7231
7380
  reader.skipField();
7232
7381
  break;
@@ -7263,6 +7412,13 @@ proto.cashback.ClaimCashbackResponse.serializeBinaryToWriter = function(message,
7263
7412
  f
7264
7413
  );
7265
7414
  }
7415
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
7416
+ if (f != null) {
7417
+ writer.writeInt32(
7418
+ 2,
7419
+ f
7420
+ );
7421
+ }
7266
7422
  };
7267
7423
 
7268
7424
 
@@ -7284,6 +7440,42 @@ proto.cashback.ClaimCashbackResponse.prototype.setStatus = function(value) {
7284
7440
  };
7285
7441
 
7286
7442
 
7443
+ /**
7444
+ * optional int32 user_bonus_id = 2;
7445
+ * @return {number}
7446
+ */
7447
+ proto.cashback.ClaimCashbackResponse.prototype.getUserBonusId = function() {
7448
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7449
+ };
7450
+
7451
+
7452
+ /**
7453
+ * @param {number} value
7454
+ * @return {!proto.cashback.ClaimCashbackResponse} returns this
7455
+ */
7456
+ proto.cashback.ClaimCashbackResponse.prototype.setUserBonusId = function(value) {
7457
+ return jspb.Message.setField(this, 2, value);
7458
+ };
7459
+
7460
+
7461
+ /**
7462
+ * Clears the field making it undefined.
7463
+ * @return {!proto.cashback.ClaimCashbackResponse} returns this
7464
+ */
7465
+ proto.cashback.ClaimCashbackResponse.prototype.clearUserBonusId = function() {
7466
+ return jspb.Message.setField(this, 2, undefined);
7467
+ };
7468
+
7469
+
7470
+ /**
7471
+ * Returns whether this field is set.
7472
+ * @return {boolean}
7473
+ */
7474
+ proto.cashback.ClaimCashbackResponse.prototype.hasUserBonusId = function() {
7475
+ return jspb.Message.getField(this, 2) != null;
7476
+ };
7477
+
7478
+
7287
7479
 
7288
7480
 
7289
7481
 
package/game/game.proto CHANGED
@@ -104,6 +104,8 @@ service Game {
104
104
  rpc addGamesIntoWagerList(WagerListGamesRequest) returns (GameStatusResponse);
105
105
  rpc removeGamesFromWagerList(WagerListGamesRequest) returns (GameStatusResponse);
106
106
  rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
107
+ // Flat paginated games from multiple wager lists combined into one result set.
108
+ rpc fetchGamesFromWagerLists(FetchGamesFromWagerListsRequest) returns (GameItemsResponse);
107
109
  rpc notProcessedGamesInWagerList(PaginationRequest) returns (GameItemsResponse);
108
110
  rpc getPoorWagerLists(WagerSearchRequest) returns (WagerListItemsResponse);
109
111
  rpc updateWagerListsInBunch(ItemsBunchRequest) returns (GameStatusResponse);
@@ -917,6 +919,15 @@ message WagerListGamesRequest {
917
919
  int32 id = 1;
918
920
  repeated int32 game_ids = 2;
919
921
  }
922
+ // Combined wager-list games query; pagination applies to the merged result.
923
+ message FetchGamesFromWagerListsRequest {
924
+ repeated int32 wager_list_ids = 1; // All wager lists to search.
925
+ optional int32 limit = 2; // Maximum number of games returned.
926
+ optional int32 offset = 3; // Number of combined result rows to skip.
927
+ optional bool is_mobile = 4;
928
+ optional string geo = 5;
929
+ optional bool admin_side = 6;
930
+ }
920
931
  message WagerListItem {
921
932
  int32 id = 1;
922
933
  string title = 2;
@@ -246,6 +246,17 @@ function deserialize_game_DashboardResponse(buffer_arg) {
246
246
  return game_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
247
247
  }
248
248
 
249
+ function serialize_game_FetchGamesFromWagerListsRequest(arg) {
250
+ if (!(arg instanceof game_pb.FetchGamesFromWagerListsRequest)) {
251
+ throw new Error('Expected argument of type game.FetchGamesFromWagerListsRequest');
252
+ }
253
+ return Buffer.from(arg.serializeBinary());
254
+ }
255
+
256
+ function deserialize_game_FetchGamesFromWagerListsRequest(buffer_arg) {
257
+ return game_pb.FetchGamesFromWagerListsRequest.deserializeBinary(new Uint8Array(buffer_arg));
258
+ }
259
+
249
260
  function serialize_game_File(arg) {
250
261
  if (!(arg instanceof game_pb.File)) {
251
262
  throw new Error('Expected argument of type game.File');
@@ -2274,6 +2285,18 @@ readSingleWagerList: {
2274
2285
  responseSerialize: serialize_game_GameItemsResponse,
2275
2286
  responseDeserialize: deserialize_game_GameItemsResponse,
2276
2287
  },
2288
+ // Flat paginated games from multiple wager lists combined into one result set.
2289
+ fetchGamesFromWagerLists: {
2290
+ path: '/game.Game/fetchGamesFromWagerLists',
2291
+ requestStream: false,
2292
+ responseStream: false,
2293
+ requestType: game_pb.FetchGamesFromWagerListsRequest,
2294
+ responseType: game_pb.GameItemsResponse,
2295
+ requestSerialize: serialize_game_FetchGamesFromWagerListsRequest,
2296
+ requestDeserialize: deserialize_game_FetchGamesFromWagerListsRequest,
2297
+ responseSerialize: serialize_game_GameItemsResponse,
2298
+ responseDeserialize: deserialize_game_GameItemsResponse,
2299
+ },
2277
2300
  notProcessedGamesInWagerList: {
2278
2301
  path: '/game.Game/notProcessedGamesInWagerList',
2279
2302
  requestStream: false,