protobuf-platform 1.2.680 → 1.2.682

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.2.680",
3
+ "version": "1.2.682",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -396,6 +396,7 @@ message OperationDetailsItem {
396
396
  optional ProviderOutcome provider_outcome = 19;
397
397
  optional string origin = 20;
398
398
  optional string canonical_status = 21;
399
+ optional string amount_minor = 22;
399
400
  }
400
401
  message OperationLedgerItem {
401
402
  int32 id = 1;
@@ -412,6 +413,10 @@ message OperationLedgerItem {
412
413
  }
413
414
  message GetOperationDetailsRequest {
414
415
  int32 id = 1;
416
+ optional int32 user_id = 2;
417
+ optional string reference_type = 3;
418
+ optional string reference_id = 4;
419
+ optional string reason_code = 5;
415
420
  }
416
421
  message OperationDetailsResponse {
417
422
  OperationDetailsItem details = 1;
@@ -16125,7 +16125,8 @@ proto.payment.OperationDetailsItem.toObject = function(includeInstance, msg) {
16125
16125
  providerCode: jspb.Message.getFieldWithDefault(msg, 18, ""),
16126
16126
  providerOutcome: (f = msg.getProviderOutcome()) && proto.payment.ProviderOutcome.toObject(includeInstance, f),
16127
16127
  origin: jspb.Message.getFieldWithDefault(msg, 20, ""),
16128
- canonicalStatus: jspb.Message.getFieldWithDefault(msg, 21, "")
16128
+ canonicalStatus: jspb.Message.getFieldWithDefault(msg, 21, ""),
16129
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 22, "")
16129
16130
  };
16130
16131
 
16131
16132
  if (includeInstance) {
@@ -16247,6 +16248,10 @@ proto.payment.OperationDetailsItem.deserializeBinaryFromReader = function(msg, r
16247
16248
  var value = /** @type {string} */ (reader.readString());
16248
16249
  msg.setCanonicalStatus(value);
16249
16250
  break;
16251
+ case 22:
16252
+ var value = /** @type {string} */ (reader.readString());
16253
+ msg.setAmountMinor(value);
16254
+ break;
16250
16255
  default:
16251
16256
  reader.skipField();
16252
16257
  break;
@@ -16424,6 +16429,13 @@ proto.payment.OperationDetailsItem.serializeBinaryToWriter = function(message, w
16424
16429
  f
16425
16430
  );
16426
16431
  }
16432
+ f = /** @type {string} */ (jspb.Message.getField(message, 22));
16433
+ if (f != null) {
16434
+ writer.writeString(
16435
+ 22,
16436
+ f
16437
+ );
16438
+ }
16427
16439
  };
16428
16440
 
16429
16441
 
@@ -16896,6 +16908,42 @@ proto.payment.OperationDetailsItem.prototype.hasCanonicalStatus = function() {
16896
16908
  };
16897
16909
 
16898
16910
 
16911
+ /**
16912
+ * optional string amount_minor = 22;
16913
+ * @return {string}
16914
+ */
16915
+ proto.payment.OperationDetailsItem.prototype.getAmountMinor = function() {
16916
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, ""));
16917
+ };
16918
+
16919
+
16920
+ /**
16921
+ * @param {string} value
16922
+ * @return {!proto.payment.OperationDetailsItem} returns this
16923
+ */
16924
+ proto.payment.OperationDetailsItem.prototype.setAmountMinor = function(value) {
16925
+ return jspb.Message.setField(this, 22, value);
16926
+ };
16927
+
16928
+
16929
+ /**
16930
+ * Clears the field making it undefined.
16931
+ * @return {!proto.payment.OperationDetailsItem} returns this
16932
+ */
16933
+ proto.payment.OperationDetailsItem.prototype.clearAmountMinor = function() {
16934
+ return jspb.Message.setField(this, 22, undefined);
16935
+ };
16936
+
16937
+
16938
+ /**
16939
+ * Returns whether this field is set.
16940
+ * @return {boolean}
16941
+ */
16942
+ proto.payment.OperationDetailsItem.prototype.hasAmountMinor = function() {
16943
+ return jspb.Message.getField(this, 22) != null;
16944
+ };
16945
+
16946
+
16899
16947
 
