protobuf-platform 1.1.26 → 1.1.28

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
@@ -167,6 +167,7 @@ message GetUserBonusRequest {
167
167
  optional string locale = 7;
168
168
  optional string user_public_id = 8;
169
169
  optional string user_name = 9;
170
+ optional string status = 10;
170
171
  }
171
172
  message UserBonusItemsResponse {
172
173
  repeated UserBonusItem items = 1;
package/bonus/bonus_pb.js CHANGED
@@ -7143,7 +7143,8 @@ proto.bonus.GetUserBonusRequest.toObject = function(includeInstance, msg) {
7143
7143
  country: jspb.Message.getFieldWithDefault(msg, 6, ""),
7144
7144
  locale: jspb.Message.getFieldWithDefault(msg, 7, ""),
7145
7145
  userPublicId: jspb.Message.getFieldWithDefault(msg, 8, ""),
7146
- userName: jspb.Message.getFieldWithDefault(msg, 9, "")
7146
+ userName: jspb.Message.getFieldWithDefault(msg, 9, ""),
7147
+ status: jspb.Message.getFieldWithDefault(msg, 10, "")
7147
7148
  };
7148
7149
 
7149
7150
  if (includeInstance) {
@@ -7216,6 +7217,10 @@ proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader = function(msg, read
7216
7217
  var value = /** @type {string} */ (reader.readString());
7217
7218
  msg.setUserName(value);
7218
7219
  break;
7220
+ case 10:
7221
+ var value = /** @type {string} */ (reader.readString());
7222
+ msg.setStatus(value);
7223
+ break;
7219
7224
  default:
7220
7225
  reader.skipField();
7221
7226
  break;
@@ -7308,6 +7313,13 @@ proto.bonus.GetUserBonusRequest.serializeBinaryToWriter = function(message, writ
7308
7313
  f
7309
7314
  );
7310
7315
  }
7316
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
7317
+ if (f != null) {
7318
+ writer.writeString(
7319
+ 10,
7320
+ f
7321
+ );
7322
+ }
7311
7323
  };
7312
7324
 
7313
7325
 
@@ -7617,6 +7629,42 @@ proto.bonus.GetUserBonusRequest.prototype.hasUserName = function() {
7617
7629
  };
7618
7630
 
7619
7631
 
7632
+ /**
7633
+ * optional string status = 10;
7634
+ * @return {string}
7635
+ */
7636
+ proto.bonus.GetUserBonusRequest.prototype.getStatus = function() {
7637
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
7638
+ };
7639
+
7640
+
7641
+ /**
7642
+ * @param {string} value
7643
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7644
+ */
7645
+ proto.bonus.GetUserBonusRequest.prototype.setStatus = function(value) {
7646
+ return jspb.Message.setField(this, 10, value);
7647
+ };
7648
+
7649
+
7650
+ /**
7651
+ * Clears the field making it undefined.
7652
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7653
+ */
7654
+ proto.bonus.GetUserBonusRequest.prototype.clearStatus = function() {
7655
+ return jspb.Message.setField(this, 10, undefined);
7656
+ };
7657
+
7658
+
7659
+ /**
7660
+ * Returns whether this field is set.
7661
+ * @return {boolean}
7662
+ */
7663
+ proto.bonus.GetUserBonusRequest.prototype.hasStatus = function() {
7664
+ return jspb.Message.getField(this, 10) != null;
7665
+ };
7666
+
7667
+
7620
7668
 
7621
7669
  /**
7622
7670
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.26",
3
+ "version": "1.1.28",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,7 +33,6 @@ message PaginationRequest {
33
33
  int32 limit = 1;
34
34
  int32 offset = 2;
35
35
  optional UserSearchRequest user_search_params = 3;
36
- optional BonusSearchRequest bonus_search_params = 4;
37
36
  }
38
37
  message UserSearchRequest {
39
38
  optional int32 user_id = 1;
@@ -41,12 +40,6 @@ message UserSearchRequest {
41
40
  optional string currency = 3;
42
41
  optional string locale = 4;
43
42
  }
44
- message BonusSearchRequest {
45
- optional int32 bonus_id = 1;
46
- optional string bonus_type = 2;
47
- optional string currency = 3;
48
- optional string locale = 4;
49
- }
50
43
  //Tournament CRUD | Requests
51
44
  message TournamentItem {
52
45
  optional int32 id = 1;
@@ -22,7 +22,6 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.tournament.ActivationRuleItem', null, global);
25
- goog.exportSymbol('proto.tournament.BonusSearchRequest', null, global);
26
25
  goog.exportSymbol('proto.tournament.ContentItem', null, global);
27
26
  goog.exportSymbol('proto.tournament.File', null, global);
28
27
  goog.exportSymbol('proto.tournament.GetFileRequest', null, global);
@@ -176,27 +175,6 @@ if (goog.DEBUG && !COMPILED) {
176
175
  */
177
176
  proto.tournament.UserSearchRequest.displayName = 'proto.tournament.UserSearchRequest';
178
177
  }
