Merge pull request #9349 from tchak/graphql-with-pending-correction

chore(graphql): update stored query to include corrections
This commit is contained in:
Paul Chavard 2023-08-01 08:24:25 +00:00 committed by GitHub
commit a4b8ad8f3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,7 @@ class API::V2::StoredQuery
$includeInstructeurs: Boolean = true
$includeAvis: Boolean = false
$includeMessages: Boolean = false
$includeCorrections: Boolean = false
$includeGeometry: Boolean = false
) {
demarche(number: $demarcheNumber) {
@ -135,6 +136,7 @@ class API::V2::StoredQuery
$includeInstructeurs: Boolean = true
$includeAvis: Boolean = false
$includeMessages: Boolean = false
$includeCorrections: Boolean = false
$includeGeometry: Boolean = false
) {
groupeInstructeur(number: $groupeInstructeurNumber) {
@ -201,6 +203,7 @@ class API::V2::StoredQuery
$includeInstructeurs: Boolean = true
$includeAvis: Boolean = false
$includeMessages: Boolean = false
$includeCorrections: Boolean = false
$includeGeometry: Boolean = false
) {
dossier(number: $dossierNumber) {
@ -250,6 +253,7 @@ class API::V2::StoredQuery
dateTraitement
dateExpiration
dateSuppressionParUsager
dateDerniereCorrectionEnAttente @include(if: $includeCorrections)
motivation
motivationAttachment {
...FileFragment
@ -409,6 +413,10 @@ class API::V2::StoredQuery
attachments {
...FileFragment
}
correction @include(if: $includeCorrections) {
reason
dateResolution
}
}
fragment GeoAreaFragment on GeoArea {