16900
16948
 
16901
16949
 
@@ -17358,7 +17406,11 @@ proto.payment.GetOperationDetailsRequest.prototype.toObject = function(opt_inclu
17358
17406
  */
17359
17407
  proto.payment.GetOperationDetailsRequest.toObject = function(includeInstance, msg) {
17360
17408
  var f, obj = {
17361
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
17409
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
17410
+ userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
17411
+ referenceType: jspb.Message.getFieldWithDefault(msg, 3, ""),
17412
+ referenceId: jspb.Message.getFieldWithDefault(msg, 4, ""),
17413
+ reasonCode: jspb.Message.getFieldWithDefault(msg, 5, "")
17362
17414
  };
17363
17415
 
17364
17416
  if (includeInstance) {
@@ -17399,6 +17451,22 @@ proto.payment.GetOperationDetailsRequest.deserializeBinaryFromReader = function(
17399
17451
  var value = /** @type {number} */ (reader.readInt32());
17400
17452
  msg.setId(value);
17401
17453
  break;
17454
+ case 2:
17455
+ var value = /** @type {number} */ (reader.readInt32());
17456
+ msg.setUserId(value);
17457
+ break;
17458
+ case 3:
17459
+ var value = /** @type {string} */ (reader.readString());
17460
+ msg.setReferenceType(value);
17461
+ break;
17462
+ case 4:
17463
+ var value = /** @type {string} */ (reader.readString());
17464
+ msg.setReferenceId(value);
17465
+ break;
17466
+ case 5:
17467
+ var value = /** @type {string} */ (reader.readString());
17468
+ msg.setReasonCode(value);
17469
+ break;
17402
17470
  default:
17403
17471
  reader.skipField();
17404
17472
  break;
@@ -17435,6 +17503,34 @@ proto.payment.GetOperationDetailsRequest.serializeBinaryToWriter = function(mess
17435
17503
  f
17436
17504
  );
17437
17505
  }
17506
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
17507
+ if (f != null) {
17508
+ writer.writeInt32(
17509
+ 2,
17510
+ f
17511
+ );
17512
+ }
17513
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
17514
+ if (f != null) {
17515
+ writer.writeString(
17516
+ 3,
17517
+ f
17518
+ );
17519
+ }
17520
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
17521
+ if (f != null) {
17522
+ writer.writeString(
17523
+ 4,
17524
+ f
17525
+ );
17526
+ }
17527
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
17528
+ if (f != null) {
17529
+ writer.writeString(
17530
+ 5,
17531
+ f
17532
+ );
17533
+ }
17438
17534
  };
17439
17535
 
17440
17536
 
@@ -17456,6 +17552,150 @@ proto.payment.GetOperationDetailsRequest.prototype.setId = function(value) {
17456
17552
  };
17457
17553
 
17458
17554
 
17555
+ /**
17556
+ * optional int32 user_id = 2;
17557
+ * @return {number}
17558
+ */
17559
+ proto.payment.GetOperationDetailsRequest.prototype.getUserId = function() {
17560
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
17561
+ };
17562
+
17563
+
17564
+ /**
17565
+ * @param {number} value
17566
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17567
+ */
17568
+ proto.payment.GetOperationDetailsRequest.prototype.setUserId = function(value) {
17569
+ return jspb.Message.setField(this, 2, value);
17570
+ };
17571
+
17572
+
17573
+ /**
17574
+ * Clears the field making it undefined.
17575
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17576
+ */
17577
+ proto.payment.GetOperationDetailsRequest.prototype.clearUserId = function() {
17578
+ return jspb.Message.setField(this, 2, undefined);
17579
+ };
17580
+
17581
+
17582
+ /**
17583
+ * Returns whether this field is set.
17584
+ * @return {boolean}
17585
+ */
17586
+ proto.payment.GetOperationDetailsRequest.prototype.hasUserId = function() {
17587
+ return jspb.Message.getField(this, 2) != null;
17588
+ };
17589
+
17590
+
17591
+ /**
17592
+ * optional string reference_type = 3;
17593
+ * @return {string}
17594
+ */
17595
+ proto.payment.GetOperationDetailsRequest.prototype.getReferenceType = function() {
17596
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
17597
+ };
17598
+
17599
+
17600
+ /**
17601
+ * @param {string} value
17602
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17603
+ */
17604
+ proto.payment.GetOperationDetailsRequest.prototype.setReferenceType = function(value) {
17605
+ return jspb.Message.setField(this, 3, value);
17606
+ };
17607
+
17608
+
17609
+ /**
17610
+ * Clears the field making it undefined.
17611
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17612
+ */
17613
+ proto.payment.GetOperationDetailsRequest.prototype.clearReferenceType = function() {
17614
+ return jspb.Message.setField(this, 3, undefined);
17615
+ };
17616
+
17617
+
17618
+ /**
17619
+ * Returns whether this field is set.
17620
+ * @return {boolean}
17621
+ */
17622
+ proto.payment.GetOperationDetailsRequest.prototype.hasReferenceType = function() {
17623
+ return jspb.Message.getField(this, 3) != null;
17624
+ };
17625
+
17626
+
17627
+ /**
17628
+ * optional string reference_id = 4;
17629
+ * @return {string}
17630
+ */
17631
+ proto.payment.GetOperationDetailsRequest.prototype.getReferenceId = function() {
17632
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
17633
+ };
17634
+
17635
+
17636
+ /**
17637
+ * @param {string} value
17638
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17639
+ */
17640
+ proto.payment.GetOperationDetailsRequest.prototype.setReferenceId = function(value) {
17641
+ return jspb.Message.setField(this, 4, value);
17642
+ };
17643
+
17644
+
17645
+ /**
17646
+ * Clears the field making it undefined.
17647
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17648
+ */
17649
+ proto.payment.GetOperationDetailsRequest.prototype.clearReferenceId = function() {
17650
+ return jspb.Message.setField(this, 4, undefined);
17651
+ };
17652
+
17653
+
17654
+ /**
17655
+ * Returns whether this field is set.
17656
+ * @return {boolean}
17657
+ */
17658
+ proto.payment.GetOperationDetailsRequest.prototype.hasReferenceId = function() {
17659
+ return jspb.Message.getField(this, 4) != null;
17660
+ };
17661
+
17662
+
17663
+ /**
17664
+ * optional string reason_code = 5;
17665
+ * @return {string}
17666
+ */
17667
+ proto.payment.GetOperationDetailsRequest.prototype.getReasonCode = function() {
17668
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
17669
+ };
17670
+
17671
+
17672
+ /**
17673
+ * @param {string} value
17674
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17675
+ */
17676
+ proto.payment.GetOperationDetailsRequest.prototype.setReasonCode = function(value) {
17677
+ return jspb.Message.setField(this, 5, value);
17678
+ };
17679
+
17680
+
17681
+ /**
17682
+ * Clears the field making it undefined.
17683
+ * @return {!proto.payment.GetOperationDetailsRequest} returns this
17684
+ */
17685
+ proto.payment.GetOperationDetailsRequest.prototype.clearReasonCode = function() {
17686
+ return jspb.Message.setField(this, 5, undefined);
17687
+ };
17688
+
17689
+
17690
+ /**
17691
+ * Returns whether this field is set.
17692
+ * @return {boolean}
17693
+ */
17694
+ proto.payment.GetOperationDetailsRequest.prototype.hasReasonCode = function() {
17695
+ return jspb.Message.getField(this, 5) != null;
17696
+ };
17697
+
17698
+
17459
17699
 
17460
17700
  /**
17461
17701
  * List of repeated fields within this message type.
package/user/user.proto CHANGED
@@ -251,6 +251,7 @@ message UserSearchParams {
251
251
  optional string registration_from = 9;
252
252
  optional string registration_to = 10;
253
253
  optional string nickname = 11;
254
+ repeated int32 role_ids = 12;
254
255
  }
255
256
  message SegmentSearchParams {
256
257
  optional string type = 1;
package/user/user_pb.js CHANGED
@@ -7956,7 +7956,7 @@ proto.user.File.prototype.hasFileType = function() {
7956
7956
  * @private {!Array<number>}
7957
7957
  * @const
7958
7958
  */
7959
- proto.user.UserSearchParams.repeatedFields_ = [1,2,3,4,5,6,7];
7959
+ proto.user.UserSearchParams.repeatedFields_ = [1,2,3,4,5,6,7,12];
7960
7960
 
7961
7961
 
7962
7962
 
@@ -7999,7 +7999,8 @@ proto.user.UserSearchParams.toObject = function(includeInstance, msg) {
7999
7999
  email: jspb.Message.getFieldWithDefault(msg, 8, ""),
8000
8000
  registrationFrom: jspb.Message.getFieldWithDefault(msg, 9, ""),
8001
8001
  registrationTo: jspb.Message.getFieldWithDefault(msg, 10, ""),
8002
- nickname: jspb.Message.getFieldWithDefault(msg, 11, "")
8002
+ nickname: jspb.Message.getFieldWithDefault(msg, 11, ""),
8003
+ roleIdsList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f
8003
8004
  };
8004
8005
 
8005
8006
  if (includeInstance) {
@@ -8088,6 +8089,12 @@ proto.user.UserSearchParams.deserializeBinaryFromReader = function(msg, reader)
8088
8089
  var value = /** @type {string} */ (reader.readString());
8089
8090
  msg.setNickname(value);
8090
8091
  break;
8092
+ case 12:
8093
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
8094
+ for (var i = 0; i < values.length; i++) {
8095
+ msg.addRoleIds(values[i]);
8096
+ }
8097
+ break;
8091
8098
  default:
8092
8099
  reader.skipField();
8093
8100
  break;
@@ -8194,6 +8201,13 @@ proto.user.UserSearchParams.serializeBinaryToWriter = function(message, writer)
8194
8201
  f
8195
8202
  );
8196
8203
  }
8204
+ f = message.getRoleIdsList();
8205
+ if (f.length > 0) {
8206
+ writer.writePackedInt32(
8207
+ 12,
8208
+ f
8209
+ );
8210
+ }
8197
8211
  };
