Sha256: ca319a013914651408144e202b19842ed25f35f6b8b616779a645c7dc9251503

Contents?: true

Size: 1.23 KB

Versions: 10

Compression:

Stored size: 1.23 KB

Contents

# frozen_string_literal: true

require_relative 'mutations'

module Osso
  module GraphQL
    module Types
      class MutationType < BaseObject
        field :configure_identity_provider, mutation: Mutations::ConfigureIdentityProvider, null: true
        field :create_identity_provider, mutation: Mutations::CreateIdentityProvider
        field :create_enterprise_account, mutation: Mutations::CreateEnterpriseAccount
        field :create_oauth_client, mutation: Mutations::CreateOauthClient
        field :delete_enterprise_account, mutation: Mutations::DeleteEnterpriseAccount
        field :delete_identity_provider, mutation: Mutations::DeleteIdentityProvider
        field :delete_oauth_client, mutation: Mutations::DeleteOauthClient
        field :invite_admin_user, mutation: Mutations::InviteAdminUser
        field :set_redirect_uris, mutation: Mutations::SetRedirectUris
        field :regenerate_oauth_credentials, mutation: Mutations::RegenerateOauthCredentials
        field :update_app_config, mutation: Mutations::UpdateAppConfig

        def self.authorized?(_object, _context)
          # mutations are prevented from executing with ready? so
          # its a bit odd that this hides it
          true
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
osso-0.1.2 lib/osso/graphql/mutation.rb
osso-0.1.1 lib/osso/graphql/mutation.rb
osso-0.1.0 lib/osso/graphql/mutation.rb
osso-0.0.11 lib/osso/graphql/mutation.rb
osso-0.0.10 lib/osso/graphql/mutation.rb
osso-0.0.8 lib/osso/graphql/mutation.rb
osso-0.0.7 lib/osso/graphql/mutation.rb
osso-0.0.6 lib/osso/graphql/mutation.rb
osso-0.0.6.alpha lib/osso/graphql/mutation.rb
osso-0.0.5 lib/osso/graphql/mutation.rb