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

Version Path
decidim-participatory_processes-0.26.1 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.26.0 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.26.0.rc2 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.26.0.rc1 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.25.2 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.25.1 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.25.0 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.25.0.rc4 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.25.0.rc3 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.25.0.rc2 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.25.0.rc1 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.24.3 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.24.2 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.24.1 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.24.0 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.24.0.rc2 lib/decidim/api/participatory_process_step_type.rb
decidim-participatory_processes-0.24.0.rc1 lib/decidim/api/participatory_process_step_type.rb