diff options
author | Dessalines <tyhou13@gmx.com> | 2019-10-19 17:46:29 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-10-19 17:46:29 -0700 |
commit | 02dd9ac32a491e7ee41a012b11ff90666455066b (patch) | |
tree | 446a4d3acff2b3b7f17e6ce3a9555143a6f79d53 /ui/src/interfaces.ts | |
parent | 5547ecdeafe09be78c76236fbf01e73c638addf2 (diff) |
Adding username mentions / tagging from comments.
- Fixes #293
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index fa14b238..4056e05d 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -20,6 +20,8 @@ export enum UserOperation { GetFollowedCommunities, GetUserDetails, GetReplies, + GetUserMentions, + EditUserMention, GetModlog, BanFromCommunity, AddModToCommunity, @@ -171,6 +173,8 @@ export interface Comment { user_id?: number; my_vote?: number; saved?: boolean; + user_mention_id?: number; // For mention type + recipient_id?: number; } export interface Category { @@ -229,7 +233,7 @@ export interface UserDetailsResponse { } export interface GetRepliesForm { - sort: string; // TODO figure this one out + sort: string; page?: number; limit?: number; unread_only: boolean; @@ -241,6 +245,30 @@ export interface GetRepliesResponse { replies: Array<Comment>; } +export interface GetUserMentionsForm { + sort: string; + page?: number; + limit?: number; + unread_only: boolean; + auth?: string; +} + +export interface GetUserMentionsResponse { + op: string; + mentions: Array<Comment>; +} + +export interface EditUserMentionForm { + user_mention_id: number; + read?: boolean; + auth?: string; +} + +export interface UserMentionResponse { + op: string; + mention: Comment; +} + export interface BanFromCommunityForm { community_id: number; user_id: number; |