View Source GlificWeb.Resolvers.Partners (Glific v5.1.6)
Partners Resolver which sits between the GraphQL schema and Glific Partners Context API. This layer basically stitches together one or more calls to resolve the incoming queries.
Link to this section Summary
Functions
Get a specific bsp balance by organization id
Get the count of organizations filtered by args
Get the count of providers filtered by args
Creates an organization's credential
Creates an organization
Creates a provider
Get organization's credential by shortcode/service
Delete an inactive organization
Deletes an organization
Deletes a provider
Get a specific organization by id
Get the organizations services
Get the list of organizations filtered by args
Get a specific provider by id
Get the list of providers
Get the quality rating details of provider
Resets table and some columns of an organization
Updates an organization's credential
Updates an organization
Updates an organization status is_active/is_approved. We will add checks to validate approval and activation
Updates a provider
Link to this section Functions
@spec bspbalance(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Get a specific bsp balance by organization id
@spec count_organizations(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of organizations filtered by args
@spec count_providers(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, integer()}
Get the count of providers filtered by args
@spec create_credential(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Creates an organization's credential
@spec create_organization(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Creates an organization
@spec create_provider(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Creates a provider
@spec credential(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Get organization's credential by shortcode/service
@spec delete_inactive_organization(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Delete an inactive organization
@spec delete_organization(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Deletes an organization
@spec delete_provider(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Deletes a provider
@spec organization(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Get a specific organization by id
@spec organization_services(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, map()}
Get the organizations services
@spec organizations(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Get the list of organizations filtered by args
@spec provider(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) :: {:ok, any()} | {:error, any()}
Get a specific provider by id
@spec providers(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Get the list of providers
@spec quality_rating(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, map()} | {:error, any()}
Get the quality rating details of provider
@spec reset_organization(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok | :error, String.t()}
Resets table and some columns of an organization
@spec update_credential(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Updates an organization's credential
@spec update_organization(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Updates an organization
@spec update_organization_status(Absinthe.Resolution.t(), map(), %{context: map()}) :: {:ok, any()} | {:error, any()}
Updates an organization status is_active/is_approved. We will add checks to validate approval and activation
@spec update_provider(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{ context: map() }) :: {:ok, any()} | {:error, any()}
Updates a provider