Add revision date_publication

This commit is contained in:
Paul Chavard 2021-01-21 19:02:23 +01:00
parent f526e303e8
commit 3071af220a
3 changed files with 8 additions and 2 deletions

View file

@ -374,7 +374,7 @@ type Demarche {
"""
Date de la publication.
"""
datePublication: ISO8601DateTime!
datePublication: ISO8601DateTime
"""
Létat de dossier pour une démarche déclarative
@ -1589,6 +1589,11 @@ type Revision {
Date de la création.
"""
dateCreation: ISO8601DateTime!
"""
Date de la publication.
"""
datePublication: ISO8601DateTime
id: ID!
}

View file

@ -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 :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_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

View file

@ -2,6 +2,7 @@ module Types
class RevisionType < Types::BaseObject
global_id_field :id
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 :annotation_descriptors, [Types::ChampDescriptorType], null: false