Update graphql schema

This commit is contained in:
Paul Chavard 2019-09-18 18:45:53 +02:00
parent 4b885f7a12
commit da4523612a

View file

@ -1,23 +1,26 @@
type Avis { type Avis {
answer: String answer: String
attachmentUrl: URL
createdAt: ISO8601DateTime! createdAt: ISO8601DateTime!
email: String! email: String!
id: ID!
question: String! question: String!
updatedAt: ISO8601DateTime!
} }
type CarteChamp implements Champ { type CarteChamp implements Champ {
geoAreas: [GeoArea!]! geoAreas: [GeoArea!]!
id: ID! id: ID!
label: String! label: String!
stringValue: String
} }
interface Champ { interface Champ {
id: ID! id: ID!
label: String! label: String!
stringValue: String
} }
type ChampInfo { type ChampDescriptor {
description: String description: String
id: ID! id: ID!
label: String! label: String!
@ -28,6 +31,7 @@ type ChampInfo {
type CheckboxChamp implements Champ { type CheckboxChamp implements Champ {
id: ID! id: ID!
label: String! label: String!
stringValue: String
value: Boolean! value: Boolean!
} }
@ -39,12 +43,14 @@ scalar Coordinates
type DateChamp implements Champ { type DateChamp implements Champ {
id: ID! id: ID!
label: String! label: String!
stringValue: String
value: ISO8601DateTime value: ISO8601DateTime
} }
type DecimalNumberChamp implements Champ { type DecimalNumberChamp implements Champ {
id: ID! id: ID!
label: String! label: String!
stringValue: String
value: Float value: Float
} }
@ -52,16 +58,11 @@ type DecimalNumberChamp implements Champ {
Une demarche Une demarche
""" """
type Demarche { type Demarche {
annotations: [ChampInfo!]! annotationDescriptors: [ChampDescriptor!]!
archivedAt: ISO8601DateTime archivedAt: ISO8601DateTime
champs: [ChampInfo!]! champDescriptors: [ChampDescriptor!]!
createdAt: ISO8601DateTime! createdAt: ISO8601DateTime!
"""
Lien vers le texte qui justifie le droit de collecter les données demandées dans votre démarche auprès des usagers.
"""
deliberationUrl: URL
""" """
Déscription de la démarche. Déscription de la démarche.
""" """
@ -101,27 +102,13 @@ type Demarche {
""" """
since: ISO8601DateTime since: ISO8601DateTime
): DossierConnection! ): DossierConnection!
"""
L'ID de la démarche.
"""
id: ID! id: ID!
instructeurs: [Profile!]! instructeurs: [Profile!]!
""" """
Lien public de la démarche. Le numero de la démarche.
""" """
link: URL number: ID!
"""
Lien vers la notice explicative de la démarche.
"""
noticeUrl: URL
"""
Lien vers le site internet de la démarche.
"""
siteWebUrl: URL
state: DemarcheState! state: DemarcheState!
title: String! title: String!
updatedAt: ISO8601DateTime! updatedAt: ISO8601DateTime!
@ -129,7 +116,7 @@ type Demarche {
enum DemarcheState { enum DemarcheState {
""" """
Archivee Archivée
""" """
archivee archivee
@ -139,12 +126,7 @@ enum DemarcheState {
brouillon brouillon
""" """
Hidden Publiée
"""
hidden
"""
Publiee
""" """
publiee publiee
} }
@ -154,22 +136,43 @@ Un dossier
""" """
type Dossier { type Dossier {
annotations: [Champ!]! annotations: [Champ!]!
archived: Boolean!
avis: [Avis!]! avis: [Avis!]!
champs: [Champ!]! champs: [Champ!]!
createdAt: ISO8601DateTime!
""" """
L'ID du dossier. Date de dépôt.
""" """
datePassageEnConstruction: ISO8601DateTime!
"""
Date de passage en instruction.
"""
datePassageEnInstruction: ISO8601DateTime
"""
Date de traitement.
"""
dateTraitement: ISO8601DateTime
id: ID! id: ID!
instructeurs: [Profile!]! instructeurs: [Profile!]!
messages: [Message!]! messages: [Message!]!
motivation: String motivation: String
motivationAttachmentUrl: URL
"""
Le numero du dossier.
"""
number: ID!
""" """
L'état du dossier. L'état du dossier.
""" """
state: DossierState! state: DossierState!
"""
Date de dernière mise à jour.
"""
updatedAt: ISO8601DateTime! updatedAt: ISO8601DateTime!
usager: Profile! usager: Profile!
} }
@ -213,6 +216,7 @@ type DossierLinkChamp implements Champ {
dossier: Dossier dossier: Dossier
id: ID! id: ID!
label: String! label: String!
stringValue: String
} }
enum DossierState { enum DossierState {
@ -221,11 +225,6 @@ enum DossierState {
""" """
accepte accepte
"""
Brouillon
"""
brouillon
""" """
En construction En construction
""" """
@ -249,7 +248,7 @@ enum DossierState {
interface GeoArea { interface GeoArea {
geometry: GeoJSON! geometry: GeoJSON!
id: ID id: ID!
source: GeoAreaSource! source: GeoAreaSource!
} }
@ -288,14 +287,31 @@ scalar ISO8601DateTime
type IntegerNumberChamp implements Champ { type IntegerNumberChamp implements Champ {
id: ID! id: ID!
label: String! label: String!
stringValue: String
value: Int value: Int
} }
type LinkedDropDownListChamp implements Champ {
id: ID!
label: String!
primaryValue: String
secondaryValue: String
stringValue: String
}
type Message { type Message {
attachment: URL attachmentUrl: URL
body: String! body: String!
createdAt: ISO8601DateTime! createdAt: ISO8601DateTime!
email: String! email: String!
id: ID!
}
type MultipleDropDownListChamp implements Champ {
id: ID!
label: String!
stringValue: String
values: [String!]!
} }
type Mutation { type Mutation {
@ -332,7 +348,7 @@ type ParcelleCadastrale implements GeoArea {
codeDep: String! codeDep: String!
feuille: Int! feuille: Int!
geometry: GeoJSON! geometry: GeoJSON!
id: ID id: ID!
nomCom: String! nomCom: String!
numero: String! numero: String!
section: String! section: String!
@ -359,6 +375,7 @@ type PersonneMorale {
type PieceJustificativeChamp implements Champ { type PieceJustificativeChamp implements Champ {
id: ID! id: ID!
label: String! label: String!
stringValue: String
url: URL url: URL
} }
@ -371,7 +388,7 @@ type QuartierPrioritaire implements GeoArea {
code: String! code: String!
commune: String! commune: String!
geometry: GeoJSON! geometry: GeoJSON!
id: ID id: ID!
nom: String! nom: String!
source: GeoAreaSource! source: GeoAreaSource!
} }
@ -384,7 +401,7 @@ type Query {
""" """
Numéro de la démarche. Numéro de la démarche.
""" """
id: ID! number: ID!
): Demarche! ): Demarche!
""" """
@ -394,7 +411,7 @@ type Query {
""" """
Numéro du dossier. Numéro du dossier.
""" """
id: ID! number: ID!
): Dossier! ): Dossier!
} }
@ -402,11 +419,12 @@ type RepetitionChamp implements Champ {
champs: [Champ!]! champs: [Champ!]!
id: ID! id: ID!
label: String! label: String!
stringValue: String
} }
type SelectionUtilisateur implements GeoArea { type SelectionUtilisateur implements GeoArea {
geometry: GeoJSON! geometry: GeoJSON!
id: ID id: ID!
source: GeoAreaSource! source: GeoAreaSource!
} }
@ -414,11 +432,13 @@ type SiretChamp implements Champ {
etablissement: PersonneMorale etablissement: PersonneMorale
id: ID! id: ID!
label: String! label: String!
stringValue: String
} }
type TextChamp implements Champ { type TextChamp implements Champ {
id: ID! id: ID!
label: String! label: String!
stringValue: String
value: String value: String
} }
@ -562,4 +582,4 @@ enum TypeDeChamp {
""" """
A valid URL, transported as a string A valid URL, transported as a string
""" """
scalar URL scalar URL