Glific v0.3.1 Glific.Flows.ContactField View Source
Since many of the functions set/update fields in contact and related tables, lets centralize all the code here for now
Link to this section Summary
Functions
Add a field {key, value} to a contact. For now, all preferences are stored under the settings map, with a sub-map of preferences. We expect to get more clarity on this soon
Create contact field
list contacts fields.
Reset the fields for a contact.
Link to this section Functions
Specs
add_contact_field( Glific.Flows.FlowContext.t(), String.t(), String.t(), String.t() ) :: Glific.Flows.FlowContext.t()
Add a field {key, value} to a contact. For now, all preferences are stored under the settings map, with a sub-map of preferences. We expect to get more clarity on this soon
Specs
create_contact_field(map()) :: {:ok, Glific.Contacts.ContactsField.t()} | {:error, Ecto.Changeset.t()}
Create contact field
Specs
list_contacts_fields(map()) :: [Glific.Contacts.ContactsField.t()]
list contacts fields.
Specs
reset_contact_fields(Glific.Flows.FlowContext.t()) :: Glific.Flows.FlowContext.t()
Reset the fields for a contact.