View Source Plausible.Plugins.API.Funnels (Plausible v0.0.1)
Plugins API context module for Funnels. All high level Funnel operations should be implemented here.
Summary
Types
@type create_request() :: PlausibleWeb.Plugins.API.Schemas.Funnel.CreateRequest.t()
Functions
@spec create( Plausible.Site.t(), create_request() ) :: {:ok, Plausible.Funnel.t()} | {:error, Ecto.Changeset.t()} | {:error, :upgrade_required}
@spec get(Plausible.Site.t(), pos_integer() | String.t()) :: nil | Plausible.Funnel.t()
@spec get_funnels(Plausible.Site.t(), map()) :: {:ok, Paginator.Page.t()}