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/cms/cms_pb.js CHANGED
@@ -5712,7 +5712,8 @@ proto.cms.GetMainPageWidgetRequest.toObject = function(includeInstance, msg) {
5712
5712
  var f, obj = {
5713
5713
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
5714
5714
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
5715
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
5715
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
5716
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
5716
5717
  };
5717
5718
 
5718
5719
  if (includeInstance) {
@@ -5761,6 +5762,10 @@ proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, r
5761
5762
  var value = /** @type {boolean} */ (reader.readBool());
5762
5763
  msg.setAdminSide(value);
5763
5764
  break;
5765
+ case 4:
5766
+ var value = /** @type {string} */ (reader.readString());
5767
+ msg.setLocale(value);
5768
+ break;
5764
5769
  default:
5765
5770
  reader.skipField();
5766
5771
  break;
@@ -5811,6 +5816,13 @@ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter = function(message, w
5811
5816
  f
5812
5817
  );
5813
5818
  }
5819
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
5820
+ if (f != null) {
5821
+ writer.writeString(
5822
+ 4,
5823
+ f
5824
+ );
5825
+ }
5814
5826
  };
5815
5827
 
5816
5828
 
@@ -5922,6 +5934,42 @@ proto.cms.GetMainPageWidgetRequest.prototype.hasAdminSide = function() {
5922
5934
  };
5923
5935
 
5924
5936
 
5937
+ /**
5938
+ * optional string locale = 4;
5939
+ * @return {string}
5940
+ */
5941
+ proto.cms.GetMainPageWidgetRequest.prototype.getLocale = function() {
5942
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5943
+ };
5944
+
5945
+
5946
+ /**
5947
+ * @param {string} value
5948
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
5949
+ */
5950
+ proto.cms.GetMainPageWidgetRequest.prototype.setLocale = function(value) {
5951
+ return jspb.Message.setField(this, 4, value);
5952
+ };
5953
+
5954
+
5955
+ /**
5956
+ * Clears the field making it undefined.
5957
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
5958
+ */
5959
+ proto.cms.GetMainPageWidgetRequest.prototype.clearLocale = function() {
5960
+ return jspb.Message.setField(this, 4, undefined);
5961
+ };
5962
+
5963
+
5964
+ /**
5965
+ * Returns whether this field is set.
5966
+ * @return {boolean}
5967
+ */
5968
+ proto.cms.GetMainPageWidgetRequest.prototype.hasLocale = function() {
5969
+ return jspb.Message.getField(this, 4) != null;
5970
+ };
5971
+
5972
+
5925
5973
 
5926
5974
 
5927
5975
 
