protobuf-platform 1.2.583 → 1.2.586

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/game/game.proto CHANGED
@@ -106,6 +106,8 @@ service Game {
106
106
  rpc resolveGameUuidsForBetHistoryFilter(ResolveGameUuidsForBetHistoryFilterRequest) returns (ResolveGameUuidsForBetHistoryFilterResponse);
107
107
  /** Lightweight batch read for Category → Collections hierarchy enrichment. */
108
108
  rpc getCategoryHierarchyByIds(CategoryHierarchyRequest) returns (CategoryHierarchyResponse);
109
+ rpc getProviderCatalogBatch(CatalogCursorRequest) returns (ProviderCatalogBatchResponse);
110
+ rpc getGameCatalogBatch(CatalogCursorRequest) returns (GameCatalogBatchResponse);
109
111
  //Wager lists
110
112
  rpc readSingleWagerList(GetWagerListRequest) returns (WagerListResponse);
111
113
  rpc createSingleWagerList(WagerListRequest) returns (WagerListResponse);
@@ -913,6 +915,42 @@ message ProvidersSlugs {
913
915
  message ProviderPoorItemsResponse {
914
916
  repeated ProviderItem items = 1;
915
917
  }
918
+ // absent/zero after_id: start from beginning; id > after_id ORDER BY id ASC LIMIT N
919
+ message CatalogCursorRequest {
920
+ optional int32 after_id = 1;
921
+ optional int32 limit = 2;
922
+ }
923
+ message ProviderCatalogBatchItem {
924
+ int32 id = 1;
925
+ string title = 2;
926
+ string slug = 3;
927
+ bool is_active = 4;
928
+ bool is_deactivated = 5;
929
+ }
930
+ message ProviderCatalogBatchResponse {
931
+ repeated ProviderCatalogBatchItem items = 1;
932
+ optional int32 next_after_id = 2;
933
+ bool has_more = 3;
934
+ }
935
+ message GameCatalogBatchItem {
936
+ int32 id = 1;
937
+ string uuid = 2;
938
+ int32 provider_id = 3;
939
+ string title = 4;
940
+ string slug = 5;
941
+ bool is_active = 6;
942
+ bool is_deactivated = 7;
943
+ bool is_hidden = 8;
944
+ optional string type = 9;
945
+ optional bool is_mobile = 10;
946
+ optional bool has_demo = 11;
947
+ optional bool has_freespins = 12;
948
+ }
949
+ message GameCatalogBatchResponse {
950
+ repeated GameCatalogBatchItem items = 1;
951
+ optional int32 next_after_id = 2;
952
+ bool has_more = 3;
953
+ }
916
954
  message ResolveGameUuidsForBetHistoryFilterRequest {
917
955
  optional int32 game_id = 1;
918
956
  optional string game_title = 2; // Trimmed substring match.
@@ -92,6 +92,17 @@ function deserialize_game_CashBackTypesGamesResponse(buffer_arg) {
92
92
  return game_pb.CashBackTypesGamesResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
93
  }
94
94
 
95
+ function serialize_game_CatalogCursorRequest(arg) {
96
+ if (!(arg instanceof game_pb.CatalogCursorRequest)) {
97
+ throw new Error('Expected argument of type game.CatalogCursorRequest');
98
+ }
99
+ return Buffer.from(arg.serializeBinary());
100
+ }
101
+
102
+ function deserialize_game_CatalogCursorRequest(buffer_arg) {
103
+ return game_pb.CatalogCursorRequest.deserializeBinary(new Uint8Array(buffer_arg));
104
+ }
105
+
95
106
  function serialize_game_CategoryHierarchyRequest(arg) {
96
107
  if (!(arg instanceof game_pb.CategoryHierarchyRequest)) {
97
108
  throw new Error('Expected argument of type game.CategoryHierarchyRequest');
@@ -356,6 +367,17 @@ function deserialize_game_FreeSpinStatusRequest(buffer_arg) {
356
367
  return game_pb.FreeSpinStatusRequest.deserializeBinary(new Uint8Array(buffer_arg));
357
368
  }
358
369
 
370
+ function serialize_game_GameCatalogBatchResponse(arg) {
371
+ if (!(arg instanceof game_pb.GameCatalogBatchResponse)) {
372
+ throw new Error('Expected argument of type game.GameCatalogBatchResponse');
373
+ }
374
+ return Buffer.from(arg.serializeBinary());
375
+ }
376
+
377
+ function deserialize_game_GameCatalogBatchResponse(buffer_arg) {
378
+ return game_pb.GameCatalogBatchResponse.deserializeBinary(new Uint8Array(buffer_arg));
379
+ }
380
+
359
381
  function serialize_game_GameConfigCheckResponse(arg) {
360
382
  if (!(arg instanceof game_pb.GameConfigCheckResponse)) {
361
383
  throw new Error('Expected argument of type game.GameConfigCheckResponse');
@@ -917,6 +939,17 @@ function deserialize_game_PongResponse(buffer_arg) {
917
939
  return game_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
918
940
  }
919
941
 
942
+ function serialize_game_ProviderCatalogBatchResponse(arg) {
943
+ if (!(arg instanceof game_pb.ProviderCatalogBatchResponse)) {
944
+ throw new Error('Expected argument of type game.ProviderCatalogBatchResponse');
945
+ }
946
+ return Buffer.from(arg.serializeBinary());
947
+ }
948
+
949
+ function deserialize_game_ProviderCatalogBatchResponse(buffer_arg) {
950
+ return game_pb.ProviderCatalogBatchResponse.deserializeBinary(new Uint8Array(buffer_arg));
951
+ }
952
+
920
953
  function serialize_game_ProviderItemsResponse(arg) {
921
954
  if (!(arg instanceof game_pb.ProviderItemsResponse)) {
922
955
  throw new Error('Expected argument of type game.ProviderItemsResponse');
@@ -2373,6 +2406,28 @@ getCategoryHierarchyByIds: {
2373
2406
  responseSerialize: serialize_game_CategoryHierarchyResponse,
2374
2407
  responseDeserialize: deserialize_game_CategoryHierarchyResponse,
2375
2408
  },
2409
+ getProviderCatalogBatch: {
2410
+ path: '/game.Game/getProviderCatalogBatch',
2411
+ requestStream: false,
2412
+ responseStream: false,
2413
+ requestType: game_pb.CatalogCursorRequest,
2414
+ responseType: game_pb.ProviderCatalogBatchResponse,
2415
+ requestSerialize: serialize_game_CatalogCursorRequest,
2416
+ requestDeserialize: deserialize_game_CatalogCursorRequest,
2417
+ responseSerialize: serialize_game_ProviderCatalogBatchResponse,
2418
+ responseDeserialize: deserialize_game_ProviderCatalogBatchResponse,
2419
+ },
2420
+ getGameCatalogBatch: {
2421
+ path: '/game.Game/getGameCatalogBatch',
2422
+ requestStream: false,
2423
+ responseStream: false,
2424
+ requestType: game_pb.CatalogCursorRequest,
2425
+ responseType: game_pb.GameCatalogBatchResponse,
2426
+ requestSerialize: serialize_game_CatalogCursorRequest,
2427
+ requestDeserialize: deserialize_game_CatalogCursorRequest,
2428
+ responseSerialize: serialize_game_GameCatalogBatchResponse,
2429
+ responseDeserialize: deserialize_game_GameCatalogBatchResponse,
2430
+ },
2376
2431
  // Wager lists
2377
2432
  readSingleWagerList: {
2378
2433
  path: '/game.Game/readSingleWagerList',