@mamindom/contracts 1.0.51 → 1.0.52
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/dist/gen/common_post.d.ts +18 -0
- package/dist/gen/common_post.js +11 -0
- package/dist/gen/post.d.ts +304 -0
- package/dist/gen/post.js +55 -0
- package/dist/gen/post_category.d.ts +104 -0
- package/dist/gen/post_category.js +43 -0
- package/dist/gen/post_comment.d.ts +54 -0
- package/dist/gen/post_comment.js +36 -0
- package/dist/gen/post_tag.d.ts +68 -0
- package/dist/gen/post_tag.js +28 -0
- package/dist/gen/post_version.d.ts +73 -0
- package/dist/gen/post_version.js +28 -0
- package/dist/proto/common_post.proto +23 -0
- package/dist/proto/post.proto +193 -0
- package/dist/proto/post_category.proto +84 -0
- package/dist/proto/post_comment.proto +66 -0
- package/dist/proto/post_tag.proto +57 -0
- package/dist/proto/post_version.proto +61 -0
- package/dist/src/proto/paths.d.ts +6 -1
- package/dist/src/proto/paths.js +6 -1
- package/gen/common_post.ts +31 -0
- package/gen/post.ts +346 -0
- package/gen/post_category.ts +157 -0
- package/gen/post_comment.ts +99 -0
- package/gen/post_tag.ts +113 -0
- package/gen/post_version.ts +112 -0
- package/package.json +1 -1
- package/proto/common_post.proto +23 -0
- package/proto/post.proto +193 -0
- package/proto/post_category.proto +84 -0
- package/proto/post_comment.proto +66 -0
- package/proto/post_tag.proto +57 -0
- package/proto/post_version.proto +61 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package content.v1;
|
|
4
|
+
|
|
5
|
+
import "common_post.proto";
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
service PostVersionService {
|
|
9
|
+
|
|
10
|
+
rpc GetPostVersions (GetPostVersionsRequest) returns (GetPostVersionsResponse);
|
|
11
|
+
|
|
12
|
+
rpc GetPostVersion (GetPostVersionRequest) returns (PostVersionResponse);
|
|
13
|
+
|
|
14
|
+
rpc RestorePostVersion (RestorePostVersionRequest) returns (SuccessResponse);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
message PostVersionResponse {
|
|
19
|
+
string id = 1;
|
|
20
|
+
string post_id = 2;
|
|
21
|
+
|
|
22
|
+
map<string, string> title = 3;
|
|
23
|
+
map<string, string> excerpt = 4;
|
|
24
|
+
map<string, string> content = 5;
|
|
25
|
+
|
|
26
|
+
int32 version = 6;
|
|
27
|
+
string saved_by_id = 7;
|
|
28
|
+
string created_at = 8;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
message PostVersionListItem {
|
|
33
|
+
string id = 1;
|
|
34
|
+
string post_id = 2;
|
|
35
|
+
int32 version = 3;
|
|
36
|
+
string saved_by_id = 4;
|
|
37
|
+
string created_at = 5;
|
|
38
|
+
map<string, string> title = 6;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
message GetPostVersionsRequest {
|
|
43
|
+
string post_id = 1;
|
|
44
|
+
PaginationRequest pagination = 2;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
message GetPostVersionsResponse {
|
|
48
|
+
repeated PostVersionListItem items = 1;
|
|
49
|
+
PaginationMeta meta = 2;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
message GetPostVersionRequest {
|
|
54
|
+
string id = 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
message RestorePostVersionRequest {
|
|
59
|
+
string version_id = 1;
|
|
60
|
+
string restored_by_id = 2;
|
|
61
|
+
}
|