Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation(api): ou trouver l'email de l'usager qui dépose le dossier #9813

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions app/graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,10 @@ type Dossier {
"""
state: DossierState!
traitements: [Traitement!]!

"""
Profile de l'usager déposant le dossier
"""
usager: Profile!
}

Expand Down Expand Up @@ -3504,7 +3508,13 @@ type PoleEmploiChampDescriptor implements ChampDescriptor {
type: TypeDeChamp! @deprecated(reason: "Utilisez le champ `__typename` à la place.")
}

"""
Profil d'un usager connecté (déposant un dossier, instruisant un dossier...)
"""
type Profile {
"""
Email de l'usager
"""
email: String!
id: ID!
}
Expand Down
2 changes: 1 addition & 1 deletion app/graphql/types/dossier_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ConnectionUsager < Types::BaseEnum
field :geojson, Types::File, "L’URL du GeoJSON contenant les données cartographiques du dossier.", null: true
field :attestation, Types::File, "L’URL de l’attestation au format PDF.", null: true

field :usager, Types::ProfileType, null: false
field :usager, Types::ProfileType, "Profile de l'usager déposant le dossier", null: false
field :groupe_instructeur, Types::GroupeInstructeurType, null: false
field :revision, Types::RevisionType, null: false, deprecation_reason: 'Utilisez le champ `demarche.revision` à la place.'

Expand Down
4 changes: 3 additions & 1 deletion app/graphql/types/profile_type.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
module Types
class ProfileType < Types::BaseObject
description "Profil d'un usager connecté (déposant un dossier, instruisant un dossier...)"

global_id_field :id
field :email, String, null: false
field :email, String, "Email de l'usager", null: false
end
end