protobuf-platform 1.2.676 → 1.2.677

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 CHANGED
@@ -123,6 +123,12 @@ service Game {
123
123
  rpc getCategoryHierarchyByIds(CategoryHierarchyRequest) returns (CategoryHierarchyResponse);
124
124
  /** Public active category with active direct collections; unknown/inactive slugs return NOT_FOUND. */
125
125
  rpc getCategoryBySlug(GetCategoryBySlugRequest) returns (CategoryHierarchyItem);
126
+ /** Public active tag; unknown/inactive slugs return NOT_FOUND. */
127
+ rpc getTagBySlug(GetGameEntityBySlugRequest) returns (TagResponse);
128
+ /** Public active collection; unknown/inactive slugs return NOT_FOUND. */
129
+ rpc getCollectionBySlug(GetGameEntityBySlugRequest) returns (CollectionResponse);
130
+ /** Public canonical provider; unknown/inactive slugs return NOT_FOUND. */
131
+ rpc getProviderBySlug(GetGameEntityBySlugRequest) returns (ProviderResponse);
126
132
  rpc getProviderCatalogBatch(CatalogCursorRequest) returns (ProviderCatalogBatchResponse);
127
133
  rpc getGameCatalogBatch(CatalogCursorRequest) returns (GameCatalogBatchResponse);
128
134
  //Wager lists
@@ -1457,6 +1463,12 @@ message GetCategoryBySlugRequest {
1457
1463
  string slug = 1;
1458
1464
  optional string locale = 2;
1459
1465
  }
1466
+ /** Public tag, collection, or provider lookup with optional localized display metadata. */
1467
+ message GetGameEntityBySlugRequest {
1468
+ string slug = 1;
1469
+ optional string locale = 2;
1470
+ optional string geo = 3;
1471
+ }
1460
1472
  /** Lightweight batch read for Category → Collections hierarchy enrichment. */
1461
1473
  message CategoryHierarchyRequest {
1462
1474
  repeated int32 ids = 1;
@@ -697,6 +697,17 @@ function deserialize_game_GetGameConfigCheckRequest(buffer_arg) {
697
697
  return game_pb.GetGameConfigCheckRequest.deserializeBinary(new Uint8Array(buffer_arg));
698
698
  }
699
699
 
700
+ function serialize_game_GetGameEntityBySlugRequest(arg) {
701
+ if (!(arg instanceof game_pb.GetGameEntityBySlugRequest)) {
702
+ throw new Error('Expected argument of type game.GetGameEntityBySlugRequest');
703
+ }
704
+ return Buffer.from(arg.serializeBinary());
705
+ }
706
+
707
+ function deserialize_game_GetGameEntityBySlugRequest(buffer_arg) {
708
+ return game_pb.GetGameEntityBySlugRequest.deserializeBinary(new Uint8Array(buffer_arg));
709
+ }
710
+
700
711
  function serialize_game_GetGameRequest(arg) {
701
712
  if (!(arg instanceof game_pb.GetGameRequest)) {
702
713
  throw new Error('Expected argument of type game.GetGameRequest');
@@ -2803,6 +2814,42 @@ getCategoryBySlug: {
2803
2814
  responseSerialize: serialize_game_CategoryHierarchyItem,
2804
2815
  responseDeserialize: deserialize_game_CategoryHierarchyItem,
2805
2816
  },
2817
+ // * Public active tag; unknown/inactive slugs return NOT_FOUND.
2818
+ getTagBySlug: {
2819
+ path: '/game.Game/getTagBySlug',
2820
+ requestStream: false,
2821
+ responseStream: false,
2822
+ requestType: game_pb.GetGameEntityBySlugRequest,
2823
+ responseType: game_pb.TagResponse,
2824
+ requestSerialize: serialize_game_GetGameEntityBySlugRequest,
2825
+ requestDeserialize: deserialize_game_GetGameEntityBySlugRequest,
2826
+ responseSerialize: serialize_game_TagResponse,
2827
+ responseDeserialize: deserialize_game_TagResponse,
2828
+ },
2829
+ // * Public active collection; unknown/inactive slugs return NOT_FOUND.
2830
+ getCollectionBySlug: {
2831
+ path: '/game.Game/getCollectionBySlug',
2832
+ requestStream: false,
2833
+ responseStream: false,
2834
+ requestType: game_pb.GetGameEntityBySlugRequest,
2835
+ responseType: game_pb.CollectionResponse,
2836
+ requestSerialize: serialize_game_GetGameEntityBySlugRequest,
2837
+ requestDeserialize: deserialize_game_GetGameEntityBySlugRequest,
2838
+ responseSerialize: serialize_game_CollectionResponse,
2839
+ responseDeserialize: deserialize_game_CollectionResponse,
2840
+ },
2841
+ // * Public canonical provider; unknown/inactive slugs return NOT_FOUND.
2842
+ getProviderBySlug: {
2843
+ path: '/game.Game/getProviderBySlug',
2844
+ requestStream: false,
2845
+ responseStream: false,
2846
+ requestType: game_pb.GetGameEntityBySlugRequest,
2847
+ responseType: game_pb.ProviderResponse,
2848
+ requestSerialize: serialize_game_GetGameEntityBySlugRequest,
2849
+ requestDeserialize: deserialize_game_GetGameEntityBySlugRequest,
2850
+ responseSerialize: serialize_game_ProviderResponse,
2851
+ responseDeserialize: deserialize_game_ProviderResponse,
2852
+ },
2806
2853
  getProviderCatalogBatch: {
2807
2854
  path: '/game.Game/getProviderCatalogBatch',
2808
2855
  requestStream: false,
package/game/game_pb.js CHANGED
@@ -118,6 +118,7 @@ goog.exportSymbol('proto.game.GetCollectionSnapshotsByIdsRequest', null, global)
118
118
  goog.exportSymbol('proto.game.GetDistinctGameTypesRequest', null, global);
119
119
  goog.exportSymbol('proto.game.GetFileRequest', null, global);
120
120
  goog.exportSymbol('proto.game.GetGameConfigCheckRequest', null, global);
121
+ goog.exportSymbol('proto.game.GetGameEntityBySlugRequest', null, global);
121
122
  goog.exportSymbol('proto.game.GetGameRequest', null, global);
122
123
  goog.exportSymbol('proto.game.GetGameSnapshotsByIdsRequest', null, global);
123
124
  goog.exportSymbol('proto.game.GetMultiScopeRequest', null, global);
@@ -4412,6 +4413,27 @@ if (goog.DEBUG && !COMPILED) {
4412
4413
  */
4413
4414
  proto.game.GetCategoryBySlugRequest.displayName = 'proto.game.GetCategoryBySlugRequest';
4414
4415
  }
4416
+ /**
4417
+ * Generated by JsPbCodeGenerator.
4418
+ * @param {Array=} opt_data Optional initial data array, typically from a
4419
+ * server response, or constructed directly in Javascript. The array is used
4420
+ * in place and becomes part of the constructed object. It is not cloned.
4421
+ * If no data is provided, the constructed object will be empty, but still
4422
+ * valid.
4423
+ * @extends {jspb.Message}
4424
+ * @constructor
4425
+ */
4426
+ proto.game.GetGameEntityBySlugRequest = function(opt_data) {
4427
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4428
+ };
4429
+ goog.inherits(proto.game.GetGameEntityBySlugRequest, jspb.Message);
4430
+ if (goog.DEBUG && !COMPILED) {
4431
+ /**
4432
+ * @public
4433
+ * @override
4434
+ */
4435
+ proto.game.GetGameEntityBySlugRequest.displayName = 'proto.game.GetGameEntityBySlugRequest';
4436
+ }
4415
4437
  /**
4416
4438
  * Generated by JsPbCodeGenerator.
4417
4439
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -62088,6 +62110,232 @@ proto.game.GetCategoryBySlugRequest.prototype.hasLocale = function() {
62088
62110
 
62089
62111
 
62090
62112
 
62113
+
62114
+
62115
+ if (jspb.Message.GENERATE_TO_OBJECT) {
62116
+ /**
62117
+ * Creates an object representation of this proto.
62118
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
62119
+ * Optional fields that are not set will be set to undefined.
62120
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
62121
+ * For the list of reserved names please see:
62122
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
62123
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
62124
+ * JSPB instance for transitional soy proto support:
62125
+ * http://goto/soy-param-migration
62126
+ * @return {!Object}
62127
+ */
62128
+ proto.game.GetGameEntityBySlugRequest.prototype.toObject = function(opt_includeInstance) {
62129
+ return proto.game.GetGameEntityBySlugRequest.toObject(opt_includeInstance, this);
62130
+ };
62131
+
62132
+
62133
+ /**
62134
+ * Static version of the {@see toObject} method.
62135
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
62136
+ * the JSPB instance for transitional soy proto support:
62137
+ * http://goto/soy-param-migration
62138
+ * @param {!proto.game.GetGameEntityBySlugRequest} msg The msg instance to transform.
62139
+ * @return {!Object}
62140
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62141
+ */
62142
+ proto.game.GetGameEntityBySlugRequest.toObject = function(includeInstance, msg) {
62143
+ var f, obj = {
62144
+ slug: jspb.Message.getFieldWithDefault(msg, 1, ""),
62145
+ locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
62146
+ geo: jspb.Message.getFieldWithDefault(msg, 3, "")
62147
+ };
62148
+
62149
+ if (includeInstance) {
62150
+ obj.$jspbMessageInstance = msg;
62151
+ }
62152
+ return obj;
62153
+ };
62154
+ }
62155
+
62156
+
62157
+ /**
62158
+ * Deserializes binary data (in protobuf wire format).
62159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
62160
+ * @return {!proto.game.GetGameEntityBySlugRequest}
62161
+ */
62162
+ proto.game.GetGameEntityBySlugRequest.deserializeBinary = function(bytes) {
62163
+ var reader = new jspb.BinaryReader(bytes);
62164
+ var msg = new proto.game.GetGameEntityBySlugRequest;
62165
+ return proto.game.GetGameEntityBySlugRequest.deserializeBinaryFromReader(msg, reader);
62166
+ };
62167
+
62168
+
62169
+ /**
62170
+ * Deserializes binary data (in protobuf wire format) from the
62171
+ * given reader into the given message object.
62172
+ * @param {!proto.game.GetGameEntityBySlugRequest} msg The message object to deserialize into.
62173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
62174
+ * @return {!proto.game.GetGameEntityBySlugRequest}
62175
+ */
62176
+ proto.game.GetGameEntityBySlugRequest.deserializeBinaryFromReader = function(msg, reader) {
62177
+ while (reader.nextField()) {
62178
+ if (reader.isEndGroup()) {
62179
+ break;
62180
+ }
62181
+ var field = reader.getFieldNumber();
62182
+ switch (field) {
62183
+ case 1:
62184
+ var value = /** @type {string} */ (reader.readString());
62185
+ msg.setSlug(value);
62186
+ break;
62187
+ case 2:
62188
+ var value = /** @type {string} */ (reader.readString());
62189
+ msg.setLocale(value);
62190
+ break;
62191
+ case 3:
62192
+ var value = /** @type {string} */ (reader.readString());
62193
+ msg.setGeo(value);
62194
+ break;
62195
+ default:
62196
+ reader.skipField();
62197
+ break;
62198
+ }
62199
+ }
62200
+ return msg;
62201
+ };
62202
+
62203
+
62204
+ /**
62205
+ * Serializes the message to binary data (in protobuf wire format).
62206
+ * @return {!Uint8Array}
62207
+ */
62208
+ proto.game.GetGameEntityBySlugRequest.prototype.serializeBinary = function() {
62209
+ var writer = new jspb.BinaryWriter();
62210
+ proto.game.GetGameEntityBySlugRequest.serializeBinaryToWriter(this, writer);
62211
+ return writer.getResultBuffer();
62212
+ };
62213
+
62214
+
62215
+ /**
62216
+ * Serializes the given message to binary data (in protobuf wire
62217
+ * format), writing to the given BinaryWriter.
62218
+ * @param {!proto.game.GetGameEntityBySlugRequest} message
62219
+ * @param {!jspb.BinaryWriter} writer
62220
+ * @suppress {unusedLocalVariables} f is only used for nested messages
62221
+ */
62222
+ proto.game.GetGameEntityBySlugRequest.serializeBinaryToWriter = function(message, writer) {
62223
+ var f = undefined;
62224
+ f = message.getSlug();
62225
+ if (f.length > 0) {
62226
+ writer.writeString(
62227
+ 1,
62228
+ f
62229
+ );
62230
+ }
62231
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
62232
+ if (f != null) {
62233
+ writer.writeString(
62234
+ 2,
62235
+ f
62236
+ );
62237
+ }
62238
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
62239
+ if (f != null) {
62240
+ writer.writeString(
62241
+ 3,
62242
+ f
62243
+ );
62244
+ }
62245
+ };
62246
+
62247
+
62248
+ /**
62249
+ * optional string slug = 1;
62250
+ * @return {string}
62251
+ */
62252
+ proto.game.GetGameEntityBySlugRequest.prototype.getSlug = function() {
62253
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
62254
+ };
62255
+
62256
+
62257
+ /**
62258
+ * @param {string} value
62259
+ * @return {!proto.game.GetGameEntityBySlugRequest} returns this
62260
+ */
62261
+ proto.game.GetGameEntityBySlugRequest.prototype.setSlug = function(value) {
62262
+ return jspb.Message.setProto3StringField(this, 1, value);
62263
+ };
62264
+
62265
+
62266
+ /**
62267
+ * optional string locale = 2;
62268
+ * @return {string}
62269
+ */
62270
+ proto.game.GetGameEntityBySlugRequest.prototype.getLocale = function() {
62271
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
62272
+ };
62273
+
62274
+
62275
+ /**
62276
+ * @param {string} value
62277
+ * @return {!proto.game.GetGameEntityBySlugRequest} returns this
62278
+ */
62279
+ proto.game.GetGameEntityBySlugRequest.prototype.setLocale = function(value) {
62280
+ return jspb.Message.setField(this, 2, value);
62281
+ };
62282
+
62283
+
62284
+ /**
62285
+ * Clears the field making it undefined.
62286
+ * @return {!proto.game.GetGameEntityBySlugRequest} returns this
62287
+ */
62288
+ proto.game.GetGameEntityBySlugRequest.prototype.clearLocale = function() {
62289
+ return jspb.Message.setField(this, 2, undefined);
62290
+ };
62291
+
62292
+
62293
+ /**
62294
+ * Returns whether this field is set.
62295
+ * @return {boolean}
62296
+ */
62297
+ proto.game.GetGameEntityBySlugRequest.prototype.hasLocale = function() {
62298
+ return jspb.Message.getField(this, 2) != null;
62299
+ };
62300
+
62301
+
62302
+ /**
62303
+ * optional string geo = 3;
62304
+ * @return {string}
62305
+ */
62306
+ proto.game.GetGameEntityBySlugRequest.prototype.getGeo = function() {
62307
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
62308
+ };
62309
+
62310
+
62311
+ /**
62312
+ * @param {string} value
62313
+ * @return {!proto.game.GetGameEntityBySlugRequest} returns this
62314
+ */
62315
+ proto.game.GetGameEntityBySlugRequest.prototype.setGeo = function(value) {
62316
+ return jspb.Message.setField(this, 3, value);
62317
+ };
62318
+
62319
+
62320
+ /**
62321
+ * Clears the field making it undefined.
62322
+ * @return {!proto.game.GetGameEntityBySlugRequest} returns this
62323
+ */
62324
+ proto.game.GetGameEntityBySlugRequest.prototype.clearGeo = function() {
62325
+ return jspb.Message.setField(this, 3, undefined);
62326
+ };
62327
+
62328
+
62329
+ /**
62330
+ * Returns whether this field is set.
62331
+ * @return {boolean}
62332
+ */
62333
+ proto.game.GetGameEntityBySlugRequest.prototype.hasGeo = function() {
62334
+ return jspb.Message.getField(this, 3) != null;
62335
+ };
62336
+
62337
+
62338
+
62091
62339
  /**
62092
62340
  * List of repeated fields within this message type.
62093
62341
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.676",
3
+ "version": "1.2.677",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {