core/resolvers/__init__.py

166 lines
3.7 KiB
Python
Raw Normal View History

2024-08-09 06:37:06 +00:00
from cache.triggers import events_register
2025-05-29 09:37:39 +00:00
from resolvers.admin import (
2025-07-03 09:15:10 +00:00
admin_create_topic,
2025-05-29 09:37:39 +00:00
admin_get_roles,
admin_get_users,
2025-07-03 09:15:10 +00:00
admin_update_topic,
2025-05-29 09:37:39 +00:00
)
from resolvers.auth import (
confirm_email,
login,
send_link,
)
2024-04-26 22:41:47 +00:00
from resolvers.author import ( # search_authors,
2024-04-24 07:42:33 +00:00
get_author,
get_author_followers,
get_author_follows,
get_author_follows_authors,
get_author_follows_topics,
get_authors_all,
load_authors_by,
load_authors_search,
2024-04-24 07:42:33 +00:00
update_author,
)
2025-06-30 18:46:53 +00:00
from resolvers.collection import get_collection, get_collections_all, get_collections_by_author
2023-12-17 20:30:20 +00:00
from resolvers.community import get_communities_all, get_community
2025-02-09 14:18:01 +00:00
from resolvers.draft import (
create_draft,
delete_draft,
load_drafts,
publish_draft,
2025-05-22 01:34:30 +00:00
unpublish_draft,
2025-05-29 09:37:39 +00:00
update_draft,
2025-02-09 14:18:01 +00:00
)
from resolvers.editor import (
# delete_shout,
unpublish_shout,
# update_shout,
)
2024-11-01 08:09:16 +00:00
from resolvers.feed import (
load_shouts_authored_by,
2024-11-01 08:09:16 +00:00
load_shouts_coauthored,
load_shouts_discussed,
load_shouts_feed,
load_shouts_followed_by,
load_shouts_with_topic,
2024-11-01 08:09:16 +00:00
)
2024-05-20 22:40:57 +00:00
from resolvers.follower import follow, get_shout_followers, unfollow
2024-04-24 07:42:33 +00:00
from resolvers.notifier import (
load_notifications,
notification_mark_seen,
notifications_seen_after,
notifications_seen_thread,
)
2024-11-18 08:31:19 +00:00
from resolvers.rating import get_my_rates_comments, get_my_rates_shouts, rate_author
2024-04-24 07:42:33 +00:00
from resolvers.reaction import (
create_reaction,
delete_reaction,
2024-08-09 06:37:06 +00:00
load_comment_ratings,
load_comments_branch,
2024-04-24 07:42:33 +00:00
load_reactions_by,
2024-07-22 07:42:41 +00:00
load_shout_comments,
2024-07-22 08:32:47 +00:00
load_shout_ratings,
2024-08-09 06:37:06 +00:00
update_reaction,
2024-04-24 07:42:33 +00:00
)
from resolvers.reader import (
get_shout,
load_shouts_by,
2024-11-01 06:50:19 +00:00
load_shouts_random_top,
load_shouts_search,
load_shouts_unrated,
)
2024-05-20 22:40:57 +00:00
from resolvers.topic import (
get_topic,
get_topic_authors,
get_topic_followers,
get_topics_all,
get_topics_by_author,
get_topics_by_community,
2025-06-30 22:20:48 +00:00
merge_topics,
set_topic_parent,
2024-05-20 22:40:57 +00:00
)
2024-03-12 12:01:45 +00:00
events_register()
2022-09-04 17:20:38 +00:00
__all__ = [
2025-07-03 09:15:10 +00:00
"admin_create_topic",
"admin_get_roles",
2025-05-19 08:25:41 +00:00
# admin
"admin_get_users",
2025-07-03 09:15:10 +00:00
"admin_update_topic",
"confirm_email",
"create_draft",
# reaction
"create_reaction",
"delete_draft",
"delete_reaction",
# "delete_shout",
# "update_shout",
# follower
"follow",
2023-10-23 14:47:11 +00:00
# author
2024-04-17 15:32:23 +00:00
"get_author",
2024-05-20 22:40:57 +00:00
"get_author_followers",
2024-04-17 15:32:23 +00:00
"get_author_follows",
"get_author_follows_authors",
"get_author_follows_topics",
2024-04-17 15:32:23 +00:00
"get_authors_all",
2025-06-30 18:46:53 +00:00
"get_collection",
"get_collections_all",
"get_collections_by_author",
"get_communities_all",
2025-05-19 08:25:41 +00:00
# "search_authors",
2023-11-28 07:53:48 +00:00
# community
2024-04-17 15:32:23 +00:00
"get_community",
"get_my_rates_comments",
"get_my_rates_shouts",
# reader
"get_shout",
"get_shout_followers",
2023-11-28 07:53:48 +00:00
# topic
2024-04-17 15:32:23 +00:00
"get_topic",
"get_topic_authors",
"get_topic_followers",
2024-04-17 15:32:23 +00:00
"get_topics_all",
"get_topics_by_author",
"get_topics_by_community",
"load_authors_by",
"load_authors_search",
"load_comment_ratings",
"load_comments_branch",
# draft
"load_drafts",
# notifier
"load_notifications",
"load_reactions_by",
"load_shout_comments",
"load_shout_ratings",
"load_shouts_authored_by",
2024-04-17 15:32:23 +00:00
"load_shouts_by",
"load_shouts_coauthored",
"load_shouts_discussed",
# feed
"load_shouts_feed",
"load_shouts_followed_by",
2024-11-01 08:09:16 +00:00
"load_shouts_random_top",
2024-04-17 15:32:23 +00:00
"load_shouts_search",
"load_shouts_unrated",
2024-11-01 08:09:16 +00:00
"load_shouts_with_topic",
"login",
2025-06-30 22:20:48 +00:00
"merge_topics",
2024-04-17 15:32:23 +00:00
"notification_mark_seen",
"notifications_seen_after",
"notifications_seen_thread",
"publish_draft",
2024-11-18 08:31:19 +00:00
# rating
"rate_author",
"send_link",
2025-06-30 22:20:48 +00:00
"set_topic_parent",
"unfollow",
2025-02-11 21:39:25 +00:00
"unpublish_draft",
"unpublish_shout",
"update_author",
"update_draft",
"update_reaction",
2022-09-04 17:20:38 +00:00
]