protobuf-platform 1.0.230 → 1.0.231
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 +1 -1
- package/user/user.proto +33 -0
- package/user/user_grpc_pb.js +111 -0
- package/user/user_pb.js +1514 -113
package/package.json
CHANGED
package/user/user.proto
CHANGED
@@ -29,6 +29,12 @@ service User {
|
|
29
29
|
rpc readListRiskStatuses(PaginationRequest) returns (RiskStatusItemsResponse);
|
30
30
|
//Dashboard
|
31
31
|
rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
|
32
|
+
//Notes
|
33
|
+
rpc createSingleNote(NoteRequest) returns (NoteItem);
|
34
|
+
rpc readSingleNote(GetNoteRequest) returns (NoteItem);
|
35
|
+
rpc updateSingleNote(NoteRequest) returns (NoteItem);
|
36
|
+
rpc deleteSingleNote(GetNoteRequest) returns (NoteStatusResponse);
|
37
|
+
rpc readListNotes(PaginationRequest) returns (NoteItemsResponse);
|
32
38
|
}
|
33
39
|
|
34
40
|
message PingRequest { string ping = 1; }
|
@@ -38,6 +44,7 @@ message PaginationRequest {
|
|
38
44
|
int32 offset = 2;
|
39
45
|
optional UserSearchParams user_search_params = 3;
|
40
46
|
optional SegmentSearchParams segment_search_params = 4;
|
47
|
+
optional NoteSearchParams note_search_params = 5;
|
41
48
|
}
|
42
49
|
message UserSearchParams {
|
43
50
|
repeated string user_public_ids = 1;
|
@@ -48,6 +55,9 @@ message SegmentSearchParams {
|
|
48
55
|
optional string geo = 2;
|
49
56
|
optional int32 segment_id = 3;
|
50
57
|
}
|
58
|
+
message NoteSearchParams {
|
59
|
+
optional int32 user_id = 2;
|
60
|
+
}
|
51
61
|
|
52
62
|
//Auth [Registration & Login]
|
53
63
|
message RegistrationRequest {
|
@@ -227,3 +237,26 @@ message DashboardResponse {
|
|
227
237
|
optional int32 registration_count = 1;
|
228
238
|
optional int32 login_count = 2;
|
229
239
|
}
|
240
|
+
//Notes
|
241
|
+
message NoteRequest {
|
242
|
+
optional int32 id = 1;
|
243
|
+
optional string content = 2;
|
244
|
+
optional int32 user_id = 3;
|
245
|
+
optional int32 maker_id = 4;
|
246
|
+
}
|
247
|
+
message NoteItem {
|
248
|
+
optional int32 id = 1;
|
249
|
+
optional string content = 2;
|
250
|
+
optional string created = 3;
|
251
|
+
}
|
252
|
+
message NoteItemsResponse {
|
253
|
+
repeated NoteItem items = 1;
|
254
|
+
optional int32 total_pages = 2;
|
255
|
+
optional int32 total_items = 3;
|
256
|
+
}
|
257
|
+
message NoteStatusResponse {
|
258
|
+
string status = 1;
|
259
|
+
}
|
260
|
+
message GetNoteRequest {
|
261
|
+
optional int32 id = 1;
|
262
|
+
}
|
package/user/user_grpc_pb.js
CHANGED
@@ -26,6 +26,17 @@ function deserialize_user_DashboardResponse(buffer_arg) {
|
|
26
26
|
return user_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
27
27
|
}
|
28
28
|
|
29
|
+
function serialize_user_GetNoteRequest(arg) {
|
30
|
+
if (!(arg instanceof user_pb.GetNoteRequest)) {
|
31
|
+
throw new Error('Expected argument of type user.GetNoteRequest');
|
32
|
+
}
|
33
|
+
return Buffer.from(arg.serializeBinary());
|
34
|
+
}
|
35
|
+
|
36
|
+
function deserialize_user_GetNoteRequest(buffer_arg) {
|
37
|
+
return user_pb.GetNoteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
38
|
+
}
|
39
|
+
|
29
40
|
function serialize_user_GetRoleRequest(arg) {
|
30
41
|
if (!(arg instanceof user_pb.GetRoleRequest)) {
|
31
42
|
throw new Error('Expected argument of type user.GetRoleRequest');
|
@@ -70,6 +81,50 @@ function deserialize_user_LoginRequest(buffer_arg) {
|
|
70
81
|
return user_pb.LoginRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
71
82
|
}
|
72
83
|
|
84
|
+
function serialize_user_NoteItem(arg) {
|
85
|
+
if (!(arg instanceof user_pb.NoteItem)) {
|
86
|
+
throw new Error('Expected argument of type user.NoteItem');
|
87
|
+
}
|
88
|
+
return Buffer.from(arg.serializeBinary());
|
89
|
+
}
|
90
|
+
|
91
|
+
function deserialize_user_NoteItem(buffer_arg) {
|
92
|
+
return user_pb.NoteItem.deserializeBinary(new Uint8Array(buffer_arg));
|
93
|
+
}
|
94
|
+
|
95
|
+
function serialize_user_NoteItemsResponse(arg) {
|
96
|
+
if (!(arg instanceof user_pb.NoteItemsResponse)) {
|
97
|
+
throw new Error('Expected argument of type user.NoteItemsResponse');
|
98
|
+
}
|
99
|
+
return Buffer.from(arg.serializeBinary());
|
100
|
+
}
|
101
|
+
|
102
|
+
function deserialize_user_NoteItemsResponse(buffer_arg) {
|
103
|
+
return user_pb.NoteItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
104
|
+
}
|
105
|
+
|
106
|
+
function serialize_user_NoteRequest(arg) {
|
107
|
+
if (!(arg instanceof user_pb.NoteRequest)) {
|
108
|
+
throw new Error('Expected argument of type user.NoteRequest');
|
109
|
+
}
|
110
|
+
return Buffer.from(arg.serializeBinary());
|
111
|
+
}
|
112
|
+
|
113
|
+
function deserialize_user_NoteRequest(buffer_arg) {
|
114
|
+
return user_pb.NoteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
115
|
+
}
|
116
|
+
|
117
|
+
function serialize_user_NoteStatusResponse(arg) {
|
118
|
+
if (!(arg instanceof user_pb.NoteStatusResponse)) {
|
119
|
+
throw new Error('Expected argument of type user.NoteStatusResponse');
|
120
|
+
}
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
122
|
+
}
|
123
|
+
|
124
|
+
function deserialize_user_NoteStatusResponse(buffer_arg) {
|
125
|
+
return user_pb.NoteStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
126
|
+
}
|
127
|
+
|
73
128
|
function serialize_user_PaginationRequest(arg) {
|
74
129
|
if (!(arg instanceof user_pb.PaginationRequest)) {
|
75
130
|
throw new Error('Expected argument of type user.PaginationRequest');
|
@@ -485,6 +540,62 @@ getDashboardInfo: {
|
|
485
540
|
responseSerialize: serialize_user_DashboardResponse,
|
486
541
|
responseDeserialize: deserialize_user_DashboardResponse,
|
487
542
|
},
|
543
|
+
// Notes
|
544
|
+
createSingleNote: {
|
545
|
+
path: '/user.User/createSingleNote',
|
546
|
+
requestStream: false,
|
547
|
+
responseStream: false,
|
548
|
+
requestType: user_pb.NoteRequest,
|
549
|
+
responseType: user_pb.NoteItem,
|
550
|
+
requestSerialize: serialize_user_NoteRequest,
|
551
|
+
requestDeserialize: deserialize_user_NoteRequest,
|
552
|
+
responseSerialize: serialize_user_NoteItem,
|
553
|
+
responseDeserialize: deserialize_user_NoteItem,
|
554
|
+
},
|
555
|
+
readSingleNote: {
|
556
|
+
path: '/user.User/readSingleNote',
|
557
|
+
requestStream: false,
|
558
|
+
responseStream: false,
|
559
|
+
requestType: user_pb.GetNoteRequest,
|
560
|
+
responseType: user_pb.NoteItem,
|
561
|
+
requestSerialize: serialize_user_GetNoteRequest,
|
562
|
+
requestDeserialize: deserialize_user_GetNoteRequest,
|
563
|
+
responseSerialize: serialize_user_NoteItem,
|
564
|
+
responseDeserialize: deserialize_user_NoteItem,
|
565
|
+
},
|
566
|
+
updateSingleNote: {
|
567
|
+
path: '/user.User/updateSingleNote',
|
568
|
+
requestStream: false,
|
569
|
+
responseStream: false,
|
570
|
+
requestType: user_pb.NoteRequest,
|
571
|
+
responseType: user_pb.NoteItem,
|
572
|
+
requestSerialize: serialize_user_NoteRequest,
|
573
|
+
requestDeserialize: deserialize_user_NoteRequest,
|
574
|
+
responseSerialize: serialize_user_NoteItem,
|
575
|
+
responseDeserialize: deserialize_user_NoteItem,
|
576
|
+
},
|
577
|
+
deleteSingleNote: {
|
578
|
+
path: '/user.User/deleteSingleNote',
|
579
|
+
requestStream: false,
|
580
|
+
responseStream: false,
|
581
|
+
requestType: user_pb.GetNoteRequest,
|
582
|
+
responseType: user_pb.NoteStatusResponse,
|
583
|
+
requestSerialize: serialize_user_GetNoteRequest,
|
584
|
+
requestDeserialize: deserialize_user_GetNoteRequest,
|
585
|
+
responseSerialize: serialize_user_NoteStatusResponse,
|
586
|
+
responseDeserialize: deserialize_user_NoteStatusResponse,
|
587
|
+
},
|
588
|
+
readListNotes: {
|
589
|
+
path: '/user.User/readListNotes',
|
590
|
+
requestStream: false,
|
591
|
+
responseStream: false,
|
592
|
+
requestType: user_pb.PaginationRequest,
|
593
|
+
responseType: user_pb.NoteItemsResponse,
|
594
|
+
requestSerialize: serialize_user_PaginationRequest,
|
595
|
+
requestDeserialize: deserialize_user_PaginationRequest,
|
596
|
+
responseSerialize: serialize_user_NoteItemsResponse,
|
597
|
+
responseDeserialize: deserialize_user_NoteItemsResponse,
|
598
|
+
},
|
488
599
|
};
|
489
600
|
|
490
601
|
exports.UserClient = grpc.makeGenericClientConstructor(UserService);
|