defmodule Podbox.Podcast do @moduledoc """ The podcast domain. """ use Ash.Domain resources do resource Podbox.Podcast.AssetEnclosure resource Podbox.Podcast.AssetFeed resource Podbox.Podcast.Category resource Podbox.Podcast.Enclosure resource Podbox.Podcast.Episode do define :upsert_episode, action: :upsert end resource Podbox.Podcast.Feed do define :feed_download_complete, action: :download_complete, args: [:asset_id] define :get_by_asset_id, args: [:asset_id] define :subscribe, args: [:uri] end resource Podbox.Podcast.Image resource Podbox.Podcast.Show end end