From 02dd9ac32a491e7ee41a012b11ff90666455066b Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 19 Oct 2019 17:46:29 -0700 Subject: Adding username mentions / tagging from comments. - Fixes #293 --- ui/src/interfaces.ts | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) (limited to 'ui/src/interfaces.ts') 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; } +export interface GetUserMentionsForm { + sort: string; + page?: number; + limit?: number; + unread_only: boolean; + auth?: string; +} + +export interface GetUserMentionsResponse { + op: string; + mentions: Array; +} + +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; -- cgit v1.2.3