protobuf-platform 1.2.208 → 1.2.211
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 +26 -0
- package/analytic/analytic_grpc_pb.js +34 -0
- package/analytic/analytic_pb.js +896 -0
- package/package.json +1 -1
- package/user/user.proto +12 -0
- package/user/user_grpc_pb.js +33 -0
- package/user/user_pb.js +574 -0
package/analytic/analytic.proto
CHANGED
|
@@ -19,6 +19,8 @@ service Analytic {
|
|
|
19
19
|
rpc getMainDashboard(DashboardRequest) returns (MainDashboardResponse);
|
|
20
20
|
//Segmentation
|
|
21
21
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
22
|
+
//Scaleo Activity Events
|
|
23
|
+
rpc getScaleoActivityBuckets(ScaleoActivityBucketsRequest) returns (ScaleoActivityBucketsResponse);
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
//Technical
|
|
@@ -262,4 +264,28 @@ message SegmentedUserRequest {
|
|
|
262
264
|
|
|
263
265
|
message SegmentedUserResponse {
|
|
264
266
|
repeated int32 user_ids = 1;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
//Scaleo Activity Events
|
|
270
|
+
message ScaleoActivityBucketsRequest {
|
|
271
|
+
string date_start = 1; // UTC "YYYY-MM-DD HH:MM:SS" (inclusive)
|
|
272
|
+
string date_end = 2; // UTC "YYYY-MM-DD HH:MM:SS" (exclusive)
|
|
273
|
+
repeated string types = 3; // allowed: "bet", "win"
|
|
274
|
+
optional int32 limit = 4; // default handled by gateway/service, e.g. 1000 max
|
|
275
|
+
optional string cursor = 5; // opaque cursor returned by previous response
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
message ScaleoActivityBucketsResponse {
|
|
279
|
+
repeated ScaleoActivityBucketItem items = 1;
|
|
280
|
+
optional string next_cursor = 2; // present if there are more items
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
message ScaleoActivityBucketItem {
|
|
284
|
+
string hour = 1; // UTC bucket start "YYYY-MM-DD HH:00:00"
|
|
285
|
+
string type = 2; // "bet" | "win"
|
|
286
|
+
int32 user_id = 3; // internal numeric user id (used to join with user service)
|
|
287
|
+
string product = 4; // "casino" | "sportsbook"
|
|
288
|
+
int32 count = 5; // aggregated count for the bucket
|
|
289
|
+
double amount = 6; // aggregated amount for the bucket (supports decimals)
|
|
290
|
+
string currency = 7; // currency code used by analytic for this aggregation
|
|
265
291
|
}
|
|
@@ -114,6 +114,28 @@ function deserialize_analytic_PongResponse(buffer_arg) {
|
|
|
114
114
|
return analytic_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
+
function serialize_analytic_ScaleoActivityBucketsRequest(arg) {
|
|
118
|
+
if (!(arg instanceof analytic_pb.ScaleoActivityBucketsRequest)) {
|
|
119
|
+
throw new Error('Expected argument of type analytic.ScaleoActivityBucketsRequest');
|
|
120
|
+
}
|
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function deserialize_analytic_ScaleoActivityBucketsRequest(buffer_arg) {
|
|
125
|
+
return analytic_pb.ScaleoActivityBucketsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
function serialize_analytic_ScaleoActivityBucketsResponse(arg) {
|
|
129
|
+
if (!(arg instanceof analytic_pb.ScaleoActivityBucketsResponse)) {
|
|
130
|
+
throw new Error('Expected argument of type analytic.ScaleoActivityBucketsResponse');
|
|
131
|
+
}
|
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function deserialize_analytic_ScaleoActivityBucketsResponse(buffer_arg) {
|
|
136
|
+
return analytic_pb.ScaleoActivityBucketsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
|
+
}
|
|
138
|
+
|
|
117
139
|
function serialize_analytic_SegmentedUserRequest(arg) {
|
|
118
140
|
if (!(arg instanceof analytic_pb.SegmentedUserRequest)) {
|
|
119
141
|
throw new Error('Expected argument of type analytic.SegmentedUserRequest');
|
|
@@ -255,6 +277,18 @@ getSegmentedUsers: {
|
|
|
255
277
|
responseSerialize: serialize_analytic_SegmentedUserResponse,
|
|
256
278
|
responseDeserialize: deserialize_analytic_SegmentedUserResponse,
|
|
257
279
|
},
|
|
280
|
+
// Scaleo Activity Events
|
|
281
|
+
getScaleoActivityBuckets: {
|
|
282
|
+
path: '/analytic.Analytic/getScaleoActivityBuckets',
|
|
283
|
+
requestStream: false,
|
|
284
|
+
responseStream: false,
|
|
285
|
+
requestType: analytic_pb.ScaleoActivityBucketsRequest,
|
|
286
|
+
responseType: analytic_pb.ScaleoActivityBucketsResponse,
|
|
287
|
+
requestSerialize: serialize_analytic_ScaleoActivityBucketsRequest,
|
|
288
|
+
requestDeserialize: deserialize_analytic_ScaleoActivityBucketsRequest,
|
|
289
|
+
responseSerialize: serialize_analytic_ScaleoActivityBucketsResponse,
|
|
290
|
+
responseDeserialize: deserialize_analytic_ScaleoActivityBucketsResponse,
|
|
291
|
+
},
|
|
258
292
|
};
|
|
259
293
|
|
|
260
294
|
exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService, 'Analytic');
|