protobuf-platform 1.0.228 → 1.0.230

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.228",
3
+ "version": "1.0.230",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -24,7 +24,7 @@ service User {
24
24
  rpc addUsersIntoSegments(GetSegmentRequest) returns (SegmentStatusResponse);
25
25
  rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
26
26
  rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
27
- rpc fetchUsersFromSegment(GetSegmentRequest) returns (UsersResponse);
27
+ rpc fetchUsersFromSegment(PaginationRequest) returns (UsersResponse);
28
28
  //Risk Status
29
29
  rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
30
30
  //Dashboard
@@ -46,6 +46,7 @@ message UserSearchParams {
46
46
  message SegmentSearchParams {
47
47
  optional string type = 1;
48
48
  optional string geo = 2;
49
+ optional int32 segment_id = 3;
49
50
  }
50
51
 
51
52
  //Auth [Registration & Login]
@@ -454,10 +454,10 @@ createSingleSegment: {
454
454
  path: '/user.User/fetchUsersFromSegment',
455
455
  requestStream: false,
456
456
  responseStream: false,
457
- requestType: user_pb.GetSegmentRequest,
457
+ requestType: user_pb.PaginationRequest,
458
458
  responseType: user_pb.UsersResponse,
459
- requestSerialize: serialize_user_GetSegmentRequest,
460
- requestDeserialize: deserialize_user_GetSegmentRequest,
459
+ requestSerialize: serialize_user_PaginationRequest,
460
+ requestDeserialize: deserialize_user_PaginationRequest,
461
461
  responseSerialize: serialize_user_UsersResponse,
462
462
  responseDeserialize: deserialize_user_UsersResponse,
463
463
  },
package/user/user_pb.js CHANGED
@@ -1377,7 +1377,8 @@ proto.user.SegmentSearchParams.prototype.toObject = function(opt_includeInstance
1377
1377
  proto.user.SegmentSearchParams.toObject = function(includeInstance, msg) {
1378
1378
  var f, obj = {
1379
1379
  type: jspb.Message.getFieldWithDefault(msg, 1, ""),
1380
- geo: jspb.Message.getFieldWithDefault(msg, 2, "")
1380
+ geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
1381
+ segmentId: jspb.Message.getFieldWithDefault(msg, 3, 0)
1381
1382
  };
1382
1383
 
1383
1384
  if (includeInstance) {
@@ -1422,6 +1423,10 @@ proto.user.SegmentSearchParams.deserializeBinaryFromReader = function(msg, reade
1422
1423
  var value = /** @type {string} */ (reader.readString());
1423
1424
  msg.setGeo(value);
1424
1425
  break;
1426
+ case 3:
1427
+ var value = /** @type {number} */ (reader.readInt32());
1428
+ msg.setSegmentId(value);
1429
+ break;
1425
1430
  default:
1426
1431
  reader.skipField();
1427
1432
  break;
@@ -1465,6 +1470,13 @@ proto.user.SegmentSearchParams.serializeBinaryToWriter = function(message, write
1465
1470
  f
1466
1471
  );
1467
1472
  }
1473
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
1474
+ if (f != null) {
1475
+ writer.writeInt32(
1476
+ 3,
1477
+ f
1478
+ );
1479
+ }
1468
1480
  };
1469
1481
 
1470
1482
 
@@ -1540,6 +1552,42 @@ proto.user.SegmentSearchParams.prototype.hasGeo = function() {
1540
1552
  };
1541
1553
 
1542
1554
 
1555
+ /**
1556
+ * optional int32 segment_id = 3;
1557
+ * @return {number}
1558
+ */
1559
+ proto.user.SegmentSearchParams.prototype.getSegmentId = function() {
1560
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1561
+ };
1562
+
1563
+
1564
+ /**
1565
+ * @param {number} value
1566
+ * @return {!proto.user.SegmentSearchParams} returns this
1567
+ */
1568
+ proto.user.SegmentSearchParams.prototype.setSegmentId = function(value) {
1569
+ return jspb.Message.setField(this, 3, value);
1570
+ };
1571
+
1572
+
1573
+ /**
1574
+ * Clears the field making it undefined.
1575
+ * @return {!proto.user.SegmentSearchParams} returns this
1576
+ */
1577
+ proto.user.SegmentSearchParams.prototype.clearSegmentId = function() {
1578
+ return jspb.Message.setField(this, 3, undefined);
1579
+ };
1580
+
1581
+
1582
+ /**
1583
+ * Returns whether this field is set.
1584
+ * @return {boolean}
1585
+ */
1586
+ proto.user.SegmentSearchParams.prototype.hasSegmentId = function() {
1587
+ return jspb.Message.getField(this, 3) != null;
1588
+ };
1589
+
1590
+
1543
1591
 
1544
1592
 
1545
1593