protobuf-platform 1.2.131 → 1.2.134

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.
@@ -11,26 +11,37 @@ service Analytic {
11
11
  rpc getDepositsStats(PaginationRequest) returns (DepositsResponse);
12
12
  //Games
13
13
  rpc getGamesStats(PaginationRequest) returns (GamesResponse);
14
+ //Sports
15
+ rpc getSportsStats(PaginationRequest) returns (SportsResponse);
14
16
  //Dashboard
15
17
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
16
18
  //Segmentation
17
19
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
18
20
  }
21
+
19
22
  //Technical
20
23
  message PingRequest { string ping = 1; }
21
24
  message PongResponse { string pong = 1; }
25
+
22
26
  //Common
23
- message PaginationRequest { int32 limit = 1; int32 offset = 2; optional GlobalSearchRequest global_search_params = 3; }
27
+ message PaginationRequest {
28
+ int32 limit = 1;
29
+ int32 offset = 2;
30
+ optional GlobalSearchRequest global_search_params = 3;
31
+ }
32
+
24
33
  message GlobalSearchRequest {
25
34
  optional string start_date = 1;
26
35
  optional string end_date = 2;
27
36
  optional string period = 3;
28
37
  optional string type = 4;
29
38
  }
39
+
30
40
  message DashboardRequest {
31
41
  string start_date = 1;
32
42
  string end_date = 2;
33
43
  }
44
+
34
45
  //Dashboard
35
46
  message DashboardResponse {
36
47
  optional int32 active_users_count = 1;
@@ -46,6 +57,7 @@ message DashboardResponse {
46
57
  optional float dep_sum = 11;
47
58
  optional float dep_avg = 12;
48
59
  }
60
+
49
61
  //Global
50
62
  message GlobalCasinoItem {
51
63
  string date = 1;
@@ -70,11 +82,13 @@ message GlobalCasinoItem {
70
82
  optional float in_out_percentages = 20;
71
83
  optional float dep_to_active_player = 21;
72
84
  }
85
+
73
86
  message GlobalCasinoResponse {
74
87
  repeated GlobalCasinoItem items = 1;
75
88
  optional int32 total_pages = 2;
76
89
  optional int32 total_items = 3;
77
90
  }
91
+
78
92
  //Payment
79
93
  message PaymentItem {
80
94
  string date = 1;
@@ -88,11 +102,13 @@ message PaymentItem {
88
102
  optional float success_to_failure = 9;
89
103
  optional int32 total_processed_count = 10;
90
104
  }
105
+
91
106
  message PaymentProvidersResponse {
92
107
  repeated PaymentItem items = 1;
93
108
  optional int32 total_pages = 2;
94
109
  optional int32 total_items = 3;
95
110
  }
111
+
96
112
  //Deposits
97
113
  message DepositItem {
98
114
  string date = 1;
@@ -111,11 +127,13 @@ message DepositItem {
111
127
  optional float conversion_rate = 14;
112
128
  optional float finish_rate = 15;
113
129
  }
130
+
114
131
  message DepositsResponse {
115
132
  repeated DepositItem items = 1;
116
133
  optional int32 total_pages = 2;
117
134
  optional int32 total_items = 3;
118
135
  }
136
+
119
137
  //Games
120
138
  message GameItem {
121
139
  optional string date = 1;
@@ -141,15 +159,51 @@ message GameItem {
141
159
  optional string game_image = 21;
142
160
  optional string provider_image = 22;
143
161
  }
162
+
144
163
  message GameItemWrapper {
145
164
  string date = 1;
146
165
  repeated GameItem items = 2;
147
166
  }
167
+
148
168
  message GamesResponse {
149
169
  repeated GameItemWrapper items = 1;
150
170
  optional int32 total_pages = 2;
151
171
  optional int32 total_items = 3;
152
172
  }
173
+
174
+ //Sports
175
+ message SportItem {
176
+ optional string date = 1;
177
+ optional string category_title = 2;
178
+ optional string type_title = 3;
179
+ optional int32 users_count = 4;
180
+ optional int32 bet_count_real = 5;
181
+ optional float bet_sum_real = 6;
182
+ optional int32 bet_count_bonus = 7;
183
+ optional float bet_sum_bonus = 8;
184
+ optional int32 win_count_real = 9;
185
+ optional float win_sum_real = 10;
186
+ optional int32 win_count_bonus = 11;
187
+ optional float win_sum_bonus = 12;
188
+ optional float turnover_bonus = 13;
189
+ optional float turnover_real = 14;
190
+ optional float turnover_total = 15;
191
+ optional float ggr_bonus = 16;
192
+ optional float ggr_real = 17;
193
+ optional float ggr_total = 18;
194
+ }
195
+
196
+ message SportItemWrapper {
197
+ string date = 1;
198
+ repeated SportItem items = 2;
199
+ }
200
+
201
+ message SportsResponse {
202
+ repeated SportItemWrapper items = 1;
203
+ optional int32 total_pages = 2;
204
+ optional int32 total_items = 3;
205
+ }
206
+
153
207
  //Segmentation
154
208
  message SegmentedUserRequest {
155
209
  optional float session_minutes_min = 1;
@@ -157,6 +211,7 @@ message SegmentedUserRequest {
157
211
  optional int32 session_count_min = 3;
158
212
  optional int32 session_count_max = 4;
159
213
  }
214
+
160
215
  message SegmentedUserResponse {
161
216
  repeated int32 user_ids = 1;
162
217
  }
@@ -125,6 +125,17 @@ function deserialize_analytic_SegmentedUserResponse(buffer_arg) {
125
125
  return analytic_pb.SegmentedUserResponse.deserializeBinary(new Uint8Array(buffer_arg));
126
126
  }
127
127
 
128
+ function serialize_analytic_SportsResponse(arg) {
129
+ if (!(arg instanceof analytic_pb.SportsResponse)) {
130
+ throw new Error('Expected argument of type analytic.SportsResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_analytic_SportsResponse(buffer_arg) {
136
+ return analytic_pb.SportsResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
128
139
 
129
140
  var AnalyticService = exports.AnalyticService = {
130
141
  checkConnection: {
@@ -185,6 +196,18 @@ getGamesStats: {
185
196
  responseSerialize: serialize_analytic_GamesResponse,
186
197
  responseDeserialize: deserialize_analytic_GamesResponse,
187
198
  },
199
+ // Sports
200
+ getSportsStats: {
201
+ path: '/analytic.Analytic/getSportsStats',
202
+ requestStream: false,
203
+ responseStream: false,
204
+ requestType: analytic_pb.PaginationRequest,
205
+ responseType: analytic_pb.SportsResponse,
206
+ requestSerialize: serialize_analytic_PaginationRequest,
207
+ requestDeserialize: deserialize_analytic_PaginationRequest,
208
+ responseSerialize: serialize_analytic_SportsResponse,
209
+ responseDeserialize: deserialize_analytic_SportsResponse,
210
+ },
188
211
  // Dashboard
189
212
  getDashboardInfo: {
190
213
  path: '/analytic.Analytic/getDashboardInfo',