2022-10-31 18:21:24 +01:00
|
|
|
class API::V2::StoredQuery
|
2023-04-04 14:45:22 +02:00
|
|
|
def self.get(query_id)
|
2022-10-31 18:21:24 +01:00
|
|
|
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
|
2023-04-18 09:48:38 +02:00
|
|
|
raise GraphQL::ExecutionError.new("No query with id \"#{query_id}\"", extensions: { code: :bad_request })
|
2022-10-31 18:21:24 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
QUERY_V2 = <<-'GRAPHQL'
|
|
|
|
query getDemarche(
|
|
|
|
$demarcheNumber: Int!
|
|
|
|
$state: DossierState
|
|
|
|
$order: Order
|
|
|
|
$first: Int
|
2023-07-21 16:20:31 +02:00
|
|
|
$last: Int
|
|
|
|
$before: String
|
2022-10-31 18:21:24 +01:00
|
|
|
$after: String
|
|
|
|
$archived: Boolean
|
|
|
|
$revision: ID
|
|
|
|
$createdSince: ISO8601DateTime
|
|
|
|
$updatedSince: ISO8601DateTime
|
2023-03-21 13:29:51 +01:00
|
|
|
$pendingDeletedFirst: Int
|
2023-07-21 16:20:31 +02:00
|
|
|
$pendingDeletedLast: Int
|
|
|
|
$pendingDeletedBefore: String
|
2023-03-21 13:29:51 +01:00
|
|
|
$pendingDeletedAfter: String
|
|
|
|
$pendingDeletedSince: ISO8601DateTime
|
2023-04-11 10:11:43 +02:00
|
|
|
$deletedFirst: Int
|
2023-07-21 16:20:31 +02:00
|
|
|
$deletedLast: Int
|
|
|
|
$deletedBefore: String
|
2023-04-11 10:11:43 +02:00
|
|
|
$deletedAfter: String
|
|
|
|
$deletedSince: ISO8601DateTime
|
2022-10-31 18:21:24 +01:00
|
|
|
$includeGroupeInstructeurs: Boolean = false
|
|
|
|
$includeDossiers: Boolean = false
|
2023-03-21 13:29:51 +01:00
|
|
|
$includePendingDeletedDossiers: Boolean = false
|
2023-04-11 10:11:43 +02:00
|
|
|
$includeDeletedDossiers: Boolean = false
|
2022-10-31 18:21:24 +01:00
|
|
|
$includeRevision: Boolean = false
|
|
|
|
$includeService: Boolean = false
|
|
|
|
$includeChamps: Boolean = true
|
|
|
|
$includeAnotations: Boolean = true
|
|
|
|
$includeTraitements: Boolean = true
|
|
|
|
$includeInstructeurs: Boolean = true
|
|
|
|
$includeAvis: Boolean = false
|
|
|
|
$includeMessages: Boolean = false
|
2023-07-24 12:11:00 +02:00
|
|
|
$includeCorrections: Boolean = false
|
2022-10-31 18:21:24 +01:00
|
|
|
$includeGeometry: Boolean = false
|
|
|
|
) {
|
|
|
|
demarche(number: $demarcheNumber) {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
title
|
|
|
|
state
|
|
|
|
declarative
|
|
|
|
dateCreation
|
|
|
|
dateFermeture
|
2023-12-07 15:00:09 +01:00
|
|
|
chorusConfiguration {
|
|
|
|
centreDeCout
|
|
|
|
domaineFonctionnel
|
|
|
|
referentielDeProgrammation
|
|
|
|
}
|
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
|
2023-07-21 16:20:31 +02:00
|
|
|
last: $last
|
|
|
|
before: $before
|
2022-10-31 18:21:24 +01:00
|
|
|
after: $after
|
|
|
|
archived: $archived
|
|
|
|
createdSince: $createdSince
|
|
|
|
updatedSince: $updatedSince
|
|
|
|
revision: $revision
|
|
|
|
) @include(if: $includeDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DossierFragment
|
|
|
|
}
|
|
|
|
}
|
2023-03-21 13:29:51 +01:00
|
|
|
pendingDeletedDossiers(
|
|
|
|
first: $pendingDeletedFirst
|
2023-07-21 16:20:31 +02:00
|
|
|
last: $pendingDeletedLast
|
|
|
|
before: $pendingDeletedBefore
|
2023-03-21 13:29:51 +01:00
|
|
|
after: $pendingDeletedAfter
|
|
|
|
deletedSince: $pendingDeletedSince
|
|
|
|
) @include(if: $includePendingDeletedDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DeletedDossierFragment
|
|
|
|
}
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
deletedDossiers(
|
|
|
|
first: $deletedFirst
|
2023-07-21 16:20:31 +02:00
|
|
|
last: $deletedLast
|
|
|
|
before: $deletedBefore
|
2022-10-31 18:21:24 +01:00
|
|
|
after: $deletedAfter
|
|
|
|
deletedSince: $deletedSince
|
|
|
|
) @include(if: $includeDeletedDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DeletedDossierFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
query getGroupeInstructeur(
|
|
|
|
$groupeInstructeurNumber: Int!
|
|
|
|
$state: DossierState
|
|
|
|
$order: Order
|
|
|
|
$first: Int
|
2023-07-21 16:20:31 +02:00
|
|
|
$last: Int
|
|
|
|
$before: String
|
2022-10-31 18:21:24 +01:00
|
|
|
$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
|
2023-04-11 10:11:43 +02:00
|
|
|
$pendingDeletedOrder: Order
|
|
|
|
$pendingDeletedFirst: Int
|
2023-07-21 16:20:31 +02:00
|
|
|
$pendingDeletedLast: Int
|
|
|
|
$pendingDeletedBefore: String
|
2023-04-11 10:11:43 +02:00
|
|
|
$pendingDeletedAfter: String
|
|
|
|
$pendingDeletedSince: ISO8601DateTime
|
2022-11-04 10:07:56 +01:00
|
|
|
$deletedOrder: Order
|
|
|
|
$deletedFirst: Int
|
2023-07-21 16:20:31 +02:00
|
|
|
$deletedLast: Int
|
|
|
|
$deletedBefore: String
|
2022-11-04 10:07:56 +01:00
|
|
|
$deletedAfter: String
|
|
|
|
$deletedSince: ISO8601DateTime
|
2022-10-31 18:21:24 +01:00
|
|
|
$includeDossiers: Boolean = false
|
2023-04-11 10:11:43 +02:00
|
|
|
$includePendingDeletedDossiers: 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
|
2023-07-24 12:11:00 +02:00
|
|
|
$includeCorrections: Boolean = false
|
2022-10-31 18:21:24 +01:00
|
|
|
$includeGeometry: Boolean = false
|
|
|
|
) {
|
|
|
|
groupeInstructeur(number: $groupeInstructeurNumber) {
|
|
|
|
id
|
|
|
|
number
|
|
|
|
label
|
|
|
|
instructeurs @include(if: $includeInstructeurs) {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
dossiers(
|
|
|
|
state: $state
|
|
|
|
order: $order
|
|
|
|
first: $first
|
2023-07-21 16:20:31 +02:00
|
|
|
last: $last
|
|
|
|
before: $before
|
2022-10-31 18:21:24 +01:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
2023-04-11 10:11:43 +02:00
|
|
|
pendingDeletedDossiers(
|
|
|
|
order: $pendingDeletedOrder
|
|
|
|
first: $pendingDeletedFirst
|
2023-07-21 16:20:31 +02:00
|
|
|
last: $pendingDeletedLast
|
|
|
|
before: $pendingDeletedBefore
|
2023-04-11 10:11:43 +02:00
|
|
|
after: $pendingDeletedAfter
|
|
|
|
deletedSince: $pendingDeletedSince
|
|
|
|
) @include(if: $includePendingDeletedDossiers) {
|
|
|
|
pageInfo {
|
|
|
|
...PageInfoFragment
|
|
|
|
}
|
|
|
|
nodes {
|
|
|
|
...DeletedDossierFragment
|
|
|
|
}
|
|
|
|
}
|
2022-11-04 10:07:56 +01:00
|
|
|
deletedDossiers(
|
|
|
|
order: $deletedOrder
|
|
|
|
first: $deletedFirst
|
2023-07-21 16:20:31 +02:00
|
|
|
last: $deletedLast
|
|
|
|
before: $deletedBefore
|
2022-11-04 10:07:56 +01:00
|
|
|
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
|
2023-07-24 12:11:00 +02:00
|
|
|
$includeCorrections: Boolean = false
|
2022-10-31 18:21:24 +01:00
|
|
|
$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 {
|
2023-08-07 17:11:32 +02:00
|
|
|
__typename
|
2022-10-31 18:21:24 +01:00
|
|
|
id
|
|
|
|
number
|
|
|
|
archived
|
2023-11-07 11:28:23 +01:00
|
|
|
prefilled
|
2022-10-31 18:21:24 +01:00
|
|
|
state
|
|
|
|
dateDerniereModification
|
|
|
|
dateDepot
|
|
|
|
datePassageEnConstruction
|
|
|
|
datePassageEnInstruction
|
|
|
|
dateTraitement
|
|
|
|
dateExpiration
|
|
|
|
dateSuppressionParUsager
|
2023-07-24 12:11:00 +02:00
|
|
|
dateDerniereCorrectionEnAttente @include(if: $includeCorrections)
|
2022-10-31 18:21:24 +01:00
|
|
|
motivation
|
|
|
|
motivationAttachment {
|
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
attestation {
|
|
|
|
...FileFragment
|
|
|
|
}
|
|
|
|
pdf {
|
2023-04-18 11:36:40 +02:00
|
|
|
...FileFragment
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
usager {
|
|
|
|
email
|
|
|
|
}
|
2023-05-23 17:39:48 +02:00
|
|
|
connectionUsager
|
2022-10-31 18:21:24 +01:00
|
|
|
groupeInstructeur {
|
|
|
|
...GroupeInstructeurFragment
|
|
|
|
}
|
|
|
|
demandeur {
|
2023-04-04 16:58:47 +02:00
|
|
|
__typename
|
2023-04-11 10:11:43 +02:00
|
|
|
...PersonnePhysiqueFragment
|
2022-10-31 18:21:24 +01:00
|
|
|
...PersonneMoraleFragment
|
2023-04-11 10:11:43 +02:00
|
|
|
...PersonneMoraleIncompleteFragment
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
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-07-27 12:19:07 +02:00
|
|
|
demarcheURL
|
|
|
|
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-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
|
|
|
|
}
|
2023-07-24 12:11:00 +02:00
|
|
|
correction @include(if: $includeCorrections) {
|
|
|
|
reason
|
|
|
|
dateResolution
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
2023-08-07 17:11:32 +02:00
|
|
|
updatedAt
|
2023-11-07 11:28:23 +01:00
|
|
|
prefilled
|
2022-10-31 18:21:24 +01:00
|
|
|
... 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
|
|
|
|
}
|
|
|
|
commune {
|
2023-04-05 18:02:42 +02:00
|
|
|
...CommuneFragment
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
departement {
|
2023-04-05 18:02:42 +02:00
|
|
|
...DepartementFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on EpciChamp {
|
|
|
|
epci {
|
2023-04-11 10:11:43 +02:00
|
|
|
...EpciFragment
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
2023-04-05 18:02:42 +02:00
|
|
|
departement {
|
|
|
|
...DepartementFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
... on CommuneChamp {
|
|
|
|
commune {
|
|
|
|
...CommuneFragment
|
|
|
|
}
|
|
|
|
departement {
|
|
|
|
...DepartementFragment
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
2022-12-21 09:24:37 +01:00
|
|
|
... on DepartementChamp {
|
|
|
|
departement {
|
2023-04-05 18:02:42 +02:00
|
|
|
...DepartementFragment
|
2022-12-21 09:24:37 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
... on RegionChamp {
|
|
|
|
region {
|
2023-04-11 10:11:43 +02:00
|
|
|
...RegionFragment
|
2022-12-21 09:24:37 +01:00
|
|
|
}
|
|
|
|
}
|
2022-12-21 17:35:05 +01:00
|
|
|
... on PaysChamp {
|
|
|
|
pays {
|
2023-04-11 10:11:43 +02:00
|
|
|
...PaysFragment
|
2022-12-21 17:35:05 +01:00
|
|
|
}
|
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
... on SiretChamp {
|
|
|
|
etablissement {
|
|
|
|
...PersonneMoraleFragment
|
|
|
|
}
|
|
|
|
}
|
2023-11-22 09:50:56 +01:00
|
|
|
... on RNFChamp {
|
|
|
|
rnf {
|
|
|
|
...RNFFragment
|
|
|
|
}
|
2023-11-17 12:48:25 +01:00
|
|
|
commune {
|
|
|
|
...CommuneFragment
|
|
|
|
}
|
|
|
|
departement {
|
|
|
|
...DepartementFragment
|
|
|
|
}
|
2023-11-22 09:50:56 +01:00
|
|
|
}
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-04-11 10:11:43 +02:00
|
|
|
fragment PersonneMoraleIncompleteFragment on PersonneMoraleIncomplete {
|
|
|
|
siret
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment PersonnePhysiqueFragment on PersonnePhysique {
|
|
|
|
civilite
|
|
|
|
nom
|
|
|
|
prenom
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-10-31 18:21:24 +01:00
|
|
|
fragment FileFragment on File {
|
2023-08-07 17:11:32 +02:00
|
|
|
__typename
|
2022-10-31 18:21:24 +01:00
|
|
|
filename
|
|
|
|
contentType
|
|
|
|
checksum
|
|
|
|
byteSize: byteSizeBigInt
|
|
|
|
url
|
2023-08-07 17:11:32 +02:00
|
|
|
createdAt
|
2022-10-31 18:21:24 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fragment AddressFragment on Address {
|
|
|
|
label
|
|
|
|
type
|
|
|
|
streetAddress
|
|
|
|
streetNumber
|
|
|
|
streetName
|
|
|
|
postalCode
|
|
|
|
cityName
|
|
|
|
cityCode
|
|
|
|
departmentName
|
|
|
|
departmentCode
|
|
|
|
regionName
|
|
|
|
regionCode
|
|
|
|
}
|
|
|
|
|
2023-04-11 10:11:43 +02:00
|
|
|
fragment PaysFragment on Pays {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
|
|
|
|
fragment RegionFragment on Region {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
|
2023-04-05 18:02:42 +02:00
|
|
|
fragment DepartementFragment on Departement {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
|
2023-04-11 10:11:43 +02:00
|
|
|
fragment EpciFragment on Epci {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
}
|
|
|
|
|
2023-04-05 18:02:42 +02:00
|
|
|
fragment CommuneFragment on Commune {
|
|
|
|
name
|
|
|
|
code
|
|
|
|
postalCode
|
|
|
|
}
|
|
|
|
|
2023-11-22 09:50:56 +01:00
|
|
|
fragment RNFFragment on RNF {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
address {
|
|
|
|
...AddressFragment
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-31 18:21:24 +01:00
|
|
|
fragment PageInfoFragment on PageInfo {
|
|
|
|
hasPreviousPage
|
|
|
|
hasNextPage
|
2023-08-07 17:11:32 +02:00
|
|
|
startCursor
|
2022-10-31 18:21:24 +01:00
|
|
|
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
|