protobuf-platform 1.2.54 → 1.2.56

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
@@ -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;
@@ -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>}
@@ -12,6 +12,7 @@ service Cashback {
12
12
  rpc deleteSingleCashback(GetCashbackRequest) returns (CashbackStatusResponse);
13
13
  rpc readListCashbacks(PaginationRequest) returns (CashbackItemsResponse);
14
14
  rpc setCashbackConfig(CashbackConfigRequest) returns (CashbackConfigItem);
15
+ rpc updateCashbacksInBunch(ItemsBunchRequest) returns (CashbackStatusResponse);
15
16
  //User
16
17
  rpc getCashbackForUserByType(CashbackUserRequest) returns (CashbackResponse);
17
18
  rpc getCashbacksListForUser(CashbackUserRequest) returns (UserCashbackItemsResponse);
@@ -41,6 +42,10 @@ message SearchRequest {
41
42
  repeated string type = 3;
42
43
  optional int32 is_active = 4;
43
44
  }
45
+ message ItemsBunchRequest {
46
+ repeated int32 ids = 1;
47
+ optional int32 is_active = 2;
48
+ }
44
49
  //Cashback CRUD | Requests
45
50
  message CashbackItem {
46
51
  optional int32 id = 1;
@@ -114,6 +114,17 @@ function deserialize_cashback_GetFileRequest(buffer_arg) {
114
114
  return cashback_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_cashback_ItemsBunchRequest(arg) {
118
+ if (!(arg instanceof cashback_pb.ItemsBunchRequest)) {
119
+ throw new Error('Expected argument of type cashback.ItemsBunchRequest');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_cashback_ItemsBunchRequest(buffer_arg) {
125
+ return cashback_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
117
128
  function serialize_cashback_PaginationRequest(arg) {
118
129
  if (!(arg instanceof cashback_pb.PaginationRequest)) {
119
130
  throw new Error('Expected argument of type cashback.PaginationRequest');
@@ -249,6 +260,17 @@ createSingleCashback: {
249
260
  responseSerialize: serialize_cashback_CashbackConfigItem,
250
261
  responseDeserialize: deserialize_cashback_CashbackConfigItem,
251
262
  },
263
+ updateCashbacksInBunch: {
264
+ path: '/cashback.Cashback/updateCashbacksInBunch',
265
+ requestStream: false,
266
+ responseStream: false,
267
+ requestType: cashback_pb.ItemsBunchRequest,
268
+ responseType: cashback_pb.CashbackStatusResponse,
269
+ requestSerialize: serialize_cashback_ItemsBunchRequest,
270
+ requestDeserialize: deserialize_cashback_ItemsBunchRequest,
271
+ responseSerialize: serialize_cashback_CashbackStatusResponse,
272
+ responseDeserialize: deserialize_cashback_CashbackStatusResponse,
273
+ },
252
274
  // User
253
275
  getCashbackForUserByType: {
254
276
  path: '/cashback.Cashback/getCashbackForUserByType',
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.cashback.CashbackUserRequest', null, global);
34
34
  goog.exportSymbol('proto.cashback.File', null, global);
35
35
  goog.exportSymbol('proto.cashback.GetCashbackRequest', null, global);
36
36
  goog.exportSymbol('proto.cashback.GetFileRequest', null, global);
37
+ goog.exportSymbol('proto.cashback.ItemsBunchRequest', null, global);
37
38
  goog.exportSymbol('proto.cashback.PaginationRequest', null, global);
38
39
  goog.exportSymbol('proto.cashback.PingRequest', null, global);
39
40
  goog.exportSymbol('proto.cashback.PongResponse', null, global);
@@ -188,6 +189,27 @@ if (goog.DEBUG && !COMPILED) {
188
189
  */
189
190
  proto.cashback.SearchRequest.displayName = 'proto.cashback.SearchRequest';
190
191
  }
192
+ /**
193
+ * Generated by JsPbCodeGenerator.
194
+ * @param {Array=} opt_data Optional initial data array, typically from a
195
+ * server response, or constructed directly in Javascript. The array is used
196
+ * in place and becomes part of the constructed object. It is not cloned.
197
+ * If no data is provided, the constructed object will be empty, but still
198
+ * valid.
199
+ * @extends {jspb.Message}
200
+ * @constructor
201
+ */
202
+ proto.cashback.ItemsBunchRequest = function(opt_data) {
203
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cashback.ItemsBunchRequest.repeatedFields_, null);
204
+ };
205
+ goog.inherits(proto.cashback.ItemsBunchRequest, jspb.Message);
206
+ if (goog.DEBUG && !COMPILED) {
207
+ /**
208
+ * @public
209
+ * @override
210
+ */
211
+ proto.cashback.ItemsBunchRequest.displayName = 'proto.cashback.ItemsBunchRequest';
212
+ }
191
213
  /**
192
214
  * Generated by JsPbCodeGenerator.
193
215
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1965,6 +1987,212 @@ proto.cashback.SearchRequest.prototype.hasIsActive = function() {
1965
1987
 
1966
1988
 
1967
1989
 
1990
+ /**
1991
+ * List of repeated fields within this message type.
1992
+ * @private {!Array<number>}
1993
+ * @const
1994
+ */
1995
+ proto.cashback.ItemsBunchRequest.repeatedFields_ = [1];
1996
+
1997
+
1998
+
1999
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2000
+ /**
2001
+ * Creates an object representation of this proto.
2002
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2003
+ * Optional fields that are not set will be set to undefined.
2004
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2005
+ * For the list of reserved names please see:
2006
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2007
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2008
+ * JSPB instance for transitional soy proto support:
2009
+ * http://goto/soy-param-migration
2010
+ * @return {!Object}
2011
+ */
2012
+ proto.cashback.ItemsBunchRequest.prototype.toObject = function(opt_includeInstance) {
2013
+ return proto.cashback.ItemsBunchRequest.toObject(opt_includeInstance, this);
2014
+ };
2015
+
2016
+
2017
+ /**
2018
+ * Static version of the {@see toObject} method.
2019
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2020
+ * the JSPB instance for transitional soy proto support:
2021
+ * http://goto/soy-param-migration
2022
+ * @param {!proto.cashback.ItemsBunchRequest} msg The msg instance to transform.
2023
+ * @return {!Object}
2024
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2025
+ */
2026
+ proto.cashback.ItemsBunchRequest.toObject = function(includeInstance, msg) {
2027
+ var f, obj = {
2028
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2029
+ isActive: jspb.Message.getFieldWithDefault(msg, 2, 0)
2030
+ };
2031
+
2032
+ if (includeInstance) {
2033
+ obj.$jspbMessageInstance = msg;
2034
+ }
2035
+ return obj;
2036
+ };
2037
+ }
2038
+
2039
+
2040
+ /**
2041
+ * Deserializes binary data (in protobuf wire format).
2042
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2043
+ * @return {!proto.cashback.ItemsBunchRequest}
2044
+ */
2045
+ proto.cashback.ItemsBunchRequest.deserializeBinary = function(bytes) {
2046
+ var reader = new jspb.BinaryReader(bytes);
2047
+ var msg = new proto.cashback.ItemsBunchRequest;
2048
+ return proto.cashback.ItemsBunchRequest.deserializeBinaryFromReader(msg, reader);
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * Deserializes binary data (in protobuf wire format) from the
2054
+ * given reader into the given message object.
2055
+ * @param {!proto.cashback.ItemsBunchRequest} msg The message object to deserialize into.
2056
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2057
+ * @return {!proto.cashback.ItemsBunchRequest}
2058
+ */
2059
+ proto.cashback.ItemsBunchRequest.deserializeBinaryFromReader = function(msg, reader) {
2060
+ while (reader.nextField()) {
2061
+ if (reader.isEndGroup()) {
2062
+ break;
2063
+ }
2064
+ var field = reader.getFieldNumber();
2065
+ switch (field) {
2066
+ case 1:
2067
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
2068
+ for (var i = 0; i < values.length; i++) {
2069
+ msg.addIds(values[i]);
2070
+ }
2071
+ break;
2072
+ case 2:
2073
+ var value = /** @type {number} */ (reader.readInt32());
2074
+ msg.setIsActive(value);
2075
+ break;
2076
+ default:
2077
+ reader.skipField();
2078
+ break;
2079
+ }
2080
+ }
2081
+ return msg;
2082
+ };
2083
+
2084
+
2085
+ /**
2086
+ * Serializes the message to binary data (in protobuf wire format).
2087
+ * @return {!Uint8Array}
2088
+ */
2089
+ proto.cashback.ItemsBunchRequest.prototype.serializeBinary = function() {
2090
+ var writer = new jspb.BinaryWriter();
2091
+ proto.cashback.ItemsBunchRequest.serializeBinaryToWriter(this, writer);
2092
+ return writer.getResultBuffer();
2093
+ };
2094
+
2095
+
2096
+ /**
2097
+ * Serializes the given message to binary data (in protobuf wire
2098
+ * format), writing to the given BinaryWriter.
2099
+ * @param {!proto.cashback.ItemsBunchRequest} message
2100
+ * @param {!jspb.BinaryWriter} writer
2101
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2102
+ */
2103
+ proto.cashback.ItemsBunchRequest.serializeBinaryToWriter = function(message, writer) {
2104
+ var f = undefined;
2105
+ f = message.getIdsList();
2106
+ if (f.length > 0) {
2107
+ writer.writePackedInt32(
2108
+ 1,
2109
+ f
2110
+ );
2111
+ }
2112
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2113
+ if (f != null) {
2114
+ writer.writeInt32(
2115
+ 2,
2116
+ f
2117
+ );
2118
+ }
2119
+ };
2120
+
2121
+
2122
+ /**
2123
+ * repeated int32 ids = 1;
2124
+ * @return {!Array<number>}
2125
+ */
2126
+ proto.cashback.ItemsBunchRequest.prototype.getIdsList = function() {
2127
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
2128
+ };
2129
+
2130
+
2131
+ /**
2132
+ * @param {!Array<number>} value
2133
+ * @return {!proto.cashback.ItemsBunchRequest} returns this
2134
+ */
2135
+ proto.cashback.ItemsBunchRequest.prototype.setIdsList = function(value) {
2136
+ return jspb.Message.setField(this, 1, value || []);
2137
+ };
2138
+
2139
+
2140
+ /**
2141
+ * @param {number} value
2142
+ * @param {number=} opt_index
2143
+ * @return {!proto.cashback.ItemsBunchRequest} returns this
2144
+ */
2145
+ proto.cashback.ItemsBunchRequest.prototype.addIds = function(value, opt_index) {
2146
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2147
+ };
2148
+
2149
+
2150
+ /**
2151
+ * Clears the list making it empty but non-null.
2152
+ * @return {!proto.cashback.ItemsBunchRequest} returns this
2153
+ */
2154
+ proto.cashback.ItemsBunchRequest.prototype.clearIdsList = function() {
2155
+ return this.setIdsList([]);
2156
+ };
2157
+
2158
+
2159
+ /**
2160
+ * optional int32 is_active = 2;
2161
+ * @return {number}
2162
+ */
2163
+ proto.cashback.ItemsBunchRequest.prototype.getIsActive = function() {
2164
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2165
+ };
2166
+
2167
+
2168
+ /**
2169
+ * @param {number} value
2170
+ * @return {!proto.cashback.ItemsBunchRequest} returns this
2171
+ */
2172
+ proto.cashback.ItemsBunchRequest.prototype.setIsActive = function(value) {
2173
+ return jspb.Message.setField(this, 2, value);
2174
+ };
2175
+
2176
+
2177
+ /**
2178
+ * Clears the field making it undefined.
2179
+ * @return {!proto.cashback.ItemsBunchRequest} returns this
2180
+ */
2181
+ proto.cashback.ItemsBunchRequest.prototype.clearIsActive = function() {
2182
+ return jspb.Message.setField(this, 2, undefined);
2183
+ };
2184
+
2185
+
2186
+ /**
2187
+ * Returns whether this field is set.
2188
+ * @return {boolean}
2189
+ */
2190
+ proto.cashback.ItemsBunchRequest.prototype.hasIsActive = function() {
2191
+ return jspb.Message.getField(this, 2) != null;
2192
+ };
2193
+
2194
+
2195
+
1968
2196
  /**
1969
2197
  * List of repeated fields within this message type.
1970
2198
  * @private {!Array<number>}
package/game/game.proto CHANGED
@@ -88,6 +88,7 @@ service Game {
88
88
  rpc fetchGamesFromWagerList(PaginationRequest) returns (GameItemsResponse);
89
89
  rpc notProcessedGamesInWagerList(PaginationRequest) returns (GameItemsResponse);
90
90
  rpc getPoorWagerLists(WagerSearchRequest) returns (WagerListItemsResponse);
91
+ rpc updateWagerListsInBunch(ItemsBunchRequest) returns (GameStatusResponse);
91
92
  //CashBack lists
92
93
  rpc readSingleCashBackList(GetCashBackListRequest) returns (CashBackListResponse);
93
94
  rpc createSingleCashBackList(CashBackListRequest) returns (CashBackListResponse);
@@ -97,6 +98,7 @@ service Game {
97
98
  rpc addGamesIntoCashBackList(CashBackListGamesRequest) returns (GameStatusResponse);
98
99
  rpc fetchGamesFromCashBackList(PaginationRequest) returns (GameItemsResponse);
99
100
  rpc notProcessedGamesInCashBackList(PaginationRequest) returns (GameItemsResponse);
101
+ rpc updateCashBackListInBunch(ItemsBunchRequest) returns (GameStatusResponse);
100
102
  //Dashboard
101
103
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
102
104
  //SEO
@@ -1777,6 +1777,17 @@ readSingleWagerList: {
1777
1777
  responseSerialize: serialize_game_WagerListItemsResponse,
1778
1778
  responseDeserialize: deserialize_game_WagerListItemsResponse,
1779
1779
  },
1780
+ updateWagerListsInBunch: {
1781
+ path: '/game.Game/updateWagerListsInBunch',
1782
+ requestStream: false,
1783
+ responseStream: false,
1784
+ requestType: game_pb.ItemsBunchRequest,
1785
+ responseType: game_pb.GameStatusResponse,
1786
+ requestSerialize: serialize_game_ItemsBunchRequest,
1787
+ requestDeserialize: deserialize_game_ItemsBunchRequest,
1788
+ responseSerialize: serialize_game_GameStatusResponse,
1789
+ responseDeserialize: deserialize_game_GameStatusResponse,
1790
+ },
1780
1791
  // CashBack lists
1781
1792
  readSingleCashBackList: {
1782
1793
  path: '/game.Game/readSingleCashBackList',
@@ -1866,6 +1877,17 @@ readSingleCashBackList: {
1866
1877
  responseSerialize: serialize_game_GameItemsResponse,
1867
1878
  responseDeserialize: deserialize_game_GameItemsResponse,
1868
1879
  },
1880
+ updateCashBackListInBunch: {
1881
+ path: '/game.Game/updateCashBackListInBunch',
1882
+ requestStream: false,
1883
+ responseStream: false,
1884
+ requestType: game_pb.ItemsBunchRequest,
1885
+ responseType: game_pb.GameStatusResponse,
1886
+ requestSerialize: serialize_game_ItemsBunchRequest,
1887
+ requestDeserialize: deserialize_game_ItemsBunchRequest,
1888
+ responseSerialize: serialize_game_GameStatusResponse,
1889
+ responseDeserialize: deserialize_game_GameStatusResponse,
1890
+ },
1869
1891
  // Dashboard
1870
1892
  getDashboardInfo: {
1871
1893
  path: '/game.Game/getDashboardInfo',
@@ -13,6 +13,7 @@ service Loyalty {
13
13
  rpc readListLevels(PaginationRequest) returns (LevelItemsResponse);
14
14
  rpc setLoyaltyLevelTranslation(LevelTranslationRequest) returns (LevelStatusResponse);
15
15
  rpc getLoyaltyLevelTranslation(GetLevelTranslationRequest) returns (LevelTranslationResponse);
16
+ rpc updateLevelsInBunch(ItemsBunchRequest) returns (LevelStatusResponse);
16
17
  //Loyalty Points
17
18
  rpc createSinglePoint(PointRequest) returns (PointResponse);
18
19
  rpc readSinglePoint(GetPointRequest) returns (PointResponse);
@@ -44,6 +45,10 @@ message LoyaltySearchRequest {
44
45
  optional int32 number_of_deposit = 8;
45
46
  optional int32 number_of_step = 9;
46
47
  }
48
+ message ItemsBunchRequest {
49
+ repeated int32 ids = 1;
50
+ optional int32 is_active = 2;
51
+ }
47
52
  //Media
48
53
  message File { bytes media = 1; }
49
54
  message GetFileRequest { string file_name = 1; string instance_type = 2; }