Sha256: 23537909b612dc663262544558eb4c9ce7fb5053fb55aa15baade83016b7f0c9

Contents?: true

Size: 958 Bytes

Versions: 50

Compression:

Stored size: 958 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Core
    class AmendmentType < Decidim::Api::Types::BaseObject
      description "An amendment"

      field :id, GraphQL::Types::ID, "The id of this amendment", null: false
      field :state, GraphQL::Types::String, "The status of this amendment", null: false
      field :amender, Decidim::Core::AuthorInterface, "The author of this amendment", null: false

      field :amendable_type, GraphQL::Types::String, method: :decidim_amendable_type, description: "Type of the amendable object", null: false
      field :emendation_type, GraphQL::Types::String, method: :decidim_emendation_type, description: "Type of the emendation object", null: false

      field :amendable, AmendableEntityInterface, "The original amended resource (currently, a proposal only)", null: false
      field :emendation, AmendableEntityInterface, "The emendation (currently, a proposal only)", null: false
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
decidim-core-0.29.1 lib/decidim/api/types/amendment_type.rb
decidim-core-0.28.4 lib/decidim/api/types/amendment_type.rb
decidim-core-0.27.9 lib/decidim/api/types/amendment_type.rb
decidim-core-0.29.0 lib/decidim/api/types/amendment_type.rb
decidim-core-0.28.3 lib/decidim/api/types/amendment_type.rb
decidim-core-0.27.8 lib/decidim/api/types/amendment_type.rb
decidim-core-0.29.0.rc4 lib/decidim/api/types/amendment_type.rb
decidim-core-0.29.0.rc3 lib/decidim/api/types/amendment_type.rb
decidim-core-0.29.0.rc2 lib/decidim/api/types/amendment_type.rb
decidim-core-0.29.0.rc1 lib/decidim/api/types/amendment_type.rb
decidim-core-0.28.2 lib/decidim/api/types/amendment_type.rb
decidim-core-0.27.7 lib/decidim/api/types/amendment_type.rb
decidim-core-0.28.1 lib/decidim/api/types/amendment_type.rb
decidim-core-0.27.6 lib/decidim/api/types/amendment_type.rb
decidim-core-0.26.10 lib/decidim/api/types/amendment_type.rb
decidim-core-0.26.9 lib/decidim/api/types/amendment_type.rb
decidim-core-0.28.0 lib/decidim/api/types/amendment_type.rb
decidim-core-0.27.5 lib/decidim/api/types/amendment_type.rb
decidim-core-0.28.0.rc5 lib/decidim/api/types/amendment_type.rb
decidim-core-0.28.0.rc4 lib/decidim/api/types/amendment_type.rb