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

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

Constant Summary collapse

SCHEMA_VERSION =
'20260819'.freeze
VALID_KEYS =

20260713: gained addReferenceIds/removeReferenceIds (set-diff of attached references). 20260819: picked up enableCrossRegisterReporting (Boolean, per WorkflowEditFieldConfigurationCrossReferenceInput; verified against the live schema dump of 20260819). NOTE it was FIRST OBSERVED on that date, not necessarily added then — validate_commands.rb had been reporting it as a MISSING key (schema accepts it, no builder path could set it), so the gap was ours, not the schema's. When it actually entered the schema is not established.

%i[
  displayFields displayFieldsInLookup hideCreate hideAttach hideMetadata
  registerId attachSourcePage hideDashboards singleSelectMode
  addReferenceIds removeReferenceIds enableCrossRegisterReporting
].freeze

Class Method Summary collapse

Class Method Details

.build(**kwargs) ⇒ Object



22
23
24
# File 'lib/ecoportal/api/graphql/input/workflow_command/field_config/cross_reference.rb', line 22

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