protobuf-platform 1.2.5 → 1.2.7

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.
@@ -211,4 +211,4 @@ getSegmentedUsers: {
211
211
  },
212
212
  };
213
213
 
214
- exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService);
214
+ exports.AnalyticClient = grpc.makeGenericClientConstructor(AnalyticService, 'Analytic');
@@ -143,4 +143,4 @@ getSegmentedUsers: {
143
143
  },
144
144
  };
145
145
 
146
- exports.BetClient = grpc.makeGenericClientConstructor(BetService);
146
+ exports.BetClient = grpc.makeGenericClientConstructor(BetService, 'Bet');
@@ -441,4 +441,4 @@ getDashboardInfo: {
441
441
  },
442
442
  };
443
443
 
444
- exports.BonusClient = grpc.makeGenericClientConstructor(BonusService);
444
+ exports.BonusClient = grpc.makeGenericClientConstructor(BonusService, 'Bonus');
@@ -274,4 +274,4 @@ getCashbackForUserByType: {
274
274
  },
275
275
  };
276
276
 
277
- exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService);
277
+ exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService, 'Cashback');
package/cms/cms.proto CHANGED
@@ -38,6 +38,7 @@ service CMS {
38
38
  rpc updateSinglePromo(stream PromoRequest) returns (PromoResponse);
39
39
  rpc deleteSinglePromo(GetPromoRequest) returns (PromoStatusResponse);
40
40
  rpc readListPromos(PaginationRequest) returns (PromosItemsResponse);
41
+ rpc listPromosForUser(PaginationRequest) returns (PromosItemsResponse);
41
42
  }
42
43
 
43
44
  message PingRequest { string ping = 1; }
@@ -48,6 +49,7 @@ message PaginationRequest {
48
49
  optional int32 is_active = 3;
49
50
  optional string geo = 4;
50
51
  optional bool admin_side = 5;
52
+ optional string locale = 6;
51
53
  }
52
54
  //Media
53
55
  message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
@@ -704,6 +704,17 @@ createSinglePromo: {
704
704
  responseSerialize: serialize_cms_PromosItemsResponse,
705
705
  responseDeserialize: deserialize_cms_PromosItemsResponse,
706
706
  },
707
+ listPromosForUser: {
708
+ path: '/cms.CMS/listPromosForUser',
709
+ requestStream: false,
710
+ responseStream: false,
711
+ requestType: cms_pb.PaginationRequest,
712
+ responseType: cms_pb.PromosItemsResponse,
713
+ requestSerialize: serialize_cms_PaginationRequest,
714
+ requestDeserialize: deserialize_cms_PaginationRequest,
715
+ responseSerialize: serialize_cms_PromosItemsResponse,
716
+ responseDeserialize: deserialize_cms_PromosItemsResponse,
717
+ },
707
718
  };
708
719
 
709
- exports.CMSClient = grpc.makeGenericClientConstructor(CMSService);
720
+ exports.CMSClient = grpc.makeGenericClientConstructor(CMSService, 'CMS');
package/cms/cms_pb.js CHANGED
@@ -1221,7 +1221,8 @@ proto.cms.PaginationRequest.toObject = function(includeInstance, msg) {
1221
1221
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1222
1222
  isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
1223
1223
  geo: jspb.Message.getFieldWithDefault(msg, 4, ""),
1224
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
1224
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
1225
+ locale: jspb.Message.getFieldWithDefault(msg, 6, "")
1225
1226
  };
1226
1227
 
1227
1228
  if (includeInstance) {
@@ -1278,6 +1279,10 @@ proto.cms.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
1278
1279
  var value = /** @type {boolean} */ (reader.readBool());
1279
1280
  msg.setAdminSide(value);
1280
1281
  break;
1282
+ case 6:
1283
+ var value = /** @type {string} */ (reader.readString());
1284
+ msg.setLocale(value);
1285
+ break;
1281
1286
  default:
1282
1287
  reader.skipField();
1283
1288
  break;
@@ -1342,6 +1347,13 @@ proto.cms.PaginationRequest.serializeBinaryToWriter = function(message, writer)
1342
1347
  f
1343
1348
  );
1344
1349
  }
1350
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
1351
+ if (f != null) {
1352
+ writer.writeString(
1353
+ 6,
1354
+ f
1355
+ );
1356
+ }
1345
1357
  };
1346
1358
 
1347
1359
 
@@ -1489,6 +1501,42 @@ proto.cms.PaginationRequest.prototype.hasAdminSide = function() {
1489
1501
  };
