ArchAstro.SDK.Types.DomainEvent (archastro v0.3.5)

Copy Markdown

A domain event with stable attribution fields and an event-specific payload.

Summary

Types

t()

@type t() :: %ArchAstro.SDK.Types.DomainEvent{
  agent: String.t() | ArchAstro.SDK.Unset.t(),
  created_at: DateTime.t(),
  event_name: String.t(),
  id: String.t(),
  idempotency_key: String.t() | ArchAstro.SDK.Unset.t(),
  org: String.t() | ArchAstro.SDK.Unset.t(),
  payload: %{optional(String.t()) => ArchAstro.SDK.JSON.t()},
  sandbox: String.t() | ArchAstro.SDK.Unset.t(),
  team: String.t() | ArchAstro.SDK.Unset.t(),
  user: String.t() | ArchAstro.SDK.Unset.t()
}

Functions

from_map(data)

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

matches?(value)

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

to_map(value)

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