Skip to main content

Interface: ReactionsExtension

Reactions.v1.ReactionsExtension

Properties

reactionsV1

reactionsV1: Object

Type declaration

NameTypeDescription
reaction(subspaceId: Long, postId: Long, reactionId: number) => Promise<undefined | Reaction>Queries the reaction for the given post having the provided id.
reactions(subspaceId: Long, postId: Long, user?: string, pagination?: PageRequest) => Promise<QueryReactionsResponse>Queries the reactions for the given post.
reactionsParams(subspaceId: Long) => Promise<SubspaceReactionsParams>Queries the reaction params for the given subspace.
registeredReaction(subspaceId: Long, reactionId: number) => Promise<undefined | RegisteredReaction>Queries the registered reaction with the provided id from the given subspace.
registeredReactions(subspaceId: Long, pagination?: PageRequest) => Promise<QueryRegisteredReactionsResponse>Queries the registered reactions for the given subspace.

Defined in

packages/core/src/modules/reactions/v1/query.ts:17