protobuf-platform 1.1.78 → 1.1.80

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.78",
3
+ "version": "1.1.80",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -258,6 +258,8 @@ message SegmentResponse {
258
258
  optional string type = 4;
259
259
  optional bool is_active = 5;
260
260
  optional int32 count_of_users = 6;
261
+ repeated SegmentPaymentRuleItem payment_rules = 7;
262
+ repeated SegmentBetRuleItem bet_rules = 8;
261
263
  }
262
264
  message SegmentStatusResponse {
263
265
  string status = 1;
@@ -291,6 +293,7 @@ message SegmentPaymentRuleRequest {
291
293
  optional float deposit_avg_max = 12;
292
294
  repeated string payment_providers = 13;
293
295
  repeated string payment_types = 14;
296
+ optional int32 is_active = 15;
294
297
  }
295
298
  message SegmentBetRuleRequest {
296
299
  int32 segment_id = 1;
@@ -311,6 +314,7 @@ message SegmentBetRuleRequest {
311
314
  optional float win_sum_max = 16;
312
315
  optional float win_avg_min = 17;
313
316
  optional float win_avg_max = 18;
317
+ optional int32 is_active = 19;
314
318
  }
315
319
  message SegmentRuleItem {
316
320
  optional SegmentPaymentRuleItem payment_rule = 1;
@@ -331,6 +335,7 @@ message SegmentPaymentRuleItem {
331
335
  repeated string payment_types = 12;
332
336
  optional int32 segment_id = 13;
333
337
  optional string currency = 14;
338
+ optional int32 is_active = 15;
334
339
  }
335
340
  message SegmentBetRuleItem {
336
341
  optional int32 segment_id = 1;
@@ -351,6 +356,7 @@ message SegmentBetRuleItem {
351
356
  optional float win_sum_max = 16;
352
357
  optional float win_avg_min = 17;
353
358
  optional float win_avg_max = 18;
359
+ optional int32 is_active = 19;
354
360
  }
355
361
  //Statuses
356
362
  message RiskStatus {
package/user/user_pb.js CHANGED
@@ -552,7 +552,7 @@ if (goog.DEBUG && !COMPILED) {
552
552
  * @constructor
553
553
  */
554
554
  proto.user.SegmentResponse = function(opt_data) {
555
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
555
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.SegmentResponse.repeatedFields_, null);
556
556
  };
557
557
  goog.inherits(proto.user.SegmentResponse, jspb.Message);
558
558
  if (goog.DEBUG && !COMPILED) {
@@ -10454,6 +10454,13 @@ proto.user.GetSegmentRequest.prototype.hasGeo = function() {
10454
10454
 
10455
10455
 
10456
10456
 
10457
+ /**
10458
+ * List of repeated fields within this message type.
10459
+ * @private {!Array<number>}
10460
+ * @const
10461
+ */
10462
+ proto.user.SegmentResponse.repeatedFields_ = [7,8];
10463
+
10457
10464
 
10458
10465
 
10459
10466
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -10490,7 +10497,11 @@ proto.user.SegmentResponse.toObject = function(includeInstance, msg) {
10490
10497
  description: jspb.Message.getFieldWithDefault(msg, 3, ""),
10491
10498
  type: jspb.Message.getFieldWithDefault(msg, 4, ""),
10492
10499
  isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
10493
- countOfUsers: jspb.Message.getFieldWithDefault(msg, 6, 0)
10500
+ countOfUsers: jspb.Message.getFieldWithDefault(msg, 6, 0),
10501
+ paymentRulesList: jspb.Message.toObjectList(msg.getPaymentRulesList(),
10502
+ proto.user.SegmentPaymentRuleItem.toObject, includeInstance),
10503
+ betRulesList: jspb.Message.toObjectList(msg.getBetRulesList(),
10504
+ proto.user.SegmentBetRuleItem.toObject, includeInstance)
10494
10505
  };
10495
10506
 
10496
10507
  if (includeInstance) {
@@ -10551,6 +10562,16 @@ proto.user.SegmentResponse.deserializeBinaryFromReader = function(msg, reader) {
10551
10562
  var value = /** @type {number} */ (reader.readInt32());
10552
10563
  msg.setCountOfUsers(value);
10553
10564
  break;
10565
+ case 7:
10566
+ var value = new proto.user.SegmentPaymentRuleItem;
10567
+ reader.readMessage(value,proto.user.SegmentPaymentRuleItem.deserializeBinaryFromReader);
10568
+ msg.addPaymentRules(value);
10569
+ break;
10570
+ case 8:
10571
+ var value = new proto.user.SegmentBetRuleItem;
10572
+ reader.readMessage(value,proto.user.SegmentBetRuleItem.deserializeBinaryFromReader);
10573
+ msg.addBetRules(value);
10574
+ break;
10554
10575
  default:
10555
10576
  reader.skipField();
10556
10577
  break;
@@ -10622,6 +10643,22 @@ proto.user.SegmentResponse.serializeBinaryToWriter = function(message, writer) {
10622
10643
  f
10623
10644
  );
10624
10645
  }
10646
+ f = message.getPaymentRulesList();
10647
+ if (f.length > 0) {
10648
+ writer.writeRepeatedMessage(
10649
+ 7,
10650
+ f,
10651
+ proto.user.SegmentPaymentRuleItem.serializeBinaryToWriter
10652
+ );
10653
+ }
10654
+ f = message.getBetRulesList();
10655
+ if (f.length > 0) {
10656
+ writer.writeRepeatedMessage(
10657
+ 8,
10658
+ f,
10659
+ proto.user.SegmentBetRuleItem.serializeBinaryToWriter
10660
+ );
10661
+ }
10625
10662
  };
10626
10663
 
10627
10664
 
@@ -10841,6 +10878,82 @@ proto.user.SegmentResponse.prototype.hasCountOfUsers = function() {
10841
10878
  };
10842
10879
 
10843
10880
 
10881
+ /**
10882
+ * repeated SegmentPaymentRuleItem payment_rules = 7;
10883
+ * @return {!Array<!proto.user.SegmentPaymentRuleItem>}
10884
+ */
10885
+ proto.user.SegmentResponse.prototype.getPaymentRulesList = function() {
10886
+ return /** @type{!Array<!proto.user.SegmentPaymentRuleItem>} */ (
10887
+ jspb.Message.getRepeatedWrapperField(this, proto.user.SegmentPaymentRuleItem, 7));
10888
+ };
10889
+
10890
+
10891
+ /**
10892
+ * @param {!Array<!proto.user.SegmentPaymentRuleItem>} value
10893
+ * @return {!proto.user.SegmentResponse} returns this
10894
+ */
10895
+ proto.user.SegmentResponse.prototype.setPaymentRulesList = function(value) {
10896
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
10897
+ };
10898
+
10899
+
10900
+ /**
10901
+ * @param {!proto.user.SegmentPaymentRuleItem=} opt_value
10902
+ * @param {number=} opt_index
10903
+ * @return {!proto.user.SegmentPaymentRuleItem}
10904
+ */
10905
+ proto.user.SegmentResponse.prototype.addPaymentRules = function(opt_value, opt_index) {
10906
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.user.SegmentPaymentRuleItem, opt_index);
10907
+ };
10908
+
10909
+
10910
+ /**
10911
+ * Clears the list making it empty but non-null.
10912
+ * @return {!proto.user.SegmentResponse} returns this
10913
+ */
10914
+ proto.user.SegmentResponse.prototype.clearPaymentRulesList = function() {
10915
+ return this.setPaymentRulesList([]);
10916
+ };
10917
+
10918
+
10919
+ /**
10920
+ * repeated SegmentBetRuleItem bet_rules = 8;
10921
+ * @return {!Array<!proto.user.SegmentBetRuleItem>}
10922
+ */
10923
+ proto.user.SegmentResponse.prototype.getBetRulesList = function() {
10924
+ return /** @type{!Array<!proto.user.SegmentBetRuleItem>} */ (
10925
+ jspb.Message.getRepeatedWrapperField(this, proto.user.SegmentBetRuleItem, 8));
10926
+ };
10927
+
10928
+
10929
+ /**
10930
+ * @param {!Array<!proto.user.SegmentBetRuleItem>} value
10931
+ * @return {!proto.user.SegmentResponse} returns this
10932
+ */
10933
+ proto.user.SegmentResponse.prototype.setBetRulesList = function(value) {
10934
+ return jspb.Message.setRepeatedWrapperField(this, 8, value);
10935
+ };
10936
+
10937
+
10938
+ /**
10939
+ * @param {!proto.user.SegmentBetRuleItem=} opt_value
10940
+ * @param {number=} opt_index
10941
+ * @return {!proto.user.SegmentBetRuleItem}
10942
+ */
10943
+ proto.user.SegmentResponse.prototype.addBetRules = function(opt_value, opt_index) {
10944
+ return jspb.Message.addToRepeatedWrapperField(this, 8, opt_value, proto.user.SegmentBetRuleItem, opt_index);
10945
+ };
10946
+
10947
+
10948
+ /**
10949
+ * Clears the list making it empty but non-null.
10950
+ * @return {!proto.user.SegmentResponse} returns this
10951
+ */
10952
+ proto.user.SegmentResponse.prototype.clearBetRulesList = function() {
10953
+ return this.setBetRulesList([]);
10954
+ };
10955
+
10956
+
10844
10957
 
10845
10958
 
10846
10959
 
@@ -11689,7 +11802,8 @@ proto.user.SegmentPaymentRuleRequest.toObject = function(includeInstance, msg) {
11689
11802
  depositAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
11690
11803
  depositAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
11691
11804
  paymentProvidersList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
11692
- paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f
11805
+ paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
11806
+ isActive: jspb.Message.getFieldWithDefault(msg, 15, 0)
11693
11807
  };
11694
11808
 
11695
11809
  if (includeInstance) {
@@ -11782,6 +11896,10 @@ proto.user.SegmentPaymentRuleRequest.deserializeBinaryFromReader = function(msg,
11782
11896
  var value = /** @type {string} */ (reader.readString());
11783
11897
  msg.addPaymentTypes(value);
11784
11898
  break;
11899
+ case 15:
11900
+ var value = /** @type {number} */ (reader.readInt32());
11901
+ msg.setIsActive(value);
11902
+ break;
11785
11903
  default:
11786
11904
  reader.skipField();
11787
11905
  break;
@@ -11909,6 +12027,13 @@ proto.user.SegmentPaymentRuleRequest.serializeBinaryToWriter = function(message,
11909
12027
  f
11910
12028
  );
11911
12029
  }
12030
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
12031
+ if (f != null) {
12032
+ writer.writeInt32(
12033
+ 15,
12034
+ f
12035
+ );
12036
+ }
11912
12037
  };
11913
12038
 
11914
12039
 
@@ -12382,6 +12507,42 @@ proto.user.SegmentPaymentRuleRequest.prototype.clearPaymentTypesList = function(
12382
12507
  };
12383
12508
 
12384
12509
 
12510
+ /**
12511
+ * optional int32 is_active = 15;
12512
+ * @return {number}
12513
+ */
12514
+ proto.user.SegmentPaymentRuleRequest.prototype.getIsActive = function() {
12515
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
12516
+ };
12517
+
12518
+
12519
+ /**
12520
+ * @param {number} value
12521
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12522
+ */
12523
+ proto.user.SegmentPaymentRuleRequest.prototype.setIsActive = function(value) {
12524
+ return jspb.Message.setField(this, 15, value);
12525
+ };
12526
+
12527
+
12528
+ /**
12529
+ * Clears the field making it undefined.
12530
+ * @return {!proto.user.SegmentPaymentRuleRequest} returns this
12531
+ */
12532
+ proto.user.SegmentPaymentRuleRequest.prototype.clearIsActive = function() {
12533
+ return jspb.Message.setField(this, 15, undefined);
12534
+ };
12535
+
12536
+
12537
+ /**
12538
+ * Returns whether this field is set.
12539
+ * @return {boolean}
12540
+ */
12541
+ proto.user.SegmentPaymentRuleRequest.prototype.hasIsActive = function() {
12542
+ return jspb.Message.getField(this, 15) != null;
12543
+ };
12544
+
12545
+
12385
12546
 
12386
12547
 
12387
12548
 
@@ -12431,7 +12592,8 @@ proto.user.SegmentBetRuleRequest.toObject = function(includeInstance, msg) {
12431
12592
  winSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
12432
12593
  winSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
12433
12594
  winAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
12434
- winAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0)
12595
+ winAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0),
12596
+ isActive: jspb.Message.getFieldWithDefault(msg, 19, 0)
12435
12597
  };
12436
12598
 
12437
12599
  if (includeInstance) {
@@ -12540,6 +12702,10 @@ proto.user.SegmentBetRuleRequest.deserializeBinaryFromReader = function(msg, rea
12540
12702
  var value = /** @type {number} */ (reader.readFloat());
12541
12703
  msg.setWinAvgMax(value);
12542
12704
  break;
12705
+ case 19:
12706
+ var value = /** @type {number} */ (reader.readInt32());
12707
+ msg.setIsActive(value);
12708
+ break;
12543
12709
  default:
12544
12710
  reader.skipField();
12545
12711
  break;
@@ -12695,6 +12861,13 @@ proto.user.SegmentBetRuleRequest.serializeBinaryToWriter = function(message, wri
12695
12861
  f
12696
12862
  );
12697
12863
  }
12864
+ f = /** @type {number} */ (jspb.Message.getField(message, 19));
12865
+ if (f != null) {
12866
+ writer.writeInt32(
12867
+ 19,
12868
+ f
12869
+ );
12870
+ }
12698
12871
  };
12699
12872
 
12700
12873
 
@@ -13310,6 +13483,42 @@ proto.user.SegmentBetRuleRequest.prototype.hasWinAvgMax = function() {
13310
13483
  };
13311
13484
 
13312
13485
 
13486
+ /**
13487
+ * optional int32 is_active = 19;
13488
+ * @return {number}
13489
+ */
13490
+ proto.user.SegmentBetRuleRequest.prototype.getIsActive = function() {
13491
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
13492
+ };
13493
+
13494
+
13495
+ /**
13496
+ * @param {number} value
13497
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13498
+ */
13499
+ proto.user.SegmentBetRuleRequest.prototype.setIsActive = function(value) {
13500
+ return jspb.Message.setField(this, 19, value);
13501
+ };
13502
+
13503
+
13504
+ /**
13505
+ * Clears the field making it undefined.
13506
+ * @return {!proto.user.SegmentBetRuleRequest} returns this
13507
+ */
13508
+ proto.user.SegmentBetRuleRequest.prototype.clearIsActive = function() {
13509
+ return jspb.Message.setField(this, 19, undefined);
13510
+ };
13511
+
13512
+
13513
+ /**
13514
+ * Returns whether this field is set.
13515
+ * @return {boolean}
13516
+ */
13517
+ proto.user.SegmentBetRuleRequest.prototype.hasIsActive = function() {
13518
+ return jspb.Message.getField(this, 19) != null;
13519
+ };
13520
+
13521
+
13313
13522
 
13314
13523
 
13315
13524
 
@@ -13564,7 +13773,8 @@ proto.user.SegmentPaymentRuleItem.toObject = function(includeInstance, msg) {
13564
13773
  paymentProvidersList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
13565
13774
  paymentTypesList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
13566
13775
  segmentId: jspb.Message.getFieldWithDefault(msg, 13, 0),
13567
- currency: jspb.Message.getFieldWithDefault(msg, 14, "")
13776
+ currency: jspb.Message.getFieldWithDefault(msg, 14, ""),
13777
+ isActive: jspb.Message.getFieldWithDefault(msg, 15, 0)
13568
13778
  };
13569
13779
 
13570
13780
  if (includeInstance) {
@@ -13657,6 +13867,10 @@ proto.user.SegmentPaymentRuleItem.deserializeBinaryFromReader = function(msg, re
13657
13867
  var value = /** @type {string} */ (reader.readString());
13658
13868
  msg.setCurrency(value);
13659
13869
  break;
13870
+ case 15:
13871
+ var value = /** @type {number} */ (reader.readInt32());
13872
+ msg.setIsActive(value);
13873
+ break;
13660
13874
  default:
13661
13875
  reader.skipField();
13662
13876
  break;
@@ -13784,6 +13998,13 @@ proto.user.SegmentPaymentRuleItem.serializeBinaryToWriter = function(message, wr
13784
13998
  f
13785
13999
  );
13786
14000
  }
14001
+ f = /** @type {number} */ (jspb.Message.getField(message, 15));
14002
+ if (f != null) {
14003
+ writer.writeInt32(
14004
+ 15,
14005
+ f
14006
+ );
14007
+ }
13787
14008
  };
13788
14009
 
13789
14010
 
@@ -14293,6 +14514,42 @@ proto.user.SegmentPaymentRuleItem.prototype.hasCurrency = function() {
14293
14514
  };
14294
14515
 
14295
14516
 
14517
+ /**
14518
+ * optional int32 is_active = 15;
14519
+ * @return {number}
14520
+ */
14521
+ proto.user.SegmentPaymentRuleItem.prototype.getIsActive = function() {
14522
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
14523
+ };
14524
+
14525
+
14526
+ /**
14527
+ * @param {number} value
14528
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14529
+ */
14530
+ proto.user.SegmentPaymentRuleItem.prototype.setIsActive = function(value) {
14531
+ return jspb.Message.setField(this, 15, value);
14532
+ };
14533
+
14534
+
14535
+ /**
14536
+ * Clears the field making it undefined.
14537
+ * @return {!proto.user.SegmentPaymentRuleItem} returns this
14538
+ */
14539
+ proto.user.SegmentPaymentRuleItem.prototype.clearIsActive = function() {
14540
+ return jspb.Message.setField(this, 15, undefined);
14541
+ };
14542
+
14543
+
14544
+ /**
14545
+ * Returns whether this field is set.
14546
+ * @return {boolean}
14547
+ */
14548
+ proto.user.SegmentPaymentRuleItem.prototype.hasIsActive = function() {
14549
+ return jspb.Message.getField(this, 15) != null;
14550
+ };
14551
+
14552
+
14296
14553
 
14297
14554
 
14298
14555
 
@@ -14342,7 +14599,8 @@ proto.user.SegmentBetRuleItem.toObject = function(includeInstance, msg) {
14342
14599
  winSumMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
14343
14600
  winSumMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
14344
14601
  winAvgMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 17, 0.0),
14345
- winAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0)
14602
+ winAvgMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0),
14603
+ isActive: jspb.Message.getFieldWithDefault(msg, 19, 0)
14346
14604
  };
14347
14605
 
14348
14606
  if (includeInstance) {
@@ -14451,6 +14709,10 @@ proto.user.SegmentBetRuleItem.deserializeBinaryFromReader = function(msg, reader
14451
14709
  var value = /** @type {number} */ (reader.readFloat());
14452
14710
  msg.setWinAvgMax(value);
14453
14711
  break;
14712
+ case 19:
14713
+ var value = /** @type {number} */ (reader.readInt32());
14714
+ msg.setIsActive(value);
14715
+ break;
14454
14716
  default:
14455
14717
  reader.skipField();
14456
14718
  break;
@@ -14606,6 +14868,13 @@ proto.user.SegmentBetRuleItem.serializeBinaryToWriter = function(message, writer
14606
14868
  f
14607
14869
  );
14608
14870
  }
14871
+ f = /** @type {number} */ (jspb.Message.getField(message, 19));
14872
+ if (f != null) {
14873
+ writer.writeInt32(
14874
+ 19,
14875
+ f
14876
+ );
14877
+ }
14609
14878
  };
14610
14879
 
14611
14880
 
@@ -15257,6 +15526,42 @@ proto.user.SegmentBetRuleItem.prototype.hasWinAvgMax = function() {
15257
15526
  };
15258
15527
 
15259
15528
 
15529
+ /**
15530
+ * optional int32 is_active = 19;
15531
+ * @return {number}
15532
+ */
15533
+ proto.user.SegmentBetRuleItem.prototype.getIsActive = function() {
15534
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0));
15535
+ };
15536
+
15537
+
15538
+ /**
15539
+ * @param {number} value
15540
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15541
+ */
15542
+ proto.user.SegmentBetRuleItem.prototype.setIsActive = function(value) {
15543
+ return jspb.Message.setField(this, 19, value);
15544
+ };
15545
+
15546
+
15547
+ /**
15548
+ * Clears the field making it undefined.
15549
+ * @return {!proto.user.SegmentBetRuleItem} returns this
15550
+ */
15551
+ proto.user.SegmentBetRuleItem.prototype.clearIsActive = function() {
15552
+ return jspb.Message.setField(this, 19, undefined);
15553
+ };
15554
+
15555
+
15556
+ /**
15557
+ * Returns whether this field is set.
15558
+ * @return {boolean}
15559
+ */
15560
+ proto.user.SegmentBetRuleItem.prototype.hasIsActive = function() {
15561
+ return jspb.Message.getField(this, 19) != null;
15562
+ };
15563
+
15564
+
15260
15565
 
15261
15566
 
15262
15567