diff options
author | Dessalines <tyhou13@gmx.com> | 2020-01-30 21:15:58 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-01-30 21:15:58 -0500 |
commit | 5188bddd4ddb1d4f4bc4add24db210789054c2a5 (patch) | |
tree | f68f8cebb4189acb591bbd129fa052b1d09619d6 /ui/src/interfaces.ts | |
parent | 65adb0d15dcb10382dadca2694ee17b206c384fd (diff) | |
parent | 8cbdba1da39c15d2a3d13919398fc4d4c8ef2c6c (diff) |
Merge branch 'dev' into websocket_scopes
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index 5022d817..bc4b8972 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -48,6 +48,7 @@ export enum CommentSortType { Hot, Top, New, + Old, } export enum ListingType { @@ -249,6 +250,10 @@ export interface FollowCommunityForm { auth?: string; } +export interface GetFollowedCommunitiesForm { + auth: string; +} + export interface GetFollowedCommunitiesResponse { communities: Array<CommunityUser>; } @@ -524,6 +529,12 @@ export interface CommunityForm { auth?: string; } +export interface GetCommunityForm { + id?: number; + name?: string; + auth?: string; +} + export interface GetCommunityResponse { community: Community; moderators: Array<CommunityUser>; @@ -573,6 +584,11 @@ export interface PostFormParams { community?: string; } +export interface GetPostForm { + id: number; + auth?: string; +} + export interface GetPostResponse { post: Post; comments: Array<Comment>; @@ -760,6 +776,45 @@ export interface PrivateMessageResponse { message: PrivateMessage; } +export type MessageType = + | EditPrivateMessageForm + | LoginForm + | RegisterForm + | CommunityForm + | FollowCommunityForm + | ListCommunitiesForm + | GetFollowedCommunitiesForm + | PostForm + | GetPostForm + | GetPostsForm + | GetCommunityForm + | CommentForm + | CommentLikeForm + | SaveCommentForm + | CreatePostLikeForm + | BanFromCommunityForm + | AddAdminForm + | AddModToCommunityForm + | TransferCommunityForm + | TransferSiteForm + | SaveCommentForm + | BanUserForm + | AddAdminForm + | GetUserDetailsForm + | GetRepliesForm + | GetUserMentionsForm + | EditUserMentionForm + | GetModlogForm + | SiteForm + | SearchForm + | UserSettingsForm + | DeleteAccountForm + | PasswordResetForm + | PasswordChangeForm + | PrivateMessageForm + | EditPrivateMessageForm + | GetPrivateMessagesForm; + type ResponseType = | SiteResponse | GetFollowedCommunitiesResponse |