2024-02-02 12:03:44 +00:00
|
|
|
type Mutation {
|
|
|
|
# author
|
2024-02-03 14:18:20 +00:00
|
|
|
rate_author(rated_slug: String!, value: Int!): CommonResult!
|
2024-02-03 14:44:28 +00:00
|
|
|
update_author(profile: ProfileInput!): CommonResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
|
2025-02-09 14:18:01 +00:00
|
|
|
# draft
|
|
|
|
create_draft(input: DraftInput!): CommonResult!
|
|
|
|
update_draft(draft_id: Int!, input: DraftInput!): CommonResult!
|
|
|
|
delete_draft(draft_id: Int!): CommonResult!
|
|
|
|
# publication
|
|
|
|
publish_shout(shout_id: Int!): CommonResult!
|
|
|
|
publish_draft(draft_id: Int!): CommonResult!
|
|
|
|
unpublish_draft(draft_id: Int!): CommonResult!
|
|
|
|
unpublish_shout(shout_id: Int!): CommonResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# follower
|
2024-05-20 22:40:57 +00:00
|
|
|
follow(what: FollowingEntity!, slug: String!): AuthorFollowsResult!
|
|
|
|
unfollow(what: FollowingEntity!, slug: String!): AuthorFollowsResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# topic
|
2024-02-03 14:18:20 +00:00
|
|
|
create_topic(input: TopicInput!): CommonResult!
|
|
|
|
update_topic(input: TopicInput!): CommonResult!
|
|
|
|
delete_topic(slug: String!): CommonResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# reaction
|
2024-02-03 14:18:20 +00:00
|
|
|
create_reaction(reaction: ReactionInput!): CommonResult!
|
2024-02-16 16:46:57 +00:00
|
|
|
update_reaction(reaction: ReactionInput!): CommonResult!
|
2024-02-03 14:18:20 +00:00
|
|
|
delete_reaction(reaction_id: Int!): CommonResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
|
|
|
|
# collab
|
2024-02-03 14:18:20 +00:00
|
|
|
create_invite(slug: String, author_id: Int): CommonResult!
|
|
|
|
remove_author(slug: String, author_id: Int): CommonResult!
|
|
|
|
remove_invite(invite_id: Int!): CommonResult!
|
|
|
|
accept_invite(invite_id: Int!): CommonResult!
|
|
|
|
reject_invite(invite_id: Int!): CommonResult!
|
2024-03-04 07:35:33 +00:00
|
|
|
|
2024-10-21 07:52:23 +00:00
|
|
|
# bookmark
|
|
|
|
toggle_bookmark_shout(slug: String!): CommonResult!
|
|
|
|
|
2024-03-04 07:35:33 +00:00
|
|
|
# notifier
|
|
|
|
notification_mark_seen(notification_id: Int!, seen: Boolean): CommonResult!
|
|
|
|
notifications_seen_after(after: Int!, seen: Boolean): CommonResult!
|
|
|
|
notifications_seen_thread(thread_id: String!, seen: Boolean): CommonResult!
|
2024-10-21 13:42:30 +00:00
|
|
|
|
|
|
|
# community
|
|
|
|
join_community(slug: String!): CommonResult!
|
|
|
|
leave_community(slug: String!): CommonResult!
|
|
|
|
create_community(input: CommunityInput!): CommonResult!
|
|
|
|
update_community(input: CommunityInput!): CommonResult!
|
|
|
|
delete_community(slug: String!): CommonResult!
|
2024-02-02 12:03:44 +00:00
|
|
|
}
|