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 :action, query_klass: "Ecoportal::API::GraphQL::Query::Action" query :actions, query_klass: "Ecoportal::API::GraphQL::Query::Actions" query :archiveAction, query_klass: "Ecoportal::API::GraphQL::Mutation::Action::Archive" #action, actionsByPage, actionsCounter #actionCategories #userGroup, userGroups #register, registers #personMembers, attachablePersonMembers end end end end end end