Sha256: 0cf921f1775efd8522b452d6a8ac3d8fc093275ab20213023328d436b6717583

Contents?: true

Size: 1.79 KB

Versions: 10

Compression:

Stored size: 1.79 KB

Contents

# frozen_string_literal: true

module Decidim
  module Initiatives
    InitiativeApiType = GraphQL::ObjectType.define do
      name "InitiativeType"
      description "An initiative type"

      field :id, !types.ID, "The internal ID for this initiative type"
      field :title, Decidim::Core::TranslatedFieldType, "Initiative type name"
      field :description, Decidim::Core::TranslatedFieldType, "This is the initiative type description"
      field :createdAt, Decidim::Core::DateTimeType, "The date this initiative type was created", property: :created_at
      field :updatedAt, Decidim::Core::DateTimeType, "The date this initiative type was updated", property: :updated_at
      field :bannerImage, types.String, "Banner image", property: :banner_image
      field :collectUserExtraFields, types.Boolean, "Collect participant personal data on signature", property: :collect_user_extra_fields
      field :extraFieldsLegalInformation, types.String, "Legal information about the collection of personal data", property: :extra_fields_legal_information
      field :minimumCommitteeMembers, types.Int, "Minimum of committee members", property: :minimum_committee_members
      field :validateSmsCodeOnVotes, types.Boolean, "Add SMS code validation step to signature process", property: :validate_sms_code_on_votes
      field :undoOnlineSignaturesEnabled, types.Boolean, "Enable participants to undo their online signatures", property: :undo_online_signatures_enabled
      field :promotingComitteeEnabled, types.Boolean, "If promoting committee is enabled", property: :promoting_committee_enabled
      field :signatureType, types.String, "Signature type of the initiative", property: :signature_type

      field :initiatives, !types[Decidim::Initiatives::InitiativeType], "The initiatives that have this type"
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-initiatives-0.23.6 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.23.5 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.23.4 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.23.3 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.23.2 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.23.1 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.23.1.rc1 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.23.0 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.22.0 app/types/decidim/initiatives/initiative_api_type.rb
decidim-initiatives-0.21.0 app/types/decidim/initiatives/initiative_api_type.rb