protobuf-platform 1.1.14 → 1.1.16

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.14",
3
+ "version": "1.1.16",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -20,6 +20,7 @@ service Tournament {
20
20
  //Tournament Statuses
21
21
  rpc readListTournamentStatuses(PaginationRequest) returns (TournamentStatusItemsResponse);
22
22
  rpc getTournamentsForUser(PaginationRequest) returns (UserTournamentItemsResponse);
23
+ rpc getSingleTournamentForUser(UserTournamentRequest) returns (UserTournamentItem);
23
24
  }
24
25
  //Technical
25
26
  message PingRequest { string ping = 1; }
@@ -52,6 +53,7 @@ message TournamentItem {
52
53
  repeated ScoringRule scores = 14;
53
54
  repeated RewardItem rewards = 15;
54
55
  repeated ContentItem contents = 16;
56
+ optional string slug = 17;
55
57
  }
56
58
  message TournamentRequest {
57
59
  oneof request {
@@ -170,9 +172,15 @@ message UserTournamentItem {
170
172
  repeated ActivationRuleItem rules = 10;
171
173
  repeated RewardItem rewards = 11;
172
174
  optional string content = 12;
175
+ optional string slug = 13;
173
176
  }
174
177
  message UserTournamentItemsResponse {
175
178
  repeated UserTournamentItem items = 1;
176
179
  optional int32 total_pages = 2;
177
180
  optional int32 total_items = 3;
178
181
  }
182
+ message UserTournamentRequest {
183
+ string tournament_slug = 1;
184
+ optional string currency = 2;
185
+ optional string locale = 3;
186
+ }
@@ -180,6 +180,17 @@ function deserialize_tournament_TournamentStatusResponse(buffer_arg) {
180
180
  return tournament_pb.TournamentStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
181
181
  }
182
182
 
183
+ function serialize_tournament_UserTournamentItem(arg) {
184
+ if (!(arg instanceof tournament_pb.UserTournamentItem)) {
185
+ throw new Error('Expected argument of type tournament.UserTournamentItem');
186
+ }
187
+ return Buffer.from(arg.serializeBinary());
188
+ }
189
+
190
+ function deserialize_tournament_UserTournamentItem(buffer_arg) {
191
+ return tournament_pb.UserTournamentItem.deserializeBinary(new Uint8Array(buffer_arg));
192
+ }
193
+
183
194
  function serialize_tournament_UserTournamentItemsResponse(arg) {
184
195
  if (!(arg instanceof tournament_pb.UserTournamentItemsResponse)) {
185
196
  throw new Error('Expected argument of type tournament.UserTournamentItemsResponse');
@@ -191,6 +202,17 @@ function deserialize_tournament_UserTournamentItemsResponse(buffer_arg) {
191
202
  return tournament_pb.UserTournamentItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
192
203
  }
193
204
 
205
+ function serialize_tournament_UserTournamentRequest(arg) {
206
+ if (!(arg instanceof tournament_pb.UserTournamentRequest)) {
207
+ throw new Error('Expected argument of type tournament.UserTournamentRequest');
208
+ }
209
+ return Buffer.from(arg.serializeBinary());
210
+ }
211
+
212
+ function deserialize_tournament_UserTournamentRequest(buffer_arg) {
213
+ return tournament_pb.UserTournamentRequest.deserializeBinary(new Uint8Array(buffer_arg));
214
+ }
215
+
194
216
 
195
217
  var TournamentService = exports.TournamentService = {
196
218
  checkConnection: {
@@ -360,6 +382,17 @@ readListTournamentStatuses: {
360
382
  responseSerialize: serialize_tournament_UserTournamentItemsResponse,
361
383
  responseDeserialize: deserialize_tournament_UserTournamentItemsResponse,
362
384
  },
385
+ getSingleTournamentForUser: {
386
+ path: '/tournament.Tournament/getSingleTournamentForUser',
387
+ requestStream: false,
388
+ responseStream: false,
389
+ requestType: tournament_pb.UserTournamentRequest,
390
+ responseType: tournament_pb.UserTournamentItem,
391
+ requestSerialize: serialize_tournament_UserTournamentRequest,
392
+ requestDeserialize: deserialize_tournament_UserTournamentRequest,
393
+ responseSerialize: serialize_tournament_UserTournamentItem,
394
+ responseDeserialize: deserialize_tournament_UserTournamentItem,
395
+ },
363
396
  };
364
397
 
365
398
  exports.TournamentClient = grpc.makeGenericClientConstructor(TournamentService);
@@ -48,6 +48,7 @@ goog.exportSymbol('proto.tournament.TournamentStatusResponse', null, global);
48
48
  goog.exportSymbol('proto.tournament.UserSearchRequest', null, global);
49
49
  goog.exportSymbol('proto.tournament.UserTournamentItem', null, global);
50
50
  goog.exportSymbol('proto.tournament.UserTournamentItemsResponse', null, global);
51
+ goog.exportSymbol('proto.tournament.UserTournamentRequest', null, global);
51
52
  /**
52
53
  * Generated by JsPbCodeGenerator.
53
54
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -594,6 +595,27 @@ if (goog.DEBUG && !COMPILED) {
594
595
  */
595
596
  proto.tournament.UserTournamentItemsResponse.displayName = 'proto.tournament.UserTournamentItemsResponse';
596
597
  }
598
+ /**
599
+ * Generated by JsPbCodeGenerator.
600
+ * @param {Array=} opt_data Optional initial data array, typically from a
601
+ * server response, or constructed directly in Javascript. The array is used
602
+ * in place and becomes part of the constructed object. It is not cloned.
603
+ * If no data is provided, the constructed object will be empty, but still
604
+ * valid.
605
+ * @extends {jspb.Message}
606
+ * @constructor
607
+ */
608
+ proto.tournament.UserTournamentRequest = function(opt_data) {
609
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
610
+ };
611
+ goog.inherits(proto.tournament.UserTournamentRequest, jspb.Message);
612
+ if (goog.DEBUG && !COMPILED) {
613
+ /**
614
+ * @public
615
+ * @override
616
+ */
617
+ proto.tournament.UserTournamentRequest.displayName = 'proto.tournament.UserTournamentRequest';
618
+ }
597
619
 
598
620
 
599
621
 
@@ -1825,7 +1847,8 @@ proto.tournament.TournamentItem.toObject = function(includeInstance, msg) {
1825
1847
  rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
1826
1848
  proto.tournament.RewardItem.toObject, includeInstance),
1827
1849
  contentsList: jspb.Message.toObjectList(msg.getContentsList(),
1828
- proto.tournament.ContentItem.toObject, includeInstance)
1850
+ proto.tournament.ContentItem.toObject, includeInstance),
1851
+ slug: jspb.Message.getFieldWithDefault(msg, 17, "")
1829
1852
  };
1830
1853
 
1831
1854
  if (includeInstance) {
@@ -1930,6 +1953,10 @@ proto.tournament.TournamentItem.deserializeBinaryFromReader = function(msg, read
1930
1953
  reader.readMessage(value,proto.tournament.ContentItem.deserializeBinaryFromReader);
1931
1954
  msg.addContents(value);
1932
1955
  break;
1956
+ case 17:
1957
+ var value = /** @type {string} */ (reader.readString());
1958
+ msg.setSlug(value);
1959
+ break;
1933
1960
  default:
1934
1961
  reader.skipField();
1935
1962
  break;
@@ -2075,6 +2102,13 @@ proto.tournament.TournamentItem.serializeBinaryToWriter = function(message, writ
2075
2102
  proto.tournament.ContentItem.serializeBinaryToWriter
2076
2103
  );
2077
2104
  }
2105
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
2106
+ if (f != null) {
2107
+ writer.writeString(
2108
+ 17,
2109
+ f
2110
+ );
2111
+ }
2078
2112
  };
2079
2113
 
2080
2114
 
@@ -2662,6 +2696,42 @@ proto.tournament.TournamentItem.prototype.clearContentsList = function() {
2662
2696
  };
2663
2697
 
2664
2698
 
2699
+ /**
2700
+ * optional string slug = 17;
2701
+ * @return {string}
2702
+ */
2703
+ proto.tournament.TournamentItem.prototype.getSlug = function() {
2704
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
2705
+ };
2706
+
2707
+
2708
+ /**
2709
+ * @param {string} value
2710
+ * @return {!proto.tournament.TournamentItem} returns this
2711
+ */
2712
+ proto.tournament.TournamentItem.prototype.setSlug = function(value) {
2713
+ return jspb.Message.setField(this, 17, value);
2714
+ };
2715
+
2716
+
2717
+ /**
2718
+ * Clears the field making it undefined.
2719
+ * @return {!proto.tournament.TournamentItem} returns this
2720
+ */
2721
+ proto.tournament.TournamentItem.prototype.clearSlug = function() {
2722
+ return jspb.Message.setField(this, 17, undefined);
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * Returns whether this field is set.
2728
+ * @return {boolean}
2729
+ */
2730
+ proto.tournament.TournamentItem.prototype.hasSlug = function() {
2731
+ return jspb.Message.getField(this, 17) != null;
2732
+ };
2733
+
2734
+
2665
2735
 
2666
2736
  /**
2667
2737
  * Oneof group definitions for this message. Each group defines the field
@@ -7489,7 +7559,8 @@ proto.tournament.UserTournamentItem.toObject = function(includeInstance, msg) {
7489
7559
  proto.tournament.ActivationRuleItem.toObject, includeInstance),
7490
7560
  rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
7491
7561
  proto.tournament.RewardItem.toObject, includeInstance),
7492
- content: jspb.Message.getFieldWithDefault(msg, 12, "")
7562
+ content: jspb.Message.getFieldWithDefault(msg, 12, ""),
7563
+ slug: jspb.Message.getFieldWithDefault(msg, 13, "")
7493
7564
  };
7494
7565
 
7495
7566
  if (includeInstance) {
@@ -7576,6 +7647,10 @@ proto.tournament.UserTournamentItem.deserializeBinaryFromReader = function(msg,
7576
7647
  var value = /** @type {string} */ (reader.readString());
7577
7648
  msg.setContent(value);
7578
7649
  break;
7650
+ case 13:
7651
+ var value = /** @type {string} */ (reader.readString());
7652
+ msg.setSlug(value);
7653
+ break;
7579
7654
  default:
7580
7655
  reader.skipField();
7581
7656
  break;
@@ -7691,6 +7766,13 @@ proto.tournament.UserTournamentItem.serializeBinaryToWriter = function(message,
7691
7766
  f
7692
7767
  );
7693
7768
  }
7769
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
7770
+ if (f != null) {
7771
+ writer.writeString(
7772
+ 13,
7773
+ f
7774
+ );
7775
+ }
7694
7776
  };
7695
7777
 
7696
7778
 
@@ -8130,6 +8212,42 @@ proto.tournament.UserTournamentItem.prototype.hasContent = function() {
8130
8212
  };
8131
8213
 
8132
8214
 
8215
+ /**
8216
+ * optional string slug = 13;
8217
+ * @return {string}
8218
+ */
8219
+ proto.tournament.UserTournamentItem.prototype.getSlug = function() {
8220
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
8221
+ };
8222
+
8223
+
8224
+ /**
8225
+ * @param {string} value
8226
+ * @return {!proto.tournament.UserTournamentItem} returns this
8227
+ */
8228
+ proto.tournament.UserTournamentItem.prototype.setSlug = function(value) {
8229
+ return jspb.Message.setField(this, 13, value);
8230
+ };
8231
+
8232
+
8233
+ /**
8234
+ * Clears the field making it undefined.
8235
+ * @return {!proto.tournament.UserTournamentItem} returns this
8236
+ */
8237
+ proto.tournament.UserTournamentItem.prototype.clearSlug = function() {
8238
+ return jspb.Message.setField(this, 13, undefined);
8239
+ };
8240
+
8241
+
8242
+ /**
8243
+ * Returns whether this field is set.
8244
+ * @return {boolean}
8245
+ */
8246
+ proto.tournament.UserTournamentItem.prototype.hasSlug = function() {
8247
+ return jspb.Message.getField(this, 13) != null;
8248
+ };
8249
+
8250
+
8133
8251
 
8134
8252
  /**
8135
8253
  * List of repeated fields within this message type.
@@ -8386,4 +8504,230 @@ proto.tournament.UserTournamentItemsResponse.prototype.hasTotalItems = function(
8386
8504
  };
8387
8505
 
8388
8506
 
8507
+
8508
+
8509
+
8510
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8511
+ /**
8512
+ * Creates an object representation of this proto.
8513
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8514
+ * Optional fields that are not set will be set to undefined.
8515
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8516
+ * For the list of reserved names please see:
8517
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8518
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8519
+ * JSPB instance for transitional soy proto support:
8520
+ * http://goto/soy-param-migration
8521
+ * @return {!Object}
8522
+ */
8523
+ proto.tournament.UserTournamentRequest.prototype.toObject = function(opt_includeInstance) {
8524
+ return proto.tournament.UserTournamentRequest.toObject(opt_includeInstance, this);
8525
+ };
8526
+
8527
+
8528
+ /**
8529
+ * Static version of the {@see toObject} method.
8530
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8531
+ * the JSPB instance for transitional soy proto support:
8532
+ * http://goto/soy-param-migration
8533
+ * @param {!proto.tournament.UserTournamentRequest} msg The msg instance to transform.
8534
+ * @return {!Object}
8535
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8536
+ */
8537
+ proto.tournament.UserTournamentRequest.toObject = function(includeInstance, msg) {
8538
+ var f, obj = {
8539
+ tournamentSlug: jspb.Message.getFieldWithDefault(msg, 1, ""),
8540
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
8541
+ locale: jspb.Message.getFieldWithDefault(msg, 3, "")
8542
+ };
8543
+
8544
+ if (includeInstance) {
8545
+ obj.$jspbMessageInstance = msg;
8546
+ }
8547
+ return obj;
8548
+ };
8549
+ }
8550
+
8551
+
8552
+ /**
8553
+ * Deserializes binary data (in protobuf wire format).
8554
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8555
+ * @return {!proto.tournament.UserTournamentRequest}
8556
+ */
8557
+ proto.tournament.UserTournamentRequest.deserializeBinary = function(bytes) {
8558
+ var reader = new jspb.BinaryReader(bytes);
8559
+ var msg = new proto.tournament.UserTournamentRequest;
8560
+ return proto.tournament.UserTournamentRequest.deserializeBinaryFromReader(msg, reader);
8561
+ };
8562
+
8563
+
8564
+ /**
8565
+ * Deserializes binary data (in protobuf wire format) from the
8566
+ * given reader into the given message object.
8567
+ * @param {!proto.tournament.UserTournamentRequest} msg The message object to deserialize into.
8568
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8569
+ * @return {!proto.tournament.UserTournamentRequest}
8570
+ */
8571
+ proto.tournament.UserTournamentRequest.deserializeBinaryFromReader = function(msg, reader) {
8572
+ while (reader.nextField()) {
8573
+ if (reader.isEndGroup()) {
8574
+ break;
8575
+ }
8576
+ var field = reader.getFieldNumber();
8577
+ switch (field) {
8578
+ case 1:
8579
+ var value = /** @type {string} */ (reader.readString());
8580
+ msg.setTournamentSlug(value);
8581
+ break;
8582
+ case 2:
8583
+ var value = /** @type {string} */ (reader.readString());
8584
+ msg.setCurrency(value);
8585
+ break;
8586
+ case 3:
8587
+ var value = /** @type {string} */ (reader.readString());
8588
+ msg.setLocale(value);
8589
+ break;
8590
+ default:
8591
+ reader.skipField();
8592
+ break;
8593
+ }
8594
+ }
8595
+ return msg;
8596
+ };
8597
+
8598
+
8599
+ /**
8600
+ * Serializes the message to binary data (in protobuf wire format).
8601
+ * @return {!Uint8Array}
8602
+ */
8603
+ proto.tournament.UserTournamentRequest.prototype.serializeBinary = function() {
8604
+ var writer = new jspb.BinaryWriter();
8605
+ proto.tournament.UserTournamentRequest.serializeBinaryToWriter(this, writer);
8606
+ return writer.getResultBuffer();
8607
+ };
8608
+
8609
+
8610
+ /**
8611
+ * Serializes the given message to binary data (in protobuf wire
8612
+ * format), writing to the given BinaryWriter.
8613
+ * @param {!proto.tournament.UserTournamentRequest} message
8614
+ * @param {!jspb.BinaryWriter} writer
8615
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8616
+ */
8617
+ proto.tournament.UserTournamentRequest.serializeBinaryToWriter = function(message, writer) {
8618
+ var f = undefined;
8619
+ f = message.getTournamentSlug();
8620
+ if (f.length > 0) {
8621
+ writer.writeString(
8622
+ 1,
8623
+ f
8624
+ );
8625
+ }
8626
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
8627
+ if (f != null) {
8628
+ writer.writeString(
8629
+ 2,
8630
+ f
8631
+ );
8632
+ }
8633
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
8634
+ if (f != null) {
8635
+ writer.writeString(
8636
+ 3,
8637
+ f
8638
+ );
8639
+ }
8640
+ };
8641
+
8642
+
8643
+ /**
8644
+ * optional string tournament_slug = 1;
8645
+ * @return {string}
8646
+ */
8647
+ proto.tournament.UserTournamentRequest.prototype.getTournamentSlug = function() {
8648
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8649
+ };
8650
+
8651
+
8652
+ /**
8653
+ * @param {string} value
8654
+ * @return {!proto.tournament.UserTournamentRequest} returns this
8655
+ */
8656
+ proto.tournament.UserTournamentRequest.prototype.setTournamentSlug = function(value) {
8657
+ return jspb.Message.setProto3StringField(this, 1, value);
8658
+ };
8659
+
8660
+
8661
+ /**
8662
+ * optional string currency = 2;
8663
+ * @return {string}
8664
+ */
8665
+ proto.tournament.UserTournamentRequest.prototype.getCurrency = function() {
8666
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
8667
+ };
8668
+
8669
+
8670
+ /**
8671
+ * @param {string} value
8672
+ * @return {!proto.tournament.UserTournamentRequest} returns this
8673
+ */
8674
+ proto.tournament.UserTournamentRequest.prototype.setCurrency = function(value) {
8675
+ return jspb.Message.setField(this, 2, value);
8676
+ };
8677
+
8678
+
8679
+ /**
8680
+ * Clears the field making it undefined.
8681
+ * @return {!proto.tournament.UserTournamentRequest} returns this
8682
+ */
8683
+ proto.tournament.UserTournamentRequest.prototype.clearCurrency = function() {
8684
+ return jspb.Message.setField(this, 2, undefined);
8685
+ };
8686
+
8687
+
8688
+ /**
8689
+ * Returns whether this field is set.
8690
+ * @return {boolean}
8691
+ */
8692
+ proto.tournament.UserTournamentRequest.prototype.hasCurrency = function() {
8693
+ return jspb.Message.getField(this, 2) != null;
8694
+ };
8695
+
8696
+
8697
+ /**
8698
+ * optional string locale = 3;
8699
+ * @return {string}
8700
+ */
8701
+ proto.tournament.UserTournamentRequest.prototype.getLocale = function() {
8702
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8703
+ };
8704
+
8705
+
8706
+ /**
8707
+ * @param {string} value
8708
+ * @return {!proto.tournament.UserTournamentRequest} returns this
8709
+ */
8710
+ proto.tournament.UserTournamentRequest.prototype.setLocale = function(value) {
8711
+ return jspb.Message.setField(this, 3, value);
8712
+ };
8713
+
8714
+
8715
+ /**
8716
+ * Clears the field making it undefined.
8717
+ * @return {!proto.tournament.UserTournamentRequest} returns this
8718
+ */
8719
+ proto.tournament.UserTournamentRequest.prototype.clearLocale = function() {
8720
+ return jspb.Message.setField(this, 3, undefined);
8721
+ };
8722
+
8723
+
8724
+ /**
8725
+ * Returns whether this field is set.
8726
+ * @return {boolean}
8727
+ */
8728
+ proto.tournament.UserTournamentRequest.prototype.hasLocale = function() {
8729
+ return jspb.Message.getField(this, 3) != null;
8730
+ };
8731
+
8732
+
8389
8733
  goog.object.extend(exports, proto.tournament);
