protobuf-platform 1.1.84 → 1.1.85

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.84",
3
+ "version": "1.1.85",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -47,6 +47,7 @@ service User {
47
47
  //KYC
48
48
  rpc createSumSubApplicant(SumSubApplicantRequest) returns (SumSubResponse);
49
49
  rpc uploadSumSubDocument(stream SumSubDocumentRequest) returns (SumSubResponse);
50
+ rpc fetchSumSubApplicant(GetSumSubApplicantRequest) returns (SumSubResponse);
50
51
  //Tournaments
51
52
  rpc getInfoForTournamentRules(UserDataRequest) returns (TournamentRulesInfoResponse);
52
53
  //Confirmations
@@ -425,6 +426,10 @@ message GetNoteRequest {
425
426
  //KYC | SumSub
426
427
  message SumSubApplicantRequest {
427
428
  string user_public_id = 1;
429
+ optional string level = 2;
430
+ }
431
+ message GetSumSubApplicantRequest {
432
+ string applicant_id = 1;
428
433
  }
429
434
  message SumSubDocumentItemRequest {
430
435
  string user_public_id = 1;
@@ -441,6 +446,7 @@ message SumSubResponse {
441
446
  optional string external_user_id = 1;
442
447
  optional string created_at = 2;
443
448
  optional string id_doc_type = 3;
449
+ optional string sum_sub_data = 4;
444
450
  }
445
451
  //User`s limits
446
452
  message UserLimitsRequest {
@@ -114,6 +114,17 @@ function deserialize_user_GetSegmentRuleRequest(buffer_arg) {
114
114
  return user_pb.GetSegmentRuleRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_user_GetSumSubApplicantRequest(arg) {
118
+ if (!(arg instanceof user_pb.GetSumSubApplicantRequest)) {
119
+ throw new Error('Expected argument of type user.GetSumSubApplicantRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_user_GetSumSubApplicantRequest(buffer_arg) {
125
+ return user_pb.GetSumSubApplicantRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
117
128
  function serialize_user_GetUserLimitsRequest(arg) {
118
129
  if (!(arg instanceof user_pb.GetUserLimitsRequest)) {
119
130
  throw new Error('Expected argument of type user.GetUserLimitsRequest');
@@ -864,6 +875,17 @@ createSumSubApplicant: {
864
875
  responseSerialize: serialize_user_SumSubResponse,
865
876
  responseDeserialize: deserialize_user_SumSubResponse,
866
877
  },
878
+ fetchSumSubApplicant: {
879
+ path: '/user.User/fetchSumSubApplicant',
880
+ requestStream: false,
881
+ responseStream: false,
882
+ requestType: user_pb.GetSumSubApplicantRequest,
883
+ responseType: user_pb.SumSubResponse,
884
+ requestSerialize: serialize_user_GetSumSubApplicantRequest,
885
+ requestDeserialize: deserialize_user_GetSumSubApplicantRequest,
886
+ responseSerialize: serialize_user_SumSubResponse,
887
+ responseDeserialize: deserialize_user_SumSubResponse,
888
+ },
867
889
  // Tournaments
868
890
  getInfoForTournamentRules: {
869
891
  path: '/user.User/getInfoForTournamentRules',
package/user/user_pb.js CHANGED
@@ -33,6 +33,7 @@ goog.exportSymbol('proto.user.GetNoteRequest', null, global);
33
33
  goog.exportSymbol('proto.user.GetRoleRequest', null, global);
34
34
  goog.exportSymbol('proto.user.GetSegmentRequest', null, global);
35
35
  goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
36
+ goog.exportSymbol('proto.user.GetSumSubApplicantRequest', null, global);
36
37
  goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
37
38
  goog.exportSymbol('proto.user.LimitStatusResponse', null, global);
38
39
  goog.exportSymbol('proto.user.LoggedInResponse', null, global);
@@ -1045,6 +1046,27 @@ if (goog.DEBUG && !COMPILED) {
1045
1046
  */
1046
1047
  proto.user.SumSubApplicantRequest.displayName = 'proto.user.SumSubApplicantRequest';
1047
1048
  }
1049
+ /**
1050
+ * Generated by JsPbCodeGenerator.
1051
+ * @param {Array=} opt_data Optional initial data array, typically from a
1052
+ * server response, or constructed directly in Javascript. The array is used
1053
+ * in place and becomes part of the constructed object. It is not cloned.
1054
+ * If no data is provided, the constructed object will be empty, but still
1055
+ * valid.
1056
+ * @extends {jspb.Message}
1057
+ * @constructor
1058
+ */
1059
+ proto.user.GetSumSubApplicantRequest = function(opt_data) {
1060
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1061
+ };
1062
+ goog.inherits(proto.user.GetSumSubApplicantRequest, jspb.Message);
1063
+ if (goog.DEBUG && !COMPILED) {
1064
+ /**
1065
+ * @public
1066
+ * @override
1067
+ */
1068
+ proto.user.GetSumSubApplicantRequest.displayName = 'proto.user.GetSumSubApplicantRequest';
1069
+ }
1048
1070
  /**
1049
1071
  * Generated by JsPbCodeGenerator.
1050
1072
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -18460,7 +18482,8 @@ proto.user.SumSubApplicantRequest.prototype.toObject = function(opt_includeInsta
18460
18482
  */
18461
18483
  proto.user.SumSubApplicantRequest.toObject = function(includeInstance, msg) {
18462
18484
  var f, obj = {
18463
- userPublicId: jspb.Message.getFieldWithDefault(msg, 1, "")
18485
+ userPublicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
18486
+ level: jspb.Message.getFieldWithDefault(msg, 2, "")
18464
18487
  };
18465
18488
 
18466
18489
  if (includeInstance) {
@@ -18501,6 +18524,10 @@ proto.user.SumSubApplicantRequest.deserializeBinaryFromReader = function(msg, re
18501
18524
  var value = /** @type {string} */ (reader.readString());
18502
18525
  msg.setUserPublicId(value);
18503
18526
  break;
18527
+ case 2:
18528
+ var value = /** @type {string} */ (reader.readString());
18529
+ msg.setLevel(value);
18530
+ break;
18504
18531
  default:
18505
18532
  reader.skipField();
18506
18533
  break;
@@ -18537,6 +18564,13 @@ proto.user.SumSubApplicantRequest.serializeBinaryToWriter = function(message, wr
18537
18564
  f
18538
18565
  );
18539
18566
  }
18567
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
18568
+ if (f != null) {
18569
+ writer.writeString(
18570
+ 2,
18571
+ f
18572
+ );
18573
+ }
18540
18574
  };
18541
18575
 
18542
18576
 
@@ -18558,6 +18592,172 @@ proto.user.SumSubApplicantRequest.prototype.setUserPublicId = function(value) {
18558
18592
  };
18559
18593
 
18560
18594
 
18595
+ /**
18596
+ * optional string level = 2;
18597
+ * @return {string}
18598
+ */
18599
+ proto.user.SumSubApplicantRequest.prototype.getLevel = function() {
18600
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
18601
+ };
18602
+
18603
+
18604
+ /**
18605
+ * @param {string} value
18606
+ * @return {!proto.user.SumSubApplicantRequest} returns this
18607
+ */
18608
+ proto.user.SumSubApplicantRequest.prototype.setLevel = function(value) {
18609
+ return jspb.Message.setField(this, 2, value);
18610
+ };
18611
+
18612
+
18613
+ /**
18614
+ * Clears the field making it undefined.
18615
+ * @return {!proto.user.SumSubApplicantRequest} returns this
18616
+ */
18617
+ proto.user.SumSubApplicantRequest.prototype.clearLevel = function() {
18618
+ return jspb.Message.setField(this, 2, undefined);
18619
+ };
18620
+
18621
+
18622
+ /**
18623
+ * Returns whether this field is set.
18624
+ * @return {boolean}
18625
+ */
18626
+ proto.user.SumSubApplicantRequest.prototype.hasLevel = function() {
18627
+ return jspb.Message.getField(this, 2) != null;
18628
+ };
18629
+
18630
+
18631
+
18632
+
18633
+
18634
+ if (jspb.Message.GENERATE_TO_OBJECT) {
18635
+ /**
18636
+ * Creates an object representation of this proto.
18637
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
18638
+ * Optional fields that are not set will be set to undefined.
18639
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
18640
+ * For the list of reserved names please see:
18641
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
18642
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
18643
+ * JSPB instance for transitional soy proto support:
18644
+ * http://goto/soy-param-migration
18645
+ * @return {!Object}
18646
+ */
18647
+ proto.user.GetSumSubApplicantRequest.prototype.toObject = function(opt_includeInstance) {
18648
+ return proto.user.GetSumSubApplicantRequest.toObject(opt_includeInstance, this);
18649
+ };
18650
+
18651
+
18652
+ /**
18653
+ * Static version of the {@see toObject} method.
18654
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
18655
+ * the JSPB instance for transitional soy proto support:
18656
+ * http://goto/soy-param-migration
18657
+ * @param {!proto.user.GetSumSubApplicantRequest} msg The msg instance to transform.
18658
+ * @return {!Object}
18659
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18660
+ */
18661
+ proto.user.GetSumSubApplicantRequest.toObject = function(includeInstance, msg) {
18662
+ var f, obj = {
18663
+ applicantId: jspb.Message.getFieldWithDefault(msg, 1, "")
18664
+ };
18665
+
18666
+ if (includeInstance) {
18667
+ obj.$jspbMessageInstance = msg;
18668
+ }
18669
+ return obj;
18670
+ };
18671
+ }
18672
+
18673
+
18674
+ /**
18675
+ * Deserializes binary data (in protobuf wire format).
18676
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
18677
+ * @return {!proto.user.GetSumSubApplicantRequest}
18678
+ */
18679
+ proto.user.GetSumSubApplicantRequest.deserializeBinary = function(bytes) {
18680
+ var reader = new jspb.BinaryReader(bytes);
18681
+ var msg = new proto.user.GetSumSubApplicantRequest;
18682
+ return proto.user.GetSumSubApplicantRequest.deserializeBinaryFromReader(msg, reader);
18683
+ };
18684
+
18685
+
18686
+ /**
18687
+ * Deserializes binary data (in protobuf wire format) from the
18688
+ * given reader into the given message object.
18689
+ * @param {!proto.user.GetSumSubApplicantRequest} msg The message object to deserialize into.
18690
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
18691
+ * @return {!proto.user.GetSumSubApplicantRequest}
18692
+ */
18693
+ proto.user.GetSumSubApplicantRequest.deserializeBinaryFromReader = function(msg, reader) {
18694
+ while (reader.nextField()) {
18695
+ if (reader.isEndGroup()) {
18696
+ break;
18697
+ }
18698
+ var field = reader.getFieldNumber();
18699
+ switch (field) {
18700
+ case 1:
18701
+ var value = /** @type {string} */ (reader.readString());
18702
+ msg.setApplicantId(value);
18703
+ break;
18704
+ default:
18705
+ reader.skipField();
18706
+ break;
18707
+ }
18708
+ }
18709
+ return msg;
18710
+ };
18711
+
18712
+
18713
+ /**
18714
+ * Serializes the message to binary data (in protobuf wire format).
18715
+ * @return {!Uint8Array}
18716
+ */
18717
+ proto.user.GetSumSubApplicantRequest.prototype.serializeBinary = function() {
18718
+ var writer = new jspb.BinaryWriter();
18719
+ proto.user.GetSumSubApplicantRequest.serializeBinaryToWriter(this, writer);
18720
+ return writer.getResultBuffer();
18721
+ };
18722
+
18723
+
18724
+ /**
18725
+ * Serializes the given message to binary data (in protobuf wire
18726
+ * format), writing to the given BinaryWriter.
18727
+ * @param {!proto.user.GetSumSubApplicantRequest} message
18728
+ * @param {!jspb.BinaryWriter} writer
18729
+ * @suppress {unusedLocalVariables} f is only used for nested messages
18730
+ */
18731
+ proto.user.GetSumSubApplicantRequest.serializeBinaryToWriter = function(message, writer) {
18732
+ var f = undefined;
18733
+ f = message.getApplicantId();
18734
+ if (f.length > 0) {
18735
+ writer.writeString(
18736
+ 1,
18737
+ f
18738
+ );
18739
+ }
18740
+ };
18741
+
18742
+
18743
+ /**
18744
+ * optional string applicant_id = 1;
18745
+ * @return {string}
18746
+ */
18747
+ proto.user.GetSumSubApplicantRequest.prototype.getApplicantId = function() {
18748
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
18749
+ };
18750
+
18751
+
18752
+ /**
18753
+ * @param {string} value
18754
+ * @return {!proto.user.GetSumSubApplicantRequest} returns this
18755
+ */
18756
+ proto.user.GetSumSubApplicantRequest.prototype.setApplicantId = function(value) {
18757
+ return jspb.Message.setProto3StringField(this, 1, value);
18758
+ };
18759
+
18760
+
18561
18761
 
18562
18762
 
18563
18763
 
@@ -19046,7 +19246,8 @@ proto.user.SumSubResponse.toObject = function(includeInstance, msg) {
19046
19246
  var f, obj = {
19047
19247
  externalUserId: jspb.Message.getFieldWithDefault(msg, 1, ""),
19048
19248
  createdAt: jspb.Message.getFieldWithDefault(msg, 2, ""),
19049
- idDocType: jspb.Message.getFieldWithDefault(msg, 3, "")
19249
+ idDocType: jspb.Message.getFieldWithDefault(msg, 3, ""),
19250
+ sumSubData: jspb.Message.getFieldWithDefault(msg, 4, "")
19050
19251
  };
19051
19252
 
19052
19253
  if (includeInstance) {
@@ -19095,6 +19296,10 @@ proto.user.SumSubResponse.deserializeBinaryFromReader = function(msg, reader) {
19095
19296
  var value = /** @type {string} */ (reader.readString());
19096
19297
  msg.setIdDocType(value);
19097
19298
  break;
19299
+ case 4:
19300
+ var value = /** @type {string} */ (reader.readString());
19301
+ msg.setSumSubData(value);
19302
+ break;
19098
19303
  default:
19099
19304
  reader.skipField();
19100
19305
  break;
@@ -19145,6 +19350,13 @@ proto.user.SumSubResponse.serializeBinaryToWriter = function(message, writer) {
19145
19350
  f
19146
19351
  );
19147
19352
  }
19353
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
19354
+ if (f != null) {
19355
+ writer.writeString(
19356
+ 4,
19357
+ f
19358
+ );
19359
+ }
19148
19360
  };
19149
19361
 
19150
19362
 
@@ -19256,6 +19468,42 @@ proto.user.SumSubResponse.prototype.hasIdDocType = function() {
19256
19468
  };
19257
19469
 
19258
19470
 
19471
+ /**
19472
+ * optional string sum_sub_data = 4;
19473
+ * @return {string}
19474
+ */
19475
+ proto.user.SumSubResponse.prototype.getSumSubData = function() {
19476
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
19477
+ };
19478
+
19479
+
19480
+ /**
19481
+ * @param {string} value
19482
+ * @return {!proto.user.SumSubResponse} returns this
19483
+ */
19484
+ proto.user.SumSubResponse.prototype.setSumSubData = function(value) {
19485
+ return jspb.Message.setField(this, 4, value);
19486
+ };
19487
+
19488
+
19489
+ /**
19490
+ * Clears the field making it undefined.
19491
+ * @return {!proto.user.SumSubResponse} returns this
19492
+ */
19493
+ proto.user.SumSubResponse.prototype.clearSumSubData = function() {
19494
+ return jspb.Message.setField(this, 4, undefined);
19495
+ };
19496
+
19497
+
19498
+ /**
19499
+ * Returns whether this field is set.
19500
+ * @return {boolean}
19501
+ */
19502
+ proto.user.SumSubResponse.prototype.hasSumSubData = function() {
19503
+ return jspb.Message.getField(this, 4) != null;
19504
+ };
19505
+
19506
+
19259
19507
 
19260
19508
 
19261
19509