View Source Plausible.Plugins.API.Goals (Plausible v0.0.1)
Plugins API context module for Goals. All high level Goal operations should be implemented here.
Summary
Types
Functions
@spec create( Plausible.Site.t(), create_request() | [create_request()] ) :: {:ok, [Plausible.Goal.t()]} | {:error, Ecto.Changeset.t()} | {:error, :upgrade_required}
@spec get(Plausible.Site.t(), pos_integer()) :: nil | Plausible.Goal.t()
@spec get_goals(Plausible.Site.t(), map()) :: {:ok, Paginator.Page.t()}