protobuf-platform 1.2.8 → 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.8",
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
@@ -131,6 +132,7 @@ message LoggedInResponse {
131
132
  optional string first_name = 8;
132
133
  optional string last_name = 9;
133
134
  optional string session_id = 10;
135
+ optional string axiom_session_hash = 11;
134
136
  }
135
137
  message LoginRequest {
136
138
  string email = 1;
@@ -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',
package/user/user_pb.js CHANGED
@@ -4596,7 +4596,8 @@ proto.user.LoggedInResponse.toObject = function(includeInstance, msg) {
4596
4596
  locale: jspb.Message.getFieldWithDefault(msg, 7, ""),
4597
4597
  firstName: jspb.Message.getFieldWithDefault(msg, 8, ""),
4598
4598
  lastName: jspb.Message.getFieldWithDefault(msg, 9, ""),
4599
- sessionId: jspb.Message.getFieldWithDefault(msg, 10, "")
4599
+ sessionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
4600
+ axiomSessionHash: jspb.Message.getFieldWithDefault(msg, 11, "")
4600
4601
  };
4601
4602
 
4602
4603
  if (includeInstance) {
@@ -4673,6 +4674,10 @@ proto.user.LoggedInResponse.deserializeBinaryFromReader = function(msg, reader)
4673
4674
  var value = /** @type {string} */ (reader.readString());
4674
4675
  msg.setSessionId(value);
4675
4676
  break;
4677
+ case 11:
4678
+ var value = /** @type {string} */ (reader.readString());
4679
+ msg.setAxiomSessionHash(value);
4680
+ break;
4676
4681
  default:
4677
4682
  reader.skipField();
4678
4683
  break;
@@ -4772,6 +4777,13 @@ proto.user.LoggedInResponse.serializeBinaryToWriter = function(message, writer)
4772
4777
  f
4773
4778
  );
4774
4779
  }
4780
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
4781
+ if (f != null) {
4782
+ writer.writeString(
4783
+ 11,
4784
+ f
4785
+ );
4786
+ }
4775
4787
  };
4776
4788
 
4777
4789
 
@@ -5009,6 +5021,42 @@ proto.user.LoggedInResponse.prototype.hasSessionId = function() {
5009
5021
  };
5010
5022
 
5011
5023
 
5024
+ /**
5025
+ * optional string axiom_session_hash = 11;
5026
+ * @return {string}
5027
+ */
5028
+ proto.user.LoggedInResponse.prototype.getAxiomSessionHash = function() {
5029
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
5030
+ };
5031
+
5032
+
5033
+ /**
5034
+ * @param {string} value
5035
+ * @return {!proto.user.LoggedInResponse} returns this
5036
+ */
5037
+ proto.user.LoggedInResponse.prototype.setAxiomSessionHash = function(value) {
5038
+ return jspb.Message.setField(this, 11, value);
5039
+ };
5040
+
5041
+
5042
+ /**
5043
+ * Clears the field making it undefined.
5044
+ * @return {!proto.user.LoggedInResponse} returns this
5045
+ */
5046
+ proto.user.LoggedInResponse.prototype.clearAxiomSessionHash = function() {
5047
+ return jspb.Message.setField(this, 11, undefined);
5048
+ };
5049
+
5050
+
5051
+ /**
5052
+ * Returns whether this field is set.
5053
+ * @return {boolean}
5054
+ */
5055
+ proto.user.LoggedInResponse.prototype.hasAxiomSessionHash = function() {
5056
+ return jspb.Message.getField(this, 11) != null;
5057
+ };
5058
+
5059
+
5012
5060
 
5013
5061
 
5014
5062