protobuf-platform 1.2.191 → 1.2.193

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
@@ -101,6 +101,7 @@ service Game {
101
101
  rpc addGamesIntoCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
102
102
  rpc removeGamesFromCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
103
103
  rpc fetchGamesFromCashBackList(PaginationRequest) returns (GameItemsResponse);
104
+ rpc fetchGamesFromCashBackLists(CashBackListsGamesRequest) returns (CashBackListsGamesResponse);
104
105
  rpc notProcessedGamesInCashBackList(PaginationRequest) returns (GameItemsResponse);
105
106
  rpc updateCashBackListInBunch(ItemsBunchRequest) returns (GameStatusResponse);
106
107
  //Dashboard
@@ -701,6 +702,24 @@ message CashBackListItemsResponse {
701
702
  optional int32 total_pages = 2;
702
703
  optional int32 total_items = 3;
703
704
  }
705
+ message CashBackListsGamesRequest {
706
+ repeated int32 cashback_list_ids = 1;
707
+ optional int32 limit = 2;
708
+ optional int32 offset = 3;
709
+ }
710
+ message CashbackGamePreview {
711
+ string game_slug = 1;
712
+ string provider_slug = 2;
713
+ string image = 3;
714
+ optional int32 game_id = 4;
715
+ }
716
+ message CashBackListGamesItem {
717
+ int32 cashback_list_id = 1;
718
+ repeated CashbackGamePreview games = 2;
719
+ }
720
+ message CashBackListsGamesResponse {
721
+ repeated CashBackListGamesItem items = 1;
722
+ }
704
723
  //Dashboard
705
724
  message DashboardRequest {
706
725
  string start_date = 1;
@@ -48,6 +48,28 @@ function deserialize_game_CashBackListResponse(buffer_arg) {
48
48
  return game_pb.CashBackListResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
49
  }
50
50
 
51
+ function serialize_game_CashBackListsGamesRequest(arg) {
52
+ if (!(arg instanceof game_pb.CashBackListsGamesRequest)) {
53
+ throw new Error('Expected argument of type game.CashBackListsGamesRequest');
54
+ }
55
+ return Buffer.from(arg.serializeBinary());
56
+ }
57
+
58
+ function deserialize_game_CashBackListsGamesRequest(buffer_arg) {
59
+ return game_pb.CashBackListsGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
60
+ }
61
+
62
+ function serialize_game_CashBackListsGamesResponse(arg) {
63
+ if (!(arg instanceof game_pb.CashBackListsGamesResponse)) {
64
+ throw new Error('Expected argument of type game.CashBackListsGamesResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_game_CashBackListsGamesResponse(buffer_arg) {
70
+ return game_pb.CashBackListsGamesResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
51
73
  function serialize_game_CategoryItemsResponse(arg) {
52
74
  if (!(arg instanceof game_pb.CategoryItemsResponse)) {
53
75
  throw new Error('Expected argument of type game.CategoryItemsResponse');
@@ -1932,6 +1954,17 @@ readSingleCashBackList: {
1932
1954
  responseSerialize: serialize_game_GameItemsResponse,
1933
1955
  responseDeserialize: deserialize_game_GameItemsResponse,
1934
1956
  },
1957
+ fetchGamesFromCashBackLists: {
1958
+ path: '/game.Game/fetchGamesFromCashBackLists',
1959
+ requestStream: false,
1960
+ responseStream: false,
1961
+ requestType: game_pb.CashBackListsGamesRequest,
1962
+ responseType: game_pb.CashBackListsGamesResponse,
1963
+ requestSerialize: serialize_game_CashBackListsGamesRequest,
1964
+ requestDeserialize: deserialize_game_CashBackListsGamesRequest,
1965
+ responseSerialize: serialize_game_CashBackListsGamesResponse,
1966
+ responseDeserialize: deserialize_game_CashBackListsGamesResponse,
1967
+ },
1935
1968
  notProcessedGamesInCashBackList: {
1936
1969
  path: '/game.Game/notProcessedGamesInCashBackList',
1937
1970
  requestStream: false,