Glific v0.3.1 Glific.Flows.FlowCount View Source

The flow count object

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Get a list of flow count

Upsert flow count

Link to this section Types

Specs

t() :: %Glific.Flows.FlowCount{
  __meta__: Ecto.Schema.Metadata.t(),
  count: integer() | nil,
  destination_uuid: Ecto.UUID.t() | nil,
  flow: Glific.Flows.Flow.t() | Ecto.Association.NotLoaded.t() | nil,
  flow_id: non_neg_integer() | nil,
  flow_uuid: Ecto.UUID.t() | nil,
  id: non_neg_integer() | nil,
  inserted_at: :utc_datetime | nil,
  recent_messages: [map()] | nil,
  type: String.t() | nil,
  updated_at: :utc_datetime | nil,
  uuid: Ecto.UUID.t() | nil
}

Link to this section Functions

Link to this function

changeset(flow_revision, attrs)

View Source

Specs

changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types

Link to this function

get_flow_count_list(flow_uuid)

View Source

Specs

get_flow_count_list(Ecto.UUID.t()) :: :error | list()

Get a list of flow count

Link to this function

upsert_flow_count(attrs)

View Source

Specs

upsert_flow_count(map()) :: :error | t()

Upsert flow count