summaryrefslogtreecommitdiffstats
path: root/ui/src/interfaces.ts
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-31 20:02:20 -0500
committerDessalines <tyhou13@gmx.com>2020-01-31 20:02:20 -0500
commit8036474ddad2f20c27a2fb023395306d6b9e577d (patch)
tree28f3546c9086931f33d9ee6d910c9aa43a5a1f77 /ui/src/interfaces.ts
parent5188bddd4ddb1d4f4bc4add24db210789054c2a5 (diff)
Starting to work on user message scope.
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r--ui/src/interfaces.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts
index bc4b8972..4036f7e6 100644
--- a/ui/src/interfaces.ts
+++ b/ui/src/interfaces.ts
@@ -539,6 +539,7 @@ export interface GetCommunityResponse {
community: Community;
moderators: Array<CommunityUser>;
admins: Array<UserView>;
+ online: number;
}
export interface CommunityResponse {
@@ -595,6 +596,7 @@ export interface GetPostResponse {
community: Community;
moderators: Array<CommunityUser>;
admins: Array<UserView>;
+ online: number;
}
export interface SavePostForm {
@@ -628,6 +630,7 @@ export interface SaveCommentForm {
export interface CommentResponse {
comment: Comment;
+ recipient_ids: Array<number>;
}
export interface CommentLikeForm {
@@ -776,6 +779,14 @@ export interface PrivateMessageResponse {
message: PrivateMessage;
}
+export interface UserJoinForm {
+ auth: string;
+}
+
+export interface UserJoinResponse {
+ user_id: number;
+}
+
export type MessageType =
| EditPrivateMessageForm
| LoginForm