ArchAstro.Types.Notification (archastro v0.2.0)

Copy Markdown

An inbox notification delivered to a recipient user. Includes type-specific render data resolved at request time.

Summary

Types

t()

@type t() :: %ArchAstro.Types.Notification{
  archived_at: DateTime.t() | ArchAstro.Unset.t(),
  created_at: DateTime.t(),
  id: String.t(),
  read_at: DateTime.t() | ArchAstro.Unset.t(),
  rendered: %{optional(String.t()) => ArchAstro.JSON.t()},
  status: String.t(),
  type: String.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()