2020-02-18 08:57:00 +01:00
|
|
|
import gql from "graphql-tag";
|
2018-11-06 10:30:27 +01:00
|
|
|
|
2021-10-29 10:54:35 +02:00
|
|
|
export const ACTOR_FRAGMENT = gql`
|
|
|
|
fragment ActorFragment on Actor {
|
|
|
|
id
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
type
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
domain
|
|
|
|
summary
|
|
|
|
url
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-01-21 15:08:22 +01:00
|
|
|
export const FETCH_PERSON = gql`
|
2021-05-17 19:01:08 +02:00
|
|
|
query ($username: String!) {
|
2020-02-18 08:57:00 +01:00
|
|
|
fetchPerson(preferredUsername: $username) {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
suspended
|
2020-11-23 16:58:50 +01:00
|
|
|
mediaSize
|
2020-02-18 08:57:00 +01:00
|
|
|
avatar {
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
name
|
|
|
|
url
|
|
|
|
}
|
|
|
|
banner {
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
url
|
|
|
|
}
|
|
|
|
feedTokens {
|
2019-03-21 20:23:42 +01:00
|
|
|
token
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
organizedEvents {
|
2020-06-15 18:12:49 +02:00
|
|
|
total
|
|
|
|
elements {
|
2020-10-21 12:14:53 +02:00
|
|
|
id
|
2020-06-15 18:12:49 +02:00
|
|
|
uuid
|
|
|
|
title
|
|
|
|
beginsOn
|
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
}
|
2018-11-06 10:30:27 +01:00
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2018-11-06 10:30:27 +01:00
|
|
|
`;
|
|
|
|
|
2019-10-04 18:28:25 +02:00
|
|
|
export const GET_PERSON = gql`
|
2021-05-12 18:10:07 +02:00
|
|
|
query Person(
|
2020-06-11 19:13:21 +02:00
|
|
|
$actorId: ID!
|
|
|
|
$organizedEventsPage: Int
|
|
|
|
$organizedEventsLimit: Int
|
|
|
|
$participationPage: Int
|
|
|
|
$participationLimit: Int
|
2021-05-12 18:10:07 +02:00
|
|
|
$membershipsPage: Int
|
|
|
|
$membershipsLimit: Int
|
2020-06-11 19:13:21 +02:00
|
|
|
) {
|
2020-02-18 08:57:00 +01:00
|
|
|
person(id: $actorId) {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
suspended
|
2020-11-23 16:58:50 +01:00
|
|
|
mediaSize
|
2020-02-18 08:57:00 +01:00
|
|
|
avatar {
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
name
|
|
|
|
url
|
|
|
|
}
|
|
|
|
banner {
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
url
|
|
|
|
}
|
|
|
|
feedTokens {
|
|
|
|
token
|
|
|
|
}
|
2020-11-30 10:24:11 +01:00
|
|
|
organizedEvents(
|
|
|
|
page: $organizedEventsPage
|
|
|
|
limit: $organizedEventsLimit
|
|
|
|
) {
|
2020-06-11 19:13:21 +02:00
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
beginsOn
|
|
|
|
}
|
|
|
|
}
|
|
|
|
participations(page: $participationPage, limit: $participationLimit) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
event {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
beginsOn
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-05-12 18:10:07 +02:00
|
|
|
memberships(page: $membershipsPage, limit: $membershipsLimit) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
role
|
|
|
|
insertedAt
|
|
|
|
parent {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2021-05-12 18:10:07 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-11 19:13:21 +02:00
|
|
|
user {
|
|
|
|
id
|
|
|
|
email
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2020-06-11 19:13:21 +02:00
|
|
|
`;
|
|
|
|
|
2021-08-05 15:49:54 +02:00
|
|
|
export const PERSON_FRAGMENT = gql`
|
|
|
|
fragment PersonFragment on Person {
|
|
|
|
id
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
type
|
|
|
|
preferredUsername
|
2021-10-29 10:54:35 +02:00
|
|
|
domain
|
2021-08-05 15:49:54 +02:00
|
|
|
name
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2020-06-11 19:13:21 +02:00
|
|
|
export const LIST_PROFILES = gql`
|
|
|
|
query ListProfiles(
|
|
|
|
$preferredUsername: String
|
|
|
|
$name: String
|
|
|
|
$domain: String
|
|
|
|
$local: Boolean
|
|
|
|
$suspended: Boolean
|
|
|
|
$page: Int
|
|
|
|
$limit: Int
|
|
|
|
) {
|
|
|
|
persons(
|
|
|
|
preferredUsername: $preferredUsername
|
|
|
|
name: $name
|
|
|
|
domain: $domain
|
|
|
|
local: $local
|
|
|
|
suspended: $suspended
|
|
|
|
page: $page
|
|
|
|
limit: $limit
|
|
|
|
) {
|
|
|
|
total
|
|
|
|
elements {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-10-04 18:28:25 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2019-10-04 18:28:25 +02:00
|
|
|
`;
|
|
|
|
|
2020-02-18 08:57:00 +01:00
|
|
|
export const UPDATE_DEFAULT_ACTOR = gql`
|
|
|
|
mutation ChangeDefaultActor($preferredUsername: String!) {
|
|
|
|
changeDefaultActor(preferredUsername: $preferredUsername) {
|
|
|
|
id
|
|
|
|
defaultActor {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
2018-11-06 10:30:27 +01:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
`;
|
2019-01-21 15:08:22 +01:00
|
|
|
|
2019-09-11 09:59:01 +02:00
|
|
|
export const CURRENT_ACTOR_CLIENT = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
query currentActor {
|
|
|
|
currentActor @client {
|
|
|
|
id
|
|
|
|
preferredUsername
|
|
|
|
name
|
2021-10-29 10:54:35 +02:00
|
|
|
avatar
|
2019-09-11 09:59:01 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-09-11 09:59:01 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const UPDATE_CURRENT_ACTOR_CLIENT = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
mutation UpdateCurrentActor(
|
|
|
|
$id: String!
|
|
|
|
$avatar: String
|
|
|
|
$preferredUsername: String!
|
|
|
|
$name: String!
|
|
|
|
) {
|
2020-09-21 12:15:37 +02:00
|
|
|
updateCurrentActor(
|
|
|
|
id: $id
|
|
|
|
avatar: $avatar
|
|
|
|
preferredUsername: $preferredUsername
|
|
|
|
name: $name
|
|
|
|
) @client
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-09-11 09:59:01 +02:00
|
|
|
`;
|
|
|
|
|
2019-09-18 17:32:37 +02:00
|
|
|
export const LOGGED_USER_PARTICIPATIONS = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
query LoggedUserParticipations(
|
|
|
|
$afterDateTime: DateTime
|
|
|
|
$beforeDateTime: DateTime
|
|
|
|
$page: Int
|
|
|
|
$limit: Int
|
|
|
|
) {
|
|
|
|
loggedUser {
|
2020-10-21 12:14:53 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
participations(
|
|
|
|
afterDatetime: $afterDateTime
|
|
|
|
beforeDatetime: $beforeDateTime
|
|
|
|
page: $page
|
|
|
|
limit: $limit
|
|
|
|
) {
|
|
|
|
total
|
|
|
|
elements {
|
2019-09-18 17:32:37 +02:00
|
|
|
event {
|
2020-02-18 08:57:00 +01:00
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
picture {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
alt
|
|
|
|
}
|
|
|
|
beginsOn
|
|
|
|
visibility
|
|
|
|
organizerActor {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2020-12-01 17:32:07 +01:00
|
|
|
attributedTo {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-12-01 17:32:07 +01:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
participantStats {
|
2020-06-18 15:23:05 +02:00
|
|
|
going
|
2020-02-18 08:57:00 +01:00
|
|
|
notApproved
|
|
|
|
participant
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
maximumAttendeeCapacity
|
|
|
|
remainingAttendeeCapacity
|
|
|
|
}
|
2020-12-01 17:32:07 +01:00
|
|
|
tags {
|
|
|
|
id
|
|
|
|
slug
|
|
|
|
title
|
|
|
|
}
|
2019-09-18 17:32:37 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
id
|
|
|
|
role
|
|
|
|
actor {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
}
|
2019-09-18 17:32:37 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-03-21 20:23:42 +01:00
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2020-02-18 08:57:00 +01:00
|
|
|
`;
|
2019-03-21 20:23:42 +01:00
|
|
|
|
2019-10-02 17:59:07 +02:00
|
|
|
export const LOGGED_USER_DRAFTS = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
query LoggedUserDrafts($page: Int, $limit: Int) {
|
|
|
|
loggedUser {
|
2020-10-21 12:14:53 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
drafts(page: $page, limit: $limit) {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
picture {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
alt
|
|
|
|
}
|
|
|
|
beginsOn
|
|
|
|
visibility
|
|
|
|
organizerActor {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
participantStats {
|
|
|
|
going
|
|
|
|
notApproved
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
maximumAttendeeCapacity
|
|
|
|
remainingAttendeeCapacity
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2020-02-18 08:57:00 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const LOGGED_USER_MEMBERSHIPS = gql`
|
|
|
|
query LoggedUserMemberships($page: Int, $limit: Int) {
|
|
|
|
loggedUser {
|
2020-10-21 12:14:53 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
memberships(page: $page, limit: $limit) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
role
|
2020-12-01 16:14:53 +01:00
|
|
|
actor {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-12-01 16:14:53 +01:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
parent {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
organizedEvents {
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
title
|
2019-10-02 17:59:07 +02:00
|
|
|
picture {
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
url
|
2019-10-02 17:59:07 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
total
|
2019-10-02 17:59:07 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
invitedBy {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-10-02 17:59:07 +02:00
|
|
|
}
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2020-02-18 08:57:00 +01:00
|
|
|
`;
|
2019-10-02 17:59:07 +02:00
|
|
|
|
2019-01-21 15:08:22 +01:00
|
|
|
export const IDENTITIES = gql`
|
2021-05-17 18:19:24 +02:00
|
|
|
query Identities {
|
2020-02-18 08:57:00 +01:00
|
|
|
identities {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-01-21 15:08:22 +01:00
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2020-02-18 08:57:00 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const PERSON_MEMBERSHIPS = gql`
|
|
|
|
query PersonMemberships($id: ID!) {
|
|
|
|
person(id: $id) {
|
|
|
|
id
|
|
|
|
memberships {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
role
|
|
|
|
parent {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2020-08-14 11:32:23 +02:00
|
|
|
invitedBy {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-08-14 11:32:23 +02:00
|
|
|
}
|
|
|
|
insertedAt
|
|
|
|
updatedAt
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2020-02-18 08:57:00 +01:00
|
|
|
`;
|
2019-01-21 15:08:22 +01:00
|
|
|
|
2021-10-25 13:18:13 +02:00
|
|
|
export const PERSON_STATUS_GROUP = gql`
|
2021-03-05 11:23:17 +01:00
|
|
|
query PersonMembershipGroup($id: ID!, $group: String!) {
|
|
|
|
person(id: $id) {
|
|
|
|
id
|
|
|
|
memberships(group: $group) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
role
|
|
|
|
parent {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2021-03-05 11:23:17 +01:00
|
|
|
}
|
|
|
|
invitedBy {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2021-03-05 11:23:17 +01:00
|
|
|
}
|
|
|
|
insertedAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
2021-10-25 13:18:13 +02:00
|
|
|
follows(group: $group) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
notify
|
2021-10-25 16:53:46 +02:00
|
|
|
approved
|
2021-10-25 13:18:13 +02:00
|
|
|
target_actor {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2021-10-25 13:18:13 +02:00
|
|
|
}
|
|
|
|
actor {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2021-10-25 13:18:13 +02:00
|
|
|
}
|
|
|
|
insertedAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
2021-03-05 11:23:17 +01:00
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2021-03-05 11:23:17 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const GROUP_MEMBERSHIP_SUBSCRIPTION_CHANGED = gql`
|
2021-05-17 18:19:24 +02:00
|
|
|
subscription GroupMembershipSubscriptionChanged(
|
|
|
|
$actorId: ID!
|
|
|
|
$group: String!
|
|
|
|
) {
|
2021-03-05 11:23:17 +01:00
|
|
|
groupMembershipChanged(personId: $actorId, group: $group) {
|
|
|
|
id
|
|
|
|
memberships {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
role
|
|
|
|
parent {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2021-03-05 11:23:17 +01:00
|
|
|
}
|
|
|
|
invitedBy {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2021-03-05 11:23:17 +01:00
|
|
|
}
|
|
|
|
insertedAt
|
|
|
|
updatedAt
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2021-03-05 11:23:17 +01:00
|
|
|
`;
|
|
|
|
|
2019-01-21 15:08:22 +01:00
|
|
|
export const CREATE_PERSON = gql`
|
2020-02-18 08:57:00 +01:00
|
|
|
mutation CreatePerson(
|
|
|
|
$preferredUsername: String!
|
|
|
|
$name: String!
|
|
|
|
$summary: String
|
2020-11-26 11:41:13 +01:00
|
|
|
$avatar: MediaInput
|
2020-02-18 08:57:00 +01:00
|
|
|
) {
|
|
|
|
createPerson(
|
|
|
|
preferredUsername: $preferredUsername
|
|
|
|
name: $name
|
|
|
|
summary: $summary
|
2019-06-17 17:15:27 +02:00
|
|
|
avatar: $avatar
|
2019-01-29 11:02:32 +01:00
|
|
|
) {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2019-06-17 17:15:27 +02:00
|
|
|
}
|
2019-01-21 15:08:22 +01:00
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2019-01-29 11:02:32 +01:00
|
|
|
`;
|
|
|
|
|
2019-06-17 17:15:27 +02:00
|
|
|
export const UPDATE_PERSON = gql`
|
2020-11-30 10:24:11 +01:00
|
|
|
mutation UpdatePerson(
|
|
|
|
$id: ID!
|
|
|
|
$name: String
|
|
|
|
$summary: String
|
|
|
|
$avatar: MediaInput
|
|
|
|
) {
|
2020-02-18 08:57:00 +01:00
|
|
|
updatePerson(id: $id, name: $name, summary: $summary, avatar: $avatar) {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2019-06-17 17:15:27 +02:00
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2019-06-17 17:15:27 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const DELETE_PERSON = gql`
|
2019-10-04 18:28:25 +02:00
|
|
|
mutation DeletePerson($id: ID!) {
|
|
|
|
deletePerson(id: $id) {
|
2020-02-18 08:57:00 +01:00
|
|
|
preferredUsername
|
2019-06-17 17:15:27 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-01-29 11:02:32 +01:00
|
|
|
/**
|
2020-02-18 08:57:00 +01:00
|
|
|
* This one is used only to register the first account.
|
|
|
|
* Prefer CREATE_PERSON when creating another identity
|
2019-01-29 11:02:32 +01:00
|
|
|
*/
|
|
|
|
export const REGISTER_PERSON = gql`
|
2021-05-17 19:01:08 +02:00
|
|
|
mutation (
|
2020-11-30 10:24:11 +01:00
|
|
|
$preferredUsername: String!
|
|
|
|
$name: String!
|
|
|
|
$summary: String!
|
|
|
|
$email: String!
|
|
|
|
) {
|
2020-02-18 08:57:00 +01:00
|
|
|
registerPerson(
|
|
|
|
preferredUsername: $preferredUsername
|
|
|
|
name: $name
|
|
|
|
summary: $summary
|
2019-01-29 11:02:32 +01:00
|
|
|
email: $email
|
|
|
|
) {
|
2021-10-29 10:54:35 +02:00
|
|
|
...ActorFragment
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
|
|
|
}
|
2021-10-29 10:54:35 +02:00
|
|
|
${ACTOR_FRAGMENT}
|
2020-02-18 08:57:00 +01:00
|
|
|
`;
|
|
|
|
|
2020-06-11 19:13:21 +02:00
|
|
|
export const SUSPEND_PROFILE = gql`
|
|
|
|
mutation SuspendProfile($id: ID!) {
|
|
|
|
suspendProfile(id: $id) {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const UNSUSPEND_PROFILE = gql`
|
|
|
|
mutation UnSuspendProfile($id: ID!) {
|
|
|
|
unsuspendProfile(id: $id) {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|