Skip to main content

Interface: PostsExtension

Posts.v3.PostsExtension

Properties

postsV3

Readonly postsV3: Object

Type declaration

NameTypeDescription
incomingPostOwnerTransfer(subspaceId: Long, receiver: string, pagination?: PageRequest) => Promise<QueryIncomingPostOwnerTransferRequestsResponse>Queries incoming post owner transfer requests.
params() => Promise<Params>Queries the module params.
pollAnswers(subspaceId: Long, postId: Long, pollId: number, user?: string) => Promise<QueryPollAnswersResponse>Queries the answers for the given poll.
post(subspaceId: Long, postId: Long) => Promise<undefined | Post>Queries the post with the given id from the provided subspace.
postAttachments(subspaceId: Long, postId: Long) => Promise<QueryPostAttachmentsResponse>Queries the attachments for the given post.
sectionPosts(subspaceId: Long, sectionId: number, pagination?: PageRequest) => Promise<QuerySectionPostsResponse>Queries the posts for the given subspace section.
subspacePosts(subspaceId: Long, pagination?: PageRequest) => Promise<QuerySubspacePostsResponse>Queries the posts for the given subspace.

Defined in

packages/core/src/modules/posts/v3/query.ts:16