Sha256: f24eb3ba79e23affe3c7f7e7b8aaa09c4dba57e780ebc83bf02bb16e4c2e7b40

Contents?: true

Size: 1.42 KB

Versions: 24

Compression:

Stored size: 1.42 KB

Contents

# frozen_string_literal: true

module Decidim
  module Assemblies
    # This type represents a assembly.
    class AssemblyMemberType < Decidim::Api::Types::BaseObject
      description "An assembly member"

      field :id, GraphQL::Types::ID, "Internal ID of the member", null: false
      field :full_name, GraphQL::Types::String, "Full name of the member", null: true
      field :position, GraphQL::Types::String, "Position of the member in the assembly", null: true

      field :user, Decidim::Core::UserType, "The corresponding decidim user", null: true

      field :created_at, Decidim::Core::DateTimeType, "The time this member was created", null: true
      field :updated_at, Decidim::Core::DateTimeType, "The time this member was updated", null: true

      field :weight, GraphQL::Types::Int, "Order of appearance in which it should be represented", null: true
      field :gender, GraphQL::Types::String, "Gender of the member", null: true
      # field :birthday, Decidim::Core::DateType, "Birthday date of the member" # non-public currently
      field :birthplace, GraphQL::Types::String, "Birthplace of the member", null: true
      field :designation_date, Decidim::Core::DateType, "Date of designation of the member", null: true
      field :position_other, GraphQL::Types::String, "Custom position name", null: true
      field :ceased_date, Decidim::Core::DateType, "Date of cease for the member", null: true
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
decidim-assemblies-0.27.9 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.8 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.7 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.6 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.10 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.9 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.5 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.8 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.4 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.3 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.7 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.5 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.2 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.1 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.4 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.0 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.3 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.0.rc2 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.27.0.rc1 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.26.2 lib/decidim/api/assembly_member_type.rb