2020-02-18 08:57:00 +01:00
|
|
|
import gql from "graphql-tag";
|
2021-06-10 10:06:23 +02:00
|
|
|
import { ADDRESS_FRAGMENT } from "./address";
|
|
|
|
import { TAG_FRAGMENT } from "./tags";
|
2018-11-06 10:30:27 +01:00
|
|
|
|
2021-06-10 10:06:23 +02:00
|
|
|
const PARTICIPANT_QUERY_FRAGMENT = gql`
|
|
|
|
fragment ParticipantQuery on Participant {
|
|
|
|
role
|
|
|
|
id
|
|
|
|
actor {
|
|
|
|
preferredUsername
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
name
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2021-06-10 10:06:23 +02:00
|
|
|
domain
|
|
|
|
}
|
|
|
|
event {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
}
|
|
|
|
metadata {
|
|
|
|
cancellationToken
|
|
|
|
message
|
|
|
|
}
|
|
|
|
insertedAt
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2021-06-10 10:06:23 +02:00
|
|
|
const PARTICIPANTS_QUERY_FRAGMENT = gql`
|
|
|
|
fragment ParticipantsQuery on PaginatedParticipantList {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
...ParticipantQuery
|
|
|
|
}
|
|
|
|
}
|
|
|
|
${PARTICIPANT_QUERY_FRAGMENT}
|
2019-09-09 11:21:42 +02:00
|
|
|
`;
|
|
|
|
|
2021-06-10 10:06:23 +02:00
|
|
|
const EVENT_OPTIONS_FRAGMENT = gql`
|
|
|
|
fragment EventOptions on EventOptions {
|
|
|
|
maximumAttendeeCapacity
|
|
|
|
remainingAttendeeCapacity
|
|
|
|
showRemainingAttendeeCapacity
|
|
|
|
anonymousParticipation
|
|
|
|
showStartTime
|
|
|
|
showEndTime
|
|
|
|
offers {
|
|
|
|
price
|
|
|
|
priceCurrency
|
|
|
|
url
|
|
|
|
}
|
|
|
|
participationConditions {
|
|
|
|
title
|
|
|
|
content
|
|
|
|
url
|
|
|
|
}
|
|
|
|
attendees
|
|
|
|
program
|
|
|
|
commentModeration
|
|
|
|
showParticipationPrice
|
|
|
|
hideOrganizerWhenGroupEvent
|
|
|
|
}
|
2019-09-09 11:21:42 +02:00
|
|
|
`;
|
|
|
|
|
2021-06-10 10:06:23 +02:00
|
|
|
const FULL_EVENT_FRAGMENT = gql`
|
|
|
|
fragment FullEvent on Event {
|
|
|
|
id
|
|
|
|
uuid
|
2019-09-09 11:21:42 +02:00
|
|
|
url
|
2021-06-10 10:06:23 +02:00
|
|
|
local
|
|
|
|
title
|
|
|
|
description
|
|
|
|
beginsOn
|
|
|
|
endsOn
|
|
|
|
status
|
|
|
|
visibility
|
|
|
|
joinOptions
|
|
|
|
draft
|
|
|
|
picture {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
name
|
|
|
|
metadata {
|
|
|
|
width
|
|
|
|
height
|
|
|
|
blurhash
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publishAt
|
|
|
|
onlineAddress
|
|
|
|
phoneAddress
|
|
|
|
physicalAddress {
|
|
|
|
...AdressFragment
|
|
|
|
}
|
|
|
|
organizerActor {
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
preferredUsername
|
|
|
|
domain
|
|
|
|
name
|
|
|
|
url
|
|
|
|
id
|
|
|
|
summary
|
|
|
|
}
|
|
|
|
contacts {
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
summary
|
|
|
|
domain
|
|
|
|
url
|
|
|
|
id
|
|
|
|
}
|
|
|
|
attributedTo {
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
summary
|
|
|
|
domain
|
|
|
|
url
|
|
|
|
id
|
|
|
|
}
|
|
|
|
participantStats {
|
|
|
|
going
|
|
|
|
notApproved
|
|
|
|
participant
|
|
|
|
}
|
|
|
|
tags {
|
|
|
|
...TagFragment
|
|
|
|
}
|
|
|
|
relatedEvents {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
beginsOn
|
2019-05-22 14:12:11 +02:00
|
|
|
picture {
|
|
|
|
id
|
|
|
|
url
|
2019-09-09 11:21:42 +02:00
|
|
|
name
|
2021-06-10 10:06:23 +02:00
|
|
|
metadata {
|
|
|
|
width
|
|
|
|
height
|
|
|
|
blurhash
|
|
|
|
}
|
|
|
|
}
|
2019-03-22 15:51:23 +01:00
|
|
|
physicalAddress {
|
2021-06-10 10:06:23 +02:00
|
|
|
id
|
|
|
|
description
|
2019-03-22 15:51:23 +01:00
|
|
|
}
|
2019-02-22 11:24:41 +01:00
|
|
|
organizerActor {
|
2020-09-29 09:53:48 +02:00
|
|
|
id
|
2020-02-18 08:57:00 +01:00
|
|
|
avatar {
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2019-10-07 16:48:13 +02:00
|
|
|
url
|
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
preferredUsername
|
|
|
|
domain
|
|
|
|
name
|
2019-02-22 16:54:01 +01:00
|
|
|
}
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
options {
|
|
|
|
...EventOptions
|
|
|
|
}
|
2021-08-09 14:26:11 +02:00
|
|
|
metadata {
|
|
|
|
key
|
|
|
|
title
|
|
|
|
value
|
|
|
|
type
|
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
}
|
|
|
|
${ADDRESS_FRAGMENT}
|
|
|
|
${TAG_FRAGMENT}
|
|
|
|
${EVENT_OPTIONS_FRAGMENT}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export const FETCH_EVENT = gql`
|
|
|
|
query FetchEvent($uuid: UUID!) {
|
|
|
|
event(uuid: $uuid) {
|
|
|
|
...FullEvent
|
|
|
|
}
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
${FULL_EVENT_FRAGMENT}
|
2018-11-06 10:30:27 +01:00
|
|
|
`;
|
|
|
|
|
2020-12-07 14:48:48 +01:00
|
|
|
export const FETCH_EVENT_BASIC = gql`
|
2021-05-17 19:01:08 +02:00
|
|
|
query ($uuid: UUID!) {
|
2020-12-07 14:48:48 +01:00
|
|
|
event(uuid: $uuid) {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
joinOptions
|
|
|
|
participantStats {
|
|
|
|
going
|
|
|
|
notApproved
|
|
|
|
notConfirmed
|
|
|
|
participant
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2018-11-06 10:30:27 +01:00
|
|
|
export const FETCH_EVENTS = gql`
|
2021-08-09 17:53:46 +02:00
|
|
|
query FetchEvents(
|
|
|
|
$orderBy: EventOrderBy
|
|
|
|
$direction: SortDirection
|
|
|
|
$page: Int
|
|
|
|
$limit: Int
|
|
|
|
) {
|
|
|
|
events(
|
|
|
|
orderBy: $orderBy
|
|
|
|
direction: $direction
|
|
|
|
page: $page
|
|
|
|
limit: $limit
|
|
|
|
) {
|
2020-12-09 17:55:38 +01:00
|
|
|
total
|
|
|
|
elements {
|
2019-05-22 14:12:11 +02:00
|
|
|
id
|
2020-12-09 17:55:38 +01:00
|
|
|
uuid
|
2019-05-22 14:12:11 +02:00
|
|
|
url
|
2020-12-09 17:55:38 +01:00
|
|
|
local
|
|
|
|
title
|
|
|
|
description
|
|
|
|
beginsOn
|
|
|
|
endsOn
|
|
|
|
status
|
|
|
|
visibility
|
2021-02-12 18:19:49 +01:00
|
|
|
insertedAt
|
2020-12-09 17:55:38 +01:00
|
|
|
picture {
|
2020-10-22 16:19:26 +02:00
|
|
|
id
|
2019-05-22 14:12:11 +02:00
|
|
|
url
|
2020-12-09 17:55:38 +01:00
|
|
|
}
|
|
|
|
publishAt
|
|
|
|
# online_address,
|
|
|
|
# phone_address,
|
|
|
|
physicalAddress {
|
|
|
|
id
|
|
|
|
description
|
|
|
|
locality
|
|
|
|
}
|
|
|
|
organizerActor {
|
|
|
|
id
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
preferredUsername
|
|
|
|
domain
|
|
|
|
name
|
|
|
|
}
|
2021-08-09 17:53:46 +02:00
|
|
|
attributedTo {
|
|
|
|
avatar {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
}
|
2020-12-09 17:55:38 +01:00
|
|
|
category
|
|
|
|
tags {
|
2021-06-10 10:06:23 +02:00
|
|
|
...TagFragment
|
2020-12-09 17:55:38 +01:00
|
|
|
}
|
|
|
|
}
|
2018-11-06 10:30:27 +01:00
|
|
|
}
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
${TAG_FRAGMENT}
|
2018-11-06 10:30:27 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const CREATE_EVENT = gql`
|
2019-09-09 11:21:42 +02:00
|
|
|
mutation createEvent(
|
2021-06-10 10:06:23 +02: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 09:53:48 +02:00
|
|
|
$contacts: [Contact]
|
2019-02-22 11:24:41 +01:00
|
|
|
) {
|
|
|
|
createEvent(
|
2021-06-10 10:06:23 +02: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 11:21:42 +02:00
|
|
|
physicalAddress: $physicalAddress
|
2021-06-10 10:06:23 +02:00
|
|
|
options: $options
|
2020-09-29 09:53:48 +02:00
|
|
|
contacts: $contacts
|
2018-11-07 16:09:28 +01:00
|
|
|
) {
|
2021-06-10 10:06:23 +02:00
|
|
|
...FullEvent
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
${FULL_EVENT_FRAGMENT}
|
2018-11-06 10:30:27 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const EDIT_EVENT = gql`
|
2019-09-04 18:24:31 +02:00
|
|
|
mutation updateEvent(
|
2021-06-10 10:06:23 +02: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 09:53:48 +02:00
|
|
|
$contacts: [Contact]
|
2021-08-09 14:26:11 +02:00
|
|
|
$metadata: EventMetadataInput
|
2019-02-22 11:24:41 +01:00
|
|
|
) {
|
2019-09-09 11:21:42 +02:00
|
|
|
updateEvent(
|
2021-06-10 10:06:23 +02: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 11:21:42 +02:00
|
|
|
physicalAddress: $physicalAddress
|
2021-06-10 10:06:23 +02:00
|
|
|
options: $options
|
2020-09-29 09:53:48 +02:00
|
|
|
contacts: $contacts
|
2021-08-09 14:26:11 +02:00
|
|
|
metadata: $metadata
|
2019-09-09 11:21:42 +02:00
|
|
|
) {
|
2021-06-10 10:06:23 +02:00
|
|
|
...FullEvent
|
2018-11-06 10:30:27 +01:00
|
|
|
}
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
${FULL_EVENT_FRAGMENT}
|
2018-11-06 10:30:27 +01:00
|
|
|
`;
|
2019-01-21 15:08:22 +01:00
|
|
|
|
|
|
|
export const JOIN_EVENT = gql`
|
2021-06-10 10:06:23 +02:00
|
|
|
mutation JoinEvent(
|
|
|
|
$eventId: ID!
|
|
|
|
$actorId: ID!
|
|
|
|
$email: String
|
|
|
|
$message: String
|
|
|
|
$locale: String
|
|
|
|
) {
|
2019-02-22 11:24:41 +01:00
|
|
|
joinEvent(
|
2021-06-10 10:06:23 +02:00
|
|
|
eventId: $eventId
|
|
|
|
actorId: $actorId
|
|
|
|
email: $email
|
|
|
|
message: $message
|
2020-06-09 10:07:30 +02:00
|
|
|
locale: $locale
|
2019-02-22 11:24:41 +01:00
|
|
|
) {
|
2021-06-16 12:35:00 +02:00
|
|
|
...ParticipantQuery
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
|
|
|
}
|
2021-06-16 12:35:00 +02:00
|
|
|
${PARTICIPANT_QUERY_FRAGMENT}
|
2019-02-22 11:24:41 +01:00
|
|
|
`;
|
|
|
|
|
|
|
|
export const LEAVE_EVENT = gql`
|
2019-12-20 13:04:34 +01:00
|
|
|
mutation LeaveEvent($eventId: ID!, $actorId: ID!, $token: String) {
|
2020-02-18 08:57:00 +01:00
|
|
|
leaveEvent(eventId: $eventId, actorId: $actorId, token: $token) {
|
2019-02-22 11:24:41 +01:00
|
|
|
actor {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-12-20 13:04:34 +01:00
|
|
|
export const CONFIRM_PARTICIPATION = gql`
|
|
|
|
mutation ConfirmParticipation($token: String!) {
|
|
|
|
confirmParticipation(confirmationToken: $token) {
|
|
|
|
actor {
|
2020-02-18 08:57:00 +01:00
|
|
|
id
|
|
|
|
}
|
2019-12-20 13:04:34 +01:00
|
|
|
event {
|
2020-10-07 17:05:15 +02:00
|
|
|
id
|
2019-12-20 13:04:34 +01:00
|
|
|
uuid
|
2020-10-07 17:05:15 +02:00
|
|
|
joinOptions
|
2020-02-18 08:57:00 +01:00
|
|
|
}
|
2019-12-20 13:04:34 +01:00
|
|
|
role
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-09-30 13:48:47 +02:00
|
|
|
export const UPDATE_PARTICIPANT = gql`
|
2020-11-19 17:06:28 +01:00
|
|
|
mutation UpdateParticipant($id: ID!, $role: ParticipantRoleEnum!) {
|
|
|
|
updateParticipation(id: $id, role: $role) {
|
2020-02-18 08:57:00 +01:00
|
|
|
role
|
2019-09-20 18:22:03 +02:00
|
|
|
id
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2019-02-22 11:24:41 +01:00
|
|
|
export const DELETE_EVENT = gql`
|
2020-11-19 17:06:28 +01:00
|
|
|
mutation DeleteEvent($eventId: ID!) {
|
|
|
|
deleteEvent(eventId: $eventId) {
|
2020-02-18 08:57:00 +01:00
|
|
|
id
|
2019-07-26 11:30:28 +02:00
|
|
|
}
|
2019-02-22 11:24:41 +01:00
|
|
|
}
|
2019-01-21 15:08:22 +01:00
|
|
|
`;
|
2019-09-20 18:22:03 +02:00
|
|
|
|
|
|
|
export const PARTICIPANTS = gql`
|
2021-05-17 18:19:24 +02:00
|
|
|
query Participants($uuid: UUID!, $page: Int, $limit: Int, $roles: String) {
|
2019-09-20 18:22:03 +02:00
|
|
|
event(uuid: $uuid) {
|
2021-06-10 10:06:23 +02:00
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
2020-11-19 17:06:28 +01:00
|
|
|
participants(page: $page, limit: $limit, roles: $roles) {
|
2021-06-10 10:06:23 +02:00
|
|
|
...ParticipantsQuery
|
|
|
|
}
|
2019-09-20 18:22:03 +02:00
|
|
|
participantStats {
|
2021-06-10 10:06:23 +02:00
|
|
|
going
|
|
|
|
notApproved
|
|
|
|
rejected
|
2019-10-25 17:43:37 +02:00
|
|
|
participant
|
2019-09-20 18:22:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-10 10:06:23 +02:00
|
|
|
${PARTICIPANTS_QUERY_FRAGMENT}
|
2019-09-20 18:22:03 +02:00
|
|
|
`;
|
2019-09-26 16:38:58 +02:00
|
|
|
|
|
|
|
export const EVENT_PERSON_PARTICIPATION = gql`
|
2021-05-17 18:19:24 +02:00
|
|
|
query EventPersonParticipation($actorId: ID!, $eventId: ID!) {
|
2019-10-04 18:28:25 +02:00
|
|
|
person(id: $actorId) {
|
2020-02-18 08:57:00 +01:00
|
|
|
id
|
2019-09-26 16:38:58 +02:00
|
|
|
participations(eventId: $eventId) {
|
2020-06-11 19:13:21 +02:00
|
|
|
total
|
|
|
|
elements {
|
2019-09-26 16:38:58 +02:00
|
|
|
id
|
2020-06-11 19:13:21 +02:00
|
|
|
role
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
event {
|
|
|
|
id
|
|
|
|
}
|
2019-09-26 16:38:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2019-12-03 11:29:51 +01:00
|
|
|
|
|
|
|
export const EVENT_PERSON_PARTICIPATION_SUBSCRIPTION_CHANGED = gql`
|
2021-05-17 18:19:24 +02:00
|
|
|
subscription EventPersonParticipationSubscriptionChanged(
|
|
|
|
$actorId: ID!
|
|
|
|
$eventId: ID!
|
|
|
|
) {
|
2019-12-03 11:29:51 +01:00
|
|
|
eventPersonParticipationChanged(personId: $actorId) {
|
2020-02-18 08:57:00 +01:00
|
|
|
id
|
2019-12-03 11:29:51 +01:00
|
|
|
participations(eventId: $eventId) {
|
2020-06-11 19:13:21 +02:00
|
|
|
total
|
|
|
|
elements {
|
2019-12-03 11:29:51 +01:00
|
|
|
id
|
2020-06-11 19:13:21 +02:00
|
|
|
role
|
|
|
|
actor {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
event {
|
|
|
|
id
|
|
|
|
}
|
2019-12-03 11:29:51 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2020-11-06 11:34:32 +01:00
|
|
|
|
2020-12-09 09:56:53 +01:00
|
|
|
export const FETCH_GROUP_EVENTS = gql`
|
2021-05-17 18:19:24 +02:00
|
|
|
query FetchGroupEvents(
|
2020-12-09 09:56:53 +01:00
|
|
|
$name: String!
|
|
|
|
$afterDateTime: DateTime
|
|
|
|
$beforeDateTime: DateTime
|
|
|
|
$organisedEventsPage: Int
|
|
|
|
$organisedEventslimit: Int
|
|
|
|
) {
|
|
|
|
group(preferredUsername: $name) {
|
|
|
|
id
|
|
|
|
preferredUsername
|
|
|
|
domain
|
|
|
|
name
|
|
|
|
organizedEvents(
|
|
|
|
afterDatetime: $afterDateTime
|
|
|
|
beforeDatetime: $beforeDateTime
|
|
|
|
page: $organisedEventsPage
|
|
|
|
limit: $organisedEventslimit
|
|
|
|
) {
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
uuid
|
|
|
|
title
|
|
|
|
beginsOn
|
|
|
|
draft
|
|
|
|
options {
|
|
|
|
maximumAttendeeCapacity
|
|
|
|
}
|
|
|
|
participantStats {
|
|
|
|
participant
|
|
|
|
notApproved
|
|
|
|
}
|
|
|
|
attributedTo {
|
|
|
|
id
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
domain
|
|
|
|
}
|
|
|
|
organizerActor {
|
|
|
|
id
|
|
|
|
preferredUsername
|
|
|
|
name
|
|
|
|
domain
|
|
|
|
}
|
|
|
|
}
|
|
|
|
total
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|
2021-02-12 18:19:49 +01:00
|
|
|
|
|
|
|
export const CLOSE_EVENTS = gql`
|
|
|
|
query CloseEvents($location: String, $radius: Float) {
|
|
|
|
searchEvents(location: $location, radius: $radius, page: 1, limit: 10) {
|
|
|
|
total
|
|
|
|
elements {
|
|
|
|
id
|
|
|
|
title
|
|
|
|
uuid
|
|
|
|
beginsOn
|
|
|
|
picture {
|
|
|
|
id
|
|
|
|
url
|
|
|
|
}
|
|
|
|
tags {
|
|
|
|
slug
|
|
|
|
title
|
|
|
|
}
|
|
|
|
__typename
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
`;
|