protobuf-platform 1.2.622 → 1.2.624
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 +8 -1
- package/game/game_grpc_pb.js +34 -0
- package/game/game_pb.js +200 -0
- package/package.json +1 -1
package/game/game.proto
CHANGED
|
@@ -110,6 +110,8 @@ service Game {
|
|
|
110
110
|
rpc resolveGameUuidsForBetHistoryFilter(ResolveGameUuidsForBetHistoryFilterRequest) returns (ResolveGameUuidsForBetHistoryFilterResponse);
|
|
111
111
|
/** Lightweight batch read for Category → Collections hierarchy enrichment. */
|
|
112
112
|
rpc getCategoryHierarchyByIds(CategoryHierarchyRequest) returns (CategoryHierarchyResponse);
|
|
113
|
+
/** Public active category with active direct collections; unknown/inactive slugs return NOT_FOUND. */
|
|
114
|
+
rpc getCategoryBySlug(GetCategoryBySlugRequest) returns (CategoryHierarchyItem);
|
|
113
115
|
rpc getProviderCatalogBatch(CatalogCursorRequest) returns (ProviderCatalogBatchResponse);
|
|
114
116
|
rpc getGameCatalogBatch(CatalogCursorRequest) returns (GameCatalogBatchResponse);
|
|
115
117
|
//Wager lists
|
|
@@ -1323,6 +1325,11 @@ message TagSnapshotItem {
|
|
|
1323
1325
|
message TagSnapshotItemsResponse {
|
|
1324
1326
|
repeated TagSnapshotItem items = 1;
|
|
1325
1327
|
}
|
|
1328
|
+
/** Public category lookup with optional localized display metadata. */
|
|
1329
|
+
message GetCategoryBySlugRequest {
|
|
1330
|
+
string slug = 1;
|
|
1331
|
+
optional string locale = 2;
|
|
1332
|
+
}
|
|
1326
1333
|
/** Lightweight batch read for Category → Collections hierarchy enrichment. */
|
|
1327
1334
|
message CategoryHierarchyRequest {
|
|
1328
1335
|
repeated int32 ids = 1;
|
|
@@ -1349,4 +1356,4 @@ message CategoryHierarchyItem {
|
|
|
1349
1356
|
}
|
|
1350
1357
|
message CategoryHierarchyResponse {
|
|
1351
1358
|
repeated CategoryHierarchyItem items = 1;
|
|
1352
|
-
}
|
|
1359
|
+
}
|
package/game/game_grpc_pb.js
CHANGED
|
@@ -103,6 +103,17 @@ function deserialize_game_CatalogCursorRequest(buffer_arg) {
|
|
|
103
103
|
return game_pb.CatalogCursorRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
function serialize_game_CategoryHierarchyItem(arg) {
|
|
107
|
+
if (!(arg instanceof game_pb.CategoryHierarchyItem)) {
|
|
108
|
+
throw new Error('Expected argument of type game.CategoryHierarchyItem');
|
|
109
|
+
}
|
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function deserialize_game_CategoryHierarchyItem(buffer_arg) {
|
|
114
|
+
return game_pb.CategoryHierarchyItem.deserializeBinary(new Uint8Array(buffer_arg));
|
|
115
|
+
}
|
|
116
|
+
|
|
106
117
|
function serialize_game_CategoryHierarchyRequest(arg) {
|
|
107
118
|
if (!(arg instanceof game_pb.CategoryHierarchyRequest)) {
|
|
108
119
|
throw new Error('Expected argument of type game.CategoryHierarchyRequest');
|
|
@@ -598,6 +609,17 @@ function deserialize_game_GetCashBackListRequest(buffer_arg) {
|
|
|
598
609
|
return game_pb.GetCashBackListRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
599
610
|
}
|
|
600
611
|
|
|
612
|
+
function serialize_game_GetCategoryBySlugRequest(arg) {
|
|
613
|
+
if (!(arg instanceof game_pb.GetCategoryBySlugRequest)) {
|
|
614
|
+
throw new Error('Expected argument of type game.GetCategoryBySlugRequest');
|
|
615
|
+
}
|
|
616
|
+
return Buffer.from(arg.serializeBinary());
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
function deserialize_game_GetCategoryBySlugRequest(buffer_arg) {
|
|
620
|
+
return game_pb.GetCategoryBySlugRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
621
|
+
}
|
|
622
|
+
|
|
601
623
|
function serialize_game_GetCategoryRequest(arg) {
|
|
602
624
|
if (!(arg instanceof game_pb.GetCategoryRequest)) {
|
|
603
625
|
throw new Error('Expected argument of type game.GetCategoryRequest');
|
|
@@ -2505,6 +2527,18 @@ getCategoryHierarchyByIds: {
|
|
|
2505
2527
|
responseSerialize: serialize_game_CategoryHierarchyResponse,
|
|
2506
2528
|
responseDeserialize: deserialize_game_CategoryHierarchyResponse,
|
|
2507
2529
|
},
|
|
2530
|
+
// * Public active category with active direct collections; unknown/inactive slugs return NOT_FOUND.
|
|
2531
|
+
getCategoryBySlug: {
|
|
2532
|
+
path: '/game.Game/getCategoryBySlug',
|
|
2533
|
+
requestStream: false,
|
|
2534
|
+
responseStream: false,
|
|
2535
|
+
requestType: game_pb.GetCategoryBySlugRequest,
|
|
2536
|
+
responseType: game_pb.CategoryHierarchyItem,
|
|
2537
|
+
requestSerialize: serialize_game_GetCategoryBySlugRequest,
|
|
2538
|
+
requestDeserialize: deserialize_game_GetCategoryBySlugRequest,
|
|
2539
|
+
responseSerialize: serialize_game_CategoryHierarchyItem,
|
|
2540
|
+
responseDeserialize: deserialize_game_CategoryHierarchyItem,
|
|
2541
|
+
},
|
|
2508
2542
|
getProviderCatalogBatch: {
|
|
2509
2543
|
path: '/game.Game/getProviderCatalogBatch',
|
|
2510
2544
|
requestStream: false,
|
package/game/game_pb.js
CHANGED
|
@@ -109,6 +109,7 @@ goog.exportSymbol('proto.game.GeoRestrictionRequest', null, global);
|
|
|
109
109
|
goog.exportSymbol('proto.game.GeoRestrictionResponse', null, global);
|
|
110
110
|
goog.exportSymbol('proto.game.GeoRestrictionStatusResponse', null, global);
|
|
111
111
|
goog.exportSymbol('proto.game.GetCashBackListRequest', null, global);
|
|
112
|
+
goog.exportSymbol('proto.game.GetCategoryBySlugRequest', null, global);
|
|
112
113
|
goog.exportSymbol('proto.game.GetCategoryRequest', null, global);
|
|
113
114
|
goog.exportSymbol('proto.game.GetCollectionRequest', null, global);
|
|
114
115
|
goog.exportSymbol('proto.game.GetCollectionSnapshotsByIdsRequest', null, global);
|
|
@@ -4035,6 +4036,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
4035
4036
|
*/
|
|
4036
4037
|
proto.game.TagSnapshotItemsResponse.displayName = 'proto.game.TagSnapshotItemsResponse';
|
|
4037
4038
|
}
|
|
4039
|
+
/**
|
|
4040
|
+
* Generated by JsPbCodeGenerator.
|
|
4041
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
4042
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
4043
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
4044
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
4045
|
+
* valid.
|
|
4046
|
+
* @extends {jspb.Message}
|
|
4047
|
+
* @constructor
|
|
4048
|
+
*/
|
|
4049
|
+
proto.game.GetCategoryBySlugRequest = function(opt_data) {
|
|
4050
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
4051
|
+
};
|
|
4052
|
+
goog.inherits(proto.game.GetCategoryBySlugRequest, jspb.Message);
|
|
4053
|
+
if (goog.DEBUG && !COMPILED) {
|
|
4054
|
+
/**
|
|
4055
|
+
* @public
|
|
4056
|
+
* @override
|
|
4057
|
+
*/
|
|
4058
|
+
proto.game.GetCategoryBySlugRequest.displayName = 'proto.game.GetCategoryBySlugRequest';
|
|
4059
|
+
}
|
|
4038
4060
|
/**
|
|
4039
4061
|
* Generated by JsPbCodeGenerator.
|
|
4040
4062
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -56761,6 +56783,184 @@ proto.game.TagSnapshotItemsResponse.prototype.clearItemsList = function() {
|
|
|
56761
56783
|
|
|
56762
56784
|
|
|
56763
56785
|
|
|
56786
|
+
|
|
56787
|
+
|
|
56788
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
56789
|
+
/**
|
|
56790
|
+
* Creates an object representation of this proto.
|
|
56791
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
56792
|
+
* Optional fields that are not set will be set to undefined.
|
|
56793
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
56794
|
+
* For the list of reserved names please see:
|
|
56795
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
56796
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
56797
|
+
* JSPB instance for transitional soy proto support:
|
|
56798
|
+
* http://goto/soy-param-migration
|
|
56799
|
+
* @return {!Object}
|
|
56800
|
+
*/
|
|
56801
|
+
proto.game.GetCategoryBySlugRequest.prototype.toObject = function(opt_includeInstance) {
|
|
56802
|
+
return proto.game.GetCategoryBySlugRequest.toObject(opt_includeInstance, this);
|
|
56803
|
+
};
|
|
56804
|
+
|
|
56805
|
+
|
|
56806
|
+
/**
|
|
56807
|
+
* Static version of the {@see toObject} method.
|
|
56808
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
56809
|
+
* the JSPB instance for transitional soy proto support:
|
|
56810
|
+
* http://goto/soy-param-migration
|
|
56811
|
+
* @param {!proto.game.GetCategoryBySlugRequest} msg The msg instance to transform.
|
|
56812
|
+
* @return {!Object}
|
|
56813
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56814
|
+
*/
|
|
56815
|
+
proto.game.GetCategoryBySlugRequest.toObject = function(includeInstance, msg) {
|
|
56816
|
+
var f, obj = {
|
|
56817
|
+
slug: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
56818
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
56819
|
+
};
|
|
56820
|
+
|
|
56821
|
+
if (includeInstance) {
|
|
56822
|
+
obj.$jspbMessageInstance = msg;
|
|
56823
|
+
}
|
|
56824
|
+
return obj;
|
|
56825
|
+
};
|
|
56826
|
+
}
|
|
56827
|
+
|
|
56828
|
+
|
|
56829
|
+
/**
|
|
56830
|
+
* Deserializes binary data (in protobuf wire format).
|
|
56831
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
56832
|
+
* @return {!proto.game.GetCategoryBySlugRequest}
|
|
56833
|
+
*/
|
|
56834
|
+
proto.game.GetCategoryBySlugRequest.deserializeBinary = function(bytes) {
|
|
56835
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
56836
|
+
var msg = new proto.game.GetCategoryBySlugRequest;
|
|
56837
|
+
return proto.game.GetCategoryBySlugRequest.deserializeBinaryFromReader(msg, reader);
|
|
56838
|
+
};
|
|
56839
|
+
|
|
56840
|
+
|
|
56841
|
+
/**
|
|
56842
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
56843
|
+
* given reader into the given message object.
|
|
56844
|
+
* @param {!proto.game.GetCategoryBySlugRequest} msg The message object to deserialize into.
|
|
56845
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
56846
|
+
* @return {!proto.game.GetCategoryBySlugRequest}
|
|
56847
|
+
*/
|
|
56848
|
+
proto.game.GetCategoryBySlugRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
56849
|
+
while (reader.nextField()) {
|
|
56850
|
+
if (reader.isEndGroup()) {
|
|
56851
|
+
break;
|
|
56852
|
+
}
|
|
56853
|
+
var field = reader.getFieldNumber();
|
|
56854
|
+
switch (field) {
|
|
56855
|
+
case 1:
|
|
56856
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56857
|
+
msg.setSlug(value);
|
|
56858
|
+
break;
|
|
56859
|
+
case 2:
|
|
56860
|
+
var value = /** @type {string} */ (reader.readString());
|
|
56861
|
+
msg.setLocale(value);
|
|
56862
|
+
break;
|
|
56863
|
+
default:
|
|
56864
|
+
reader.skipField();
|
|
56865
|
+
break;
|
|
56866
|
+
}
|
|
56867
|
+
}
|
|
56868
|
+
return msg;
|
|
56869
|
+
};
|
|
56870
|
+
|
|
56871
|
+
|
|
56872
|
+
/**
|
|
56873
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
56874
|
+
* @return {!Uint8Array}
|
|
56875
|
+
*/
|
|
56876
|
+
proto.game.GetCategoryBySlugRequest.prototype.serializeBinary = function() {
|
|
56877
|
+
var writer = new jspb.BinaryWriter();
|
|
56878
|
+
proto.game.GetCategoryBySlugRequest.serializeBinaryToWriter(this, writer);
|
|
56879
|
+
return writer.getResultBuffer();
|
|
56880
|
+
};
|
|
56881
|
+
|
|
56882
|
+
|
|
56883
|
+
/**
|
|
56884
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
56885
|
+
* format), writing to the given BinaryWriter.
|
|
56886
|
+
* @param {!proto.game.GetCategoryBySlugRequest} message
|
|
56887
|
+
* @param {!jspb.BinaryWriter} writer
|
|
56888
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
56889
|
+
*/
|
|
56890
|
+
proto.game.GetCategoryBySlugRequest.serializeBinaryToWriter = function(message, writer) {
|
|
56891
|
+
var f = undefined;
|
|
56892
|
+
f = message.getSlug();
|
|
56893
|
+
if (f.length > 0) {
|
|
56894
|
+
writer.writeString(
|
|
56895
|
+
1,
|
|
56896
|
+
f
|
|
56897
|
+
);
|
|
56898
|
+
}
|
|
56899
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
56900
|
+
if (f != null) {
|
|
56901
|
+
writer.writeString(
|
|
56902
|
+
2,
|
|
56903
|
+
f
|
|
56904
|
+
);
|
|
56905
|
+
}
|
|
56906
|
+
};
|
|
56907
|
+
|
|
56908
|
+
|
|
56909
|
+
/**
|
|
56910
|
+
* optional string slug = 1;
|
|
56911
|
+
* @return {string}
|
|
56912
|
+
*/
|
|
56913
|
+
proto.game.GetCategoryBySlugRequest.prototype.getSlug = function() {
|
|
56914
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
56915
|
+
};
|
|
56916
|
+
|
|
56917
|
+
|
|
56918
|
+
/**
|
|
56919
|
+
* @param {string} value
|
|
56920
|
+
* @return {!proto.game.GetCategoryBySlugRequest} returns this
|
|
56921
|
+
*/
|
|
56922
|
+
proto.game.GetCategoryBySlugRequest.prototype.setSlug = function(value) {
|
|
56923
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
56924
|
+
};
|
|
56925
|
+
|
|
56926
|
+
|
|
56927
|
+
/**
|
|
56928
|
+
* optional string locale = 2;
|
|
56929
|
+
* @return {string}
|
|
56930
|
+
*/
|
|
56931
|
+
proto.game.GetCategoryBySlugRequest.prototype.getLocale = function() {
|
|
56932
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
56933
|
+
};
|
|
56934
|
+
|
|
56935
|
+
|
|
56936
|
+
/**
|
|
56937
|
+
* @param {string} value
|
|
56938
|
+
* @return {!proto.game.GetCategoryBySlugRequest} returns this
|
|
56939
|
+
*/
|
|
56940
|
+
proto.game.GetCategoryBySlugRequest.prototype.setLocale = function(value) {
|
|
56941
|
+
return jspb.Message.setField(this, 2, value);
|
|
56942
|
+
};
|
|
56943
|
+
|
|
56944
|
+
|
|
56945
|
+
/**
|
|
56946
|
+
* Clears the field making it undefined.
|
|
56947
|
+
* @return {!proto.game.GetCategoryBySlugRequest} returns this
|
|
56948
|
+
*/
|
|
56949
|
+
proto.game.GetCategoryBySlugRequest.prototype.clearLocale = function() {
|
|
56950
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
56951
|
+
};
|
|
56952
|
+
|
|
56953
|
+
|
|
56954
|
+
/**
|
|
56955
|
+
* Returns whether this field is set.
|
|
56956
|
+
* @return {boolean}
|
|
56957
|
+
*/
|
|
56958
|
+
proto.game.GetCategoryBySlugRequest.prototype.hasLocale = function() {
|
|
56959
|
+
return jspb.Message.getField(this, 2) != null;
|
|
56960
|
+
};
|
|
56961
|
+
|
|
56962
|
+
|
|
56963
|
+
|
|
56764
56964
|
/**
|
|
56765
56965
|
* List of repeated fields within this message type.
|
|
56766
56966
|
* @private {!Array<number>}
|