protobuf-platform 1.1.65 → 1.1.67
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 +3 -2
- package/bonus/bonus_pb.js +59 -11
- package/package.json +1 -1
- package/user/user.proto +4 -3
- package/user/user_pb.js +65 -17
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
|
41
|
-
optional
|
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
|
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
|
-
|
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
|
-
|
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
|
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,
|
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,
|
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,
|
1506
|
+
return jspb.Message.getField(this, 4) != null;
|
1459
1507
|
};
|
1460
1508
|
|
1461
1509
|
|
1462
1510
|
/**
|
1463
|
-
* optional SearchBonusRequest search_bonus_params =
|
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,
|
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,
|
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,
|
1543
|
+
return jspb.Message.getField(this, 5) != null;
|
1496
1544
|
};
|
1497
1545
|
|
1498
1546
|
|
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -57,9 +57,10 @@ message PongResponse { string pong = 1; }
|
|
57
57
|
message PaginationRequest {
|
58
58
|
int32 limit = 1;
|
59
59
|
int32 offset = 2;
|
60
|
-
optional
|
61
|
-
optional
|
62
|
-
optional
|
60
|
+
optional string order = 3;
|
61
|
+
optional UserSearchParams user_search_params = 4;
|
62
|
+
optional SegmentSearchParams segment_search_params = 5;
|
63
|
+
optional NoteSearchParams note_search_params = 6;
|
63
64
|
}
|
64
65
|
//Media
|
65
66
|
message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
|
package/user/user_pb.js
CHANGED
@@ -1416,6 +1416,7 @@ proto.user.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1416
1416
|
var f, obj = {
|
1417
1417
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1418
1418
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1419
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1419
1420
|
userSearchParams: (f = msg.getUserSearchParams()) && proto.user.UserSearchParams.toObject(includeInstance, f),
|
1420
1421
|
segmentSearchParams: (f = msg.getSegmentSearchParams()) && proto.user.SegmentSearchParams.toObject(includeInstance, f),
|
1421
1422
|
noteSearchParams: (f = msg.getNoteSearchParams()) && proto.user.NoteSearchParams.toObject(includeInstance, f)
|
@@ -1464,16 +1465,20 @@ proto.user.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
|
|
1464
1465
|
msg.setOffset(value);
|
1465
1466
|
break;
|
1466
1467
|
case 3:
|
1468
|
+
var value = /** @type {string} */ (reader.readString());
|
1469
|
+
msg.setOrder(value);
|
1470
|
+
break;
|
1471
|
+
case 4:
|
1467
1472
|
var value = new proto.user.UserSearchParams;
|
1468
1473
|
reader.readMessage(value,proto.user.UserSearchParams.deserializeBinaryFromReader);
|
1469
1474
|
msg.setUserSearchParams(value);
|
1470
1475
|
break;
|
1471
|
-
case
|
1476
|
+
case 5:
|
1472
1477
|
var value = new proto.user.SegmentSearchParams;
|
1473
1478
|
reader.readMessage(value,proto.user.SegmentSearchParams.deserializeBinaryFromReader);
|
1474
1479
|
msg.setSegmentSearchParams(value);
|
1475
1480
|
break;
|
1476
|
-
case
|
1481
|
+
case 6:
|
1477
1482
|
var value = new proto.user.NoteSearchParams;
|
1478
1483
|
reader.readMessage(value,proto.user.NoteSearchParams.deserializeBinaryFromReader);
|
1479
1484
|
msg.setNoteSearchParams(value);
|
@@ -1521,10 +1526,17 @@ proto.user.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
1521
1526
|
f
|
1522
1527
|
);
|
1523
1528
|
}
|
1529
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1530
|
+
if (f != null) {
|
1531
|
+
writer.writeString(
|
1532
|
+
3,
|
1533
|
+
f
|
1534
|
+
);
|
1535
|
+
}
|
1524
1536
|
f = message.getUserSearchParams();
|
1525
1537
|
if (f != null) {
|
1526
1538
|
writer.writeMessage(
|
1527
|
-
|
1539
|
+
4,
|
1528
1540
|
f,
|
1529
1541
|
proto.user.UserSearchParams.serializeBinaryToWriter
|
1530
1542
|
);
|
@@ -1532,7 +1544,7 @@ proto.user.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
1532
1544
|
f = message.getSegmentSearchParams();
|
1533
1545
|
if (f != null) {
|
1534
1546
|
writer.writeMessage(
|
1535
|
-
|
1547
|
+
5,
|
1536
1548
|
f,
|
1537
1549
|
proto.user.SegmentSearchParams.serializeBinaryToWriter
|
1538
1550
|
);
|
@@ -1540,7 +1552,7 @@ proto.user.PaginationRequest.serializeBinaryToWriter = function(message, writer)
|
|
1540
1552
|
f = message.getNoteSearchParams();
|
1541
1553
|
if (f != null) {
|
1542
1554
|
writer.writeMessage(
|
1543
|
-
|
1555
|
+
6,
|
1544
1556
|
f,
|
1545
1557
|
proto.user.NoteSearchParams.serializeBinaryToWriter
|
1546
1558
|
);
|
@@ -1585,12 +1597,48 @@ proto.user.PaginationRequest.prototype.setOffset = function(value) {
|
|
1585
1597
|
|
1586
1598
|
|
1587
1599
|
/**
|
1588
|
-
* optional
|
1600
|
+
* optional string order = 3;
|
1601
|
+
* @return {string}
|
1602
|
+
*/
|
1603
|
+
proto.user.PaginationRequest.prototype.getOrder = function() {
|
1604
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1605
|
+
};
|
1606
|
+
|
1607
|
+
|
1608
|
+
/**
|
1609
|
+
* @param {string} value
|
1610
|
+
* @return {!proto.user.PaginationRequest} returns this
|
1611
|
+
*/
|
1612
|
+
proto.user.PaginationRequest.prototype.setOrder = function(value) {
|
1613
|
+
return jspb.Message.setField(this, 3, value);
|
1614
|
+
};
|
1615
|
+
|
1616
|
+
|
1617
|
+
/**
|
1618
|
+
* Clears the field making it undefined.
|
1619
|
+
* @return {!proto.user.PaginationRequest} returns this
|
1620
|
+
*/
|
1621
|
+
proto.user.PaginationRequest.prototype.clearOrder = function() {
|
1622
|
+
return jspb.Message.setField(this, 3, undefined);
|
1623
|
+
};
|
1624
|
+
|
1625
|
+
|
1626
|
+
/**
|
1627
|
+
* Returns whether this field is set.
|
1628
|
+
* @return {boolean}
|
1629
|
+
*/
|
1630
|
+
proto.user.PaginationRequest.prototype.hasOrder = function() {
|
1631
|
+
return jspb.Message.getField(this, 3) != null;
|
1632
|
+
};
|
1633
|
+
|
1634
|
+
|
1635
|
+
/**
|
1636
|
+
* optional UserSearchParams user_search_params = 4;
|
1589
1637
|
* @return {?proto.user.UserSearchParams}
|
1590
1638
|
*/
|
1591
1639
|
proto.user.PaginationRequest.prototype.getUserSearchParams = function() {
|
1592
1640
|
return /** @type{?proto.user.UserSearchParams} */ (
|
1593
|
-
jspb.Message.getWrapperField(this, proto.user.UserSearchParams,
|
1641
|
+
jspb.Message.getWrapperField(this, proto.user.UserSearchParams, 4));
|
1594
1642
|
};
|
1595
1643
|
|
1596
1644
|
|
@@ -1599,7 +1647,7 @@ proto.user.PaginationRequest.prototype.getUserSearchParams = function() {
|
|
1599
1647
|
* @return {!proto.user.PaginationRequest} returns this
|
1600
1648
|
*/
|
1601
1649
|
proto.user.PaginationRequest.prototype.setUserSearchParams = function(value) {
|
1602
|
-
return jspb.Message.setWrapperField(this,
|
1650
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1603
1651
|
};
|
1604
1652
|
|
1605
1653
|
|
@@ -1617,17 +1665,17 @@ proto.user.PaginationRequest.prototype.clearUserSearchParams = function() {
|
|
1617
1665
|
* @return {boolean}
|
1618
1666
|
*/
|
1619
1667
|
proto.user.PaginationRequest.prototype.hasUserSearchParams = function() {
|
1620
|
-
return jspb.Message.getField(this,
|
1668
|
+
return jspb.Message.getField(this, 4) != null;
|
1621
1669
|
};
|
1622
1670
|
|
1623
1671
|
|
1624
1672
|
/**
|
1625
|
-
* optional SegmentSearchParams segment_search_params =
|
1673
|
+
* optional SegmentSearchParams segment_search_params = 5;
|
1626
1674
|
* @return {?proto.user.SegmentSearchParams}
|
1627
1675
|
*/
|
1628
1676
|
proto.user.PaginationRequest.prototype.getSegmentSearchParams = function() {
|
1629
1677
|
return /** @type{?proto.user.SegmentSearchParams} */ (
|
1630
|
-
jspb.Message.getWrapperField(this, proto.user.SegmentSearchParams,
|
1678
|
+
jspb.Message.getWrapperField(this, proto.user.SegmentSearchParams, 5));
|
1631
1679
|
};
|
1632
1680
|
|
1633
1681
|
|
@@ -1636,7 +1684,7 @@ proto.user.PaginationRequest.prototype.getSegmentSearchParams = function() {
|
|
1636
1684
|
* @return {!proto.user.PaginationRequest} returns this
|
1637
1685
|
*/
|
1638
1686
|
proto.user.PaginationRequest.prototype.setSegmentSearchParams = function(value) {
|
1639
|
-
return jspb.Message.setWrapperField(this,
|
1687
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
1640
1688
|
};
|
1641
1689
|
|
1642
1690
|
|
@@ -1654,17 +1702,17 @@ proto.user.PaginationRequest.prototype.clearSegmentSearchParams = function() {
|
|
1654
1702
|
* @return {boolean}
|
1655
1703
|
*/
|
1656
1704
|
proto.user.PaginationRequest.prototype.hasSegmentSearchParams = function() {
|
1657
|
-
return jspb.Message.getField(this,
|
1705
|
+
return jspb.Message.getField(this, 5) != null;
|
1658
1706
|
};
|
1659
1707
|
|
1660
1708
|
|
1661
1709
|
/**
|
1662
|
-
* optional NoteSearchParams note_search_params =
|
1710
|
+
* optional NoteSearchParams note_search_params = 6;
|
1663
1711
|
* @return {?proto.user.NoteSearchParams}
|
1664
1712
|
*/
|
1665
1713
|
proto.user.PaginationRequest.prototype.getNoteSearchParams = function() {
|
1666
1714
|
return /** @type{?proto.user.NoteSearchParams} */ (
|
1667
|
-
jspb.Message.getWrapperField(this, proto.user.NoteSearchParams,
|
1715
|
+
jspb.Message.getWrapperField(this, proto.user.NoteSearchParams, 6));
|
1668
1716
|
};
|
1669
1717
|
|
1670
1718
|
|
@@ -1673,7 +1721,7 @@ proto.user.PaginationRequest.prototype.getNoteSearchParams = function() {
|
|
1673
1721
|
* @return {!proto.user.PaginationRequest} returns this
|
1674
1722
|
*/
|
1675
1723
|
proto.user.PaginationRequest.prototype.setNoteSearchParams = function(value) {
|
1676
|
-
return jspb.Message.setWrapperField(this,
|
1724
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
1677
1725
|
};
|
1678
1726
|
|
1679
1727
|
|
@@ -1691,7 +1739,7 @@ proto.user.PaginationRequest.prototype.clearNoteSearchParams = function() {
|
|
1691
1739
|
* @return {boolean}
|
1692
1740
|
*/
|
1693
1741
|
proto.user.PaginationRequest.prototype.hasNoteSearchParams = function() {
|
1694
|
-
return jspb.Message.getField(this,
|
1742
|
+
return jspb.Message.getField(this, 6) != null;
|
1695
1743
|
};
|
1696
1744
|
|
1697
1745
|
|