1490
1502
 
1491
1503
 
1504
+ /**
1505
+ * optional string locale = 6;
1506
+ * @return {string}
1507
+ */
1508
+ proto.cms.PaginationRequest.prototype.getLocale = function() {
1509
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1510
+ };
1511
+
1512
+
1513
+ /**
1514
+ * @param {string} value
1515
+ * @return {!proto.cms.PaginationRequest} returns this
1516
+ */
1517
+ proto.cms.PaginationRequest.prototype.setLocale = function(value) {
1518
+ return jspb.Message.setField(this, 6, value);
1519
+ };
1520
+
1521
+
1522
+ /**
1523
+ * Clears the field making it undefined.
1524
+ * @return {!proto.cms.PaginationRequest} returns this
1525
+ */
1526
+ proto.cms.PaginationRequest.prototype.clearLocale = function() {
1527
+ return jspb.Message.setField(this, 6, undefined);
1528
+ };
1529
+
1530
+
1531
+ /**
1532
+ * Returns whether this field is set.
1533
+ * @return {boolean}
1534
+ */
1535
+ proto.cms.PaginationRequest.prototype.hasLocale = function() {
1536
+ return jspb.Message.getField(this, 6) != null;
1537
+ };
1538
+
1539
+
1492
1540
 
1493
1541
 
1494
1542
 
@@ -255,4 +255,4 @@ generateText: {
255
255
  },
256
256
  };
257
257
 
258
- exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService);
258
+ exports.ConfigClient = grpc.makeGenericClientConstructor(ConfigService, 'Config');
@@ -41,4 +41,4 @@ var FileService = exports.FileService = {
41
41
  },
42
42
  };
43
43
 
44
- exports.FileClient = grpc.makeGenericClientConstructor(FileService);
44
+ exports.FileClient = grpc.makeGenericClientConstructor(FileService, 'File');
@@ -1803,4 +1803,4 @@ getSegmentedUsers: {
1803
1803
  },
1804
1804
  };
1805
1805
 
1806
- exports.GameClient = grpc.makeGenericClientConstructor(GameService);
1806
+ exports.GameClient = grpc.makeGenericClientConstructor(GameService, 'Game');
@@ -98,4 +98,4 @@ readListUserActivities: {
98
98
  },
99
99
  };
100
100
 
101
- exports.LogClient = grpc.makeGenericClientConstructor(LogService);
101
+ exports.LogClient = grpc.makeGenericClientConstructor(LogService, 'Log');
@@ -363,4 +363,4 @@ getUserLoyalty: {
363
363
  },
364
364
  };
365
365
 
366
- exports.LoyaltyClient = grpc.makeGenericClientConstructor(LoyaltyService);
366
+ exports.LoyaltyClient = grpc.makeGenericClientConstructor(LoyaltyService, 'Loyalty');
@@ -285,4 +285,4 @@ sendNotificationToUsers: {
285
285
  },
286
286
  };
287
287
 
288
- exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService);
288
+ exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService, 'Notification');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -575,4 +575,4 @@ getSegmentedUsers: {
575
575
  },
576
576
  };
577
577
 
578
- exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService);
578
+ exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');
@@ -163,4 +163,4 @@ createSingleCode: {
163
163
  },
164
164
  };
165
165
 
166
- exports.PromocodeClient = grpc.makeGenericClientConstructor(PromocodeService);
166
+ exports.PromocodeClient = grpc.makeGenericClientConstructor(PromocodeService, 'Promocode');
@@ -163,4 +163,4 @@ createSingleTask: {
163
163
  },
164
164
  };
165
165
 
166
- exports.SchedulerClient = grpc.makeGenericClientConstructor(SchedulerService);
166
+ exports.SchedulerClient = grpc.makeGenericClientConstructor(SchedulerService, 'Scheduler');
@@ -406,4 +406,4 @@ readListTournamentStatuses: {
406
406
  },
407
407
  };
408
408
 
409
- exports.TournamentClient = grpc.makeGenericClientConstructor(TournamentService);
409
+ exports.TournamentClient = grpc.makeGenericClientConstructor(TournamentService, 'Tournament');
@@ -1033,4 +1033,4 @@ attemptEmailConfirmation: {
1033
1033
  },
1034
1034
  };
1035
1035
 
1036
- exports.UserClient = grpc.makeGenericClientConstructor(UserService);
1036
+ exports.UserClient = grpc.makeGenericClientConstructor(UserService, 'User');