protobuf-platform 1.1.76 → 1.1.78
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/game/game.proto +1 -0
- package/game/game_pb.js +49 -1
- package/package.json +1 -1
- package/user/user.proto +87 -0
- package/user/user_grpc_pb.js +55 -0
- package/user/user_pb.js +4184 -0
package/game/game.proto
CHANGED
@@ -495,6 +495,7 @@ message InitGameSessionRequest {
|
|
495
495
|
optional string language = 9;
|
496
496
|
optional string user_device = 10;
|
497
497
|
optional int32 user_bonus_id = 11;
|
498
|
+
optional string user_session_id = 12;
|
498
499
|
}
|
499
500
|
message InitDemoGameSessionRequest {
|
500
501
|
string game_slug = 1;
|
package/game/game_pb.js
CHANGED
@@ -20468,7 +20468,8 @@ proto.game.InitGameSessionRequest.toObject = function(includeInstance, msg) {
|
|
20468
20468
|
returnUrl: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
20469
20469
|
language: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
20470
20470
|
userDevice: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
20471
|
-
userBonusId: jspb.Message.getFieldWithDefault(msg, 11, 0)
|
20471
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
20472
|
+
userSessionId: jspb.Message.getFieldWithDefault(msg, 12, "")
|
20472
20473
|
};
|
20473
20474
|
|
20474
20475
|
if (includeInstance) {
|
@@ -20549,6 +20550,10 @@ proto.game.InitGameSessionRequest.deserializeBinaryFromReader = function(msg, re
|
|
20549
20550
|
var value = /** @type {number} */ (reader.readInt32());
|
20550
20551
|
msg.setUserBonusId(value);
|
20551
20552
|
break;
|
20553
|
+
case 12:
|
20554
|
+
var value = /** @type {string} */ (reader.readString());
|
20555
|
+
msg.setUserSessionId(value);
|
20556
|
+
break;
|
20552
20557
|
default:
|
20553
20558
|
reader.skipField();
|
20554
20559
|
break;
|
@@ -20655,6 +20660,13 @@ proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, wr
|
|
20655
20660
|
f
|
20656
20661
|
);
|
20657
20662
|
}
|
20663
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 12));
|
20664
|
+
if (f != null) {
|
20665
|
+
writer.writeString(
|
20666
|
+
12,
|
20667
|
+
f
|
20668
|
+
);
|
20669
|
+
}
|
20658
20670
|
};
|
20659
20671
|
|
20660
20672
|
|
@@ -20946,6 +20958,42 @@ proto.game.InitGameSessionRequest.prototype.hasUserBonusId = function() {
|
|
20946
20958
|
};
|
20947
20959
|
|
20948
20960
|
|
20961
|
+
/**
|
20962
|
+
* optional string user_session_id = 12;
|
20963
|
+
* @return {string}
|
20964
|
+
*/
|
20965
|
+
proto.game.InitGameSessionRequest.prototype.getUserSessionId = function() {
|
20966
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
20967
|
+
};
|
20968
|
+
|
20969
|
+
|
20970
|
+
/**
|
20971
|
+
* @param {string} value
|
20972
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
20973
|
+
*/
|
20974
|
+
proto.game.InitGameSessionRequest.prototype.setUserSessionId = function(value) {
|
20975
|
+
return jspb.Message.setField(this, 12, value);
|
20976
|
+
};
|
20977
|
+
|
20978
|
+
|
20979
|
+
/**
|
20980
|
+
* Clears the field making it undefined.
|
20981
|
+
* @return {!proto.game.InitGameSessionRequest} returns this
|
20982
|
+
*/
|
20983
|
+
proto.game.InitGameSessionRequest.prototype.clearUserSessionId = function() {
|
20984
|
+
return jspb.Message.setField(this, 12, undefined);
|
20985
|
+
};
|
20986
|
+
|
20987
|
+
|
20988
|
+
/**
|
20989
|
+
* Returns whether this field is set.
|
20990
|
+
* @return {boolean}
|
20991
|
+
*/
|
20992
|
+
proto.game.InitGameSessionRequest.prototype.hasUserSessionId = function() {
|
20993
|
+
return jspb.Message.getField(this, 12) != null;
|
20994
|
+
};
|
20995
|
+
|
20996
|
+
|
20949
20997
|
|
20950
20998
|
|
20951
20999
|
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -25,6 +25,8 @@ service User {
|
|
25
25
|
rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
26
26
|
rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
27
27
|
rpc fetchUsersFromSegment(PaginationRequest) returns (UsersResponse);
|
28
|
+
rpc setSegmentRule(SegmentRuleRequest) returns (SegmentStatusResponse);
|
29
|
+
rpc getSegmentRule(GetSegmentRuleRequest) returns (SegmentRuleItem);
|
28
30
|
//Risk Statuses
|
29
31
|
rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
|
30
32
|
//Categories
|
@@ -265,6 +267,91 @@ message SegmentItemsResponse {
|
|
265
267
|
optional int32 total_pages = 2;
|
266
268
|
optional int32 total_items = 3;
|
267
269
|
}
|
270
|
+
message SegmentRuleRequest {
|
271
|
+
optional SegmentPaymentRuleRequest payment_rule = 1;
|
272
|
+
optional SegmentBetRuleRequest bet_rule = 2;
|
273
|
+
}
|
274
|
+
message GetSegmentRuleRequest {
|
275
|
+
int32 segment_id = 1;
|
276
|
+
string rule_type = 2;
|
277
|
+
optional string currency = 3;
|
278
|
+
}
|
279
|
+
message SegmentPaymentRuleRequest {
|
280
|
+
int32 segment_id = 1;
|
281
|
+
string currency = 2;
|
282
|
+
optional float deposit_amount_min = 3;
|
283
|
+
optional float deposit_amount_max = 4;
|
284
|
+
optional float ftd_amount_min = 5;
|
285
|
+
optional float ftd_amount_max = 6;
|
286
|
+
optional int32 deposit_count_min = 7;
|
287
|
+
optional int32 deposit_count_max = 8;
|
288
|
+
optional float deposit_sum_min = 9;
|
289
|
+
optional float deposit_sum_max = 10;
|
290
|
+
optional float deposit_avg_min = 11;
|
291
|
+
optional float deposit_avg_max = 12;
|
292
|
+
repeated string payment_providers = 13;
|
293
|
+
repeated string payment_types = 14;
|
294
|
+
}
|
295
|
+
message SegmentBetRuleRequest {
|
296
|
+
int32 segment_id = 1;
|
297
|
+
string currency = 2;
|
298
|
+
optional float bet_amount_min = 3;
|
299
|
+
optional float bet_amount_max = 4;
|
300
|
+
optional int32 bet_count_min = 5;
|
301
|
+
optional int32 bet_count_max = 6;
|
302
|
+
optional float bet_sum_min = 7;
|
303
|
+
optional float bet_sum_max = 8;
|
304
|
+
optional float bet_avg_min = 9;
|
305
|
+
optional float bet_avg_max = 10;
|
306
|
+
optional float win_amount_min = 11;
|
307
|
+
optional float win_amount_max = 12;
|
308
|
+
optional int32 win_count_min = 13;
|
309
|
+
optional int32 win_count_max = 14;
|
310
|
+
optional float win_sum_min = 15;
|
311
|
+
optional float win_sum_max = 16;
|
312
|
+
optional float win_avg_min = 17;
|
313
|
+
optional float win_avg_max = 18;
|
314
|
+
}
|
315
|
+
message SegmentRuleItem {
|
316
|
+
optional SegmentPaymentRuleItem payment_rule = 1;
|
317
|
+
optional SegmentBetRuleItem bet_rule = 2;
|
318
|
+
}
|
319
|
+
message SegmentPaymentRuleItem {
|
320
|
+
optional float deposit_amount_min = 1;
|
321
|
+
optional float deposit_amount_max = 2;
|
322
|
+
optional float ftd_amount_min = 3;
|
323
|
+
optional float ftd_amount_max = 4;
|
324
|
+
optional int32 deposit_count_min = 5;
|
325
|
+
optional int32 deposit_count_max = 6;
|
326
|
+
optional float deposit_sum_min = 7;
|
327
|
+
optional float deposit_sum_max = 8;
|
328
|
+
optional float deposit_avg_min = 9;
|
329
|
+
optional float deposit_avg_max = 10;
|
330
|
+
repeated string payment_providers = 11;
|
331
|
+
repeated string payment_types = 12;
|
332
|
+
optional int32 segment_id = 13;
|
333
|
+
optional string currency = 14;
|
334
|
+
}
|
335
|
+
message SegmentBetRuleItem {
|
336
|
+
optional int32 segment_id = 1;
|
337
|
+
optional string currency = 2;
|
338
|
+
optional float bet_amount_min = 3;
|
339
|
+
optional float bet_amount_max = 4;
|
340
|
+
optional int32 bet_count_min = 5;
|
341
|
+
optional int32 bet_count_max = 6;
|
342
|
+
optional float bet_sum_min = 7;
|
343
|
+
optional float bet_sum_max = 8;
|
344
|
+
optional float bet_avg_min = 9;
|
345
|
+
optional float bet_avg_max = 10;
|
346
|
+
optional float win_amount_min = 11;
|
347
|
+
optional float win_amount_max = 12;
|
348
|
+
optional int32 win_count_min = 13;
|
349
|
+
optional int32 win_count_max = 14;
|
350
|
+
optional float win_sum_min = 15;
|
351
|
+
optional float win_sum_max = 16;
|
352
|
+
optional float win_avg_min = 17;
|
353
|
+
optional float win_avg_max = 18;
|
354
|
+
}
|
268
355
|
//Statuses
|
269
356
|
message RiskStatus {
|
270
357
|
int32 id = 1;
|
package/user/user_grpc_pb.js
CHANGED
@@ -103,6 +103,17 @@ function deserialize_user_GetSegmentRequest(buffer_arg) {
|
|
103
103
|
return user_pb.GetSegmentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
104
104
|
}
|
105
105
|
|
106
|
+
function serialize_user_GetSegmentRuleRequest(arg) {
|
107
|
+
if (!(arg instanceof user_pb.GetSegmentRuleRequest)) {
|
108
|
+
throw new Error('Expected argument of type user.GetSegmentRuleRequest');
|
109
|
+
}
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
111
|
+
}
|
112
|
+
|
113
|
+
function deserialize_user_GetSegmentRuleRequest(buffer_arg) {
|
114
|
+
return user_pb.GetSegmentRuleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
115
|
+
}
|
116
|
+
|
106
117
|
function serialize_user_GetUserLimitsRequest(arg) {
|
107
118
|
if (!(arg instanceof user_pb.GetUserLimitsRequest)) {
|
108
119
|
throw new Error('Expected argument of type user.GetUserLimitsRequest');
|
@@ -323,6 +334,28 @@ function deserialize_user_SegmentResponse(buffer_arg) {
|
|
323
334
|
return user_pb.SegmentResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
324
335
|
}
|
325
336
|
|
337
|
+
function serialize_user_SegmentRuleItem(arg) {
|
338
|
+
if (!(arg instanceof user_pb.SegmentRuleItem)) {
|
339
|
+
throw new Error('Expected argument of type user.SegmentRuleItem');
|
340
|
+
}
|
341
|
+
return Buffer.from(arg.serializeBinary());
|
342
|
+
}
|
343
|
+
|
344
|
+
function deserialize_user_SegmentRuleItem(buffer_arg) {
|
345
|
+
return user_pb.SegmentRuleItem.deserializeBinary(new Uint8Array(buffer_arg));
|
346
|
+
}
|
347
|
+
|
348
|
+
function serialize_user_SegmentRuleRequest(arg) {
|
349
|
+
if (!(arg instanceof user_pb.SegmentRuleRequest)) {
|
350
|
+
throw new Error('Expected argument of type user.SegmentRuleRequest');
|
351
|
+
}
|
352
|
+
return Buffer.from(arg.serializeBinary());
|
353
|
+
}
|
354
|
+
|
355
|
+
function deserialize_user_SegmentRuleRequest(buffer_arg) {
|
356
|
+
return user_pb.SegmentRuleRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
357
|
+
}
|
358
|
+
|
326
359
|
function serialize_user_SegmentStatusResponse(arg) {
|
327
360
|
if (!(arg instanceof user_pb.SegmentStatusResponse)) {
|
328
361
|
throw new Error('Expected argument of type user.SegmentStatusResponse');
|
@@ -659,6 +692,28 @@ createSingleSegment: {
|
|
659
692
|
responseSerialize: serialize_user_UsersResponse,
|
660
693
|
responseDeserialize: deserialize_user_UsersResponse,
|
661
694
|
},
|
695
|
+
setSegmentRule: {
|
696
|
+
path: '/user.User/setSegmentRule',
|
697
|
+
requestStream: false,
|
698
|
+
responseStream: false,
|
699
|
+
requestType: user_pb.SegmentRuleRequest,
|
700
|
+
responseType: user_pb.SegmentStatusResponse,
|
701
|
+
requestSerialize: serialize_user_SegmentRuleRequest,
|
702
|
+
requestDeserialize: deserialize_user_SegmentRuleRequest,
|
703
|
+
responseSerialize: serialize_user_SegmentStatusResponse,
|
704
|
+
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
705
|
+
},
|
706
|
+
getSegmentRule: {
|
707
|
+
path: '/user.User/getSegmentRule',
|
708
|
+
requestStream: false,
|
709
|
+
responseStream: false,
|
710
|
+
requestType: user_pb.GetSegmentRuleRequest,
|
711
|
+
responseType: user_pb.SegmentRuleItem,
|
712
|
+
requestSerialize: serialize_user_GetSegmentRuleRequest,
|
713
|
+
requestDeserialize: deserialize_user_GetSegmentRuleRequest,
|
714
|
+
responseSerialize: serialize_user_SegmentRuleItem,
|
715
|
+
responseDeserialize: deserialize_user_SegmentRuleItem,
|
716
|
+
},
|
662
717
|
// Risk Statuses
|
663
718
|
readListRiskStatuses: {
|
664
719
|
path: '/user.User/readListRiskStatuses',
|