feat(graphql): add rnf_champ to graphql api
This commit is contained in:
parent
bfb8611c81
commit
a70e7ca903
4 changed files with 41 additions and 0 deletions
|
@ -110,6 +110,7 @@ class API::V2::Schema < GraphQL::Schema
|
|||
Types::Champs::Descriptor::RegionChampDescriptorType,
|
||||
Types::Champs::Descriptor::RepetitionChampDescriptorType,
|
||||
Types::Champs::Descriptor::RNAChampDescriptorType,
|
||||
Types::Champs::Descriptor::RNFChampDescriptorType,
|
||||
Types::Champs::Descriptor::SiretChampDescriptorType,
|
||||
Types::Champs::Descriptor::TextareaChampDescriptorType,
|
||||
Types::Champs::Descriptor::TextChampDescriptorType,
|
||||
|
|
|
@ -3535,6 +3535,34 @@ type RNAChampDescriptor implements ChampDescriptor {
|
|||
type: TypeDeChamp! @deprecated(reason: "Utilisez le champ `__typename` à la place.")
|
||||
}
|
||||
|
||||
type RNFChampDescriptor implements ChampDescriptor {
|
||||
"""
|
||||
Description des champs d’un bloc répétable.
|
||||
"""
|
||||
champDescriptors: [ChampDescriptor!] @deprecated(reason: "Utilisez le champ `RepetitionChampDescriptor.champ_descriptors` à la place.")
|
||||
|
||||
"""
|
||||
Description du champ.
|
||||
"""
|
||||
description: String
|
||||
id: ID!
|
||||
|
||||
"""
|
||||
Libellé du champ.
|
||||
"""
|
||||
label: String!
|
||||
|
||||
"""
|
||||
Est-ce que le champ est obligatoire ?
|
||||
"""
|
||||
required: Boolean!
|
||||
|
||||
"""
|
||||
Type de la valeur du champ.
|
||||
"""
|
||||
type: TypeDeChamp! @deprecated(reason: "Utilisez le champ `__typename` à la place.")
|
||||
}
|
||||
|
||||
type Region {
|
||||
code: String!
|
||||
name: String!
|
||||
|
@ -4053,6 +4081,11 @@ enum TypeDeChamp {
|
|||
"""
|
||||
rna
|
||||
|
||||
"""
|
||||
RNF
|
||||
"""
|
||||
rnf
|
||||
|
||||
"""
|
||||
Numéro Siret
|
||||
"""
|
||||
|
|
|
@ -72,6 +72,8 @@ module Types
|
|||
Types::Champs::Descriptor::PieceJustificativeChampDescriptorType
|
||||
when TypeDeChamp.type_champs.fetch(:rna)
|
||||
Types::Champs::Descriptor::RNAChampDescriptorType
|
||||
when TypeDeChamp.type_champs.fetch(:rnf)
|
||||
Types::Champs::Descriptor::RNFChampDescriptorType
|
||||
when TypeDeChamp.type_champs.fetch(:carte)
|
||||
Types::Champs::Descriptor::CarteChampDescriptorType
|
||||
when TypeDeChamp.type_champs.fetch(:repetition)
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
module Types::Champs::Descriptor
|
||||
class RNFChampDescriptorType < Types::BaseObject
|
||||
implements Types::ChampDescriptorType
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue