protobuf-platform 1.2.610 → 1.2.612
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 +28 -0
- package/analytic/analytic_grpc_pb.js +34 -0
- package/analytic/analytic_pb.js +1014 -0
- package/package.json +1 -1
- package/user/user.proto +58 -0
- package/user/user_grpc_pb.js +134 -0
- package/user/user_pb.js +2362 -0
package/analytic/analytic.proto
CHANGED
|
@@ -21,6 +21,8 @@ service Analytic {
|
|
|
21
21
|
rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
|
|
22
22
|
//Scaleo Activity Events
|
|
23
23
|
rpc getScaleoActivityBuckets(ScaleoActivityBucketsRequest) returns (ScaleoActivityBucketsResponse);
|
|
24
|
+
// Affiliate Data API: wager aggregation, filtering, sorting, and pagination are owned by analytic-service.
|
|
25
|
+
rpc getAffiliateWageredPlayers(GetAffiliateWageredPlayersRequest) returns (GetAffiliateWageredPlayersResponse);
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
//Technical
|
|
@@ -288,4 +290,30 @@ message ScaleoActivityBucketItem {
|
|
|
288
290
|
int32 count = 5; // aggregated count for the bucket
|
|
289
291
|
double amount = 6; // aggregated amount for the bucket (supports decimals)
|
|
290
292
|
string currency = 7; // currency code used by analytic for this aggregation
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// Affiliate Data API
|
|
296
|
+
// Global aggregation, filtering, and sorting occur before pagination.
|
|
297
|
+
message GetAffiliateWageredPlayersRequest {
|
|
298
|
+
int32 affiliate_id = 1; // Mandatory query scope.
|
|
299
|
+
string date_start = 2; // UTC "YYYY-MM-DD HH:MM:SS"; half-open interval [date_start, date_end).
|
|
300
|
+
string date_end = 3; // UTC "YYYY-MM-DD HH:MM:SS"; half-open interval [date_start, date_end).
|
|
301
|
+
int32 limit = 4;
|
|
302
|
+
int32 offset = 5;
|
|
303
|
+
optional string order = 6; // Implementation-defined; supports deterministic wagered asc/desc ordering.
|
|
304
|
+
optional string wagered_min = 7; // Brand base currency filter; applied before pagination.
|
|
305
|
+
optional string wagered_max = 8; // Brand base currency filter; applied before pagination.
|
|
306
|
+
}
|
|
307
|
+
message AffiliateWageredPlayerItem {
|
|
308
|
+
int32 user_id = 1;
|
|
309
|
+
string user_public_id = 2;
|
|
310
|
+
optional string nickname = 3;
|
|
311
|
+
int32 affiliate_id = 4;
|
|
312
|
+
string wagered = 5; // Total casino + sportsbook turnover in brand base currency.
|
|
313
|
+
string currency = 6; // Brand base currency code.
|
|
314
|
+
}
|
|
315
|
+
message GetAffiliateWageredPlayersResponse {
|
|
316
|
+
repeated AffiliateWageredPlayerItem items = 1;
|
|
317
|
+
optional int32 total_items = 2;
|
|
318
|
+
optional int32 total_pages = 3;
|
|
291
319
|
}
|
|
@@ -48,6 +48,28 @@ function deserialize_analytic_GamesResponse(buffer_arg) {
|
|
|
48
48
|
return analytic_pb.GamesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
+
function serialize_analytic_GetAffiliateWageredPlayersRequest(arg) {
|
|
52
|
+
if (!(arg instanceof analytic_pb.GetAffiliateWageredPlayersRequest)) {
|
|
53
|
+
throw new Error('Expected argument of type analytic.GetAffiliateWageredPlayersRequest');
|
|
54
|
+
}
|
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function deserialize_analytic_GetAffiliateWageredPlayersRequest(buffer_arg) {
|
|
59
|
+
return analytic_pb.GetAffiliateWageredPlayersRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function serialize_analytic_GetAffiliateWageredPlayersResponse(arg) {
|
|
63
|
+
if (!(arg instanceof analytic_pb.GetAffiliateWageredPlayersResponse)) {
|
|
64
|
+
throw new Error('Expected argument of type analytic.GetAffiliateWageredPlayersResponse');
|
|
65
|
+
}
|
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function deserialize_analytic_GetAffiliateWageredPlayersResponse(buffer_arg) {
|
|
70
|
+
return analytic_pb.GetAffiliateWageredPlayersResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
|
+
}
|
|
72
|
+
|
|
51
73
|
function serialize_analytic_GlobalCasinoResponse(arg) {
|
|
52
74
|
if (!(arg instanceof analytic_pb.GlobalCasinoResponse)) {
|
|
53
75
|
throw new Error('Expected argument of type analytic.GlobalCasinoResponse');
|
|
@@ -289,6 +311,18 @@ getScaleoActivityBuckets: {
|
|
|
289
311
|
responseSerialize: serialize_analytic_ScaleoActivityBucketsResponse,
|
|
290
312
|
responseDeserialize: deserialize_analytic_ScaleoActivityBucketsResponse,
|
|
291
313
|
},
|
|
314
|
+
// Affiliate Data API: wager aggregation, filtering, sorting, and pagination are owned by analytic-service.
|
|
315
|
+
getAffiliateWageredPlayers: {
|
|
316
|
+
path: '/analytic.Analytic/getAffiliateWageredPlayers',
|
|
317
|
+
requestStream: false,
|
|
318
|
+
responseStream: false,
|
|
319
|
+
requestType: analytic_pb.GetAffiliateWageredPlayersRequest,
|
|
320
|
+
responseType: analytic_pb.GetAffiliateWageredPlayersResponse,
|
|
321
|
+
requestSerialize: serialize_analytic_GetAffiliateWageredPlayersRequest,
|
|
322
|
+
requestDeserialize: deserialize_analytic_GetAffiliateWageredPlayersRequest,
|
|
323
|
+
responseSerialize: serialize_analytic_GetAffiliateWageredPlayersResponse,
|
|
324
|
+
responseDeserialize: deserialize_analytic_GetAffiliateWageredPlayersResponse,
|
|
325
|
+
},
|
|
292
326
|
};
|
|
293
327
|
|
|
294
328
|
exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService, 'Analytic');
|