protobuf-platform 1.0.211 → 1.0.213

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
@@ -6,6 +6,8 @@ service Bet {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
7
  //User bets info
8
8
  rpc getBetsHistory(PaginationRequest) returns (BetsHistoryResponse);
9
+ //Dashboard
10
+ rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
9
11
  }
10
12
 
11
13
  message PingRequest { string ping = 1; }
@@ -16,6 +18,35 @@ message UserSearchRequest {
16
18
  optional string balance_type = 2;
17
19
  optional string currency = 3;
18
20
  }
21
+ message DashboardRequest {
22
+ string start_date = 1;
23
+ string end_date = 2;
24
+ }
25
+ message DashboardGameInfo {
26
+ string title = 1;
27
+ float calculated_value = 2;
28
+ optional string slug = 3;
29
+ optional string image = 4;
30
+ }
31
+ message DashboardResponse {
32
+ optional float min_bet_real = 1;
33
+ optional float min_bet_bonus = 2;
34
+ optional float average_bet_real = 3;
35
+ optional float average_bet_bonus = 4;
36
+ optional float max_win_real = 5;
37
+ optional float max_win_bonus = 6;
38
+ optional float average_win_real = 7;
39
+ optional float average_win_bonus = 8;
40
+ optional float turnover_real = 9;
41
+ optional float turnover_bonus = 10;
42
+ optional float ggr_total = 11;
43
+ optional float ggr_real = 12;
44
+ optional float ggr_bonus = 13;
45
+ repeated DashboardGameInfo top_games_count_bet_real = 14;
46
+ repeated DashboardGameInfo top_games_count_bet_bonus = 15;
47
+ repeated DashboardGameInfo top_games_sum_bet_real = 16;
48
+ repeated DashboardGameInfo top_games_sum_bet_bonus = 17;
49
+ }
19
50
  //User info
20
51
  message UserBetItem {
21
52
  int32 id = 1;
@@ -15,6 +15,28 @@ function deserialize_bet_BetsHistoryResponse(buffer_arg) {
15
15
  return bet_pb.BetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
16
  }
17
17
 
18
+ function serialize_bet_DashboardRequest(arg) {
19
+ if (!(arg instanceof bet_pb.DashboardRequest)) {
20
+ throw new Error('Expected argument of type bet.DashboardRequest');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_bet_DashboardRequest(buffer_arg) {
26
+ return bet_pb.DashboardRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_bet_DashboardResponse(arg) {
30
+ if (!(arg instanceof bet_pb.DashboardResponse)) {
31
+ throw new Error('Expected argument of type bet.DashboardResponse');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_bet_DashboardResponse(buffer_arg) {
37
+ return bet_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
18
40
  function serialize_bet_PaginationRequest(arg) {
19
41
  if (!(arg instanceof bet_pb.PaginationRequest)) {
20
42
  throw new Error('Expected argument of type bet.PaginationRequest');
@@ -73,6 +95,18 @@ getBetsHistory: {
73
95
  responseSerialize: serialize_bet_BetsHistoryResponse,
74
96
  responseDeserialize: deserialize_bet_BetsHistoryResponse,
75
97
  },
98
+ // Dashboard
99
+ getDashboardInfo: {
100
+ path: '/bet.Bet/getDashboardInfo',
101
+ requestStream: false,
102
+ responseStream: false,
103
+ requestType: bet_pb.DashboardRequest,
104
+ responseType: bet_pb.DashboardResponse,
105
+ requestSerialize: serialize_bet_DashboardRequest,
106
+ requestDeserialize: deserialize_bet_DashboardRequest,
107
+ responseSerialize: serialize_bet_DashboardResponse,
108
+ responseDeserialize: deserialize_bet_DashboardResponse,
109
+ },
76
110
  };
77
111
 
78
112
  exports.BetClient = grpc.makeGenericClientConstructor(BetService);