Proca.Action.Message (proca v3.4.1)
Link to this section Summary
Functions
Returns a query for [message, target, action] for specified target id list, or :all for all. Use sent and testing flags to further select (not) sent or (not) testing actions
Link to this section Functions
Link to this function
all(kw)
Link to this function
all(query, list)
Link to this function
changeset(attrs)
Link to this function
changeset(msg, attrs)
Link to this function
defaults(arg1)
Link to this function
handle_event(event)
Link to this function
mark_all(messages, field)
Specs
mark_all( [ %Proca.Action.Message{ __meta__: term(), action: term(), action_id: term(), clicked: term(), delivered: term(), dupe_rank: term(), files: term(), id: term(), message_content: term(), message_content_id: term(), opened: term(), sent: term(), target: term(), target_id: term(), updated_at: term() } ], :sent | :delivered | :opened | :clicked ) :: :ok
Link to this function
one(kw)
Link to this function
one!(kw)
Link to this function
put_messages(action, attrs, action_page)
Link to this function
select_by_targets(target_ids, sent \\ false, testing \\ false)
Specs
select_by_targets([number()] | :all, boolean(), boolean()) :: %Ecto.Query{ aliases: term(), assocs: term(), combinations: term(), distinct: term(), from: term(), group_bys: term(), havings: term(), joins: term(), limit: term(), lock: term(), offset: term(), order_bys: term(), prefix: term(), preloads: term(), select: term(), sources: term(), updates: term(), wheres: term(), windows: term(), with_ctes: term() }
Returns a query for [message, target, action] for specified target id list, or :all for all. Use sent and testing flags to further select (not) sent or (not) testing actions
Link to this function