Sha256: 5df5990536bde77253118870b33069f8e1e0f7e3ee449a7571668a64939babea

Contents?: true

Size: 850 Bytes

Versions: 30

Compression:

Stored size: 850 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    # This type represents a step on a participatory process.
    ParticipatoryProcessStepType = GraphQL::ObjectType.define do
      name "ParticipatoryProcessStep"
      description "A participatory process step"

      field :id, !types.ID, "The unique ID of this step."

      field :participatoryProcess do
        type !ParticipatoryProcessType
        description "The participatory process in which this step belongs to."
        property :participatory_process
      end

      field :title, !Decidim::Core::TranslatedFieldType, "The title of this step"

      field :startDate, Decidim::Core::DateType, "This step's start date.", property: :start_date

      field :endDate, Decidim::Core::DateType, "This step's end date.", property: :end_date
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.13.0 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.12.1 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.13.0.pre1 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.12.0 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.11.2 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.12.0.pre app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.11.1 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.11.0.pre1 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.10.1 app/types/decidim/participatory_processes/participatory_process_step_type.rb
decidim-participatory_processes-0.10.0 app/types/decidim/participatory_processes/participatory_process_step_type.rb