2022-10-31 18:21:24 +01:00
|
|
|
class API::V2::StoredQuery
|
|
|
|
def self.get(query_id, fallback: nil)
|
|
|
|
case query_id
|
|
|
|
when 'ds-query-v2'
|
|
|
|
QUERY_V2
|
|
|
|
when 'ds-mutation-v2'
|
|
|
|
MUTATION_V2
|
2023-01-19 19:37:58 +01:00
|
|
|
when 'introspection'
|
|
|
|
GraphQL::Introspection::INTROSPECTION_QUERY
|
2022-10-31 18:21:24 +01:00
|
|
|
else
|
|
|
|
if fallback.nil?
|
|
|
|
raise GraphQL::ExecutionError.new("No query with id \"#{query_id}\"")
|
|
|
|
else
|
|
|
|
fallback
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
QUERY_V2 = <<-'GRAPHQL'
|
|
|
|
query getDemarche(
|
|
|
|
$demarcheNumber: Int!
|
|
|
|
$state: DossierState
|
|
|
|
$order: Order
|
|
|
|
$first: Int
|
|
|
|
$after: String
|
|
|
|
$archived: Boolean
|
|
|
|
$revision: ID
|
|
|
|
$createdSince: ISO8601DateTime
|
|
|
|
$updatedSince: ISO8601DateTime
|
|
|
|
$deletedOrder: Order
|
|
|
|
$deletedFirst: Int
|
|
|
|
$deletedAfter: String
|
|
|
|
$deletedSince: ISO8601DateTime
|
|
|
|
$includeGroupeInstructeurs: Boolean = false
|
|
|
|
$includeDossiers: Boolean = false
|
|
|
|
$includeDeletedDossiers: Boolean = false
|
|
|
|
$includeRevision: Boolean = false
|
|
|
|
$includeService: Boolean = false
|
|
|
|
$includeChamps: Boolean = true
|
|
|
|
$includeAnotations: Boolean = true
|
|
|
|
$includeTraitements: Boolean = true
|
|
|
|
$includeInstructeurs: Boolean = true
|
|
|
|
$includeAvis: Boolean = false
|
|
|
|
$includeMessages: Boolean = false
|
|
|
|
$includeGeometry: Boolean = false
|
|
|
|
) {
|
|
|
|
demarche(number: $demarcheNumber) {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
title
|
|
|
|
state
|
|
|
|
declarative
|
|
|
|
dateCreation
|
|
|
|
dateFermeture
|
2022-11-24 13:16:37 +01:00
|
|
|
activeRevision @include(if: $includeRevision) {
|
2022-10-31 18:21:24 +01:00
|
|
|
...RevisionFragment
|
|
|
|
}
|
|
|
|
groupeInstructeurs @include(if: $includeGroupeInstructeurs) {
|
|
|
|
...GroupeInstructeurFragment
|
|
|
|
}
|
|
|
|
service @include(if: $includeService) {
|
|
|
|
...ServiceFragment
|
|
|
|
}
|
|
|
|
dossiers(
|
|
|
|
state: $state
|
|
|
|
order: $order
|
|
|
|
first: $first
|
|
|
|
after: $after
|
|
|
|
archived: $archived
|
|
|
|
createdSince: $createdSince
|
|
|
|
updatedSince: $updatedSince
|
|
|
|
revision: $revision
|
|
|
|
) @include(if: $includeDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DossierFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
deletedDossiers(
|
|
|
|
order: $deletedOrder
|
|
|
|
first: $deletedFirst
|
|
|
|
after: $deletedAfter
|
|
|
|
deletedSince: $deletedSince
|
|
|
|
) @include(if: $includeDeletedDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DeletedDossierFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query getGroupeInstructeur(
|
|
|
|
$groupeInstructeurNumber: Int!
|
|
|
|
$state: DossierState
|
|
|
|
$order: Order
|
|
|
|
$first: Int
|
|
|
|
$after: String
|
2022-11-02 13:18:18 +01:00
|
|
|
$archived: Boolean
|
|
|
|
$revision: ID
|
2022-10-31 18:21:24 +01:00
|
|
|
$createdSince: ISO8601DateTime
|
|
|
|
$updatedSince: ISO8601DateTime
|
2022-11-04 10:07:56 +01:00
|
|
|
$deletedOrder: Order
|
|
|
|
$deletedFirst: Int
|
|
|
|
$deletedAfter: String
|
|
|
|
$deletedSince: ISO8601DateTime
|
2022-10-31 18:21:24 +01:00
|
|
|
$includeDossiers: Boolean = false
|
2022-11-04 10:07:56 +01:00
|
|
|
$includeDeletedDossiers: Boolean = false
|
2022-10-31 18:21:24 +01:00
|
|
|
$includeChamps: Boolean = true
|
|
|
|
$includeAnotations: Boolean = true
|
|
|
|
$includeTraitements: Boolean = true
|
|
|
|
$includeInstructeurs: Boolean = true
|
|
|
|
$includeAvis: Boolean = false
|
|
|
|
$includeMessages: Boolean = false
|
|
|
|
$includeGeometry: Boolean = false
|
|
|
|
) {
|
|
|
|
groupeInstructeur(number: $groupeInstructeurNumber) {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
label
|
|
|
|
instructeurs @include(if: $includeInstructeurs) {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
dossiers(
|
|
|
|
state: $state
|
|
|
|
order: $order
|
|
|
|
first: $first
|
|
|
|
after: $after
|
2022-11-02 13:18:18 +01:00
|
|
|
archived: $archived
|
2022-10-31 18:21:24 +01:00
|
|
|
createdSince: $createdSince
|
|
|
|
updatedSince: $updatedSince
|
2022-11-02 13:18:18 +01:00
|
|
|
revision: $revision
|
2022-10-31 18:21:24 +01:00
|
|
|
) @include(if: $includeDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DossierFragment
|
|
|
|
}
|
|
|
|
}
|
2022-11-04 10:07:56 +01:00
|
|
|
deletedDossiers(
|
|
|
|
order: $deletedOrder
|
|
|
|
first: $deletedFirst
|
|
|
|
after: $deletedAfter
|
|
|
|
deletedSince: $deletedSince
|
|
|
|
) @include(if: $includeDeletedDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DeletedDossierFragment
|
|
|
|
}
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query getDossier(
|
|
|
|
$dossierNumber: Int!
|
|
|
|
$includeRevision: Boolean = false
|
|
|
|
$includeService: Boolean = false
|
|
|
|
$includeChamps: Boolean = true
|
|
|
|
$includeAnotations: Boolean = true
|
|
|
|
$includeTraitements: Boolean = true
|
|
|
|
$includeInstructeurs: Boolean = true
|
|
|
|
$includeAvis: Boolean = false
|
|
|
|
$includeMessages: Boolean = false
|
|
|
|
$includeGeometry: Boolean = false
|
|
|
|
) {
|
|
|
|
dossier(number: $dossierNumber) {
|
|
|
|
...DossierFragment
|
|
|
|
demarche {
|
|
|
|
...DemarcheDescriptorFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-11-23 20:47:22 +01:00
|
|
|
query getDemarcheDescriptor(
|
|
|
|
$demarche: FindDemarcheInput!
|
|
|
|
$includeRevision: Boolean = false
|
|
|
|
$includeService: Boolean = false
|
|
|
|
) {
|
|
|
|
demarcheDescriptor(demarche: $demarche) {
|
|
|
|
...DemarcheDescriptorFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-31 18:21:24 +01:00
|
|
|
fragment ServiceFragment on Service {
|
|
|
|
nom
|
|
|
|
siret
|
|
|
|
organisme
|
|
|
|
typeOrganisme
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment GroupeInstructeurFragment on GroupeInstructeur {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
label
|
|
|
|
instructeurs @include(if: $includeInstructeurs) {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment DossierFragment on Dossier {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
archived
|
|
|
|
state
|
|
|
|
dateDerniereModification
|
|
|
|
dateDepot
|
|
|
|
datePassageEnConstruction
|
|
|
|
datePassageEnInstruction
|
|
|
|
dateTraitement
|
|
|
|
dateExpiration
|
|
|
|
dateSuppressionParUsager
|
|
|
|
motivation
|
|
|
|
motivationAttachment {
|
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
attestation {
|
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
pdf {
|
|
|
|
url
|
|
|
|
}
|
|
|
|
usager {
|
|
|
|
email
|
|
|
|
}
|
|
|
|
groupeInstructeur {
|
|
|
|
...GroupeInstructeurFragment
|
|
|
|
}
|
|
|
|
demandeur {
|
|
|
|
... on PersonnePhysique {
|
|
|
|
civilite
|
|
|
|
nom
|
|
|
|
prenom
|
|
|
|
dateDeNaissance
|
|
|
|
}
|
|
|
|
...PersonneMoraleFragment
|
|
|
|
}
|
|
|
|
demarche {
|
|
|
|
revision {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
instructeurs @include(if: $includeInstructeurs) {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
traitements @include(if: $includeTraitements) {
|
|
|
|
state
|
|
|
|
emailAgentTraitant
|
|
|
|
dateTraitement
|
|
|
|
motivation
|
|
|
|
}
|
|
|
|
champs @include(if: $includeChamps) {
|
|
|
|
...ChampFragment
|
|
|
|
...RootChampFragment
|
|
|
|
}
|
|
|
|
annotations @include(if: $includeAnotations) {
|
|
|
|
...ChampFragment
|
|
|
|
...RootChampFragment
|
|
|
|
}
|
|
|
|
avis @include(if: $includeAvis) {
|
|
|
|
...AvisFragment
|
|
|
|
}
|
|
|
|
messages @include(if: $includeMessages) {
|
|
|
|
...MessageFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment DemarcheDescriptorFragment on DemarcheDescriptor {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
title
|
|
|
|
description
|
|
|
|
state
|
|
|
|
declarative
|
|
|
|
dateCreation
|
|
|
|
datePublication
|
|
|
|
dateDerniereModification
|
|
|
|
dateDepublication
|
|
|
|
dateFermeture
|
2023-01-18 18:05:59 +01:00
|
|
|
notice { url }
|
|
|
|
deliberation { url }
|
2023-02-15 18:30:02 +01:00
|
|
|
demarcheUrl
|
2023-01-18 18:05:59 +01:00
|
|
|
cadreJuridiqueUrl
|
2022-10-31 18:21:24 +01:00
|
|
|
service @include(if: $includeService) {
|
|
|
|
...ServiceFragment
|
|
|
|
}
|
|
|
|
revision @include(if: $includeRevision) {
|
|
|
|
...RevisionFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment DeletedDossierFragment on DeletedDossier {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
dateSupression
|
|
|
|
state
|
|
|
|
reason
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment RevisionFragment on Revision {
|
|
|
|
id
|
|
|
|
datePublication
|
|
|
|
champDescriptors {
|
|
|
|
...ChampDescriptorFragment
|
2022-11-24 13:16:37 +01:00
|
|
|
... on RepetitionChampDescriptor {
|
|
|
|
champDescriptors {
|
|
|
|
...ChampDescriptorFragment
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
annotationDescriptors {
|
|
|
|
...ChampDescriptorFragment
|
2022-11-24 13:16:37 +01:00
|
|
|
... on RepetitionChampDescriptor {
|
|
|
|
champDescriptors {
|
|
|
|
...ChampDescriptorFragment
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChampDescriptorFragment on ChampDescriptor {
|
2022-11-24 13:16:37 +01:00
|
|
|
__typename
|
2022-10-31 18:21:24 +01:00
|
|
|
id
|
|
|
|
label
|
|
|
|
description
|
|
|
|
required
|
2022-11-24 13:16:37 +01:00
|
|
|
... on DropDownListChampDescriptor {
|
|
|
|
options
|
|
|
|
otherOption
|
|
|
|
}
|
|
|
|
... on MultipleDropDownListChampDescriptor {
|
|
|
|
options
|
|
|
|
}
|
|
|
|
... on LinkedDropDownListChampDescriptor {
|
|
|
|
options
|
|
|
|
}
|
|
|
|
... on PieceJustificativeChampDescriptor {
|
|
|
|
fileTemplate {
|
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on ExplicationChampDescriptor {
|
|
|
|
collapsibleExplanationEnabled
|
|
|
|
collapsibleExplanationText
|
|
|
|
}
|
2022-12-21 17:42:12 +01:00
|
|
|
... on PaysChampDescriptor {
|
|
|
|
options {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on RegionChampDescriptor {
|
|
|
|
options {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on DepartementChampDescriptor {
|
|
|
|
options {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment AvisFragment on Avis {
|
|
|
|
id
|
|
|
|
question
|
|
|
|
reponse
|
|
|
|
dateQuestion
|
|
|
|
dateReponse
|
|
|
|
claimant {
|
|
|
|
email
|
|
|
|
}
|
|
|
|
expert {
|
|
|
|
email
|
|
|
|
}
|
2022-12-06 13:25:29 +01:00
|
|
|
attachments {
|
2022-10-31 18:21:24 +01:00
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment MessageFragment on Message {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
body
|
|
|
|
createdAt
|
2022-12-06 13:25:29 +01:00
|
|
|
attachments {
|
2022-10-31 18:21:24 +01:00
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment GeoAreaFragment on GeoArea {
|
|
|
|
id
|
|
|
|
source
|
|
|
|
description
|
|
|
|
geometry @include(if: $includeGeometry) {
|
|
|
|
type
|
|
|
|
coordinates
|
|
|
|
}
|
|
|
|
... on ParcelleCadastrale {
|
|
|
|
commune
|
|
|
|
numero
|
|
|
|
section
|
|
|
|
prefixe
|
|
|
|
surface
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment RootChampFragment on Champ {
|
|
|
|
... on RepetitionChamp {
|
|
|
|
rows {
|
|
|
|
champs {
|
|
|
|
...ChampFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on CarteChamp {
|
|
|
|
geoAreas {
|
|
|
|
...GeoAreaFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on DossierLinkChamp {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
state
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment ChampFragment on Champ {
|
|
|
|
id
|
|
|
|
__typename
|
|
|
|
label
|
|
|
|
stringValue
|
|
|
|
... on DateChamp {
|
|
|
|
date
|
|
|
|
}
|
|
|
|
... on DatetimeChamp {
|
|
|
|
datetime
|
|
|
|
}
|
|
|
|
... on CheckboxChamp {
|
|
|
|
checked: value
|
|
|
|
}
|
|
|
|
... on DecimalNumberChamp {
|
|
|
|
decimalNumber: value
|
|
|
|
}
|
|
|
|
... on IntegerNumberChamp {
|
|
|
|
integerNumber: value
|
|
|
|
}
|
|
|
|
... on CiviliteChamp {
|
|
|
|
civilite: value
|
|
|
|
}
|
|
|
|
... on LinkedDropDownListChamp {
|
|
|
|
primaryValue
|
|
|
|
secondaryValue
|
|
|
|
}
|
|
|
|
... on MultipleDropDownListChamp {
|
|
|
|
values
|
|
|
|
}
|
|
|
|
... on PieceJustificativeChamp {
|
2022-12-06 13:25:29 +01:00
|
|
|
files {
|
2022-10-31 18:21:24 +01:00
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on AddressChamp {
|
|
|
|
address {
|
|
|
|
...AddressFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on CommuneChamp {
|
|
|
|
commune {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
departement {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
}
|
2022-12-21 09:24:37 +01:00
|
|
|
... on DepartementChamp {
|
|
|
|
departement {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on RegionChamp {
|
|
|
|
region {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
}
|
2022-12-21 17:35:05 +01:00
|
|
|
... on PaysChamp {
|
|
|
|
pays {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
... on SiretChamp {
|
|
|
|
etablissement {
|
|
|
|
...PersonneMoraleFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment PersonneMoraleFragment on PersonneMorale {
|
|
|
|
siret
|
|
|
|
siegeSocial
|
|
|
|
naf
|
|
|
|
libelleNaf
|
|
|
|
address {
|
|
|
|
...AddressFragment
|
|
|
|
}
|
|
|
|
entreprise {
|
|
|
|
siren
|
|
|
|
capitalSocial
|
|
|
|
numeroTvaIntracommunautaire
|
|
|
|
formeJuridique
|
|
|
|
formeJuridiqueCode
|
|
|
|
nomCommercial
|
|
|
|
raisonSociale
|
|
|
|
siretSiegeSocial
|
|
|
|
codeEffectifEntreprise
|
|
|
|
dateCreation
|
|
|
|
nom
|
|
|
|
prenom
|
|
|
|
attestationFiscaleAttachment {
|
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
attestationSocialeAttachment {
|
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
association {
|
|
|
|
rna
|
|
|
|
titre
|
|
|
|
objet
|
|
|
|
dateCreation
|
|
|
|
dateDeclaration
|
|
|
|
datePublication
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment FileFragment on File {
|
|
|
|
filename
|
|
|
|
contentType
|
|
|
|
checksum
|
|
|
|
byteSize: byteSizeBigInt
|
|
|
|
url
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment AddressFragment on Address {
|
|
|
|
label
|
|
|
|
type
|
|
|
|
streetAddress
|
|
|
|
streetNumber
|
|
|
|
streetName
|
|
|
|
postalCode
|
|
|
|
cityName
|
|
|
|
cityCode
|
|
|
|
departmentName
|
|
|
|
departmentCode
|
|
|
|
regionName
|
|
|
|
regionCode
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment PageInfoFragment on PageInfo {
|
|
|
|
hasPreviousPage
|
|
|
|
hasNextPage
|
|
|
|
endCursor
|
|
|
|
}
|
|
|
|
GRAPHQL
|
|
|
|
|
|
|
|
MUTATION_V2 = <<-'GRAPHQL'
|
|
|
|
mutation dossierArchiver($input: DossierArchiverInput!) {
|
|
|
|
dossierArchiver(input: $input) {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
archived
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierPasserEnInstruction($input: DossierPasserEnInstructionInput!) {
|
|
|
|
dossierPasserEnInstruction(input: $input) {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
state
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierRepasserEnConstruction(
|
|
|
|
$input: DossierRepasserEnConstructionInput!
|
|
|
|
) {
|
|
|
|
dossierRepasserEnConstruction(input: $input) {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
state
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierAccepter($input: DossierAccepterInput!) {
|
|
|
|
dossierAccepter(input: $input) {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
state
|
|
|
|
attestation {
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierRefuser($input: DossierRefuserInput!) {
|
|
|
|
dossierRefuser(input: $input) {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
state
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierClasserSansSuite($input: DossierClasserSansSuiteInput!) {
|
|
|
|
dossierClasserSansSuite(input: $input) {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
state
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierRepasserEnInstruction(
|
|
|
|
$input: DossierRepasserEnInstructionInput!
|
|
|
|
) {
|
|
|
|
dossierRepasserEnInstruction(input: $input) {
|
|
|
|
dossier {
|
|
|
|
id
|
|
|
|
state
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierEnvoyerMessage($input: DossierEnvoyerMessageInput!) {
|
|
|
|
dossierEnvoyerMessage(input: $input) {
|
|
|
|
message {
|
|
|
|
id
|
|
|
|
createdAt
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierModifierAnnotationText(
|
|
|
|
$input: DossierModifierAnnotationTextInput!
|
|
|
|
) {
|
|
|
|
dossierModifierAnnotationText(input: $input) {
|
|
|
|
annotation {
|
|
|
|
id
|
|
|
|
value: stringValue
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierModifierAnnotationCheckbox(
|
|
|
|
$input: DossierModifierAnnotationCheckboxInput!
|
|
|
|
) {
|
|
|
|
dossierModifierAnnotationCheckbox(input: $input) {
|
|
|
|
annotation {
|
|
|
|
id
|
|
|
|
... on CheckboxChamp {
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierModifierAnnotationDate(
|
|
|
|
$input: DossierModifierAnnotationDateInput!
|
|
|
|
) {
|
|
|
|
dossierModifierAnnotationDate(input: $input) {
|
|
|
|
annotation {
|
|
|
|
id
|
|
|
|
... on DateChamp {
|
|
|
|
value: date
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierModifierAnnotationDateTime(
|
|
|
|
$input: DossierModifierAnnotationDatetimeInput!
|
|
|
|
) {
|
|
|
|
dossierModifierAnnotationDatetime(input: $input) {
|
|
|
|
annotation {
|
|
|
|
id
|
|
|
|
... on DatetimeChamp {
|
|
|
|
value: datetime
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierModifierAnnotationIntegerNumber(
|
|
|
|
$input: DossierModifierAnnotationIntegerNumberInput!
|
|
|
|
) {
|
|
|
|
dossierModifierAnnotationIntegerNumber(input: $input) {
|
|
|
|
annotation {
|
|
|
|
id
|
|
|
|
... on IntegerNumberChamp {
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation dossierModifierAnnotationAjouterLigne(
|
|
|
|
$input: DossierModifierAnnotationAjouterLigneInput!
|
|
|
|
) {
|
|
|
|
dossierModifierAnnotationAjouterLigne(input: $input) {
|
|
|
|
annotation {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation createDirectUpload($input: CreateDirectUploadInput!) {
|
|
|
|
createDirectUpload(input: $input) {
|
|
|
|
directUpload {
|
|
|
|
signedBlobId
|
|
|
|
headers
|
|
|
|
url
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-23 09:10:39 +01:00
|
|
|
|
|
|
|
mutation groupeInstructeurModifier($input: GroupeInstructeurModifierInput!) {
|
|
|
|
groupeInstructeurModifier(input: $input) {
|
|
|
|
groupeInstructeur {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2023-01-10 17:20:22 +01:00
|
|
|
|
|
|
|
mutation groupeInstructeurCreer($input: GroupeInstructeurCreerInput!, $includeInstructeurs: Boolean = false) {
|
|
|
|
groupeInstructeurCreer(input: $input) {
|
|
|
|
groupeInstructeur {
|
|
|
|
id
|
|
|
|
instructeurs @include(if: $includeInstructeurs) {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
warnings {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation groupeInstructeurAjouterInstructeurs($input: GroupeInstructeurAjouterInstructeursInput!, $includeInstructeurs: Boolean = false) {
|
|
|
|
groupeInstructeurAjouterInstructeurs(input: $input) {
|
|
|
|
groupeInstructeur {
|
|
|
|
id
|
|
|
|
instructeurs @include(if: $includeInstructeurs) {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
warnings {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mutation groupeInstructeurSupprimerInstructeurs($input: GroupeInstructeurSupprimerInstructeursInput!, $includeInstructeurs: Boolean = false) {
|
|
|
|
groupeInstructeurSupprimerInstructeurs(input: $input) {
|
|
|
|
groupeInstructeur {
|
|
|
|
id
|
|
|
|
instructeurs @include(if: $includeInstructeurs) {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-11-25 13:24:17 +01:00
|
|
|
|
|
|
|
mutation demarcheCloner($input: DemarcheClonerInput!) {
|
|
|
|
demarcheCloner(input: $input) {
|
|
|
|
demarche {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
}
|
|
|
|
errors {
|
|
|
|
message
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
GRAPHQL
|
|
|
|
end
|