protobuf-platform 1.2.596 → 1.2.598
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/bet/bet.proto +72 -0
- package/bet/bet_grpc_pb.js +100 -0
- package/bet/bet_pb.js +2474 -0
- package/package.json +1 -1
package/bet/bet.proto
CHANGED
|
@@ -15,6 +15,12 @@ service Bet {
|
|
|
15
15
|
// Sport bets history.
|
|
16
16
|
rpc getSportBetsHistory(PaginationRequest) returns (SportBetsHistoryResponse);
|
|
17
17
|
|
|
18
|
+
// Sport catalog bootstrap (transaction-discovered current-state catalog).
|
|
19
|
+
rpc getSportCatalogBatch(SportCatalogCursorRequest) returns (SportCatalogSportBatchResponse);
|
|
20
|
+
rpc getCategoryCatalogBatch(SportCatalogCursorRequest) returns (SportCatalogCategoryBatchResponse);
|
|
21
|
+
rpc getTournamentCatalogBatch(SportCatalogCursorRequest) returns (SportCatalogTournamentBatchResponse);
|
|
22
|
+
rpc getEventCatalogBatch(SportCatalogCursorRequest) returns (SportCatalogEventBatchResponse);
|
|
23
|
+
|
|
18
24
|
// Dashboard
|
|
19
25
|
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
|
20
26
|
|
|
@@ -351,3 +357,69 @@ message SportBetsHistoryResponse {
|
|
|
351
357
|
optional int32 total_pages = 2;
|
|
352
358
|
optional int32 total_items = 3;
|
|
353
359
|
}
|
|
360
|
+
|
|
361
|
+
// Transaction-discovered sport catalog (bet-service owned). Keyset pagination: id > after_id ORDER BY id ASC.
|
|
362
|
+
message SportCatalogCursorRequest {
|
|
363
|
+
int32 after_id = 1; // Last consumed surrogate row id; 0 starts from beginning.
|
|
364
|
+
int32 limit = 2; // Requested batch size; implementation enforces a safe maximum.
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
message SportCatalogSportItem {
|
|
368
|
+
int32 id = 1; // bet-service surrogate catalog row id (cursor key).
|
|
369
|
+
string provider = 2;
|
|
370
|
+
string sport_id = 3; // Provider-native identity; must remain string.
|
|
371
|
+
optional string sport_name = 4;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
message SportCatalogCategoryItem {
|
|
375
|
+
int32 id = 1; // bet-service surrogate catalog row id (cursor key).
|
|
376
|
+
string provider = 2;
|
|
377
|
+
string category_id = 3; // Provider-native identity; must remain string.
|
|
378
|
+
string sport_id = 4; // Provider-native identity; must remain string.
|
|
379
|
+
optional string category_name = 5;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
message SportCatalogTournamentItem {
|
|
383
|
+
int32 id = 1; // bet-service surrogate catalog row id (cursor key).
|
|
384
|
+
string provider = 2;
|
|
385
|
+
string tournament_id = 3; // Provider-native identity; must remain string.
|
|
386
|
+
string category_id = 4; // Provider-native identity; must remain string.
|
|
387
|
+
string sport_id = 5; // Provider-native identity; must remain string.
|
|
388
|
+
optional string tournament_name = 6;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
message SportCatalogEventItem {
|
|
392
|
+
int32 id = 1; // bet-service surrogate catalog row id (cursor key).
|
|
393
|
+
string provider = 2;
|
|
394
|
+
string event_id = 3; // Provider-native identity; must remain string.
|
|
395
|
+
string tournament_id = 4; // Provider-native identity; must remain string.
|
|
396
|
+
string category_id = 5; // Provider-native identity; must remain string.
|
|
397
|
+
string sport_id = 6; // Provider-native identity; must remain string.
|
|
398
|
+
repeated string competitors = 7;
|
|
399
|
+
optional bool is_live = 8;
|
|
400
|
+
optional int64 scheduled_at = 9; // Provider event schedule; optional Unix timestamp.
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
message SportCatalogSportBatchResponse {
|
|
404
|
+
repeated SportCatalogSportItem items = 1;
|
|
405
|
+
int32 next_after_id = 2; // Last returned row id; equals request.after_id when items is empty.
|
|
406
|
+
bool has_more = 3;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
message SportCatalogCategoryBatchResponse {
|
|
410
|
+
repeated SportCatalogCategoryItem items = 1;
|
|
411
|
+
int32 next_after_id = 2;
|
|
412
|
+
bool has_more = 3;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
message SportCatalogTournamentBatchResponse {
|
|
416
|
+
repeated SportCatalogTournamentItem items = 1;
|
|
417
|
+
int32 next_after_id = 2;
|
|
418
|
+
bool has_more = 3;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
message SportCatalogEventBatchResponse {
|
|
422
|
+
repeated SportCatalogEventItem items = 1;
|
|
423
|
+
int32 next_after_id = 2;
|
|
424
|
+
bool has_more = 3;
|
|
425
|
+
}
|
package/bet/bet_grpc_pb.js
CHANGED
|
@@ -224,6 +224,61 @@ function deserialize_bet_SportBetsHistoryResponse(buffer_arg) {
|
|
|
224
224
|
return bet_pb.SportBetsHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
function serialize_bet_SportCatalogCategoryBatchResponse(arg) {
|
|
228
|
+
if (!(arg instanceof bet_pb.SportCatalogCategoryBatchResponse)) {
|
|
229
|
+
throw new Error('Expected argument of type bet.SportCatalogCategoryBatchResponse');
|
|
230
|
+
}
|
|
231
|
+
return Buffer.from(arg.serializeBinary());
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
function deserialize_bet_SportCatalogCategoryBatchResponse(buffer_arg) {
|
|
235
|
+
return bet_pb.SportCatalogCategoryBatchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
function serialize_bet_SportCatalogCursorRequest(arg) {
|
|
239
|
+
if (!(arg instanceof bet_pb.SportCatalogCursorRequest)) {
|
|
240
|
+
throw new Error('Expected argument of type bet.SportCatalogCursorRequest');
|
|
241
|
+
}
|
|
242
|
+
return Buffer.from(arg.serializeBinary());
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
function deserialize_bet_SportCatalogCursorRequest(buffer_arg) {
|
|
246
|
+
return bet_pb.SportCatalogCursorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
function serialize_bet_SportCatalogEventBatchResponse(arg) {
|
|
250
|
+
if (!(arg instanceof bet_pb.SportCatalogEventBatchResponse)) {
|
|
251
|
+
throw new Error('Expected argument of type bet.SportCatalogEventBatchResponse');
|
|
252
|
+
}
|
|
253
|
+
return Buffer.from(arg.serializeBinary());
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
function deserialize_bet_SportCatalogEventBatchResponse(buffer_arg) {
|
|
257
|
+
return bet_pb.SportCatalogEventBatchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function serialize_bet_SportCatalogSportBatchResponse(arg) {
|
|
261
|
+
if (!(arg instanceof bet_pb.SportCatalogSportBatchResponse)) {
|
|
262
|
+
throw new Error('Expected argument of type bet.SportCatalogSportBatchResponse');
|
|
263
|
+
}
|
|
264
|
+
return Buffer.from(arg.serializeBinary());
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
function deserialize_bet_SportCatalogSportBatchResponse(buffer_arg) {
|
|
268
|
+
return bet_pb.SportCatalogSportBatchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function serialize_bet_SportCatalogTournamentBatchResponse(arg) {
|
|
272
|
+
if (!(arg instanceof bet_pb.SportCatalogTournamentBatchResponse)) {
|
|
273
|
+
throw new Error('Expected argument of type bet.SportCatalogTournamentBatchResponse');
|
|
274
|
+
}
|
|
275
|
+
return Buffer.from(arg.serializeBinary());
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function deserialize_bet_SportCatalogTournamentBatchResponse(buffer_arg) {
|
|
279
|
+
return bet_pb.SportCatalogTournamentBatchResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
|
+
}
|
|
281
|
+
|
|
227
282
|
function serialize_bet_TopWinByMultiplierRequest(arg) {
|
|
228
283
|
if (!(arg instanceof bet_pb.TopWinByMultiplierRequest)) {
|
|
229
284
|
throw new Error('Expected argument of type bet.TopWinByMultiplierRequest');
|
|
@@ -307,6 +362,51 @@ getSportBetsHistory: {
|
|
|
307
362
|
responseSerialize: serialize_bet_SportBetsHistoryResponse,
|
|
308
363
|
responseDeserialize: deserialize_bet_SportBetsHistoryResponse,
|
|
309
364
|
},
|
|
365
|
+
// Sport catalog bootstrap (transaction-discovered current-state catalog).
|
|
366
|
+
getSportCatalogBatch: {
|
|
367
|
+
path: '/bet.Bet/getSportCatalogBatch',
|
|
368
|
+
requestStream: false,
|
|
369
|
+
responseStream: false,
|
|
370
|
+
requestType: bet_pb.SportCatalogCursorRequest,
|
|
371
|
+
responseType: bet_pb.SportCatalogSportBatchResponse,
|
|
372
|
+
requestSerialize: serialize_bet_SportCatalogCursorRequest,
|
|
373
|
+
requestDeserialize: deserialize_bet_SportCatalogCursorRequest,
|
|
374
|
+
responseSerialize: serialize_bet_SportCatalogSportBatchResponse,
|
|
375
|
+
responseDeserialize: deserialize_bet_SportCatalogSportBatchResponse,
|
|
376
|
+
},
|
|
377
|
+
getCategoryCatalogBatch: {
|
|
378
|
+
path: '/bet.Bet/getCategoryCatalogBatch',
|
|
379
|
+
requestStream: false,
|
|
380
|
+
responseStream: false,
|
|
381
|
+
requestType: bet_pb.SportCatalogCursorRequest,
|
|
382
|
+
responseType: bet_pb.SportCatalogCategoryBatchResponse,
|
|
383
|
+
requestSerialize: serialize_bet_SportCatalogCursorRequest,
|
|
384
|
+
requestDeserialize: deserialize_bet_SportCatalogCursorRequest,
|
|
385
|
+
responseSerialize: serialize_bet_SportCatalogCategoryBatchResponse,
|
|
386
|
+
responseDeserialize: deserialize_bet_SportCatalogCategoryBatchResponse,
|
|
387
|
+
},
|
|
388
|
+
getTournamentCatalogBatch: {
|
|
389
|
+
path: '/bet.Bet/getTournamentCatalogBatch',
|
|
390
|
+
requestStream: false,
|
|
391
|
+
responseStream: false,
|
|
392
|
+
requestType: bet_pb.SportCatalogCursorRequest,
|
|
393
|
+
responseType: bet_pb.SportCatalogTournamentBatchResponse,
|
|
394
|
+
requestSerialize: serialize_bet_SportCatalogCursorRequest,
|
|
395
|
+
requestDeserialize: deserialize_bet_SportCatalogCursorRequest,
|
|
396
|
+
responseSerialize: serialize_bet_SportCatalogTournamentBatchResponse,
|
|
397
|
+
responseDeserialize: deserialize_bet_SportCatalogTournamentBatchResponse,
|
|
398
|
+
},
|
|
399
|
+
getEventCatalogBatch: {
|
|
400
|
+
path: '/bet.Bet/getEventCatalogBatch',
|
|
401
|
+
requestStream: false,
|
|
402
|
+
responseStream: false,
|
|
403
|
+
requestType: bet_pb.SportCatalogCursorRequest,
|
|
404
|
+
responseType: bet_pb.SportCatalogEventBatchResponse,
|
|
405
|
+
requestSerialize: serialize_bet_SportCatalogCursorRequest,
|
|
406
|
+
requestDeserialize: deserialize_bet_SportCatalogCursorRequest,
|
|
407
|
+
responseSerialize: serialize_bet_SportCatalogEventBatchResponse,
|
|
408
|
+
responseDeserialize: deserialize_bet_SportCatalogEventBatchResponse,
|
|
409
|
+
},
|
|
310
410
|
// Dashboard
|
|
311
411
|
getDashboardInfo: {
|
|
312
412
|
path: '/bet.Bet/getDashboardInfo',
|