({
reason,
note,
...args
}: SquadAuthorProps &
Pick<SquadPostRejectionProps, 'reason' | 'note'>)
| 1549 | `; |
| 1550 | |
| 1551 | export const rejectSourceAuthorPendingPosts = ({ |
| 1552 | reason, |
| 1553 | note, |
| 1554 | ...args |
| 1555 | }: SquadAuthorProps & |
| 1556 | Pick<SquadPostRejectionProps, 'reason' | 'note'>): Promise< |
| 1557 | SourcePostModeration[] |
| 1558 | > => |
| 1559 | gqlClient |
| 1560 | .request<{ |
| 1561 | rejectSourceAuthorPendingPosts: SourcePostModeration[]; |
| 1562 | }>(REJECT_SOURCE_AUTHOR_PENDING_POSTS_MUTATION, { |
| 1563 | ...args, |
| 1564 | rejectionReason: reason, |
| 1565 | moderatorMessage: note, |
| 1566 | }) |
| 1567 | .then((res) => res.rejectSourceAuthorPendingPosts); |
| 1568 | |
| 1569 | export interface SourceMutedAuthor { |
| 1570 | user: UserShortProfile; |
no outgoing calls
no test coverage detected