Module: Ecoportal::API::GraphQL::Input::WorkflowCommand::EditFieldConfiguration::Date
- Defined in:
- lib/ecoportal/api/graphql/input/workflow_command/field_config/date.rb
Constant Summary collapse
- SCHEMA_VERSION =
'20260725'.freeze
- VALID_KEYS =
20260713: smartFillConfiguration moved out to dedicated add/edit/removeSmartFillConfig commands. 20260725: gained the date-EVENT and RENEWAL keys below (calendar events + recurring expiry on a date field). Six keys that had never been reachable from this gem — renewals are how expiry-driven registers (certifications, inductions, permits) are configured, so this was a real functional hole, not a cosmetic one.
%i[ showTime pastOnly todayButton createEvent remindMeIn renews renewsEvery renewsUnit renewsUntil ].freeze
- RENEWS_UNITS =
PagesDataFieldsDatesRenewsUnitEnum
%w[DAY WEEK MONTH YEAR].freeze
- REMIND_OPTIONS =
DateEventRemindOption
%w[NEVER ONE_DAY THREE_DAYS ONE_WEEK TWO_WEEKS ONE_MONTH].freeze
Class Method Summary collapse
Class Method Details
.build(**kwargs) ⇒ Object
24 25 26 |
# File 'lib/ecoportal/api/graphql/input/workflow_command/field_config/date.rb', line 24 def self.build(**kwargs) { date: kwargs.slice(*VALID_KEYS).compact } end |