protobuf-platform 1.1.66 → 1.1.68

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/bonus/bonus.proto CHANGED
@@ -37,8 +37,9 @@ message GetFileRequest { string file_name = 1; string instance_type = 2; }
37
37
  message PaginationRequest {
38
38
  int32 limit = 1;
39
39
  int32 offset = 2;
40
- optional GetUserBonusRequest user_bonus_params = 3;
41
- optional SearchBonusRequest search_bonus_params = 4;
40
+ optional string order = 3;
41
+ optional GetUserBonusRequest user_bonus_params = 4;
42
+ optional SearchBonusRequest search_bonus_params = 5;
42
43
  }
43
44
  //Bonus search
44
45
  message SearchBonusRequest {
package/bonus/bonus_pb.js CHANGED
@@ -1268,6 +1268,7 @@ proto.bonus.PaginationRequest.toObject = function(includeInstance, msg) {
1268
1268
  var f, obj = {
1269
1269
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1270
1270
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1271
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
1271
1272
  userBonusParams: (f = msg.getUserBonusParams()) && proto.bonus.GetUserBonusRequest.toObject(includeInstance, f),
1272
1273
  searchBonusParams: (f = msg.getSearchBonusParams()) && proto.bonus.SearchBonusRequest.toObject(includeInstance, f)
1273
1274
  };
@@ -1315,11 +1316,15 @@ proto.bonus.PaginationRequest.deserializeBinaryFromReader = function(msg, reader
1315
1316
  msg.setOffset(value);
1316
1317
  break;
1317
1318
  case 3:
1319
+ var value = /** @type {string} */ (reader.readString());
1320
+ msg.setOrder(value);
1321
+ break;
1322
+ case 4:
1318
1323
  var value = new proto.bonus.GetUserBonusRequest;
1319
1324
  reader.readMessage(value,proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader);
1320
1325
  msg.setUserBonusParams(value);
1321
1326
  break;
1322
- case 4:
1327
+ case 5:
1323
1328
  var value = new proto.bonus.SearchBonusRequest;
1324
1329
  reader.readMessage(value,proto.bonus.SearchBonusRequest.deserializeBinaryFromReader);
1325
1330
  msg.setSearchBonusParams(value);
@@ -1367,10 +1372,17 @@ proto.bonus.PaginationRequest.serializeBinaryToWriter = function(message, writer
1367
1372
  f
1368
1373
  );
1369
1374
  }
1375
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1376
+ if (f != null) {
1377
+ writer.writeString(
1378
+ 3,
1379
+ f
1380
+ );
1381
+ }
1370
1382
  f = message.getUserBonusParams();
1371
1383
  if (f != null) {
1372
1384
  writer.writeMessage(
1373
- 3,
1385
+ 4,
1374
1386
  f,
1375
1387
  proto.bonus.GetUserBonusRequest.serializeBinaryToWriter
1376
1388
  );
@@ -1378,7 +1390,7 @@ proto.bonus.PaginationRequest.serializeBinaryToWriter = function(message, writer
1378
1390
  f = message.getSearchBonusParams();
1379
1391
  if (f != null) {
1380
1392
  writer.writeMessage(
1381
- 4,
1393
+ 5,
1382
1394
  f,
1383
1395
  proto.bonus.SearchBonusRequest.serializeBinaryToWriter
1384
1396
  );
@@ -1423,12 +1435,48 @@ proto.bonus.PaginationRequest.prototype.setOffset = function(value) {
1423
1435
 
1424
1436
 
1425
1437
  /**
1426
- * optional GetUserBonusRequest user_bonus_params = 3;
1438
+ * optional string order = 3;
1439
+ * @return {string}
1440
+ */
1441
+ proto.bonus.PaginationRequest.prototype.getOrder = function() {
1442
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * @param {string} value
1448
+ * @return {!proto.bonus.PaginationRequest} returns this
1449
+ */
1450
+ proto.bonus.PaginationRequest.prototype.setOrder = function(value) {
1451
+ return jspb.Message.setField(this, 3, value);
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * Clears the field making it undefined.
1457
+ * @return {!proto.bonus.PaginationRequest} returns this
1458
+ */
1459
+ proto.bonus.PaginationRequest.prototype.clearOrder = function() {
1460
+ return jspb.Message.setField(this, 3, undefined);
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * Returns whether this field is set.
1466
+ * @return {boolean}
1467
+ */
1468
+ proto.bonus.PaginationRequest.prototype.hasOrder = function() {
1469
+ return jspb.Message.getField(this, 3) != null;
1470
+ };
1471
+
1472
+
1473
+ /**
1474
+ * optional GetUserBonusRequest user_bonus_params = 4;
1427
1475
  * @return {?proto.bonus.GetUserBonusRequest}
1428
1476
  */
1429
1477
  proto.bonus.PaginationRequest.prototype.getUserBonusParams = function() {
1430
1478
  return /** @type{?proto.bonus.GetUserBonusRequest} */ (
1431
- jspb.Message.getWrapperField(this, proto.bonus.GetUserBonusRequest, 3));
1479
+ jspb.Message.getWrapperField(this, proto.bonus.GetUserBonusRequest, 4));
1432
1480
  };
1433
1481
 
1434
1482
 
@@ -1437,7 +1485,7 @@ proto.bonus.PaginationRequest.prototype.getUserBonusParams = function() {
1437
1485
  * @return {!proto.bonus.PaginationRequest} returns this
1438
1486
  */
1439
1487
  proto.bonus.PaginationRequest.prototype.setUserBonusParams = function(value) {
1440
- return jspb.Message.setWrapperField(this, 3, value);
1488
+ return jspb.Message.setWrapperField(this, 4, value);
1441
1489
  };
1442
1490
 
1443
1491
 
@@ -1455,17 +1503,17 @@ proto.bonus.PaginationRequest.prototype.clearUserBonusParams = function() {
1455
1503
  * @return {boolean}
1456
1504
  */
1457
1505
  proto.bonus.PaginationRequest.prototype.hasUserBonusParams = function() {
1458
- return jspb.Message.getField(this, 3) != null;
1506
+ return jspb.Message.getField(this, 4) != null;
1459
1507
  };
1460
1508
 
1461
1509
 
1462
1510
  /**
1463
- * optional SearchBonusRequest search_bonus_params = 4;
1511
+ * optional SearchBonusRequest search_bonus_params = 5;
1464
1512
  * @return {?proto.bonus.SearchBonusRequest}
1465
1513
  */
1466
1514
  proto.bonus.PaginationRequest.prototype.getSearchBonusParams = function() {
1467
1515
  return /** @type{?proto.bonus.SearchBonusRequest} */ (
1468
- jspb.Message.getWrapperField(this, proto.bonus.SearchBonusRequest, 4));
1516
+ jspb.Message.getWrapperField(this, proto.bonus.SearchBonusRequest, 5));
1469
1517
  };
1470
1518
 
1471
1519
 
@@ -1474,7 +1522,7 @@ proto.bonus.PaginationRequest.prototype.getSearchBonusParams = function() {
1474
1522
  * @return {!proto.bonus.PaginationRequest} returns this
1475
1523
  */
1476
1524
  proto.bonus.PaginationRequest.prototype.setSearchBonusParams = function(value) {
1477
- return jspb.Message.setWrapperField(this, 4, value);
1525
+ return jspb.Message.setWrapperField(this, 5, value);
1478
1526
  };
1479
1527
 
1480
1528
 
@@ -1492,7 +1540,7 @@ proto.bonus.PaginationRequest.prototype.clearSearchBonusParams = function() {
1492
1540
  * @return {boolean}
1493
1541
  */
1494
1542
  proto.bonus.PaginationRequest.prototype.hasSearchBonusParams = function() {
1495
- return jspb.Message.getField(this, 4) != null;
1543
+ return jspb.Message.getField(this, 5) != null;
1496
1544
  };
1497
1545
 
1498
1546
 
@@ -27,8 +27,9 @@ message PongResponse { string pong = 1; }
27
27
  message PaginationRequest {
28
28
  int32 limit = 1;
29
29
  int32 offset = 2;
30
- optional LoyaltySearchRequest loyalty_search_params = 3;
31
- optional string type = 4;
30
+ optional string order = 3;
31
+ optional LoyaltySearchRequest loyalty_search_params = 4;
32
+ optional string type = 5;
32
33
  }
33
34
  message LoyaltySearchRequest {
34
35
  optional int32 loyalty_id = 1;
@@ -888,8 +888,9 @@ proto.loyalty.PaginationRequest.toObject = function(includeInstance, msg) {
888
888
  var f, obj = {
889
889
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
890
890
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
891
+ order: jspb.Message.getFieldWithDefault(msg, 3, ""),
891
892
  loyaltySearchParams: (f = msg.getLoyaltySearchParams()) && proto.loyalty.LoyaltySearchRequest.toObject(includeInstance, f),
892
- type: jspb.Message.getFieldWithDefault(msg, 4, "")
893
+ type: jspb.Message.getFieldWithDefault(msg, 5, "")
893
894
  };
894
895
 
895
896
  if (includeInstance) {
@@ -935,11 +936,15 @@ proto.loyalty.PaginationRequest.deserializeBinaryFromReader = function(msg, read
935
936
  msg.setOffset(value);
936
937
  break;
937
938
  case 3:
939
+ var value = /** @type {string} */ (reader.readString());
940
+ msg.setOrder(value);
941
+ break;
942
+ case 4:
938
943
  var value = new proto.loyalty.LoyaltySearchRequest;
939
944
  reader.readMessage(value,proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader);
940
945
  msg.setLoyaltySearchParams(value);
941
946
  break;
942
- case 4:
947
+ case 5:
943
948
  var value = /** @type {string} */ (reader.readString());
944
949
  msg.setType(value);
945
950
  break;
@@ -986,18 +991,25 @@ proto.loyalty.PaginationRequest.serializeBinaryToWriter = function(message, writ
986
991
  f
987
992
  );
988
993
  }
994
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
995
+ if (f != null) {
996
+ writer.writeString(
997
+ 3,
998
+ f
999
+ );
1000
+ }
989
1001
  f = message.getLoyaltySearchParams();
990
1002
  if (f != null) {
991
1003
  writer.writeMessage(
992
- 3,
1004
+ 4,
993
1005
  f,
994
1006
  proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter
995
1007
  );
996
1008
  }
997
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
1009
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
998
1010
  if (f != null) {
999
1011
  writer.writeString(
1000
- 4,
1012
+ 5,
1001
1013
  f
1002
1014
  );
1003
1015
  }
@@ -1041,12 +1053,48 @@ proto.loyalty.PaginationRequest.prototype.setOffset = function(value) {
1041
1053
 
1042
1054
 
1043
1055
  /**
1044
- * optional LoyaltySearchRequest loyalty_search_params = 3;
1056
+ * optional string order = 3;
1057
+ * @return {string}
1058
+ */
1059
+ proto.loyalty.PaginationRequest.prototype.getOrder = function() {
1060
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1061
+ };
1062
+
1063
+
1064
+ /**
1065
+ * @param {string} value
1066
+ * @return {!proto.loyalty.PaginationRequest} returns this
1067
+ */
1068
+ proto.loyalty.PaginationRequest.prototype.setOrder = function(value) {
1069
+ return jspb.Message.setField(this, 3, value);
1070
+ };
1071
+
1072
+
1073
+ /**
1074
+ * Clears the field making it undefined.
1075
+ * @return {!proto.loyalty.PaginationRequest} returns this
1076
+ */
1077
+ proto.loyalty.PaginationRequest.prototype.clearOrder = function() {
1078
+ return jspb.Message.setField(this, 3, undefined);
1079
+ };
1080
+
1081
+
1082
+ /**
1083
+ * Returns whether this field is set.
1084
+ * @return {boolean}
1085
+ */
1086
+ proto.loyalty.PaginationRequest.prototype.hasOrder = function() {
1087
+ return jspb.Message.getField(this, 3) != null;
1088
+ };
1089
+
1090
+
1091
+ /**
1092
+ * optional LoyaltySearchRequest loyalty_search_params = 4;
1045
1093
  * @return {?proto.loyalty.LoyaltySearchRequest}
1046
1094
  */
1047
1095
  proto.loyalty.PaginationRequest.prototype.getLoyaltySearchParams = function() {
1048
1096
  return /** @type{?proto.loyalty.LoyaltySearchRequest} */ (
1049
- jspb.Message.getWrapperField(this, proto.loyalty.LoyaltySearchRequest, 3));
1097
+ jspb.Message.getWrapperField(this, proto.loyalty.LoyaltySearchRequest, 4));
1050
1098
  };
1051
1099
 
1052
1100
 
@@ -1055,7 +1103,7 @@ proto.loyalty.PaginationRequest.prototype.getLoyaltySearchParams = function() {
1055
1103
  * @return {!proto.loyalty.PaginationRequest} returns this
1056
1104
  */
1057
1105
  proto.loyalty.PaginationRequest.prototype.setLoyaltySearchParams = function(value) {
1058
- return jspb.Message.setWrapperField(this, 3, value);
1106
+ return jspb.Message.setWrapperField(this, 4, value);
1059
1107
  };
1060
1108
 
1061
1109
 
@@ -1073,16 +1121,16 @@ proto.loyalty.PaginationRequest.prototype.clearLoyaltySearchParams = function()
1073
1121
  * @return {boolean}
1074
1122
  */
1075
1123
  proto.loyalty.PaginationRequest.prototype.hasLoyaltySearchParams = function() {
1076
- return jspb.Message.getField(this, 3) != null;
1124
+ return jspb.Message.getField(this, 4) != null;
1077
1125
  };
1078
1126
 
1079
1127
 
1080
1128
  /**
1081
- * optional string type = 4;
1129
+ * optional string type = 5;
1082
1130
  * @return {string}
1083
1131
  */
1084
1132
  proto.loyalty.PaginationRequest.prototype.getType = function() {
1085
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1133
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1086
1134
  };
1087
1135
 
1088
1136
 
@@ -1091,7 +1139,7 @@ proto.loyalty.PaginationRequest.prototype.getType = function() {
1091
1139
  * @return {!proto.loyalty.PaginationRequest} returns this
1092
1140
  */
1093
1141
  proto.loyalty.PaginationRequest.prototype.setType = function(value) {
1094
- return jspb.Message.setField(this, 4, value);
1142
+ return jspb.Message.setField(this, 5, value);
1095
1143
  };
1096
1144
 
1097
1145
 
@@ -1100,7 +1148,7 @@ proto.loyalty.PaginationRequest.prototype.setType = function(value) {
1100
1148
  * @return {!proto.loyalty.PaginationRequest} returns this
1101
1149
  */
1102
1150
  proto.loyalty.PaginationRequest.prototype.clearType = function() {
1103
- return jspb.Message.setField(this, 4, undefined);
1151
+ return jspb.Message.setField(this, 5, undefined);
1104
1152
  };
1105
1153
 
1106
1154
 
@@ -1109,7 +1157,7 @@ proto.loyalty.PaginationRequest.prototype.clearType = function() {
1109
1157
  * @return {boolean}
1110
1158
  */
1111
1159
  proto.loyalty.PaginationRequest.prototype.hasType = function() {
1112
- return jspb.Message.getField(this, 4) != null;
1160
+ return jspb.Message.getField(this, 5) != null;
1113
1161
  };
1114
1162
 
1115
1163
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.66",
3
+ "version": "1.1.68",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {