Sha256: b32ed7f1a006b1ebd76627acf6cdc96f20725cffbdbaaa54c9fef12cab40c844

Contents?: true

Size: 1.55 KB

Versions: 13

Compression:

Stored size: 1.55 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 :designationMode, types.String, "Mode in which the member was designated", property: :designation_mode # non-public currently
      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

13 entries across 13 versions & 1 rubygems

Version Path
decidim-assemblies-0.25.2 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.25.1 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.25.0 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.25.0.rc4 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.25.0.rc3 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.25.0.rc2 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.25.0.rc1 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.24.3 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.24.2 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.24.1 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.24.0 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.24.0.rc2 lib/decidim/api/assembly_member_type.rb
decidim-assemblies-0.24.0.rc1 lib/decidim/api/assembly_member_type.rb