protobuf-platform 1.2.284 → 1.2.286

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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.284",
3
+ "version": "1.2.286",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/sport/sport.proto CHANGED
@@ -6,6 +6,8 @@ service Sport {
6
6
  rpc checkConnection(PingRequest) returns (PongResponse);
7
7
  // Launch Betby sportsbook widget for user or guest.
8
8
  rpc launchBetby(LaunchBetbyRequest) returns (LaunchBetbyResponse);
9
+ // Refresh Betby session token without full widget launch.
10
+ rpc refreshBetbyToken(RefreshBetbyTokenRequest) returns (RefreshBetbyTokenResponse);
9
11
  rpc runSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
10
12
  rpc checkSelfValidationBetby(selfValidationBetbyRequest) returns (selfValidationBetbyResponse);
11
13
  // Vendor callback.
@@ -14,6 +16,9 @@ service Sport {
14
16
  // Sport meta
15
17
  rpc getSportCategoriesByIds(SportCategoriesIds) returns (SportCategoriesResponse);
16
18
  rpc getSportTypesByIds(SportTypesIds) returns (SportTypesResponse);
19
+ // BetBy free bets via Slotegrator: BO template list and mass issue for activation.
20
+ rpc getBetbyFreebetTemplates(GetBetbyFreebetTemplatesRequest) returns (GetBetbyFreebetTemplatesResponse);
21
+ rpc issueBetbyFreebets(IssueBetbyFreebetsRequest) returns (IssueBetbyFreebetsResponse);
17
22
  }
18
23
 
19
24
  message PingRequest { string ping = 1; }
@@ -59,6 +64,17 @@ message LaunchBetbyResponse {
59
64
  optional string mode = 2;
60
65
  }
61
66
 
67
+ // Narrow refresh: re-init Betby session server-side; returns new token only.
68
+ message RefreshBetbyTokenRequest {
69
+ optional int32 user_id = 1;
70
+ optional string user_public_id = 2;
71
+ optional string session_id = 3;
72
+ }
73
+
74
+ message RefreshBetbyTokenResponse {
75
+ string token = 1;
76
+ }
77
+
62
78
  // Vendor
63
79
  message VendorActionRequest {
64
80
  string data = 1;
@@ -110,4 +126,31 @@ message SportTypesIds {
110
126
 
111
127
  message SportTypesResponse {
112
128
  repeated SportTypeItem items = 1;
129
+ }
130
+
131
+ // BetBy free bet templates (MVP): optional pagination aligned with provider API; `data` is JSON string.
132
+ message GetBetbyFreebetTemplatesRequest {
133
+ optional int32 page = 1;
134
+ optional int32 per_page = 2;
135
+ }
136
+
137
+ message GetBetbyFreebetTemplatesResponse {
138
+ string data = 1;
139
+ }
140
+
141
+ message FreebetIssueItem {
142
+ repeated string player_ids = 1;
143
+ double amount = 2;
144
+ string currency = 3;
145
+ }
146
+
147
+ // Mass issue for bonus-driven activation; `data` in response is JSON string (MVP).
148
+ message IssueBetbyFreebetsRequest {
149
+ string sportsbook_uuid = 1;
150
+ int32 template_id = 2;
151
+ repeated FreebetIssueItem items = 3;
152
+ }
153
+
154
+ message IssueBetbyFreebetsResponse {
155
+ string data = 1;
113
156
  }
@@ -4,6 +4,50 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var sport_pb = require('./sport_pb.js');
6
6
 
7
+ function serialize_sport_GetBetbyFreebetTemplatesRequest(arg) {
8
+ if (!(arg instanceof sport_pb.GetBetbyFreebetTemplatesRequest)) {
9
+ throw new Error('Expected argument of type sport.GetBetbyFreebetTemplatesRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_sport_GetBetbyFreebetTemplatesRequest(buffer_arg) {
15
+ return sport_pb.GetBetbyFreebetTemplatesRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_sport_GetBetbyFreebetTemplatesResponse(arg) {
19
+ if (!(arg instanceof sport_pb.GetBetbyFreebetTemplatesResponse)) {
20
+ throw new Error('Expected argument of type sport.GetBetbyFreebetTemplatesResponse');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_sport_GetBetbyFreebetTemplatesResponse(buffer_arg) {
26
+ return sport_pb.GetBetbyFreebetTemplatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
29
+ function serialize_sport_IssueBetbyFreebetsRequest(arg) {
30
+ if (!(arg instanceof sport_pb.IssueBetbyFreebetsRequest)) {
31
+ throw new Error('Expected argument of type sport.IssueBetbyFreebetsRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_sport_IssueBetbyFreebetsRequest(buffer_arg) {
37
+ return sport_pb.IssueBetbyFreebetsRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_sport_IssueBetbyFreebetsResponse(arg) {
41
+ if (!(arg instanceof sport_pb.IssueBetbyFreebetsResponse)) {
42
+ throw new Error('Expected argument of type sport.IssueBetbyFreebetsResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_sport_IssueBetbyFreebetsResponse(buffer_arg) {
48
+ return sport_pb.IssueBetbyFreebetsResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
7
51
  function serialize_sport_LaunchBetbyRequest(arg) {
8
52
  if (!(arg instanceof sport_pb.LaunchBetbyRequest)) {
9
53
  throw new Error('Expected argument of type sport.LaunchBetbyRequest');
@@ -48,6 +92,28 @@ function deserialize_sport_PongResponse(buffer_arg) {
48
92
  return sport_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
93
  }
50
94
 
95
+ function serialize_sport_RefreshBetbyTokenRequest(arg) {
96
+ if (!(arg instanceof sport_pb.RefreshBetbyTokenRequest)) {
97
+ throw new Error('Expected argument of type sport.RefreshBetbyTokenRequest');
98
+ }
99
+ return Buffer.from(arg.serializeBinary());
100
+ }
101
+
102
+ function deserialize_sport_RefreshBetbyTokenRequest(buffer_arg) {
103
+ return sport_pb.RefreshBetbyTokenRequest.deserializeBinary(new Uint8Array(buffer_arg));
104
+ }
105
+
106
+ function serialize_sport_RefreshBetbyTokenResponse(arg) {
107
+ if (!(arg instanceof sport_pb.RefreshBetbyTokenResponse)) {
108
+ throw new Error('Expected argument of type sport.RefreshBetbyTokenResponse');
109
+ }
110
+ return Buffer.from(arg.serializeBinary());
111
+ }
112
+
113
+ function deserialize_sport_RefreshBetbyTokenResponse(buffer_arg) {
114
+ return sport_pb.RefreshBetbyTokenResponse.deserializeBinary(new Uint8Array(buffer_arg));
115
+ }
116
+
51
117
  function serialize_sport_SportCategoriesIds(arg) {
52
118
  if (!(arg instanceof sport_pb.SportCategoriesIds)) {
53
119
  throw new Error('Expected argument of type sport.SportCategoriesIds');
@@ -161,6 +227,18 @@ launchBetby: {
161
227
  responseSerialize: serialize_sport_LaunchBetbyResponse,
162
228
  responseDeserialize: deserialize_sport_LaunchBetbyResponse,
163
229
  },
230
+ // Refresh Betby session token without full widget launch.
231
+ refreshBetbyToken: {
232
+ path: '/sport.Sport/refreshBetbyToken',
233
+ requestStream: false,
234
+ responseStream: false,
235
+ requestType: sport_pb.RefreshBetbyTokenRequest,
236
+ responseType: sport_pb.RefreshBetbyTokenResponse,
237
+ requestSerialize: serialize_sport_RefreshBetbyTokenRequest,
238
+ requestDeserialize: deserialize_sport_RefreshBetbyTokenRequest,
239
+ responseSerialize: serialize_sport_RefreshBetbyTokenResponse,
240
+ responseDeserialize: deserialize_sport_RefreshBetbyTokenResponse,
241
+ },
164
242
  runSelfValidationBetby: {
165
243
  path: '/sport.Sport/runSelfValidationBetby',
166
244
  requestStream: false,
@@ -218,6 +296,29 @@ getSportCategoriesByIds: {
218
296
  responseSerialize: serialize_sport_SportTypesResponse,
219
297
  responseDeserialize: deserialize_sport_SportTypesResponse,
220
298
  },
299
+ // BetBy free bets via Slotegrator: BO template list and mass issue for activation.
300
+ getBetbyFreebetTemplates: {
301
+ path: '/sport.Sport/getBetbyFreebetTemplates',
302
+ requestStream: false,
303
+ responseStream: false,
304
+ requestType: sport_pb.GetBetbyFreebetTemplatesRequest,
305
+ responseType: sport_pb.GetBetbyFreebetTemplatesResponse,
306
+ requestSerialize: serialize_sport_GetBetbyFreebetTemplatesRequest,
307
+ requestDeserialize: deserialize_sport_GetBetbyFreebetTemplatesRequest,
308
+ responseSerialize: serialize_sport_GetBetbyFreebetTemplatesResponse,
309
+ responseDeserialize: deserialize_sport_GetBetbyFreebetTemplatesResponse,
310
+ },
311
+ issueBetbyFreebets: {
312
+ path: '/sport.Sport/issueBetbyFreebets',
313
+ requestStream: false,
314
+ responseStream: false,
315
+ requestType: sport_pb.IssueBetbyFreebetsRequest,
316
+ responseType: sport_pb.IssueBetbyFreebetsResponse,
317
+ requestSerialize: serialize_sport_IssueBetbyFreebetsRequest,
318
+ requestDeserialize: deserialize_sport_IssueBetbyFreebetsRequest,
319
+ responseSerialize: serialize_sport_IssueBetbyFreebetsResponse,
320
+ responseDeserialize: deserialize_sport_IssueBetbyFreebetsResponse,
321
+ },
221
322
  };
222
323
 
223
324
  exports.SportClient = grpc.makeGenericClientConstructor(SportService, 'Sport');