protobuf-platform 1.2.246 → 1.2.248

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
@@ -64,6 +64,8 @@ service Game {
64
64
  rpc addGamesIntoTournament(TournamentGamesRequest) returns (GameStatusResponse);
65
65
  rpc removeGamesFromTournament(TournamentGamesRequest) returns (GameStatusResponse);
66
66
  rpc fetchGamesFromTournament(PaginationRequest) returns (GameItemsResponse);
67
+ rpc getTournamentGamesPreviewByTournamentIds(TournamentIdsRequest) returns (TournamentGamesPreviewResponse);
68
+ rpc getTournamentGames(PaginationRequest) returns (GameItemsResponse);
67
69
  rpc syncGamesImages(SyncImagesRequest) returns (GameStatusResponse);
68
70
  rpc searchGames(PaginationRequest) returns (SearchGamesResponse);
69
71
  //Vendor
@@ -131,6 +133,7 @@ message PaginationRequest {
131
133
  optional CategorySearchRequest category_search_params = 10;
132
134
  optional CollectionSearchRequest collection_search_params = 11;
133
135
  optional TagSearchRequest tag_search_params = 12;
136
+ optional TournamentGamesSearchRequest tournament_games_search_params = 13;
134
137
  }
135
138
  message GameSearchRequest {
136
139
  optional int32 is_active = 1;
@@ -169,6 +172,29 @@ message TournamentSearchRequest {
169
172
  optional string game_title = 2;
170
173
  repeated int32 ids = 4;
171
174
  }
175
+ message TournamentGamesSearchRequest {
176
+ optional int32 tournament_id = 1;
177
+ optional string game_title = 2;
178
+ optional string geo = 3;
179
+ optional int32 is_mobile = 4;
180
+ optional string target_host = 5;
181
+ optional bool admin_side = 6;
182
+ }
183
+ message TournamentIdsRequest {
184
+ repeated int32 tournament_ids = 1;
185
+ optional string geo = 2;
186
+ optional int32 is_mobile = 3;
187
+ optional string target_host = 4;
188
+ optional bool admin_side = 5;
189
+ }
190
+ message TournamentGamesPreviewResponse {
191
+ repeated TournamentGamesPreviewItem items = 1;
192
+ }
193
+ message TournamentGamesPreviewItem {
194
+ optional int32 tournament_id = 1;
195
+ repeated GameItem items = 2;
196
+ optional int32 total = 3;
197
+ }
172
198
  message ProviderSearchRequest {
173
199
  optional string provider_title = 1;
174
200
  optional int32 is_active = 2;
@@ -961,6 +961,17 @@ function deserialize_game_TagStatusResponse(buffer_arg) {
961
961
  return game_pb.TagStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
962
962
  }
963
963
 
964
+ function serialize_game_TournamentGamesPreviewResponse(arg) {
965
+ if (!(arg instanceof game_pb.TournamentGamesPreviewResponse)) {
966
+ throw new Error('Expected argument of type game.TournamentGamesPreviewResponse');
967
+ }
968
+ return Buffer.from(arg.serializeBinary());
969
+ }
970
+
971
+ function deserialize_game_TournamentGamesPreviewResponse(buffer_arg) {
972
+ return game_pb.TournamentGamesPreviewResponse.deserializeBinary(new Uint8Array(buffer_arg));
973
+ }
974
+
964
975
  function serialize_game_TournamentGamesRequest(arg) {
965
976
  if (!(arg instanceof game_pb.TournamentGamesRequest)) {
966
977
  throw new Error('Expected argument of type game.TournamentGamesRequest');
@@ -972,6 +983,17 @@ function deserialize_game_TournamentGamesRequest(buffer_arg) {
972
983
  return game_pb.TournamentGamesRequest.deserializeBinary(new Uint8Array(buffer_arg));
973
984
  }
974
985
 
986
+ function serialize_game_TournamentIdsRequest(arg) {
987
+ if (!(arg instanceof game_pb.TournamentIdsRequest)) {
988
+ throw new Error('Expected argument of type game.TournamentIdsRequest');
989
+ }
990
+ return Buffer.from(arg.serializeBinary());
991
+ }
992
+
993
+ function deserialize_game_TournamentIdsRequest(buffer_arg) {
994
+ return game_pb.TournamentIdsRequest.deserializeBinary(new Uint8Array(buffer_arg));
995
+ }
996
+
975
997
  function serialize_game_VendorActionRequest(arg) {
976
998
  if (!(arg instanceof game_pb.VendorActionRequest)) {
977
999
  throw new Error('Expected argument of type game.VendorActionRequest');
@@ -1652,6 +1674,28 @@ parseGames: {
1652
1674
  responseSerialize: serialize_game_GameItemsResponse,
1653
1675
  responseDeserialize: deserialize_game_GameItemsResponse,
1654
1676
  },
1677
+ getTournamentGamesPreviewByTournamentIds: {
1678
+ path: '/game.Game/getTournamentGamesPreviewByTournamentIds',
1679
+ requestStream: false,
1680
+ responseStream: false,
1681
+ requestType: game_pb.TournamentIdsRequest,
1682
+ responseType: game_pb.TournamentGamesPreviewResponse,
1683
+ requestSerialize: serialize_game_TournamentIdsRequest,
1684
+ requestDeserialize: deserialize_game_TournamentIdsRequest,
1685
+ responseSerialize: serialize_game_TournamentGamesPreviewResponse,
1686
+ responseDeserialize: deserialize_game_TournamentGamesPreviewResponse,
1687
+ },
1688
+ getTournamentGames: {
1689
+ path: '/game.Game/getTournamentGames',
1690
+ requestStream: false,
1691
+ responseStream: false,
1692
+ requestType: game_pb.PaginationRequest,
1693
+ responseType: game_pb.GameItemsResponse,
1694
+ requestSerialize: serialize_game_PaginationRequest,
1695
+ requestDeserialize: deserialize_game_PaginationRequest,
1696
+ responseSerialize: serialize_game_GameItemsResponse,
1697
+ responseDeserialize: deserialize_game_GameItemsResponse,
1698
+ },
1655
1699
  syncGamesImages: {
1656
1700
  path: '/game.Game/syncGamesImages',
1657
1701
  requestStream: false,