Sha256: 3d83f69178069f01d006d45d83bed923fc8d38c4d673d9f3a7a9bcd79db2aaf8
Contents?: true
Size: 1.88 KB
Versions: 2
Compression:
Stored size: 1.88 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 def banner_image object.attached_uploader(:banner_image).url end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
decidim-initiatives-0.28.4 | lib/decidim/api/initiative_api_type.rb |
decidim-initiatives-0.28.3 | lib/decidim/api/initiative_api_type.rb |