protobuf-platform 1.2.139 → 1.2.143

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.
@@ -15,6 +15,8 @@ service Analytic {
15
15
  rpc getSportsStats(PaginationRequest) returns (SportsResponse);
16
16
  //Dashboard
17
17
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
18
+ // New: main dashboard with summary + series
19
+ rpc getMainDashboard(DashboardRequest) returns (MainDashboardResponse);
18
20
  //Segmentation
19
21
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
20
22
  }
@@ -40,6 +42,7 @@ message GlobalSearchRequest {
40
42
  message DashboardRequest {
41
43
  string start_date = 1;
42
44
  string end_date = 2;
45
+ optional string period = 3;
43
46
  }
44
47
 
45
48
  //Dashboard
@@ -57,6 +60,23 @@ message DashboardResponse {
57
60
  optional float dep_sum = 11;
58
61
  optional float dep_avg = 12;
59
62
  }
63
+ message MainDashboardResponse {
64
+ DashboardResponse summary = 1;
65
+ DashboardTurnoverSeries turnover_series = 2;
66
+ }
67
+ message DashboardTurnoverSeries {
68
+ repeated DashboardTurnoverSeriesItem items = 1;
69
+ }
70
+
71
+ message DashboardTurnoverSeriesItem {
72
+ string date = 1; // ISO-8601 UTC bucket start (hour), e.g. "2025-12-13T10:00:00Z"
73
+
74
+ optional float game_turnover_real = 2;
75
+ optional float game_turnover_bonus = 3;
76
+
77
+ optional float sport_turnover_real = 4;
78
+ optional float sport_turnover_bonus = 5;
79
+ }
60
80
 
61
81
  //Global
62
82
  message GlobalCasinoItem {
@@ -59,6 +59,17 @@ function deserialize_analytic_GlobalCasinoResponse(buffer_arg) {
59
59
  return analytic_pb.GlobalCasinoResponse.deserializeBinary(new Uint8Array(buffer_arg));
60
60
  }
61
61
 
62
+ function serialize_analytic_MainDashboardResponse(arg) {
63
+ if (!(arg instanceof analytic_pb.MainDashboardResponse)) {
64
+ throw new Error('Expected argument of type analytic.MainDashboardResponse');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_analytic_MainDashboardResponse(buffer_arg) {
70
+ return analytic_pb.MainDashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
62
73
  function serialize_analytic_PaginationRequest(arg) {
63
74
  if (!(arg instanceof analytic_pb.PaginationRequest)) {
64
75
  throw new Error('Expected argument of type analytic.PaginationRequest');
@@ -220,6 +231,18 @@ getDashboardInfo: {
220
231
  responseSerialize: serialize_analytic_DashboardResponse,
221
232
  responseDeserialize: deserialize_analytic_DashboardResponse,
222
233
  },
234
+ // New: main dashboard with summary + series
235
+ getMainDashboard: {
236
+ path: '/analytic.Analytic/getMainDashboard',
237
+ requestStream: false,
238
+ responseStream: false,
239
+ requestType: analytic_pb.DashboardRequest,
240
+ responseType: analytic_pb.MainDashboardResponse,
241
+ requestSerialize: serialize_analytic_DashboardRequest,
242
+ requestDeserialize: deserialize_analytic_DashboardRequest,
243
+ responseSerialize: serialize_analytic_MainDashboardResponse,
244
+ responseDeserialize: deserialize_analytic_MainDashboardResponse,
245
+ },
223
246
  // Segmentation
224
247
  getSegmentedUsers: {
225
248
  path: '/analytic.Analytic/getSegmentedUsers',
@@ -23,6 +23,8 @@ var global = (function() {
23
23
 
24
24
  goog.exportSymbol('proto.analytic.DashboardRequest', null, global);
25
25
  goog.exportSymbol('proto.analytic.DashboardResponse', null, global);
26
+ goog.exportSymbol('proto.analytic.DashboardTurnoverSeries', null, global);
27
+ goog.exportSymbol('proto.analytic.DashboardTurnoverSeriesItem', null, global);
26
28
  goog.exportSymbol('proto.analytic.DepositItem', null, global);
27
29
  goog.exportSymbol('proto.analytic.DepositsResponse', null, global);
28
30
  goog.exportSymbol('proto.analytic.GameItem', null, global);
@@ -31,6 +33,7 @@ goog.exportSymbol('proto.analytic.GamesResponse', null, global);
31
33
  goog.exportSymbol('proto.analytic.GlobalCasinoItem', null, global);
32
34
  goog.exportSymbol('proto.analytic.GlobalCasinoResponse', null, global);
33
35
  goog.exportSymbol('proto.analytic.GlobalSearchRequest', null, global);
36
+ goog.exportSymbol('proto.analytic.MainDashboardResponse', null, global);
34
37
  goog.exportSymbol('proto.analytic.PaginationRequest', null, global);
35
38
  goog.exportSymbol('proto.analytic.PaymentItem', null, global);
36
39
  goog.exportSymbol('proto.analytic.PaymentProvidersResponse', null, global);
@@ -167,6 +170,69 @@ if (goog.DEBUG && !COMPILED) {
167
170
  */
168
171
  proto.analytic.DashboardResponse.displayName = 'proto.analytic.DashboardResponse';
169
172
  }
173
+ /**
174
+ * Generated by JsPbCodeGenerator.
175
+ * @param {Array=} opt_data Optional initial data array, typically from a
176
+ * server response, or constructed directly in Javascript. The array is used
177
+ * in place and becomes part of the constructed object. It is not cloned.
178
+ * If no data is provided, the constructed object will be empty, but still
179
+ * valid.
180
+ * @extends {jspb.Message}
181
+ * @constructor
182
+ */
183
+ proto.analytic.MainDashboardResponse = function(opt_data) {
184
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
185
+ };
186
+ goog.inherits(proto.analytic.MainDashboardResponse, jspb.Message);
187
+ if (goog.DEBUG && !COMPILED) {
188
+ /**
189
+ * @public
190
+ * @override
191
+ */
192
+ proto.analytic.MainDashboardResponse.displayName = 'proto.analytic.MainDashboardResponse';
193
+ }
194
+ /**
195
+ * Generated by JsPbCodeGenerator.
196
+ * @param {Array=} opt_data Optional initial data array, typically from a
197
+ * server response, or constructed directly in Javascript. The array is used
198
+ * in place and becomes part of the constructed object. It is not cloned.
199
+ * If no data is provided, the constructed object will be empty, but still
200
+ * valid.
201
+ * @extends {jspb.Message}
202
+ * @constructor
203
+ */
204
+ proto.analytic.DashboardTurnoverSeries = function(opt_data) {
205
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.analytic.DashboardTurnoverSeries.repeatedFields_, null);
206
+ };
207
+ goog.inherits(proto.analytic.DashboardTurnoverSeries, jspb.Message);
208
+ if (goog.DEBUG && !COMPILED) {
209
+ /**
210
+ * @public
211
+ * @override
212
+ */
213
+ proto.analytic.DashboardTurnoverSeries.displayName = 'proto.analytic.DashboardTurnoverSeries';
214
+ }
215
+ /**
216
+ * Generated by JsPbCodeGenerator.
217
+ * @param {Array=} opt_data Optional initial data array, typically from a
218
+ * server response, or constructed directly in Javascript. The array is used
219
+ * in place and becomes part of the constructed object. It is not cloned.
220
+ * If no data is provided, the constructed object will be empty, but still
221
+ * valid.
222
+ * @extends {jspb.Message}
223
+ * @constructor
224
+ */
225
+ proto.analytic.DashboardTurnoverSeriesItem = function(opt_data) {
226
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
227
+ };
228
+ goog.inherits(proto.analytic.DashboardTurnoverSeriesItem, jspb.Message);
229
+ if (goog.DEBUG && !COMPILED) {
230
+ /**
231
+ * @public
232
+ * @override
233
+ */
234
+ proto.analytic.DashboardTurnoverSeriesItem.displayName = 'proto.analytic.DashboardTurnoverSeriesItem';
235
+ }
170
236
  /**
171
237
  * Generated by JsPbCodeGenerator.
172
238
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1257,7 +1323,8 @@ proto.analytic.DashboardRequest.prototype.toObject = function(opt_includeInstanc
1257
1323
  proto.analytic.DashboardRequest.toObject = function(includeInstance, msg) {
1258
1324
  var f, obj = {
1259
1325
  startDate: jspb.Message.getFieldWithDefault(msg, 1, ""),
1260
- endDate: jspb.Message.getFieldWithDefault(msg, 2, "")
1326
+ endDate: jspb.Message.getFieldWithDefault(msg, 2, ""),
1327
+ period: jspb.Message.getFieldWithDefault(msg, 3, "")
1261
1328
  };
1262
1329
 
1263
1330
  if (includeInstance) {
@@ -1302,6 +1369,10 @@ proto.analytic.DashboardRequest.deserializeBinaryFromReader = function(msg, read
1302
1369
  var value = /** @type {string} */ (reader.readString());
1303
1370
  msg.setEndDate(value);
1304
1371
  break;
1372
+ case 3:
1373
+ var value = /** @type {string} */ (reader.readString());
1374
+ msg.setPeriod(value);
1375
+ break;
1305
1376
  default:
1306
1377
  reader.skipField();
1307
1378
  break;
@@ -1345,6 +1416,13 @@ proto.analytic.DashboardRequest.serializeBinaryToWriter = function(message, writ
1345
1416
  f
1346
1417
  );
1347
1418
  }
1419
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
1420
+ if (f != null) {
1421
+ writer.writeString(
1422
+ 3,
1423
+ f
1424
+ );
1425
+ }
1348
1426
  };
1349
1427
 
1350
1428
 
@@ -1384,6 +1462,42 @@ proto.analytic.DashboardRequest.prototype.setEndDate = function(value) {
1384
1462
  };
1385
1463
 
1386
1464
 
1465
+ /**
1466
+ * optional string period = 3;
1467
+ * @return {string}
1468
+ */
1469
+ proto.analytic.DashboardRequest.prototype.getPeriod = function() {
1470
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * @param {string} value
1476
+ * @return {!proto.analytic.DashboardRequest} returns this
1477
+ */
1478
+ proto.analytic.DashboardRequest.prototype.setPeriod = function(value) {
1479
+ return jspb.Message.setField(this, 3, value);
1480
+ };
1481
+
1482
+
1483
+ /**
1484
+ * Clears the field making it undefined.
1485
+ * @return {!proto.analytic.DashboardRequest} returns this
1486
+ */
1487
+ proto.analytic.DashboardRequest.prototype.clearPeriod = function() {
1488
+ return jspb.Message.setField(this, 3, undefined);
1489
+ };
1490
+
1491
+
1492
+ /**
1493
+ * Returns whether this field is set.
1494
+ * @return {boolean}
1495
+ */
1496
+ proto.analytic.DashboardRequest.prototype.hasPeriod = function() {
1497
+ return jspb.Message.getField(this, 3) != null;
1498
+ };
1499
+
1500
+
1387
1501
 
1388
1502
 
1389
1503
 
@@ -2063,6 +2177,690 @@ proto.analytic.DashboardResponse.prototype.hasDepAvg = function() {
2063
2177
 
2064
2178
 
2065
2179
 
2180
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2181
+ /**
2182
+ * Creates an object representation of this proto.
2183
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2184
+ * Optional fields that are not set will be set to undefined.
2185
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2186
+ * For the list of reserved names please see:
2187
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2188
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2189
+ * JSPB instance for transitional soy proto support:
2190
+ * http://goto/soy-param-migration
2191
+ * @return {!Object}
2192
+ */
2193
+ proto.analytic.MainDashboardResponse.prototype.toObject = function(opt_includeInstance) {
2194
+ return proto.analytic.MainDashboardResponse.toObject(opt_includeInstance, this);
2195
+ };
2196
+
2197
+
2198
+ /**
2199
+ * Static version of the {@see toObject} method.
2200
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2201
+ * the JSPB instance for transitional soy proto support:
2202
+ * http://goto/soy-param-migration
2203
+ * @param {!proto.analytic.MainDashboardResponse} msg The msg instance to transform.
2204
+ * @return {!Object}
2205
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2206
+ */
2207
+ proto.analytic.MainDashboardResponse.toObject = function(includeInstance, msg) {
2208
+ var f, obj = {
2209
+ summary: (f = msg.getSummary()) && proto.analytic.DashboardResponse.toObject(includeInstance, f),
2210
+ turnoverSeries: (f = msg.getTurnoverSeries()) && proto.analytic.DashboardTurnoverSeries.toObject(includeInstance, f)
2211
+ };
2212
+
2213
+ if (includeInstance) {
2214
+ obj.$jspbMessageInstance = msg;
2215
+ }
2216
+ return obj;
2217
+ };
2218
+ }
2219
+
2220
+
2221
+ /**
2222
+ * Deserializes binary data (in protobuf wire format).
2223
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2224
+ * @return {!proto.analytic.MainDashboardResponse}
2225
+ */
2226
+ proto.analytic.MainDashboardResponse.deserializeBinary = function(bytes) {
2227
+ var reader = new jspb.BinaryReader(bytes);
2228
+ var msg = new proto.analytic.MainDashboardResponse;
2229
+ return proto.analytic.MainDashboardResponse.deserializeBinaryFromReader(msg, reader);
2230
+ };
2231
+
2232
+
2233
+ /**
2234
+ * Deserializes binary data (in protobuf wire format) from the
2235
+ * given reader into the given message object.
2236
+ * @param {!proto.analytic.MainDashboardResponse} msg The message object to deserialize into.
2237
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2238
+ * @return {!proto.analytic.MainDashboardResponse}
2239
+ */
2240
+ proto.analytic.MainDashboardResponse.deserializeBinaryFromReader = function(msg, reader) {
2241
+ while (reader.nextField()) {
2242
+ if (reader.isEndGroup()) {
2243
+ break;
2244
+ }
2245
+ var field = reader.getFieldNumber();
2246
+ switch (field) {
2247
+ case 1:
2248
+ var value = new proto.analytic.DashboardResponse;
2249
+ reader.readMessage(value,proto.analytic.DashboardResponse.deserializeBinaryFromReader);
2250
+ msg.setSummary(value);
2251
+ break;
2252
+ case 2:
2253
+ var value = new proto.analytic.DashboardTurnoverSeries;
2254
+ reader.readMessage(value,proto.analytic.DashboardTurnoverSeries.deserializeBinaryFromReader);
2255
+ msg.setTurnoverSeries(value);
2256
+ break;
2257
+ default:
2258
+ reader.skipField();
2259
+ break;
2260
+ }
2261
+ }
2262
+ return msg;
2263
+ };
2264
+
2265
+
2266
+ /**
2267
+ * Serializes the message to binary data (in protobuf wire format).
2268
+ * @return {!Uint8Array}
2269
+ */
2270
+ proto.analytic.MainDashboardResponse.prototype.serializeBinary = function() {
2271
+ var writer = new jspb.BinaryWriter();
2272
+ proto.analytic.MainDashboardResponse.serializeBinaryToWriter(this, writer);
2273
+ return writer.getResultBuffer();
2274
+ };
2275
+
2276
+
2277
+ /**
2278
+ * Serializes the given message to binary data (in protobuf wire
2279
+ * format), writing to the given BinaryWriter.
2280
+ * @param {!proto.analytic.MainDashboardResponse} message
2281
+ * @param {!jspb.BinaryWriter} writer
2282
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2283
+ */
2284
+ proto.analytic.MainDashboardResponse.serializeBinaryToWriter = function(message, writer) {
2285
+ var f = undefined;
2286
+ f = message.getSummary();
2287
+ if (f != null) {
2288
+ writer.writeMessage(
2289
+ 1,
2290
+ f,
2291
+ proto.analytic.DashboardResponse.serializeBinaryToWriter
2292
+ );
2293
+ }
2294
+ f = message.getTurnoverSeries();
2295
+ if (f != null) {
2296
+ writer.writeMessage(
2297
+ 2,
2298
+ f,
2299
+ proto.analytic.DashboardTurnoverSeries.serializeBinaryToWriter
2300
+ );
2301
+ }
2302
+ };
2303
+
2304
+
2305
+ /**
2306
+ * optional DashboardResponse summary = 1;
2307
+ * @return {?proto.analytic.DashboardResponse}
2308
+ */
2309
+ proto.analytic.MainDashboardResponse.prototype.getSummary = function() {
2310
+ return /** @type{?proto.analytic.DashboardResponse} */ (
2311
+ jspb.Message.getWrapperField(this, proto.analytic.DashboardResponse, 1));
2312
+ };
2313
+
2314
+
2315
+ /**
2316
+ * @param {?proto.analytic.DashboardResponse|undefined} value
2317
+ * @return {!proto.analytic.MainDashboardResponse} returns this
2318
+ */
2319
+ proto.analytic.MainDashboardResponse.prototype.setSummary = function(value) {
2320
+ return jspb.Message.setWrapperField(this, 1, value);
2321
+ };
2322
+
2323
+
2324
+ /**
2325
+ * Clears the message field making it undefined.
2326
+ * @return {!proto.analytic.MainDashboardResponse} returns this
2327
+ */
2328
+ proto.analytic.MainDashboardResponse.prototype.clearSummary = function() {
2329
+ return this.setSummary(undefined);
2330
+ };
2331
+
2332
+
2333
+ /**
2334
+ * Returns whether this field is set.
2335
+ * @return {boolean}
2336
+ */
2337
+ proto.analytic.MainDashboardResponse.prototype.hasSummary = function() {
2338
+ return jspb.Message.getField(this, 1) != null;
2339
+ };
2340
+
2341
+
2342
+ /**
2343
+ * optional DashboardTurnoverSeries turnover_series = 2;
2344
+ * @return {?proto.analytic.DashboardTurnoverSeries}
2345
+ */
2346
+ proto.analytic.MainDashboardResponse.prototype.getTurnoverSeries = function() {
2347
+ return /** @type{?proto.analytic.DashboardTurnoverSeries} */ (
2348
+ jspb.Message.getWrapperField(this, proto.analytic.DashboardTurnoverSeries, 2));
2349
+ };
2350
+
2351
+
2352
+ /**
2353
+ * @param {?proto.analytic.DashboardTurnoverSeries|undefined} value
2354
+ * @return {!proto.analytic.MainDashboardResponse} returns this
2355
+ */
2356
+ proto.analytic.MainDashboardResponse.prototype.setTurnoverSeries = function(value) {
2357
+ return jspb.Message.setWrapperField(this, 2, value);
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * Clears the message field making it undefined.
2363
+ * @return {!proto.analytic.MainDashboardResponse} returns this
2364
+ */
2365
+ proto.analytic.MainDashboardResponse.prototype.clearTurnoverSeries = function() {
2366
+ return this.setTurnoverSeries(undefined);
2367
+ };
2368
+
2369
+
2370
+ /**
2371
+ * Returns whether this field is set.
2372
+ * @return {boolean}
2373
+ */
2374
+ proto.analytic.MainDashboardResponse.prototype.hasTurnoverSeries = function() {
2375
+ return jspb.Message.getField(this, 2) != null;
2376
+ };
2377
+
2378
+
2379
+
2380
+ /**
2381
+ * List of repeated fields within this message type.
2382
+ * @private {!Array<number>}
2383
+ * @const
2384
+ */
2385
+ proto.analytic.DashboardTurnoverSeries.repeatedFields_ = [1];
2386
+
2387
+
2388
+
2389
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2390
+ /**
2391
+ * Creates an object representation of this proto.
2392
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2393
+ * Optional fields that are not set will be set to undefined.
2394
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2395
+ * For the list of reserved names please see:
2396
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2397
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2398
+ * JSPB instance for transitional soy proto support:
2399
+ * http://goto/soy-param-migration
2400
+ * @return {!Object}
2401
+ */
2402
+ proto.analytic.DashboardTurnoverSeries.prototype.toObject = function(opt_includeInstance) {
2403
+ return proto.analytic.DashboardTurnoverSeries.toObject(opt_includeInstance, this);
2404
+ };
2405
+
2406
+
2407
+ /**
2408
+ * Static version of the {@see toObject} method.
2409
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2410
+ * the JSPB instance for transitional soy proto support:
2411
+ * http://goto/soy-param-migration
2412
+ * @param {!proto.analytic.DashboardTurnoverSeries} msg The msg instance to transform.
2413
+ * @return {!Object}
2414
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2415
+ */
2416
+ proto.analytic.DashboardTurnoverSeries.toObject = function(includeInstance, msg) {
2417
+ var f, obj = {
2418
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
2419
+ proto.analytic.DashboardTurnoverSeriesItem.toObject, includeInstance)
2420
+ };
2421
+
2422
+ if (includeInstance) {
2423
+ obj.$jspbMessageInstance = msg;
2424
+ }
2425
+ return obj;
2426
+ };
2427
+ }
2428
+
2429
+
2430
+ /**
2431
+ * Deserializes binary data (in protobuf wire format).
2432
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2433
+ * @return {!proto.analytic.DashboardTurnoverSeries}
2434
+ */
2435
+ proto.analytic.DashboardTurnoverSeries.deserializeBinary = function(bytes) {
2436
+ var reader = new jspb.BinaryReader(bytes);
2437
+ var msg = new proto.analytic.DashboardTurnoverSeries;
2438
+ return proto.analytic.DashboardTurnoverSeries.deserializeBinaryFromReader(msg, reader);
2439
+ };
2440
+
2441
+
2442
+ /**
2443
+ * Deserializes binary data (in protobuf wire format) from the
2444
+ * given reader into the given message object.
2445
+ * @param {!proto.analytic.DashboardTurnoverSeries} msg The message object to deserialize into.
2446
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2447
+ * @return {!proto.analytic.DashboardTurnoverSeries}
2448
+ */
2449
+ proto.analytic.DashboardTurnoverSeries.deserializeBinaryFromReader = function(msg, reader) {
2450
+ while (reader.nextField()) {
2451
+ if (reader.isEndGroup()) {
2452
+ break;
2453
+ }
2454
+ var field = reader.getFieldNumber();
2455
+ switch (field) {
2456
+ case 1:
2457
+ var value = new proto.analytic.DashboardTurnoverSeriesItem;
2458
+ reader.readMessage(value,proto.analytic.DashboardTurnoverSeriesItem.deserializeBinaryFromReader);
2459
+ msg.addItems(value);
2460
+ break;
2461
+ default:
2462
+ reader.skipField();
2463
+ break;
2464
+ }
2465
+ }
2466
+ return msg;
2467
+ };
2468
+
2469
+
2470
+ /**
2471
+ * Serializes the message to binary data (in protobuf wire format).
2472
+ * @return {!Uint8Array}
2473
+ */
2474
+ proto.analytic.DashboardTurnoverSeries.prototype.serializeBinary = function() {
2475
+ var writer = new jspb.BinaryWriter();
2476
+ proto.analytic.DashboardTurnoverSeries.serializeBinaryToWriter(this, writer);
2477
+ return writer.getResultBuffer();
2478
+ };
2479
+
2480
+
2481
+ /**
2482
+ * Serializes the given message to binary data (in protobuf wire
2483
+ * format), writing to the given BinaryWriter.
2484
+ * @param {!proto.analytic.DashboardTurnoverSeries} message
2485
+ * @param {!jspb.BinaryWriter} writer
2486
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2487
+ */
2488
+ proto.analytic.DashboardTurnoverSeries.serializeBinaryToWriter = function(message, writer) {
2489
+ var f = undefined;
2490
+ f = message.getItemsList();
2491
+ if (f.length > 0) {
2492
+ writer.writeRepeatedMessage(
2493
+ 1,
2494
+ f,
2495
+ proto.analytic.DashboardTurnoverSeriesItem.serializeBinaryToWriter
2496
+ );
2497
+ }
2498
+ };
2499
+
2500
+
2501
+ /**
2502
+ * repeated DashboardTurnoverSeriesItem items = 1;
2503
+ * @return {!Array<!proto.analytic.DashboardTurnoverSeriesItem>}
2504
+ */
2505
+ proto.analytic.DashboardTurnoverSeries.prototype.getItemsList = function() {
2506
+ return /** @type{!Array<!proto.analytic.DashboardTurnoverSeriesItem>} */ (
2507
+ jspb.Message.getRepeatedWrapperField(this, proto.analytic.DashboardTurnoverSeriesItem, 1));
2508
+ };
2509
+
2510
+
2511
+ /**
2512
+ * @param {!Array<!proto.analytic.DashboardTurnoverSeriesItem>} value
2513
+ * @return {!proto.analytic.DashboardTurnoverSeries} returns this
2514
+ */
2515
+ proto.analytic.DashboardTurnoverSeries.prototype.setItemsList = function(value) {
2516
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2517
+ };
2518
+
2519
+
2520
+ /**
2521
+ * @param {!proto.analytic.DashboardTurnoverSeriesItem=} opt_value
2522
+ * @param {number=} opt_index
2523
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem}
2524
+ */
2525
+ proto.analytic.DashboardTurnoverSeries.prototype.addItems = function(opt_value, opt_index) {
2526
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.analytic.DashboardTurnoverSeriesItem, opt_index);
2527
+ };
2528
+
2529
+
2530
+ /**
2531
+ * Clears the list making it empty but non-null.
2532
+ * @return {!proto.analytic.DashboardTurnoverSeries} returns this
2533
+ */
2534
+ proto.analytic.DashboardTurnoverSeries.prototype.clearItemsList = function() {
2535
+ return this.setItemsList([]);
2536
+ };
2537
+
2538
+
2539
+
2540
+
2541
+
2542
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2543
+ /**
2544
+ * Creates an object representation of this proto.
2545
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2546
+ * Optional fields that are not set will be set to undefined.
2547
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2548
+ * For the list of reserved names please see:
2549
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2550
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2551
+ * JSPB instance for transitional soy proto support:
2552
+ * http://goto/soy-param-migration
2553
+ * @return {!Object}
2554
+ */
2555
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.toObject = function(opt_includeInstance) {
2556
+ return proto.analytic.DashboardTurnoverSeriesItem.toObject(opt_includeInstance, this);
2557
+ };
2558
+
2559
+
2560
+ /**
2561
+ * Static version of the {@see toObject} method.
2562
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2563
+ * the JSPB instance for transitional soy proto support:
2564
+ * http://goto/soy-param-migration
2565
+ * @param {!proto.analytic.DashboardTurnoverSeriesItem} msg The msg instance to transform.
2566
+ * @return {!Object}
2567
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2568
+ */
2569
+ proto.analytic.DashboardTurnoverSeriesItem.toObject = function(includeInstance, msg) {
2570
+ var f, obj = {
2571
+ date: jspb.Message.getFieldWithDefault(msg, 1, ""),
2572
+ gameTurnoverReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
2573
+ gameTurnoverBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
2574
+ sportTurnoverReal: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
2575
+ sportTurnoverBonus: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
2576
+ };
2577
+
2578
+ if (includeInstance) {
2579
+ obj.$jspbMessageInstance = msg;
2580
+ }
2581
+ return obj;
2582
+ };
2583
+ }
2584
+
2585
+
2586
+ /**
2587
+ * Deserializes binary data (in protobuf wire format).
2588
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2589
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem}
2590
+ */
2591
+ proto.analytic.DashboardTurnoverSeriesItem.deserializeBinary = function(bytes) {
2592
+ var reader = new jspb.BinaryReader(bytes);
2593
+ var msg = new proto.analytic.DashboardTurnoverSeriesItem;
2594
+ return proto.analytic.DashboardTurnoverSeriesItem.deserializeBinaryFromReader(msg, reader);
2595
+ };
2596
+
2597
+
2598
+ /**
2599
+ * Deserializes binary data (in protobuf wire format) from the
2600
+ * given reader into the given message object.
2601
+ * @param {!proto.analytic.DashboardTurnoverSeriesItem} msg The message object to deserialize into.
2602
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2603
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem}
2604
+ */
2605
+ proto.analytic.DashboardTurnoverSeriesItem.deserializeBinaryFromReader = function(msg, reader) {
2606
+ while (reader.nextField()) {
2607
+ if (reader.isEndGroup()) {
2608
+ break;
2609
+ }
2610
+ var field = reader.getFieldNumber();
2611
+ switch (field) {
2612
+ case 1:
2613
+ var value = /** @type {string} */ (reader.readString());
2614
+ msg.setDate(value);
2615
+ break;
2616
+ case 2:
2617
+ var value = /** @type {number} */ (reader.readFloat());
2618
+ msg.setGameTurnoverReal(value);
2619
+ break;
2620
+ case 3:
2621
+ var value = /** @type {number} */ (reader.readFloat());
2622
+ msg.setGameTurnoverBonus(value);
2623
+ break;
2624
+ case 4:
2625
+ var value = /** @type {number} */ (reader.readFloat());
2626
+ msg.setSportTurnoverReal(value);
2627
+ break;
2628
+ case 5:
2629
+ var value = /** @type {number} */ (reader.readFloat());
2630
+ msg.setSportTurnoverBonus(value);
2631
+ break;
2632
+ default:
2633
+ reader.skipField();
2634
+ break;
2635
+ }
2636
+ }
2637
+ return msg;
2638
+ };
2639
+
2640
+
2641
+ /**
2642
+ * Serializes the message to binary data (in protobuf wire format).
2643
+ * @return {!Uint8Array}
2644
+ */
2645
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.serializeBinary = function() {
2646
+ var writer = new jspb.BinaryWriter();
2647
+ proto.analytic.DashboardTurnoverSeriesItem.serializeBinaryToWriter(this, writer);
2648
+ return writer.getResultBuffer();
2649
+ };
2650
+
2651
+
2652
+ /**
2653
+ * Serializes the given message to binary data (in protobuf wire
2654
+ * format), writing to the given BinaryWriter.
2655
+ * @param {!proto.analytic.DashboardTurnoverSeriesItem} message
2656
+ * @param {!jspb.BinaryWriter} writer
2657
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2658
+ */
2659
+ proto.analytic.DashboardTurnoverSeriesItem.serializeBinaryToWriter = function(message, writer) {
2660
+ var f = undefined;
2661
+ f = message.getDate();
2662
+ if (f.length > 0) {
2663
+ writer.writeString(
2664
+ 1,
2665
+ f
2666
+ );
2667
+ }
2668
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
2669
+ if (f != null) {
2670
+ writer.writeFloat(
2671
+ 2,
2672
+ f
2673
+ );
2674
+ }
2675
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
2676
+ if (f != null) {
2677
+ writer.writeFloat(
2678
+ 3,
2679
+ f
2680
+ );
2681
+ }
2682
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
2683
+ if (f != null) {
2684
+ writer.writeFloat(
2685
+ 4,
2686
+ f
2687
+ );
2688
+ }
2689
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
2690
+ if (f != null) {
2691
+ writer.writeFloat(
2692
+ 5,
2693
+ f
2694
+ );
2695
+ }
2696
+ };
2697
+
2698
+
2699
+ /**
2700
+ * optional string date = 1;
2701
+ * @return {string}
2702
+ */
2703
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.getDate = function() {
2704
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2705
+ };
2706
+
2707
+
2708
+ /**
2709
+ * @param {string} value
2710
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2711
+ */
2712
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.setDate = function(value) {
2713
+ return jspb.Message.setProto3StringField(this, 1, value);
2714
+ };
2715
+
2716
+
2717
+ /**
2718
+ * optional float game_turnover_real = 2;
2719
+ * @return {number}
2720
+ */
2721
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.getGameTurnoverReal = function() {
2722
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
2723
+ };
2724
+
2725
+
2726
+ /**
2727
+ * @param {number} value
2728
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2729
+ */
2730
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.setGameTurnoverReal = function(value) {
2731
+ return jspb.Message.setField(this, 2, value);
2732
+ };
2733
+
2734
+
2735
+ /**
2736
+ * Clears the field making it undefined.
2737
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2738
+ */
2739
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.clearGameTurnoverReal = function() {
2740
+ return jspb.Message.setField(this, 2, undefined);
2741
+ };
2742
+
2743
+
2744
+ /**
2745
+ * Returns whether this field is set.
2746
+ * @return {boolean}
2747
+ */
2748
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.hasGameTurnoverReal = function() {
2749
+ return jspb.Message.getField(this, 2) != null;
2750
+ };
2751
+
2752
+
2753
+ /**
2754
+ * optional float game_turnover_bonus = 3;
2755
+ * @return {number}
2756
+ */
2757
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.getGameTurnoverBonus = function() {
2758
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
2759
+ };
2760
+
2761
+
2762
+ /**
2763
+ * @param {number} value
2764
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2765
+ */
2766
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.setGameTurnoverBonus = function(value) {
2767
+ return jspb.Message.setField(this, 3, value);
2768
+ };
2769
+
2770
+
2771
+ /**
2772
+ * Clears the field making it undefined.
2773
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2774
+ */
2775
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.clearGameTurnoverBonus = function() {
2776
+ return jspb.Message.setField(this, 3, undefined);
2777
+ };
2778
+
2779
+
2780
+ /**
2781
+ * Returns whether this field is set.
2782
+ * @return {boolean}
2783
+ */
2784
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.hasGameTurnoverBonus = function() {
2785
+ return jspb.Message.getField(this, 3) != null;
2786
+ };
2787
+
2788
+
2789
+ /**
2790
+ * optional float sport_turnover_real = 4;
2791
+ * @return {number}
2792
+ */
2793
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.getSportTurnoverReal = function() {
2794
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
2795
+ };
2796
+
2797
+
2798
+ /**
2799
+ * @param {number} value
2800
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2801
+ */
2802
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.setSportTurnoverReal = function(value) {
2803
+ return jspb.Message.setField(this, 4, value);
2804
+ };
2805
+
2806
+
2807
+ /**
2808
+ * Clears the field making it undefined.
2809
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2810
+ */
2811
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.clearSportTurnoverReal = function() {
2812
+ return jspb.Message.setField(this, 4, undefined);
2813
+ };
2814
+
2815
+
2816
+ /**
2817
+ * Returns whether this field is set.
2818
+ * @return {boolean}
2819
+ */
2820
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.hasSportTurnoverReal = function() {
2821
+ return jspb.Message.getField(this, 4) != null;
2822
+ };
2823
+
2824
+
2825
+ /**
2826
+ * optional float sport_turnover_bonus = 5;
2827
+ * @return {number}
2828
+ */
2829
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.getSportTurnoverBonus = function() {
2830
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
2831
+ };
2832
+
2833
+
2834
+ /**
2835
+ * @param {number} value
2836
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2837
+ */
2838
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.setSportTurnoverBonus = function(value) {
2839
+ return jspb.Message.setField(this, 5, value);
2840
+ };
2841
+
2842
+
2843
+ /**
2844
+ * Clears the field making it undefined.
2845
+ * @return {!proto.analytic.DashboardTurnoverSeriesItem} returns this
2846
+ */
2847
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.clearSportTurnoverBonus = function() {
2848
+ return jspb.Message.setField(this, 5, undefined);
2849
+ };
2850
+
2851
+
2852
+ /**
2853
+ * Returns whether this field is set.
2854
+ * @return {boolean}
2855
+ */
2856
+ proto.analytic.DashboardTurnoverSeriesItem.prototype.hasSportTurnoverBonus = function() {
2857
+ return jspb.Message.getField(this, 5) != null;
2858
+ };
2859
+
2860
+
2861
+
2862
+
2863
+
2066
2864
  if (jspb.Message.GENERATE_TO_OBJECT) {
2067
2865
  /**
2068
2866
  * Creates an object representation of this proto.
package/cms/cms.proto CHANGED
@@ -66,6 +66,7 @@ service CMS {
66
66
  rpc readSingleFooterMainText (GetFooterMainTextRequest) returns (FooterMainTextResponse);
67
67
  rpc updateSingleFooterMainText (FooterMainTextItemRequest) returns (FooterMainTextResponse);
68
68
  rpc deleteSingleFooterMainText (GetFooterMainTextRequest) returns (FooterMainTextStatusResponse);
69
+ rpc updateFooterMainTextInBunch (ItemsBunchRequest) returns (FooterMainTextStatusResponse);
69
70
  rpc readListFooterMainText (PaginationRequest) returns (FooterMainTextItemsResponse);
70
71
  rpc setFooterMainTextTranslation (FooterMainTextTranslationRequest) returns (FooterMainTextStatusResponse);
71
72
  rpc getFooterMainTextTranslation (GetFooterMainTextTranslationRequest) returns (FooterMainTextTranslationResponse);
@@ -1520,6 +1520,17 @@ createSingleFooterMainText: {
1520
1520
  responseSerialize: serialize_cms_FooterMainTextStatusResponse,
1521
1521
  responseDeserialize: deserialize_cms_FooterMainTextStatusResponse,
1522
1522
  },
1523
+ updateFooterMainTextInBunch: {
1524
+ path: '/cms.CMS/updateFooterMainTextInBunch',
1525
+ requestStream: false,
1526
+ responseStream: false,
1527
+ requestType: cms_pb.ItemsBunchRequest,
1528
+ responseType: cms_pb.FooterMainTextStatusResponse,
1529
+ requestSerialize: serialize_cms_ItemsBunchRequest,
1530
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
1531
+ responseSerialize: serialize_cms_FooterMainTextStatusResponse,
1532
+ responseDeserialize: deserialize_cms_FooterMainTextStatusResponse,
1533
+ },
1523
1534
  readListFooterMainText: {
1524
1535
  path: '/cms.CMS/readListFooterMainText',
1525
1536
  requestStream: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.139",
3
+ "version": "1.2.143",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {