View Source Flagsmith.Schemas.Environment (flagsmith_engine v0.1.3)

Ecto schema representing a Flagsmith Environment definition and helpers to cast responses from the api.

Link to this section Summary

Link to this section Types

Specs

t() :: %Flagsmith.Schemas.Environment{
  __configuration__: map() | nil,
  amplitude_config: Flagsmith.Schemas.Environment.Integration.t() | nil,
  api_key: String.t() | nil,
  feature_states: [Flagsmith.Schemas.Environment.FeatureState.t()],
  heap_config: Flagsmith.Schemas.Environment.Integration.t() | nil,
  id: integer() | nil,
  mixpanel_config: Flagsmith.Schemas.Environment.Integration.t() | nil,
  project: Flagsmith.Schemas.Environment.Project.t() | nil,
  segment_config: Flagsmith.Schemas.Environment.Integration.t() | nil
}

Link to this section Functions

Link to this function

add_client_config(struct, config)

View Source

Specs

cast(map()) :: {:ok, t()} | {:error, Ecto.Changeset.t()}
Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source

Specs

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

Specs

from_response(element :: map() | [map()]) :: t() | any()