Breezex.Families (breezex v0.1.0) View Source

Module implementing the Breeze families API.

Link to this section Summary

Functions

Updates family to which member_id belongs, adding everyone in new_people list.

Creates a new family grouping from pre-existing people.

Destroy the family grouping belonging to the person whose ID is passed in.

Remove people from whatever family they're in

Link to this section Functions

Link to this function

add_to_family(config, member_id, new_people)

View Source

Specs

add_to_family(map(), integer(), list()) :: Breezex.Client.client_response()

Updates family to which member_id belongs, adding everyone in new_people list.

Link to this function

add_to_family!(config, member_id, new_people)

View Source

Specs

add_to_family!(map(), integer(), list()) :: {map(), list()} | no_return()

Specs

Creates a new family grouping from pre-existing people.

If anyone is already in a family, they'll be removed from the old one.

Specs

create!(map(), list()) :: {map(), list()} | no_return()

Specs

Destroy the family grouping belonging to the person whose ID is passed in.

If a list is passed in, destroy any family containing any person whose ID is in the list.

Specs

destroy!(map(), integer() | list()) :: {map(), list()} | no_return()
Link to this function

remove_from_family(config, ids)

View Source

Specs

remove_from_family(map(), integer() | list()) ::
  Breezex.Client.client_response()

Remove people from whatever family they're in

Link to this function

remove_from_family!(config, id)

View Source

Specs

remove_from_family!(map(), integer() | list()) :: {map(), list()} | no_return()