Post
Key | Type | Description | Optional |
---|---|---|---|
id | string | Unique identifier for the post. | |
attachments | Attachment[] | List of attachments associated with the post. | |
commentsCount | number | Number of comments on the post. | |
createdAt | number | Timestamp when the post was created. | |
heading | string | Heading or title of the post. | |
isEdited | boolean | Whether the post has been edited. | |
isLiked | boolean | Whether the post is liked by the current user. | |
isPinned | boolean | Whether the post is pinned in the community. | |
isRepost | boolean | Whether the post is a repost of another post. | |
isRepostedByUser | boolean | Whether the post has been reposted by the current user. | |
isSaved | boolean | Whether the post is saved by the user. | |
likesCount | number | Number of likes on the post. | |
menuItems | MenuItem[] | Menu items available for actions on the post. | |
repostCount | number | Number of reposts of the post. | |
tempId | null or string | Temporary ID for the post used during creation (before persisting). | ✔️ |
text | string | Text content of the post. | |
topics | string[] | Topics or tags associated with the post. | |
updatedAt | number | Timestamp when the post was last updated. | |
uuid | string | Universally unique identifier (UUID) for the post. | |
replies | Reply[] | List of replies to the post. | ✔️ |
commentIds | string[] | List of comment IDs associated with the post. | ✔️ |
isAnonymous | boolean | true if the post is anonymous, false otherwise. | ✔ |
isHidden | boolean | true if the post is hidden | ✔ |
PollMultipleSelectState
enum PollMultipleSelectState {
EXACTLY = "exactly",
AT_MAX = "at_max",
AT_LEAST = "at_least",
}
PollType
enum PollType {
INSTANT = "instant",
DEFERRED = "deferred",
}