Sha256: 392650bab5cfd5f6be0b745bfa6b51f42959bcbf7332cbd5b23a3c582bc2c62f
Contents?: true
Size: 1.28 KB
Versions: 10
Compression:
Stored size: 1.28 KB
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 :description, Decidim::Core::TranslatedFieldType, "The description 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 field :callToActionPath, types.String, "A call to action URL for this step", property: :cta_path field :callToActionText, Decidim::Core::TranslatedFieldType, "The call to action text for this step", property: :cta_text field :active, types.Boolean, "If this step is the active one" field :position, types.Int, "Ordering position among all the steps" end end end
Version data entries
10 entries across 10 versions & 1 rubygems