protobuf-platform 1.2.568 → 1.2.570
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 +45 -0
- package/game/game_grpc_pb.js +110 -0
- package/game/game_pb.js +1829 -26
- package/package.json +1 -1
package/game/game.proto
CHANGED
|
@@ -16,6 +16,8 @@ service Game {
|
|
|
16
16
|
rpc deleteSingleCategory(GetCategoryRequest) returns (CategoryStatusResponse);
|
|
17
17
|
rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
|
|
18
18
|
rpc updateCategoriesInBunch(ItemsBunchRequest) returns (CategoryStatusResponse);
|
|
19
|
+
rpc getCategoryTranslation(GameEntityTranslationRequest) returns (GameEntityTranslationResponse);
|
|
20
|
+
rpc setCategoryTranslation(GameEntityTranslationRequest) returns (CategoryStatusResponse);
|
|
19
21
|
//Collections
|
|
20
22
|
rpc createSingleCollection(stream CollectionRequest) returns (CollectionResponse);
|
|
21
23
|
rpc readSingleCollection(GetCollectionRequest) returns (CollectionResponse);
|
|
@@ -26,6 +28,8 @@ service Game {
|
|
|
26
28
|
rpc removeGamesFromCollection(CollectionGamesRequest) returns (CollectionStatusResponse);
|
|
27
29
|
rpc updateGamesPriorityInCollection(GamesPriorityRequest) returns (CollectionStatusResponse);
|
|
28
30
|
rpc updateCollectionsInBunch(ItemsBunchRequest) returns (CollectionStatusResponse);
|
|
31
|
+
rpc getCollectionTranslation(GameEntityTranslationRequest) returns (GameEntityTranslationResponse);
|
|
32
|
+
rpc setCollectionTranslation(GameEntityTranslationRequest) returns (CollectionStatusResponse);
|
|
29
33
|
//Tags
|
|
30
34
|
rpc createSingleTag(stream TagRequest) returns (TagResponse);
|
|
31
35
|
rpc readSingleTag(GetTagRequest) returns (TagResponse);
|
|
@@ -36,6 +40,8 @@ service Game {
|
|
|
36
40
|
rpc removeGamesFromTag(TagGamesRequest) returns (TagStatusResponse);
|
|
37
41
|
rpc updateGamesPriorityInTag(GamesPriorityRequest) returns (TagStatusResponse);
|
|
38
42
|
rpc updateTagsInBunch(ItemsBunchRequest) returns (TagStatusResponse);
|
|
43
|
+
rpc getTagTranslation(GameEntityTranslationRequest) returns (GameEntityTranslationResponse);
|
|
44
|
+
rpc setTagTranslation(GameEntityTranslationRequest) returns (TagStatusResponse);
|
|
39
45
|
//Providers
|
|
40
46
|
rpc createSingleProvider(stream ProviderRequest) returns (ProviderResponse);
|
|
41
47
|
rpc readSingleProvider(GetProviderRequest) returns (ProviderResponse);
|
|
@@ -45,6 +51,8 @@ service Game {
|
|
|
45
51
|
rpc updateProvidersInBunch(ItemsBunchRequest) returns (ProviderStatusResponse);
|
|
46
52
|
rpc syncProvidersImages(SyncImagesRequest) returns (ProviderStatusResponse);
|
|
47
53
|
rpc normalizeDuplicateProviders(NormalizeDuplicateProvidersRequest) returns (NormalizeDuplicateProvidersResponse);
|
|
54
|
+
rpc getProviderTranslation(GameEntityTranslationRequest) returns (GameEntityTranslationResponse);
|
|
55
|
+
rpc setProviderTranslation(GameEntityTranslationRequest) returns (ProviderStatusResponse);
|
|
48
56
|
//Games
|
|
49
57
|
rpc parseGames(ParseGamesRequest) returns (ParseGamesResponse);
|
|
50
58
|
rpc readSingleGame(GetGameRequest) returns (GameResponse);
|
|
@@ -171,6 +179,7 @@ message GameSearchRequest {
|
|
|
171
179
|
repeated int32 game_ids = 15;
|
|
172
180
|
optional string query = 16;
|
|
173
181
|
optional string type = 17;
|
|
182
|
+
optional string locale = 18;
|
|
174
183
|
}
|
|
175
184
|
message WagerSearchRequest {
|
|
176
185
|
optional int32 wager_id = 1;
|
|
@@ -219,22 +228,26 @@ message ProviderSearchRequest {
|
|
|
219
228
|
optional int32 is_active = 2;
|
|
220
229
|
optional string geo = 3;
|
|
221
230
|
repeated int32 ids = 4;
|
|
231
|
+
optional string locale = 5;
|
|
222
232
|
}
|
|
223
233
|
message CategorySearchRequest {
|
|
224
234
|
optional string category_title = 1;
|
|
225
235
|
optional int32 is_active = 2;
|
|
226
236
|
repeated int32 ids = 3;
|
|
237
|
+
optional string locale = 4;
|
|
227
238
|
}
|
|
228
239
|
message CollectionSearchRequest {
|
|
229
240
|
optional string collection_title = 1;
|
|
230
241
|
optional int32 is_active = 2;
|
|
231
242
|
repeated int32 category_ids = 3;
|
|
232
243
|
repeated int32 ids = 4;
|
|
244
|
+
optional string locale = 5;
|
|
233
245
|
}
|
|
234
246
|
message TagSearchRequest {
|
|
235
247
|
optional string tag_title = 1;
|
|
236
248
|
optional int32 is_active = 2;
|
|
237
249
|
repeated int32 ids = 3;
|
|
250
|
+
optional string locale = 4;
|
|
238
251
|
}
|
|
239
252
|
message ItemsBunchRequest {
|
|
240
253
|
repeated int32 ids = 1;
|
|
@@ -253,6 +266,21 @@ message EntityFileMetadata {
|
|
|
253
266
|
string file_type = 3;
|
|
254
267
|
}
|
|
255
268
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
|
269
|
+
//Entity Translations
|
|
270
|
+
message GameEntityTranslationItem {
|
|
271
|
+
string locale = 1;
|
|
272
|
+
optional string title = 2;
|
|
273
|
+
optional string description = 3;
|
|
274
|
+
}
|
|
275
|
+
message GameEntityTranslationRequest {
|
|
276
|
+
int32 entity_id = 1;
|
|
277
|
+
string locale = 2;
|
|
278
|
+
optional string title = 3;
|
|
279
|
+
optional string description = 4;
|
|
280
|
+
}
|
|
281
|
+
message GameEntityTranslationResponse {
|
|
282
|
+
GameEntityTranslationItem data = 1;
|
|
283
|
+
}
|
|
256
284
|
//Category CRUD
|
|
257
285
|
message CategoryItem {
|
|
258
286
|
optional int32 id = 1;
|
|
@@ -265,6 +293,7 @@ message CategoryItem {
|
|
|
265
293
|
optional int32 count_of_collections = 8;
|
|
266
294
|
optional string icon = 9;
|
|
267
295
|
optional string icon_cdn = 10;
|
|
296
|
+
repeated GameEntityTranslationItem translations = 11;
|
|
268
297
|
}
|
|
269
298
|
//Category CRUD | Requests
|
|
270
299
|
message CategoryRequest {
|
|
@@ -285,6 +314,7 @@ message CategoryItemRequest {
|
|
|
285
314
|
}
|
|
286
315
|
message GetCategoryRequest {
|
|
287
316
|
int32 id = 1;
|
|
317
|
+
optional string locale = 2;
|
|
288
318
|
}
|
|
289
319
|
//Category CRUD | Responses
|
|
290
320
|
message CategoryResponse {
|
|
@@ -312,6 +342,7 @@ message CollectionItem {
|
|
|
312
342
|
optional int32 count_of_games = 9;
|
|
313
343
|
optional string icon = 10;
|
|
314
344
|
optional string icon_cdn = 11;
|
|
345
|
+
repeated GameEntityTranslationItem translations = 12;
|
|
315
346
|
}
|
|
316
347
|
//Collection CRUD | Requests
|
|
317
348
|
message CollectionRequest {
|
|
@@ -333,6 +364,7 @@ message CollectionItemRequest {
|
|
|
333
364
|
}
|
|
334
365
|
message GetCollectionRequest {
|
|
335
366
|
int32 id = 1;
|
|
367
|
+
optional string locale = 2;
|
|
336
368
|
}
|
|
337
369
|
//Collection CRUD | Responses
|
|
338
370
|
message CollectionResponse {
|
|
@@ -364,6 +396,7 @@ message TagItem {
|
|
|
364
396
|
optional int32 count_of_games = 8;
|
|
365
397
|
optional string icon = 9;
|
|
366
398
|
optional string icon_cdn = 10;
|
|
399
|
+
repeated GameEntityTranslationItem translations = 11;
|
|
367
400
|
}
|
|
368
401
|
//Tag CRUD | Requests
|
|
369
402
|
message TagRequest {
|
|
@@ -384,6 +417,7 @@ message TagItemRequest {
|
|
|
384
417
|
}
|
|
385
418
|
message GetTagRequest {
|
|
386
419
|
int32 id = 1;
|
|
420
|
+
optional string locale = 2;
|
|
387
421
|
}
|
|
388
422
|
//Tag CRUD | Responses
|
|
389
423
|
message TagResponse {
|
|
@@ -417,6 +451,7 @@ message ProviderItem {
|
|
|
417
451
|
optional int32 is_deactivated = 10;
|
|
418
452
|
optional string icon = 11;
|
|
419
453
|
optional string icon_cdn = 12;
|
|
454
|
+
repeated GameEntityTranslationItem translations = 13;
|
|
420
455
|
}
|
|
421
456
|
//Provider CRUD | Requests
|
|
422
457
|
message ProviderRequest {
|
|
@@ -439,6 +474,7 @@ message ProviderItemRequest {
|
|
|
439
474
|
}
|
|
440
475
|
message GetProviderRequest {
|
|
441
476
|
int32 id = 1;
|
|
477
|
+
optional string locale = 2;
|
|
442
478
|
}
|
|
443
479
|
//Provider CRUD | Responses
|
|
444
480
|
message ProviderResponse {
|
|
@@ -583,6 +619,7 @@ message GameItemRequest {
|
|
|
583
619
|
message GetGameRequest {
|
|
584
620
|
int32 id = 1;
|
|
585
621
|
optional int32 admin_side = 2;
|
|
622
|
+
optional string locale = 3;
|
|
586
623
|
}
|
|
587
624
|
message GameRelationsRequest {
|
|
588
625
|
int32 game_id = 1;
|
|
@@ -649,6 +686,7 @@ message SearchGamesFullRequest {
|
|
|
649
686
|
optional bool favourites = 10;
|
|
650
687
|
optional bool last_played = 11;
|
|
651
688
|
optional int32 user_id = 12;
|
|
689
|
+
optional string locale = 13;
|
|
652
690
|
}
|
|
653
691
|
message SearchGamesFullGameSection {
|
|
654
692
|
repeated GameItem items = 1;
|
|
@@ -688,6 +726,7 @@ message SearchGamesIntoCollectionsRequest {
|
|
|
688
726
|
optional bool is_mobile = 5;
|
|
689
727
|
optional bool admin_side = 6;
|
|
690
728
|
optional string game_title = 7;
|
|
729
|
+
optional string locale = 8;
|
|
691
730
|
}
|
|
692
731
|
message SearchGamesIntoTagsRequest {
|
|
693
732
|
repeated string tag_slugs = 1;
|
|
@@ -697,6 +736,7 @@ message SearchGamesIntoTagsRequest {
|
|
|
697
736
|
optional bool is_mobile = 5;
|
|
698
737
|
optional bool admin_side = 6;
|
|
699
738
|
optional string game_title = 7;
|
|
739
|
+
optional string locale = 8;
|
|
700
740
|
}
|
|
701
741
|
message SearchGamesIntoProvidersRequest {
|
|
702
742
|
repeated string provider_slugs = 1;
|
|
@@ -705,6 +745,7 @@ message SearchGamesIntoProvidersRequest {
|
|
|
705
745
|
optional int32 offset = 4;
|
|
706
746
|
optional bool is_mobile = 5;
|
|
707
747
|
optional bool admin_side = 6;
|
|
748
|
+
optional string locale = 7;
|
|
708
749
|
}
|
|
709
750
|
message SearchGamesIntoCategoriesRequest {
|
|
710
751
|
repeated string category_slugs = 1;
|
|
@@ -713,6 +754,7 @@ message SearchGamesIntoCategoriesRequest {
|
|
|
713
754
|
optional int32 offset = 4;
|
|
714
755
|
optional bool is_mobile = 5;
|
|
715
756
|
optional bool admin_side = 6;
|
|
757
|
+
optional string locale = 7;
|
|
716
758
|
}
|
|
717
759
|
message GamesPriorityRequest {
|
|
718
760
|
int32 id = 1;
|
|
@@ -840,6 +882,7 @@ message GamePoorItemsResponse {
|
|
|
840
882
|
}
|
|
841
883
|
message ScopeRequest {
|
|
842
884
|
string data = 1;
|
|
885
|
+
optional string locale = 2;
|
|
843
886
|
}
|
|
844
887
|
message ScopeResponse {
|
|
845
888
|
string data = 1;
|
|
@@ -850,12 +893,14 @@ message TournamentGamesRequest {
|
|
|
850
893
|
}
|
|
851
894
|
message ProvidersIds {
|
|
852
895
|
repeated int32 ids = 1;
|
|
896
|
+
optional string locale = 2;
|
|
853
897
|
}
|
|
854
898
|
message ProvidersSlugs {
|
|
855
899
|
repeated string slugs = 1;
|
|
856
900
|
optional string geo = 2;
|
|
857
901
|
optional bool admin_side = 3;
|
|
858
902
|
optional bool with_games_count = 4;
|
|
903
|
+
optional string locale = 5;
|
|
859
904
|
}
|
|
860
905
|
message ProviderPoorItemsResponse {
|
|
861
906
|
repeated ProviderItem items = 1;
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -345,6 +345,28 @@ function deserialize_game_GameConfigCheckResponse(buffer_arg) {
|
|
|
345
345
|
return game_pb.GameConfigCheckResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
+
function serialize_game_GameEntityTranslationRequest(arg) {
|
|
349
|
+
if (!(arg instanceof game_pb.GameEntityTranslationRequest)) {
|
|
350
|
+
throw new Error('Expected argument of type game.GameEntityTranslationRequest');
|
|
351
|
+
}
|
|
352
|
+
return Buffer.from(arg.serializeBinary());
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
function deserialize_game_GameEntityTranslationRequest(buffer_arg) {
|
|
356
|
+
return game_pb.GameEntityTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
function serialize_game_GameEntityTranslationResponse(arg) {
|
|
360
|
+
if (!(arg instanceof game_pb.GameEntityTranslationResponse)) {
|
|
361
|
+
throw new Error('Expected argument of type game.GameEntityTranslationResponse');
|
|
362
|
+
}
|
|
363
|
+
return Buffer.from(arg.serializeBinary());
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
function deserialize_game_GameEntityTranslationResponse(buffer_arg) {
|
|
367
|
+
return game_pb.GameEntityTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
368
|
+
}
|
|
369
|
+
|
|
348
370
|
function serialize_game_GameImagesParsingTechnicalResponse(arg) {
|
|
349
371
|
if (!(arg instanceof game_pb.GameImagesParsingTechnicalResponse)) {
|
|
350
372
|
throw new Error('Expected argument of type game.GameImagesParsingTechnicalResponse');
|
|
@@ -1439,6 +1461,28 @@ createSingleCategory: {
|
|
|
1439
1461
|
responseSerialize: serialize_game_CategoryStatusResponse,
|
|
1440
1462
|
responseDeserialize: deserialize_game_CategoryStatusResponse,
|
|
1441
1463
|
},
|
|
1464
|
+
getCategoryTranslation: {
|
|
1465
|
+
path: '/game.Game/getCategoryTranslation',
|
|
1466
|
+
requestStream: false,
|
|
1467
|
+
responseStream: false,
|
|
1468
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1469
|
+
responseType: game_pb.GameEntityTranslationResponse,
|
|
1470
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1471
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1472
|
+
responseSerialize: serialize_game_GameEntityTranslationResponse,
|
|
1473
|
+
responseDeserialize: deserialize_game_GameEntityTranslationResponse,
|
|
1474
|
+
},
|
|
1475
|
+
setCategoryTranslation: {
|
|
1476
|
+
path: '/game.Game/setCategoryTranslation',
|
|
1477
|
+
requestStream: false,
|
|
1478
|
+
responseStream: false,
|
|
1479
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1480
|
+
responseType: game_pb.CategoryStatusResponse,
|
|
1481
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1482
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1483
|
+
responseSerialize: serialize_game_CategoryStatusResponse,
|
|
1484
|
+
responseDeserialize: deserialize_game_CategoryStatusResponse,
|
|
1485
|
+
},
|
|
1442
1486
|
// Collections
|
|
1443
1487
|
createSingleCollection: {
|
|
1444
1488
|
path: '/game.Game/createSingleCollection',
|
|
@@ -1539,6 +1583,28 @@ createSingleCollection: {
|
|
|
1539
1583
|
responseSerialize: serialize_game_CollectionStatusResponse,
|
|
1540
1584
|
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
|
1541
1585
|
},
|
|
1586
|
+
getCollectionTranslation: {
|
|
1587
|
+
path: '/game.Game/getCollectionTranslation',
|
|
1588
|
+
requestStream: false,
|
|
1589
|
+
responseStream: false,
|
|
1590
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1591
|
+
responseType: game_pb.GameEntityTranslationResponse,
|
|
1592
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1593
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1594
|
+
responseSerialize: serialize_game_GameEntityTranslationResponse,
|
|
1595
|
+
responseDeserialize: deserialize_game_GameEntityTranslationResponse,
|
|
1596
|
+
},
|
|
1597
|
+
setCollectionTranslation: {
|
|
1598
|
+
path: '/game.Game/setCollectionTranslation',
|
|
1599
|
+
requestStream: false,
|
|
1600
|
+
responseStream: false,
|
|
1601
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1602
|
+
responseType: game_pb.CollectionStatusResponse,
|
|
1603
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1604
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1605
|
+
responseSerialize: serialize_game_CollectionStatusResponse,
|
|
1606
|
+
responseDeserialize: deserialize_game_CollectionStatusResponse,
|
|
1607
|
+
},
|
|
1542
1608
|
// Tags
|
|
1543
1609
|
createSingleTag: {
|
|
1544
1610
|
path: '/game.Game/createSingleTag',
|
|
@@ -1639,6 +1705,28 @@ createSingleTag: {
|
|
|
1639
1705
|
responseSerialize: serialize_game_TagStatusResponse,
|
|
1640
1706
|
responseDeserialize: deserialize_game_TagStatusResponse,
|
|
1641
1707
|
},
|
|
1708
|
+
getTagTranslation: {
|
|
1709
|
+
path: '/game.Game/getTagTranslation',
|
|
1710
|
+
requestStream: false,
|
|
1711
|
+
responseStream: false,
|
|
1712
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1713
|
+
responseType: game_pb.GameEntityTranslationResponse,
|
|
1714
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1715
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1716
|
+
responseSerialize: serialize_game_GameEntityTranslationResponse,
|
|
1717
|
+
responseDeserialize: deserialize_game_GameEntityTranslationResponse,
|
|
1718
|
+
},
|
|
1719
|
+
setTagTranslation: {
|
|
1720
|
+
path: '/game.Game/setTagTranslation',
|
|
1721
|
+
requestStream: false,
|
|
1722
|
+
responseStream: false,
|
|
1723
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1724
|
+
responseType: game_pb.TagStatusResponse,
|
|
1725
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1726
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1727
|
+
responseSerialize: serialize_game_TagStatusResponse,
|
|
1728
|
+
responseDeserialize: deserialize_game_TagStatusResponse,
|
|
1729
|
+
},
|
|
1642
1730
|
// Providers
|
|
1643
1731
|
createSingleProvider: {
|
|
1644
1732
|
path: '/game.Game/createSingleProvider',
|
|
@@ -1728,6 +1816,28 @@ createSingleProvider: {
|
|
|
1728
1816
|
responseSerialize: serialize_game_NormalizeDuplicateProvidersResponse,
|
|
1729
1817
|
responseDeserialize: deserialize_game_NormalizeDuplicateProvidersResponse,
|
|
1730
1818
|
},
|
|
1819
|
+
getProviderTranslation: {
|
|
1820
|
+
path: '/game.Game/getProviderTranslation',
|
|
1821
|
+
requestStream: false,
|
|
1822
|
+
responseStream: false,
|
|
1823
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1824
|
+
responseType: game_pb.GameEntityTranslationResponse,
|
|
1825
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1826
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1827
|
+
responseSerialize: serialize_game_GameEntityTranslationResponse,
|
|
1828
|
+
responseDeserialize: deserialize_game_GameEntityTranslationResponse,
|
|
1829
|
+
},
|
|
1830
|
+
setProviderTranslation: {
|
|
1831
|
+
path: '/game.Game/setProviderTranslation',
|
|
1832
|
+
requestStream: false,
|
|
1833
|
+
responseStream: false,
|
|
1834
|
+
requestType: game_pb.GameEntityTranslationRequest,
|
|
1835
|
+
responseType: game_pb.ProviderStatusResponse,
|
|
1836
|
+
requestSerialize: serialize_game_GameEntityTranslationRequest,
|
|
1837
|
+
requestDeserialize: deserialize_game_GameEntityTranslationRequest,
|
|
1838
|
+
responseSerialize: serialize_game_ProviderStatusResponse,
|
|
1839
|
+
responseDeserialize: deserialize_game_ProviderStatusResponse,
|
|
1840
|
+
},
|
|
1731
1841
|
// Games
|
|
1732
1842
|
parseGames: {
|
|
1733
1843
|
path: '/game.Game/parseGames',
|