protobuf-platform 1.2.630 → 1.2.633
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/bonus/bonus.proto +35 -0
- package/bonus/bonus_grpc_pb.js +55 -0
- package/bonus/bonus_pb.js +2578 -1105
- package/game/game.proto +26 -16
- package/game/game_grpc_pb.js +35 -24
- package/game/game_pb.js +651 -299
- package/package.json +2 -2
- package/tournament/tournament.proto +33 -0
- package/tournament/tournament_grpc_pb.js +22 -0
- package/tournament/tournament_pb.js +1533 -44
package/bonus/bonus.proto
CHANGED
|
@@ -23,12 +23,14 @@ service Bonus {
|
|
|
23
23
|
rpc setBonusRewards(BonusRewardsRequest) returns (BonusStatusResponse);
|
|
24
24
|
rpc setBonusBetRanges(BonusBetRangesRequest) returns (BonusStatusResponse);
|
|
25
25
|
rpc setBonusTranslation(BonusTranslationRequest) returns (BonusStatusResponse);
|
|
26
|
+
rpc upsertBonusTranslation(stream BonusTranslationUpsertRequest) returns (BonusStatusResponse);
|
|
26
27
|
rpc getBonusTranslation(GetBonusTranslationRequest) returns (BonusTranslationItem);
|
|
27
28
|
rpc updateBonusesInBunch(ItemsBunchRequest) returns (BonusStatusResponse);
|
|
28
29
|
//Users
|
|
29
30
|
rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
30
31
|
// Idempotent dynamic grant keyed by grant_source + grant_id.
|
|
31
32
|
rpc grantDynamicUserBonus(GrantDynamicUserBonusRequest) returns (GrantDynamicUserBonusResponse);
|
|
33
|
+
rpc grantSystemUserBonus(GrantSystemUserBonusRequest) returns (GrantSystemUserBonusResponse);
|
|
32
34
|
rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
33
35
|
rpc activateUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
34
36
|
rpc applyUserPromocodeToUserBonus(ApplyUserPromocodeToUserBonusRequest) returns (BonusStatusResponse);
|
|
@@ -333,6 +335,8 @@ message BonusSnapshotItem {
|
|
|
333
335
|
optional string description = 10;
|
|
334
336
|
optional string started_at = 11;
|
|
335
337
|
optional string finished_at = 12;
|
|
338
|
+
optional string portrait_image = 13;
|
|
339
|
+
optional string portrait_image_cdn = 14;
|
|
336
340
|
}
|
|
337
341
|
message BonusSnapshotItemsResponse {
|
|
338
342
|
repeated BonusSnapshotItem items = 1;
|
|
@@ -347,6 +351,18 @@ message BonusTranslationRequest {
|
|
|
347
351
|
optional string description = 4;
|
|
348
352
|
optional string content = 5;
|
|
349
353
|
optional int32 is_active = 6;
|
|
354
|
+
optional string desktop_file_type = 7;
|
|
355
|
+
optional string mobile_file_type = 8;
|
|
356
|
+
optional string portrait_file_type = 9;
|
|
357
|
+
optional bool remove_desktop_image = 10;
|
|
358
|
+
optional bool remove_mobile_image = 11;
|
|
359
|
+
optional bool remove_portrait_image = 12;
|
|
360
|
+
}
|
|
361
|
+
message BonusTranslationUpsertRequest {
|
|
362
|
+
oneof request {
|
|
363
|
+
BonusTranslationRequest translation_data = 1;
|
|
364
|
+
File file = 2;
|
|
365
|
+
}
|
|
350
366
|
}
|
|
351
367
|
message GetBonusTranslationRequest {
|
|
352
368
|
int32 bonus_id = 1;
|
|
@@ -358,6 +374,12 @@ message BonusTranslationItem {
|
|
|
358
374
|
optional string description = 3;
|
|
359
375
|
optional string content = 4;
|
|
360
376
|
optional int32 is_active = 5;
|
|
377
|
+
optional string image = 6;
|
|
378
|
+
optional string image_cdn = 7;
|
|
379
|
+
optional string mobile_image = 8;
|
|
380
|
+
optional string mobile_image_cdn = 9;
|
|
381
|
+
optional string portrait_image = 10;
|
|
382
|
+
optional string portrait_image_cdn = 11;
|
|
361
383
|
}
|
|
362
384
|
//Users
|
|
363
385
|
message UserBonusItem {
|
|
@@ -456,6 +478,17 @@ message ApplyUserBonusPromocodeRequest {
|
|
|
456
478
|
optional string country = 5;
|
|
457
479
|
optional string locale = 6;
|
|
458
480
|
}
|
|
481
|
+
message GrantSystemUserBonusRequest {
|
|
482
|
+
int32 user_id = 1;
|
|
483
|
+
int32 bonus_template_id = 2;
|
|
484
|
+
string grant_source = 3;
|
|
485
|
+
string grant_id = 4;
|
|
486
|
+
string currency = 5;
|
|
487
|
+
}
|
|
488
|
+
message GrantSystemUserBonusResponse {
|
|
489
|
+
int32 user_bonus_id = 1;
|
|
490
|
+
string status = 2;
|
|
491
|
+
}
|
|
459
492
|
message GrantDynamicUserBonusRequest {
|
|
460
493
|
int32 user_id = 1;
|
|
461
494
|
int32 bonus_template_id = 2;
|
|
@@ -530,6 +563,8 @@ message DepositEligibleUserBonusItem {
|
|
|
530
563
|
repeated ActivationRule activation_rules = 15;
|
|
531
564
|
repeated BetsRange bets_range = 16;
|
|
532
565
|
optional int32 bonus_id = 17;
|
|
566
|
+
optional string portrait_image = 18;
|
|
567
|
+
optional string portrait_image_cdn = 19;
|
|
533
568
|
}
|
|
534
569
|
message GetActiveWageringUserBonusesRequest {
|
|
535
570
|
int32 user_id = 1;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -159,6 +159,17 @@ function deserialize_bonus_BonusTranslationRequest(buffer_arg) {
|
|
|
159
159
|
return bonus_bonus_pb.BonusTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
function serialize_bonus_BonusTranslationUpsertRequest(arg) {
|
|
163
|
+
if (!(arg instanceof bonus_bonus_pb.BonusTranslationUpsertRequest)) {
|
|
164
|
+
throw new Error('Expected argument of type bonus.BonusTranslationUpsertRequest');
|
|
165
|
+
}
|
|
166
|
+
return Buffer.from(arg.serializeBinary());
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function deserialize_bonus_BonusTranslationUpsertRequest(buffer_arg) {
|
|
170
|
+
return bonus_bonus_pb.BonusTranslationUpsertRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
171
|
+
}
|
|
172
|
+
|
|
162
173
|
function serialize_bonus_BonusTypesResponse(arg) {
|
|
163
174
|
if (!(arg instanceof bonus_bonus_pb.BonusTypesResponse)) {
|
|
164
175
|
throw new Error('Expected argument of type bonus.BonusTypesResponse');
|
|
@@ -379,6 +390,28 @@ function deserialize_bonus_GrantDynamicUserBonusResponse(buffer_arg) {
|
|
|
379
390
|
return bonus_bonus_pb.GrantDynamicUserBonusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
380
391
|
}
|
|
381
392
|
|
|
393
|
+
function serialize_bonus_GrantSystemUserBonusRequest(arg) {
|
|
394
|
+
if (!(arg instanceof bonus_bonus_pb.GrantSystemUserBonusRequest)) {
|
|
395
|
+
throw new Error('Expected argument of type bonus.GrantSystemUserBonusRequest');
|
|
396
|
+
}
|
|
397
|
+
return Buffer.from(arg.serializeBinary());
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
function deserialize_bonus_GrantSystemUserBonusRequest(buffer_arg) {
|
|
401
|
+
return bonus_bonus_pb.GrantSystemUserBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
function serialize_bonus_GrantSystemUserBonusResponse(arg) {
|
|
405
|
+
if (!(arg instanceof bonus_bonus_pb.GrantSystemUserBonusResponse)) {
|
|
406
|
+
throw new Error('Expected argument of type bonus.GrantSystemUserBonusResponse');
|
|
407
|
+
}
|
|
408
|
+
return Buffer.from(arg.serializeBinary());
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
function deserialize_bonus_GrantSystemUserBonusResponse(buffer_arg) {
|
|
412
|
+
return bonus_bonus_pb.GrantSystemUserBonusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
413
|
+
}
|
|
414
|
+
|
|
382
415
|
function serialize_bonus_ItemsBunchRequest(arg) {
|
|
383
416
|
if (!(arg instanceof bonus_bonus_pb.ItemsBunchRequest)) {
|
|
384
417
|
throw new Error('Expected argument of type bonus.ItemsBunchRequest');
|
|
@@ -702,6 +735,17 @@ getBonusWagerGames: {
|
|
|
702
735
|
responseSerialize: serialize_bonus_BonusStatusResponse,
|
|
703
736
|
responseDeserialize: deserialize_bonus_BonusStatusResponse,
|
|
704
737
|
},
|
|
738
|
+
upsertBonusTranslation: {
|
|
739
|
+
path: '/bonus.Bonus/upsertBonusTranslation',
|
|
740
|
+
requestStream: true,
|
|
741
|
+
responseStream: false,
|
|
742
|
+
requestType: bonus_bonus_pb.BonusTranslationUpsertRequest,
|
|
743
|
+
responseType: bonus_bonus_pb.BonusStatusResponse,
|
|
744
|
+
requestSerialize: serialize_bonus_BonusTranslationUpsertRequest,
|
|
745
|
+
requestDeserialize: deserialize_bonus_BonusTranslationUpsertRequest,
|
|
746
|
+
responseSerialize: serialize_bonus_BonusStatusResponse,
|
|
747
|
+
responseDeserialize: deserialize_bonus_BonusStatusResponse,
|
|
748
|
+
},
|
|
705
749
|
getBonusTranslation: {
|
|
706
750
|
path: '/bonus.Bonus/getBonusTranslation',
|
|
707
751
|
requestStream: false,
|
|
@@ -748,6 +792,17 @@ grantDynamicUserBonus: {
|
|
|
748
792
|
responseSerialize: serialize_bonus_GrantDynamicUserBonusResponse,
|
|
749
793
|
responseDeserialize: deserialize_bonus_GrantDynamicUserBonusResponse,
|
|
750
794
|
},
|
|
795
|
+
grantSystemUserBonus: {
|
|
796
|
+
path: '/bonus.Bonus/grantSystemUserBonus',
|
|
797
|
+
requestStream: false,
|
|
798
|
+
responseStream: false,
|
|
799
|
+
requestType: bonus_bonus_pb.GrantSystemUserBonusRequest,
|
|
800
|
+
responseType: bonus_bonus_pb.GrantSystemUserBonusResponse,
|
|
801
|
+
requestSerialize: serialize_bonus_GrantSystemUserBonusRequest,
|
|
802
|
+
requestDeserialize: deserialize_bonus_GrantSystemUserBonusRequest,
|
|
803
|
+
responseSerialize: serialize_bonus_GrantSystemUserBonusResponse,
|
|
804
|
+
responseDeserialize: deserialize_bonus_GrantSystemUserBonusResponse,
|
|
805
|
+
},
|
|
751
806
|
cancelUserBonus: {
|
|
752
807
|
path: '/bonus.Bonus/cancelUserBonus',
|
|
753
808
|
requestStream: false,
|