Sha256: 9496be7db1cb006070f79cd05b92a869b32caeb700ef742a1eea5a662d4ad3ad

Contents?: true

Size: 719 Bytes

Versions: 12

Compression:

Stored size: 719 Bytes

Contents

# frozen_string_literal: true

require 'graphql'

module Osso
  module GraphQL
    module Types
      class EnterpriseAccount < Types::BaseObject
        description 'An Account for a company that wishes to use SAML via Osso'
        implements ::GraphQL::Types::Relay::Node

        field :id, ID, null: false
        field :name, String, null: false
        field :domain, String, null: false
        field :identity_providers, [Types::IdentityProvider], null: true
        field :status, String, null: false
        field :users_count, Integer, null: false

        def status
          'active'
        end

        def identity_providers
          object.identity_providers
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
osso-0.1.2 lib/osso/graphql/types/enterprise_account.rb
osso-0.1.1 lib/osso/graphql/types/enterprise_account.rb
osso-0.1.0 lib/osso/graphql/types/enterprise_account.rb
osso-0.0.11 lib/osso/graphql/types/enterprise_account.rb
osso-0.0.10 lib/osso/graphql/types/enterprise_account.rb
osso-0.0.8 lib/osso/graphql/types/enterprise_account.rb
osso-0.0.7 lib/osso/graphql/types/enterprise_account.rb
osso-0.0.6 lib/osso/graphql/types/enterprise_account.rb
osso-0.0.6.alpha lib/osso/graphql/types/enterprise_account.rb
osso-0.0.5 lib/osso/graphql/types/enterprise_account.rb
osso-0.0.5.pre.lambda lib/osso/graphql/types/enterprise_account.rb
osso-0.0.5.pre.kappa lib/osso/graphql/types/enterprise_account.rb