protobuf-platform 1.1.96 → 1.1.97

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.96",
3
+ "version": "1.1.97",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -16,6 +16,7 @@ service User {
16
16
  rpc readListUsers(PaginationRequest) returns (UsersResponse);
17
17
  rpc updateSingleUser(UserRequest) returns (UserDataResponse);
18
18
  rpc updateUserPassword(UserPasswordRequest) returns (UserStatusResponse);
19
+ rpc setUserSelfExclusion(UserRequest) returns (UserStatusResponse);
19
20
  //Segments
20
21
  rpc createSingleSegment(SegmentRequest) returns (SegmentResponse);
21
22
  rpc readSingleSegment(GetSegmentRequest) returns (SegmentResponse);
@@ -168,6 +169,7 @@ message UserRequest {
168
169
  optional int32 block_user = 19;
169
170
  optional int32 block_deposit = 20;
170
171
  optional int32 block_bet = 21;
172
+ optional string self_exclusion_date = 22;
171
173
  }
172
174
  message UserDataResponse {
173
175
  int32 id = 1;
@@ -636,6 +636,17 @@ readListUsers: {
636
636
  responseSerialize: serialize_user_UserStatusResponse,
637
637
  responseDeserialize: deserialize_user_UserStatusResponse,
638
638
  },
639
+ setUserSelfExclusion: {
640
+ path: '/user.User/setUserSelfExclusion',
641
+ requestStream: false,
642
+ responseStream: false,
643
+ requestType: user_pb.UserRequest,
644
+ responseType: user_pb.UserStatusResponse,
645
+ requestSerialize: serialize_user_UserRequest,
646
+ requestDeserialize: deserialize_user_UserRequest,
647
+ responseSerialize: serialize_user_UserStatusResponse,
648
+ responseDeserialize: deserialize_user_UserStatusResponse,
649
+ },
639
650
  // Segments
640
651
  createSingleSegment: {
641
652
  path: '/user.User/createSingleSegment',
package/user/user_pb.js CHANGED
@@ -5763,7 +5763,8 @@ proto.user.UserRequest.toObject = function(includeInstance, msg) {
5763
5763
  categoryId: jspb.Message.getFieldWithDefault(msg, 18, 0),
5764
5764
  blockUser: jspb.Message.getFieldWithDefault(msg, 19, 0),
5765
5765
  blockDeposit: jspb.Message.getFieldWithDefault(msg, 20, 0),
5766
- blockBet: jspb.Message.getFieldWithDefault(msg, 21, 0)
5766
+ blockBet: jspb.Message.getFieldWithDefault(msg, 21, 0),
5767
+ selfExclusionDate: jspb.Message.getFieldWithDefault(msg, 22, "")
5767
5768
  };
5768
5769
 
5769
5770
  if (includeInstance) {
@@ -5884,6 +5885,10 @@ proto.user.UserRequest.deserializeBinaryFromReader = function(msg, reader) {
5884
5885
  var value = /** @type {number} */ (reader.readInt32());
5885
5886
  msg.setBlockBet(value);
5886
5887
  break;
5888
+ case 22:
5889
+ var value = /** @type {string} */ (reader.readString());
5890
+ msg.setSelfExclusionDate(value);
5891
+ break;
5887
5892
  default:
5888
5893
  reader.skipField();
5889
5894
  break;
@@ -6060,6 +6065,13 @@ proto.user.UserRequest.serializeBinaryToWriter = function(message, writer) {
6060
6065
  f
6061
6066
  );
6062
6067
  }
6068
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
6069
+ if (f != null) {
6070
+ writer.writeString(
6071
+ 22,
6072
+ f
6073
+ );
6074
+ }
6063
6075
  };
6064
6076
 
6065
6077
 
@@ -6801,6 +6813,42 @@ proto.user.UserRequest.prototype.hasBlockBet = function() {
6801
6813
  };
6802
6814
 
6803
6815
 
6816
+ /**
6817
+ * optional string self_exclusion_date = 22;
6818
+ * @return {string}
6819
+ */
6820
+ proto.user.UserRequest.prototype.getSelfExclusionDate = function() {
6821
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
6822
+ };
6823
+
6824
+
6825
+ /**
6826
+ * @param {string} value
6827
+ * @return {!proto.user.UserRequest} returns this
6828
+ */
6829
+ proto.user.UserRequest.prototype.setSelfExclusionDate = function(value) {
6830
+ return jspb.Message.setField(this, 22, value);
6831
+ };
6832
+
6833
+
6834
+ /**
6835
+ * Clears the field making it undefined.
6836
+ * @return {!proto.user.UserRequest} returns this
6837
+ */
6838
+ proto.user.UserRequest.prototype.clearSelfExclusionDate = function() {
6839
+ return jspb.Message.setField(this, 22, undefined);
6840
+ };
6841
+
6842
+
6843
+ /**
6844
+ * Returns whether this field is set.
6845
+ * @return {boolean}
6846
+ */
6847
+ proto.user.UserRequest.prototype.hasSelfExclusionDate = function() {
6848
+ return jspb.Message.getField(this, 22) != null;
6849
+ };
6850
+
6851
+
6804
6852
 
6805
6853
 
6806
6854