Sha256: c7dd8907d833b288d2199068fd88b111340d93cd48dec940b5f1d216166e570d

Contents?: true

Size: 1.08 KB

Versions: 18

Compression:

Stored size: 1.08 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_oauth_client, mutation: Mutations::DeleteOauthClient
        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

18 entries across 18 versions & 1 rubygems

Version Path
osso-0.0.5.pre.theta lib/osso/graphql/mutation.rb
osso-0.0.5.pre.eta lib/osso/graphql/mutation.rb
osso-0.0.5.pre.zeta lib/osso/graphql/mutation.rb
osso-0.0.5.pre.epsilon lib/osso/graphql/mutation.rb
osso-0.0.5.pre.delta lib/osso/graphql/mutation.rb
osso-0.0.5.pre.gamma lib/osso/graphql/mutation.rb
osso-0.0.5.pre.beta lib/osso/graphql/mutation.rb
osso-0.0.5.pre.alpha lib/osso/graphql/mutation.rb
osso-0.0.4 lib/osso/graphql/mutation.rb
osso-0.0.3.27 lib/osso/graphql/mutation.rb
osso-0.0.3.26 lib/osso/graphql/mutation.rb
osso-0.0.3.25 lib/osso/graphql/mutation.rb
osso-0.0.3.24 lib/osso/graphql/mutation.rb
osso-0.0.3.23 lib/osso/graphql/mutation.rb
osso-0.0.3.22 lib/osso/graphql/mutation.rb
osso-0.0.3.21 lib/osso/graphql/mutation.rb
osso-0.0.3.20 lib/osso/graphql/mutation.rb
osso-0.0.3.19 lib/osso/graphql/mutation.rb