View Source Mobilizon.GraphQL.Resolvers.Admin (Mobilizon v5.0.0-beta.1)
Handles the report-related GraphQL calls.
Summary
Functions
@spec accept_subscription(any(), map(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Actors.Follower.t()} | {:error, any()}
@spec create_instance(any(), map(), Absinthe.Resolution.t()) :: {:error, atom() | binary()} | {:ok, Mobilizon.Instances.Instance.t()}
@spec get_dashboard(any(), any(), Absinthe.Resolution.t()) :: {:ok, map()} | {:error, String.t()}
@spec get_default_picture(any(), any(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Media.t() | nil} | {:error, String.t()}
@spec get_instance(any(), map(), Absinthe.Resolution.t()) :: {:error, :unauthenticated | :unauthorized | :not_found} | {:ok, Mobilizon.Instances.Instance.t()}
@spec get_instance_favicon(any(), any(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Media.t() | nil} | {:error, String.t()}
@spec get_instance_logo(any(), any(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Media.t() | nil} | {:error, String.t()}
@spec get_media_setting(any(), any(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Media.t()} | {:error, String.t()}
@spec get_settings(any(), any(), Absinthe.Resolution.t()) :: {:ok, map()} | {:error, String.t()}
@spec list_action_logs(any(), map(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Storage.Page.t(Mobilizon.Admin.ActionLog.t())} | {:error, String.t()}
@spec list_relay_followers(any(), map(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Storage.Page.t(Mobilizon.Actors.Follower.t())} | {:error, :unauthorized | :unauthenticated}
@spec list_relay_followings(any(), map(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Storage.Page.t(Mobilizon.Actors.Follower.t())} | {:error, :unauthorized | :unauthenticated}
@spec reject_subscription(any(), map(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Actors.Follower.t()} | {:error, any()}
@spec remove_relay(any(), map(), Absinthe.Resolution.t()) :: {:ok, Mobilizon.Actors.Follower.t()} | {:error, any()}
@spec save_settings(any(), map(), Absinthe.Resolution.t()) :: {:ok, map()} | {:error, String.t()}
@spec update_user(any(), map(), Absinthe.Resolution.t()) :: {:error, :invalid_argument | :user_not_found | binary() | Ecto.Changeset.t()} | {:ok, Mobilizon.Users.User.t()}