@@ -6324,7 +6372,8 @@ proto.cms.GetCasinoPageWidgetRequest.toObject = function(includeInstance, msg) {
6324
6372
  var f, obj = {
6325
6373
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
6326
6374
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
6327
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
6375
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
6376
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
6328
6377
  };
6329
6378
 
6330
6379
  if (includeInstance) {
@@ -6373,6 +6422,10 @@ proto.cms.GetCasinoPageWidgetRequest.deserializeBinaryFromReader = function(msg,
6373
6422
  var value = /** @type {boolean} */ (reader.readBool());
6374
6423
  msg.setAdminSide(value);
6375
6424
  break;
6425
+ case 4:
6426
+ var value = /** @type {string} */ (reader.readString());
6427
+ msg.setLocale(value);
6428
+ break;
6376
6429
  default:
6377
6430
  reader.skipField();
6378
6431
  break;
@@ -6423,6 +6476,13 @@ proto.cms.GetCasinoPageWidgetRequest.serializeBinaryToWriter = function(message,
6423
6476
  f
6424
6477
  );
6425
6478
  }
6479
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
6480
+ if (f != null) {
6481
+ writer.writeString(
6482
+ 4,
6483
+ f
6484
+ );
6485
+ }
6426
6486
  };
6427
6487
 
6428
6488
 
@@ -6534,6 +6594,42 @@ proto.cms.GetCasinoPageWidgetRequest.prototype.hasAdminSide = function() {
6534
6594
  };
6535
6595
 
6536
6596
 
6597
+ /**
6598
+ * optional string locale = 4;
6599
+ * @return {string}
6600
+ */
6601
+ proto.cms.GetCasinoPageWidgetRequest.prototype.getLocale = function() {
6602
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6603
+ };
6604
+
6605
+
6606
+ /**
6607
+ * @param {string} value
6608
+ * @return {!proto.cms.GetCasinoPageWidgetRequest} returns this
6609
+ */
6610
+ proto.cms.GetCasinoPageWidgetRequest.prototype.setLocale = function(value) {
6611
+ return jspb.Message.setField(this, 4, value);
6612
+ };
6613
+
6614
+
6615
+ /**
6616
+ * Clears the field making it undefined.
6617
+ * @return {!proto.cms.GetCasinoPageWidgetRequest} returns this
6618
+ */
6619
+ proto.cms.GetCasinoPageWidgetRequest.prototype.clearLocale = function() {
6620
+ return jspb.Message.setField(this, 4, undefined);
6621
+ };
6622
+
6623
+
6624
+ /**
6625
+ * Returns whether this field is set.
6626
+ * @return {boolean}
6627
+ */
6628
+ proto.cms.GetCasinoPageWidgetRequest.prototype.hasLocale = function() {
6629
+ return jspb.Message.getField(this, 4) != null;
6630
+ };
6631
+
6632
+
6537
6633
 
6538
6634
 
6539
6635
 
@@ -8647,7 +8743,8 @@ proto.cms.GetFooterWidgetRequest.prototype.toObject = function(opt_includeInstan
8647
8743
  proto.cms.GetFooterWidgetRequest.toObject = function(includeInstance, msg) {
8648
8744
  var f, obj = {
8649
8745
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
8650
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
8746
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
8747
+ locale: jspb.Message.getFieldWithDefault(msg, 3, "")
8651
8748
  };
8652
8749
 
8653
8750
  if (includeInstance) {
@@ -8692,6 +8789,10 @@ proto.cms.GetFooterWidgetRequest.deserializeBinaryFromReader = function(msg, rea
8692
8789
  var value = /** @type {boolean} */ (reader.readBool());
8693
8790
  msg.setAdminSide(value);
8694
8791
  break;
8792
+ case 3:
8793
+ var value = /** @type {string} */ (reader.readString());
8794
+ msg.setLocale(value);
8795
+ break;
8695
8796
  default:
8696
8797
  reader.skipField();
8697
8798
  break;
@@ -8735,6 +8836,13 @@ proto.cms.GetFooterWidgetRequest.serializeBinaryToWriter = function(message, wri
8735
8836
  f
8736
8837
  );
8737
8838
  }
8839
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
8840
+ if (f != null) {
8841
+ writer.writeString(
8842
+ 3,
8843
+ f
8844
+ );
8845
+ }
8738
8846
  };
8739
8847
 
8740
8848
 
@@ -8810,6 +8918,42 @@ proto.cms.GetFooterWidgetRequest.prototype.hasAdminSide = function() {
8810
8918
  };
8811
8919
 
8812
8920
 
8921
+ /**
8922
+ * optional string locale = 3;
8923
+ * @return {string}
8924
+ */
8925
+ proto.cms.GetFooterWidgetRequest.prototype.getLocale = function() {
8926
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8927
+ };
8928
+
8929
+
8930
+ /**
8931
+ * @param {string} value
8932
+ * @return {!proto.cms.GetFooterWidgetRequest} returns this
8933
+ */
8934
+ proto.cms.GetFooterWidgetRequest.prototype.setLocale = function(value) {
8935
+ return jspb.Message.setField(this, 3, value);
8936
+ };
8937
+
8938
+
8939
+ /**
8940
+ * Clears the field making it undefined.
8941
+ * @return {!proto.cms.GetFooterWidgetRequest} returns this
8942
+ */
8943
+ proto.cms.GetFooterWidgetRequest.prototype.clearLocale = function() {
8944
+ return jspb.Message.setField(this, 3, undefined);
8945
+ };
8946
+
8947
+
8948
+ /**
8949
+ * Returns whether this field is set.
8950
+ * @return {boolean}
8951
+ */
8952
+ proto.cms.GetFooterWidgetRequest.prototype.hasLocale = function() {
8953
+ return jspb.Message.getField(this, 3) != null;
8954
+ };
8955
+
8956
+
8813
8957
 
8814
8958
 
8815
8959
 
@@ -9546,7 +9690,8 @@ proto.cms.GetGameBarWidgetRequest.toObject = function(includeInstance, msg) {
9546
9690
  var f, obj = {
9547
9691
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
9548
9692
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
9549
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
9693
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
9694
+ locale: jspb.Message.getFieldWithDefault(msg, 4, "")
9550
9695
  };
9551
9696
 
9552
9697
  if (includeInstance) {
@@ -9595,6 +9740,10 @@ proto.cms.GetGameBarWidgetRequest.deserializeBinaryFromReader = function(msg, re
9595
9740
  var value = /** @type {boolean} */ (reader.readBool());
9596
9741
  msg.setAdminSide(value);
9597
9742
  break;
9743
+ case 4:
9744
+ var value = /** @type {string} */ (reader.readString());
9745
+ msg.setLocale(value);
9746
+ break;
9598
9747
  default:
9599
9748
  reader.skipField();
9600
9749
  break;
@@ -9645,6 +9794,13 @@ proto.cms.GetGameBarWidgetRequest.serializeBinaryToWriter = function(message, wr
9645
9794
  f
9646
9795
  );
9647
9796
  }
9797
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9798
+ if (f != null) {
9799
+ writer.writeString(
9800
+ 4,
9801
+ f
9802
+ );
9803
+ }
9648
9804
  };
9649
9805
 
9650
9806
 
@@ -9756,6 +9912,42 @@ proto.cms.GetGameBarWidgetRequest.prototype.hasAdminSide = function() {
9756
9912
  };
9757
9913
 
9758
9914
 
9915
+ /**
9916
+ * optional string locale = 4;
9917
+ * @return {string}
9918
+ */
9919
+ proto.cms.GetGameBarWidgetRequest.prototype.getLocale = function() {
9920
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9921
+ };
9922
+
9923
+
9924
+ /**
9925
+ * @param {string} value
9926
+ * @return {!proto.cms.GetGameBarWidgetRequest} returns this
9927
+ */
9928
+ proto.cms.GetGameBarWidgetRequest.prototype.setLocale = function(value) {
9929
+ return jspb.Message.setField(this, 4, value);
9930
+ };
9931
+
9932
+
9933
+ /**
9934
+ * Clears the field making it undefined.
9935
+ * @return {!proto.cms.GetGameBarWidgetRequest} returns this
9936
+ */
9937
+ proto.cms.GetGameBarWidgetRequest.prototype.clearLocale = function() {
9938
+ return jspb.Message.setField(this, 4, undefined);
9939
+ };
9940
+
9941
+
9942
+ /**
9943
+ * Returns whether this field is set.
9944
+ * @return {boolean}
9945
+ */
9946
+ proto.cms.GetGameBarWidgetRequest.prototype.hasLocale = function() {
9947
+ return jspb.Message.getField(this, 4) != null;
9948
+ };
9949
+
9950
+
9759
9951
 
9760
9952
 
9761
9953
 
@@ -47661,7 +47853,8 @@ proto.cms.GetPresetWidgetRequest.toObject = function(includeInstance, msg) {
47661
47853
  presetId: jspb.Message.getFieldWithDefault(msg, 1, 0),
47662
47854
  widgetType: jspb.Message.getFieldWithDefault(msg, 2, ""),
47663
47855
  geo: jspb.Message.getFieldWithDefault(msg, 3, ""),
47664
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
47856
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
47857
+ locale: jspb.Message.getFieldWithDefault(msg, 5, "")
47665
47858
  };
47666
47859
 
47667
47860
  if (includeInstance) {
@@ -47714,6 +47907,10 @@ proto.cms.GetPresetWidgetRequest.deserializeBinaryFromReader = function(msg, rea
47714
47907
  var value = /** @type {boolean} */ (reader.readBool());
47715
47908
  msg.setAdminSide(value);
47716
47909
  break;
47910
+ case 5:
47911
+ var value = /** @type {string} */ (reader.readString());
47912
+ msg.setLocale(value);
47913
+ break;
47717
47914
  default:
47718
47915
  reader.skipField();
47719
47916
  break;
@@ -47771,6 +47968,13 @@ proto.cms.GetPresetWidgetRequest.serializeBinaryToWriter = function(message, wri
47771
47968
  f
47772
47969
  );
47773
47970
  }
47971
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
47972
+ if (f != null) {
47973
+ writer.writeString(
47974
+ 5,
47975
+ f
47976
+ );
47977
+ }
47774
47978
  };
47775
47979
 
47776
47980
 
@@ -47882,6 +48086,42 @@ proto.cms.GetPresetWidgetRequest.prototype.hasAdminSide = function() {
47882
48086
  };
47883
48087
 
47884
48088
 
48089
+ /**
48090
+ * optional string locale = 5;
48091
+ * @return {string}
48092
+ */
48093
+ proto.cms.GetPresetWidgetRequest.prototype.getLocale = function() {
48094
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
48095
+ };
48096
+
48097
+
48098
+ /**
48099
+ * @param {string} value
48100
+ * @return {!proto.cms.GetPresetWidgetRequest} returns this
48101
+ */
48102
+ proto.cms.GetPresetWidgetRequest.prototype.setLocale = function(value) {
48103
+ return jspb.Message.setField(this, 5, value);
48104
+ };
48105
+
48106
+
48107
+ /**
48108
+ * Clears the field making it undefined.
48109
+ * @return {!proto.cms.GetPresetWidgetRequest} returns this
48110
+ */
48111
+ proto.cms.GetPresetWidgetRequest.prototype.clearLocale = function() {
48112
+ return jspb.Message.setField(this, 5, undefined);
48113
+ };
48114
+
48115
+
48116
+ /**
48117
+ * Returns whether this field is set.
48118
+ * @return {boolean}
48119
+ */
48120
+ proto.cms.GetPresetWidgetRequest.prototype.hasLocale = function() {
48121
+ return jspb.Message.getField(this, 5) != null;
48122
+ };
48123
+
48124
+
47885
48125
 
47886
48126
 
47887
48127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.572",
3
+ "version": "1.2.575",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/sport/sport.proto CHANGED
@@ -18,9 +18,18 @@ service Sport {
18
18
  // Sport meta
19
19
  rpc getSportCategoriesByIds(SportCategoriesIds) returns (SportCategoriesResponse);
20
20
  rpc getSportTypesByIds(SportTypesIds) returns (SportTypesResponse);
21
+ // Deprecated: use getSportsbookRewardTemplates with SPORTSBOOK_REWARD_TYPE_FREEBET.
21
22
  // BetBy free bets via Slotegrator: BO template list and mass issue for activation.
22
23
  rpc getBetbyFreebetTemplates(GetBetbyFreebetTemplatesRequest) returns (GetBetbyFreebetTemplatesResponse);
24
+ // Deprecated: use issueSportsbookRewards with SPORTSBOOK_REWARD_TYPE_FREEBET.
23
25
  rpc issueBetbyFreebets(IssueBetbyFreebetsRequest) returns (IssueBetbyFreebetsResponse);
26
+
27
+ // Generic sportsbook reward template discovery (provider-agnostic).
28
+ rpc getSportsbookRewardTemplates(GetSportsbookRewardTemplatesRequest)
29
+ returns (GetSportsbookRewardTemplatesResponse);
30
+ // Generic sportsbook reward batch issuance (provider-agnostic).
31
+ rpc issueSportsbookRewards(IssueSportsbookRewardsRequest)
32
+ returns (IssueSportsbookRewardsResponse);
24
33
  }
25
34
 
26
35
  message PingRequest { string ping = 1; }
@@ -167,22 +176,33 @@ message SportTypesResponse {
167
176
  repeated SportTypeItem items = 1;
168
177
  }
169
178
 
179
+ // Semantic sportsbook reward type; provider mapping is resolved from service configuration.
180
+ enum SportsbookRewardType {
181
+ SPORTSBOOK_REWARD_TYPE_UNSPECIFIED = 0;
182
+ SPORTSBOOK_REWARD_TYPE_FREEBET = 1;
183
+ SPORTSBOOK_REWARD_TYPE_COMBOBOOST = 2;
184
+ }
185
+
186
+ // Deprecated: use GetSportsbookRewardTemplatesRequest.
170
187
  // BetBy free bet templates (MVP): optional pagination aligned with provider API; `data` is JSON string.
171
188
  message GetBetbyFreebetTemplatesRequest {
172
189
  optional int32 page = 1;
173
190
  optional int32 per_page = 2;
174
191
  }
175
192
 
193
+ // Deprecated: use GetSportsbookRewardTemplatesResponse.
176
194
  message GetBetbyFreebetTemplatesResponse {
177
195
  string data = 1;
178
196
  }
179
197
 
198
+ // Deprecated: use SportsbookRewardIssueTarget.
180
199
  message FreebetIssueItem {
181
200
  repeated string player_ids = 1;
182
201
  double amount = 2;
183
202
  string currency = 3;
184
203
  }
185
204
 
205
+ // Deprecated: use IssueSportsbookRewardsRequest.
186
206
  // Mass issue for bonus-driven activation; `data` in response is JSON string (MVP).
187
207
  message IssueBetbyFreebetsRequest {
188
208
  string sportsbook_uuid = 1;
@@ -190,6 +210,53 @@ message IssueBetbyFreebetsRequest {
190
210
  repeated FreebetIssueItem items = 3;
191
211
  }
192
212
 
213
+ // Deprecated: use IssueSportsbookRewardsResponse.
193
214
  message IssueBetbyFreebetsResponse {
194
215
  string data = 1;
216
+ }
217
+
218
+ message GetSportsbookRewardTemplatesRequest {
219
+ SportsbookRewardType reward_type = 1;
220
+ optional int32 page = 2;
221
+ optional int32 per_page = 3;
222
+ }
223
+
224
+ message SportsbookRewardTemplateItem {
225
+ string template_id = 1;
226
+ string label = 2;
227
+ SportsbookRewardType reward_type = 3;
228
+ }
229
+
230
+ message GetSportsbookRewardTemplatesResponse {
231
+ repeated SportsbookRewardTemplateItem items = 1;
232
+ optional int32 page = 2;
233
+ optional int32 per_page = 3;
234
+ optional int32 total_items = 4;
235
+ optional int32 total_pages = 5;
236
+ }
237
+
238
+ message SportsbookRewardIssueTarget {
239
+ string player_id = 1;
240
+ optional string amount = 2;
241
+ optional string currency = 3;
242
+ optional string operation_id = 4;
243
+ }
244
+
245
+ message IssueSportsbookRewardsRequest {
246
+ SportsbookRewardType reward_type = 1;
247
+ string template_id = 2;
248
+ repeated SportsbookRewardIssueTarget targets = 3;
249
+ optional string operation_id = 4;
250
+ }
251
+
252
+ message SportsbookRewardIssueResult {
253
+ string player_id = 1;
254
+ bool success = 2;
255
+ optional string provider_reward_id = 3;
256
+ optional string error_code = 4;
257
+ optional string error_message = 5;
258
+ }
259
+
260
+ message IssueSportsbookRewardsResponse {
261
+ repeated SportsbookRewardIssueResult results = 1;
195
262
  }
@@ -26,6 +26,28 @@ function deserialize_sport_GetBetbyFreebetTemplatesResponse(buffer_arg) {
26
26
  return sport_pb.GetBetbyFreebetTemplatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
27
  }
28
28
 
29
+ function serialize_sport_GetSportsbookRewardTemplatesRequest(arg) {
30
+ if (!(arg instanceof sport_pb.GetSportsbookRewardTemplatesRequest)) {
31
+ throw new Error('Expected argument of type sport.GetSportsbookRewardTemplatesRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_sport_GetSportsbookRewardTemplatesRequest(buffer_arg) {
37
+ return sport_pb.GetSportsbookRewardTemplatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_sport_GetSportsbookRewardTemplatesResponse(arg) {
41
+ if (!(arg instanceof sport_pb.GetSportsbookRewardTemplatesResponse)) {
42
+ throw new Error('Expected argument of type sport.GetSportsbookRewardTemplatesResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_sport_GetSportsbookRewardTemplatesResponse(buffer_arg) {
48
+ return sport_pb.GetSportsbookRewardTemplatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
29
51
  function serialize_sport_IssueBetbyFreebetsRequest(arg) {
30
52
  if (!(arg instanceof sport_pb.IssueBetbyFreebetsRequest)) {
31
53
  throw new Error('Expected argument of type sport.IssueBetbyFreebetsRequest');
@@ -48,6 +70,28 @@ function deserialize_sport_IssueBetbyFreebetsResponse(buffer_arg) {
48
70
  return sport_pb.IssueBetbyFreebetsResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
71
  }
50
72
 
73
+ function serialize_sport_IssueSportsbookRewardsRequest(arg) {
74
+ if (!(arg instanceof sport_pb.IssueSportsbookRewardsRequest)) {
75
+ throw new Error('Expected argument of type sport.IssueSportsbookRewardsRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_sport_IssueSportsbookRewardsRequest(buffer_arg) {
81
+ return sport_pb.IssueSportsbookRewardsRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
84
+ function serialize_sport_IssueSportsbookRewardsResponse(arg) {
85
+ if (!(arg instanceof sport_pb.IssueSportsbookRewardsResponse)) {
86
+ throw new Error('Expected argument of type sport.IssueSportsbookRewardsResponse');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_sport_IssueSportsbookRewardsResponse(buffer_arg) {
92
+ return sport_pb.IssueSportsbookRewardsResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
51
95
  function serialize_sport_LaunchBetbyRequest(arg) {
52
96
  if (!(arg instanceof sport_pb.LaunchBetbyRequest)) {
53
97
  throw new Error('Expected argument of type sport.LaunchBetbyRequest');
@@ -330,7 +374,8 @@ getSportCategoriesByIds: {
330
374
  responseSerialize: serialize_sport_SportTypesResponse,
331
375
  responseDeserialize: deserialize_sport_SportTypesResponse,
332
376
  },
333
- // BetBy free bets via Slotegrator: BO template list and mass issue for activation.
377
+ // Deprecated: use getSportsbookRewardTemplates with SPORTSBOOK_REWARD_TYPE_FREEBET.
378
+ // BetBy free bets via Slotegrator: BO template list and mass issue for activation.
334
379
  getBetbyFreebetTemplates: {
335
380
  path: '/sport.Sport/getBetbyFreebetTemplates',
336
381
  requestStream: false,
@@ -342,7 +387,8 @@ getBetbyFreebetTemplates: {
342
387
  responseSerialize: serialize_sport_GetBetbyFreebetTemplatesResponse,
343
388
  responseDeserialize: deserialize_sport_GetBetbyFreebetTemplatesResponse,
344
389
  },
345
- issueBetbyFreebets: {
390
+ // Deprecated: use issueSportsbookRewards with SPORTSBOOK_REWARD_TYPE_FREEBET.
391
+ issueBetbyFreebets: {
346
392
  path: '/sport.Sport/issueBetbyFreebets',
347
393
  requestStream: false,
348
394
  responseStream: false,
@@ -353,6 +399,30 @@ getBetbyFreebetTemplates: {
353
399
  responseSerialize: serialize_sport_IssueBetbyFreebetsResponse,
354
400
  responseDeserialize: deserialize_sport_IssueBetbyFreebetsResponse,
355
401
  },
402
+ // Generic sportsbook reward template discovery (provider-agnostic).
403
+ getSportsbookRewardTemplates: {
404
+ path: '/sport.Sport/getSportsbookRewardTemplates',
405
+ requestStream: false,
406
+ responseStream: false,
407
+ requestType: sport_pb.GetSportsbookRewardTemplatesRequest,
408
+ responseType: sport_pb.GetSportsbookRewardTemplatesResponse,
409
+ requestSerialize: serialize_sport_GetSportsbookRewardTemplatesRequest,
410
+ requestDeserialize: deserialize_sport_GetSportsbookRewardTemplatesRequest,
411
+ responseSerialize: serialize_sport_GetSportsbookRewardTemplatesResponse,
412
+ responseDeserialize: deserialize_sport_GetSportsbookRewardTemplatesResponse,
413
+ },
414
+ // Generic sportsbook reward batch issuance (provider-agnostic).
415
+ issueSportsbookRewards: {
416
+ path: '/sport.Sport/issueSportsbookRewards',
417
+ requestStream: false,
418
+ responseStream: false,
419
+ requestType: sport_pb.IssueSportsbookRewardsRequest,
420
+ responseType: sport_pb.IssueSportsbookRewardsResponse,
421
+ requestSerialize: serialize_sport_IssueSportsbookRewardsRequest,
422
+ requestDeserialize: deserialize_sport_IssueSportsbookRewardsRequest,
423
+ responseSerialize: serialize_sport_IssueSportsbookRewardsResponse,
424
+ responseDeserialize: deserialize_sport_IssueSportsbookRewardsResponse,
425
+ },
356
426
  };
357
427
 
358
428
  exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');