protobuf-platform 1.2.285 → 1.2.287
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 +8 -0
- package/bonus/bonus_pb.js +292 -4
- package/package.json +1 -1
- package/poker/poker.proto +48 -1
- package/poker/poker_grpc_pb.js +66 -0
- package/poker/poker_pb.js +1738 -0
- package/sport/sport.proto +30 -0
- package/sport/sport_grpc_pb.js +67 -0
- package/sport/sport_pb.js +1002 -0
package/bonus/bonus.proto
CHANGED
|
@@ -92,6 +92,7 @@ message BonusRewardsRequest {
|
|
|
92
92
|
optional float loyalty = 7;
|
|
93
93
|
optional float ranking = 8;
|
|
94
94
|
optional string free_spins_config = 9;
|
|
95
|
+
optional string free_bet_config = 10;
|
|
95
96
|
}
|
|
96
97
|
message BonusBetRangesRequest {
|
|
97
98
|
int32 bonus_id = 1;
|
|
@@ -136,6 +137,8 @@ message BonusItemRequest {
|
|
|
136
137
|
optional int32 wagering_period_in_hours = 19;
|
|
137
138
|
optional string type_data = 20;
|
|
138
139
|
repeated int32 segment_ids = 21;
|
|
140
|
+
// Business-allowed: "casino" | "sport" | "all"
|
|
141
|
+
optional string category = 22;
|
|
139
142
|
}
|
|
140
143
|
message GetBonusRequest {
|
|
141
144
|
int32 id = 1;
|
|
@@ -190,6 +193,8 @@ message BonusItem {
|
|
|
190
193
|
// Back Office computed fields (table columns)
|
|
191
194
|
optional string timing = 34;
|
|
192
195
|
optional string segments = 35;
|
|
196
|
+
// Business-allowed: "casino" | "sport" | "all"
|
|
197
|
+
optional string category = 36;
|
|
193
198
|
}
|
|
194
199
|
message BonusItemsResponse {
|
|
195
200
|
repeated BonusItem items = 1;
|
|
@@ -245,6 +250,9 @@ message UserBonusItem {
|
|
|
245
250
|
optional string status_free_spins = 23;
|
|
246
251
|
optional float reward_free_spins = 24;
|
|
247
252
|
optional float cancellation_amount = 25;
|
|
253
|
+
optional bool has_free_bet = 26;
|
|
254
|
+
optional string status_free_bet = 27;
|
|
255
|
+
optional float reward_free_bet = 28;
|
|
248
256
|
}
|
|
249
257
|
message FreeSpinItem {
|
|
250
258
|
int32 game_id = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -3288,7 +3288,8 @@ proto.bonus.BonusRewardsRequest.toObject = function(includeInstance, msg) {
|
|
|
3288
3288
|
coins: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
3289
3289
|
loyalty: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
3290
3290
|
ranking: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
|
|
3291
|
-
freeSpinsConfig: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
3291
|
+
freeSpinsConfig: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3292
|
+
freeBetConfig: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
3292
3293
|
};
|
|
3293
3294
|
|
|
3294
3295
|
if (includeInstance) {
|
|
@@ -3361,6 +3362,10 @@ proto.bonus.BonusRewardsRequest.deserializeBinaryFromReader = function(msg, read
|
|
|
3361
3362
|
var value = /** @type {string} */ (reader.readString());
|
|
3362
3363
|
msg.setFreeSpinsConfig(value);
|
|
3363
3364
|
break;
|
|
3365
|
+
case 10:
|
|
3366
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3367
|
+
msg.setFreeBetConfig(value);
|
|
3368
|
+
break;
|
|
3364
3369
|
default:
|
|
3365
3370
|
reader.skipField();
|
|
3366
3371
|
break;
|
|
@@ -3453,6 +3458,13 @@ proto.bonus.BonusRewardsRequest.serializeBinaryToWriter = function(message, writ
|
|
|
3453
3458
|
f
|
|
3454
3459
|
);
|
|
3455
3460
|
}
|
|
3461
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 10));
|
|
3462
|
+
if (f != null) {
|
|
3463
|
+
writer.writeString(
|
|
3464
|
+
10,
|
|
3465
|
+
f
|
|
3466
|
+
);
|
|
3467
|
+
}
|
|
3456
3468
|
};
|
|
3457
3469
|
|
|
3458
3470
|
|
|
@@ -3744,6 +3756,42 @@ proto.bonus.BonusRewardsRequest.prototype.hasFreeSpinsConfig = function() {
|
|
|
3744
3756
|
};
|
|
3745
3757
|
|
|
3746
3758
|
|
|
3759
|
+
/**
|
|
3760
|
+
* optional string free_bet_config = 10;
|
|
3761
|
+
* @return {string}
|
|
3762
|
+
*/
|
|
3763
|
+
proto.bonus.BonusRewardsRequest.prototype.getFreeBetConfig = function() {
|
|
3764
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
3765
|
+
};
|
|
3766
|
+
|
|
3767
|
+
|
|
3768
|
+
/**
|
|
3769
|
+
* @param {string} value
|
|
3770
|
+
* @return {!proto.bonus.BonusRewardsRequest} returns this
|
|
3771
|
+
*/
|
|
3772
|
+
proto.bonus.BonusRewardsRequest.prototype.setFreeBetConfig = function(value) {
|
|
3773
|
+
return jspb.Message.setField(this, 10, value);
|
|
3774
|
+
};
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
/**
|
|
3778
|
+
* Clears the field making it undefined.
|
|
3779
|
+
* @return {!proto.bonus.BonusRewardsRequest} returns this
|
|
3780
|
+
*/
|
|
3781
|
+
proto.bonus.BonusRewardsRequest.prototype.clearFreeBetConfig = function() {
|
|
3782
|
+
return jspb.Message.setField(this, 10, undefined);
|
|
3783
|
+
};
|
|
3784
|
+
|
|
3785
|
+
|
|
3786
|
+
/**
|
|
3787
|
+
* Returns whether this field is set.
|
|
3788
|
+
* @return {boolean}
|
|
3789
|
+
*/
|
|
3790
|
+
proto.bonus.BonusRewardsRequest.prototype.hasFreeBetConfig = function() {
|
|
3791
|
+
return jspb.Message.getField(this, 10) != null;
|
|
3792
|
+
};
|
|
3793
|
+
|
|
3794
|
+
|
|
3747
3795
|
|
|
3748
3796
|
|
|
3749
3797
|
|
|
@@ -4665,7 +4713,8 @@ proto.bonus.BonusItemRequest.toObject = function(includeInstance, msg) {
|
|
|
4665
4713
|
activationPeriodInHours: jspb.Message.getFieldWithDefault(msg, 18, 0),
|
|
4666
4714
|
wageringPeriodInHours: jspb.Message.getFieldWithDefault(msg, 19, 0),
|
|
4667
4715
|
typeData: jspb.Message.getFieldWithDefault(msg, 20, ""),
|
|
4668
|
-
segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f
|
|
4716
|
+
segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f,
|
|
4717
|
+
category: jspb.Message.getFieldWithDefault(msg, 22, "")
|
|
4669
4718
|
};
|
|
4670
4719
|
|
|
4671
4720
|
if (includeInstance) {
|
|
@@ -4788,6 +4837,10 @@ proto.bonus.BonusItemRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
|
4788
4837
|
msg.addSegmentIds(values[i]);
|
|
4789
4838
|
}
|
|
4790
4839
|
break;
|
|
4840
|
+
case 22:
|
|
4841
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4842
|
+
msg.setCategory(value);
|
|
4843
|
+
break;
|
|
4791
4844
|
default:
|
|
4792
4845
|
reader.skipField();
|
|
4793
4846
|
break;
|
|
@@ -4964,6 +5017,13 @@ proto.bonus.BonusItemRequest.serializeBinaryToWriter = function(message, writer)
|
|
|
4964
5017
|
f
|
|
4965
5018
|
);
|
|
4966
5019
|
}
|
|
5020
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 22));
|
|
5021
|
+
if (f != null) {
|
|
5022
|
+
writer.writeString(
|
|
5023
|
+
22,
|
|
5024
|
+
f
|
|
5025
|
+
);
|
|
5026
|
+
}
|
|
4967
5027
|
};
|
|
4968
5028
|
|
|
4969
5029
|
|
|
@@ -5724,6 +5784,42 @@ proto.bonus.BonusItemRequest.prototype.clearSegmentIdsList = function() {
|
|
|
5724
5784
|
};
|
|
5725
5785
|
|
|
5726
5786
|
|
|
5787
|
+
/**
|
|
5788
|
+
* optional string category = 22;
|
|
5789
|
+
* @return {string}
|
|
5790
|
+
*/
|
|
5791
|
+
proto.bonus.BonusItemRequest.prototype.getCategory = function() {
|
|
5792
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
|
|
5793
|
+
};
|
|
5794
|
+
|
|
5795
|
+
|
|
5796
|
+
/**
|
|
5797
|
+
* @param {string} value
|
|
5798
|
+
* @return {!proto.bonus.BonusItemRequest} returns this
|
|
5799
|
+
*/
|
|
5800
|
+
proto.bonus.BonusItemRequest.prototype.setCategory = function(value) {
|
|
5801
|
+
return jspb.Message.setField(this, 22, value);
|
|
5802
|
+
};
|
|
5803
|
+
|
|
5804
|
+
|
|
5805
|
+
/**
|
|
5806
|
+
* Clears the field making it undefined.
|
|
5807
|
+
* @return {!proto.bonus.BonusItemRequest} returns this
|
|
5808
|
+
*/
|
|
5809
|
+
proto.bonus.BonusItemRequest.prototype.clearCategory = function() {
|
|
5810
|
+
return jspb.Message.setField(this, 22, undefined);
|
|
5811
|
+
};
|
|
5812
|
+
|
|
5813
|
+
|
|
5814
|
+
/**
|
|
5815
|
+
* Returns whether this field is set.
|
|
5816
|
+
* @return {boolean}
|
|
5817
|
+
*/
|
|
5818
|
+
proto.bonus.BonusItemRequest.prototype.hasCategory = function() {
|
|
5819
|
+
return jspb.Message.getField(this, 22) != null;
|
|
5820
|
+
};
|
|
5821
|
+
|
|
5822
|
+
|
|
5727
5823
|
|
|
5728
5824
|
|
|
5729
5825
|
|
|
@@ -6459,7 +6555,8 @@ proto.bonus.BonusItem.toObject = function(includeInstance, msg) {
|
|
|
6459
6555
|
activationReadinessList: jspb.Message.toObjectList(msg.getActivationReadinessList(),
|
|
6460
6556
|
proto.bonus.CurrencyStatusItem.toObject, includeInstance),
|
|
6461
6557
|
timing: jspb.Message.getFieldWithDefault(msg, 34, ""),
|
|
6462
|
-
segments: jspb.Message.getFieldWithDefault(msg, 35, "")
|
|
6558
|
+
segments: jspb.Message.getFieldWithDefault(msg, 35, ""),
|
|
6559
|
+
category: jspb.Message.getFieldWithDefault(msg, 36, "")
|
|
6463
6560
|
};
|
|
6464
6561
|
|
|
6465
6562
|
if (includeInstance) {
|
|
@@ -6645,6 +6742,10 @@ proto.bonus.BonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
6645
6742
|
var value = /** @type {string} */ (reader.readString());
|
|
6646
6743
|
msg.setSegments(value);
|
|
6647
6744
|
break;
|
|
6745
|
+
case 36:
|
|
6746
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6747
|
+
msg.setCategory(value);
|
|
6748
|
+
break;
|
|
6648
6749
|
default:
|
|
6649
6750
|
reader.skipField();
|
|
6650
6751
|
break;
|
|
@@ -6926,6 +7027,13 @@ proto.bonus.BonusItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
6926
7027
|
f
|
|
6927
7028
|
);
|
|
6928
7029
|
}
|
|
7030
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 36));
|
|
7031
|
+
if (f != null) {
|
|
7032
|
+
writer.writeString(
|
|
7033
|
+
36,
|
|
7034
|
+
f
|
|
7035
|
+
);
|
|
7036
|
+
}
|
|
6929
7037
|
};
|
|
6930
7038
|
|
|
6931
7039
|
|
|
@@ -8204,6 +8312,42 @@ proto.bonus.BonusItem.prototype.hasSegments = function() {
|
|
|
8204
8312
|
};
|
|
8205
8313
|
|
|
8206
8314
|
|
|
8315
|
+
/**
|
|
8316
|
+
* optional string category = 36;
|
|
8317
|
+
* @return {string}
|
|
8318
|
+
*/
|
|
8319
|
+
proto.bonus.BonusItem.prototype.getCategory = function() {
|
|
8320
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 36, ""));
|
|
8321
|
+
};
|
|
8322
|
+
|
|
8323
|
+
|
|
8324
|
+
/**
|
|
8325
|
+
* @param {string} value
|
|
8326
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
8327
|
+
*/
|
|
8328
|
+
proto.bonus.BonusItem.prototype.setCategory = function(value) {
|
|
8329
|
+
return jspb.Message.setField(this, 36, value);
|
|
8330
|
+
};
|
|
8331
|
+
|
|
8332
|
+
|
|
8333
|
+
/**
|
|
8334
|
+
* Clears the field making it undefined.
|
|
8335
|
+
* @return {!proto.bonus.BonusItem} returns this
|
|
8336
|
+
*/
|
|
8337
|
+
proto.bonus.BonusItem.prototype.clearCategory = function() {
|
|
8338
|
+
return jspb.Message.setField(this, 36, undefined);
|
|
8339
|
+
};
|
|
8340
|
+
|
|
8341
|
+
|
|
8342
|
+
/**
|
|
8343
|
+
* Returns whether this field is set.
|
|
8344
|
+
* @return {boolean}
|
|
8345
|
+
*/
|
|
8346
|
+
proto.bonus.BonusItem.prototype.hasCategory = function() {
|
|
8347
|
+
return jspb.Message.getField(this, 36) != null;
|
|
8348
|
+
};
|
|
8349
|
+
|
|
8350
|
+
|
|
8207
8351
|
|
|
8208
8352
|
/**
|
|
8209
8353
|
* List of repeated fields within this message type.
|
|
@@ -9542,7 +9686,10 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
|
|
|
9542
9686
|
hasFreeSpins: jspb.Message.getBooleanFieldWithDefault(msg, 22, false),
|
|
9543
9687
|
statusFreeSpins: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
9544
9688
|
rewardFreeSpins: jspb.Message.getFloatingPointFieldWithDefault(msg, 24, 0.0),
|
|
9545
|
-
cancellationAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0)
|
|
9689
|
+
cancellationAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0),
|
|
9690
|
+
hasFreeBet: jspb.Message.getBooleanFieldWithDefault(msg, 26, false),
|
|
9691
|
+
statusFreeBet: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
9692
|
+
rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0)
|
|
9546
9693
|
};
|
|
9547
9694
|
|
|
9548
9695
|
if (includeInstance) {
|
|
@@ -9681,6 +9828,18 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
9681
9828
|
var value = /** @type {number} */ (reader.readFloat());
|
|
9682
9829
|
msg.setCancellationAmount(value);
|
|
9683
9830
|
break;
|
|
9831
|
+
case 26:
|
|
9832
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
9833
|
+
msg.setHasFreeBet(value);
|
|
9834
|
+
break;
|
|
9835
|
+
case 27:
|
|
9836
|
+
var value = /** @type {string} */ (reader.readString());
|
|
9837
|
+
msg.setStatusFreeBet(value);
|
|
9838
|
+
break;
|
|
9839
|
+
case 28:
|
|
9840
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
9841
|
+
msg.setRewardFreeBet(value);
|
|
9842
|
+
break;
|
|
9684
9843
|
default:
|
|
9685
9844
|
reader.skipField();
|
|
9686
9845
|
break;
|
|
@@ -9887,6 +10046,27 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
9887
10046
|
f
|
|
9888
10047
|
);
|
|
9889
10048
|
}
|
|
10049
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 26));
|
|
10050
|
+
if (f != null) {
|
|
10051
|
+
writer.writeBool(
|
|
10052
|
+
26,
|
|
10053
|
+
f
|
|
10054
|
+
);
|
|
10055
|
+
}
|
|
10056
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 27));
|
|
10057
|
+
if (f != null) {
|
|
10058
|
+
writer.writeString(
|
|
10059
|
+
27,
|
|
10060
|
+
f
|
|
10061
|
+
);
|
|
10062
|
+
}
|
|
10063
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 28));
|
|
10064
|
+
if (f != null) {
|
|
10065
|
+
writer.writeFloat(
|
|
10066
|
+
28,
|
|
10067
|
+
f
|
|
10068
|
+
);
|
|
10069
|
+
}
|
|
9890
10070
|
};
|
|
9891
10071
|
|
|
9892
10072
|
|
|
@@ -10793,6 +10973,114 @@ proto.bonus.UserBonusItem.prototype.hasCancellationAmount = function() {
|
|
|
10793
10973
|
};
|
|
10794
10974
|
|
|
10795
10975
|
|
|
10976
|
+
/**
|
|
10977
|
+
* optional bool has_free_bet = 26;
|
|
10978
|
+
* @return {boolean}
|
|
10979
|
+
*/
|
|
10980
|
+
proto.bonus.UserBonusItem.prototype.getHasFreeBet = function() {
|
|
10981
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 26, false));
|
|
10982
|
+
};
|
|
10983
|
+
|
|
10984
|
+
|
|
10985
|
+
/**
|
|
10986
|
+
* @param {boolean} value
|
|
10987
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
10988
|
+
*/
|
|
10989
|
+
proto.bonus.UserBonusItem.prototype.setHasFreeBet = function(value) {
|
|
10990
|
+
return jspb.Message.setField(this, 26, value);
|
|
10991
|
+
};
|
|
10992
|
+
|
|
10993
|
+
|
|
10994
|
+
/**
|
|
10995
|
+
* Clears the field making it undefined.
|
|
10996
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
10997
|
+
*/
|
|
10998
|
+
proto.bonus.UserBonusItem.prototype.clearHasFreeBet = function() {
|
|
10999
|
+
return jspb.Message.setField(this, 26, undefined);
|
|
11000
|
+
};
|
|
11001
|
+
|
|
11002
|
+
|
|
11003
|
+
/**
|
|
11004
|
+
* Returns whether this field is set.
|
|
11005
|
+
* @return {boolean}
|
|
11006
|
+
*/
|
|
11007
|
+
proto.bonus.UserBonusItem.prototype.hasHasFreeBet = function() {
|
|
11008
|
+
return jspb.Message.getField(this, 26) != null;
|
|
11009
|
+
};
|
|
11010
|
+
|
|
11011
|
+
|
|
11012
|
+
/**
|
|
11013
|
+
* optional string status_free_bet = 27;
|
|
11014
|
+
* @return {string}
|
|
11015
|
+
*/
|
|
11016
|
+
proto.bonus.UserBonusItem.prototype.getStatusFreeBet = function() {
|
|
11017
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 27, ""));
|
|
11018
|
+
};
|
|
11019
|
+
|
|
11020
|
+
|
|
11021
|
+
/**
|
|
11022
|
+
* @param {string} value
|
|
11023
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11024
|
+
*/
|
|
11025
|
+
proto.bonus.UserBonusItem.prototype.setStatusFreeBet = function(value) {
|
|
11026
|
+
return jspb.Message.setField(this, 27, value);
|
|
11027
|
+
};
|
|
11028
|
+
|
|
11029
|
+
|
|
11030
|
+
/**
|
|
11031
|
+
* Clears the field making it undefined.
|
|
11032
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11033
|
+
*/
|
|
11034
|
+
proto.bonus.UserBonusItem.prototype.clearStatusFreeBet = function() {
|
|
11035
|
+
return jspb.Message.setField(this, 27, undefined);
|
|
11036
|
+
};
|
|
11037
|
+
|
|
11038
|
+
|
|
11039
|
+
/**
|
|
11040
|
+
* Returns whether this field is set.
|
|
11041
|
+
* @return {boolean}
|
|
11042
|
+
*/
|
|
11043
|
+
proto.bonus.UserBonusItem.prototype.hasStatusFreeBet = function() {
|
|
11044
|
+
return jspb.Message.getField(this, 27) != null;
|
|
11045
|
+
};
|
|
11046
|
+
|
|
11047
|
+
|
|
11048
|
+
/**
|
|
11049
|
+
* optional float reward_free_bet = 28;
|
|
11050
|
+
* @return {number}
|
|
11051
|
+
*/
|
|
11052
|
+
proto.bonus.UserBonusItem.prototype.getRewardFreeBet = function() {
|
|
11053
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 28, 0.0));
|
|
11054
|
+
};
|
|
11055
|
+
|
|
11056
|
+
|
|
11057
|
+
/**
|
|
11058
|
+
* @param {number} value
|
|
11059
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11060
|
+
*/
|
|
11061
|
+
proto.bonus.UserBonusItem.prototype.setRewardFreeBet = function(value) {
|
|
11062
|
+
return jspb.Message.setField(this, 28, value);
|
|
11063
|
+
};
|
|
11064
|
+
|
|
11065
|
+
|
|
11066
|
+
/**
|
|
11067
|
+
* Clears the field making it undefined.
|
|
11068
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11069
|
+
*/
|
|
11070
|
+
proto.bonus.UserBonusItem.prototype.clearRewardFreeBet = function() {
|
|
11071
|
+
return jspb.Message.setField(this, 28, undefined);
|
|
11072
|
+
};
|
|
11073
|
+
|
|
11074
|
+
|
|
11075
|
+
/**
|
|
11076
|
+
* Returns whether this field is set.
|
|
11077
|
+
* @return {boolean}
|
|
11078
|
+
*/
|
|
11079
|
+
proto.bonus.UserBonusItem.prototype.hasRewardFreeBet = function() {
|
|
11080
|
+
return jspb.Message.getField(this, 28) != null;
|
|
11081
|
+
};
|
|
11082
|
+
|
|
11083
|
+
|
|
10796
11084
|
|
|
10797
11085
|
|
|
10798
11086
|
|
package/package.json
CHANGED
package/poker/poker.proto
CHANGED
|
@@ -4,6 +4,8 @@ package poker;
|
|
|
4
4
|
|
|
5
5
|
service Poker {
|
|
6
6
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
|
7
|
+
rpc createSession(CreateSessionRequest) returns (CreateSessionResponse);
|
|
8
|
+
rpc processProviderCallback(ProcessProviderCallbackRequest) returns (ProcessProviderCallbackResponse);
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
message PingRequest { string ping = 1; }
|
|
@@ -13,4 +15,49 @@ message PaginationRequest {
|
|
|
13
15
|
int32 limit = 1;
|
|
14
16
|
int32 offset = 2;
|
|
15
17
|
optional string order = 3;
|
|
16
|
-
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message CreateSessionRequest {
|
|
21
|
+
string user_id = 1;
|
|
22
|
+
string user_public_id = 2;
|
|
23
|
+
string nickname = 3;
|
|
24
|
+
string currency = 4;
|
|
25
|
+
string locale = 5;
|
|
26
|
+
string ip = 6;
|
|
27
|
+
string user_agent = 7;
|
|
28
|
+
string device_type = 8;
|
|
29
|
+
string platform = 9;
|
|
30
|
+
optional string session_id = 10;
|
|
31
|
+
optional string return_url = 11;
|
|
32
|
+
optional string game_code = 12;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message CreateSessionResponse {
|
|
36
|
+
bool status = 1;
|
|
37
|
+
optional string launch_url = 2;
|
|
38
|
+
optional string provider_session_id = 3;
|
|
39
|
+
optional string provider_user_id = 4;
|
|
40
|
+
optional string error = 5;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message CallbackHeader {
|
|
44
|
+
string key = 1;
|
|
45
|
+
string value = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message ProcessProviderCallbackRequest {
|
|
49
|
+
string provider = 1;
|
|
50
|
+
string path = 2;
|
|
51
|
+
string method = 3;
|
|
52
|
+
string raw_body = 4;
|
|
53
|
+
repeated CallbackHeader headers = 5;
|
|
54
|
+
optional string remote_ip = 6;
|
|
55
|
+
optional string query_string = 7;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
message ProcessProviderCallbackResponse {
|
|
59
|
+
int32 http_status = 1;
|
|
60
|
+
string body = 2;
|
|
61
|
+
optional string content_type = 3;
|
|
62
|
+
optional string error = 4;
|
|
63
|
+
}
|
package/poker/poker_grpc_pb.js
CHANGED
|
@@ -4,6 +4,28 @@
|
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
|
5
5
|
var poker_pb = require('./poker_pb.js');
|
|
6
6
|
|
|
7
|
+
function serialize_poker_CreateSessionRequest(arg) {
|
|
8
|
+
if (!(arg instanceof poker_pb.CreateSessionRequest)) {
|
|
9
|
+
throw new Error('Expected argument of type poker.CreateSessionRequest');
|
|
10
|
+
}
|
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function deserialize_poker_CreateSessionRequest(buffer_arg) {
|
|
15
|
+
return poker_pb.CreateSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function serialize_poker_CreateSessionResponse(arg) {
|
|
19
|
+
if (!(arg instanceof poker_pb.CreateSessionResponse)) {
|
|
20
|
+
throw new Error('Expected argument of type poker.CreateSessionResponse');
|
|
21
|
+
}
|
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function deserialize_poker_CreateSessionResponse(buffer_arg) {
|
|
26
|
+
return poker_pb.CreateSessionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
+
}
|
|
28
|
+
|
|
7
29
|
function serialize_poker_PingRequest(arg) {
|
|
8
30
|
if (!(arg instanceof poker_pb.PingRequest)) {
|
|
9
31
|
throw new Error('Expected argument of type poker.PingRequest');
|
|
@@ -26,6 +48,28 @@ function deserialize_poker_PongResponse(buffer_arg) {
|
|
|
26
48
|
return poker_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
49
|
}
|
|
28
50
|
|
|
51
|
+
function serialize_poker_ProcessProviderCallbackRequest(arg) {
|
|
52
|
+
if (!(arg instanceof poker_pb.ProcessProviderCallbackRequest)) {
|
|
53
|
+
throw new Error('Expected argument of type poker.ProcessProviderCallbackRequest');
|
|
54
|
+
}
|
|
55
|
+
return Buffer.from(arg.serializeBinary());
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function deserialize_poker_ProcessProviderCallbackRequest(buffer_arg) {
|
|
59
|
+
return poker_pb.ProcessProviderCallbackRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function serialize_poker_ProcessProviderCallbackResponse(arg) {
|
|
63
|
+
if (!(arg instanceof poker_pb.ProcessProviderCallbackResponse)) {
|
|
64
|
+
throw new Error('Expected argument of type poker.ProcessProviderCallbackResponse');
|
|
65
|
+
}
|
|
66
|
+
return Buffer.from(arg.serializeBinary());
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function deserialize_poker_ProcessProviderCallbackResponse(buffer_arg) {
|
|
70
|
+
return poker_pb.ProcessProviderCallbackResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
71
|
+
}
|
|
72
|
+
|
|
29
73
|
|
|
30
74
|
var PokerService = exports.PokerService = {
|
|
31
75
|
checkConnection: {
|
|
@@ -39,6 +83,28 @@ var PokerService = exports.PokerService = {
|
|
|
39
83
|
responseSerialize: serialize_poker_PongResponse,
|
|
40
84
|
responseDeserialize: deserialize_poker_PongResponse,
|
|
41
85
|
},
|
|
86
|
+
createSession: {
|
|
87
|
+
path: '/poker.Poker/createSession',
|
|
88
|
+
requestStream: false,
|
|
89
|
+
responseStream: false,
|
|
90
|
+
requestType: poker_pb.CreateSessionRequest,
|
|
91
|
+
responseType: poker_pb.CreateSessionResponse,
|
|
92
|
+
requestSerialize: serialize_poker_CreateSessionRequest,
|
|
93
|
+
requestDeserialize: deserialize_poker_CreateSessionRequest,
|
|
94
|
+
responseSerialize: serialize_poker_CreateSessionResponse,
|
|
95
|
+
responseDeserialize: deserialize_poker_CreateSessionResponse,
|
|
96
|
+
},
|
|
97
|
+
processProviderCallback: {
|
|
98
|
+
path: '/poker.Poker/processProviderCallback',
|
|
99
|
+
requestStream: false,
|
|
100
|
+
responseStream: false,
|
|
101
|
+
requestType: poker_pb.ProcessProviderCallbackRequest,
|
|
102
|
+
responseType: poker_pb.ProcessProviderCallbackResponse,
|
|
103
|
+
requestSerialize: serialize_poker_ProcessProviderCallbackRequest,
|
|
104
|
+
requestDeserialize: deserialize_poker_ProcessProviderCallbackRequest,
|
|
105
|
+
responseSerialize: serialize_poker_ProcessProviderCallbackResponse,
|
|
106
|
+
responseDeserialize: deserialize_poker_ProcessProviderCallbackResponse,
|
|
107
|
+
},
|
|
42
108
|
};
|
|
43
109
|
|
|
44
110
|
exports.PokerClient = grpc.makeGenericClientConstructor(PokerService, 'Poker');
|