FoPost.Delivery (FoPost v0.1.0)

Copy Markdown View Source

One post-to-account delivery.

The same struct backs FoPost.Posts.deliveries/2, the per-account rows a publish or a retry answers with, and the rows inside a FoPost.PublishRun. Those three views carry overlapping but not identical fields, so a field the endpoint did not report is nil.

Summary

Types

t()

@type t() :: %FoPost.Delivery{
  account_id: term(),
  account_name: term(),
  attempt_number: term(),
  attempts: term(),
  completed_at: term(),
  delay_message: term(),
  delay_reason: term(),
  duration_ms: term(),
  error_code: term(),
  error_message: term(),
  external_url: term(),
  id: term(),
  last_attempt_at: term(),
  max_attempts: term(),
  platform: term(),
  platform_post_id: term(),
  posted_at: term(),
  raw: term(),
  scheduled_publish_at: term(),
  started_at: term(),
  status: term(),
  username: term()
}