protobuf-platform 1.1.72 → 1.1.74

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.
@@ -23,8 +23,9 @@ message PongResponse { string pong = 1; }
23
23
  message PaginationRequest {
24
24
  int32 limit = 1;
25
25
  int32 offset = 2;
26
- optional NotificationSearchRequest notification_search_params = 3;
27
- optional UserSearchRequest user_search_params = 4;
26
+ optional string order = 3;
27
+ optional NotificationSearchRequest notification_search_params = 4;
28
+ optional UserSearchRequest user_search_params = 5;
28
29
  }
29
30
  message NotificationSearchRequest {
30
31
  optional int32 notification_id = 1;
@@ -689,6 +689,7 @@ proto.notification.PaginationRequest.toObject = function(includeInstance, msg) {
689
689
  var f, obj = {
690
690
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
691
691
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
692
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
692
693
  notificationSearchParams: (f = msg.getNotificationSearchParams()) && proto.notification.NotificationSearchRequest.toObject(includeInstance, f),
693
694
  userSearchParams: (f = msg.getUserSearchParams()) && proto.notification.UserSearchRequest.toObject(includeInstance, f)
694
695
  };
@@ -736,11 +737,15 @@ proto.notification.PaginationRequest.deserializeBinaryFromReader = function(msg,
736
737
  msg.setOffset(value);
737
738
  break;
738
739
  case 3:
740
+ var value = /** @type {string} */ (reader.readString());
741
+ msg.setOrder(value);
742
+ break;
743
+ case 4:
739
744
  var value = new proto.notification.NotificationSearchRequest;
740
745
  reader.readMessage(value,proto.notification.NotificationSearchRequest.deserializeBinaryFromReader);
741
746
  msg.setNotificationSearchParams(value);
742
747
  break;
743
- case 4:
748
+ case 5:
744
749
  var value = new proto.notification.UserSearchRequest;
745
750
  reader.readMessage(value,proto.notification.UserSearchRequest.deserializeBinaryFromReader);
746
751
  msg.setUserSearchParams(value);
@@ -788,10 +793,17 @@ proto.notification.PaginationRequest.serializeBinaryToWriter = function(message,
788
793
  f
789
794
  );
790
795
  }
796
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
797
+ if (f != null) {
798
+ writer.writeString(
799
+ 3,
800
+ f
801
+ );
802
+ }
791
803
  f = message.getNotificationSearchParams();
792
804
  if (f != null) {
793
805
  writer.writeMessage(
794
- 3,
806
+ 4,
795
807
  f,
796
808
  proto.notification.NotificationSearchRequest.serializeBinaryToWriter
797
809
  );
@@ -799,7 +811,7 @@ proto.notification.PaginationRequest.serializeBinaryToWriter = function(message,
799
811
  f = message.getUserSearchParams();
800
812
  if (f != null) {
801
813
  writer.writeMessage(
802
- 4,
814
+ 5,
803
815
  f,
804
816
  proto.notification.UserSearchRequest.serializeBinaryToWriter
805
817
  );
@@ -844,12 +856,48 @@ proto.notification.PaginationRequest.prototype.setOffset = function(value) {
844
856
 
845
857
 
846
858
  /**
847
- * optional NotificationSearchRequest notification_search_params = 3;
859
+ * optional string order = 3;
860
+ * @return {string}
861
+ */
862
+ proto.notification.PaginationRequest.prototype.getOrder = function() {
863
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
864
+ };
865
+
866
+
867
+ /**
868
+ * @param {string} value
869
+ * @return {!proto.notification.PaginationRequest} returns this
870
+ */
871
+ proto.notification.PaginationRequest.prototype.setOrder = function(value) {
872
+ return jspb.Message.setField(this, 3, value);
873
+ };
874
+
875
+
876
+ /**
877
+ * Clears the field making it undefined.
878
+ * @return {!proto.notification.PaginationRequest} returns this
879
+ */
880
+ proto.notification.PaginationRequest.prototype.clearOrder = function() {
881
+ return jspb.Message.setField(this, 3, undefined);
882
+ };
883
+
884
+
885
+ /**
886
+ * Returns whether this field is set.
887
+ * @return {boolean}
888
+ */
889
+ proto.notification.PaginationRequest.prototype.hasOrder = function() {
890
+ return jspb.Message.getField(this, 3) != null;
891
+ };
892
+
893
+
894
+ /**
895
+ * optional NotificationSearchRequest notification_search_params = 4;
848
896
  * @return {?proto.notification.NotificationSearchRequest}
849
897
  */
850
898
  proto.notification.PaginationRequest.prototype.getNotificationSearchParams = function() {
851
899
  return /** @type{?proto.notification.NotificationSearchRequest} */ (
852
- jspb.Message.getWrapperField(this, proto.notification.NotificationSearchRequest, 3));
900
+ jspb.Message.getWrapperField(this, proto.notification.NotificationSearchRequest, 4));
853
901
  };
854
902
 
855
903
 
@@ -858,7 +906,7 @@ proto.notification.PaginationRequest.prototype.getNotificationSearchParams = fun
858
906
  * @return {!proto.notification.PaginationRequest} returns this
859
907
  */
860
908
  proto.notification.PaginationRequest.prototype.setNotificationSearchParams = function(value) {
861
- return jspb.Message.setWrapperField(this, 3, value);
909
+ return jspb.Message.setWrapperField(this, 4, value);
862
910
  };
863
911
 
864
912
 
@@ -876,17 +924,17 @@ proto.notification.PaginationRequest.prototype.clearNotificationSearchParams = f
876
924
  * @return {boolean}
877
925
  */
878
926
  proto.notification.PaginationRequest.prototype.hasNotificationSearchParams = function() {
879
- return jspb.Message.getField(this, 3) != null;
927
+ return jspb.Message.getField(this, 4) != null;
880
928
  };
881
929
 
882
930
 
883
931
  /**
884
- * optional UserSearchRequest user_search_params = 4;
932
+ * optional UserSearchRequest user_search_params = 5;
885
933
  * @return {?proto.notification.UserSearchRequest}
886
934
  */
887
935
  proto.notification.PaginationRequest.prototype.getUserSearchParams = function() {
888
936
  return /** @type{?proto.notification.UserSearchRequest} */ (
889
- jspb.Message.getWrapperField(this, proto.notification.UserSearchRequest, 4));
937
+ jspb.Message.getWrapperField(this, proto.notification.UserSearchRequest, 5));
890
938
  };
891
939
 
892
940
 
@@ -895,7 +943,7 @@ proto.notification.PaginationRequest.prototype.getUserSearchParams = function()
895
943
  * @return {!proto.notification.PaginationRequest} returns this
896
944
  */
897
945
  proto.notification.PaginationRequest.prototype.setUserSearchParams = function(value) {
898
- return jspb.Message.setWrapperField(this, 4, value);
946
+ return jspb.Message.setWrapperField(this, 5, value);
899
947
  };
900
948
 
901
949
 
@@ -913,7 +961,7 @@ proto.notification.PaginationRequest.prototype.clearUserSearchParams = function(
913
961
  * @return {boolean}
914
962
  */
915
963
  proto.notification.PaginationRequest.prototype.hasUserSearchParams = function() {
916
- return jspb.Message.getField(this, 4) != null;
964
+ return jspb.Message.getField(this, 5) != null;
917
965
  };
918
966
 
919
967
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.72",
3
+ "version": "1.1.74",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -38,7 +38,12 @@ message PongResponse { string pong = 1; }
38
38
  message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
39
39
  message GetFileRequest { string file_name = 1; string instance_type = 2; }
40
40
 
41
- message PaginationRequest { int32 limit = 1; int32 offset = 2; optional PaymentSearchRequest c = 3; }
41
+ message PaginationRequest {
42
+ int32 limit = 1;
43
+ int32 offset = 2;
44
+ optional string order = 3;
45
+ optional PaymentSearchRequest payment_search_params = 4;
46
+ }
42
47
  message PaymentSearchRequest {
43
48
  optional int32 deposit_id = 1;
44
49
  optional int32 withdrawal_id = 2;
@@ -1497,7 +1497,8 @@ proto.payment.PaginationRequest.toObject = function(includeInstance, msg) {
1497
1497
  var f, obj = {
1498
1498
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1499
1499
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1500
- c: (f = msg.getC()) && proto.payment.PaymentSearchRequest.toObject(includeInstance, f)
1500
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
1501
+ paymentSearchParams: (f = msg.getPaymentSearchParams()) && proto.payment.PaymentSearchRequest.toObject(includeInstance, f)
1501
1502
  };
1502
1503
 
1503
1504
  if (includeInstance) {
@@ -1543,9 +1544,13 @@ proto.payment.PaginationRequest.deserializeBinaryFromReader = function(msg, read
1543
1544
  msg.setOffset(value);
1544
1545
  break;
1545
1546
  case 3:
1547
+ var value = /** @type {string} */ (reader.readString());
1548
+ msg.setOrder(value);
1549
+ break;
1550
+ case 4:
1546
1551
  var value = new proto.payment.PaymentSearchRequest;
1547
1552
  reader.readMessage(value,proto.payment.PaymentSearchRequest.deserializeBinaryFromReader);
1548
- msg.setC(value);
1553
+ msg.setPaymentSearchParams(value);
1549
1554
  break;
1550
1555
  default:
1551
1556
  reader.skipField();
@@ -1590,10 +1595,17 @@ proto.payment.PaginationRequest.serializeBinaryToWriter = function(message, writ
1590
1595
  f
1591
1596
  );
1592
1597
  }
1593
- f = message.getC();
1598
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1594
1599
  if (f != null) {
1595
- writer.writeMessage(
1600
+ writer.writeString(
1596
1601
  3,
1602
+ f
1603
+ );
1604
+ }
1605
+ f = message.getPaymentSearchParams();
1606
+ if (f != null) {
1607
+ writer.writeMessage(
1608
+ 4,
1597
1609
  f,
1598
1610
  proto.payment.PaymentSearchRequest.serializeBinaryToWriter
1599
1611
  );
@@ -1638,12 +1650,48 @@ proto.payment.PaginationRequest.prototype.setOffset = function(value) {
1638
1650
 
1639
1651
 
1640
1652
  /**
1641
- * optional PaymentSearchRequest c = 3;
1653
+ * optional string order = 3;
1654
+ * @return {string}
1655
+ */
1656
+ proto.payment.PaginationRequest.prototype.getOrder = function() {
1657
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1658
+ };
1659
+
1660
+
1661
+ /**
1662
+ * @param {string} value
1663
+ * @return {!proto.payment.PaginationRequest} returns this
1664
+ */
1665
+ proto.payment.PaginationRequest.prototype.setOrder = function(value) {
1666
+ return jspb.Message.setField(this, 3, value);
1667
+ };
1668
+
1669
+
1670
+ /**
1671
+ * Clears the field making it undefined.
1672
+ * @return {!proto.payment.PaginationRequest} returns this
1673
+ */
1674
+ proto.payment.PaginationRequest.prototype.clearOrder = function() {
1675
+ return jspb.Message.setField(this, 3, undefined);
1676
+ };
1677
+
1678
+
1679
+ /**
1680
+ * Returns whether this field is set.
1681
+ * @return {boolean}
1682
+ */
1683
+ proto.payment.PaginationRequest.prototype.hasOrder = function() {
1684
+ return jspb.Message.getField(this, 3) != null;
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * optional PaymentSearchRequest payment_search_params = 4;
1642
1690
  * @return {?proto.payment.PaymentSearchRequest}
1643
1691
  */
1644
- proto.payment.PaginationRequest.prototype.getC = function() {
1692
+ proto.payment.PaginationRequest.prototype.getPaymentSearchParams = function() {
1645
1693
  return /** @type{?proto.payment.PaymentSearchRequest} */ (
1646
- jspb.Message.getWrapperField(this, proto.payment.PaymentSearchRequest, 3));
1694
+ jspb.Message.getWrapperField(this, proto.payment.PaymentSearchRequest, 4));
1647
1695
  };
1648
1696
 
1649
1697
 
@@ -1651,8 +1699,8 @@ proto.payment.PaginationRequest.prototype.getC = function() {
1651
1699
  * @param {?proto.payment.PaymentSearchRequest|undefined} value
1652
1700
  * @return {!proto.payment.PaginationRequest} returns this
1653
1701
  */
1654
- proto.payment.PaginationRequest.prototype.setC = function(value) {
1655
- return jspb.Message.setWrapperField(this, 3, value);
1702
+ proto.payment.PaginationRequest.prototype.setPaymentSearchParams = function(value) {
1703
+ return jspb.Message.setWrapperField(this, 4, value);
1656
1704
  };
1657
1705
 
1658
1706
 
@@ -1660,8 +1708,8 @@ proto.payment.PaginationRequest.prototype.setC = function(value) {
1660
1708
  * Clears the message field making it undefined.
1661
1709
  * @return {!proto.payment.PaginationRequest} returns this
1662
1710
  */
1663
- proto.payment.PaginationRequest.prototype.clearC = function() {
1664
- return this.setC(undefined);
1711
+ proto.payment.PaginationRequest.prototype.clearPaymentSearchParams = function() {
1712
+ return this.setPaymentSearchParams(undefined);
1665
1713
  };
1666
1714
 
1667
1715
 
@@ -1669,8 +1717,8 @@ proto.payment.PaginationRequest.prototype.clearC = function() {
1669
1717
  * Returns whether this field is set.
1670
1718
  * @return {boolean}
1671
1719
  */
1672
- proto.payment.PaginationRequest.prototype.hasC = function() {
1673
- return jspb.Message.getField(this, 3) != null;
1720
+ proto.payment.PaginationRequest.prototype.hasPaymentSearchParams = function() {
1721
+ return jspb.Message.getField(this, 4) != null;
1674
1722
  };
1675
1723
 
1676
1724