protobuf-platform 1.2.349 → 1.2.350
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 +6 -0
- package/bonus/bonus_pb.js +292 -2
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
|
@@ -313,6 +313,11 @@ message GetDepositEligibleUserBonusesRequest {
|
|
|
313
313
|
message DepositEligibleUserBonusesResponse {
|
|
314
314
|
repeated DepositEligibleUserBonusItem items = 1;
|
|
315
315
|
}
|
|
316
|
+
message DepositEligibleUserBonusRewardItem {
|
|
317
|
+
string type = 1;
|
|
318
|
+
string currency = 2;
|
|
319
|
+
optional string config = 3;
|
|
320
|
+
}
|
|
316
321
|
message DepositEligibleUserBonusItem {
|
|
317
322
|
int32 user_bonus_id = 1;
|
|
318
323
|
// UI fields
|
|
@@ -327,6 +332,7 @@ message DepositEligibleUserBonusItem {
|
|
|
327
332
|
optional int32 number_of_deposit = 8;
|
|
328
333
|
// Display/validity
|
|
329
334
|
optional string activation_until = 9;
|
|
335
|
+
repeated DepositEligibleUserBonusRewardItem rewards = 10;
|
|
330
336
|
}
|
|
331
337
|
message GetActiveWageringUserBonusesRequest {
|
|
332
338
|
int32 user_id = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -46,6 +46,7 @@ goog.exportSymbol('proto.bonus.CurrencyStatusItem', null, global);
|
|
|
46
46
|
goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
|
|
47
47
|
goog.exportSymbol('proto.bonus.DashboardResponse', null, global);
|
|
48
48
|
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusItem', null, global);
|
|
49
|
+
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusRewardItem', null, global);
|
|
49
50
|
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusesResponse', null, global);
|
|
50
51
|
goog.exportSymbol('proto.bonus.File', null, global);
|
|
51
52
|
goog.exportSymbol('proto.bonus.FreeSpinItem', null, global);
|
|
@@ -748,9 +749,30 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
748
749
|
* @extends {jspb.Message}
|
|
749
750
|
* @constructor
|
|
750
751
|
*/
|
|
751
|
-
proto.bonus.
|
|
752
|
+
proto.bonus.DepositEligibleUserBonusRewardItem = function(opt_data) {
|
|
752
753
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
753
754
|
};
|
|
755
|
+
goog.inherits(proto.bonus.DepositEligibleUserBonusRewardItem, jspb.Message);
|
|
756
|
+
if (goog.DEBUG && !COMPILED) {
|
|
757
|
+
/**
|
|
758
|
+
* @public
|
|
759
|
+
* @override
|
|
760
|
+
*/
|
|
761
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.displayName = 'proto.bonus.DepositEligibleUserBonusRewardItem';
|
|
762
|
+
}
|
|
763
|
+
/**
|
|
764
|
+
* Generated by JsPbCodeGenerator.
|
|
765
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
766
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
767
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
768
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
769
|
+
* valid.
|
|
770
|
+
* @extends {jspb.Message}
|
|
771
|
+
* @constructor
|
|
772
|
+
*/
|
|
773
|
+
proto.bonus.DepositEligibleUserBonusItem = function(opt_data) {
|
|
774
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.DepositEligibleUserBonusItem.repeatedFields_, null);
|
|
775
|
+
};
|
|
754
776
|
goog.inherits(proto.bonus.DepositEligibleUserBonusItem, jspb.Message);
|
|
755
777
|
if (goog.DEBUG && !COMPILED) {
|
|
756
778
|
/**
|
|
@@ -13760,6 +13782,221 @@ proto.bonus.DepositEligibleUserBonusesResponse.prototype.clearItemsList = functi
|
|
|
13760
13782
|
|
|
13761
13783
|
|
|
13762
13784
|
|
|
13785
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13786
|
+
/**
|
|
13787
|
+
* Creates an object representation of this proto.
|
|
13788
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13789
|
+
* Optional fields that are not set will be set to undefined.
|
|
13790
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13791
|
+
* For the list of reserved names please see:
|
|
13792
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13793
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13794
|
+
* JSPB instance for transitional soy proto support:
|
|
13795
|
+
* http://goto/soy-param-migration
|
|
13796
|
+
* @return {!Object}
|
|
13797
|
+
*/
|
|
13798
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.toObject = function(opt_includeInstance) {
|
|
13799
|
+
return proto.bonus.DepositEligibleUserBonusRewardItem.toObject(opt_includeInstance, this);
|
|
13800
|
+
};
|
|
13801
|
+
|
|
13802
|
+
|
|
13803
|
+
/**
|
|
13804
|
+
* Static version of the {@see toObject} method.
|
|
13805
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13806
|
+
* the JSPB instance for transitional soy proto support:
|
|
13807
|
+
* http://goto/soy-param-migration
|
|
13808
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem} msg The msg instance to transform.
|
|
13809
|
+
* @return {!Object}
|
|
13810
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13811
|
+
*/
|
|
13812
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.toObject = function(includeInstance, msg) {
|
|
13813
|
+
var f, obj = {
|
|
13814
|
+
type: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
13815
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13816
|
+
config: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
13817
|
+
};
|
|
13818
|
+
|
|
13819
|
+
if (includeInstance) {
|
|
13820
|
+
obj.$jspbMessageInstance = msg;
|
|
13821
|
+
}
|
|
13822
|
+
return obj;
|
|
13823
|
+
};
|
|
13824
|
+
}
|
|
13825
|
+
|
|
13826
|
+
|
|
13827
|
+
/**
|
|
13828
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13829
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13830
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem}
|
|
13831
|
+
*/
|
|
13832
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinary = function(bytes) {
|
|
13833
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13834
|
+
var msg = new proto.bonus.DepositEligibleUserBonusRewardItem;
|
|
13835
|
+
return proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader(msg, reader);
|
|
13836
|
+
};
|
|
13837
|
+
|
|
13838
|
+
|
|
13839
|
+
/**
|
|
13840
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13841
|
+
* given reader into the given message object.
|
|
13842
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem} msg The message object to deserialize into.
|
|
13843
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13844
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem}
|
|
13845
|
+
*/
|
|
13846
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
13847
|
+
while (reader.nextField()) {
|
|
13848
|
+
if (reader.isEndGroup()) {
|
|
13849
|
+
break;
|
|
13850
|
+
}
|
|
13851
|
+
var field = reader.getFieldNumber();
|
|
13852
|
+
switch (field) {
|
|
13853
|
+
case 1:
|
|
13854
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13855
|
+
msg.setType(value);
|
|
13856
|
+
break;
|
|
13857
|
+
case 2:
|
|
13858
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13859
|
+
msg.setCurrency(value);
|
|
13860
|
+
break;
|
|
13861
|
+
case 3:
|
|
13862
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13863
|
+
msg.setConfig(value);
|
|
13864
|
+
break;
|
|
13865
|
+
default:
|
|
13866
|
+
reader.skipField();
|
|
13867
|
+
break;
|
|
13868
|
+
}
|
|
13869
|
+
}
|
|
13870
|
+
return msg;
|
|
13871
|
+
};
|
|
13872
|
+
|
|
13873
|
+
|
|
13874
|
+
/**
|
|
13875
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13876
|
+
* @return {!Uint8Array}
|
|
13877
|
+
*/
|
|
13878
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.serializeBinary = function() {
|
|
13879
|
+
var writer = new jspb.BinaryWriter();
|
|
13880
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter(this, writer);
|
|
13881
|
+
return writer.getResultBuffer();
|
|
13882
|
+
};
|
|
13883
|
+
|
|
13884
|
+
|
|
13885
|
+
/**
|
|
13886
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13887
|
+
* format), writing to the given BinaryWriter.
|
|
13888
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem} message
|
|
13889
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13890
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13891
|
+
*/
|
|
13892
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter = function(message, writer) {
|
|
13893
|
+
var f = undefined;
|
|
13894
|
+
f = message.getType();
|
|
13895
|
+
if (f.length > 0) {
|
|
13896
|
+
writer.writeString(
|
|
13897
|
+
1,
|
|
13898
|
+
f
|
|
13899
|
+
);
|
|
13900
|
+
}
|
|
13901
|
+
f = message.getCurrency();
|
|
13902
|
+
if (f.length > 0) {
|
|
13903
|
+
writer.writeString(
|
|
13904
|
+
2,
|
|
13905
|
+
f
|
|
13906
|
+
);
|
|
13907
|
+
}
|
|
13908
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
13909
|
+
if (f != null) {
|
|
13910
|
+
writer.writeString(
|
|
13911
|
+
3,
|
|
13912
|
+
f
|
|
13913
|
+
);
|
|
13914
|
+
}
|
|
13915
|
+
};
|
|
13916
|
+
|
|
13917
|
+
|
|
13918
|
+
/**
|
|
13919
|
+
* optional string type = 1;
|
|
13920
|
+
* @return {string}
|
|
13921
|
+
*/
|
|
13922
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.getType = function() {
|
|
13923
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
13924
|
+
};
|
|
13925
|
+
|
|
13926
|
+
|
|
13927
|
+
/**
|
|
13928
|
+
* @param {string} value
|
|
13929
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13930
|
+
*/
|
|
13931
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.setType = function(value) {
|
|
13932
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
13933
|
+
};
|
|
13934
|
+
|
|
13935
|
+
|
|
13936
|
+
/**
|
|
13937
|
+
* optional string currency = 2;
|
|
13938
|
+
* @return {string}
|
|
13939
|
+
*/
|
|
13940
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.getCurrency = function() {
|
|
13941
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
13942
|
+
};
|
|
13943
|
+
|
|
13944
|
+
|
|
13945
|
+
/**
|
|
13946
|
+
* @param {string} value
|
|
13947
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13948
|
+
*/
|
|
13949
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.setCurrency = function(value) {
|
|
13950
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
13951
|
+
};
|
|
13952
|
+
|
|
13953
|
+
|
|
13954
|
+
/**
|
|
13955
|
+
* optional string config = 3;
|
|
13956
|
+
* @return {string}
|
|
13957
|
+
*/
|
|
13958
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.getConfig = function() {
|
|
13959
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
13960
|
+
};
|
|
13961
|
+
|
|
13962
|
+
|
|
13963
|
+
/**
|
|
13964
|
+
* @param {string} value
|
|
13965
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13966
|
+
*/
|
|
13967
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.setConfig = function(value) {
|
|
13968
|
+
return jspb.Message.setField(this, 3, value);
|
|
13969
|
+
};
|
|
13970
|
+
|
|
13971
|
+
|
|
13972
|
+
/**
|
|
13973
|
+
* Clears the field making it undefined.
|
|
13974
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem} returns this
|
|
13975
|
+
*/
|
|
13976
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.clearConfig = function() {
|
|
13977
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
13978
|
+
};
|
|
13979
|
+
|
|
13980
|
+
|
|
13981
|
+
/**
|
|
13982
|
+
* Returns whether this field is set.
|
|
13983
|
+
* @return {boolean}
|
|
13984
|
+
*/
|
|
13985
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.prototype.hasConfig = function() {
|
|
13986
|
+
return jspb.Message.getField(this, 3) != null;
|
|
13987
|
+
};
|
|
13988
|
+
|
|
13989
|
+
|
|
13990
|
+
|
|
13991
|
+
/**
|
|
13992
|
+
* List of repeated fields within this message type.
|
|
13993
|
+
* @private {!Array<number>}
|
|
13994
|
+
* @const
|
|
13995
|
+
*/
|
|
13996
|
+
proto.bonus.DepositEligibleUserBonusItem.repeatedFields_ = [10];
|
|
13997
|
+
|
|
13998
|
+
|
|
13999
|
+
|
|
13763
14000
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13764
14001
|
/**
|
|
13765
14002
|
* Creates an object representation of this proto.
|
|
@@ -13797,7 +14034,9 @@ proto.bonus.DepositEligibleUserBonusItem.toObject = function(includeInstance, ms
|
|
|
13797
14034
|
depositMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
13798
14035
|
depositMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
13799
14036
|
numberOfDeposit: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
13800
|
-
activationUntil: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
14037
|
+
activationUntil: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
14038
|
+
rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
|
|
14039
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.toObject, includeInstance)
|
|
13801
14040
|
};
|
|
13802
14041
|
|
|
13803
14042
|
if (includeInstance) {
|
|
@@ -13870,6 +14109,11 @@ proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader = function(
|
|
|
13870
14109
|
var value = /** @type {string} */ (reader.readString());
|
|
13871
14110
|
msg.setActivationUntil(value);
|
|
13872
14111
|
break;
|
|
14112
|
+
case 10:
|
|
14113
|
+
var value = new proto.bonus.DepositEligibleUserBonusRewardItem;
|
|
14114
|
+
reader.readMessage(value,proto.bonus.DepositEligibleUserBonusRewardItem.deserializeBinaryFromReader);
|
|
14115
|
+
msg.addRewards(value);
|
|
14116
|
+
break;
|
|
13873
14117
|
default:
|
|
13874
14118
|
reader.skipField();
|
|
13875
14119
|
break;
|
|
@@ -13962,6 +14206,14 @@ proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter = function(mess
|
|
|
13962
14206
|
f
|
|
13963
14207
|
);
|
|
13964
14208
|
}
|
|
14209
|
+
f = message.getRewardsList();
|
|
14210
|
+
if (f.length > 0) {
|
|
14211
|
+
writer.writeRepeatedMessage(
|
|
14212
|
+
10,
|
|
14213
|
+
f,
|
|
14214
|
+
proto.bonus.DepositEligibleUserBonusRewardItem.serializeBinaryToWriter
|
|
14215
|
+
);
|
|
14216
|
+
}
|
|
13965
14217
|
};
|
|
13966
14218
|
|
|
13967
14219
|
|
|
@@ -14271,6 +14523,44 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.hasActivationUntil = function
|
|
|
14271
14523
|
};
|
|
14272
14524
|
|
|
14273
14525
|
|
|
14526
|
+
/**
|
|
14527
|
+
* repeated DepositEligibleUserBonusRewardItem rewards = 10;
|
|
14528
|
+
* @return {!Array<!proto.bonus.DepositEligibleUserBonusRewardItem>}
|
|
14529
|
+
*/
|
|
14530
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getRewardsList = function() {
|
|
14531
|
+
return /** @type{!Array<!proto.bonus.DepositEligibleUserBonusRewardItem>} */ (
|
|
14532
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.DepositEligibleUserBonusRewardItem, 10));
|
|
14533
|
+
};
|
|
14534
|
+
|
|
14535
|
+
|
|
14536
|
+
/**
|
|
14537
|
+
* @param {!Array<!proto.bonus.DepositEligibleUserBonusRewardItem>} value
|
|
14538
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
14539
|
+
*/
|
|
14540
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setRewardsList = function(value) {
|
|
14541
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
|
14542
|
+
};
|
|
14543
|
+
|
|
14544
|
+
|
|
14545
|
+
/**
|
|
14546
|
+
* @param {!proto.bonus.DepositEligibleUserBonusRewardItem=} opt_value
|
|
14547
|
+
* @param {number=} opt_index
|
|
14548
|
+
* @return {!proto.bonus.DepositEligibleUserBonusRewardItem}
|
|
14549
|
+
*/
|
|
14550
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.addRewards = function(opt_value, opt_index) {
|
|
14551
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.bonus.DepositEligibleUserBonusRewardItem, opt_index);
|
|
14552
|
+
};
|
|
14553
|
+
|
|
14554
|
+
|
|
14555
|
+
/**
|
|
14556
|
+
* Clears the list making it empty but non-null.
|
|
14557
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
14558
|
+
*/
|
|
14559
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearRewardsList = function() {
|
|
14560
|
+
return this.setRewardsList([]);
|
|
14561
|
+
};
|
|
14562
|
+
|
|
14563
|
+
|
|
14274
14564
|
|
|
14275
14565
|
|
|
14276
14566
|
|