protobuf-platform 1.2.572 → 1.2.575

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 CHANGED
@@ -100,6 +100,14 @@ message BonusActivationRulesRequest {
100
100
  optional float cancellation_amount = 7;
101
101
  optional string promo_code = 8;
102
102
  }
103
+ // Write-side reward payload for a single semantic reward type (e.g. "freebet", "comboboost").
104
+ message BonusRewardWriteItem {
105
+ string type = 1;
106
+ optional string config = 2;
107
+ }
108
+
109
+ // Legacy scalar/config fields (1–10) remain for backward compatibility.
110
+ // New reward types must use `rewards`; do not add per-type top-level fields (e.g. combo_boost_config).
103
111
  message BonusRewardsRequest {
104
112
  int32 bonus_id = 1;
105
113
  string currency = 2;
@@ -111,6 +119,8 @@ message BonusRewardsRequest {
111
119
  optional float ranking = 8;
112
120
  optional string free_spins_config = 9;
113
121
  optional string free_bet_config = 10;
122
+ // Extensible write path for new reward types; currency is inherited from this request.
123
+ repeated BonusRewardWriteItem rewards = 11;
114
124
  }
115
125
  message BonusBetRangesRequest {
116
126
  int32 bonus_id = 1;
package/bonus/bonus_pb.js CHANGED
@@ -40,6 +40,7 @@ goog.exportSymbol('proto.bonus.BonusRequest', null, global);
40
40
  goog.exportSymbol('proto.bonus.BonusRequest.RequestCase', null, global);
41
41
  goog.exportSymbol('proto.bonus.BonusResponse', null, global);
42
42
  goog.exportSymbol('proto.bonus.BonusReward', null, global);
43
+ goog.exportSymbol('proto.bonus.BonusRewardWriteItem', null, global);
43
44
  goog.exportSymbol('proto.bonus.BonusRewardsRequest', null, global);
44
45
  goog.exportSymbol('proto.bonus.BonusSnapshotItem', null, global);
45
46
  goog.exportSymbol('proto.bonus.BonusSnapshotItemsResponse', null, global);
@@ -289,9 +290,30 @@ if (goog.DEBUG && !COMPILED) {
289
290
  * @extends {jspb.Message}
290
291
  * @constructor
291
292
  */
292
- proto.bonus.BonusRewardsRequest = function(opt_data) {
293
+ proto.bonus.BonusRewardWriteItem = function(opt_data) {
293
294
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
294
295
  };
296
+ goog.inherits(proto.bonus.BonusRewardWriteItem, jspb.Message);
297
+ if (goog.DEBUG && !COMPILED) {
298
+ /**
299
+ * @public
300
+ * @override
301
+ */
302
+ proto.bonus.BonusRewardWriteItem.displayName = 'proto.bonus.BonusRewardWriteItem';
303
+ }
304
+ /**
305
+ * Generated by JsPbCodeGenerator.
306
+ * @param {Array=} opt_data Optional initial data array, typically from a
307
+ * server response, or constructed directly in Javascript. The array is used
308
+ * in place and becomes part of the constructed object. It is not cloned.
309
+ * If no data is provided, the constructed object will be empty, but still
310
+ * valid.
311
+ * @extends {jspb.Message}
312
+ * @constructor
313
+ */
314
+ proto.bonus.BonusRewardsRequest = function(opt_data) {
315
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusRewardsRequest.repeatedFields_, null);
316
+ };
295
317
  goog.inherits(proto.bonus.BonusRewardsRequest, jspb.Message);
296
318
  if (goog.DEBUG && !COMPILED) {
297
319
  /**
@@ -3833,6 +3855,191 @@ proto.bonus.BonusActivationRulesRequest.prototype.hasPromoCode = function() {
3833
3855
 
3834
3856
 
3835
3857
 
3858
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3859
+ /**
3860
+ * Creates an object representation of this proto.
3861
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3862
+ * Optional fields that are not set will be set to undefined.
3863
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3864
+ * For the list of reserved names please see:
3865
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3866
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3867
+ * JSPB instance for transitional soy proto support:
3868
+ * http://goto/soy-param-migration
3869
+ * @return {!Object}
3870
+ */
3871
+ proto.bonus.BonusRewardWriteItem.prototype.toObject = function(opt_includeInstance) {
3872
+ return proto.bonus.BonusRewardWriteItem.toObject(opt_includeInstance, this);
3873
+ };
3874
+
3875
+
3876
+ /**
3877
+ * Static version of the {@see toObject} method.
3878
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3879
+ * the JSPB instance for transitional soy proto support:
3880
+ * http://goto/soy-param-migration
3881
+ * @param {!proto.bonus.BonusRewardWriteItem} msg The msg instance to transform.
3882
+ * @return {!Object}
3883
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3884
+ */
3885
+ proto.bonus.BonusRewardWriteItem.toObject = function(includeInstance, msg) {
3886
+ var f, obj = {
3887
+ type: jspb.Message.getFieldWithDefault(msg, 1, ""),
3888
+ config: jspb.Message.getFieldWithDefault(msg, 2, "")
3889
+ };
3890
+
3891
+ if (includeInstance) {
3892
+ obj.$jspbMessageInstance = msg;
3893
+ }
3894
+ return obj;
3895
+ };
3896
+ }
3897
+
3898
+
3899
+ /**
3900
+ * Deserializes binary data (in protobuf wire format).
3901
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3902
+ * @return {!proto.bonus.BonusRewardWriteItem}
3903
+ */
3904
+ proto.bonus.BonusRewardWriteItem.deserializeBinary = function(bytes) {
3905
+ var reader = new jspb.BinaryReader(bytes);
3906
+ var msg = new proto.bonus.BonusRewardWriteItem;
3907
+ return proto.bonus.BonusRewardWriteItem.deserializeBinaryFromReader(msg, reader);
3908
+ };
3909
+
3910
+
3911
+ /**
3912
+ * Deserializes binary data (in protobuf wire format) from the
3913
+ * given reader into the given message object.
3914
+ * @param {!proto.bonus.BonusRewardWriteItem} msg The message object to deserialize into.
3915
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3916
+ * @return {!proto.bonus.BonusRewardWriteItem}
3917
+ */
3918
+ proto.bonus.BonusRewardWriteItem.deserializeBinaryFromReader = function(msg, reader) {
3919
+ while (reader.nextField()) {
3920
+ if (reader.isEndGroup()) {
3921
+ break;
3922
+ }
3923
+ var field = reader.getFieldNumber();
3924
+ switch (field) {
3925
+ case 1:
3926
+ var value = /** @type {string} */ (reader.readString());
3927
+ msg.setType(value);
3928
+ break;
3929
+ case 2:
3930
+ var value = /** @type {string} */ (reader.readString());
3931
+ msg.setConfig(value);
3932
+ break;
3933
+ default:
3934
+ reader.skipField();
3935
+ break;
3936
+ }
3937
+ }
3938
+ return msg;
3939
+ };
3940
+
3941
+
3942
+ /**
3943
+ * Serializes the message to binary data (in protobuf wire format).
3944
+ * @return {!Uint8Array}
3945
+ */
3946
+ proto.bonus.BonusRewardWriteItem.prototype.serializeBinary = function() {
3947
+ var writer = new jspb.BinaryWriter();
3948
+ proto.bonus.BonusRewardWriteItem.serializeBinaryToWriter(this, writer);
3949
+ return writer.getResultBuffer();
3950
+ };
3951
+
3952
+
3953
+ /**
3954
+ * Serializes the given message to binary data (in protobuf wire
3955
+ * format), writing to the given BinaryWriter.
3956
+ * @param {!proto.bonus.BonusRewardWriteItem} message
3957
+ * @param {!jspb.BinaryWriter} writer
3958
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3959
+ */
3960
+ proto.bonus.BonusRewardWriteItem.serializeBinaryToWriter = function(message, writer) {
3961
+ var f = undefined;
3962
+ f = message.getType();
3963
+ if (f.length > 0) {
3964
+ writer.writeString(
3965
+ 1,
3966
+ f
3967
+ );
3968
+ }
3969
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
3970
+ if (f != null) {
3971
+ writer.writeString(
3972
+ 2,
3973
+ f
3974
+ );
3975
+ }
3976
+ };
3977
+
3978
+
3979
+ /**
3980
+ * optional string type = 1;
3981
+ * @return {string}
3982
+ */
3983
+ proto.bonus.BonusRewardWriteItem.prototype.getType = function() {
3984
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3985
+ };
3986
+
3987
+
3988
+ /**
3989
+ * @param {string} value
3990
+ * @return {!proto.bonus.BonusRewardWriteItem} returns this
3991
+ */
3992
+ proto.bonus.BonusRewardWriteItem.prototype.setType = function(value) {
3993
+ return jspb.Message.setProto3StringField(this, 1, value);
3994
+ };
3995
+
3996
+
3997
+ /**
3998
+ * optional string config = 2;
3999
+ * @return {string}
4000
+ */
4001
+ proto.bonus.BonusRewardWriteItem.prototype.getConfig = function() {
4002
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4003
+ };
4004
+
4005
+
4006
+ /**
4007
+ * @param {string} value
4008
+ * @return {!proto.bonus.BonusRewardWriteItem} returns this
4009
+ */
4010
+ proto.bonus.BonusRewardWriteItem.prototype.setConfig = function(value) {
4011
+ return jspb.Message.setField(this, 2, value);
4012
+ };
4013
+
4014
+
4015
+ /**
4016
+ * Clears the field making it undefined.
4017
+ * @return {!proto.bonus.BonusRewardWriteItem} returns this
4018
+ */
4019
+ proto.bonus.BonusRewardWriteItem.prototype.clearConfig = function() {
4020
+ return jspb.Message.setField(this, 2, undefined);
4021
+ };
4022
+
4023
+
4024
+ /**
4025
+ * Returns whether this field is set.
4026
+ * @return {boolean}
4027
+ */
4028
+ proto.bonus.BonusRewardWriteItem.prototype.hasConfig = function() {
4029
+ return jspb.Message.getField(this, 2) != null;
4030
+ };
4031
+
4032
+
4033
+
4034
+ /**
4035
+ * List of repeated fields within this message type.
4036
+ * @private {!Array<number>}
4037
+ * @const
4038
+ */
4039
+ proto.bonus.BonusRewardsRequest.repeatedFields_ = [11];
4040
+
4041
+
4042
+
3836
4043
  if (jspb.Message.GENERATE_TO_OBJECT) {
3837
4044
  /**
3838
4045
  * Creates an object representation of this proto.
@@ -3871,7 +4078,9 @@ proto.bonus.BonusRewardsRequest.toObject = function(includeInstance, msg) {
3871
4078
  loyalty: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
3872
4079
  ranking: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
3873
4080
  freeSpinsConfig: jspb.Message.getFieldWithDefault(msg, 9, ""),
3874
- freeBetConfig: jspb.Message.getFieldWithDefault(msg, 10, "")
4081
+ freeBetConfig: jspb.Message.getFieldWithDefault(msg, 10, ""),
4082
+ rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
4083
+ proto.bonus.BonusRewardWriteItem.toObject, includeInstance)
3875
4084
  };
3876
4085
 
3877
4086
  if (includeInstance) {
@@ -3948,6 +4157,11 @@ proto.bonus.BonusRewardsRequest.deserializeBinaryFromReader = function(msg, read
3948
4157
  var value = /** @type {string} */ (reader.readString());
3949
4158
  msg.setFreeBetConfig(value);
3950
4159
  break;
4160
+ case 11:
4161
+ var value = new proto.bonus.BonusRewardWriteItem;
4162
+ reader.readMessage(value,proto.bonus.BonusRewardWriteItem.deserializeBinaryFromReader);
4163
+ msg.addRewards(value);
4164
+ break;
3951
4165
  default:
3952
4166
  reader.skipField();
3953
4167
  break;
@@ -4047,6 +4261,14 @@ proto.bonus.BonusRewardsRequest.serializeBinaryToWriter = function(message, writ
4047
4261
  f
4048
4262
  );
4049
4263
  }
4264
+ f = message.getRewardsList();
4265
+ if (f.length > 0) {
4266
+ writer.writeRepeatedMessage(
4267
+ 11,
4268
+ f,
4269
+ proto.bonus.BonusRewardWriteItem.serializeBinaryToWriter
4270
+ );
4271
+ }
4050
4272
  };
4051
4273
 
4052
4274
 
@@ -4374,6 +4596,44 @@ proto.bonus.BonusRewardsRequest.prototype.hasFreeBetConfig = function() {
4374
4596
  };
4375
4597
 
4376
4598
 
4599
+ /**
4600
+ * repeated BonusRewardWriteItem rewards = 11;
4601
+ * @return {!Array<!proto.bonus.BonusRewardWriteItem>}
4602
+ */
4603
+ proto.bonus.BonusRewardsRequest.prototype.getRewardsList = function() {
4604
+ return /** @type{!Array<!proto.bonus.BonusRewardWriteItem>} */ (
4605
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BonusRewardWriteItem, 11));
4606
+ };
4607
+
4608
+
4609
+ /**
4610
+ * @param {!Array<!proto.bonus.BonusRewardWriteItem>} value
4611
+ * @return {!proto.bonus.BonusRewardsRequest} returns this
4612
+ */
4613
+ proto.bonus.BonusRewardsRequest.prototype.setRewardsList = function(value) {
4614
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
4615
+ };
4616
+
4617
+
4618
+ /**
4619
+ * @param {!proto.bonus.BonusRewardWriteItem=} opt_value
4620
+ * @param {number=} opt_index
4621
+ * @return {!proto.bonus.BonusRewardWriteItem}
4622
+ */
4623
+ proto.bonus.BonusRewardsRequest.prototype.addRewards = function(opt_value, opt_index) {
4624
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.bonus.BonusRewardWriteItem, opt_index);
4625
+ };
4626
+
4627
+
4628
+ /**
4629
+ * Clears the list making it empty but non-null.
4630
+ * @return {!proto.bonus.BonusRewardsRequest} returns this
4631
+ */
4632
+ proto.bonus.BonusRewardsRequest.prototype.clearRewardsList = function() {
4633
+ return this.setRewardsList([]);
4634
+ };
4635
+
4636
+
4377
4637
 
