Module: Ecoportal::API::GraphQL::Input::WorkflowCommand::EditFieldConfiguration::LocationField

Defined in:
lib/ecoportal/api/graphql/input/workflow_command/field_config/location_field.rb

Constant Summary collapse

SCHEMA_VERSION =
'20260605'.freeze
VALID_KEYS =
%i[
  buttonText minimumRequired singleSelect autoselectDefaultLocation
  restrictByClassification addAllowedClassifications removeAllowedClassifications
  addAllowedStructures removeAllowedStructures
].freeze

Class Method Summary collapse

Class Method Details

.build(**kwargs) ⇒ Object



15
16
17
# File 'lib/ecoportal/api/graphql/input/workflow_command/field_config/location_field.rb', line 15

def self.build(**kwargs)
  { locationField: kwargs.slice(*VALID_KEYS).compact }
end