Add revision date_publication
This commit is contained in:
parent
f526e303e8
commit
3071af220a
3 changed files with 8 additions and 2 deletions
|
@ -374,7 +374,7 @@ type Demarche {
|
||||||
"""
|
"""
|
||||||
Date de la publication.
|
Date de la publication.
|
||||||
"""
|
"""
|
||||||
datePublication: ISO8601DateTime!
|
datePublication: ISO8601DateTime
|
||||||
|
|
||||||
"""
|
"""
|
||||||
L’état de dossier pour une démarche déclarative
|
L’état de dossier pour une démarche déclarative
|
||||||
|
@ -1589,6 +1589,11 @@ type Revision {
|
||||||
Date de la création.
|
Date de la création.
|
||||||
"""
|
"""
|
||||||
dateCreation: ISO8601DateTime!
|
dateCreation: ISO8601DateTime!
|
||||||
|
|
||||||
|
"""
|
||||||
|
Date de la publication.
|
||||||
|
"""
|
||||||
|
datePublication: ISO8601DateTime
|
||||||
id: ID!
|
id: ID!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ module Types
|
||||||
field :declarative, DossierDeclarativeState, "L’état de dossier pour une démarche déclarative", null: true, method: :declarative_with_state
|
field :declarative, DossierDeclarativeState, "L’état de dossier pour une démarche déclarative", null: true, method: :declarative_with_state
|
||||||
|
|
||||||
field :date_creation, GraphQL::Types::ISO8601DateTime, "Date de la création.", null: false, method: :created_at
|
field :date_creation, GraphQL::Types::ISO8601DateTime, "Date de la création.", null: false, method: :created_at
|
||||||
field :date_publication, GraphQL::Types::ISO8601DateTime, "Date de la publication.", null: false, method: :published_at
|
field :date_publication, GraphQL::Types::ISO8601DateTime, "Date de la publication.", null: true, method: :published_at
|
||||||
field :date_derniere_modification, GraphQL::Types::ISO8601DateTime, "Date de la dernière modification.", null: false, method: :updated_at
|
field :date_derniere_modification, GraphQL::Types::ISO8601DateTime, "Date de la dernière modification.", null: false, method: :updated_at
|
||||||
field :date_depublication, GraphQL::Types::ISO8601DateTime, "Date de la dépublication.", null: true, method: :unpublished_at
|
field :date_depublication, GraphQL::Types::ISO8601DateTime, "Date de la dépublication.", null: true, method: :unpublished_at
|
||||||
field :date_fermeture, GraphQL::Types::ISO8601DateTime, "Date de la fermeture.", null: true, method: :closed_at
|
field :date_fermeture, GraphQL::Types::ISO8601DateTime, "Date de la fermeture.", null: true, method: :closed_at
|
||||||
|
|
|
@ -2,6 +2,7 @@ module Types
|
||||||
class RevisionType < Types::BaseObject
|
class RevisionType < Types::BaseObject
|
||||||
global_id_field :id
|
global_id_field :id
|
||||||
field :date_creation, GraphQL::Types::ISO8601DateTime, "Date de la création.", null: false, method: :created_at
|
field :date_creation, GraphQL::Types::ISO8601DateTime, "Date de la création.", null: false, method: :created_at
|
||||||
|
field :date_publication, GraphQL::Types::ISO8601DateTime, "Date de la publication.", null: true, method: :published_at
|
||||||
|
|
||||||
field :champ_descriptors, [Types::ChampDescriptorType], null: false
|
field :champ_descriptors, [Types::ChampDescriptorType], null: false
|
||||||
field :annotation_descriptors, [Types::ChampDescriptorType], null: false
|
field :annotation_descriptors, [Types::ChampDescriptorType], null: false
|
||||||
|
|
Loading…
Reference in a new issue