View Source Plausible.Imported.SiteImport (Plausible v0.0.1)

Site import schema.

Summary

Types

@type t() :: %Plausible.Imported.SiteImport{
  __meta__: term(),
  end_date: term(),
  id: term(),
  imported_by: term(),
  imported_by_id: term(),
  inserted_at: term(),
  label: term(),
  legacy: term(),
  site: term(),
  site_id: term(),
  source: term(),
  start_date: term(),
  status: term(),
  updated_at: term()
}

Functions

Link to this function

complete_changeset(site_import, params \\ %{})

View Source
@spec complete_changeset(t(), map()) :: Ecto.Changeset.t()
Link to this function

create_changeset(site, user, params)

View Source
@spec create_changeset(Plausible.Site.t(), Plausible.Auth.User.t(), map()) ::
  Ecto.Changeset.t()
Link to this function

fail_changeset(site_import)

View Source
@spec fail_changeset(t()) :: Ecto.Changeset.t()
@spec from_legacy(Plausible.Site.ImportedData.t()) :: t()
@spec label(t() | Plausible.Site.ImportedData.t()) :: String.t()
Link to this function

start_changeset(site_import)

View Source
@spec start_changeset(t()) :: Ecto.Changeset.t()