package/user/user.proto CHANGED
@@ -39,6 +39,9 @@ service User {
39
39
  rpc updateSingleNote(NoteRequest) returns (NoteItem);
40
40
  rpc deleteSingleNote(GetNoteRequest) returns (NoteStatusResponse);
41
41
  rpc readListNotes(PaginationRequest) returns (NoteItemsResponse);
42
+ //User`s Limits
43
+ rpc setUserLimits(UserLimitsRequest) returns (LimitStatusResponse);
44
+ rpc readUserLimits(GetUserLimitsRequest) returns (UserLimitsResponse);
42
45
  //KYC
43
46
  rpc createSumSubApplicant(SumSubApplicantRequest) returns (SumSubResponse);
44
47
  rpc uploadSumSubDocument(stream SumSubDocumentRequest) returns (SumSubResponse);
@@ -330,4 +333,38 @@ message SumSubResponse {
330
333
  optional string external_user_id = 1;
331
334
  optional string created_at = 2;
332
335
  optional string id_doc_type = 3;
336
+ }
337
+ //User`s limits
338
+ message UserLimitsRequest {
339
+ int32 user_id = 1;
340
+ optional float daily_deposit_limit = 2;
341
+ optional float daily_withdrawal_limit = 3;
342
+ optional float weekly_deposit_limit = 4;
343
+ optional float weekly_withdrawal_limit = 5;
344
+ optional float monthly_deposit_limit = 6;
345
+ optional float monthly_withdrawal_limit = 7;
346
+ optional float yearly_deposit_limit = 8;
347
+ optional float yearly_withdrawal_limit = 9;
348
+ optional float daily_max_bet_sum = 10;
349
+ optional float daily_max_bet_count = 11;
350
+ optional float daily_max_loss_sum = 12;
351
+ }
352
+ message GetUserLimitsRequest {
353
+ int32 user_id = 1;
354
+ }
355
+ message UserLimitsResponse {
356
+ optional float daily_deposit_limit = 1;
357
+ optional float daily_withdrawal_limit = 2;
358
+ optional float weekly_deposit_limit = 3;
359
+ optional float weekly_withdrawal_limit = 4;
360
+ optional float monthly_deposit_limit = 5;
361
+ optional float monthly_withdrawal_limit = 6;
362
+ optional float yearly_deposit_limit = 7;
363
+ optional float yearly_withdrawal_limit = 8;
364
+ optional float daily_max_bet_sum = 9;
365
+ optional float daily_max_bet_count = 10;
366
+ optional float daily_max_loss_sum = 11;
367
+ }
368
+ message LimitStatusResponse {
369
+ string status = 1;
333
370
  }
@@ -70,6 +70,28 @@ function deserialize_user_GetSegmentRequest(buffer_arg) {
70
70
  return user_pb.GetSegmentRequest.deserializeBinary(new Uint8Array(buffer_arg));
71
71
  }
72
72
 
73
+ function serialize_user_GetUserLimitsRequest(arg) {
74
+ if (!(arg instanceof user_pb.GetUserLimitsRequest)) {
75
+ throw new Error('Expected argument of type user.GetUserLimitsRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_user_GetUserLimitsRequest(buffer_arg) {
81
+ return user_pb.GetUserLimitsRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
84
+ function serialize_user_LimitStatusResponse(arg) {
85
+ if (!(arg instanceof user_pb.LimitStatusResponse)) {
86
+ throw new Error('Expected argument of type user.LimitStatusResponse');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_user_LimitStatusResponse(buffer_arg) {
92
+ return user_pb.LimitStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
73
95
  function serialize_user_LoggedInResponse(arg) {
74
96
  if (!(arg instanceof user_pb.LoggedInResponse)) {
75
97
  throw new Error('Expected argument of type user.LoggedInResponse');
@@ -334,6 +356,28 @@ function deserialize_user_UserDataResponse(buffer_arg) {
334
356
  return user_pb.UserDataResponse.deserializeBinary(new Uint8Array(buffer_arg));
335
357
  }
336
358
 
359
+ function serialize_user_UserLimitsRequest(arg) {
360
+ if (!(arg instanceof user_pb.UserLimitsRequest)) {
361
+ throw new Error('Expected argument of type user.UserLimitsRequest');
362
+ }
363
+ return Buffer.from(arg.serializeBinary());
364
+ }
365
+
366
+ function deserialize_user_UserLimitsRequest(buffer_arg) {
367
+ return user_pb.UserLimitsRequest.deserializeBinary(new Uint8Array(buffer_arg));
368
+ }
369
+
370
+ function serialize_user_UserLimitsResponse(arg) {
371
+ if (!(arg instanceof user_pb.UserLimitsResponse)) {
372
+ throw new Error('Expected argument of type user.UserLimitsResponse');
373
+ }
374
+ return Buffer.from(arg.serializeBinary());
375
+ }
376
+
377
+ function deserialize_user_UserLimitsResponse(buffer_arg) {
378
+ return user_pb.UserLimitsResponse.deserializeBinary(new Uint8Array(buffer_arg));
379
+ }
380
+
337
381
  function serialize_user_UserRequest(arg) {
338
382
  if (!(arg instanceof user_pb.UserRequest)) {
339
383
  throw new Error('Expected argument of type user.UserRequest');
@@ -675,6 +719,29 @@ createSingleNote: {
675
719
  responseSerialize: serialize_user_NoteItemsResponse,
676
720
  responseDeserialize: deserialize_user_NoteItemsResponse,
677
721
  },
722
+ // User`s Limits
723
+ setUserLimits: {
724
+ path: '/user.User/setUserLimits',
725
+ requestStream: false,
726
+ responseStream: false,
727
+ requestType: user_pb.UserLimitsRequest,
728
+ responseType: user_pb.LimitStatusResponse,
729
+ requestSerialize: serialize_user_UserLimitsRequest,
730
+ requestDeserialize: deserialize_user_UserLimitsRequest,
731
+ responseSerialize: serialize_user_LimitStatusResponse,
732
+ responseDeserialize: deserialize_user_LimitStatusResponse,
733
+ },
734
+ readUserLimits: {
735
+ path: '/user.User/readUserLimits',
736
+ requestStream: false,
737
+ responseStream: false,
738
+ requestType: user_pb.GetUserLimitsRequest,
739
+ responseType: user_pb.UserLimitsResponse,
740
+ requestSerialize: serialize_user_GetUserLimitsRequest,
741
+ requestDeserialize: deserialize_user_GetUserLimitsRequest,
742
+ responseSerialize: serialize_user_UserLimitsResponse,
743
+ responseDeserialize: deserialize_user_UserLimitsResponse,
744
+ },
678
745
  // KYC
679
746
  createSumSubApplicant: {
680
747
  path: '/user.User/createSumSubApplicant',