protobuf-platform 1.2.143 → 1.2.146

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/bet/bet.proto CHANGED
@@ -4,20 +4,31 @@ package bet;
4
4
 
5
5
  service Bet {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
- //User bets info
7
+
8
+ // User bets info
9
+ // Deprecated alias for backward compatibility (use getGameBetsHistory).
8
10
  rpc getBetsHistory(PaginationRequest) returns (BetsHistoryResponse);
9
- //Dashboard
11
+
12
+ // Game bets history (replacement for getBetsHistory).
13
+ rpc getGameBetsHistory(PaginationRequest) returns (BetsHistoryResponse);
14
+
15
+ // Sport bets history.
16
+ rpc getSportBetsHistory(PaginationRequest) returns (SportBetsHistoryResponse);
17
+
18
+ // Dashboard
10
19
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
11
- //Segmentation
20
+
21
+ // Segmentation
12
22
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
13
- //Sports
14
- //Axiom
23
+
24
+ // Sports (Axiom)
15
25
  rpc axiomGetAuthHash(AxiomGetHashRequest) returns (AxiomAuthHashResponse);
16
26
  rpc axiomCheckSession(AxiomCheckSessionRequest) returns (AxiomCheckSessionResponse);
17
27
  rpc axiomGetBets(AxiomGetBetsRequest) returns (AxiomBetsResponse);
18
28
  rpc axiomCreateBet(AxiomCreateBetRequest) returns (AxiomBetStatusResponse);
19
29
  rpc axiomProcessBet(AxiomProcessBetRequest) returns (AxiomBetStatusResponse);
20
- //Games aggregation
30
+
31
+ // Games aggregation
21
32
  rpc getWinRates(PaginationRequest) returns (WinRatesResponse);
22
33
  rpc getLastWins(PaginationRequest) returns (WinRatesResponse);
23
34
  }
@@ -168,4 +179,35 @@ message WinRatesResponse {
168
179
  repeated WinRateItem items = 1;
169
180
  optional int32 total_pages = 2;
170
181
  optional int32 total_items = 3;
171
- }
182
+ }
183
+ // Sport event human-readable info (cached/stored in bet-service DB).
184
+ message SportEventInfo {
185
+ string event_id = 1;
186
+ string name = 2;
187
+ string sport = 3;
188
+ string category = 4;
189
+ }
190
+
191
+ // Sport outcome human-readable info (single selection inside betslip).
192
+ message SportOutcomeItem {
193
+ string market = 1;
194
+ string status = 2;
195
+ float odds = 3;
196
+ optional SportEventInfo event = 4;
197
+ }
198
+ // Sport bet history item for list views (no nested selections/events).
199
+ message SportBetListItem {
200
+ int32 id = 1;
201
+ string action = 2;
202
+ string balance_type = 3;
203
+ float amount = 4;
204
+ string currency = 5;
205
+ optional string created = 6;
206
+ //repeated SportOutcomeItem outcomes = 7;
207
+ }
208
+
209
+ message SportBetsHistoryResponse {
210
+ repeated SportBetListItem items = 1;
211
+ optional int32 total_pages = 2;
212
+ optional int32 total_items = 3;
213
+ }
@@ -191,6 +191,17 @@ function deserialize_bet_SegmentedUserResponse(buffer_arg) {
191
191
  return bet_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
192
192
  }
193
193
 
194
+ function serialize_bet_SportBetsHistoryResponse(arg) {
195
+ if (!(arg instanceof bet_pb.SportBetsHistoryResponse)) {
196
+ throw new Error('Expected argument of type bet.SportBetsHistoryResponse');
197
+ }
198
+ return Buffer.from(arg.serializeBinary());
199
+ }
200
+
201
+ function deserialize_bet_SportBetsHistoryResponse(buffer_arg) {
202
+ return bet_pb.SportBetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
203
+ }
204
+
194
205
  function serialize_bet_WinRatesResponse(arg) {
195
206
  if (!(arg instanceof bet_pb.WinRatesResponse)) {
196
207
  throw new Error('Expected argument of type bet.WinRatesResponse');
@@ -216,6 +227,7 @@ var BetService = exports.BetService = {
216
227
  responseDeserialize: deserialize_bet_PongResponse,
217
228
  },
218
229
  // User bets info
230
+ // Deprecated alias for backward compatibility (use getGameBetsHistory).
219
231
  getBetsHistory: {
220
232
  path: '/bet.Bet/getBetsHistory',
221
233
  requestStream: false,
@@ -227,6 +239,30 @@ getBetsHistory: {
227
239
  responseSerialize: serialize_bet_BetsHistoryResponse,
228
240
  responseDeserialize: deserialize_bet_BetsHistoryResponse,
229
241
  },
242
+ // Game bets history (replacement for getBetsHistory).
243
+ getGameBetsHistory: {
244
+ path: '/bet.Bet/getGameBetsHistory',
245
+ requestStream: false,
246
+ responseStream: false,
247
+ requestType: bet_pb.PaginationRequest,
248
+ responseType: bet_pb.BetsHistoryResponse,
249
+ requestSerialize: serialize_bet_PaginationRequest,
250
+ requestDeserialize: deserialize_bet_PaginationRequest,
251
+ responseSerialize: serialize_bet_BetsHistoryResponse,
252
+ responseDeserialize: deserialize_bet_BetsHistoryResponse,
253
+ },
254
+ // Sport bets history.
255
+ getSportBetsHistory: {
256
+ path: '/bet.Bet/getSportBetsHistory',
257
+ requestStream: false,
258
+ responseStream: false,
259
+ requestType: bet_pb.PaginationRequest,
260
+ responseType: bet_pb.SportBetsHistoryResponse,
261
+ requestSerialize: serialize_bet_PaginationRequest,
262
+ requestDeserialize: deserialize_bet_PaginationRequest,
263
+ responseSerialize: serialize_bet_SportBetsHistoryResponse,
264
+ responseDeserialize: deserialize_bet_SportBetsHistoryResponse,
265
+ },
230
266
  // Dashboard
231
267
  getDashboardInfo: {
232
268
  path: '/bet.Bet/getDashboardInfo',
@@ -251,8 +287,7 @@ getSegmentedUsers: {
251
287
  responseSerialize: serialize_bet_SegmentedUserResponse,
252
288
  responseDeserialize: deserialize_bet_SegmentedUserResponse,
253
289
  },
254
- // Sports
255
- // Axiom
290
+ // Sports (Axiom)
256
291
  axiomGetAuthHash: {
257
292
  path: '/bet.Bet/axiomGetAuthHash',
258
293
  requestStream: false,