protobuf-platform 1.0.210 → 1.0.212
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 +25 -0
- package/bet/bet_grpc_pb.js +34 -0
- package/bet/bet_pb.js +1131 -0
- package/package.json +1 -1
- package/user/user.proto +24 -0
- package/user/user_grpc_pb.js +57 -0
- package/user/user_pb.js +908 -0
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -24,6 +24,10 @@ service User {
|
|
24
24
|
rpc addUsersIntoSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
25
25
|
rpc addUsersIntoMultiSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
26
26
|
rpc removeUsersFromSegments(GetSegmentRequest) returns (SegmentStatusResponse);
|
27
|
+
//Risk Status
|
28
|
+
rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
|
29
|
+
//Dashboard
|
30
|
+
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
27
31
|
}
|
28
32
|
|
29
33
|
message PingRequest { string ping = 1; }
|
@@ -199,3 +203,23 @@ message SegmentItemsResponse {
|
|
199
203
|
optional int32 total_pages = 2;
|
200
204
|
optional int32 total_items = 3;
|
201
205
|
}
|
206
|
+
//Risk Status
|
207
|
+
message RiskStatus {
|
208
|
+
int32 id = 1;
|
209
|
+
string title = 2;
|
210
|
+
optional string description = 3;
|
211
|
+
}
|
212
|
+
message RiskStatusItemsResponse {
|
213
|
+
repeated RiskStatus items = 1;
|
214
|
+
optional int32 total_pages = 2;
|
215
|
+
optional int32 total_items = 3;
|
216
|
+
}
|
217
|
+
//Dashboard
|
218
|
+
message DashboardRequest {
|
219
|
+
string start_date = 1;
|
220
|
+
string end_date = 2;
|
221
|
+
}
|
222
|
+
message DashboardResponse {
|
223
|
+
optional int32 registration_count = 1;
|
224
|
+
optional int32 login_count = 2;
|
225
|
+
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -4,6 +4,28 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var user_pb = require('./user_pb.js');
|
6
6
|
|
7
|
+
function serialize_user_DashboardRequest(arg) {
|
8
|
+
if (!(arg instanceof user_pb.DashboardRequest)) {
|
9
|
+
throw new Error('Expected argument of type user.DashboardRequest');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_user_DashboardRequest(buffer_arg) {
|
15
|
+
return user_pb.DashboardRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_user_DashboardResponse(arg) {
|
19
|
+
if (!(arg instanceof user_pb.DashboardResponse)) {
|
20
|
+
throw new Error('Expected argument of type user.DashboardResponse');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_user_DashboardResponse(buffer_arg) {
|
26
|
+
return user_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
7
29
|
function serialize_user_GetRoleRequest(arg) {
|
8
30
|
if (!(arg instanceof user_pb.GetRoleRequest)) {
|
9
31
|
throw new Error('Expected argument of type user.GetRoleRequest');
|
@@ -92,6 +114,17 @@ function deserialize_user_RegistrationRequest(buffer_arg) {
|
|
92
114
|
return user_pb.RegistrationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
93
115
|
}
|
94
116
|
|
117
|
+
function serialize_user_RiskStatusItemsResponse(arg) {
|
118
|
+
if (!(arg instanceof user_pb.RiskStatusItemsResponse)) {
|
119
|
+
throw new Error('Expected argument of type user.RiskStatusItemsResponse');
|
120
|
+
}
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
122
|
+
}
|
123
|
+
|
124
|
+
function deserialize_user_RiskStatusItemsResponse(buffer_arg) {
|
125
|
+
return user_pb.RiskStatusItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
126
|
+
}
|
127
|
+
|
95
128
|
function serialize_user_Role(arg) {
|
96
129
|
if (!(arg instanceof user_pb.Role)) {
|
97
130
|
throw new Error('Expected argument of type user.Role');
|
@@ -417,6 +450,30 @@ createSingleSegment: {
|
|
417
450
|
responseSerialize: serialize_user_SegmentStatusResponse,
|
418
451
|
responseDeserialize: deserialize_user_SegmentStatusResponse,
|
419
452
|
},
|
453
|
+
// Risk Status
|
454
|
+
readListRiskStatuses: {
|
455
|
+
path: '/user.User/readListRiskStatuses',
|
456
|
+
requestStream: false,
|
457
|
+
responseStream: false,
|
458
|
+
requestType: user_pb.PaginationRequest,
|
459
|
+
responseType: user_pb.RiskStatusItemsResponse,
|
460
|
+
requestSerialize: serialize_user_PaginationRequest,
|
461
|
+
requestDeserialize: deserialize_user_PaginationRequest,
|
462
|
+
responseSerialize: serialize_user_RiskStatusItemsResponse,
|
463
|
+
responseDeserialize: deserialize_user_RiskStatusItemsResponse,
|
464
|
+
},
|
465
|
+
// Dashboard
|
466
|
+
getDashboardInfo: {
|
467
|
+
path: '/user.User/getDashboardInfo',
|
468
|
+
requestStream: false,
|
469
|
+
responseStream: false,
|
470
|
+
requestType: user_pb.DashboardRequest,
|
471
|
+
responseType: user_pb.DashboardResponse,
|
472
|
+
requestSerialize: serialize_user_DashboardRequest,
|
473
|
+
requestDeserialize: deserialize_user_DashboardRequest,
|
474
|
+
responseSerialize: serialize_user_DashboardResponse,
|
475
|
+
responseDeserialize: deserialize_user_DashboardResponse,
|
476
|
+
},
|
420
477
|
};
|
421
478
|
|
422
479
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|