Sha256: a1a819a4e23762bb6b42a916a3948d4e237bfcd6602e05744f339c856ea93651
Contents?: true
Size: 1.88 KB
Versions: 36
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).path end end end end
Version data entries
36 entries across 36 versions & 1 rubygems