Sha256: 4a48d00a27155b6c13e058571750d0a8164eb81fbfbdf10e14585a08528abeb2

Contents?: true

Size: 1.3 KB

Versions: 50

Compression:

Stored size: 1.3 KB

Contents

# frozen_string_literal: true

module Decidim
  module Meetings
    class AgendaItemType < Decidim::Api::Types::BaseObject
      graphql_name "MeetingAgendaItem"
      description "A meeting agenda item"

      field :id, GraphQL::Types::ID, "The ID for this agenda item", null: false
      field :title, Decidim::Core::TranslatedFieldType, "The title for this agenda item", null: true
      field :description, Decidim::Core::TranslatedFieldType, "The description for this agenda item", null: true
      field :items, [Decidim::Meetings::AgendaItemType, { null: true }], "Sub-items (children) of this agenda item", method: :agenda_item_children, null: false
      field :parent, Decidim::Meetings::AgendaItemType, "Parent agenda item, if available", null: true
      field :agenda, Decidim::Meetings::AgendaType, "Belonging agenda", null: true
      field :duration, GraphQL::Types::Int, "Duration in number of minutes for this item in this agenda", null: false
      field :position, GraphQL::Types::Int, "Order position for this agenda item", null: false

      field :created_at, Decidim::Core::DateTimeType, description: "The date and time this agenda item was created", null: true
      field :updated_at, Decidim::Core::DateTimeType, description: "The date and time this agenda item was updated", null: true
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

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