179
- /**
180
- * Generated by JsPbCodeGenerator.
181
- * @param {Array=} opt_data Optional initial data array, typically from a
182
- * server response, or constructed directly in Javascript. The array is used
183
- * in place and becomes part of the constructed object. It is not cloned.
184
- * If no data is provided, the constructed object will be empty, but still
185
- * valid.
186
- * @extends {jspb.Message}
187
- * @constructor
188
- */
189
- proto.tournament.BonusSearchRequest = function(opt_data) {
190
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
191
- };
192
- goog.inherits(proto.tournament.BonusSearchRequest, jspb.Message);
193
- if (goog.DEBUG && !COMPILED) {
194
- /**
195
- * @public
196
- * @override
197
- */
198
- proto.tournament.BonusSearchRequest.displayName = 'proto.tournament.BonusSearchRequest';
199
- }
200
178
  /**
201
179
  * Generated by JsPbCodeGenerator.
202
180
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1342,8 +1320,7 @@ proto.tournament.PaginationRequest.toObject = function(includeInstance, msg) {
1342
1320
  var f, obj = {
1343
1321
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1344
1322
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1345
- userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f),
1346
- bonusSearchParams: (f = msg.getBonusSearchParams()) && proto.tournament.BonusSearchRequest.toObject(includeInstance, f)
1323
+ userSearchParams: (f = msg.getUserSearchParams()) && proto.tournament.UserSearchRequest.toObject(includeInstance, f)
1347
1324
  };
1348
1325
 
1349
1326
  if (includeInstance) {
@@ -1393,11 +1370,6 @@ proto.tournament.PaginationRequest.deserializeBinaryFromReader = function(msg, r
1393
1370
  reader.readMessage(value,proto.tournament.UserSearchRequest.deserializeBinaryFromReader);
1394
1371
  msg.setUserSearchParams(value);
1395
1372
  break;
1396
- case 4:
1397
- var value = new proto.tournament.BonusSearchRequest;
1398
- reader.readMessage(value,proto.tournament.BonusSearchRequest.deserializeBinaryFromReader);
1399
- msg.setBonusSearchParams(value);
1400
- break;
1401
1373
  default:
1402
1374
  reader.skipField();
1403
1375
  break;
@@ -1449,14 +1421,6 @@ proto.tournament.PaginationRequest.serializeBinaryToWriter = function(message, w
1449
1421
  proto.tournament.UserSearchRequest.serializeBinaryToWriter
1450
1422
  );
1451
1423
  }
1452
- f = message.getBonusSearchParams();
1453
- if (f != null) {
1454
- writer.writeMessage(
1455
- 4,
1456
- f,
1457
- proto.tournament.BonusSearchRequest.serializeBinaryToWriter
1458
- );
1459
- }
1460
1424
  };
1461
1425
 
1462
1426
 
@@ -1533,43 +1497,6 @@ proto.tournament.PaginationRequest.prototype.hasUserSearchParams = function() {
1533
1497
  };
1534
1498
 
1535
1499
 
1536
- /**
1537
- * optional BonusSearchRequest bonus_search_params = 4;
1538
- * @return {?proto.tournament.BonusSearchRequest}
1539
- */
1540
- proto.tournament.PaginationRequest.prototype.getBonusSearchParams = function() {
1541
- return /** @type{?proto.tournament.BonusSearchRequest} */ (
1542
- jspb.Message.getWrapperField(this, proto.tournament.BonusSearchRequest, 4));
1543
- };
1544
-
1545
-
1546
- /**
1547
- * @param {?proto.tournament.BonusSearchRequest|undefined} value
1548
- * @return {!proto.tournament.PaginationRequest} returns this
1549
- */
1550
- proto.tournament.PaginationRequest.prototype.setBonusSearchParams = function(value) {
1551
- return jspb.Message.setWrapperField(this, 4, value);
1552
- };
1553
-
1554
-
1555
- /**
1556
- * Clears the message field making it undefined.
1557
- * @return {!proto.tournament.PaginationRequest} returns this
1558
- */
1559
- proto.tournament.PaginationRequest.prototype.clearBonusSearchParams = function() {
1560
- return this.setBonusSearchParams(undefined);
1561
- };
1562
-
1563
-
1564
- /**
1565
- * Returns whether this field is set.
1566
- * @return {boolean}
1567
- */
1568
- proto.tournament.PaginationRequest.prototype.hasBonusSearchParams = function() {
1569
- return jspb.Message.getField(this, 4) != null;
1570
- };
1571
-
1572
-
1573
1500
 
