Sha256: ae4b4d6cb8432273deca508ceb9202d29daa972bb9ccebdc0f09b4a18456b217

Contents?: true

Size: 1.91 KB

Versions: 36

Compression:

Stored size: 1.91 KB

Contents

# frozen_string_literal: true

module Decidim
  module Accountability
    class ResultType < Decidim::Api::Types::BaseObject
      implements Decidim::Core::ComponentInterface
      implements Decidim::Core::CategorizableInterface
      implements Decidim::Comments::CommentableInterface
      implements Decidim::Core::ScopableInterface

      description "A result"

      field :id, GraphQL::Types::ID, "The internal ID for this result", null: false
      field :title, Decidim::Core::TranslatedFieldType, "The title for this result", null: true
      field :description, Decidim::Core::TranslatedFieldType, "The description for this result", null: true
      field :reference, GraphQL::Types::String, "The reference for this result", null: true
      field :start_date, Decidim::Core::DateType, "The start date for this result", null: true
      field :end_date, Decidim::Core::DateType, "The end date for this result", null: true
      field :progress, GraphQL::Types::Float, "The progress for this result", null: true
      field :created_at, Decidim::Core::DateTimeType, "When this result was created", null: true
      field :updated_at, Decidim::Core::DateTimeType, "When this result was updated", null: true
      field :children_count, GraphQL::Types::Int, "The number of children results", null: true
      field :weight, GraphQL::Types::Int, "The order of this result", null: false
      field :external_id, GraphQL::Types::String, "The external ID for this result", null: true

      field :children, [Decidim::Accountability::ResultType, { null: true }], "The childrens results", null: true
      field :parent, Decidim::Accountability::ResultType, "The parent result", null: true
      field :status, Decidim::Accountability::StatusType, "The status for this result", null: true
      field :timeline_entries, [Decidim::Accountability::TimelineEntryType, { null: true }], "The timeline entries for this result", null: true
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
decidim-accountability-0.26.10 lib/decidim/api/result_type.rb
decidim-accountability-0.26.9 lib/decidim/api/result_type.rb
decidim-accountability-0.28.0 lib/decidim/api/result_type.rb
decidim-accountability-0.27.5 lib/decidim/api/result_type.rb
decidim-accountability-0.28.0.rc5 lib/decidim/api/result_type.rb
decidim-accountability-0.28.0.rc4 lib/decidim/api/result_type.rb
decidim-accountability-0.26.8 lib/decidim/api/result_type.rb
decidim-accountability-0.27.4 lib/decidim/api/result_type.rb
decidim-accountability-0.27.3 lib/decidim/api/result_type.rb
decidim-accountability-0.26.7 lib/decidim/api/result_type.rb
decidim-accountability-0.26.5 lib/decidim/api/result_type.rb
decidim-accountability-0.27.2 lib/decidim/api/result_type.rb
decidim-accountability-0.27.1 lib/decidim/api/result_type.rb
decidim-accountability-0.26.4 lib/decidim/api/result_type.rb
decidim-accountability-0.27.0 lib/decidim/api/result_type.rb
decidim-accountability-0.26.3 lib/decidim/api/result_type.rb
decidim-accountability-0.27.0.rc2 lib/decidim/api/result_type.rb
decidim-accountability-0.27.0.rc1 lib/decidim/api/result_type.rb
decidim-accountability-0.26.2 lib/decidim/api/result_type.rb
decidim-accountability-0.26.1 lib/decidim/api/result_type.rb