protobuf-platform 1.2.54 → 1.2.55
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 +5 -0
- package/bonus/bonus_grpc_pb.js +22 -0
- package/bonus/bonus_pb.js +228 -0
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
|
@@ -16,6 +16,7 @@ service Bonus {
|
|
|
16
16
|
rpc setBonusBetRanges(BonusBetRangesRequest) returns (BonusStatusResponse);
|
|
17
17
|
rpc setBonusTranslation(BonusTranslationRequest) returns (BonusStatusResponse);
|
|
18
18
|
rpc getBonusTranslation(GetBonusTranslationRequest) returns (BonusTranslationResponse);
|
|
19
|
+
rpc updateBonusesInBunch(ItemsBunchRequest) returns (BonusStatusResponse);
|
|
19
20
|
//Users
|
|
20
21
|
rpc claimUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
21
22
|
rpc cancelUserBonus(GetUserBonusRequest) returns (BonusStatusResponse);
|
|
@@ -43,6 +44,10 @@ message PaginationRequest {
|
|
|
43
44
|
optional GetUserBonusRequest user_bonus_params = 4;
|
|
44
45
|
optional SearchBonusRequest search_bonus_params = 5;
|
|
45
46
|
}
|
|
47
|
+
message ItemsBunchRequest {
|
|
48
|
+
repeated int32 ids = 1;
|
|
49
|
+
optional int32 status_id = 2;
|
|
50
|
+
}
|
|
46
51
|
//Bonus search
|
|
47
52
|
message SearchBonusRequest {
|
|
48
53
|
optional string title = 1;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -202,6 +202,17 @@ function deserialize_bonus_GetUserBonusRequest(buffer_arg) {
|
|
|
202
202
|
return bonus_pb.GetUserBonusRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
function serialize_bonus_ItemsBunchRequest(arg) {
|
|
206
|
+
if (!(arg instanceof bonus_pb.ItemsBunchRequest)) {
|
|
207
|
+
throw new Error('Expected argument of type bonus.ItemsBunchRequest');
|
|
208
|
+
}
|
|
209
|
+
return Buffer.from(arg.serializeBinary());
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function deserialize_bonus_ItemsBunchRequest(buffer_arg) {
|
|
213
|
+
return bonus_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
214
|
+
}
|
|
215
|
+
|
|
205
216
|
function serialize_bonus_PaginationRequest(arg) {
|
|
206
217
|
if (!(arg instanceof bonus_pb.PaginationRequest)) {
|
|
207
218
|
throw new Error('Expected argument of type bonus.PaginationRequest');
|
|
@@ -392,6 +403,17 @@ createSingleBonus: {
|
|
|
392
403
|
responseSerialize: serialize_bonus_BonusTranslationResponse,
|
|
393
404
|
responseDeserialize: deserialize_bonus_BonusTranslationResponse,
|
|
394
405
|
},
|
|
406
|
+
updateBonusesInBunch: {
|
|
407
|
+
path: '/bonus.Bonus/updateBonusesInBunch',
|
|
408
|
+
requestStream: false,
|
|
409
|
+
responseStream: false,
|
|
410
|
+
requestType: bonus_pb.ItemsBunchRequest,
|
|
411
|
+
responseType: bonus_pb.BonusStatusResponse,
|
|
412
|
+
requestSerialize: serialize_bonus_ItemsBunchRequest,
|
|
413
|
+
requestDeserialize: deserialize_bonus_ItemsBunchRequest,
|
|
414
|
+
responseSerialize: serialize_bonus_BonusStatusResponse,
|
|
415
|
+
responseDeserialize: deserialize_bonus_BonusStatusResponse,
|
|
416
|
+
},
|
|
395
417
|
// Users
|
|
396
418
|
claimUserBonus: {
|
|
397
419
|
path: '/bonus.Bonus/claimUserBonus',
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -49,6 +49,7 @@ goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
|
|
|
49
49
|
goog.exportSymbol('proto.bonus.GetBonusTranslationRequest', null, global);
|
|
50
50
|
goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
|
|
51
51
|
goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
|
|
52
|
+
goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
|
|
52
53
|
goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
|
|
53
54
|
goog.exportSymbol('proto.bonus.PingRequest', null, global);
|
|
54
55
|
goog.exportSymbol('proto.bonus.PongResponse', null, global);
|
|
@@ -160,6 +161,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
160
161
|
*/
|
|
161
162
|
proto.bonus.PaginationRequest.displayName = 'proto.bonus.PaginationRequest';
|
|
162
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Generated by JsPbCodeGenerator.
|
|
166
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
167
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
168
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
169
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
170
|
+
* valid.
|
|
171
|
+
* @extends {jspb.Message}
|
|
172
|
+
* @constructor
|
|
173
|
+
*/
|
|
174
|
+
proto.bonus.ItemsBunchRequest = function(opt_data) {
|
|
175
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.ItemsBunchRequest.repeatedFields_, null);
|
|
176
|
+
};
|
|
177
|
+
goog.inherits(proto.bonus.ItemsBunchRequest, jspb.Message);
|
|
178
|
+
if (goog.DEBUG && !COMPILED) {
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
* @override
|
|
182
|
+
*/
|
|
183
|
+
proto.bonus.ItemsBunchRequest.displayName = 'proto.bonus.ItemsBunchRequest';
|
|
184
|
+
}
|
|
163
185
|
/**
|
|
164
186
|
* Generated by JsPbCodeGenerator.
|
|
165
187
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1633,6 +1655,212 @@ proto.bonus.PaginationRequest.prototype.hasSearchBonusParams = function() {
|
|
|
1633
1655
|
|
|
1634
1656
|
|
|
1635
1657
|
|
|
1658
|
+
/**
|
|
1659
|
+
* List of repeated fields within this message type.
|
|
1660
|
+
* @private {!Array<number>}
|
|
1661
|
+
* @const
|
|
1662
|
+
*/
|
|
1663
|
+
proto.bonus.ItemsBunchRequest.repeatedFields_ = [1];
|
|
1664
|
+
|
|
1665
|
+
|
|
1666
|
+
|
|
1667
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1668
|
+
/**
|
|
1669
|
+
* Creates an object representation of this proto.
|
|
1670
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1671
|
+
* Optional fields that are not set will be set to undefined.
|
|
1672
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1673
|
+
* For the list of reserved names please see:
|
|
1674
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1675
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1676
|
+
* JSPB instance for transitional soy proto support:
|
|
1677
|
+
* http://goto/soy-param-migration
|
|
1678
|
+
* @return {!Object}
|
|
1679
|
+
*/
|
|
1680
|
+
proto.bonus.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1681
|
+
return proto.bonus.ItemsBunchRequest.toObject(opt_includeInstance, this);
|
|
1682
|
+
};
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
/**
|
|
1686
|
+
* Static version of the {@see toObject} method.
|
|
1687
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1688
|
+
* the JSPB instance for transitional soy proto support:
|
|
1689
|
+
* http://goto/soy-param-migration
|
|
1690
|
+
* @param {!proto.bonus.ItemsBunchRequest} msg The msg instance to transform.
|
|
1691
|
+
* @return {!Object}
|
|
1692
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1693
|
+
*/
|
|
1694
|
+
proto.bonus.ItemsBunchRequest.toObject = function(includeInstance, msg) {
|
|
1695
|
+
var f, obj = {
|
|
1696
|
+
idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
1697
|
+
statusId: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1700
|
+
if (includeInstance) {
|
|
1701
|
+
obj.$jspbMessageInstance = msg;
|
|
1702
|
+
}
|
|
1703
|
+
return obj;
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1710
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1711
|
+
* @return {!proto.bonus.ItemsBunchRequest}
|
|
1712
|
+
*/
|
|
1713
|
+
proto.bonus.ItemsBunchRequest.deserializeBinary = function(bytes) {
|
|
1714
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1715
|
+
var msg = new proto.bonus.ItemsBunchRequest;
|
|
1716
|
+
return proto.bonus.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
|
|
1717
|
+
};
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
/**
|
|
1721
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1722
|
+
* given reader into the given message object.
|
|
1723
|
+
* @param {!proto.bonus.ItemsBunchRequest} msg The message object to deserialize into.
|
|
1724
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1725
|
+
* @return {!proto.bonus.ItemsBunchRequest}
|
|
1726
|
+
*/
|
|
1727
|
+
proto.bonus.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1728
|
+
while (reader.nextField()) {
|
|
1729
|
+
if (reader.isEndGroup()) {
|
|
1730
|
+
break;
|
|
1731
|
+
}
|
|
1732
|
+
var field = reader.getFieldNumber();
|
|
1733
|
+
switch (field) {
|
|
1734
|
+
case 1:
|
|
1735
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
|
|
1736
|
+
for (var i = 0; i < values.length; i++) {
|
|
1737
|
+
msg.addIds(values[i]);
|
|
1738
|
+
}
|
|
1739
|
+
break;
|
|
1740
|
+
case 2:
|
|
1741
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
1742
|
+
msg.setStatusId(value);
|
|
1743
|
+
break;
|
|
1744
|
+
default:
|
|
1745
|
+
reader.skipField();
|
|
1746
|
+
break;
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
return msg;
|
|
1750
|
+
};
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
/**
|
|
1754
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1755
|
+
* @return {!Uint8Array}
|
|
1756
|
+
*/
|
|
1757
|
+
proto.bonus.ItemsBunchRequest.prototype.serializeBinary = function() {
|
|
1758
|
+
var writer = new jspb.BinaryWriter();
|
|
1759
|
+
proto.bonus.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
|
|
1760
|
+
return writer.getResultBuffer();
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
|
|
1764
|
+
/**
|
|
1765
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
1766
|
+
* format), writing to the given BinaryWriter.
|
|
1767
|
+
* @param {!proto.bonus.ItemsBunchRequest} message
|
|
1768
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1769
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1770
|
+
*/
|
|
1771
|
+
proto.bonus.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1772
|
+
var f = undefined;
|
|
1773
|
+
f = message.getIdsList();
|
|
1774
|
+
if (f.length > 0) {
|
|
1775
|
+
writer.writePackedInt32(
|
|
1776
|
+
1,
|
|
1777
|
+
f
|
|
1778
|
+
);
|
|
1779
|
+
}
|
|
1780
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
1781
|
+
if (f != null) {
|
|
1782
|
+
writer.writeInt32(
|
|
1783
|
+
2,
|
|
1784
|
+
f
|
|
1785
|
+
);
|
|
1786
|
+
}
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* repeated int32 ids = 1;
|
|
1792
|
+
* @return {!Array<number>}
|
|
1793
|
+
*/
|
|
1794
|
+
proto.bonus.ItemsBunchRequest.prototype.getIdsList = function() {
|
|
1795
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
1796
|
+
};
|
|
1797
|
+
|
|
1798
|
+
|
|
1799
|
+
/**
|
|
1800
|
+
* @param {!Array<number>} value
|
|
1801
|
+
* @return {!proto.bonus.ItemsBunchRequest} returns this
|
|
1802
|
+
*/
|
|
1803
|
+
proto.bonus.ItemsBunchRequest.prototype.setIdsList = function(value) {
|
|
1804
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
1805
|
+
};
|
|
1806
|
+
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* @param {number} value
|
|
1810
|
+
* @param {number=} opt_index
|
|
1811
|
+
* @return {!proto.bonus.ItemsBunchRequest} returns this
|
|
1812
|
+
*/
|
|
1813
|
+
proto.bonus.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
|
|
1814
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
1815
|
+
};
|
|
1816
|
+
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Clears the list making it empty but non-null.
|
|
1820
|
+
* @return {!proto.bonus.ItemsBunchRequest} returns this
|
|
1821
|
+
*/
|
|
1822
|
+
proto.bonus.ItemsBunchRequest.prototype.clearIdsList = function() {
|
|
1823
|
+
return this.setIdsList([]);
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1826
|
+
|
|
1827
|
+
/**
|
|
1828
|
+
* optional int32 status_id = 2;
|
|
1829
|
+
* @return {number}
|
|
1830
|
+
*/
|
|
1831
|
+
proto.bonus.ItemsBunchRequest.prototype.getStatusId = function() {
|
|
1832
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
1833
|
+
};
|
|
1834
|
+
|
|
1835
|
+
|
|
1836
|
+
/**
|
|
1837
|
+
* @param {number} value
|
|
1838
|
+
* @return {!proto.bonus.ItemsBunchRequest} returns this
|
|
1839
|
+
*/
|
|
1840
|
+
proto.bonus.ItemsBunchRequest.prototype.setStatusId = function(value) {
|
|
1841
|
+
return jspb.Message.setField(this, 2, value);
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1844
|
+
|
|
1845
|
+
/**
|
|
1846
|
+
* Clears the field making it undefined.
|
|
1847
|
+
* @return {!proto.bonus.ItemsBunchRequest} returns this
|
|
1848
|
+
*/
|
|
1849
|
+
proto.bonus.ItemsBunchRequest.prototype.clearStatusId = function() {
|
|
1850
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
1851
|
+
};
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
/**
|
|
1855
|
+
* Returns whether this field is set.
|
|
1856
|
+
* @return {boolean}
|
|
1857
|
+
*/
|
|
1858
|
+
proto.bonus.ItemsBunchRequest.prototype.hasStatusId = function() {
|
|
1859
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
|
|
1636
1864
|
/**
|
|
1637
1865
|
* List of repeated fields within this message type.
|
|
1638
1866
|
* @private {!Array<number>}
|