-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add getForumTopicAndPosts(), make way for forum stuff
- Loading branch information
Showing
6 changed files
with
169 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
export interface ForumPost { | ||
created_at: Date | ||
deleted_at: Date | null | ||
edited_at: Date | null | ||
edited_by_id: number | null | ||
forum_id: number | ||
id: number | ||
topic_id: number | ||
user_id: number | ||
body: { | ||
/** | ||
* Post content in HTML format | ||
*/ | ||
html: string | ||
/** | ||
* Post content in BBCode format | ||
*/ | ||
raw: string | ||
} | ||
} | ||
|
||
export interface ForumTopic { | ||
created_at: Date | ||
deleted_at: Date | null | ||
first_post_id: number | ||
forum_id: number | ||
id: number | ||
is_locked: boolean | ||
last_post_id: number | ||
post_count: number | ||
title: string | ||
type: "normal" | "sticky" | "announcement" | ||
updated_at: Date | ||
user_id: number | ||
poll: { | ||
allow_vote_change: boolean | ||
/** | ||
* Can be in the future | ||
*/ | ||
ended_at: Date | null | ||
hide_incomplete_results: boolean | ||
last_vote_at: Date | null | ||
max_votes: number | ||
options: { | ||
id: number | ||
text: { | ||
bbcode: string | ||
html: string | ||
} | ||
/** | ||
* Not present if the poll is incomplete and results are hidden | ||
*/ | ||
vote_count?: number | ||
}[] | ||
started_at: Date | ||
title: { | ||
bbcode: string | ||
html: string | ||
} | ||
total_vote_count: number | ||
} | null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters