protobuf-platform 1.2.642 → 1.2.643
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 +7 -0
- package/game/game.proto +2 -0
- package/game/game_pb.js +49 -1
- package/package.json +1 -1
- package/sport/sport.proto +4 -0
- package/sport/sport_pb.js +97 -1
package/bonus/bonus.proto
CHANGED
|
@@ -103,6 +103,9 @@ message BonusActivationRulesRequest {
|
|
|
103
103
|
optional string promo_code = 8;
|
|
104
104
|
}
|
|
105
105
|
// Write-side reward payload for a single semantic reward type (e.g. "freebet", "comboboost").
|
|
106
|
+
// `config` is type-specific JSON. For freebet: templateId, amount, maxWin, winningsDestination.
|
|
107
|
+
// For freespins: gameId, maxWin, spinAmount, totalAmount, winningsDestination.
|
|
108
|
+
// winningsDestination is "real" | "bonus"; absent/null/legacy JSON MUST resolve to bonus.
|
|
106
109
|
message BonusRewardWriteItem {
|
|
107
110
|
string type = 1;
|
|
108
111
|
optional string config = 2;
|
|
@@ -110,6 +113,8 @@ message BonusRewardWriteItem {
|
|
|
110
113
|
|
|
111
114
|
// Legacy scalar/config fields (1–10) remain for backward compatibility.
|
|
112
115
|
// New reward types must use `rewards`; do not add per-type top-level fields (e.g. combo_boost_config).
|
|
116
|
+
// free_spins_config / free_bet_config JSON keys match BonusReward.config (including maxWin and
|
|
117
|
+
// winningsDestination). Missing winningsDestination is bonus, never real.
|
|
113
118
|
message BonusRewardsRequest {
|
|
114
119
|
int32 bonus_id = 1;
|
|
115
120
|
string currency = 2;
|
|
@@ -135,6 +140,8 @@ message ActivationRule {
|
|
|
135
140
|
string currency = 2;
|
|
136
141
|
optional string config = 3;
|
|
137
142
|
}
|
|
143
|
+
// Read-side reward. `config` JSON is type-specific; freespins/freebet may include maxWin and
|
|
144
|
+
// winningsDestination ("real" | "bonus"). Absent destination is bonus.
|
|
138
145
|
message BonusReward {
|
|
139
146
|
string type = 1;
|
|
140
147
|
string currency = 2;
|
package/game/game.proto
CHANGED
|
@@ -1188,6 +1188,8 @@ message FreeSpinBonusCampaignRequest {
|
|
|
1188
1188
|
optional string campaign_name = 11;
|
|
1189
1189
|
optional string provider_extras = 12;
|
|
1190
1190
|
int64 user_bonus_id = 13;
|
|
1191
|
+
// Per-spin winnings destination: "real" | "bonus". Absent/empty/legacy = bonus.
|
|
1192
|
+
optional string winnings_destination = 14;
|
|
1191
1193
|
}
|
|
1192
1194
|
message FreeSpinStatusRequest {
|
|
1193
1195
|
string free_spin_id = 1;
|
package/game/game_pb.js
CHANGED
|
@@ -49625,7 +49625,8 @@ proto.game.FreeSpinBonusCampaignRequest.toObject = function(includeInstance, msg
|
|
|
49625
49625
|
maxWinAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
|
|
49626
49626
|
campaignName: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
49627
49627
|
providerExtras: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
49628
|
-
userBonusId: jspb.Message.getFieldWithDefault(msg, 13, 0)
|
|
49628
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
49629
|
+
winningsDestination: jspb.Message.getFieldWithDefault(msg, 14, "")
|
|
49629
49630
|
};
|
|
49630
49631
|
|
|
49631
49632
|
if (includeInstance) {
|
|
@@ -49714,6 +49715,10 @@ proto.game.FreeSpinBonusCampaignRequest.deserializeBinaryFromReader = function(m
|
|
|
49714
49715
|
var value = /** @type {number} */ (reader.readInt64());
|
|
49715
49716
|
msg.setUserBonusId(value);
|
|
49716
49717
|
break;
|
|
49718
|
+
case 14:
|
|
49719
|
+
var value = /** @type {string} */ (reader.readString());
|
|
49720
|
+
msg.setWinningsDestination(value);
|
|
49721
|
+
break;
|
|
49717
49722
|
default:
|
|
49718
49723
|
reader.skipField();
|
|
49719
49724
|
break;
|
|
@@ -49834,6 +49839,13 @@ proto.game.FreeSpinBonusCampaignRequest.serializeBinaryToWriter = function(messa
|
|
|
49834
49839
|
f
|
|
49835
49840
|
);
|
|
49836
49841
|
}
|
|
49842
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 14));
|
|
49843
|
+
if (f != null) {
|
|
49844
|
+
writer.writeString(
|
|
49845
|
+
14,
|
|
49846
|
+
f
|
|
49847
|
+
);
|
|
49848
|
+
}
|
|
49837
49849
|
};
|
|
49838
49850
|
|
|
49839
49851
|
|
|
@@ -50125,6 +50137,42 @@ proto.game.FreeSpinBonusCampaignRequest.prototype.setUserBonusId = function(valu
|
|
|
50125
50137
|
};
|
|
50126
50138
|
|
|
50127
50139
|
|
|
50140
|
+
/**
|
|
50141
|
+
* optional string winnings_destination = 14;
|
|
50142
|
+
* @return {string}
|
|
50143
|
+
*/
|
|
50144
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.getWinningsDestination = function() {
|
|
50145
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
50146
|
+
};
|
|
50147
|
+
|
|
50148
|
+
|
|
50149
|
+
/**
|
|
50150
|
+
* @param {string} value
|
|
50151
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
|
50152
|
+
*/
|
|
50153
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.setWinningsDestination = function(value) {
|
|
50154
|
+
return jspb.Message.setField(this, 14, value);
|
|
50155
|
+
};
|
|
50156
|
+
|
|
50157
|
+
|
|
50158
|
+
/**
|
|
50159
|
+
* Clears the field making it undefined.
|
|
50160
|
+
* @return {!proto.game.FreeSpinBonusCampaignRequest} returns this
|
|
50161
|
+
*/
|
|
50162
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.clearWinningsDestination = function() {
|
|
50163
|
+
return jspb.Message.setField(this, 14, undefined);
|
|
50164
|
+
};
|
|
50165
|
+
|
|
50166
|
+
|
|
50167
|
+
/**
|
|
50168
|
+
* Returns whether this field is set.
|
|
50169
|
+
* @return {boolean}
|
|
50170
|
+
*/
|
|
50171
|
+
proto.game.FreeSpinBonusCampaignRequest.prototype.hasWinningsDestination = function() {
|
|
50172
|
+
return jspb.Message.getField(this, 14) != null;
|
|
50173
|
+
};
|
|
50174
|
+
|
|
50175
|
+
|
|
50128
50176
|
|
|
50129
50177
|
|
|
50130
50178
|
|
package/package.json
CHANGED
package/sport/sport.proto
CHANGED
|
@@ -240,6 +240,10 @@ message SportsbookRewardIssueTarget {
|
|
|
240
240
|
optional string amount = 2;
|
|
241
241
|
optional string currency = 3;
|
|
242
242
|
optional string operation_id = 4;
|
|
243
|
+
// Per-action Free Bet max win in reward currency. Absent = no cap.
|
|
244
|
+
optional string max_win = 5;
|
|
245
|
+
// Per-action winnings destination: "real" | "bonus". Absent/empty/legacy = bonus.
|
|
246
|
+
optional string winnings_destination = 6;
|
|
243
247
|
}
|
|
244
248
|
|
|
245
249
|
message IssueSportsbookRewardsRequest {
|
package/sport/sport_pb.js
CHANGED
|
@@ -6743,7 +6743,9 @@ proto.sport.SportsbookRewardIssueTarget.toObject = function(includeInstance, msg
|
|
|
6743
6743
|
playerId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6744
6744
|
amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6745
6745
|
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6746
|
-
operationId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
6746
|
+
operationId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6747
|
+
maxWin: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
6748
|
+
winningsDestination: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
6747
6749
|
};
|
|
6748
6750
|
|
|
6749
6751
|
if (includeInstance) {
|
|
@@ -6796,6 +6798,14 @@ proto.sport.SportsbookRewardIssueTarget.deserializeBinaryFromReader = function(m
|
|
|
6796
6798
|
var value = /** @type {string} */ (reader.readString());
|
|
6797
6799
|
msg.setOperationId(value);
|
|
6798
6800
|
break;
|
|
6801
|
+
case 5:
|
|
6802
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6803
|
+
msg.setMaxWin(value);
|
|
6804
|
+
break;
|
|
6805
|
+
case 6:
|
|
6806
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6807
|
+
msg.setWinningsDestination(value);
|
|
6808
|
+
break;
|
|
6799
6809
|
default:
|
|
6800
6810
|
reader.skipField();
|
|
6801
6811
|
break;
|
|
@@ -6853,6 +6863,20 @@ proto.sport.SportsbookRewardIssueTarget.serializeBinaryToWriter = function(messa
|
|
|
6853
6863
|
f
|
|
6854
6864
|
);
|
|
6855
6865
|
}
|
|
6866
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
6867
|
+
if (f != null) {
|
|
6868
|
+
writer.writeString(
|
|
6869
|
+
5,
|
|
6870
|
+
f
|
|
6871
|
+
);
|
|
6872
|
+
}
|
|
6873
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 6));
|
|
6874
|
+
if (f != null) {
|
|
6875
|
+
writer.writeString(
|
|
6876
|
+
6,
|
|
6877
|
+
f
|
|
6878
|
+
);
|
|
6879
|
+
}
|
|
6856
6880
|
};
|
|
6857
6881
|
|
|
6858
6882
|
|
|
@@ -6982,6 +7006,78 @@ proto.sport.SportsbookRewardIssueTarget.prototype.hasOperationId = function() {
|
|
|
6982
7006
|
};
|
|
6983
7007
|
|
|
6984
7008
|
|
|
7009
|
+
/**
|
|
7010
|
+
* optional string max_win = 5;
|
|
7011
|
+
* @return {string}
|
|
7012
|
+
*/
|
|
7013
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.getMaxWin = function() {
|
|
7014
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7015
|
+
};
|
|
7016
|
+
|
|
7017
|
+
|
|
7018
|
+
/**
|
|
7019
|
+
* @param {string} value
|
|
7020
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7021
|
+
*/
|
|
7022
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.setMaxWin = function(value) {
|
|
7023
|
+
return jspb.Message.setField(this, 5, value);
|
|
7024
|
+
};
|
|
7025
|
+
|
|
7026
|
+
|
|
7027
|
+
/**
|
|
7028
|
+
* Clears the field making it undefined.
|
|
7029
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7030
|
+
*/
|
|
7031
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.clearMaxWin = function() {
|
|
7032
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
7033
|
+
};
|
|
7034
|
+
|
|
7035
|
+
|
|
7036
|
+
/**
|
|
7037
|
+
* Returns whether this field is set.
|
|
7038
|
+
* @return {boolean}
|
|
7039
|
+
*/
|
|
7040
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.hasMaxWin = function() {
|
|
7041
|
+
return jspb.Message.getField(this, 5) != null;
|
|
7042
|
+
};
|
|
7043
|
+
|
|
7044
|
+
|
|
7045
|
+
/**
|
|
7046
|
+
* optional string winnings_destination = 6;
|
|
7047
|
+
* @return {string}
|
|
7048
|
+
*/
|
|
7049
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.getWinningsDestination = function() {
|
|
7050
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
7051
|
+
};
|
|
7052
|
+
|
|
7053
|
+
|
|
7054
|
+
/**
|
|
7055
|
+
* @param {string} value
|
|
7056
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7057
|
+
*/
|
|
7058
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.setWinningsDestination = function(value) {
|
|
7059
|
+
return jspb.Message.setField(this, 6, value);
|
|
7060
|
+
};
|
|
7061
|
+
|
|
7062
|
+
|
|
7063
|
+
/**
|
|
7064
|
+
* Clears the field making it undefined.
|
|
7065
|
+
* @return {!proto.sport.SportsbookRewardIssueTarget} returns this
|
|
7066
|
+
*/
|
|
7067
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.clearWinningsDestination = function() {
|
|
7068
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
7069
|
+
};
|
|
7070
|
+
|
|
7071
|
+
|
|
7072
|
+
/**
|
|
7073
|
+
* Returns whether this field is set.
|
|
7074
|
+
* @return {boolean}
|
|
7075
|
+
*/
|
|
7076
|
+
proto.sport.SportsbookRewardIssueTarget.prototype.hasWinningsDestination = function() {
|
|
7077
|
+
return jspb.Message.getField(this, 6) != null;
|
|
7078
|
+
};
|
|
7079
|
+
|
|
7080
|
+
|
|
6985
7081
|
|
|
6986
7082
|
/**
|
|
6987
7083
|
* List of repeated fields within this message type.
|