protobuf-platform 1.2.571 → 1.2.574
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 +41 -0
- package/bonus/bonus_grpc_pb.js +33 -0
- package/bonus/bonus_pb.js +1987 -0
- package/cms/cms.proto +5 -0
- package/cms/cms_pb.js +245 -5
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
|
@@ -11,6 +11,7 @@ service Bonus {
|
|
|
11
11
|
rpc createSingleBonus(stream BonusRequest) returns (BonusResponse);
|
|
12
12
|
rpc readSingleBonus(GetBonusRequest) returns (BonusResponse);
|
|
13
13
|
rpc readSingleBonusBySlug(GetBonusBySlugRequest) returns (BonusResponse);
|
|
14
|
+
rpc readSingleBonusById(GetSingleBonusByIdRequest) returns (SingleBonusResponse);
|
|
14
15
|
rpc updateSingleBonus(stream BonusRequest) returns (BonusResponse);
|
|
15
16
|
rpc deleteSingleBonus(GetBonusRequest) returns (BonusStatusResponse);
|
|
16
17
|
rpc readListBonuses(PaginationRequest) returns (BonusItemsResponse);
|
|
@@ -179,6 +180,10 @@ message GetBonusBySlugRequest {
|
|
|
179
180
|
string slug = 1;
|
|
180
181
|
optional string locale = 2;
|
|
181
182
|
}
|
|
183
|
+
message GetSingleBonusByIdRequest {
|
|
184
|
+
int32 bonus_id = 1;
|
|
185
|
+
string locale = 2;
|
|
186
|
+
}
|
|
182
187
|
message GetBonusWagerGamesRequest {
|
|
183
188
|
int32 bonus_id = 1;
|
|
184
189
|
optional int32 limit = 2;
|
|
@@ -247,6 +252,42 @@ message BonusItem {
|
|
|
247
252
|
optional bool can_guest_show = 45;
|
|
248
253
|
optional string content = 46;
|
|
249
254
|
}
|
|
255
|
+
message SingleBonusItem {
|
|
256
|
+
optional int32 id = 1;
|
|
257
|
+
optional string title = 2;
|
|
258
|
+
optional string description = 3;
|
|
259
|
+
optional string image = 4;
|
|
260
|
+
optional string image_cdn = 5;
|
|
261
|
+
optional string status = 6;
|
|
262
|
+
optional string type = 7;
|
|
263
|
+
optional int32 wager_x = 8;
|
|
264
|
+
optional int32 payout_x = 9;
|
|
265
|
+
optional bool is_real_wagering = 10;
|
|
266
|
+
optional bool is_bonus_wagering = 11;
|
|
267
|
+
optional int32 repeat_count = 12;
|
|
268
|
+
optional int32 wager_games_list_id = 13;
|
|
269
|
+
optional string started_at = 14;
|
|
270
|
+
optional string finished_at = 15;
|
|
271
|
+
optional string show_previous_at = 16;
|
|
272
|
+
optional int32 claim_period_in_hours = 17;
|
|
273
|
+
optional int32 activation_period_in_hours = 18;
|
|
274
|
+
optional int32 wagering_period_in_hours = 19;
|
|
275
|
+
repeated BonusReward rewards = 21;
|
|
276
|
+
repeated BetsRange bets_range = 22;
|
|
277
|
+
optional string type_data = 23;
|
|
278
|
+
repeated GameItem wager_games = 24;
|
|
279
|
+
optional string slug = 25;
|
|
280
|
+
optional string category = 26;
|
|
281
|
+
optional string mobile_image = 27;
|
|
282
|
+
optional string mobile_image_cdn = 28;
|
|
283
|
+
optional string wager_balance_priority = 29;
|
|
284
|
+
optional string portrait_image = 30;
|
|
285
|
+
optional string portrait_image_cdn = 31;
|
|
286
|
+
optional string content = 33;
|
|
287
|
+
}
|
|
288
|
+
message SingleBonusResponse {
|
|
289
|
+
SingleBonusItem data = 1;
|
|
290
|
+
}
|
|
250
291
|
message BonusItemsResponse {
|
|
251
292
|
repeated BonusItem items = 1;
|
|
252
293
|
optional int32 total_pages = 2;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -324,6 +324,17 @@ function deserialize_bonus_GetFileRequest(buffer_arg) {
|
|
|
324
324
|
return bonus_bonus_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
+
function serialize_bonus_GetSingleBonusByIdRequest(arg) {
|
|
328
|
+
if (!(arg instanceof bonus_bonus_pb.GetSingleBonusByIdRequest)) {
|
|
329
|
+
throw new Error('Expected argument of type bonus.GetSingleBonusByIdRequest');
|
|
330
|
+
}
|
|
331
|
+
return Buffer.from(arg.serializeBinary());
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function deserialize_bonus_GetSingleBonusByIdRequest(buffer_arg) {
|
|
335
|
+
return bonus_bonus_pb.GetSingleBonusByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
336
|
+
}
|
|
337
|
+
|
|
327
338
|
function serialize_bonus_GetUserBonusHistoryRequest(arg) {
|
|
328
339
|
if (!(arg instanceof bonus_bonus_pb.GetUserBonusHistoryRequest)) {
|
|
329
340
|
throw new Error('Expected argument of type bonus.GetUserBonusHistoryRequest');
|
|
@@ -434,6 +445,17 @@ function deserialize_bonus_PongResponse(buffer_arg) {
|
|
|
434
445
|
return bonus_bonus_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
435
446
|
}
|
|
436
447
|
|
|
448
|
+
function serialize_bonus_SingleBonusResponse(arg) {
|
|
449
|
+
if (!(arg instanceof bonus_bonus_pb.SingleBonusResponse)) {
|
|
450
|
+
throw new Error('Expected argument of type bonus.SingleBonusResponse');
|
|
451
|
+
}
|
|
452
|
+
return Buffer.from(arg.serializeBinary());
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
function deserialize_bonus_SingleBonusResponse(buffer_arg) {
|
|
456
|
+
return bonus_bonus_pb.SingleBonusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
457
|
+
}
|
|
458
|
+
|
|
437
459
|
function serialize_bonus_UserBonusHistoryResponse(arg) {
|
|
438
460
|
if (!(arg instanceof bonus_bonus_pb.UserBonusHistoryResponse)) {
|
|
439
461
|
throw new Error('Expected argument of type bonus.UserBonusHistoryResponse');
|
|
@@ -558,6 +580,17 @@ createSingleBonus: {
|
|
|
558
580
|
responseSerialize: serialize_bonus_BonusResponse,
|
|
559
581
|
responseDeserialize: deserialize_bonus_BonusResponse,
|
|
560
582
|
},
|
|
583
|
+
readSingleBonusById: {
|
|
584
|
+
path: '/bonus.Bonus/readSingleBonusById',
|
|
585
|
+
requestStream: false,
|
|
586
|
+
responseStream: false,
|
|
587
|
+
requestType: bonus_bonus_pb.GetSingleBonusByIdRequest,
|
|
588
|
+
responseType: bonus_bonus_pb.SingleBonusResponse,
|
|
589
|
+
requestSerialize: serialize_bonus_GetSingleBonusByIdRequest,
|
|
590
|
+
requestDeserialize: deserialize_bonus_GetSingleBonusByIdRequest,
|
|
591
|
+
responseSerialize: serialize_bonus_SingleBonusResponse,
|
|
592
|
+
responseDeserialize: deserialize_bonus_SingleBonusResponse,
|
|
593
|
+
},
|
|
561
594
|
updateSingleBonus: {
|
|
562
595
|
path: '/bonus.Bonus/updateSingleBonus',
|
|
563
596
|
requestStream: true,
|