protobuf-platform 1.2.141 → 1.2.145

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.
@@ -15,6 +15,8 @@ service Analytic {
15
15
  rpc getSportsStats(PaginationRequest) returns (SportsResponse);
16
16
  //Dashboard
17
17
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
18
+ // New: main dashboard with summary + series
19
+ rpc getMainDashboard(DashboardRequest) returns (MainDashboardResponse);
18
20
  //Segmentation
19
21
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
20
22
  }
@@ -40,6 +42,7 @@ message GlobalSearchRequest {
40
42
  message DashboardRequest {
41
43
  string start_date = 1;
42
44
  string end_date = 2;
45
+ optional string period = 3;
43
46
  }
44
47
 
45
48
  //Dashboard
@@ -57,6 +60,23 @@ message DashboardResponse {
57
60
  optional float dep_sum = 11;
58
61
  optional float dep_avg = 12;
59
62
  }
63
+ message MainDashboardResponse {
64
+ DashboardResponse summary = 1;
65
+ DashboardTurnoverSeries turnover_series = 2;
66
+ }
67
+ message DashboardTurnoverSeries {
68
+ repeated DashboardTurnoverSeriesItem items = 1;
69
+ }
70
+
71
+ message DashboardTurnoverSeriesItem {
72
+ string date = 1; // ISO-8601 UTC bucket start (hour), e.g. "2025-12-13T10:00:00Z"
73
+
74
+ optional float game_turnover_real = 2;
75
+ optional float game_turnover_bonus = 3;
76
+
77
+ optional float sport_turnover_real = 4;
78
+ optional float sport_turnover_bonus = 5;
79
+ }
60
80
 
61
81
  //Global
62
82
  message GlobalCasinoItem {
@@ -59,6 +59,17 @@ function deserialize_analytic_GlobalCasinoResponse(buffer_arg) {
59
59
  return analytic_pb.GlobalCasinoResponse.deserializeBinary(new Uint8Array(buffer_arg));
60
60
  }
61
61
 
62
+ function serialize_analytic_MainDashboardResponse(arg) {
63
+ if (!(arg instanceof analytic_pb.MainDashboardResponse)) {
64
+ throw new Error('Expected argument of type analytic.MainDashboardResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_analytic_MainDashboardResponse(buffer_arg) {
70
+ return analytic_pb.MainDashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
62
73
  function serialize_analytic_PaginationRequest(arg) {
63
74
  if (!(arg instanceof analytic_pb.PaginationRequest)) {
64
75
  throw new Error('Expected argument of type analytic.PaginationRequest');
@@ -220,6 +231,18 @@ getDashboardInfo: {
220
231
  responseSerialize: serialize_analytic_DashboardResponse,
221
232
  responseDeserialize: deserialize_analytic_DashboardResponse,
222
233
  },
234
+ // New: main dashboard with summary + series
235
+ getMainDashboard: {
236
+ path: '/analytic.Analytic/getMainDashboard',
237
+ requestStream: false,
238
+ responseStream: false,
239
+ requestType: analytic_pb.DashboardRequest,
240
+ responseType: analytic_pb.MainDashboardResponse,
241
+ requestSerialize: serialize_analytic_DashboardRequest,
242
+ requestDeserialize: deserialize_analytic_DashboardRequest,
243
+ responseSerialize: serialize_analytic_MainDashboardResponse,
244
+ responseDeserialize: deserialize_analytic_MainDashboardResponse,
245
+ },
223
246
  // Segmentation
224
247
  getSegmentedUsers: {
225
248
  path: '/analytic.Analytic/getSegmentedUsers',