View Source ValueFlows.Proposal.Proposals (Bonfire v0.9.10-classic-beta.156)

Summary

Functions

Link to this function

ap_publish_activity(subject, activity_name, thing)

View Source
Link to this function

ap_receive_activity(creator, activity, object)

View Source
@spec create(any(), attrs :: map()) ::
  {:ok, ValueFlows.Proposal.t()} | {:error, Changeset.t()}

Callback implementation for Bonfire.Federate.ActivityPub.FederationModules.federation_module/0.

Link to this function

fields(group_fn, filters \\ [])

View Source
Link to this function

indexing_object_format(obj)

View Source

Retrieves a list of them by arbitrary filters. Used by:

  • Various parts of the codebase that need to query for this (inc. tests)

Retrieves a single one by arbitrary filters. Used by:

  • GraphQL Item queries
  • ActivityPub integration
  • Various parts of the codebase that need to query for this (inc. tests)
Link to this function

page(cursor_fn, page_opts, base_filters \\ [], data_filters \\ [], count_filters \\ [])

View Source

Retrieves an Page of proposals according to various filters

Used by:

  • GraphQL resolver single-parent resolution
Link to this function

pages(cursor_fn, group_fn, page_opts, base_filters \\ [], data_filters \\ [], count_filters \\ [])

View Source

Retrieves an Pages of proposals according to various filters

Used by:

  • GraphQL resolver bulk resolution
@spec update(
  %ValueFlows.Proposal{
    __meta__: term(),
    activity: term(),
    caretaker: term(),
    context: term(),
    context_id: term(),
    controlled: term(),
    created: term(),
    creator: term(),
    creator_id: term(),
    deleted_at: term(),
    direct_replies: term(),
    disabled_at: term(),
    eligible_location: term(),
    eligible_location_id: term(),
    feed_publishes: term(),
    has_beginning: term(),
    has_end: term(),
    id: term(),
    is_disabled: term(),
    is_public: term(),
    name: term(),
    note: term(),
    peered: term(),
    proposed_to: term(),
    published_at: term(),
    publishes: term(),
    publishes_intents: term(),
    replied: term(),
    tagged: term(),
    tags: term(),
    unit_based: term(),
    updated_at: term()
  },
  attrs :: map()
) :: {:ok, ValueFlows.Proposal.t()} | {:error, Changeset.t()}