Sha256: bb9778d43da9256120b273f7827b7a914e2db09aad4e04e41e139d50eaaf189c

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

module Ecoportal
  module API
    class GraphQL
      module Model
        class Organization < Ecoportal::API::GraphQL::Base::Organization
          DEFAULT_PATH = ["currentOrganization"]

          class << self
            extend Ecoportal::API::Common::GraphQL::QueryIntegration

            def path(*add)
              DEFAULT_PATH.dup.push(*add)
            end

            query :LocationStructure, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructure"
            query :LocationStructures, subpath: "locations", query_klass: "Ecoportal::API::GraphQL::Query::LocationStructures"
            query :contractorEntities, query_klass: "Ecoportal::API::GraphQL::Query::ContractorEntities"
            #contractorEntity,
            query :actions, query_klass: "Ecoportal::API::GraphQL::Query::Actions"
            #action, actionsByPage, actionsCounter
            #actionCategories

            #userGroup, userGroups

            #register, registers
            #personMembers, attachablePersonMembers
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecoportal-api-graphql-0.2.2 lib/ecoportal/api/graphql/model/organization.rb
ecoportal-api-graphql-0.2.1 lib/ecoportal/api/graphql/model/organization.rb