protobuf-platform 1.2.419 → 1.2.420

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.
@@ -149,12 +149,18 @@ message BetPoint {
149
149
  optional int32 is_real_balance_allowed = 8;
150
150
  optional int32 is_bonus_balance_allowed = 9;
151
151
  }
152
+ message WagerPoint {
153
+ string currency = 1;
154
+ double multiplier = 2;
155
+ optional int32 is_active = 3;
156
+ }
152
157
  message PointItem {
153
158
  optional int32 id = 1;
154
159
  optional string type = 2;
155
160
  optional SignUpPoint sign_up_point = 3;
156
161
  optional DepositPoint deposit_point = 4;
157
162
  optional BetPoint bet_point = 5;
163
+ optional WagerPoint wager_point = 6;
158
164
  }
159
165
  //Point CRUD | Requests
160
166
  message PointRequest {
@@ -163,6 +169,7 @@ message PointRequest {
163
169
  optional SignUpPoint sign_up_point = 3;
164
170
  optional DepositPoint deposit_point = 4;
165
171
  optional BetPoint bet_point = 5;
172
+ optional WagerPoint wager_point = 6;
166
173
  }
167
174
  message GetPointRequest {
168
175
  int32 id = 1;
@@ -53,6 +53,7 @@ goog.exportSymbol('proto.loyalty.SignUpPoint', null, global);
53
53
  goog.exportSymbol('proto.loyalty.UserLoyaltyPoint', null, global);
54
54
  goog.exportSymbol('proto.loyalty.UserLoyaltyPointsResponse', null, global);
55
55
  goog.exportSymbol('proto.loyalty.UserLoyaltyResponse', null, global);
56
+ goog.exportSymbol('proto.loyalty.WagerPoint', null, global);
56
57
  /**
57
58
  * Generated by JsPbCodeGenerator.
58
59
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -494,6 +495,27 @@ if (goog.DEBUG && !COMPILED) {
494
495
  */
495
496
  proto.loyalty.BetPoint.displayName = 'proto.loyalty.BetPoint';
496
497
  }
498
+ /**
499
+ * Generated by JsPbCodeGenerator.
500
+ * @param {Array=} opt_data Optional initial data array, typically from a
501
+ * server response, or constructed directly in Javascript. The array is used
502
+ * in place and becomes part of the constructed object. It is not cloned.
503
+ * If no data is provided, the constructed object will be empty, but still
504
+ * valid.
505
+ * @extends {jspb.Message}
506
+ * @constructor
507
+ */
508
+ proto.loyalty.WagerPoint = function(opt_data) {
509
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
510
+ };
511
+ goog.inherits(proto.loyalty.WagerPoint, jspb.Message);
512
+ if (goog.DEBUG && !COMPILED) {
513
+ /**
514
+ * @public
515
+ * @override
516
+ */
517
+ proto.loyalty.WagerPoint.displayName = 'proto.loyalty.WagerPoint';
518
+ }
497
519
  /**
498
520
  * Generated by JsPbCodeGenerator.
499
521
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6518,6 +6540,214 @@ proto.loyalty.BetPoint.prototype.hasIsBonusBalanceAllowed = function() {
6518
6540
 
6519
6541
 
6520
6542
 
6543
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6544
+ /**
6545
+ * Creates an object representation of this proto.
6546
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6547
+ * Optional fields that are not set will be set to undefined.
6548
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6549
+ * For the list of reserved names please see:
6550
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6551
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6552
+ * JSPB instance for transitional soy proto support:
6553
+ * http://goto/soy-param-migration
6554
+ * @return {!Object}
6555
+ */
6556
+ proto.loyalty.WagerPoint.prototype.toObject = function(opt_includeInstance) {
6557
+ return proto.loyalty.WagerPoint.toObject(opt_includeInstance, this);
6558
+ };
6559
+
6560
+
6561
+ /**
6562
+ * Static version of the {@see toObject} method.
6563
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6564
+ * the JSPB instance for transitional soy proto support:
6565
+ * http://goto/soy-param-migration
6566
+ * @param {!proto.loyalty.WagerPoint} msg The msg instance to transform.
6567
+ * @return {!Object}
6568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6569
+ */
6570
+ proto.loyalty.WagerPoint.toObject = function(includeInstance, msg) {
6571
+ var f, obj = {
6572
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
6573
+ multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
6574
+ isActive: jspb.Message.getFieldWithDefault(msg, 3, 0)
6575
+ };
6576
+
6577
+ if (includeInstance) {
6578
+ obj.$jspbMessageInstance = msg;
6579
+ }
6580
+ return obj;
6581
+ };
6582
+ }
6583
+
6584
+
6585
+ /**
6586
+ * Deserializes binary data (in protobuf wire format).
6587
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6588
+ * @return {!proto.loyalty.WagerPoint}
6589
+ */
6590
+ proto.loyalty.WagerPoint.deserializeBinary = function(bytes) {
6591
+ var reader = new jspb.BinaryReader(bytes);
6592
+ var msg = new proto.loyalty.WagerPoint;
6593
+ return proto.loyalty.WagerPoint.deserializeBinaryFromReader(msg, reader);
6594
+ };
6595
+
6596
+
6597
+ /**
6598
+ * Deserializes binary data (in protobuf wire format) from the
6599
+ * given reader into the given message object.
6600
+ * @param {!proto.loyalty.WagerPoint} msg The message object to deserialize into.
6601
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6602
+ * @return {!proto.loyalty.WagerPoint}
6603
+ */
6604
+ proto.loyalty.WagerPoint.deserializeBinaryFromReader = function(msg, reader) {
6605
+ while (reader.nextField()) {
6606
+ if (reader.isEndGroup()) {
6607
+ break;
6608
+ }
6609
+ var field = reader.getFieldNumber();
6610
+ switch (field) {
6611
+ case 1:
6612
+ var value = /** @type {string} */ (reader.readString());
6613
+ msg.setCurrency(value);
6614
+ break;
6615
+ case 2:
6616
+ var value = /** @type {number} */ (reader.readDouble());
6617
+ msg.setMultiplier(value);
6618
+ break;
6619
+ case 3:
6620
+ var value = /** @type {number} */ (reader.readInt32());
6621
+ msg.setIsActive(value);
6622
+ break;
6623
+ default:
6624
+ reader.skipField();
6625
+ break;
6626
+ }
6627
+ }
6628
+ return msg;
6629
+ };
6630
+
6631
+
6632
+ /**
6633
+ * Serializes the message to binary data (in protobuf wire format).
6634
+ * @return {!Uint8Array}
6635
+ */
6636
+ proto.loyalty.WagerPoint.prototype.serializeBinary = function() {
6637
+ var writer = new jspb.BinaryWriter();
6638
+ proto.loyalty.WagerPoint.serializeBinaryToWriter(this, writer);
6639
+ return writer.getResultBuffer();
6640
+ };
6641
+
6642
+
6643
+ /**
6644
+ * Serializes the given message to binary data (in protobuf wire
6645
+ * format), writing to the given BinaryWriter.
6646
+ * @param {!proto.loyalty.WagerPoint} message
6647
+ * @param {!jspb.BinaryWriter} writer
6648
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6649
+ */
6650
+ proto.loyalty.WagerPoint.serializeBinaryToWriter = function(message, writer) {
6651
+ var f = undefined;
6652
+ f = message.getCurrency();
6653
+ if (f.length > 0) {
6654
+ writer.writeString(
6655
+ 1,
6656
+ f
6657
+ );
6658
+ }
6659
+ f = message.getMultiplier();
6660
+ if (f !== 0.0) {
6661
+ writer.writeDouble(
6662
+ 2,
6663
+ f
6664
+ );
6665
+ }
6666
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
6667
+ if (f != null) {
6668
+ writer.writeInt32(
6669
+ 3,
6670
+ f
6671
+ );
6672
+ }
6673
+ };
6674
+
6675
+
6676
+ /**
6677
+ * optional string currency = 1;
6678
+ * @return {string}
6679
+ */
6680
+ proto.loyalty.WagerPoint.prototype.getCurrency = function() {
6681
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6682
+ };
6683
+
6684
+
6685
+ /**
6686
+ * @param {string} value
6687
+ * @return {!proto.loyalty.WagerPoint} returns this
6688
+ */
6689
+ proto.loyalty.WagerPoint.prototype.setCurrency = function(value) {
6690
+ return jspb.Message.setProto3StringField(this, 1, value);
6691
+ };
6692
+
6693
+
6694
+ /**
6695
+ * optional double multiplier = 2;
6696
+ * @return {number}
6697
+ */
6698
+ proto.loyalty.WagerPoint.prototype.getMultiplier = function() {
6699
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
6700
+ };
6701
+
6702
+
6703
+ /**
6704
+ * @param {number} value
6705
+ * @return {!proto.loyalty.WagerPoint} returns this
6706
+ */
6707
+ proto.loyalty.WagerPoint.prototype.setMultiplier = function(value) {
6708
+ return jspb.Message.setProto3FloatField(this, 2, value);
6709
+ };
6710
+
6711
+
6712
+ /**
6713
+ * optional int32 is_active = 3;
6714
+ * @return {number}
6715
+ */
6716
+ proto.loyalty.WagerPoint.prototype.getIsActive = function() {
6717
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6718
+ };
6719
+
6720
+
6721
+ /**
6722
+ * @param {number} value
6723
+ * @return {!proto.loyalty.WagerPoint} returns this
6724
+ */
6725
+ proto.loyalty.WagerPoint.prototype.setIsActive = function(value) {
6726
+ return jspb.Message.setField(this, 3, value);
6727
+ };
6728
+
6729
+
6730
+ /**
6731
+ * Clears the field making it undefined.
6732
+ * @return {!proto.loyalty.WagerPoint} returns this
6733
+ */
6734
+ proto.loyalty.WagerPoint.prototype.clearIsActive = function() {
6735
+ return jspb.Message.setField(this, 3, undefined);
6736
+ };
6737
+
6738
+
6739
+ /**
6740
+ * Returns whether this field is set.
6741
+ * @return {boolean}
6742
+ */
6743
+ proto.loyalty.WagerPoint.prototype.hasIsActive = function() {
6744
+ return jspb.Message.getField(this, 3) != null;
6745
+ };
6746
+
6747
+
6748
+
6749
+
6750
+
6521
6751
  if (jspb.Message.GENERATE_TO_OBJECT) {
6522
6752
  /**
6523
6753
  * Creates an object representation of this proto.
@@ -6551,7 +6781,8 @@ proto.loyalty.PointItem.toObject = function(includeInstance, msg) {
6551
6781
  type: jspb.Message.getFieldWithDefault(msg, 2, ""),
6552
6782
  signUpPoint: (f = msg.getSignUpPoint()) && proto.loyalty.SignUpPoint.toObject(includeInstance, f),
6553
6783
  depositPoint: (f = msg.getDepositPoint()) && proto.loyalty.DepositPoint.toObject(includeInstance, f),
6554
- betPoint: (f = msg.getBetPoint()) && proto.loyalty.BetPoint.toObject(includeInstance, f)
6784
+ betPoint: (f = msg.getBetPoint()) && proto.loyalty.BetPoint.toObject(includeInstance, f),
6785
+ wagerPoint: (f = msg.getWagerPoint()) && proto.loyalty.WagerPoint.toObject(includeInstance, f)
6555
6786
  };
6556
6787
 
6557
6788
  if (includeInstance) {
@@ -6611,6 +6842,11 @@ proto.loyalty.PointItem.deserializeBinaryFromReader = function(msg, reader) {
6611
6842
  reader.readMessage(value,proto.loyalty.BetPoint.deserializeBinaryFromReader);
6612
6843
  msg.setBetPoint(value);
6613
6844
  break;
6845
+ case 6:
6846
+ var value = new proto.loyalty.WagerPoint;
6847
+ reader.readMessage(value,proto.loyalty.WagerPoint.deserializeBinaryFromReader);
6848
+ msg.setWagerPoint(value);
6849
+ break;
6614
6850
  default:
6615
6851
  reader.skipField();
6616
6852
  break;
@@ -6678,6 +6914,14 @@ proto.loyalty.PointItem.serializeBinaryToWriter = function(message, writer) {
6678
6914
  proto.loyalty.BetPoint.serializeBinaryToWriter
6679
6915
  );
6680
6916
  }
6917
+ f = message.getWagerPoint();
6918
+ if (f != null) {
6919
+ writer.writeMessage(
6920
+ 6,
6921
+ f,
6922
+ proto.loyalty.WagerPoint.serializeBinaryToWriter
6923
+ );
6924
+ }
6681
6925
  };
6682
6926
 
6683
6927
 
@@ -6864,6 +7108,43 @@ proto.loyalty.PointItem.prototype.hasBetPoint = function() {
6864
7108
  };
6865
7109
 
6866
7110
 
7111
+ /**
7112
+ * optional WagerPoint wager_point = 6;
7113
+ * @return {?proto.loyalty.WagerPoint}
7114
+ */
7115
+ proto.loyalty.PointItem.prototype.getWagerPoint = function() {
7116
+ return /** @type{?proto.loyalty.WagerPoint} */ (
7117
+ jspb.Message.getWrapperField(this, proto.loyalty.WagerPoint, 6));
7118
+ };
7119
+
7120
+
7121
+ /**
7122
+ * @param {?proto.loyalty.WagerPoint|undefined} value
7123
+ * @return {!proto.loyalty.PointItem} returns this
7124
+ */
7125
+ proto.loyalty.PointItem.prototype.setWagerPoint = function(value) {
7126
+ return jspb.Message.setWrapperField(this, 6, value);
7127
+ };
7128
+
7129
+
7130
+ /**
7131
+ * Clears the message field making it undefined.
7132
+ * @return {!proto.loyalty.PointItem} returns this
7133
+ */
7134
+ proto.loyalty.PointItem.prototype.clearWagerPoint = function() {
7135
+ return this.setWagerPoint(undefined);
7136
+ };
7137
+
7138
+
7139
+ /**
7140
+ * Returns whether this field is set.
7141
+ * @return {boolean}
7142
+ */
7143
+ proto.loyalty.PointItem.prototype.hasWagerPoint = function() {
7144
+ return jspb.Message.getField(this, 6) != null;
7145
+ };
7146
+
7147
+
6867
7148
 
6868
7149
 
6869
7150
 
@@ -6900,7 +7181,8 @@ proto.loyalty.PointRequest.toObject = function(includeInstance, msg) {
6900
7181
  type: jspb.Message.getFieldWithDefault(msg, 2, ""),
6901
7182
  signUpPoint: (f = msg.getSignUpPoint()) && proto.loyalty.SignUpPoint.toObject(includeInstance, f),
6902
7183
  depositPoint: (f = msg.getDepositPoint()) && proto.loyalty.DepositPoint.toObject(includeInstance, f),
6903
- betPoint: (f = msg.getBetPoint()) && proto.loyalty.BetPoint.toObject(includeInstance, f)
7184
+ betPoint: (f = msg.getBetPoint()) && proto.loyalty.BetPoint.toObject(includeInstance, f),
7185
+ wagerPoint: (f = msg.getWagerPoint()) && proto.loyalty.WagerPoint.toObject(includeInstance, f)
6904
7186
  };
6905
7187
 
6906
7188
  if (includeInstance) {
@@ -6960,6 +7242,11 @@ proto.loyalty.PointRequest.deserializeBinaryFromReader = function(msg, reader) {
6960
7242
  reader.readMessage(value,proto.loyalty.BetPoint.deserializeBinaryFromReader);
6961
7243
  msg.setBetPoint(value);
6962
7244
  break;
7245
+ case 6:
7246
+ var value = new proto.loyalty.WagerPoint;
7247
+ reader.readMessage(value,proto.loyalty.WagerPoint.deserializeBinaryFromReader);
7248
+ msg.setWagerPoint(value);
7249
+ break;
6963
7250
  default:
6964
7251
  reader.skipField();
6965
7252
  break;
@@ -7027,6 +7314,14 @@ proto.loyalty.PointRequest.serializeBinaryToWriter = function(message, writer) {
7027
7314
  proto.loyalty.BetPoint.serializeBinaryToWriter
7028
7315
  );
7029
7316
  }
7317
+ f = message.getWagerPoint();
7318
+ if (f != null) {
7319
+ writer.writeMessage(
7320
+ 6,
7321
+ f,
7322
+ proto.loyalty.WagerPoint.serializeBinaryToWriter
7323
+ );
7324
+ }
7030
7325
  };
7031
7326
 
7032
7327
 
@@ -7213,6 +7508,43 @@ proto.loyalty.PointRequest.prototype.hasBetPoint = function() {
7213
7508
  };
7214
7509
 
7215
7510
 
7511
+ /**
7512
+ * optional WagerPoint wager_point = 6;
7513
+ * @return {?proto.loyalty.WagerPoint}
7514
+ */
7515
+ proto.loyalty.PointRequest.prototype.getWagerPoint = function() {
7516
+ return /** @type{?proto.loyalty.WagerPoint} */ (
7517
+ jspb.Message.getWrapperField(this, proto.loyalty.WagerPoint, 6));
7518
+ };
7519
+
7520
+
7521
+ /**
7522
+ * @param {?proto.loyalty.WagerPoint|undefined} value
7523
+ * @return {!proto.loyalty.PointRequest} returns this
7524
+ */
7525
+ proto.loyalty.PointRequest.prototype.setWagerPoint = function(value) {
7526
+ return jspb.Message.setWrapperField(this, 6, value);
7527
+ };
7528
+
7529
+
7530
+ /**
7531
+ * Clears the message field making it undefined.
7532
+ * @return {!proto.loyalty.PointRequest} returns this
7533
+ */
7534
+ proto.loyalty.PointRequest.prototype.clearWagerPoint = function() {
7535
+ return this.setWagerPoint(undefined);
7536
+ };
7537
+
7538
+
7539
+ /**
7540
+ * Returns whether this field is set.
7541
+ * @return {boolean}
7542
+ */
7543
+ proto.loyalty.PointRequest.prototype.hasWagerPoint = function() {
7544
+ return jspb.Message.getField(this, 6) != null;
7545
+ };
7546
+
7547
+
7216
7548
 
7217
7549
 
7218
7550
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.419",
3
+ "version": "1.2.420",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {