Mailglass.Suppression.AutoSuppress (Mailglass v1.0.0)

Copy Markdown View Source

Centralized webhook-driven suppression projection helpers.

Summary

Functions

apply(repo, arg2)

@spec apply(Ecto.Repo.t() | module(), term()) ::
  {:ok,
   Mailglass.Suppression.Entry.t()
   | :inserted
   | :skip
   | :orphan_skipped
   | :no_event_row}
  | {:error, term()}

build_attrs(event, delivery)

@spec build_attrs(Mailglass.Events.Event.t(), Mailglass.Outbound.Delivery.t()) ::
  {:ok, map() | :skip}

insert(repo, attrs)

@spec insert(Ecto.Repo.t() | module(), map() | :skip) ::
  {:ok, Mailglass.Suppression.Entry.t() | :skip} | {:error, term()}