Sha256: e892c87909c8a3135f306d8307e76df38fe7a3a14d7ad0c89746e63ebd0a1378

Contents?: true

Size: 1.86 KB

Versions: 8

Compression:

Stored size: 1.86 KB

Contents

# frozen_string_literal: true

module Decidim
  module Accountability
    class ResultType < Decidim::Api::Types::BaseObject
      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

8 entries across 8 versions & 1 rubygems

Version Path
decidim-accountability-0.28.4 lib/decidim/api/result_type.rb
decidim-accountability-0.27.9 lib/decidim/api/result_type.rb
decidim-accountability-0.28.3 lib/decidim/api/result_type.rb
decidim-accountability-0.27.8 lib/decidim/api/result_type.rb
decidim-accountability-0.28.2 lib/decidim/api/result_type.rb
decidim-accountability-0.27.7 lib/decidim/api/result_type.rb
decidim-accountability-0.28.1 lib/decidim/api/result_type.rb
decidim-accountability-0.27.6 lib/decidim/api/result_type.rb