2020-02-18 07:57:00 +00:00
|
|
|
import gql from "graphql-tag";
|
2021-10-29 08:54:35 +00:00
|
|
|
import { ACTOR_FRAGMENT } from "./actor";
|
2021-06-10 08:06:23 +00:00
|
|
|
import { ADDRESS_FRAGMENT } from "./address";
|
2021-11-02 18:47:54 +00:00
|
|
|
import { EVENT_OPTIONS_FRAGMENT } from "./event_options";
|
|
|
|
import {
|
|
|
|
PARTICIPANTS_QUERY_FRAGMENT,
|
|
|
|
PARTICIPANT_QUERY_FRAGMENT,
|
|
|
|
} from "./participant";
|
2021-06-10 08:06:23 +00:00
|
|
|
import { TAG_FRAGMENT } from "./tags";
|
2018-11-06 09:30:27 +00:00
|
|
|
|
2021-06-10 08:06:23 +00:00
|
|
|
const FULL_EVENT_FRAGMENT = gql`
|
|
|
|
fragment FullEvent on Event {
|
|
|
|
id
|
|
|
|
uuid
|
2019-09-09 09:21:42 +00:00
|
|
|
url
|
2021-06-10 08:06:23 +00:00
|
|
|
local
|
|
|
|
title
|
|
|
|
description
|
|
|
|
beginsOn
|
|
|
|
endsOn
|
|
|
|
status
|
|
|
|
visibility
|
|
|
|
joinOptions
|
|
|
|
draft
|
2021-11-13 14:58:54 +00:00
|
|
|
language
|
2021-06-10 08:06:23 +00:00
|
|
|
picture {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
name
|
|
|
|
metadata {
|
|
|
|
width
|
|
|
|
height
|
|
|
|
blurhash
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publishAt
|
|
|
|
onlineAddress
|
|
|
|
phoneAddress
|
|
|
|
physicalAddress {
|
|
|
|
...AdressFragment
|
|
|
|
}
|
|
|
|
organizerActor {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2021-06-10 08:06:23 +00:00
|
|
|
}
|
|
|
|
contacts {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2021-06-10 08:06:23 +00:00
|
|
|
}
|
|
|
|
attributedTo {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2021-06-10 08:06:23 +00:00
|
|
|
}
|
|
|
|
participantStats {
|
|
|
|
going
|
|
|
|
notApproved
|
|
|
|
participant
|
|
|
|
}
|
|
|
|
tags {
|
|
|
|
...TagFragment
|
|
|
|
}
|
|
|
|
relatedEvents {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
beginsOn
|
2021-11-13 14:58:54 +00:00
|
|
|
language
|
2019-05-22 12:12:11 +00:00
|
|
|
picture {
|
|
|
|
id
|
|
|
|
url
|
2019-09-09 09:21:42 +00:00
|
|
|
name
|
2021-06-10 08:06:23 +00:00
|
|
|
metadata {
|
|
|
|
width
|
|
|
|
height
|
|
|
|
blurhash
|
|
|
|
}
|
|
|
|
}
|
2019-03-22 14:51:23 +00:00
|
|
|
physicalAddress {
|
2021-10-29 08:54:35 +00:00
|
|
|
...AdressFragment
|
2019-03-22 14:51:23 +00:00
|
|
|
}
|
2019-02-22 10:24:41 +00:00
|
|
|
organizerActor {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
|
|
|
}
|
|
|
|
attributedTo {
|
|
|
|
...ActorFragment
|
|
|
|
}
|
|
|
|
options {
|
|
|
|
...EventOptions
|
|
|
|
}
|
|
|
|
tags {
|
|
|
|
...TagFragment
|
2019-02-22 15:54:01 +00:00
|
|
|
}
|
2019-02-22 10:24:41 +00:00
|
|
|
}
|
2021-06-10 08:06:23 +00:00
|
|
|
options {
|
|
|
|
...EventOptions
|
|
|
|
}
|
2021-08-09 12:26:11 +00:00
|
|
|
metadata {
|
|
|
|
key
|
|
|
|
title
|
|
|
|
value
|
|
|
|
type
|
|
|
|
}
|
2021-06-10 08:06:23 +00:00
|
|
|
}
|
|
|
|
${ADDRESS_FRAGMENT}
|
|
|
|
${TAG_FRAGMENT}
|
|
|
|
${EVENT_OPTIONS_FRAGMENT}
|
2021-10-29 08:54:35 +00:00
|
|
|
${ACTOR_FRAGMENT}
|
2021-06-10 08:06:23 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const FETCH_EVENT = gql`
|
|
|
|
query FetchEvent($uuid: UUID!) {
|
|
|
|
event(uuid: $uuid) {
|
|
|
|
...FullEvent
|
|
|
|
}
|
2019-02-22 10:24:41 +00:00
|
|
|
}
|
2021-06-10 08:06:23 +00:00
|
|
|
${FULL_EVENT_FRAGMENT}
|
2018-11-06 09:30:27 +00:00
|
|
|
`;
|
|
|
|
|
2020-12-07 13:48:48 +00:00
|
|
|
export const FETCH_EVENT_BASIC = gql`
|
2021-05-17 17:01:08 +00:00
|
|
|
query ($uuid: UUID!) {
|
2020-12-07 13:48:48 +00:00
|
|
|
event(uuid: $uuid) {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
joinOptions
|
|
|
|
participantStats {
|
|
|
|
going
|
|
|
|
notApproved
|
|
|
|
notConfirmed
|
|
|
|
participant
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2018-11-06 09:30:27 +00:00
|
|
|
export const FETCH_EVENTS = gql`
|
2021-08-09 15:53:46 +00:00
|
|
|
query FetchEvents(
|
|
|
|
$orderBy: EventOrderBy
|
|
|
|
$direction: SortDirection
|
|
|
|
$page: Int
|
|
|
|
$limit: Int
|
|
|
|
) {
|
|
|
|
events(
|
|
|
|
orderBy: $orderBy
|
|
|
|
direction: $direction
|
|
|
|
page: $page
|
|
|
|
limit: $limit
|
|
|
|
) {
|
2020-12-09 16:55:38 +00:00
|
|
|
total
|
|
|
|
elements {
|
2019-05-22 12:12:11 +00:00
|
|
|
id
|
2020-12-09 16:55:38 +00:00
|
|
|
uuid
|
2019-05-22 12:12:11 +00:00
|
|
|
url
|
2020-12-09 16:55:38 +00:00
|
|
|
local
|
|
|
|
title
|
|
|
|
description
|
|
|
|
beginsOn
|
|
|
|
endsOn
|
|
|
|
status
|
|
|
|
visibility
|
2021-02-12 17:19:49 +00:00
|
|
|
insertedAt
|
2021-11-13 14:58:54 +00:00
|
|
|
language
|
2020-12-09 16:55:38 +00:00
|
|
|
picture {
|
2020-10-22 14:19:26 +00:00
|
|
|
id
|
2019-05-22 12:12:11 +00:00
|
|
|
url
|
2020-12-09 16:55:38 +00:00
|
|
|
}
|
|
|
|
publishAt
|
|
|
|
physicalAddress {
|
2021-10-29 08:54:35 +00:00
|
|
|
...AdressFragment
|
2020-12-09 16:55:38 +00:00
|
|
|
}
|
|
|
|
organizerActor {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2020-12-09 16:55:38 +00:00
|
|
|
}
|
2021-08-09 15:53:46 +00:00
|
|
|
attributedTo {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2021-08-09 15:53:46 +00:00
|
|
|
}
|
2020-12-09 16:55:38 +00:00
|
|
|
category
|
|
|
|
tags {
|
2021-06-10 08:06:23 +00:00
|
|
|
...TagFragment
|
2020-12-09 16:55:38 +00:00
|
|
|
}
|
2021-10-29 08:54:35 +00:00
|
|
|
options {
|
|
|
|
...EventOptions
|
|
|
|
}
|
2020-12-09 16:55:38 +00:00
|
|
|
}
|
2018-11-06 09:30:27 +00:00
|
|
|
}
|
2019-02-22 10:24:41 +00:00
|
|
|
}
|
2021-10-29 08:54:35 +00:00
|
|
|
${ADDRESS_FRAGMENT}
|
2021-06-10 08:06:23 +00:00
|
|
|
${TAG_FRAGMENT}
|
2021-10-29 08:54:35 +00:00
|
|
|
${EVENT_OPTIONS_FRAGMENT}
|
|
|
|
${ACTOR_FRAGMENT}
|
2018-11-06 09:30:27 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const CREATE_EVENT = gql`
|
2019-09-09 09:21:42 +00:00
|
|
|
mutation createEvent(
|
2021-06-10 08:06:23 +00:00
|
|
|
$organizerActorId: ID!
|
|
|
|
$attributedToId: ID
|
|
|
|
$title: String!
|
|
|
|
$description: String!
|
|
|
|
$beginsOn: DateTime!
|
|
|
|
$endsOn: DateTime
|
|
|
|
$status: EventStatus
|
|
|
|
$visibility: EventVisibility
|
|
|
|
$joinOptions: EventJoinOptions
|
|
|
|
$draft: Boolean
|
|
|
|
$tags: [String]
|
|
|
|
$picture: MediaInput
|
|
|
|
$onlineAddress: String
|
|
|
|
$phoneAddress: String
|
|
|
|
$category: String
|
|
|
|
$physicalAddress: AddressInput
|
|
|
|
$options: EventOptionsInput
|
2020-09-29 07:53:48 +00:00
|
|
|
$contacts: [Contact]
|
2021-11-13 18:11:34 +00:00
|
|
|
$metadata: EventMetadataInput
|
2019-02-22 10:24:41 +00:00
|
|
|
) {
|
|
|
|
createEvent(
|
2021-06-10 08:06:23 +00:00
|
|
|
organizerActorId: $organizerActorId
|
|
|
|
attributedToId: $attributedToId
|
|
|
|
title: $title
|
|
|
|
description: $description
|
|
|
|
beginsOn: $beginsOn
|
|
|
|
endsOn: $endsOn
|
|
|
|
status: $status
|
|
|
|
visibility: $visibility
|
|
|
|
joinOptions: $joinOptions
|
|
|
|
draft: $draft
|
|
|
|
tags: $tags
|
|
|
|
picture: $picture
|
|
|
|
onlineAddress: $onlineAddress
|
|
|
|
phoneAddress: $phoneAddress
|
|
|
|
category: $category
|
2019-09-09 09:21:42 +00:00
|
|
|
physicalAddress: $physicalAddress
|
2021-06-10 08:06:23 +00:00
|
|
|
options: $options
|
2020-09-29 07:53:48 +00:00
|
|
|
contacts: $contacts
|
2021-11-13 18:11:34 +00:00
|
|
|
metadata: $metadata
|
2018-11-07 15:09:28 +00:00
|
|
|
) {
|
2021-06-10 08:06:23 +00:00
|
|
|
...FullEvent
|
2019-02-22 10:24:41 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-10 08:06:23 +00:00
|
|
|
${FULL_EVENT_FRAGMENT}
|
2018-11-06 09:30:27 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const EDIT_EVENT = gql`
|
2019-09-04 16:24:31 +00:00
|
|
|
mutation updateEvent(
|
2021-06-10 08:06:23 +00:00
|
|
|
$id: ID!
|
|
|
|
$title: String
|
|
|
|
$description: String
|
|
|
|
$beginsOn: DateTime
|
|
|
|
$endsOn: DateTime
|
|
|
|
$status: EventStatus
|
|
|
|
$visibility: EventVisibility
|
|
|
|
$joinOptions: EventJoinOptions
|
|
|
|
$draft: Boolean
|
|
|
|
$tags: [String]
|
|
|
|
$picture: MediaInput
|
|
|
|
$onlineAddress: String
|
|
|
|
$phoneAddress: String
|
|
|
|
$organizerActorId: ID
|
|
|
|
$attributedToId: ID
|
|
|
|
$category: String
|
|
|
|
$physicalAddress: AddressInput
|
|
|
|
$options: EventOptionsInput
|
2020-09-29 07:53:48 +00:00
|
|
|
$contacts: [Contact]
|
2021-08-09 12:26:11 +00:00
|
|
|
$metadata: EventMetadataInput
|
2019-02-22 10:24:41 +00:00
|
|
|
) {
|
2019-09-09 09:21:42 +00:00
|
|
|
updateEvent(
|
2021-06-10 08:06:23 +00:00
|
|
|
eventId: $id
|
|
|
|
title: $title
|
|
|
|
description: $description
|
|
|
|
beginsOn: $beginsOn
|
|
|
|
endsOn: $endsOn
|
|
|
|
status: $status
|
|
|
|
visibility: $visibility
|
|
|
|
joinOptions: $joinOptions
|
|
|
|
draft: $draft
|
|
|
|
tags: $tags
|
|
|
|
picture: $picture
|
|
|
|
onlineAddress: $onlineAddress
|
|
|
|
phoneAddress: $phoneAddress
|
|
|
|
organizerActorId: $organizerActorId
|
|
|
|
attributedToId: $attributedToId
|
|
|
|
category: $category
|
2019-09-09 09:21:42 +00:00
|
|
|
physicalAddress: $physicalAddress
|
2021-06-10 08:06:23 +00:00
|
|
|
options: $options
|
2020-09-29 07:53:48 +00:00
|
|
|
contacts: $contacts
|
2021-08-09 12:26:11 +00:00
|
|
|
metadata: $metadata
|
2019-09-09 09:21:42 +00:00
|
|
|
) {
|
2021-06-10 08:06:23 +00:00
|
|
|
...FullEvent
|
2018-11-06 09:30:27 +00:00
|
|
|
}
|
2019-02-22 10:24:41 +00:00
|
|
|
}
|
2021-06-10 08:06:23 +00:00
|
|
|
${FULL_EVENT_FRAGMENT}
|
2018-11-06 09:30:27 +00:00
|
|
|
`;
|
2019-01-21 14:08:22 +00:00
|
|
|
|
|
|
|
export const JOIN_EVENT = gql`
|
2021-06-10 08:06:23 +00:00
|
|
|
mutation JoinEvent(
|
|
|
|
$eventId: ID!
|
|
|
|
$actorId: ID!
|
|
|
|
$email: String
|
|
|
|
$message: String
|
|
|
|
$locale: String
|
2021-10-13 10:55:49 +00:00
|
|
|
$timezone: String
|
2021-06-10 08:06:23 +00:00
|
|
|
) {
|
2019-02-22 10:24:41 +00:00
|
|
|
joinEvent(
|
2021-06-10 08:06:23 +00:00
|
|
|
eventId: $eventId
|
|
|
|
actorId: $actorId
|
|
|
|
email: $email
|
|
|
|
message: $message
|
2020-06-09 08:07:30 +00:00
|
|
|
locale: $locale
|
2021-10-13 10:55:49 +00:00
|
|
|
timezone: $timezone
|
2019-02-22 10:24:41 +00:00
|
|
|
) {
|
2021-06-16 10:35:00 +00:00
|
|
|
...ParticipantQuery
|
2019-02-22 10:24:41 +00:00
|
|
|
}
|
|
|
|
}
|
2021-06-16 10:35:00 +00:00
|
|
|
${PARTICIPANT_QUERY_FRAGMENT}
|
2019-02-22 10:24:41 +00:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const LEAVE_EVENT = gql`
|
2019-12-20 12:04:34 +00:00
|
|
|
mutation LeaveEvent($eventId: ID!, $actorId: ID!, $token: String) {
|
2020-02-18 07:57:00 +00:00
|
|
|
leaveEvent(eventId: $eventId, actorId: $actorId, token: $token) {
|
2019-02-22 10:24:41 +00:00
|
|
|
actor {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-20 12:04:34 +00:00
|
|
|
export const CONFIRM_PARTICIPATION = gql`
|
|
|
|
mutation ConfirmParticipation($token: String!) {
|
|
|
|
confirmParticipation(confirmationToken: $token) {
|
|
|
|
actor {
|
2020-02-18 07:57:00 +00:00
|
|
|
id
|
|
|
|
}
|
2019-12-20 12:04:34 +00:00
|
|
|
event {
|
2020-10-07 15:05:15 +00:00
|
|
|
id
|
2019-12-20 12:04:34 +00:00
|
|
|
uuid
|
2020-10-07 15:05:15 +00:00
|
|
|
joinOptions
|
2020-02-18 07:57:00 +00:00
|
|
|
}
|
2019-12-20 12:04:34 +00:00
|
|
|
role
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-09-30 11:48:47 +00:00
|
|
|
export const UPDATE_PARTICIPANT = gql`
|
2020-11-19 16:06:28 +00:00
|
|
|
mutation UpdateParticipant($id: ID!, $role: ParticipantRoleEnum!) {
|
|
|
|
updateParticipation(id: $id, role: $role) {
|
2020-02-18 07:57:00 +00:00
|
|
|
role
|
2019-09-20 16:22:03 +00:00
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-02-22 10:24:41 +00:00
|
|
|
export const DELETE_EVENT = gql`
|
2020-11-19 16:06:28 +00:00
|
|
|
mutation DeleteEvent($eventId: ID!) {
|
|
|
|
deleteEvent(eventId: $eventId) {
|
2020-02-18 07:57:00 +00:00
|
|
|
id
|
2019-07-26 09:30:28 +00:00
|
|
|
}
|
2019-02-22 10:24:41 +00:00
|
|
|
}
|
2019-01-21 14:08:22 +00:00
|
|
|
`;
|
2019-09-20 16:22:03 +00:00
|
|
|
|
|
|
|
export const PARTICIPANTS = gql`
|
2021-05-17 16:19:24 +00:00
|
|
|
query Participants($uuid: UUID!, $page: Int, $limit: Int, $roles: String) {
|
2019-09-20 16:22:03 +00:00
|
|
|
event(uuid: $uuid) {
|
2021-06-10 08:06:23 +00:00
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
2020-11-19 16:06:28 +00:00
|
|
|
participants(page: $page, limit: $limit, roles: $roles) {
|
2021-06-10 08:06:23 +00:00
|
|
|
...ParticipantsQuery
|
|
|
|
}
|
2019-09-20 16:22:03 +00:00
|
|
|
participantStats {
|
2021-06-10 08:06:23 +00:00
|
|
|
going
|
|
|
|
notApproved
|
|
|
|
rejected
|
2019-10-25 15:43:37 +00:00
|
|
|
participant
|
2019-09-20 16:22:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-10 08:06:23 +00:00
|
|
|
${PARTICIPANTS_QUERY_FRAGMENT}
|
2019-09-20 16:22:03 +00:00
|
|
|
`;
|
2019-09-26 14:38:58 +00:00
|
|
|
|
|
|
|
export const EVENT_PERSON_PARTICIPATION = gql`
|
2021-05-17 16:19:24 +00:00
|
|
|
query EventPersonParticipation($actorId: ID!, $eventId: ID!) {
|
2019-10-04 16:28:25 +00:00
|
|
|
person(id: $actorId) {
|
2020-02-18 07:57:00 +00:00
|
|
|
id
|
2019-09-26 14:38:58 +00:00
|
|
|
participations(eventId: $eventId) {
|
2020-06-11 17:13:21 +00:00
|
|
|
total
|
|
|
|
elements {
|
2019-09-26 14:38:58 +00:00
|
|
|
id
|
2020-06-11 17:13:21 +00:00
|
|
|
role
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
event {
|
|
|
|
id
|
|
|
|
}
|
2019-09-26 14:38:58 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2019-12-03 10:29:51 +00:00
|
|
|
|
|
|
|
export const EVENT_PERSON_PARTICIPATION_SUBSCRIPTION_CHANGED = gql`
|
2021-05-17 16:19:24 +00:00
|
|
|
subscription EventPersonParticipationSubscriptionChanged(
|
|
|
|
$actorId: ID!
|
|
|
|
$eventId: ID!
|
|
|
|
) {
|
2019-12-03 10:29:51 +00:00
|
|
|
eventPersonParticipationChanged(personId: $actorId) {
|
2020-02-18 07:57:00 +00:00
|
|
|
id
|
2019-12-03 10:29:51 +00:00
|
|
|
participations(eventId: $eventId) {
|
2020-06-11 17:13:21 +00:00
|
|
|
total
|
|
|
|
elements {
|
2019-12-03 10:29:51 +00:00
|
|
|
id
|
2020-06-11 17:13:21 +00:00
|
|
|
role
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
event {
|
|
|
|
id
|
|
|
|
}
|
2019-12-03 10:29:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-11-06 10:34:32 +00:00
|
|
|
|
2020-12-09 08:56:53 +00:00
|
|
|
export const FETCH_GROUP_EVENTS = gql`
|
2021-05-17 16:19:24 +00:00
|
|
|
query FetchGroupEvents(
|
2020-12-09 08:56:53 +00:00
|
|
|
$name: String!
|
|
|
|
$afterDateTime: DateTime
|
|
|
|
$beforeDateTime: DateTime
|
|
|
|
$organisedEventsPage: Int
|
2021-11-02 18:47:54 +00:00
|
|
|
$organisedEventsLimit: Int
|
2020-12-09 08:56:53 +00:00
|
|
|
) {
|
|
|
|
group(preferredUsername: $name) {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2020-12-09 08:56:53 +00:00
|
|
|
organizedEvents(
|
|
|
|
afterDatetime: $afterDateTime
|
|
|
|
beforeDatetime: $beforeDateTime
|
|
|
|
page: $organisedEventsPage
|
2021-11-02 18:47:54 +00:00
|
|
|
limit: $organisedEventsLimit
|
2020-12-09 08:56:53 +00:00
|
|
|
) {
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
beginsOn
|
|
|
|
draft
|
|
|
|
options {
|
2021-11-02 18:47:54 +00:00
|
|
|
...EventOptions
|
2020-12-09 08:56:53 +00:00
|
|
|
}
|
|
|
|
participantStats {
|
|
|
|
participant
|
|
|
|
notApproved
|
|
|
|
}
|
|
|
|
attributedTo {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2020-12-09 08:56:53 +00:00
|
|
|
}
|
|
|
|
organizerActor {
|
2021-10-29 08:54:35 +00:00
|
|
|
...ActorFragment
|
2020-12-09 08:56:53 +00:00
|
|
|
}
|
2021-11-02 18:47:54 +00:00
|
|
|
physicalAddress {
|
|
|
|
...AdressFragment
|
|
|
|
}
|
|
|
|
picture {
|
|
|
|
url
|
|
|
|
id
|
|
|
|
}
|
2020-12-09 08:56:53 +00:00
|
|
|
}
|
|
|
|
total
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-11-02 18:47:54 +00:00
|
|
|
${EVENT_OPTIONS_FRAGMENT}
|
2021-10-29 08:54:35 +00:00
|
|
|
${ACTOR_FRAGMENT}
|
2021-11-02 18:47:54 +00:00
|
|
|
${ADDRESS_FRAGMENT}
|
2020-12-09 08:56:53 +00:00
|
|
|
`;
|
2021-02-12 17:19:49 +00:00
|
|
|
|
2021-10-04 16:59:41 +00:00
|
|
|
export const EXPORT_EVENT_PARTICIPATIONS = gql`
|
|
|
|
mutation ExportEventParticipants(
|
|
|
|
$eventId: ID!
|
|
|
|
$format: ExportFormatEnum
|
|
|
|
$roles: [ParticipantRoleEnum]
|
|
|
|
) {
|
|
|
|
exportEventParticipants(eventId: $eventId, format: $format, roles: $roles)
|
|
|
|
}
|
|
|
|
`;
|