4378
4638
 
4379
4639
 
package/cms/cms.proto CHANGED
@@ -186,6 +186,7 @@ message GetMainPageWidgetRequest {
186
186
  optional string geo = 1;
187
187
  optional bool is_mobile = 2;
188
188
  optional bool admin_side = 3;
189
+ optional string locale = 4;
189
190
  }
190
191
  message MainPageWidgetItem {
191
192
  string geo = 1;
@@ -199,6 +200,7 @@ message GetCasinoPageWidgetRequest {
199
200
  optional string geo = 1;
200
201
  optional bool is_mobile = 2;
201
202
  optional bool admin_side = 3;
203
+ optional string locale = 4;
202
204
  }
203
205
  message CasinoPageWidgetItem {
204
206
  string geo = 1;
@@ -249,6 +251,7 @@ message HeaderWidgetItem {
249
251
  message GetFooterWidgetRequest {
250
252
  optional string geo = 1;
251
253
  optional bool admin_side = 2;
254
+ optional string locale = 3;
252
255
  }
253
256
  message FooterWidgetItem {
254
257
  string geo = 1;
@@ -270,6 +273,7 @@ message GetGameBarWidgetRequest {
270
273
  optional string geo = 1;
271
274
  optional bool is_mobile = 2;
272
275
  optional bool admin_side = 3;
276
+ optional string locale = 4;
273
277
  }
274
278
  message GameBarWidgetItem {
275
279
  string geo = 1;
@@ -1254,6 +1258,7 @@ message GetPresetWidgetRequest {
1254
1258
  string widget_type = 2;
1255
1259
  optional string geo = 3;
1256
1260
  optional bool admin_side = 4;
1261
+ optional string locale = 5;
1257
1262
  }
1258
1263
  message ReadPresetWidgetRequest {
1259
1264
  int32 id = 1;