Sha256: fcfba795bc28594039677913107bc2fa986812b5feba55fae1204ba270066b05
Contents?: true
Size: 1.3 KB
Versions: 37
Compression:
Stored size: 1.3 KB
Contents
# frozen_string_literal: true module Decidim module ParticipatoryProcesses # This type represents a step on a participatory process. class ParticipatoryProcessStepType < Decidim::Api::Types::BaseObject description "A participatory process step" field :id, GraphQL::Types::ID, "The unique ID of this step.", null: false field :participatory_process, ParticipatoryProcessType, description: "The participatory process in which this step belongs to.", null: false field :title, Decidim::Core::TranslatedFieldType, "The title of this step", null: false field :description, Decidim::Core::TranslatedFieldType, "The description of this step", null: true field :start_date, Decidim::Core::DateType, "This step's start date", null: true field :end_date, Decidim::Core::DateType, "This step's end date", null: true field :call_to_action_path, GraphQL::Types::String, "A call to action URL for this step", method: :cta_path, null: true field :call_to_action_text, Decidim::Core::TranslatedFieldType, "The call to action text for this step", method: :cta_text, null: true field :active, GraphQL::Types::Boolean, "If this step is the active one", null: true field :position, GraphQL::Types::Int, "Ordering position among all the steps", null: true end end end
Version data entries
37 entries across 37 versions & 1 rubygems