core/resolvers/__init__.py

82 lines
1.5 KiB
Python
Raw Normal View History

2022-09-04 17:20:38 +00:00
from resolvers.auth import (
login,
sign_out,
is_email_used,
2022-10-22 12:02:15 +00:00
register_by_email,
confirm_email,
auth_send_link,
2022-09-19 13:50:43 +00:00
get_current_user,
2022-09-04 17:20:38 +00:00
)
2022-10-05 09:32:48 +00:00
2023-10-05 18:46:18 +00:00
from resolvers.migrate import markdown_body
from resolvers.editor import create_shout, delete_shout, update_shout
from resolvers.profile import (
2022-11-15 02:36:30 +00:00
load_authors_by,
rate_user,
2022-11-25 18:31:53 +00:00
update_profile,
2023-10-05 18:46:18 +00:00
get_authors_all,
2022-09-04 17:20:38 +00:00
)
2023-10-05 18:46:18 +00:00
from resolvers.topics import (
topics_all,
topics_by_community,
topics_by_author,
topic_follow,
topic_unfollow,
get_topic,
)
from resolvers.reactions import (
2022-09-04 17:20:38 +00:00
create_reaction,
delete_reaction,
update_reaction,
reactions_unfollow,
reactions_follow,
2023-10-05 18:46:18 +00:00
load_reactions_by,
2022-11-21 08:13:57 +00:00
)
2023-10-05 18:46:18 +00:00
from resolvers.following import follow, unfollow
2023-10-05 18:46:18 +00:00
from resolvers.load import load_shout, load_shouts_by
2022-11-11 21:27:17 +00:00
2022-09-04 17:20:38 +00:00
__all__ = [
# auth
"login",
2022-10-22 12:02:15 +00:00
"register_by_email",
2022-09-04 17:20:38 +00:00
"is_email_used",
"confirm_email",
"auth_send_link",
2022-09-04 17:20:38 +00:00
"sign_out",
"get_current_user",
2023-10-05 18:46:18 +00:00
# profile
2022-11-15 02:36:30 +00:00
"load_authors_by",
"rate_user",
"update_profile",
"get_authors_all",
2023-10-05 18:46:18 +00:00
# load
2022-11-21 08:13:57 +00:00
"load_shout",
2022-11-15 02:36:30 +00:00
"load_shouts_by",
2022-11-21 08:13:57 +00:00
# zine.following
2022-11-15 02:36:30 +00:00
"follow",
"unfollow",
2023-02-20 15:32:32 +00:00
# create
2022-09-04 17:20:38 +00:00
"create_shout",
"update_shout",
"delete_shout",
2022-10-05 09:32:48 +00:00
"markdown_body",
2023-10-05 18:46:18 +00:00
# topics
2022-09-04 17:20:38 +00:00
"topics_all",
"topics_by_community",
"topics_by_author",
"topic_follow",
"topic_unfollow",
2022-11-10 08:00:51 +00:00
"get_topic",
2022-11-21 08:13:57 +00:00
# zine.reactions
2022-09-04 17:20:38 +00:00
"reactions_follow",
"reactions_unfollow",
"create_reaction",
"update_reaction",
"delete_reaction",
2022-11-15 02:36:30 +00:00
"load_reactions_by",
2022-09-04 17:20:38 +00:00
]