View Source Mobilizon.GraphQL.Resolvers.Admin (Mobilizon v5.0.0-beta.1)

Handles the report-related GraphQL calls.

Summary

Functions

Link to this function

accept_subscription(parent, map1, map2)

View Source
@spec accept_subscription(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Follower.t()} | {:error, any()}
Link to this function

create_instance(parent, args, resolution)

View Source
@spec create_instance(any(), map(), Absinthe.Resolution.t()) ::
  {:error, atom() | binary()} | {:ok, Mobilizon.Instances.Instance.t()}
Link to this function

get_dashboard(parent, args, arg3)

View Source
@spec get_dashboard(any(), any(), Absinthe.Resolution.t()) ::
  {:ok, map()} | {:error, String.t()}
Link to this function

get_default_picture(parent, args, resolution)

View Source
@spec get_default_picture(any(), any(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Media.t() | nil} | {:error, String.t()}
Link to this function

get_instance(parent, arg2, arg3)

View Source
@spec get_instance(any(), map(), Absinthe.Resolution.t()) ::
  {:error, :unauthenticated | :unauthorized | :not_found}
  | {:ok, Mobilizon.Instances.Instance.t()}
Link to this function

get_instance_favicon(parent, args, resolution)

View Source
@spec get_instance_favicon(any(), any(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Media.t() | nil} | {:error, String.t()}
Link to this function

get_instance_logo(parent, args, resolution)

View Source
@spec get_instance_logo(any(), any(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Media.t() | nil} | {:error, String.t()}
Link to this function

get_instances(parent, args, arg3)

View Source
Link to this function

get_list_of_languages(parent, arg2, resolution)

View Source
@spec get_list_of_languages(any(), any(), any()) ::
  {:ok, String.t()} | {:error, any()}
Link to this function

get_media_setting(parent, arg2, arg3)

View Source
@spec get_media_setting(any(), any(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Media.t()} | {:error, String.t()}
Link to this function

get_settings(parent, args, arg3)

View Source
@spec get_settings(any(), any(), Absinthe.Resolution.t()) ::
  {:ok, map()} | {:error, String.t()}
Link to this function

list_action_logs(parent, arg2, arg3)

View Source
@spec list_action_logs(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Storage.Page.t(Mobilizon.Admin.ActionLog.t())}
  | {:error, String.t()}
Link to this function

list_relay_followers(parent, arg2, arg3)

View Source
@spec list_relay_followers(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Storage.Page.t(Mobilizon.Actors.Follower.t())}
  | {:error, :unauthorized | :unauthenticated}
Link to this function

list_relay_followings(parent, arg2, arg3)

View Source
@spec list_relay_followings(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Storage.Page.t(Mobilizon.Actors.Follower.t())}
  | {:error, :unauthorized | :unauthenticated}
Link to this function

reject_subscription(parent, map1, map2)

View Source
@spec reject_subscription(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Follower.t()} | {:error, any()}
Link to this function

remove_relay(parent, map1, map2)

View Source
@spec remove_relay(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, Mobilizon.Actors.Follower.t()} | {:error, any()}
Link to this function

save_settings(parent, args, arg3)

View Source
@spec save_settings(any(), map(), Absinthe.Resolution.t()) ::
  {:ok, map()} | {:error, String.t()}
Link to this function

update_user(parent, args, arg3)

View Source
@spec update_user(any(), map(), Absinthe.Resolution.t()) ::
  {:error, :invalid_argument | :user_not_found | binary() | Ecto.Changeset.t()}
  | {:ok, Mobilizon.Users.User.t()}