protobuf-platform 1.0.266 → 1.0.268

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.266",
3
+ "version": "1.0.268",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -25,8 +25,12 @@ service User {
25
25
  rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
26
26
  rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
27
27
  rpc fetchUsersFromSegment(PaginationRequest) returns (UsersResponse);
28
- //Risk Status
28
+ //Risk Statuses
29
29
  rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
30
+ //Categories
31
+ rpc readListCategories(PaginationRequest) returns (CategoryItemsResponse);
32
+ //Verification Statuses
33
+ rpc readListVerificationStatuses(PaginationRequest) returns (VerificationStatusItemsResponse);
30
34
  //Dashboard
31
35
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
32
36
  //Notes
@@ -49,6 +53,14 @@ message PaginationRequest {
49
53
  message UserSearchParams {
50
54
  repeated string user_public_ids = 1;
51
55
  repeated int32 user_ids = 2;
56
+ repeated string geo = 3;
57
+ repeated string currency = 4;
58
+ repeated int32 risk_statuses = 5;
59
+ repeated int32 categories = 6;
60
+ repeated int32 verification_statuses = 7;
61
+ optional string email = 8;
62
+ optional string registration_from = 9;
63
+ optional string registration_to = 10;
52
64
  }
53
65
  message SegmentSearchParams {
54
66
  optional string type = 1;
@@ -217,7 +229,7 @@ message SegmentItemsResponse {
217
229
  optional int32 total_pages = 2;
218
230
  optional int32 total_items = 3;
219
231
  }
220
- //Risk Status
232
+ //Statuses
221
233
  message RiskStatus {
222
234
  int32 id = 1;
223
235
  string title = 2;
@@ -228,6 +240,26 @@ message RiskStatusItemsResponse {
228
240
  optional int32 total_pages = 2;
229
241
  optional int32 total_items = 3;
230
242
  }
243
+ message CategoryItem {
244
+ int32 id = 1;
245
+ string title = 2;
246
+ optional string description = 3;
247
+ }
248
+ message CategoryItemsResponse {
249
+ repeated CategoryItem items = 1;
250
+ optional int32 total_pages = 2;
251
+ optional int32 total_items = 3;
252
+ }
253
+ message VerificationStatus {
254
+ int32 id = 1;
255
+ string title = 2;
256
+ optional string description = 3;
257
+ }
258
+ message VerificationStatusItemsResponse {
259
+ repeated VerificationStatus items = 1;
260
+ optional int32 total_pages = 2;
261
+ optional int32 total_items = 3;
262
+ }
231
263
  //Dashboard
232
264
  message DashboardRequest {
233
265
  string start_date = 1;
@@ -4,6 +4,17 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var user_pb = require('./user_pb.js');
6
6
 
7
+ function serialize_user_CategoryItemsResponse(arg) {
8
+ if (!(arg instanceof user_pb.CategoryItemsResponse)) {
9
+ throw new Error('Expected argument of type user.CategoryItemsResponse');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_user_CategoryItemsResponse(buffer_arg) {
15
+ return user_pb.CategoryItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
7
18
  function serialize_user_DashboardRequest(arg) {
8
19
  if (!(arg instanceof user_pb.DashboardRequest)) {
9
20
  throw new Error('Expected argument of type user.DashboardRequest');
@@ -312,6 +323,17 @@ function deserialize_user_UsersResponse(buffer_arg) {
312
323
  return user_pb.UsersResponse.deserializeBinary(new Uint8Array(buffer_arg));
313
324
  }
314
325
 
326
+ function serialize_user_VerificationStatusItemsResponse(arg) {
327
+ if (!(arg instanceof user_pb.VerificationStatusItemsResponse)) {
328
+ throw new Error('Expected argument of type user.VerificationStatusItemsResponse');
329
+ }
330
+ return Buffer.from(arg.serializeBinary());
331
+ }
332
+
333
+ function deserialize_user_VerificationStatusItemsResponse(buffer_arg) {
334
+ return user_pb.VerificationStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
335
+ }
336
+
315
337
 
316
338
  var UserService = exports.UserService = {
317
339
  checkConnection: {
@@ -516,7 +538,7 @@ createSingleSegment: {
516
538
  responseSerialize: serialize_user_UsersResponse,
517
539
  responseDeserialize: deserialize_user_UsersResponse,
518
540
  },
519
- // Risk Status
541
+ // Risk Statuses
520
542
  readListRiskStatuses: {
521
543
  path: '/user.User/readListRiskStatuses',
522
544
  requestStream: false,
@@ -528,6 +550,30 @@ readListRiskStatuses: {
528
550
  responseSerialize: serialize_user_RiskStatusItemsResponse,
529
551
  responseDeserialize: deserialize_user_RiskStatusItemsResponse,
530
552
  },
553
+ // Categories
554
+ readListCategories: {
555
+ path: '/user.User/readListCategories',
556
+ requestStream: false,
557
+ responseStream: false,
558
+ requestType: user_pb.PaginationRequest,
559
+ responseType: user_pb.CategoryItemsResponse,
560
+ requestSerialize: serialize_user_PaginationRequest,
561
+ requestDeserialize: deserialize_user_PaginationRequest,
562
+ responseSerialize: serialize_user_CategoryItemsResponse,
563
+ responseDeserialize: deserialize_user_CategoryItemsResponse,
564
+ },
565
+ // Verification Statuses
566
+ readListVerificationStatuses: {
567
+ path: '/user.User/readListVerificationStatuses',
568
+ requestStream: false,
569
+ responseStream: false,
570
+ requestType: user_pb.PaginationRequest,
571
+ responseType: user_pb.VerificationStatusItemsResponse,
572
+ requestSerialize: serialize_user_PaginationRequest,
573
+ requestDeserialize: deserialize_user_PaginationRequest,
574
+ responseSerialize: serialize_user_VerificationStatusItemsResponse,
575
+ responseDeserialize: deserialize_user_VerificationStatusItemsResponse,
576
+ },
531
577
  // Dashboard
532
578
  getDashboardInfo: {
533
579
  path: '/user.User/getDashboardInfo',