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

Link to this function

count_organizations(_, args, _)

View Source
@spec count_organizations(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of organizations filtered by args

Link to this function

count_providers(_, args, _)

View Source
@spec count_providers(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, integer()}

Get the count of providers filtered by args

Link to this function

create_credential(_, map1, map2)

View Source
@spec create_credential(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Creates an organization's credential

Link to this function

create_organization(_, map, _)

View Source
@spec create_organization(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Creates an organization

Link to this function

create_provider(_, map, _)

View Source
@spec create_provider(Absinthe.Resolution.t(), %{input: map()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Creates a provider

Link to this function

credential(_, map1, map2)

View Source
@spec credential(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Get organization's credential by shortcode/service

Link to this function

delete_inactive_organization(_, map, _)

View Source
@spec delete_inactive_organization(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Delete an inactive organization

Link to this function

delete_organization(_, map, _)

View Source
@spec delete_organization(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Deletes an organization

Link to this function

delete_provider(_, map, _)

View Source
@spec delete_provider(Absinthe.Resolution.t(), %{id: integer()}, %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Deletes a provider

Link to this function

organization(_, arg2, arg3)

View Source
@spec organization(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, any()} | {:error, any()}

Get a specific organization by id

Link to this function

organization_services(_, _, map)

View Source
@spec organization_services(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, map()}

Get the organizations services

Link to this function

organizations(_, args, _)

View Source
@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

Link to this function

quality_rating(_, _, map)

View Source
@spec quality_rating(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok, map()} | {:error, any()}

Get the quality rating details of provider

Link to this function

reset_organization(_, map, _)

View Source
@spec reset_organization(Absinthe.Resolution.t(), map(), %{context: map()}) ::
  {:ok | :error, String.t()}

Resets table and some columns of an organization

Link to this function

update_credential(_, map1, map2)

View Source
@spec update_credential(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{
  context: map()
}) ::
  {:ok, any()} | {:error, any()}

Updates an organization's credential

Link to this function

update_organization(_, map, _)

View Source
@spec update_organization(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{
  context: map()
}) ::
  {:ok, any()} | {:error, any()}

Updates an organization

Link to this function

update_organization_status(_, map, _)

View Source
@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

Link to this function

update_provider(_, map, _)

View Source
@spec update_provider(Absinthe.Resolution.t(), %{id: integer(), input: map()}, %{
  context: map()
}) ::
  {:ok, any()} | {:error, any()}

Updates a provider