protobuf-platform 1.2.9 → 1.2.10

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/bet/bet.proto CHANGED
@@ -120,5 +120,5 @@ message AxiomCheckSessionRequest {
120
120
  string hash = 1;
121
121
  }
122
122
  message AxiomCheckSessionResponse {
123
-
123
+ repeated string user_groups = 1;
124
124
  }
package/bet/bet_pb.js CHANGED
@@ -341,7 +341,7 @@ if (goog.DEBUG && !COMPILED) {
341
341
  * @constructor
342
342
  */
343
343
  proto.bet.AxiomCheckSessionResponse = function(opt_data) {
344
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
344
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bet.AxiomCheckSessionResponse.repeatedFields_, null);
345
345
  };
346
346
  goog.inherits(proto.bet.AxiomCheckSessionResponse, jspb.Message);
347
347
  if (goog.DEBUG && !COMPILED) {
@@ -5218,6 +5218,13 @@ proto.bet.AxiomCheckSessionRequest.prototype.setHash = function(value) {
5218
5218
 
5219
5219
 
5220
5220
 
5221
+ /**
5222
+ * List of repeated fields within this message type.
5223
+ * @private {!Array<number>}
5224
+ * @const
5225
+ */
5226
+ proto.bet.AxiomCheckSessionResponse.repeatedFields_ = [1];
5227
+
5221
5228
 
5222
5229
 
5223
5230
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -5249,7 +5256,7 @@ proto.bet.AxiomCheckSessionResponse.prototype.toObject = function(opt_includeIns
5249
5256
  */
5250
5257
  proto.bet.AxiomCheckSessionResponse.toObject = function(includeInstance, msg) {
5251
5258
  var f, obj = {
5252
-
5259
+ userGroupsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
5253
5260
  };
5254
5261
 
5255
5262
  if (includeInstance) {
@@ -5286,6 +5293,10 @@ proto.bet.AxiomCheckSessionResponse.deserializeBinaryFromReader = function(msg,
5286
5293
  }
5287
5294
  var field = reader.getFieldNumber();
5288
5295
  switch (field) {
5296
+ case 1:
5297
+ var value = /** @type {string} */ (reader.readString());
5298
+ msg.addUserGroups(value);
5299
+ break;
5289
5300
  default:
5290
5301
  reader.skipField();
5291
5302
  break;
@@ -5315,6 +5326,50 @@ proto.bet.AxiomCheckSessionResponse.prototype.serializeBinary = function() {
5315
5326
  */
5316
5327
  proto.bet.AxiomCheckSessionResponse.serializeBinaryToWriter = function(message, writer) {
5317
5328
  var f = undefined;
5329
+ f = message.getUserGroupsList();
5330
+ if (f.length > 0) {
5331
+ writer.writeRepeatedString(
5332
+ 1,
5333
+ f
5334
+ );
5335
+ }
5336
+ };
5337
+
5338
+
5339
+ /**
5340
+ * repeated string user_groups = 1;
5341
+ * @return {!Array<string>}
5342
+ */
5343
+ proto.bet.AxiomCheckSessionResponse.prototype.getUserGroupsList = function() {
5344
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
5345
+ };
5346
+
5347
+
5348
+ /**
5349
+ * @param {!Array<string>} value
5350
+ * @return {!proto.bet.AxiomCheckSessionResponse} returns this
5351
+ */
5352
+ proto.bet.AxiomCheckSessionResponse.prototype.setUserGroupsList = function(value) {
5353
+ return jspb.Message.setField(this, 1, value || []);
5354
+ };
5355
+
5356
+
5357
+ /**
5358
+ * @param {string} value
5359
+ * @param {number=} opt_index
5360
+ * @return {!proto.bet.AxiomCheckSessionResponse} returns this
5361
+ */
5362
+ proto.bet.AxiomCheckSessionResponse.prototype.addUserGroups = function(value, opt_index) {
5363
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
5364
+ };
5365
+
5366
+
5367
+ /**
5368
+ * Clears the list making it empty but non-null.
5369
+ * @return {!proto.bet.AxiomCheckSessionResponse} returns this
5370
+ */
5371
+ proto.bet.AxiomCheckSessionResponse.prototype.clearUserGroupsList = function() {
5372
+ return this.setUserGroupsList([]);
5318
5373
  };
5319
5374
 
5320
5375
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -29,6 +29,7 @@ service User {
29
29
  rpc fetchUsersFromSegment(PaginationRequest) returns (UsersResponse);
30
30
  rpc setSegmentRule(SegmentRuleRequest) returns (SegmentStatusResponse);
31
31
  rpc getSegmentRule(GetSegmentRuleRequest) returns (SegmentRuleItem);
32
+ rpc getSegmentsForParticularUser(GetSegmentRequest) returns (SegmentItemsResponse);
32
33
  //Risk Statuses
33
34
  rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
34
35
  //Categories
@@ -802,6 +802,17 @@ createSingleSegment: {
802
802
  responseSerialize: serialize_user_SegmentRuleItem,
803
803
  responseDeserialize: deserialize_user_SegmentRuleItem,
804
804
  },
805
+ getSegmentsForParticularUser: {
806
+ path: '/user.User/getSegmentsForParticularUser',
807
+ requestStream: false,
808
+ responseStream: false,
809
+ requestType: user_pb.GetSegmentRequest,
810
+ responseType: user_pb.SegmentItemsResponse,
811
+ requestSerialize: serialize_user_GetSegmentRequest,
812
+ requestDeserialize: deserialize_user_GetSegmentRequest,
813
+ responseSerialize: serialize_user_SegmentItemsResponse,
814
+ responseDeserialize: deserialize_user_SegmentItemsResponse,
815
+ },
805
816
  // Risk Statuses
806
817
  readListRiskStatuses: {
807
818
  path: '/user.User/readListRiskStatuses',