protobuf-platform 1.0.210 → 1.0.212
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 +25 -0
- package/bet/bet_grpc_pb.js +34 -0
- package/bet/bet_pb.js +1131 -0
- package/package.json +1 -1
- package/user/user.proto +24 -0
- package/user/user_grpc_pb.js +57 -0
- package/user/user_pb.js +908 -0
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,29 @@ 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 DashboardResponse {
|
26
|
+
optional float min_bet_real = 1;
|
27
|
+
optional float min_bet_bonus = 2;
|
28
|
+
optional float average_bet_real = 3;
|
29
|
+
optional float average_bet_bonus = 4;
|
30
|
+
optional float max_win_real = 5;
|
31
|
+
optional float max_win_bonus = 6;
|
32
|
+
optional float average_win_real = 7;
|
33
|
+
optional float average_win_bonus = 8;
|
34
|
+
optional float turnover_real = 9;
|
35
|
+
optional float turnover_bonus = 10;
|
36
|
+
optional float ggr_total = 11;
|
37
|
+
optional float ggr_real = 12;
|
38
|
+
optional float ggr_bonus = 13;
|
39
|
+
repeated string top_games_uuid_count_bet_real = 14;
|
40
|
+
repeated string top_games_uuid_count_bet_bonus = 15;
|
41
|
+
repeated string top_games_uuid_sum_bet_real = 16;
|
42
|
+
repeated string top_games_uuid_sum_bet_bonus = 17;
|
43
|
+
}
|
19
44
|
//User info
|
20
45
|
message UserBetItem {
|
21
46
|
int32 id = 1;
|
package/bet/bet_grpc_pb.js
CHANGED
@@ -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);
|