protobuf-platform 1.0.252 → 1.0.254
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/analytic/analytic.proto +34 -2
- package/analytic/analytic_grpc_pb.js +34 -0
- package/analytic/analytic_pb.js +1452 -14
- package/package.json +1 -1
package/analytic/analytic.proto
CHANGED
@@ -4,6 +4,8 @@ package analytic;
|
|
4
4
|
|
5
5
|
service Analytic {
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
7
|
+
//Global
|
8
|
+
rpc getGlobalCasinoStats(PaginationRequest) returns (GlobalCasinoResponse);
|
7
9
|
}
|
8
10
|
//Technical
|
9
11
|
message PingRequest { string ping = 1; }
|
@@ -11,6 +13,36 @@ message PongResponse { string pong = 1; }
|
|
11
13
|
//Common
|
12
14
|
message PaginationRequest { int32 limit = 1; int32 offset = 2; optional GlobalSearchRequest global_search_params = 3; }
|
13
15
|
message GlobalSearchRequest {
|
14
|
-
optional string
|
15
|
-
optional string
|
16
|
+
optional string started_at = 1;
|
17
|
+
optional string ended_at = 2;
|
18
|
+
optional string period = 3;
|
19
|
+
}
|
20
|
+
//Global
|
21
|
+
message GlobalCasinoItem {
|
22
|
+
string date = 1;
|
23
|
+
optional int32 registrations = 2;
|
24
|
+
optional int32 active_users = 3;
|
25
|
+
optional int32 total_ftd_count = 4;
|
26
|
+
optional float total_ftd_sum = 5;
|
27
|
+
optional float total_ftd_avg = 6;
|
28
|
+
optional int32 redep_count = 7;
|
29
|
+
optional float redep_sum = 8;
|
30
|
+
optional float redep_avg = 9;
|
31
|
+
optional int32 total_dep_count = 10;
|
32
|
+
optional float total_dep_sum = 11;
|
33
|
+
optional float total_dep_agv = 12;
|
34
|
+
optional float total_turnover = 13;
|
35
|
+
optional float total_ggr = 14;
|
36
|
+
optional float real_turnover = 15;
|
37
|
+
optional float real_ggr = 16;
|
38
|
+
optional float bonus_turnover = 17;
|
39
|
+
optional float bonus_ggr = 18;
|
40
|
+
optional float in_out_sum = 19;
|
41
|
+
optional float in_out_percentages = 20;
|
42
|
+
optional float dep_to_active_player = 21;
|
43
|
+
}
|
44
|
+
message GlobalCasinoResponse {
|
45
|
+
repeated GlobalCasinoItem items = 1;
|
46
|
+
optional int32 total_pages = 2;
|
47
|
+
optional int32 total_items = 3;
|
16
48
|
}
|
@@ -4,6 +4,28 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var analytic_pb = require('./analytic_pb.js');
|
6
6
|
|
7
|
+
function serialize_analytic_GlobalCasinoResponse(arg) {
|
8
|
+
if (!(arg instanceof analytic_pb.GlobalCasinoResponse)) {
|
9
|
+
throw new Error('Expected argument of type analytic.GlobalCasinoResponse');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_analytic_GlobalCasinoResponse(buffer_arg) {
|
15
|
+
return analytic_pb.GlobalCasinoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_analytic_PaginationRequest(arg) {
|
19
|
+
if (!(arg instanceof analytic_pb.PaginationRequest)) {
|
20
|
+
throw new Error('Expected argument of type analytic.PaginationRequest');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_analytic_PaginationRequest(buffer_arg) {
|
26
|
+
return analytic_pb.PaginationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
7
29
|
function serialize_analytic_PingRequest(arg) {
|
8
30
|
if (!(arg instanceof analytic_pb.PingRequest)) {
|
9
31
|
throw new Error('Expected argument of type analytic.PingRequest');
|
@@ -39,6 +61,18 @@ var AnalyticService = exports.AnalyticService = {
|
|
39
61
|
responseSerialize: serialize_analytic_PongResponse,
|
40
62
|
responseDeserialize: deserialize_analytic_PongResponse,
|
41
63
|
},
|
64
|
+
// Global
|
65
|
+
getGlobalCasinoStats: {
|
66
|
+
path: '/analytic.Analytic/getGlobalCasinoStats',
|
67
|
+
requestStream: false,
|
68
|
+
responseStream: false,
|
69
|
+
requestType: analytic_pb.PaginationRequest,
|
70
|
+
responseType: analytic_pb.GlobalCasinoResponse,
|
71
|
+
requestSerialize: serialize_analytic_PaginationRequest,
|
72
|
+
requestDeserialize: deserialize_analytic_PaginationRequest,
|
73
|
+
responseSerialize: serialize_analytic_GlobalCasinoResponse,
|
74
|
+
responseDeserialize: deserialize_analytic_GlobalCasinoResponse,
|
75
|
+
},
|
42
76
|
};
|
43
77
|
|
44
78
|
exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService);
|