Interface de gestion des groupes de travail
- Récupération et affichage des groupes existants - Création d'un nouveau groupe - Modification d'un groupe existant - Rejoindre/quitter un groupe de travail
This commit is contained in:
@ -79,6 +79,7 @@ export class DaddyClient {
|
||||
query: gql`
|
||||
query {
|
||||
userProfile {
|
||||
id,
|
||||
name,
|
||||
email,
|
||||
createdAt,
|
||||
@ -89,6 +90,24 @@ export class DaddyClient {
|
||||
.then(this.assertAuthorization)
|
||||
}
|
||||
|
||||
fetchWorkgroups() {
|
||||
return this.gql.query({
|
||||
query: gql`
|
||||
query {
|
||||
workgroups {
|
||||
id,
|
||||
name,
|
||||
createdAt,
|
||||
closedAt,
|
||||
members {
|
||||
id
|
||||
}
|
||||
}
|
||||
}`
|
||||
})
|
||||
.then(this.assertAuthorization)
|
||||
}
|
||||
|
||||
updateProfile(changes: ProfileChanges) {
|
||||
return this.gql.mutate({
|
||||
variables: {
|
||||
|
Reference in New Issue
Block a user