View Source Glific.Flows.FlowCount (Glific v5.1.6)
The flow count object
Link to this section Summary
Functions
Standard changeset pattern we use for all data types
Create flow count
Get a list of flow count
Resets the flow count for a given flow
Update flow count
Upsert flow count
Link to this section Types
@type 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, organization: Glific.Partners.Organization.t() | Ecto.Association.NotLoaded.t() | nil, organization_id: non_neg_integer() | nil, recent_messages: [map()] | nil, type: String.t() | nil, updated_at: :utc_datetime | nil, uuid: Ecto.UUID.t() | nil }
Link to this section Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Standard changeset pattern we use for all data types
@spec create_flow_count(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
Create flow count
@spec get_flow_count_list(Ecto.UUID.t()) :: :error | list()
Get a list of flow count
@spec reset_flow_count(non_neg_integer()) :: any()
Resets the flow count for a given flow
@spec update_flow_count(t(), map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
Update flow count
Upsert flow count