protobuf-platform 1.2.55 → 1.2.57

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.
@@ -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
@@ -661,6 +663,7 @@ message CashBackListItem {
661
663
  string cashback_type = 2;
662
664
  string title = 3;
663
665
  optional string description = 4;
666
+ optional int32 is_active = 5;
664
667
  }
665
668
  message CashBackListResponse {
666
669
  CashBackListItem data = 1;
@@ -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',
package/game/game_pb.js CHANGED
@@ -27478,7 +27478,8 @@ proto.game.CashBackListItem.toObject = function(includeInstance, msg) {
27478
27478
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
27479
27479
  cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
27480
27480
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
27481
- description: jspb.Message.getFieldWithDefault(msg, 4, "")
27481
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
27482
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
27482
27483
  };
27483
27484
 
27484
27485
  if (includeInstance) {
@@ -27531,6 +27532,10 @@ proto.game.CashBackListItem.deserializeBinaryFromReader = function(msg, reader)
27531
27532
  var value = /** @type {string} */ (reader.readString());
27532
27533
  msg.setDescription(value);
27533
27534
  break;
27535
+ case 5:
27536
+ var value = /** @type {number} */ (reader.readInt32());
27537
+ msg.setIsActive(value);
27538
+ break;
27534
27539
  default:
27535
27540
  reader.skipField();
27536
27541
  break;
@@ -27588,6 +27593,13 @@ proto.game.CashBackListItem.serializeBinaryToWriter = function(message, writer)
27588
27593
  f
27589
27594
  );
27590
27595
  }
27596
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
27597
+ if (f != null) {
27598
+ writer.writeInt32(
27599
+ 5,
27600
+ f
27601
+ );
27602
+ }
27591
27603
  };
27592
27604
 
27593
27605
 
@@ -27681,6 +27693,42 @@ proto.game.CashBackListItem.prototype.hasDescription = function() {
27681
27693
  };
27682
27694
 
27683
27695
 
27696
+ /**
27697
+ * optional int32 is_active = 5;
27698
+ * @return {number}
27699
+ */
27700
+ proto.game.CashBackListItem.prototype.getIsActive = function() {
27701
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
27702
+ };
27703
+
27704
+
27705
+ /**
27706
+ * @param {number} value
27707
+ * @return {!proto.game.CashBackListItem} returns this
27708
+ */
27709
+ proto.game.CashBackListItem.prototype.setIsActive = function(value) {
27710
+ return jspb.Message.setField(this, 5, value);
27711
+ };
27712
+
27713
+
27714
+ /**
27715
+ * Clears the field making it undefined.
27716
+ * @return {!proto.game.CashBackListItem} returns this
27717
+ */
27718
+ proto.game.CashBackListItem.prototype.clearIsActive = function() {
27719
+ return jspb.Message.setField(this, 5, undefined);
27720
+ };
27721
+
27722
+
27723
+ /**
27724
+ * Returns whether this field is set.
27725
+ * @return {boolean}
27726
+ */
27727
+ proto.game.CashBackListItem.prototype.hasIsActive = function() {
27728
+ return jspb.Message.getField(this, 5) != null;
27729
+ };
27730
+
27731
+
27684
27732
 
27685
27733
 
27686
27734
 
@@ -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; }
@@ -70,6 +70,17 @@ function deserialize_loyalty_GetUserLoyaltyRequest(buffer_arg) {
70
70
  return loyalty_pb.GetUserLoyaltyRequest.deserializeBinary(new Uint8Array(buffer_arg));
71
71
  }
72
72
 
73
+ function serialize_loyalty_ItemsBunchRequest(arg) {
74
+ if (!(arg instanceof loyalty_pb.ItemsBunchRequest)) {
75
+ throw new Error('Expected argument of type loyalty.ItemsBunchRequest');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_loyalty_ItemsBunchRequest(buffer_arg) {
81
+ return loyalty_pb.ItemsBunchRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
73
84
  function serialize_loyalty_LevelItemsResponse(arg) {
74
85
  if (!(arg instanceof loyalty_pb.LevelItemsResponse)) {
75
86
  throw new Error('Expected argument of type loyalty.LevelItemsResponse');
@@ -337,6 +348,17 @@ createSingleLevel: {
337
348
  responseSerialize: serialize_loyalty_LevelTranslationResponse,
338
349
  responseDeserialize: deserialize_loyalty_LevelTranslationResponse,
339
350
  },
351
+ updateLevelsInBunch: {
352
+ path: '/loyalty.Loyalty/updateLevelsInBunch',
353
+ requestStream: false,
354
+ responseStream: false,
355
+ requestType: loyalty_pb.ItemsBunchRequest,
356
+ responseType: loyalty_pb.LevelStatusResponse,
357
+ requestSerialize: serialize_loyalty_ItemsBunchRequest,
358
+ requestDeserialize: deserialize_loyalty_ItemsBunchRequest,
359
+ responseSerialize: serialize_loyalty_LevelStatusResponse,
360
+ responseDeserialize: deserialize_loyalty_LevelStatusResponse,
361
+ },
340
362
  // Loyalty Points
341
363
  createSinglePoint: {
342
364
  path: '/loyalty.Loyalty/createSinglePoint',