summaryrefslogtreecommitdiffstats
path: root/ui/src/interfaces.ts
diff options
context:
space:
mode:
authorDessalines <happydooby@gmail.com>2019-04-17 11:30:13 -0700
committerDessalines <happydooby@gmail.com>2019-04-17 11:30:13 -0700
commit335cabc1aad31aec828223e592fbe8b37a58de30 (patch)
tree29ebd8c37bd901e626e187fd02c906016f6bc6c8 /ui/src/interfaces.ts
parentbfe87a7ec6d83240d270b1bb7f717b1dfa48d83b (diff)
Adding post and user details paging.
- Fixes #52 - Fixes #34
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r--ui/src/interfaces.ts10
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts
index 869fb60b..6affc0e1 100644
--- a/ui/src/interfaces.ts
+++ b/ui/src/interfaces.ts
@@ -134,7 +134,8 @@ export interface GetFollowedCommunitiesResponse {
export interface GetUserDetailsForm {
user_id: number;
sort: string; // TODO figure this one out
- limit: number;
+ page?: number;
+ limit?: number;
community_id?: number;
auth?: string;
}
@@ -179,8 +180,8 @@ export interface AddModToCommunityResponse {
export interface GetModlogForm {
mod_user_id?: number;
community_id?: number;
- limit?: number;
page?: number;
+ limit?: number;
}
export interface GetModlogResponse {
@@ -343,6 +344,7 @@ export interface CommunityResponse {
export interface ListCommunitiesForm {
sort: string;
+ page?: number;
limit?: number;
auth?: string;
}
@@ -356,6 +358,7 @@ export interface ListCategoriesResponse {
op: string;
categories: Array<Category>;
}
+
export interface PostForm {
name: string;
url?: string;
@@ -414,7 +417,8 @@ export interface CommentNode {
export interface GetPostsForm {
type_: string;
sort: string;
- limit: number;
+ page?: number;
+ limit?: number;
community_id?: number;
auth?: string;
}