Sha256: de7fb0800013da63329e73bc74895c8c0f7660836905afbbb35814689d13a6b4

Contents?: true

Size: 1.8 KB

Versions: 6

Compression:

Stored size: 1.8 KB

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    class InitiativeApiType < Decidim::Api::Types::BaseObject
      graphql_name "InitiativeType"
      description "An initiative type"

      field :id, GraphQL::Types::ID, "The internal ID for this initiative type", null: false
      field :title, Decidim::Core::TranslatedFieldType, "Initiative type name", null: true
      field :description, Decidim::Core::TranslatedFieldType, "This is the initiative type description", null: true
      field :created_at, Decidim::Core::DateTimeType, "The date this initiative type was created", null: true
      field :updated_at, Decidim::Core::DateTimeType, "The date this initiative type was updated", null: true
      field :banner_image, GraphQL::Types::String, "Banner image", null: true
      field :collect_user_extra_fields, GraphQL::Types::Boolean, "Collect participant personal data on signature", null: true
      field :extra_fields_legal_information, GraphQL::Types::String, "Legal information about the collection of personal data", null: true
      field :minimum_committee_members, GraphQL::Types::Int, "Minimum of committee members", null: true
      field :validate_sms_code_on_votes, GraphQL::Types::Boolean, "Add SMS code validation step to signature process", null: true
      field :undo_online_signatures_enabled, GraphQL::Types::Boolean, "Enable participants to undo their online signatures", null: true
      field :promoting_comittee_enabled, GraphQL::Types::Boolean, "If promoting committee is enabled", method: :promoting_committee_enabled, null: true
      field :signature_type, GraphQL::Types::String, "Signature type of the initiative", null: true

      field :initiatives, [Decidim::Initiatives::InitiativeType, { null: true }], "The initiatives that have this type", null: false
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-initiatives-0.24.3 lib/decidim/api/initiative_api_type.rb
decidim-initiatives-0.24.2 lib/decidim/api/initiative_api_type.rb
decidim-initiatives-0.24.1 lib/decidim/api/initiative_api_type.rb
decidim-initiatives-0.24.0 lib/decidim/api/initiative_api_type.rb
decidim-initiatives-0.24.0.rc2 lib/decidim/api/initiative_api_type.rb
decidim-initiatives-0.24.0.rc1 lib/decidim/api/initiative_api_type.rb