1574
1501
 
1575
1502
 
@@ -1863,298 +1790,6 @@ proto.tournament.UserSearchRequest.prototype.hasLocale = function() {
1863
1790
 
1864
1791
 
1865
1792
 
1866
-
1867
-
1868
- if (jspb.Message.GENERATE_TO_OBJECT) {
1869
- /**
1870
- * Creates an object representation of this proto.
1871
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
1872
- * Optional fields that are not set will be set to undefined.
1873
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1874
- * For the list of reserved names please see:
1875
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1876
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1877
- * JSPB instance for transitional soy proto support:
1878
- * http://goto/soy-param-migration
1879
- * @return {!Object}
1880
- */
1881
- proto.tournament.BonusSearchRequest.prototype.toObject = function(opt_includeInstance) {
1882
- return proto.tournament.BonusSearchRequest.toObject(opt_includeInstance, this);
1883
- };
1884
-
1885
-
1886
- /**
1887
- * Static version of the {@see toObject} method.
1888
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1889
- * the JSPB instance for transitional soy proto support:
1890
- * http://goto/soy-param-migration
1891
- * @param {!proto.tournament.BonusSearchRequest} msg The msg instance to transform.
1892
- * @return {!Object}
1893
- * @suppress {unusedLocalVariables} f is only used for nested messages
1894
- */
1895
- proto.tournament.BonusSearchRequest.toObject = function(includeInstance, msg) {
1896
- var f, obj = {
1897
- bonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
1898
- bonusType: jspb.Message.getFieldWithDefault(msg, 2, ""),
1899
- currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
1900
- locale: jspb.Message.getFieldWithDefault(msg, 4, "")
1901
- };
1902
-
1903
- if (includeInstance) {
1904
- obj.$jspbMessageInstance = msg;
1905
- }
1906
- return obj;
1907
- };
1908
- }
1909
-
1910
-
1911
- /**
1912
- * Deserializes binary data (in protobuf wire format).
1913
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
1914
- * @return {!proto.tournament.BonusSearchRequest}
1915
- */
1916
- proto.tournament.BonusSearchRequest.deserializeBinary = function(bytes) {
1917
- var reader = new jspb.BinaryReader(bytes);
1918
- var msg = new proto.tournament.BonusSearchRequest;
1919
- return proto.tournament.BonusSearchRequest.deserializeBinaryFromReader(msg, reader);
1920
- };
1921
-
1922
-
1923
- /**
1924
- * Deserializes binary data (in protobuf wire format) from the
1925
- * given reader into the given message object.
1926
- * @param {!proto.tournament.BonusSearchRequest} msg The message object to deserialize into.
1927
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1928
- * @return {!proto.tournament.BonusSearchRequest}
1929
- */
1930
- proto.tournament.BonusSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1931
- while (reader.nextField()) {
1932
- if (reader.isEndGroup()) {
1933
- break;
1934
- }
1935
- var field = reader.getFieldNumber();
1936
- switch (field) {
1937
- case 1:
1938
- var value = /** @type {number} */ (reader.readInt32());
1939
- msg.setBonusId(value);
1940
- break;
1941
- case 2:
1942
- var value = /** @type {string} */ (reader.readString());
1943
- msg.setBonusType(value);
1944
- break;
1945
- case 3:
1946
- var value = /** @type {string} */ (reader.readString());
1947
- msg.setCurrency(value);
1948
- break;
1949
- case 4:
1950
- var value = /** @type {string} */ (reader.readString());
1951
- msg.setLocale(value);
1952
- break;
1953
- default:
1954
- reader.skipField();
1955
- break;
1956
- }
1957
- }
1958
- return msg;
1959
- };
1960
-
1961
-
1962
- /**
1963
- * Serializes the message to binary data (in protobuf wire format).
1964
- * @return {!Uint8Array}
1965
- */
1966
- proto.tournament.BonusSearchRequest.prototype.serializeBinary = function() {
1967
- var writer = new jspb.BinaryWriter();
1968
- proto.tournament.BonusSearchRequest.serializeBinaryToWriter(this, writer);
1969
- return writer.getResultBuffer();
1970
- };
1971
-
1972
-
1973
- /**
1974
- * Serializes the given message to binary data (in protobuf wire
1975
- * format), writing to the given BinaryWriter.
1976
- * @param {!proto.tournament.BonusSearchRequest} message
1977
- * @param {!jspb.BinaryWriter} writer
1978
- * @suppress {unusedLocalVariables} f is only used for nested messages
1979
- */
1980
- proto.tournament.BonusSearchRequest.serializeBinaryToWriter = function(message, writer) {
1981
- var f = undefined;
1982
- f = /** @type {number} */ (jspb.Message.getField(message, 1));
1983
- if (f != null) {
1984
- writer.writeInt32(
1985
- 1,
1986
- f
1987
- );
1988
- }
1989
- f = /** @type {string} */ (jspb.Message.getField(message, 2));
1990
- if (f != null) {
1991
- writer.writeString(
1992
- 2,
1993
- f
1994
- );
1995
- }
1996
- f = /** @type {string} */ (jspb.Message.getField(message, 3));
1997
- if (f != null) {
1998
- writer.writeString(
1999
- 3,
2000
- f
2001
- );
2002
- }
2003
- f = /** @type {string} */ (jspb.Message.getField(message, 4));
2004
- if (f != null) {
2005
- writer.writeString(
2006
- 4,
2007
- f
2008
- );
2009
- }
2010
- };
2011
-
2012
-
2013
- /**
2014
- * optional int32 bonus_id = 1;
2015
- * @return {number}
2016
- */
2017
- proto.tournament.BonusSearchRequest.prototype.getBonusId = function() {
2018
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2019
- };
2020
-
2021
-
2022
- /**
2023
- * @param {number} value
2024
- * @return {!proto.tournament.BonusSearchRequest} returns this
2025
- */
2026
- proto.tournament.BonusSearchRequest.prototype.setBonusId = function(value) {
2027
- return jspb.Message.setField(this, 1, value);
2028
- };
2029
-
2030
-
2031
- /**
2032
- * Clears the field making it undefined.
2033
- * @return {!proto.tournament.BonusSearchRequest} returns this
2034
- */
2035
- proto.tournament.BonusSearchRequest.prototype.clearBonusId = function() {
2036
- return jspb.Message.setField(this, 1, undefined);
2037
- };
2038
-
2039
-
2040
- /**
2041
- * Returns whether this field is set.
2042
- * @return {boolean}
2043
- */
2044
- proto.tournament.BonusSearchRequest.prototype.hasBonusId = function() {
2045
- return jspb.Message.getField(this, 1) != null;
2046
- };
2047
-
2048
-
2049
- /**
2050
- * optional string bonus_type = 2;
2051
- * @return {string}
2052
- */
2053
- proto.tournament.BonusSearchRequest.prototype.getBonusType = function() {
2054
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2055
- };
2056
-
2057
-
2058
- /**
2059
- * @param {string} value
2060
- * @return {!proto.tournament.BonusSearchRequest} returns this
2061
- */
2062
- proto.tournament.BonusSearchRequest.prototype.setBonusType = function(value) {
2063
- return jspb.Message.setField(this, 2, value);
2064
- };
2065
-
2066
-
2067
- /**
2068
- * Clears the field making it undefined.
2069
- * @return {!proto.tournament.BonusSearchRequest} returns this
2070
- */
2071
- proto.tournament.BonusSearchRequest.prototype.clearBonusType = function() {
2072
- return jspb.Message.setField(this, 2, undefined);
2073
- };
2074
-
2075
-
2076
- /**
2077
- * Returns whether this field is set.
2078
- * @return {boolean}
2079
- */
2080
- proto.tournament.BonusSearchRequest.prototype.hasBonusType = function() {
2081
- return jspb.Message.getField(this, 2) != null;
2082
- };
2083
-
2084
-
2085
- /**
2086
- * optional string currency = 3;
2087
- * @return {string}
2088
- */
2089
- proto.tournament.BonusSearchRequest.prototype.getCurrency = function() {
2090
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2091
- };
2092
-
2093
-
2094
- /**
2095
- * @param {string} value
2096
- * @return {!proto.tournament.BonusSearchRequest} returns this
2097
- */
2098
- proto.tournament.BonusSearchRequest.prototype.setCurrency = function(value) {
2099
- return jspb.Message.setField(this, 3, value);
2100
- };
2101
-
2102
-
2103
- /**
2104
- * Clears the field making it undefined.
2105
- * @return {!proto.tournament.BonusSearchRequest} returns this
2106
- */
2107
- proto.tournament.BonusSearchRequest.prototype.clearCurrency = function() {
2108
- return jspb.Message.setField(this, 3, undefined);
2109
- };
2110
-
2111
-
2112
- /**
2113
- * Returns whether this field is set.
2114
- * @return {boolean}
2115
- */
2116
- proto.tournament.BonusSearchRequest.prototype.hasCurrency = function() {
2117
- return jspb.Message.getField(this, 3) != null;
2118
- };
2119
-
2120
-
2121
- /**
2122
- * optional string locale = 4;
2123
- * @return {string}
2124
- */
2125
- proto.tournament.BonusSearchRequest.prototype.getLocale = function() {
2126
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2127
- };
2128
-
2129
-
2130
- /**
2131
- * @param {string} value
2132
- * @return {!proto.tournament.BonusSearchRequest} returns this
2133
- */
2134
- proto.tournament.BonusSearchRequest.prototype.setLocale = function(value) {
2135
- return jspb.Message.setField(this, 4, value);
2136
- };
2137
-
2138
-
2139
- /**
2140
- * Clears the field making it undefined.
2141
- * @return {!proto.tournament.BonusSearchRequest} returns this
2142
- */
2143
- proto.tournament.BonusSearchRequest.prototype.clearLocale = function() {
2144
- return jspb.Message.setField(this, 4, undefined);
2145
- };
2146
-
2147
-
2148
- /**
2149
- * Returns whether this field is set.
2150
- * @return {boolean}
2151
- */
2152
- proto.tournament.BonusSearchRequest.prototype.hasLocale = function() {
2153
- return jspb.Message.getField(this, 4) != null;
2154
- };
2155
-
2156
-
2157
-
2158
1793
  /**
2159
1794
  * List of repeated fields within this message type.
2160
1795
  * @private {!Array<number>}