protobuf-platform 1.0.162 → 1.0.164
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 +1 -1
- package/bonus/bonus_pb.js +7 -7
- package/package.json +1 -1
- package/user/user.proto +3 -1
- package/user/user_grpc_pb.js +11 -0
- package/user/user_pb.js +74 -5
package/bonus/bonus.proto
CHANGED
@@ -135,7 +135,7 @@ message UserBonusItem {
|
|
135
135
|
optional int32 claiming_end_in_milliseconds = 19;
|
136
136
|
optional int32 activation_end_in_milliseconds = 20;
|
137
137
|
optional int32 wagering_end_in_milliseconds = 21;
|
138
|
-
optional bool
|
138
|
+
optional bool has_free_spins = 22;
|
139
139
|
optional string status_free_spins = 23;
|
140
140
|
optional float reward_free_spins = 24;
|
141
141
|
}
|
package/bonus/bonus_pb.js
CHANGED
@@ -5183,7 +5183,7 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
|
|
5183
5183
|
claimingEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 19, 0),
|
5184
5184
|
activationEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
5185
5185
|
wageringEndInMilliseconds: jspb.Message.getFieldWithDefault(msg, 21, 0),
|
5186
|
-
|
5186
|
+
hasFreeSpins: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
5187
5187
|
statusFreeSpins: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
5188
5188
|
rewardFreeSpins: jspb.Message.getFloatingPointFieldWithDefault(msg, 24, 0.0)
|
5189
5189
|
};
|
@@ -5310,7 +5310,7 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
5310
5310
|
break;
|
5311
5311
|
case 22:
|
5312
5312
|
var value = /** @type {boolean} */ (reader.readBool());
|
5313
|
-
msg.
|
5313
|
+
msg.setHasFreeSpins(value);
|
5314
5314
|
break;
|
5315
5315
|
case 23:
|
5316
5316
|
var value = /** @type {string} */ (reader.readString());
|
@@ -6282,10 +6282,10 @@ proto.bonus.UserBonusItem.prototype.hasWageringEndInMilliseconds = function() {
|
|
6282
6282
|
|
6283
6283
|
|
6284
6284
|
/**
|
6285
|
-
* optional bool
|
6285
|
+
* optional bool has_free_spins = 22;
|
6286
6286
|
* @return {boolean}
|
6287
6287
|
*/
|
6288
|
-
proto.bonus.UserBonusItem.prototype.
|
6288
|
+
proto.bonus.UserBonusItem.prototype.getHasFreeSpins = function() {
|
6289
6289
|
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false));
|
6290
6290
|
};
|
6291
6291
|
|
@@ -6294,7 +6294,7 @@ proto.bonus.UserBonusItem.prototype.getHasFreesSpins = function() {
|
|
6294
6294
|
* @param {boolean} value
|
6295
6295
|
* @return {!proto.bonus.UserBonusItem} returns this
|
6296
6296
|
*/
|
6297
|
-
proto.bonus.UserBonusItem.prototype.
|
6297
|
+
proto.bonus.UserBonusItem.prototype.setHasFreeSpins = function(value) {
|
6298
6298
|
return jspb.Message.setField(this, 22, value);
|
6299
6299
|
};
|
6300
6300
|
|
@@ -6303,7 +6303,7 @@ proto.bonus.UserBonusItem.prototype.setHasFreesSpins = function(value) {
|
|
6303
6303
|
* Clears the field making it undefined.
|
6304
6304
|
* @return {!proto.bonus.UserBonusItem} returns this
|
6305
6305
|
*/
|
6306
|
-
proto.bonus.UserBonusItem.prototype.
|
6306
|
+
proto.bonus.UserBonusItem.prototype.clearHasFreeSpins = function() {
|
6307
6307
|
return jspb.Message.setField(this, 22, undefined);
|
6308
6308
|
};
|
6309
6309
|
|
@@ -6312,7 +6312,7 @@ proto.bonus.UserBonusItem.prototype.clearHasFreesSpins = function() {
|
|
6312
6312
|
* Returns whether this field is set.
|
6313
6313
|
* @return {boolean}
|
6314
6314
|
*/
|
6315
|
-
proto.bonus.UserBonusItem.prototype.
|
6315
|
+
proto.bonus.UserBonusItem.prototype.hasHasFreeSpins = function() {
|
6316
6316
|
return jspb.Message.getField(this, 22) != null;
|
6317
6317
|
};
|
6318
6318
|
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -21,6 +21,7 @@ service User {
|
|
21
21
|
rpc deleteSingleSegment(GetSegmentRequest) returns (SegmentStatusResponse);
|
22
22
|
rpc readListSegments(PaginationRequest) returns (SegmentItemsResponse);
|
23
23
|
rpc addUsersIntoSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
24
|
+
rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
24
25
|
rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
25
26
|
}
|
26
27
|
|
@@ -139,8 +140,9 @@ message SegmentRequest {
|
|
139
140
|
optional bool is_active = 5;
|
140
141
|
}
|
141
142
|
message GetSegmentRequest {
|
142
|
-
int32 id = 1;
|
143
|
+
optional int32 id = 1;
|
143
144
|
repeated int32 user_ids = 2;
|
145
|
+
repeated int32 segments_ids = 3;
|
144
146
|
}
|
145
147
|
message SegmentResponse {
|
146
148
|
optional int32 id = 1;
|
package/user/user_grpc_pb.js
CHANGED
@@ -373,6 +373,17 @@ createSingleSegment: {
|
|
373
373
|
responseSerialize: serialize_user_SegmentStatusResponse,
|
374
374
|
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
375
375
|
},
|
376
|
+
addUsersIntoMultiSegments: {
|
377
|
+
path: '/user.User/addUsersIntoMultiSegments',
|
378
|
+
requestStream: false,
|
379
|
+
responseStream: false,
|
380
|
+
requestType: user_pb.GetSegmentRequest,
|
381
|
+
responseType: user_pb.SegmentStatusResponse,
|
382
|
+
requestSerialize: serialize_user_GetSegmentRequest,
|
383
|
+
requestDeserialize: deserialize_user_GetSegmentRequest,
|
384
|
+
responseSerialize: serialize_user_SegmentStatusResponse,
|
385
|
+
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
386
|
+
},
|
376
387
|
removeUsersFromSegments: {
|
377
388
|
path: '/user.User/removeUsersFromSegments',
|
378
389
|
requestStream: false,
|
package/user/user_pb.js
CHANGED
@@ -5542,7 +5542,7 @@ proto.user.SegmentRequest.prototype.hasIsActive = function() {
|
|
5542
5542
|
* @private {!Array<number>}
|
5543
5543
|
* @const
|
5544
5544
|
*/
|
5545
|
-
proto.user.GetSegmentRequest.repeatedFields_ = [2];
|
5545
|
+
proto.user.GetSegmentRequest.repeatedFields_ = [2,3];
|
5546
5546
|
|
5547
5547
|
|
5548
5548
|
|
@@ -5576,7 +5576,8 @@ proto.user.GetSegmentRequest.prototype.toObject = function(opt_includeInstance)
|
|
5576
5576
|
proto.user.GetSegmentRequest.toObject = function(includeInstance, msg) {
|
5577
5577
|
var f, obj = {
|
5578
5578
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
5579
|
-
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
5579
|
+
userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
5580
|
+
segmentsIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
|
5580
5581
|
};
|
5581
5582
|
|
5582
5583
|
if (includeInstance) {
|
@@ -5623,6 +5624,12 @@ proto.user.GetSegmentRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
5623
5624
|
msg.addUserIds(values[i]);
|
5624
5625
|
}
|
5625
5626
|
break;
|
5627
|
+
case 3:
|
5628
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
5629
|
+
for (var i = 0; i < values.length; i++) {
|
5630
|
+
msg.addSegmentsIds(values[i]);
|
5631
|
+
}
|
5632
|
+
break;
|
5626
5633
|
default:
|
5627
5634
|
reader.skipField();
|
5628
5635
|
break;
|
@@ -5652,8 +5659,8 @@ proto.user.GetSegmentRequest.prototype.serializeBinary = function() {
|
|
5652
5659
|
*/
|
5653
5660
|
proto.user.GetSegmentRequest.serializeBinaryToWriter = function(message, writer) {
|
5654
5661
|
var f = undefined;
|
5655
|
-
f =
|
5656
|
-
if (f
|
5662
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
5663
|
+
if (f != null) {
|
5657
5664
|
writer.writeInt32(
|
5658
5665
|
1,
|
5659
5666
|
f
|
@@ -5666,6 +5673,13 @@ proto.user.GetSegmentRequest.serializeBinaryToWriter = function(message, writer)
|
|
5666
5673
|
f
|
5667
5674
|
);
|
5668
5675
|
}
|
5676
|
+
f = message.getSegmentsIdsList();
|
5677
|
+
if (f.length > 0) {
|
5678
|
+
writer.writePackedInt32(
|
5679
|
+
3,
|
5680
|
+
f
|
5681
|
+
);
|
5682
|
+
}
|
5669
5683
|
};
|
5670
5684
|
|
5671
5685
|
|
@@ -5683,7 +5697,25 @@ proto.user.GetSegmentRequest.prototype.getId = function() {
|
|
5683
5697
|
* @return {!proto.user.GetSegmentRequest} returns this
|
5684
5698
|
*/
|
5685
5699
|
proto.user.GetSegmentRequest.prototype.setId = function(value) {
|
5686
|
-
return jspb.Message.
|
5700
|
+
return jspb.Message.setField(this, 1, value);
|
5701
|
+
};
|
5702
|
+
|
5703
|
+
|
5704
|
+
/**
|
5705
|
+
* Clears the field making it undefined.
|
5706
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5707
|
+
*/
|
5708
|
+
proto.user.GetSegmentRequest.prototype.clearId = function() {
|
5709
|
+
return jspb.Message.setField(this, 1, undefined);
|
5710
|
+
};
|
5711
|
+
|
5712
|
+
|
5713
|
+
/**
|
5714
|
+
* Returns whether this field is set.
|
5715
|
+
* @return {boolean}
|
5716
|
+
*/
|
5717
|
+
proto.user.GetSegmentRequest.prototype.hasId = function() {
|
5718
|
+
return jspb.Message.getField(this, 1) != null;
|
5687
5719
|
};
|
5688
5720
|
|
5689
5721
|
|
@@ -5724,6 +5756,43 @@ proto.user.GetSegmentRequest.prototype.clearUserIdsList = function() {
|
|
5724
5756
|
};
|
5725
5757
|
|
5726
5758
|
|
5759
|
+
/**
|
5760
|
+
* repeated int32 segments_ids = 3;
|
5761
|
+
* @return {!Array<number>}
|
5762
|
+
*/
|
5763
|
+
proto.user.GetSegmentRequest.prototype.getSegmentsIdsList = function() {
|
5764
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 3));
|
5765
|
+
};
|
5766
|
+
|
5767
|
+
|
5768
|
+
/**
|
5769
|
+
* @param {!Array<number>} value
|
5770
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5771
|
+
*/
|
5772
|
+
proto.user.GetSegmentRequest.prototype.setSegmentsIdsList = function(value) {
|
5773
|
+
return jspb.Message.setField(this, 3, value || []);
|
5774
|
+
};
|
5775
|
+
|
5776
|
+
|
5777
|
+
/**
|
5778
|
+
* @param {number} value
|
5779
|
+
* @param {number=} opt_index
|
5780
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5781
|
+
*/
|
5782
|
+
proto.user.GetSegmentRequest.prototype.addSegmentsIds = function(value, opt_index) {
|
5783
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
5784
|
+
};
|
5785
|
+
|
5786
|
+
|
5787
|
+
/**
|
5788
|
+
* Clears the list making it empty but non-null.
|
5789
|
+
* @return {!proto.user.GetSegmentRequest} returns this
|
5790
|
+
*/
|
5791
|
+
proto.user.GetSegmentRequest.prototype.clearSegmentsIdsList = function() {
|
5792
|
+
return this.setSegmentsIdsList([]);
|
5793
|
+
};
|
5794
|
+
|
5795
|
+
|
5727
5796
|
|
5728
5797
|
|
5729
5798
|
|