Kind: Class
Source: atloria-monorepo/packages/api-client/src/endpoints/comments.ts
Comment endpoints
Methods
| Method | Signature | Returns |
|---|---|---|
list | list(documentId: string, params: Omit<CommentListParams, 'documentId'>) | Promise<CommentWithUser[]> |
get | get(commentId: string) | Promise<CommentWithUser> |
create | create(documentId: string, dto: CreateCommentDto) | Promise<CommentWithUser> |
update | update(commentId: string, dto: UpdateCommentDto) | Promise<CommentWithUser> |
delete | delete(commentId: string) | Promise<void> |
resolve | resolve(commentId: string) | Promise<CommentWithUser> |
unresolve | unresolve(commentId: string) | Promise<CommentWithUser> |
reply | reply(parentCommentId: string, dto: Omit<CreateCommentDto, 'parentCommentId'>) | Promise<CommentWithUser> |
getReplies | getReplies(parentCommentId: string) | Promise<CommentWithUser[]> |
Was this page helpful?