Chimeway.Digests.Accumulation (chimeway v1.0.0)

Copy Markdown View Source

Transactional digest accumulation for held canonical delivery rows.

Summary

Functions

Accumulates a digest-held delivery into a durable bucket and membership row.

Types

lookup_attrs()

@type lookup_attrs() :: %{
  optional(:recipient_id) => String.t() | nil,
  optional(:channel) => String.t() | nil,
  optional(:notification_key) => String.t() | nil,
  optional(:notification_version) => pos_integer() | nil,
  optional(:category) => String.t() | nil,
  optional(:digest_key) => String.t() | nil
}

Functions

accumulate_delivery(delivery, opts \\ [])

@spec accumulate_delivery(
  Chimeway.Delivery.t(),
  keyword()
) :: {:ok, Chimeway.Digests.DigestBucket.t() | :noop} | {:error, term()}

Accumulates a digest-held delivery into a durable bucket and membership row.