Files
core/resolvers/__init__.py

129 lines
2.9 KiB
Python
Raw Normal View History

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