8198
8212
 
8199
8213
 
@@ -8600,6 +8614,43 @@ proto.user.UserSearchParams.prototype.hasNickname = function() {
8600
8614
  };
8601
8615
 
8602
8616
 
8617
+ /**
8618
+ * repeated int32 role_ids = 12;
8619
+ * @return {!Array<number>}
8620
+ */
8621
+ proto.user.UserSearchParams.prototype.getRoleIdsList = function() {
8622
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 12));
8623
+ };
8624
+
8625
+
8626
+ /**
8627
+ * @param {!Array<number>} value
8628
+ * @return {!proto.user.UserSearchParams} returns this
8629
+ */
8630
+ proto.user.UserSearchParams.prototype.setRoleIdsList = function(value) {
8631
+ return jspb.Message.setField(this, 12, value || []);
8632
+ };
8633
+
8634
+
8635
+ /**
8636
+ * @param {number} value
8637
+ * @param {number=} opt_index
8638
+ * @return {!proto.user.UserSearchParams} returns this
8639
+ */
8640
+ proto.user.UserSearchParams.prototype.addRoleIds = function(value, opt_index) {
8641
+ return jspb.Message.addToRepeatedField(this, 12, value, opt_index);
8642
+ };
8643
+
8644
+
8645
+ /**
8646
+ * Clears the list making it empty but non-null.
8647
+ * @return {!proto.user.UserSearchParams} returns this
8648
+ */
8649
+ proto.user.UserSearchParams.prototype.clearRoleIdsList = function() {
8650
+ return this.setRoleIdsList([]);
8651
+ };
8652
+
8653
+
8603
8654
 
8604
8655
  /**
8605
8656
  * List of repeated fields within this message type.