View Source ValueFlows.Planning.Intent.Intents (bonfire_umbrella v0.9.10-cooperation-beta.62)

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
Link to this function

by_id(id, current_user \\ nil)

View Source
@spec create(any(), attrs :: map()) ::
  {:ok, ValueFlows.Planning.Intent.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 intents 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 intents according to various filters

Used by:

  • GraphQL resolver bulk resolution
Link to this function

prepare_attrs(attrs, creator \\ nil)

View Source
Link to this function

soft_delete(id, current_user)

View Source
Link to this function

update(current_user, id, changes, verb \\ :update)

View Source