Breezex.Tag (breezex v0.1.0) View Source

Module implementing the Breeze tags API.

Link to this section Summary

Link to this section Functions

Link to this function

add_folder(config, name)

View Source

Specs

Add a folder.

Name required. Optionally, provide a parent folder ID.

Link to this function

add_folder(config, name, parent_id)

View Source

Specs

Link to this function

add_folder!(config, name)

View Source

Specs

add_folder!(map(), String.t()) :: {map(), list()} | no_return()
Link to this function

add_folder!(config, name, parent_id)

View Source

Specs

add_folder!(map(), String.t(), integer()) :: {map(), list()} | no_return()

Specs

Add a tag.

Name required. Optionally, provide a parent folder ID.

Link to this function

add_tag(config, name, folder_id)

View Source

Specs

Specs

add_tag!(map(), String.t()) :: {map(), list()} | no_return()
Link to this function

add_tag!(config, name, folder_id)

View Source

Specs

add_tag!(map(), String.t(), integer()) :: {map(), list()} | no_return()

Specs

Assign a tag to a person.

Shape of params should be %{tag_id: tag_id, person_id: person_id}

Specs

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

delete_folder(config, id)

View Source

Specs

delete_folder(map(), String.t()) :: Breezex.Client.client_response()

Delete a folder by ID

Link to this function

delete_folder!(config, id)

View Source

Specs

delete_folder!(map(), String.t()) :: {map(), list()} | no_return()

Specs

Delete a tag by ID

Specs

delete_tag!(map(), String.t()) :: {map(), list()} | no_return()

Specs

list_folders(map()) :: Breezex.Client.client_response()

List all folders in Breeze

Specs

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

Specs

List people who are in a given tag, using the tag's ID

Link to this function

list_people!(config, id)

View Source

Specs

list_people!(map(), String.t()) :: {map(), list()} | no_return()

Specs

List all tags in Breeze

Specs

List all tags in a particular folder, by folder ID

Specs

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

Specs

list_tags!(map(), String.t() | integer()) :: {map(), list()} | no_return()
Link to this function

unassign(config, params)

View Source

Specs

unassign(map(), map()) :: Breezex.Client.client_response()

Remove a tag from a person.

Shape of params should be %{tag_id: tag_id, person_id: person_id}

Link to this function

unassign!(config, params)

View Source

Specs

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